search for: env

Displaying 20 results from an estimated 5827 matches for "env".

Did you mean: end
2013 Jul 20
7
Failure to Launch (was override -q option)
Attached is the very verbose ssh output. Just to be perverse, this time two nodes lost connectivity. The only thing I see is lines saying that the two connections are lost, although being honest I have no idea what everything else means. For reference, 8 ssh cinnections were being made at the same time for a 8x8mpi task. N.B., since the OS I am using does not have rsh, I am currently using the
2012 Jun 13
3
How to plot linear, cubic and quadratic fitting curve in a figure?
...all these three fitting curves with different colour in one figure. I spent substantial time to figure it out, but I could not. I have given here a example and what I did for linear, but no idea for cubic and quadratic fitting curve > dput(test) structure(list(sp = c(4L, 5L, 9L, 12L, 14L), env = c(12L, 18L, 20L, 17L, 15L)), .Names = c("sp", "env"), class = "data.frame", row.names = c(NA, -5L)) > plot(test$sp~test$env, main = "S vs. temp", xlim=c(0,20), ylim=c(0,14), ylab="S",xlab="env") > linear<-lm(test$sp~test$env)...
2009 Feb 15
2
Passing environments: why doesn't this work???
This is a trivial example I set up to see if I could pass an environment and use the variables in it (this is for a function that will be called many times and might need to use a lot of variables that won't be changing, so it seemed more sensible to use an environment). Here's the code: ######################### #The outer function run.internal.env &lt...
2013 May 16
3
Substitute / delayedAssign (was: Substitute unaware when promise objects are evaluated)
...how delayedAssign works. Should R-level interfaces to promise objects ever become available, I expect they would at time come in handy. On the subject of substitute and delayedAssign, I do have a follow-up question for the list. I'm trying to convert a named list of expression objects into an environment of promise objects. After conversion, each expression in the list will be automatically evaluated when the variable with the same name is accessed in the environment. Effectively, I'm trying to create a hash table of promise objects. Here's the code I wrote that works just fine. x...
2015 May 29
4
UPower: 95-upower-hid.rules update
..., else ignore +# newer hiddev are part of the usbmisc class SUBSYSTEM=="usbmisc", GOTO="up_hid_chkdev" +# only support USB, else ignore SUBSYSTEM!="usb", GOTO="up_hid_end" # if usbraw device, ignore @@ -17,21 +20,31 @@ ATTRS{idVendor}=="03f0", ENV{UPOWER_VENDOR}="Hewlett Packard" ATTRS{idVendor}=="0463", ENV{UPOWER_VENDOR}="Eaton" ATTRS{idVendor}=="047c", ENV{UPOWER_VENDOR}="Dell" +ATTRS{idVendor}=="04d8", ENV{UPOWER_VENDOR}="Minibox" ATTRS{idVendor}=="050d",...
2011 Jul 28
1
intermittent problems obtaining shell with gssapi-with-mic
...n: channel_new: 0 debug2: channel 0: send open debug1: Requesting no-more-sessions at openssh.com debug1: Entering interactive session. debug3: Wrote 128 bytes for a total of 2101 debug2: callback start debug2: client_session2_setup: id 0 debug2: channel 0: request pty-req confirm 1 debug1: Sending environment. debug3: Ignored env MKLROOT debug3: Ignored env MANPATH debug3: Ignored env ORBIT_SOCKETDIR debug3: Ignored env HOSTNAME debug3: Ignored env IMSETTINGS_INTEGRATE_DESKTOP debug3: Ignored env INTEL_LICENSE_FILE debug3: Ignored env GPG_AGENT_INFO debug3: Ignored env SHELL debug3: Ignored env...
2020 May 28
0
xinetd custom service - perl - remote address
...ringways.co.uk> wrote: > Hi all, > > I can't believe that I can't find the answer to this one. I have a perl script which is called by xinetd. > > I want that perl script to be able to detect the remote IP address of the caller. > > I presumed that it would be an environment variable but I could be wrong. I've found reference to the ENV and PASSENV > arguments for xinetd.conf but no examples, and no indication of what auguments to use. > > In my script I have the following code: > > foreach (keys %ENV) { print "$_=$ENV{$_}\n";} &...
2020 May 28
5
xinetd custom service - perl - remote address
Hi all, I can't believe that I can't find the answer to this one. I have a perl script which is called by xinetd. I want that perl script to be able to detect the remote IP address of the caller. I presumed that it would be an environment variable but I could be wrong. I've found reference to the ENV and PASSENV arguments for xinetd.conf but no examples, and no indication of what auguments to use. In my script I have the following code: foreach (keys %ENV) { print "$_=$ENV{$_}\n";} but the only line I get...
2006 Apr 04
2
Return function from function with minimal environment
Hi, this relates to the question "How to set a former environment?" asked yesterday. What is the best way to to return a function with a minimal environment from a function? Here is a dummy example: foo <- function(huge) { scale <- mean(huge) function(x) { scale * x } } fcn <- foo(1:10e5) The problem with this approach is that the en...
2006 Jun 02
4
function environment
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, how can I automatically access the functions that I loaded into a separate environment? > save(A,B,file="myfun.r") > load("myfun.r",envir=(ENV<-new.env())) > ls(ENV) [1] "A" "B" ?"[" turned up that I can access the functions via > ENV$A function () { } > ENV$A() NULL Now, how can they be included in the s...
2004 Feb 10
2
Constructing an environment from a data.frame
Code like df <- data.frame(x=1:10) y <- 20:29 eval(quote(x+y), env=df) does what you might expect: it looks for x and y in the data.frame, and when it doesn't find y there, it looks in the parent environment. However, sometimes I'd like to construct a single environment out of df, so that I can pass it to nested functions and get the same behaviour. Ri...
2004 Feb 10
2
Constructing an environment from a data.frame
Code like df <- data.frame(x=1:10) y <- 20:29 eval(quote(x+y), env=df) does what you might expect: it looks for x and y in the data.frame, and when it doesn't find y there, it looks in the parent environment. However, sometimes I'd like to construct a single environment out of df, so that I can pass it to nested functions and get the same behaviour. Ri...
2014 Oct 17
1
Making parent.env<- an error for package namespaces and package imports
I'd like to propose a change to the R language so that calling 'parent.env<-' on a package namespace or package imports is a runtime error. Currently the documentation warns that it's dangerous behaviour and might go away: The replacement function ?parent.env<-? is extremely dangerous as it can be used to destructively change environments in ways...
2019 Apr 19
1
selftest: Perl error "Insecure $ENV{ENV} while running setgid at /home/user/src/samba-git/samba/source3/script/tests/printing/modprinter.pl line 138."
In my environment the selftest for samba3.rpc.spoolss.printer was failing at source3/script/tests/printing/modprinter.pl(138) with the Perl error in subject: Insecure $ENV{ENV} while running setgid at /home/user/src/samba-git/samba/source3/script/tests/printing/modprinter.pl line 138 code is: ==========...
2008 May 29
0
Again, teach me speex AEC please!
...l be used in my Voip program, so it should be async by nature. /** * com_peterhi_Speex.h */ #include <jni.h> #ifndef _Included_com_peterhi_Speex #define _Included_com_peterhi_Speex #ifdef __cplusplus extern "C" { #endif JNIEXPORT jint JNICALL Java_com_peterhi_Speex_encoder__(JNIEnv *, jclass); JNIEXPORT jint JNICALL Java_com_peterhi_Speex_decoder__(JNIEnv *, jclass); JNIEXPORT void JNICALL Java_com_peterhi_Speex_encoder__I(JNIEnv *, jclass, jint); JNIEXPORT void JNICALL Java_com_peterhi_Speex_decoder__I(JNIEnv *, jclass, jint); JNIEXPORT jint JNICALL Java_com_peterhi_Speex_en...
2005 May 14
2
help with eval
I've been looking at the help page for eval for a while, but I can't make sense of why this example does not work. show.a <- function() { a } init.env <- function() { a <- 200 environment() } my.env <- init.env() ls(envir=my.env) # returns this: # > ls(envir=my.env) # [1] "a" # but this does not work: eval(expression(show.a()),envir=my.env) # > eval(expression(show.a()),envir=my.env) # Error in show.a() : Object...
2011 Mar 11
1
dataframe to a timeseries object
...for timeSeries and xts. set.seed(123) N <- 9000 X <- data.frame( ID = c(rep(1,N), rep(2,N,), rep(3,N), rep(4,N)), DATE = rep(as.POSIXct("2000-01-01", tz = "GMT")+ 0:(N-1), 4), VALUE = runif(N*4)) library(timeSeries) buildTimeSeriesFromDataFrame <- function(x, env) { { if(exists("xx", envir = env)) assign("xx", cbind(get("xx", env), timeSeries(x$VALUE, x$DATE, format = '%Y-%m-%d %H:%M:%S', zone = 'GMT', units = as.character(x$ID[1]))), envir = env) else assign(&quot...
2015 Jan 14
2
Is the tcltk failure in affylmGUI related to R bug 15957
...ur: Error text box 1: Error in eval(substitute(expr),enclos):could not find function "<-" - pressed OK Following error text box: Error in paste("::RTcl",n,sep=""): object 'n' not found - pressed OK Following error text box: Error in assign(name, NULL, environ = I$env): object 'name' not found - pressed OK Following error text box: Error in paste("set",name, "(0,0)\"\"",sep= ""):object 'name' not found - pressed OK This then results in an unfilled Tk window. I am testing on a Windows 7,...
2006 Apr 27
5
one more try - ENV and FastCGI
Hi, I''m desperate, so I thought I''d try one more time in the hopes of getting a different audience. Basically. it boils down to this. Using CGI, the ENV hash is populated and is accessible from a model script. Using FastCGI, the ENV hash is empty. Can anyone explain how I can fix this? Thanks, Stan Mcfarland -- View this message in context: http://www.nabble.com/one-more-try---ENV-and-FastCGI-t1521255.html#a4131042 Sent from the RubyOnRails Use...
2023 Jan 28
1
[PATCH libnbd] generator: Pass LISTEN_FDNAMES=nbd with systemd socket activation
systemd allows sockets passed through socket activation to be named with the protocol they require. We only ever pass one socket, name it. This environment variable is currently ignored by qemu-nbd and nbdkit, but might be used by qemu-storage-daemon: https://lists.nongnu.org/archive/html/qemu-devel/2023-01/msg06114.html --- generator/states-connect-socket-activation.c | 41 +++++++++++--------- 1 file changed, 23 insertions(+), 18 deletions...