Here’s a quick and easy way to tail log files from multiple hosts using Capistrano and the Foreman gem.Capistrano Tas... Continue reading
Add Eloquent ORM Tab to PHP Debug Bar
Using Eloquent outside of a Laravel project? – Me too!Collector Class class PHPDebugBarEloquentCollector extends \De... Continue reading
Doctrine 2 PDO Object
Where, oh where, is that pesky Doctrine 2 PDO object…Doctrine actually uses a base class called \Doctrine\DBAL\Driver... Continue reading
WordPress Domain Changer 2.0
Announcing the next release of WordPress Domain Changer – version 2.0!This release marks the completion of a total re... Continue reading
Setting Up LiveReload With Jekyll
When I decided to port my blog away from WordPress I found myself torn between two great static site generators — Mid... Continue reading
Programmatically Create & Title Tabs Within The Mac OS X Terminal.app
The Terminal application has been steadily improving with every major release of Mac OS X. A new feature called Windo... Continue reading
Recursively Sort Ruby Hash By Key
Here’s a quick and easy way to sort a Ruby hash by its keys. The ability to sort recursively and provide a custom sor... Continue reading
Twitter Bootstrap Radio Button Form Inputs
I’ve been loving the Twitter Bootstrap buttons so I came up with a quick technique that turns them into actual workin... Continue reading
How to Implement a Single User Model with Rails, ActiveAdmin, and Devise
I had just finished the standard installation of ActiveAdmin when I noticed that authentication was implemented using... Continue reading
PHP Output Profiling: Echo vs Concat
I was in the middle of a code review a simple question came up: “What’s the fastest way to output a segmented string ... Continue reading
AHAX WordPress Plugin
A couple weeks ago I was looking for a simple way to make AJAX requests on admin or public WordPress pages from a the... Continue reading
Benchmarking and Timing PHP Class
Introducing a simple, yet deceivingly useful, micro benchmarking / timer class called Bench.I’ve found myself on more... Continue reading
WinCache PHP Class
I’ve developed a new class for WinCache that wraps around the wincache_ucache* functions. The goal of this project is... Continue reading
Site Deployment with Subversion
While working for a previous employer I was tasked with developing a new company “intranet” site. Changes rolled out ... Continue reading
The Basics: PHP register_globals Overview
In this article I’ll explain what register_globals is; how to protect against exploits that take advantage of it; and... Continue reading
WordPress Domain Change Script
Notice: A major release has been issued since this post – Version 2.0Changing the domain name or URL of a WordPress s... Continue reading
Leet Speak WordPress Plugin
During the hours between 11:30 PM and 8:00 AM – while attempting to wrap my head around the development process of a ... Continue reading