Monthly Archives: January 2010

Save money AND make your site faster using a CDN

My most pop­u­lar web­site, the Fake Name Gen­er­a­tor, recently ran into two major problems: It was using too many server resources. It wasn’t as fast as I wanted it. To solve these issues, I turned to Sim­pleCDN and their awe­some “mir­ror buck­ets”. Basi­cally you setup a bucket, point it at your base URL (in my case, http://www.fakenamegenerator.com), then [...]
Posted in My Sites, Reviews, Web Dev | Leave a comment

Fix capitalized words in a MySQL table

I got a sup­port request today for the Fake Name Gen­er­a­tor. A vis­i­tor ordered US addresses, and some of the cities came back in all caps and some nor­mal (e.g., FOLSOM and Folsom). After dig­ging into my code, I found that I was check­ing if a city name was in upper­case, and if so I was [...]
Posted in My Sites, Web Dev | Leave a comment

Quick and Easy PHP WHOIS Script

I like to be able to type “whois somedomain.com” in my browser and have it bring up the WHOIS infor­ma­tion. The site I’ve been using has a captcha (annoy­ing) and has got­ten unre­li­able, so I wrote this quick and easy script to pull the full unfor­mat­ted WHOIS data for me: <?php $d = isset($_GET['d']) ? $_GET['d'] [...]
Posted in Web Dev | Leave a comment

Lock a Deadbolt without a Key

I found this fun Instructable today that shows you how to lock a dead­bolt with­out hav­ing the key. I can think of a few sit­u­a­tions where this could come in handy: You are at a friend’s house and they leave you home alone but for­get to give you a key (or they give you the wrong one). [...]
Posted in DIY, Random | Leave a comment

Jumbo Jenga

My friend Joey Novak recently posted about mak­ing some giant Jenga blocks, so I thought I’d give it a shot, too. First, I needed to know what kind of wood to buy. Jenga blocks are 0.57″ x 1″ x 3″ (height x width x length). The eas­i­est wood to get would be either 2×4 (1.5″ x 3.5″) [...]
Posted in DIY | 1 Comment