Fixing picasa database

Ever since I upgraded picasa, there had been problems of photos displayed with the wrong transformations applied, albums messed up etc. I had been fumbling around with the picasa.ini files sometimes, so I wasn’t entirely surprised. 😉 So today, I did once more a fast google search, hoping I was feeling lucky ( 😉 ). So I was 🙂
There was this guy who wrote a perl script for fixing his picasa.ini. It seemed it wasn’t exactly what I was looking for. Until he said like, btw, remember to clear your database by holding ctrl+alt+shift while starting picasa. Guess what, it worked excellent for me! 🙂 No more troubles.

Bash tip

Recursively changing the permissions of a directory structure:
find . -type d -exec chmod o+x {} \;

I’ve always found that the find syntax is quite cryptic yet very powerful. Small explanation:

  • find . : start finding in current dir
  • -type d: only directories!
  • -exec chmod o+x {} \;: this is an interesting one. It’s obvious it’s about executing some command =) but what about the braces and the semicolon? The semicolon is just the end delimiter for the exec command and to ensure it does not get interpreted by your shell, it is escaped. The {} is simply a variable indicating one result from the find query, in our case, a subdirectory. Of course, the exec command itself can be anything, here it’s a permission change.

Yet another 3D engine?

Back in the ‘old’ days, I once (actually thrice =)) wrote my own 3D engine just to find out Ogre did all of that and more. 😉 Naieve as I was, I was surprised to find a very similar design in it. 🙂 Still, at that time, it was more or less justified to roll my own because ogre was still growing up and I needed to implement a kind of volumetric texturing technique which was quite unconventional which made it not suitable as a plugin/extension for an existing engine. And as for everyone, for me too, it was great fun to make it from scratch. 🙂

The situation nowadays is a bit different. You would need to come up with a very good reason if you would like to convince someone you need to write yet another open source engine. It’s a fact that the open source 3D engine market is quite well established by now. Just take a look at projects like Ogre, Crystal space (go Jorritbelgian flag small! ;)), Irrlicht, Cube, …

Still, people DO seem to be able to find reasons. 🙂 Enter a world of dragons: the DragEngine. I think it’s an interesting approach which is typically inspired by open source roots (a closed commercial game does not have immediate interest in the flexibility that the DragEngine provides, or at least not to that extent (imho)). It’s definitely a project I want to follow-up, even just out of curiousity where it will end up. Because, let’s face it, it’s quite an ambitious project, developing its own tools/components from top to bottom.. I’m a bit surprised I never heard of it before, so that’s why I’m promoting it a bit now. 🙂 Keep up the good work!