Category Archives: General

The Proud Husband and The Mistaken Wife

The US edition of Rose’s third novel, The Mistaken Wife, is published today.

Rose is in the midst of a flurry of talks, interviews and other events, some of which you can find out about on her site. We had a launch and signing party here in Michigan a few days ago, but today is the official date when it hits the shelves.

Available from Amazon.com and all other good booksellers.

And if you’re a Kindle or an iBooks fan, remember that eBooks are never out of stock!

The e-book tipping point

There was a watershed moment for me a couple of weeks ago.

I was re-reading a book I bought many years ago: Melvyn Bragg’s ‘Credo’. Actually, I bought it just after it was published, and so it’s one of those really large-format paperbacks designed to make you feel that you’ve bought something substantial worth the substantial early-adopter price!

But I don’t really like big, heavy books. I do most of my reading in bed late at night, and in that situation I’m primarily after mental rather than muscular stimulation. So I looked – in vain, as it happens – on both Apple’s and Amazon’s stores to see if I could get it in e-book format.

And then it struck me what I had just done.

I’ve really started to value the fact that my e-books are with me all the time on a variety of devices. But here, in addition, I was willing to pay more money to replace a paper book, which I already owned, with an electronic copy, because I thought I would enjoy the reading experience more on my devices than on paper.

That, I felt, was pretty significant…

Sad news

I heard today that Sir Frank Kermode, whom I was privileged to call a friend, died yesterday. With his passing, I fear that the pleasing aroma of pipe tobacco has finally vanished from my life.

John Naughton has written an excellent tribute. I too have nothing but good memories of the time spent in Frank’s company.

I remember his surprised embarrassment when I discovered, after dismantling his computer, that the reason he could no longer push a CD into the CD-drive was that on some distant past occasion he had pushed a 5.25″ floppy disk into the same slot.

I remember discussing Tolkien with him after seeing the first Lord of the Rings film, and he said that W.H. Auden had once asked him, “Don’t you think Tolkien is a wonderful writer?” To which he replied that no, he didn’t really think so. “I respect you for saying that”, said Auden, “but I’ll never trust your opinion again.”

Many did trust his opinion, though. Frank was one of the world’s foremost Shakespearean scholars. Yet, as John once remarked, he wore his eminence very lightly. His autobiography, “Not Entitled”, is a delight, and somewhat self-referential: part-way through he drifts off into discussing the whole concept of autobiography, and, if memory serves, doesn’t really come back to his own story much after that, as if to say that we’d probably heard enough about him and the literary concept was probably more interesting anyway; that he wasn’t even really entitled to a full autobiography.

The last time I saw him was when I rounded a corner in Waitrose and our trolleys almost collided. His smile when he saw me lit up my day, as it always did. I shall miss him.

Update: here’s his obituary in the Telegraph

Magic mushrooms

Is there a good collective noun for radio telescopes? Any suggestions? A ‘peer’ group?

Death from the skies

Odds of dying by asteroid impact: 1 in 700,000
The overall risk of dying from an impact in your lifetime is 1 in 700,000
Somewhat less than being killed by a fireworks accident
But still more probable than being killed on an amusement park ride
Or by an act of terrorism

Lyrics from George Hrab’s fun track “Death from the skies”.

This is the one

A friend has one of these digital watches. The digits are binary: LEDs which glow blue when you press the button. Love it. Ultimate retro geekery.

Parents should by these for their kids if they want them to grow up to be Computer Scientists…

More info on the manufacturer’s site.

Barcode reading on the iPhone

I’ve played with this a bit, and a friend asked me about it this morning so I thought it might be useful to write something up for others.

The more recent iPhones, those with autofocus cameras, can focus close enough to get good images of barcodes and there are several utilities which will recognise them. Some concentrate on 1D ‘traditional’ barcodes, others on the more interesting and capable 2D codes, the most common format being the QR code (shown here).

QR codes have long been popular in Japan, especially on business cards, so Japanese phones have tended to be able to focus at closer ranges than the typical western smartphone, which is only used for photos of friends doing embarrassing things in the pub. Now, though, the rest of the world is gradually catching on and the iPhone is rare in not coming with QR-code reading software included. Fortunately, that’s easy to fix. Here are some of my favourites of the apps I’ve tried:

Optiscan is, in my opinion, the best scanner if you just want to do QR codes. It’s fast and reliable and, when I first got it, was the only one I could easily configure to fill my particular need – I wanted a really low-friction way to scan a QR code containing a URL and view the associated page. Optiscan did that brilliantly – one tap on the screen to scan, and you could set it to open a URL immediately when it recognised it. Nice, simple, well-documented and only £1.19. And that’s the most expensive of these.

RedLaser is the kind of app that high-street stores probably hate. This is designed for traditional 1D product barcodes, scans them well, and then looks up other places you can buy them and tells you the price online. Now, it doesn’t look in very many places, so I wouldn’t suggest it’ll find you the best bargain, but it is a useful reality check before you make that impulse purchase. To be fair to high-street traders, too, it has more than once told me that the difference between their price and Amazon’s was small enough that I was happy to buy the item in-store.

I think the latest version of QuickMark is now my favourite of the apps I’ve tried. (Note that there’s a different version for the iPhone 4). Its big failing is that bits of the UI are rather counter-intuitive and the developer’s website is a mess and hard to navigate. But once you get over that it has several very nice features. Firstly, it will scan a range of different 2D formats including QR Code, Quick Code and Data Matrix. It will also scan 1D barcodes, but, and this is important, you need to configure it for the type of 1D code you’re scanning or it will just sit there failing to recognise anything. If you’re generally scanning standard product codes, go into Settings and make sure you select the EAN/UPC option.

It gets better. There’s now an option for 1D codes to redirect you to a URL based on the code, and you can choose the URL. I configured mine with
http://www.amazon.co.uk/s/?field-keywords=
and sure enough, when I scanned a book it stuck the ISBN number on the end and took me straight to the right place.

And better. There’s a free utility called QuickMark Spot which you can run on your Mac and which will receive barcodes from the phone over wifi, and insert them wherever your cursor happens to be. So you can open a text editor, wander round the house scanning your books and CDs, and come back to find all the barcodes in your file. Very cute, and a better range than, say a dedicated bluetooth scanner.

There are many, many more apps out there, and many more functions to these ones – I haven’t touched, for example, on how some of them can automatically call phone numbers embedded in QR codes, or display barcodes to be scanned by other phones… but this should get you started if you want to explore.

The writing’s on the wall for architects

On Friday I was invited to give a talk to the Cambridge Association of Architects – the local branch of the RIBA.

It was rather a fun format: each speaker was allowed 10 slides which would auto-advance every 20 secs, making each talk three minutes and twenty seconds long.

What would you say if given three minutes to talk to architects about the future?

This was my attempt…

The Making Of…

What do you think of those ‘special features’ sections of DVDs – the director’s commentaries, deleted scenes etc?

I’ve always rather enjoyed them, and they generally give a greater appreciation of a movie… why the writers chose not to follow the book here, what the stuntmen had to go through there, and so forth. It’s easy to sit back and enjoy a story without thinking of what’s behind it, though of course there’s a good argument that that’s exactly what you’re supposed to do, and that seeing backstage destroys the illusion they’ve so carefully woven for you. I’m not sure…

As some of you will know, my wife Rose Melikan is a novelist, and her books are set in the late eighteenth century. What few of her readers will appreciate, though, is the level of research that’s behind them: many of the characters are real people, for example, who were in the places described on that day in history. Often, the weather described in the books has been cross-checked against that day’s Times. And so forth.

In general, Rose says, she does this just to feel comfortable that she’s not making any glaring mistakes, but we thought that some of the factual background might be of interest to readers, so her website now has a section for each of the books with a little more background information on some of the topics.

Click on the page for The Blackstone Key, The Counterfeit Guest or The Mistaken Wife and follow the links in the box on the left. There’ll be more coming when time permits…

Baby on board

Not being a parent myself, I find them interesting as objects of psychological study. And one thing that has always puzzled me is this enthusiasm for sticking signs on your car telling people that you are transporting your offspring.

Why do people do this?

Is it just pride in your reproductive abilities? A badge of club membership to win you support from other parents? A warning that you may suddenly swerve because somebody has just pulled your hair or screamed in your ear?

Or is it, perhaps, something rather more sinister and insulting – an implication that other drivers – like me – may have no qualms about endangering your life, but will be inspired to take pity on your innocent sprog and so curb their otherwise naturally reckless driving?

Can anyone enlighten me?

The nightmare that is IE

If you ask any web designer what would constitute their dreams coming true, they will probably say something along the lines of “Internet Explorer vanishing from the face of the earth, never to be seen again”. Web development has for many years consisted of building your beautiful online creation and then polluting it with all kinds of hacks to get around the bugs and quirks in the various versions of IE.

We’ve just run into a nice issue with IE8, where a site running on our intranet will render completely differently from a deployed site running on a public server. The HTML and CSS is identical, it’s just that IE recognises that one is in the intranet zone and, for some completely unfathomable reason, decides that it should therefore be displayed differently.

For any sysadmins who haven’t yet replaced IE on their users’ desktops, this helpful page by Henri Sivonen gives a hint of the problems that you are helping to perpetuate. This is not a rant, it’s a useful guide to what designers have to think about, just to make their pages display properly, because you’re not using Safari, Firefox, Opera or Chrome.

An excerpt:

IE8 has four modes: IE 5.5 quirks mode, IE 7 standards mode, IE 8 almost standards mode and IE 8 standards mode. The choice of mode depends on data from various sources: doctype, a meta element, an HTTP header, periodically downloaded data from Microsoft, the intranet zone, settings made by the user, settings made by an intranet administrator, the mode of the frame parent if any and a UI button togglable by the user. (With other apps that embed the engine, the mode also depends on the embedding application.)

The lucky thing is that IE8 uses doctype sniffing roughly like other browsers if:

  • There is no X-UA-Compatible HTTP header set by the author.
  • There is no X-UA-Compatible meta tag set by the author.
  • Microsoft has not placed the domain name of the site on a blacklist.
  • An intranet admin has not placed the site on a blacklist.
  • The user has not pressed the Compatibility View button (or otherwise added the domain to a user-specific blacklist).
  • The site is not in the intranet zone.
  • The user has not chosen to display all sites as in IE7.
  • The page is not framed by a Compatibility Mode page.

For the points other than the two X-UA-Compatible cases, IE8 performs doctype sniffing like IE7. The IE7 emulation is called Compatibility View.

In the X-UA-Compatible cases, IE8 behaves radically differently from other browsers. Please see an appendix on this page or a flowchart available in PDF and PNG formats.

Unfortunately, without an X-UA-Compatible HTTP header or meta tag, IE8 lets the user accidentally drop you from the IE8 standards mode to the IE7 mode that emulates the standards mode of IE7 even if you used a proper doctype. Worse, an intranet admin may do this. Also, Microsoft may have blacklisted the entire domain you use (e.g. mit.edu!).

To counter these effects, a doctype isn’t enough and you need an X-UA-Compatible HTTP header or meta tag.

God help us.

Favourite movie quote of the day

    Are you one of these emancipated women we’re having so much trouble with at home?

-Kenneth More’s character to Lauren Bacall’s in North West Frontier

© Copyright Quentin Stafford-Fraser