Archive for the 'Python' Category

I really love Twitter and it didn’t make any sense to me to shell out a rupee for every tweet sent through my Airtel Mobile. Moreover, I am on one of those monthly booster packs which allows you to send 22000 text messages for free. I simply had to exploit this by setting up my [...]


This happens to me all the time, especially when running programs that takes hours to complete.

Start the code
Go out for some tea or movie.
When you come back, you find that the program had decided to piss you off by crashing 2 seconds after you went away from the keyboard.

The amount of cuss words thrown at [...]


Recently I had to make use of Google’s translation engine to translate phrases at work. Given the lazy big bum I am, I found using the Google’s web UI a bit tiresome to use. I thought “heck, why not write a little jabber bot to make things a bit easier..”. (Agreed, writing a bot is [...]


Oh yeah!. With the power of DBus and libpurple APIs it is possible to give your boss the illusion of managing you. Just run the following script (under WTFPL). Tested with jabber accounts in a live office environment .

#!/usr/bin/env python
# By Sudharshan S, released under WTFPL

import dbus
import gobject
import time

class PointyHairedBoss:

    def __init__(self, boss_id, source, [...]


Why Python?

11May09

Ever had that feeling of insignificance? The feeling that your very existence is a microscopic peanut in the grand scheme of things. By grand, I mean the Whole Sort of General Mish Mash. I am going through that right now. We are, according to our own theories an extremely smart species, yet for every answer [...]


SHR (Stable Hybrid Release) released images recently and boy, did they do an awesome job at it. By far, SHR and Debian are some of the images that uses the FSO daemons by default. So turns out to be a great testing ground for the FSO APIs. And after a long while, I also got [...]


I got to test some code in the neo and found that sms sending using pygsmd works quite well!!..Also I was looking for an opportunity to brush up my 2 hour stint with pyGTK which I had a long long time ago. What better reason than to create a dirty, scrawny, crufty, fugly GUI for [...]


Got some sms and phonebook code in the svn, but not all. So once I had some bindings finished. I decided to write a sort of example script that uses our pygsmd module. libgsmd-tool have always been a friend of mine in knowing whats up with gsmd. Therefore to pay a tribute to my good [...]


pygsmd: update

02Nov07

Semesters are start in 10 days, so hardly had the time to hack on pygsmd. I had to implement multithreading[2] for the first time in my life and that was real fun. But I had to cope up with a stupid race condition which fortunately has been fixed after gdb put things in perspective. Phonesim[1] [...]


Tada…
So the python-gsmd bindings for the gsm daemon in Openmoko works!! Checkout the screenshot. I had ssh’ed into the phone after setting up USB networking so that I might get a shell to work on.
Note the uname on the lower right terminal showing the ARM architecture of the neo.
The terminal on the lower left shows [...]