Blog

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

Ajax For All WordPress Blogs

2010-07-22

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

WordPress is stupid

2010-07-13

Upset confused I have stopped using WordPress for personal projects and only use it professionally any more. In case you haven't been aware of this, WordPress core developers think that potentially breaking thousands of links on thousands of sites is an accepatable edge case. Here's a great summary of what has been … more

Samsung ML-1610 on Debian GNU/Linux

2010-06-30

I bought this printer a long time ago and it was connected to my Mac until that box died. I tried to install it once but never tried again after I didn't get it to work in less than five minutes. Well, this time I did invest like ten minutes … more

Using recordmydesktop to upload to YouTube, Vimeo etc.

2010-06-21

recordMyDesktop is a great tool to make videos of what you're doing with your computer. This can be very useful to demonstrate software features or to document workflows. By default, recordMyDesktop produces Ogg-Theora-Vorbis. If you want to share your files or upload them to a video site you'll want to … more

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