The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
Our professor did not do that intentionally. He would have questions like 'Write a class that does this and that' and then expect you to use inheritance. If you solved the question to the letter, but did not use inheritance, he would mark it as wrong or at least detract most of the points. He simply never understood that we are not psychic and can't consider every possible hidden expectations he might have had.
While foraging in the Quick Answers forum, I ran across an interesting question about determining the geographic location of a website visitor from the IP address. As far as I know, this is impossible, but I could be wrong. So I checked Google for code samples and services for this function and found several. One (which shall remain unnamed) offers a free online service that can be accessed via code or direct input, and allows a few searches per hour for free, more for a very tiny fee. So I tried looking up one of our servers at work in Mohave Valley, AZ. The response, with a "97% certainty" was Casper, Wyoming, a miss of a mere 938 miles.
This functionality is used on a website I develop for. My company bought a database of IP addresses and their corresponding locations. It is a subscription so we get updates on occassion. Of course, since IP addresses can be on mobile devices and can be dynamically reassigned, they can't be perfectly accurate, but they can usually get within the correct city.
I saw one of those services on Google, but I was more interested in seeing what geolocation technology might have done with IP addresses lately. Nothing, apparently. As far as I can see, it will never be possible to do this without a lookup table of confirmed locations until the IP datagram format changes to include geographic information (something I'm sure ESRI is lobbying for already).
Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DDEthel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
http://ipinfodb.com/[^] This used to work for me, but currently says I'm in New York, which is a couple thousand miles off. And their home page seems like they know it doesn't work, and are pleading for info.
The pr0n industry sure knows how to do it with great accuracy!
- S 50 cups of coffee and you know it's on! Code, follow, or get out of the way.