search for: splice

Displaying 20 results from an estimated 364 matches for "splice".

Did you mean: spice
2020 Mar 17
3
new bquote feature splice does not address a common LISP @ use case?
Dear R-devel, There is a new feature in R-devel, which explicitly refers to LISP @ operator for splicing. > The backquote function bquote() has a new argument splice to enable splicing a computed list of values into an expression, like ,@ in LISP's backquote. Although the most upvoted SO question asking for exactly LISP's @ functionality in R doesn't seems to be addressed by this new feature. Is it possible to use new splice feature to create `6 -...
2020 Mar 17
0
new bquote feature splice does not address a common LISP @ use case?
...ght contortion of the syntax because calls are "language lists", and so they could be conceived as collections rather than scalars. However, R is vector-oriented rather than pairlist-oriented, and treating calls as scalars makes the metaprogramming model simpler. This is also how `bquote(splice = TRUE)` works. However `bquote()` and rlang do not treat scalars in the same way. In rlang scalars cannot be spliced, they must be unquoted. ``` bquote(foo(..(function() NULL)), splice = TRUE) #> foo(function() NULL) bquote(foo(..(quote(bar))), splice = TRUE) #> foo(bar) expr(foo(!!!funct...
2009 Jun 09
3
Splicing factors without losing levels
Hi list! An operation that I often need is splicing two vectors: > splice(1:3, 4:6) [1] 1 4 2 5 3 6 For numeric vectors I use this hack: splice <- function(x, y) { xy <- cbind(x, y) xy <- t(xy) dim(xy) <- length(x) * 2 return(xy) } So far, so good (?). But I also need splicing for factors and I tried this: splice <- function(x,...
2008 Sep 16
1
boxplot labelling levels
I want the levels to appear in the boxplot instead of 1 and 2. What do I need to do for that? Here is the dummy code. x<-runif(100,50,80) x1<-runif(100,70,80) True.positives<-c(x,x1) splice<-factor(c(rep("Human.AA.200",100),rep("Human.AA.100",100))) splice<-factor(splice,levels=c("Human.AA.200","Human.AA.100")) svm.perf<-as.data.frame(cbind(True.positives,splice)) boxplot(True.positives~splice,data=svm.perf, ylab="True positives&qu...
2013 Jul 19
6
[PATCH V2 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write
Hi, This patch set fixes two bugs of splice_write in the virtio-console driver. [BUG1] Although pipe->nrbufs is empty, the driver tries to do splice_write. => This induces oops in sg_init_table(). [BUG2] No lock for competition of splice_write. => This induces oops in splice_from_pipe_feed() by bug of any user...
2013 Jul 19
6
[PATCH V2 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write
Hi, This patch set fixes two bugs of splice_write in the virtio-console driver. [BUG1] Although pipe->nrbufs is empty, the driver tries to do splice_write. => This induces oops in sg_init_table(). [BUG2] No lock for competition of splice_write. => This induces oops in splice_from_pipe_feed() by bug of any user...
2004 Jun 02
4
Splicing audio clips into one stream
Is there a Linux tool that will splice several gsm sound clips together into one clip? In my agi script, I would like to use 'get_data' with one clip instead of multiple 'stream_file' so the user doesn't have to listen to the entire spiel before responding. Thanks, -- Michael Welter Introspect Telephony Corp....
2016 Dec 02
2
Too many references: cannot splice
Hello, multiple times per day one of our Dovecot servers has the problem that it suddenly refuses to accept new connections and then floods the logs with these messages: Dec 2 12:43:06 alfa3201 dovecot: pop3-login: Error: fd_send(pop3, 18) failed: Too many references: cannot splice Dec 2 12:43:07 alfa3201 dovecot: pop3-login: Error: fd_send(pop3, 18) failed: Too many references: cannot splice Dec 2 12:43:07 alfa3201 dovecot: imap-login: Error: fd_send(imap, 16) failed: Too many references: cannot splice Dec 2 12:43:07 alfa3201 dovecot: imap-login: Error: fd_send(imap, 16)...
2005 Aug 25
1
'splice' two data frames
Hi, I often need to take columns from two data.frames and 'splice' them together (alternately taking a column from the first data frame, then from the second). For example: x <- table(sample(letters[1:9], 100, replace=TRUE), sample(letters[1:4], 100, replace=TRUE)) y <- prop.table(x) splice <- function (x, y) { z <- matrix(rep(NA, (...
2008 Jan 21
0
Obtaining Midas and splice index values in onechannelGUI
Hello, I've meanwhile got onechannelGUI running (my OS is windows). I'm trying to use it for the analysis of human exon arrays. I was able to load cel files and run them through affymetrix power tools, to obtain normalized affy data. My next step was trying to find differentially spliced exons. The menu offers to calculate either Midas or splice index scores. However, when I try to use Midas, I get the following error message: Midas alternative splice analysis started........ FATAL ERROR: .\TsvFile\TsvFile.cpp:1923: open: Could not open file: 'C:/PROGRA~1/R/R-26~1.1/li...
2014 Nov 13
1
[PATCH 52/56] drivers/char/virtio: support compiling out splice
Compile out splice support from virtio character driver when the splice-family of syscalls is not supported by the system (i.e. CONFIG_SYSCALL_SPLICE is undefined). Signed-off-by: Pieter Smith <pieter at boesman.nl> --- drivers/char/virtio_console.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) di...
2014 Nov 13
1
[PATCH 52/56] drivers/char/virtio: support compiling out splice
Compile out splice support from virtio character driver when the splice-family of syscalls is not supported by the system (i.e. CONFIG_SYSCALL_SPLICE is undefined). Signed-off-by: Pieter Smith <pieter at boesman.nl> --- drivers/char/virtio_console.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) di...
2011 Feb 28
3
[LLVMdev] Extending FunctionType
...e to create a new function with an empty function body with the new > parameter and then clone the body of the old main() function into the new > main() function. I don't think a full clone is necessary, since he wants to replace the function. He only needs to create the new function and splice in the body of the old one. Gabriel: look at Function::getBasicBlockList() and iplist<>::splice(iterator, iplist). Something like Function *NewF = Function::Create(NewFnType, OldF->getLinkage()); NewF->getBasicBlockList().splice(NewF->begin(), OldF->getBasicBlockList()); Ne...
2013 Jul 19
0
[PATCH V2 2/2] [BUGFIX] virtio/console: Add pipe_lock/unlock for splice_write
Add pipe_lock/unlock for splice_write to avoid oops by following competition: (1) An application gets fds of a trace buffer, virtio-serial, pipe. (2) The application does fork() (3) The processes execute splice_read(trace buffer) and splice_write(virtio-serial) via same pipe. <parent> <chi...
2013 Jul 22
4
[PATCH V3 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write
Hi, This patch set fixes two bugs of splice_write in the virtio-console driver. [BUG1] Although pipe->nrbufs is empty, the driver tries to do splice_write. => This induces oops in sg_init_table(). [BUG2] No lock for competition of splice_write. => This induces oops in splice_from_pipe_feed() by bug of any user...
2013 Jul 22
4
[PATCH V3 0/2] [BUGFIX] virtio/console: Fix two bugs of splice_write
Hi, This patch set fixes two bugs of splice_write in the virtio-console driver. [BUG1] Although pipe->nrbufs is empty, the driver tries to do splice_write. => This induces oops in sg_init_table(). [BUG2] No lock for competition of splice_write. => This induces oops in splice_from_pipe_feed() by bug of any user...
2011 Feb 28
2
[LLVMdev] Extending FunctionType
On Mon, Feb 28, 2011 at 5:10 PM, John Criswell <criswell at illinois.edu> wrote: > On 2/28/11 10:04 AM, Frits van Bommel wrote: >> I don't think a full clone is necessary, since he wants to replace the >> function. He only needs to create the new function and splice in the >> body of the old one. > > That is exactly what MakeFunctionClone() does.  It creates a new function > and uses CloneFunctionInto() to create a copy of the instructions in the old > function in the new function.  The old function can be removed afterward if > desired....
2012 Apr 14
0
[LLVMdev] splice problem
Hi all and thank you in advance. I have problem connected with to functions basic blocks list splice, I have tried to splice list of basic blocks one function with another and after delete it, I have replaced all uses of this function with another, I have even tried splice basic blocks of copy of this function, but it also does not help, I have got working byte code and I have compiled it by help...
2009 Jun 19
2
[PATCH] ocfs2: Update atime in splice read if necessary.
We should call ocfs2_inode_lock_atime instead of ocfs2_inode_lock in ocfs2_file_splice_read like we do in ocfs2_file_aio_read so that we can update atime in splice read if necessary. Signed-off-by: Tao Ma <tao.ma at oracle.com> --- fs/ocfs2/file.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 775ac34..95c...
2016 Oct 13
2
Too many references: cannot splice
Hi, A while ago I sent an email regarding these "*ETOOMANYREFS* Too many references: cannot splice." that we've seen since Debian updated the Jessie kernel to 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 while older kernels, like 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 showed no errors at all. I was wondering if no one else is...