5 Dec 2011

A mongodb map reduce example for calculating standard deviation

I wanted to scan some shares in a mongo db I populated recently. Specifically I was looking for shares with a bit of activity, hoping that they would yield wider trading channels. To find these shares I came up with a simple map/reduce job which calculates the standard deviation for each share since a specified date, and then prints out shares with a minimum standard deviation to the console. So for a real-world sample of what you can do with mongodb map reduce, go have a look. Btw, in order to embed a file in a git repo in a…read more

15 Nov 2011

Completely purging sensitive files from a git repo

Completely purging sensitive files from a git repo Say for instance you want to open source a private repo with files containing sensitive information. You can effectively purge a file from a git repo as well as all history by running   Remember to do this for each branch in your repo. Then do: More detail here