Skip to content

Category Archives: computers

when it works, be happy that it does.

25-Sep-09

Refactoring code that is “running” fine, is the next biggest mistake that you can do. Especially when all you require is a 100+ line modification to get that bug fixed in the dirty way. The fact that it looks extremely ugly and that it could get worse when you try to hack a patch on [...]

Code reuse == Orgasmic

10-May-09

By ‘orgasmic’, I mean ‘literally orgasmic’. No joke. Check the following python method:

def _readData(self,data,pos,maxLen=0):
“”"I read bytes from the given ‘data’ stream from position=pos
bytes until I get a byte stream of length maxLen. If the given
[...]

http://xkcd.com == brilliant

22-Mar-09

In the middle of a mad work frenzy, you look up a link that a friend posts on FB coz it popped up as an email notification. Smile. Then, start clicking another.. smile more. Then another.. and another. And when your coffee became cold, you realize that you just blew an hour on it. [...]

Ending parathetical statements with an emoticon.

22-Mar-09

Hehehe. I thought it was just me. Check this out :)

Debian and the rest of the world

18-Mar-09

I remember Redhat 7, Guinness. Then ‘valhalla’. And then ‘Shrike’. Ofcourse there were these intermediate flirtations with Slackware. And, then I touched Debian ‘woody’. And, have not gone back to anything else. I remember desperately waiting for ’sarge’ release. And then ‘etch’ release. And then ‘lenny’ release.
I am not quite sure as to why I [...]

dumb dumb dumb

10-Mar-09

“what the heck is this thing??”
“hmm… This is in the wrong place..”
“its just a stupid copy”
“you sure its just a copy”
“oh yeah yeah.. its just not in the right place”
“if it is not in the right place, it has no right to be”
rm -rf /…/postgres-main/
/etc/init.d/postgresql-8.1 stop
ERROR: could not find …. blah.. blah..
“HOLY SHIT”
“MOMMMMMMMMMM… save me..”

So, [...]

git bit me.. yet again.

26-Feb-09

Moving ‘bases’ from the local git-svn repository over to SF.net was quite enlightening. The local git-svn repository was pointing to a SVN repository which could not be accessed. git-format-patch converted the git-svn repository into a series of patches, and git-am happily applied those patches onto the new git-svn repository at SF.net.
In fact a simple [...]

From ‘twitter’ to ‘identi.ca’..

26-Feb-09

The thing that got me hooked on to twitter was the ease with which I could update from a simple XMPP client. But then twitter’s XMPP updation service broke. I waited and waited. Things never got back to normal. I tried using the thirdparty XMPP gateways to twitter. They were good.. just not good enough. [...]