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)

Kaart van kringloop (afvalscheidings) punten in Utrecht

In sommige delen van Utrecht wordt het oud papier wekelijks opgehaald, maar helaas is dat dus niet overal het geval. Daar moet je namelijk je afval zelf scheiden bij zogenaamde kringlooppunten waar bakken zijn voor oud papier, glas en soms textiel.

De website van de gemeente bied wel een overzicht aan van alle kringlooppunten in de stad, maar helaas zijn dat alleen maar de straatnamen en is er geen kaartje. Misschien dat u een echte Utrechter (nee, geen Utrechtenaar) bent en al die straten uit uw hoofd kent, maar ik niet. Vandaar dat ik dus maar zelf een Google Map heb gemaakt met alle kringlooppunten in Utrecht Oost. Vul gerust aan, of maak uw eigen kaartje met uw favoriete kaartentool.

Naschrift: met dank aan ‘mulder’ hieronder in het commentaar: er is wél zo’n kaartje te vinden, via de website van GemGids. Onbegrijpelijk dat de gemeentesite daar geen linkje naar heeft geplaatst op de eigen site.


Kringloopstations Utrecht-Oost weergeven op een grotere kaart

Music

I’ve made some music over the years. Here you can listen to some of my tunes. Note all this music falls under a free license, so please feel free to download stuff, share it with your friends, remix it, etc, as long as keep the terms of the license in mind.

Read the rest of this entry »

» An overview of all articles can be found in the archive.

Hi! I'm Hay. I make art, do projects and blog here. Read more »

Projects

More Hay at...

Archives by month