Wishful Coding

Didn't you ever wish your
computer understood you?

Pepijndevos.nl moved to Posterous

After weighting the pros and the cons of moving to Posterous completely, I decided to do it. Wishful Coding has now completely moved to Posterous.

If you see anything broken, drop me a line or try the original blog, which will be available for a while at pepijn.cqhosting.nl.

I'd like to thank the awesome people of both Posterous and CQ Hosting(who used to host my Wordpress blog). From the initial export tot the switch of the domain took only a few hours.

The only thing that didn't go as planned are he images in old posts. They where still linked to pepijndevos.nl, which meant that switching the domain would break links.

I asked CQ Hosting to make my old blog available through some sort of address, which they did almost instantly. Now I could replace every instance of pepijndevos.nl with pepijn.cqhosting.nl, and keep all images and links intact.

My beautiful Wordpress Theme is gone for now, but I'll make my own Posterous theme later on. Watch out for some crazy CSS3 and HTML5!

My thoughts on iPhone reception

In the press conference Apple gave on July 16 about the iPhone G4 reception issues, they basically said that the 4 or 5 bars you usually see where fake, and caused by a "bug" in the way signal strength is measured.

If I remember correctly, there was another "bug" with the reception prior to iOS 4, that was solved by a software update "improving" G3 reception.

I can't help thinking they just tweaked their formula to show high bars to save their asses, and this backfired on them with iOS 4.
Published on

Bring actual image data in sync with EXIF orientation

While sorting out all my holiday photographs, I turned them to the right orientation using F-Spot photo manager. When I came home I imported them into Adobe bridge, sorted them all out using all sorts of labels, tags and ratings.

Everything was fine so far, until I looked at them with a bad viewer, or uploaded them to Facebook. F-Spot and Bridge happily adjusted the orientation in the EXIF meta-date, but left the actual image untouched.
Not all viewers check the EXIF data before displaying an image, so they display it in the original orientation, corresponding to orientation 1 in EXIF.

Now I was stuck with over a thousand neatly sorted and rotated photos, that I could not publish without rotating them all again with another application.

Luckily I was saved by this page: http://sylvana.net/jpegcrop/exif_orientation.html

If you run Mac and probably Linux as well, jpegtran is already installed.

Just download the C app and the Bash script, but them in the same folder and run this command to compile:
gcc -o jpegexiforient jpegexiforient.c
Now run these commands to make the files executable:
chmod +x jpegexiforient
chmod +x exifautotran
I had to change exifautotran to read ./jpegexiforient in 2 places instead of just jpegexiforient. Otherwise it'd say "command not found".
Now you can run "./exifautotran file.jpg" to convert a single file, or "./exifautotran /dir/*.jpg" to convert a whole directory of jpg files.