Book review: Gut by Giulia Enders

Gut-by-giulia-endersIt seems a while since I last reviewed a book here. Today I bring you Gut: The Inside Story of our Body’s Most Underrated Organ by Giulia Enders.

The book does exactly what it says on the tin: tell us about the gut. This is divided into three broad sections. Firstly the mechanics of it all, including going to the toilet and how to do it better. Secondly, the nervous system and the gut, and finally the bacterial flora that help the gut do its stuff.

The writing style seems to be directed at the early to mid-teenager which gets a bit grating in places. Sometimes things end up outright surreal, salmonella wear hats and I still don’t quite understand why. The text is illustrated with jaunty little illustrations.

From the mechanical point of view several things were novel to me: the presence of an involuntary internal sphincter shortly before the well-known external one. The internal sphincter allows “sampling” of what is heading for the outside world giving the owner the opportunity to decide what to do with their external sphincter.

The immune tissue in the tonsillar ring was also a new to me, its job is to sample anything heading towards the gut. This is most important in young children before their immune systems are fully trained. Related to the tonsils, the appendix also contain much immune tissue and has a role in repopulating the bacteria in the large intestine with more friendly sorts of bacteria following a bout of diarrhoea.

The second section, on the nervous system of the gut covers things such as vomiting, constipation and the links between the gut and depression.

The section on the bacterial flora of the gut gathers together some of the stories you may have already heard. For example, the work by Marshall on Helicobactor Pylori and its role in formation of stomach ulcers. What I hadn’t realised is that H. Pylori  is not thought to be all bad. Its benefits are in providing some defence against asthma and autoimmune diseases. Also in this section is toxoplasmosis, the cat-born parasite which can effect rats and humans, making them more prone to risk-taking behaviour.

I was delighted to discover the use to which sellotape is put in the detection of threadworms – potential sufferers are asked to collect threadworm eggs from around the anus using sellotape. I can imagine this is an unusual experience which I don’t intend to try without good reason.

There is a small amount of evangelism for breast-feeding and organic food which I found a little bit grating.

As usual with electronic books I hit the references section somewhat sooner than I expected, and here there is a clash with the casual style of the body of the book. Essentially, it is referenced as a scientific paper would be – to papers in the primary literature.

I don’t feel this book has left me with any great and abiding thoughts but on the other hand learning more about the crude mechanics of my body is at least a bit useful.

Book review: Mastering Gephi Network Visualisation by Ken Cherven

1994_7344OS_Mastering Gephi Network Visualization

This review was first posted at ScraperWiki.

A little while ago I reviewed Ken Cherven’s book Network Graph Analysis and Visualisation with Gephi, it’s fair to say I was not very complementary about it. It was rather short, and had quite a lot of screenshots. It’s strength was in introducing every single element of the Gephi interface. This book, Mastering Gephi Network Visualisation by Ken Cherven is a different, and better, book.

Networks in this context are collections of nodes connected by edges, networks are ubiquitous. The nodes may be people in a social network, and the edges their friendships. Or the nodes might be proteins and metabolic products and the edges the reaction pathways between them. Or any other of a multitude of systems. I’ve reviewed a couple of other books in this area including Barabási’s popular account of the pervasiveness of networks, Linked, and van Steen’s undergraduate textbook, Graph Theory and Complex Networks, which cover the maths of network (or graph) theory in some detail.

Mastering Gephi is a practical guide to using the Gephi Network visualisation software, it covers the more theoretical material regarding networks in a peripheral fashion. Gephi is the most popular open source network visualisation system of which I’m aware, it is well-featured and under active development. Many of the network visualisations you see of, for example, twitter social networks, will have been generated using Gephi. It is a pretty complex piece of software, and if you don’t want to rely on information on the web, or taught courses then Cherven’s books are pretty much your only alternative.

The core chapters are on layouts, filters, statistics, segmenting and partitioning, and dynamic networks. Outside this there are some more general chapters, including one on exporting visualisations and an odd one on “network patterns” which introduced diffusion and contagion in networks but then didn’t go much further.

I found the layouts chapter particularly useful, it’s a review of the various layout algorithms available. In most cases there is no “correct” way of drawing a network on a 2D canvas, layout algorithms are designed to distribute nodes and edges on a canvas to enable the viewer to gain understanding of the network they represent.  From this chapter I discovered the directed acyclic graph (DAG) layout which can be downloaded as a Gephi plugin. Tip: I had to go search this plugin out manually in the Gephi Marketplace, it didn’t get installed when I indiscriminately tried to install all plugins. The DAG layout is good for showing tree structures such as organisational diagrams.

I learnt of the “Chinese Whispers” and “Markov clustering” algorithms for identifying clusters within a network in the chapter on segmenting and partitioning. These algorithms are not covered in detail but sufficient information is provided that you can try them out on a network of your choice, and go look up more information on their implementation if desired. The filtering chapter is very much about the mechanics of how to do a thing in Gephi (filter a network to show a subset of nodes), whilst the statistics chapter is more about the range of network statistical measures known in the literature.

I was aware of the ability of Gephi to show dynamic networks, ones that evolved over time, but had never experimented with this functionality. Cherven’s book provides an overview of this functionality using data from baseball as an example. The example datasets are quite appealing, they include social networks in schools, baseball, and jazz musicians. I suspect they are standard examples in the network literature, but this is no bad thing.

The book follows the advice that my old PhD supervisor gave me on giving presentations: tell the audience what you are go to tell them, tell them and then tell them what you told them. This works well for the limited time available in a spoken presentation, repetition helps the audience remember, but it feels a bit like overkill in a book. In a book we can flick back to remind us what was written earlier.

It’s a bit frustrating that the book is printed in black and white, particularly at the point where we are asked to admire the blue and yellow parts of a network visualisation! The referencing is a little erratic with a list of books appearing in the bibliography but references to some of the detail of algorithms only found in the text.

I’m happy to recommend this book as a solid overview of Gephi for those that prefer to learn from dead tree, such as myself. It has good coverage of Gephi features, and some interesting examples. In places it is a little shallow and repetitive.

The publisher sent me this book, free of charge, for review.

Book review: Cryptocurrency by Paul Vigna and Michael J. Casey

 

cryptocurrencyThis review was first posted at ScraperWiki.

Amongst hipster start ups in the tech industry Bitcoin has been a thing for a while. As one of the more elderly members of this community I wanted to understand a bit more about it. Cryptocurrency: How Bitcoin and Digital Money are Challenging the Global Economic Order by Paul Vigna and Michael Casey fits this bill.

Bitcoin is a digital currency: the Bitcoin has a value which can be exchanged against other currencies but it has no physical manifestation. The really interesting thing is how Bitcoins move around without any central authority, there is no Bitcoin equivalent of the Visa or BACS payment systems with their attendant organisations or central back as in the case of a normal currency. This division between Bitcoin as currency and Bitcoin as decentralised exchange mechanism is really important.

Conventional payment systems like Visa have a central organisation which charges retailers a percentage on every payment made using their system. This is exceedingly lucrative. Bitcoin replaces this with the blockchain – a distributed ledger in which transactions are encrypted. The validation is carried out by so-called ‘miners’ who are paid in Bitcoin for carrying out a computationally intensive encryption task which ensures the scarcity of Bitcoin and helps maintain its value. In principle anybody can be a Bitcoin miner, all they need is the required free software and the ability to run the software. The generation of new Bitcoin is strictly controlled by the fundamental underpinnings of the blockchain software. Bitcoin miners are engaged in a hardware arms race with each other as they compete to complete units on the blockchain, more processing power equals more chances to complete blocks ahead of the competition and hence win more Bitcoin. In practice mining meaningful quantities these days requires significant, highly specialised hardware.

Vigna and Casey provide a history of Bitcoin starting with a bit of background as to how economists see currency, this amounts to the familiar division between the Austrian school and the Keynesians. The Austrians are interested in currency as gold, whilst the Keynesians are interested in Bitcoin as a medium for exchange. As a currency Bitcoin doesn’t appeal to Keysians since there is no “quantitative easing” in Bitcoin, the government can’t print money.

Bitcoin did not appear from nowhere, during the late 90s and early years of the 20th century there were corporate attempts at building digital currencies. These died away, they had the air of lone wolf operations hidden within corporate structures which met their end perhaps when they filtered up to a certain level and their threat to the current business model was revealed. Or perhaps in the chaos of the financial collapse.

More pertinently there were the cypherpunks, a group interested in cryptography operating on the non-governmental, non-corporate side of the community. This group was also experimenting with ideas around digital currencies. This culminated in 2008 with the launch of Bitcoin, by the elusive Satoshi Nakamoto, to a cryptography mailing list. Nakamoto has since disappeared, no one has ever met him, no one knows whether he is the pseudonym of one of the cypherpunks, and if so, which one.

Following its release Bitcoin experienced a period of organic growth with cryptography enthusiasts and the technically curious. With the Bitcoin currency growing an ecosystem started to grow around it beginning with more user-friendly routes to accessing the blockchain – wallets to hold your Bitcoins, digital currency exchanges and tools to inspect the transactions on the blockchain.

Bitcoin has suffered reverses, most notoriously the collapse of the Mt Gox currency exchange and its use in the Silk Road market, which specialised in illegal merchandise. The Mt Gox collapse demonstrated both flaws in the underlying protocol and its vulnerability to poorly managed components in the ecosystem. Alongside this has been the wildly fluctuating value of the Bitcoin against other conventional currencies.

One of the early case studies in Cryptocurrency is of women in Afghanistan, forbidden by social pressure if not actual law from owning private bank accounts. Bitcoin provides them with a means for gaining independence and control over at least some financial resources. There is the prospect of it becoming the basis of a currency exchange system for the developing world where transferring money within a country or sending money home from the developed world are as yet unsolved problems, beset both with uncertainty and high costs.

To my mind Bitcoin is an interesting idea, as a traditional currency it feels like a non-starter but as a decentralized transaction mechanism it looks very promising. The problem with decentralisation is: who do you hold accountable? In two senses, firstly the technical sense – what if the software is flawed? Secondly, conventional currencies are backed by countries not software, a country has a stake in the success of a currency and the means to execute strategies to protect it. Bitcoin has the original vision of a vanished creator, and a very small team of core developers. As an aside Vigna and Casey point out there is a limit within Bitcoin of 7 transactions per second which compares with 10,000 transactions per second handled by the Visa network.

It’s difficult to see what the future holds for Bitcoin, Vigna and Casey run through some plausible scenarios. Cryptocurrency is well-written, comprehensive and pitched at the right technical level.

Everyone is awesome, no one is to blame

The Liberal Democrats have members from all walks of life. I, for example, am a scientist and sometime software developer. To be honest I’m more of a manager than a developer. There are many tools for software management, one of them is the Agile framework. This is a relatively new innovation and the details are unimportant here but I think there are a couple of things we can learn from Agile. The first is the title of this blog post:

Everyone is awesome, no one is to blame

This mantra is something we bear in mind when we look back over a period or a particular event. The benefit of this approach is most apparent when you are faced with a situation where the mantra is left behind: “You messed up, you are to blame”. Under these circumstances the protagonists in the retrospective become entrenched in their positions and unwilling to open up as to why something happened. It becomes more important to defend your side and make sure someone else is to blame. This approach is unhelpful, and ultimately you have to go forward and continue working with those found to be to blame in a poisoned atmosphere.

We as Liberal Democrats face this risk. I’ve been a member of the party since 1988, it was only after the 2010 general election that I realised that the Liberal Democrats had factions! In a former life I worked with a student from Yugoslavia, she had fled the country with her family at the time of the war. We talked about Yugoslavia and I asked her once whether she knew in her class at school who was a Serb and who a Croat. She said: “Of course not, we were all the same”. In Yugoslavia demagogues dredged up division where none previously existed.

I joined the Liberal Democrats because I wanted to be with people like me, not with some people like me and that other bunch who I couldn’t abide. Schism is for socialists ;-) We mustn’t let any dissection of what is coming to be known as “Cockroach Thursday” become an excuse for factionalism and finger pointing, other parties have tried that approach and it doesn’t work.

The second tool for analysis you might enjoy is “5 whys”. Parents of toddlers will know be somewhat familiar with this technique, used for establishing root causes. It’s very easy to jump to a cause for an event in one bound but it isn’t necessarily right. The “5 whys” method invites you to question the first cause you come up with repeatedly with further “whys”.

  1. Why did we lose? We broke our promise on tuition fees
  2. Why did we make our promise on tuition fees? Because the NUS presented us with a pledge to sign
  3. Why did we sign the pledge on tuition fees? We wanted the votes of students
  4. Why did we want the votes of students? Because we wanted to win parliamentary seats
  5. Why did we want to win parliamentary seats? So we could implement our policies which we feel are best for Britain.

The important point here is not my particular responses to the questions rather that I haven’t stopped at the first one, and each answer leads to further questions which we may return to later.

For my next post I will highlight the use of the Gedankenexperiment in the analysis of political problems.

A cockroach emerges…

I’m a Liberal Democrat. Our party president, Tim Farron, once described us being like cockroaches in our indestructability.

Today the Liberal Democrat parliamentary party has dropped from 57 parliamentary seats to 8, slightly lower than was achieved by the Liberal Party in 1979. Since 2010 Liberal Democrat local councillors have experienced this level of defeat, as have the party’s Members in the European Parliament. It looked like things might be different for the parliamentary party, but they weren’t.

The writing was on the wall from the moment Nick Clegg and David Cameron stepped into the Downing Street rose garden in May 2010. Our opinion poll ratings plummeted from that moment, before we’d done anything else but form the Coalition.

Today, in May 2015 we lost seats to Labour because of the “Great Betrayal”, we lost seats to the Tories because people thought of the Coalition “I actually quite like this government” and then backed the lead partner, we lost votes to UKIP and the Greens because they are the new repository of the protest vote, we lost seats to the SNP because nationalism trumps all.

The night had virtually no redeeming features. I particularly feel the loss of MPs like Lynne Featherstone, Jo Swinson and Julian Huppert all of whom made significant contributions in parliament on equality, science and anti-authoritarianism. All of whom appeared to be popular local MPs, all of whom were swept aside by the national tide.

Nick Clegg retained his seat, for which I’m rather pleased. Outsiders don’t realise quite how dependent a Lib Dem leader is on their party. The things Nick Clegg took the blame for were the things we as Liberal Democrats had collectively decided. He has been the one that has born the brunt of outrage against the Liberal Democrats with good grace. He is the one, more than any of the three main party leaders, who has talked with the public.

The political landscape won’t remould itself, it won’t be remoulded by online petitions. It won’t be remoulded by the “progressive alliance” engaging in rounds of recrimination. It won’t be remoulded by endless venting on twitter, or invoking the apocalypse. It won’t be remoulded by the lion’s roar, or an idiot with a pair of trews.

It will be remoulded by people like me who spend their spare time doing local politics: sitting in interminable meetings in their evenings, posting leaflets through doors, standing for local elections, helping local people and breaking out once every 5 years or so to fight a General Election.

I’m still a Liberal Democrat. I’m proud of what we achieved in coalition in the last 5 years, it’s been the best time to be a Liberal Democrat since I joined the party in 1988.

I’m going to go back to trying to win seats at elections and making sure the liberal voice is heard.