Powered by Perlanet
There was a London Perl Mongers meeting at ZPG about ten days ago. I gave a short talk explaining why (and how) a republican like me came to be running a site about the Line of Succession to the British Throne. The meeting was great (as they always are) and I think my talk went well (I’m told the videos are imminent). The photo shows the final slide from my talk. I left it up so it was a backdrop for a number of announcements that various people gave just before the break.
In order to write my talk, I revisited the source code for my site and, in doing so, I realised that there were a couple of chunks of logic that I could (and should) carve out into separate distributions that I could put on CPAN. I’ve done that over the last couple of days and the modules are now available.
I’ve written the module as a Moo role, which means it should be usable in Moose classes too. To add JSON-LD to your class, you need to do three things:
Your class inherits two methods from the role – json_ld_data() returns the data structure which will be encoded into JSON (it’s provided in case you want to massage the data before encoding it) and json_ld() which returns the actual encoded JSON in a format that’s suitable for embedding in a web page.
One of the most satisfying parts of the Line of Succession site to write was the code that shows the relationship between a person in the line and the current sovereign. Prince Charles (currently first in line) is the son of the sovereign and Tāne Lewis (currently thirtieth in line) is the first cousin twice removed of the sovereign.
That code might be useful to other people, so it’s now on CPAN as Genealogy::Relationship. To be honest, I’m not sure exactly how useful it will be. The Line of Succession is a rather specialised version of a family tree – because we’re tracing a bloodline, we’re only interested in one parent (which is unlike normal genealogy where we’d be interested in both). It also might be too closely tied to the data model I use on my site – but I have plans to fix that soon.
Currently, because of the requirements of my site, it only goes as far as third cousins (that’s people who share the same great, great grandparents). That’s five generations. But I have an idea to build a site which shows the relationship between any two English or British monarchs back to 1066. I think that’s around forty generations – so I’ll need to expand the coverage somewhat!
But anyway, it’s there and I’d be happy if you tried it and let me know whether it works for you. The documentation should explain all you need to know.
The Line of Succession site doesn’t get much traffic yet – I really need to do more marketing for it. So it’s satisfying to know that some of the code might, at least, be useful outside of the project.
I’m a republican. No… wait… come back! That’s not what I mean.
I’m a long way from being a supporter of the Republican Party. I mean “republican” in its older meaning of “someone who thinks their country should be a republic. That is to say, I’m not a big fan of the British royal family.
But while I believe that the UK should get rid of the royal family, I’m also fascinated by them. In particular, I’m fascinated by the laws that determine the line of succession – that is the list of people in line to take over the throne.
When I was a child I believed that the line of succession was a big list that had every British person’s name on it and that it would only take a single catastrophic event to propel my name to the top of that list. Later on I discovered the Act of Settlement (1701), which is the law which actually defines the line of succession (modulo a few later tweaks). I was disappointed to find that there were only a few thousand people on the list (and that didn’t include me!) and also that a lot of the people on the list weren’t British (largely due to Queen Victoria’s children marrying royalty from all over Europe).
A few months ago, I started to think about building a web site that would allow people to explore the line of succession through time. And over the last few weeks, I have build the site. It’s at lineofsuccession.co.uk. On the main page, you will see the current line of succession. And in the navigation bar is a drop-down menu that allows you to move to a few interesting data (the days that the last four monarchs came to the throne) and a date picker allowing you to choose any random date.
The code is, of course, on Github. The web app is a pretty standard Dancer2 application which really doesn’t do anything clever. Most of the complexity in an application like this is in the data gathering.
Currently I have just over a hundred people in the database. That’s most of the descendants of Edward VII (there a few lines that I haven’t completely filled out yet), but eventually I want to go back to all include all of the descendants of Electress Sophia (the person who the crown was “settled on” in the Act of Settlement). I’ve heard estimates that she has somewhere between 5-6,000 descendants. So I have a bit of work to do there!
Other than more people, I have a few other things I’d like to add to the site:
Anyway, there’s my current itch scratched. And, as in so many cases, it’s just given me more itches. But please let me know if you find the site at all interesting or useful.
New Year’s Eve seems about the best date for my review of the gigs I saw this year (I know I’m not seeing another today).
I saw 41 gigs in2017. That’s two more than in 2016 and a lot less than my average number (which is more like the high forties).
Let’s get the disappointments out of the way first. Tanita Tikaram was just dull, as was Natalie Imbruglia (I waited to hear “Torn” and then left). Normally, Amanda Palmer gets an instant pass to the top ten list, but the album she recorded with Edward Ka-Spel wasn’t my cup of tea at all and the gig they played together promoting it was terrible. She played a few other shows in London over the year, but they were all on nights when I couldn’t be there. The Stone Roses at Wembley was all you’d expect it to be – overpriced and uninteresting. And I left the Magnetic Fields show at the interval. Oh, and for the first time ever, I did the same at an Icicle Works gig.
And here, in chronological order, are my favourite shows of the year.
And a few that fell just outside of the top ten.
I’ve seen and been very disappointed by the official current Yes line-up a couple of times, so it was good to see the “less-official” Yes featuring Jon Anderson, Trevor Rabin and Rick Wakeman who were great. And who proved to me that if you’re singing Yes material, you need Jon Anderson as lead singer.
Sigur Rós at the Royal Festival Hall were great. And very loud.
The fact that St. Vincent didn’t make the top ten is a mark of how great this year’s gigs. Masseduction is a great album and the tour was fabulous.
Wildwood Kin are a band to look out for. Two sisters and their cousins playing modernist folk. One day (soon) it will seem astonishing that I got to see them somewhere as intimate as the Borderline.
I can’t believe that I haven’t mentioned Tegan & Sara, Adam Ant, St. Etienne, Amy Macdonald, Suzanne Vega, Dweezil Zappa, Billy Bragg, Penguin Cafe, The Unthanks or Kate Rusby – all of which put on great nights that sent me home smiling (and humming).
What am I already looking forward to in 2018? Beth Orton, Superorganism, members of the Art of Noise recreating In Visible Silence, Belle and Sebastian, Arcade Fire, Sunflower Bean, Tears for Fears, The The and King Crimson. It’s already looking like a great year for gigs. Perhaps I’ll see you at one.
What about you? What gigs did you enjoy in 2017?
About five years ago I ran a few training courses under the Perl School brand. The idea was simple – if you price training courses cheaply and run them at the weekend then you eliminate the most common reasons why people don’t keep their Perl knowledge up to date.
Of course, it’s not quite that simple. And I think I ran six courses before running out of attendees.
But there are still people who would benefit from getting some more up to date information about how Perl works. So I’ve decided to resurrect the Perl School brand in a new attempt to spread the Modern Perl knowledge beyond the echo chamber. I announced my plans during my lightning talk at last month’s London Perl Workshop.
This time I’m going to do it by publishing cheap books. You might remember that time I promised to write a guide to modern web development with Perl and how badly that ended up. But in the process, I learned a lot about publishing ebooks to Amazon. I even gave a talk where I suggested that Perl book publishing could become a cottage industry. And that’s what I’m currently aiming at.
I’ve made a start already. just before the LPW I published a book called Perl Taster which aims to take people through their first two hours of learning Perl. It’s cheap enough (and small enough) that people can give Perl a try without investing too much money or time.
But my plans don’t stop there. I have ideas for half a dozen other books that I can publish over the next few months. Basically, if you’ve one of my training courses over the last five years then you can expect a (short!) book based on that course to appear at some point during 2018. Currently my plans include books on:
Obviously, there are plenty of other books that could be written this way. And I don’t want to have to write them all myself. Which is where you come in. Is there a Perl-related subject that you’re an expert on? Would you be interested in writing a book about it?
I’m offering to help people publish Perl books. If you can write a book using Markdown, then let me take care of the complicated bits of turning your text into an e-book and getting it published on Amazon (and, perhaps later, other e-book platforms).
So, over to you. What do you want to write a book about.
p,s. At some point I should probably finish the e-book I was writing about publishing e-books.