Source: www.halfcooked.com/mt/index.rdf

Andrew Channels Dexter Pinion
Wherein I write some stuff that you may like to read. Or not, its up to you really.


Extracting a discrete set of values
Today’s I love Python moment is bought to you by set types. I have a file, XML naturally, the contains a series of transactions. Each transaction has a reference number, but the reference number may be repeated. I want to pull the distinct set of reference numbers from this file. The way I learnt to [...]

Validating an XML File with LXML
I’ve been playing with XML files recently and have on the odd occasion needed to validate a file against an XML schema. This is surprisingly easy using lxml, the Swiss Army knife of Python XML processing. Allow me to demonstrate. >>> from lxml import etree >>> schema = etree.XMLSchema(etree.parse('schema_file_name.xsd')) >>> xml_file = etree.parse('xml_file_name.xml') >>> schema.validate(xml_file) [...]

Freedom
Due to a recent accounting error (on my part and in my favour) I recently found myself in possession of a netbook. I know that makes me a luddite and I should have bought a tablet. Call me a throwback. In my defence it was half the price of an iPad and a lot more [...]

Use the right tool for the job
I was going to write an informed and opinionated piece about the use of proper tools in corporate IT departments. In particular I was going to say that I found it interesting that smaller, more cost conscious teams (in startups or open source projects) use more modern and sophisticated tools for issue management, project planning [...]

Gerald release 0.4.1
Before starting on some of the big changes planned for version 0.5, and thanks to patches and suggestions from various people I’ve addressed a couple of issues with Gerald 0.4. This means that we now have release Gerald 0.4.1 What’s new in this release? Not much, just some bug fixes, documentation changes and (hopefully) an [...]

Python strftime reference
Take a look at this excellent single page web site – Python strftime reference. It does exactly what it says on the tin. Good work.

Gerald release 0.4
I’ve been revelling in the Python goodness this weekend at PyCon Australia. This has motivated me to fix the last couple of issues and then package and release Gerald 0.4 What’s new in this release? The most important changes are fixes to a number of issues identified by users of SQLPython. Gerald was appearing to [...]

Generating HTML versions of reStructuredText files
I wanted to quickly and easily convert a series of reStructured text documents into HTML equivalents. For reasons too dull to discuss here I couldn’t just use rst2html.py and didn’t want to go to the trouble of remembering enough bash syntax to write a shell script. So I thought that as long as docutils is [...]

Gerald release 0.3.6
I have just released version 0.3.6 of Gerald. Gerald is a general purpose database schema toolkit written in Python. This release was at the request of the sqlpython project and contains only one change. A new convenience method connect has been added to the Schema class. This enables a schema to be initiated and then [...]

Weird easy_install Behaviour
Dear lazyweb, I unsubscribed from the distutils-sig mailing list a while back and consequently I’m not up to date with the latest to-ings and fro-ings. But, I have a problem. As reported by someone today Gerald eggs won’t install on Windows. Everything is fine on my Ubuntu virtual machine, but on my shiny new work [...]

Newsfeed display by CaRP

Business:
See Business in Open Directory

Return to News Feeds Home Page
My Sites