Getting better related posts in Jekyll using tf-idf

It's no secret that Jekyll's built in related posts functionality doesn't return related posts--it only gives you the most recent posts. So I decided to use some NLP techniques to calculate document correlation and retrieve related posts instead.

Easy unit testing with MagicMock

MagicMock is incredibly useful for python unit testing in many ways. This is one simple use case where it is particularly convenient.

Solving the 24 game

Listen to me ramble about how I wrote an algorithm to solve the 24 game for an arbitrary number of numbers.