Wednesday, February 07, 2007

Perldoc Perlmint

Ive been programming in perl for a while but never come across something like this until one day going through perldoc perlmint.
"From a thief you should learn: (1) to work at night;
(2) if one cannot gain what one wants in one night to
try again the next night; (3) to love one's coworkers
just as thieves love each other; (4) to be willing to
risk one's life even for a little thing; (5) not to
attach too much value to things even though one has
risked one's life for them - just as a thief will resell
a stolen article for a fraction of its real value;
(6) to withstand all kinds of beatings and tortures
but to remain what you are; and (7) to believe your
work is worthwhile and not be willing to change it."

-- Rabbi Dov Baer, Maggid of Mezeritch

Zen of Python

IDLE 1.1.3   
>>> import this
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
>>>

User Mode Linux

If you wish you create test network configurations on a single linux box , uml can do a lot for you. Ive been running as many as 4 uml instances on my debian box without any problems.All you need to get started with is a root file system and a kernel.

Download the rootfs of your choice from the uml homepage and build the kernel with ARCH=um.

Apart from rootfs and kernel , you need to do some configurations on your system like creating virtual block devices(i.e ubd0) for the filesystem and creating a tap device for networking.

On debian you can install uml-utilities package which provides some uml specific programs which you might need later on to try different network configurations.