New: Movable Type 3 Bible Desktop Edition

Hot off the presses: Movable Type 3 Bible Desktop Edition, my new 410-page book on the current edition of the weblog publishing software. I wrote the book to encourage Movable Type webloggers to get into the advanced publishing capabilities of the software, such as template design, plug-in programming, and XML syndication with Atom and RSS.

Movable Type 3 Bible Desktop EditionFor the book, I spent six months combing over the Movable Type documentation, support forums, source code, and database. I stalked several coders who use the software avidly -- Richard Eriksson, Brad Choate, and Jay Allen could have gotten restraining orders -- to see how people were taking the software beyond the basic publishing capabilities that users master quickly on their own.

This is my first book for Wiley, which crams 102,000 words into an edition small enough to carry around. I have never singlehandedly written a longer book that sells for less: at a price of $16.49 on Amazon, you're getting 60 words per penny.

To mark the occasion, I'm giving away five of my author's copies this week. If you'd like to be eligible to win, post a comment on this entry or write about it on your weblog, linking to its permalink so I don't overlook it. I'll also pay the postage to anywhere that I can send it for under $10.

Amazon top-1,000 reviewer Jack Harrington covered the book last week:

Anyone who uses Movable Type on a regular basis needed the book. It covers all of the basics around installation, setting up blogs and writing entries. But then it goes into more advanced topics like alternating the template and adding plugins. And even more advanced topics like RSS, Atom, and writing your own plugins. This is thorough book that is well written and will cover everything you need to know to blog with Movable Type.

You can read the first chapter on Wiley's Web site.

CNN Report: We Suck

A front-page story on CNN.Com today derides cable news networks for dumping serious news coverage in favor of talk and fluff, reserving special criticism for CNN:

The notion that people can work late, skip the broadcast evening news and catch up later on cable isn't necessarily true. Try to find a serious newscast on these networks in prime time, at least before Aaron Brown on CNN at 10 p.m. Eastern time, and you'll be out of luck.

Even CNN Headline News -- a dependable network that rotates newscasts every half-hour -- plans to experiment with prime-time talk shows in the next year.

The story, written by Associated Press TV reporter David Bauder, also shows up on MSNBC, another network criticized in the piece.

Closing Movable Type Comments

I'm winning the war on comment spam on Wordzilla, my homebrew weblog software, thanks to PHP code that rejects link-heavy comments and submissions from banned IP addresses.

I'm losing on Movable Type and Manila. Both programs are being flooded with spam that has to be hand-deleted, a chore that's miserably time consuming in each. Six Apart enhanced Movable Type's comment-management features in version 3.1, but it can take up to five minutes to delete a group of spam comments on the Drudge Retort, which has 107,000 comments and 2,600 entries.

Both programs could use a configuration setting that closes weblog entries to new comments and trackback after a user-designated period, such as a week. Most comment spam that I receive comes from older entries -- I'm guessing that their webcrawling robots rely on search engines, so they're slow to find new entries.

Because Movable Type is backed by a database, you can run queries on that database to edit entries. As an experiment, on Nov. 25 I used the following MySQL query to close comments and trackback on all Drudge Retort entries older than a week:

UPDATE mt_entry SET entry_allow_comments = 2, entry_allow_pings = 0 WHERE entry_created_on < date_add(curdate(), interval -7 day)

I had to rebuild the entire site after running this command so that entry archives reflected the change.

Comment spam has all but disappeared. A propecia shill who hits the site constantly hasn't successfully posted a spam in days.

I'm working on a PHP script that makes this automatic, closing comments and trackback in Movable Type weblog's entries after one week. Manipulating the database is easy, but finding a good way to tell Movable Type to rebuild an entry from PHP has been tough.

I was hoping to execute a simple Perl script using PHP's system command, but attempts to rebuild an entry like this have failed:

/usr/bin/perl -I'/path_to_mt/lib' -I'/path_to_mt/extlib' -mMT -e 'my $mt = MT->new; $mt->rebuild_entry(BlogID => 2, Entry => 3000) or die $mt->errstr'

My Favorite Coke is Pepsi

Alan McConchie has created the Pop vs. Soda page, an Internet database that maps the regional differences in how Americans refer to soft drinks.

Looking at the large number of people in the south who call all sodas "coke," regardless of brand, doesn't that suggest one of the world's most lucrative trademarks has become a generic term and should lose its protected status?

Aspirin, cellophane, escalator, nylon, and thermos all were once trademarks lost by their companies through generic use.

On BusinessPundit, a southern cokehead named Alan Ruff writes:

... when I first moved to Iowa from North Carolina, people looked at me with the weirdest face when I would say, "I'll have a Coke, make it a Dr. Pepper."

MEMRI is Being Repressed

The Middle East Media Research Institute, a group that cherry-picks articles by bigots and extremists in the Arabic language press and publishes translations, has threatened to sue Juan Cole for libel.

Cole, a Middle East scholar at the University of Michigan who represents one of the rare voices of reason among webloggers who focus on the subject, rejected MEMRI official Yigal Carmon's demand for a retraction:

Israeli military intelligence is used to being able to censor the Israeli press and to intimidate journalists, and it is a bit shocking that Carmon should imagine that such intimidation would work in a free society.

Tracking Weblog Updates in Manila

Since adopting 3,000 webloggers from Weblogs.Com last June, I've had a huge amount of trouble tracking site activity on the new Manila server I set up to house these sites. An elusive bug prevented the recent updates page from working correctly.

During the Weblogs.Com server outage, the media went nuts over the 3,000-weblog figure, making the story front page news.

As I have since discovered, that number was inflated by a bunch of dead sites on the server. I deleted more than 1,200 weblogs this week that were never updated after a new user signed up and saw the "It Worked!" page.

Buzzword.Com now has a new recent updates page that lists all weblogs updated within the last month. I wrote a UserTalk script to create this page, which I'll be documenting soon on Workbench.

There's also a big news announcement coming up, which a few users may have already figured out, but it will have to wait. The weekend beckons.

Dying to Cover the Iraq War

Knight-Ridder Baghdad bureau chief Hannah Allam has penned a bloglike first-person piece on what it's like to report from Iraq:

My 26th birthday party was perfect.

Stars glittered over the Baghdad hotel where I blew out the candles on a cake decorated by my four closest Iraqi friends. We stayed up until the dawn call to prayer rang from a nearby mosque, telling stories and debating the future of a country I'd grown to cherish.

A year later, only one of those friends is still alive. The poolside patio where they sang "Happy Birthday" in Arabic is empty most days, because foreign guests are afraid of snipers and mortars. The hotel has become a prison, and every foray outside its fortified gates is tinged with anxiety about returning in one piece.