The Late ’98

Readers of my blog may already be bored of the subject, but my latest Times article, “the late ’98” is about Microsoft’s imminent withdrawal of support for the Windows 9x line of OSes.

As always, gentle taps with a cluestick are welcomed.

Knoppix Easter Egg in Ubuntu…

I’ve always liked Jamie Zawinski’s XMatrix screensaver, so when I updated to Ubuntu Dapper Drake on my laptop, and found that it had reset to “random”, I went looking for it. It wasn’t there; instead, I had a choice of “GLMatrix”, a 3D version, or “MatrixView”. I opted for the latter,

Sadly, it doesn’t have the configuration options of the previous version, but it does have one new feature. It fades silhouettes in and out as the strange characters fall from the top of the screen. Mostly it’s stills from the movie or other head shots, but one of the images just says “KNOPPIX.RU” in big letters! :-)

Challenge-Response Anti-Spam

I just got emailed by someone I’d never heard of; I replied. However, their mailbox is “protected” by ChoiceMail, and so I got back a verification challenge. However, Thunderbird marked it as junk mail so I nearly missed it. Had I done so, after four days my carefully-written email would have been sent to the bit-bucket and neither side would ever have known.

My beef: these systems suck. But, if companies must offer them, why can’t they make them suck less by also offering an (authenticated) SMTP server which the customer could use? Then, when the communication was initiated by their customer, they could automatically add the recipient to the whitelist.

That would cut down the irritating “please authenticate yourself” email to the situations where the other party initiates contact – which, for an average random person, is probably about 50% of the time. And those 50% of cases are those where the other party is more motivated to jump through hoops – because they had a desire to start a conversation in the first place.

Even more smartly, if they find two ChoicePoint customers whitelisting each other, thereby establishing a simple trust network, then their whitelists could be merged. So if A writes to B, “email my mate C”, and all are ChoicePoint users, there’s no challenge email, because B is on A’s whitelist, and A and C’s whitelists are merged because they email each other.

GPLv3 Draft 1 Comments

This blogpost summarises my major comments on the initial draft of version 3 of the GPL.

The excellent GPLv3 comment webtool covers a lot of the small wording changes and clarifications that I think are necessary. I look forward to seeing what account has been taken of these in the second draft.

I want to focus here on four changes I think would greatly improve the licence. In decreasing order of importance:

The “Web Application” Clause, and Modification Restrictions

Section 7 (“License Compatibility”) is the part of the GPLv3 which allows copyright owners to add certain additional conditions. Most of them are designed to make it unambiguously permitted to ship GPLed code with Apache-licensed or BSD-licensed code. However, section 7d) says:

d) They may require that the work contain functioning facilities that allow users to immediately obtain copies of its Complete Corresponding Source Code.

Many uses of this clause, as written, would constitute a restriction on modification, and so make the licensed work no longer free software.

This clause was added for upward compatibility with the Affero General Public Licence, a modified GPL with a poorly-drafted clause which restricts modification and requires immediate HTTP download of source. I don’t think it’s possible to write this clause so that all possible 7d) additional restrictions are free, but I think it’s possible to word it in order to make it much more likely that they are. My current suggestion is as follows:

d) They may require that if You propagate a covered work in a way that causes it to have users other than You, You must allow those users to obtain copies of the Complete Corresponding Source Code.

This way, it’s an extension of your distribution obligations and not a restriction on the functioning of the program. So, I could say “fill in my web form and I’ll mail you a copy of the source code”, and that would be OK. Or I could stick a notice on my web kiosk saying “call this number to request a source code CD.” My suggested clause specifies results, not methods.

It’s probably backwardly-compatible with the Affero GPL; if not, you could add “They may, but are advised not to, specify the mechanism by which the CCSC must be obtained.”, and organisations like Debian could simply say “if people do that, it’s not free software”.

“Access To Copy” and CDs

If you distribute GPLv3’d binaries on a CD, you also have to hand over a copy of the source (on the same or another CD; section 6a) or provide a 3-year valid written offer (section 6b).

However, if you offer it for download (section 6d), you merely have to make the source available; you don’t have to force the user to download it.

I think we should apply the second principle to the first case. It should be enough to offer the source code when distributing CDs; we should not force users to take it.

Say I’ve put together a GPLv3-licensed Operating System. The OS fits on one CD but the source, being larger than binaries, requires another three. I am giving away or selling CDs at a computer fair. Should I have to give four CDs to everyone? Or should a “Here’s the binaries; do you want the source as well?” not be good enough? It would certainly save me money, time and hassle.

Other Comments

Point 3 is the removal of the clause “no permission is given to distribute covered works that illegally invade users’ privacy” from section 3, which a lot of people have suggested is incompatible with software freedom and the FSF’s own stated position; I suspect this will happen.

Point 4 is that the modifications to section 5c) have made it very unclear, and it needs cleaning up to make it obvious that it’s as irrelevant in general practice as it always has been :-) This has been taken on by one of the committees, so I think this will also happen.

The second draft is due in June.

“Skilled, Disrespectful And A Touch Criminal”

[Oracle Chief Security Officer Mary Ann Davidson] claimed that the British are particularly good at hacking as they have “the perfect temperament to be hackers–technically skilled, slightly disrespectful of authority, and just a touch of criminal behavior.”

“Just a touch”? How sweet.

For the confused, that sort of hacking is not my sort. See “Why ‘Hacking For Christ’?” for details.

Amazon Ajax Book Reader

A while back I dissected Google Print – a hack which I was chuffed to have chosen to be reprinted in “Greasemonkey Hacks“. Now, Amazon have come out with their own Ajax book reader. It uses all the same tricks the Google one does (disabling the right-click menu, putting a transparent GIF over the content, using CSS backgrounds to thwart printing and Save Image As…, and so on) but has a few new ones of its own.

Firstly, it’s serving up the JPEGs as at least one unusual MIME type. When the page image is downloaded as part of the reader, LiveHTTPHeaders tells me it’s text/plain, but when I access an image URL directly, I get an offer to download it to disk. Perhaps that’s Firefox noticing that it’s binary data, or perhaps it’s sending a different type when there’s no Referer. Anyway, you can’t view the images directly in a web browser, whatever you do. Cunning.

Secondly, the page image URLs are of the form:

http://lookinside2-images.amazon.com:80/Qffs+v35lequprNEMPutod5Bzs1h6sFoa355lEmcXkudq4PesXEiM3eNX2Q93ZDMpWoj0SSHSe4=

So they have no extension, and you can’t associate a non-existent extension with your browser or image viewer.

There’s also a download of a mysterious thing called “ffcopy.swf”. I can’t work out what that’s for; installing FlashBlock doesn’t have any effect on copy and paste behaviour…

Making A SoC Project List

We as an organisation made what I see as an unfortunate mistake in our Summer of Code project proposal process. We had the scratchpad for possible SoC projects be the same thing as the official list of projects – i.e. here, on the mozilla.org wiki, which is a public wiki on which anyone can have an account. The only clue as to whether an idea was “more official” was if a mentor’s name had been placed in the Mentor column; and even then, you had no way to tell whether that person had put their name there themselves.

This resulted in some unfortunate effects – primarily, students putting time and effort into applications which were bound to be unsuitable for a number of reasons.

I’m not going to be too specific about which projects I mean, as my point is not to criticise the people who put ideas on the wiki. It’s our fault that we didn’t make a clear separation between idea brainstorming and approved projects. But some of the problems with some projects in our list were:

  1. Project too small. There were a number of ideas that, while worthy, were clearly not worth $4500 to implement.
  2. Project too large. Conversely, some projects were quite clearly impossible to complete in eight weeks.
  3. Project too vague. “Improve foo” or “Provide a better experience for bar” leave the student with a lot of work to do to make their task concrete.
  4. Project premise incorrect. One project was to finish off something “started in last year’s SoC”, which actually wasn’t! Applicants for that proposal had clearly not done much research anyway but still, it would have been better if it was not there.
  5. Project pulled in multiple directions. Someone added a project idea, and someone added a related idea to it, until the project plan became ill-defined and near-contradictory.
  6. Project simply a bad idea. There was one particular project which had ten applicants but, on closer inspection, was clearly a terrible idea.

In summary, I think that next year we need a brainstorming page, and a separate “approved projects” page containing only those projects which have been assessed for size, scope and desireability and in which mentors have expressed an interest. In fact, it would be great if the Approved Projects system was part of the Google application webtool; that way, the mentors could easily sort the application list and assess the five people who want to do the same thing side by side. (Of course, you can apply to the SoC to do anything – and the tool would need to reflect that possibility too.)

I’d be interested in the experience other projects had in putting their lists together, and the methodology they used.

Something Like Rails Is the Future

Recently, Ruby on Rails has had a lot of press. This month’s Dr. Dobbs has a cover story: “Ruby On Rails: Java’s Successor?“. Having attended a full day Rails tutorial at the start of XTech, I must say I am pretty impressed. If you are building database-backed web apps from scratch – and, let’s face it, a heck of a lot of people are – it’s great. I’ve not seen anything else that gives you so much for so little work.

But it seems to me that the ideas that Rails is based on – convention over configuration, special purpose frameworks for quickly performing common tasks, MVC, domain-specific languages, test driven development – are “the future”. In the future, all of these ideas will be received wisdom – people working on web applications from scratch will be looked upon with the same mix of pity and fear as someone writing a desktop app in assembler would be looked upon today.

At the moment, Rails may well be the best embodiment of those principles. But it doesn’t have to have exclusivity. So that’s why I say that the future is “something like Rails”. It could be Rails – but If another thing comes along which follows those principles and improves upon them, that will be the future.

Technorati tag: xtech

VoIP Rant

Why is trying to make a SIP call so ridiculously complicated?

Skype have it sorted. You download Skype, install it, register a nickname and you are ready to go. You can call anyone anywhere, assuming they are online, just by knowing their Skype ID.

With SIP, on the other hand, you need to register with one of a load of competing services, all of which have websites which are far keener on selling you WibbleOut and WibbleIn minutes than actually telling you how to configure and test your client. Despite a load of “SIP is open; Skype is closed” rhetoric, instructions are also sadly lacking on how you call people who have registered with one of their competitors.

And what about the state of softphones in Linux? I haven’t tried kphone, as it’s KDE and my desktop is Gnome, but linphone is a configuration disaster, and their website doesn’t tell you how to configure it for the most popular services – surely the one really useful bit of information it could possibly provide! Gnomemeeting is better, but the SIP version of that isn’t packaged for the latest Ubuntu. And, with all respect to Dan Glazman, the Wengo extension for Firefox gives you no clue whatsoever as to whether it’s logged on, correctly configured or working in any way. If you add contact called “gfdgfdgsdf”, it appears exactly the same in the contact list as one called “glazou”. Not a particularly useful way of telling if you’ve actually entered the right things into the right boxes.

And when you do try and configure e.g. linphone, you need usernames, ports, addresses, passwords, proxies, and so on. What on earth is the difference between a “SIP Identity” and a “SIP Proxy” in the linphone “Proxy/Registrar configuration box”? For that matter, what’s the difference between a proxy and a registrar? And why should I have to care?

Let’s say you’ve got as far as having a configuration you think might work. Where are the public echo services which let you find out? FreeWorldDialup has one, but Wengo doesn’t.

I want to fire up a client with a simple UI, enter a username (e.g. gerv@fwd.pulver.com) and a password, and be able to make calls to anyone else who has a SIP phone and whose username I know. All I need is a text box to type it into – no fake dial pads, DTMF or other POTS-holdover rubbish. I wouldn’t even mind paying a small subscription for the privilege. Why is it not that easy?

CVS Poetry (Part 2)

Following on from “Daffodils“, here’s another lovingly crafted example of CVS checkin comment poetry – “Dulce Et Decorum Est“. It’s taken almost exactly a year to do. I chose that poem because it’s a childhood favourite, and a timely reminder of the lies behind gung-ho encouragements to war.

For those who don’t read Latin, “Dulce et decorum est pro patria mori” means “It is good and right to die for your country”.

And I so nearly got it perfectly right, too… spot the deliberate mistake.