This is the archive for July 2006. Recent posts can be found at the main blog page.
Some of my digital music is in the lossless Flac format, which is way too large to carry around on my laptop. I use the following GStreamer magic to convert the Flac files (other types work too with this pipeline) to high quality Ogg Vorbis files:
for file in *.flac; do gst-launch-0.10 filesrc location="$file" ! decodebin ! audioconvert ! vorbisenc quality=0.8 ! oggmux ! filesink location="$file.ogg"; done; rename 's/\.flac\.ogg/.ogg/' *.flac.ogg
I’m just blogging this because otherwise I’ll forget how to do this when I need it again…
Update: Yes, I know that
oggenc -q8 *.ogg does basically the same, but oggenc won’t preserve ID3v2 tags on Flac files (people do this, don’t ask me why), while the GStreamer pipeline seems to preserve the metadata just fine.
After seeing the demo at the Novell Code 10 launch party last week, I decided to try the new ‘Computer’ applet Novell uses as their main Gnome panel menu and the ‘Application Browser’. The source code can be found in the slab module of Gnome CVS and I had no problems compiling the thing. (Update: the module name in CVS is now called gnome-main-menu.)
Overall I’m quite impressed, it certainly looks good for a first version. Some random comments:
(gnome-main-menu:25751): WARNING **: network_status_tile_open: could not find NetworkManager's applet.gladeto the console, but I do use NetworkManager and it’s running alright.
All in all I think this applet is really promising. With some more love it could certainly replace my standard Gnome ‘Applications, Places, Desktop’ menu, but in its current shape it’s just a bit too immature and lacks a few features to be a full replacement.
I’ve been using the color palette from the Tango Desktop Project in gnome-terminal for a while now. It is quite easy on the eyes and integrates well with the Tango icon colors used in my Gnome desktop.
You can do the same by using the gnome-terminal interface, but that is a lot of work. Luckily, editing a gconf key does the same: fire up gconf-editor and edit
/apps/gnome-terminal/profiles/Default/palette (you can also change another profile) and set the value to this string:
The small script used for the screenshots can be found here: ansicolortable
Update: Let’s get this upstream! Bug and patch over here. The patch adds the Tango palette to the list of built-in color palettes.
Update: Patch committed, so this can be enabled by default.
Update: This color scheme is now the default in recent Gnome terminal versions!
A tip for the hot summer days:
apt-get install lm-sensors sensors-applet and add the sensor applet to your panel. Setup the sensor and use this as the alarm command:
notify-send -u critical 'CPU Temperature too high!'. It will popup a notification bubble if the temperature becomes too high.
Update: it seems that newer sensor-applet versions use libnotify directly: the notification bubble points to the sensors applet and has a nice icon too. Debian packaged this version just 1 day after I posted the
notify-send trick… I suspect a conspiracy.
However, I think this is a perfectly normal workflow if you need to create an overview of several documents that follow the same format:
Why bother doing boring copy/paste/formatting jobs over and over again if you can automate using a little bit of creative hacker imagination?
Wouter Bolsterlee, also known as uws, a postmodern geek living in the Netherlands. Read more about me…
Unless stated otherwise, all material on this site is available under a Creative Commons Share-Alike license.