• XML DTD Validation in Clojure: Turning It Off, Parsing Malformed XML

    April 28, 2010

    I wanted to parse some externally-generated and malformed HTML, so naturally I went to the short and sweet clojure.xml/parse function. I got a nasty error: error: java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd It seems that the W3C blocked access to the DTDs two years ago, but Java still tries to load [...]

  • Goldman’s Blankfein before Congress

    April 27, 2010

    And it came to pass, that Goldman’s then-chief overlord was order’d to parade full 7 days and 7 nights through the streets of lower Manhattan, clad in naught save his drawers, bearing tether’d to heavy chains every SEC filing that Goldman hath wrought for 10 years previous; while the peasants of the borough were to [...]

  • Randomness with Clojure

    April 22, 2010

    Psyleron sells a hardware random number generator and software for experimentation on the interaction of consciousness and randomness. As the Psyleron system only runs on Windows, I wrote some quick Clojure to do experimentation with randomness.

  • SQL WHERE clauses in Clojure from S-Expressions

    April 5, 2010

    SQL WHERE and HAVING clause strings can be rendered from neat, structured S-expressions with this simple Clojure macro.

 
Copyright © 2009 Paul Legato. All rights reserved. Theme based on Shlomi Noach, openark.org