Monthly Archives: April 2012

Organize Photos Into Monthly Folders

I had a few months worth of photos on my phone that needed to be imported and sorted.

All I wanted to do was move the photos into monthly folders. So I found exiftool that had some options that did what I wanted.

If you have Homebrew on mac you can install it like this.

brew install exiftool

Here is the command I used to move my photos.

exiftool -d %m "-directory<datetimeoriginal" *.jpg
exiftool -d %m "-directory<datetimeoriginal" *.JPG

If you wanted to move them into year/month folders, it would go something like this

exiftool -d %Y/%m "-directory<datetimeoriginal" *.jpg
exiftool -d %Y/%m "-directory<datetimeoriginal" *.JPG

Have a look at the docs and organize away.

Silex and Phar on Dreamhost

You can’t run Silex apps directly on Dreamhost yet. After a bit of digging around I came up with this.

You need to create a file ~/.php/5.3/phprc in your home directory, not under the website directory and put these lines in there.
detect_unicode = Off
phar.readonly = Off
phar.require_hash = Off
suhosin.executor.include.whitelist = phar

Its not immediate, but in about 15 mins it should work.


Vote up my answer if it works for you.