Blog
csvfaker - Generate CSV files from the command line
csvfaker is a command line tool to generate sample CSV files using Faker.
To install it, run:$ pip install csvfaker
Drupal guide for developers
It's still very short, but a few months ago I started a Drupal guide: Drupal 7 guide for Professional Developers.
Although it's a very personal, biased document, it's also a wiki that anyone can edit and improve.
Adding JavaScript and CSS to every page in Drupal without using hook_init()
The problem of adding css or javascript inside a hook_init() implementation, is that the hook is called during _drupal_bootstrap_full(), and will run in cases where we are not delivering HTML (such as AJAX requests). Even if this does not have any visible effect, as the html is never outputted in these requests, it unnecessarily penalises them.
Update a field without saving the full node in Drupal
Use field_attach_update() instead of node_save():
JavaScript type checks
Looking for the difference between typeof variable === 'function'
and jQuery.isFunction()
I found this useful table for checking JavaScript types:
Optimizing media for the web: PNG images
PNG images, like other media formats, can be compressed in two different ways: Lossy and Lossless.