When I was compiling my last post I wanted to embed a tweet in my blog post. I found a nice plugin for that called Twitter Embed.
Getting a Tweet’s permanent link wasn’t that straightforward, so I made a small video to show how. Also notice I’m picking the short code instead of the link, that’s what Twitter Embed needs.
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.
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.