Web

HTML forms suck


It didn’t shock me to discover this, but it was one of those things about the web that I hadn’t really played with seriously. Then I started trying to expose all of the parameters for my random web colors page, so people could tinker with the color-generation rules.

Not only did the form add 24K to the page size, it increased the rendering time by about an order of magnitude.

more...

Color combinations for web sites


I’ve stumbled across two interesting tools recently. The first is the Mac application ColorDesigner, which generates random color combinations with lots of tweakable knobs. The second is Cal Henderson’s online color-blindness simulator, designed to show you how your choice of text and background colors will appear to someone with color-deficient vision.

I decided to try to merge the two together into a single web page, using Mason and Cal’s Graphics::ColorDeficiency Perl module. It’s not done yet, but it’s already fun to play with: random web colors.

Right now, the randomizer is hardcoded, but as soon as I get a chance, I’ll be adding a form to expose all of the parameters.

Sanitizing Apache with PF


About 45 minutes elapsed between the moment that I first turned this server on and the arrival of the first virus/worm/hacker probes. It was obvious that most of them were looking for Windows-based web servers, so they were harmless to me.

Still, I like to review the logs occasionally, and the sheer volume of this crap was getting annoying. Later, when I raised munitions.com from the dead, I discovered that it was getting more than 30,000 hits a day for a file containing the word “ok”. Worst of all, as I prepare to restore my photo archives, I know that I can’t afford to pay for the bandwidth while they’re slurped up by every search engine, cache site, obsessive collector, Usenet reposter, and eBay scammer on the planet.

Enter PF, the OpenBSD packet filter.

more...

By their threats shall ye know them


Hey, what’s a web site without fraudulent threats of legal action? There’s a guy out there who has bullied and blustered his way into a business running pay web sites for Playboy models under various names, primarily “Alpha Interactive” (no links provided; after all, my goal here is to convince you to spend your money elsewhere).

This is old news, but I couldn’t resist the urge to yank his chain by reposting his threats and explaining his motive in making them.

more...

trollbridge


Teresa Nielsen Hayden of Making Light has a charming way of dealing with obnoxious commenters: she disemvowels them. This seems to be far more effective than simply trying to delete their comments or ban their IP addresses. She apparently does it by hand, in BBEdit. Bryant liked the idea enough to make a plugin that automatically strips the vowels out of comments coming from a specific set of IP addresses.

I don’t have any comments to deal with at the moment, but the concept amused me, and I wanted to start tinkering with the guts of MT, so I quickly knocked together a plugin that allows you to mark individual entries for disemvoweling. While I was at it, I included another way to molest obnoxious comments.

more...

MTRoundRobin


Simple little MT plugin, created as a generalized alternative to FlipFlop.

Given a list of keywords to be substituted into the template, each call to returns a different item from the list, in order, wrapping back around to the beginning when it hits the end. Examples follow.

more...

“Hey, is this thing on?”


So, after months of benign neglect and minor catastrophes, I’m updating my web sites again. We got the old munitions.com server back intact, I’ve upgraded the machine to OpenBSD 3.3, and I’ve moved this page into Movable Type. I’m even reasonably happy with the layout.

I’ve got lots of abandoned projects to resurrect, the most popular of which is of course my photo archive. I think I still get at least 20,000 hits a day from people who want it back, but the hate mail has tapered off.

Need a cookie? Take a cookie.


So, I just got another notice about a sleazy bastard printing out my photographs and selling them on eBay. Joy. This is the sort of behavior that led me to stop posting large JPEGs a while back.

more...