The Little Things in Life Rock

Nathan Weizenbaum was helping me with a few issues in a pet project I’m working on.

In the process, I ended up learning a really neat trick that Ruby can do.

To give you a bit of background, I’m working on a GTK Tray Icon. To make a menu spawn upon right-clicking the tray icon, you’d expect to see something like this:

require 'gtk2'

class TrayIcon
  def initialize
    trayicon =
    trayicon.set_tooltip('My Tray Icon')
    trayicon.signal_connect('popup-menu') { |button, activate_time| on_right_click(button, activate_time) }

  def on_right_click(status_icon, button, activate_time)
    rc_menu =

    exit ='Quit')
    exit_image =, Gtk::IconSize::MENU)
    exit.signal_connect('activate') { Gtk.main_quit }

    rc_menu.popup(nil, nil, button, activate_time)

But, the line 8th line (trayicon.signal_connect …) is a bit unwieldy. The thing is, we need those arguments to be passed for everything to work. And that’s where Ruby’s Proc handling comes in to save me. The same line can be re-written, and work, using the following line instead:

trayicon.signal_connect('popup-menu', &method(:on_right_click))

Banshee Plugin for Xchat

I’ve been working on a wide variety of projects lately, so when I got some spare time today, I did something for myself.

As such, I’ve done a complete rewrite of the Banshee plugin for Xchat. It’s stable and shouldn’t have any bugs. Works great on this end. The code itself is improved as well. 🙂

You can nab a copy here.

Ubuntu: The First Distro to Ship Compiz-Fusion by Default

As of the Tribe 2 release, due to the awesome work on the part of Michael Vogt (mvo) and Travis Watkins (Amaranth), Compiz 0.5.1 git and the Compiz-Fusion main plugins are not just a part of the default installation of Ubuntu, but enabled by Default, even on the LiveCD.

Of course, it’s only enabled for supported hardware devices, so for you folks that can’t run Compiz, you’ll be greeted by Metacity as always.

The rest of the Compiz-Fusion stuff is also in the universe repository, so feel free to pick it up by running the following command:

sudo apt-get install compiz-fusion-plugins-extra compizconfig-settings-manager

Keep in mind, Gutsy is alpha software and isn’t recommended for use on your desktop, however, if you’re feeling gutsy, it’s a fun experience. 😉

Some Neat Stuff

I’ve been anxiously awaiting the release of SLED 10’s Service Pack 1 for a few small items: Gnome Main Menu 0.9.8, updated Gilouche theme, etc.

Finally, on the 18th, after way-too-long a wait, they put it out.

Since then I’ve compiled and configured a few things, while a couple more are being put off for a little bit (namely the international clock – which requires rebuilding the whole of gnome-panel).

Here’s a shot of Gnome Main Menu 0.9.8, with the updated Gilouche theme, to give you just a taste of some of the neat things that should start making their way upstream.

Adobe Really Does Love Us!

In addition to this week’s announcement about a particularly awesome little beta release of Flash 9 Update, which features all sorts of treats such as native GTK support and fullscreen use, Adobe has gone one step further in easing adoption of Flash on Linux: particularly for PCLinuxOS, openSUSE, and Fedora users.

As of yesterday, Adobe now sports its own, maintained YUM repository for Flash. 😀

In order to install Flash, just run the following:

wget -O ~/adobe-release-1.0-0.noarch.rpm
su -c "rpm -Uvh adobe-release-1.0-0.noarch.rpm" root
su -c "yum install -y flash-plugin" root

Remember to restart any web browsers after installing Flash!

With Net Censorship on

With net censorship on the rise, it is the responsibility and the privilege of those we can speak to speak for those who are repressed.

That said, I encourage each and every one of you who value your ability to spread information and have privacy and freedom on the Internet please visit (a sub-site of Amnesty International) and add your name to the list of those who refuse to let their freedoms be systematically robbed from them.

Gustav Holst is Pretty Much My Hero

Ever now and again I have these bursts where I have an extreme affinity for either a particular composer or piece.

Currently, the lucky piece (and man!) is Gustav Holst’s “Second Suite in F”. I just love it – most especially the second movement. 😀