Where


When

Who

October 14, 2004

Blog + Wiki = ?

The folks over at Everything Sysadmin have started a wiki to go with the book (along with their blog). They're also talking about integrating wiki and blog, something that I think could be a really cool thing. I've thought about trying to find easy ways to do that myself (especially when I'm posting about some nifty OS X tip).

Posted by snooze at 10:40 AM

September 21, 2004

NetNewsWire 2.0

After not being able to talk about this for ages I can finally say NetNewsWire 2.0 rocks. Tonight Brent released the beta of NetNewsWire 2.0. I've been using betas for the past few months and he's been doing a pretty kickass job. You can check out the What's New page, read the Change Notes, or just go and Download it.

Posted by snooze at 9:21 PM

September 14, 2004

My New Fangled Blogroll

One of the first things I've posted to my wiki is a short article on how I did my new blogroll (down on the left). It's a bit of PHP/CSS/Javascript code that all works to make the expandable folders. Comments are welcome and appreciated.

Posted by snooze at 12:00 AM

August 31, 2004

Movable Type 3.1: Dynamic Templates

One of the cool new things in Movable Type 3.1 (which should be out pretty damn soon now) is the dynamic PHP publishing. Why is this a big thing? Because up till now if you'd changed a something like your individual archive page template you'd have to go back and rebuild your whole site. If you've got a large number of posts this tends to take a while. Now, it can just render the page when requested, which means doing a pushlish all will go much faster.

After a few rough starts, I got the whole thing running on this blog. The index page and the feeds are all static, but any archive page is built up on the fly. And you can even turn on a caching if you so desire. When you do this, a copy of the dynamic page is kept around for an hour so that if someone else visits that page again within the hour it doesn't have to rebuild it again from the database.

Setup for this feature was actually much easier than I thought, once you know a few things. One, it doesn't work if you are using Berkeley DB as your database. Which required me to convert to using mySQL. Which worked out okay overall, but I had to do a bit of tweaking since I seemed to have some odd corruption in my database. Once that was done I just had to turn on the dynamic publishing for the templates I wanted and create a templates_c directory in my blog's home directory. One republish later and everything was working just fine. It's pretty much transparent to the person browsing the site (which means your existing permalinks won't change at all.

It also lets you do caching of the dynamicly generated pages via the Smarty template engine. If you turn it on, dynamicly generated pages are cached for an hour by default (though you can tweak that if you need to). Pretty slick. While my site doesn't generate a ton of traffic, this is the kind of thing that could really be useful for a site that gets tons of hits a day.

One or two other gotchas. If you are using PHP you can't use opening tags in the format <?, you need to have them in the format <?php. As long as you do that you shouldn't have any issues. Also, this is supposedly not compatible with any other plugins (not an issue for me as I don't use any other plugins).

Another issue is how dynamic pages are built. I tend to do my template editing locally using cyberduck+subethaedit and I have my templates linked to a local file on my web server. I find it is much easier to edit them that way. The problem with this is that if you make a change to the local file, you need to go back into MT and save it there also for it to take affect. I personally think it should make a check to see if the file version has changed and load that one in if so.

Next thing to try: doing more with categories and sub-categories (You can see a bit of a preview to the right).

Posted by snooze at 1:27 PM