How to Setup a LAMP Stack on Ubuntu 14.04 LTS

By Josh Sherman
2 min read
development
linux
apache
mysql
php
ubuntu

The newest long term support release of Ubuntu (Trusty Tahr) is finally here! I just spun up a droplet over on DigitalOcean to walk through setting up a LAMP stack for this post. I also recommend making sure that your system is completely up to date. At the time of […]

Reducing Redis used memory by moving back to MySQL

By Josh Sherman
6 min read
development
redis
mysql

If you know me then you know I fucking adore Redis. Over the last few years it’s slowly worked it’s way into the majority of the things I have built. Unfortunately, recently I ran into a problem that Redis could easily accomplish but would require more RAM than I have […]

Compressing and uncompressing a string with PHP

By Josh Sherman
1 min read
development
php

Today I went on a mission to find a PHP function that I’ve never used before and knew nothing about. The mission was such a success that I have two functions to discuss and honestly, I’m pretty sure I’ll never use them. That being said, if the need ever arises […]

PHP's /e modifier is deprecated, use preg_replace_callback instead

By Josh Sherman
1 min read
development
php

I’ve discussed the use of preg_replace_callback in the past in regard to passing variables to anonymous functions but never touched on how to use preg_replace_callback or the fact that the /e modifier has been deprecated in PHP 5.5+. Even though /e still works in PHP 5.5 in the near future […]

Migrating from WP Engine to GitHub Pages

By Josh Sherman
6 min read
development
wpengine
wordpress
github
github pages
jekyll

After giving it nearly a full calendar year, I have decided to migrate my PHP blog (PHP Avenue) off of WordPress via WP Engine and on to GitHub Pages. The decision ultimately boiled down to WordPress having way more available functionality than I was actually using and me not seeing […]