Converting the line ending of a file on your Mac from dos or windows format to Mac format is as simple as
Googles long/lat is degrees only and a fractional component. This script decomposed that into degrees, minutes and seconds. From there I could convert it from having seconds to having a fractional minute component, just like my GPS requires.
Using Mac OS X and browsing the file system with ‘Finder’, I often want to open Terminal or iTerm and have the default path set to the current Finder folder.
Once in the MySQL console, you can use show and purge to selectively delete portions like below:
Recently I had to monitor some data being output to a log table while an application was running. The log table was quite large, and being written to constantly and also by portions of that system I wasn’t interested in. So I only wanted to see the 10 or 20 most recent rows / records… Continue reading On demand “Tailing” of a database log table: select the last x records
Trying to run vnc-server recently on a debian system, I ran into the following issue: