Saturday, 30 October 2010

Saturday: Surface Detail

Surface Detail

I finished the latest Iain M. Banks Culture novel, Surface Detail, last night. I'm afraid that it was a big disappointment and, for the first time with a Culture novel, I was looking forward to the end of the book.

The main problem is that the story is told from way, way too many perspectives. There is, essentially, a very thin story, or rather two intertwined stories, stretched to breaking point by telling it from several different perspectives in order to pad out the book to just over 600 pages. The main perspectives are:

  • A virtual person, a disembodied consciousness, fighting a never ending war;
  • Another virtual person suffering in a simulated Hell;
  • A reborn person seeking revenge for her own murder;
  • The person she's seeking revenge against;
  • A Culture agent sent to stop her.

In addition there were other perspectives, but these were simply walk-on parts, not even essential to the story, but adding to the confusion and tedium. I felt like shouting "For Christ's sake, GET ON WITH IT!" at regular intervals.

Olaf Stapledon's Last and First Men

I thought I'd have a bash at this next, as it's considered to be a classic. Written in 1930, it's the history of Mankind written five million years in the future by the last man.

Wednesday, 20 October 2010

Wednesday: Shiny London and Typography

The Serpentine Gallery

After meeting with a friend up in London, I went to the Serpentine Gallery in Hyde Park. It was a bright, shiny day in Old London Town and I took a few photos.

The Serpentine Gallery is really small, only about two rooms, and contains only modern art (at the moment). One exhibit looked like the contents of someone's bed room squashed up into a really small space. Another was a set of photographs, like time lapse, being displayed on a wall. Another was a video of a bloke Moonwalking to some classical music. More intriguing was Anish Kapoor's mirror sculptres. Really simple, but rather beguiling:



Now this would get my vote at the Turner Prize.

Typography

As some may know, I have been interested in typography and fonts since I was a kid: my Dad brought home a Letraset book from work and it was facinating. There is currently a very good book on the subject called Just My Type by Simon Garfield, which is a very good read and highly recommended.

Tuesday, 19 October 2010

Tuesday: Tunng and Duxford

Tunng

Yesterday I did my usual afternoon shift at the Oxfam shop. However, John, who's normally on the counter upstairs, was on holiday and so I replaced him. Although upstairs is quiet (it's the music/DVD section, full of old LP's), it has a little music centre and I took some CD's to play. One of them was a freebie from The Word magazine with the nicest, most charming version of Guns and Roses' "Welcome to the Jungle" you have ever heard, by Hellsongs.

Another CD was the latest album by Tunng, called "...And Then We Saw Land". They are a folk band, not a genre I have much to do with, but I heard them on "The Imagined Village" album, which won quite a few music awards, doing a version of "Death and the Maiden". They are a very original band, not avant garde exactly but as near as folk is ever likely to get. For instance, one song on the album ends with what sounds like someone dropping a scaffolding pole onto a concrete floor. I know it's hardly Throbbing Gristle, but we're talking folk music here, remember. The album is patchy, not all the songs work, but when they do it's quite something.

Duxford

I've spent most of the afternoon out at Duxford, photographing aeroplanes. The weather started okay, but by the time I got to the museum, it started to hack down, so a bit miserable. Still, I got to see the Duxford TSR2:



Wayne Rooney

As a long time Man. City fan, I can't help but feel sorry for the Salford Boys Club Football Team (a.k.a. ManU), and although I'm laughing on the outside, I'm also laughing on the inside. They've obviously run out of meat pies for Wayne, and there are rumours that he'll join the only real Manchester football club. City seems to get most it's players from Salford these days, anyway, and if he's as good as "El Torro", we've got the league in the bag. And even if he doesn't, it's still funny.

Friday, 8 October 2010

Friday: The Wounded Platoon

The BBC showed a program a few months ago in the "This World" series about a US army infantry platoon, 3rd Platoon, Charlie Company, 1st Battalion, 506th Infantry Regiment. It's a revised version that came out in the states. The documentary describes the platoon's tour of Iraq and what happened after they came back. Two of the platoon are currently in jail for murder and attemped murder in Colorado Springs, where the regiment was based while back home. It's worth watching.

Thursday, 7 October 2010

Thursday: Pharmacopedia Domestica and Surface Detail

Pharmacopedia Domestica

In a long and otherwise uneventful day at the Oxfam Shop, I came across an old book that Andrew was valuing. It's called Pharmacopedia Domestica by Thomas Fuller M.D. written in 1739! In it there's all kinds of bizzare recipes, including "Salts of Steel" and:

Oil of Earth-worms

Take of Earth-worms, well washed and cut into Pieces, six Ounces; Oil-Olive, a Pint and half; boil them together till the Wine is exhaled, and lastly, strain off the Oil through a Piece of Canvas.

It's Virtues

This Oil is Penetrating, strengthens weak Nerves, corrects scorbutic Acrimony, eases wandering gouty Pains, and particularly designed for the Joins.

For Oil of Adder's Tongue (maybe a kind of plant, not real adder's tongues) this is "To be made in the common way".

Surface Detail

The latest Culture book by Iain M. Banks is out today. It's called Surface Detail and has got some good write ups, some saying that it's his best Culture book since Player of Games. I bought a copy and started reading it this afternoon. I'll let you know.

Wednesday, 6 October 2010

Tuesday: The Turner Prize

After meeting up with a friend in town, I decided to go and see the Turner Prize exhibition at Tate Britain. I took the Thames ferry which runs between Tate Modern and the old gallery and got quite a good river side view of the city (I took some photographs) . I recommend it.

The Turner Prize is to promote contemporary art and the four artists this year are:

  • Dexter Dalwood
  • The Otolith Group
  • Angela de la Cruz
  • Susan Philipsz

Dexter Dalwood

On entering the exhibition space, the first artist's work on display is Dexter Dalwood. Dexter paints canvases, which must be a refreshing change for the Turner Prize. It seems that part of appreciating the work of the artist is to know what the title of the work is and to have some knowledge of the subject matter. For example, this is quite a moody piece, a tree on a moonlight night:



But the title of the piece is "The Death of David Kelly", which puts a slightly different slant on the whole thing, Kelly's body being found in a wood, the controversy surrounding his death, etc.

The Otolith Group

This was lots of TV screens arranged around the room showing a documentary, with a larger screen showing another documentary. I think this is what is called "phoning it in".

Angela de la Cruz

Get a pile of builders rubble. Put a tarpaulin over it and cover the tarpaulin with thick paint. Then enter it into the Turner Prize. I kid you not:



One of the funnier things about this is that with a work of art, the media is listed, e.g. Oil on Canvas, Silverpoint on Coloured Paper, etc. One of the submissions was "Untitled (Hold No 1), Oil on Aluminium Box and Metal Filing Cabinet". Now that's what I call mixed media.

Susan Philipsz

The problem with this work is that it relies heavily on the location. When you walk into the room, it's empty apart from four speakers playing the artist singing an old Scottish folk song. Reading the catalogue, the music is meant to be played under some bridge in Glasgow. This seems like an original idea until you realise it's also the idea behind lift music and the songs they play in supermarkets.

Conclusion

To say which one will win the prize, I'd have to go with Dexter Dalwood, with Susan Philipsz as a close second. The other two didn't seem to be putting the effort in. However, even these two seemed to be lacking something. What I was hoping for was something which engaged the viewer on some level, like when you walk into the room, a motion detector tracked you and produced a sound depending on where you were and how fast you were moving. There's an interactive art piece in the Science Museum which does something like that and there used to be one in the Meadows shopping centre in Chelmsford. This is 21st century art.

I think the last words on the subject should go to Calvin and Hobbes:

Calvin: Art isn't about ideas. It's about style. The most crucial career decision is picking a good "ism" so everyone knows how to categorize you without understanding the work.

Hobbes: You do goofy drawings on the sidewalk.

Calvin: Right. I'm a suburban post-modernist.

Hobbes: Aren't we all.

Calvin: I was going to be a neo-deconstructivist but Mom wouldn't let me.

Thursday, 30 September 2010

Thursday: Indepenent TV Review

The Independent newspaper has published a review of new US TV series coming to the UK soon. Mentioned are Terriers and Rubicon, two of my personal favourites.

Tuesday, 28 September 2010

The Henry Rollins Show

With having access to Freeview at the moment, which I don't normally, I've been watching The Henry Rollins Show on Film24. It's a hoot and I'd recommend it to anyone.

Terriers

A rather peculiar show on FX at the moment is Terriers. This is about two guys, one a former cop and the other a thief he gave a break to once, forming a detective agency and solving crimes. It sounds formulaic, but it's not. Sometimes the cases end badly, sometimes there's fallout from the cases that don't. They're not licensed, which adds further complications. It's been created by Shawn Ryan, who was behind The Shield. There's just something a bit different about the show which makes it worth watching.

Tuesday: Hunter S. Thompson

Earlier this year, Matt lent me a copy of Fear and Loathing in Las Vegas by Hunter S. Thompson. I'd tried to read it before, but never quite finished it and I think the reason is that it seems to finish about two thirds the way through and then sort of trails off, or, more likely, comes unstuck. It's an entertaining enough read though, and Thompson, like Oscar Wilde, is very quotable.

I've recently bought a copy of Fear and Loathing on the Campaign Trail '72, when he followed George McGovern in his vain attempt at the presidency of the U.S. against Richard Nixon.


Nixon eventually resigned after the Watergate scandal in 1974 which was all about a break in at the Democratic headquarters in the Watergate building in Washington DC, part of a dirty tricks campaign against McGovern.

Thompson's book has been referred to by one of the Democrat organizers as "the least factual and most accurate" account of what happened and is quite a bit more substantial that his previous work, about 1" thick.

Sunday, 26 September 2010

Sunday: All Our Working Lives

In the 1980's there was a TV Documentary series called All Our Working Lives. The programes concern the history of various industries, chemicals, the aircraft industry, electronics, etc. BBC4 have updated the series and the program today was on the cotton industry in Lancashire, a story of decline and fall, with almost no industry left today.

My grandmother was a spinner in one of the smaller mills in Bury until she retired at 65. I was taken into the mill when she retired and I was about four or five. The spinning machines towered above like some kind of metal canyon. It was so noisy that all the women could lip-read.

Tuesday, 21 September 2010

Tuesday: It's the 70's all over again

Hawaii Five-O

CBS have remade Hawaii Five-O. I've got some Yes LP's but I haven't got any flared jeans...

Sunday, 19 September 2010

Sunday: Bikes and Punk; Alan

Alan

I've tried to write about this before, but it's difficult.

Alan is my maternal uncle, and we've always got along well. He's very gregarious and always well dressed: I've never seen him wear jeans or trainers, always good slacks and leather shoes, a shirt.

About fifteen years ago he had a nervous breakdown and was hospitalised. He recovered and has been okay since until about six weeks ago when he started behaving oddly, the old problems coming back, and he was hospitalised again about two weeks ago. I've been spending the last two weeks zipping up and down the M11 and M6 to go and see him. He's in a pleasant enough ward, low security, and seems to be recovering slowly, three steps forward, two steps back.

Hollywood Doll at the NCC Custom Bike Show

On a lighter note, I went to see Keith (a.k.a. K.T. Glitz) and his band, Hollywood Doll, at the NCC Custom Bike Show. It always seems a bit weird to use the phrases "old-fashioned" and "punk band" together, but that's what came to mind, and jolly good they were too, playing with gusto and skill. It reminded me a bit of the B52's.

I took some photo's of the event, and some of the rather classy bikes on display.

Mad Men

I've been watching back-to-back episodes of the first three seasons of AMC's Mad Men, all about advertising executives in 1960's New York. It's surprisingly engaging and deservedly won umpteen Emmy's and Golden Globe's.

Friday, 10 September 2010

Friday: Jobs and Job Centre

Jobs

I'm not going to say anything much about job interviews at the moment as it's at a fragile point in the development and I don't want to jinx it. I will say that taking along some of my work, as requested by the client, did have a positive affect, so fingers crossed.

Job Centre

The last but one time I signed on, I was told to attend a little seminar called a Back To Work session. A group of us all arrived a bit earlier than normal (usually 1:30PM but this was at 11:30AM), were shown into a room and given a little presentation about finding work, as well as given an expensive looking little handout. Basically, this was a shot across the bows about reviewing our achievements so far, which will take place in about a months' time in October. There is also an oportunity to gain, through a free training course, a fork-lift truck licence. This is aimed at warehouse work, of which there is rather a lot in Basildon, as we were told.

Monday, 30 August 2010

Sunday: Deathwatch!!!

Deathwatch

As you may know, I have an interest in role playing games. It stems from when I was at University and was a member of the games club where I first played Traveller (I'm not a big fan of D&D). Recently, Games Workshop have collaborated with Fantasy Flight Games and produced a W40K series of role playing games, the latest of which is Deathwatch (it's best to pronounce the name with as much Gothic melodrama as you can muster: I do). Fantasy Flight have quite a good marketing strategy for these games. They produce a cut-down introductory adventure which can be played without the core rule book and just a set of percentile dice (two D10's, one for tens, the other for units). The Deathwatch adventures are called Final Sanction and Oblivion's Edge and are available as free PDF's.

Jobs

I've been a little busy recently coding in Delphi (?!?). The week before last, an agent rang me up and asked me for a copy of my most recent CV. The agent normally recruits payroll administrators, but one of his clients had asked for a Delphi programmer and he'd seen an old CV of mine on Planet Recuit. I sent him my latest CV and heard nothing more. The following week he phoned me back and asked me if I could attend an interview in London (Finsbury) on Thursday 2nd September. I'll be given a technical test but also, unusually, they wanted a sample of my existing work. The only Delphi work I've done at home in the recent past was to sort out problems at work: I'd e-mail a fragment of code to home from work and then e-mail the solution back, but I don't have anything standalone. So I've set about creating a little cryptographic application using the RC4 algorithm I mentioned previously. I've got a nice little front-end with big buttons and nice icons:

Crypto.png

and I've used TDD for most of the class work. I'll also do a little documentation to explain how it works and the design ideas behind it.

Tuesday, 24 August 2010

Digital Ciphers

Digital ciphers have become very important due to the Internet and the desire for secure communications. They break down into three distinct types:
Sometimes included with in this list are message digest algorithms, but I've excluded these for the moment and I'll cover them at a later date.

Public Key Ciphers

Up until the 1970's, most ciphers, both stream ciphers and block ciphers, involved the use of a single key to operate. You use the same key to encrypt the message and to decrypt it. The problem with this is that the key becomes critical to the security of the system: if a third-party gets hold of it, the security is compromised. In the 70's two groups, one in the UK working for GCHQ and some academics at MIT in the US, came up with the idea that you can have one algorithm that encrypts using one key, a public key, and another algorithm that decrypts using another key, a private key.

The mathematics behind public/private key cryptography is complex, involving a branch of mathematics called number theory, and involved the use of huge prime numbers. This gives rise to the problem that public key ciphers are generally slower compared to the equivalent block or stream cipher.

Stream Ciphers

As explained before, stream ciphers operate on a bit stream, one bit at a time, XORing the plain text stream with a stream of pseudo-random bits to produce the cipher text stream:

Stream Cipher.png

Stream ciphers are extremely fast, much faster than block ciphers, but are less secure. For this reason, they tend to be used where speed is a critical factor, such as mobile phone telephony. The clever bit about stream ciphers is in the design of the algorithm that produces the key stream, as it must be able to produce a stream of bits which looks random, but is seeded from a unique key. I'll discuss the design of a simple yet surprisingly strong cipher, RC4, at a later date.

Block Ciphers

Instead of working on a single bit at a time, a block cipher works, as the name suggests, on a block of bits, encrypting the same block over and over. The most common way of doing this is using a design known as a Feistel Network. This splits the block into two halves. The right half gets swapped with the left half and the left half is encrypted using a function of the right half and part of the key:

Feistel Network.png

Block ciphers are, generally, more secure than stream ciphers and faster than public key ciphers, so they are used for encrypting large quantities of data, such as files and web pages. Also block ciphers can support different modes of operation, such as cipher block chaining, which can enhance strength of the encryption even further.

Monday, 23 August 2010

Monday: Christmas at Oxfam

I only did a short shift today at Oxfam, just enough that Claire was able to do some book sorting instead of having to be on the till all the time.

We also got our first delivery of Christmas cards, about thirty boxes, so Merry Christmas, everybody, for when it comes.

Sunday: A Rainy Day in Lewes

I dislike being in the flat for more than a day so, for a change, I decided to go on a trip to Lewes in East Sussex. Lewes lives, to some extent, in the shadow of it's neighbour Brighton so there tends to be fewer tourists, especially on a wet day. The town also has a more business-like feel to it, being the county town, and I've always liked it.

After a two-hour journey (with a twenty minute stop-over) I was glad to pull over in a nice little car park. I walked around aimlessly for an hour or two, taking photographs, when it started to rain quite hard. I ducked into the local Cafe Nero, bought a cappuccino and did a number puzzle for a while. The rain didn't seem to be letting up, so I went back out, umbrella in hand, and wandered a little through the town and back to the car.

I got lost going back and ended up going through East Grinstead before ending up back at the M25.

Saturday, 21 August 2010

Java and C#

A recent conversation reminded me of the debate about Java and C#. The subject is not as clear cut as might appear and there are things to consider beyond the purely technical reasons for using either.

Java's Age

Java has been around for a while now, since 1995, and was one of the first major commercial object-oriented languages designed as such. C# is relatively new, released in 2002, and has features, such as reflection, that have been invented since Java was released. Java has either only partially included these new features or not at all. The reason for this conservatism in language design is that Sun has been focused on backward compatibility, even at the byte code level, and has been reluctant to implement new features that break this. Microsoft has had a reputation for being somewhat careless about backward compatibility, although this has changed somewhat as they've tried to promote .Net as an open standard.

Java's age, however, is also a head-start and there are many application frameworks and tool suites for Java, such as Spring, Hibernate, and the Apache Jakarta project, which are very mature. C#, or rather .Net, equivalents are only just starting to develop, and some of those that exist are actually ports of Java systems, such as Spring.Net and NHibernate.

Web Enabled

From the start, .Net has been designed for use in web applications. The effect of .Net on ASP, for example, has been almost revolutionary. In particular, .Net has libraries which make the development of web services and SOA much easier than before. Java, on the other hand, has had web services introduced retrospectively, through changes to J2EE and frameworks like Spring and languages like JSP.

UI Applications

Like web applications, .Net has been geared up to produce Windows applications right from the start, although not to the degree that Delphi has. Java has the Swing library, which, although cross-platform, produces very poor applications. It may be worth noting, however, that Vuze, one of the most popular bittorrent clients, is implemented in Java.

Cross Platform

From the start, Java was designed to be cross-platform. The Java slogan has always been, "build once, run anywhere" and Java applications can be built on a Linux box and run on Windows. .Net applications can only be run on Windows and .Net web applications only on IIS, Microsoft's web server. There are ports of .Net to other platforms, such as Mono, but these are not compatible with .Net to in the same way that different implementations of Java are.

The cross-platform limitation of .Net also makes it easier to take advantage of features only available in Windows and nowhere else. This is particularly true of Windows applications.

Politics

Java has evolved in a very open culture at Sun, Java going open source in 2007. Even though Sun held the licences to Java, it included interested groups in it's decision making process, what Sun called the Java Community Process. This is probably because the focus at Sun was hardware, which is where it made the bulk of it's money, rather than software. With the buyout of Sun by Oracle, this may change as Oracle are a software vendor, like Microsoft, although not development tools.

In contrast, .Net is very proprietary. Microsoft have not developed a port for .Net to Linux, for example, because of the licencing problems involved with the GPL and because Microsoft has no control over the development of the Linux operating system. In other words, if you want to use .Net, you are stuck with Windows and Microsoft. In anti-pattern terms, this is known as "vendor lock-in".

Conclusion

The choice between .Net and Java is not an easy one. There are a lot of technical factors to be considered, as well as the one's I've listed above. I tend to go for Java, but this is based on the cross-platform nature of Java, in addition to it's maturity and the vendor lock-in aspect. There are good arguments for .Net, however, including Microsoft's considerable support for it for the for the foreseeable future, and it's close relation with the Windows operating system. It also depends on the nature of the work being done. If it's going to be mostly Windows applications, then .Net is the obvious choice. With web applications, it's more complex, but, again, if it's going to be based on Windows, .Net seems to be the right choice. There are other choices than .Net and Java for the web, however, Ruby and PHP for example.

Another consideration is how much is it going to cost to move to these development languages from wherever you are now. Java and C# are syntactically very similar (the claim that C# is a clone of Java has some truth), so the jump from, say, Delphi or Visual Basic, would be the same to some extent.

A good idea is to look at other companies and see the choices they made, but understanding why they made those choices. For example, why do Google use C++, Java and Python, especially Python? Wikipedia is made using PHP, which is also cross-platform independent.

And, of course, the worst choice is one made from blind ignorance.

Friday, 20 August 2010

Friday: A Trip to the Science Museum

It's been a while since I went to the Science Museum in London. They've got an exhibition called "Who am I?" all about human beings. I remember something about it a few years ago, but it was a very small exhibit at the time. They've now expanded it and it's huge, covering an entire floor. It was quite interesting, but there were hundreds of kids milling about and you couldn't get anywhere near any of the interactive suff, which was a shame.

The Space exhibit was quite fantastic and they had a J2 rocket motor, used to power the giant Saturn V Apollo rockets:



Brilliant!! They also had the Apollo 10 re-entry capsule:



While there, I also bought some CyberClean to get rid of the gunge on my laptop keyboard.

Thursday, 19 August 2010

Ciphers

Running on from the previous article about codes, I thought I'd write some more, this time about ciphers.

A cipher differs from a code, in that a cipher replaces letters, or numbers, with another, whereas a code can replace many letters or words with just one. For example, the phrase "Meet me tonight" can be replaced by the code 1254, or "blue", or whatever. If we encypher the message, however, by replacing the individual letters with the key to the right on the keyboard we get "<rry ,r ypmohjy". This is known as a substitution cipher. The other type of cipher is called transposition. This is simply taking the letters of the message and re-arranging them, as in an anagram:

M M N T
E E I X
E T G Y
T O H Z

Reading the letters vertically produces the message, with a little extra letters to make a square number. Horizontally produces the code, MMNT EEIX ETGY TOHZ.

Digital Ciphers

Instead of working on letters of the alphabet, digital ciphers work on bits, or blocks of bits, usually using an XOR function. For example, convert the message to ASCII:

M e e t
m e
77 101 101 116 32 109 101
1001101 1100101 1100101 1110100 0100000 1101101 1100101

The XOR function changes the bits such that unequal bits produce a 1, while equal bits produce a 0. If we now use an ASCII key phrase:

Plaintext M e e t
m e
ASCII (Decimal) 77 101 101 116 32 109 101
Binary 1001101 1100101 1100101 1110100 0100000 1101101 1100101
Keytext S e n d
t h
ASCII (Decimal) 83 101 110 100 32 116 104
Binary 1010011 1100101 1101110 1100100 0100000 1110100 1101000
XOR Result 0011110 0000000 0001011 0010000 0000000 0011001 0001101
Decimal 30 0 11 16 0 25 13

The result of XORing is a series of mostly unprintable ASCII characters, but the stream now bears no relation to the original message. For example, the three "e"'s in the message are now all different, 0, 11, and 13.

The mechanism above is roughly how a Stream Cipher works. Instead of a key phrase, the cipher generates an endless stream of seemingly random bits which are XOR'd with the plaintext stream to produce the cipher stream.