'Tech' Category

  • Dell PowerEdge BIOS Upgrade on Linux

    July 30, 2010

    How to flash the BIOS on a Linux Dell PowerEdge system without having to use MS Windows.

  • Swing-Clojure GUI for the Black-Scholes Option Modeler

    July 15, 2010

    Now that we have implemented Black-Scholes in Clojure, let’s make a Swing GUI for it. The Swing GUI will have text boxes for all the necessary inputs, and calculate prices and Greeks when the button is pressed. It’s a simple and straightforward way to get started in Swing GUI programming in Clojure. Here’s what it [...]

  • Black-Scholes in Clojure

    July 10, 2010

    The Black-Scholes option pricing model, implemented in Clojure based on the description at Wikipedia and these code samples. Print PDF

  • Lazy-spy: Clojure logging/spy for lazy sequences

    May 23, 2010

    Clojure.contrib’s log/spy macro does not realize the contents of lazy sequences by default when logging, as they might be infinitely long. If you’re sure that your lazy sequence is finite, you can use this lazy-spy macro to force it to be realized when it’s logged, so that you can inspect the contents.

  • Log4J and Clojure Configuration

    May 16, 2010

    Clojure, Log4J, and clojure.contrib.logging can play nicely together. Here’s a reasonable default configuration.

  • Flash BIOS Without a Floppy

    May 8, 2010

    Flashing the BIOS without a floppy drive can be done with an Ultimate Boot CD (free!) and a USB memory stick. BIOS upgrades usually come in the form of an MS-DOS executable meant to be run from a bootable floppy, but modern computers don’t usually have floppy drives anymore, and who has a copy of [...]

  • 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 [...]

  • 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.

  • Undefining/uninterning a symbol in Clojure

    March 24, 2010

    How do you undef / unintern a symbol in Clojure? (ns-unmap 'namespace 'symbol).

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