Archive for the ‘programming’ Category
Save your staplers!
Picture this. You are at work on a Friday evening. You are all pumped up! Who wouldn’t be. Two full days of zero work ahead! You shutdown your computer, rise up, turn around to leave and BAM! This happens, The key to ‘Lumberg Evasion‘ is not only to stay ‘hidden’ but also to be aware […]
Filed under: linux, programming, Python, Tips | 4 Comments
Tags: fun, initech, lumberg, officespace, pygame, Python, webcam
simplejson’s simple gotcha
I like simple things. Anything more complex more than ‘simple’ is tough to deal with. Therefore it comes as no surprise that I love JSON. Heck, the entire grammar fits in a business card. If you take a closer look at the spec above, you will notice that the keys for a JSON ‘dictionary’ should […]
Filed under: programming, Rants, Tips | 2 Comments
Tags: caveat, gotcha, json, Python, simplejson, Tips
24camp – Be there
Last week, 24camp started out as a means for people to get together and work on interesting projects/ideas. Serendio will be hosting one this weekend, 13th February. We have place for about 20 – 25 in our office premises. More information can be found here. You can also participate virtually by logging on to #24camp […]
Filed under: programming, Tips | Leave a Comment
Tags: 24camp, hackathon, IRC, serendio
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 […]
Filed under: FOSS and Linux, linux, programming, Python, Tips | 10 Comments
Tags: airtel, kde, konsole, notification, Python, scripts, Tips, twitter
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 […]
Filed under: Events, FOSS and Linux, programming, Python, Rants, Tips | 13 Comments
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 […]
Filed under: FOSS and Linux, programming, Python, Rants, Tips | 32 Comments
Tags: comicstrip, dbus, dilbert, im, moronity, pidgin, pointyhairedboss, purple, Python, snippet, wally, wtfpl
Brainfuck is one of those turing complete languages that has no apparent use in the real world. But hey, being very very simple with a limited grammar, writing an interpreter should be easy. So here it is, under WTFPL. The code works (I hope so) with the examples from the Wikipedia article. #include <stdio.h> #include […]
Filed under: FOSS and Linux, programming | 9 Comments
Tags: brainfuck, c, compilers, esoteric, interepreter, programming, snippet, wtfpl
Thinking inside the “box”
About 10 minutes ago, my brain switched from neutral to first gear and started pondering about ways to teach someone how to program (Not that I am particularly good at programming in the first place ). For example, how would you explain the concept of variables, references, names. etc, which seemingly form the corner stone […]
Filed under: programming, Rants | 5 Comments