Tag Archives: news

Ham Radio, Weight Loss, and other updates

Man, life has been too busy to keep this as up to date as I really want to! Sorry for that, but here’s another update for everyone. First, since my last post, I have also passed my Extra class ham radio license test, and received my vanity callsign. I’m now N7TOX, which I picked because [...]

TweeterDiet.com and CakePHP

First things first. As of 11:45 PM last night, my latest project launched. Go take a look at TweeterDiet.com Go ahead. I’ll still be here when you get back. Yes, I know it’s very minimal right now. I’ll be remedying that over the next week or so, by adding in some sample screen-shots and more [...]

Still Alive (But not an evil computer)

Been a while since my last update, but I’m still alive. I won NaNoWriMo again this year, and had an absolute blast being ML. I have a great group of writers here. I’m also still planning a major overhaul of BayesSpam, but between NaNoWriMo, and my laptop dying, I’ve had several setbacks. But I should [...]

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]; } [...]