environment

Source shell script into environment within a ruby script

If I'm writing a shell script and I want to "source" some external (c-)shell scripts to set up my environment, I can just make calls like this: source /file/I/want/to/source.csh I want to replace a shell script that does this with a ruby script. Can I do a similar thing in the ruby script? Update: Just tried it with test_script.csh: ...

Can I get the VM platform version by running a program on the guest system?

Is there a way I can get the VM platform version by running a program on the guest system? Is there any C# API available? What is the easiest way to do this task? ...

How to check if the currently logged on user is using roaming profile?

How can I check if the current user is using roaming profile? Is there any .net framework library that can help? ...

What is the best way to verify that there are no duplicate SPNs set?

What is the best way to verify that there are no duplicate SPNs (Service Principal Names) set? We are given the SPN prefix, say, MyService\Myhost Any .net framework library class I can use? ...

How to get the delegation settings for a given user account?

How to get the delegation settings for a given user account programmatically? Any .net framework library can help here? ...

How can I properly import the environment from running a subcommand in Perl?

In importing the environment from a subcommand, I want to add all environment variables exported from a bash script to a hash. When program gets run, it will set up some variables and export them. I'd like to save those variables in the Perl script for later. However I don't want to take the bash functions defined in the subcommand. Curr...

Windows JAVA HOME problems

I'm trying to experiment with OracleHelp for Java on my Windows Vista server. I downloaded Oracle help, and I'm following their installation instructions which states: Unzip the OHJ installation .zip file into a directory of your choice Ensure that you have the JAVA_HOME environment variable set to the location of your compatible Java ...

Where to save ini file dependent to machine (not user) on windows

My application is currently storing settings in an INI file under the current user's profile (C:\Documents and Settings*\<CurrentUser>*\Application Data\MyApplication\MySettings.ini under WinXP). But I've realised some of these settings are unique to the machine not the user and thus want (actually need) to save them in a single locatio...

How do I properly split a PATH variable in PHP?

I want to split $path = getenv('PATH'); into its components. How do I determine the separator char in an os-dependent fashion? ...

multi server framework suggestion needed...

Example, I have 2 server, each server using a copy of linux cpanel. I first install free trial script into subfolder reside in Server A. eg: sample.com/service/username1 sample.com/service/username2 sample.com/service/username3 Then when people decided to upgrade, I gonna move all files to theirnewdomain.com, including database etc ...

Why is Java caching my app while trying to develop it

Hi, i'm trying to build a Java applet and i'm having a major problem trying to set up my development environment because my applet has bugs in it but I can't fix them easilly because Java won't get the latest version of the applet. I've turned off caching in "Java Preferences.app". I want to set it so that applet wil not be cached at al...

Java beginner web-development toolkit/environment

I have been tasked to develop an interactive website using java & mysql: using servlets to retrieve & massage data, applets to do special handling of the data client-side, and to handle requests from the client for different data views. What would you recommend as an proper general-purpose toolkit/environment for web development using j...

How to create a selfdefined table-environment with the caption at the end of the table with LaTeX?

I have a custom table-environment defined with \newenvironment. I have a caption in this environment, but I want to have it at the end. My environment looks (a little simplified) like this: \newenvironment{mytable}[2]{\begin{table}[hbtp]\caption{#1}\label{#1}\begin{center}\begin{tabular}{#2}}{\end{tabular}\end{center}\end{table}} I w...

Powershell: Setting an environment variable for a single command only

On Linux, I can do: $ FOO=BAR ./myscript to call "myscript" with the environment variable FOO being set. Is something similar possible in Powershell, i.e. without having to first set the variable, call the command, and then unset the variable again? To be more clear about my use case - I don't want to use this as part of a script. R...

What is meant by the Passenger-enabled Nginx error 'rack_env directive is duplicate'?

When we try to start Nginx, we see this error that prevents Nginx from starting. The error exactly is: "rack_env" directive is duplicate We have set rails_env and rack_env... does this conflict in some way? Any ideas what is meant by it? We can't find any meaningful documentation in the Nginx Passenger User guide nor in the source nor...

Does anybody know output path Win Server 2008 for Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData

Hi, I need do some quick and dirty logging and I was asked to write to a file. I have done all the logging and now I need to save it somewhere on this Win Server 2008 Operating system. Does anybody know what the output is in Win Server 2008 for the following line of code. string myPath=Environment.GetFolderPath(Environment.SpecialFolde...

How many apps should an internal development group be building/maintaining?

I've always been of the opinion an internal development group should really only be building/maintaining three applications. An internal composite/pluggable/extendable application. The company website. (Optional) A mobile version of #1 for field employees. I'm a consultant, and everywhere I go, my clients have dozens of one-off appli...

Should we stop implementing the feature to print on paper?

I've been wondering this for a while now. One of our software has a feature that create a well-formatted document from all the data that the user inputted in the software. The goal is to create something they call a plan that the user can hand over to the government for revision. The government only seem to accept those plans in the pri...

Why doesn't os.system('set foo=bar') work?

Possibly a stupid question: Why can't I set an environment variable with this? os.system('set foo=bar') # on windows I'm aware of os.environ, and that works for me. I'm just confused about why the former doesn't work. ...

Setting up Environment for Buffer Overflow Learning

I am currently reading several security books(my passion) regarding secure programming, however either the distro's they provide on disc are faulty, or non-existent. Books:Hacking The art of Exploitation 2nEd, Grey Hat hacking 2nEd The issue is that when i try to follow the examples, obviously newer distros have stack protection and othe...