Tag Archives: scripting

Delicious shutting down?

Yesterday, I was quite surprised when I head rumors that Delicious, my favorite link sharing site, is shutting down. According to their blog, they are looking for a way to continue the service outside of Yahoo, but it’s better to … Continue reading

Posted in python | Tagged , , , , | 1 Comment

Quick Tip #4: Sorting Large Files

With traditional Unix sort(1), the size of the files you can sort is limited by the amount of available main memory. As soon as the file gets larger and your system has to swap, performance degrades significantly. Even GNU sort … Continue reading

Posted in shell | Tagged , , , , | 3 Comments

Fun with Context Managers

Sometimes I need a simple stop watch in my Python scripts to find out how expensive my code is in wall clock time. The problem is trivial to solve, but I thought I’d give it a try using Python’s with … Continue reading

Posted in python | Tagged , | Leave a comment

Eee PC Wireless Troubles

Half a year ago, I bought an Asus Eee PC 1000HE netbook. The first thing I did was wiping Windows XP off the disk and installing Ubuntu Jaunty Netbook Remix. When I bought the netbook, I knew support for the … Continue reading

Posted in linux | Tagged , , , | Leave a comment

A Template for Python Unix Utilities

One of the most often read postings on this blog is the one about my getopts-enabled shell script template. So I figured, a similar template in Python would also be useful. Like the shell script, it’s quite trivial, but it … Continue reading

Posted in python | Tagged , , | 2 Comments

Map/Reduce in Python

My interest in Grid Computing over the last weeks begins to show. After reading the Google MapReduce paper, I tried my fingers on a client side toy problem. For formatting purposes, I was interested in the size of the longest … Continue reading

Posted in python | Tagged , | 4 Comments

Parsing Command Line Options in Shell Scripts

In programs written in C, command line argument parsing has always been done using the getopt(3) library function. This function has set the standards Linux/Unix users have come to expect from command line interfaces. Fortunately, there’s a getopt(3) equivalent for … Continue reading

Posted in shell | Tagged , , | 14 Comments