Sunday, September 19, 2010

User environment variables in windows

I’ve been running as a normal user under windows which has required a change to my emacs setup. By default if you don’t have a HOME variable defined, windows looks under the root directory for .emacs.d and .emacs initialization files. As an administrator this isn’t an issue, but as a user those files are inaccessible. I needed to set the HOME variable to point to the user directory so emacs could read its initialization file.

The normal way to edit environment variables is to right click on “Computer” and click on “Advanced system settings”. Then click on “Environment Variables” under the Advanced tab. Unfortunately this requires administrative privileges and you can only set the administrators environment variables.

To set a users environment variable you have to do it via the command prompt. To set HOME you would do something like this:

setx HOME “Your value here”

or in my case:

setx HOME “%USERPROFILE%”

You’ll have to restart the command prompt for the value to take effect.

To access the variable on a command prompt:

echo %HOME%

And in powershell:

echo $env:HOME

 

Monday, September 13, 2010

On DNS Hijacking…

Hijack my DNS and I’ll be annoyed. Blame me for it and I’ll go ballistic.

I haven’t run into this problem that often with road runner. Probably because I don’t use their DNS servers. I’ve got mine set to Google's DNS servers. I’m using Google Chrome, and when I try the URL it redirects to Bing just fine.

Mozilla and hypocrisy

Right, but what about the experiences that Mozilla chooses to default for users like switching to  Yahoo and making that the default upon ...