Word frequencies after removing common words

In taking the Coursera class on Mining Massive Datasets, the problem of computing word frequency for very large documents came up. I wanted some convenient tools for breaking documents into streams of

Read More…

git log-display: step backward through your git commits displaying diffs

When working with git at the command line, I frequently want to see the last changes made to a repository. To see the result of the last commit (diff’d with it’s parent commit), you can ju

Read More…

script for logging standing desk state transitions

At work I have an adjustible-height desk, that way it can be both a standing or a sitting desk. In order to better understand my own usage habits, I made the desk script, which logs state transitions.

Read More…

Visualizing the 'belongs to' relation in rails app models

When working on rails apps, I usually have to make a mental map of the models and how they interrelate. An Active Record model can belong to another, but when you have more than half a dozen models, k

Read More…

Revisiting spaces in file names

I don’t like spaces in file names, as I’ve written before, and as I’ve tried in vain to fix. I’ve been working around this issue with a little hack that I call wrap: #!/bin/sh

Read More…

XKCD 1277: Ayn Rand and Regular Expressions

Randall Munroe of XKCD is brilliant, today’s comic is no exception: {%img http://imgs.xkcd.com/comics/ayn_random.png %} While the Ayn Rand joke is amusing, the real clever joke in the alt text (

Read More…

All Posts by Category or Tags.