Tuesday Mini Hack

I took a break from working on my slides today to do a mini hack that had been crossing my mind. I rarely need devhelps full gui, i just want quick access.

Since I ported gnome-do's relevance to python last september and wrote the async io file walker, it was a breeze.

It's a bit slow on updating the treeview when it scores all the items. This could be fixed by rotating between two models and updating the second model in a background thread. but it works for now.

git clone git://github.com/chergert/ddg.git 

Comments (3)

  1. ulrik wrote:

    I’m using your relevance module btw in a mini-hack called kupfer. It’s a launcher but I’m not sure it’s going to become anything soon..

    Friday, February 27, 2009 at 10:35 pm #
  2. chergert wrote:

    Most excellent. For the record, the Gnome-Do guys relicensed that under MIT X11, so you should be able to use it as such if preferred over GPL-3.

    Friday, February 27, 2009 at 10:51 pm #
  3. ulrik wrote:

    btw, following up here. I don’t think I send you this patch — basically relevance.py does some division operations that always return 0. It only changes ranking marginally; so I have a patch to do

    from __future__ import division

    so that good /( good+bad) returns a float rather than 0 (since integer division truncates in python 2.. was fixed for python 3!)

    http://github.com/engla/kupfer/commit/5516b5e8b7135da9aef48aff862ba84cb7ebb737

    Sunday, March 15, 2009 at 1:38 pm #