Java

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 ... (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 ... (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 ... (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 ... (read more)

Sun Sees the Light on Java Applets

I'm working on the next edition of Sams Teach Yourself Java in 21 Days, an 800-page monster that will cover Java 6 so thoroughly that all the other Java authors will stop writing their books and pursue retraining for a non-technical profession. (Computer book authors should talk smack like rappers. One of these days I'm going to start an East Coast/West Coast feud with Seattle's Glenn "PC-Diddy" Fleischman.) Ten years ago, the original edition of Java in 21 Days made a big deal out of Java ... (read more)

NoWomenJustMen: The Roster at Most Tech Conferences

I heard from one of the organizers of the Spring Experience, an enterprise Java conference organized by NoFluffJustStuff that I criticized for assembling a 38-speaker roster than doesn't include a single female. He never responded to my request to run his e-mail in full, but this quote sums it up: We sought out a qualified speaker who was female. She is on your list. Unfortunately, she is in very high demand (as one would probably expect!) and in the end could not commit due to a scheduling ... (read more)

Settlement Reached with Dave Winer

I've reached an agreement with Dave Winer regarding the Share Your OPML web application. I destroyed his original code and user data along with everything that was built from it and gave up my claim to a one-third stake in feeds.scripting.com. He gave up the claim that he's owed $5,000. I originally hoped one of us would buy the other out and launch the application, but we found a much stronger basis for agreement in a mutual desire to stop working together as quickly as possible. If Share Your ... (read more)

Handling Numeric XML Entities in a Weblog Move

I'm exporting a Radio UserLand weblog to Movable Type for a client, turning Radio's XML archive of weblog entries into a Movable Type import file. I wrote a Java application that employs the XOM XML library to read Radio's weblog data. Some numeric character entities in Radio's XML data threw me for a loop: â (’), À (¿), Ž (é), ‡ (á) and — (ó). They were transformed -- either by XOM or the Xerces XML parser that it uses -- ... (read more)

New Book: Programming with Java in 24 Hours

I just launched the web site for Sams Teach Yourself Programming with Java in 24 Hours, my 21st computer book since I began writing them in 1996. I'm not sure how this happened. I went to college to learn interpretive dance. This is the fourth edition of the book, updated to cover Java 2 version 5. I wrote the first in a 17-day haze in 1997, covering Java 1.1 and its class library, which is less than one-tenth the size of the Java 2 class library today. Over the years, the book has grown to 558 ... (read more)

Displaying XML Data with PHP

I recently finished writing Sams Teach Yourself Programming with Java in 24 Hours, the fourth edition of an introductory book for Java programmers, which comes out in around two weeks. I've been given wide editorial license with the book, so it contains unusual projects like Lottorobics, a lottery simulation applet that demonstrates why "Win the Lotto" is a terrible retirement plan. The new edition adds chapters on XML and XML-RPC that use XOM and Apache XML-RPC, two great open source class ... (read more)