Archive for December, 1969

At job in Mac OSX

Wednesday, December 31st, 1969

Turns out that at jobs (a.k.a. the at queue) don’t support some of the shortcuts you can use in most other flavors of *nix, times like “15:00″, “3PM”, or “teatime”.

In OSX, you have to specify -t YYMMDDhhmm. Example:
at -t 10081637.30

Don’t forget the CTRL + D to schedule it!

In my example, I have it pointing to a file that has only one line:
sh uploadAtCertainTime.sh

No more waking up at 6AM (that’s 9AM EST) to upload press releases! :)

Here is my uploadAtCertainTime.sh script:
#!/bin/sh
USER=username
PASSWD=supersecretpassword
ftp -n ftp.myhost.org <<script
user $USER $PASSWD
binary
cd public_html
lcd /Applications/xampp/htdocs/[wherefileslive]/
put file.html
quit
SCRIPT

Post Script: this only works if you leave your computer on. D’oh!

Google Maps - As the Crow Flies

Wednesday, December 31st, 1969

I have a client who wants a distance calculator AND Google Maps. I thought it was impossible, but upon reading a Maps discussion board I found this. And then I created this.

The next task is to figure out how to create these points on the fly.