Upgrade from PHP 5.3 to PHP 5.4 on Ubuntu 10.04 LTS

By Josh Sherman
2 min read
development
php
linux
ubuntu

Head’s up! Security support for PHP 5.4 has ENDED. If you really need to use PHP 5.4 be aware that you are doing so at your own risk. Not just that, but Ubuntu 10.04 LTS is also at END OF LIFE. For real, you should be upgrading ASAP. I’ve previously […]

“Failed to open page” on Windows Phone 8

By Josh Sherman
4 min read
development
windows

I ran into an issue a few days ago after pushing some hand rolled “infinite scroll” logic to my sites. One of my users reported getting the “Failed to open page” error on her Windows Phone 8 using UC Browser, some aftermarket browser I had never heard of. The rest […]

Using Keyring Access on the OSX Command-line

By Josh Sherman
2 min read
apple
os x
security
cli

If you’re like me, you probably have a private dotfiles that supplements your public dotfiles repository. It contains private values like API keys and [hopefully not] plaintext passwords. There’s even a good chance you’re using git submodules or a setup script to manage the inclusion of the private stuff. Well […]

How to use Generators in PHP

By Josh Sherman
1 min read
development
php

Support for generators (via the yield keyword) has been added to PHP 5.5 and allows you to create simple iterators without the use of the Iterator interface. What’s this all mean? It boils down to overhead, generators use less memory than an implementation of the Iterator interface or simply creating […]

Warning: Network TCP port is being used by /usr/sbin/php5-fpm. Possible rootkit

By Josh Sherman
2 min read
development
php
linux

Imagine my surprise to see this warning during my morning review of the rootkit checkers that run nightly on my boxes. The thing is, there were no other anomalies on the box aside from /usr/sbin/php5-fpm being bound to a port that was suspected of belonging to a rootkit. The fact […]