Monthly Archives: September 2010

After I installed RGBA support for GTK+ on Ubuntu, Flash in websites showed up as a blank! Well here’s the fix, if you find it useful do comment!

I’ve tested two browsers, which were Firefox and Google Chrome. When I run Firefox from the terminal the line outputted from the RGBA module(which looks like “progname=blabla RGBA=on”) had <unknown> as the progname, and with Chrome it was ‘exe’. All I had to do is to edit ~/.profile file(append if you have other entries).

I didn’t find an algorithm on the internet for listing all non repeating partitions of a number(which is hard work). This took me about a week to finish because I didn’t find the core of this problem, number partitioning is described by an equation called the Diophantine equation. Even though I saw this equation multiple times when browsing wikipedia, I didn’t use it to get the output I wanted, until today! Today(after seeing the same equation on mathworld.com, and caring to take a look) I found that it isn’t that hard if I use a recursive algorithm and record the results of it using a linked list(I kinda plugin linked lists mostly in to anything I code, specially algorithms!). Well, this is it!

I’ve been working on some Quodlibet code recently, and here’s the patch. And for people who don’t know how to patch, here’s my version(patched) of search.py; you should put it in quodlibet/browsers (you should replace the existing one). I’m not going to explain it more since the above images speak for themselves. This will be much useful for those who have Portable MP3 Players, who need to copy some number of GBs of their favorite songs at the moment. QL’s already existing impressive search only lacked an iterative list, and I implemented it! Feels good!

PS: I developed a Pidgin IM status updater for Quodlibet too(most of the credit should go to the Pidgin Wiki contributors). Add this file to your /home/username/.quodlibet/plugins directory