Wishful Coding

Didn't you ever wish your
computer understood you?

Messing with the REPL with Twisted

I love to try out things on the REPL(read eval print loop) before I write scripts with them. The trouble with Twisted is that everything returns deferreds, and after your start the reactor, you can’t do anything anymore.

All this is solved by this one single command. It gives you a REPL powered by the Twisted event loop. To make things even better: It prints the value of a deferred once it is finished!

python -m twisted.conch.stdio

Added hint: Put this in a file, do “chmod +x” on it and put it on your $PATH.

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