search for: inp

Displaying 20 results from an estimated 261 matches for "inp".

Did you mean: in
2009 Jun 11
2
How to force R to print 2 decimal places in column of a data.frame?
How to force R to print 2 decimal places in column of a data.frame? I tried to do so: x = inp(format(rounf(inp$Tamanho, 2), nsmall = 2),) where "INP" is data.frame and "Size" is the name of column. But has error: Error in eval.with.vis(expr, envir, enclos) : could not find function "inp" Lesandro Veja quais s?o os assuntos do momento no Yahoo! +Bu...
2009 Mar 21
1
How to avoid switching on input type?
...and fill the holes with 0's. The code below works, but it looks ugly. I could write a function lag.zerofill() which calls the two functions below depending on the class() of the item passed in, but that feels very unlike R. What is the proper way to write this code so that it works for all input types? Is a switch depending on the input type really necessary? I am hoping the answer is "no". Thanks in advance. - Ken # ----------------------------------------------------------------------------------- require( zoo ); inp <- c( 5, 9, 4, 2, 1 ); inp2 <- c( 6, 6, 0, 4...
2020 May 12
4
CentOS7 and NFS
...(400 cores). All the servers are running CentOS 7, the cluster is running CentOS6. Time to time on the server I get: ?kernel: NFSD: client xxx.xxx.xxx.xxx testing state ID with incorrect client ID And the client xxx.xxx.xxx.xxx freeze whith: ?kernel: nfs: server xxxxx.legi.grenoble-inp.fr not responding, still trying ?kernel: nfs: server xxxxx.legi.grenoble-inp.fr OK ?kernel: nfs: server xxxxx.legi.grenoble-inp.fr not responding, still trying ?kernel: nfs: server xxxxx.legi.grenoble-inp.fr OK There is a discussion on RedHat7 support about this but only open t...
2020 Jan 13
4
ssh failure from CentOS7 to Centos6
...AN. No idea about this problem. On the server kareline (client is most8pc25), tcpdump says: tcpdump: listening on p5p1, link-type EN10MB (Ethernet), capture size 65535 bytes 18:17:25.844816 IP (tos 0x0, ttl 64, id 19021, offset 0, flags [DF], proto TCP (6), length 60) ??? most8pc25.legi.grenoble-inp.fr.36414 > kareline.legi.grenoble-inp.fr.ssh: Flags [S], cksum 0xfff1 (correct), seq 3060883003, win 26880, options [mss 8960,sackOK,TS val 2888822 ecr 0,nop,wscale 7], length 0 18:17:25.844927 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52) ??? kareline.legi.grenoble-...
2004 Apr 20
1
[patch] Raw sockets in jails
...clude <sys/param.h> +#include <sys/jail.h> #include <sys/kernel.h> #include <sys/lock.h> #include <sys/mac.h> @@ -505,6 +506,7 @@ } } +extern int jail_allow_raw_sockets; u_long rip_sendspace = RIPSNDQ; u_long rip_recvspace = RIPRCVQ; @@ -527,7 +529,11 @@ INP_INFO_WUNLOCK(&ripcbinfo); return EINVAL; } - if (td && (error = suser(td)) != 0) { + if (td && jailed(td->td_ucred) && !jail_allow_raw_sockets) { + INP_INFO_WUNLOCK(&ripcbinfo); + return (EPERM); + } + if (td && (error = suser_cred(td->td_ucred,...
2011 Sep 09
3
Read a list of files into named R data.frames
...- read.csv("Allstar.csv", header=TRUE) ... > TeamsHalf <- read.csv("TeamsHalf.csv", header=TRUE) Below is what I tried, which reads all the files, but doesn't create the R objects in the global environment. What is missing here? for (i in 1:length(files)) { inp <- read.csv(file=files[i], header=TRUE) name <- sub(".csv", "", files[i]) cat("Read ", files[i], "\trows: ", nrow(inp), " cols: ", ncol(inp), "\n") eval(paste(name, "<- inp")) } Read Allstar.csv r...
2013 Sep 23
28
[PATCH 0/2] add LZ4 kernel decompression support
Linux 3.11 added respective support, so I think we should follow suit. 1: xen: add LZ4 decompression support 2: libxc: add LZ4 decompression support Signed-off-by: Jan Beulich <jbeulich@suse.com>
2020 May 12
2
CentOS7 and NFS
...S6. >> >> Time to time on the server I get: >> >> ????? kernel: NFSD: client xxx.xxx.xxx.xxx testing state ID with >> ???? incorrect client ID >> >> And the client xxx.xxx.xxx.xxx freeze whith: >> >> ????? kernel: nfs: server xxxxx.legi.grenoble-inp.fr not responding, >> ???? still trying >> ????? kernel: nfs: server xxxxx.legi.grenoble-inp.fr OK >> ????? kernel: nfs: server xxxxx.legi.grenoble-inp.fr not responding, >> ???? still trying >> ????? kernel: nfs: server xxxxx.legi.grenoble-inp.fr OK >> >>...
2008 Jan 24
1
Sliding Window Time Series Analysis - hourly rainfall
...o be able to aggregate this using a sliding window approach- i.e. a new 24 hourly total is calculated for each hours rainfall. I'm struggling to understand how this might be achieved - currently I've tried looping a sum function to re-calculate a new total at every stage of the loop. for (inp[[9]] in 1:length(inp[[9]])){data.frame(x<-sum(inp[y:y+24,9]))} where inp is the data frame object and [[9]] is the column containing rainfall. y is used to try and get the previous 24 hours total however in it's current state it seems useless. If anyone could give me some pointers i'd...
2012 Jun 14
1
read.table and variable length of tables
Hi, I am trying to read in weather balloon data, where each file has a header of fixed length and a trailing section of a fixed length. The data section (the table) is of variable length. An example of the data is on: http://weather.uwyo.edu/cgi-bin/sounding?region=naconf&TYPE=TEXT%3ALIST&YEAR=2011&MONTH=06&FROM=1400&TO=1400&STNM=04018 This data has 97 rows and can be
2020 Jul 09
1
CentOS7 and NFS
...;>>> >>>> ????? ?kernel: NFSD: client xxx.xxx.xxx.xxx testing state ID with >>>> ????? incorrect client ID >>>> >>>> And the client xxx.xxx.xxx.xxx freeze whith: >>>> >>>> ????? ?kernel: nfs: server xxxxx.legi.grenoble-inp.fr not responding, >>>> ????? still trying >>>> ????? ?kernel: nfs: server xxxxx.legi.grenoble-inp.fr OK >>>> ????? ?kernel: nfs: server xxxxx.legi.grenoble-inp.fr not responding, >>>> ????? still trying >>>> ????? ?kernel: nfs: server xxx...
2014 Jan 06
1
Re: [PATCH 2/2] lib: utf16: Fix const-correctness issues in _hivex_recode function.
On Tuesday 31 December 2013 14:27:11 Richard W.M. Jones wrote: > This patch assumes that iconv doesn't actually modify the > input buffer, even though it is declared as char *. > --- > [...] > @@ -51,10 +51,11 @@ _hivex_recode (char *input_encoding, const char > *input, size_t input_len, errno = err; > return NULL; > } > - char *inp = input; > + const char *inp = input; > char *outp =...
2005 May 05
1
FreeBSD Security Advisory FreeBSD-SA-05:08.kmem
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ============================================================================= FreeBSD-SA-05:08.kmem Security Advisory The FreeBSD Project Topic: Local kernel memory disclosure Category: core Module: sys Announced: 2005-05-06
2013 Dec 31
2
[PATCH 1/2] lib: write: Remove unused variable.
--- lib/write.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/write.c b/lib/write.c index 8c4dd8e..384c6b2 100644 --- a/lib/write.c +++ b/lib/write.c @@ -954,7 +954,6 @@ hivex_node_set_values (hive_h *h, hive_node_h node, for (i = 0; i < nr_values; ++i) { /* Allocate vk record to store this (key, value) pair. */ static const char vk_id[2] = { 'v', 'k' }; -
2020 May 13
2
CentOS7 and NFS
...>>>> >>>> ????? kernel: NFSD: client xxx.xxx.xxx.xxx testing state ID with >>>> ???? incorrect client ID >>>> >>>> And the client xxx.xxx.xxx.xxx freeze whith: >>>> >>>> ????? kernel: nfs: server xxxxx.legi.grenoble-inp.fr not responding, >>>> ???? still trying >>>> ????? kernel: nfs: server xxxxx.legi.grenoble-inp.fr OK >>>> ????? kernel: nfs: server xxxxx.legi.grenoble-inp.fr not responding, >>>> ???? still trying >>>> ????? kernel: nfs: server xxxxx.le...
2013 Jun 18
1
deSolve question
Dear All wonder if you could provide some insights on the following: currently I have this code which produces the expected results: require(deSolve) pars <- list(k = 0.08,v=15) intimes <- c(0,0.5,12) input <- c(800,0,0) forc <- approxfun(intimes, input, method="constant", rule=2) derivs <- function(t, state, pars) { inp <- forc(t) dy1 <- - pars$k * state[1] + inp/pars$v return(list(c(dy1))) } model <- function(pars, times=seq(0, 13, by = 0.01)) { state <-...
2009 Mar 21
4
Problem with zoo and rbind() converting matrix to vector
require( zoo ) inp <- c( 5, 9, 4, 2, 1 ); m <- zoo( cbind( inp ), as.Date("2003-02-01") + (0:(length(inp)-1))); dim( m ) # [1] 5 1 dim( m[1,,drop=FALSE] ) # [1] 1 1 - ok dim( lag( m, -1 )) # [1] 4 1 - ok dim( rbind( m[1,,drop=FALSE], lag(m,-1) )) # NULL - converted from zoo matrix to zoo vector!?!? #...
2020 Jun 01
3
CentOS7 and NFS
...S6. >> >> Time to time on the server I get: >> >> ???? ?kernel: NFSD: client xxx.xxx.xxx.xxx testing state ID with >> ???? incorrect client ID >> >> And the client xxx.xxx.xxx.xxx freeze whith: >> >> ???? ?kernel: nfs: server xxxxx.legi.grenoble-inp.fr not responding, >> ???? still trying >> ???? ?kernel: nfs: server xxxxx.legi.grenoble-inp.fr OK >> ???? ?kernel: nfs: server xxxxx.legi.grenoble-inp.fr not responding, >> ???? still trying >> ???? ?kernel: nfs: server xxxxx.legi.grenoble-inp.fr OK >> >>...
2006 Nov 22
9
Way to interpolate a variable sent to $()
...ds that I need to be able to switch on and off using one of a few hashes. In the example below I''m trying to get one to work. The problem occurs when I try to use the hash key to get a document id. Is there a way to get a document id with a key from the hash below? Javascript: var my_inputs = { status : 1 name : 0; }; $H(my_inputs).each( function(inp) { if ( inp.value == 1 ) { $(inp.key).show; } else { $(inp.key).hide; } }); HTML: <div id="status" class="frow"> <label for="status">Status:</label> <select...
2020 May 15
2
CentOS7 and NFS
...eadahead (blockdev ?setra) on the filesystem? On the client side, changing the mount options helps. The default read/write block size is quite little, increase it (rsize, wsize), and use noatime. Cheers, Barbara > On 15 May 2020, at 09:26, Patrick B?gou <Patrick.Begou at legi.grenoble-inp.fr> wrote: > > Le 13/05/2020 ? 15:36, Patrick B?gou a ?crit : >> Le 13/05/2020 ? 07:32, Simon Matter via CentOS a ?crit : >>>> Le 12/05/2020 ? 16:10, James Pearson a ?crit : >>>>> Patrick B?gou wrote: >>>>>> Hi, >>>>>>...