Miklb's Mindless Ramblings

chronicling life in a digital world

Powered by Habari, nicotine and bourbon.

Using APC and Subversion Checkouts

I am in the process of moving my sites from Slicehost to Linode, as most are aware Slicehost is being phased out for Rackspace Cloud. Anyway, I upgraded my VPS at Linode last night to Debian “Squeeze” and installed APC, which created a problem with the WordPress installations I had there. Basically, I couldn’t access the admin. Through the power of Twitter and the invaluable help of Mark Jaquith, I learned that by default APC doesn’t play nice with files that are checked out via Subversion. I think the root of my problem was a stray apc config for overriding include once, but certainly the subversion issue could have been at play too.

Anyway, a little Googling on the subject, I discovered there’s a configuration option for APC to use ctime instead of the default mtime. Adding apc.stat_ctime=1 is all that is required.

While I’m on the subject of migrating from Slicehost to Linode, Andrew RIley pointed out that someone had written a ruby script to migrate the DNS information for you.

Addendum To be clear, I install WordPress using Subversion and the appropriate tag. My Habari installs are also all Subversion checkouts from trunk.

Clean Home Theme for Habari

It’s always great to see new themes released for Habari, even if they are ports. Florian has ported the WordPress theme Clean Home to Habari. The theme’s name aptly describes the design, a clean, black and white two column design with contrasting red headings. The theme seems to be coded for trunk, that is, using the areas feature. One thing I noticed is that the theme still has some cruft from WP, calling for a dynamic sidebar (widgets) with some text that also references a text widget and and admin options. I of all people can understand though of wanting to get something out before working out all the kinks, so I’m sure he’ll update it as soon as the areas/blocks feature is fleshed out a bit more. I also don’t speak German, so it’s quite possible he references that in the post announcing the release.

Consolidating, Focusing, and Rookie Mistakes

As my online endeavors grow, I find myself with different sites floating around, doing nothing, as I have so many ideas for each site, I wind up not posting to any of them. I originally started Blogging Meta because I thought I wanted to have a personal site, and a site that I could focus on tech related blogging. Well, as I’ve said, neither came to fruition, and I’ve found myself lately feeling as if I had some dual personality that were just spinning their wheels.

So tonight I decided to merge the two sites, and really try to gain some focus. I still have my cooking site, which I still intend to further focus on, but hopefully by committing to using this site again for everything not cooking related, I just might be able to accomplish both.

The rookie mistakes came from the fact that since Habari doesn’t have an importer in place yet to import one Habari install into another, I was faced with the only option of deleting the existing database, which was basically an import from the original WordPress installation, then dumping the bloggingmeta database, doing a quick search and replace for urls, importing that file directly into the database, then re-importing the old wordpress database using the importer plugin. What I failed to do was check what was active in the plugins. I already had the twitter plugin installed, so I’m guessing that it kept the settings from the old site, thus upon import, all the new posts were twittered. Complete…rookie…mistake. Couple with that that I also left the pingback plugin active, it tried to ping all the posts while importing. Another party foul. So not only did I spam Twitter, my import royally failed, so I was faced with doing the whole process over again, albeit this time I deactivated the offending plugins, and the import went off mostly without a hitch. I might have lost a few old posts and/or comments, but all in all, I’m pleased with the outcome considering I’m doing this at 2 a.m. in the morning, and my focus might not be what it should be. I wish I could write it off as having had a few adult beverages, but alas, I would be lying.

Over the next few days I will be doing some tweaking here and there, and shutting down the other site (and doing a 301 redirect). I really like the typography of Ali’s theme, so I most likely will try to find the custom image I had made for the bottom, and trick out a few plugins. At least for now.

Gravatars 2.0 and Skippy's Gravatars Plugin

I had heard that Gravatar 2.0 had been released, but hadn’t really paid much attention. Today, while doing a little housekeeping around the site, I noticed that none of my gravatars were showing up. After doing a little investigating, I realized it had to do with caching, among other things. First thing I did was dump the cache on my gravatars folder in wp-content. Second, I logged into the gravatar site, and re-associated my gravatar with my email that I use for that account. Still no gravatars, mine, or anyone else’s.

So I looked at the settings on Skippy’s gravatar plugin (which I like as I can set a local gravatar, vs using a default one from the original site), it was set to use caching. I turned that setting off, and voilá, gravatars are showing back up. Hopefully that could help someone else (though, from reading a few blogs, and the comments on the main site, there’s no guarantees the main site will be with fail).

Posting From Ecto

Testing out Ecto, a desktop blogging client. I had only tried MarsEdit, and at the time there was no option for tagging. Now that UTW supports inline tags, this should be a better option.

[tags]ecto, WordPress, UTW[/tags]