Archive for June, 2007

Scanning Slides

Sunday, June 24th, 2007

Scanning Slides

Originally uploaded by abdelazer

I spent most of the weekend (a couple of weekends ago now) scanning my old slides on a rented Nikon 35mm scanner (rented happily from Pro Camera Rental). Working on my photographs (mainly from my digital P+S) in Lightroom during the [...]

DocBook-XSL Sytlesheets have >600 Parameters

Wednesday, June 13th, 2007

Norm Walsh writes:
Stylesheets can have literally hundreds of parameters. The DocBook XSL Stylesheets have more than six hundred.
All I can say at this point is: wow. Grepping the core of our own customization shows 121 <xsl:param>s (about 20 of which we introduced) and 52 <xsl:attribute-set>s (20, again). Thinking about it now (as I haven’t before), [...]

Partial Updates: A Simpler Strawman?

Sunday, June 10th, 2007

James Snell has been working some interesting things as the work on the Atom Publishing Protocol spec winds down. Most recently, he posted some thoughts on how to effectively communicate partial updates to APP servers using HTTP PATCH.
[UPDATE: James points out the obvious drawback to this approach in his response.]
One of the things that [...]

JRuby + Jetty

Wednesday, June 6th, 2007

I finally figured out how to get JRuby to serve a Jetty servlet today (thanks to Charles). The key was flipping what I’d been trying to do for a while (getting Jetty to run JRuby). Here’s code that implements the AbstractHandler interface pretty trivially:
$ cat jetty_example.jrb
require ‘java’
include_class ‘javax.servlet.ServletException’
include_class ‘javax.servlet.http.HttpServlet’
include_class ‘javax.servlet.http.HttpServletRequest’
include_class ‘javax.servlet.http.HttpServletResponse’

include_class ‘org.mortbay.jetty.Server’
include_class ‘org.mortbay.jetty.servlet.Context’
include_class ‘org.mortbay.jetty.servlet.ServletHolder’
include_class ‘org.mortbay.jetty.handler.AbstractHandler’

class [...]