Archive for January 31st, 2007

It’s a good thing I exist

January 31st 2007

Because I wanted to install clee’s updated SPC player plugin for gstreamer, I went and created a couple of ebuilds for Gentoo Linux.

The overlay for Portage is here, and includes two ebuilds, one for the required libopenspc library, and another for gst-spc. Note that if you install libopenspc, then the gst-plugins-bad-0.10.4 package also contains the gst-spc plugin. I didn’t feel like installing all the broken plugins just for spc which is why I split it out into a separate ebuild (you also save all the download time ;-).

In theory libopenspc and gst-spc should work on non-x86 platforms, unlike the last version of gst-spc that clee and I developed. It works just fine so far in AMD64 and I can’t see any reason why PPC would be different (except for endianness ;) so feel free to try it out.

Looking for good SPC music? I recommend Zophar’s Domain or SNES Music. The soundtracks for any of the Final Fantasy games are good, along with Donkey Kong Country (IMHO).

At some point I need to finish my taglib bindings for SPC support so I can work on making SPCs play in JuK. :-)

Posted by mpyne under Programming | 3 Comments »

Migrating user data

January 31st 2007

So last time I mentioned that I bought a new computer and moved my user and system data over, and that I would mention some of the steps I took. It was actually much easier than I thought it would be.

The simple solution, of course, is just to copy over everything in /home to the other computer using scp or rsync and hope everything continues to work. :-). And actually, that worked just fine for my wife’s user account since her user name did not change.

In my case however, my username was still kde-cvs from way back in the day when KDE was developed using CVS. I switched my username to kde-svn to reflect the current repository for KDE, but then I had to make sure that stuff still worked.

The reason software would break is that the configuration files typically save the full path to any files that may be listed in the configuration. KDE applications, by and large, don’t do that, instead using $HOME to represent your home directory. (although I have a list full of exceptions which I will get to. :). Most of my other apps, however, would refuse to work due to the file paths being wrong until I corrected them all at once using a small Perl script.

One of the largest offenders in KDE is actually my cover manager code in JuK. Not only does it save the absolute file path, but the cover cache is stored in binary for speed, so I can’t quickly fix it! So I have no covers showing up until I write a Qt program to fix the file.

Other than that, things were actually amazingly easy to copy over and have work. KDE’s good support for relative file paths made the job very simple.

Posted by mpyne under Personal & Tutorial | 3 Comments »