“Wait until France gets a hard shot in the nose. Wait until France reacts with some nasty work. They’ll get a golf-clap from the chattering class over here and a you-go-girl from Red America. France could nuke an Algerian terrorist camp and the rest of the world would tut-tut for a day, then ask if the missiles France used were for sale. And of course the answer would be oui.”

— James Lileks

Dear Amazon Associates Program,


Report-processing FAIL:

You are receiving this email because our reports indicate that you have sent users directly to www.amazon.com, www.amazon.ca or www.endless.com through paid search advertisements that were displayed to users who searched on keywords which you bid upon and purchased in search engine keyword auctions.

Um, no, I haven’t. It would never have occurred to me to try, and I wouldn’t have expected it to work very well. Did you maybe get your report query backwards and send this to all the associates who didn’t pull this trick? Or just to everyone, on the assumption that 94.72% will just ignore it?

Things that suck


  1. 10% packet loss on my DSL line.
  2. Three hours diagnosing the problem so that I could convince tech support it wasn't my equipment. And, yes, I even had a spare DSL modem lying around.
  3. At least four hours spent on the phone with support at various levels, mostly spent listening to Muzak and repeating parts of item #2.
  4. Being told that it will be 11 days before someone can physically come out and check the lines, since resetting the DSLAM didn't fix it.
  5. Discovering that every other service provider in the area (cable, wireless, etc) has at least a 5-day lead time, and juicy up-front costs for the required gear.

Dictionary update


[Update update: I’ve made a small change to add the full JMnedict name dictionary; a lot of things that used to be in Edict/JMdict have been moved over to this much-larger secondary dictionary, and I finally got around to integrating it. The English translations aren’t searchable yet, mostly because I need to rework the form and add the kanji dictionary to Xapian as well, so that I have J↔E, N↔E, and K↔E.]

One downside of moving a lot of stuff onto my new shared-hosting account is that I have to give up a lot of control over what’s running. Not only do I have to work through an Apache .htaccess file instead of reconfiguring the server directly, but I can’t run my own servers on their machine.

So, goodbye Sphinx search engine, hello Xapian (thanks, Pixy). While it suffers from a lack of documentation between “baby’s first search” and “211-page C++ API document”, it has a lot to offer, and doesn’t require a server. One thing it has is a full-featured query parser, so you can create searches like “pos:noun usage:common lunch -keyword:vulgar” to get common lunch-related nouns that don’t include sexual slang (such as the poorly-attributed usage of ekiben as a sexual position). That allows me to use the same tagging for the E-J searches that I use in Sqlite for the J-E searches. [note: everything’s just filed under “keyword:” in this first pass, and the valid values are the same as the advanced-search checkboxes]

I need a full-text search to do English-Japanese, because the JMdict data isn’t really designed for it. There are hooks in the XML schema, but they’re not used yet. As a result, my search results are a bit half-assed, which makes the new query support useful for refining the results. I can also split out the French, German, and Russian glosses into their own correctly-stemmed searches; with Sphinx, there was one primary body field to search, so all the glosses were lumped together. With a small code change, I can tag each gloss with the correct ISO language code and index them correctly.

The new version is now live on jgreely.net/dict, which means I should be able to move that domain over to the shared-hosting account soon.

Once I figured out how to use Xapian (through the Search::Xapian Perl module, of course), replacing Sphinx and adding the keyword support took a few minutes and maybe half a page of code, total. In theory, I could use it for the J-E searches as well, but I’d lose the ability to put wildcards anywhere in the search string, which comes in handy when I’m trying to track down obscure or obsolete words.

One thing I haven’t figured out is why I can’t use add_term with kanji arguments; both Xapian and Perl are working entirely in Unicode, but passing non-ASCII arguments to add_term throws an error. The workaround is to set the stemmer to “none” and use index_text, and that’s fast enough that I don’t need to worry about it right now.

The most annoying thing about the Xapian documentation is how well-hidden the prefix support is. The details aren’t in the API at all; you can learn how to add them to a term generator or query parser, but the really useful explanation is over in the Omega docs.

We're FERCed


Jon Wellinghoff, Chairman, Federal Energy Regulatory Commission, “Earth Day” 2009:

I think baseload capacity is going to become an anachronism. Baseload capacity really used to only mean in an economic dispatch, which you dispatch first, what would be the cheapest thing to do. Well, ultimately wind's going to be the cheapest thing to do, so you'll dispatch that first. People talk about, 'Oh, we need baseload.' It's like people saying we need more computing power, we need mainframes. We don't need mainframes, we have distributed computing.

(via The National Review)

Hello!Project Sing-along Project


Kusumi: “…and I’m too sexy for my hat, Too sexy for my hat, what do you think about that?”

more...

Proof my email works again


In the past seven hours, I have received 490 pieces of spam. One made it to my inbox. One almost made it to my inbox. The rest were caught by SpamSieve, with no false positives.

So, yes, I’m pretty sure that the catchall mailbox at jgreely.com is working again. :-)

I moved one of my parked domains to a new account at Pair, the hosting side of domain registrar PairNIC. They offer clean multiple-domain support with catchall mailboxes and sophisticated filtering, secure IMAP and SMTP, and a full range of scripting languages and libraries under FreeBSD. Once I’ve tested everything out with that domain, I’ll move jgreely.com over, as well as the J-E dictionary I’m currently hosting on jgreely.net.

It will be a while before I can resume the blog upgrade work I started a while back, so dotclue.org won’t move to the Pair account any time soon, and neither will my old high-volume picture site (which survives because of bandwidth-throttling firewall rules). All of the non-blog CGI will probably end up on jgreely.net once that domain is migrated off of the flaky old Shuttle sitting in my closet.

Sigh, time to change hosting


The ISP I’ve hosted jgreely.com at for a long time is now bouncing all of my incoming email. It seems that they silently decided to disable the wildcard delivery feature of their mail server, so of the hundreds of (something)@jgreely.com addresses I have, exactly one of them was being accepted as a valid mailbox. And that’s not the one I use…

Verio: just say, “blow me”.

[Update: naturally their support is business-hours-only, so I’ve had to reconstruct the core list of a hundred or so useful somethings and manually add them to my account.]

[Update: so after all that, there’s no explanation of what happened, or why I still have no control over this feature on their control panel. The support guys seem like nice guys who know how to do their jobs, but I’m still dealing with the fallout from this, with no idea of how to prevent it from happening again. It looks like their updated software looks through your configured users to see if one of them has the full name “catchall”, and if not, assumes that you want to bounce everything not directly addressed to configured users. Which would be fine, if this were A) documented, and B) they’d reviewed account configs before the update to make sure it wouldn’t bite customers who’ve been with them for more than ten years]

Tenso reshipping service, preliminary report


I’ve heard mixed reports about the various companies that act as reshipping agents in Japan, allowing you to order from companies who only ship domestically. Danny Choo recently had a prominent link to Tenso, along with a contest where the prize included shopping and shipping. There were relatively few comments about the service, but they were positive. I haven’t found many other comments about them, either, but I thought I’d give it a shot.

Several times a year, I place large orders with Amazon Japan. They only ship by air, so the order needs to be large to bring the shipping cost down to a less heartbreaking percentage of the price. They won’t ship software or consumer electronics internationally, and the marketplace vendors won’t ship anything overseas, so it’s been a limited-but-useful way to get stuff.

Tenso ships EMS, charging by weight, and in some cases this may end up being higher than Amazon’s air shipping; now that I have a few invoices to compare, I’ll have to figure out when it makes sense to use them for new goods, figuring in the cost of Amazon Prime to get free domestic shipping to their warehouse. For this test, I took advantage of Amazon’s free one-month trial of Prime. [Update: found Amazon’s rate page again; ¥1700-2700 shipping depending on the contents, plus a fixed ¥300 handling per item]

For used goods? No contest. A lot of marketplace dealers charge a nominal ¥1 + handling for used books and CDs that aren’t in high demand, and I found a single dealer who had three items that I wanted, -azb-アマゾン店. Their handling charge added ¥1020, and Tenso charged ¥2350 for shipping and handling, for a grand total of ¥3373. The original retail cost of the three items? ¥4819. Speed? I ordered on the 12th, Tenso received it on the 16th, shipped it on the 17th, and it was waiting for me at the office today, the 21st. It may actually have arrived yesterday; I was out.

Setting up my account with Tenso was easy, except for the credit card. Neither my Visa nor my Mastercard were accepted, despite having used both with Amazon, but my American Express card worked fine. The error page for this was the only place I noticed where their mostly-competent English was replaced by Japanese, and some of Danny Choo’s commenters reported the same difficulty, and ended up using Paypal. They give clear instructions on how to enter your personal address on online stores, and promptly notify you when you need to approve a shipment.

Will I use them again? Definitely for used goods through Amazon, likely for software/games that Amazon won’t ship directly, possibly for other stores if I find something I really want.

Were the three used items worth it? Hell, yeah.

more...

“Need a clue, take a clue,
 got a clue, leave a clue”