## Word arithmetic puzzle generator

I was digging through some old code of mine when I came across this script. To me, this script was a demonstration of the beauty and elegance of the python language.

You might have come across a puzzle like this:
AID + ICED = IDEA. What digits would you assign to the characters A,C,D,E,I so that the arithmetic will work?
The answer is A=0, C=4, D=5, E=1, I=2.

The “word arithmetic” script can generate such puzzles given a word list and characters.
Here is the code and a sample word list.

This is related to the previous post and is meant in part to demonstrate how great Linux is for doing “weird” stuff . This is what we are
trying to do.

The circles in the background have been drawn by the python script below. To get the script running you should have python and pygame installed. If you are on Ubuntu do this to install both otherwise you can get the binaries for your distribution/OS.

## Matrix Desktop

What you see above is how my desktop looks now. You need to be using gnome to get this working.

Nautilus draws the desktop (including the icons) for you in gnome by default. We have to tell it to stop doing that, so we can do the matrix animation in its place. Nautilus can be configured using gconf.

## Back again

I was reading the few entries I had written in this blog and felt an urge to restart. And so, here I am.

It has been a long break. A lot of things have happened since the last time I blogged. I finished college and got a job in a Tech start-up in Bangalore. Been here since then. I got married a few months back. My perspective towards technology has evolved since I left college. I’ve worked on a couple of interesting projects at work and it has been a roller-coaster ride.

Python has displaced Visual-Basic as my language of choice. I’ve finally succeeded in making the switch to Linux thanks to Ubuntu (I remember the pain of getting X to work in “Red Hat Linux” 5.x) and have not looked back since.

## Trek in Guduvancheri

I went to another short trek yesterday. This time we went to a hill in Guduvancheri near the “Pentecostal mission”. This one was around two kilometers from the main bus-stop of Guduvancheri.

We chose this hill for several reasons

1) It is bigger than the one we went to last time

2) It is close as before to my place (in Maraimalai nagar)

3) We wanted to try out a hill with ample vegetation (although we were to have a particularly painful surprise later in the evening)

## Trekking in Potheri

I went to a small trek yesterday with my friends. We chose a small hill near Potheri village, Kancheepuram district, Tamilnadu, India. This place is very close to my college and to the place I stay at. We started that trek at 4:30 P.M. A problem cropped up at the very start – We were three and had only one two-wheeler. But then we somehow managed to get on and rode down to potheri. Initially we did not know where to go (we had done very little planning). We enquired about hills in the region but the guy over there told us that we might risk loosing the bike if we left it somewhere. However we saw this hill on the other side of the railway track beside NH5 and we decided to settle for that. We left the bike at a house with an especially kind man who seemed all excited about people coming to his area and was pleased to know that we came from SRM college (actually he wanted us to recommend him for the job of a watchman!, not knowing how influential we were at college and the kind of reputation we had with college profs J ).

## Computer woes

I did a very very stupid thing day before yesterday. My primary partition on which I had Windows installed ran out of space (although I allocated 5GB !) and I had to resize the partition. I used Partition Magic only to find out on rebooting that it screwed up my partition table. I ran scandisk from the Windows 98 bootdisk only to have it corrupt my FAT totally by replacing from a corrupted second back-up FAT or so I think.

So it all came down to me having to format C: and to re-install everything. I made a mental note never to mess with partitions (that is the 37th time!).

Well, so today’s lesson for everyone is “DO NOT MESS WITH PARTITIONS!”

## Back to blogging

There are two things that brought me back to blogging after the initial burst when my enthusiasm lead me to post 1 blog!

• In anticipation of a gmail account!
• because I still think it is cool