search for: my_cod

Displaying 7 results from an estimated 7 matches for "my_cod".

Did you mean: my_code
2008 Mar 11
1
syncing multiple instances of code in same tree
Hi - rsync newbie here. I have a situation where I have multiple instances of CMS website code living in the same root directory and having parallel dir structures, so something like this: /my_code/root_dir/instance_1 /my_code/root_dir/instance_2 /my_code/root_dir/instance_3 each instance_n has the same directory structure and owns the same files for the most part with small isolated customer additions (image files, etc.). I'd like to sync all instances from an updated version of the c...
2005 Dec 04
4
Construct a data.frame in a FOR-loop
Say I have a FOR-loop for computing powers (just a trivial example) for(i in 1:5) { x<-i^2 y<-i^3 } How can I create a data.frame and a 3D plot of (i,x(i),y(i)), i.e. for each iteration Thanks, Serguei Kaniovski -- ___________________________________________________________________ ??sterreichisches Institut f??r Wirtschaftsforschung (WIFO) Name: Serguei Kaniovski
2012 Sep 12
6
How to append the random no.s for different variables in the same data.frame
...elpers, (At the outset I sincerely apologize if I have not put forward my following query properly, though I have tried to do so.) Following is a curtailed part of my R - code where I am trying to generate say 100 random no.s for each of the products under consideration. library(plyr) n = 100 my_code = function(product, output_avg, output_stdev)     { BUR_mc = rnorm(n, output_avg, output_stdev) sim_BUR = data.frame(product, BUR_mc) write.csv(data.frame(sim_BUR), 'sim_BUR.csv', row.names = FALSE)   return(list(output_avg, output_stdev))     } result <- dlply(.data = My_data,...
2009 Aug 26
1
rsync proxy
...one 'server') and each piece of code executes a copy of rsync, and copies move in one direction (server -> client). I have been able to run rsync on the 'server' end by calling it with -- server --sender and so on. On the client end I have rsync call my code with -e "my_code", however I am trying to make it so that on the 'client' end, I can have my code call rsync, instead of the other way around. When I call --server on the 'client' end, rsync seems to handshake OK, but I get buffer overflow errors: <snip> ERROR: buffer overflow in...
2008 Oct 01
10
Recaptcha (or other captchas)
Does anyone have any suggestions for a best practice implementation of Recaptcha (or other captchas - if you recommend going another route, I''m all ears)? I''ve found the recaptcha gem and a plugin but I don''t know which is the best implementation, and I haven''t found a thorough tutorial plus example code for either. Thanks -- Posted via
2008 Jan 30
9
catching errors, rspec basics
Trying to spec the following but don''t know if I''m using the right matcher. How do I spec? Plz, sugar on tops. Audience.stats - should have a stats of 80 when passed a flux of 10 - should return an error when passed a string (ERROR - 1) 1) TypeError in ''Audience.stats should return an error when passed a string'' String can''t be coerced into Fixnum
2008 Oct 15
0
R-help Digest, Vol 67, Issue 31
...at r-project.org Message-ID: <14541829810812721 at webmail.iastate.edu> Dear R's friends, I have a C code with a lot of SEXP objects and I want to return them as a list. Does any function I can use in SET_VECTOR_ELT() as mkChar() in SET_STRING_ELT()? For example, this is my code, SEXP my_code(){ int i; SEXP a1, a2, a3, res, res_names; char *names[3] = {"a1", "a2", "a3"}; PROTECT(a1 = allocVector(REALSXP, 3)); PROTECT(a2 = allocVector(REALSXP, 4)); PROTECT(a3 = allocVector(REALSXP, 5)); PROTECT(res = allocVector(LISTSXP, 3)); PROTECT(res...