Category Archives: Personal

Public Service Announcement

If you live and work by your phone And you have indoor pets Do not, under any circumstances, place your phone near and above a large glass of water. We now return you to your regularly scheduled internet

And we’re off

So now back off to the vet to pick up the dog who’s gonna spend most of the next few weeks being MISERABLE because he’s gonna have to be crated a a LOT, wont be able to play with the other dogs at all for a while, and will have to wear a satellite-dish-collar. On [...]

quick update

Well… everything that could go wrong this weekend (outside work) has gone wrong. My replay tv is dying My wifes laptop is dying I have one dog getting out of surgery right now because of a hematoma I have one cat with ringworm One cat got the crap beat up out of her in a [...]

Off to the vets office

Actually it’s an eye specialist. My poor Bella’s eye (which has a detached lens and possibly glochoma (sp?)) has really been acting up the last several days. Wish her (and my wallet) luck!

When simple plans attack!

Well at the zoo we lost a pair of glasses, so off to lensecrafters… no eye exam in 3 years… so eye exam… 2 hors for glasses… and WHAM a day thats supposed to end at 4:00pm ends at 9:00pm… sigh… we now return you to your regularly scheduled blogging.

nasty regex

I’m putting this here for documentation purposes… Because getting it right was a very frustrating ordeal (I’d never had to match both positively and negatively in the same regex before) /^(?(?!.+\.php)^.*(\.jpg|\.jpeg|\.gif|\.ico|\.png)|^$)/s what this is, essentially, saying is “true if the string doesnt match ^.+\.php and the string matches ^.*(\.jpg|\.jpeg|\.gif|\.ico|\.png)” The last bit: “|^$” never returns [...]

All things being equal, the simplest solution tends to be the best one.

Occam’s razor strikes again! Tonight we ran into an interesting problem. A web service – with a very simple time-elapsed check – started reporting negatives… Racking our brain, pouring over the code, produced nothing. It was as if the clock were jumping around randomly! No! On a whim Barry checked it and the clock was, [...]

PHP CLI Status Indicator

Most times when people write command line scripts they just let the output flow down the screen as a status indicator, or just figure “it’s done when it’s done” But sometimes it would be nice to have a simple clean status indicator, allowing you to monitor progress and gauge time-to-completion. This is actually very easy [...]

Backgrounding Chained Commands in Bash

Sometimes it’s desirable to have a chain of commands backgrounded so that a multi-step process can be run in parallel. And often times its not desirable to have yet another script made to do a simple task that doesn’t warrant the added complexity. An example of this would be running backups in parallel. The script [...]

You’re only ever done debugging for now.

I’m the kinda guy who owns up to my mistakes. I also strive to be the kinda guy who learns from them.  So I figured I would pass this on as some good advice from a guy who’s “screwed that pooch” There was a project on which I was working, and that project sent me [...]