Questions tagged [env]

221 questions
0
votes
2 answers

Which environment variable to set for english output, but ISO units

which linux environment variable do I have to set for english output, but ISO/metric units for time, date, etc. ? Currently I have in my env: LC_MESSAGES=en_US LANG=en_US LANGUAGE= Thanks.
faow
  • 1
0
votes
0 answers

How to make a slice from an matrix in an env in R

So have an an env that I put data.frame in dtm <- DocumentTermMatrix(corpus) termCount = c(".94", ".96", ".98" ,".99") freqMatrix <- new.env() spam <- new.env() for (v in termCount){ # Remove sparse terms to get a managable number of terms. …
Silverdev
  • 496
  • 4
  • 10
0
votes
2 answers

grunt-preprocess and grunt-env mystery

I'm banging my head on this one; I want to alter my html file based on development-environment or production. I followed a topic here on Stackoverflow but somehow the preprocess-context arguments are always the last one in the files. Okay I'll…
myradon
  • 421
  • 1
  • 4
  • 13
0
votes
1 answer

starting new python subprocess containig module import with popen and current env giving ImportError

I'm trying to start a python program as a subprocess using the following code but the subprocess outputs ImportErrors to stderr. The code import subprocess import sys import os environment = os.environ command = ["python", "-u",…
jonathan topf
  • 7,897
  • 17
  • 55
  • 85
0
votes
2 answers

How does virtualenv work with packages?

I'm really confused with how virtualenv deals with packages. I'm on OSX and installed python2 and 3 with Homebrew followed by pip install virtualenv. in terminal: cd Virtualenv/MyTestEnv . bin/activate pip install numpy would install numpy into my…
chronologos
  • 338
  • 3
  • 13
0
votes
1 answer

export in bash with printf doen't work

I exported: export FMTSTR="%2\$n'printf "\xc0\xf2\x03\x42";'" and I want to see the result: env | grep FMTSTR FMTSTR=%2$n'printf xc0xf2x03x42;' but this is not what I want...The result must be : ‫‪FMTSTR=%2$nTB‬‬ Could you possibly tell me what…
MLSC
  • 5,872
  • 8
  • 55
  • 89
0
votes
3 answers

Putting comments in environment variables

Is it possible to put comments in environment variables, like %PATH%, HOME, $PS1, etc., or part of them? I assume if this is possible it would be done in the same way as various scripting languages, for example in JavaScript we would use // This is…
trysis
  • 8,086
  • 17
  • 51
  • 80
0
votes
2 answers

Grails integration test - how to use different datasources for different test

I am trying to figure out a way to execute certain integration tests against an in memory DB (H2) and others against our Oracle test DB. Maybe its my limited test writing experience but it seems that some tests (such as search querying) are more…
0
votes
2 answers

What are the advantages of placing data in a new.env in r?

What are the advantages of placing data in a new .env in R?-speed, etc. For data such as time series, is an new .env analogous to a database? My question spans initally from downloading asset prices in R where it was suggested to place them into a…
Rhodo
  • 1,234
  • 4
  • 19
  • 35
0
votes
1 answer

Mandatory things to be added in .env file in UNIX

I am creating a .env file on UNIX server. Please recommend me what mandatory things should be added into it.
abc
  • 37
  • 1
  • 10
0
votes
0 answers

PYRO_ENV variable in htaccess is not triggering development / production environment

I have setup PyroCMS as described here: http://docs.pyrocms.com/2.2/manual/setup/environments I have used the RewriteCondition in Htaccess to automatically determine and set the PYRO_ENV variable: RewriteCond %{HTTP_HOST} ^dev.xyz.com$ RewriteRule…
0
votes
2 answers

Using spaces in env vars during Apache startup

I want to pass an environment variable with a space in it to apache. Apache uses env to start itself so in effect I have to make some thing like this work export MYCMD=" env -i FOO=123\ 456" $MYCMD The result is env: 456: No such file or…
0
votes
1 answer

How to set env variable from within junit test case?

I followed How to set env variables for maven to run test correctly? and configured my pom like this : org.apache.maven.plugins maven-surefire-plugin 2.15
vikas
  • 1,318
  • 4
  • 16
  • 33
0
votes
1 answer

Ruby variable scope: access rack.env from inside an existing ruby class?

I have a simple class: class Repository class << self def find(id) ... end end end It is called like this throughout our app: thing = Repository.find("abc") We are in a Sinatra/rack environment. During the request phase we do…
Steve Macdonald
  • 1,745
  • 2
  • 20
  • 34
0
votes
1 answer

How to set the shell of remote server through perl telnet

How can I set the remote server shell to bash through the perl telnet? My code is below: $telnet =…
1 2 3
14
15