Click here to Skip to main content
15,898,035 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: When is a double a string Pin
Chris Maunder13-May-10 15:50
cofounderChris Maunder13-May-10 15:50 
GeneralSelecting all coordinates withing a distance Pin
Jeroen De Dauw12-May-10 12:51
Jeroen De Dauw12-May-10 12:51 
QuestionRe: Selecting all coordinates withing a distance Pin
Chris Meech13-May-10 3:09
Chris Meech13-May-10 3:09 
AnswerRe: Selecting all coordinates withing a distance Pin
Jeroen De Dauw13-May-10 3:12
Jeroen De Dauw13-May-10 3:12 
AnswerRe: Selecting all coordinates withing a distance Pin
elchupathingy13-May-10 3:54
elchupathingy13-May-10 3:54 
GeneralRe: Selecting all coordinates withing a distance Pin
Chris Meech13-May-10 4:22
Chris Meech13-May-10 4:22 
GeneralRe: Selecting all coordinates withing a distance Pin
David Skelly13-May-10 4:37
David Skelly13-May-10 4:37 
GeneralRe: Selecting all coordinates withing a distance Pin
Jeremy Hutchinson18-May-10 5:17
professionalJeremy Hutchinson18-May-10 5:17 
While we're all dragging out our ocean navigation knowledge...

David Skelly wrote:
a nautical mile is defined as one minute of arc around the Earth's circumference


It's worth highlighting that this works at the equator and along meridians, but is not accurate if you are traveling east/west along say 45 degrees north lattitude.

Another reason this calculation probably isn't going to be accurate is that the shortest distance between two points is an arc. The further you get from the equator the more curve there is in that arc.

Of course if they are just trying to locate stores within 50 miles of your location, their math is probably good enough...
AnswerRe: Selecting all coordinates withing a distance Pin
Bernhard Hiller13-May-10 23:10
Bernhard Hiller13-May-10 23:10 
GeneralRe: Selecting all coordinates withing a distance Pin
Bernhard Hiller13-May-10 23:28
Bernhard Hiller13-May-10 23:28 
GeneralRe: Selecting all coordinates withing a distance Pin
Member 35753717-May-10 11:40
Member 35753717-May-10 11:40 
GeneralHow to sequence a loop Pin
TheNexpert6-May-10 23:10
TheNexpert6-May-10 23:10 
GeneralRe: How to sequence a loop Pin
riced6-May-10 23:51
riced6-May-10 23:51 
GeneralRe: How to sequence a loop Pin
Jeroen De Dauw7-May-10 0:43
Jeroen De Dauw7-May-10 0:43 
GeneralRe: How to sequence a loop Pin
Omar Gameel Salem13-May-10 13:55
professionalOmar Gameel Salem13-May-10 13:55 
GeneralRe: How to sequence a loop Pin
David Skelly7-May-10 2:09
David Skelly7-May-10 2:09 
GeneralRe: How to sequence a loop Pin
OriginalGriff7-May-10 3:48
mveOriginalGriff7-May-10 3:48 
GeneralRe: How to sequence a loop Pin
Sebastian Br.11-May-10 4:11
Sebastian Br.11-May-10 4:11 
GeneralRe: How to sequence a loop Pin
Paulo Zemek7-May-10 10:59
Paulo Zemek7-May-10 10:59 
GeneralRe: How to sequence a loop Pin
Christopher Ayroso10-May-10 19:18
Christopher Ayroso10-May-10 19:18 
GeneralRe: How to sequence a loop Pin
Trollslayer22-May-10 7:57
mentorTrollslayer22-May-10 7:57 
GeneralHelpful comment PinPopular
MarkB7775-May-10 10:58
MarkB7775-May-10 10:58 
GeneralRe: Helpful comment Pin
OriginalGriff5-May-10 21:25
mveOriginalGriff5-May-10 21:25 
GeneralRe: Helpful comment Pin
Paddy Boyd6-May-10 2:24
Paddy Boyd6-May-10 2:24 
GeneralRe: Helpful comment Pin
Bernhard Hiller6-May-10 4:35
Bernhard Hiller6-May-10 4:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.