November 2007
2 posts
Geocoding in Ruby
The Geocode Module Have you ever needed to turn a partial address into a full one? Have you ever wanted to get the latitude or longitude for a particular address? Maybe you want to plot addresses on a Google Map, or maybe, like a colleague of mine, you find it redundant to ask for city, state AND zip when creating a form. If any of these apply to you, you might be interested in geocoding. ...
Nov 21st
Stats on Rails
The Stats Module Have you ever had an array of numbers and needed to know if one was a statistical outlier? Ever needed the standard deviation of those numbers? Well, I was recently working on an app, where I did. I packaged up the functionality as the following Module. z end def grubbs_outlier_test(value, mean, stddev) ((mean - value)/stddev).abs end def critical_z(n) ...
Nov 18th