Code and samples from O'Reilly's Collective Intelligence book.