Skip to Content

jabapyth's blog

Songbird Global Hotkeys for Ubuntu Linux

    One thing that I have really missed in playing with songbird is Global Hotkeys for changing the song, etc. This functionality is available for Windows, but Linux (and Mac) users still have to wait if we want official support. There is a workaround, though, thanks to GeekShadow's addon Command Line Support. This allows for all kinds of clever hackery, including global Hotkeys.

Event Bubbling example

Event Bubbling

Javascript events are handled in a very particular way...
a way that isn't always immediately intuitive. For an excellent description of just how this all works, check out this article over on quirksmode.org. The purpose of this post is to give you a practical knowledge of how this actually works, as well as point out a few quirks.

UNetbootin failed to unmount /cdrom

I used UNetBootin to install Karmic (Ubuntu 9.10) to my laptop, but I kept running into the error "Failed to unmount partitions"

The installer needs to commit changes to partition tables, but cannot do so becaue partitions on the following mount points could not be unmounted:

/cdrom

Please close any applications using these mount points

Would you like the installer to try to unmount these partitions again?"

SVG Birds


I needed to create some svg birds for a game I'm working on (i couldn't find any around) and I thought I'd share them; feel free to use/abuse them in any way you want ;)

Error installing xdebug: phpize not found

So I ran "sudo pecl install xdebug" like a good linux user, but was stymied when it threw the error "phpize not found", especially when "sudo apt-get install phpize" yielded no friuts (darn it, that usually works!)The magic package actually happens to be "php5-dev", so a quick "sudo apt-get install php5-dev" fixes everything!Now wasn't that simple...of course it made me waste a half hour searching, but, never again ;)

[Drupal] Make user profile URLs readable

Here's a tip for making you're community site that much more user friendly:
change this:
     http://example.com/user/5275
to this:
     http://example.com/users/joe-shmo

Much better, right?
To accomplish this, we will make use of the excellent Pathauto module, which, among other things, allows us to alias user profile urls.

All screenshots from drupal theme garden on one page

I got annoyed with drupal theme garden so I whipped up this page

this shows all the screenshots from all the (drupal 6) themes on themegarden.org
check it out here

Songbird Recipe: Playlists

Here's a quick javascript+XPCOM recipe on how to get a list of the user's playlists in a songbird extension.

Install Python 2.6 in Ubuntu

At first blush, it would seem that those wanting the latest stable python, 2.6, would have to compile it themselves (or so python.org would indicate). Fortunately for us, that process, which is at best annoying, and at worst long and complicated, is spared us by our friends over at Launchpad, and their "Personal Package Archives".

Convert videos with ffmpeg

FFmpeg logo

FFmpeg is a wonderful tool which every aspiring linux guru should get familiar with. The thing it does, just about better than anything else, is handle media files. You can mux them, demux them, encode/decode, resize, compress .....you name it.

RSS

Syndicate content
Syndicate content