Alastair’s Place

Software development, Cocoa, Objective-C, life. Stuff like that.

Shari‘a? Thanks, but No Thanks.

According to the BBC, Rowan Williams, the Archibishop of Cantebury no less, thinks that the adoption of Islamic Sharia law in the U.K. is unavoidable.

Let’s just re-state that:

The head of the Church of England, which is, let us not forget, a part of the British state, is saying that, in the Christian religious state in which we live, Islamic law should apply in at least some cases?!

I think he’s taken leave of his senses. I certainly hope so.

Even if it only applies if Muslims choose to use it, what about disputes between Muslims and non-Muslims? And why should Muslims be able to choose to adopt a different law from the rest of us, if it so pleases them? And what about situations where a Muslim is forced, against his or her will, to seek an opinion from a Shari‘a court?

No, no, no, no!

If Britain’s many Muslim citizens have a problem with English or Scottish law, they are free to emigrate to a country with different laws. As an atheist, I’d prefer it if English and Scottish law was secular, and if it didn’t grant extra rights to people with silly supernatural beliefs (which, right now, it does), but it’s pretty clear that a piecemeal legal system based on whichever religious laws a person finds most acceptable is just plain crazy.

If some idiot politician tries to push through a bill allowing the use of Islamic religious law in my country, I will be on the streets in London demanding their resignation. And so, I hope, will millions of others.

HFS+ Is Crap, Says Torvalds

According to the Sydney Morning Herald, Linus Torvalds reckons that HFS+ is “complete and utter crap”:

"I don't think they're equally flawed - I think Leopard is a much better system," he said. "(But) OS X in some ways is actually worse than Windows to program for. Their file system is complete and utter crap, which is scary."

Macworld UK is mis-reporting this as a pronouncement that Mac OS X itself was “crap and scary”. Great journalism, Macworld.

Anyway, FWIW, I think Linus is wrong. The design of HFS+ is certainly unique, and it does make concurrency difficult on larger SMP configurations (because of its use of a small number of centralised data structures). However, it wasn’t designed for 96-way SMP boxes sat in a server room, and it does what it does quite well, I think. Perhaps he’s referring to the recent tendency to add features by creating files and folders with unusual names, then having the filesystem hide them from the user? It does perhaps seem a little odd, but it is very backwards compatible which is nice.

I also think that he’s wrong that OS X is worse than Windows to program for. I don’t know how much of either Linus has actually done (one supposes he spends most of his time working on Linux), but my experience has been that OS X is very much more pleasant than Windows. And I really don’t know how Linus thinks that the filesystem impacts on that situation at all.

Programmers, Mind Your Hands

This week hasn’t been the greatest ever for me. On Monday, I was swamped with support (it was coming in as fast as I was answering it), and ended up still at work at 7:30pm. Ditto Tuesday (7:30pm again), though that was partly because I started the day with a lot of replies to messages I’d sent on Monday (in reply to queries that had come in).

Then yesterday I woke up with a nasty headache.

But today is worse. Today, it has become apparent that I’ve injured my left hand. I’d been finding for a few days that my hand started to hurt a bit in the early afternoon (and I mean, somewhere inside the hand itself, not on the surface and not the muscles that control it). But today it was really unpleasant, a sharp pain, not unlike a bad headache but inside my hand. I tried resting it a bit, and the pain went away, so I suppose it must be a typing-related problem, and since I don’t want to end up like poor Ben Wing, that means typing one-handed and resting my broken hand.

Only, typing one-handed is slow and I make mistakes :-( :-(

I feel about as much use right now as a chocolate teapot.

Is This the World’s First Anonymous Declaration of War?

Matt Webb on an an anonymous declaration of war on the Church of Scientology.

I still harbour the hope that Scientology’s founder, L. Ron Hubbard, may have filed a document repudiating the claims of the Scientologists with a law firm or bank, with the instruction that it be sent to the press a couple of hundred years after his death, thereby giving just enough time to ensure that there is significant recognition of Scientology as a religion before its founder outs the entire thing as the second greatest hoax in human history (the first greatest, of course, being Abrahamic religion).

Sadly I think it’s unlikely.

Ptrace() and the “freetards”

It seems some of the “freetard” community has decided that it’s unacceptable that Apple provides even a nod towards copy protection in its operating system. I’m referring, of course, to the PT_DENY_ATTACH flag that can be passed to ptrace() to prevent debugging tools from examining a process.

The fact is that without this type of measure in the operating system, it would be trivial to misuse debugging tools to circumvent copy protection measures in applications, and I don’t just mean iTunes. A lot of shareware and commercial software calls this function to prevent casual debugging of its registration and/or activation code. And that should be no surprise. Casual piracy over the Internet is a huge problem for software developers; it’s much worse than the old problem of people swapping floppy disks or letting their friends have copies of programs that they’ve bought… much worse, because people allow everyone to have copies, which fundamentally undermines the value of software. As a result, those of us who write software for a living have to do something to prevent that from happening.

The very idea that Adam Leventhal, Brendan Gregg et al. have some right to be offended at this feature just beggars belief. It is complete and unmitigated rubbish to suggest that this is about “preventing defects from coming to light” or that it is in some way a slight to Open Source software that Apple has done this (indeed, DTrace is released under the OpenSolaris License, which explicitly allows modifications; it doesn’t disallow modifications that the original developers don’t find politically correct).

It may be true that the current blocking of DTrace has some unintended consequences, in which case Leventhal should file a bug report with Apple, just the same way the rest of us do when we find things that are wrong or that we don’t like. But this business of grandstanding about it because of some anti-copyright ideology is just plain wrong, as is Landon Fuller’s intentional sabotage of PT_DENY_ATTACH, both in ptrace() and DTrace, which, in addition to being immoral1, is probably illegal under DMCA/EUCD.

Update: Landon Fuller says that he’s pro-copyright and even pro-DRM, but in spite of that I get the impression that he still feels that it’s appropriate to publicly distribute a workaround for PT_DENY_ATTACH, in which case I stick by my assertions above.

1 Why immoral? Because by calling ptrace(PT_DENY_ATTACH), the author of a program is making a clear statement that they don’t want their code to be inspected by a debugger, at least not without explicit permission. Publicly distributing a workaround undermines the wishes of the author. Private distribution of the workaround wouldn’t bother me that much, because it would show that Fuller was using his discretion when distributing his kext, rather than handing it to anyone for any purpose.

Will Identity Cards Be Useful?

The government here in the U.K. is planning to issue identity cards. This is a great idea, in principle, as if it is done properly it could end or at least significantly curtail identity theft. The problem is that if it’s done wrong, it will just be a pointless waste of time and money.

The BBC is currently running a story about how the ID card scheme is to be delayed, in which it says:

They have also come under fire from experts, including Professor John Salt, of University College, London, who has advised the government on migration trends. Asked by a House of Lords Committee on Tuesday if ID cards would help curb illegal immigration, Professor Salt said: "No, if they are capable of being forged - and that is probably likely to happen."

I think it’s a little mischievous of the BBC to use that quote like that; Professor Salt is a Geography professor, and since preventing forgery of these identity cards is a technology issue, it seems reasonable to question his expertise in suggesting that it is “probably likely to happen”.

Certainly I see no reason why it should not be possible to prevent forgery using smart card technology. You would ideally want a tamper-proof mask over the chip to prevent probing, and you would need a well-designed cryptographic system as well as careful software design for the card. But if those elements are in place, it shouldn’t be possible to forge or even copy a card, since the card wouldn’t provide any data except to a central government-run system, and even then it wouldn’t be possible to intercept the information given proper use of modern cryptography.

I don’t think forgery is the primary threat. On the contrary, I think the primary threats come from the mechanisms for (a) issuing cards in the first place, and (b) replacing cards that are lost or stolen. The issuing mechanism is an obvious point of attack, since people can present false documents in order to obtain a legitimate ID card. The replacement mechanism, likewise, requires some sort of identity check, which could potentially be defeated (that’s true even for things like iris scans, by the way).

Personally I’m broadly in favour of an identity card, and I think it probably will reduce the problem of identity theft, provided it’s relatively difficult to falsely obtain legitimate cards from the authorities themselves. The big question is how the government plans to solve that problem.

Northern Rock Debacle

It must be pretty humiliating for Gordon Brown to have had the first run on a British bank in more than a century, but even worse is the government’s subsequent failure to get a grip on the situation and the £25bn of taxpayer-backed loans that have subsequently been extended to the failing Northern Rock bank.

The government should have nationalised the Northern Rock when it became apparent that there was no way for it to continue in private ownership without substantial taxpayer support. The fact is that even under the proposed rescue scheme, we, the taxpayers of the United Kingdom, are still going to be heavily exposed to the Rock’s uncontrolled borrowing for the foreseeable future. Yet the taxpayer is not going to see one penny of the Rock’s profits (should it make any).

Of course, I can see why the government is reluctant to nationalise the bank. It will trigger legal action from shareholders (but, frankly, too bad… they should have kept their Directors under control, but instead they allowed them to borrow huge sums of money and as a result have created a problem of such a magnitude that it could now affect every man, woman and child in the land). But worse, it is likely to mean that as the housing market deflates, the government would be put in the unenviable position of having to repossess peoples’ homes. My guess is that it is that that is putting the Brown government off nationalisation, but that is no excuse for saddling us with all the risk and allowing private shareholders to run off with any profit derived from that risk.

Corporate Conspiracies… Not

UNEASYsilence published a story two days ago about connections to 2O7.net from Adobe CS3 applications.

It’s scaremongering of the worst sort. The connections to 2O7.net are happening because the splash panel fetches a Flash graphic from Adobe’s website when you start the app. It is used to fill the bottom right corner, like this:

Picture 1.png

Anyway, when you load that graphic, it connects to Omniture (who own the 2O7.net domain) who provide site access statistics and the like. Big hairy deal.

It simply isn’t, as UNEASYsilence were all too keen to suggest, some sort of devious invasion of privacy on Adobe’s part.

There should be a variant of Hanlon’s Razor to cover this kind of thing. Perhaps something like

Never attribute to privacy infringement that which can be adequately explained by on-line content delivery, statistics gathering or software update.

It’s not quite as succinct now though. We need something snappier (suggestions, anyone?)

Or maybe people should just stop crying wolf every time Little Snitch tells them that an application is accessing the network.

Why Is This News?

The BBC thinks that it’s newsworthy that Liberal Democrat leader Nick Clegg does not believe in God.

I think it’s much more interesting that the BBC decided to write an article about it. Most of the British population doesn’t believe in God these days, so it’s hardly worthy of a headline on the BBC News website when we find that one of our politicians doesn’t either. That just makes Mr. Clegg representative of the people, unlike Tony Blair and Gordon Brown who both hold religious beliefs.

As a result, while this kind of thing might be big news in the United States, it’s really the fact that Blair and Brown are religious that should have made headlines over here.