How to install ExifTool with Composer

I’m working on a PHP project, that uses Phil Harveys excellent ExifTool to read Exif and XMP tags from photos. Since ExifTool is written in Perl, there is of course no composer.json to install this dependency directly with Composer. But you can create your own package information in your master composer.json as follows: { … …

How to update Composer on Linux Mint 18.3

When you install Composer (the dependency manager for PHP) globally on Linux Mint 18.3 with the package manager… $ sudo apt install composer $ composer -V Composer version @package_branch_alias_version@ (1.0.0-beta2) 2016-03-27 16:00:34 …you’ll get the totally outdated version 1.0.0-beta2. The problem is that this version does not support extracting compressed package files ‘tar.gz’. It also …

Visited by a roe deer

Over the New Year, I’ve spent a couple of days in my vacation home in the canton Vaud. During one night, we got quite a bit of fresh snow and the next evening my wife discovered this roe deer in our orchard. He was probably looking for apples.

Apache serves cached files with garbled text at end

When using Apache running on a VirtualBox machine with a shared folder, small files such as JavaScript or CSS files might not get updated from the host and served with additional characters at the end. This happens because of a bug in VirtualBox when Apache is using sendfile to improve data transfer. Just turn the …

Why I love PhpStorm: SQL GROUP BY handling

Here’s another post from my series why I love JetBrains PhpStorm. This is a SQL query, where I have I list of column names. The IDE not only marks the columns missing in the GROUP BY clause as errors, it also offers an option to fix it for you by adding them to the GROUP …

What I don’t like about the Nikon D500

So far nothing except one (little) thing: Unlike on the D810, the GPS icon is not displayed on the top LCD only on the rear LCD. The GPS icon (on the rear LCD) blinks as long as no fix is available. Having this information on the top would be useful before taking a picture, especially …

Why is your PHP output still buffered even when you turned buffering off?

If you want to stream your content with PHP, you need to have output_buffering set to off in you php.ini and/or use it together with flush(). If this still does not work check your Antivirus software. On Windows, the on-access scanners of Sophos and Avira Antivirus buffer your http output! The only solution is to …

PHP: How to sort a NodeList by element attribute

$elements = iterator_to_array($nodeList); usort($elements, function($a, $b) { return (int) $b->getAttribute(‘someAttribute’) – (int) $a->getAttribute(‘someAttribute’); });

Gimbal and replacement foot for the Nikon 600mm FL

Unfortunately, the Nikon 600mm f/4E FL ED VR does not balance with the D810 and the foot replacement LCF-13 by Really Right Stuff nor with the Nikon stock foot. The LCF-13 worked perfectly with the previous model 600mm f1/4G ED VR. After some research I ordered the foot LF-N604FL by jobu design. It is 4 …

Use JSDoc 3 and PhpStorm to generate JavaScript documentation

This is an update to my former installation guide How to Generate JavaScript Documentation with JSDoc 3 and PhpStorm, which was written in 2013. Since then, JSDoc 3 moved from Mozilla’s Rhino to Node.js to generate the documentation, which is why that guide no longer works (unless you use an older version of JSDoc 3). …