simont: A picture of me in 2016 (Default)
2008-04-17 11:26 am

Another confusing midnight curry-related wrong number call

Long-time readers of this diary may recall that back in 2004 around the same time of year, in fact – I had a rather silly phone call after midnight one night, in which a caller had tried for a curry house, got the wrong number, and when I told him I wasn't a curry house he persisted in trying to order a curry from me anyway.

Last night, well past midnight, I had a wrong-number phone call from a curry house, informing me that a meal I hadn't ordered was ready for delivery. When I said they'd got the wrong number, they insisted that it was definitely the right number because it was on their computer as the number the orderer had called from. I said I hadn't ordered anything, and they said that in that case they were going to have to charge me £20 for a prank phone call. I said I hadn't made a phone call, and they insisted that yes I had.

I tried to get them to tell me what address the delivery was meant for, in the expectation that it would turn out not to be my address, but the guy on the phone said he didn't have access to that information as he was ‘only a call operator’. (Seemed odd; a curry house wouldn't have struck me as the kind of organisation which obviously required a separate department for phone calls with limited access to databases.) Meanwhile, some other guy was clearly audible in the background and sounding quite panicked, saying ‘But I've got this curry! The curry's ready! What do I do with this curry?’

I eventually hung up on them, after getting bored with the endless repetition of ‘we're going to charge you £20’, ‘but I didn't make a call’, ‘yes you did, your number is in our computer’. I told them to send the bill for their £20 to the address the delivery was meant for, and put the phone down.

I presume that it really was a wrong number, and that nobody had actually managed to make a prank call which caller-IDed as me. (Not least because if you'd gone to the effort of being able to do that sort of thing, prank calls to curry houses would be low on your list of applications for it!) So I presume that whatever address they had was not mine; certainly there was no subsequent ring on the doorbell with an unwanted curry (although I did dream a ring of the doorbell at 5am, and actually did go down to check it really was a dream and not a confusing curry-related caller). I imagine no bill will turn up in the next few days either, but if one does then I suppose I'll have to tell them to take me to court and prove I phoned them.

But their persistence amuses me, or at least it amuses me now after it finished irritating me. My last confusing curry-related caller persisted in trying to order a curry from me even after finding out I was a private individual and not a restaurant; this one persisted in trying to tell me about my curry delivery even after I told them I didn't order one. Perhaps the proximity of curry is deleterious to people's ability to comprehend that they've got the wrong number :-)

simont: A picture of me in 2016 (Default)
2008-04-13 10:55 am

Thoughts on thoughts (IV)

Gosh; it's been a couple of years since I last made a post in this irregular series, which makes it quite irregular indeed.

I had coffee with [livejournal.com profile] feanelwa a couple of weeks ago, and we had a conversation in which it occurred to me that some kinds of programming, perhaps particularly at the level where you're only just getting the hang of it, are a fundamentally introspective process. If you want to program a computer to be able to do some task your own mind already knows how to do, one way to start working out how is to do it or imagine yourself doing it; then you watch your mind's process of thinking about it, closely enough to break it down into smaller steps. Then you write each of those steps in your program, perhaps by applying the same technique again. In other words, you're reverse-engineering algorithms and procedures out of your own subconscious: converting procedural knowledge into declarative. It had never occurred to me to think of it in those terms before, but I'm glad I did, because I've been strongly introspective from a pretty early age and now I feel as if I have a better explanation for why it comes naturally to me.

now I attempt to apply this procedure to general sentience, with verbose results )

simont: A picture of me in 2016 (Default)
2008-04-11 12:45 pm

False positives

These days, whenever I see (or worse still, find myself using) a noun phrase consisting of an acronym followed by a word beginning with the acronym's last letter, part of my brain twitches uncomfortably in a ‘PIN number’ sort of way – even if the last word represented by the acronym isn't the same as the following word.

I'm also beginning to feel a reflexive flash of irritation on seeing the word ‘it's’, even in many circumstances where it's being used correctly.

Subconsciouses are irritating things.

simont: A picture of me in 2016 (Default)
2008-04-10 02:57 pm

Taxing paperwork

I received a tax return in the post today; this will be the first time I've ever had to do one.

Well, in fact I received part of a tax return; apparently the policy is for HMRC to send you the pages they think you're most likely to actually need – the exact phrase they use is ‘a Tax Return that we think matches your personal circumstances’ – and if you need any of the other pages, you can phone up and ask to be sent them, or download them and print them out.

The reason I received a tax return in the first place is because I wrote a letter to HMRC last year notifying them that I'd made a small capital gain from some company share options.

I therefore invite my readers to take their best guess at whether the Capital Gains Summary page is one of the pages included in the pack I was sent.

*sigh*

simont: A picture of me in 2016 (Default)
2008-04-07 11:08 am

Irritation of the day

Sprinting to catch a bus, successfully, but then realising when you get on the bus that you haven't enough cash on you for a ticket and have to walk after all. For added points, do this when the air is cold enough to make running particularly unpleasant.

Still, I got there in the end, and a cup of hot coffee and one of Caffe Nero's extremely gooey and delicious gluten-free chocolate brownies made an excellent restorative.

simont: A picture of me in 2016 (Default)
2008-04-01 02:15 pm

Errata

Oh, rats. I am in fact wrong. In my previous entry, I was mistaken in the precise form of the node annotations required.

correction )

simont: A picture of me in 2016 (Default)
2008-04-01 12:30 pm

Efficient deadline management with annotated B-trees

At post-pizza last night Ian set me an algorithms problem, because he thought it would be right up my street. The solution I came up with turned out to be overkill for his actual needs, but it was a rather cute use of annotated trees which I hadn't thought about before, so I want to write it down somewhere.

algorithms geekery )

simont: A picture of me in 2016 (Default)
2008-03-30 12:44 pm

Addendum

(Of course, on this particular occasion it doesn't actually matter if my alarm clock is still wrong tomorrow, since I'm off work for two weeks and won't have to get up anyway :-)

simont: A picture of me in 2016 (Default)
2008-03-30 12:36 pm

Collective time travel

Last night was the first change of the clocks since I got my latest radio-synchronised alarm clock.

This clock, unlike its predecessor, is unable to walk and think at the same time. Or rather, it's unable to both display the time and synchronise itself with radio signals; so once every 24 hours it shuts its time display down while it listens carefully to the radio for up to 15 minutes before being satisfied it's got it right. And it has to do this only once a day, because shutting the time down is annoying and has to be minimised.

It turns out, in a staggering display of careful, attentive-to-detail design, that the time of day at which it chooses to do that is just before the radio signal adjusts when the clocks go forward or back. So my alarm clock is still wrong today, though it will presumably be right tomorrow. Or at least it had better be.

Good grief, who can have thought that up? It's not even as if you need to fully comprehend the MSF signal to know the clocks have changed: there's a one-bit DST flag broadcast every minute.

While I'm ranting, I'm also not fond of the way the clock change is officially mandated to happen. Instead of having certain times of day sometimes happen twice or not at all, it'd have been much better if they'd arranged that the hour between (say) 1am and 2am either went at double speed or at half speed, but remained monotonic. The only possible excuse is that the people who devised the current scheme had never heard of cron(1).

simont: A picture of me in 2016 (Default)
2008-03-18 10:09 am

Scattered showers

A few weeks ago my shower developed an annoying leak. Every time I got out of the shower, I'd see a big puddle of water on the bathroom floor in spite of the shower curtain supposedly being in the way.

This is the first serious homeowning problem which I've been able to solve without calling in a professional. However, none of the process was fun, not even the end of it. The stages I went through were as follows:

long but hopefully faintly amusing account of DIY incompetence )

Bah.

simont: A picture of me in 2016 (Default)
2008-03-17 01:25 pm

It's a small world and it smells funny

On Saturday I went to the Depot (formerly the Vaults), in a small group gathered by [livejournal.com profile] cartesiandaemon who had recently tipped me off that it had a gluten-free submenu. This was an excellent experience, not least because it was the first meal I've eaten in a restaurant since 20061; usually the sheer hassle of finding coeliac-friendly eateries puts me off. And the Depot is also an excellent place to have your first restaurant meal in two years, because its unusual menu structure (lots of starter-size dishes, you order a lot of them and have a bit of each) meant I didn't have to dither over which of the many appetising things on the menu to select. ‘I'll have nearly all of them, please!’

Anyway. It turned out that one of the group who I didn't already know is also coeliac, and not only that but is on the committee of the local branch of the Coeliac Society. Apparently this is entirely coincidental: her other half (also present) was at university in Jack's year. Small world.

During a discussion over what wine to order, I excused myself from making detailed wine-buying decisions on the grounds that my absent sense of smell rather rules out a career as a wine expert. The abovementioned other half promptly startled me further by asking

Tim ‘Did I just hear you say you've got no sense of smell?’
[livejournal.com profile] simont ‘Yes, that's right.’
Tim ‘Are you therefore Simon Tatham?’
[livejournal.com profile] simont <blinks several times> ‘Yes!’

thus proving that the world is even smaller, or possibly merely that I am still the Internet's most famous anosmic. (He'd encountered my FAQ on Reddit.)


1. well, unless you count having lunch in Tatties once last year, on a technicality. I don't.

simont: A picture of me in 2016 (Default)
2008-03-11 11:17 am

Antinouns

Over the past decade I have been gradually forming an opinion about computing, and it is this: complex computer systems and pronouns do not mix well.

I said something like this nearly ten years ago in my article ‘How to Report Bugs Effectively’. Near the end I mentioned that when writing a bug report you should be careful of pronouns, because they can easily turn out to have more than one plausible referent and render your sentence ambiguous. Since then I've been gradually forming the opinion that this principle goes further than bug reports, and should in fact be extended to most – if not all – statements about computers which are intended to be technically precise.

The reason I say this about computers in particular is that computer systems seem to be a particularly fertile field for not being quite sure which bit of them someone's talking about. A complex computer system contains a great many cooperating processes, programs and scripts, so if someone says something like ‘it couldn't find the file’ then there are often several of those programs and scripts which might plausibly have been looking for the same file, so it's easy to be unclear about which the person meant. (And, indeed, there are often many files those programs could have been looking for; ‘the file’ in my above example isn't technically a pronoun, but for these purposes it can easily have the same vagueness problem.)

Part of the problem, I think, is that people are often not sure themselves which part of a complex system they're talking about. That's excusable when a user is reporting a bug: as long as they can clearly describe the visible symptoms, it's not their responsibility to understand the tangle of interoperating processes that gave rise to them. But if (for instance) there's a subsequent conversation between two programmers trying to fix the bug, and one of them advances a hypothesis about what's going on, then the excessive use of ‘it’ in the statement of the hypothesis seems to me to be correlated with the programmer being hopelessly confused about which part of the system is doing what – often leading to the hypothesis being fundamentally unviable.

I wouldn't go so far as to say that one must not use pronouns; but I think that if one is trying to conduct a precise technical conversation, one should at the very least

  • make sure one has a clear idea of the exact referent of every pronoun one uses, and be prepared to state that referent precisely if queried
  • be sparing in the use of pronouns: be aware that there's a constant risk of ambiguity, and only use a pronoun when you're reasonably sure it's safe to do so. In particular, become less willing to use pronouns the more involved the conversation becomes.

(I'm half tempted to coin the word ‘antinoun’ to describe a pronoun used to – not necessarily consciously – cover the fact that you're not sure what its referent is.)

simont: A picture of me in 2016 (Default)
2008-03-09 12:49 pm

Don't bore us getting to the chorus

So the other day Stephen Fry wrote a long blog post about pop versus classical music, and his specific reason for preferring the latter. I've seen a couple of posts discussing whether he was right, but reading the post has reminded me that when I was a child I also preferred classical music for a specific reason, but the reason was completely different.

The thing I disliked about pop music when I was young was that there wasn't enough music in it. Specifically, the same verse and chorus section tended to be repeated several times throughout a song, pretty much exactly unchanged except for the lyrics sung over the top of it. But, at the time, I just wasn't very interested in lyrics compared to music; so I tended to feel shortchanged by four minutes of pop song compared to the same length of classical music, because the latter tended to have more different music packed into its four minutes whereas the pop would only have one minute's worth of tune repeated over and over.

(The observant will notice that this isn't really about classical music; it's about instrumental music. And, indeed, I eventually worked that out for myself: the first modern musician to really hold my interest was Jean Michel Jarre, largely because his music was instrumental.)

I got over it in the end. I now like lyrics as much as the next person, and I have no fundamental problem with repetitive tunes any more as long as the lyrics make them worth my while.

But musical and lyrical variety don't have to be mutually exclusive; even in verse-and-chorus structured songs, it's possible to have melodic or harmonic evolution between successive instances of the verse and/or chorus, and the occasional song which manages that still makes me particularly happy. There needn't even be very much of it, as long as it's done well: for example, there's a two-note change between two choruses in the Sisters' ‘First and Last and Always’ which has always struck me as just right. And the subtle tweaks to the tune between successive verses of Steve Vai's ‘The Silent Within’ make me rather fond of the song in spite of the fact that I'm pretty sure I wouldn't like it at all otherwise.

simont: A picture of me in 2016 (Default)
2008-02-29 03:03 pm

Hitchhikerianism

I was having a conversation this morning about the meaning of life. I suggested that one of the biggest problems is that it's such a vaguely specified concept, and another is that talking about the ‘meaning’ or ‘purpose’ of life in the first place suggests a presumption of some sort of intent in the mind of ‘whoever’ put life there in the first place, and hence a presumption of some (fairly nonspecific) form of theism. Which is fine if you're a theist anyway, but makes the question a difficult one to even start answering if you're not.

So I said that if the question were rephrased into one which is neither presumptively theist nor hopelessly and unanswerably vague, I'd be happy to try to answer it; and then I mused that actually it wouldn't surprise me if it turned out that any such reworded question was embarrassingly trivial to answer, and that the really difficult aspect of the original question lay in determining what non-vague rewording of it you really meant to ask in the first place.

This seemed like a basically defensible position to me when I said it, and nicely articulated the essential frustration I have often felt when discussing the question. ‘If you tell me what you mean by that, I'll try to answer you!’

However, it wasn't until an hour later that I thought about what I'd said. Giving an answer to the Great Question is relatively easy compared to working out what the Question was in the first place? Suddenly I realised I'd heard someone say that before, and it was Deep Thought.

So my philosophical worldview has apparently been subconsciously shaped by Douglas Adams. I suppose there are far worse people, but I'm still a little unnerved to discover that.

simont: A picture of me in 2016 (Default)
2008-02-27 01:37 pm

A Pro-Thought Manifesto

(I've had this lurking around in my file of half-written rants for some time. It came up in conversation today and someone expressed interest in reading it, so I thought perhaps it was time to polish it up and post it. I'm probably mostly preaching to the choir here, but I wanted to get it down in writing anyway.)

it's also a little bit long )
simont: A picture of me in 2016 (Default)
2008-02-26 12:00 am

The Internet's most famous anosmic

Nearly four years ago, I wrote a FAQ about having no sense of smell, and put it up on the web.

Since then, people have occasionally happened across that web page and sent me comments on it. In four years I have received 43 such comments (it's easy to count them since they have their own mail folder), which works out to an average rate of about one comment a month or so.

Today I received thirteen comments on that page, which was unprecedented and not a little startling. One of them, helpfully, told me why: my FAQ was listed on the front page of Reddit. It was half way down the second page when I just looked, so with any luck the comment rate will now drop, but for a few hours there I was apparently the Internet's most famous anosmic. How strange.

simont: A picture of me in 2016 (Default)
2008-02-21 11:19 pm

Assaulted in the street

I was physically assaulted in the street on the way home from the pub just now…

… by an extremely tiny puppy, who ran up behind me and collided with the backs of my legs, provoking a loud yell of surprise before I realised I hadn't been harmed in any way.

How sweet. But also rather unexpected and startling; it must surely have noticed that there was something in its way?

simont: A picture of me in 2016 (Default)
2008-02-17 12:51 pm

Graphic design problem

Over the past couple of weeks I've done a considerable amount of work to port ick-proxy, the disgusting URL-rewriting utility I wrote a few years ago, to run on Windows. Unlike Unix programs, Windows programs need icons; but I haven't yet been able to think of an icon design which is both (a) usefully related to the nature of the program and (b) within the scope of my drawing skills.

The function of ick-proxy is to arrange for a web browser to notice when it's asked to visit selected classes of URL, and modify the URLs into different ones before going there. I use this to append ‘?style=mine’ to nearly all Livejournal URLs I visit, so that I see everyone's LJs in my own nice readable style instead of the eye-torturing monstrosities favoured by some people who aren't me.

The method by which ick-proxy achieves this function is to load the browser with a complicated Javascript proxy configuration file which recognises specifically those URLs which require a rewrite, and tells the browser to retrieve them by going via a custom web proxy. That web proxy – the actual ick-proxy program itself – handles requests for rewrite-requiring URLs by returning a 302 response (temporary redirect) pointing at the rewritten URL. The browser's proxy configuration does not in turn direct that URL to the custom proxy, so the browser retrieves it in the normal way. This means that ick-proxy is never required to do any real HTTP proxying – it's only ever called when it needs to return a 302, and in fact it will return an internal server error if you call it in any other context. If you think this entire idea is thoroughly disgusting, I wouldn't disagree (hence the name), but in fact I've been running it for four years now and it's been astonishingly robust and reliable.

However, since it just took me two longish and quite technical paragraphs to describe what the program does, it's unclear to me how I can express anything even approximating that in a 16x16 icon, or even a 32x32 one. My best idea so far is to have the icon represent the program's name rather than its function, by showing a human face screwed up with its tongue poking out in an ‘ick!’ expression. Unfortunately, I don't think I can draw that recognisably.

So, anyone else got any clever ideas for a suitable icon?

simont: A picture of me in 2016 (Default)
2008-02-12 10:55 am

Long vehicle

On Saturday night, I saw a long limousine parked by the roadside, with a bunch of teenagers milling around outside it. I assume it had either just taken them to a party or was just about to.

Parked behind that was a second long vehicle, of a type I hadn't encountered before. It was to a limousine as an SUV is to a normal car: taller, rugged-looking design, big wheels, intimidating front grille, but still a long vehicle. A Sports Utility Limo.

I suppose, thinking about it, there are one or two practical advantages to the design over a normal limo; for instance, it might be easier to move about inside it with a bit more headroom.

However, I was a little disturbed nonetheless by the concept of an SUV limo, and in particular I can't help thinking that what the world really needs is for Jeremy Clarkson to take one off-road and laugh at its performance :-)

simont: A picture of me in 2016 (Default)
2008-02-05 04:39 pm

All Hail

Gosh, that's pretty serious hail out there. And I do believe I just heard it set off someone's car alarm in the car park :-)