South America Diary: Day 6

19 September, 2011

Wednesday, 20 April, 2011. 17:57. Hotel Leon de Oro, Lima, Peru.

Hotel Leon de Oro View We have arrived in Peru for a couple of days in Lima before joining our next Intrepid tour. We were up and packed by 05:30, and then at Guayaquil Airport by about 06:00. The first thing we encountered was a gadget staffed by two men which they were using to encase people’s luggage in great reams of plastic wrap. A lady tried to push us towards it, and at first we thought it was some sort of security requirement. But the guy said it cost US$10 a bag, and it seemed to be optional, so we started to walk away towards the check-in desks. The woman urged us in Spanish again, this time miming rainfall, and we realised that the plastic was meant to protect bags from the rain that was pouring down outside. Given the chance that our bags might be exposed to that while in the care of the airline, we paid our $20 and had the bags encased in plastic. It was a good thing too, because when we collected them, the handles (the only exposed bit) were soaked, and I saw some obviously water-damaged bags on the baggage claim carousel in Lima.

The flight was only 1.5 hours, and we had our breakfast on board – just a sandwich – but we also had some chocolate that M. bought last night while we were waiting for our hotel pick-up. On landing in Lima, we passed through immigration and customs quickly and were met outside by a helpful woman from Intrepid, who led us to a four-wheel drive driven by a woman called Alice to take us to the Hotel Leon de Oro. The Intrepid woman (we didn’t catch her name) warned us to only carry enough cash for what we needed when walking around Lima.
Read the rest of this entry »

iTunes sorting

8 September, 2011

I’ve been adding a lot of music to my digital collection recently, both by buying some stuff and ripping CDs I own. And so I run into the same old problems with the way iTunes sorts music. Actually it’s even worse on an iPod, because there’s no fancy GUI that you can customise with different columns and views and stuff. You’re stuck with selecting your songs by artist, by album name, or by composer. The problem is if I select by artist, part of the “B”s looks like:

  • Mike Batt
  • The Beatles
  • Bee Gees
  • Jodi Benson
  • Berliner Philharmoniker

Okay, The Beatles and Bee Gees make sense. However, Berliner Philharmoniker is a symphony orchestra. The two albums performed by them that I currently have on my iPod are Holst’s “The Planets” and Beethoven’s 9th Symphony. I also have some Beethoven performed by other orchestras. However, the name “Beethoven” is not on my artist list, because he’s a composer, not a performer! If I want to find Beethoven stuff on this list, I need to look up all the different orchestras that perform his work. And each different orchestra has an unrelated bunch of works by different composers.

Who are Mike Batt and Jodi Benson, I hear you ask? (Okay, some of you probably know already.) Mike Batt composed the stage musical version of The Hunting of the Snark, based on Lewis Carroll’s poem. It was recorded by several artists, and Batt himself performs one song on the album. The rest of the album is scattered amongst several other artists’ names on the iPod artist list. Jodi Benson is the voice of Ariel, The Little Mermaid, who performs two songs on the movie soundtrack album. Again, the other songs on the album are scattered through the artist list.

So, on a quest to find all my Beethoven in one convenient location, I switch to selecting by composer, where the “B”s look a bit like this:

  • Mike Batt
  • Garry Beers, Tony Bruno, The Matrix, & Shelly Peiken
  • Garry Beers, Andrew Farris, & Michael Hutchence
  • Ludwig van Beethoven
  • Chuck Berry
  • Berry, Buck, Mills, & Stipe
  • Berry & Willis

There are about a bazillion composers in this list. Sometimes a rock album will have songs by a dozen different composers! Beethoven is there, but he’s surrounded by thousands of composers I don’t care about, most of whom have one songwriting credit on some rock album. That’s no good.

And how do I find the entire Hunting of the Snark or Little Mermaid, should I wish to listen to the entire albums? I have to switch to a third view, the albums view. This view is not so bad, it does list all the albums as whole items, but the albums by any given artist (or composer) are all split up.

The solution to this? Well, there doesn’t seem to be a good solution. There are web pages and blog posts and forum questions all over the net with people asking how to sort their music better in iTunes. And there are no good answers. One common trick is to move the composer of classical works into the “Artist” field, so you see Beethoven in there with The Beatles and Bee Gees. But then the actual artist has to be deleted, or moved into some other field. It seems nobody has come up with a decent solution to this problem.

I was lamenting this fact at work today, when Andrew suggested that iTunes needs a “Primary” field, which is the primary sorting field you want to use for each album. It can be a radio button that selects one of either the artist, the composer, or the album name. For most stuff it defaults to the artist; for music marked as “Classical” in genre, it defaults to the composer; while for compilations, musicals, and soundtracks, it defaults to the album name. Then you can have a list that uses the Primary field to index all your music, and you’ll end up with a list that looks like:

  • The Beatles
  • Bee Gees
  • Ludwig van Beethoven
  • The Hunting of the Snark
  • The Little Mermaid

Ta da! All your music sorted into one list in a sensible way! You can find everything by the most likely name you want to use, and with no superfluous data cluttering up the list.

How about it, Apple?

Star Trek 3.13: Elaan of Troyius

7 September, 2011

Elaan of TroyiusI watched “Elaan of Troyius” several weeks ago, but haven’t had time to write this up until now. It’s a very awkward episode to watch, both for the cringe-worthy 1960s gender relations and the psychedelic orange plastic space clothes.

The Enterprise has been ordered to carry out a diplomatic taxi mission, taking the feisty Elaan, Dohlmen (i.e. Queen) of the planet Elas, to the planet Troyius in the same system, where she is to marry the ruler in an arranged marriage. Elaan is not happy about any of this, is arrogant and bossy, and followed by absolutely loyal guards who boss around the Enterprise crew on her every whim. What’s more, they are armed with what Kirk describes as “armour and nuclear weapons” (while Elaan is clad in a stripperific royal outfit). Kirk bristles at Elaan’s arrogance, but holds his tongue. The Troyian ambassador Petri is also restrained, but cannot hide his inner dislike of Elaan and her barbaric ways. This ends with Elaan’s dagger in Petri’s back. Despite this, Kirk doesn’t call off the mission or arrest Elaan.

Petri recovers in sickbay. Nurse Chapel wonders why Elasian men put up with Elasian women, and Petri reveals in a blatant piece of foreshadowing that the women secrete a substance in their tears that acts like a love potion. Meanwhile, the bridge notices a weird “sensor ghost” that turns out to be a cloaked Klingon vessel trailing the ship. Elasian guard Kryton sneaks into engineering and tries to destroy the warp drive. Redshirt engineer Watson finds him and suffers a broken neck for his trouble. It turns out Kryton is conspiring with the Klingons somehow, but he kills himself when captured rather than reveal what he’s up to. Kirk orders Scotty to “check every relay” in the engine room for sabotage. I guess warp engine circuits don’t use transistors or integrated circuit chips. Relays are probably safer with all those weird particle fluxes around.

Kirk confronts Elaan with the aim of forcing her to behave herself. She confesses that she thinks other people don’t like her and starts crying… yes, you’ve spotted it already. Kirk gets affected by the love potion tears. Elaan decides she likes Kirk and would rather marry him than the ruler of Troyius. She changes from hard-edged savage queen clothes to much softer damsel-in-distress clothes – symbolic, saccharine, and tacky at the same time! They kiss… and Spock and McCoy burst in to say that Scotty has found a bomb is wired to the warp engine, and the Klingon ship is attacking! Kirk manfully pulls himself away from his desire and back to his duty.

While Kirk foils the Klingons with sub-light manoeuvres, Scotty defuses the bomb, but finds the dilithium crystals destroyed. Elaan shows up on the bridge in a wedding dress, complete with jewels… which look suspiciously like dilithium crystals. Kirk suddenly figures out the Klingons are after Elas’s vast dilithium deposits. Elaan donates her necklace to Scotty who repairs the engines in record time, allowing them to fire torpedoes and drive the Klingons away. Elaan is reformed and agrees to her arranged marriage. McCoy mixes up an antidote for Kirk’s besottedness, but it isn’t needed because, as Spock explains, “The Enterprise captured his heart first.”

Overall, with the interwoven plotlines and the Klingon intrigue, it’s not a bad story. It’s just painful to watch because of the truly annoying Elaan and her sudden about turn into a meek submissive when she meets the True Man, Kirk. If they’d toned that whole thing down a lot and concentrated on the Klingon mystery it probably would have been a better episode.

Tropes: Space Clothes, Nubile Savage, Call A Rabbit A Smeerp, Royal Brat, Stripperific, Love Potion, Red Shirt, Better To Die Than Be Killed, Technology Marches On, Pygmalion Plot, Moment Killer, Worthless Yellow Rocks, No Blood For Phlebotinum.
Body count: Watson (neck snapped by the Elasian Kryton), Kryton (suicidal self-disintegration).

South America Diary: Day 5

28 August, 2011

Isla San Cristóbal to Guayaquil. Tuesday, 19 April, 2011

Leon Dormido This morning was an early start, after another cruise during the night to the island of San Cristóbal. We assembled at 06:00 on the top sun deck of the boat for a view of the approaching Léon Dormido (also known as Kicker Rock) – a volcanic lava cone now exposed as a bare chunk of rock jutting from the sea several hundred metres off the shore of the main island. The aim here was to do a couple of circuits of the rock to observe the nesting and courtship display of frigatebirds.

Frigatebird pouch The rock is split by a narrow channel of water, otherwise presenting a steeply sloping profile that gives it its Spanish name of “sleeping lion”. There are only a few alcoves where a sea lion can haul out of the water, and these were populated by dozing beasts. We also saw lots of blue-footed boobies nesting or streaking the rock with guano. But the major attractions here were the magnificent frigatebirds, which nest on the rock. As the boat did a circuit, we could see several nests with birds on them, and as we watched the males inflated their large red throat sacs in their spectacular courtship display. They were necessarily one or two hundred metres away, but we got good views through binoculars or telephoto camera lenses.

The boat circled the rock twice, allowing us plenty of time to see the various birds. We also spotted a Pacific green sea turtle in the water at the base of the rock, watching it surface to breathe a few times before it disappeared again. Having completed our circuits of the rock, the boat set out for the small town of Puerto Baquerizo Moreno, the capital of the Galapagos province of Ecuador, on the southwest coast of San Cristóbal.
Read the rest of this entry »

Origami notes

26 August, 2011

We had a brilliant lunchtime seminar by a guest speaker at work today. She talked about origami.

I wasn’t sure what to expect – if it’d just be demos of paper folding, or cool models that people had made, or what. There were both of these things, but there was much more. The speaker is doing a Ph.D. in statistics, so has a strong mathematical background. She started by showing some examples of origami with a slide presentation. But then… she went to the whiteboard…

She presented origami as a composition of two functions: a first one-to-one (and thus bijective) mapping from a flat sheet of paper to a 3-dimensional folded version of that sheet of paper – specifically a folded version which produces a number of points that can be used as the basis of extremities of a model (for example, animal limbs, fingers, horns, etc); and a second function mapping that 3-dimensional structure to a tree diagram with nodes at end points and junctions. The second mapping doesn’t preserve point correspondences or distances, but (and she proved this as a theorem) points on the tree diagram corresponding to points on the sheet of paper are separated by a distance less than or equal to their separation on the paper.

The upshot of this is that you can sketch a three-dimensional stick figure of anything you like, with correctly proportioned stick lengths; then map that on to a flat sheet of paper such that you produce a tree with nodes and branches in analogous positions such that the distances between them are equal to or greater than the corresponding distances in the stick figure; then from there you can apply a deterministic algorithm to figure out the arrangement of mountain and valley folds to produce the points at the nodes. There are programs that can do this and solve the fold pattern for any desired stick figure in a few minutes.

The result is a map of exactly how to fold the sheet of paper to produce a 3-D model that resembles your stick figure, with the correct number, arrangement, and lengths of all the extremities. From there it’s a simple matter of subtly modifying the shapes of the points with additional folds to produce an accurate model of your desired shape. She showed an example of a buck deer with four legs, a tail, a head with a nose, and two antlers, each with 4 distinct points. The resulting tree has 14 leaf nodes, and produces a complex fold map, but it’s perfectly doable, and the resulting origami model looked amazing.

I was utterly blown away. I always figured origami artists created new models by trial and error and months of hard work. But apparently you can do it with a stick figure sketch and a simple piece of mathematical computer code, in a few minutes. I should stress this only produces the basic “stick figure” form, and the subtle shaping of a 14-pointed piece of folded paper into a realistic deer shape still takes artistic talent, but still, I was amazed that the hard structural part of the work was so tractable and solvable by a beautiful application of mathematics. It shows how mathematics can be applied to surprising fields and come up with usable models and solvable answers for problems that seem unapproachable any other way. Very nice stuff.

Here Comes the Rain Again – It’s Alright (Baby’s Coming Back)

22 August, 2011

Falling in love with Eurythmics all over again.

I can’t believe it’s been 26 years since they released Be Yourself Tonight.

I won an Emmy and didn’t even know it

18 August, 2011

Holy cow.

I just discovered that at least year’s Emmy Awards – almost exactly a year ago – the Star Wars Uncut project won the Emmy for Best Interactive Media.

The Star Wars Uncut project that some friends and I filmed two of the segments for.

We won an Emmy Award.

Yeah, okay, we contributed a tiny part of the whole, and it was all organised and run by other, more deserving people… but….

We won a frakking Emmy Award.

I am so putting that on my resumé.

Counting

18 August, 2011

Why do computer scientists insist we start counting at 0, and then put “0” after “9” on the keyboard??

Puzzle difficulty

11 August, 2011

The 2011 CiSRA Puzzle Competition is in its last few days. It’s hard making new and interesting puzzles, but what’s even harder is figuring out how difficult they are for other people to solve.

We test all of our new puzzles on each other, to make sure that it’s possible for someone to actually solve them. Then we provide feedback and suggestions to tweak the puzzle, make it more elegant, make difficult steps more compelling, provide extra hints within the structure of the puzzle where we think they’re needed. And once we’re done, before we publish the puzzles, we assign a difficulty rating in three relative levels: Easy, Medium, or Hard.

This is a very subjective thing. It’s really, really tough. Of course some people will solve some puzzles faster than others, while other people will find them to be of opposite difficulty. We try to factor in the amount of work, the amount of knowledge, the level of logic needed to progress, and – hardest of all – the difficulty and non-obviousness of any intuitive leaps that you need to make. We come up with a rating, stick it on the puzzle, and then it goes out in the competition.

In Group 4, we published 4 puzzles, three of which we rated Medium, and one Hard. After 24 hours, the Hard puzzle had more teams solve it than all the others put together, and one of the Mediums – in fact the one that several of us puzzle creators thought was the easiest of the group – had no teams manage to solve it. In five years of running this competition (that’s 100 puzzles), we’ve previously only ever had one puzzle go unsolved after 24 hours before, and that was a puzzle we all knew was the hardest thing we’d ever published until then.

But this one, this year… we’re flabbergasted that it proved so hard for the competition teams. Assessing puzzle difficulty… is Very Hard.

More Getty Images

3 August, 2011

Woo! Getty Images selected another 7 of my Flickr photos to be added to their collection for licensing to commercial buyers.

Quench Two Apostles Scampi A strong candidate for most photographed road sign in Australia Dunmarra Windmill Yellow Water Dawn Blue-Footed Booby

And I realised this is where the money mysteriously appearing in my PayPal account is coming from. I went through my Getty statements for the past few months and realised I’ve made several sales. One for a book published by the UK National Trust!