Converting a WordPress Blog to HTML Files

WordPress logo tilted to the left

I've been doing more programming lately, primarily in Java because I am writing several books that teach the language. I have a few big announcements coming soon about those projects.

My current coding effort is an application that turns a no-longer-updated WordPress blog into a set of static HTML pages. The goal is to make it easier to retire a blog while keeping the content available in the form that's most likely to be future proof and extremely simple to move around.

WordPress can export a blog's pages, entries and comments to a single XML file. The export file is an RSS feed extended with several namespaces, which the company has dubbed WordPress eXtended RSS (WXR). To create a WXR file of your blog, go to your WordPress dashboard and choose Tools, Export. A page opens with an Export command that creates the file and initiates the download to your computer.

Although the WXR format isn't documented, any programmer who has worked with RSS feeds can figure out the purpose of most elements just by looking at an export file in a text editor.

I could use some guinea pigs, so if you have a WordPress blog and are willing to share its WXR file, I can send a copy back to you as a static web site. Send me an email or comment and we'll arrange how to get the file to me.

What Do You Use to Read RSS Feeds?

Cartoony graphic of man reading RSS as a newspaper

In 2007, the RSS Advisory Board published the RSS Best Practices Profile, our advice for how to produce RSS feeds that work best in the wide variety of feed readers, web browsers and other software that consumes feeds. The RSS specification is poorly written in several areas, leading to disagreement over the correct way to do things. We wanted to help programmers and web publishers avoid these hassles.

The programs tested as we drafted the profile were Bloglines, BottomFeeder 4.4, Feed Demon 2.5 (2.5.0.10), Google Reader, Microsoft Internet Explorer 7, Mozilla Firefox 2.0 (2.0.9), My Yahoo, NewsGator Online and Opera 9.

Since then, Google Reader and NewsGator Online shut down, Bloglines moved to a new software platform and FeedDemon is up to version 4.5. Web browsers all have significant upgrades and Google Chrome has sprung into existence.

I thought it was time to look at whether all of the profile's advice is appropriate with current feed reading software. As the first step, I posed this question today on the RSS-Public mailing list:

What software do you currently use to read RSS feeds?

For years, I read feeds primarily with Bloglines. I moved to Google Reader and when it was killed (sigh), I switched to Feedly after a few months where I didn't read feeds at all. For podcasts, I use Apple iTunes.

Petraeus Aide: Rumsfeld Courted Disaster in Iraq

Retired Col. Peter Mansoor, the executive officer to Gen. David Petraeus during the Iraq War surge and the author of a new book on the subject, is doing a Reddit AMA (Ask Me Anything) today. He answered a question that I asked.

Question: Your book Surge has harsh words for Secretary of Defense Donald Rumsfeld, stating that he "rightly" offered his resignation after the Abu Ghraib scandal and President Bush was wrong not to accept it. You write that Rumsfeld "demanded a war plan for Iraq predicated on the best-case scenario ... then refused to admit that his assumptions were wrong," which is a disastrous trait for a wartime leader. What are the biggest lessons future Pentagon leaders should learn to avoid being another Rumsfeld?

Mansoor: Senior leaders must be willing to listen. Rumsfeld thinks he was open to criticism, but he was not. If a leader cannot listen to contrary opinions and make informed decisions based on a full range of views, then he/she courts disaster -- as Rumsfeld did in Iraq.

Abu Ghraib was a moral failing of the U.S. military that should have resulted in the resignation of the Secretary of Defense. President Bush was faithful to his subordinates to a fault. He should have let Rumsfeld go in the spring of 2004 and put different leadership in place in the Pentagon.

The Google is Coming From Inside Your House

A weird thing happened to me today while I was wandering the streets of Minneapolis on Google Street View. While looking at the street where the New Year's Day apartment fire occurred, I found a photo of this interesting building sign:

Our Pal photo of Palmer's Bar sign in Minneapolis, Minnesota

After some searching, I located the sign outside a charming looking dive called Palmer's Bar. I was moving the view around to get a better look when I somehow ended up inside the bar.

Google had sent its reality-indexing cameras inside the building.

First, I encountered a patron sitting on a barstool whose privacy algorithm blurred face didn't hide his look of amusement.

Google Street View inside Palmer's Bar sign in Minneapolis, Minnesota

I brushed past him and sauntered over to the piano in the corner, spotting an artwork that looked like something J.J. Evans might have painted on the '70s sitcom Good Times.

Google Street View inside Palmer's Bar sign in Minneapolis, Minnesota

After checking out the interior like a building inspector -- there's some possible water damage on the ceiling -- I found my way back outside through the door.

Google Street View inside Palmer's Bar sign in Minneapolis, Minnesota

The bar has been crawled with Indoor Google Maps, another technological marvel from the search giant that is equal parts amazing and terrifying. The feature has been around since 2011, apparently, but I didn't know about it until I stumbled into a bar.

When Men Defend a Sexual Harasser

The techblogger Dave Winer has a piece up on Scripting News defending Bora Zivkovic, a prominent science blogger at Scientific American and conference organizer who appears to be a serial sexual harasser of younger women he meets in a professional capacity.

In recent days three women have come forward with first-hand accounts of how Zivkovic treated them: Monica Byrne, Hannah Waters and Kathleen Raven. They allege that he had a skeevy habit of steering conversations to sexual subjects without prompting and volunteered that his wife wasn't having sex with him. The womens' stories are long, plausible and sad. A quote Raven offers from one of his emails captures the creepiness quite nicely:

... for you probably everything physical is sexual and in a negative way. Both last year and before/after, if I kissed your lips or grabbed your ass, you'd have freaked out! I'd mean it in a totally friendly nonchalant kind of way --  as a non-sexual act even at the time when I wanted you  --  but you'd understand it very differently.

Obviously we're only getting part of the story here. But if you're telling a woman you want to bang that it bothers you when your ass grabs aren't viewed "as a non-sexual act," you're extremely committed to a manipulative game where you fish for attractive young sex partners while maintaining plausible deniability in case they take offense. Either that, or you get your jollies making women uncomfortable with sexually inappropriate conduct while getting away with it. (Hey, Anita, is that a pubic hair on my Coke can?)

When Byrne named Zivkovic as her harasser recently -- she'd originally blogged about the experience last year without identifying him -- he responded, to his credit, that her accusations were true. "I am very ashamed of this incident which happened more than a year ago," he blogged. "It was a difficult time for me personally and I made a mistake -– I should not have shared my personal issues with her. It is not behavior that I have engaged in before or since."

But to his discredit, it doesn't appear to be isolated behavior at all.

I avoid blogging about Winer these days, since nobody needs to hear what I think about the tool who once threatened to sue me, but I thought there ought to be some pushback to his piece, which expresses copious sympathy for Zivkovic while showing none for his accusers. "[A]ll his actions could be clearly seen as desperate cries for help," Winer writes. "Something really bad happened in Bora's life, and he hasn't dealt with it, so it's coming out in destructive and confusing ways."

As people misguidedly sprang to Zivkovic's defense, the claim he never did it to anyone else made the other accusers angry enough to come forward. In a spectacular example of misplaced priorities, the science writer and professor Andrew Maynard, despite not knowing Zivkovic personally, sent Byrne an email urging her to stop naming him as her sexual harasser. Noting that Zivkovic is "highly respected within his community," Maynard asked her to show him "consideration and compassion."

The people deserving of our compassion are the women he was creeping on. As more came to light, Maynard recognized that he'd made a huge mistake in pestering one of them to salvage Zivkovic's reputation. He updated his blog entry with this comment: "If I had the smallest fraction of the information I now have on Monday, I would never have emailed Monica."

I don't understand why any man would find more common ground with a professionally successful sexual harasser than with the younger, less powerful women he allegedly mistreated. Something really bad happened in these women's lives, too, and he's not the sympathetic figure in this sordid little tale.

Jonathan Franzen Also Hated Mac Dude

Justin Long and John Hodgman as Mac Dude and PC Guy

A few years ago, in one of Apple's last big marketing campaigns while Steve Jobs was alive, the company mocked Microsoft by having Justin Long portray a Mac and John Hodgman a PC in TV commercials. Long's comfortably scruffy dude in sneakers was supposed to be cool, while Hodgman's pudgy businessman was supposed to be a dork who couldn't quite catch up to the times.

I wrote in 2007 that the commercials were doing something for Microsoft it couldn't do for itself -- make the company lovable.

The Mac hipster played by Justin Long is insufferably smug compared to his problem-plagued comic foil, who ends up looking like a well-intentioned underdog unruffled by adversity. He's like Charlie Brown, falling over and over for Lucy's promise to let him kick the football. ... When I spot one of those commercials as I'm blipping through Tivo, I stop to see how Hodgman fares.

As my link shows, Hodgman wasn't rooting for himself either. The Daily Show contributor called his character "delusional" for believing he was cooler than a Mac.

In a piece for The Guardian about his new non-fiction book The Kraus Project, the author Jonathan Franzen reveals himself to be another person who hated Mac Dude:

Any chance that I might have switched to Apple was negated by the famous and long-running series of Apple ads aimed at persuading people like me to switch. The argument was eminently reasonable, but it was delivered by a personified Mac (played by the actor Justin Long) of such insufferable smugness that he made the miseries of Windows attractive by comparison. You wouldn't want to read a novel about the Mac: what would there be to say except that everything is groovy? Characters in novels need to have actual desires; and the character in the Apple ads who had desires was the PC, played by John Hodgman. His attempts to defend himself and to pass himself off as cool were funny, and he suffered, like a human being. (There were local versions of the ad around the world, with comedians David Mitchell and Robert Webb as the PC and Mac in the UK).

Subscribers I Lost When Google Reader Died

Back in July, I noted how many RSS readers my sites had. I figured that the July 1 closure of Google Reader, by far the most popular feed reader used by my visitors, would show up in the stats at some point and I wanted to quantify the change.

The subscriber numbers didn't drop for a long time, but it appears they finally are reflected in the analytics on FeedBurner, the service I use to deliver feeds.

Here's the past and current RSS reader counts for my sites and the percentage drop:

  • Drudge Retort: 15,449 subscribers in July and 9,454 today, a 39 percent drop.
  • Workbench: 1,242 subscribers in July, 1,060 today (15 percent drop).
  • SportsFilter: 687 subscribers in July, 513 today (26 percent drop).

Though it's obviously a bad thing to lose a lot of feed subscribers, it's not clear how many of them were actively using Google Reader to follow my sites on a regular basis. Having a subscriber doesn't mean anything if that person isn't reading the feed.

I like RSS and use it often as a publisher and a user, but I expect feed reading to continue to decline and for more sites to offer no feeds at all. Social networks are the way most people find and share things these days. Plodding through a bunch of full-text feeds in reverse-chronological order, as if they were one giant blog, is too much effort for most people.

Though new readers may emerge that make feeds more of a social experience, or reinvent RSS in some unexpected way, the best days of RSS are behind it.