Blog
How to calculate Mother's Day and Father's Day with PHP
A little late on the Mother's Day part, but since today is Father's Day, I figured it would be fun to discuss how to obtain the dates for these moving holidays. To do so, all we need to use is [...]
The receiving end of a DDoS Attack
This post was supposed to be a discussion of my migration back to Android from iOS but direction changed yesterday morning. At 9:30 am I found myself in the middle of a DDoS attack that was affecting the rack my [...]
How to pipeline with phpredis
Have you ever run into a scenario where you have to loop through a set of data and perform database queries for each iteration? Obviously we shouldn't run them one by one, so we end up using a TRANSACTION or [...]
How to process PUT requests with PHP
You are probably already familiar with $_GET, $_POST and $_REQUEST but what about $_PUT? Trick question, $_PUT (as well as as $_HEAD and $_DELETE) doesn't exist in PHP at this time. Never fear! We can create a $_PUT array with [...]
Breaking away from the Apple Ecosystem
I've recently come to a crossroad with Apple and it's ecosystem. I've had an iPhone 4S for the last 2 years and I was itching for a new device. Giving the current iPhone lifecycle, it makes more sense to hold [...]
URL Routing with PHP
I've been taking a lot of programming tests / challenges recently as I was in the market for a new [and hopefully exciting] opportunity to spend my time on. Because of this, I am full of new blog post ideas [...]
Having a child ruins your life
I started a new contract gig this week and one of my new co-workers was very candid in letting me know that having children ruins your life and implying that I in fact had ruined my life in doing so [...]
Spending money on advertising only to acquire spammers
I performed a little experiment last year, I decided to spend a small bit of money on advertising one of my sites via AdWords. My budget was low as I didn't want to spend more than 100$ and my daily [...]
Google Places PHP Library
I tend to shy away from these self gratifying posts about my own open source contributions, but I'm going to make the exception because this particularly library has been receiving quote a few downloads this month. I'm unsure for the [...]
Linode vs. Digital Ocean, performance benchmarks
I mentioned the in my last Linode vs. Digital Ocean post that I would be doing a performance comparison of the two in the near future and here it is! I used sysbench with some pretty basic settings to compare [...]