matt's blog

Highcharts event.layer errors in chrome (v2.1.9)

event.layerX and event.layerY are depricated.  So mousing over a highchart results in a flood of messages in the console log.

I don't know why I'm investigating this; highcharts is a commercial product, and I would've expected them to fix it before I noticed the problem.  but apparently not.

SSH with no password

First, generate a key for yourself:
  ssh-keygen -t rsa

That'll generate a private key in ~/.ssh/id_rsa and a public key in ~/.ssh/id_rsa.pub

I've chosen RSA on a whim over DSA.  My logic for this choice is simply: RSA and DSA appear similar in terms of effectivness to a cryptographic layman such as myself.  But DSA keys must be 1024 bits.  And RSA allows for a variable key size with the minimum of 768.  I'd prefer a larger key, which I assume provides greater protection against a brute attack.  So long as the underlying algorithm is sound, larger == better?

Backing up a MongoDB

This is a quick outline of a mongo backup script.  The purpose of this script is to run hourly from cron.  It will prune hourly backups older than one day old, except for the midnight backup.  It will prune the midnight backups older than 7 days old.

Ruby IP Addresses

This is a code graveyard. I needed to perform subnet calculations, and didn't see anything readily available in ruby. So I wrote the below. Below is not refined code, and the only reason I've published it is because it includes some good reference for number/string conversions.

Mongo, Ruby, and DBRefs

To me, Mongo is: 

Pages

Subscribe to RSS - matt's blog