Assorted Udderances take a pull offa Ben's pipe

24Nov/110

Customers vs. sales transactions

Today the CBC reports that Tim Horton's will close its storied shop in Kandahar:

After having served 2.5 million customers over the last five years, the Tim Hortons [sic] location in Kandahar, Afghanistan will close at the end of the month. […] Since opening on Canada Day in 2006, the Kandahar Tim Hortons [sic] served four million cups of coffee, three million donuts and half a million iced cappuccinos and bagels, the company said in a release Thursday.

I presume that the writer means 2.5 million sales transactions, not 2.5 million customers. Given the unique geopolitical nature of the location, I would wager that most of those transactions were made by a small number of regularly returning customers (each of whom no doubt bought a net many more than the mean of 1.6 cups suggested by the figures).

If I have a small business selling coffee, and a solitary dedicated fellow comes into my shop three times a day for a year, have I served a thousand customers, or just one?

11Nov/111

Spam filtering foiled by DNS-based whitelisting gone awry

I've had a sense recently that more spam than usual has been making its way through my mail server's filters, and I took the time tonight to figure out why. The result was interesting, a bit surprising, and in hindsight not altogether unexpected.

Like any decent run-of-the-mill mail admin nowadays, I run SpamAssassin as a primary line of defence against incoming junk. Casual spot checks of the headers on recent messages had revealed nothing out of the ordinary — all had spam scores assigned, and all fell below the configured threshold. Yet with messages so obviously spammy, and especially arriving in groups with unusual regularity, something was obviously amiss.

Looking more closely at the tests reported in the X-Spam-Status headers, one caught my eye: RCVD_IN_DNSWL_HI. Guessing that "WL" meant "whitelist", and confirming that this match was responsible for adding −5.0 to the spam score (thereby reducing it), I visited the DNSWL lookup page and manually checked every IP address in the Received headers of one piece of spam in order to determine which rogue relay was incorrectly reported as good.

To my surprise, none was listed. I checked those from a different message, and found the same. I verified these results by doing manual DNS lookups with the "host" command on my Mac. None of the servers that handled these messages was registered in this whitelist, yet SpamAssassin was repeatedly hitting a positive on the test. What was going on?

Naturally I turned to Google for some insight, and found an anecdotal account of how one guy solved a similar problem by changing his DNS resolver to something else, away from Google's public DNS service which he had been using. His problem went away, and messages were no longer being erroneously whitelisted.

For a few minutes I was pondering what Google's DNS servers could have to do with anything when I came across this article from the DNSWL folks that seemed like it might be vaguely related to my problem. The upshot is that due to a huge volume of DNS queries fielded from several particular organizations in violation of their terms of service, DNSWL has retaliated by replying with a "good" response for any and all whitelist queries from such sources.

It dawned on me that this was, in fact, my exact issue. I checked the resolv.conf on my mail server, and lo and behold, the culprit was the DNS server 8.8.8.8, one of Google's public DNS — that's where my machine has been looking for all of its name resolution.

Many months ago I had commented out my ISP's DNS in favour of the Google ones. I can't remember the specifics, but the brief comment I left in the file suggests there had been some intermittent problems with the "house" DNS (which for an SMTP server can cause havoc). So I swapped in the eights as a workaround, and everything had been buzzing along since.

I've now reverted to the local servers, which seem to be working fine, and I expect spam to return to the usual levels.

23Jun/110

Canada votes in favour of asbestos

CBC reports that "Opposition MPs slammed the Harper government Thursday over Canada's opposition to putting chrysotile asbestos on an international list of hazardous chemicals."

It goes on to say that a spokesman for the UN's environment program stated that "David Sproule, the head of Canada's delegation, told participants that «Canada is not in a position to agree to the listing of chrysotile asbestos … at this conference of the parties»".

If accurate, then Sproule's remark is obviously a lie. By having the capacity to vote, Canada is in a position to agree. It has simply chosen not to.

The decision is repugnant, and typically illustrative of the Steven Harper government's lack of moral compass.

19May/110

Embracing a single point of failure

As Marco Arment says in this piece about Twitter (specifically, the impact of its recent whimsical change to authentication requirements, though the observation applies generally):

These are the risks that you take when you base your personal happiness or your business on a single, irreplaceable, young, evolving third-party service.

The same can be said for Facebook, or those silly "URL shorteners", or Gmail, or any number of other no-cost fad services that seem to become so popular.

Commonfolk can always be counted upon for short-sighted feelings of entitlement.

23Apr/111

The Sad, Beautiful Fact That We’re All Going To Miss Almost Everything

A good essay on culture and the philosophy of being well-read. (NPR, via Marco.org)

13Apr/117

Ad hoc cop talk (or, how VPD thinks I should ride a bicycle)

I just had a strange encounter with some Vancouver Police on my way in to work this morning.

I was riding my bike north on Kingsway, in the right-most lane.  Just north of 12th, while I was riding on the dashed the margin between parked cars and the right-most lane, the car behind behind me slowed to give me an opportunity to change lanes.  I signalled left, and safely made it into the left lane.  I continued north, across Broadway, then stopped in with the queue of traffic waiting to turn left onto 7th.

At this point two Vancouver Police officers, riding motorcycles two abreast, pulled up to the right of me (in the through lane).  I heard someone shouting "Hello! Hello!", and realized they were trying to get my attention.  Looking over, one officer then shouted:  "You're not a car.  You have to stay as far right as possible.  If you're making a turn, you have to do it within the block."

I only had time to respond with "Oh, yeah…?" and a baffled half-grin before the light changed and they peeled off ahead down Main.  I continued on my way.

This exchange bothered me for several reasons.

  1. I don't believe I was doing anything illegal or unsafe.  In fact, I was doing my best to integrate with traffic, as I always do; my movements were well-signed, obvious, and in keeping with regular traffic flow.
  2. I believe that these officers were themselves breaking the law by riding two abreast in one lane of traffic.
  3. If I were committing an infraction, I would have expected (and appreciated) lights or sirens and a proper traffic stop.  Instead, the odd casual nature of this exchange seemed bizarre.

I shall do some research into the road regulations to see if I can validate the officer's advice. However I am skeptical that his admonishment, at least in this situation, amounted to little more than personal opinion – which seems rather unprofessional for the police.

31Jan/111

A new Mac Pro is on the way

As a follow-up to my previous post, I've followed through and a Mac Pro is following along.

My decision to move now was spurred by a reminder last week about a temporary tax incentive (CCA class 52) the makes capital purchases of computer equipment eligible for a 100% write-off – but only if purchased before the end of January 2011 (that's today).

So I ordered one last night from the Apple online store – a refurbished model, actually. Though this will be my first experience with an Apple refurb, the option was a no-brainer: selection is good, prices are generally hundreds of dollars less than nominal, and products carry a full warranty and are eligible for AppleCare.

The machine is a 2.8 GHz quad-core "Nehalem" Xeon with ATI Radeon 5770 (1GB) graphics, plus the usual array of bells and whistles. I'm looking forward to kicking it in speedy style with the latest Xcode and iOS toolchain, and Aperture on the 27" display.

12Jan/112

I ordered a Dell U2711 monitor today

This afternoon I ordered a Dell UltraSharp U2711 27" display, an investment I've been contemplating for awhile.

At my office, where I mostly do software development but also occasional photographic and video editing, I've been working for several years on a Power Mac G5 tower with a pair of 20" Apple Cinema Displays.  This setup has been great, but is also getting long in the tooth.

The computer itself chugs painfully with Aperture, and the lack of Intel processor is becoming an increasing barrier to productivity; developing for iPhone (and now the Mac App Store) on my 15" Mac Book Pro is arduous at best.

As for the displays, their backlights are starting to slightly fade and I can no longer match the white balance on both displays even after profiling.  And a bigger screen will make a new computer seem even faster, right?

By my research the U2711 seems to have earned a consistently good reputation, sporting a fantastic colour-accurate matte panel, decent mechanical adjustments, and more input types than one could ever need.

While replacing the computer is of greater urgency, today's one-day price on this monitor — $749, down from $1249 — was the most affordable I've yet seen, so I decided the opportunity should be taken.  Surely a new Mac Pro will follow, eventually.

30Nov/100

The user experience of lost luggage

Nadyne Richmond testifies to the typically poor handling of lost luggage by airlines (and the process for unlost-luggage delivery in general).

1Nov/100

New airport fondling; no gay military

Two pieces of evidence this week alone that the U.S.A. is still a third-world country ideologically:

Unreal. It's interesting to observe that many of the country's irrational hang-ups involve sexual themes.