Blog

Better Lorem Ipsum Generator for WordPress

2010-10-08

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

With this snippet you can log in a WordPress user automatically. more

fuse: bad mount point - Transport endpoint is not connected

2010-10-04

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

See my previous paste for the whole class (minus this) http://kuttler.eu/code/wordpress-plugintheme-options-page/ more

I use helper methods/functions in my themes and plugins to create the input fields, this was simplified for the example here. more

The function should probably check if the post already has the tag/category before adding it a second time. I should probably look into the wpispost_revision() part again as well. more

Access/ownership of new pages in typo3

2010-08-17

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

2010-08-06

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

2010-07-28

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

DjangoPythonBitcoinTuxDebianHTML5 badgeSaltStackUpset confused bugMoneyHackerUpset confused bugX.OrggitFirefoxWindowMakerBashIs it worth the time?i3 window managerWagtailContainerIrssiNginxSilenceUse a maskWorldInternet securityPianoFontGnuPGThunderbirdJenkinshome-assistant-logo