Surmounting the Savage Seg Fault

Segmentation faults can be particularly maddening as your LAMP programs grind unceremoniously to a halt with this single message in /var/log/messages: [Nov 08 17:38:07 2014] [notice] child pid 2027 exit signal Segmentation fault (11), possible…

Responsive image delivery

The web is being overtaken by mobile users and those smartphone users benefit from faster loading websites (which can be made faster by serving up smaller/scaled images.) But, how? step 1- take high res source…

Locked out of PostgreSQL

Maybe you’re running some DDL SQL on your PostgreSQL or modifying some stored procs, and you don’t want any slowdowns or locks because of users running selects against the DB. You can stop new connections…

Amazon AWS EC2 Workshop for Beginners

If you’d like to get a free Amazon EC2 instance up and running in five minutes, click through this slideshow. Instructions for PCs and Macs. Alternatively, you can download the PDF: Amazon AWS Workshop –…

Shell Script Reboot of all Polycom VOIP Phones on a network

Here’s a quick BASH script to loop through a list of IP addresses and reboot the phones at each of those phones at those IP addresses: #!/bin/bash IPS='192.168.1.20 192.168.1.21 292.168.1.22' for IP_ADDRESS in ${IPS}; do…

implementing itoa

Let’s talk itoa. stdlib provides that function, but itoa() is non-standard (it is not defined in ANSI-C and is not part of C++), so we can instead use sprintf(target_string,”%d”,source_int) or (to be safe from overflows)…

DIY Goal Zero Portable Solar Battery Pack – PROTOTYPE 1

Sometimes you need to charge your cell phone in the wilderness, I guess, so you can play Angry Birds. And that’s where Goal Zero comes into play. I’ve tested Goal Zero’s line of portable solar…

Connecting your Task Tracker to Google Spreadsheet (via SOAP API)

Using a Google Spreadsheet probably isn’t the best way to to manage your project tasks, but for those of you who use this method, now with an google script API call (SOAP or otherwise) to…

Quick Tip: How to recover when you can’t SSH into your Amazon EC2 instance

Cloud computing is awesome until there is an error on booting and the SSH service doesn’t load for you. In that case, there isn’t an out-of-band console(ipmi/DRAC) to let you fix the issue like you’d…

Pausing Pingdom (for scheduled maintenance) via their API

pingdom.com is great for monitoring websites and for exposing that data to your customers. But what if you have scheduled maintenance and want to pause the checking, say weekly? Pingdom fails you!* Fortunately, they have…