search for: dd

Displaying 20 results from an estimated 5760 matches for "dd".

2010 Nov 02
2
[RFC][PATCH] direct-io: btrfs: avoid splitting dio requests for non-btrfs filesystems
Hi, this is about an issue newer kernels show, bysplitting direct I/O requests into 4k pieces to directly merge them in the Block Device Layer afterwards. If anyone is interested in own tests just use a simple command like dd if=/mnt/test/test-dd1 of=/dev/null iflag=direct bs=64k count=1 in combination with blktrace. The following patch is more a proposal for discussion than a solution, well thats what RFC''s are about right. I''m unsure about names, but also if the approach in general is the right way....
2007 Feb 19
5
categorical column to numeric column
Hi R, Let 'dd' be a data frame given as: dd=data.frame(aa=c("a","a","b","a","b","b"),bb=c(1,1,1,2,3,4)) Now I want to create a column 'g' such that if dd$aa=a then dd$g=1 else dd$g= -1 . So, I gave the below syntax: if((dd$aa...
2008 Nov 10
1
question about contrast in R for multi-factor linear regression models?
...nt "lm" coefficients for one factors, but when it comes to the interaction term, I got confused. > options()$contrasts unordered ordered "contr.treatment" "contr.poly" Here is my question: Factor A has 6 levels, B has 2 levels, > levels(dd$A)=c("A1", "A2", "A3", "A4", "A5", "A6") > levels(dd$B)=c("b1", "b2") My question is how to interpret the resultant coefficients. What are the bases of "dd$AA2:dd$Bb2" and "dd$AA3:dd$Bb2", etc....
2011 Jul 05
1
if else loop
Dear R help I was hoping you might be able to show me how to write a loop function take would ccomplish this task. library(prob) { a <- sample ( 1:20, 100, replace=T) b<-sample(5:24,100,replace=T) } dd <- data.frame(a,b) dd # code piece I am looking for if(subset(dd,c(1,23,ordered=F))is found))( print subset) else( continue evaluating subsets) subset(dd,isin(dd,c(1,23), ordered = FALSE)) subset(dd,isin(dd,c(3,23),ordered=F)) subset(dd,isin(dd,c(4,11),ordered=F)) subset(dd,isin(dd,c(7,15),order...
2010 Jun 03
5
auth socket goes away on reload
...rejects the authentication attempt. From the logs: Jun 3 00:23:02 xxx dovecot: dovecot: SIGHUP received - reloading configuration Jun 3 00:23:02 xxx postfix/smtpd[14746]: warning: SASL: Connect to private/auth failed: Connection refused Jun 3 00:23:02 xxx postfix/smtpd[14746]: warning: unknown[dd.dd.dd.dd]: SASL LOGIN authentication failed: Jun 3 00:23:02 xxx postfix/smtpd[14746]: NOQUEUE: reject: RCPT from unknown[dd.dd.dd.dd]: 554 5.7.1 <user at example.com>: Relay access denied; from=<user2 at example.com> to=<user at example.com> proto=ESMTP helo=<localhost.localdo...
2007 Apr 03
2
logfile consistency
We do some routine logfile (syslog) gathering and analysis. I've been looking at extending this to parse the syslog output of dovecot. Hmmm... Ignoring the leading 'date hostname' prefix, some sample lines are: dovecot: imap-login: Login: user=<uuuuuu>, method=PLAIN, rip=dd.dd.dd.dd, lip=dd.dd.dd.dd dovecot: IMAP(uuuuuu): Disconnected: Logged out dovecot: IMAP(uuuuuu): Disconnected in IDLE dovecot: imap-login: Aborted login: rip=dd.dd.dd.dd, lip=dd.dd.dd.dd dovecot: pop3-login: Login: user=<uuuuuu>, method=PLAIN, rip=dd.dd.dd.dd1, lip=dd.dd.dd.dd...
2013 Jun 07
0
[LLVMdev] Build failure (tblgen crash) on Ubuntu
...ableGen' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/csabaraduly/workspace/LLVM/build-clang/lib/TableGen' make[1]: Entering directory `/home/csabaraduly/workspace/LLVM/build-clang/utils' \ SD=/home/csabaraduly/workspace/LLVM/llvm/utils/FileCheck; \ DD=FileCheck; \ if [ ! -f $SD/Makefile ]; then \ SD=FileCheck; \ DD=FileCheck; \ fi; \ if ([ ! -f $DD/Makefile ] || \ command test $DD/Makefile -ot \ $SD/Makefile ); then \ /home/csabaraduly/workspace/LLVM/llvm/autoconf/mkinstalldirs $DD; \ /...
2006 Aug 08
2
Getting data out of a loop
...a <- c( 12, 42,NA, 45, 32, 54) batb <- c( 13, 15, 17,19,21,23) id <- Cs(a,b,b,c,a,b) site <- c(1,1,4,4,1,4) mat1 <- cbind(cata, catb, doga, dogb, rata, ratb, bata, batb) Df <- data.frame(site, id, mat1) nn <- levels(Df$id) Df nn rate <- c(2,3,4) for (i in 1: length(nn)) { dd<- subset(Df, id==nn[i]) scat <- sum(c(dd$cata,dd$catb), na.rm=T) sdog <- sum(c(dd$doga,dd$dogb), na.rm=T) srat <- sum(c(dd$rata, dd$ratb), na.rm=T) sbat <- sum(c(dd$bata,dd$batb), na.rm=T) sss <- c(scat,sdog, srat,sbat) * rate[i] print(sss) }
2009 Oct 28
7
Scripting help please....
Need a scripting help to sort out a list and list all the duplicate lines. My data looks somethings like this host6:dev406mum.dd.mum.test.com:22:11:11:no host7:dev258mum.dd.mum.test.com:36:17:19:no host7:dev258mum.dd.mum.test.com:36:17:19:no host17:dev258mum.dd.mum.test.com:31:17:19:no host12:dev258mum.dd.mum.test.com:41:17:19:no host2:dev258mum.dd.mum.test.com:36:17:19:no host4:dev258mum.dd.mum.test.com:41:17:19:no host4:de...
2004 Dec 20
2
problems with limma
...this message To Gordon Smyth at smyth at vehi,edu.au but it bounced back, so here it is to r-help I am trying to use limma, just downloaded it from CRAN. I use R 2.0.1 on Win XP see the following: > library(RODBC) > chan1 <- odbcConnectExcel("D:/Data/mgc/Chips/Chips4.xls") > dd <- sqlFetch(chan1,"Raw") # all data 12000 > # > nzw <- cbind(dd$NZW1C,dd$NZW2C,dd$NZW3C,dd$NZW1T,dd$NZW2T,dd$NZW3T) > akr <- cbind(dd$AKR1C,dd$AKR2C,dd$AKR3C,dd$AKR1T,dd$AKR2T,dd$AKR3T) > bas <- cbind(dd$NZW1C,dd$NZW2C,dd$NZW3C,dd$AKR1C,dd$AKR2C,dd$AKR3C) > #...
2020 Aug 17
3
[nbdkit PATCH] sh: Prefer dd bs=1 over iflag=count_bytes
While iflag=count_bytes combined with bs > 1 allows for more efficient operation, it is a feature of GNU dd, and not present on other implementations such as BSD. Sticking to just POSIX features makes things more portable. Signed-off-by: Eric Blake <eblake@redhat.com> --- docs/nbdkit-loop.pod | 2 +- docs/nbdkit.pod | 4 ++-- plugins/eval/nbdkit-eval-plugin.pod...
2004 Jun 16
1
subset(..., drop=TRUE) doesn't seem to work.
Hello! If I read ?subset, the workings of the argument drop (to me) seem to imply equivalence of A and B (R 1.9.0): #A dd <- data.frame(rt=rnorm(10), c=factor(gl(2,5))) dd <- subset(dd, c==1) dd$c <- dd$c[, drop=TRUE] table(dd$c) 1 5 #B dd <- data.frame(rt=rnorm(10), c=factor(gl(2,5))) dd <- subset(dd, c==1, drop=TRUE) table(dd$c) 1 2 5 0 So to lose the second level of dd$c, in method B I still ne...
2010 May 20
5
sort a data.frame
Hello,   I have a dataframe: dd <- data.frame(b = c("chr2", "chr1", "chr15", "chr13"),         x = c("A", "D", "A", "C"), y = c(8, 3, 9, 9),         z = c(1, 1, 1, 2))   >dd       b x y z 1  chr2 A 8 1 2  chr1 D 3 1 3 chr15 A 9 1 4 chr13 C 9 2...
2007 Dec 09
4
Arguments become nonnumeric
Dear Everybody, Enclosed are the tiny beginning of a program and its output. As a pity, if I load the image <load("kanal.RData")> the elements of <de.dd> are non numerical; <de.dd[2]+de.dd[3]> returns <Fehler in de.dd[2] + de.dd[3] : nicht-numerisches Argument f??r bin??ren Operator>. How can I keep the numbers numerical? Thank you in advance. hopefully, Mag. Ferri Leberl -------------- n?chster Teil -------------- #Programm zur Erst...
2003 May 31
3
function to populate a matrix based on a lookup to another matrix ?
...named 'lookup' with the following values: 1 2 3 4 1 0.000000 2.828427 5.656854 8.485281 2 2.828427 0.000000 2.828427 5.656854 3 5.656854 2.828427 0.000000 2.828427 4 8.485281 5.656854 2.828427 0.000000 I then create a new empty matrix named 'dd' with specfic row and col names : 1 3 4 3 3 1 1 NA NA NA NA NA NA 2 NA NA NA NA NA NA 3 NA NA NA NA NA NA 4 NA NA NA NA NA NA 3 NA NA NA NA NA NA 2 NA NA NA NA NA NA 1 NA NA NA NA NA NA I want to be able populate the cells in 'dd' using 'lookup' based on the spe...
2008 Oct 20
5
SIGBART/SIGSEGV while SELECTing virtual folder
...ses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... (gdb) r Starting program: /tmp/dd/libexec/dovecot/imap * PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT THREAD=REFERENCES MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTE NDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH SEARCHRES WITHIN CONTEXT=SEARCH] Logg ed in as lars . SELECT virtual/all...
2006 Mar 07
2
ipw can not work in adhoc mode
...//www.FreeBSD.org/cgi/search.cgi" method="get"> <div> <h2 class="blockhide"><label for="words">Search</label></h2> <input type="hidden" name="max" value="25" /><input type="hidden" name="source" value="www" /><input id="words" name="words" type="text" size="20" max...
2010 Dec 13
3
Slow I/O on ocfs2 file system
Hello, I have found, that ocfs2 is very slow when doing I/O operation without cache. See a simple test: ng-vvv1:~# dd if=/data/verejna/dd-1G bs=1k | dd of=/dev/null 1048576+0 records in 1048576+0 records out 1073741824 bytes (1.1 GB) copied, 395.183 s, 2.7 MB/s 2097152+0 records in 2097152+0 records out 1073741824 bytes (1.1 GB) copied, 395.184 s, 2.7 MB/s The underlying block device is quite quick: ng-vvv1:~# d...
2003 Nov 19
2
as.double( factor(something) )??
It's in the FAQ, Q7.12. On Wed, 19 Nov 2003, RenE J.V. Bertin wrote: > After converting a numeric variable into a factor, is there a way to convert it back to the original values? as.double() doesn't do that correctly, for evident reasons (I guess) and as shown below. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics,
2009 Sep 26
5
raidz failure, trying to recover
...RADED c0t0d0 ONLINE c0t1d0 ONLINE replacing ONLINE c0t2d0 ONLINE c0t7d0 ONLINE c0t3d0 UNAVAIL cannot open c0t4d0 ONLINE c0t5d0 ONLINE c0t6d0 ONLINE Additional devices are known to be part of this pool, though their exact configuration cannot be determined. Now i should have enough online devices to mount and get my data off however no luck. I''m not really sure where to go at this point. Do i have to fake a c0t3d0 drive so it th...