Dave Johnson on open web technologies, social software and software development
Dave Johnson in Blogging
07:39AM Oct 20, 2004
Comments [1]
Tags:
Blogging
Dave Johnson in Blogging
11:59AM Oct 19, 2004
Comments [0]
Tags:
Blogging
Joe Gregorio:This is just like WinFS.
Except that it is shipping today.
And it just works.
And it doesn't require an upgrade to your operating system.
Dave Johnson in Microsoft
07:03AM Oct 19, 2004
Comments [0]
Tags:
google
microsoft
Dave Johnson in Blogging
06:45PM Oct 18, 2004
Comments [0]
Tags:
Blogging
I took a trip up to Baltimore and back today to meet with a very important customer. It seems like a waste to fly to attend only a 2 hour meeting, but the trip was interesting and well worth the cost. As an added bonus, I remembered a trip of similar duration and a story I like to call the longest trip to the bathroom ever. I will now inflict that > 10 year old story upon you.
One day I boarded a direct flight from Raleigh to New York's Laguardia airport. I arrived at Laguardia, walked outside and met a man holding high a sign that read "David Johnson." I stepped into the man's black limo for a 45 minute drive up to White Plains, NY. In White Plains, the man droppped me off at a non-descript three story office building and I went inside to sit down in a waiting room. After 10 minutes, a nurse called my name, handed me a small cup, and directed me to a bathroom. I closed the door, urinated in the cup, opened the door, and carefully handed the cup back to her. I walked outside, I met the man in the limo, we drove back to Laguardia, and I boarded a direct flight back to Raleigh.
Dave Johnson in General
05:19PM Oct 18, 2004
Comments [1]
Tags:
humor
A number of people have asked for some form of comment authentication in Roller. On blogs.sun.com, John Hoffman added a simple math test. If you want to leave a comment on blogs.sun.com, you have to be able to add. Other users have asked that only registered users be able to leave comments, some have asked for capchas, and some have asked for TypeKey support. To accomodate all of these forms of comment authentication, I introduced an interface called CommentAuthenticator. It looks like this:
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.velocity.context.Context; import org.roller.pojos.CommentData; public interface CommentAuthenticator { public String getHtml( Context context, HttpServletRequest request, HttpServletResponse response); public boolean authenticate( CommentData comment, HttpServletRequest request); }
I created a DefaultCommentAuthenticator, which does nothing: getHtml() returns and empty string and authenticate() always returns true. So, by default, Roller does no comment authentication. I also created a MathCommentAuthenticator which, like Hoffman's comment form on blogs.sun.com, asks a simple addition question.
If you want to change the way that Roller does authentication, you implement this interface. In the getHtml() method, you get a Velocity context, a request, and a response. This is your chance to add some HTML to the Roller comment form. For example, in the math authenticator, this is where I put the math question and the HTML <inpuyt> tag for the answer. In the authenticate() method, you get the comment that is to be authenticated and the request, so you can pull out any parameters you have have added the form. For example, I grab the answer to the math question from a request parameter named answer. To enable your new authenticator, put it in the Roller classpath and change the value of the org.roller.commentAuthenticator init parameter in Roller's web.xml.
Several people have asked for comment moderation (as seen on Russell's blog). I'm tracking that request as ROL-492, but it is probably not going to make it into Roller 0.9.9.5.
Dave Johnson in Roller
05:47AM Oct 15, 2004
Comments [2]
Tags:
Roller
RED HERRING | Wiki wars: "Fans argue that Wikipedia’s open system taps into the collective wisdom of large groups of people to root out error and minimize bias. While anyone can make a change to any entry, the discussions around those changes are open, said Clay Shirky, an adjunct professor at New York University’s Interactive Telecommunications Program in New York City. “It’s like the security of sidewalks,” said Mr. Shirky. “If everyone shares a little the sidewalk is safe.”"Wikipedia is just amazing. Given enough eyeballs all bias is evident? I hope that turns out to be true in the long run, but it seems pretty unlikely to me. (Via Dave Winer.)
Dave Johnson in Roller
06:00PM Oct 14, 2004
Comments [0]
Tags:
Roller
Dave Johnson in Roller
04:33PM Oct 14, 2004
Comments [0]
Tags:
Roller
Lance comments on the recent surge in referrer spam. I've been deleting referrers and adding ugly new ignore words to my Roller installation on a daily basis this week. It is really getting bad. Three options I would like to see in Roller:
Dave Johnson in Roller
01:10PM Oct 14, 2004
Comments [7]
Tags:
Roller
Dave Johnson in Blogging
04:43AM Oct 13, 2004
Comments [0]
Tags:
Blogging
Dave Johnson in Blogging
05:28PM Oct 12, 2004
Comments [1]
Tags:
Blogging
First, I created the Roller badges. I tried to withdraw them because of their legal incorrectness, but they escaped into the wild (and I deny all wrong doing).
Then, I created the java.blogs badge (but still I gets no respect):
Now, I'm back with the blogs.sun.com badge:
Sun Bloggers, now's your chance to toot your own horn, give yourself a pat on the back, and a big round of applause. Show your support of blogs.sun.com by displaying the badge it with a link to http://blogs.sun.com.
Dave Johnson in Sun
05:07PM Oct 12, 2004
Comments [0]
Tags:
Sun
Eclipse doesn't work very well on Solaris x86, mostly due to the fact it is linked to Motif rather than GNOME. Everything appears to be double spaced and drag and drop don't work at all. I guess I could get the source and rebuild Eclipse against GNOME, but I would rather use my time to get up and running in Netbeans.
Netbeans 4.0b2 looks really good and works well on Solaris x86 (as you might expect). Unfortunately, I ran into a couple of problems while setting up for Roller development in Netbeans. I'm still surfing the mailing list archives and the bug tracker to determine if my problems are caused by known bugs, unknown bugs, or just user error on my part.
cvs -d <cvsroot> co -d ~src/roller roller/roller
. From there on out I was able to use the Netbeans CVS client on my code to update, commit, diff, etc.Update:
Turns out, I was able to fix the Roller build script by changing the way in which it brings in it's properties XML file. I changed the third line of the build script from this:
<!ENTITY properties SYSTEM "file:./properties.xmlf">
to this:
<!ENTITY properties SYSTEM "properties.xmlf">
Once I did that, I was able to bring Roller in as a "Java application with an exiting Ant script." I'm subscribed to the Netbeans users mailing list now and I'll direct my future gripes there. And, I'll write up a Roller Development with Netbeans document for the Roller Wiki once I get things sorted out.
Dave Johnson in Roller
05:04AM Oct 11, 2004
Comments [2]
Tags:
Roller
I should rename this contrived little blogging crutch to Saturday photo. I never seem to get to it until 11:30 Friday night. This week, another photo taken by my father. The photo is a view from the Snowbird Mountain Inn in North Carolina.
Dave Johnson in General
07:53PM Oct 08, 2004
Comments [0]
Tags:
family
photos
Dave Johnson in General
07:11PM Oct 08, 2004
Comments [18]
Tags:
politics
Dave Johnson in Sun
09:45AM Oct 08, 2004
Comments [3]
Tags:
Sun
I'm been scrambling to wrap up Roller 0.9.9.5 and Chapter 4 of my book (more about that later), so when my new box arrived I had mixed feelings. The new machine is awesome, a new Sun w2100z machine, a dual processor AMD Opteron with a 24" LCD flat screen, so I'm excited about setting up and seeing what it can do, but setting up a new machine takes time and I don't have a whole lot of that.
Anyhow, I decided to set up the new box and do all the moving around of machines and wires and junk that a new box always requires. I do that, get everything re-hooked up, turn the power on, and find that poor old Snoopdave, my homebuilt Debian box, has died and won't even emit a beep code. Arg. Now I'm in the market for a low-end Linux box.
That's what the Sun w2100z looks like. I would have posted a picture of mine, but Snoopdave was not the only casualty. My Kodak DX3600 camera also decided to die. It has frozen up and is now flashing the E13 error code, which apparently is the Kodak equivalent of the blue screen of death, except that it is permanent. So I'm also in the market for a new digital camera. Happy day.
Setting up the new Sun workstation was pretty easy. The Solaris 9 OS install was smooth and I found all of the software I need at blastwave.org (even Eclipse, but don't tell anybody). More about that later, it's time to get to work.
Dave Johnson in Sun
06:09AM Oct 07, 2004
Comments [7]
Tags:
Sun
I've been working on the Roller user management and login code for over a week now. I just committed a bunch of changes. Here is a summary of my progress in this area:
Dave Johnson in Roller
10:15AM Oct 04, 2004
Comments [3]
Tags:
Roller
O'Reilly Network: The New Bloglines Web Services: "Bloglines today announced a set of new web services APIs, allowing developers to write applications for reading RSS and Atom feeds by drawing data directly from the Bloglines databases. This is a very significant change in the landscape of RSS/Atom aggregators, the newsreading applications that have become more popular over the past few years. Along with the release of its web services, Bloglines announced that several desktop RSS/Atom aggregators, including FeedDemon, NetNewsWire, and Blogbot, will begin using these APIs to provide additional capabilities in their applications. The Bloglines Web Services make it very easy for developers to use RSS and Atom content for many purposes, and the services will also ease the traffic."A "very significant change" indeed. The coolest part of the article is a blog app: a 150 line Groovy program that implements a complete BlogLines newsreader.
Dave Johnson in Blogging
06:37AM Oct 03, 2004
Comments [0]
Tags:
Blogging
Dave Johnson in General
02:09PM Oct 02, 2004
Comments [0]
Tags:
politics
« Previous page | Main | Next page »