July 24, 2005
Articles
No Comments
The flow of spam (”Unsolicited Commercial Email” or “UCE”) into Internet citizen’s email accounts is seemingly endless and boundless. Email users and corporations are forced to use server-side and client-side filters, challenge systems, and other means to protect their server assets from the deluge. There have been various attempts at legislation as well, which want to attack the problem from different angles.
But this is a war. And one of the most effective ways to win a war is through logistics. Cut off the enemy’s ability to wage war. In the case of spammers (and phishers, for that matter) the means to this end are actually available.
» Read the rest …
July 11, 2005
Articles
No Comments
Many algorithms to check if two windows overlap (a very common activity in window system and interface design) rely on doing multiple comparisons of the positions of the sides of the two rectangular areas in question. This is usually fine for most instances, especially in these days of multi-gigahertz desktop PC’s. But sometimes you need to do so many such comparisons that speed becomes the paramount concern. And sometimes you do not have a super fast processor to rely on - such as on small hand-held devices or cell-phones.
The algorithm described here is one I wrote back in 1988 for a graphics workstation product. It relies on some interesting relationships between the sign of the result of subtracting opposite sides of two rectangles. By taking advantage of this, it is possible to write few lines of C code which will compile down to 20 or fewer assembly instructions.
» Read the rest …