How do I set Environment Variables in Visual Studio 2010?
I found this web page:
http://msdn.microsoft.com/en-us/library/ee479070.aspx
Which says:
From the Project menu, choose Properties.
In the left pane, select Configuration Properties, and then select Environment.
But when I select "Configuration Properties", there is no "Envir...
I have written a functional test that changes some of the request object's environment variables to simulate a user has logged in.
require 'test_helper'
class BeesControllerTest < ActionController::TestCase
# See that the index page gets called correctly.
def test_get_index
@request.env['HTTPS'] = "on"
@request.env['SERVER...
Hi,
I just installed java Web Service Developer Pack 2.0 to use JAXB for xml operations. The tutorial says me add "C:\Sun\jwsdp-2.0\jaxb\bin" to the system path.I select Computer->Properties->Advanced System Settings. I come to the Advanced tab I open the window Environment variables. and i selected PATH from user variables,selected ed...
I'm working to simplify using an InstallShield template by setting components, parameters, and environment variables from an .ini file via the automation interface. I'm stumped as to the right way to set the environment variables called out in the project.
Are environment variables part of the ISWiProperties collection, or is there some...
I added some settings to .bash_profile and closing/opening terminal doesn't seem to have the path's I added there i.e. doing echo $BLAH results in a empty line.
(running the latest version of ubuntu)
do I use .profile instead?
...
The problem arises when makefile needs be run on different OS and various setting should be properly set up (escaping, path separator, etc) depending on OS.
The first approach was to use Windows COMSPEC:
ifneq ($(COMSPEC)$(ComSpec),)
## in windows
else
## in linux
endif
This is false positive for Cygwin, because it sees Windows' env...
I know how to set it in my /etc/profile and in my environment variables.
But what if I want to set it during a script?
Is it import os, sys? How do I do it?
...
I need to write a python script that launches a shell script and import the environment variables AFTER a script is completed.
Immagine you have a shell script "a.sh":
export MYVAR="test"
In python I would like to do something like:
import os
env={}
os.spawnlpe(os.P_WAIT,'sh', 'sh', 'a.sh',env)
print env
and get:
{'MYVAR'="test"...
How do I transfer files from one folder to another, where both folders are present in oracle home directory?
int main(int argc, char *argv[]){
char *home, *tmp2;
home = getenv("ORACLE_HOME");
temp2 = getenv("ORACLE_HOME");
strcat (home,"A");
strcat (tmp2,"B");
//transfer files from home to tmp2
}
strcat doesn't ...
I installed ActivePerl 5.10.1.1007 on my Ubuntu 10.04 machine.
I have a very simple Perl script with the following lines:
use lib "/opt/ActivePerl-5.10/lib";
use Tcl;
my $Interpreter = new Tcl;
$Interpreter->Eval('puts "Hello world"');
$Interpreter->Eval('set ::env(TESTVAR) 55')
The output is the following:
$ /opt/ActivePerl-5.10/...
Is it possible to disallow the use of ENV and ENV_JAVA in JRuby? I allow user supplied ruby code to run in servers, and I believe allowing them to use ENV and ENV_JAVA is not a very good idea.
I was able to disallow the use of System.get/setProperty() using Java's Security Manager, but I haven't had much success in this case.
Thanks i...
The story began with a very strange error while I was running my script from PyDev. Running the same script from outside will not encounter the same problem.
Fatal Python error: Py_Initialize: can't initialize sys standard streams
File "C:\Python26\lib\encodings\__init__.py", line 123
raise CodecRegistryError,\
...
I am running PHP on Windows. PHP plugins on Windows are just DLL's in an extensions folder, and I can do little to configure these plugins.
For example, the ADAP plugin (which is OpenLDAP itself) has settings that I can't change on runtime. Luckily, OpenLDAP allows me to change some of these settings by messing with the environment vari...
Okay here is my setup:
Running JRUBY (and a JRuby on Rails application) on a glassfish server (not gem!!!). Jruby has been installed via RVM (http://rvm.beginrescueend.com/).
The RoR application has it's own gemset. (managed by rvm)
Now my problem is, that I don't know how to tell glassfish to use a different GEM_HOME and GEM_PATH env...
here's the scenerio -
you are in bash
:~/dirA$cd /dirb
:/dirb$cp filex __here_i_want_trick_to_reference_dirA
example of a similar trick is "cd -", which puts you into the previously visited directory.
I want this because, in reality, the paths I am dealing with are huge and I'm looking for a shortcut.
furthermore, a trick which h...
I'm frequently using the cli (terminal) on Linux and Mac.
How can I save time by setting a variable to the current project folder instead of
cd path/to/folder/over/and/over/again
Something like
cd the-current-project
(with tab completion)
?
...
I have a simple feedback form PHP script that I would like to enhance by adding the $_SERVER[HTTP_USER_AGENT] data to the row in the database that I'm saving.
I keep getting parse errors when I try a simple insert, passing '$_SERVER[HTTP_USER_AGENT]' as a typical string. Should I bundle it in some way, so that the characters used in tha...
Hi,
I am using windows cmd and i am trying to do the following:
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug" /v debugger /t REG_SZ
/d "%ENVIROMENT VAR%utils\cdb.exe -pv -p %ld -c """.dump /u /ma
c:\utils\1.dmp;qd""" "
As you see, first enviroment varialbe is between % and is expanded by cmd, then %ld should ...
I need to write a unit test for some C++ code that checks for the presence of an environmental variable. I'm using MSVS 2008 and gtest as my framework. I add the environmental variable using putenv, I check the environmental variable using getevn, but I can't figure out how to remove it so that no other test will see it. I realize this i...
Hello,
I use premake to build solutions for Visual Studio and Xcode. Does anybody knows the equivalent environment variables in Xcode for Visual Studio $(ConfigurationName) and $(SolutionName)?
Thank you
...