Archive for the ‘Uncategorized’ Category

Votes database updated

Saturday, August 1st, 2009

Last night I updated the New Zealand conscience votes database with the composition of the new parliament. I also added the records from the first votes from this term, the Misuse of Drugs (Medicinal Marijuana) Amendment Bill and the Liquor Advertising (Television and Radio) Bill. Both were member’s bills and both failed at the first reading; I will try to keep it reasonably up-to-date with new votes as they come out.

The biographies and portfolio/ministerial roles for this term need filling out more as well, if anybody would like to volunteer to edit it (I live in hope…). Otherwise, I think I will match up those with links to their corresponding pages on They Work For You.

Facebook usernames arrive

Saturday, June 13th, 2009

And while I’m not sure about that, I figured I should lock it down while I can, so here it is.

s3w 0.6.0

Friday, June 12th, 2009

It’s time for another release. s3w is a client to access and synchronise with Amazon Web Services’ Simple Storage Service (Amazon S3). It supports both direct access to S3 operations (GET, PUT, LIST, COPY, …) and higher-level functionality like bucket-to-bucket copy and pushing local directory structures into buckets.

s3w 0.6.0 is now out. As well as the standard array of bug fixes, the major new feature in this release is “stacked push”. In a stacked push, another bucket (or prefix within a bucket) is used as a base, and any files that match the corresponding object in the stacked-upon location won’t be pushed again. Incremental backups are one use for that; I also use it as a quick way to publish slightly different versions of files. Multiple stacked locations can be used, but each new location in the stack adds another network round-trip to slow the process down, so you probably want to keep the number low. They’re searched left-to-right as on the command line, push –stacked base1 –stacked base2 … src/ dest/.

Pull has a corresponding stacked mode for reconstructing the directory tree, which reads in the same order. There’s also new copybucket –move support, which deletes the source keys after they’re copied, and which can be paired with the new copybucket –save-date, which preserves the original Last-Modified date in a special piece of metadata which push will use (incremental backups, again). Etags (file checksums) can be calculated to save redundant pushes as well, which is useful if you have severe clock skew or unreliable modification times.

There are also scattered bug fixes to problems that emerged during the development cycle, and some extra niceties like offering suggestions to mistyped commands or bucket names. The configuration file can customise more behaviour – per-bucket exclusions and custom short names for buckets. See s3w config –help for details of how to set these values – push.bucket.<dom>.excludes (list) and shortname.<shortname> (string bucket name).

s3w depends on Python 2.6 and Boto. There are build and quickstart instructions in the readme. Running just s3w with no arguments will give a list of commands and a brief summary, while comprehensive documentation for each is available with s3w <commandname> –help.

Development takes place in a Bazaar branch, currently hosted on Launchpad (not necessarily going to stay there). You can access it using bzr branch lp:s3w. Patches welcome! There are some usage examples on the homepage, as well as in the internal documentation.

Reviews of books that should never have been written I: Ice Station

Wednesday, June 3rd, 2009

Matthew Reilly’s Ice Station is somewhat in the Crichton or Clancy vein, of which, well, you know. It has the cringing down pat. Nevertheless, can’t blame it for what it is, I knew that going in and I knew I was going to regret it, but the real problem: Reilly appears to have reached adulthood unaware that whales and dolphins have blowholes through which to breathe. I am unable to fathom this.

Regular expression animator

Tuesday, May 5th, 2009

This regular expression animator (including both DFA and NFA traversals) is very cool.

s3w 0.5.0

Thursday, April 30th, 2009

There we go, a real release. s3w is a client to access and synchronise with Amazon Web Services’ Simple Storage Service (Amazon S3). It supports both direct access to S3 operations (GET, PUT, LIST, COPY, …) and higher-level functionality like bucket-to-bucket copy and pushing local directory structures into buckets.

This is a fairly early version, but it’s relatively featureful already. As well as the bucket-to-bucket copying I wanted initially, it has a full set of manipulation commands and support for pushing a local directory into a bucket along with suitable metadata to allow recreating it locally with the pull command (so it can be used for backups, as well as for pushing out a website tree). Running just s3w with no arguments will give a list of commands and a brief summary, while comprehensive documentation for each is available with s3w <commandname> –help.

s3w 0.5.0 is now out. s3w depends on Python 2.6 and Boto. There are build and quickstart instructions in the readme.

Development takes place in a Bazaar branch, currently hosted on Launchpad (not necessarily going to stay there). You can access it using bzr branch lp:s3w. Patches welcome! There are some usage examples on the homepage, as well as in the internal documentation. Development is continuing with some new features I have in mind, so there should be another release sometime soon too.