Rails: Light Goes On

Started stepping through OnLAMP’s Ruby on Rails tutorial this evening. A lot of foreign concepts — brave new world compared to PHP development. Then, suddenly, on page 3, I added a field to my database and wham! — that field was added to all relevant pages of my application. A text entry field for the edit, create, and update pages, and an appropriate column on the display pages. Number of lines of code added to the application: Zero the Hero. Change that field’s position in the database table, and its placement throughout the application changes automatically. The application automagically models itself after the form of the database. The dataset is the model for the application.

Granted, we’re just talking about the scaffolding here, but when I stopped to think of the number of files I need to modify in a PHP application to get the same effect (and how many times I’ve needed to wheedle through exactly that kind of repetitive work), just had to roll my chair back from the desk and take a deep breath. This has some pretty stunning ramifications.

Also amazing how much mileage Rails gets out of simple naming conventions. Name a model class Recipe and it will automatically map to a corresponding database “recipes” (the pluralization translation happens automatically). Stick to the conventions, and the need to write database CRUD (create, read, update, delete) code goes away. And elegant URLs are totally automatic too.

Newbie steps, but all of a sudden I’m “getting” what all the fuss is about.

Music: Albert Ayler :: Ghosts

Who Gets No Spam?

Lebkowsky posts about his mostly-rosy transition from Outlook to Thunderbird, but wonders why the spam controls aren’t more robust. “… and though the junk mail filters are clearly catching a large percentage of the umpty hundreds of spams that fall into my mail bucket every day, there’s a bunch more that the filters miss.”

What I don’t get is why people are still dealing with daily buckets of spam on the client side at all. It’s been years since most mail hosts began offering excellent server-side spam handling (Birdhouse included). I’ve found the combination of SpamAssassin + ClamAV + RulesDuJour to be tremendously effective. And don’t forget to disable your “catch-all address — probably the most powerful single spam magnet you can have. After months of not landing a single false positive, I finally stopped using a server-side “Junk box” for monitoring at all – now I just set my spam threshold to 2.5 and let the systems delete spam before it ever hits my server-side mailbox.

Result: About 90% of the mail bound for my addresses is discarded without ever being seen by a human or handled by a mail client. What finally slips through the net is a grand total of about 3-5 spams a day.

On the TWiT podcast, John Dvorak gets teased regularly — by industry experts, no less — for his claim “I get no spam.” What’s so outlandish about that? If you’re still getting spam in your mail client, you probably just need to turn on the controls your mail host probably already has set up for you. And if your mail host doesn’t offer server-side spam controls, find one that does.

Music: Half Man Half Biscuit :: Bottleneck at Capel Curig

Can’t Win

For years, one of the most common complaints about The Archive was that the layout was frames based. I’ve always been aware of the problems that frames present, but felt that the nature of the data being presented lent itself so well to a frames layout that I was willing to accept the consequences, even though advertisers pay less for impressions on a framed site. Still, getting rid of them was one of the big design goals of the new site, and I felt I had accomplished that pretty well.

Now that I’ve finally gotten that particular monkey off my back, guess what the most common complaint about the new site is? “Where did the frames go?” “I hate the new layout!” “This is much harder to navigate than the old site!” Sigh.

Now, to be fair, these commenters have raised a valid point: It’s no longer possible to quickly access all of the mishearances of a particular song, or all by a particular artist. Without the frames, you have to click your back button to return to the listing. And the javascript list collapser I’m using doesn’t remember which sublist you had open when you left the previous page. So these recent comments, in a way, are validation of the very reasons I used a frames layout to begin with.

During development of the new site, I was so focused on the voting system that I did almost all of my test browsing via the Vote button. Had not even considered trying to consume the site in such an orderly fashion. But one commenter had a great suggestion: Why not include a mini-list on every lyrics page containing all related songs and artists? </me smacks forehead>. Of course. Why didn’t I think of that eight years ago? Hey, that’s why it’s called a public beta. Will work on that next week.

Music: Smog :: Hit the Ground Running

How To Wake A Zombie

For the past few months, I’ve been spending nearly every free late-night minute working (finally) to rebuild The Archive of Misheard Lyrics from the ground up. The site had become very long in the tooth, and a total design embarrassment. Not to mention the fact that I’ve done virtually zero work to maintain the database itself over the past five years (and am now sitting on more than 60,000 unprocessed submissions!)

The idea was not to mention a word before the site was baked and ready to come out of the oven. Then, last night, received email from an old friend saying that kissthisguy had been linked to in a story on Slashdot. Argh! Why couldn’t they have waited two more weeks? Timing couldn’t have been worse: Had to teach a class in five minutes, then race home, wolf dinner, and attend a 2-hour meeting at the pre-school. Think fast.
Continue reading “How To Wake A Zombie”

Explorer Destroyer

Explorer Destroyer offers a set of scripts webmasters can install to encourage their readers to switch from MSIE to Firefox… and make some extra coin in the process.

Get this tool for switching people from IE to Firefox. For each person you switch, Google gives you $1, Microsoft loses marketshare, and an angel gets its wings.

The goal: To get your site’s traffic down to less than 50% IE users — which is a pretty lofty goal.

Stats 1105 FWIW, browser stats for all of birdhouse.org for November (includes this blog and birdhouse classic; not sites hosted by Birdhouse Hosting). Currently at 59% MSIE, which is surprisingly close to the goal. Not sure about installing the actual script though… thinking about it. If I do, it will definitely be in “Gentle Encouragement” mode.

The outstanding question for me is, where are all these dollar bills coming from? Is Google really offering $1 to switchers? And what evidence do they have that anyone has actually switched? Had trouble digging up real information on this, save a small mention on Google’s support site: “AdSense publishers can generate earnings by referring users to Firefox – just follow these instructions, being sure to select Firefox as the product.” Slashdot story here.

Thanks mneptok

Music: Ray Brown :: Jim

Free Eggs

Once upon a time I wrote a note to customer service at Albertson’s (grocery store) complaining that they didn’t offer a single brand of eggs in a non-styrofoam carton, and provided them with some information about the environmental effects of polystyrene in landfills. Two weeks later I received from Albertson’s a computer-generated form response thanking me for my “recent correspondence.” Included in the envelope was a coupon… for a free carton of eggs in a styrofoam carton. Their little way of connecting with customers and assuring me that my voice had been heard.

Two days ago I wrote to customer service at gap.com complaining about the fact that if you visit their site with Safari, you get kicked out with a message: “We’re sorry, but we do not support the version of the browser you are using.” I provided some information on Safari’s excellent standards compliance ratings, and asked “If you can’t make your site work with Safari, how can you make it work with anything?” I also noted that, yes, I could fire up Firefox and use that instead, but that I refused on principle — I’d rather shop elsewhere than play that game. Today I got a message back from gap.com reading, in part:

Currently we support AOL, Netscape Navigator, Microsoft Internet Explorer, and Firefox for PC users. Unfortunately, we temporarily do not support Microsoft Internet Explorer for Macintosh. …. Safari users having problems accessing our site can download the free Firefox browser.

I guess failing to understand or even apparently to read my message was their little way of connecting with customers and assuring me that my voice had been heard.

Why even bother? Speak a smidge of sense into the void and you end up feeling like Quixote, raging against the machine. Corporate retards.

Music: Sun Ra :: The Alter Destiny

Tivo Killer?

Think Secret reports rumors about the “rebirth of the Mac Mini” as a home entertainment hub, featuring an Intel CPU and including “both Front Row 2.0 and TiVo-like DVR functionality.” True, there are already several Mac-based living room video recorder arrangements available… but not ones that come from Apple, who can now capitalize both on its iPod success and on the lower cost of x86 chips. Allegedly, its DVR functionality will be stellar: “Sources with knowledge of the project have dubbed the latter a “TiVo-killer.”

I’m still flummoxed by the relative lack of success of the Mac Mini as a general desktop computer. Amy’s has been flawless: Cheap, tiny, silent, attractive, and 100% stable. I’d be very inclined to use a home entertainment variant of it in place of the Tivo, especially if it offered a way around paying the monthly subscription, and let me burn DVDs.

Music: African Head Charge :: Primitive

Outsourcing Outrage

SF Chronicle:

In a recent 16-country Pew poll, India had the highest percentage of citizens with a favorable opinion of the United States, 71 percent.

But that favorable perception is starting to fade as Indian employees working in outsourced call centers spend day after day being berated, slurred, and degraded by American callers frustrated both with their computers and the effect of outsourcing on the U.S. job market.

Saurabh Jha, a 22-year-old in blue jeans, says a woman phoned from Texas recently and told him that, thanks to outsourcing, “You are getting money, food, shelter. You should be starving.” She berated him for 12 minutes before she finally allowed him to offer advice that promptly fixed her problem: to unplug her computer and plug it back in. “I was speechless,” he says. “She didn’t even give me a chance.”

Yeah, uh, really makes you proud to be American. Urgh.

Music: Unknown Instructors :: I Think

SpotMeta

Haven’t tried this myself, but a reader just pointed out SpotMeta, which extends the Mac OS X filesystem to include fully customizable metadata fields, presumably searchable by Spotlight.

Based on how OS X has progressively integrated some of the coolest features of BeOS, I predict that something similar to this will soon ship natively in the system. So I’m not exactly eager to start tacking on 3rd party extensions to the filesystem — yahweh knows how the two would interact when extensible metadata becomes “official.” But it’s cool to see people thinking in these terms.

Thanks David Richardson

Music: Coldcut :: Autumn Leaves