Archive for May 17th, 2007
Patching ljcharm (python-based LiveJournal client)
Posted by Biffster in Blogs, Debian/Linux, Miscellany, Open Source on May 17th, 2007
I am a big fan of ljcharm, a console/command line LiveJournal client written in python. I’ve been using it for a while now, mainly because I’ve gone super-minimalistic with regards to ‘net applications. I use mutt for email, centericq for chatting, slrn for newsgroups, and ljcharm for posting to LiveJournal. With screen to tie them all together, of course.
Anyway, there were a couple of things that annoyed me about ljcharm. Actually, two very similar items:
- The moods list is displayed in four columns, which takes up too much screen space (more than one screenful)
- Worse, tags are only displayed in a single column
- Tags are not pulled from the server, so it’s hard to tell what tags have been used before, and its easy to accidentally create a new tag (say, “trips” instead of “trip”)
I decided to fix this. Since ljcharm is written in python and is open-source, one can make changes directly to the application. So that’s what I did! This was a little tricky, because I don’t actually know how to code in Python. But I took a crack at it anyway. The changes I made are:
- Changed the number of columns to 5. This was actually pathetically easy, thanks to excellent code documentation by the ljcharm team
- I modified the tag list display screen manually to use columns. I set it to print out 5 columns, which makes all of the tags fit on one screen (I have 103 tags currently)
- I had to cheat on this one.
I edited .charmcache manually, adding in all of my tags from LiveJournal (and cleaning up my tags on LJ while I was there)
The end result: I am even happier now with ljcharm!
(If anyone wants to laugh at my code, just let me know and I’ll send you the modified ljcharm.py. And yeah, I submitted my changes to the ljcharm team.)




