Teach Yourself Java While Still at the Bookstore

Out of thousands of comments made about the PAC expenditure story, this one on Balloon Juice is my favorite: Roger Cadenhead, who posted this, is someone who has churned out a large number of computing books, many with titles like Sams Teach Yourself Java 2 in 24 Hours or Sams Teach Yourself Java 2 in 21 Days. As a software engineer, these titles make me doubt Cadenhead’s credibility. It might-just-be possible to learn a substantial amount of Java in 21 days (it is a very large language once one counts the ... read more

W3C Serves 130 Million XML DTDs Per Day

A Java application I wrote that reads several dozen RSS feeds started running into trouble with the W3C. Feeds failed with HTTP 503 "Service Unavailable" errors like this one: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd At first I thought this was a temporary error. HTTP 503 errors are defined to indicate that a server is temporarily overloaded or undergoing maintenance. However, the W3C Systems Team announced in February 2008 that they were dealing with ... read more

Real-Time Twitpic Images Coming from Chile

When news breaks such as today's massive earthquake in Chile, one of the first places where images show up from the scene is on Twitpic, a popular image-posting service for Twitter users. You can find links to these images on Twitter search by including "twitpic" as one of your search terms, but that's not as useful as seeing thumbnails of the actual images. You have to click each link to see what it contains. To make it easier to see the images being posted about Chile, I wrote a Java application this morning ... read more

Book Giveaway: Teach Yourself Java in 24 Hours

My newest book, Sams Teach Yourself Java in 24 Hours, Fifth Edition, recently hit bookstores. The book is a for-absolute-beginners guide to programming Java, and this section from chapter one's Q&A section shows how much license I get from the publisher to have fun with the series: Q. Do you only answer questions about Java? A. Not at all. Ask me anything. Q. Okay, why is Prince mad at the Foo Fighters? A. Prince is unhappy that the Foo Fighters performed a cover of his song "Darling Nikki" and released it as ... read more

Kickin' It Old School with Microsoft Word 97

I began a new book this week on Java programming for beginners. I haven't been doing much computer book writing for a couple years, so I no longer had an installed copy of Microsoft Word 97, the version of the software my publisher uses to draft manuscripts. Word 2007 can save files in 97 format, but it doesn't support the publisher's custom styles, so I decided to install Word 97 on Vista. Huge mistake. Word 97 appeared to install properly, but when I installed some other Microsoft software afterward, it ... read more

Following Web Page Redirects with Java

CNET moved a bunch of its blogs to a different domain this weekend, including Beyond Binary, Coop's Corner, Geek Gestalt, One More Thing, Outside the Lines and The Social. I mention this because the change hosed Meme13, which treated all six as if they were newly discovered sites. One of my ground rules for developing Meme13 is that I won't hand-edit the site to make it smarter. I need the application to recognize when existing sites in its database have moved. Meme13 monitors sites using a Java application I ... read more

Exporting a Manila Site Using OPML

The RSS Advisory Board site now includes all of the articles, weblog entries, and comments from the group's old Manila site, dating back to the group's founding in 2004. I never got a copy of the old site's root file from Harvard, so I collected the content using an obscure but cool feature of Manila: All site content is saved in the discussion board as individual messages, each of which can be downloaded as an OPML file. For example, open this weblog entry from Craig Burton's Manila blog in OPML format. I wrote ... read more