Custom JavaScript events

So, you want to trigger an event when something happens in you javascript code? There might be better ways to do it, but here is the solution that I use for my code which is pretty light and easy to understand. Read the full article ...

How to minify HTML output in Django

So, you want to compress the size of the HTML that Django generates? Here is the Django way to do it.

In order to do this, you’ll have to write a middleware for your application. Read the full article ...

Quicktip: capture the output of a Django command

So, you want to programmatically call a Django command, and then capture it’s output? The documentation is very slim when it talks about how to call a Django command from code. To call a Django command from code it’s easy: just use call_command. To solve the trick of capturing the output of this I had to dig a little intro the Django source. Read the full article ...

How does Shazam work to recognize a song ?

So, you want to know how Shazam works? What is Shazam, you may ask ? Le’s say you’re in a bar, and they play a song that you like and you don’t know its name ? Shazam can help you find out what is the name of that song. Read the full article ...

Fix fieldset background color in Internet Explorer

So, you like Internet Explorer ? Me neither. Oh, don’t get me started… But sometimes we need to ship pages with support for Internet Explorer because there are still people out there to lazy to install a proper web browser.

Because of this, I decided to start an article series on fixing some everyday, more or less complicated, Internet Explorer issues. For the first article, I’ve chosen a very popular problem: changing the background color of fieldsets in Internet Explorer. As you may know, as soon as you change the color of the fieldset’s background, you’ll see that the color of the background will bleed at the top of the fieldset Read the full article ...