Things to do with kids in Northumbria

In April the four of us – me, Carolyn, Aidan (7), and Megan (5) – spent a week in Northumbria. We stayed just south of Berwick, and had a fabulous time. Here are some of the things we did, in no particular order.

Walking along the beach, looking in rock pools and marvelling at the geology of the skerrs at Cocklawburn Beach.

Playing in the playground and eating icecream on the promenade at Spital.

Staying in a cottage at North Ancroft Farm. Green fields in all directions, and the light of Lindisfarne winking in the twilight.

Exploring the treasures of Bamburgh Castle. It felt like a European castle – still full of art, function, accessories, and history. The archaeology room’s Norse games caught Megan’s and my attention too.

Learning the history of Oswald and Aidan, at Lindisfarne.

Walking in the Northumberland National Park. We had a very windy walk to Linhope Spout waterfall.

Exploring the multitudinous activities of Cragside (National Trust property) – especially the labyrinth, the gardens, and the inventor’s house.

And here are some things that were recommended to us, which we’ll try next time:

Android recovery

I had to back up C’s HTC Desire phone today, with a broken screen. A bit challenging – how to start random applications on Android without any feedback? adb to the rescue, plus my identical phone. Going through the sequences in parallel on both phones helped me know where to touch.

First, make sure USB debugging mode is turned on. Unlock, make sure you’re at the home screen, and press Menu, then Settings. Scroll to the top of the list (it comes up at the last place you were at, which caught me out), then down to reveal Applications. Press it, and then Development, then USB Debugging, then OK.

Now fire up adb. Thanks to Bhayangkara for the recipe!

am start -a android.intent.action.MAIN -n com.riteshsahu.SMSBackupRestore/.FreeMain starts up the SMS backup/restore program (make sure you installed it already!). Press Backup, etc.

am start -a android.intent.action.MAIN -n com.android.demo.notepad3/.Notepadv3 starts up the Notes program. Press Menu, Backup.

In general, start the app on the working phone, then use your favourite log viewer to look for “Starting activity: Intent…” to figure out the right activity to pass to am start.

Now all you want is on the SD card – back it up.

Phew! Now all we need to do is send it off for repair. Fingers crossed!

Sorting MP3s on a Sony Walkman NWZ-B152 player

I bought an MP3 player yesterday for the kids, for bedtime music. They’re currently using an old Nokia phone, but it’s a bit broken and hard to navigate and the internal speaker isn’t that great. The new plan is to wire a line in socket to an old CD/radio and attach the MP3 player to that.

I got a Sony Walkman NWZ-B152 from Tesco because it was on special and they have a Double Points deal (though that took some negotiation in the end!). The documentation all assumes you’re using the latest OS from Microsoft. I’m using Ubuntu Linux, but I figured that shouldn’t be a problem.

The device supports USB Mass Storage, but when I copied some MP3s onto it, the tracks in each album came up in random order. I tried adding ID3 track number tags with eyeD3, and they still came up in random order – but a different random order this time. Bizarre.

Finally this morning I worked it out. The Sony player sorts on the ID3v2.3 track tag only – if there’s an ID3v1.0 track tag, it ignores it. And eyeD3 sometimes uses one flavour and sometimes another.

Simple fix: in my encoder script, add --id3v2-only. Or if, as in my case, you’ve already copied loads of MP3s across and don’t want to repeat it, in your fixup script add --to-v2.3. Et voilĂ , track sort order works at last!

X Factor 2010 Vote Analysis

Once again, here’s the voting data for X Factor 2010 (from the official PDF).  I’ve normalised it according to the number of contestants each week: if there are 5 contestants, then -1 means no votes, 0 means 20% (i.e, even split), 1 means 40%, etc.  In week 10, there were were two “splits” before the final vote, and the numbers include all votes for all four finalists, even though in split 2 and the final some contestants were no longer eligible.

Here’s the spreadsheet.

Archiving RockYou slideshows

Aidan’s amazing primary 2 teacher keeps a class blog, which is full of lovely slideshows of pictures of the class and what they’re up to (mostly taken by the kids themselves – the “media team”!). It’s fabulous, but I’m really worried about how long it will stay up once the year is over. I decided to do some digging, and work out how to archive the slideshows.

Of course, they’re in Flash – courtesy of RockYou. And saving a Flash to your computer (even if you can do it) doesn’t get you very far – it downloads all the images from the internet as it goes.

Thanks to the fab (and free in both senses) WebScarab (like Fiddler, but it works on Linux too), I was easily able to watch what happens when a slideshow is played on a browser with an empty cache. Here’s what I found:

The blog source contains an <embed> link to a URL like this:

http://apps.rockyou.com/rockyou.swf?instanceid=<NNmmmDDDD>&ver=102906

This Flash app loads some more apps and a few beacons and things, but the most important thing is this:

http://data.rockyou.com:80/xml/<NN>/<mmm>/<NNmmmDDDD>.xml

This is a nice little XML file with a /rockmyspace/gallery element that has basic style, colour, and transition information as attributes, and as content has a list of slide elements.  Each of these has an image element – the URL to the image – and a text element – the caption.  Here’s an example:

<slide>
  <image path=”http://img<YYY>.rockyou.com/<NNm>/<NNmmmD>/<NNmmmDDDD>/<NNmmmDDDD>_<xxxxxxxxxxxxxxxxxx>.jpg” />
  <text text=”Isn’t this a cool photo?” />
</slide>

And that’s all you need!

To summarise:

  • Determine the instanceid of the slideshow.
  • Download the corresponding XML file.
  • Read the XML file, looking for /rockmyspace/gallery/slide/image elements.  (May not always be gallery – I’ve seen other values here).
  • Download the images.
  • Read the captions from the corresponding text elements.

Obviously you have to work out how to display them yourself, and how to recreate the transitions.  But this way you can get at and archive the content that’s been shared by the slideshow author, so it can be enjoyed for years afterward.