Tidbits @ Kassemi

A collection of opinions, thoughts, tricks and misc. information.

Sunday, August 27, 2006

 

To control structures: stop chaning!

**Growl**

Just got a little peeved today. I'm picking up Ruby for my job, and as I go through the online Ruby book I come across the control structures. Standard if/else if/else statements... And Ruby's just happens to be:


if something
do
elsif something
do
else
do
end


Now, these are commands that are issued hundreds of times a day by programmers everywhere. Actually having to THINK about how to do your control structures will take valuable time away from placing that concept into code... Why the heck can't we keep certain things standard?

C/C++/Javascript:


if(something){
do;
}else if(something){
do;
}else{
do;
}


Python:

if something:
do
elif something:
do
else:
do


Okay. Shame on you python and ruby. The short cuts mean less effort typing, but much more effort for those of us (most of us) who have to code between languages daily. Ah. Daily rant.

Good day,
James

Thursday, August 24, 2006

 

A cocky little spammer.

I've gotten a load of these spams recently, all of which contain an image which seems
designed to evade some kind of spam-detection OCR...



I can do a bit more research, but right now I don't really have the time. What the hell is the purpose of doing this? Does current spam protection actually scan each image? How many of us have anything installed that's not just a simple bayesian-based detection scheme? Where can
I get a hold of it? And wouldn't adding the distortions to that image take a little too much time that the spammer should know to avoid (Read my blog. I know about dynamic image creation and the time it takes, by the way).

I should probably add the following text was attached in an effort to bypass it:

"
your meds directly from the manufacturer,
see attach for details
followed Commander Alphamega out, leaving Floyd prisoner in the chair.
the seconds to doomsday.

"

So, as is pretty obvious, this was flagged immediately. Probably a combo of the meds, manufacturer and length of the message... But wow.

Monday, August 07, 2006

 

...

who are the ones with the __influence?

Archives

August 2005   September 2005   October 2005   November 2005   December 2005   January 2006   February 2006   March 2006   April 2006   June 2006   July 2006   August 2006   September 2006   October 2006   November 2006  

This page is powered by Blogger. Isn't yours?