About Dilantha

A web developer based in Sri Lanka. Works with PHP, CodeIgniter, drupal and jQuery.

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

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

exiftool -d %Y/%m "-directory

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.


extension=phar.so
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.

Reference http://serverfault.com/questions/317416/enabling-phar-on-dreamhost-shared-hosting

Vote up my answer if it works for you.

Meter Taxies Will Win

Indi is asking: What kind of taxi do you usually take?

I think he is building some kind of social app for taxis. At the moment on his poll meter taxies are winning. Here is what I think about that.

I voted for meter taxies too. Its the obvious choice there. If you call for a car or van from a cab company you have to wait, they have to figure out where you are and you have to wait a bit more.

And when the car or van comes its usually in crap condition. The cab companies have ‘packaged’ out plans these days so if you don’t fall into a plan you pay more for less.

Meter tuks are almost everywhere now. So its the obvious choice. You don’t have to haggle on price and you get a decent service. You see what you are spending and there is no magic thug pricing when you reach your destination.

When you are in an unknown place if you had a choice between a meter tuk and a non-metered tuk I would bet you would take the metered one. That’s because even if you don’t know the guy the meter levels out the unknown.

My bet is meters will become the normal because its better.

No Sale

Sri Lanka is a great place for used stuff. Cars and phones are in the top bracket here. But these days there is a problem selling. Although there is a demand once you sell you can’t afford to buy the next best thing.

The rupee is falling and businesses are not spending as much.

So that means my hosting fees are going up and it’s getting harder to get paid. :(