On Sep 16, 2007, at 7:21 PM, Bill Kelly wrote: > > From: "Eugene Kalenkovich" <rubify / softover.com> >> "Bill Kelly" <billk / cts.com> wrote in message news:00b301c7f897 >> $a8c9dc20$6442a8c0 / musicbox... >>> >>> From: "Eugene Kalenkovich" <rubify / softover.com> >>>> >>>> BTW, all solutions already submitted will lie for subnets 1,2 >>>> and 5 :) >>>> Most (but not all) will break on out of bounds submissions >>>> (256.256.256.256 or 0.0.0.-1, latter if comments are stripped out) >>> >>> Hi, could you clarify what is meant by lying about subnets >>> 1, 2, and 5? >>> >>> >> Check what ccountry is 5.1.1.1. If you get any valid answer - >> this answer is a lie :) > > Ah, OK. I get: > > ruby 139_ip_to_country.rb 0.1.1.1 1.1.1.1 2.1.1.1 3.1.1.1 4.1.1.1 > 5.1.1.1 > ZZ > (1.1.1.1 not found) > (2.1.1.1 not found) > US > US > (5.1.1.1 not found) Well, we weren't all broken: $ ruby ip_to_country.rb 5.1.1.1 Unknown James Edward Gray II