search for: doit

Displaying 20 results from an estimated 203 matches for "doit".

Did you mean: dgit
2008 Jan 13
2
{worker} after :end-time worker freaks out
...s reached. I verifyed the behavior on two different boxes: 1. Mac OS X 10.5.1 2. Debian Lenny Both using Rub 1.8.6 an backgroundrb 1.0. My Test-Files backgroundrb.yml - - - - - - :backgroundrb: :port: 11006 :ip: localhost :environment: development :schedules: :mytest_worker: :doit: :trigger_args: :start: <%= Time.now + 1.seconds %> :end: <%= Time.now + 1.minute %> :repeat_interval: <%= 10.seconds %> - - - - - - mytest_worker.rb - - - - - - class MytestWorker < BackgrounDRb::MetaWorker set_worker_name :mytest_worker...
2001 Jan 30
4
Link with C code
Hello, I am using cygwin (latest version) and I managed to generate a dll partly with rcmd shlib although there was a problem with both the resouce file (I had to remove "FILEOS VOS__WINDOWS32") and the command line for gcc (--shared is not supported for instance). So I would like to know which compiler/environment you advise to use for windows OS. Then I could load the library in R
2013 Nov 21
3
[LLVMdev] ErrorOr<> conflicts with unique_ptr<>
...ue_ptr<xx>> and I often hit compiler errors that require breaking up expressions to work around. Do you have suggestions on how to code the following simple examples to not error? Can some of these be fixed in ErrorOr.h? Or am I totally not getting something? -Nick struct Foo { void doit(); }; std::unique_ptr<Foo> factoryU() { std::unique_ptr<Foo> f(new Foo); return f; // works as expected } ErrorOr<Foo*> factoryE() { ErrorOr<Foo*> f = new Foo; return f; // works as expected } ErrorOr<std::unique_ptr<Foo>> factoryEU() { std::uniqu...
2010 Jul 19
3
invalid type error
>myDF = data.frame(id=c("A10","A20"),d1=c(.3,.3),d2=c(.4,.4),d3=c(-.2,.5),d4=c(-.3,.6),d5=c(.5,-.2),d6=c(.6,-.4),d7=c(-.9,-.5),d8=c(-.8,-.6)) >doit=function(x)c(x[1],sum_LK_positive=sum(x[-1][x[-1]>0]),sum_LK_negative=sum(x[-1][x[-1]<0])) > myDF id d1 d2 d3 d4 d5 d6 d7 d8 1 A10 0.3 0.4 -0.2 -0.3 0.5 0.6 -0.9 -0.8 2 A20 0.3 0.4 0.5 0.6 -0.2 -0.4 -0.5 -0.6 > t(apply(myDF,1,doit)) Error in sum(x[-1][x[-1] >...
2013 Nov 22
0
[LLVMdev] ErrorOr<> conflicts with unique_ptr<>
...compiler errors that require breaking up expressions to work > around. Do you have suggestions on how to code the following simple > examples to not error? Can some of these be fixed in ErrorOr.h? Or am I > totally not getting something? > > -Nick > > > struct Foo { void doit(); }; > > > std::unique_ptr<Foo> factoryU() { > std::unique_ptr<Foo> f(new Foo); > return f; // works as expected > } > > ErrorOr<Foo*> factoryE() { > ErrorOr<Foo*> f = new Foo; > return f; // works as expected > } > > ErrorOr...
2020 Mar 04
2
Continuing from dbgtrap on different targets
...is simple llvm function: define void @do_break() { entry: call void @llvm.debugtrap() ret void } If I compile that with llc and use lldb to launch a program that calls it, on x86_64 linux (Ubuntu 18.04), here's what I see at the stop: Process 130404 stopped * thread #1, name = 'doit', stop reason = signal SIGTRAP frame #0: 0x0000000000400541 doit`do_break at stub.ll:2:1 (lldb) disas doit`do_break: 0x400540 <+0>: int3 -> 0x400541 <+1>: retq (lldb) register read rip rip = 0x0000000000400541 doit`do_break + 1 at stub.ll:2:1 Note that rip is repo...
2013 May 26
1
[LLVMdev] How to always generate epilogue code?
...tty usable result. (The MC part is already posted to llvm-commits, the other part follows soon. If you are curious the whole patch is here: http://www.redstar.de/ldc/win64eh_all_20130524.diff.) However, in one case I have a problem with LLVM being too smart. Consider the following D code: void doIt() { printf("doIt: start\n"); try { printf("doIt: try\n"); throw new Exception("Failure"); } finally { printf("doIt: finally\n"); } printf("doIt: end\n"); } The code after the throw...
2023 Mar 16
3
Trying to learn how to write an "advanced" function
..., I still do not know how to write and "advanced" function. My most recent try (after looking at the material Ramus and Ivan set) still does not work. I am trying to run the lm function on two different formulae: 1) y~x, 2) y~x+z Any corrections would be appreciated! Thank you, John doit <- function(x){ ds <- deparse(substitute(x)) cat("1\n") print(ds) eval(lm(quote(ds)),parent.frame()) } # define data that will be used in regression y <- 1:10 x <- y+rnorm(10) z <- c(rep(1,5),rep(2,5)) # Show what x, y and z look like rbind(x,y,z) # run formula y...
1999 Dec 13
3
t.test inside function (PR#373)
Full_Name: Bill Simpson Version: 65.1 OS: linux Submission from: (NULL) (193.62.250.209) Try this code as separate lines entered interactively, then try doit() doit<-function() { x<-seq(1,10) y1<-x+rnorm(10,1,1.5) y2<-x+rnorm(10,1,1) t.test(x,y1,paired=TRUE) t.test(x,y2,paired=TRUE) } doit() apparently executes only the last of a series of t.test()s. Maybe this is no bug, but I can't see why this behaviour is shown. -.-.-.-.-.-.-.-.-...
2002 Apr 29
1
Garbage collection: RW1041
Have searched through the archives but have been unable to find any related issues - hopefully I'm not bringing up an old topic. Am using RW1041 on a Windows NT on a machine with 1Gb of memory. Have a function doit() that reads in a chunk of data using readBin, performs a regression, saves out coeffs and then returns. When using Rgui with the default memory limit of 256Mb I'm able to call this function twice before running out of memory. After the allocation fails the GC is called & everything is fre...
1999 Nov 23
0
[PATCH] Adding BSD compatible install script to 1.2pre14.
...39; implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. It can only install one file at a time, a restriction +# shared with many OS's install programs. + + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit="${DOITPROG-}" + + +# put in absolute paths if you don't have them in your path; or use env. vars. + +mvprog="${MVPROG-mv}" +cpprog="${CPPROG-cp}" +chmodp...
2013 Nov 22
3
[LLVMdev] ErrorOr<> conflicts with unique_ptr<>
...I often hit compiler errors that require breaking up expressions to work around. Do you have suggestions on how to code the following simple examples to not error? Can some of these be fixed in ErrorOr.h? Or am I totally not getting something? > > -Nick > > > struct Foo { void doit(); }; > > > std::unique_ptr<Foo> factoryU() { > std::unique_ptr<Foo> f(new Foo); > return f; // works as expected > } > > ErrorOr<Foo*> factoryE() { > ErrorOr<Foo*> f = new Foo; > return f; // works as expected > } > > Err...
2008 Aug 04
1
R init file and source()
...e (corresponding to the environment variable RPROFILE) and the source() function. I'll illustrate my problem with the following simplified contrast implemented in the bash shell (with R 2.7.1). 1. Works fine: allin at myrtle:~/Rfoo$ cat fooProfile1 # nothing here allin at myrtle:~/Rfoo$ cat doit.1 export RPROFILE="fooProfile1" R --no-save --no-init-file --no-restore-data --slave <fooSrc allin at myrtle:~/Rfoo$ cat fooSrc library(graphics) postscript("myfile.ps") allin at myrtle:~/Rfoo$ sh doit.1 (silently produces a well-formed but empty myfile.ps) 2. Doesn't...
2009 Jun 23
3
V2.9.0 changes [Sec=Unclassified]
...----------------------------------------------------------------- setClass('foo', representation=representation(stuff='list', bar='numeric'), prototype=list(stuff=list(), bar=0), contains='.environment') setGeneric('doit', function(.Object, newfoo='environment') standardGeneric('doit')) setMethod('doit', 'foo', function(.Object, newfoo){newfoo@bar <- 10}) z <- new('foo') z@stuff$x <- new('foo') doit(z,z@stuff$x) z@stuff$x@bar [1] 0 ----...
2004 Aug 05
1
tcltk: repeat event while button is down?
Is there a way in TCL/TK to trigger an event multiple times while a button is held down? I'd like to have an rgl scene continuously rotate until the button is released. Duncan Murdoch
2010 Jul 27
4
re-sampling of large sacle data
...51 0.022304377 -0.00825924 0.008330689 -0.168225938 -0.166910351 0.022304377 -0.00825924 0.008330689 -0.168225938 -0.166910351 0.022304377 -0.00825924 0.008330689 -0.168225938 -0.166910351 0.022304377 -0.00825924 0.008330689 -0.168225938 per the dataframe above, step 1: do the following doit=function(x)c(sum_positive=sum(x[-1][x[-1]>0]),sum_negative=sum(x[-1][x[-1]<0])) pos_neg_pool<-t(apply(myDF,1,doit)) if not first run then append the data to the pos_neg_pool step2: reshuffle the data by columns then do step1, this step need to run 10000 times; output...
2004 Apr 02
2
[LLVMdev] Function pointers
...ret int 0 } int %main() { %theKernel = alloca %kernel %puts_kernelPTR = getelementptr %kernel* %theKernel, long 1, ubyte 0 store int ()* %puts_kernel, int ()** %puts_kernelPTR ret int 0 } I want to learn how to achieve the mechanisms in this C code: #include <stdio.h> int DoIt(void); int DoIt(void){ return 0; } int main() { int (*pt2Function) (); int a = DoIt(); printf("a is: %i\n", a); pt2Function = DoIt; int b = pt2Function(); printf("b is: %i\n", b); } Grateful for hints! Anders -----O...
2013 Nov 22
0
[LLVMdev] ErrorOr<> conflicts with unique_ptr<>
...aking up expressions to >> work around. Do you have suggestions on how to code the following simple >> examples to not error? Can some of these be fixed in ErrorOr.h? Or am I >> totally not getting something? >> >> -Nick >> >> >> struct Foo { void doit(); }; >> >> >> std::unique_ptr<Foo> factoryU() { >> std::unique_ptr<Foo> f(new Foo); >> return f; // works as expected >> } >> >> ErrorOr<Foo*> factoryE() { >> ErrorOr<Foo*> f = new Foo; >> return f; // wo...
2010 Jan 05
7
setup schedule cron job every other week?
We have CENTOS 5 on DELL server. I tried to setup schedule cron job to run every other week on Saturday (NOT first and third week ). Does ayone has ideal how to do it? Thanks. ___________________________________________________ ??????? ? ???????????????? http://messenger.yahoo.com.tw/
2011 Oct 05
1
Moderating consequences of garbage collection when in C
...C programmer to request sufficient memory in advance. R_gc_needed might also be re-used at two other locations in memory.c (2221 and 2361) and could be exposed at the R level via a new argument, with default 0, to gc(). %> time R --vanilla -e "dyn.load('gc.so'); x = .Call('doit', 1000000, FALSE)" > dyn.load('gc.so'); x = .Call('doit', 1000000, FALSE) real 0m9.865s user 0m9.697s sys 0m0.146s %> time R --vanilla -e "dyn.load('gc.so'); x = .Call('doit', 1000000, TRUE)" > dyn.load('gc.so');...