Category: php

for loops

I read this over at TheDailyWTF and promptly had to clean coffee off of my monitor. This has to be the greatest for loop ever written!

$i = 0;
for (;;) {
$i++;
...
if ($i >= 15) break;
}

Now go clean whatever beverage you were drinking off of your monitor, and don’t blame me! I warned you!

(and for those non-coders reading, the entire thing can be replaced with for($i=0 ; $i < 15 ; $i++) { ... })

PGP is 15 years old

Happy Birthday, PGP!

Wow! 15 years! It seems like only yesterday that I discovered PGP and spent countless hours pouring over the documentation to learn all of the command-line options that were required to get things going. At the time, I was totally amazed at how few of my fellow computer geeks could get a handle on using PGP. After all, Windows wasn’t really that popular until 95 came out. Almost everyone who used IBM-compatible PCs used DOS, or at least had to know how to use DOS in order to set up their menu program of choice.

One thing I remember doing, probably not in ’91 but certainly not many years later, was setting up batch files to use with my mail reader of choice at the time, OLX, so that I could set it to use these batch files as an external editor in order to either sign or encrypt messages for posting on the local BBSs. I’m sure that if I dig around enough, I’ll be able to find the 3 1/2 inch floppy that contains my original public and private keyrings. I even remember my original passphrase! Not only that, but I remember what I changed the passphrase to the first time I ever changed it.

Vacation!

Finally, I get a week off from work. I have been coding in PHP for several months now, and sometimes you just need to step away from it. So, I’m taking this week so that when I get back, I’ll be more productive than ever 🙂 Everyone have a great week! And happy Independence Day! 🙂