Balkenende-vertaler update

In het kader van de val van het kabiniet Balkenende-IV heb ik mijn beroemde en beruchte Balkenende-vertaler geupdate met nieuwe zinnen. De achterkant is helemaal herschreven en draait nu op de API (lees hier wat dat is) van de Twol. Je kan dus nu ook zelf je Balkenende-vertalertje bouwen.

HOWTO let it snow in <canvas>

I’ve been experimenting a bit with the <canvas> tag. And hey, what’s a better way to use it right now than to make a browser screen full of snow? It even works in Internet Explorer (using excanvas) although pretty slow. For best results view in your favorite non-crappy standards compliant browser.

View a demo here. And if you want to tinker with it, download the sources from Google Code (open source under the MIT/X11 license).

Want to learn more about the <canvas> tag? Try this tutorial from diveintohtml5.org or the one from Mozilla.

Merry christmas!

Rotate buttons don’t work in WordPress 2.9

Wondering why those cool ‘image rotate’ buttons you’ve seen in the WordPress 2.9 video aren’t working on your installation? They apparently depend on a PHP function which isn’t very widely available, and hence, they don’t show up.

I’ve created a ticket for this bug in WP’s bug filing system, so go there and vote for it so the developers can fix it in 2.9.1!

Tweakers zet statistieken in titelbalk

tweakers

Het was me eigenlijk nog nooit opgevallen dat Tweakers statistieken in de titelbalk zet. Eigenlijk best leuk, en zeker toepasselijk voor een hardcore technologiesite als Tweakers.

Had ik trouwens ook al eens gezegd dat de nieuwe Pricewatch van Tweakers fantastisch is? Nee? Nou bij deze dan maar.

The Twol: now available as a terminal (cli) command

cli

I wrote a little shell script that enables you to query The Twol (you know, my little pet project that provides instant information on lots of things) from the terminal (command line interface).

So, now you can do stuff like:

» Translate sentences from English to German (and many other languages)
twol translate en de I would really like a nice cold beer

» Get the weather for virtually any city in the world
twol weather St. Petersburg, Russia

» Check if a Twitter username is still free
twol twitterusernamefree stevejobs

Right from the command line (under Mac OS X and Linux at least :)

You need PHP to run the script. In Mac OS X that’s included out of the box, under Linux you might need to install php5-cli or another package with a similiar name.

Then you can simply:

  • download the script
  • copy it somewhere in your $PATH
    cp twol /usr/local/bin
  • make it executable
    chmod u+x /user/local/bin/twol
  • have fun!

Photo credit: *n3wjack (CC-BY-SA)

Fuck you Apple

MA591

Het oplaadkabeltje van mijn iPhone was kapot. De draadjes bij de USB-aansluiting lagen bloot, en om erger te voorkomen had ik er een stukje ducktape omheen gewikkeld. Maar dat is natuurlijk geen oplossing: ik had een nieuw kabeltje nodig, en mijn iPhone viel nog onder de garantie dus ging ik naar een lokale T-mobile winkel om het probleem uit te leggen. Ik dacht: dat is simpel, je laat het kabeltje zien, vult een formuliertje in en je krijgt een nieuw kabeltje.

Helaas, zo simpel is het allemaal niet in de wonderlijke wereld van Apple. De jongen aan de balie vertelde me dat het kabeltje opgestuurd moest worden, ze zouden kijken ‘of het mijn schuld was of onder de garantie valt’, en dat ik binnen anderhalve, maar misschien ook drie weken een nieuw kabeltje zou krijgen. In de tussentijd kan ik mijn iPhone dan niet opladen of bestanden overzetten, maar ik kon eventuuel wel elke dag langskomen bij de T-mobile winkel, mijn telefoon afgeven, en dan zouden zij ‘m opladen terwijl ik ga winkelen.

De jongen was het helemaal met mij eens dat het niet bepaald goede klantenservice is dat ik mijn telefoon drie weken lang niet kan opladen. Maar, dat lag niet aan hun, maar aan Apple. Bij alle andere telefoons mogen ze gewoon een nieuw kabeltje meegeven terwijl de oude ‘in reparatie’ gaat (in de prullenbak dus). Apple had als enige besloten dat zo’n beleid toch echt te ver ging en koos in plaats daarvan ervoor om mensen drie weken lang zonder telefoon op te schepen (want zoals u misschien wel weet is de batterij van de iPhone na een dag wel leeg).

Derhalve dus, Fuck you, Apple. Als m’n contract afgelopen is koop ik die andere telefoon wel.

Backup your tweets with BackupTweets

logo

Twitter is a typical example of a cloud service. Unfortunately, having all your tweets in the cloud instead of on your hard drive has a large drawback: things can go wrong. A few days ago T-mobile subscribers lost all of their data because of a large server outage at Danger, a Microsoft subsidiary. Something like that could happen at Twitter too, meaning that all of your beloved pieces of 140-character poetry are gone.

Furthermore, Twitter has an artificial limit in place that limits you to viewing your last 3,200 tweets. I’m an avid user of Twitter myself, and seeing my number of tweets rapidly reaching to the 3,200 limit i set out to do something about it and backup my tweets.

There are several solutions for doing this. But many of these didn’t fit my needs. Most of them require you to enter your username/password, which isn’t a very cool thing or are a bit clunky in their user interface.

So, i wrote something myself called BackupTweets. It’s completely open source (GPL-licensed), so you can download the whole package and run it from your own web server. The only thing you need is a web server running PHP.

You simply enter your username/password and press ‘GO’. The application will fetch all of your tweets in their original format (straight from the API) and save them as a big JSON file (for archiving and later processing), but also as a handy HTML file.

If you’re comfortable with entering your username/pass you can check out the demo. If you’re not you can download the whole package as a zip or check out the source code directly from Google Code.

» Een overzicht van alle artikelen vind je in het archief.

Hallo! Ik ben Hay. Ik maak kunst, doe projecten en blog hier. Lees verder »

Projecten

Meer Hay bij...

Archieven op maand