View Single Post
Old 04-02-2009, 10:26 AM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by Twistys Tim View Post
Apparently the closest GFY user to me is 12 miles away -- which considering I can see porn alley from my window seems a bit odd....?
well i wont go into alot of detail about why ( because it reaks of my inability to code to proper standards ) but i made the script purposely ignore people in the exact same location as you ( so you dont detect yourself as being closest to yourself )

The person it detects as closest to you will always be > 1 mile away. the list of other people within 50 miles may include your own name because it may display people < 1 mile away. so there may be people closer to you than the person listed in the list below it. I know it sucks but hey i was coding like 15 other projects at the time, i did it for free and it is pretty damn cool nonetheless

another bug in the ointment is that i had to use 2 seperate geo databases , and that makes it a little buggy
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote