rc3.org Strong opinions weakly held

Posts Tagged ‘WordPress’

Links for September 7

Links for September 5

XSS and WordPress Themes

Dave Smith just emailed to let me know that the theme I’m using is vulnerable to a cross-site scripting attack. He’s detailed the fix here, which I’ve applied. If you’re using depo-skinny, you’ll want to fix it as well.

Improving my blogging workflow

As I’m sure you already know, I’ve created the rc3dotorg Twitter account so that I can let people on Twitter know when I’ve published something. One unfortunate side effect has been that it has complicated my workflow when I write new posts.

Normally I just compose the post in MarsEdit and hit the publish button. I’m sure the process could be greatly simplified, but for two things that complicate the process. The first is that I like to use short URLs that I furnish myself, and the second is that I like to compose the tweets by hand.

I publish this blog using WordPress, and I use the le petite url plugin to create short links. Most of the time I publish updates to Twitter using Tweetie.

So here’s my workflow these days:

  1. Compose a post in MarsEdit and publish it.
  2. Go to the WordPress application on the server and navigate to the new post so I can copy the short link.
  3. Open my Twitter client and write a new tweet, then publish that.

The main inconvenience is opening WordPress in the browser once I’ve already gone to the trouble to write the post somewhere else. What I need is a tool that will allow me to access the internally generated short URL and compose a Tweet from MarsEdit that can be published whenever the blog post itself is published.

It’s looking like I’m going to need to write my own WordPress plugin to do exactly what I want. There are a ton of Twitter plugins, I think I’ll just have to find the right one and adapt it to my needs.

More later.

Links for April 8

Links for March 12th

WordPress, for now

Today I reluctantly migrated the blog from Movable Type to WordPress. There are many things I like about Movable Type, especially in version 4.0, but for whatever reason it was very slow and seemed to keep getting slower. I installed FastCGI but wasn’t sure if it ever worked, made sure the database was properly indexed and that it wasn’t slowing things down, and tried to tweak other things where I could. Eventually I decided that I was tired of dealing with slow performance, and didn’t have the energy to take the debugging to the next level.

Anyway, it was relatively easy to move my content into WordPress, so I took the plunge. Right now I’m using a slightly modified version of the Cutline theme, but I expect to make it more my own soon enough.

Getting the old links to blog posts to work was somewhat difficult. When I migrated my posts from Movable Type to WordPress, neither the ID numbers nor the Movable Type basenames made it into the WordPress database. My Movable Type permalinks were based on the basename. I hacked the 404 page in my theme to look up the posts in the Movable Type database by basename, and then use the post title to look up the post in the WordPress database and redirect to the appropriate page. There will be problems with the really old untitled posts, and with any posts that have the same title, but the approach works well enough for now.

I also had to install FeedBurner FeedSmith and PHP Markdown to get things working. Markdown does still work in comments. I’ve also installed WP-OpenID, so you can sign in using your OpenID to comment.

Sadly all of the tags on my posts failed to make it over in the migration. I doubt I’ll go back and tag old posts.

I’m sure there are dozens of other problems that I haven’t found yet, but I’ll iron them out over time. If you see anything obviously broken, please leave a comment and I’ll try to get it fixed.