Friday, August 29, 2008

Vim Tab Preferences

Vim Tab preferences for PHP and Python Development:


set expandtab
set tabstop=4
set shiftwidth=4
set autoindent
set smartindent

Wednesday, August 13, 2008

Convert Degrees, Minutes, and Seconds to Decimal Degrees

Converting Latitude and Longitude values from Degrees, Minutes, Seconds to Decimal Degrees.

Here is the Formula:

(DEG + (MIN * 1/60) + (SEC * 1/60 * 1/60))

If it has an additional North, East, South or West, multiply by -1 for South and West.