environment

Can I run grails 1.2-M3 with groovy 1.7 beta 1?

Hi, I have groovy 1.7 beta 1 in my path and GROOVY_HOME pointing to same groovy 1.7 beta 1 directory. I have installed grails 1.2-M3, and set GRAILS_HOME to point to grails 1.2-M3. I would like to try some groovy 1.7 features in my grails app, anonymous inner classes to be precise. I am receiving a compiler error even though this feat...

How to specify rubygems path in environment-less Ruby script?

I've written a data collection script for Cacti in Ruby and it runs fine from the command line but Cacti runs the script via "env -i" which strips the environment so Ruby can't find the rubygems library ("in `require': no such file to load -- rubygems (LoadError)"). How might I work around this? ...

Best way to create an Environment object in C++

I want to create an environment class that is accessible from all of my classes in my program but I dont want to initialize the environment object everytime I want to access its members from my other classes. What is the best way to go around doing this in C++? I want to do this because I have the environment object store all my config ...

How do I import environment settings into my Perl program?

I have a script whose content simply exports a variable in linux. export LD_LIBRARY_PATH=.... I want to run this script in my Perl script so whoever is running my Perl script will have their LD_LIBRARY_PATH set. Can i just do this in the beginning of my Perl script: #!/usr/bin/perl -w system(". /myfolder1/myfolder2/myScript.sh"); ...

Assembly.CodeBase: when is it no file-URI?

Assembly.Location gives a plain path to the assembly. Unfortunately this is empty when running in a shadowed environment, such as unit test or ASP.NET. Hovever, the Codebase property is available and provides a URI that can be used instead. In which cases it returns no URI starting with file:///? Or in other words: what are the cases in ...

How can you load the Rails environment from CloudCrowd actions?

I'm writing an "action" for CloudCrowd which needs access to the Rails environment (for some ActiveRecord stuff) but the standard means of loading the environment is resulting in fishy errors. I tried each of the following at the top of my action .rb file: require(File.join(File.dirname(__FILE__), '../..', 'boot')) and require Fil...

Export variables from one shell script to another.

Hi, I have a couple of scripts for which the first part of them looks the same. Function of this part is to identify at which machine the script is being runned and set a couple of variables accordingly. It looks something like this: ENV=`echo $LOGNAME | cut -c1-8` if [ $ENV = "vrt3400b" ] then echo "Using TEST specific settings...

How to configure and run multiple test environments in rails 2.3.4

Hello, I am trying to add and additional test environment to a rails 2.3.4 project. I have added the proper db configuration into database.yml and I have created a file with the name of the environment in the environments directory which is a basically copy of test.rb. The new environment is named test_ci. When I run all tests using th...

C#/.NET app doesn't recognize Environment Var Change (PATH)

In my C# app, I am programmatically installing an Oracle client if one is not present, which requires adding a dir to the PATH system environment variable. This all works fine, but it doesn't take effect until the user logs out/in to windows, or reboots. How can I get my app to recognize and use the new PATH var without this step? Eve...

How can I make my programming environemnt more ergonomic with a cheap way?

For some time I am suffering some backaches and chest-aches after working at home in front of my lap-top. After 2 hours it starts suffering to squeeze on my computer. In the office there is no problem at all (we have big screens and desktops for sure). I do not know where to start to make it more ergonomic but a friend of mine offered m...

Unable to use Environment.GetResourceString static method

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication { class Program { static void Main(string[] args) { var x = Environment.GetResourceString("test"); //compile-time error } } } The error is: 'System.Environment' ...

How can I use a Collada (dae file) for environment mapping?

Where can I find documentation and/or an example of how to use environment mapping in a .dae file viewable by either the included Collada viewer (viewer-d.exe) or the RenderMoney viewer (osgviewer.exe)? ...

Running a website from an encrypted partition

I am looking at the possibility of running a PHP-based website (built in symfony) from an encrypted partition on a LAMP server. The reason for this is because a client would have access to the server but I don't want them to see the source code behind the php website. I am open to other solutions if this is not possible. For example, p...

CDC-1.0/Foundation-1.0,J2SE-1.3

Dear all, How to setup/configure the environment "CDC-1.0/Foundation-1.0,J2SE-1.3" of an OS (for example windows XP, linux)? Because I want to run the embedded AWT application which requires this environment. ...

Programmatically adding a directory to Windows PATH environment variable

I'm writing a Win32 DLL with a function that adds a directory to the Windows PATH environment variable (to be used in an installer). Looking at the environment variables in Regedit or the Control Panel after the DLL has run shows me that my DLL has succeeded in adding the path to *HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Sess...

Can anyone give me a example of modifying windows environment system variables in WIX?

Hello All, I still don't know how to add the installdir into the PATH of the Windows System Variables after I went through the WIX tutorial. I tried to use Environment Id='UpdatePath' Action='create' Name='PATH' System='yes' Value='[INSTALLDIR]' But there was no change in the Path after I installed the program. I can hardly find...

Set Windows System Variables with Java

Hi, is there a way to add a specific directory to the Windows systemvariable %PATH%? This doesn't seem to work: String[] cmd = { "cmd", "/c", "set", "PATH=\"%PATH%;c:\\test\"" }; Runtime.getRuntime().exec( cmd ); c:\test\ doesn't appear in System.getenv("PATH"); or in the output of String[] cmd = { "cmd", "/c", "echo", "%PATH%" }; ...

In an ANT build.xml file, how can I iterate over the items in the ${env} variable?

This is in a Windows XP environment. I'm trying to install and edit some files that have default settings. I want to update these settings use items from ${env} ...

How can my Rails app accept RAILS_GEM_VERSION minor version bumps

My rails project has this line in /config/environment.rb # Specifies gem version of Rails to use when vendor/rails is not present RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION As we now have 2.3.5 as the most recent upgrade, is there a way to make my environment.rb accept minor version bumps? (without I have to explic...

how to setup common emacs environment for windows and linux computers?

I use emacs for text editing and script development. I use both windows and ubuntu emacs 23.1 distribution. Now I want both my linux and windows environment to replicate the same environment. I will save my emacs environment here https://bitbucket.org/krish/emacs/, so file synchronisation will not be problem. I don't have any differe...