Blog

There's obviously a little context missing for this paste, but the basic idea should be clear ;-) more

With this you can upload images through your plugin/theme. They are saved as attachments. Please add nonce fields for security reasons. more

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

DjangoPythonBitcoinTuxDebianHTML5 badgeSaltStackUpset confusedMoneyHackerUpset confusedX.OrggitFirefoxWindowMakerBashIs it worth the time?i3 window managerWagtailContainerNginxSilenceTorWorldInternet securityFont