search for: sec3

Displaying 4 results from an estimated 4 matches for "sec3".

Did you mean: sec
2006 Oct 24
0
incorrect number of subscriptions error in user-written function
...different selections - for example all the combinations of "3 chosen from 6" combined with "5 chosen from 8" combined with "2 chosen from 4". Loading gtools I can generate the combinations for each selection sec1 = combinations(4,2,1:4) sec2 = combinations(6,3,5:10) sec3 = combinations(8,5,11:18) I then wrote a function to combine the combinations for each selection. multiperm <-function(x, y) # function to combine combinations { xdim = nrow(x) xcol = ncol(x) ydim = nrow(y) ycol = ncol(y) v1 = matrix( nrow = xdim*ydim, ncol = xcol+ycol ) for ( i in...
2007 Apr 13
3
RJS - replacing html for multiple entries
I have some elements that could show up on the same page multiple times. Can anyone recommend a good way to do a replace_html in this case? I may have, for example, 3 posts that have been repeated on a page, all with the same id (e.g, <div id="post-11">) and I want to perform a replace_html against all of them. Doing it the normal way just replaces the first. Can someone help?
2006 Aug 13
7
you can pass multiple parameters using link_to? anything bad
i just found out i can pass mutiple parameters from views like <%= link_to doctype.name, :action => "show_towns", :id => doctype.name, :id2 => doctype.id%> silly me, i always had the impression that i could only pass 1. i guess i dont have to use sessions after all for my site. is there anything wrong with this? basically instead of the user filling out
2007 Mar 07
10
Long URLs - New to Mongrel
My rails web app (rails 1.2.1) uploads an image from a Java applet by encoding it into the URL. This works fine when I''m using Webrick. I''m trying out Mongrel today, and I''m getting an error in Safari that says ?lost network connection? (NSURLErrorDomain:-1005). I get something similar in Firefox. Is there a way to make Mongrel accept a really long URL like