Wednesday, November 21, 2007

Unix - Honey Lemon Candy



I found this confectionery at a convenience store in Phimai, Thailand (map) .

I wonder if the manufacturer has licensed the trademark from The Open Group.

Monday, October 29, 2007

Verhoeff checksum algorithm in Python

I've written a python implementation of the Verhoeff checksum algorithm. You can download it as verhoeff.zip or verhoeff.tgz . Please try it and tell me what you think. Here's the canonical usage example. Calculate the checkdigit for 142857.
>>> from verhoeff import Verhoeff
>>> v = Verhoeff()
>>> v.calcsum(142857)
0
>>> v.checksum(1428570)
0
Alternatively, it can be invoked as a command as follows:
python verhoeff.py 142857
1428570




Tuesday, October 23, 2007

Empirical Method


I've set up the Empirical Method shop at cafepress in order to sell Tshirts and other merchandise with a Scientific theme.
I thought Ockam's razor is as good a slogan as any to wear on one's chest.
Failing that why not declare one self to be a "Product of Evolution"?
Vicarious living is popular these days, so I couldn't resist including some children's wear.