[Just a picture]


GET THE HOLY WATER!

That’s not specifically my BioStar M7MIA; but that’s only because I’m a rather forgiving person. This motherboard has the old buggy VIA 686b chip; which renders both PCI and USB entirely unusable. I’m finally getting rid of it; I’ve got a nice ABIT NF7 coming to replace it; I can still use my old kit with it, and eventually upgrade my 5 year old surplus and have a halfway decent machine – I hope!

I’m on a roll this morning; my Bozotic Port has been updated to the 18.02.2004 code base. It now supports SSL, redirection, and still touts CGI, virtual hosts, and the like.

A precompiled binary is available within the source package, as well as a poll() emulation header for compatibility with MacOS 10.2.x.

I know it’s been forever (nearly two years) since I’ve worked on any original compisitions, but I’ve decided to dust off my rusty old fingers and do a simple little remix to see if I could remember.

I present to you, “Dope”, my mini-remix of Jugi’s song for Complex’s 1995 award winning demo music. I’ve killed the horribly long intro and made it a “looper”; it’ll bounce back unto itself ad-nauseum (at least in the native MOD format).

Both an MP3 and a ScreamTracker module are available for download.

When I’ve got a nasty case of insomnia, such as the current time, I like to browse the web and work on small projects – nothing to get me too engrossed, but still, enough to be useful, and have something functional by when I finally slumber.

As previously mentioned, I usually give David Grant’s QuickBlog a view to see what he’s been up to.

I was a bit suprised to see his rehashing of a rather frightful get_ip() function which was trivially re-encoded for PHP4’s superglobals, yet still had fallback code for PHP3.

The biggest problem is, you can’t trust the data given to you from anyone. Especally when it’s a variable in PHP! Thankfully, the $_SERVER superglobals make it a bit more functional, but I still don’t trust them. I’ve rewritten his get_ip function:

= 167772160) && ($lrealip <= 184549375)) || (($lrealip >= -1408237568) && ($lrealip <= -1407188993)) || (($lrealip >= -1062731776) && ($lrealip <= -1062666241)) || ($lrealip == 2130706433)) { $realip = “local”; } return $realip; } } } }

?>

As you can see, the function is a bit quirky that it returns alphanumeric text; I’ve written this to be a ‘poor man’s catch-all’. It will return the data of “local” for a local subnet, “unknown” if it isn’t sure, or the IP of the host.

“But Shawn,” you may inquire, “how do I know if it’s an IP or not?”

Ah, good question! I’ve even got it within the code itself! Here’s a sample snippit that decides if the data is a dotted quad, or plaintext. I’ve tried to break everything down and keep it simple. This demonstration merely attempts to find an IP address and log it to a MySQL database logging a “visitor”. About ten more lines of code and a