Dec 12

MySQL Does Not Care Much for the LabVIEW NaN

This is a real quick one that I wish I had figured out a lot faster earlier today: apparently a NaN from LabVIEW can’t go into a MySQL double. You need to check for NaN┬ábefore writing to your database. Be especially mindful of this if you’re doing any type of counter measurement with NI equipment since they’ll return NaN when no pulses are detected on a timeout. That is all.

Dec 12

Determining the Distance Between Two Geographic Points

Finding the shortest cheap mlb jerseys distance between two known points is generally straight forward:

The distance formula

Where 1 and 2 are points, cheap nba jerseys x and y are their coordinates, an and d is the distance between them.

The problem of finding the distance between ??????? two points is Africa only generally straight forward because you’re probably used to working in Euclidean space. This type of geometry, however, makes an assumption that isn’t always true: that parallel lines never intersect. Seems obvious enough. But not all parallel lines are, well, parallel. Take, for example, the meridian lines of the Earth.

Continue reading →