Speeding things up

If all has gone well, I should have just sped up my site when processing new comments or trackback pings, thanks to Sean Willson’s mt rebuild type modification.

Technical details follow (Kirsten, you’ll want to look at this one…)

(via Phil)

By default, MT rebuilds all index templates whenever an entry is created or edited, or when a comment is added. This is done to keep everything as up to date as possible, and is as it should be.

However, as a site grows, and as more bells and whistles are added to it, the time it takes to rebuild all those templates keeps growing. The usual set of index templates includes the main index page, the RSS feed, the main archives index page, the CSS stylesheet, plus whatever archive pages may be set up — all this has to be rebuilt, along with the page for an individual entry, whenever anything changes on a site.

I’d already done what I could to speed up my rebuild by setting my stylesheets to only rebuild when I specifically tell them to (as they normally don’t change), but I’d also added a few more index templates to the mix (the excerpts for my main table of contents page and a secondary RSS feed). All of this was what has caused my server to run so godawfully slow whenever comments or trackback pings are received.

Sean’s modification changes the way MT’s rebuild system works, though. While by default, MT only allows you to set whether a particular template is an index template (and therefore needs to be rebuilt regularly) or not, with this modification in place, there is much finer control over which templates are rebuilt under what circumstances.

So now, my table of contents excerpts, master archive list, and RSS feeds will only rebuild when I add or edit an entry. The main index file will rebuild whenever entries are added or edited, or when new comments are received. Additionally, individual entry pages should rebuild when trackback pings are received automatically, instead of my having to rebuild them manually (which is what I’ve been doing).

Kirsten — the reason I wanted you to peek in on this one is that as this is a modification to the MT system itself, and not just my weblog, you may need to go into your templates and set the rebuild options for each one. Everything may work normally if you don’t, but I’m not entirely sure how it will work if those fields haven’t been set, and you try to add an entry. The changes should be fairly obvious (you’ll need to go into the edit screen for each template, and choose the right option from the new drop-down menu), but if you need any help, feel free to e-mail me or IM me if it’s late enough. Hopefully this doesn’t leave you grumbling at me! ;)

Two Dave Winer grumbles

I don’t have as many issues with Dave Winer as many other people seem to, but he does occasionally come up with something that I’m tempted to comment on. Today, I gave into the temptation…

Today, Dave is looking back at announcing RSS:

“RSS is an XML-based format that represents what we in the Frontier community call a ‘weblog’….” The funny thing is that it wasn’t grandiose. At that time all weblogs were done in Frontier.

Not really. Frontier may well have been the first commercially available software built for creating and updating weblogs, but I was keeping my weblog up in 1999 (and even prior to that, I think I started using my site to keep my family updated on my life sometime in ’98), using the ‘old fashioned’ method of manually updating my website. I just didn’t know it was a weblog back then.

Unfortunately, at some point during my many site redesigns/updates, I was a fool and trashed all the old static HTML pages of my site from before I started using software to automate my site updates, but I can at least point to my first post using software to automate the process, and the post where I realized I was a ‘blogger’.

So Frontier may have been the first software for weblogs, but weblogs themselves were around pre-99. We just didn’t necessarily know that they were “weblogs”! ;)

Secondly, something I’ve whined about in the past: Dave’s RSS feed drives me up the wall.

Every other RSS feed I subscribe to links each post to its corresponding post on the source website, so when I find something interesting in my newsreader and click on it, I’m taken to the website. Dave’s feed, unfortunately, doesn’t. It seems to have one of three possibilities:

  1. The newsfeed post will link back to the post on Dave’s website. The preferred behaviour, but unfortunately rare.
  2. The newsfeed post will link to whatever the first link in Dave’s post is. For instance, if Dave is commenting on a post on someone else’s site, when I open his post in my newsreader to follow up on it, I’m taken to the link that he’s commenting on, rather than his comments. Incredibly annoying.
  3. The newsfeed post won’t link to anything at all. This seems to be the least common of the occurrences, but common enough that I run into it from time to time.

Seems to me that since Dave is such an RSS evangelist, and one of the co-creators of the format, he could at least create an RSS feed that doesn’t make his readers want to thwack him upside the head every time they try to follow up on something he says!

But maybe that’s just me.

My Netflix queue

After severely decimating my movie collection, I got to talking with one of the guys at work, and he gave Netflix a glowing recommendation.

It looks like a handy little service. You select what moves you’d like to rent, and then subscribe for a \$20/month fee. As movies become available, Netflix sends them to you. You watch them, then send them back. No per-day charges, no late fees — just send them back whenever you’re done. You’re allowed to have three out at a time, and when you send any back, more from your list get sent to you.

So, I figured what the heck, and signed up. ~~If anyone’s really morbidly curious, I’ll keep track of what’s in my queue here.~~ Feel free to suggest some, too!

Update: Trying to keep track of my rental queue was rapidly becoming fairly obnoxious to try to deal with as I kept adding stuff, so I’ve discontinued that. I’ve also moved my mini-reviews to posts of their own, rather than perpetually adding comments to this post. They’ll show up on the main page, or you can always check the MovieReviews category listing to catch up.

iTunes Man

(by Scott Taylor, with apologies to Billy Joel, sung to the tune of ‘Piano Man’)

It’s nine o’ clock at the iTunes store,
A phenomenal crowd’s logging on,
There’s an old man on AOL
Finding music from ages bygone.

He says, “Steve can you play me a memory?
“I’m not really sure how it goes,
“But I typed in a track and got album names back!
“And I’m not even wearing my clothes!”

Oh la da da diddy da da, la da diddy da da da.
Sell us a song, you’re the iTunes man,
Sell us a song tonight.
Well, we’re all in the mood for a melody,
And you’ve got the pricing just right.

Now Claude at Vivendi’s a friend of mine
And his business is selling CDs.
And knows the solution for store distribution,
But he’s worried about MP3s.
He says “Steve I believe this is killing us!
“All these pirates don’t pay us a dime.
“Well I’m sure that you could be a billionaire,
“If you could sell music online.”

Oh la da da diddy da da, la da diddy da da da.
Sell us a song, you’re the iTunes man,
Sell us a song tonight.
Well, we’re all in the mood for a melody,
And you’ve got the pricing just right.

Now Paul is an iPod enthusiast
Who listens to Jazz with his wife
And he’s chatting with Maxine, who’s still in the rap scene
And probably will be for life.
And the waitress is downloading Dixie Chicks
As the dial-up man slowly gets Stones
Yes they’re sharing the bandwidth from Akamai
But it’s better than P2P clones.

Sell us a song, you’re the iTunes man,
Sell us a song tonight.
Well, we’re all in the mood for a melody,
And you’ve got the pricing just right.

Its a pretty good crowd for just Macintosh
And the PC guys give me a smile
Cause they know that iTunes will be Windows-bound soon
If they just can hold out for a while.

And the AAC sounds like originals
And rights management isn’t a pain,
And they sit at the screens of their iTunes machines
And say “Man, this is worse than cocaine!”

Sell us a song, you’re the iTunes man,
Sell us a song tonight.
Well, we’re all in the mood for a melody,
And you’ve got the pricing just right.

(found on /.)

'Recent Tunes' update

Utilizing the iTunes Music Store linking hint I found earlier, I’ve updated the ‘Recent Tunes’ section of my sidebar. Before each artist, track, and album listing you’ll now see icons for Amazon and the iTunes Music Store — clicking on those will perform a search on the respective service for whichever line you clicked on. Nifty!

Some of the Amazon links are being a bit tweaky, and I’m not sure why, though. Sometimes they work fine, other times they get passed through with ‘"’ on either end of the search term, which confuses Amazon. I don’t know where that’s coming from, either — I can’t find that entity in any of the code on my side of things.

All the iTunes links work fine, however. The only caveat there is that they’re still building their selection, so the majority of my music probably isn’t listed yet. All good things in time, however.

Linking to the iTunes Music Store

Excellent tip that I’m saving here for future use: how to create a website link that performs a search on the iTunes Music Store.

Link format (as a single line, broken here for clarity): itms://phobos.apple.com/WebObjects/MZSearch.woa/wa/ com.apple.jingle.search.DirectAction/advancedSearchResults?

Immediately following the ending ? are any of four search terms, or a global search term:

  • songTerm= (song title)
  • artistTerm= (artist name)
  • albumTerm= (album title)
  • composerTerm= (composer name)
  • term= (global, search all fields)

Use & between query items if you are using more than one of the first four (non-global) querys, and replace any whitespace with %20.

Example: building a link to search for U2:

itms://phobos.apple.com/WebObjects/MZSearch.woa/wa/ com.apple.jingle.search.DirectAction/advancedSearchResults?artistTerm=U2

Example: building a link to search for U2’s ‘The Joshua Tree’:

itms://phobos.apple.com/WebObjects/MZSearch.woa/wa/ com.apple.jingle.search.DirectAction/ advancedSearchResults?artistTerm=U2&albumTerm=the%20joshua%20tree

Many thanks to Jim, Fuse, Erik, and Bill!

Internet Explorer .pdf files?

IE .pdf's?

It’s the little things that get to me about Windows most of the time. Things like this — today, for absolutely no reason that I can think of, Windows has decided that Adobe Acrobat .pdf files should have Internet Explorer’s icon.

Why? Only Windows knows. I haven’t installed anything, changed any system settings, or done anything differently than the same basic things I do every day (opening, saving, printing documents). But it looks like this is what’s meant to be. At least until Windows changes its mind and either sets .pdf’s back to their original icon, or chooses something entirely different.

iTunes/www.applemusic.com

Just some initial thoughts after playing around with iTunes 4.0 and the iTunes Music Store for a bit.

  • AAC: I’m sold. Through some very non-scientific, non-mathematical experimenting, I seem to be getting about a 40% reduction in file size with 128kbps AAC .m4a’s as opposed to 160kbps VBR .mp3’s. With a \~14,000 song, 75GB music collection, a 40% reduction in size is beautiful. Plus, they do sound at least the same, if not better.
  • iTunes 4.0: Basic functionality is still the same as previous versions of iTunes, which I was already quite happy with. They’ve obviously done some under-the-hood work, though — where I used to get “spinning beach balls” almost anytime I clicked around in iTunes, now the only time I get a wait cursor is when I’m getting info on multiple tracks at once. Much snappier performance — and on an aging 350Mhz blue-and-white G3, that’s pretty impressive.
  • iTunes Music Store: Again, I’m sold. Very nicely and simply integrated directly into iTunes, finding stuff in the store is a breeze. I’ve already purchased one track to replace a corrupted .mp3 file created from a scratched CD, and once the iTMS is tied to my .mac account, single-click purchasing works flawlessly. Could be dangerous, though — talk about instant gratification! The selection of music available could use a little work, though I suffer a bit in having more esoteric music tastes — the majority of the “big artists” seem to be pretty well represented, and Apple says that they’re constantly working on expanding their library. Can’t complain too much, though — I’ve even found some pleasant surprises that I’m thinking about picking up (lots of Bill Cosby, and even a fair chunk of Spike Jones albums!).

Excellent work, all around. As far as I’m concerned, all of the whiners at MeFi and /. can jump off a cliff — Apple’s got a good thing going here. The only downside I can see is that to take advantage of AAC’s smaller file sizes, I’ve got about 1500 CD’s to rip all over again…

Apple turns up the volume

Well, today was the day that Apple finally made the announcments that rumor sites had been salivating over for the past few months. Lots of cool goodies…

  • QuickTime upgraded to v6.2, which includes support for AAC (more info on AAC here).
  • An iPod software update to v1.3, adding support for AAC, and longer battery life.
  • Redesigned and updated iPods, now in 10Gb, 15Gb, and 30Gb models, a slimmer design, software updates, and a price drop.
  • iTunes goes to v4.0, adding AAC support, Rendevouz local streaming (so you can stream audio from one Mac to others on the same local network), and support for the new…
  • …the long-rumored iTunes Music Store! Featuring 200,000 songs (and growing) from all the major music lables, previews of songs, one-click downloading, a 99 cent-per-song purchase price, and very reasonable DRM (unlimited listening time, unlimited CD burns, unlimited iPod support, purchased tracks can be copied to up to 3 other Macs), Apple looks to be making a good solid attempt to do the online-music experience well.

The new software just made it to my Mac — time to install and play!

Redesigning

Redesign in progress.

This is a starting point, not an end point. Some things may look goofy at the moment — my most humble apologies. Comments, as always, are welcome.

Yet to come: color (not one of my strongpoints, but I’m not planning on sticking with pure black and white for too long), some graphics to spruce the place up a bit, and, oh, whatever else that might fall out of my head along the way.