Firefox On Windows Is Good

Slashdot got quite excited about Aaron Seigo’s blog post suggesting that porting free software apps to Windows is a bad idea. He used Firefox as his example.

However, the “removing barriers to entry” logic is why it’s actually good for the free software desktop to have Firefox and OpenOffice.org on Windows. What’s more likely – an organisation switching their OS, browser and office suite all at the same time, or one at a time? If you don’t have to change your apps, switching to the cheaper, more secure, more stable OS is much more of an easy move.

But Aaron is half right. If we have killer apps on Linux for which no functional equivalents exist on Windows, then porting them would be a bad idea. Firefox and OpenOffice.org have well-established competitors on Windows, and so having the free software equivalents on Windows has no downside. This is similar to the logic rms suggests people use when deciding to license a library under the LGPL or GPL:

The most common case is when a free library’s features are readily available for proprietary software through other alternative libraries. In that case, the library cannot give free software any particular advantage, so it is better to use the Library GPL for that library… However, when a library provides a significant unique capability, like GNU Readline, that’s a horse of a different color. The Readline library implements input editing and history for interactive programs, and that’s a facility not generally available elsewhere. Releasing it under the GPL and limiting its use to free programs gives our community a real boost. At least one application program is free software today specifically because that was necessary for using Readline.

Google Slightly More Evil Than Previously Thought

Mehran Khalili commented on my post about forwarding and Google’s business model in a post titled “Gmail And ‘Don’t Be Evil'”. Basically, he agrees with me – which is nice. But he also said:

So I’ve lost about a year’s worth of email as punishment for not logging in [to Hotmail] regularly enough. Somehow I doubt Google would do that to me.

Don’t be so sure. The timeout is nine months rather than 30 days, but it’s there.

In related news, I noticed that the “Does Gmail support Safari?” answer in the Help contains a cheeky plug for Firefox…

“Cheap High-Quality Software”?

A workmate has been getting spam titled “Get Cheap High-Quality Software”, followed by a list of mostly Microsoft products. When I pointed out that neither adjective was applicable, another workmate pointed out that they applied not to the originals to the copies – i.e. they aren’t making a comment on the quality, but saying “we sell pirate copies cheaply, and our copies are high-quality because they are exactly the same as the original”.

Fair enough, I suppose. That’s definitely the only way it would ever be correct to apply the adjective “high-quality” to a Windows 98 CD…

Someone At Google Reads Joel

A little while back, Gmail, the webmail service to which all others must be compared, started offering email forwarding. Several people were a bit confused about this – a common cry was “hang on – how does this support their advertising business model?” After all, it stands to reason – if people aren’t viewing your pages, you aren’t making any money.

The answer, is that someone at Google reads Joel on Software (or, alternatively, they are as smart as he is and figured it out for themselves, which I suppose can’t be discounted ;-). Way back in 2000, he wrote Strategy Letter III: Let Me Go Back!, which is also reprinted in his book (which is where I read it). The first point of the letter is that to make people switch to your product, you need to eliminate barriers to entry. So far, so fairly obvious. However, near the bottom, he makes a far more interesting point, which is this: “you can get more customers by eliminating the barriers which prevent people switching away from your product”.

So how does that work? Rather than attempt to explain myself, I’ll quote. Amazingly, he even uses email as an example:

Let’s take a more current example: ISPs, a highly competitive market. Something that virtually no ISP offers is the ability to get your email forwarded to another email address after you quit their service. This is small-minded thinking of the worst sort, and I’m pretty surprised nobody has figured it out. If you’re a small ISP trying to get people to switch, they are going to be worrying about the biggest barrier: telling all their friends their new email address. So they won’t even want to try your service. If they do try it, they won’t tell their friends the new address for a while, just in case it doesn’t work out. Which means they won’t be getting much email at the new address, which means they won’t really be trying out the service and seeing how much better they like it. Lose-lose.

Now suppose one brave ISP would make the following promise: “Try us. If you don’t like us, we’ll keep your email address functioning, and we’ll forward your email for free to any other ISP. For life. Hop around from ISP to ISP as many times as you want, just let us know, and we’ll be your permanent forwarding service.”

Of course, the business managers would have fits. Why should we make it easy for customers to leave the service? That’s because they are short sighted. These are not your customers now. Try to lock them in before they become your customers, and you’ll just lock them out. But if you make an honest promise that it will be easy to back out of the service if they’re not happy, and suddenly you eliminate one more barrier to entry. And, as we learned, eliminating even a single barrier to entry can have a dramatic effect on conversions, and over time, when you knock down that last barrier to entry, people will start flooding in, and life will be good for a while. Until somebody does the same thing to you.

And that’s what Gmail is doing.

Software Patents

I came across this blog post which supports software patents. I wanted to add a comment, but comments are restricted to 1000 characters on that blog and so it’ll have to be a trackback.

Patents – as envisioned by our founding fathers – was and is about rewarding and fostering innovation.

Absolutely. Whether software patents should be allowed or not depends entirely on this test.

First, why should software be different from other subject matter that is patentable? For example, pharmaceuticals and tangible items such as computers, appliances, etc? Is software, by its nature, not entitled to the same benefits of patent law?

You ask this as a rhetorical question, anticipating the answer No, but this is in fact the core of the anti-software-patent case. There are two things which make software different from tangible items.

The first is that if I give you a copy of my software, I still have it for myself. This is not true of anything tangible, and this fact alone makes the economics of software vastly different from the economics of cars or pharmaceutical pills. Therefore, I don’t think it’s valid to say “we have patents for appliances, so we must have them for software”. Fresh analysis, and going back to the reasons for the existence of patents, is necessary.

The second is that software is vastly more complex than almost anything else man makes. A car may have 10,000 parts. A software project may have 10,000,000 lines of code. This means that it contains vastly more ideas and components, and is therefore far more likely to hit patents. It’s therefore much easier for one company with a patent on a core software idea to put an innovation toll-booth up.

With software patents in place, over the past decade, I have seen great advances made in technology.

It may interest you to know that Bill Gates, owner of the company which makes the “example of innovation” that you cite, has a different view. In an internal memo, he said:

If people had understood how patents would be granted when most of today’s ideas were invented and had taken out patents, the industry would be at a complete standstill today. … The solution is patenting as much as we can. A future startup with no patents of its own will be forced to pay whatever price the giants choose to impose. That price might be high. Established companies have an interest in excluding future competitors.

Lastly, not everything is a liberal/conservative issue, as you imply with your dig at “liberal Europe”. I am politically conservative (with a small c, for UK readers), but I believe that patents on software damage, rather than promote innovation and so, by the test that you yourself give, should not be permitted.

SCO Website Hacked

While I can’t condone website defacement, this is very funny. Here’s a screenshot for when they fix it:

sco-defacement.png

No doubt they’ll spin this into a press release claiming that they are being unjustly attacked by the anarchic, crypt-communist, copyright-hating free software community. <sigh>

Looking For A Job?

The company I work for, Data Connection, is looking to hire a group of recent graduates as software developers at their offices in Enfield, UK (where I work).

I can’t promise you would get to work on or with Free software, but you would get to work with smart people for a company who are very good to their employees, and have a great culture of technical excellence. You don’t have to be a graduate in a numerate discipline – we already have classicists, linguists and others.

If you are interested, you can find out more and perhaps apply online. Say that I sent you :-)

False Equality

It seems we’re having a controversial week here on Hacking For Christ, so let’s continue. [Just to clarify: the following post speaks in generalities – it has to in order to avoid massively cumbersome sentences. So when I say e.g. “men can do X but women can’t”, I mean “in general, men are much better at doing X than women”. I do not mean either “only men should be permitted to do X”, or “all women without exception are incompetent at X”.]

The UK Trade and Industry Secretary, Patricia Hewitt, has launched a drive against “career sexism”.

“Career sexism is about saying that engineering, for instance, where only 10% of employees are women, is really a male-dominated industry. Construction is even worse.”

While totally agreeing with the principle of “equal pay for the same job”, I think that the feminist hyper-equality agenda is obscuring the fact that men and women are, in fact, different. The underlying thesis of Hewitt’s campaign seems to be that equality means men and women being interchangeable, and so we need to keep working “for equality” until these industries have an approximately even balance of men and women.

A book I’ve heard good things about, but not yet read, is “Why Men Don’t Listen and Women Can’t Read Maps“. Its basic idea, which I agree completely with, it that womens’ and mens’ brains are wired differently, making each gender good at different things and bad at others.

My ex-housemate, Abbie, thought nothing of simultaneously ironing, talking to someone on the phone, and watching an episode of Friends. She’s a great multitasker. When I’m watching Friends, on the other hand, someone can loudly ask me a question and I simply won’t notice for 30 seconds, after which my brain will process the backlog and I’ll look up and say “Er, what, sorry?” This is what’s actually happening in a “Why Men Don’t Listen” situation. My brain is very serial indeed – I am not good at multitasking. My task-switching latency is measured in seconds.

Now, it’s fairly obvious that there are not many female computer programmers. I suggest that this is because single-minded concentration for long periods is a vital attribute for a programmer. You need to simultaneously think of the correct name for a local variable, while keeping in your head what you are doing in the scope of that function, that module and that application, and continuously zoom in and out mentally between those levels without losing track of any of them. And the very features of mens’ brains which makes them bad listeners makes them particularly good at this skill.

Great female programmers certainly do exist. I know – I work for one. But it is misguided to argue that there’s something wrong with the IT industry until 50% of programmers are women, and such an attitude will only lead to misery for the women coerced into a job they aren’t suited for.

Google Under Attack?

Does anyone else get the following “403 Forbidden” error when following this link?

We’re sorry…

… but we can’t process your request right now. A computer virus or spyware application is sending us automated requests, and it appears that your computer or network has been infected.

We’ll restore your access as quickly as possible, so try again soon. In the meantime, you might want to run a virus checker or spyware remover to make sure that your computer is free of viruses and other spurious software.

We apologize for the inconvenience, and hope we’ll see you again on Google.

It only appears for me if I use exactly those parameters in that order, including both the ie and oe parameters. A search from the main Google page now doesn’t add those two.

Anyone know what’s going on?

Google Print URL Params Analysis

I know you can have too much of a good thing, but I do find Google Print pretty interesting :-) Here’s a quick run-down of the URL parameters they are using, and what they do. (Note that the service currently appears to be Slashdotted, with 502 Server Errors popping up everywhere. Surprising to get that from a company of their size, but there you go.)

Sample URL:

http://print.google.com/print?id=ULQSG0Zs7vcC&lpg=3&pg=3&sig=QD6xDOsosnwh8uXQuXRJL5old88

  • id: specifies the book.
  • pg: specifies the page number. If you remove it, you get a list of all the pages in the book. But you can’t just increment it, because…
  • sig: some sort of hash which also uniquely identifies the page. This is presumably to stop robots spidering the site and just monotonically increasing the page number.
  • q: query – the words in this parameter will get highlighted in yellow. This indicates that they are generating the JPEG graphics on-the-fly from a computer-readable source on the back end. I suspect they’ve implemented display engines for several common book print formats.

Earlier today, URLs requires “img=<something>“, but they don’t seem to now. Instead, an lpg parameter has appeared. I’m not sure exactly what that does (why does it need two page numbers?), and I can’t investigate until they fix the server…

So What Can Google Do?

Having spent some time deconstructing Google’s careful attempts to protect the content of their Google Print partners, it seems only fair that I also give my thoughts on how they can improve the restrictions without affecting the usability. One could argue that I shouldn’t help them with this – but then, I think people will vote with their feet when it comes to DRM-like features. And anyway, it’s an interesting technical challenge.

The best method would probably be an extension of what they are doing now. Have ten nested <div>s, each of which has a background-image set, and each of which has a near-identical URL – the only thing wrong being the signature which they already incorporate into their URLs. The “print” servlet should serve up a clear GIF when it receives a bad signature. So, given that there’s no programmatic way (short of reverse-engineering the signature algorithm) to choose between:

a user would have to resort to checking each one by hand to see which was the real image. (Or writing a specialised extension to sort through and pick out the one with the largest size.) That would defeat at least some of the methods we’ve come up with so far, or at least make things a lot slower.

But when it comes down to it, they’ll probably be content with the current clue barrier.

Update: Having now read some Slashdot comments, you could combine the above technique with image slicing (where the true image was at a different stack position in each slice) to multiply the number of possibilities. Manually searching 10 possibilities for a non-blank image would be OK. Searching 100 sets of 10 slices to find the valid strips would be a lot nastier.

Google Print (again)

So it seems some other people have also become interested in Google Print’s DRM features.

From the Google Print FAQ:

Pages displaying your content have print, cut, copy, and save functionality disabled in order to protect your content.

Cut and copy obviously aren’t relevant, because there is no text, only an image.

You can invoke the Print function, but the book page image doesn’t come out because it is a CSS background. In Firefox, you can turn on printing of background images and colours in Page Setup, but it still doesn’t work, because the <div> with the image also has a background-color of white. Someone’s thought of that one :-) Presumably changing the Firefox print code to prioritise background images over background colours would make it possible to print the pages.

Save Page, choosing “Web Page, complete” actually does work in Firefox – you get all the images, including CSS background ones, and the copy of the page is perfect.

The Google Print FAQ also says:

In addition, you can choose how much of your book users will be able to view over a 30 day period, from 20% of your content up to 100%

This must be using cookies. They can’t be doing it by IP address – proxies and so on make that unworkable. The only Google Print cookie I have is a session cookie, although I have a couple of google.com-wide ones which expire a very long time from now. They could be using either of those. Still, clearing cookies would get around the restriction. I don’t know if they’d prevent access if you had cookies disabled…

Google Print Hacking Ideas

Wow :-) So there’s more than one way to skin a cat. (Actually, there are 50 ways, some of them hilarious, but that’s not important right now.)

Suggestions so far include:

  • A special-purpose bookmarklet
  • Save As on the Page Info dialog in the Suite (which, it is claimed, does work with Background images, although it doesn’t for me in Mozilla 1.6)
  • DOM Inspector sidebar
  • CSS editor sidebar
  • Drag the entry in the Media tab to a new window (doesn’t seem to work in either Firefox 1.0PR1 or Mozilla 1.6 for me)
  • Image Zoom to shrink the covering clear GIF
  • Mouse Gestures to shrink the covering clear GIF
  • Print Screen (not so good, because it’s going to degrade image quality if you then re-compress as a JPEG)

But the winner is:

  • Copy and paste from Detail section of Media tab

There’s no indication that you can do this, but it does work. Select the entry and press Ctrl-C. It works in both Firefox and the Mozilla Suite without even changing the JavaScript settings. Congratulations to Irongut :-)