Categories
General

Digikam-pocalypse

I’ve been using Digikam to organize my photo portfolio into albums and tags for quite a while. I have something like 2500 photos, with a few albums and a LOT of tags. The new version of Fedora comes with KDE 4, which apparently includes a new version of digikam. Normally this would be a good thing – more features, prettier interface, etc. Unfortunately, the new version’s database is a little different, so it’s gotta import photo info from the old database. Sadly, it failed to import mine for some reason, maybe because I have so many tags or photos. It started up fine with just the photos, making a new database from scratch, but my old tags obviously weren’t there.

I thought about just waiting patiently for an update to digikam to see if that’d fix it, but I figured I’d poke around in the meantime. Digikam stores its photo info in a SQLite database, which can be messed with using the SQLite Manager add-on for Firefox. Sounds strange, looks pretty ugly, but it works well enough. SQLite databases are just files so I made a copy of my old database and the new, empty database to work with. The old and new databases looked pretty similar – there are just a few new tables and some tables have new fields. The tag-related fields look exactly the same though, so it’s pretty odd the import failed. I’d hoped to just use SQLite Manager to just copy the old tags tables into the new database, but the image ids were sadly different. All my image names are unique, which meant I could run a query to match up the old and new image ids using the image names as a key, then replace the old ids in the copied-over ImageTags table with the matching new image ids. Complicated, but it worked…

Categories
General

Liferea + Flash in Fedora redux

I’ve been without Flash support in Liferea for my x86_64 Fedora for quite a while. Well, Adobe has a 64-bit alpha version of their sucktastic Flash Player available now, and it seems to work perfectly with both Firefox and Liferea – so now I can watch BB’s lame unicorn videos right in my favorite feed reader. I can’t decide whether this is good or bad.

Categories
General

Cran-ban-nut muffins

Cran-ban-nut muffins

Something to do with leftover cranberry sauce…

Ingredients:

  • 3 very ripe bananas
  • 3 eggs
  • 3 tablespoons soft or melted butter
  • about 3 cups of fluffy nut flour (grate in a rotary cheese grater or buy at Trader Joe’s)
  • flavoring like vanilla, nutmeg, etc.
  • about 1 tablespoon honey
  • about 1/4 teaspoon salt
  • about 1/2 teaspoon baking soda
  • about 3/4 cup cranberry sauce, hopefully homemade

Preheat the oven to 350 F. Smash up the bananas in a bowl first, leaving chunks if you like. Mix in everything but the cranberry sauce, adjusting the amount of nut flour to get a batter that’s a little thicker than usual – the cranberry sauce will thin the batter. Fold in the cranberry sauce carefully if you don’t want pink muffins. Spoon into muffin pans and bake about 35 minutes for smallish muffins, watching carefully for brownness – the nut flour burns easily.

Categories
General

Showing all of an author’s posts on an author archive

One of my family blog authors just noticed that the author archive pages weren’t showing all of an author’s posts. It turns out that the sample author template in the WP Codex that I’d borrowed only shows the number of posts from WordPress’ Settings – in our case 5 posts – and the sample doesn’t include navigation links. Caveat emptor on the Codex examples of course, but even once I noticed the problem it wasn’t all that apparent how to fix it. I wanted to display more (actually all) of an author’s posts because it’d be pretty tedious to use nav links to go through hundreds of posts. After some Codex browsing I figured out that re-doing the query just before the Loop works:

<?php query_posts('author=' . $curauth->ID . '&showposts=-1'); ?>

This is probably running two post queries and highly inefficient, but it does work – I added a little counter to the Loop to double-check.

Categories
General

2008 European adventure: Breidel to Aachen

Summary: On the final leg of our trip, Mandi, her mom Bette, Bette’s mom Nancy, Nancy’s friend Cassie, and I made our way from Hahn airport to Breidel on the Mosel River to Beilstein, Burg Eltz, and a rendezvous with our friends in Aachen. Mandi and I headed back home via Frankfurt airport while the others stayed a couple more days.

25 October

Our Ryanair flight back to Germany didn’t suck too much – they did try to sell us lottery tickets and booze but they were roughly on time and didn’t hit any birds. A drunken guy got up while we were taxiing though, so someone was buying the booze.

Mandi went looking for our rental car while I sat on the luggage. We ended up with another sweet minivan, this time a VW Touran. Is that the same minivan as the Routan that Brooke Shields is trying to sell Americans? It was comfortable enough, black, and had a navigation thing. Unfortunately, the navigation thing only seemed to know German, so we got a bit lost before we managed to decode enough German to get headed towards Breidel. I never did figure out how to change the language, so by the time we got to Frankfurt we knew a smattering of navigation-related German words.