Deconstruction of Falling Stars

Congratulations to anyone who read my post about Banshee as default media player in Ubuntu in the past week. You’ve formed part of an interesting social experiment – an analysis into the habits of people who surf the internest, and specifically the kind of people who visit a page with a dry topic like media players for a Linux distribution. A team of dedicated lemurs in the background have been carefully taking note of who has visited, from where, and using what, to allow a thorough analysis. And I want to share those numbers with you.

First, the summary. I am aggregated in two places – Planet Ubuntu-UK and Monologue. The former accounts for almost no hits, so isn’t statistically interesting. The latter accounts for a lot. Because I aggregate full posts, I don’t know an exact number for how many people read – but I can make an educated guess, thanks to the image embedded in my post (which even aggregators would have displayed) of approximately 4800 unique people. Of those 4800, 1825 visited my website directly (so the remainder use an RSS client or read the post on one of the two sites I mention). I only have statistics for people who form part of those 1825, but of those, most people were using Firefox 3.0 (1348, or about 73%) and most were using 32-bit Linux (649, or about 35%). The highest number of visitors did not give an HTTP referer, which usually means they clicked a link from a non-web-browser (for example, a Twitter client or IRC client or RSS client).

So far, so mundane. Does this get more interesting? Actually, yes.It gets interesting thanks to that HTTP referer field, and tracking where people came from and when. Firsly, the post went online at 13h on Sunday 19th. Early visitors came from Monologue. At 18h, I posted it to a sluggish Free Software-focused Digg clone called FSDaily. Traffic levels remained low, until a surge about 24 hours later when the post made the FSDaily front page. As that surge ended, a new one began, when Miguel de Icaza posted about it on his blog, which is syndicated to places like Planet openSUSE and Planet GNOME. This accounted for a big spike in traffic, which you can see in the graph below:

Midnight on day 3 was the first mention on Planet Ubuntu, in the blog of James Westby. 4 hours later, Alex Launi posted about it too. Both were pretty positive in their linking, and Planet Ubuntu accounted for more spikes in traffic. For the curious, here are the complete top-ten referers for the full 179-hour period:

Referer Unique visitors
No referer (e.g. RSS client) 514
http://www.google.com 224
http://planet.gnome.org 155
http://planet.ubuntu.com 146
http://www.fsdaily.com 122
http://tirania.org 111
http://www.go-mono.com 88
http://www.tuxmachines.org 73
http://anotherubuntu.blogspot.com 64
http://derstandard.at 43

The Google visitors are people using Google Reader as their RSS aggregator. derstandard.at is some foreign website that posted a link just before stat capture ended for this little report.

So. Is there a point to all this? Yes, actually. The original intent of this experiment was to see how many visits I would get from folks who are “anti” what I do, i.e. people attacking me for my post rather than supporting me. Personally, I don’t like FSDaily and find it incredibly slow, but I knew it would be a good place to be noticed by my detractors. And notice they did – at around 11h on day three, I was linked to by a FUD site – let’s call it Moycott Movell to protect its identity. Moycott Movell spends an awful lot of time crowing about its billions of readers and visitors, and how it’s so incredibly popular it needs dedicated servers to deal with its thousands of daily visitors. Just how many of Moycott Movell’s visitors, though, read their sources? Well, let’s see. You can see the top ten above, and they’re not on it. Where are they then? Hm….. Oh, here we are, 15th place, with a whopping 17 visitors. The biggest site for anti-directhex resources on the Internest, and only 17 of Moycott Movell’s readers think it’s worth clicking the link to see out-of-context paraphrasing in its original context. This means one of two things – either their usage figures are a lie, or their readership have no interest in fact-checking. And either option would be fascinating, wouldn’t it?

Fitting the kitchen sink onto a CD

Ubuntu’s main installation method comes on a single bootable CD. By today’s standards, a CD is a rather confined space – as a result, every last megabyte is considered precious. A single stray megabyte could push the CD over the limit, and make it worthless – and a few saved megabytes could help make the disc more multi-lingual, or mean more exciting apps. There are rumblings from within the bowels of #ubuntu-devel that OpenJDK would be a nice thing to include – but this is essentially impossible unless someone can magic over a hundred meg of space onto the already hard-pressed CD.

As a team, the Debian Mono Group (which is these days a joint Debian/Ubuntu effort) have helped to reduce our footprint by a good few meg in the Jaunty cycle, as part of the Mono 2.0 transition. And now I have a proposal which I’m going to make to the Desktop team at Ubuntu Developer Summit in May, which will save six precious megabytes.

That’s right, kids. To save a significant amount of space (6.1 MiB), we dump bloated C-based Rhythmbox and include svelte lightweight C#-based Banshee. The numbers may astonish C die-hards, but they’re true – similarly, Gnote’s binary is twice the size of Tomboy’s binaries, even though it has no plugins (it only appears smaller thanks to having no documentation). Removing Rhythmbox and all its Rhythmbox-specific dependencies decreases the size of an Ubuntu Jaunty install by 18.4 MiB; installing Banshee 1.4.3-4 (with all Recommends, of course) adds on 12.3 MiB. The 6 meg difference could be the first 5% of OpenJDK inclusion. Or it could be two extra languages. Or it could be a cool new tool (Gnome-Do, anyone?).

Running the numbers also involved testing other players. Songbird is a no-go (42.6 MiB, and a RAM footprint to crush small towns). The smallest entrant was Quod Libet, but version 2 of that seems to have a UI designed by MC Escher, which isn’t really an appropriate direction for the default player. RAM consumption compared between Rhythmbox and Banshee rules in RB’s favour, but not by too much (about 60 meg versus 50 meg in the testing I did).

Perhaps the most important detail, though, is that Banshee development is active and vibrant, with new features being added every release. This fits into Ubuntu’s raison d’être far better than the somewhat maintenance-only development Rhythmbox has been seeing. Even if the desktop team rule that Banshee isn’t appropriate for one reason or another, I’m pretty confident that upstream could fix each and every concern by the time Ubuntu 10.04 rolls around. So that’s the proposal! Let’s see how it plays in Barcelona at UDS.

Desperately Seeking Mediocrity

One thing I’ve noticed out there in the big wide Internet is the number of people who desperately want GNU/Linux to suck. These are not, as you’d imagine, Windows or Mac OS fanatics who want to see the competition fail – in fact, quite the opposite. These are the folks who cling to GNU/Linux not because of Freedom, not because of superiority – but because it’s different. As a result, these folks make many of their computing decisions not based on picking the best option – but the most different, the option which makes it easier to say “I am a special unique snowflake”. The dangerous part here, however, is that these folks also happen to be the loudest of GNU/Linux people, and they feel that THEIR choice is (or should be) the ONLY choice.

Part of the “different for the sake of it” problem is the desire never to be seen as “copying” a different system, for better or worse. User experiences should be as alien as possible, to make sure they’re aware of the extent to which they’re not in Kansas any more. The answer to “can I do foo” is never “yes” – it’s always “of course not, do bar instead”. Migrating from a legacy OS should never be a comfortable gradual process – it should be as jarring as possible. Anyone who doesn’t commit to the process was obviously never worthy in the first place.

And along with this comes the belief that from difference comes superiority, no matter the cost. There is simply nothing to be learnt from those other distributions, and any suggestions otherwise should be met with ridicule. Certainly don’t accept that those evildoer companies like Apple could get anything right, or come up with ideas worth pinching. If anyone suggests that the option on the Linux desktop is inferior in any way, simply tell them they’re wrong! Suggest that missing features are a good thing, that a complex process is better than a simple process, and if all else fails, that they work for the competition.

This belief is a belief in madness. Ignoring for a moment the baffling jingoism that gives rise to the “others simply cannot be superior in any way” thought process, and consider for a moment, well, GNU/Linux. GNU is a vastly superior Free clone of UNIX. Re-using all the time effort and energy that went into the concepts behind UNIX is a good thing. To do it better and Freer is not a bad thing. Linux is a vastly superior Free replacement for the MINIX kernel. Anyone who suggests that there is nothing to be learnt from making superior Free versions of proprietary systems, yet uses GNU/Linux, is simply thick.

And this is why I find myself baffled when reading web forums, seeing the number of people who actively want Ubuntu to be less awesome, by dropping superior apps on the basis of perceived “difference first” attitudes, the feeling that they “don’t want to be using a lagging version of proprietary foo”. Perhaps there’s something I’m missing here. Or perhaps a lot of people on the Internet are idiots. Hard to say.

Mass infection vector

As part of the great plans for Monobuntu, Canonical Ltd. are sponsoring my attendance at the Ubuntu Developer Summit in Barcelona in May. This will give me a chance to discuss the Desktop team’s needs and wants for Mono, bounce suggestions around for how to further shrink the installation footprint, and fling spitballs at the Java and Python teams. I’m really looking forward to some productive discussions, to help make Ubuntu 9.10’s Mono even more awesome than 9.04’s.

Life with Mono: Standards (good for me, good for you too)

I’m writing this short series in an attempt to dispel some of the misunderstandings (and FUD) spread around liberally, and hopefully explain to people why I (and many others) see the Mono project as a good thing for Free Software, not the evil destroyer of worlds that some of the more tinfoil blogs would have you believe.

Today I will be discussing standards.

Programming languages, historically, are implemented by lots of people in different ways. To give FORTRAN as an example, I can think of five major compilers on the market today off the top of my head (GFortran, Intel, Pathscale, Portland, and Absoft). The same situation applies with, say, C. FORTRAN and C both have so many implementations, because there is a “core” for all those implementations to work towards – the idea being that if you write any program “in FORTRAN”, you can compile it with any FORTRAN compiler that supports the same revision of the core specification that you used. The most popular in use today are FORTRAN 77 (an ANSI-ratified standard) and Fortran 90 (both ANSI and ISO). Write an app for Fortran 90, and compile it anywhere.

You still have a degree of freedom to “extend” those standards (hence apps which will only compile with a subset or single compiler), but those standards exist, unchanging, as potential targets for your code.

A similar situation exists with C: people commonly talk about “ANSI C”, meaning the ANSI C89 standard (ratified a year later as ISO/IEC 9899:1990, better known as C90). This was an attempt to standardise the C language, following on from the mess of mostly-compatible languages built around a textbook by a couple of guys at Bell Labs.

Again, using the C standards allow for code which is compatible between different compilers (GCC, Intel, Pathscale, Portland, Borland, Microsoft, and so on). And again, whilst there are a lot of possible extensions, those standards are still there (and, again, are immutable targets for you to aim at if you so wish).

So what is this getting towards? Well, these days, there is an ugly trend away from reliable published standards for languages, which is a cause for great confusion – and worse – single-vendor implementations. Imagine a popular language, let’s call it “Boa Constrictor”, which essentially only has one implementation, which is prone to change and breakage at any given time (forcing application authors to constantly worry about whether their apps will still work over time). Where the only “standard” is today’s vision of one supplier, making fully compatible competitors (which might be much faster or better in other ways) is largely impossible.

Bad, right?

Now, imagine if someone came forward and said “actually, this sucks, we believe in standards”. Imagine that! A real, immutable standard for multiple people to work on, and make compilers and libraries to be compatible with. That’d be good, right? And then, when a new version is developed, that standard appears too, as an immutable alternative – much like F77 and F90. Nothing but good news!

Except, apparently, it’s not. The old situation, the single-source language with no coherent version to lean on is the best option. Why? Because, shock horror, the evil Microsoft are the ones who published the standards. See, when Microsoft get involved, things like “immutable” suddenly mean “evil trap” – “ISO/IEC 23270:2003” means “ever-changing moving target”.

But that’s a lie, from serial liars with an agenda. It has no basis in reality.

The reality is, if you write an application which targets the published CLI standards (ISO/IEC 23271:2003 or ISO/IEC 23271:2006 at your choice), using a published C# language standard (ISO/IEC 23270:2003 or ISO/IEC 23270:2006 at your choice), then it will run on any complete, functional implementation of those standards – be it Mono or Microsoft.NET or DotGNU portable.NET or Microsoft Rotor or something else. If you use extensions beyond the core specifciation, then you need to worry about whether those extensions can be used elsewhere, but at that point you simply need to select cross-platform extensions which, again, have immutable versions you can target (so design your GUI with GTK# and not System.Windows.Forms, for example).

So there’s some reasoning on why standards are an important thing in programming languages – and why the oft-cited “Mono is chasing a moving target” line is lies. Mono is chasing two targets. Firstly, the published, immutable, ratified international standards which were published by Microsoft. Secondly, the stars – Mono is aiming to implement everything sensible beyond those core standards, and even bring some of its own compelling technologies to the table.

If anyone tells you Mono is “chasing a moving target”, call them a liar, and print out a copy of the published ISO/ECMA standards for them to read.

ZOMG! TEH PATENTZ!

Out there, clogged in the great wide intertubes, there is a veritable cornucopia of blogs, forum posts, and sites, where people like to discuss an important topic: how TEH PATENTZ will come and doom us all. This in itself is not a silly thing to think. For example, there are companies (so called patent trolls) who do not contribute anything to society, they simply buy others’ patents then make grandiose legal threats to earn cash. Or, in other cases, some companies like Sisvel literally send in the police to raid trade shows, sniffing about for those violating precious MP3 patents like pigs seeking truffles.

However, there are a few things to consider. Firstly, patents are not global – and in the case of patents on software, which are what threatens products like GNU/Linux,  not neccessarily available everywhere. Generally speaking, a jingoist US-centric view is dangerous because the issue is so complex – US patent & copyright laws are not the world’s copyright & patent laws, and you can make a serious error in judgement if you don’t remember that (and what it may mean to companies who dabble in software patents).

Secondly, software patents these days are rarely (if ever) exercised by anyone other than patent trolls. Certainly inside the US, where the patent office doesn’t seem to believe in issues like verification, non-triviality, or prior art, patents are filed at an incredible rate on the most ridiculous things, then never used. Companies like IBM amass a veritable armada of patents around the world, but never deploy them – other than in a nuclear-style self-defending threat. Everyone knows software patents are a farce, and nobody with a huge patent portfolio would stand to gain anything from beginning a real shitstorm – again, much like nuclear warfare. Given how many “huge” software projects are ingrained into so many places, actual patent risk to those products would be devastating for EVERYONE. The bluster is more valuable than enforcement – other than to trolls (or in less fluffy terms, terrorists). And for the trolls, only the biggest, “easiest” targets with the highest chance of payout is worth the time.

So, What is ths leading on to? Well, it’s leading on to a very sophisticated piece of software called Mono. Mono is an implementation of two international standards submitted by popular patent whipping boy Microsoft (Eolas, Visto, Alcatel, Patent Hawk – everyone wants a piece of the world’s biggest software company). Standards are a good thing – Standards allow companies and individuals to all sing from the same hymn sheet, to all interoperate and cooperate, with the least amount of effort. Whilst web browsers might have bugs, at least the internet is built on enough standards that you CAN “just”access ay web site you feel like – anyone remember non-standards like AOL Keywords? Standards also grant an air of legitimacy to a project – saying “I made a programming language” is all well and good, but “I made an internationally standardised programming language” makes it sound like you’re serious.

And Mono is serious.  It makes a serious effort to embrace those published standards to increase the number of people who can take advantage of them (Microsoft implementations are available only for Windows, FreeBSD and MacOS X). Mono has embedded users, and it has desktop users – it not only embraces those original standards, but extends them in both directions – those extensions are not only for Mono, but flow back to users of Microsoft’s implementation as well. Mono is a shining example of exactly what these standards exist for, and what they allow. By leveraging Mono, which by the way is  Free Software like Linux (in fact the license used is even more Free), developers are able to (and have) produce high-class, high-quality applications for desktop, server, or handheld device in a fraction of the time that some of the alternatives would take, and gain true cross-platform capability essentially for free. Mono takes many of the same promises as Java, but unlike Java, builds on an actual standard (and unlike Java, there is more than one implementation of those standards which actually works properly). Due to a streamlined and modular design (inspired in no small way by Java’s mistakes), applications built on Mono can be a fraction of the size of the equivalent built on Java – as Mono applications can easily only require a limited subset of the whole, rather than pulling in an enormous monolith just for one app.

So, how did I get from patents to Mono? Well, here’s the rub – because Microsoft own some of the patents to their published standards, some people freak out. And when people freak out, they tend to lie. A lot. They lie and conceal and deceive and lie some more, and with enough work, it becomes impossible for most people to tell when the lie ends and when the truth begins. Microsoft haven’t helped matters at all, with their bluster about patents, and neither have Mono’s main corporate sponsors, who signed a patent cross-licensing deal for their GNU/Linux offering (which some use as evidence that Mono must be at risk from patent litigation). When things are less than crystal clear, most just ignore it – but when someone is deliberately stirring mud (or FUD, however you opt to spell it) into the mix, it can make those who aren’t equipped with knowledge of the entire situation rather… uncomfortable. They know all about patent trolls and how those trolls go around suing people, and they sure don’t want to get sued, so if an agent of chaos whispers into their ear “you know, Mono is covered by some patents too”, it only serves to alarm them. Related parties have pointed out with relative frequency that those licenses are available under a “royalty free, reasonable & non discriminatory” license, but free patent protection isn’t remotely good enough, is it?

(Picture licensed under Creative Commons Attribution ShareAlike 2.0 Brazil License, and by Eurico Zimbres FGEL/UERJ. Modifying photos with logos and horribly formatted text makes you a big man and proves your argument is correct)

The thing about the FUD brigade is how inconsistent their arguments are. Circular logic rules the day. Try visiting their web sites and you might get lost in circular links, too (never cite a reputable source when you can cite yourself!). Here’s the typical exchange:

<them> Mono is dangerous because it is covered by patents

<me> So are lots of Linux apps. Why is Mono special?

<them> They’re MICROSOFT patents!

<me> There are lots of Microsoft patents in things. Why is Mono special?

<them> It is inconvenient for me to acknowledge that those exist, so i will pretend they do not. However, Mono is special because it goes out of its way to emulate patented Microsoft software!

<me> Really? Don’t things like Wine do that too, without such bile-filled reaction? And unlike Wine, Mono implements a published standard

<them> The standards are a trap! They can charge you for patent license fees!

<me> True. But they’ve said they won’t. And that’s more than you’ll get out of most people who own patents which are, to all extents and purposes, violated in Free Software projects

<them> But if you start to rely on Mono, then Microsoft can disable you down the line when they suddenly sue!

<me> And that’s different from loads of other software in GNU/Linux how exactly? Smarter people than me or you have a “don’t worry about maybes” attitude.

<them> But Mono is dangerous because it is covered by patents!

And so on. Ad infinitum.  Mix in something about the patent cross-license deal (which explicitly did not admit to any specific patent violation) and you’ve got an average day in a Mono IRC channel. And thanks to the carefully orchestrated FUD campaign, people who simply don’t understand the issue parrot it (which is, of course, the idea).

Sometimes, shooting the messenger is appropriate. Nutcase Florida attorney Jack Thompson has done more harm to the “violent videogames are bad” movement than anyone else, through virtue of reducing his own argument ad absurdum. The anti-Mono crows have done the same thing for discussing important questions like the brokenness of the US patent system or monitoring the ethics behind the deal between Microsoft and Mono’s main sponsor. Much like Whacko Jacko, however, those who don’t know any better listen to ill-informed and one-sided diatribes as gospel, and doing so harms Free software as a whole.

So, since the FUD brigade won’t discuss it, I will. Microsoft claim to hold patents covering all of the following technologies – I challenge those who would single out Mono because of the Microsoft connection to discontinue use of any of the items on this list, for precisely the same reasons they claim Mono should not be used (threats of Microsoft patent enforcement). This is a reduced list – the full list is on microsoft.com:

Still here? Without any IPv6, IPv4, or HTTP? REALLY?

Mono is a Free Software implementation of an international standard making it easy to develop desktop and server applications which run without porting work on multiple operating systems. Nothing else today can claim that lofty title – and making it easy for developers to offer up high-class GNU/Linux software to Windows or Mac users is a great way to show them the power of Free software. It should be embraced, not derided.

x264 Benchmark for Linux

Attached is a Linux port for an x264 benchmark from here – in both i386 and amd64 form. See how you compare to XP-based machines!

Download x264 benchmark

Xbox 360 repair adventure!

The Xbox 360 is, today, the best current-generation games console. It has the best online experience, and the widest selection of top-tier games. However, it’s enormously unreliable compared to the competition and its predecessors.

And, lo and behold, mine’s busted. There are some horror stories concerning Xbox 360 returns, so I thought I’d document the process.

  • Sunday, 2nd September – Microsoft Support agree to take return of the console. It’s been freezing and showing red lights intermittently for a week or two. They promise to send me a return label in the post, estimated time of arrival: 3-5 days.
  • Monday, 3rd September – Return label arrives from UPS.
  • Tuesday, 4th September – Arrange for UPS to collect console from work. promised pick-up time: between 10am and 5pm. Later, the UPS driver rings to rearrange until Wednesday morning, due to the funfair that’s consumed the main route through Oxford.
  • Wednesday, 5th September – Package is picked up in the afternoon, tracking information available.
  • Thursday, 6th September – Console is shipped to Teleplan in Havant, Hampshire.
  • Tuesday, 25th September – Console is returned, along with a 1 month Xbox Live Gold subscription. It’s got the same serial number as the defective console, and the coversheet marks it as having undergone a motherboard replacement. Total time from pickup to redelivery: 14 working days

PLAYSTATION 3 Bluetooth Remote driver for Linux

This script, written in Python, enables you to control a Linux-based PC using Sony’s PLAYSTATION 3 remote (capitalization theirs not mine). For a video of the remote in action, see here. Python’s certainly not my language of choice, but it is based on a previous script downloaded from here, which itself is based on a previous script for the Nintendo Wii remote from here.

Download Cakemote for Linux

Bob the Robot – scribbly old undergrad code

We were tasked, when I was an undergrad, with a 3D graphics project: “Make an animation about a robot”. I rather liked my effort, so I’ve attached it here. Requires a C compiler, and GLUT headers/libraries. Ought to be happy on Windows, Linux or Mac (no Mac binary included though)

Download Bob the Robot here