PHP

Install PHP 7 on Ubuntu 14.04 with Gearman support

PHP 7 has been out long enough now that it has seen a couple of patch releases, which is about the time I will start evaluating an upgrade. PHP 7 can have some significant performance benefits from previous versions, so I was eager to give it a try. With the…

Globally install Composer on OS X 10.11 El Capitan

Update: this also works as expected with macOS Sierra. The El Capitan release of OS X introduces a more strict security model around the concept of root level access to the underpinnings of the operating system. For a typical user, this is great news for avoiding malware, etc. As a…

Alias a version for Composer

I previously published instructions on using a specific commit hash for Composer. This is a quick and useful way for referencing the most recent version of our work during the development process. In some cases, specifying a commit hash as the current version may compromise the dependency tree, causing a…

GZIP BSON in MongoDB with PHP or Node.js

I recently needed to store a large number of files (300M, 3-4TB GZIP) on a distributed number of systems, while maintaining index information about each file in MongoDB. Accessing and modify large blocks of the files in rapid succession with minimal latency made S3 a less attractive option in this…

PHP 5.6 on Ubuntu 14.04 with PPA

PHP 5.6 has been in the wild for about a month now. As of October, the major version has received its first patch release 5.6.1 to address several bugs detailed here in the changelog. Install latest PHP 5.6 on Ubuntu 14.04 sudo add-apt-repository -y ppa:…

Enable IntelliJ dialogs on Mac OS X

Note: This is no longer necessary in PhpStorm 8. IntelliJ uses it’s own dialogs by default. I recently ran into an issue using the merge tool in PhpStorm 7.1 on OS X 10.8. The native OS dialogs were grabbing focus away from the foreground, making it impossible…