checkmailquota

The cPanel account management system used by Birdhouse Hosting has proved to be very complete (though not without its glitches and surprises), and its tools have saved me a ton of work. It’s been nice to not have to write a script for every new piece of functionality needed. But was shocked recently to discover that cPanel doesn’t send alert messages to POP account holders when mailboxes are nearing quota. Started looking for something to fit the bill, didn’t find anything that did the job neatly, so wrote a shell script for cPanel systems.

checkmailquota loops through the home dirs and, for each home, loops through hosted domains. For each domain, loops through mailboxes, recording byte sizes. Compares these sizes to what’s listed in the quota file for that mailbox. If usage is within xx% of quota, sends a warning message to that mailbox. Also sends a summary of accounts near quota to postmaster.

It seems bizarre to me that a script like this, or equivalent functionality, isn’t built into cPanel (at version 10 no less!)

Music: Can :: Ethnological Forgery Series No. 7

Misc. Notes on Cached Content

Analysis at WebProNews on the legality of Google’s Print for Libraries project, in which Google is intending to pick up where Project Gutenberg leaves off – not only reproducing full text of public domain works, but also excerpts of copyrighted material.

The entire text of books considered to be public domain and out of copyright will be scanned and made available online. For copyrighted material, the books will be scanned, and snippets will be made available structured around search terms with links to where the book can be checked out or purchased.

Continue reading “Misc. Notes on Cached Content”

How to Write a Better Weblog

Very nice piece at A List Apart on techniques for writing a weblog people will actually read. Focuses on things you should do, rather than things you shouldn’t (why are viable suggestions so much more rare than lists of things to avoid?)

Anything makes a good subject, as long as you take your time and crystallize the details, tying them together and actually telling a story, rather than offering a simple list of facts. Do readers really want to know how miserable you are? Yes. But they’re going to want details, the precise odor of your room, why you haven’t showered in a week, or how exactly somebody broke your heart. At the same time, you don’t want to over–explain yourself. Understatement can be thunderous, or humorous, or heartbreaking. Or all three.

Music: Pram :: Things Left On The Pavement

Disc vs. Disk

For the terminally curious, Apple has a knowledgebase article: What’s the difference between a “disc” and a “disk”?

Short story: Discs are optical, disks are magnetic. But you knew that already, right? And:

Although both discs and disks are circular, disks are usually sealed inside a metal or plastic casing (often, a disk and its enclosing mechanism are collectively known as a “hard drive”).

Absent from the article is any mention of how it came to pass that Apple gets to speak so authoritatively on the subject. Granted, this seems to be standard tech lore, but it’s weird to see the KB regarding itself as if a dictionary.

Music: Duke Ellington & John Coltrane :: In A Sentimental Mood

Like Skis

The other morning Miles and I awoke to find cat puke on the floor. He promptly slipped in a pile and landed on his can, seemed absolutely delighted. “Daddy, I used the kitty cat throw-up like skis!”

Last week he popped up from his bed and ran into the bathroom saying something about a badger. I came in to help look for said mammal. “Daddy, we have a badger in our house, I saw it, it was in my room but then it went into the bathroom, but I didn’t think we had a badger, but now we do.”

Today he got a toy steam roller named Rolly (from Bob the Builder). Played with it all day, talked to it in the car on our way to the lake. When I was taking him out of the car, he told me, “Daddy, Rolly is my best friend!” So sweet, I thought. Three minutes later, we arrived at the shore of the lake. Without hesitation, Miles hucked Rolly as hard as he could out into the water, where he promptly sank to the bottom of the briney pond. So much for best friends (Rolly was later successfully rescued).

Music: Blo :: Chant To Mother Earth

Referrer Madness

Warning: geek post.

Just solved one of the more puzzling web mysteries over which I’ve had the pleasure to tear my hair out over the years. This one was a doozy, but also kind of fascinating, if you swing that way.

Over the past 36 hours, have been corresponding with a reader of John Battelle’s SearchBlog who was unable to post comments to that site. Every time he clicked Submit, his browser was referred to a PHP Freaks page describing the REMOTE_ADDR environment variable. WTF? I was not able to duplicate the behavior in any browser, and SearchBlog gets dozens of successful comments per day. The reader’s IP address was not in any block or filter in use, and we simply didn’t have any plugin or configuration in place that would redirect commenters to an external site. What in the world could cause this user to be redirected anywhere, let alone to a site completely unrelated to anything on SearchBlog? And why couldn’t I reproduce the behavior?
Continue reading “Referrer Madness”

Vada Hastings: 1902-2005

Received the call tonight I’ve been expecting for 15 years: At 103, Grandma Hastings has passed away. My last remaining grandparent, Vada was born in Castena, Iowa more than a century ago, 100 years before my son. A schoolteacher who lived through the Great Depression, the popularization of cars, radio, television, the internet, two world wars, men walking on the moon, and disco, Vada was the mother of seven children, steadfastly unreligious and politically neutral, a good samaritan, a lifelong gardener, a masterful embroiderer, famous for Sunday waffles and the most amazing rhubarb pie you ever tasted (always homegrown and lovingly baked). Wife of a boxer and carpenter, never allowed to get a driver’s license or own a pet, unflinching in the face of adversity, never had a harsh word for anyone. In retrospect, she was a Classic American Grandmother, though I’ve never identified her that way before. She was just plain old Grandma to us.

Vada stayed healthy and alert until her late 90s. Only in recent years did she become bedridden, and begin to lose her eyesight and hearing. Every year for the last two decades, the refrain has been “Better come to Grandma’s birthday – it could be her last.” But it never was. She never seemed to get sick, never suffered any of the ailments common to such advanced age. She just. Slowed. Down. And eventually, inevitably, faded to zero, winked out, as all humans do, in one way or another.

I did a video interview with her in 2000. Now wanting to dig that up, hear her once again reflecting on her amazing century. May we all have such a ride.

Want FEMA Aid? Use IE6

Talk about kicking ’em while they’re down… The administration’s mind-numbing obliviousness in responding to Katrina extends all the way down to its web developers and their managers. Turns out you can’t even apply for FEMA aid online unless running Internet Explorer 6 under Windows.

…people using Macintosh or Linux computers are unable to file a claim online — although they can do so by calling the emergency agency by phone. A statement online says, “If you would like to apply for Federal Disaster Assistance by telephone, you can contact us at 1-800-621-FEMA (3362) or for the hearing/speech impaired at TTY: 1-800-462-7585. The current hours and days of operation are 24 hours per day 7 days per week. Currently the lines are quite congested and the best time to call is 2 a.m. to 6 a.m. EDT.

I suppose it’s not so bad to ask people to call in the middle of the night, since their lives are in chaos anyway. This is right in step with the copyright office’s recent move to limit applicants’ choice of browsers.

The bonus fallout from this approach is that a lot of people will get the false impression that IE must be a better browser, or that it can do important things that other browsers can’t. The reality is that the developers are simply working with blinders on. It’s not hard to build cross-platform web applications — there are millions of them out there, and nothing technologically makes FEMA or copyright applications easier to program for IE. It’s an arrogant, discriminatory — and in this case potentially dangerous — “one ring to rule them all” mentality.

Imagine the outrage if government offices decided only to help Christians, or caucasians, or cell phone users, or SUV drivers.

Music: Henry Threadgill :: Official Silence

Remodel Status #5

Setbacks.

The light we selected for the bathroom originally arrived scratched, and had to be sent back. The lighting store promptly lost the order, and it took weeks to get a replacement. Finally got that installed, only to discover it was too dim, even with max wattage fluorescent bulbs. I had had reservations about its brightness when we first saw it near the beginning of summer, but was assured that our senses were being thrown by all the other lights in the store. Nope. Should have trusted first instinct. I also hadn’t had a good feeling about the color temperature of fluorescents. Even with warmest available tube type, the light feels cold. So after everything, the “Forecast” went back to the store and we went back to the drawing board, focused on glass and halogen this time.

Yesterday finally cleared time to install the tub/shower fixture set. Halfway through reading the directions, the “should have been obvious” dawned on me – you can’t install a full shower fixture set without ripping existing tile and backer board off the wall — there’s no way to connect supply pipes to the pressure regulator unless you can get your hands inside the wall. I think I had approached this problem like most plumbing — thought that I could just install new handle, spout, and showerhead over some kind of standard valve. But it doesn’t work that way. If you don’t want to rip up the wall, you can buy just a “trim kit” to change the look of an existing set (thanks baald), but of course the range of trim kits available for your existing valve is much more limited. Now grappling with whether to go for it and rip out some shower wall, or live with a lesser choice. At this point, very eager to just have the job over and done with. But it would also suck to spend all summer on a project like this and have such a visible detail stuck in the 80s.

Music: Japan :: Ghosts