search for: dup

Displaying 20 results from an estimated 1060 matches for "dup".

Did you mean: dp
2009 Aug 19
1
[PATCH] Correct checks for dup failure in guestfs_launch
...tp://www.annexia.org/fedora_mingw -------------- next part -------------- >From 8f1b06f64807239d4b4c923af4db8626a866ff6f Mon Sep 17 00:00:00 2001 From: Richard Jones <rjones at trick.home.annexia.org> Date: Wed, 19 Aug 2009 09:37:44 +0100 Subject: [PATCH] guestfs_launch: Correct checks for dup failure. --- src/guestfs.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/guestfs.c b/src/guestfs.c index 58a0354..04bd4e8 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -1165,16 +1165,16 @@ guestfs_launch (guestfs_h *g) close (wfd[1]); clos...
2008 Nov 06
3
.C(..., DUP=FALSE) memory costs depending on input size?
...C function, see below. Is there anything I'm missing that can explain this input-size dependent latency? The only reason I can think of is that these vectors are being copied along the way. What follows is both the R and C code which I use only for testing and a plot of both measurements with DUP=TRUE and DUP=FALSE: (RED: DUP=FALSE, GREEN: DUP=TRUE) http://www.nabble.com/file/p20368695/CandR.png R code: ---------- # sequence from 512 to 2^23 with 2^17 stepsize a <- seq(512, 2^23, 2^17) # storage for wall time h <- length(a); j <- length(a) for (i in 1:length(a)) { x &lt...
2010 Jan 15
3
Latent Profile Analysis Package?
I´ve several packages for latent class analysis, but I was wondering if there is a package for continuos variables, which allows latent prfile analysis. Thanks for your help in advance, J Toledo _________________________________________________________________ cial-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092 [[alternative HTML version deleted]]
2001 Mar 22
1
lazy evaluation and DUP=F
I am having some difficulty understanding the implication of lazy evaluation mixed with DUP=F in a .Fortran call. In qr.qty from base DUP is not used as an argument so defaults to T. I am calling qr.qty with a very large array and would like to set DUP=F in the .Fortran call so that qr.qty would be defined as copied below. Is there some risk that a variable used as the argument in the or...
1998 Nov 26
1
Saving memory usage -- .C(....., DUP = FALSE) danger?
...t;- runif(50000) > u2 <- runif(50000) > gc() free total Ncells 96534 200000 Vcells 114006 250000 debug(hist.default) quickly revealed that the error was produced when .C("bincount",....) was called. Looking at the help, help(.C) and then at the "DUP = TRUE" default argument to .C(.), I was reminded that every argument is first copied before being passed to bincount(). Setting the "DUP = FALSE" argument in hist.default made it work with the above 50000 doubles. But then I wondered ``more generally'' : What exactly hap...
2007 Oct 10
2
documentation of .C (PR#9948)
Full_Name: Martin Schlather Version: R version 2.7.0 Under development (unstable) (2007-10-01 r43043) OS: Linux Submission from: (NULL) (91.3.209.203) Hi, There are 2 dangers with using 'DUP=FALSE' mentioned: * formal arguments * lists Would you also mention a third one, namely that values in R are now only referenced whenever possible and not always copied; hence .C(..., DUP=FALSE) may change the values of other local variables. E.g., with C code void addone(double *x...
2012 Sep 10
4
Identifying duplicate rows?
Hi, I am trying to identify duplicate values in a column in a date frame. The duplicated function identifies the duplicate rows in the data frame but it only does this for the second record, not both records. Is there a way to mark both rows in the data frame as TRUE? dfA$dups<-duplicated(dfA$Value) dfA Site State Value dups...
2008 Feb 14
1
Avoiding transferring duplicate files
Hi All, I have a 75GB collection of data, including a lot of duplicated files, on a NTFS network drive. I want to backup that data across a DSL link to a Linux host. Currently I use cwrsync on a Windows machine to act as server to the Linux rsync client. I want to avoid transferring duplicated data, as the DSL link is a far more significant factor than comp...
2011 Jul 11
4
extremely slow syncing on btrfs with 2.6.39.1
...1m5.552s user 0m0.000s sys 0m2.102s $ time sync real 1m16.830s user 0m0.001s sys 0m1.490s $ df -h / /home Filesystem Size Used Avail Use% Mounted on /dev/root 47G 33G 7.7G 82% / /dev/sdb5 652G 216G 421G 34% /home $ btrfs fi df / Data: total=35.48GB, used=29.86GB System, DUP: total=16.00MB, used=12.00KB System: total=4.00MB, used=0.00 Metadata, DUP: total=4.50GB, used=1.67GB $ btrfs fi df /home Data: total=310.01GB, used=209.53GB System, DUP: total=8.00MB, used=48.00KB System: total=4.00MB, used=0.00 Metadata, DUP: total=11.00GB, used=2.98GB Metadata: total=8.00MB, us...
2017 Oct 09
5
Why dup()?
...ad stdout from ssh, weren't seeing EOF from the remote session.? It was being sent, but lost.? I tracked it down to the following code, in ssh.c, at ssh_session2_open: ??????? if (stdin_null_flag) { ??????????????? in = open(_PATH_DEVNULL, O_RDONLY); ??????? } else { ??????????????? in = dup(STDIN_FILENO); ??????? } ??????? out = dup(STDOUT_FILENO); ??????? err = dup(STDERR_FILENO); The remote session did close stdout.? The sshd from which it was spawned signaled to close stdout.? The ssh program received that signal and closed, well, something, but not stdout.? It closed a copy....
2013 Nov 04
1
ggplot2: Add '+' operator for aes (uneval) objects
...+-operator for aes (i.e. uneval) objects (as there is for themes and gg objects)? I had a couple of cases where such an operator would be useful, for instance to combine the result of aes and aes_string in functions. Any flaws with the following proposition: `+.uneval` <- function(e1, e2) { dup <- names(e1) %in% names(e2) if (any(dup)) { duplist <- paste(sQuote(names(e1)[dup]), collapse = ", ") msg <- sprintf(ngettext(length(dup), "element %s occurs in both summands - second one gets precedence", "elements %...
2001 Feb 06
1
AW: Proposal: Generalizing unique() and duplicated()
On Tuesday 06 February 2001 12:36, Dr. Jens Oehlschlägel wrote: > I like the idea. Why don't you call duplicated.matrix() directly in > unique.matrix() and duplicated.data.frame() in unique.data.frame() ? > > Jens Oehlschlägel Good point. I guess I got carried away with using methods (having just gotten the hang of the concept). :-) Anyway, here's a corrected version: -----------------...
2017 Oct 20
3
Why dup()?
I've been using ssh without it duping stdout and stderr, and had no problems.? I think this change should be made to the master source. WHAT IS THE PROBLEM WITH SSH RIGHT NOW? It duplicates FILENO_STDOUT and FILENO_STDERR, thus there are two descriptors for each of these files.? When the remote program closes its stdout or stder...
2000 Sep 07
1
.C and DUP=TRUE versus .Call
Hi Everyone, I have a piece of C code that uses R_alloc, and so I set DUP=TRUE in the call using ".C". As I understand it this takes a copy of each object passed to my function. If these objects are large then this could be expensive. My question is, if I rewrote the code to use .Call, would I avoid this duplication by using the objects themselves (they are...
2009 Aug 19
2
[PATCH libguestfs] guestfish: detect a few more failed syscalls
...perror ("pipe failed"); + return -1; + } pid = fork (); if (pid == -1) { perror ("fork"); @@ -760,7 +766,10 @@ issue_command (const char *cmd, char *argv[], const char *pipecmd) if (pid == 0) { /* Child process. */ close (fd[1]); - dup2 (fd[0], 0); + if (dup2 (fd[0], 0) < 0) { + perror ("dup2 of stdin failed"); + _exit (1); + } r = system (pipecmd); if (r == -1) { @@ -770,9 +779,16 @@ issue_command (const char *cmd, char *argv[], const char *pipecmd) _exit (WEXITSTATUS (r...
2010 May 04
2
sched provider
Hi All, I used the following script from the dtrace manual to measure how long a particular process runs on the cpu. Modified it to look at the exact timestamps: [i] sched:::on-cpu { self->ts = timestamp; printf("on=%d\n", self->ts) } sched:::off-cpu /self->ts/ { printf("off=%d\n", timestamp) self->ts = 0; } [/i] The output looks like this: [i]on=24591 off=24603
2010 Nov 13
2
[LLVMdev] powerpc32: llvm-2.8 make-check failures
...ting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. - -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90 FAIL: LLVM :: Transforms/TailDup/if-tail-dup.ll (5207 of 5496) ******************** TEST 'LLVM :: Transforms/TailDup/if-tail-dup.ll' FAILED ******************** Script: - -- opt < /home/llvm/work/src/llvm-2.8/test/Transforms/TailDup/if-tail-dup.ll -tailduplicate | llc -march=x86 -o /home/llvm/work/src/llvm-2.8/test/T...
1999 Jan 22
1
two questions
A non-text attachment was scrubbed... Name: not available Type: text Size: 722 bytes Desc: not available Url : https://stat.ethz.ch/pipermail/r-help/attachments/19990122/cea14ffd/attachment.pl
2012 May 11
0
[patch] Behavior of .C() and .Fortran() when given double(0) or integer(0) (repost).
...g down some hard-to-reproduce bugs in a package I maintain, I stumbled on a behavior change between R 2.15.0 and the current R-devel (or SVN trunk). In 2.15.0 and earlier, if you passed an 0-length vector of the right mode (e.g., double(0) or integer(0)) as one of the arguments in a .C() call with DUP=TRUE (the default), the C routine would be passed NULL (the C pointer, not R NULL) in the corresponding argument. The current development version instead passes it a pointer to what appears to be memory location immediately following the the SEXP that holds the metadata for the argument. If the arg...
2006 Aug 08
2
win32 eventlog dup
...on the win2k3 server (domain controller). > > it has _not_ segfault on my winxp pro though. > > > > # -----Original Message----- > # From: Pe?a, Botp > # Sent: Tuesday, August 08, 2006 8:52 AM > # To: ''Daniel Berger'' > # Subject: RE: win32 eventlog dup > # > # Hi Daniel, > # > # I''m afraid it''s not stable enough yet. > # Running it on our server, it segs (but not immediately). > # Catch is, it is not eventlog but windows-pr... > # > # c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.5.2-mswin32/lib/wi >...