- Set Gmail as Default Mail Client in Ubuntu
- FeedWordPress: "…an Atom/RSS aggregator for WordPress. It syndicates content from newsfeeds that you choose into your WordPress blog." Slick. On second thought, a bit too complicated for what I do at rhyley.org.
- WordPress 2.1.1 dangerous, Upgrade to 2.1.2: Crap. I hate FTP.
- indexed: got a book deal!: Wow. Not often you see such a fresh, funny voice come along, even rarer that it is recognized so quickly.
That code from bitprophet that makes tab key presses work in textareas was tempting me, so I made it into a wordpress plugin. Download it, or or see here for more info about how to install and activate a plugin in wordpress (this is sounding familiar…). The plugin adds bitprophet’s javascript code to the post editing page as well as the template/plugin editor.
Hello, world! I wanted a tag cloud (because, like mullets, they are just so damn sexy), and I also wanted to play around with writing a plugin, so I made it so. Download the plugin itself, or see here for more info about how to install and activate a plugin in wordpress. To use the plugin, simply put <?php echo category_cloud(); ?> wherever you want the cloud to appear. Here’s an example of its output:
aprilfools bloglines charlotte code dailyfluff del.icio.us design fame firefox flickr goog greasemonkey hacks links php projects sql travel typography voxgoogli wanking webdev widgets wordpress write. yahoo
So I fixed my problem with wordpress’s blogger importer script with one line of SQL and a fairly simple PHP script. Being a complete SQL n00b, I backed up my database first anyway. Here it is: SELECT ID, post_content FROM wp_posts WHERE post_title REGEXP '[0-9]{18}' That was it. I’m starting to like this stuff.
That ‘Daily Fluff’ entry is the result of a script I wrote. It pulls my photos and favorites from the Flickr API, my links from the del.icio.us API, and when webcron tells it to run, turns all that into a post on my blog. I’m eventually going to add items & reviews from my junklog account, as well. This took me two days to do, primarily because I was at first trying to use Wordpress’s XML-RPC interface to create the post, with very little in the way of success, until I realized I was being stupid. It is much (much, much) easier with a db-driven app like wordpress to just insert the post directly into the database with PHP. Of course, I had to learn how to do that first.
In other words, yes, so far I’m having fun with wordpress. <glee>
Yeah, I converted, and it was crazy easy with the importers they have now. Beating this beast into a form more pleasing to myself, though, is going to take a bit longer.
Already I don’t like that all of the posts I imported without a specific title defaulted to their unix timestamps. I found a couple of places where I was able to hack it into displaying something else instead of the ugly 18-digit number, but I’ve yet to find the silver bullet that will fix this problem everywhere titles show up in wordpress (which is a lot of places). If anybody could point me at the specific function in wp, it’d be appreciated.
One success story so far is that I got category lists to use proper grammar. This is why below you will see this post is tagged “wordpress, hacks and php” instead of “wordpress hacks php”. The relevant function is get_the_category_list, ask me how if you’re interested. And yes, I really am this anal about small details like that.
Further updates as events warrent.

