November 21, 2009
November 15, 2009
Tata nano toon poster
How do you like this?
Tata nano under the moonlight with constellation reading “nano rocks”.
Sunday well spend, I’d say!

Tata nano - my toon version
Say, how about I start doing a mini comic book on nano!
November 12, 2009
Swapping two variables without using third variable – old trick
Pretty old trick, used today in my php code :
// Swap the months if from-month selected is later than to-month
//if($frommon > $tomon){
// $tempmon = $frommon;
// $frommon = $tomon;
// $tomon = $tempmon;
//}
// Smarter way using X-OR
if($frommon > $tomon){
$frommon = $frommon ^ $tomon ^ ( $tomon = $frommon );
}
October 28, 2009
3rd day with Evolution and it refused to start!
This would be my first time using evolution with Exchange 2007. As we all know there is no good connector for 2007 exchange, life is a little tough here. I hope Novell and evolution guys are listening.
krish@lin-hyd-dsk-07:~> evolution
*** nss-shared-helper: Shared database disabled (set NSS_USE_SHARED_DB to enable).
*** nss-shared-helper: Shared database disabled (set NSS_USE_SHARED_DB to enable).
** (evolution:4752): DEBUG: mailto URL command: evolution %s
** (evolution:4752): DEBUG: mailto URL program: evolution
(evolution:4752): camel-WARNING **: Could not find key entry for word '0000000000000000': Bad file descriptor
(evolution:4752): camel-WARNING **: Could not find key entry for word '16916000000006304': Invalid or incomplete multibyte or wide character
(evolution:4752): camel-WARNING **: Could not find key entry for word '16916000000006304': Invalid or incomplete multibyte or wide character
(evolution:4752): camel-WARNING **: Could not find key entry for word '33196880': Invalid or incomplete multibyte or wide character
After being reluctant to download mails from microsoft exchange 2007 for long time, I gave in 3 days ago and downloaded hundreds of MB of mails.
Today my evolution crashed with the above error:
Solution:
Quit and kill any evolution process running
$ ps aux | grep evolution | grep -v grep | awk ‘{print $2}’ | xargs kill -9
Backup your evolution directory
$ cp ~/.evolution ~/.evolution_bkup
Start your evolution again
$ evolution
Now you can either import from old files or just copy over your Inbox, Sent, Drafts and any other folders from ~/.evolution_bkup/mail/local/ to the new location.
And we should be up and running with evolution again.
October 25, 2009
Just joined twitter!
Yeah, I know toooo late..
Anway, here we go https://twitter.com/srikrishnadas
October 5, 2009
Stupidest command you can type as a SysAdmin
# /sbin/service network stop
on a remote Data Center server with no immediate onsite help available to start the network from local login.
No prizes for guessing who did this !!!
It was me ![]()
One of our boxes was being flood attacked by someone (unsuccessful attempt). I was investigating the box and habit of using tab completion screwed things up.
If that attacker was trying to get our box down… I probably helped him !!!
September 18, 2009
OSX Remote Management doesn’t work with VNC!
VNC Viewer Free Edition 4.1.2 for X – built Mar 24 2009 19:52:30
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Fri Sep 18 11:23:21 2009
CConn: connected to host 192.168.2.20 port 5900
CConnection: Server supports RFB protocol version 3.889
CConnection: Using RFB protocol version 3.8
Fri Sep 18 11:23:24 2009
TXImage: Using default colormap and visual, TrueColor, depth 24.
CConn: Using pixel format depth 6 (8bpp) rgb222
CConn: Using ZRLE encoding
main: End of stream
I didn’t yet find a workaround for this.
If anyone has connected successfully from Linux to MacOSX, please do drop a link in comments.
UPDATE: It worked. A colleague (Bharat) suggested using RAW encoding.
September 14, 2009
Food poisoned!
Down since 4 days. Doc says food poisoning. I asked cyanide? !!!
Does this happen only to food lovers?
I am tired of throwing out things that I eat. Gimme a break!
August 16, 2009
mukt.in rolls again
Happy belated Independence day to all and hmm well wish happy days every day anyway.
So, well I’ve been missing from my blog, for mm..4 months? The new job keeps me pretty busy and I really mean busy.
I wish I had like few more hands and my brain would be upgradable with newer, faster processor; but sigh!
So why did I make time to start blogging again?
Yo yeah, look at the title. mukt.in rolls again. for 2009!
The team must have pretty much got frustrated with me for doing nothing for so long and finally a brave mustache’er (this is different from musketeer), stood up, booted his laptop and wrote this post.
http://groups.google.com/group/mukt/browse_thread/thread/1c528be85aecac1b?hl=en#
People have decided that IIIT-Hyd would be a real good place for this year’s venue. ( Thanks to mbuf for this. )
I see some new names on the list too (or have I been away from the list for too long?)
Well, well the wheels got rolling again.. and hopefully we can un-conference by/before december.
And if you do spot me during mukt.in 09, do not, I say do not charge at me. Charge koolhead17; he’s a nice punching bag.
June 3, 2009
Mugged without motive?
I was standing at the bus stop opposite honda showroom, just a little walk away from the madhapur police station.
It was around 19:30 and I was gazing at the all new honda city ( everyone who knows me knows my passion for cars ), when the bus (no.127) was closing in. Oh, this was the new A/C buses that are launched in the city. I could see people foot boarding on it. Now that speaks of the need for more buses.
Anyway, there was one guy at the foot board saying something looking and pointing towards me. How’d I know it was only me? Well, no one else in the bus stop, except an elderly man at the other far end of it.
So, do I know this guy? I don’t. Paying no attention to what he was saying, I tried to board the bus (yes, 127 isnt exactly my route but, atleast could travel half the route). As I approached the door, and to my very shock, I was kicked; not one but multiple times.
The bus stopped and guess who, that same guy got down and started punching me. Along came two of his friends, one probably attacked me from the side, and the other was standing as if he was looking out to avoid anyone intervening.
I was in a state of shock. Never expected someone would just get down and start hitting! As I was recovering and also gaining conscience to self-defense, some guy intervened and said “Jaane do”. I was staring at that guy, wondering if this was the same one who attacked me from left ( I couldn’t see him earlier ), and also staring in surprise. What did he mean by “Jaane do”! Hello!!! It was me who got beaten up!!!.
By the time I was done with these thoughts, the other guy came up and delivered his last punch, yet again on my face. Then these three flee into the bus as the bus was in motion.
I immediately requested for a lift, and one guy helped me reach the next stop before the bus. We waited there for the bus to arrive and wanted to catch those guys, but alas! they already left the bus somewhere near the traffic signals.
Looks to me like a mugging just for fun. They didn’t try to steal my belongings, or take money. And this happening so close to the madhapur police station (believed to be safe place), at 19:30 (safe time?), and with public staring at this. Whoa! think what if this was some deserted place? Would they have killed me for fun?
I, now have a chilling bone pain in left arm and chest. The most painful is the nose which is a bit swelled, probably because it was already broken once during a cricket game (around 10 yrs ago) due to direct impact of high velocity cork ball. Umgh, too technical.
We need to be careful and on the watch even at public places. I wish no one else faces this.

