Producing Script r In LaTeX Expressions

When we have so many letters already, why would one need this fancy little Script r? While typesetting mathematical expressions that govern our (beautiful & elegant) physical universe, often one runs out of symbols and as such, it becomes necessary to use the same letter/character in different styles to convey the intended meaning. Electrodynamics and Gravitation are just a couple such fields that often use – fortunately or unfortunately – a variation of alphabet r, called the script r. I did try to generate this elusive script r in LaTeX for quite a few years and failed miserably every time. However a few days ago, Dr. Cantrell was looking for a way to accomplish the same and as such revived my almost forgotten interest in script r.

Continue reading … “Producing Script r In LaTeX Expressions”

A Perfect Season In Review

It was Saturday, 9th May 2009 – and the weatherman had predicted mostly cloudy weather with highs of around upper 40s and Sun was expected to make a guest appearance or two. About halfway through our first practice session, weather conditions made a fool of weatherman’s prediction and fairy tale like snow flakes gave our softball fields a venerable Lambeau Field in Winter look. While most others would have called it an end, our passion [or foolishness, you be the judge] kept us going and at the end of it all, I knew [seriously, I am not kidding or making this up] we would be the last team standing when season’s Sun headed towards horizon. And having nothing but softball [at least during Summer months] to claim as life, I spent part of the day after in making a sign – that we would be holding for the team picture.

Continue reading … “A Perfect Season In Review”

MySQL – Finding Locations Nearest To A Given Pair Of GPS Coordinates

Amongst other things, I have the habit of geotagging my photographs and for this purpose, I use my Garmin GPSMap 60CSx, an API I wrote to store tracks in MySQL & Geonames data in a MySQL [please refer to this if you wish to do so as well]. For completeness sake, the MySQL table structure that holds Geonames data is given below:

Continue reading … “MySQL – Finding Locations Nearest To A Given Pair Of GPS Coordinates”

PHP – Calculating Distance Between Two Locations Given Their GPS Coordinates

Amongst other things, I have the habit of geotagging my photographs and for this purpose, I use my Garmin GPSMap 60CSx, an API I wrote to store tracks in MySQL & Geonames data in a MySQL [please refer to this if you wish to do so as well]. For completeness sake, the MySQL table structure that holds Geonames data is given below:

Continue reading … “PHP – Calculating Distance Between Two Locations Given Their GPS Coordinates”

MySQL – Finding Nearest Record In Date/Time

Amongst other things, I have the habit of geotagging my photographs and for this purpose, I use my Garmin GPSMap 60CSx, an API I wrote to store tracks in MySQL & Geonames data in a MySQL [please refer to this if you wish to do so as well]. The work-flow might seem a bit complicated but from a personal perspective, it’s very much worth the effort. My camera and GPS unit are in sync with respect to time – enabling me to easily locate the GPS coordinates nearest in time to a photograph’s time-stamp – and, I can then use those GPS coordinates to look up the Geonames data [stored in my local MySQL database] and get details regarding the country, region/state, city/town/village. Once these details, they can be written into EXIF.

Continue reading … “MySQL – Finding Nearest Record In Date/Time”

Importing Geonames.org Data Into MySQL

What is Geonames.org, you wonder? It’s a website [or an web-institution, if you like to phrase it that way] that provides – amongst other things – [pretty] useful information that maps geological data [country, region, city/town/village, etc.] to the GPS coordinates. The one database that I personally use corresponds to allCountries [download size is about 170MB ; requires about 800MB upon uncompressing it].

Continue reading … “Importing Geonames.org Data Into MySQL”