Archive for June, 2016

Get your default gateway from the terminal

Wednesday, June 22nd, 2016 | Tech

If you are inside a Vagrant box and want to SSH to the host machine, you will need to get the default gateway. Or, maybe you just need the default gateway for a completely different reason. Either way, the following command should do it.

netstat -rn | grep "^0.0.0.0 " | cut -d " " -f10

This is really useful if you don’t have ifconfig installed.

What would Churchill do?

Wednesday, June 22nd, 2016 | Religion & Politics

brits-dont-quit

This poster caught my eye. It was used by the Remain campaign and it is easy to see why: Churchill is seen as a cornerstone of English patriotism and a hero, especially among Conservatives. If he had been here today, his view would be worth a lot.

But is it true? Was he a founder of the EU? Would he support it today?

In the case of whether he was a founder, it could be argued that he was. Here is what his Wikipedia page says:

In 1956, after retiring as Prime Minister, Churchill went to Aachen to receive the Charlemagne Prize for his contribution to European Unity.[278] Churchill is today listed as one of the “Founding fathers of the European Union”, a claim which in Boris Johnson’s view contains “a very large dollop of truth”.

In 1946, he used the term “United States of Europe” during a speech in Zurich. This shows his support for a more-united Europe was clear.

We must build a kind of United States of Europe. In this way only will hundreds of millions of toilers be able to regain the simple joys and hopes which make life worth living.

This suggests he was clearly in favour of the EU. However, it is one quote that I have not included in the context of. Can we surmise, taking an overall view, that Churchill was in favour of the EU? To do that, we would need to weigh up all the evidence.

Journalist Jon Danzig has done just that. The conclusion? Churchill was not taken out of context in the above quote. He supported “the Union of Europe as a whole” and, if alive today, would almost certainly be voting Remain.

Best of the EU memes

Tuesday, June 21st, 2016 | Religion & Politics

Here are some of my favourite memes from the past few days.

On our skills shortage

Damn those immigrants, coming over here, saving our lives.

11088106_10155495229450193_712918386_n

On the economy

One thing we have struggled to have is a evidence-based debate on the economy. The truth is, a lot of it is unclear. However, when we are talking about hard evidence, we do have this. The pound is already plummiting, just on the threat of Brexit.

13428498_10208226430812808_68781999493741233_n

On free European healthcare

13435327_1815012788720936_7154305292228995003_n

On scaremongering accusations

13445254_10153433628806920_967357770259024488_n

On the so=called breaking point

This one I did not enjoy. The whole affair has gone too far.

farage

Jo Cox, 1974-2016

Sunday, June 19th, 2016 | News

jo-cox

On Thursday 16 June, Jo Cox was attacked in her parliamentary constituency of Batley and Spen. She died from her injuries. There can be little doubt that we are all horrified by this event. Such a thing happening here in Yorkshire seems almost unbelievable. The attacks leaves a family without a mother, and a constituency without a tireless champion of the vulnerable.

Sadly, we may simple be seeing the reflection of the values we have built. As BHA chief exec Andrew Copson put it:

So what do we do? How do we respond to this event as a society? The quote that comes to mind the most is that beautiful Martin Luther King quote:

Darkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that.

The way we recover from this is not by seeking revenge. It’s not by becoming angry or further dividing our society. It is by coming together, to re-build and re-affirm our values of tolerance, respect and openness.

Who should survive the Euro 2016 groups?

Saturday, June 18th, 2016 | Sport

euro-2016

When you make it to the finals of Euro 2016, you are allocated to one of six groups. The top two teams from each group, after three matches, get a pass into the round of 16. An additional four teams also make it through.

But should we expect to see there? One way to calculate it is to work out how tough each group is. By taking each team’s world rankings and averaging them, we can see how tough each group is.

Group Teams Rank
A France, Switzerland, Romania, Albania 24
B England, Wales, Slovakia, Russia 22.5
C Germany, Poland, Northern Ireland, Ukraine 18.75
D Croatia, SPain, Czech Republic, Turkey 20.25
E Italy, Ireland, Sweden, Belgium 20.5
F Hungary, Ireland, Portugal, Austria 18

A lower number represents a tough group and a higher number represents an easier group. This suggests England is in one of the easiest groups: only group A has a lower average world ranking, and this does not factor in the home-field advantage that France has.

We can then compare the team ranking to the average group ranking to see who should find it easiest to quality.

Team Difference
Belgium +18.5
Germany +14.75
Spain +14.25
England +11.5
Ireland -12.5
Sweden -14.5
Iceland -16
Albania -18

I have shown the top and bottom four here. The other home nations do not find themselves at the bottom of the table, which is positive news too. Having said this, the difficultly of the group makes little difference: all of these teams are in the same order as if you had just taken the world rankings. So how tough your group is, is probably not a factor.

My EU referendum video

Friday, June 17th, 2016 | Religion & Politics

I made a video about why I am voting Remain. It is unlikely to make the Oscars shortlist, but I hope it is at least honest.

Practical things we can do for the EU referendum

Thursday, June 16th, 2016 | Religion & Politics

vote-remain-car-poster

We are only seven days away from the EU referendum, so you might feel like it is too late to do anything to help the campaign. It really isn’t. Here are some practical things we can do to help secure the future of our country.

Tell your friends and family

Maybe your friends and family do not know how important it is. Or maybe they don’t realise that the result could be decided by lower voter turnout rather than people getting the result they want. Talk to them about it.

Donate

Both sides are spending big on advertising and media. It might be too late to pay for new billboards but there is plenty of time to buy more advertising in a daily newspaper or targeted online advertising on Google, Facebook and Twitter. You can donate to Stronger In or the Lib Dem campaign INtogether.

Helper people get to the polling station

Know anyone who might struggle to get to the polling station and cast their vote? Offer to help them.

Phone people

You might think that the campaign cold-calls are done by professionals at some big offices. They’re not. They are made by people at home. Using the Lib Dem system, all you need is a phone and a computer. Contact me for details.

Put some posters up

Stronger In offer posters you can print at home to put up in your house window, car window, at your office desk, anywhere you think people will see it. There are a lot of Leave signs around, simply because the Leave campaign has been more vocal, which gives a distorted picture of the support they have.

Why EU fishing quotas are good for Britain

Wednesday, June 15th, 2016 | Religion & Politics

fishing

Today, Nigel Farage made a big deal about being on the Thames protesting EU fishing quotas. It is a serious issue. So lets pretend for a moment that Nigel Farage genuinely cares about the UK fishing industry, rather than just using this is an opportunity to press his own agenda. We have to pretend because we have the hard evidence to show he does not care, as exemplified by this meme.

hugh-vs-farage

That’s right, Nigel Farage was on the EU fisheries committee, but did not bother to turn up much, or vote, or really do anything. But suppose he genuinely did care. Are EU fishing quotas bad for Britain? The answer is no. Here is why.

We need to maintain fish stocks

Fish stocks have become dangerously low. We have quotas in place to stop fish going extinct. This would be bad because if fish disappear then it causes a huge problem for the environment. For example whales need fish to be there to eat. Whereas on the flip side, if fish were not eating their prey, they would cause over-population.

If you are not swayed by the environmental concern, consider that once there are no fish left, we won’t have any fish to eat. For me, that would be rubbish because I really like fish.

Fishing is big business

Are you imagining that the people complaining are small time fishermen who had a little boat to feed their family? To be honest, I was. And some of them are. But the majority of them are not. They’re big business. Here is Dr Chris Hassall from the University of Leeds…

Three large companies own 61% of all fishing quotas. This isn’t about Michael Gove’s father alone on a tiny boat in a stormy sea. This is an industry monopolised by millionaires who are fighting regulation, just like all other industries. Viewed in that light it is completely unsurprising that “Big Fish” has joined Farage, alongside his banker allies.

Fishing quotas help small fisherman compete against Big Fish. Unrestricted, big companies would fish the oceans clean, take all the dividend profits out of their companies and move on with their lives. Meanwhile small fishermen would suddenly find an empty sea, no way to make a living, and no huge profits to fall back on. Creating a sustainable industry is the only way to protect small fishing businesses.

Quotas protect Scottish fisherman

As well as allowing small fishermen to complete with the big corporate fishing, preventing over-fishing also protects those who genuinely do fish to feed their families. In the second episode of River Cottage: Gone Fishing Hugh Fearnley-Whittingstall travels to the Island of Rona in the Hebredes to meet the island’s caretaker. He feeds his family on the annual mackerel catch. However, each year that gets smaller and smaller. By the time the documentary was made, he had run into a two week draught.

Fishing quota are good for British business

As well as protecting our small fishermen from big business and ensuring we have a sustainable fishing industry going forward, fishing quotas have one further advantage to British business: they open up the opportunity for innovative fish farming to meet consumer demand.

In the same River Cottage: Gone Fishing episode Fearnley travels to the island of North Uist to visit just such a fish farm. The strong currents around the island mean they don’t have to treat for any diseases such as lice and produces excellent-quality fish. It’s a wonderful example of a small British business leading the world in innovation, sustainability and quality.

Conclusion

EU fishing quotas are good for Britain because:

  • They ensure there will still be fish to eat tomorrow
  • They ensure a sustainable industry for the future
  • They protect small fishermen from big fishing companies
  • They open up new opportunities for British entrepreneurs
  • They protect small communities that fish-to-eat from overfishing
  • They protect the environment

It’s time to speak out

Wednesday, June 15th, 2016 | Religion & Politics

lib-dem-europe-campaign

I have not been very active in campaigning for the UK to remain a member of the EU. The truth is, I don’t think I thought I really needed to. I thought when the time came, the UK would not be swayed by the torrent of anti-immigrant hated put out by a side that advocated a return to the good old days when we maintained our trade levels through invasion and empire-building, rather than dialogue and open borders.

Having discussed it with other people, I think many feel the same way. We did not realise our voices had to be heard. We assumed that the progress we had achieved over the past 50 years was safe. But now, only weeks before the referendum, the pendulum is swinging. Several polls put Leave ahead. Even the bookies have started slashing the odds, which were not that high to begin with.

We must speak out. The voice is the silent majority, our voice, must be silent no more. The time for being British and avoiding the awkward conversation with out friends and family has passed.

When I talk to people about the referendum, I don’t tell them about the percentage of immigrants in the UK (it’s lower than they think), the percentage of laws that come from Brussels (it’s lower than they think), it the net contribution we make to the EU (it is, of course, lower than they think). I talk about my fears for my wife and my baby daughter. Immigration laws tear families apart.

I talk about my fears of providing for my family when trade with other European nations becomes more difficult. At Sky, we’re expanding into Germany and Italy. If that growth is slowed, I will be the first out of the door.

I talk about my friends, who work on minimum wage, who will have to face a stagnant economy in which their pay does not rise, but their price of does does. Boris Johnson and Nigel Farage will still be millionaires whatever happens. It is the poorest communities, the communities of The North that will be hit the hardest.

I talk about my friends with disabilities and long term health conditions who face a bonfire of rights once there are no immigrants left to demonise.

And all of this for no clear benefit. There are no concrete benefits. We don’t know if leaving the EU will spare us some cash, or whether that will be lost in the economic shock. We don’t know if we will be able to gain any immigration controls while still maintaining business links with Europe. We do know that we almost certainly would have to contribute to the EU budget anyway, have no trade deals with other countries and make it more difficult to fight crime in a European level.

The only “gap” is our attitude

When the results of yesterday’s TNS UK poll were released, it put Leave 7 poins ahead. But listen to what their spokesperson, Luke Taylor, told The Guardian

It should be noted that among the entire general public the picture is more balanced with 33% supporting Remain, 35% supporting Leave and 32% undecided or planning not to vote.

Taking into account likelihood to vote and whether or not people are registered to vote, benefits ‘Leave’ over ‘Remain’. In particular, our turnout model penalises younger people and those that did not vote in the previous general election, as historically these groups are less likely to vote.

The Leave campaign does not represent the the majority view of British people. The reason they are ahead is because on Thursday 23 July, they are more likely to turn up and vote than everyone else. It is because of low turn out, especially among younger people, that the Leave campaign has the chance to drag us down down a road that the rest of the country does not want to go down.

Our voices must be heard, and our votes must be counted. It rests on all of our shoulders to make this happen.

Google Chrome and the missing hard disk space

Tuesday, June 14th, 2016 | Tech

I was recently clearing space on my laptop hard drive when I noticed Google Chrome was taking 20gb of space. You read that correctly: 20gb.

google-chrome-size

After some searching, people suggested it could be old versions of Chrome. You can see into the package by right-clicking on it and clicking “Show Package Contents”. Inside I did indeed find dozens of old versions of Chrome and deleted them all. However, this only brought the size down to 19gb.

I wondered if the cache might be stored inside the app. I wouldn’t expect it to be, as typically it is stored in the user directory. However, when I went to clear out the cache, it only had 400mb in it away, so that ruled out that as a problem.

Next, I went through all the files in Finder to see if I could spot any large files. I could not. This made me suspicious, so I opened up terminal and checked it from there.

cd /Applications
du -sch ./* | grep Chrome
195M	./Google Chrome.app

Google Chrome isn’t actually using the space: Finder is just reporting it incorrectly. However, it clearly showed up on Daisy Disk before, and disappeared after I cleared out all of the old versions. So whether they were contributing or not I’m not sure.