2009-09-17
Simplified Software Process
2009-08-25
Performance-based rewards considered harmful
One of this year's TED talks was seriously counterintuitive but extremely well-founded. Dan Pink's talk on extrinsic and intrinsic motivation illustrates the scientific conclusions that high financial incentives for success increase the length of time taken to solve a cognitive problem.
The research establishing this result is clearly referenced (“Large stakes and big mistakes” and “Incentives, Decision Frames, and Motivation Crowding Out — An Experimental Investigation”). The implications are huge: higher bonuses don't lead to higher performance when the problem is nontrivial (don't tell your local bean-counter). Pink's alternative motivators (autonomy, mastery and purpose) aren't as well-founded, but they have a certain intuitive appeal.
2009-08-22
Dutiful plug: Google Code University
Google has collected and published a compendium of useful computer science courseware, and given it the slightly dramatic name of Google Code University. I normally avoid plugging my employer's various offerings, mainly because there's no way to be unbiased about it. But after the disappointment of Open Courseware, this actually looks useful.
(Not that Open Courseware doesn't deliver a lot, by the way. It just promises far, far more.)
code.google.com/edu seems to have substantial content for each title, and (with the possible exception of the occasional Powerpoint data file) the content looks pretty good. I'd have found that stuff useful during the summer before I started college. Even when you correct for the fact that most ef it hadn't been invented way back in 1990.
2009-08-17
Socializing the Weather
I came back to Ireland from the US in 2000, and was immediately disappointed by the weather service. I don't mean the perpetual overcast (though I was also disappointed to see I hadn't imagined it after all). I mean the way Met Éireann tries to sell the forecast information it compiles, in spite of the fact that it is paid by the taxpayer to do its work — it is part of the Department of Environment, Heritage and Local Government.
In the US, the forecasts are similarly funded but then they're made publicly available. They're on the NOAA website; they're broadcast regularly on dedicated radio channels, and (if you're a pilot planning a flight) you can even make a free call to 1-800-WX-BRIEF and get a customized in-person professional weather briefing. My favourite was the technical brief which gave fascinating insights into the levels of certainty of the forecast.
Now look at Ireland's Met Éireann. The most detailed forecast available from their website (a site which is useless without Javascript, by the way) is actually less detailed than the text on Aertel page 161. There's a phone service too, but it's a premium-rate telephone number, and I suspect it's a prerecorded message rather than an in-person briefing (and no, I won't pay to find out). For pilots, there are Self Briefing Units installed at major airports — no trained weather briefers for you, and you're SOL if you want a briefing when not at one of those places.
In the US, this would be a hideously-embarrassing way to run a government service. It indicates inadequate funding without implying cost controls, and it combines the inefficiency of the government budgetary process with the costs of collecting money from service users and of investing in measures to stop those users getting that service for free.
And it's all for nothing, because the information is quickly exported and aggregated with the free information available in the rest of the world. A search for [eidw taf] (even on the Bing engine) immediately shows links to places like all met sat which not only report the current Terminal Area Forecast, they decode it into English so you don't even need the TAF Decoder Ring.
Ha, ha, etc.
2009-08-10
Aughts, Teens, Twenties, Thirties, ...
It really annoys me to hear people refer to this decade as “the noughties”. Even the BBC, who should know better.
I recall seeing recorded interviews with some right old codgers who talked about “the aughts” and “the teens”, meaning the first decades of the 20th century. These are good solid woody words. There's no reason to resort to inferior neologisms.
However, by the end of this year, I fully expect to sit nervously twitching as otherwise-sensible people look forward to the Teenies, or the Tenties, or the Naughtiers, or something equally saccharine and unforgiveable.
By the way, if you got here by searching for [naughty teens], then I'm sorry. As a sort of apology, please accept this link to a popular destination for [coprophagia video].
2009-07-23
Leaving Cert English selected answers
Some of the most appalling prose (and, rarely, some of the most appealing) is making the rounds in the form of the smuggled answers to Leaving Cert English papers from this year.The themes in Macbeth are juicy and addictive like opal fruits with nicotine.
2009-01-07
Plug: a Browser Security Handbook
2008-12-05
POSIX time_t is not UTC
For years, I've been pretending that time_t is a better representation of time than any combination of year, month, day, etc. That's because it's a linear representation of time that can be subjected to arithmetic. In particular, it's monotonically increasing.
Well, that's not true on POSIX systems. On POSIX, time_t is said to be based on UTC, but it ignores leap seconds! Considering that UTC is defined as TAI minus accumulated leap seconds, that's one giant opt-out.
The official line (from SuS v3) on leap seconds is "applications which do care about leap seconds can determine how to handle them in whatever way those applications feel is best". OK, quick question: your application, which cares about leap seconds, calls time() and gets 915148800; what time is it? If you need to know, you're out of luck; compliant POSIX systems stepped their clocks back a second during the leap second. If you have a drug-delivery system that's based on POSIX, don't use it if a second's too much drug will harm the patient.
In fact, POSIX time_t is an encoding of a Gregorian calendar time (year, month, day, hour, minute, second). The POSIX committee considers it more important that time_t is consistent between machines, than that it should be correct. Consequently, the description in the man pages and standards of time_t as "seconds since the Epoch" is a lie.
It violates POSIX to set your system clock to return the actual number of seconds since 1970-01-01T00:00:00Z! Right now (2008-12-05) it should be the number of seconds since 1970-01-01T00:00:23Z; from the start of 2009 it should be the number of seconds since 1970-01-01T00:00:24Z. If you try to use difftime to compare a time from 2008 with a time from 2009, you'll get the right answer minus one.
This is clearly crazy. If you want to ignore leap-seconds, use TAI and accept the drift. If you want to ignore leap-seconds but stay close to UTC, stick to year/month/day/hour/minute/second (i.e. struct tm). If you want accurate intervals and not necessarily accurate calendar times, use a monotonically-increasing count of seconds since some definite time in the past. Unix made its choice clearly and precisely; POSIX is wrong to change it, and STUPID BAD WRONG to change it while pretending it's the same.
[Edited: I had the wrong offsets in the fifth paragraph.]
[Update: Someone pointed me at an old message titled History of IEEE P1003.1 POSIX time which explains a lot.
2007-11-19
2007-08-22
2007-06-17
Now it's lolbots
2007-06-12
Search your lolcats
noo it are my birthdaycat by searching for no "it are my" birthday.
2007-05-13
E61 force-flashing links
Here are some links to help me force-flash my new Vodafone-branded Nokia E61 to the latest (uncrippled) firmware version:
- Hisham's blog entry
- averageadmins blog entry
- Nemesis tools (download links: NSS103810.zip, History.txt, pdg4fbus.zip).
- Quick Nemesis instructions:
- On Hardware Selection, pick
Virtual USB Device
- Backup the phone using the vendor tool
- Open Nemesis again
- Scan for new device ⇒ Phone info ⇒ Scan
- Enter product code (0523307 for UK layout), check the
enable
box, and Write. - Use the vendor tool to update the firmware — new version should be
3.0633.09.04
or later.
- On Hardware Selection, pick
- The official updater can be downloaded via this link.
2007-04-15
Kasparov arrested for political action
2007-04-10
The IPv6 Experiment
2007-03-27
More on the Mandatory Signature Directive
2007-03-23
2007-03-21
Directive 2003/58/EC
2007-01-29
Myths about physical seals
2006-11-15
That Monaghan car crash in... empty
On Saturday 2006-10-21, two cars were crashed into one another in Co. Monaghan. Five people died as a direct result. This unusually-bad fatal crash provoked much comment about Irish driving standards, and the peculiar reticence of reporting of car crashes in the Irish media.
Sarah Carey wrote about it. I don't know what she wrote, because she gave in to comments (reported by fatmammycat and irisheyes) that she interpreted as personal threats.
The reporting of motor vehicle crime by Irish media is uniquely euphemistic.
Drivers do not swerve off the road — instead, cars leave the road
.
Drivers do not crash their cars — the cars themselves become involved in a collision
.
In particular, drivers do not kill or cause serious injury — instead, the victims are reported to have lost their lives following an accident
.
When the driver in question survives, this coyness in reporting could be put down to fear of litigation from a driver who escapes conviction. It's more baffling when the driver has killed himself or herself, and isn't around to sue. We then hear nothing but expressions of sympathy for the families (heartfelt but irrelevant to the road-safety issue) and some frustrating generalizations about young drivers, speeding, and drink-driving.
If reporting of aviation disasters was as circumspect as reporting of motoring disasters, aviation would be as dangerous as Irish roads. Aviation safety is hugely improved by the policy of openness in investigation of accidents. Conversely, road safety is damaged by the policy of reporting car crimes as if they were tragic accidents, and not crimes.
Sadly, there is no possibility that the traffic law will be enforced, because there's an election coming, and too many people want to commit car crimes in this country. They have convinced themselves through a process of cognitive dissonance that the traffic laws they break are unjust, and that their crimes are not actually wrong. In fact, they have simply become used to doing what other drivers have bullied them into doing — driving faster and everywhere. This is a battle that political parties dare not fight, when there are so many people who view driving home from the pub as a basic civil right, and Ministers of the Government are happy to drink and drive, and to drive (or be driven) at illegal speeds.
If we can't even talk about the personal, criminal responsibility of drivers who kill, how can we possibly hope to reduce dangerous driving in our country?
Failure recovery
I've been categorizing distributed system designs into four groups, according to how they recover from the loss of a single critical ele...
-
The EU, in a genuine act of stupidity (not to be confused with the imaginary acts of stupidity usually recorded in the British press), has d...
-
I came back to Ireland from the US in 2000, and was immediately disappointed by the weather service. I don't mean the perpetual overcast...
-
I've been categorizing distributed system designs into four groups, according to how they recover from the loss of a single critical ele...