search for: evn

Displaying 20 results from an estimated 26 matches for "evn".

Did you mean: even
2019 Jun 18
3
Fast way to call an R function from C++?
...l, 1, R_GlobalEnv); UNPROTECT(1); return val; } // [[Rcpp::export]] SEXP C_test2(SEXP expr, SEXP env) { SEXP val = Rf_eval(expr, env); return val; } // [[Rcpp::export]] SEXP C_test3(SEXP f,SEXP x) { Function fun(f); return fun(x); } ``` R code: ``` testFunc<-function(x){ x=x^2 return(x) } evn=new.env() evn$x=x expr=quote(testFunc(evn$x)) testFunc(evn$x) C_test1(testFunc, evn$x) C_test2(expr,evn) C_test3(testFunc,evn$x) ``` For the results, I run each function 1,000,000 times: - testFunc : 0.47 sec - C_test1 : 2.46 sec - C_test2 : 2.74 sec - C_test3 : 18.86 sec It is clea...
2019 Jun 18
2
Fast way to call an R function from C++?
For reference, your benchmark using UNWIND_PROTECT: > system.time(test(testFunc, evn$x)) user system elapsed 0.331 0.000 0.331 > system.time(test(C_test1, testFunc, evn$x)) user system elapsed 2.029 0.000 2.036 > system.time(test(C_test2, expr, evn)) user system elapsed 2.307 0.000 2.313 > system.time(test(C_test3, testFunc, evn$x)) user s...
2019 Jun 19
0
Fast way to call an R function from C++?
...n belief that C++ code is the fast one... Anyway, thanks again for your suggestions and reference! Best, Jiefei On Tue, Jun 18, 2019 at 2:39 PM I?aki Ucar <iucar at fedoraproject.org> wrote: > For reference, your benchmark using UNWIND_PROTECT: > > > system.time(test(testFunc, evn$x)) > user system elapsed > 0.331 0.000 0.331 > > system.time(test(C_test1, testFunc, evn$x)) > user system elapsed > 2.029 0.000 2.036 > > system.time(test(C_test2, expr, evn)) > user system elapsed > 2.307 0.000 2.313 > > system.ti...
2011 Aug 16
6
Unicorn logging in production env
Hi All, as I can see on https://github.com/defunkt/unicorn/blob/master/lib/unicorn.rb#L53 the?Rack::CommonLogger used only in development env and in weird evn called "deployment". Any chance to add "production" to this case? Serg Podtynnyi
2008 Oct 31
1
Is there a way to vectorize this? [with correction]
...ass to sapply. This is handy when 'code' #* is a vector. f1 <- function(code,align=align){ mark <- unlist(gregexpr("algnmark",code)) #* Get positions of markers if(mark[1]>0){ odd <- seq(1,length(mark),by=2) #* odd elements are starting marker evn <- seq(2,length(mark),by=2) #* even elements are ending marker mark[odd] <- mark[odd]+9 #* These two lines determine the starting mark[evn] <- mark[evn]-1 #* and ending elements of the substring to #* be replaced for(i in 1:length(odd))...
2008 Oct 31
0
Is there a way to vectorize this?
...ass to sapply. This is handy when 'code' #* is a vector. f1 <- function(code,align=align){ mark <- unlist(gregexpr("algnmark",code)) #* Get positions of markers if(mark[1]>0){ odd <- seq(1,length(mark),by=2) #* odd elements are starting marker evn <- seq(2,length(mark),by=2) #* even elements are ending marker mark[odd] <- mark[odd]+9 #* These two lines determine the starting mark[evn] <- mark[evn]-1 #* and ending elements of the substring to #* be replaced for(i in 1:length(odd))...
2007 Mar 23
4
Complex sendmail alias handling.
...ibution of emails for selected accounts on a regular basis. This is for the controlling of the distribution of our "support" email address. In the past I just created a "alias.bas" file to hold the bulk of our aliases and then 3 "support" alias files, alias.wkd, alias.evn and alias.wed (for weekday, evening and weekend day distribution lists) and then used crontab entries to cat the base file and one of the "support" files into the alias file and run newaliases. This worked fine while everyone was working on an 0800-1600 schedule but now we have one perso...
2005 Dec 28
6
coverage does not work
Hi, I''ve installed coverage (gem install coverage) and try to run tests with -rcoverage option on, but following error occurs: ruby: No such file to load -- coverage (LoadError) I try: ruby -rcoverage mytest.rb 1. I have rubygems in evn var RUBYOPT 2. Gem seems to be installed properly (I can read doc via gems, the files exist in the ../gem/... dirs) Does anyone know what is the problem? Thanks in advance Szczepan _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.g...
2007 May 13
1
Strange behavior of debugger
...fun", arg1=as.numeric(a),......) The C files are compiled with: R CMD SHLIB -d myfile.c I am using Win XP + Cygwin, and I have a binary version and a cygwin compiled version of R-2.4.1 installed. This same behavior show up in both installations. One thing is, even though I set the evn DEBUG as T when built R from sourse in Cygwin, the Rgui.exe I got doesn't seem to contain debug info. (although R.exe does) , I am not sure if this means I did something wrong. Appreciate any help. tong
2004 Dec 18
1
changing boxes
...placed with the newer 2.0.7 .conf file as I didn''t have anything non-default set there. The eth0,1,2 cards are detected and setup correctly mirroring exactly the old installation. Shorewall starts and seems to set everything up correctly, for example "route -n" or "arp -evn" list things the same except for the localhost line whereas the new box shows the gateway for the localhost as 127.0.0.1 and the old box had the gateway for the localhost as 127.0.0.1 but that shouldn''t be causing any problems. If I look at the /proc/.../net/ipv4/... values I see...
2010 Dec 08
1
RGL crashes
...ow. I am using Ubuntu Maversick, with dual monitor setup. If I disconnect one monitor, I can resize it "a little bit", but it still craches if I enlarge it to much. I assume that the problem has to do with allocated graphic memory in the kernel, but why is R crashing completely, and not evn giving the usual crash options? Cheers, Rainer > sessionInfo() R version 2.12.0 (2010-10-15) Platform: i686-pc-linux-gnu (32-bit) locale: [1] LC_CTYPE=en_US.utf8 LC_NUMERIC=C [3] LC_TIME=en_US.utf8 LC_COLLATE=en_US.utf8 [5] LC_MONETARY=C LC_MESSAGES=en_US.utf8 [...
2010 Dec 08
1
RGL crashes
...ow. I am using Ubuntu Maversick, with dual monitor setup. If I disconnect one monitor, I can resize it "a little bit", but it still craches if I enlarge it to much. I assume that the problem has to do with allocated graphic memory in the kernel, but why is R crashing completely, and not evn giving the usual crash options? Cheers, Rainer > sessionInfo() R version 2.12.0 (2010-10-15) Platform: i686-pc-linux-gnu (32-bit) locale: [1] LC_CTYPE=en_US.utf8 LC_NUMERIC=C [3] LC_TIME=en_US.utf8 LC_COLLATE=en_US.utf8 [5] LC_MONETARY=C LC_MESSAGES=en_US.utf8 [...
2004 Aug 06
3
cannot get icecast and ices to talk...authenticationfailed
...e same results, icecast is still not accepting 'SOURCE hackme' as the first header, it only wants the password (verified by telneting in). So, how to I recompile libshout2 into the ices2beta? It doesn't want to take the command-line param, or the in.so.conf file setting (or the LIBDIR evn variable)... Or, can someone give me a knwon working ices.conf (ices 0.2.3) and icecast.xml (ver 2) to test with? Or, is there a better streamer that uses the command line? It's tempting to go back to shoutcast, but I'm really interested in getting icecast to work based on the feedback I...
2004 Aug 06
1
cannot get icecast and ices totalk...authenticationfailed
...OURCE hackme' as the first header, it >> only wants the password (verified by telneting in). >> >> So, how to I recompile libshout2 into the ices2beta? It doesn't want to >> take the command-line param, or the in.so.conf file setting (or the >> LIBDIR >> evn variable)... >> >> Or, can someone give me a knwon working ices.conf (ices 0.2.3) and >> icecast.xml (ver 2) to test with? >> >> Or, is there a better streamer that uses the command line? It's >> tempting >> to go back to shoutcast, but I'm really...
2006 Jul 11
0
"uninitialized constant Enum" in RoR app under Apache
...;' The same problem was reported to RMagick list several time but there is no answer yet. http://rubyforge.org/forum/forum.php?thread_id=6851&forum_id=33 http://rubyforge.org/forum/forum.php?thread_id=6690&forum_id=33 What is the problem?? Do I need to provide to Mongrel some magic EVN variables?? How to solve this problem. Does anybody have successful experience with RMagick on Mongrel?? I believe the same problem should be wih FC -- Posted via http://www.ruby-forum.com/.
2004 Dec 01
1
typo
In my previous mail the last line was supposed to be: "It turns out I probably won''t use fork unless support FOR STREAMS is added to it." aslak
2005 Feb 21
1
error in using usrmgr.exe
Hello: I have set up samba PDC using samba 3.0.11. When I use the usrmgr.exe tool on NT4 machine to add user to the domain, it prompts and says: "The following error occurred changeing properties of the user mary: fail find the group" (The error msg actually appears as Chinese in my computer, I just translate the error message). Then I check with the samba log file and it said: group
2004 Aug 06
0
cannot get icecast and ices to talk...authenticationfailed
...s still not accepting 'SOURCE hackme' as the first header, it > only wants the password (verified by telneting in). > > So, how to I recompile libshout2 into the ices2beta? It doesn't want to > take the command-line param, or the in.so.conf file setting (or the LIBDIR > evn variable)... > > Or, can someone give me a knwon working ices.conf (ices 0.2.3) and > icecast.xml (ver 2) to test with? > > Or, is there a better streamer that uses the command line? It's tempting > to go back to shoutcast, but I'm really interested in getting icecast t...
2006 Feb 08
0
possible fraud attempt and phising on my mail logs
...16- Show quoted text - Thanks in advance if anyone can spot the problem here. \n PIX Version 6.3(3) interface ethernet0 auto interface ethernet1 \n auto nameif ethernet0 outside security0 nameif ethernet1 inside \n security100 enable password ** encrypted passwd ** encrypted hostname \n pix-evn domain-name ** clock timezone CST -6 clock summer-time CDT \n recurring fixup protocol dns maximum-length 700 fixup protocol ftp \n 21 fixup protocol h323 h225 1720 fixup protocol h323 ras \n 1718-1719 fixup protocol http 80 fixup protocol rsh 514 fixup \n protocol rtsp 554 fixup protocol sip...
2001 Nov 26
3
Encoding or Playback problem?
Hi all, Have trouble encoding / playing back OGG using WinAmp + plugin. I encoded the files from .WAV with Ogg drop RC2. Seems to be ok. When I try and play them back though I get very very weird sound effects (some kind of "wobbling", some bass frequencies that are usually in the background seem to get more emphasised and they seem to have some kind of strange echo / reverb to it