Lockdown: The coming war on general-purpose computing – Boing Boing.
I just put down my copy of Hands-on Testing with PHPUnit How-to by Michael Lively, published through Packt Publishing. Hands-on Testing with PHPUnit How-to on Amazon Hands-on Testing with PHPUnit How-to on Packt Overall, this is a pretty good book, and covers all of the topics one would expect from a Unit Testing book. Such… Read more »
Here’s a video I took of an alley that I have to walk through every day to work. It’s pretty obvious that someone is being very sloppy with their grease dumping habits. I’m not positive which company is dumping it. The doorway seen in the video connects to Tomukun, a local restaurant. This same situation… Read more »
Back in the day, The Oatmeal released their Tumblebeasts free to use for the world! And, after spending enough time on Google trying to find them and coming up with nothing, I figure I might as well make them available here! Download The Oatmeal Tumblebeasts
Here’s the code and notes for a presentation I’m giving this Saturday on PHP and Redis: github.com/tlhunter/php-and-redis-example Even if you’re not going to presentation, feel free to check it out and give it a try. Redis is pretty simple to use and quite powerful once you get the hang of it.
If you’d like to have the most recent version of Redis installed on your Debian machine, follow along with this guide. Unfortunately, the process of installing it is not as easy as `sudo apt-get install redis`, which you probably already knew since you’re reading this. The current version of Redis, at the time of me writing… Read more »
Boy does my Homebrew installation like to get messed up. Pretty much every time I do a big `brew update` I have to repair everything. This is what I typically have to do: cd /usr/local sudo chown -R USERNAME /usr/local/.git sudo chown -R USERNAME /usr/local sudo chown -RL mysql:mysql /usr/local/mysql/data git pull git reset –hard… Read more »
If you’re using my previous method for logging a networks ever-changing public IP to a webserver you control, you can use this simple command to grab the last known IP and SSH into the box that way. ssh USERNAME@`curl -s http://www.example.com/pong.php` The `backticks`, when run in a shell, will execute that command and return the… Read more »
<?php $raw_header = “http://location/\r\nBadHeader”; # PHP 5.4: $clean_header = explode(“\n”, explode(“\r”, $raw_header))); # PHP 5.3: $no_cr = explode(“\r”, $raw_header); $no_nl = explode(“\n”, $no_cr); $clean_header = $no_nl; unset($no_cr, $no_nl); echo $clean_header;
Use this script to take a photo using the webcam on your computer. It makes use of and requires the installation of mplayer. When it takes pictures, it will take 20 of them, and delete the first 19. I have to do this because my netbook has a really crappy camera, and it takes a… Read more »