Tuesday, July 17, 2012

Drive Across the US in Less Than 20 Minutes

During a cross country drive from Massachusetts to California, I mounted a camera on car dashboard and made it take a photo about every 10 seconds. That's right, that little shooter took a total of 16,497 (and 3,498 miles of driving) photos over the course of our trip. Fortunately for you, those 16,497 photos  have been distilled down to a hopefully manageable video for your viewing pleasure. Without further fanfare, here it is.

Oh, and in case you are wondering, I used an "old" Canon SD600 with hacked firmware to take these photos.

Sunday, July 1, 2012

OS X Fuse and SSHFS on a Mac

I do quite a bit of work where my files reside on a remote machine. Of course, I could log in to the remote machine and work on the files there, copy them to my local machine and then copy them back, use an editor that can read files from a remote machine, or many other methods. However, how about the cooler option of mounting the remote filesystem locally and then working on the files as if they were on my machine? Oh, and yes, since we want to be secure, we'll do all that over SSH.

To get this to work you'll need to install OS X Fuse. In case you care, OS X Fuse is an implementation of Fuse, which allows the creation of a filesystem in userspace. OS X Fuse, only installs the necessary library for the creation of that userspace filesystem. To be able to mount a remote directory on your local machine over SSH, you'll also need to intall the SSHFS libraries, which are conveniently located on the OS X Fuse page.

Once everything is installed, you can mount a remote file system using your terminal as follows:
local$ sshfs user@host:/path/to/dir  /local/path/to/mountpoint -ovolname=NameOfMountedVolume
This will take the directory found at "/path/to/dir" on the remote machine and mount it locally at "/local/path/to/mountpoint" and call the directory "NameOfMountedVolume". Now you can navigate to that directory using the terminal or Finder as if it were a local directory. To unmount it, simply run
local$ umount /local/path/to/mountpoint
Pretty cool, eh?