For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > May 2007 > OT : filtering the aioe spam









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author OT : filtering the aioe spam
Schraalhans Keukenmeester

2007-05-31, 4:00 am

Has anyone got a good filter for filtering out those idiotic
nonsense replies that seem to be hitting this ng all of a sudden?

I considered filtering on message-id: 'aioe' but I noticed quite a few
legit people also use the free service as well.

I am using pan btw, so if someone has got a pan-specific filter I could
use (be it regex or other) I'd be delighted. SLNR regex is a different
flavour isn't it?


--
Schraalhans Keukenmeester - schraalhans@the.spamtrapexample.nl
[Remove the lowercase part of Spamtrap to send me a message]

"strcmp('apples','oranges') is -1"

Jerry Stuckle

2007-05-31, 7:59 am

Schraalhans Keukenmeester wrote:
> Has anyone got a good filter for filtering out those idiotic
> nonsense replies that seem to be hitting this ng all of a sudden?
>
> I considered filtering on message-id: 'aioe' but I noticed quite a few
> legit people also use the free service as well.
>
> I am using pan btw, so if someone has got a pan-specific filter I could
> use (be it regex or other) I'd be delighted. SLNR regex is a different
> flavour isn't it?
>
>


Just ignore him and he'll go away. Just some script kiddie trying to
get a response from the group members. No response - no pleasure.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Toby A Inkster

2007-05-31, 7:59 am

Schraalhans Keukenmeester wrote:

> "strcmp('apples','oranges') is -1"


Technically, PHP doesn't guarantee this -- just that the return value will
be less than 0. It could be -42.

--
Toby A Inkster BSc (Hons) ARCS
[G of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 96 days, 18:48.]

Non-Intuitive Surnames
http://tobyinkster.co.uk/blog/2007/...itive-surnames/
Schraalhans Keukenmeester

2007-05-31, 7:00 pm

At Thu, 31 May 2007 12:08:11 +0100, Toby A Inkster let h(is|er) monkeys
type:

> Schraalhans Keukenmeester wrote:
>
>
> Technically, PHP doesn't guarantee this -- just that the return value will
> be less than 0. It could be -42.


You are completely right Toby. Which makes me wonder why there's such a
loose definition of the retval, and what is actually stored in it inside
the func.

Sig fixed anyways.
;-)

--
Schraalhans Keukenmeester - schraalhans@the.spamtrapexample.nl
[Remove the lowercase part of Spamtrap to send me a message]

"strcmp('apples','oranges') < 0"

Rami Elomaa

2007-05-31, 7:00 pm

Schraalhans Keukenmeester kirjoitti:

> Which makes me wonder why there's such a
> loose definition of the retval, and what is actually stored in it inside
> the func.


Perhaps in a future version of php they want to make it return some sort
of number to indicate how much they are different. Or maybe they find
out that returning -99999 is faster than -1... Perhaps in the future
strcmp('abc','abd') might return 1, because only one letter is
different, but strcmp('abc','xyz') would return something completely
different. If they keep the definition loose, they can improve the code
in the future, without breaking backwards compatibility. This means that
a script that now tests if(strcmp($foo,$bar)<0) works now for -1, but it
will also work for -42. It's all about reserving the possibility for
future improvements.

--
Rami.Elomaa@gmail.com

"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
Jerry Stuckle

2007-05-31, 7:00 pm

Schraalhans Keukenmeester wrote:
> At Thu, 31 May 2007 12:08:11 +0100, Toby A Inkster let h(is|er) monkeys
> type:
>
>
> You are completely right Toby. Which makes me wonder why there's such a
> loose definition of the retval, and what is actually stored in it inside
> the func.
>
> Sig fixed anyways.
> ;-)
>


I suspect this goes back to the C strcmp, which has the same definition.
Some C compilers return exactly +1, -1 or 0. Others return the
numeric difference between the two. The latter is slightly faster in
machine code.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
gosha bine

2007-05-31, 7:00 pm

On 31.05.2007 15:12 Schraalhans Keukenmeester wrote:
> At Thu, 31 May 2007 12:08:11 +0100, Toby A Inkster let h(is|er) monkeys
> type:
>
>
> You are completely right Toby. Which makes me wonder why there's such a
> loose definition of the retval, and what is actually stored in it inside
> the func.
>
> Sig fixed anyways.
> ;-)
>


Php uses "memcmp" (in non-unicode mode) which is defined in standard as
returning positive, negative or zero, without details.

http://www.opengroup.org/onlinepubs...ons/memcmp.html

php function (quite funny one, BTW)

http://lxr.php.net/source/ZendEngin...perators.c#2505



--
gosha bine

extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com