Java

Ayers outlines his beefs with OPML

Danny Ayers offers an "anything but OPML" rant against the world's most popular outline markup language. He writes: It's worth noting that you can express hierarchies and everything else I've seen suggested for OPML (text outlines, links, images etc) in (X)HTML. I suspect there are more HTML readers/writers than OPML ones! Unless XHTML can be used to express the expansion state of specific items, I don't see how it could be used as an alternative to OPML for outlines. OPML's an odd bird, but ... (read more)

Creating MD5 hashed passwords in Java

I found a much-needed Java programming tip in a LiveJournal XML-RPC client programming discussion this afternoon: How to create an MD5-hashed password from a string. Radio UserLand only presents hashed passwords when publishing via XML-RPC, storing the plain text version in the object database. The following class method can be used to create a hash from a string: public static String hashPassword(String password) { String hashword = null; try { MessageDigest md5 = ... (read more)

Commercial server supports four weblog APIs

While doing research on Java implementations of the XMLStorageSystem API, the backbone of Radio UserLand web hosting, I found something unusual: Full support for the API in a commercial server product. As shown in the documentation, the OpenLink Virtuoso "universal server" supports the XML Storage System, MetaWeblog, Blogger, and Moveable Type APIs, which enables it to host weblogs created with Radio and other weblogging tools. This is my first exposure to Virtuoso, but in an article for ... (read more)

Naked programmer ponders values

In an e-mail, Garth Patil writes: I just read your Linux Magazine article on the Naked Objects framework. ... I've been dinking around in their source, and I can't figure out why all of the Java primitive data types need to be duplicated in the framework. Do you know of an example of why these duplicates are necessary? For example, looking through the source, I can't figure out what the advantage/necessity of using TextString over String. Anyway, I'm probably missing something huge, and I was ... (read more)

Singing the praises of JSP taglibs

Joshua Marinacci has become a convert to Struts and custom Java Server Pages tag libraries, using them to make it easier for his HTML-coding sister to maintain a weblog implemented with JSP: .... now I've discovered custom taglibs. These are brilliant! From my sister's point of view there are now a few magic tags she can use to do something. My scripts are no longer code, just extensions to HTML, as if there was a new version of Netscape with support for a magic <blog> tag. These tag ... (read more)

JavaSound users make some noise

According to Java weblogger Jonathan Simon, JavaSound lead programmer Florian Bomers is currently the only person assigned to the project at Sun: I've worked with Florian in the past, mostly communicating via the JavaSound listserv. Now, I always knew he was the only one that returned my emails. I just figured he was the head of the team or at least the designated spokesperson. Well, it turns out he is the team -- the whole team! The library, a standard part of Java 2 since version 1.3, has a ... (read more)

Frustration is an industry standard

Robin Ward shares a tale of frustration about trying to connect a Microsoft IIS Web server to a BEA Weblogic application server using Java RMI (Remote Method Invocation), a plan he undertook because XML-RPC wasn't supporting more than 50 concurrent users: It's at times like these that I wish corporations were less selfish about their standards. Yes, standards are a good thing, but they're a blatant waste of time if you try to monopolize them. I was screwed over by two companies in this respect: ... (read more)

JXTA P2P architecture is peerless

I just submitted a column to Linux Magazine on JXTA, the open source XML-based peer-to-peer architecture developed by Sun. The JXTA site's tutorials section includes a really nice 140-page PDF tutorial for people just getting started on the subject: Project JXTA 2.0: Java Programmers Guide. Before beginning the column, I had no idea that JXTA was language agnostic. The only thing it has to do with Java is the fact that the reference implementation -- a 528-class, 88-package monster -- is ... (read more)

I'm getting naked in Linux Magazine

I just finished a 3,500-word column on Naked Objects for an upcoming issue of Linux Magazine. Naked Objects, unveiled at OOPSLA in November 2002, is a groovy open source framework for developing Java software that exposes objects and their methods directly to users. Using reflection, the objects and their methods are discovered and made available in a generic user interface (screenshot). The goal is to create software that consists of "behaviorally complete" objects which genuinely embody the ... (read more)

My head has been hoisted

At second glance, the Java Outline Editor is a nice outliner. I used the program to write my latest Java Matters column for Linux Magazine and I've been writing a lot of Radio UserLand Kick Start with Radio's outliner. I'm coming around to the idea that an outliner is a superior writing environment to word-processing software. I assemble these 2,000- to 2,500-word columns over several days with a lot of jumping between a Web browser, Java editor, command line, and the piece. I'm frequently ... (read more)