UI Problem: Dynamic Locale Switching

I recently came across bsmedberg’s Locale Switcher extension. I was thinking that something like this was needed for Internet cafes, where successive people may want to use the browser in different languages. However, the ability to change languages on the fly is not common, and so the UI for doing so needs to be really obvious and up-front if people are going to find it and take advantage of it.

The problem is further complicated by a technical limitation. It’s not possible to change the language of an already-existing window. All you can say is that all new windows should have the new language. And so the UI can’t just be a set of buttons where you click one and get on with what you were doing.

Here’s my current attempt at the UI for an Internet Cafe Locale Switcher. Comments are very welcome.

Each browser window has a toolbar, which looks something like this (except fixed up and fitting with the rest of the UI and so on):

New windows in:        



|


|

  • The toolbar appears in every top-level window, and changes to it are synced between windows.
  • As you hover over each control in the toolbar, two things happen:
    1. The phrases “New windows in” and “Open New Window” change to be in the relevant language
    2. A tooltip appears, saying “Make new windows use an English interface” or equivalent.
  • The space for the “New window in:” text is long enough for the longest configured string, so that the controls don’t move during mouseover.

This is the clearest thing I can come up with which reflects the fact that the change of language is really a setting for future windows rather than for the current window, yet makes it as easy as possible to get a new window in that language, without possibly losing or hiding any work the user may have in the current window.

Comments?

Scripts and Barriers

I’m currently sitting in the ICANN IDN workshop in Vancouver, Canada. It’s past 7pm now, and we’ve been here since half past twelve. It’s been very interesting, if long. The main focus of the session is IDN at the top level – IDN TLDs – but we also had an hour on IDN at the second level, where Michel Suignard of Microsoft and I gave presentations on IDN in IE and Mozilla respectively.

One feature IE’s IDN implementation has which we are not proposing to adopt is that it has a notion of “scripts that you know about”, and if you visit a website using an IDN in a script you don’t know, it displays the IDN as punycode and gives you a yellow security warning bar.

I think this idea is very worrying, because it balkanises the Internet. Instead of a global namespace, you have lots of smaller ones with mutual distrust between them. This seems to me to be counter to the very idea of IDNs – that everyone in the world is placed on the same level, rather than the current situation where Latin-based languages and English are the first-class citizens. It would also have a deterrent effect on IDN uptake. Who is going to use an IDN name if an unknown percentage of web surfers are going to get given a security warning when they visit it? This is particularly bad for users of minority scripts, who almost no-one is going to trust be default.

From an implementation perspective, it also has practical problems. How is an Iranian going to react when he visits an Internet cafe in the US and is told that all his websites are suspicious? What about computers used by multiple people, each of which knows a different set of scripts? (E.g. a house where the father happens to have learnt Chinese at night school, but the rest of the family don’t know it.) It also means that your browser needs additional configuration because of IDN, which I believe should be an active anti-goal of our IDN work.

But I also can’t see the point. What risk does it mitigate? As long as it doesn’t look like the domain name of my bank (and there are other mechanisms for dealing with that), where is the risk for me in visiting a domain whose name happens to be in Russian, or Chinese? I can’t see one.

I hope that Microsoft change their mind and remove this feature.

How Free Software Development Should Work

While at EuroOSCON, I went to a presentation by a company called Zimbra. They have a very cool Ajax/DHTML (both nasty terms, but what’s better?) email and collaboration suite. Check out the demo. Afterwards, I mentioned I was from the Foundation, and one of their developers said that there was one particular bug in our XMLHttpRequest implementation which caused Firefox on Linux to spin using 100% CPU when used with Zimbra – bug 273578. They’d had to make their own internal builds of Firefox for testing to get around the problem. We looked the bug up, and there was a patch with review and super-review, but it hadn’t been checked in because the author didn’t have checkin rights and no-one had been asked to do it.

I sent some email from my laptop via the conference WiFi, and around an hour later Darin checked it in on the trunk. Zimbra QAed the builds on their web application and others, and confirmed that nothing seemed to be broken. So, 48 hours later, the patch made it into the branch as well, and Firefox 1.5 on Linux will work well with Zimbra.

I keep coming across people and companies who tell me they have problems with Firefox, but when I ask them, it turns out that they have never filed or CCed themselves on bugs. They just suffer in silence. This is an extreme case – the patch was a one-liner, and the lack of it hosed their product entirely! This isn’t how it’s supposed to work; as a free software project, we can be responsive to the needs of our users – but only if we know what they are. Once Zimbra had approached us about it and explained the problem, we were able to correctly prioritise the bug. Importantly, Zimbra stayed involved in the process and did their part (the QA) to make sure that the patch got where it needed to be. So if you’re in a similar situation, communicate! :-)

Calling Firefox One…

Recently, Oregon State University launched Firefox One, a weather balloon with a camera and Firefox banner attached. Apparently, it went up to 100,000 feet and took pictures of Firefox from the edge of space.

What the article doesn’t say is that once it reached 100,000 feet, it burst and came back down again. Furthermore, it wasn’t equipped with a working GPS transponder, and they haven’t found it yet. So if any geeks in the Western United States have some spare time, they might consider using it to drive around their locality looking for a large white parachute-like thing draped over a tree…

Here Comes Flock…

I’m currently at BarCamp in a tower block in Amsterdam, it’s a quarter to midnight, and Chris Messina and Andy Smith from Flock are here. They tell me that the first public preview of Flock, their browser based on Gecko, is going to be released in the next 24 hours. I’ve seen a demo, and they have a bunch of really interesting ideas to do with integrating social software and web services – like blogging, Flickr and del.icio.us – directly into the browser. It still has a few rough edges, though, so caveat downloador.

Update: Here it is. I don’t know if they password-unprotected the directory, but if they did, go get it. :-)

The Price Of Fame

It seems to be one of the prices of fame for Firefox that anyone who jumps up and down enough can get on the front page of Slashdot with a Firefox security-related story. Frank has pointed out that Firefox has become part of several “master narratives”, the major one of which is “the new browser wars” of Firefox vs. IE. As security is one area of comparison, it’s easy to connect to that master narrative with a story about “Shock! Firefox is not as secure as its proponents claim”. Therefore any suggestion of a new hole, which makes a story like that easy to write, is not treated with an appropriate level of investigative scepticism.

Newsflash: there are quite a few invalid HTML constructs which crash Firefox, just as I’m sure there are a lot of invalid documents which crash Word. That doesn’t mean they are all security holes – and no-one has demonstrated any evidence that this one (bug 210658) is. And claiming that it’s a DOS is frankly stretching the meaning of that term beyond breaking point. Crashing a single application used by a single person is not a DOS.

Furthermore, it’s worth repeating that security is not a state, it’s a process – and the fact that we have made regular point releases since the release of Firefox 1.0 shows that we take that process seriously. But we won’t be making one for this bug unless someone can demonstrate that it’s anything other than a common-or-garden crash.

Auto-UNCO: Stage 2 Completed

OK, so it’s all over. Some stats for you:

Product Bugs Tagged in Stage 1 Bugs Resolved EXPIRED Percentage
Firefox 3188 2544 79.8
Thunderbird 2044 1631 79.8
Mozilla Application Suite 2751 2313 84.1
Core 4353 3231* 74.2
Toolkit 6 3 50.0
TOTAL 12342 9722 78.8

*: not including all Layout components and SVG, which were excluded

You may remember from last time, two weeks ago, my calculations about filling up timeless’ Gmail account. We calculated that we could send him a bugmail every two minutes, and the account would never fill up. Now 14 days * 24 hours * 60 minutes / 2 = 10080. So, with 9722 bugs changed, we are pretty much on target there :-) Anyone got any ideas how we can keep the rate up for the next two weeks?

There are now only 6040 UNCONFIRMED bugs remaining in those five components, which is rather more tractable. If you are in QA and doing UNCO bug triage, I would at first start with bugs which went through this process and were tagged by their reporters as “yes, I still see this”. Let’s see if we can get the figure below 6000 and keep it there.

Donation Disappointment

It’s not every day that the Mozilla Foundation gets an email like this:

I would like to make a $10,000 contribution to your noble cause. Also put me on your mailing list for updates, newsletters, or anything you think I should know about. Call me at 555-555-5555 with details needed for my check. I also want to introduce you to some corporate friends of mine who can make a much larger donation. Keep up the good work…

Wow, jackpot, right? Then again, this sort of thing is usually too good to be true. So we did a little research. Yes, the guy existed, and his phone number in an online directory matched the one in the email. Yes, he was a bigwig in an large company, and an ex-banker, so he’s probably loaded. Yes, he’d previously made charitable donations to other organisations. It was all looking really promising.

So eventually, we called the number – only to find an answering machine telling us that his account had been hacked, and to ignore any messages sent in his name.

:-(

Trophy Picture

A diamond-shaped glass trophy engraved with 'Best Linux/Open Source Marketing Project'

So I retrieved the award from the hotel this afternoon :-) Here it is, in all its glory. Congratulations to everyone who is a part of SpreadFirefox (or “Spread Firefox”, as the award puts it).

The small writing which you can’t read on the low-res photo I uploaded says: “In Association With Linuxuser & Developer Magazine and, Open Forum Europe” (sic) – a sentence with three mistakes in, which must be some kind of record for a trophy.

It’s going to sit on my shelf for now unless anyone can think of something better to do with it. Suggestions involving blowtorches will be politely ignored.

Update: that last paragraph was a (poor) attempt at humour, prompted by my recollection of the blowtorch incident from Microserfs, and wasn’t intended to imply any disrespect towards the award or the organisers. Rereading it, that might not have been exactly clear. By “something better to do with it”, I actually meant “someone more appropriate to give it to” – as you know, I’m not heavily involved with SpreadFirefox. It would much rather it sat on the shelf of someone who had earned it rather than mine.


Firefox Downloads Speeding Up?

Asbjørn Sloth Tønnesen keeps some good stats on Firefox downloads. One of his graphs shows the predicted time and date for the 100,000,000th download, plotted over time. As you can see, over the last month the predicted date has been getting sooner – implying that the Firefox download rate has actually been increasing. Doesn’t it?

Linux and Open Source Awards 2005

The awards ceremony for the Linux and Open Source Awards 2005 was last night. I was fortunate enough to be sitting between someone from Powys Council, who have implemented a Free software desktop for their schools, and were up for the best Public Sector Implementation award, and Daniel James, the [Update: deputy] editor of Linux User and Developer, the award’s organisers. We had some very interesting conversations about how we can encourage kids to be interested in computers as tools they can make do what they want, rather than glitzy televisions where they just sit and consume. Free software is the way forward.

Across the table was a guy from Nokia, who had a pre-release Nokia 770 (warning – Flash) he was letting us play with. It is very cool – it’s Linux-based, and has both WiFi and Bluetooth but not GSM, so it’s a mobile phone accessory rather than a complete phone in itself. The screen is very high res, and there’s a hardware Zoom button so you can increase the page size if it strains your eyes. I got into the hotel’s WiFi but they had a captive portal, so I dialled out through his phone instead to look up the latest Firefox download number. 95 million and counting :-) On the show floor, I also met a company, called “OpenHand” I think, who did a lot of the work on the software.

Also on the table was Rasmus Lerdorf, the inventor of PHP. He was very insistent that PHP was really a tool for his own use, and so features tended to appear when he or another core group member needed them rather than when anyone else did. Which is fair enough :-) At one point, the conversation turned to PHP 5 adoption rates, and Rasmus said it was like Apache – PHP 4 worked so well that it took people time to upgrade.

Oh, and SpreadFirefox won Best Marketing Project! Although I collected the award (amid pounding music), I should point out that it was actually won by everyone who has encouraged anyone to install Firefox on their machines – the thousands and thousands of people around the world who have fallen in love with our software, and care enough about friends, colleagues and workmates that they want to set them free from the scourge of viruses, popups and spyware. This one’s for you :-)

I would put up a photo of the award but I accidentally left it at the hotel :-( I’ll pick it up on Saturday and post a photo then. Oops…

LinuxWorld Log

LinuxWorld was fun, although it’s quite a corporate show – most of the space is big business booths, with the real projects segregated into the “.org pavilion”. David, David and Tristan (whose badge said he was from “Moxilla Euorpe”) at the Mozilla Europe booth were complaining about the lack of Internet access, which is a bit of a downer if you are showing off a browser.

Wandering around the show floor, I had some interesting experiences:

Non-Technical Salesman: Sir, can I tell you about <product>?

Gerv: Go on, then.

NTS: Well, it lets you run Linux applications on Windows, and Windows applications on Linux!

Gerv: Wow, that’s, er, quite impressive.

NTS: <looks at my t-shirt> Hey, you work for those Firefox people, don’t you?

Gerv: Er, yes.

NTS: Well, we could make Firefox run on Windows!

A couple of guys from Google were wandering around the stands – a sysadmin chap from Ireland, and his minder from recruitment ;-) They were giving away very cool magnetic Google logo badges with six coloured LEDs which flashed in sequence – one for each letter. Apparently they are looking to hire 50 developers this year for their Dublin office so, if you think you’ve got what it takes, visit www.google.ie/greatjobs.

I managed to get into the Technical track to hear Klaus Knopper on Knoppix, and some very interesting data from Alan Cox’s Masters thesis. I don’t know if Alan’s slides are online; basically, he was looking at “Linux on the Desktop”, the relative popularity of GNOME and KDE, and users’ perceptions. The most interesting thing was that users tend not to care which one they have, and perhaps don’t even know there is a difference – they just use what their vendor ships by default. The differentiators are now at the level above – the apps, like OpenOffice.org and Firefox.

I would have liked to have heard more talks, but when I went back for one on Open Source in Local Government, they told me that my Exhibitors pass wasn’t supposed to let me in :-(

Update: Here’s a writeup of Alan’s talk.