Wednesday 31 July 2013

Sunday Oxfam and a Penguin Special

I've started doing Sunday morning shifts at the shop at Mark's request. They've had a bit falling out with one of the volunteers, which is very rare. Apparently, he's suspected of dipping into the till, a definite no-no, so was asked to leave (Mark reckoned he had a gambling habit, centred on slot-machines).

John was there as well, part of his "tortoise" strategy to Michelle's "hare", I'd imagine. He'd put aside another special and knocked the price down as it was damaged:


S14!! from 1938. Mowerer was an American foreign correspondent for the Chicago Daily News (his brother was the editor at the time) and was in Germany at the last pre-war election, in 1933, writing dispatches criticising Hitler and the Nazi's. Naturally, they threw him out, so he didn't end up becomming as famous as Shirer, but he did get around a bit, as this book shows. The damage is on the cover: the inner front leaf has come loose and has been either cut or carefully torn, but is included with the book, pretty much intact otherwise.

Tuesday 30 July 2013

Monday - Untangling the Web: Ruby on Rails and Drupal

After a short and uneventful stint at the shop, I attended this months meeting of Untangling the Web. The two presentation I saw were, firstly, an overview of Ruby on Rails, by Oliver Legg.


Rails is a web framework for the Ruby programming language. Ruby became quite a hot language about ten years ago when Rails first came out. There were other frameworks, for other languages, but Ruby is incredibly flexible, and Rails very well thought out, so it became something of a hit. Things have cooled off somewhat during the last few years, and Rails has a few competing frameworks for Ruby, notably Sinatra, but it's still has it's adherents.

The second presentation was by Darren Mothersele regarding Drupal.


This was quite a comprehensive overview and very intriguing. I'd looked at Drupal a few years ago as a suitable Content Management System (a kind of web-site-in-a-box) but found it to be a little over-complicated for basic use. It's changed a bit since then, notably when the architecture was re-designed in such a way as to abstract and modularise the core components. The net effect of this is to create a meta-CMS, or a CMS building kit, through the use of Drupal Distributions. For example, there's a distribution to support new media businesses, OpenPublish. There are ones to support Open Government, NGO's, eCommerce and so on. Darren also covered new features in Drupal 8, to be released next year, which includes web services, multi-lingual support and responsive design (previously plug-in modules) in the core API.

The Untangle the Web presentations have been quite good so far, providing an overview to compliment the in-depth presentations at Skills Matter.

Sunday 28 July 2013

The Dark Knight Rises

I got this DVD at Christmas but have only just got around to watching it. Bruce Wayne (Christian Bale), and the Batman, face their greatest challenge when Bane (Tom Hardy) attempts to take over Gotham City.


The idea seems to be to conclude the trilogy by re-writing the plot of the first film. Gotham, again, gets cut off and isolated, this time for months rather than just a single night. Even Bane is, at least initially, said to be a student of Ra's al Ghul, the villain in the first film. The effects are good enough, as is the acting, but there's something vaguely tired and re-cycled about the whole thing, as if everyone couldn't wait to get shot of it and move on to something new.

Friday 26 July 2013

Thursday - Cambridge Folk Festival 2013

I went along to the Carbridge Folk Festival yesterday afternoon to get a little music. I had my usual drink of very refreshing lemonade (no mint in it this time!):


It seemed to be a bit of a singer/songwriter line up, but there were one or two bands. It started with....

The Brass Funkeys



What a great band! It was a bit like a New Orleans Jazz Band, but a bit more hyped up and playing anything that came to mind. This includes Seven Nation Army, by the White Stripes, and One Step Beyond, by Madness, as well as traditional songs like Fly Away. I've been playing around with the video settings on the camera, so this doesn't anywhere near do justice to them:


Their final song got everyone singing "Sweet dreams are made of this...".

Katheryn Roberts and Sean Lakeman


A husband and wife folk duo, they sang in a traditional folk style. Very nice, she's got a lovely voice and some very good songs.

Willy Mason


An American singer/songwriter, he's a bit too MOR for my taste, but the songs were well crafted.

Lucy Rose



The "name" act of the day, by the looks of it. Her songs were good, but I think she's too intimate a singer for a festival, especially late in the evening. The afternoon on Saturday would have been more appropriate.

Overall, I think they needed a band to really liven things up a bit. Bellowhead are on tonight, which seems to be about right, given their reputation.

Coda

As I was sat on the grass reading, this small group of young lads nearby were playing, one with a banjo and another with a guitar. The music was good, although their voices weren't strong enough, and they got a round of applause from those around them when they finished. It's that kind of festival.

Tuesday 23 July 2013

Real World Comparison of Scala and Clojure

Tonight, I attended a presentation by Robert Rees (the podcast available here), from the Guardian Newspaper group, comparing his experiences with both Scala (which is being rapidly adopted by the Guardian, along with MongoDB, to replace their Java/Oracle technology base by the years' end) and it's functional competitor Clojure.


I'll just write a little bit of context for those who aren't too familiar with what all the fuss is about.

Usually, when you make a piece of software that runs on an operating system, such as, say, Windows or Android, you have two pieces of software, a compiler and a linker, that turn the code into an executable, which you can then run. Most pieces of software are done like this, from my noddy little exercises in C for college up to Microsoft's Office suite. About fifteen years ago, a group of programmers at Sun Microsystems, in the U.S., came up with the idea that you can separate the executable into two halves: the first bit would be the specific code to do a particular job and the second bit to be more general that would manage the communication between the specific bit and the operating system (the idea wasn't theirs, exactly, but the way they were going to use it was). This bit, or layer, was called a "virtual machine" and it could be re-written for any operating system in such a way that the specific program could be run on any virtual machine without having to be re-compiled, what Sun called "compile once, run anywhere". Thus the Java Language and the Java Virtual Machine (JVM) were created. The Java compiler produces something called "bytecode", a sort of half-way house between code and executable, that can be run by the JVM. In theory (although not an idea immediately taken up by Sun) any language, not just Java, can be turned into byte code by a suitable compiler to be run by the JVM. Unfortunately, Sun jealously guard the definition of byte code, which is the interface to the JVM and how it works, so that no-one can produce another language which runs on the JVM (and can compete with Java, and Sun), unless Sun say so. The same also goes for the JVM itself, thus the first JVM for Linux was made by Sun, not the open-source community.

Skip a few years and up come Microsoft. They've adopted the same idea a few years earlier for their Visual Basic language, but it's not particularly well done. They have a word with Sun about creating a version of Java for Windows. Sun say "ok, but we're watching you!!" (Microsoft being a large corporation with a somewhat mixed reputation, both technically and commercially). Microsoft create their own version of Java, called J++, and a virtual machine to match, but there's a few cross word from Sun (in the form of a legal suit) as they don't like what they see (surprise, surprise). In the fallout, Microsoft create .Net, which is their collective name for both the new Windows virtual machine, the code libraries that go with it, and a load of related (and, some might say, unrelated) technologies. The .Net "VM", called the Common Language Runtime (CLR), is so optimised for Windows, and so pervasive, that almost every executable on Windows now has to use it. Microsoft, like Sun before it, also produced a Java-like (and improved) language, C#, as well as adapting Visual Basic and Visual C++ for use with this new technology.

"OK", says you, "but what's this got to do with Scala and Clojure?". Well, one of the things that Microsoft did is open up the .Net interfaces and, in particular, the definition of the .Net byte code, called Common Intermediate Language (CIL). This means that anybody with sufficient skill can implement a .Net compatible language compiler. This didn't have much of an impact, at first, but in reaction, Sun decided to go one further and open-source most (but not all) of the JVM, an almost complete reversal of the previous policy. It's a bit baffling as to why, but Sun were having financial problems at the time and were subsequently taken over by Oracle, so it might have been something to do with that. Anyway, this openness means that, like .Net, people with sufficient skill can produce new languages for the JVM, and this is what Scala and Clojure are.

Both Languages implement functional programming, but Scala implements both functional programming ideas and object oriented ideas, like those in Java, C++, C# and Delphi. Clojure, on the other hand, is an implementation of Lisp, a mathematics-based language using something called Lambda calculus (invented by Alonzo Church and the basis for functional programming) and one of the oldest programming languages.

Robert's presentation, done in a friendly and relaxed style, took us through the two languages and compared their various features. Although he seemed to prefer Clojure, he admitted that it had some problems which might be difficult to overcome in an environment where Java, or a similar language such as C#, was established. In that case, Scala might be more easily adopted, despite it's more compromised implementation of functional programming.

However, he also highlighted the future release of Java 8, which is puported to have Lambda extensions, and might make adopting Scala or Clojure moot. Also interesting was his theory that if Microsoft implemented similar features in C#, F#, it's functional programming language, would similarly be redundant.

Sunday 21 July 2013

Oz The Great and Powerful and Lemony Snicket's A Series of Unfortunate Events

I thought I'd place these together for contrast as they are both based on children's stories. First up, the prequel to The Wizard of Oz through my LoveFilm subscription. Oscar "Oz" Diggs (James Franco), a sideshow magician gets whisked by a tornado to a mysterious land.


A bit of personal history here: I was The Wizard of Oz! Many moons ago, I was in an amateur dramatics company and I played the title role when we did a production of the musical the original film was based on, so it was interesting to see a bit more of the story.

It's quite a good film, with very good special effects and fills in the background to the original story. The only quibble I have with it is that it seems to be a children's story with no children in it, so it becomes difficult for children to empathise with anyone, and it's not really a sophisticated enough story for adults. Franco's a better Oz than I was, though.

Next is the film adaption of the very successful Lemony Snicket books I got from the shop. The Baudelaire children, Violet, Klaus and Sunny, are orphaned and, passing through the hands of various guardians, try to find out what happened to their parents while avoiding the clutches of the lethal Count Olaf (Jim Carrey).


Your enjoyment of this film will depend on what you think of Jim Carrey's performance as the evil Count. I thought he wasn't villainous enough to counteract the hammyness of the role. However, the rest of the cast is good enough to compensate, and the plot is a good one, in particular how the children escape the Count's attempts to kill them.

Both films are enjoyable, by adults and children, although the second probably has the edge with all ages.

Friday 19 July 2013

Silver Linings Playbook

I blogged about this last year and it came through my LoveFilm subscription. Pat (Bradley Cooper) moves back in with his parents while trying to put his life, and marriage, back together after a stay in a psychiatric hospital for bipolar disorder, when he meets Tiffany (Jennifer Lawrence).


A very good romantic comedy. The plot is a little contrived in places, but there is a useful side story with Pat's father's (Robert De Niro) superstitious gambling. The acting is top notch from the leads (Lawrence won an Oscar, but Cooper was good as well), with a lot of emotional engagement. Highly recommended.

Thursday 18 July 2013

The Hunger Games

From my LoveFilm subscription, I watched this adaption of the very successful book by Suzanne Collins. In a dystopian future America, Katniss Everdeen (Jennifer Lawrence) volunteers to take part in the annual gladiatorial fight to the death in place of her younger sister.


This is a very good film. The future seems realistic enough, with the extreme divide between the very rich and technically advanced Capitol and very poor Districts, plus the death-match reality TV show used as a tool of political control. The acting is also up to the mark, with Donald Sutherland as the sinister President Snow and Woody Harrelson as Katniss's washed-up and cynical mentor, and you feel a fair amount of empathy with the lead characters.

It's a bit more thoughtful than the average pizza movie. Recommended.

Wednesday 17 July 2013

Pacific Rim

Continuing the Summer of Cinema, I went to see the Guillermo del Toro Mecha-Monster movie:


To appreciate this film, you have to really be into the whole Japanese Mecha thing. Unfortunately, that doesn't include me, so I thought this was a bit overblown. It must have cost a small fortune in CGI, but outside the monster fights the film doesn't really exist, and neither does the acting. There are worse excuses for sitting in a dark, air-conditioned room for three hours on a hot, sweaty afternoon, but not many.

Oxfam Tuesday - Hot Day in a Hot Shop

Yes, folks, I did shift in the sweltering heat of the shop yesterday afternoon, especially so on the top deck where, for once, I was glad when it was over.

Dave has put out some collectable vinyl and one of them is The Byrds classic, Sweetheart of the Rodeo:


£30 to the discerning punter.

I also got to listen to the latest Uncut CD which has tunes by Field Report and this by Valerie June, which I quite liked:

Tuesday 16 July 2013

Android Live Code: Monetization and Augmented Reality

Last night I attended the first Android Live Code seminar at Hub Westminster, based in New Zealand House just off Trafalgar Square (very swanky!).

The first presentation was on the best plans for the monetization of Android applications given by Yinon Horwitz from StartApp.

He gave a very slick presentation (which subtly plugged his company's services), about the different ways in which Android Apps can be made to generate revenue. Mostly this consisted of either paying up front for an application; the "freemium" model, where you get a basic app for free and then pay to get various functionality enabled; and various ad-based options.

The second talk was by Lukasz Piliszczuk who went through the source code of his augmented reality application, especially regarding image recognition.


While this was informative, it could have done with a few more diagrams to illustrate how the code fitted together, especially given his very stong accent.

Sunday 14 July 2013

End of Watch

I received this cop film as part of my LoveFilm subscription about a week or so ago, but have only now got around to watching it. Two L.A.P.D. patrolmen (Jake Gyllenhaal and Michael Peña, who was in The Shooter with Mark Wahlberg) videotape their everyday lives while getting more involved in combatting a Mexican drugs cartel.


Probably one of the most powerful films I've seen this year and certainly the best of it's type I've seen for a while. The acting is superb, with Gyllenhaal and Peña looking like they've known each other for years. I thought that the video-taping was a bit gimicky at first, but it does give a certain intimacy which compliments the rest of the film: you do feel like you're on patrol with them. It's a great film with a lot of emotional engagement and highly recommended.

Friday 12 July 2013

Don McCullin

My uncle pointed me in the direction of an episode of the BBC arts programme Imagine about the photographer Don McCullin, which is still available on iPlayer. When I'd taken him to The Imperial War Museum of The North in Salford Quays there was an exhibition of McCullin's work that impressed us both.


He was, as he admits, something of a "war junkie", covering Biafra, Vietnam, Beirut and The Congo. In Cambodia, fate finally caught up with him and he was wounded in an ambush, his camera taking damage:



He's also take some great photo's of everyday life in Britain, capturing the strange and eccentric, as well as the pitiful:


I highly recommend the episode and any exhibitions you might be able to see. You won't be disappointed, but they are very emotional.

Jack Reacher

From my LoveFilm subscription, this is an adaption of the book One Shot by the British author, Lee Child. Ex-military policeman Jack Reacher (Tom Cruise) is asked to investigate the shooting of five people by a sniper he once investigated of a similar crime.


A fairly run-of-the-mill action thriller with some good martial arts and such a good car chase (not in a Ford Focus) the film could well have been justified in being called Drive. Cruise is hardly stretched (he did his own stunts, though) and Robert Duvall looks happy with the money. What Werner Herzog is doing in the film is a bit baffling, although he does look like the man who threatened to kill Klaus Kinski.

Taken all around, not a bad little pizza movie but not exactly taxing either.

Thursday 11 July 2013

Reading Matters

I've been reading a fair bit over the last few months, not all Warhammer 40,000, mostly finishing off stuff I've been reading throughout the year.

The Artist, The Philosopher and the Warrior by Paul Strathern



No, not one of those Californian new age self-help type books, but a history of the Italian Renaissance.

During the Autumn of 1503, Leonardo da Vinci and Niccolo Machiavelli were assigned by the Florentine government to follow Cesare Borgia (the Pope's illegitimate son) as part of his army, da Vinci to be his chief engineer and Machiavelli as a representative/spy. The story is a potted history of the three men, up to the time they were involved, what happened in those months and afterwards. In particular, the affect Borgia had on the thinking of the other two, especially his role in formulating Machiavelli's book, The Prince.

The book is a good read and fills in a lot of the background to The Borgias TV series.

Think Like a Programmer by V. Anton Spraul


Yeah, yeah, what am I doing reading this. It's a book on the philosophy of programming, which is to solve problems using software, and very good: worth a read even for the experienced programmer. There is a very good chapter on recursion, some of which is available here. It's the kind of book which takes you further than just the basic "Ruby in 17 afternoons"-type book, but doesn't get too academic like some algorithms books.

House of Suns by Alastair Reynolds


One of his non-Revelation Space novels, this is about a clone-family six million years in the future who have been almost wiped out and their investigation as to who's behind it.

I've read one or two of his novels by now and this one's not bad. Reynolds does seem to be a bit long winded, though, and you feel at the end like saying "Oh, is that all it was?", although it is quite imaginative, and it is well written, like all his books.

Shady Illuminations in the PragPub Magazine

I've been going through some back issues of this reading all the articles written by John Shade. He's quite a good writer, although a bit erratic, and his article on Steve Jobs (when he left Apple for the last time) was insightful, as was his latest one on comparing K&R's "The C Programming Language" with with Stroustrup’s "The C++ Programming Language" (the latter being 1000 pages longer than the former):

Wednesday 10 July 2013

A Day at the Museum

As part of my trip up North, I took my Uncle to visit the Royal Armouries Museum in Leeds, which are in a modern development next to the canal at Clarence Dock.


It's similar to the one at the Tower of London, but with a lot more room and specially designed to accomodate a huge collection.

As well as lots of weapons and suits of armour, there are some amazingly realistic dioramas:


This is one of The Battle of Pavia in 1525 when Spanish/Imperial forces defeated the French for control of the Italian peninsula. Another was of a tiger shoot:


It is the huge collection of arms that dominates, however, this being a set of double-barrelled flintlock pistols:


Overall, I think we found it a little overwhelming, especially with the heatwave we're currently experiencing. We also couldn't find a watering hole afterwards, which was unusual, so we headed back after a few hours.

Saturday 6 July 2013

Django Unchained

As part of my LoveFilm subscription, I watched the latest Tarantino foray into B Movie genre remakes. Django is freed from slavery by a bounty hunter who teaches him the tricks of the trade.


A bit of background for those who don't know. The Django films were mass-produced spaghetti westerns back in the 60's & 70's, usually starring Franco Nero. They were incredibly bloody, violent films and not particularly good: the first one was ok, but the following ones went downhill very quickly. You can see from the description that they're ripe for remake by young Quentin and his associates.

In order to be able to view the film dispassionately, you have to suspend your moral judgment as much as possible and concentrate on the quality of the work itself. The acting is very good, in particular DiCaprio, playing against type as the evil plantation owner, and Jackson as his scheming butler, but it's Christoph Waltz as the German bounty hunter who steals the show. Jamie Foxx does his best, but looks outclassed by the talent around him.

On the minus side, as I've said before, there's a reason they're B movies. As for the violence, Pekinpah did it with much more style: compare this to The Wild Bunch and you'll see what I mean.

Friday 5 July 2013

Oxfam Friday - Penguin Special

I thought I'd pull a last shift at the shop before I left for my holiday in the North. John had a wartime Penguin Special for me, which was most welcome:


S54, Unser Kampf, by Sir Richard Acland, who was a founder member of CND.

Thursday 4 July 2013

The Sweeney - "You're Nicked!"

Part of my LoveFilm subscription, this is a remake of the 70's cop show. Jack Regan (Ray Winstone) and George Carter (Ben Drew) investigate the robbery of a jewellers where an innocent bystander was killed.


Hmmmm, not sure. I don't think it would be a particularly good cop drama were it not for the connection with the TV series. Ray Winstone's ok (he's no John Thaw, but you'd make allowances for that), but Ben Drew was a bit wooden for my liking. There's some good set-pieces, especially one in an underground car park but, overall, it just seemed like thugs chasing other thugs. Compare this to a similar film, Michael Mann's Heat, with Al Pacino and Robert De Niro, which had two class players and a good plot. Maybe American's do this kind of thing better (more money, probably), but it says something about us when the final car-chase involves a Ford Focus in a caravan park.

Tuesday 2 July 2013

Despicable Me 2 - The Minions (and Gru) Return!

Taking advantage of Cheap Tuesday, I went to see the latest Despicable Me. Gru, having a difficult time adjusting to non-villainy, is recruited by the Anti-Villain League after a mutating serum is stolen by a mysterious super-villain.


Absolutely hillarious. Steve Carell is back as Gru, ably supported by Russell Brand, as Dr. Nefario, and Miranda Cosgrove, Dana Gaier, Elsie Fisher as his three wards, with Kristen Wiig as the new love interest (I can see women everywhere trying to buy a lipstick taser).

It's the minions who steal the show, however, as you'd expect, starting with a 21 fart gun salute and ending the film with funniest rendition of Y.M.C.A. I have ever heard. Go and see it: you won't regret it.