Monthly Archives: October 2008
Spoofing a UDP packet in Python
The packets are constructed using the pyip module. The following code doesn’t calculate the UDP checksum, as the checksums that pyip generate don’t appear to be correct. Your system should take care of that. import udp import socket # build … Continue reading
Future proofing strings in PHP
For many characters, UTF-8 encodes characters with multiple bytes because one single byte cannot represent thousands of characters. However, because PHP presently does not support Unicode, the language will consider each byte its own character. If you’ve ever worked with … Continue reading
IntelligentCensor’s nomination
My IntelligentCensor library got nominated for an innovation award on PHPClasses.org. That’s my fourth nomination (out of seven submitted classes), although I still haven’t received first place (my submitted classes tend to not have a mainstream usage). What does it … Continue reading
I'm on Twitter!