I’ve done quite a few of these comparison posts and I have always stuck with the inexpensive plans. I figured, what the hell, let’s see how Linode and DigitalOcean stack up when running larger, comparably priced plans! The price point…
Last week we discussed how to find the smallest value in an array so it seemed fitting to discuss how to find the largest value in an array. As we previously discussed back in the day you would have to…
I’ve decided that this year is going to be the year that I try to limit the amount of information I put out onto the Interwebs and hone my social presences and take back my privacy as best as I…
Finding the lowest value of an array is a pretty common task in PHP, especially when you are dealing with things like scores or money. In the old days before PHP 4, finding the lowest value of an array meant…
I can already hear the sneers of skepticism from my readers as I write this post. I know at least one person will fail to read the entire article and post some shitty comment about how GAW Miners are running…
Converting an array to a string is a pretty frequent task when programming. Whether you want to join some sentences into a paragraph or just smash the values into some sort of hash, you can do so very simply with…
This was supposed to be one of those grossly introspective posts that was originally drafted while at that “perfect” level of inebriation (somewhere on the down slope of Ballmer Peak if I had to guess 😉 Well, simply put, fuck…
The holidays are upon us so it’s time for my obligatory holidays themed post! Keep in mind that the title may say Christmas but you could apply this same logic to any holiday or date of your choosing. $christmas =…
I’ve recently run into deployment scenarios where I need to have a unprivileged user account execute something privileged like restarting nginx. Sure, I could just do things with the root account, but most of my deployments are done via SSH…
Reversing a string in most languages is a pretty trivial task. In PHP we have a dedicated strrev function to do so: $string = ‘This is my awesome string!’; $reverse = strrev($string); But what if this function didn’t exist? How…