The m is for maus~. I do what I please. About m~, The Archives and the Lifestream RSS


  1. WordPress Support for Metabox Upload

    Sometimes you need to add a custom field metabox which allows the editor to upload a file. Trouble is that the edit form does not have the correct enctype. Here’s the easy way of adding it.

  2. Resize an Image Proportionally

    I’ve solved this a lot of times in various scripting and programming languages. This seems to be the most elegant solution (read: less code doing the exact same stuff as more code).

  3. PHP UTF8 substring

    Unfortunately, PHP’s own substr messes up the character encoding for UTF8 strings. Here’s one way to preserve the enconding.