search for: geoipdatabase

Displaying 2 results from an estimated 2 matches for "geoipdatabase".

Did you mean: geodatabase
2011 Apr 10
2
Webalizer and GeoIP?
I have a small problem with webalizer. I use it to analyze logs of a small web server hosting a single site, and the only thing I am interested in from webalizer is the piechart diagram it produces about the geographic distribution of people visiting the site. However, the piechart it produces gives me a very crude information, with 50% or so of visitors belonging to "unresolved",
2008 Mar 30
3
Bignums, integers and migrations
...39;t seem to handle large numbers very well. The conversion works fine from the script/console, but when running it from migrations only very low IP-ranges "make it thru". Integer-based IPs seem to be capped around 2150000000. def self.up require ''ipaddr'' @ips = GeoIpDatabase.find(:all) @ips.each do |ip| start_ip = IPAddr.new(ip.start_ip) end_ip = IPAddr.new(ip.end_ip) new_ip = Ip.new( :start_ip => start_ip.to_s, :end_ip => end_ip.to_s, :start_ip_integer => start_ip.to_i, :end_ip_integer => end_ip.to_i ) new_ip.save end end...