search for: expense

Displaying 20 results from an estimated 5934 matches for "expense".

2006 Jul 12
1
Question re: Computing a field in a DB record
...or the DB field correctly, or that update_attributes does not work as I expect. I would appreciate it if someone with experience would look at this and tell me what is wrong. The scaffold code (with simple updates from the form with no calculation) of the amount works: def update @expense = Expense.find(params[:id]) if @expense.update_attributes(params[:expense]) flash[:notice] = ''Expense was successfully updated.'' redirect_to :action => ''show'', :id => @expense else render :action => ''edit''...
2006 May 29
1
validation in a "subform"
I''ve been following the rails/osx tutorial at http://developer.apple.com/tools/rubyonrails.html This develops a simple application with expenses and accounts. Near the end of the tutorial, there is a view which allows expenses to be added to an account. This view has the "parent" @account rendered, then iterates throught @account.expenses to display the existing accounts, then has a form. <%= start_form_tag :action => ...
2009 Nov 18
4
rails newbie : routing error
After much ado about the naming of model adn controllers... model : Expense controller : Expenses route : map.resources :expenses Here I am using mysql database and created a unique index, since db:migrated created an id object and made it as primary key. Now in the def create @expense = Expense.new(params[:expense]) if @expense.save flash[:viola] = ''...
2008 Mar 08
9
Newbie worries with "Developing Rails Applications on Max OSX Leopard"
...ation linking them. Everything was good until the establishment of the relation. I am unable to go any further than "Linking Models Together" : I can create the "vendors" mentionned in the exemple, and I can get an "event" to look to. But when I try to create an "expense", I get a message saying : >> event.expenses.create(:vendor => vendor1, :amount => 75.00) NoMethodError: undefined method `expenses'' for #<Event:0x125e008> from /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ attribute_methods.rb:205:in `method_mi...
2017 Dec 06
3
buildbot failure in LLVM on llvm-clang-x86_64-expensive-checks-win
I’ve had another look, and some of the failing tests don’t use temporary files, so I don’t think this is a case of tests having side-effects. Instead, I’ve noticed that in the build log (http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/6552/steps/build-unified-tree/logs/stdio), llvm-tblgen.exe is built (my patch modified it), but the table-generation steps of the
2006 Mar 31
14
[newbi] Create a Model
...rsions 4.1 and 5.0 are recommended. # # Get the fast C bindings: # gem install mysql # (on OS X: gem install mysql -- --include=/usr/local/lib) # And be sure to use new-style password hashing: # http://dev.mysql.com/doc/refman/5.0/en/old-client.html development: adapter: sqlite dbfile: db/expense_developement # Connect on a TCP socket. If omitted, the adapter will connect on the # domain socket given by socket instead. #host: localhost #port: 3306 # Warning: The database defined as ''test'' will be erased and # re-generated from your development database when you...
2017 Apr 21
3
r300964 and the llvm-clang-x86_64-expensive-checks-win buildbot
clean buld forced the regeneration of X86GenGlobalISel.inc & AArch64GenGlobalISel.inc, which may have not happened otherwise. ‫בתאריך יום ו׳, 21 באפר׳ 2017 ב-18:29 מאת ‪Simon Pilgrim via llvm-dev‬‏ <‪ llvm-dev at lists.llvm.org‬‏>:‬ > For reasons I’m not sure about it needs a clean build every so often - > I’ve forced a build at >
2008 May 13
6
[LLVMdev] Iterator protocols
...uot;exceptional" happens. OTOH, the Java case is also made worse by the fact that a large part of the time you'll be using the more expensive interface dispatching, rather than simple vtable dispatching. I would imagine that for smaller sequences the Java protocol wins (because of the expense of unwinding), whereas for longer sequences the per-item overhead dominates. The question is, what's the cutoff point likely to be - how expensive is an unwind compared to, say, a regular function call. (I haven't tried to measure it because I'm not yet sure what I am measuring.) I&...
2010 Jul 16
31
Added associations but don't see generated methods
Hi, I''ve got a Rails app working that includes two two classes, etc.: Expense & Vendor. I eventually learned that the mental concept I had of their relationship should be express in Rails as: class Expense < ActiveRecord::Base; belongs_to :vendor; end class Vendor < ActiveRecord::Base; has_many :expenses; end http://rails.rubyonrails.org/classes/ActiveRecord...
2017 Apr 21
2
r300964 and the llvm-clang-x86_64-expensive-checks-win buildbot
Hi, One of my commits earlier today (r300964) is causing llvm-clang-x86_64-expensive-checks-win to fail with a compilation error (http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/1331 <http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/1331>) and I'm having trouble figuring out why. I had seen something similar before on MSVC
2009 Jun 09
1
Read only configuration.
Hi, I currently I have a Samba share configured as follows: [pub_fileshare] comment = Public fileshare path = /u02/pub guest ok = Yes writeable = Yes There is a subfolder under /u02/pub called /u02/pub/expenses/hardware that I need to make read only. How do I do this? I am new to using Samba. I configured the share /u02/pub/expenses/hardware using the configuration below. This works as it is shared as read only. [hardware] comment = Hardware share path = /u02/pub/expenses/hardware read only = Yes gue...
2006 Apr 06
1
Look What 911 Will Cost in Canada
...sumptions and Methodology 5 5.2 Number of Customers 5 5.3 Number of 0-ECRS Calls 5 5.4 Bell Canada Average 0-ECRS Call Duration 5 5.5 Estimates of Demand Quantities 5 6.0 PHASE II COSTS 6 6.1 Study Assumptions 6 6.2 Study Period 7 6.3 Financial Parameters and Tax Rates 7 6.4 Cost Inclusions 7 6.4.1 Expenses Causal to the Service 7 6.4.2 Capital Causal to the Service 8 6.4.3 Capital Causal to Demand 8 6.4.4 Expenses Causal to Demand 8 6.4.5 Phase II Cost Summary 9 7.0 3RD PARTY ACQUISITION COSTS AND COSTS OF UNDERLYING CATEGORY I COMPETITOR SERVICE COMPONENTS 9 1.0 GENERAL 1.1 Purpose of the Study...
2014 Apr 24
2
Asterisk -rx, how expensive is it? Should you avoid "spamming" it?
Just like the subject sais - how expensive is it to execute a lot of these commands to keep track of different things in asterisk? I have avoided doing this because it feels a bit like a risk to spam the asterisk CLI this way, but is it really? CPU-wise it doesn't seem very expensive to do it 100 times a second (from a simple test I did), but is it possible it will affect the asterisk
2009 Aug 10
2
ggplot: colours to geom_segments
...not seem to work. Thanks ========================================================================= library(ggplot2) xx <- structure(list(Food = structure(c(2L, 1L, 3L, 4L), .Label = c("Bread", "Milk", "Potatoes", "Rice"), class = "factor"), Expense = c(25, 49, 34, 15)), .Names = c("Food", "Expense"), row.names = c(NA, -4L), class = "data.frame") p <- ggplot(xx, aes(x = 0, xend = Expense, y = Food, yend = Food)) pa <- p + geom_point(aes(Expense, Food)) + geom_segment(colour="darkgreen")...
2016 Mar 26
2
Existing studies on the benefits of pointer analysis
> > > > I’m still a big fan of context sensitive, flow insensitive, unification > based models. > CFL can emulate this in the same time bound. > Contrary to your claim, context sensitivity *is* useful for mod-ref > analysis, e.g. “can I hoist a load across this call”? Context sensitivity > improves the precision of the mod/ref set of the call. > > -Chris >
2010 Apr 14
35
Conditionally adding a link to a form -- how?
I''ve got two entities created by scaffolding: Expense & Vendor In Expense#new there''s a form with a Vendors-drop-down and a NewVendor- button. The latter button brings up Vendor#new. The Create button in Vendor#new brings up Vendor#show with Edit & Back links. I want to append a third link conditionally to Vendor#show: if the Expens...
2016 Mar 26
0
Existing studies on the benefits of pointer analysis
On 03/25/2016 08:26 PM, Daniel Berlin wrote: > > Yeah. > It depends entirely on your goal. In reality, often what you really > want is something to say "hey, i've got this pointer over here, and i > really want to hoist it up here. Do something, tell me if that is > possible". > And this is one motivation of my current research: how can various precision
2005 Dec 20
12
How to model "Expense Report" in Rails MVC
1st: I am a newbie to Rails & to pure OO. Q: I want to use rails for creating a "master-detail" form. page layout will allow users to type in an "expense report header" and as many "expense report lines" as they need to. I understand how to wrap the final submit action using "transaction" to ensure the inserts to the database happen within the same commit cycle. But how should I model the "expense report" (whic...
2004 Oct 06
4
SNAT is less expensive than MASQ
hi, in the masq file''s documentation, there is a sentence: "If you have a static IP on that interface, listing it here makes processing of output packets a little less expensive for the firewall." this realy means that SNAT to the primary address is less expensive than a MASQ rules in the netfilter? is this documented anywhere in iptables/netfilter? thanks. -- Levente
2003 Aug 05
2
Why are FXO so expensive?
Hi, I've been browsing for FXO devices, and I'm really surprised at their costs. Why such devices are so expensive and somehow hard to get ? Samy. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030805/a92ee327/attachment.htm