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



Snippet

  1. Migrate (WPML) WordPress

    Or another method to replace old permalinks with new ones when you either have a database that’s too large or, by way of WPML, have to be sure you don’t corrupt characters. Also featured: the basic find & replace method.

  2. 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.

  3. 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).

  4. PHP UTF8 substring

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