Blog

WordPress Pastebin

This plugin is for you if you like sharing your code. Turn your blog into a pastebin and keep your own code on your own site. You can tag your pastes like you tag your normal posts, and visitors can leave comments if you allow it. I wrote this because ... more

Better Lorem Ipsum Generator for WordPress

When you create WordPress plugins and themes it is often a good thing to test them on blogs with much data. Since 3.0 I use custom post types and custom taxonomies a lot and couldn't find a plugin that autogenerates them. Hence I wrote a new plugin. Features: Automatically create ... more

fuse: bad mount point - Transport endpoint is not connected

I mount various directories over ssh for convenience. Occasionally the connection gets interrupted and this leads to errors like: fuse: bad mount point /mnt/foo: Transport endpoint is not connected It took me a little time to find out how to fix this problem: kill the sshfs process(es) umount -l /mnt/foo ... more

Access/ownership of new pages in typo3

Typo3 has a very powerful workspace feature. You can use it to give different groups different access rights to a sitetree. This is useful when you have many users, groups and workspaces. One problem that can appear when you don't configure everything properly is that new pages, created by an ... more

Merging and splitting XML files with simpleXML

Here's a way to merge parts of two XML files with PHP's simpleXML. This also preserves the attributes, which was where the information was stored in my case. This script will not work out of the box for you, so edit it. Use var_dump(), print_r() and friends. <?php $file1 = ... more

wp_enqueue_style, versioning and conditional CSS comments

I like to enqueue my CSS styles because it has the benefit of adding a version string. A link like style.css?ver=0.7 is useful because it will force visitors to download an updated style.css when the version number is increased. Here's what I currently use in my functions.php: <?php if ( ... more

Ajax For All WordPress Blogs

This is a new plugin of mine that will turn many existing WordPress blogs and their themes into Ajax-powered blogs. The best way to see what this plugin does is to look at the live demo. The theme on that site wasn't tweaked at all to make the Ajax functionality ... more