Software Suspend 2 with root/swap on LVM

Disclaimer: YMMV I had always had failures with Software Suspend 2 (swsusp2) on my laptop because of which I had a perception that it really wasn’t ready for use for beta users also. But recently after reading the comments of many users on LWN I felt how wrong I actuall was. Anyways, setting up swsusp2 with root/swap on LVM is a little tricky. From my past experience I’ve felt that to be the major reason for me to not able to use this excellent feature. [Read More]

Creative Destructivity

Creative Destructivity by Raghavendra Buddi

Good Morning

Good Morning. Good Food. Good Place…….

Finally, I ended up with a change.

Debugging Techniques

Abnormal Program Termination are not something just seen on Microsoft Windows. I hope most users will have seen some kind of program error in GNU/Linux and *BSD platforms also. Abnormal Program Termination can happen for multiple reasons of which Programming Errors are one of the major reasons. Badly Carelessly written programs often end up having such bugs. Here’s a sample C program which has generic programming errors because of which the compiler doesn’t catch it but the program does do unexpected behavior. [Read More]

Bash Endless Loop

I always keep forgetting where the colon (;) key should be placed in a Bash endless loop so thought of jotting it down.

while true; do ls; done

Pivot at its best

It really is amazing to see no more spam coming to my blog. Kudos to the Pivot team who’ve done a great job integrating spam features into this great software. Also the spam cleanup utility (integrated into the application) is excellent. Thanks.

iprint in mod_python

This small script demonstrates mod_python.

Python Crawler

This IMO is one of the dirtiest way for me up till now to accomplish a requirement. But it does the job I want. :D _ DISCLAIMER: I’m a learner. There must be better, smarter and easier way to accomplish the same task._ rrs@learner:~/My_Documents/My Books $ cat /home/rrs/devel/eclipse/PythonFun/web_pattern_fetcher.py #!/usr/bin/env python """ This tiny little script does the job of crawling into Apache generated directory listings and download scanning a specific pattern. [Read More]

Pythonic Addiction

#!/usr/bin/env python def files(root): for path, folders, files in os.walk(root): for file in files: yield path, file def find_match(repository): # aka walk_tree_copy() for path, file in files(repository): if file.endswith ('html') or file.endswith ('htm') or file.endswith ('HTML') or file.endswith ('HTM'): #if file.endswith ('html.gz') or file.endswith ('htm.gz') or file.endswith ('HTML.gz') or file.endswith ('HTM.gz'): try: os.environ['__TEMP__VAL'] = file os.chdir(path) # We need to chdir so that gzip can see the file in the cwd os. [Read More]