Error 

Archive for August, 2009

Python Zipfile support

Posted August 21, 2009 at 12:08am in Python

One of my favorite features in Python 2.6 is zipfile support. It is mentioned it was changed in 2.5, but so far I have not been able to get it to work. Basically you create a __main__.py file that will act very much like __main__ does in scripts. You can then make a zip file of your Python code and execute it directly. If you want to read more about it you can read it on the command line page of the Python documentation.
Read the rest of this entry »

Endian Firewall Hostname Limitation

Posted August 20, 2009 at 10:08pm in Linux

Endian firewall seems to have a hostname limitation in their web interface that requires at least 3 characters. I prefer a hostname that is shorter than that so I had to track down the settings to change it. There are two files that you have to change.

/var/efw/main/settings
     HOSTNAME=$hostname
/var/efw/main/hostname.conf
     ServerName $hostname

Using Mercurial on your home directory

Posted August 13, 2009 at 08:08pm in Version Control

This is a follow up to my previous post, Setting Up Version Control On Your Home Directory. This post will cover using Mercurial instead of Git to store the files in your home directory.

To start this off you need to install Mercurial

sudo [yum or apt-get] install mercurial

Read the rest of this entry »