Example code for one my most popular blog posts from the distant past.