Some time ago, I developed a VERY simple way to fake a bit.ly-style short URL. On any server that uses any form of an integer to identify an article (either in the database or the URL), on an Apache server that supports mod_rewrite, you edit your .htaccess file like so: RewriteEngine Off <ifmodule mod_rewrite.c> RewriteEngine […]
This is the third time I’ve had to spent serious time “fixing” WordPress. Say what you will about my old “Small Axe” or “Flip” solutions, but I never had a problem. With WordPress, I have found regular issues. This time, I traced the problem back to wp-lytebox, and I’m ashamed to say I’ve had to […]
I just started putting together a series of articles I will be publishing on OSNews. I’ve only roughly sketched it out, but in short, it’s going to discuss how OSNews works, how the PHP is structured, why we made certain architectural decisions, why we don’t use tried-and-true CMSes like WordPress, Slash, or Joomla!, and how, […]
I never expected to release another version of my old weblog project Flip, but while searching my own name in a new search engine, I came upon several vulnerability reports for Flip 3.0. I’ve known about them for awhile now, but having dropped Flip in favor of another project (which I’ve since abandoned, for the […]
Although I posted yesterday how to add your latest tweet to WordPress without a plugin, I made several changes to the script before I posted it to make it more “generic” and re-usable. Since I’ve changed it quite a bit, I decided to repost it. This new script also autolinks @usernames and #hash tags. Directions […]
I decided to add my latest “tweet” from Twitter to the sidebar of my WordPress blog. Rather than use yet another plugin that adds yet another hook – and there are many that do this with lots of code, I decided to use a homegrown solution, dependant only on PHP4+ and cURL (most webhosts already […]
WordPress › Support » Press This 404 issue. “Press This” hasn’t worked for me for ages. I am so happy to have it back!
Every so often I find myself with a multidimensional array that I want to sort by a value in a sub-array. I have an array that might look like this: //an array of some songs I like $songs = array( ’1′ => array(’artist’=>’The Smashing Pumpkins’, ‘songname’=>’Soma’), ’2′ => array(’artist’=>’The Decemberists’, ‘songname’=>’The Island’), ’3′ => array(’artist’=>’Fleetwood […]