WordPress’ Shortcode API is a really cool thing, and since I’m working on a Drupal site these days I’ve been looking for something similar. Unfortunately I couldn’t find anything… There are some implementations out there but the ones I found and tested always come pre-bundled with specific tags and don’t always provide an extensible and stable logic.
So I made mine!

Most of my work simply consisted in copying/pasting the code in WordPress’ shortcodes.php and binding it into a Drupal filter. Easy enough.
Now if you want to use it, you have to:
- Get the module
- Add it to your “modules” directory
- Enable it
- Add it to one of your setup’s filter bundle
- Write your own module where you’d implement one or more Shortcodes (via add_shortcode) and make sure you add “dependencies[] = shortcodes” in your .info file
You might experience a nasty “Call to undefined function add_shortcode”. If so, you have to change you module implementation’s weight, either directly in your database, or thanks to the cool Utility module. Set it to 10 and you’re set!
Happy new year, folks!

I’ve been looking for ideas for my 2010 greeting card and finally found what I was looking for. During the process I developed several iterations that didn’t made the final cut, I selected two of them that are not that bad but not good enough for prime time!
The “ad” version

The “flashback triptych” version
Since it’s a triptych it needs more space, so I set up a dedicated page… Go see it!
What now?
The actual greeting card will be posted in January!
I wanted to try Flex 4 with a “real life” project so I wrote this little thing. Rough draft.

The app will allow you to monitor files changes: select a text file and you’ll be prompted when it’s updated. Basic. By the way, did I say “rough draft” before?
Everything in it is OpenSource, from the Illustrator files to the MXML and CSS stuff, so play with it! For those who only want the .air, here it is.
Now, why is it cool?
- Build with the brand new Flex 4 (Gumbo) framework
- Uses a home-brewed IconButton class, because Gumbo doesn’t provide any
- Uses the new Spark custom skins logic (on Button, ScrollBar and more…)
- Uses the new states’ logic and transitions
- Based on as3corelib’s FileMonitor class
- Shows you how to build a multi-instance AIR app
- Contains Illustrator/Photoshop UI files
And why is it not that cool?
- Probably still buggy, wait for updates!
- Flex 4 is not done yet, so the code might break at any time
- No icons yet
- No or very few comments
- Pretty useless app!
If you’re trying to learn Flex/Flex 4 or wondering what’s new in it and how to use it you should definitively give it a go…
Have questions? Drop’em!
I wanted to do this for quite some time: a place that logs tracks I listen to.

Introducing TWPlaylist! Thanks to Twitter and a Winamp Plugin, all tracks that I listen to (at work) are stored on a dummy account (if you know a plugin that does the same for iTunes, please let me know). And to keep things nice and smooth, I set up a quick page that pulls this data and displays it thanks to some AJAX magic… Tracks link to a Discogs search page to find more about them.
As you can read the project page’s bottom, everything I wrote is opensource. HTML, CSS and JS ; help yourself. Nothing too fancy, but it could prevent you from wasting time… By the way, the code should be self-explanatory, but if it’s not I can help.
You will probably notice the some tracks’ data look weird, in fact the Winamp plugin chokes on special characters such as “&” and accented letters… I hope this gets fixed one day.
I’ve never been a big fan of Twitter as I think most user don’t use it the way it should be used, for example by having private discussions or retweeting too much. However it’s a pretty interesting platform for experimentation and art projects. What do you think?
[Sept. 2011 Update] I “donated” the twplaylist Twitter account to a charity campaign, so I moved the account archives to twplaylist_bckp.