search for: some_list

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

2006 Jul 26
3
insert_html inserting fragment twice
Has anyone had trouble with inline RJS insert_html with the latest version of Rails? My problem is that insert_html inserts the html fragment twice. For example, render :update do |page| page.insert_html :top, "some_list", "<li>booyow</li>" end would render "<li>booyow</li>" twice. Thanks. -- Posted via http://www.ruby-forum.com/.
2009 Jan 15
2
Partial function application in R
...<- function( f, ... ) { args <- list(...) function(...) f( ..., unlist(args) ) } Its purpose, if not clear, is to return a function with part of its arguments bound to specific values, so that I can for example create and use functions like this: q1 <- bind( quantile, 0.25 ) lapply( some_list, q1 ) It's been a lot of work and unfortunately is not perfect. My bind applies arguments only using positional rule. What I dream of is a function bind2 that would apply keyword arguments, like: plot_lines <- bind2( plot, type="l" ) which would return function(...) plot( type=&...
2006 Sep 16
3
put procmail between postfix and dovecot
...x set up to deliver all email for marco at domain1.net to /var/mail/vhosts/marco_domain1.net/ Everything is fine, as far as postfix is concerned: all email to marco at domain1.net goes in that mailbox, dovecot sees it, etc... Now I need to add sorting all incoming email in subfolders: mail from SOME_LIST to marco_domain1.net/SOMELIST/ (lots of other rules for custom folders) all else to main inbox I have to do all this sorting with procmail for two reasons: - I want to have as little sw as possible on that server, and update it semi-automatically, if possible only from the official repositori...
2006 Sep 27
3
multidimensional lists
In the process of moving a number of my scripts from MATLAB -> R, I've discovered that there is no 'pure' equivalent of MATLAB's cell arrays, which I use quite often. Basically, I create matrices (as a cell array) where each element of the matrix is itself a matrix (e.g., 2x2 cell array where each element of the array is another matrix). I pass these cell arrays to various