Expand Cut Tags

No cut tags
ggreig: (Judge Greig)

There’s been quite a lot of attention paid to the new user interface in Windows 8, especially the Start Screen that’s replacing the Start menu, but perhaps if you’re a web developer you’ve been thinking none of this has much relevance for you.

Whether that’s actually right depends a bit on what sort of devices you’ve been targeting up until now.

The desktop environment you’re used to still exists in Windows 8 (more or less) but there’s also a new type of application called Metro-style Windows Store apps. By default, these run full screen, with much of the usual user interface hidden away so that, in the case of a web browser, almost all you see on screen is the page content.

Internet Explorer, if launched from the Start screen, will open as a Windows Store app by default, so you’ll start browsing full screen. Chrome, Firefox and Opera have each indicated that there’ll be a Windows Store versions of their browsers, so what follows will also apply to them.

Most commentary on Windows Store apps has tended to stop there, with the app running full screen, and gone on to talk about how you interact with it.

What hasn’t been commented on quite so much is what happens if you want to have more than one app on screen at once.

Although you can launch several apps and switch between them, the most you can display simultaneously is two apps side-by-side, as in the following picture, where you can see the BBC home page in Internet Explorer on the left, and a weather app “snapped” on the right, with the two separated by a black splitter bar:

IE in fill view on the left, and a weather app in snapped view on the right.

You can click through the screen shots to see them full size.

Internet Explorer on the left is basically the web content, with an address bar and a few other things visible at the bottom of the screen. The weather app on the right displays the current weather and forecast weather for the next few days vertically down the side of the page. Nothing too challenging about that so far.

The weather app is a native application – not a web page – and it’s displaying in the snapped view. Internet Explorer is now displaying in the fill view, rather than full screen, but there isn’t a big practical difference between the two. Snapped view is another story though.

A window in the snapped view is a fixed 320 pixels wide – no more, no less – and runs from the top of the screen to the bottom. It can be snapped to either the right of the screen or the left. It’s only available for screen resolutions above 1366x768 – if you have a lower resolution, running Windows Store apps full screen is your only option, with no way to display them side by side. Fill view fills everything except for that 320-pixel-wide strip.

All Windows Store apps are required to support the snapped view, and as you can see the weather app does so clearly enough. As this version of Internet Explorer is also a Windows Store app, it’s require to support snapped view too. Let’s see what happens if we move the splitter bar across to the left so that IE is in snapped view and the weather app is in fill view:

IE in snapped view on the left, and a weather app in fill view on the right.

Note that the weather app’s adjusted to make use of the space available to it (there are more interesting and practical examples of Windows Store apps, but I chose the weather app because the information in it’s innocuous). IE has also adapted; it’s now displaying the BBC home page 320 pixels wide.

If you’ve taken a responsive mobile-first approach to designing your site, using media queries, then your pages may appear OK. If you haven’t, you’ll get a 1024-pixel-wide rendering of your site scaled down to 320 pixels wide. Here’s how that BBC site looks, full size – not particularly usable:

BBC site at 320 pixels wide

Windows 8 is a game changer for web development, because it means that “mobile” design is no longer restricted to mobile devices. 320 pixels wide is narrower than many phones (though certainly not all – link via [livejournal.com profile] andrewducker). The Windows Store app version of IE is what your users will get by default when launching IE from the Start Screen, and even if there’s a push back against this, it can be guaranteed that some proportion of your audience will prefer to browse this way (and this will presumably become true for other browsers too in due course).

It’s true this’ll only be an issue when a Windows Store browser window’s snapped. Your users won’t be affected if the browser’s full screen, nor if it’s in fill view; and if they use the desktop version of the browser rather than the Windows Store version everything will be as it was in previous versions of Windows. Remember though that they may not think much of your site if it forces them into using their operating system in a particular way.

Think of it like this; if your site isn’t designed for mobile, you’re now accepting that some of the time it’s going to be unusable on Windows too.

Here’s some specific advice on how to start responding to this change (also pay attention to the helpful comment from Karl Dubost of Opera Software).

ggreig: (Default)

For a while when I was at school, some friends and I had a make-shift aerial runway in the woods above the village. There was a rope stretched across a burn from one tree to another, descending from the high bank on one side to a lower, flatter area on the other. We found a sturdy forked stick, put it over the rope so that we could grab one branch in either hand, and then flung ourselves off the higher bank and slid down the rope to the other side.

In the Scouts, we took aerial runways a bit more seriously, and A-frames and pulleys were involved.

An aerial runway can be a quick and efficient way to get fairly small numbers of people and things across an awkward waterway, especially if you’re going one way and your side is higher than the other. For some circumstances it will be absolutely the best way to get across that river.

If you start relying on a network of rope-slides to move your army around though, you’ll quickly find there are some drawbacks. Even though each crossing might be fast, getting off one rope-slide and onto the next one is not as convenient as it might be; the pulley has to be drawn back across before the next person can go; and if you want to cross the river repeatedly, in both directions, and maybe transporting more than the tensile strength of a rope will bear, it doesn’t take long before you start thinking in terms of building a bridge instead – quite possibly a seriously engineered bridge, with a proper road on top.

A quick fix in code is a bit like a rope-slide. It’s fast; it gets you from A to B; and it can even be quite exhilarating. Woohoo! I did it! Look at me, Ma! But maybe a network of rope-slides is not what your product needs.

It can be difficult to explain to non-developers the effect that applying a quick fix can have on the long term prospects of the code. If given the choice between a solution that’ll work now but cause problems in the long term, and one that will take a bit longer to deliver but save time in the future, the more far-sighted solution seldom gets a look in.

Maybe the rope-slide/bridge metaphor is a good way of explaining that decision. Yep, it’s OK to set up the odd aerial runway when the occasion demands it. But if you find yourself building nothing but rope-slides, something has gone far wrong. It might be worth keeping a comparative count of rope-slides and bridges just to check that you’re not trying to transport an entire army around on gravity, A-frames and pulleys.

ggreig: (Default)

Sometime this month, I think I passed the milestone of 20 years of owning a PC.

I wasn’t particularly exposed to computers while I was school, nor even much at university. A friend had a BBC micro, on which I played Elite a few times, and I learned to write S-algol on the University VAXen. The closest I came to a PC was one Physics lab that required me to write a little Basic to control a stepper motor.

Then I did a conversion M.Sc. to Computer Science, and then I was unemployed.

After nearly a year of unemployment, the bright future of work as a programmer I’d hoped for looked like as though it might be escaping from me.

I thought I’d better do something about it, and with a loan from my parents and advice from my friends I bought a PC, to demonstrate that I was serious about these computer things. In particular I was grateful for the advice of [livejournal.com profile] flybynightpress, a Mac enthusiast himself, who advised me not to get a Mac but a PC, because the employment prospects were better. You tend to pay attention to advice like that!

That PC was a Viglen (pre-Lord Sugar), with a 386DX processor, 4MB of RAM, and a 125MB hard drive, with the (then) brand new Windows 3.1.

Sometime in June or July, I had a horrible experience when it stopped working. Completely. My first computer, bought with money I didn’t have, bricked. and with that horrible paranoia that maybe, oh no, maybe it was all my fault!

A technician had to come the hundred and something miles from Edinburgh to the glen where I was living with my parents on the west coast, with me liable for the several-hundred-pound cost of the callout if it really was my fault. That was not a happy wait.

Luckily, the motherboard had died of its own volition, and with a replacement fitted free of charge, that PC served me well for a fair while afterward. And a month or two later, I was employed as a programmer, albeit in a job paying only 65% of the average graduate starting salary of the time, and with the most horrible computer language in the world ever. And on a PDP-11/83, not a PC. Still, I’m sure my PC-ownership helped ;-).

Today, my Raspberry Pi arrived, both more and less powerful than that machine of twenty years ago, depending on how you look at it. Unfortunately a painful ear infection is making the thought of tinkering unappealing for me tonight; but hopefully the Raspberry Pi will be the gateway for others to follow in the career that the PC has let me enjoy.

Introverts

Mar. 14th, 2012 12:17 pm
ggreig: (Default)

I can identify with quite a lot of this article in which the Grauniad stands up for ’em.

ggreig: (Default)

There’s a partially justified tendency among software developers to say “Eeeewwww!” when the subject of Hungarian notation – a naming scheme for variables – comes up. It’s fair to say it has a bad name. I don’t like it either, in its most common form; but I said “partially justified” because it isn’t a simple open and shut case.

What people tend to think of as Hungarian when deriding it is Systems Hungarian; where variable names are prefixed with something identifying the type of the variable. This is how you wind up with identifiers like szName or even lpszName, where that indicates a long pointer to a zero-terminated string (piece of text) containing a name. As you can imagine, code with a lot of that sort of stuff in it can become a bit tricky to read. When the variable names are dancing before your ideas, you know it’s time to take a break. Let’s not get into what long pointers are, and use szName for our examples from here on.

It’s also a bit fragile, because if you change the underlying type (say from an int to a double, when you realise that you need to store a real number rather than an integer) and you forget to change the variable name at the same time, then your “self-documenting” code is suddenly no longer quite as helpful as it was.

The Systems Hungarian style was used by the Microsoft Windows development team, and will be recognised by anyone who’s had to deal with the Windows API.

That’s not where Hungarian notation began though. It was originally proposed while working at Xerox PARC by Charles Simonyi,  who was born Simonyi Károly in Hungary (Hungarian surnames come before given names). Simonyi later moved to Microsoft, where he became Chief Architect. You can read the content of the original, fairly short proposal in the MSDN library.

Simonyi’s version of Hungarian notation, which was used by Microsoft’s applications division, later became known as Applications Hungarian to differentiate it from the Systems Hungarian developed by the Windows development team.

Applications Hungarian takes a slightly different approach to choosing those prefixes. In Applications Hungarian, the prefix is meant to encapsulate some semantic information about the variable – it’s meant to give some idea what the purpose of the variable is, rather than exactly what type it is. For example, Applications Hungarian would prefer strName to szName, because all you need to know for most purposes is that the name is a string rather than needing to know exactly what type of string it is (many different implementations of strings exist for C/C++).

This emphasis on semantics helps to convey more information the variable and how it is expected to be used than just its type. Another example from would usName: the us prefix indicates that the variable is an unsafe string (probably user input) and that it needs to be checked carefully before it’s used.

Applications Hungarian is also a bit less fragile than Systems Hungarian, because the information its prefixes contain is less likely to be invalidated by changing the underlying type of the information. To use the name example, you could switch to a different string implementation, but you would still have a string containing a Name.

However, both Systems Hungarian and Application Hungarian share the flaw that they can be a bit cryptic and difficult to read, especially with a proliferation of prefixes. Both have fallen out of favour for this reason, and even Microsoft recommend against use of Hungarian notation when coding against the .NET framework which has been introduced since 2001.

When Insights moved from C++ to .NET development in C# in 2005, we wanted to come up with a naming convention that would comply with Microsoft’s recommendations, but also contribute to the expressiveness of our code. What we came up with was what I’ve decided to call Anthropomorphic Hungarian.

Microsoft’s recommendations for naming variables and parameters – which you can read in more detail if you wish – at their simplest boil down to:

  1. Use Camel Casing
  2. Don’t use Hungarian notation

Strictly speaking, Camel Casing here means lowerCamelCase, in which the the first letter in the first word of a compound variable name isn’t capitalised. Its sibling, UpperCamelCase, in which the first letter in the first word is capitalised, is used for other purposes and is referred to as Pascal Case. We’re not discussing the situations where Pascal Case should apply.

Although Hungarian notation is fairly unequivocally deprecated, lowerCamelCase has a couple of significant drawbacks. It tends to de-emphasise the first word. Using the example of lowerCamelCase itself, this is unhelpful because “lower” is actually the most significant word in the name; the one which differentiates lower camel case from upper camel case. Also, what happens when your variable name is a single word and not a compound word? The resulting variable name entirely in lower case looks a bit incongruous and out of place. Small speed bumps like this can have a surprising effect on the readability of code.

Anthropomorphic Hungarian aims to satisfy the Microsoft guidelines, provide some semantic information about variables, and improve the readability of the code.

To do this, Anthropomorphic Hungarian follows these principles:

  1. It uses a very small set of approved prefixes. One of the things that can go wrong with semantic prefix schemes is that the number of prefixes expands to cover more and more unforeseen types of information, and ultimately the scheme conveys less information as the list of prefixes becomes too difficult to stay on top of.
  2. Although not quite all Anthropomorphic Hungarian prefixes are made up of English words, English words are strongly preferred; sometimes the sort of words you might use if you were trying to explain the code in speech. This increases the readability of the code.
  3. The prefixes should encourage developers to make the rest of the name useful, by starting with English words that can lead into something more expressive.
  4. The prefixes must be short. They should add meaning and ease of reading to the code without being too onerous to type, or taking up too much space.
  5. The prefixes must not contain primary information about the purpose of the variable; they’re a way of recording a small of amount of useful, but secondary, metadata. As a result, it doesn’t matter that lowerCamelCase tends to de-emphasise the prefix.
  6. The prefixes are largely, though not exclusively, concerned with scope – where the variable is declared and therefore where it can be used. This is a usage of the older forms of Hungarian that developers are notably reluctant to give up with regards to prefixes for class member variables, and it is also useful in other circumstances.
  7. Classes and interfaces are anthropomorphised. This is the most distinctive feature of Anthropomorphic Hungarian, and the source of the name.

Without further ado, here are Anthropomorphic Hungarian prefixes as used at Insights. As you’ll see, most prefixes are only two or three characters, with a rare maximum of four:

Anthropomorphic Hungarian Prefixes
Prefix Meaning
the A local variable within a method.
in A parameter that is only passed into the method.
my A member variable of a class. It’s “my” variable from the point of view of the anthropomorphised class.
a/an A member of a collection or a loop control variable (often these are one and the same thing).
ui/ux A member variable of a class that represents a user interface control. We agreed on ui, my personal preference is ux. This is an example where the prefix is not an English word.
ICan Not for a variable in this case. There are two possible descriptions of the service that an interface provides to a class that implements it. This one, which is usually preferable, is for an interface that provides a particular behaviour.
IAmA/IAmAn Sometimes an interface is defined in such a way that it’s more like a base class than a description of a service. This prefix will be more appropriate for those cases.

The prefixes for interfaces meet the Microsoft recommendation that the names of interfaces should begin with “I”, but encourage more expressive interface names. When a class implements an interface or interfaces, the interface names in its declaration form a positive statement in English on the part of the anthropomorphised class as to what contracts it satisfies.

Here are a few prefixes that were also agreed at some point, but are seldom or never used:

Seldom Used Prefixes
Prefix Meaning
is A Boolean value, with the main part of the name expressing the true condition.
loop This prefix was agreed for loop control variables, but in practice a/an has almost always been preferable.
out This prefix was agreed for reference parameters which are only used to pass information out of the method.
io This prefix was agreed for reference parameters which are used to pass information both in and out of the method.

Much of this isn’t original. “a” has appeared as a popular prefix in SmallTalk for many years, for example, and my thanks to [livejournal.com profile] tobyaw and [livejournal.com profile] qidane for introducing me to "the"; but I think that pulling all these together into a fairly tight little convention is novel, and has proven quite successful. It’s not always immediately popular with new developers, but it seems to be something people come round to with a little experience of it.

ggreig: (Default)

Being somewhat averse to blowing up balloons, never mind anything else, I was somewhat surprised to wake up this morning as an extremist:

Mr Clegg said the Lib Dems vision of Home Rule represented the views of the Scottish people and argued that those who were for independence, or keeping the current constitutional settlement, were extremists.

“All the evidence suggests that is the mainstream of opinion and the extremists are those who either think that we need to yank Scotland out of the United Kingdom tomorrow, or those who say there should be no further change at all,” Mr Clegg said.

“Well, I don’t agree with either of those two extremes.”

From The Scotsman (article link).

Leaving aside the other hyperbole in his statement (I don’t know anyone who wants to “yank Scotland out of the United Kingdom tomorrow”, rather than negotiating a new relationship with the rest of the UK in the wake of a successful referendum), can it possibly be the act of a reasonable person, an honest, responsible or even just pragmatic politician, to label people who believe in peaceful self-determination for their country as extremists?

I wanted to be sure he actually used the word extremist, because I would just about have let him off if he’d just said that independence and the status quo were at two extremes of a spectrum of possible constitutional outcomes. That would have been a poor choice of words, but accurate. But no, he actually called supporters of independence and the status quo extremists. I hold no brief for supporters of the status quo, but this isn’t fair to them either.

Definitions of extremism tend to agree that extremists are people with beliefs or behaviour far outside the societal norm. Recent polling suggests that 39% of voters in Scotland support independence, as against 38% who oppose it, with a large number of “don’t know”s. It also suggests that 65% would support independence if they believed they’d be £500 p.a. better off. Not the most noble reason for voting for independence, perhaps, but it appears that opposition to independence is weak and driven by financial fear (a £500 loss reduced the percentage preferring independence to 21%). Finally, somewhere in the region of 80% (can’t find the figures) would support full financial autonomy, with only Foreign Affairs and Defence handled by Westminster.

Even the lowest of those figures could conceivably produce a majority for independence in a referendum, so I’d love to know where Nick Clegg gets the idea that supporters of independence are  extremists “far outside the societal norm”.

Nick Clegg, you’ll probably never read this, but just in case you do, I’ve frequently voted for your party since the 1980s, but you have lost me and you aren’t likely to get me back with personal insults. Your party was tanked in Scotland in May last year, and guess where a lot of your votes went? If you ever want them back… well, don’t hold your breath, oath-breaker, but if you do, you need to get over the fact that the SNP are a legitimate and peaceful political party, with the support of a larger proportion of the electorate than the other parties put together (51% in a recent poll), with many supporters and members including at least one Cabinet minister who are English, with widespread support among Scotland’s ethnic minorities, and with a policy of encouraging immigration. And they got there without the support of any UK or Scottish media, and with politicians like you saying stupid things like this. If that’s your extremism, it seems to me that the world could do with a few more extremists.

ggreig: (Crazy or smart?)

Courtesy of [livejournal.com profile] kateaw. It would be interesting to know – beyond the examples given – what the scores are based on:

So, ggreig, your LiveJournal reveals…

You are… 6% unique (blame, for example, your interest in policy-based design), 27% peculiar, 50% interesting, 16% normal and 2% herdlike (partly because you, like everyone else, enjoy doctor who). When it comes to friends you are normal. In terms of the way you relate to people, you are keen to please. Your writing style (based on a recent public entry) is intellectual.

Your overall weirdness is: 42

(The average level of weirdness is: 28.
You are weirder than 82% of other LJers.)

Find out what your weirdness level is!

ggreig: (Default)

Excellent. A majority for the SNP in a proportional electoral system that was specifically chosen to prevent just that ever happening – against not one other major party,but three. That is a stunning result that – realistically – may never be repeated.

After four years of minority government by the SNP, with very hostile opposition and no friends in the media, all three opposition parties took a pounding, which shows that the SNP have done something very right and the other parties have all got it very wrong. Without getting into the politics of it too much, the SNP have come across as can-do and consensual, while the other parties have often appeared negative and oppositionist.

People want positive government, something they’re unused to getting from political parties of all stripes, and they’ve responded to it positively when it’s come along.

That’s about all I want to say, and I haven’t gone into any specifics about policies because I don’t want to get bogged down in discussing them. This is not a political blog, and despite occasionally feeling that I need to comment on something, I want it to stay that way. And I don’t currently have the energy to respond anyway.

I don’t really want to publicise my own political preferences much, but I feel obliged to let you know where I’m coming from, so: I’ve largely viewed myself as a floating voter since turning 18 in 1985, although practically speaking my vote has almost always gone to the Liberals or Lib-Dems. I nearly decided to vote SNP when the Lib Dems first adopted a specific policy against holding a referendum on independence in 2003, and they lost it when they put that policy into practice by choosing to stay out of coalition government on those grounds in 2007. Blocking democratic expression isn’t a “principle” worth staying out of government for.

ggreig: (Jailbird)

There’s an interesting story on the BBC web site about someone mapping the Scottish watershed – a line from north to south (or, of course, if you prefer, vice versa), on either side of which water will flow either into the Atlantic or the North Sea. One would think this would be well known geographical information in a developed country, but apparently it’s never been done before.

The BBC story contains a low-res map of the watershed.

Taking the watershed as a handy dividing line, I can say I’m probably more of an east coast person than west coast, although I’ve spent a fair bit of my life on either side. But I was born and lived in the east until the age of seven, and again for most of the time since I was eighteen. My sister, on the other hand, would be a west coast person.

Of course these facts are utterly irrelevant to everyday life for most people, but it’s cool to think that something so important to the physical geography of Scotland has only just been “discovered”.

There’s also a gallery of images from walking the watershed, and a short interview.

ggreig: (MoonFrown)

Looks like I’m one of the unlucky 0.08% of users whose account has disappeared due to some sort of error at Google.

More luckily, I’m pretty sceptical of the whole idea of “The Cloud” and don’t rely on GMail. Where my e-mail’s concerned, I prefer to rely on an organisation where there’s at least a chance of getting someone on the phone when something goes wrong. However, I am missing some of Google’s other features – I use iGoogle as my home page, and although I don’t need things like the webmaster tools, I’ll feel more comfortable if they come back.

I reported the issue before leaving home this morning, though I’m only just starting to see news reports about it now. Hope it gets sorted out without too much additional hassle.

Update: service seems to have returned at some point during the evening.

ggreig: (Unicorn (Modern))

As postprandial conversations are wont to do, yesterday’s discussion in the pub leapt in little more than a single bound from some quite general topic to the more specific one of Minna Reverelli, the Yodelling Prima Donna.

This was my fault. My Dad had an old 78 rpm record that took my fancy, and I have it beside me as I type. It’s in an old cardboard sleeve that announces it was originally sold by Paterson, Sons & Marr Wood, Ltd (Pianoforte Makers to Their Majesties The King and Queen), of 183 Union Street, Aberdeen (with additional branches in Glasgow, Edinburgh, Dundee, Paisley, Greenock, Perth and Oban).

Minna Reverelli, the Yodelling Prima DonnaThe record itself is a Parlophone recording, D.P. 167, and apparently you can pick up your own second-hand copy – so the Internet informs me – for the princely sum of €2.

Mine is actually third-hand, as the sleeve features a hand-written inscription, “Tommy from Meg 1971”. That’s my Dad, and my great-aunt, his mother’s sister.

The track that drew me is The Cuckoo In The Wood, a song in Viennese dialect with yodelled impressions of a cuckoo. What is there not to like? Winking smile

I had a quick search for it online, and struck lucky. You can hear it on YouTube (unfortunately, embedding this particular video is disabled, so click here, or on the picture).

This morning I also found a small number of additional tracks in MP3 format, and some rather sad information. Minna Reverelli was Jewish and disappeared in Vienna in 1941. Please read what little more there is and enjoy her music so that her memory can live on.

ggreig: (Vacant Podling)

It’s possible to do some cool things with JavaScript, but fundamentally the whole language is still an evil hack that we’re stuck with because it’s widespread, requiring clever hacks like jQuery to hide some of the unpleasantness. A prime example of hackishness – which will no doubt be fixed once they realise just how foolish it is – has  appeared on the pages of the Herald.

Premium content on heraldscotland is now only available to registered users.” Yes, indeedy, it’s true – sort of. If you visit a “premium” page full of prime journalistic content, like the letters page for example, you’ll see the whole article at first, but before you’ve finished reading it, all but the first paragraph or so will disappear.

…hang on a minute…

So, the whole page is already loaded in your browser, but you can only see part of it? View source…

Yep, the whole thing is still there, there hasn’t been a page reload or anything, it’s just been collapsed down using JavaScript. This is a form of security through obscurity (relying on the user not knowing how to sidestep it), which is a notoriously weak approach to protection.

So far, so daft. But the bit that prompted me to write was this. At the end of the “real” content of the page, there’s a noscript tag (intended for the attention of people browsing without JavaScript, the only people who’ll be able to read the entire page without hassle). It says:

You need Javascript enabled in your browser in order to view this page.

Kinect

Sep. 14th, 2010 08:38 pm
ggreig: (Blockhead)

I got back to Scotland from a holiday in California visiting [livejournal.com profile] msinvisfem last week. I saw a lot of interesting stuff, so there’s a lot to write about, but based on previous experience – and about 12GB of photos and videos to sort through – it may be a while before it hits the blog here.

Outside the Microsoft Store, Mission Viejo, CAIn the meantime there’s one thing it’s quite easy to write about quickly, so I’ll start with my trip to one of the first Microsoft Stores, at Mission Viejo. There are currently only four physical Microsoft Stores, all in the States, so while the chances of me buying something off the shelf were pretty slim, it was an interesting opportunity to visit and see what there was to see.

The store bears a distinct resemblance to an Apple Store, though a bit more warm and welcoming with varnished wood in place of the sterile lab look. The staff seemed interested and helpful, although being British and just there for a look, I was mostly more keen to dodge them than interact. The hardware was nice to look at, but difficult to arouse much enthusiasm for when I’m not in the market at the moment, either personally or at work, having just got a touchscreen laptop at the start of the summer.

There was one young guy I spent some time chatting to though, who was demoing something I was surprised and pleased to see: Kinect for Xbox 360. If you haven’t hear about it already, it’s due out in a couple of months and it’s a way to interact with the Xbox 360 without a hand-held controller. That’s a big deal for the Xbox, which will help it catch up with other less sedentary game machines such as the Wii, but it’s also a big deal full stop if it’s actually good; bringing sophisticated real-time computer vision into peoples’ homes (also voice control and facial recognition, though those have appeared in home devices such as phones and cameras before). That’s impressive, and – assuming it’s successful – not so much catching up as leap-frogging other consoles.

It’s an impressive technical achievement, but is it really much different in terms of play from a hand-held controller? I’m not really in a position to say definitively, but the difference is that it’s (quote) “full body play” (promotional video). You only need one controller sat in front of the TV screen, and it will track not just the position of your hands or your feet, but can follow facial expressions too. Judging by the promotional video, it can handle two players at once. I don’t know whether more are possible.

I had a quick shot at a ten-pin bowling game:

Ten-pin bowling with Kinect for XBox 360

First of all, you get the machine to recognise you by positioning yourself on a red spot that appears on the “floor” on the TV screen. I had to shuffle backwards slightly to get “myself” on the spot. Once that was done, all I had to do was reach out my arm to the right to pick up a ball; and do what came naturally to bowl it.

I bowled six frames, and had no difficulty picking it up. In fact, in common with my similarly limited experience of bowling with the Wii, it might be a bit too easy; within that six frames I managed to bowl a turkey, which I’ve never heard of before and certainly never achieved in real life. However, it seems there may be room for greater finesse; the demo guy said that once you’ve practiced a bit with it you can apply spin – and all without a hand-held controller!

Six frames of bowling isn’t enough to give a comprehensive overview of Kinect, but it was fun and natural, and I’m quite excited about this development – both as an Xbox peripheral and as a significant achievement for applied computing in the home.

ggreig: (Three)

It was interesting to come across an old article containing the Autism-Spectrum Quotient Test, which is apparently used as a measure of the extent of autistic traits in adults. There are also warnings from the authors that it’s not a diagnostic tool, so I reckon it falls into the category of “interesting toy that might have indicative results”. Speak to a real medical professional if you have any concerns.

Anyway, the average score for a control group was 16.4, with a score of 32 or more indicating “clinically significant levels of autistic traits”. Don’t read too much into it, you can score more than 32 and still live a normal life, etc.

I scored 33.

I’m quite happy with that. As I have at least the self-awareness of a bollard, I know I’m not the world’s most socially capable person, but any other symptoms would be relatively mildly displayed. I like order, and I can get into routines, in ways that can no doubt be annoying for others, but I’m not seriously obsessive about them; just more comfortable. My liking for order is selective; I can still be pretty messy and disorganised!

I’m happy to have a borderline score because that’s pretty much where I would see myself; somewhere near the edge of most people’s social scale, but fully functioning. I’m also quite happy being a software developer, a profession where people seem to reckon such traits may be more common.

I’m mildly relieved the number wasn’t higher, partly because I don’t want to think of myself as having a “condition” with its accompanying labels, but mainly because I don’t want an excuse. If I’m difficult to deal with in some way, that’s my responsibility and my fault (or maybe yours ;-).

Edit: Realized that the last paragraph could read as being dismissive of the condition of autism. That's not my intention.

ggreig: (MoonFrown)

Here are a couple of interesting and entertaining videos about motivation and positive thinking that may not be what you’re expecting, having read the first half of this sentence.

I'm motivated to view these videos, because I'm positive they'll be entertaining and informative! )
ggreig: (Astronaut)

For the past couple of weeks, the Silurians have been appearing in their first new televised story since 1984, but I’ve been rather dissatisfied, and I’ve worked out what it is that bothers me most.

It’s not the story, which I thought was OK if not stellar. It’s not the acting, which was fine. No, it’s that they’ve changed from bipedal reptile-men into Star Trek actors with knobbly foreheads.

An old school Silurian A Sea Devil A new Silurian

Let me just say again, it’s not the acting that bothers me. Nor is it the quality of the prosthetic makeup, which is clearly pretty good. I don’t mind them looking different from the ones we’ve seen before; the difference between old school Silurians and Sea Devils doesn’t phase me, and I can accept the 1980s costumes even if I think the 1970s ones were actually better.

One of the things I’ve always valued about Doctor Who, though, is its courage in showing us protagonists who are different, even when the budget or technology may not have been there to entirely carry it off. True, that has given us the cliché of the man in the rubber suit, and other supposedly laughable creations such as the ball of frozen Swarfega that is the Rutan in Horror of Fang Rock. But I’m fond of them, and not just patronisingly because they’re amusing or camp. I like them because they’re imaginative, and I excuse their limitations because I value their imaginativeness more highly.

I understand why the decision was made to show more of the actors’ faces; because it’s easier for the actor to convey emotion, because this type of prosthetic is well understood and generally pretty successful, and because the audience will therefore more easily accept the character as real. It’s also more attractive to actors whose face will be visible, both because it’s nice to be seen and because  of the scope for facially expressed emotion. If you want to attract a good actor, why make it hard for yourself?

I still think it was a mistake, and I think it was a mistake particularly in the case of the Silurians. The Silurians are unique in that they’re not aliens from another planet. They’re another intelligent race sleeping under our feet, and they were here first. Because of that, part of their very strength is not how like us they are – but how different. The more they look like scaly humans, the less effective they are in shocking us out of our preconceptions about life on earth.

I understand the fear the producers must have of choosing a rubber-suit monster and having it go wrong; but I remember the first time I saw a werewolf in Buffy the Vampire Slayer. “Good grief, why are we so apologetic about Doctor Who?”, I thought. It did Buffy no harm. It’s great when effects or costumes really work, but more than half the battle is giving the audience something they want to believe. Let’s have a bit of imagination.

ggreig: (MoonFrown)

Well, the first legal case in which I’ve had a financial interest has so far had a disappointing outcome. However, I have no regrets about spending the money. I still see it as not just right, but essential to challenge the exclusion of selected major parties from debates that were always going to be the focus of the election campaign, even if the extent of their effect was unexpected. I stand by the case I made a few days ago.

Since getting home, I’ve searched for and read Lady Smith’s opinion, since the various news reports are not particularly helpful in understanding what happened.

In a nutshell, the emphasis was placed on a different part of the BBC Editorial Guidelines than the one I quoted, and the SNP weren’t aggressive enough in pursuing their case earlier. There was also an emphasis on viewing the debates as being essentially a series which must be completed, for reasons of freedom of speech and contractual obligations.

The part of the BBC Editorial Guidelines that was referred to advised basing impartiality decisions on the voting record from the preceding election at the same level (i.e. the 2005 UK General Election in this case). That is one reasonable basis for decision-making, and I can’t object to it per se, but it does seem at odds with the section I quoted previously, which is also fair – in a different way. I couldn’t see Lady Smith’s justification for preferring one over the other. Obviously my opinion of the relative importance of these conflicting pieces of advice differs from Lady Smith’s.

I am less surprised by the judgment that the SNP were not aggressive enough in pursuing legal action. Seeking a reasonable negotiated solution appeals to me as being the right way to do things (especially if you don’t really have the spare cash to go to court), but if you don’t put the boot in early it can look as if you’re accepting the situation and accept that the opposition’s case have merit. If you’re not serious about defending yourself, why should the court? Reasonable though it may have been to work through all the complaint procedures, allowing the ITV and Sky debates to go ahead before going to court was a tactical error.

I have little sympathy for the simile that the three debates are like a three-act play or a three-round boxing match that must be allowed to run their course. If they’re not fair, they should be stopped; and if they can’t be practically stopped within Scotland only then they should be stopped at the UK level. Sorry, but if they’d followed the model used in other countries such as Canada or New Zealand, there would be no problem. The leaders’ debates may be popular but they’re not necessary for free speech – we managed elections fine without them before.

Finally, another reason for rejecting the interim interdict was that the SNP proposal for a solution was not detailed enough – they left room for negotiation on details such as who should represent them on the debate, what proportion of time they should receive, and so on. Reasonable, maybe, but Lady Smith was of the opinion that this lack of detail would have left the BBC unable to be certain of meeting the requirements of the interdict, and therefore it could not be granted.

I don’t believe this outcome is fair, but justice isn’t necessarily about fairness; just about whether the rules have been satisfied. Personally, I’m not even sure about that, but have to accept Lady Smith’s opinion.

Indications are that a favourable outcome to the judicial review in June is not certain either. If that’s the case, I’m not sure where we go from there, but I don’t believe this is an acceptable way to run or report an election and I’ll be looking for further ways that I can contribute to the prevention of this sort of imbalance in future.

ggreig: (Rune)

Although I don’t like to include politics in this blog, sometimes, as I said back in August, it’s worth raising your head above the parapet for a point of principle. Or putting your money where your mouth is.

You may be aware that there have been some political debates on TV over the last couple of weeks that have created a bit of a fuss. You may also be aware that some political parties feel that they’ve been unfairly excluded from these “Prime Ministerial” debates, since only the three “major” parties’ leaders are present.

Well, I think they’re right. Some parties have been unfairly excluded, and there may be something you can do about it, if you believe that the state broadcaster should be politically neutral during an election campaign.

First of all let’s agree that the line has to be drawn somewhere. It is reasonable to have a TV debate that doesn’t include every independent candidate from every seat throughout the UK, and it’s probably reasonable to exclude political parties that don’t meet some semi-arbitrary threshold in terms of public support.

It won’t surprise you to know that people have already thought about this, and that there are official guidelines as to how political balance should be observed in broadcasting. There are official definitions of which are the “major parties”; and this is where the problems arise. The “Prime Ministerial” debates don’t give all the major parties a fair shake.

Here’s the definition of “major party” from the section of the Ofcom Broadcasting Code December 2009 relating to Elections and Referendums (emphasis mine):

At present in the UK major parties are the Conservative Party, the Labour Party and the Liberal Democrats. In addition, major parties in Scotland and Wales respectively are the Scottish National Party and Plaid Cymru. The major parties in Northern Ireland are the Democratic Unionist Party, Sinn Fein, Social Democratic and Labour Party, and the Ulster Unionist Party.

The BBC Editorial Guidelines on Politics have this to say about Broadcasting during Elections (emphasis in this case is from the original source):

We should make, and be able to defend, our editorial decisions on the basis that they are reasonable and carefully and impartially reached. To achieve this we must ensure that:

  • […less directly relevant points snipped here…]
  • they are aware of the different political structures in the four nations of the United Kingdom and that they are reflected in the election coverage of each nation. Programmes shown across the UK should also take this into account.

It’s clear to me that in any major programming thread that will be broadcast within Scotland or Wales during an election campaign, the SNP and Plaid Cymru should be represented alongside the three major UK parties, since they are major parties where the broadcast will be seen, and standing in direct opposition to the UK parties. If the SNP and Plaid Cymru don’t receive the same level of media attention, then in the appropriate country a major party is being disadvantaged in comparison with the other three.

The broadcasters and the UK parties argue that the SNP and Plaid Cymru get balance through opportunities to respond to the debates, and through local debates in which all four parties appear. However, this does not give balance in either air time or prominence. Given the continued dominance of the Liberal Democrats in the current debates, it’s clear that this does matter. Though it’s fair to note that the Lib Dems’ poll rise seemed to occur immediately before the first TV debate, it’s unlikely it could have been sustained without a good debate performance.

There’s also a case to be made for the parties standing in Northern Ireland; I don’t make it personally because I’m less familiar with Northern Irish politics, and because the three UK parties are not standing there in opposition to the local major parties. If Northern Irish politicians wanted to make that case, I would support it in principle.

Many argue that the SNP and Plaid Cymru should not receive this level of attention because their leaders are vanishingly likely to become UK Prime Minister, or because they have less support across the UK than (for example) UKIP, who are not treated as a major party. These arguments clearly have a broad appeal, even with Scotland or Wales – according to polling, 59% of Scots think that Alex Salmond should have been included in the debates, with 10% "Don't Know", so 31% accept the arguments that he shouldn't.

However, these arguments are canards. It doesn’t matter whether the people the SNP or Plaid Cymru put forward are likely to be Prime Minister, because the electorate don’t elect Prime Ministers; they elect representatives for their local constituencies. While of course people will want to bear in mind who may become Prime Minister as an indirect result of their vote, it’s not the whole purpose of the election, and to pretend that it is distorts the campaign. It is not grounds for excluding a party from debate.

I have a little more sympathy for the argument that the SNP or Plaid Cymru across the UK have less support than other parties also excluded, but I would say it’s a case for their inclusion rather than excluding the SNP or Plaid Cymru. The SNP and Plaid Cymru each have a significant level of support and stand in every seat within the nations they aim to represent. In fact, at the moment, both are parties of government within those nations, either alone or in coalition; and yet they’re to be excluded from key election coverage because they don’t stand outside those nations? If you say that parties with sufficient support to govern a UK member nation are not worthy of balanced treatment in the context of a UK election, you might as well say that the nations that elected them don’t matter. Dangerous territory.

As for the unwieldiness of a debate including more parties, or the “I can’t vote for them where I live, why should I have to listen to them?” arguments? For the first part, life is complicated, deal with it. For the second part, isn’t it good that you have a chance to better understand your neighbours by hearing their views? And isn’t it good for all of the UK if viewpoints not raised by the three UK parties get raised for public consideration, even if you can’t directly vote for the parties raising them? You can still pressure the politicians that you have, to do more to support those ideas.

So what can you do if, like me, you believe that the impartiality of broadcasting has taken a very damaging knock in this election campaign?

The SNP have consistently opposed their exclusion from the debates, and on Thursday their last course of appeal within the BBC, the BBC Trust, denied their claim for more balanced inclusion, despite the SNP proposing a number of compromises that personally I don’t feel they should have felt obliged to. Not being a cash-rich party, today they have announced the creation of a dedicated appeal fund to collect £50,000 for court proceedings, having exhausted all lesser alternatives.

For those interested in precedent and whether legal action is likely to succeed, you may want to take a look at the case of the Panorama interview with John Major in 1995, which the BBC planned to broadcast unbalanced during a Scottish election campaign. Labour and the Lib Dems opposed the broadcast then and won. I am disappointed that neither they nor the BBC  seem to be able to draw the parallels with the current election campaign. (On the basis of history, it’s likely there’s been internal opposition within the BBC in Scotland and Wales, overridden in London. There’s a hint of this in Betsan Powys’ Straight Bat reporting of the BBC Trust decision.)

I believe this is an important point of principle that should be tested in the courts, regardless of political colour, and I’ve made a donation to the BBC Legal Challenge Appeal. If you believe in unbiased election coverage, I would encourage you to consider doing the same. The money needs to be raised by Monday night, in order to lodge papers at the Court of Session first thing on Tuesday.

In the bigger picture, I’m a big fan of the BBC, and I’m not a member of the SNP, nor any party. This time, though, the BBC is in the wrong and something has to be done (ITV and Sky too, but unfortunately the BBC is the most practical and important target). Between the BBC Trust decision on Thursday and the announcement of the appeal fund today, I was considering donating to the SNP’s general funds, but was reluctant to directly support a political party. The appeal fund made my decision much easier.

ggreig: (Black Hat)

25 years ago, I came to St. Andrews and joined WARSoc, the Wargaming And Role-playing Society at the University. I fancied giving wargaming a try, but everyone seemed to be involved in role-playing games instead. I was pointed at one particular group who were using miniatures, because that was about as wargamy as it got.

For the next five years, until he drew it to a close, I played in [livejournal.com profile] flybynightpress's historical fantasy game, New Jerusalem. NJ was a town on the border between eastern Germany and Færie, probably somewhere in what is now modern Poland. The inhabitants were godly puritans who stood fast against the encroachments of witches, Papists and particularly the abominations in the wilderness that surrounded the town (i.e. creatures of the Devil such as goblins, hobgoblins, trolls, giants, etc.).

It was a fantastic introduction to role-playing. The town of New Jerusalem was a classic Base Under Siege, and player characters had to deal with paranoia (their own and that of other citizens, PC and NPC) and issues of faith. Whether your character really believed or not, the appearance of belief was not optional. There was an ever-present threat of being burnt at the stake if you were found to be ungodly. Characters who did believe had to deal with shades of grey; when you went out into the wilderness you tended to discover that while the “abominations” might sometimes have interests that were inimical to yours, they were sometimes nicer people than the adventurers… Definite anti-hero territory.

Review the film, already! )
ggreig: (Unicorn (Modern))

Hurrah! for a new Scottish newspaper, albeit not a very traditional one. The Caledonian Mercury, a name last used for a Scottish paper in 1867, is mostly going to appear online, with occasional print editions. It’s a commercial venture written by real journalists working freelance, and is an attempt to break out of the straitjackets (various) of the current print media.

It makes the expected promises about wanting to be a positive contribution to journalism north of the border. It makes a rather less expected, but welcome, promise not to subject itself to the Scottish cringe.

It’ll be interesting to see how it measures up. My impression on its first day of official publication is that it’s made a good start.

There isn’t as much content as in the more traditional newspapers, and some of it’s obviously been written as much as a few weeks ahead of the launch date, but what is there covers stories I haven’t seen addressed elsewhere, and covers them well, so on day 1 it has added value.

It’s difficult to address the issue of the Scottish cringe without straying into partisan politics, and generating more heat than light. I think that’s a shame, as a pride in Scotland should not be in itself a political issue. Venture into the comment sections in other online news sources, though, and you’ll see vehement amateur politicians metaphorically kicking lumps out of each other, and accusing the publication and each other of outrageous bias; either as tartan-swathed revolutionaries or Anglophile Quislings.

No-one comes out of that sort of “debate” smelling of roses, and I’m hesitant to suggest that either side might have a point; but it does seem to me that at a time when there’s an SNP government in Holyrood there’s a lack of traditional news outlets – even Scottish ones – prepared to give Scottish issues a fair shake and discuss what’s being done or said seriously, on its merits – or even to discuss them at all, sometimes.

My first impression is that the Caledonian Mercury’s political coverage hasn’t succumbed to using unprofessionally prejudicial language, but has been quite even-handed and considered in its coverage of the parties. There’s more coverage of some parties than others, but that may balance out over time.

If for no other reason, you must visit it as the new home of Rab McNeil’s Holyrood sketch – once upon a time the last reason I clung on to buying The Scotsman! (And I like their unicorn.)

June 2017

S M T W T F S
    123
45 678910
11121314151617
18192021222324
252627282930 

Most Popular Tags

Syndicate

RSS Atom

Style Credit

Page generated Jul. 13th, 2025 04:08 am
Powered by Dreamwidth Studios