Detect users country

Does anyone know of a plugin that will help me figure out the country
the user is visiting from (e.g. based on the IP etc.)?

http://blog.hungrymachine.com/2007/10/22/super-fast-ip-to-lat-lng-in-rails