search for: fxn

Displaying 20 results from an estimated 156 matches for "fxn".

Did you mean: fn
2006 May 24
7
migrations and SQLite
I read in the instructions of Tracks that "upgrading via the rake migrate command is quite a bit more tricky currently with SQLite and SQLite3". Is there any gotcha regarding migrations and SQLite3? -- fxn
2006 Feb 19
4
is "display" a reserved name of some sort?
A view display.rhtml sees no controller state variables set in the corresponding display action. Why? -- fxn
2007 Dec 20
2
plot3d, wireframe, persp help
...to get a surface plot of a data set that looks like the following, 1 2 5.6 5 9 2.4 9 8 9.8 ... to (60,000 rows down) From my homework, the persp function only works with evenly spaced data points with the z data beeing in a matrix. my data is not in that format. the wireframe fxn gives me an error, no applicable method for "wireframe" the plot3d fxn I got working thanks to Scionforbai's help. However it does not represent the data like wireframe or persp would. Any help would be appreciated. thanks --------------------------------- [[alte...
2006 Jun 01
5
History plugin
Hello, I felt annoyed enough when having to redirect user back to their previous location in a hackish way that I wrote this plugin. It avoids storing POST and Ajax request. It also has a facility to specify actions not to store in the history. If you are interested, it''s there: http://blog.cosinux.org/pages/rails-history See you all, Damien -- Damien MERENNE
2008 Feb 28
0
use of step.gam (from package 'gam') and superassignment inside functions
...eate the error. My code shows that this behavior doesn't occur with step(). If I use the superassignment operator "<<-" to define the dataframe "gam.jack" in the example below, I do not get an error. It seems like gam() finds gam.jack in the local environment of fxn, but step.gam() is looking only in the global environment for gam.jack. If anyone has further insight into what is going on here, I'd really appreciate it! ***Header info from library(help=gam)*** Information on package 'gam' Description: Package: gam Title...
2007 Jul 11
10
autocomplete in array
Experts, have you figure it out with autocomplete to pass as array objects? still i''m finding out the way to figure. :( regards, Bala --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Oct 02
2
when to use find_by_sql
...ERE p.user_id IS NOT NULL AND p.id = c.person_id ORDER BY c.nfavourites DESC LIMIT #{limit} SQL ) They do not map directly to find parameters and some convoluted Ruby +AR would be needed to emulate them, are they what find_by_sql is for? Am I using it appropriately? -- fxn --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send...
2006 Jul 17
5
quantic phenomena in migrations
...machine rake migrate stops after migration 3 for no apparent reason. --trace seems normal. No error is reported. Both Windows are XP SP2. They all have the same svn revision and Rails-related software, database is SQLite. I even rebooted the machine to no avail. Does this ring any bell? -- fxn
2006 Feb 04
22
What''s the best way to embed a form?
I would like to embed my login form on my app''s home page. What''s the best way to render the login action of member controller from another action? Thanks Frank --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Mar 19
4
elemental race conditions question
...ny posts. Post controller has action add_post that receives user id, post controller find()s the user and while he is creating the post entry an administrator deletes that user in a separate session. We cannot assume the database checks foreign key integrity. How do you get that right? -- fxn
2006 Mar 04
5
SQlite3 hoopup issues on mac os x
friends of the int-arweb. what does this mean: (in bold) ActiveRecord::StatementInvalid in Contact#create SQLite3::SQLException: SQL logic error or missing database: INSERT INTO contacts Context: this happened after I had finished setting up RoR as per the tutorial at http://maczealots.com/tutorials/ruby-on-rails/ the database, is like, there. is there a nice ruby command like deal to
2006 Mar 04
13
Using helpers from controllers ?
There is a solution to use helpers from controllers ? I have an error : |undefined method `content_tag''| class ApplicationController < ActionController::Base def test return content_tag("a","test") end end
2006 May 15
11
can you explain this benchmark?
...op itself is negligible. The analogous SQL file with inserts takes about 3 seconds to load passed directly to the mysql client. I have no problem with those 45 seconds, but I would like to know why that''s that way. Do you know why there is so much difference? Is it the driver? -- fxn
2006 Feb 11
5
after_(read|find) callback?
...user.posts.last.title would do the right thing if title was an encrypted field. I see in the documentation of ActiveRecord::Callbacks there''s a before_save callback that looks like going in the right direction, but I don''t see the symmetric after_(read|find). Any ideas? -- fxn
2005 Dec 27
2
actions with no views?
...ns that modify the model such as add_to_cart redirect to another action that has a clear view role, like index, or show_cart, instead of generating the view themselves. This uses an HTTP redirect that goes to the client and returns. Is this an idiomatic way to design the flow in Rails? -- fxn
2006 Dec 07
17
compress and max upload size?
...balancer and would like to enable compression (assuming it improves throughtput) and limit file size upload. I configured mod_deflate and LimitRequestSize in Apache, but in my trials looks like the proxied calls bypass those directives (the conf goes below). Is there a way to get this? -- fxn # Adapt this .example locally, as usual. # # To be included in the main httpd.conf with a line at the bottom like this # # Include /path/to/example/conf/httpd.conf NameVirtualHost *:80 # Configure the balancer to dispatch to the Mongrel cluster. <Proxy balancer://example_cluster> Bal...
2007 Oct 21
7
exact exceptions in rescue_from
...s invoked. In particular rescue_from does not emulate Ruby''s rescue semantics with regard to inheritance. Which is the rationale? Don''t you think taking is_a? and declaration order into account would provide a better (expected) usage? I could write a patch in that case. -- fxn --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-c...
2006 Apr 05
5
when is model() needed?
...have just some vague and thus probably wrong ideas about when to use model() in controllers, and by now I err on being redundant. I don''t post them here to avoid leaving anything that may be false in the archives. Can anyone explain exactly in which cases one should use model()? -- fxn
2008 Jan 03
1
KernSmooth: bkde and dpik bandwidth questions
...uestions relating to the KernSmooth package. I am using the dpik function from the KernSmooth package and receive the error Warning message: In kappam * Gcounts : longer object length is not a multiple of shorter object length I saw an earlier post , but the issue was using the bkde fxn and the person appeared to be using too small of a bandwidth. However, dpik returns a bandwidth and therefore I am not sure why I am getting this error. If I use dpik and specify scalest to be "stdev" then the fxn works. Secondly, I am using the bkde function and when I put in a ve...
2006 Apr 10
4
has render_component changed?
...ers: {"action"=>"supervisory_commissions_widget", "id"=>nil, "controller"=>"employee", "center_id"=>10} *** END LOG SNIPPET The "id" goes from 25 in the view to nil in the controller. Does anybody know why? -- fxn PS: I should have frozen rails there.