How to… ahem… disseminate your advertising materials

An intriguing article by Charles Duhigg, published a few months back in the New York Times magazine, talks about the value to large retailers of knowing when their customers are pregnant:

There are, however, some brief periods in a person’s life when old routines fall apart and buying habits are suddenly in flux. One of those moments — the moment, really — is right around the birth of a child, when parents are exhausted and overwhelmed and their shopping patterns and brand loyalties are up for grabs. But as Target’s marketers explained to Pole, timing is everything. Because birth records are usually public, the moment a couple have a new baby, they are almost instantaneously barraged with offers and incentives and advertisements from all sorts of companies. Which means that the key is to reach them earlier, before any other retailers know a baby is on the way. Specifically, the marketers said they wanted to send specially designed ads to women in their second trimester, which is when most expectant mothers begin buying all sorts of new things, like prenatal vitamins and maternity clothing. “Can you give us a list?” the marketers asked.

Well worth reading the whole thing. Gives a whole new ring to the phrase ‘targetted advertising’!

Rodent Identification

‘Marmotte’ est mon nom,
Here in France (where I’m from)
Though you foreigners may spell it ‘marmot’

But we aren’t very taken
With those who mistaken-
ly call us groundhogs (which we are not)

Well, you find a better rhyme, then!

The Englishman Abroad

Complete with fashionable headgear, knobbly knees, trusty hound, and Brompton (on kind loan from John)

Even mad dogs and Englishmen have been choosing early evening for cycling excursions here: it’s been very hot over the last few days. Light showers have made for a more autumnal climate today, though, which makes a nice change.

You’ll notice that, despite this being prime Tour-de-France country only a few miles from the Col de Tourmalet, my parents and I have somehow managed to cycle in the one flat valley in the area.

That’s just for our warm-up training, of course…

Thought for the day

A good holiday is when you can't remember whether it's Sunday or Monday.

 

Who should really be suing Apple?

Dickon’s comment on my last post reminded me of another post from four years ago.

Imitation is the sincerest form of flattery, they say, but it can also be the most expensive.

Dear Apple, a billion dollars would be nice, but I think the Broadband Phone team would probably settle for some nice new MacBook Pros…

🙂

Before and after

John posted this lovely image from CultOfMac, showing phone designs before and after the iPhone.

As he says, imitation is the sincerest form of flattery…

How you can actually find things with Spotlight

Mac tip of the week…

The Spotlight search engine is a really useful feature of Mac OS X, providing an easy way to open your files, email messages etc. But suppose you want to do something other than open them: how do you find out where they actually are? Is it showing you the copy on your internal drive, or your external drive? What other things are in the same folder? Can I copy it onto a flash drive?

A quick note for new Mac users: the ‘Option’ key is labelled ‘Alt’ on some keyboards.

Using Little Computers to control Big Computers

Here’s my latest Raspberry Pi-based experiment: the CloudSwitch.

I don’t discuss the software in the video, but the fun thing is that the Pi isn’t dependent on some intermediate server – it’s using the boto module for Python to manage the AWS resources directly.

I decided to build the app slightly differently from the way I would normally approach a little project like this. I knew that, even for this very simple system, I would have several inputs and outputs of various kinds, some of them with big delays, and I wanted to make sure that timing hiccups or race conditions didn’t ever leave the lights displaying something that didn’t represent reality.

So this is only a single python file, but it runs several threads – one that looks for button presses, one that monitors and controls the Amazon server, and one that handles the lights – including flashing them in various patterns. They interact with the main thread using ZeroMQ messages, which is a lovely way to do inter-thread communications without all that nasty messing about with semaphores and mutexes.

Update: Here’s the very simple circuit diagram. The illuminated buttons I used have LEDs which take a little more power than the Raspberry Pi can really drive, so I put a couple of NPN transistors in there. It really doesn’t matter too much what they are – I used the 2N3904.

© Copyright Quentin Stafford-Fraser