Archived material Access restricted Article
Rantburg

Today's Front Page   View All of Mon 12/22/2008 View Sun 12/21/2008 View Sat 12/20/2008 View Fri 12/19/2008 View Thu 12/18/2008 View Wed 12/17/2008 View Tue 12/16/2008
1
2008-12-22 
Good morning
Posted by Fred 2008-12-22 00:00|| || Front Page|| [2 views ]  Top

#1 
Posted by AllenWZ 2008-12-22 06:29||   2008-12-22 06:29|| Front Page Top

#2 [Dickweed's spam deleted]
Posted by IONeabHaiguique 2008-12-22 08:43||   2008-12-22 08:43|| Front Page Top

#3 I'm working on a filter that will do away with our daily vowel movements. I'm going to display probability of spam in comments for a little while to make sure I've got it calibrated right.
Posted by Fred 2008-12-22 09:46||   2008-12-22 09:46|| Front Page Top

#4 That seems to have been easy enough. I've taken the report on spam probability off the comments. Vowel movements should now self-destruct without bothering us, barring typos.
Posted by Fred 2008-12-22 10:17||   2008-12-22 10:17|| Front Page Top

#5 We love you Fred!
Posted by DarthVader 2008-12-22 10:25||   2008-12-22 10:25|| Front Page Top

#6 eee eye eee eye ...oh.
Posted by Seafarious 2008-12-22 10:44||   2008-12-22 10:44|| Front Page Top

#7 Care to share your code with us? I always find Charles' programming tutorials on LGF very enlightening... it would be great to get some tips from you too.
Posted by Scooter McGruder 2008-12-22 10:57||   2008-12-22 10:57|| Front Page Top

#8 It's just baby code. I look at the number of non-ASCII characters:

function spamalize($x)
{
$len=strlen($x);
for($i=0;$i < strlen($x)-1;$i++){
$c=ord($x[$i]);
if($c > 128)
$spamlength++;
}
$c=ord($x[$i]);
if($c > 128)
$spamlength++;
$spampercent=$spamlength/$len;
return($spampercent);
}

The actual percentage I use for the cutoff should remain a secret.
Posted by Fred 2008-12-22 11:17||   2008-12-22 11:17|| Front Page Top

#9 Cute girl. Kinda ugly dog, tho.
Posted by SteveS 2008-12-22 11:20||   2008-12-22 11:20|| Front Page Top

#10 
Posted by GolfBravoUSMC 2008-12-22 11:23||   2008-12-22 11:23|| Front Page Top

#11 I love the smell of fried spam in the morning. Smells like...victory.
Posted by Abu Uluque 2008-12-22 12:05||   2008-12-22 12:05|| Front Page Top

#12 Anita, I wish you hadn't taken it so hard but I had to tell you that was not a dog.



Posted by GolfBravoUSMC 2008-12-22 12:07||   2008-12-22 12:07|| Front Page Top

#13 Clark Gable assures me this time it's a real dog.



Posted by GolfBravoUSMC 2008-12-22 12:26||   2008-12-22 12:26|| Front Page Top

#14 So, Anita Page is the one that instigated the "pig as pet" scenario. Can't blame her. My pig, Emily, was an extremely affectionate pet, and a wonderful friend. Also, at 700 pounds and seven feet long, a tremendous deterrent to those that might have dreamed of entering our property without permission. A dog has to bite to get your attention. A 700 pound pig just hits you once, and you know you're not where you should be.

Thanks, Anita!
Posted by Old Patriot">Old Patriot  2008-12-22 13:02|| http://oldpatriot.blogspot.com/]">[http://oldpatriot.blogspot.com/]  2008-12-22 13:02|| Front Page Top

#15 A friend has a small herd of mule footed pigs, and keeps them loose around the yard. Some of these get quite large, though 700 pounds might be pushing it. Smart beggars, and not below intimidating the unwary. Great watch dogs pigs.
Posted by Whiskey Mike 2008-12-22 13:49||   2008-12-22 13:49|| Front Page Top

#16 [On this spot at 16:50, dudgeEdgeda had a vowel movement. Rantburg software has
cleaned and disinfected the site of the accident. Have a nice day.]
Posted by dudgeEdgeda 2008-12-22 16:50||   2008-12-22 16:50|| Front Page Top

#17 Wow, that is nifty
Posted by Aaron A. Aardvark 2008-12-22 16:54||   2008-12-22 16:54|| Front Page Top

#18 Worked first try. I think I'll consume adult beverages this evening in celebration.
Posted by Fred 2008-12-22 17:06||   2008-12-22 17:06|| Front Page Top

#19 Er 'ye gonna keep count Fred?
Posted by .5MT 2008-12-22 17:39|| www.cybernations.net]">[www.cybernations.net]  2008-12-22 17:39|| Front Page Top

#20 Not to pick nits, but I see a stray line break in there....
Posted by Scooter McGruder 2008-12-22 18:17||   2008-12-22 18:17|| Front Page Top

#21 It won't be there for the next one...
Posted by Fred 2008-12-22 19:19||   2008-12-22 19:19|| Front Page Top

#22 You might find simpler to avoid the loop, Fred. Do something like

$nonAlphaNumeric = preg_replace("/[A-Za-z0-9 ]/", "", $x);
$nBadChars = strlen($nonAlphaNumeric);
$nChars = strlen($x);

Compare $nBadChars to $nChars however you wish. The regex in preg_replace just replaces all the ASCII letters and numbers of $x with nothing, thus deleting them, and storing the result in $nonAlphaNumeric.
Posted by Eric Jablow">Eric Jablow  2008-12-22 21:57||   2008-12-22 21:57|| Front Page Top

#23 [On this spot at 22:09, Shittique had a vowel movement. Rantburg software has cleaned and disinfected the site of the accident. Have a nice day.]
Posted by Shittique 2008-12-22 22:09||   2008-12-22 22:09|| Front Page Top

23:45 JosephMendiola
23:41 JosephMendiola
23:40 tipover
23:31 CrazyFool
23:30 tipover
23:28 JosephMendiola
23:22 JosephMendiola
23:20 DarthVader
23:15 DarthVader
23:14 JosephMendiola
23:10 JosephMendiola
23:10 Bright Pebbles
23:09 JosephMendiola
23:02 JosephMendiola
23:00 bigjim-ky
22:58 JosephMendiola
22:57 JosephMendiola
22:57 john frum
22:53 JosephMendiola
22:50 USN,Ret.
22:48 USN,Ret.
22:44 JosephMendiola
22:40 rjschwarz
22:38 rjschwarz









Paypal:
Google
Search WWW Search rantburg.com