Blogging Roller http://www.rollerweblogger.org/page/roller Dave Johnson on Roller, software development, Java, blogging, and other random nonsense. en-us Copyright 2004 Wed, 12 May 2004 07:20:13 EDT Roller Weblogger 0.9.9-dev (20040501035503:dmj) snoopdave@nc.rr.com snoopdave@nc.rr.com Recent Wiki spam attacks <p /> Two Wiki spammers have been trying for over a week to sneak links into the <a href="http://www.rollerweblogger.org/wiki">Roller Wiki</a>. I subscribe to the Wiki's Recent Changes newsfeed, so I am able to catch them everytime, but I am getting a little tired of doing this. One Wiki spammer has the IP address 222.64.23.78 and is advertising the site <span style="color:blue">http://www.newline.sh.cn</span>. The other Wiki spammer has the IP address 61.149.181.4 and is advertising <span style="color:blue">http://www.99986.com</span>. I would hate to have to set usernames and passwords for the Wiki again, but these dirtbags may force me to do it. Roller http://www.rollerweblogger.org/page/roller/20040512#recent_wiki_spam_attacks http://www.rollerweblogger.org/page/roller?anchor=recent_wiki_spam_attacks Wed, 12 May 2004 07:20:13 EDT Weblog to DocBook. <p>I was seriously considering using <a href="http://www.docbook.org/">DocBook</a> for a big writing project. I backed out because my collaborators use the reviewer comment features of MS Word, but even if my collaborators could have accepted DocBook I'm not sure that I could have done so. DocBook is complex and climbing a big learning curve when I should be writing and working on example code does not appeal to me at all. Take a look at the XML files and the build scripts for Mark Pilgrim's DocBook-based <a href="http://diveintopython.org/">Dive into Python</a> if you don't believe me. I get the feeling that a DocBook project is a lot like a software project with a build-script and build-time error messages that require debugging. I don't want to miss a deadline because my manuscript won't compile.</p> <p>The best way to work with DocBook would probably be a WYSIWYG editor that uses DocBook as it's native format or that can export in DocBook format. Otherwise, you'll be swimming in angle-brackets and cursing validation errors. DocBook provides a powerful set of tools, but DocBook XML is something that should be generated rather than written by hand.</p> <p>Along those lines: what if you wanted to print your entire Weblog, including all of the entries in your archive, as a nicely formatted book, ready for printing. DocBook would be a great way to do that. You could write a utility to dump your Weblog to DocBook XML format and, if you've been writing your Weblog entries in valid XHTML, you could even transform the formatting information in your entries to DocBook XML. Then, you could easily transform your entire Weblog to PDF, RTF, or any of the dozens of formats supported by the DocBook transforms. Weblog to DocBook - has anybody tried that before?</p> Blogging http://www.rollerweblogger.org/page/roller/20040510#weblog_to_docbook http://www.rollerweblogger.org/page/roller?anchor=weblog_to_docbook Mon, 10 May 2004 09:08:57 EDT What belongs on a corporate-sponsored blog? <p>There is a interesting discussion of what should be allowed on a Java.Net weblog in the comments of Richard Monson-Haefel's post <a href="http://weblogs.java.net/pub/wlg/1268">9 of Clubs Seeks a new Deck of Cards</a>. Richard needs a job and is using his weblog to do a little self-promotion/marketing, but his weblog is hosted on Sun's Java.Net site which suppoosedly restricts marketing. Java.Net's managing editor Daniel Steinberg raised this issue, mainly as a discussion point, and thankfully the consensus seems to be in favor of allowing Richard's post and others like it.</p> <p>Last year, I <a href="http://www.rollerweblogger.org/page/roller/20030611#weblogs_java_net_oh_the">criticized</a> what I saw as forced corporate blogging on Java.Net, but the open spirit on the Java.Net weblogs, Sun's progressive new <a href="http://www.tbray.org/ongoing/When/200x/2004/05/02/Policy">Policy on Public Discourse</a>, and the Sun employee blogs at <a href="http://blogs.sun.com">blogs.sun.com</a>, show that Sun trusts it's employees to communicate publicly and directly with each other, with Java developers, and with customers. As a long-time Java developer and small-time Sun shareholder, I see this as a very good thing.</p> General http://www.rollerweblogger.org/page/roller/20040509#what_belongs_on_a_corporate http://www.rollerweblogger.org/page/roller?anchor=what_belongs_on_a_corporate Sun, 9 May 2004 11:40:28 EDT Don Brown picks up Struts Control Flow. <p>I've got too many other things going on right now to resume my work on Control Flow, so I'm happy to report that <a href="http://jroller.com/page/mrdon/20040507#cocoon_s_flow_in_struts">Don Brown</a> has picked up where I left off and has integrated Cocoon's Control Flow module into a Struts application.</p> <p>Don implemented the same number guess example that I did, but with Struts, by replacing my Flow Servlet with a Flow Action. This is a different approach than I was considering. I was under the impression that the only way to enable Control Flow to take advantage of Struts Form Bean processing and Validation was to integrate Control Flow at the ActionServlet level. On second thought, I think the Flow Action approach will work fine, but it will require that Actions that are to participate in the flow extend the Flow Action <s>Flow Servlet</s>. I'm looking forward to seeing Don's code.</p> Java http://www.rollerweblogger.org/page/roller/20040507#don_brown_picks_up_struts http://www.rollerweblogger.org/page/roller?anchor=don_brown_picks_up_struts Fri, 7 May 2004 20:28:14 EDT blogs.sun.com <p><a href="http://blogs.sun.com">http://blogs.sun.com</a> is powered by <a href="http://rollerweblogger.org">Roller</a>!</p> <p>I'm amazed, surprised, and very pleased. I'd like to ensure that Roller is a success at Sun, so, Sun bloggers please let me know how I can help.</p> Roller http://www.rollerweblogger.org/page/roller/20040504#blogs_sun_com http://www.rollerweblogger.org/page/roller?anchor=blogs_sun_com Tue, 4 May 2004 11:19:21 EDT JRoller on the fritz? <p><a href="http://jroller.com">JRoller</a> has been on acting up recently as <a href="http://jroller.com/comments/lasse/Weblog/i_m_leaving_jroller">several</a> <a href="http://raibledesigns.com/comments/rd/sunsets/converting_appfuse_to_use_spring">people</a> have <a href="http://jroller.com/page/cpurdy">noticed</a>. We are looking into the problem(s). We started to notice some flaky behavior last week and system loads were somewhat higher than usual. Some of the additional load was due to a second Tomcat server running some other software. I noticed a lot of suspicious JK2 errors in the Tomcat log files, but that was probably a red herring. After spending some time trying to get the JK2 setup right and upgrading from Tomcat 5.0.18 to Tomcat 5.0.19, I talked to Rick and Matt about taking JK2 and HTTPD out of the picture entirely and that is what we did. We're not getting any more JK2 errors, but we are still experiencing technical difficulties. I'll keep you posted as I try to track down the source of the problem.<p/> Roller http://www.rollerweblogger.org/page/roller/20040503#jroller_on_the_fritz http://www.rollerweblogger.org/page/roller?anchor=jroller_on_the_fritz Mon, 3 May 2004 20:56:54 EDT Go blog it on the mountain. <blockquote> <a href="http://www.tbray.org/ongoing/When/200x/2004/05/02/Policy"><cite>Tim Bray</cite></a>: Many of us at Sun are doing work that could change the world. We need to do a better job of telling the world. As of now, you are encouraged to tell the world about your work, without asking permission first (but please do read and follow the advice in this note). Blogging is a good way to do this... </blockquote> <p> Bravo! <p> Java http://www.rollerweblogger.org/page/roller/20040503#go_blog_it_on_the http://www.rollerweblogger.org/page/roller?anchor=go_blog_it_on_the Mon, 3 May 2004 20:46:17 EDT Continue my continuing series on continuations? <p /> Yes I will, but don't hold your breath. I've got a lot on my plate now. I've been starting to run in the mornings again, after my usual winter lapse, so I have had some time to think about the problem of integrating my <a href="http://rollerweblogger.org/page/roller/20040327#jsp_control_flow_engine">hacked-free version of Cocoon Control Flow</a> into a Struts application. I'll try to write up my thoughts on the topic in the next couple of days, because it may be while before I have time to code up a solution. Java http://www.rollerweblogger.org/page/roller/20040501#continue_my_continuing_series_on http://www.rollerweblogger.org/page/roller?anchor=continue_my_continuing_series_on Sat, 1 May 2004 18:34:30 EDT Powerbook second impressions. <p />I've had my Powerbook for over a week now and I'm starting to get settled in. Overall, I've been very pleased with the Powerbook itself, the software that came with MacOS, and the software I've downloaded. I'm still trying to figure out what works best and I find it very useful to read what other Mac users are using and why, so here I'll document the software I've started to use.</p> <p>Before I started using the Powerbook, I had assumed that I would be using the same browser and mail programs that I use on Windows, Mozilla <a href="http://mozilla.org/products/firefox/">Firefox</a> and Mozilla <a href="http://mozilla.org/products/thunderbird/">Thunderbird</a>. When I got the Powerbook, I installed Firefox and Mozilla and found that they work well and look almost exactly as the do on Windows. Generally speaking that is a good thing, but I'm in the mood to try something new and I prefer applications that get the native look-and-feel perfectly right, so I switched over to the built-in default browser and mail programs, <a href="http://www.apple.com/safari/">Safari</a> and <a href="http://www.apple.com/macosx/features/mail/">Mail.App</a>. I've been using them for about a week now and they both look great and work great. I'll stick with them for now.</p> <p>I've been experimenting with <a href="http://www.apple.com/ilife/imovie/">iMovie</a>. I imported a bunch of video clips from my digital camcorder and found it very easy to compose a video, edit out the bad spots, incude transitions between clip, and add titles and text. iMovie works very well and, at this point, I don't think I'll be needing any other video editing software. I've also been using the <a href="http://www.omnigroup.com/applications/omnioutliner/">OmniOutliner</a> and the <a href="http://www.omnigroup.com/applications/omnigraffle/">OmniGraffle</a> drawing programs. I was surprised to find these applications included with Mac OSX and very pleased with both of them. I downloaded <a href="">Voodoo Pad</a> Lite the other day and found it so useful that within hours I was paying the the $19.95 registration fee for the full version.</p> <p>There are some bad points, of course. For example, I have't found any chat software nearly as good as <a href="http://www.ceruleanstudios.com/">Trillian</a>. <a href="http://fire.sourceforge.net/">Fire</a> may eventially rival Trillian, but right now it's GUI is clunky and nowhere near as full-featured. <a href="http://eclipse.org">Eclipse</a> is usable, but the fonts are so big and the new Eclipse 3.0 M8 look-and-feel is a real put-off.</p> General http://www.rollerweblogger.org/page/roller/20040501#powerbook_second_impressions http://www.rollerweblogger.org/page/roller?anchor=powerbook_second_impressions Sat, 1 May 2004 18:18:37 EDT JRoller down until after soccer practice. <p>After months of relatively trouble free operation, JRoller is straining against the load of 3980 users and heavy traffic. I adjusted some of JRoller's mod_jk2 settings today and restarted the server. It failed to start, so I reversed my settings change and tried again - still no luck. Unfortunately, I'm not going to be able to touch the system until tonight, after I get off work, take the kids to soccer practice, and to the end-of-season dinner. Sorry JRollers, I'm a soccer dad first and a JRoller admin second. Matt Schmidt may be able to do something after he gets out of class this afternoon.</p> <p>Update - 11:30PM EST - JRoller is back up. JRoller's JIRA instance should be up shortly.</p> Roller http://www.rollerweblogger.org/page/roller/20040429#jroller_down_until_after_soccer http://www.rollerweblogger.org/page/roller?anchor=jroller_down_until_after_soccer Thu, 29 Apr 2004 12:34:56 EDT A couple links to help with Apache-JK2-Tomcat on Debian <p />During my recent re-installfest, I searched high and low for JK2 documentation. I could not find any "official" documentation on building JK2 for Debian, but I was able to fumble my way through by following the steps in a Debian mailing list post titled <a href="http://www.mail-archive.com/debian-java@lists.debian.org/msg03844.html">mod_jk and mod_jk2</a>. I tried using the latest version of JK2, which is 2.0.4, but I could not get it to compile. I ended up using version 2.0.2. I'm using Debian testing, by the way.</p> <p>Once I had built JK2, I followed the <a href="http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html">JK2 documentation</a> on the Jakarta website. I was able to get JK2 working, but I kept getting intermittent HTTP 500 errors from the server. I started looking for alternative ways to configure JK2. I found some very helpful instructions at Greenfield Research titled <a href="http://www.greenfieldresearch.ca/technical/jk2_config.html">Tomcat-Apache using JK2 Connector</a>. I followed those instructions and I haven't seen a 500 since. Java http://www.rollerweblogger.org/page/roller/20040428#tomcat_apache_with_jk2 http://www.rollerweblogger.org/page/roller?anchor=tomcat_apache_with_jk2 Wed, 28 Apr 2004 22:01:41 EDT Stupid irrestable urges. <p />Why do I do it? Why do I have to re-install Linux every six months? Every time I do it, without fail, I find myself on my knees with my computer case open, swearing out load, and muttering "why the hell did I do this." I have the same problem with room re-arrangement. Every couple of months I find that I must, I simply must, rearrange some room in the house. I empty the bookcases, take everything off of every surface, and burn a day re-arranging and cleaning and putting everything back together again. Sometimes it works out for the best - I learn something cool about Linux or I find a better way to use the space in my house. Usually, it is just a waste of time.</p> <p>My latest re-installfest was a classic example of this phenomenon. I had told myself and even mentioned to my wife that I wouldn't do it. I would resist the urge to install Gentoo Linux. I had too way to many things to do, but late one night in a moment of weak geekness I burned a Gentoo install CD and it was all downhill from there. It took me a week and a half to get back where I started: a Linux box with Apache hooked up to Tomcat via JK2, MySQL Roller, and Gallery. Along the way I installed Gentoo three times, took out memory modules then put them back in, moved my CD drive from one IDE controller to another, installed Debian unstable, unstalled Debian testing, and fought and won a bloody battle with JK2. I gained nothing! I think need a therapist.</p>. General http://www.rollerweblogger.org/page/roller/20040428#stupid_irrestable_urges http://www.rollerweblogger.org/page/roller?anchor=stupid_irrestable_urges Wed, 28 Apr 2004 18:40:27 EDT Gentoo it is not. <p>Long story short: I ran into too many build failures during and after completion of my Gentoo Linux installation. I'm not sure if I have hardware problems or if Gentoo's support for my Athlon XP CPU is flakey or what, but I'm out of patience. I'm switching over to Debian.</p> General http://www.rollerweblogger.org/page/roller/20040425#gentoo_it_is_not http://www.rollerweblogger.org/page/roller?anchor=gentoo_it_is_not Sun, 25 Apr 2004 09:53:00 EDT Eclipse and Netbeans on MacOS <p >I'm not exactly pleased with the open source Java IDE situation on MacOS. Eclipse 3.0 M8 works and connects to SourceForge CVS/SSH just fine, but it is slow, looks obnoxious, and it just crashed while I was editing a Java source file. I hope that, by the 3.0 release, Eclipse will be usable on MacOS. Next, I tried Netbeans.</p> <p>Netbeans 3.6 seems fast, fits in with the MacOS GUI, and even recognized the SourceForge CVS/SSH configuration that Eclipse left behind, but... when I attemped to login to CVS, Netbeans showed me a stack-trace. I decided to try using a real cvs client instead of Netbeans built-in implementation. I used Fink to download the cvs command-line client, configured it, and confirmed that it works with SourceForge CVS/SSH by doing an update on the Roller CVS. I configured Netbeans to use the command-line cvs client, but no luck. Netbeans says "Permission denied (publickey,password,keyboard-interactive)." I have CVS_RSH set in my .bash_profile and in Netbeans CVS environment variables... is there some other trick?</p> <p>Anybody had any luck connecting to SourceForge CVS/SSH with Netbeans on Mac OSX?</p> MacOS http://www.rollerweblogger.org/page/roller/20040424#netbeans_3_6_on_macosx http://www.rollerweblogger.org/page/roller?anchor=netbeans_3_6_on_macosx Sat, 24 Apr 2004 13:28:38 EDT PowerBook first impressions. <p>I picked up my new PowerBook on Wednesday. I bought one of the new 15" models with 1.5Ghz processor, 1.25GB RAM, and Apple Care. Apple provides a great out-of-box experience - everything is attractive, even the packaging, and well designed and everything just works - right off the bat. I was happy to find lots of cool software pre-installed, including, to my surprise, both vim and JDK 1.4.2. The system comes loaded up with cool Apple software including iPhoto, iDVD, iMovie, and GarageBand as well as 3rd party programs like the OmniWriter outliner and the Visio-like Omni Graffle diagrammer. Within an hour I had established a WIFI connection, mounted shared folders from my Windows box, and ssh'ed into my Gentoo Linux server. Very cool! I'm gushing now. Sorry about that. I haven't bought an off-the-shelf computer in about ten years and I've never bought a laptop. Normally, I build my own machines from el cheapo components, crappy cases, and noisy fans. This is a very different experience than that.</p> <p>After getting comfortable with the UI and some of the pre-installed software, I started to download some of the same software that I use on Windows: Firefox 0.8, Thunderbird 0.3, Eclipse 3.0M8, Microsoft's Remote Desktop client, and Palm Desktop. I spent a short time with each of these applications; here are some nutshell reviews. Firefox seems functional, but I prefer the built-in browser Safari. Thunderbird also seems to work, but I could not figure out how to import my existing Thunderbird mail files from my Windows-box, so I guess I'm stuck with the built-in Mail.App. Eclipse 3.0 works, but the new M8 look-and-feel looks especially crummy on Mac OSX. Remove Desktop works well. Palm Desktop works well, but I only downloaded it so that I can get the Conduit Manager necessary to iSync my PalmOS-based PDA. Perhaps I need to try using IDEA instead of Eclipse and Microsoft Office/Entourage instead of Mail.App, but I'm not in the mood to spend more money right now. Plus, I missed the $249 IDEA sale by one day.</p> <p>Last night, I tried some of the multi-media software. I plugged my digital camera into the USB port and iPhoto popped up. It imported my photos and I tried doing some rotations, cropping, and enhancements. It seems to provide more than adequate thumbnailing and photo management/organization features. I hooked up my digital camcorder and imported some video footage with iMovie but I haven't tried to compose a video yet or burn a DVD. iPhoto is no Photoshop and iMovie seems pretty rudimentary, but I didn't have to set any preferences or install any drivers to get my camera and camcoder hooked up. That has not been my experience with my home-built Windows and Linux machines.</p> <p>That's all for now. I'll be blogging my Mac experiences as I go and I've sarted a new category just for that: /Main/General/MacOS.</p> MacOS http://www.rollerweblogger.org/page/roller/20040423#powerbook_first_impressions http://www.rollerweblogger.org/page/roller?anchor=powerbook_first_impressions Fri, 23 Apr 2004 21:38:36 EDT