Category Archives: Uncategorized

Quick Update

A few things to cover in this update, but I’ll keep it short, and try to have something more substantial for later this week. First, I’ve hit 25% of my weight loss goal! As of this morning, I’ve lost 25.1 pounds. My trend weight is at 283.9, and heading down at a very steady pace. [...]

DRM – When will they give up?

Well, it’s happened yet again. Ubisoft came up with a grand new copy protection scheme that was going to stop pirates in their tracks. It would be the holy grail that would make it so only paying customers could use the game. If they had an internet connection. Every time they wanted to play the [...]

Hacker’s Diet – Take 2

I’ve tried the Hacker’s Diet once before in the past, and did fairly well, but eventually lost motivation and just stopped. But this year, my employer has offered us what amounts to a free gym membership, and I took the extra step of paying for a trainer. So I’m taking the opportunity to start the [...]

New Security Plans

Due to repeated problems with hackers on servers at my day job, I’ve developed a new security plan that I’m going to share in a second. First, a little background, and then I’ll list my requirements that I used to develop the plan. First, we have no official system administrator, and we have 15 or [...]

Tokenizing a string in php

I decided today to resume development of my BayesSpam plugin for SquirrelMail. My first priority was speeding up the parsing of messages. My first step was a simple one. I was doing this: while (preg_match(’/([a-zA-Z][a-zA-Z-_']{0,44})[,."')?!:;/&]{0,5}([ tnr]|$)/’,$string,$matches)) { $string = preg_replace(‘/([a-zA-Z][a-zA-Z-_']{0,44})[,."')?!:;/&]{0,5}([ tnr]|$)/’,’ ‘,$string,1); if (isset($matches[1]) && $matches[1] && strlen($matches[1]) >= 3) $return[] = $token_type.’: ‘.$matches[1]; } [...]