Archive for October, 2006
Diff’ing my way to the scrapbook!
October 16th, 2006
Fetching a scrapbook page & parsing it everytime to get new messages seems kinda overkill… specially because of the following two reasons -
1) I’m interested in only the new message
2) Parsing HTML which is not controlled by you & which changes frequently can leave your application a bit shaky!
So this is what i figured out when I was SMS’ing a friend during a power cut…
I can diff the new copy of the scrapbook with an old cached copy & parse the diff for only the new message’s html (text/links/images etc).
This will give me 2 benefits…
1) I’m no more dependent on full page’s structure
2) Minimal HTML parsing
BTW… a quick google search showed that my dear Python already has a diffing module up its sleeve - difflib & diffing can be done like this.
Neat… aint it?
Py rocks!
Previous posts : First, Second
Posted in A strong urge to blog..., Python | Comments (1)
hi-phonetic.mim rocks!
October 12th, 2006
…& I thought learning hindi phonetic keymap would require an effort!!!
माता पिता की दी हुई ज़िम्मेदारियों के अर्थ बदल रहे थे …
हर जाते हुये किलोमीटर से ज़िन्दगी के नज़रिये बदल रहे थे …ट्रेन के दरवाज़े पर खड़ा हुआ था मैं …
गुज़रते हुये खेतों को देखकर लगा जैसे …दिल्ली में बिताये हुये पल यादों में बदल रहे थे ।
Posted in A strong urge to blog... | Comments (0)
Making evolution a better place…
October 6th, 2006
I managed to squash one more Evolution bug - (downstream bug) 203058, (upstream bug) 324604. This fix has one of my biggest patches
…infact, this bug required two of them, one for evolution & other for evolution-data-server.
I wonder why this bug creeped in when we already have a Quoted Printable strings parser in evolution-data-server code.
Chk this out…

The buggy screenshot!
BTW… if you have a good look at my patches (patch for - e-d-s, evo), you’ll realize that i’m very bad at managing strings! I had to deal with lots of segfaults before making this patch run! …one more reason i love python!
Posted in Fedora Core, Fedora-i18n | Comments (0)
Cleaning some RPM mess…
October 5th, 2006
We just now manaed to get Parag’s yum working… the rpm command was hanging like anything. A quick google search revealed that it can be solved by doing
rm -f /var/lib/rpm/__db.00*
So just wanted to document this for me… so that I wont have to ask google again for the same problem
Another nice link…
http://people.redhat.com/berrange/notes/rpmrecovery.html
Posted in Fedora Core | Comments (0)
Life is strange…
October 3rd, 2006
I never knew that I’d be blogging about Tennis… The sport I used to hate (well… sort of…) is now one of my fav past-time!
Anyways…

Front side of net - Ratish & Divya from Cybage
Rear side of the net - Me, Sanjulee & Hiren
We (Me & Sanjulee) won 6-4

The guy, holding two trophies was the one who defeated me 6-3 in Semi finals! Nice player…
Posted in A strong urge to blog... | Comments (3)
