Chinese Language Pack

chinablog.jpgWe’re finally getting The Great Firewall of China off the ground – set to launch later this month. It was up to me to install the Chinese Language Pack for Movable Type on our server. Installation itself was fairly easy. Somewhat more tricky for a non-Chinese speaker is using the back-end in Chinese mode. Only via intimacy with the UI was I able to negotiate my way around. Let’s see… the Rebuild button is second from the bottom, and the Rebuild Category Indexes option is the third item in the picklist. If you switch languages without either knowing the language or having the muscle memory, you won’t be able to get back to the language selector to return to English mode – you’d have to wander around the labyrinth pecking half-random ’til you got it right.

chinablog2.jpg

The key is not just to get menu items to display in Chinese, but to have proper encodings on both the back-end and on your public site. Learned something interesting: If you’re in charset=iso-8859-1 and paste Chinese characters into a form, then save the record and look back at what you just entered, the characters will all be HTML entities (i.e. they’ll render okay for readers, but will be virtually uneditable). The browser does this, not MT. On the other hand, if you’re in charset=UTF-8, the characters are retained properly.

If you set the default encoding to UTF-8 in the MT config file, you’ll affect all blogs under the installation, which is probably not what you want to do. If you just want to affect one blog, leave the config file alone and hard-wire the encoding into the templates for that blog. That covers the public pages. The back-end language is selected per-user, and form encodings are switched automagically.

Hyperdrive

I have presta valves on my bicycle tires. This morning went to put some air in the rear. When I removed the adapter, it took the core of the valve stem out with it. The little brass stem went rocketing across the garage and hit the back wall, scary projectile. Heard it, couldn’t see it. Tire deflated in two seconds flat, no pun intended. Walked to work. Over lunch discovered that the one bike shop within walking distance of UC Berkeley has closed down.

I never thought there were corners in time
‘Till I was told to stand in one.
— Grace Slick

Curious George at the Apple Store

The repair permissions trick ultimately didn’t work (I knew it wouldn’t), so back to the Apple Store to drop off the box for repair. Irks me no end that Apple will not give you a SuperDrive to install yourself. Ten minutes and problem could be solved, but no, they want the whole machine, want to ship it to Infinite Loop or wherever their repair monkeys live, and ship it back. I can appreciate that they want to “control the experience,” top to bottom, reduce injection of foreign objects into the hardware, but shoot, I’d be willing to sign a waiver. It’s both insulting and a waste of time.

Anyway. Took Miles with me. When he was there a week ago, we showed him the Curious George game on one of the eMacs, and he seemed to enjoy, even though he’s too young even for the preschool levels. This time he started pointing and grunting as soon as we got in the store. Persisted until I put him down. He ran across the store and plopped himself down in front of Curious George. Started whacking at the keyboard, smiling ear to ear, squealing. Uh-oh.

And I’m computerless for a week, stealing time on Amy’s machine after hours.

MT-Blacklist

I’ve complained about comment spam before, but the problem has really swollen out of all proportion over the past two weeks. Because the phenomenon is relatively new, Movable Type has no simple mechanism for handling it, other than to ban IPs (or entire triplets). Deleting comments and rebuilding posts is cumbersome.

This weekend, one of the J-School’s blogs, bIPlog, got hit hard, and a student spent hours deleting Lolita comments. In the nick of time, Jay Allen released MT-Blacklist, which totally supersedes his previous MTMacro solution. Comes with a database of 450 known evil URLs and ability to post your updated blacklist to a known location for automated sharing. Also modifies the comment emails that MT generates to include an additional “de-spam” link – clicking it lets you delete the comment, rebuild the page, and add the spammer to your blacklist all at once. If you’re running multiple blogs from one installation, you can turn MT-Blacklist on or off for any arbitrary subset of them.

Installing MT-Blacklist on birdhouse and on the J-School today felt triumphant — as if the whole episode had been a battle between good and evil, and evil was winning… until the Megatron DDT Squirtation Assembly arrived to vaporize all the cock-a-roaches.

xian says:

I would like to have Jay Allen’s baby. He is a god.

On the normal spam front, I like this idea: Filter That Fight Back. Short version: create client-side spam filters that purposely follow/spider every link in a spam. Spammer sends out a million emails an hour, they get in return with a million hits an hour. “The branch snaps back in their face.” Punish them with the traffic they’re looking for. Crush them with it. Very Tae Kwon Do.

Music: Can :: Pnoom

Sod

Sod rollingLast weekend started crunching away at the back yard, which has looked like a lunar landscape, preparing to lay sod. Saturday a.m. spent a couple more hours tweaking, then broke the cycle of infinite revision and added topsoil, fertilizer, rolled, and layed down 96 chunks of sod (images). By 3:30 we had a whole new back yard, amazing. In two weeks it’ll be usable, won’t be a mud factory, erosion center, eyesore.

Rarely does a project at home or work take less effort or time than expected. I thought this one would go all weekend, but the work went like buttah.

Let the “sod” jokes begin.

Music: Mercury Rev :: Pick Up If You’re There

Miles One-Year Images, Cat Door

Hard to believe Miles is one year old already. Actually his birthday was back in September, but he was sick on the big day. We had a small party a week later. Now he’s on the brink of talking, is eating solid food and feeding himself (with hands, and working on spoons) and is into everything (everything). In this set, Miles goes hiking, takes a trip to Minnesota and meets all his cousins, sweeps like crazy, learns sign language, plays with hoses, wears Chinese silk, and toilet papers the house.

Also: Miles loves to push toys through the cat door. One day he decided he could follow his things right on through, but misjudged his hip girth by a couple of sizes and… No child labor laws were violated in the making of this short. Miles Stuck in the Cat Door.

Curly Quotes

Smart/curly quotes have been a thorn in the side for a while. When users of some browsers paste out of Word and into Movable Type (eg. for NGNO), the smart and curly quotes would come out as question marks (i.e. unrecognized characters). I had taught them to either turn off Smart Quotes or save as text, open in SimpleText or NotePad, and paste from there. They hated me for it.

Just found Brad Choate’s regex plugin, which lets your MT templates do search/replace on-the-fly. Configured it to replace curlies with straights, problem solved.

Of course, working with PHP would have been easier in a case like this — would not have needed a plugin to churn text; but the benefits of using a prefab publishing platform outweigh these occasional downsides.

Music: Wings :: Mull Of Kintyre

Newsworld International

Al Gore is apparently looking into purchasing an entire news network, which he would fashion into an antidote to the predominant conservative media. Going after Fox with something that might actually resemble “fair and balanced?” They’re casting it not as a leftist media outlet per se, but as a sane info source on the landscape. Former chairman of the FCC says:

“We’re not trying to fight fire with fire; we’re trying to fight fire with cold water.”

Al Franken says::

“[people are] listening to NPR not because it’s left-wing information, but because it’s information.”

Meanwhile, a recent Gallup poll finds that 45% of Americans think the media is too liberal. That must be mostly the same chunk who think Saddam attacked the U.S. Wait, no, that was 70%.

Update 10/14/03: The network is now being re-cast not as a liberal outlet, but as a news network for youth (under 25).

“Liberal TV is dead on arrival,” said an insider advising Mr. Gore and his team. “You just can’t do it.”

Thanks David K.

Music: Kristin Hersh :: Spain

Fix It Right The First Time

Sometimes things work, but are neverthelesss not the right solution. This is a philosophical problem of approach to problem solving that has come up repeatedly at work over the past few weeks. Group A wants to do things the most effective way. Wants solutions. Now. Likes to do a lot with a little. Likes simpler solutions. Likes not putting energy where it will be wasted. Group B wants to do things the right way. Never mind the cost. Straight to the top. All the time, no matter what. Assumes that amount of money spent always equates to amount of quality in the solution. There’s a lot to be said for that, but note that Group B even has trouble believing that open source / free software products can be high quality too.

One might think that questions of technology have right answers, but in the end, neither approach is necessarily more correct. One is more idealistic, one more realistic. One is only more right than the other depending on assumptions, contexts, budgets (time and money), immediacy, difficulty, etc.

Results count too. Related but unrelated: My SuperDrive has been failing intermittently — not recognizing CDs in iTunes. Burning coasters or having buffer underruns. Finally took machine in to the Apple store. I have AppleCare, but they won’t replace the drive until they’ve tried alt.solutions in the store. One of the Apple Geniuses recommended running Repair Permissions from Disk Utility. This made no intuitive sense to me — it’s an intermittent failure, how can perms on a kernel extension make the difference? (Note: You must boot from CD or external FW if you want Repair Permissions to be fully effective – some perms must be skipped on the boot drive).

And yet… we repaired permissions and sure enough, a test disc I brought that previously would not mount now mounted, and we were able to burn a test CD. Freaky deaky. And yet… something inside me told me this was not the right solution, that there was some fluke involved. Sure enough, days later I’m experiencing the same difficulties and need to bring the box back for a drive replacement. Ultimately, they wasted my time and theirs with a “solution” that I knew was not the correct solution and now I have to go spend more of my time and theirs to get it done right for reals.

Music: Link Wray :: Rumble