Trolling ’round the ‘net

I’m not feeling nauseous enough so I’ll go troll some news sites and see what I find.
Foxnews: “I think the value of life has been really reduced when a person who strangles their child gets less time than you would for killing a pet.” This person is surprised that there are people who value the lives of our pets more than the lives of our children? The spoils of our past 30 years are coming home to roost. I hope everyone enjoys them, because it’s only going to get worse.

Remember that homo sapien plot to take over the world? No need to worry about it. Even if they do manage to take over the world, they’ll squander it because all they want to do is kill each other.

London Telegraph: Israel arrests and holds 100 Palestinians. Be glad that’s all they’re doing. History will look back at today’s Palestinians as the 21st century’s answer to the Nazis. (Just another case of the homo sapiens killing each other for fun and profit.)

Bah. That’s enough for people to talk about. I’m going to bed.

Wiping a disk securely

Sometimes in the course of work, it’s necessary to securely wipe a disk. A drive containing confidential information may require replacement. Assuming you caught the problem before the drive died for good, you can wipe it before sending it back to the manufacturer.
Programs to securely wipe a drive cost money. Sometimes big money. Fortunately, it’s easy to do it with Linux.
Read more

Let the teens and 20somethings rise to expectations

FoxNews ran an editorial about teenagers. Specifically, it was about teenage sex, but for once, someone seems to realize that sex isn’t always just about sex and that teenagers are human beings just like the rest of us.
Author Glenn Harlan Reynolds argues that since society has infantilized teenagers, they’ve sunk to expectations. Given immature activities and no adult responsibilities, it should be no surprise that teenagers smoke and drink and sleep around. They don’t have anything else to do.
Read more

The immoral, despicable “journalism” at the Church of the Nativity

Charlie asked what I, as a trained and sometimes-practicing journalist, think of Caroyln Cole’s work at the Church of the Nativity.
Well, the story linked here hits on precisely why I’m not a full-time journalist slogging words for some magazine full-time and climbing the ladder towards editorship. What usually passes for journalism today can at best be considered advocacy; in the case of what Cole sometimes practices, it’s better described as fraud.
Read more

Pretentious Pontifications: Tennis

Raunche and I took advantage of our extended weekend by playing a gentlemanly game of tennis. I don’t know why people make such a big deal of weekends, extended or otherwise, because they should just become like Raunche and me. Every day is like Saturday for us, since neither of us actually has to get up in the morning and drive, you know, to work or anything.
But I digress so badly you must think this is my evil twin brother writing. Unfortunately I have learned a bad habit or two from David.
Read more

Retro is in, so I’m bringing back some old stuff

I’m adding some old stuff today from this site’s first incarnation, back when it was a series of poorly executed static pages. There’s good stuff and bad stuff, so I’m leaving out some of the bad stuff. The style of the early posts is different. I wasn’t as comfortable writing every day then. But some of the stuff is really, really useful (and the information not really available elsewhere).
So there’ll be weird posts, referring to things that happened long ago, since I enter them 7 at a time, then I go back and edit the dates so they’re correct.

Optimizing Web graphics

Gatermann told me about a piece of freeware he found on one of my favorite sites, tinyapps.org, called JPG Cleaner. It strips out the thumbnails and other metadata that editing programs and digital cameras put in your graphics that isn’t necessary for your Web browser to render them. Sometimes it saves you 20K, and sometimes it saves you 16 bytes. Still, it’s worth doing, because more often than not it saves you something halfway significant.
That’s great but I don’t want to be tied to Windows, so I went looking for a similar Linux program. There isn’t much. All I was able to find was a command-line program, written in 1996, called jpegoptim. I downloaded the source, but didn’t have the headers to compile it. I went digging and found that someone built an RPM for it back in 1997, but Red Hat never officially adopted it. I guess it’s just too special-purpose. The RPM is floating around, I found it on a Japanese site. If that ever goes away, just do a Google search for jpegoptim-1.1-0.i386.rpm.

I used the Debian utility alien to convert the RPM to a Debian package. It’s just a 12K binary, so there’s nothing to installing it. So if you prefer SuSE or TurboLinux or Mandrake or Caldera, it’ll install just fine for you. And Debian users can convert it, no problem.

Jpegoptim actually goes a step further than JPG Cleaner. Aside from discarding all that metadata in the header, its main claim is that it optimizes the Huffman tables that make up the image data itself, reducing the image in size without affecting its quality at all. The difference varies; I ran it on several megabytes’ worth of graphics, and found that on images that still had all those headers, it frequently shaved 20-35K from their size. On images that didn’t have all the extra baggage (including some that I’d optimized with JPG Cleaner), it reduced the file size by another 1.5-3 percent. That’s not a huge amount, but on a 3K image, that’s 40-50 bytes. On a Web page that has lots of small images, those bytes add up. Your modem-based users will notice it.

And Jpegoptim will also let you do the standard JPEG optimization, where you set the file quality to a numeric value between 1 and 100, the higher being the truest to the original. Some image editors don’t let you adjust the quality in a very fine-grained manner. I’ve found that a level of 70 is almost always perfectly acceptable.

So, to try to get something for nothing, change into an image directory and type this:

jpegoptim -t *

And the program will see what it can save you. Don’t worry if you get a negative number; if the “optimized” file ends up actually being bigger, it’ll discard the results.

To lower the quality and potentially save even more, do this:

jpegoptim -m70 -t *

And once again, it’ll tell you what it saves you. (The program always optimizes the Huffman tables, so there’s no need to do multiple steps.) Be sure to eyeball the results if you play with quality, and back up the originals.

Commercial programs that claim to do what these programs do cost anywhere from $50 to $100. This program may be obscure, but that’s criminal. Go get it and take advantage of it.

Also, don’t forget the general rule of file formats. GIF is the most backward-compatible, but it’s encumbered by patents and it’s limited to 256-color images. It’s good for line drawings and cartoons, because it’s a lossless format (it only compresses the data, it doesn’t change it).

PNG is the successor to GIF, sporting better compression and support for 24-color images. Like GIF, it’s lossless, so it’s good for line drawings, cartoons, and photographs that require every detail to be preserved. Unfortunately, not all browsers support PNG.

JPEG has the best compression, because it’s lossy. That means it looks for details that it can discard to make the image compress better. The problem with this is that when you edit JPEGs, especially if you convert them between formats, you’ll run into generation loss. Since JPEG is lossy, line drawings and cartoons generally look really bad in JPEG format. Photographs, which usually have a lot of subtle detail, survive JPEG’s onslaught much better. The advantage of JPEG is the file sizes are much smaller. But you should always examine a JPEG before putting it on the Web; blindly compressing your pictures with high compression settings can lead to hideous results. There’s not much point in squeezing an image down to 1.5K when the result is something no one wants to look at.