Tag Archive for "bash"

Another Day Out My Window

January 20th, 2008 by Andrew

This time around my bash script for gphoto started when it was supposed to. I captured a full day worth of photos, 1 every 60 seconds. The frames were captures on January 18th, 2008. I ended up with 710 photos in the final video, which is about 11.8 hours worth of the day. When I […]

Continue Reading Another Day Out My Window...

One Day Out My Window

January 17th, 2008 by Andrew

I finally got the Nikon EH-5a, the $70 power cord for my camera. It’s crazy that a cord can cost that much money, and all it does it supply my camera with power from a wall socket. I put it to use though, by running my camera all day on the 16th. I shot out […]

Continue Reading One Day Out My Window...

Time Lapse Sunrise

April 27th, 2007 by Andrew

Way back in January I was playing around with this great software called gphoto. It allows you to attach your digital camera to your computer and take photos. This has many uses, one of which is to create time lapse movies by writing a script to take pictures every so often. So that’s what I […]

Continue Reading Time Lapse Sunrise...

Changing File Extensions

April 20th, 2007 by Andrew

Today at work I needed to change a whole directory (with many sub-directories and sub-sub-directories and… etc.) of .php files to the .html file extension. Since the files were on a Unix server, I wrote a quick Bash shell script to take care of this for me. #!/bin/bash   function change_extension_recursive {   #change all […]

Continue Reading Changing File Extensions...