Richard Stallman and Cory Doctorow at Ravensbourne College

As part of their “Copyright versus Community” event I saw Richard Stallman and Cory Doctorow talking (separately) about various copyright issues.

Stallman lived up to his reputation as an uncompromising proponent of free software (he invented/popularised most of its basic ideas, after all). He gave a simple but effective critique of “Open Source” as opposed to “Free Software”: in a nutshell, that Open Source advocates claim open source is the best way to develop software but that they do not have any ethical objection to closed source. On the other hand, Free Software advocates see closed source software as inherently wrong. So if you develop some closed source software and it is better than the open source software then the Open Source advocates have no objections.

He managed to fit all the cranky behaviours he has become famous for into a two hour stretch: talking about how GNU/Linux should always be called “GNU plus Linux” and not just Linux; correcting each and every use of the phrase “open source” where the speaker meant “free software”; that “piracy” is not the right word for “sharing” or “helping your neighbour”. He even managed to get in a row with Cory Doctorow before his speech about whether it was useful to umbrella patent and copyright issues (he thinks not, Cory thinks so). This is a man that will not bend, even a little, from what he sees as right. You could say that’s unreasonable, but have you given us Emacs, gcc and all the rest?

Cory Doctorow was full of energy despite having jumped off a plane from Barcelona an hour before. He has a great turn of phrase and peppered his speech with neologisms, refusing to talk down to his audience. You could tell he was a writer from the delight he took in really using language. He gave a very interesting speech largely about the history of the “copyfights”. A copyfight being defined here as a situation in which a new democratising technology comes up against the power of vested interests (the printing press versus the Church, player pianos versus US government, VCRs and later P2P filesharing versus the entertainment industry).

The speech was full of vivid anecdote and with real detail behing the arguments. He is clearly a great force for the EFF and I’m glad that he is now their “man in London”. He also showed a real sense of humour. He reminded me of the page in Paul Arden’s It’s Not About How Good You Are, It’s About How Good You Want To Be: “Energy. It’s 75% of it. If you haven’t got it, be nice.”

Ravensbourne College is some kind of “design school” and I think very technically slanted. One guy was drawing a desert nightscape in Photoshop on his laptop while listening to one of the talks. Their domain is rave.ac.uk which shows some kind of “trendy” thinking. Quite how they managed to get these guys down there I don’t know but it was a worthwhile afternoon.

Java Versus C# (Jobs)

A colleague of mine last Summer decided he would learn C# rather than Java because, “that’s where all the jobs are.” I disagreed and showed him the jobserve listings for that day that seemed to prove him wrong. “Well, that’s where all the jobs WILL be.” he replied. Thus was born jobfight.

I think enough time has gone by (10 and a half months) to have a look and see if we can discern any trends. The graph belows shows the statistics I have gathered on UK programming jobs for the keywords “C#” and “Java”:

Graph of C# jobs versus Java jobs advertised on jobserve.com June 2003 to April 2004

It seems that Java is growing faster in terms of total number of jobs and at nearly the same rate as a percentage of the existing jobs.

Programming Languages that are Loved

Paul Graham thinks Java “[smells] supicious”. One of his reasons is:

4. No one loves it. C, Perl, Python, Smalltalk, and Lisp programmers love their languages. I’ve never heard anyone say that they loved Java.

But I think some people do love java. In fact if you put “I love Java” into google you get approximately 2,530 results. “I hate Java” did get 768 results though. This got me thinking about how some programming lannguages are loved, like Perl in 1999 (before the backlash about it being “write-only”). PHP, then Python and Ruby emerged in a similar way from the hacker community and also seem to be loved. I decided to extend my unscientific test.

Results of putting “I love x” and “I hate x” into Google for various programming languages.
language love hate ratio
ruby 1,550 76 20.39
python 820 82 10.0
c# 287 30 9.57
smalltalk 131 24 5.45
php 4,070 772 5.27
assembler 72 14 5.14
ml 30 7 4.29
cobol 43 13 3.31
java 2,530 768 3.29
perl 1,990 670 2.97
haskell 20 7 2.86
c 1,640 582 2.82
scheme 65 27 2.41
lisp 181 78 2.32
sql 164 98 1.67
fortran 17 18 0.94
prolog 21 24 0.88
c++ 311 477 0.65
vbscript 17 30 0.56
javascript 179 432 0.41
vb 522 1,270 0.41

Some languages had to be excluded from the test because their results were just noise: Icon, Joy, Eiffel (apparently there’s a band of that name). Sisal, T-SQL and Intercal (at least) don’t really have enough information even for this rough test (a very small number of “I love”s and no “I hate”s making them appear to be the most popular languages).

Ruby’s outstanding result should not be taken too seriously as it was definitely more polluted by noise than a language like Smalltalk (no one says, “I love Smalltalk” unless they mean the programming language). Nevertheless a quick skim through the results seemed to show that most of them related to the programming language.

Three of the top five languages by love/hate are the “community” languages Ruby (1), Python (2) and PHP (5). Perl, however is way down at 10 (below Java). Of the other languages in the top five, Smalltalk was developed by a small group at Xerox Parc and the rapidly expanding C# is, of course, a Microsoft creation (unless you count the 10 years of prototyping done by Sun).

The languages that inspire much more hate than love are the perennial whipping boys VB and VBScript as well as JavaScript (hatred due at least in part to the terrible environment in which it usually operates – incompatible browsers) and (hilariously) C++ in which an awful lot of desktop apps are written.

Java comes ninth. That’s above Perl in tenth, C in twelfth and Lisp in fourteenth – three of Paul’s “loved” languages.

PHP has the most people willing to proclaim their love (4,070) but also a significant number of detractors (772). In fact, by volume Java lovers are the second largest group (2,530). Java has obviously picked up a lot of adherents since April 2001 (when the article was written).

If you liked this you will probably like the follow up, Does Anyone Love Java?

You may also find my jobs by programming language page interesting.

Clear Print Queue (Windows)

So you cancel a print job using Document, Cancel. But it just won’t disappear and nothing will come out of the printer (all queued behind the “deleting” job). Simple answer: restart the “Print Spooler” service. Either in Administrative Tools (Control Panel or Start Menu) or using net stop "Print Spooler" then net start "Print Spooler" at a command prompt. Easy, but it was driving me mad.

cref Attribute in .NET Doc Comments

I was having trouble finding the correct syntax for the cref attribute of the see tag (and the exception, seealso and other tags) in .NET doc comments. I tried Namespace.TypeName.MethodName and Namespace.TypeName.MethodName(ArgType) to no avail getting the error “XML comment on ‘foo’ has cref attribute ‘Namespace.TypeName.MethodName’ that could not be found.” Eventually I found this in Google’s cache (not on site anymore) that made things clearer:

Use the cref attribute to link to a type or member or the langword attribute to specify a language keyword. The body of the tag is ignored. Cref attributes have the form: a one-letter prefix (N, T, C, M, P, F, E), a colon, and a value. Here are some example crefs:

  • “N:” for Namespaces, example N:System
  • “T:” for Types (classes, structs, interfaces, enumerations), example: T:System.Byte
  • “C:” for Constructors, example: C:Gtk.Button()
  • “M:” for Methods, example: M:System.String.Substring(System.Int32,System.Int32) (the argument list is optional)
  • “P:” for Properties, example: P:System.AppDomain.CurrentDomain
  • “F:” for Fields, example: F:Gtk.TreeIter.Zero
  • “E:” for Events, example: E:Gtk.Button.Clicked

Common langword usages: <see langword=”null”/>, <see langword=”true”/>.

So I just needed to put “M:” on the front of my cref et voila no more compiler warning.

The original page, should it come back online, was at http://www.nullenvoid.com/mono/wiki/index.php/ECMAStyleDocumentation.

Tetris

Everybody knows that Tetris is the greatest computer game of all time. The version I have played so much lately is Tetrablocks which is a very nice version. Sadly the speed of the game is tied to the speed of the machine you play it on which means scores are not really comparable across machines but if you can get more than 350 lines then you’re probably better than me.

The reason I mention Tetris is because there is a documentary about the game showing on BBC4 tonight (2100 in the UK) and replaying through the week.

One of my favourite Tetris things is this 12.8MB MPEG from the 2001 Japanese Tetris Championship (will take at least 8 mins to download from this site, as long as 40 mins over dial up). How fast is that guy?

And finally there’s a great site about Tetris AI.

Ticket Touts

Looking on eBay I can see that my tickets for the Pixies could be sold for up to 100 pounds (nearly 200 US dollars). Some of the buyers have decent feedback ratings so I don’t think it’s a case of people creating dummy accounts to mess up the touts.

That’s ridiculous. I bought four tickets for 115 pounds. I could sell them for nearly 400 pounds and I’d have done about 15 minutes work (including entering on eBay and posting the tickets) maybe 30 minutes if I include a walk to the post office to send the tickets recorded delivery. If I had 10 credit cards I could conceivably have bought 40 tickets. Then my profit would be 4000 pounds for not much more work, certainly less than an hour. If I did that for Reading Festival, Glastonbury Festival and any other events where tickets are guaranteed to sell out then I could give up my job and just work for about an hour or two every few weeks!

That leads me to two questions really. 1) What is going to be done about this? Neither organisers nor fans want it like this. And 2) Why don’t ticket sellers make their tickets more expensive if people are willing to pay that much? It’s surely not altruism – companies like Mean Fiddler or Ticketmaster don’t know what that means.

Pixies Play the UK

Not only have the Pixies reformed but they are touring and have dates in the UK. The tickets for two nights at Brixton Academy sold out in minutes but not before I got 4 tickets for the Wednesday.

When the rumours first started floating around I came up with this ideal setlist that I’d still LOVE to see. To be honest though they could play their B-sides and Isla de Enchanta four times and I’d still be ecstatic.

Ideal Pixies reunion tour set list (I’ve given Kim quite a lot to do here to keep her happy) 1 hr plus encores:

  • Debaser (right out of the starting blocks)
  • Head On (ratchet it up another notch)
  • The Sad Punk (and evolving from the sea wouldn’t be too much time for me to walk beside you in the sun)
  • Nimrod’s Son (eclectic crowd pleaser)
  • I Bleed (break it down)
  • Here Comes Your Man (everyone’s happy middle section)
  • Gigantic (everyone’s happy middle section)
  • Velouria (getting somwhat more excited)
  • Tame (hips like cinderella)
  • Hang Wire (every morning and every day – I’ll bossanova wit’cha)
  • Tony’s Theme (stomping crowd pleasing build up to the finale)
  • Oh My Golly (stomping crowd pleasing build up to the finale)
  • U-Mass (stomping crowd pleasing build up to the finale)
  • Down to the Well (medley of greatness finale)
  • Is She Weird? (medley of greatness finale)
  • Gouge Away (medley of greatness finale)

Encore:

  • I’ve Been Tired

Second encore (unplanned, because it was just too wonderful):

  • The Happening (if they could pull this off I could die happy – “I’m almost there to Vegas where they’re putting on a show they’ve come so far I’ve lived this long at least I must just go and say hello”).

Final Score: Surfer Rosa/Come On Pilgrim 4; Doolittle 5; Bosanova: 5 (who would’ve thunk it); Trompe le Monde: 3

Notably missing (mostly because they’re too quiet):

  • Dig For Fire
  • Where Is My Mind
  • Caribou
  • Levitate Me
  • Cactus
  • River Euphrates
  • Brick is Red
  • Hey!
  • Letter to Memphis
  • Subbacultcha

Thankfully missing to the chagrin of most of those attending:

  • Monkey Gone To Heaven
  • Wave of Mutilation

The Mobile Web

As detailed elsewhere I have found my Nokia 7250i’s XHTML browser to be singularly crap because of memory limitations. As part of my attempts to make this phone more useful I have written a web page shrinker that allows you to enter a URL and get a stripped-down version of that page’s contents.

As the dominate web use mode is to search first on google the program also has the ability to shrink google searches.

Both entry points support link rewriting so any link in the pages is rewritten to point back at a shrunken version of the page being linked to (basically you never visit anything apart from my servlet – it goes and grabs pages and shrinks them as required).

The shrinking and rewriting are fairly brittle. There is a lot of nonconformant and just plain weird HTML out there and I have not done much work on coping with boundary cases but enough pages should shrink to make the app useful. If you find a page that doesn’t work or have any other kind of bug report/feature request put in in the comments or feel free to mail me at bakert+mobileweb@gmail.com.

The URLs for your phone are (stick them in bookmarks):

URL entry: http://bluebones.net/miniweb/?cmd=url

Google search: http://bluebones.net/miniweb/

The Google search uses the brilliant Google Search API.