Skip navigation

The last post

I have decided to no longer continue to blog in English on this site. I will still be blogging in Dutch.

It’s been increasingly difficult for me to maintain a certain continuity here. It’s been a great experiment, and a lot of fun, but I feel it’s time to let this one go.

I’m working on a new site with a much more narrow focus, something this site dearly lacks. It might still be a while before it sees the light of day, so I’m not revealing too much about it yet.

A big thanks to anyone who has been reading this blog, leaving comments or just following what’s happening. It’s been great!

Getting subtitles in sync

As an early new years resolution I’ll start with sharing more of the snippets I code up to make my life easier. Here’s one : the SRT subtitle scaler. It’s a little ruby script to sync subtitles with a movie. I don’t know how often one needs this, but I got some English subtitles on-line for a Chinese movie and I just couldn’t get them to properly line up with the movie.

Mplayer has an option to set a delay (possibly negative), but that didn’t help in my case. You can also set the subtitle fps (frames per second), but that only works when the subtitle format uses frame numbers, while SRT files use timestamps.

If you have this problem this script can help. There are usage instructions in the comments.

Enjoy!

Do what you can’t not do

By accidentally using the right four-word combination on Google I stumbled upon a 2002 article by Mark Pilgrim, and somehow it prompted me to use that good old blockquote tag once again. These are the closing words of the article, citing himself two years before that. Spot on Mark, spot on!

As I write this, the year is 2000, and the Internet is a battleground of intellectual property disputes. Some people would like you to believe that, without proper financial incentives, music, literature, and computer software would disappear. After all, who would make music if they can’t make money on it? Who would write? Who would program? I know the answer. The answer is that musicians will make music, not because they can make money, but because musicians are the people who can’t not make music. Writers will write because they can’t not write. I’ve been programming for 16 years, writing free software for 8. I can’t imagine not doing this. If you can imagine yourself not doing what you’re doing, do something else. Do whatever it is that you can’t not do.

Going Gutsy : installing the latest Ubuntu

A while ago the fabulous folks from Ubuntu released the latest version of their popular Linux distributions. The version number of Ubuntu, Kubuntu and Edubuntu is now up to 7.10 (being the year and month it was released). More often however Ubuntu versions are referred to by their alliterating nicknames. I’ll go over my experiences upgrading from Feisty Fawn to Gutsy Gibbon.

Upgrading from Feisty

Being a Debian based distribution all software management can be easily performed by the ‘apt’ family of tools. The first step in upgrading is letting apt know that I would from now on prefer the Gutsy packages.

sudo sed s/feisty/gutsy/g -i /etc/apt/sources.list
sudo apt-get update

You might notice that there is no gutsy-commercial repository like there used to be a feisty-commercial, with for instance Opera and Realplayer. If you were using it you’ll have to comment it out or keep using the one from Feisty.

When I do these big upgrades I switch to a plain tty console because I’ve had it happen that one of the install scripts restarted X11. So press SHIFT-F1 and login to the console. To have some record of what happened afterwards I use the great little utility ‘tee’. This will record whatever passes stdout to a file. So to start upgrading do this:

sudo apt-get dist-upgrade | tee feisty-to-gutsy-`date +%Y%m%d`.log

This way you’ll get a nice date stamped log of the whole install process. If you switch back to X (Shift-F7) to do some work in the meanwhile, you can open a terminal window and do a ‘tail -f’ on that file so you know what’s happening

First hickup : device-manager

After some 1300 packages were upgraded I rebooted my computer. A new kernel (2.6.22-14) had been installed, and it seemed to be making some trouble. Instead of booting into X I saw per second several identical error messages flying over my screen, the gist of it being:

device-manager: linear: dm-linear: Device lookup failed

Booting with my previous kernel solved the problem, so I got on-line and after some googling found a fix, in /etc/evms.conf find the line that says ‘exclude=…’ and change it to:

exclude = [ sd* ]

I’m not even sure what EVMS is, I’m guessing this is related to HAL (Hardware Abstraction Layer). What this does is exclude your harddrives, from eh.. something. It solved the problem for me.

I’ve had kernel upgrades in Ubuntu create problems before, IMHO they could be a little bit more conservative with their kernels.

Smaller hickups

After booting again everything was working like a charm. They also did a great job again on the artwork. I had to tweak a few more small things.

Mozilla’s Thunderbird email program is now started simply with ‘thunderbird’ in stead of ‘mozilla-thunderbird’. I had to update a shortcut.

I use Emacs for most of my editing tasks, and somehow the version with XFont backend that I previously had installed got replaced by another one. The version with XFont support is not available in the Ubuntu repositories so this is understandable. There’s a guy that packages this pretty version, and apparently he has since I last checked made an actual apt repository available. See this article : Pretty Emacs by Alexandre Vassalotti.

Looking closer I found to have three different Emacs flavors on my system. I just removed them all, added the repositories from Alexandre and installed my trusted XFont version. Nice!

There seems to also be something going on with StarDict. The little windows that pop up with translations jump to the upper left corner when you hover over them, and then immediatly disappear. I might have to revert to the old version.

Conclusion

I’ve been upgrading my system since Dapper, and although there are often small hickups a little bit of google will solve most of your woes. I’ve only used my new system for a day now, so there’s probably lots of new little features that I still have to discover. All in all this seems to be another rock solid distribution which I’d wholeheartedly recommend to both newbies and seasoned hackers.