Why Firefox On Linux Is Not Accelerated

bz on WebGL on Linux:

We tried enabling OpenGL on Linux, and discovered that most Linux drivers are so disastrously buggy (think “crash the X server at the drop of a hat, and paint incorrectly the rest of the time” buggy) that we had to disable it for now. Heck, we’re even disabling WebGL for most Linux drivers, last I checked…

If your drivers are decent (some of the closed-source ones can be, nouveau can be sometimes), you do get something akin to Direct2D on Linux through XRender, though. So while you don’t get compositing acceleration, you do get faster canvas drawing and the like. drawImage, for example, can be much faster on Linux than on Mac. But only if you manage to find a driver and X version that happens to not suck…

We do plan to put more work into the Linux end of this, look for workarounds for the various bugs, etc. But we could really use some help from Xorg and distros and the like here…

This is somewhat embarrassing for the Linux community. Anyone know anyone who can help?

USB NAS/Printer Adapter

Dear Lazyweb,

I just went and bought a 1.5TB USB hard disk for backups, but now I realise it would have been smarter to buy a NAS device, so that all the computers on my home network could access it. Come to think of it, I’d also rather like to share my printer across the network even when my main PC isn’t there.

Can anyone recommend a USB to NAS/Printer adapter widget? Criteria:

  • Must be connectable-to by multiple computers at once (you’d think this was a given, but apparently not)
  • Must be configurable and fully usable using only Linux
  • Must support both NAS and printer-sharing
  • Must either have 2 USB ports, or support use of a hub. 3 or 4 ports would be a bonus.

There seems to be a lot of dodgy or Windows-only stuff out there, so recommendations would be much appreciated. I’m in the US soon, so if something is only available there, that’s not a deal-breaker.

Session Hijacking in New York

Mozilla people spend a lot of time thinking about security – how to make the browser even more secure, and how to keep our users safe from phishing and data theft. Although our phishing protection (based on people reporting bad sites) is pretty good, you can imagine “perfect” phishing protection – where someone who knew all the signs of phishing were sitting there watching a user surf, and tapped them on the shoulder to say “don’t do that” when they were about to get phished.

With that kind of perfect, no-false-positive warnings about dangerous things, then the problem would be eliminated, right? I mean, no-one would carry on doing something dangerous to their privacy or security after being personally and specifically warned about the danger of their current actions by another human being, right?

Wrong.

The Odd-Sized Em

  • In typography, an “em” is the width of an M, hence the name.
  • In monospace fonts, all letters have the same width.

So: Why does monospace text with the CSS “max-width: 10em;” not wrap with a width of 10 characters?

Answer: it seems that, despite the name, 1em in CSS is actually the height of a letter in the default font size, e.g. 16px. Unless your letters are square, which is rather unusual (at least for Latin), 1em in CSS will be nothing like 1em in normal typography.

Anyone know why they did that?

Is it possible to use CSS to say “make the maximum width of this text 80 characters”? If not, why not (seems like a common requirement)? If so, how?

Temporary Mailing Lists

I’m sure everyone has had the problem of sending an email to a few people, then a conversation starts, and you realise you should have included a load of other people, and you try and CC them in, but they don’t have the earlier messages, and people from the original set keep replying to the earlier messages, and the new people fall off again…

How about an ad-hoc mailing list server? This is how it would work:

  • When you send out an initial message to a group, CC it to and set Reply-To to random-string@templist.example.com. This could be automated by a Thunderbird add-on which created a button “Make A Group Message”.
  • The templist server gets a copy of the message, and sets up a mailing list of all the participants apart from itself, with the name “random-string”.
  • Anyone who replies replies to the list; the server sends the message out to the subscribers, with Reply-To set back to the list.
  • If any of the participants need to add a new person, they CC them in on their next reply.
  • The mailing list software notices the new person, adds them to the list, and sends them backdated copies of all the previous messages for that list. The effect is just as if they had been CCed from the beginning, but their mail was delayed.
  • Once the conversation finishes, after a period of a week or two, the templist server destroys the list and deletes all the messages.

Thoughts?

e-book Reader

Dear Lazyweb,

Does an e-book reader with the following properties exist?

  • Available in the UK
  • Has a book store
  • Supplies DRM-free files
  • Reasonably priced (<£150)

In fact, if anyone knows of any DRM-free e-book readers I’d be interested. There’s a claim that the Sony Reader is one such, but recent reviews on Amazon all mention its DRM…

Upgrading Laptop Hard Disk

I just had a very pleasant experience upgrading the hard disk in my Thinkpad X200 laptop, and wanted to share how I did it with you. (This article was an inspiration.) I run Linux, but this should work for any OS.

  • Purchase a Seagate Momentum XT with 4GB NAND Flash cache – many of the benefits of SSD, but without the cost – plus a cheap USB 2.5″ hard disk enclosure
  • Place new disk in the enclosure
  • Make a backup (I missed out this step, but recommend it)
  • Download a CD image of Clonezilla and burn it
  • Reboot into Clonezilla; clone your drive with the “proportionately increase partition sizes” option, and the “check source filesystem” option. Make sure not to mix up source and destination!
  • Swap the drives over (screwdriver required)
  • Reboot
  • Find that everything works absolutely fine but df still reports your drive as 100GB.
  • Do a lot of Googling
  • Find a thread on UbuntuForums showing exactly your problem
  • Run resize2fs to resize your ext3 filesystem up to the partition size. This works for ext3 even when the drive is mounted :-)

The process was almost trouble-free. The only difficulties were I had to redo the clone with the “check source filesystem” option, because my filesystem had an error or two, and finding out what the problem was with df and how to resize the filesystem. But all in all, this was really painless. And I now have 5 times as much space, plus a handy external 100GB backup drive (using my old drive and the enclosure).

Lock-In Milestone

Wow. I have come across my first website (Quora) which I cannot create an account on without first having an account on one of a small set of other specific sites (in this case, you get a choice of Facebook or Twitter). If I’m on neither, I simply can’t participate. It’s that simple.

IOW, other companies are now driving Facebook and Twitter signups. Full control of Internet in 5, 4, 3…

An Email Address Without A Domain Name?

A few years ago, I was in China. A young Chinese girl started talking to me on the street (this was in broad daylight; her interest was entirely innocent). After a few minutes of conversation, she said “do you want my email address?” I said “sure”, and she told me it was “somename030”. This confused me. “somename030 at where?”, I asked. But she genuinely didn’t understand the question.

Even now, I don’t know what she meant – but presumably there was one particularly popular email service in China that “everyone” used, such that in her circles, the culture was to not bother specifying the domain name.

What sort of lock-in does a provider of a service have, when the use of their service, rather than that of a rival, is assumed by everyone who is swapping identifiers? And is that a good thing?

So why is it that people are starting to just say “I’m @person”, without noting that it’s a Twitter name? Other services, such as identi.ca, use similar @names – but if we let Twitter own the namespace for personal identity in this way, I think there’s a risk we’ll end up reinforcing the network effects and perpetuating an unhelpful and un-open market dominance by a single provider. Which, IMO, is bad whoever that provider is.

So when you tell people who you are, please specify the service you are using :-)

Google Docs OpenDocument Fail

Would you believe Google Docs doesn’t actually support ODF, at least for spreadsheets? According to some reports on the web, it only supports the older StarOffice format (despite having an option labelled “OpenDocument” on the export menu). Every time I try and upload an ODF document generated by OpenOffice 3, it fails with an unspecified error. So to get documents for local working before re-uploading them, I have to use XLS :-((

@font-face Generator

Want to use decent fonts on the web but worried about cross-browser support or large TTF files?

Enter the FontSquirrel @font-face Generator. You can upload a font, subset it and then get it back as a handy ZIP file containing all of the different formats that different browsers support (EOT, TTF, WOF, SVG). It even gives you the right CSS to include it in your page.

Another option is the Google Font Directory, which seems to be eating some of Typekit‘s lunch (although the site says that they are working with Typekit).

DNA Hackers Wanted

We can now design a DNA strand in a lab, inject it into an existing bacterial cell with its original DNA removed, and get the resulting organism to reproduce. In the experiment announced today, the DNA they injected was just a synthetic bit-for-bit reconstruction of an existing genome from another bacterium – but there’s no reason why, in the future, one couldn’t hack on it first.

Of course, like a geek becoming familiar with a new and strange codebase, we’ll start by making little changes – insertions to add additional capabilities, scratching a few small itches. But hopefully, in a while, we will understand the internals enough to do performance optimization, better error handling or major functional enhancements.

God had great fun creating and designing life, and he’s the universe’s greatest hacker; it’ll be awesome to be able to think some more of his thoughts after him.

Now all we need is for someone to write a cell emulator for testing out new designs…