Stripping Illegal Characters from XML in Python

January 25, 2009 This is a simple Python script for stripping illegal entities from XML, which doesn't require any external libraries. It can be run from the command-line, or imported and called within Python code.

Filed under python

Huge CSV and XML Files in Python

January 22, 2009 Quick walkthrough of my code for converting a very large CSV file into a very large XML file using the Python standard libraries. Despite a few issues along the way, was a very pleasant experience.

Filed under python

A Filter to Display Neighbors in a List

January 20, 2009 When you have a lot of content to show but not enough room to it, a helpful UI pattern is to show just the content surrounding your current position. We see this in search result pages, and now in a series' list of entries on my blog.

Filed under designdjango

Genetic Programming: A Novel Failure

January 19, 2009 The second entry in the Biased Intro to Computer Science series. Here we take a look at genetic programming, the bastard little brother of genetic algorithms.

Filed under computer-sciencegenetic-algorithms

Genetic Algorithms: Cool Name & Damn Simple

January 2, 2009 Genetic Algorithms are one of the most natural approaches to optimization. Did you learn about evolution in grade school? Then you already "get" GA.

Filed under computer-sciencegenetic-algorithms

Moving Into 2009

January 2, 2009 My new year's resolutions and a brief look at the past year. It's been a good one, and heres to a better one coming up. Some thoughts on what I'll be writing on Irrational Exuberance, what I'll be working on, and what I'll be trying to get better at.

Django-Portfolio: Organize and Display Projects

December 29, 2008 A quick mention of a project I've been working on for the past several weeks, which aims to be a standard reusable app for sharing and displaying projects in a consistent and pleasing manner.

Filed under django

The Subtle Joys of Generic Methods

December 11, 2008 The object system in Common Lisp has something that almost no one else does: generic methods. Also called multi-methods, these allow a flexible and safe approach to dynamically adding functionality to a class at runtime. It's monkey patching without the monkey. When I write my programming language in a few decades, these are going to be there.

Filed under common-lisplanguage-designpython

A Command Line Tool for Loading CouchDB Documents

December 9, 2008 This is a simple command line tool, implemented in Python, which makes it easy to use JSON and Python data structures as the data-source of CouchDB documents. Handles bulk and individual submission, and has a handful of command-line options (specify hostname, port, path, etc).

Filed under pythoncouchdb

Full-Text Search in CouchDB Using... CouchDB

December 8, 2008 I spent a bit of time this past Sunday trying to figure out implementing a full-text search in CouchDB, without relying upon a secondary library like Lucene or Solr. In a very read way, I succeeded, but in an equally real way the success may not be particularly helpful in most situations.

Filed under couchdb

Blogging as People

December 7, 2008 Looking at the Life articles, I realize that the last entry I wrote for it was also about blogging. Woops. Not trying to fixate, just getting the years blogging thoughts out of the way on a cold Saturday. As a bonus I actually edited an article for once.

Filed under writing