Saturday, 25 June 2016

A few thoughts on the EU referendum result

Many of my peers are upset and angry at the outcome of Thursdays referendum so I would like to ask a few questions of us, acknowledging that there is likely no way back from the decision for the UK to leave the EU.

First let us consider what happened by looking at the demographics - the statistical data related to the population, and groups within in.

UK social grade definitions. From ukgeographics.

How Britain voted. From Lord Ashcroft Polls.
We may conclude from the above figures that the 'higher' professionals were the only ones to have a majority remain vote, with the lower professionals pretty even. It is clear that the C2 and DE demographics representing skilled manual to unemployed people, overwhelmingly voted to leave the EU.

Looking at the breakdown of ages, the trend is clear, voters younger than 35 (roughly 20% of the population) had a majority in the remain camp, voters older than 45 (roughly 42% of the population) had a majority in the leave camp, and those between (roughly 14% of the population) were even. Percentage of population estimates were done by using 2011 census data used here.

The overall outcome - a 51.9% majority to leave, which equates to 37.37% of the electorate, not more than half of the UK population.

Who is to blame?


Inevitably people will blame (for success or failure) whomsoever they choose. It is interesting however to look at various poll results for example:

How much attention do you generally pay to politics poll result. From Lord Ashcroft Polls.
Though this may indicate that leave supporters pay slightly less attention to politics in general than remain supporters, this is a tenuous link. More interesting by far is the 50-50 split for those that pay a lot of attention (or more). It indicates that the campaigns played a large part in the outcome of the referendum.

My own opinion, and that of many that I have spoken to, is that both sides used hatred, fear, and lies to sway the masses. Both campaigns were increasingly negative as the vote neared. In short neither side gave us much confidence in British politics, and many would agree that both sides embarrassed themselves and our country.

This may be why Jeremy Corbyn has such immense support, some may claim that he took a backseat in this referendum, and it is well known that he is not a massive fan of the EU, but perhaps he simply has more dignity and sense than those using exaggeration, lies, and doctored statistics to deceive and cloud the issues. I for one look forward to the direction that Corbyn will give Labour in the future.


The ugly truth


There are many reasons (presented here) as to why people voted to leave and remain, but let us consider something else.

The majority of those that feel wronged by the outcome are remain supporters that may not realise their own privilege. My Facebook and Twitter feeds have certainly been full of similar demographics feeling quite frankly disgusted at this outcome, with a few rather childish leave supporters gloating shamelessly.

Whether in education, social class, wealth etc, most of us (yes, I'm one of the disgruntled remain camp) are privileged in some way.

Let us consider that large proportions of the older and lower social grade demographics voted to leave. Perhaps this had less than we think to do with the EU, perhaps this was the only way for those who feel without a voice, to speak up.

It is our responsibility as the privileged to hear them. Is this a cry of distress? Is it right for some to associate leave supporters with racists? Or to attribute ignorance to lower social status, education, or wealth?

Don't get me wrong, I'm not trying to imply these things - there are plenty of higher social class, well educated, wealthy leave supporters - I'm just considering the other demographic as it shows a significant trend.

Maybe we need to stop worrying so much about the implications of this referendum on our relations with the EU, and start asking what has caused such a large proportion of these demographics to vote leave.

Do we, as the privileged, need to make changes in order to support those less so? I'm not just talking about education etc., what I'm getting at is the political system that we are governed by.

I've always believed that it is a complete farce that the incumbent minister of state for universities and science holds a history degree, was a journalist, an investment banker, and has no formal science qualifications! The incumbent secretary of state for health studied PPE, taught English in Japan, and was an entrepreneur before his role as an MP. What does he know about health (as we've seen by his various death-wish policies, not enough).


Democracy?

Many claim that we live in a democracy, but I'm not so sure. A referendum is as close to a true democracy as we may be able to achieve, however it is influenced by politicians, celebrities, companies and many more. How many of us voted on our principles rather than for the outcome we perceived to benefit us most?

One may argue that the closest we came to a true democracy was Athenian Greece in the time of Socrates. Let us recall that even then, women and slaves could not vote. Socrates' student Plato was an idealist and believed that for a successful democracy all people should be virtuous - not only showing high moral standards, but all having been educated in politics by society. I'm not sure about how virtuous I am, but this referendum has provided plenty of political education.

Plato's student Aristotle was not an aristocrat like Socrates and Plato, and believed that a just society was one of the 'golden mean' i.e. one where the majority of the population were of the middle class, and this presented the best polity. Are we that middle that needs to take more responsibility?

Plato and Aristotle agreed that politics and ethics are related, and that the state should be an agent of virtue, that educates society in the right way. Machiavelli saw the state purely as an agent of control, in which the leader(s) must and should do anything required in order to ensure the safety and stability of the people.


I would not consider our government an agent of virtue, and we can see quite clearly that the populous have not been educated in the right way with regards to this referendum. The state is an agent of control but lacks civil responsibility. As it does not educate society in the right way, we are divided. 

The UK now finds itself in a state of mild war, and I believe that it is our responsibility to modify the political paradigm. The state should work for us all, it should not pit us against one another to allow career politicians to benefit from this conflict.


Final thoughts

Many of us are concentrating on the obvious repercussions and outcomes of the leave vote, however I believe that this referendum has identified fatal flaws in our polity. I am not in a position to suggest a perfect solution, however as educated and privileged members of our society we must recognise that change is needed, and become agents of virtue.

Political campaigns have used lies to influence the outcome of this referendum - the truth is rare and hard to discern for even the most experienced among us. We must base our decisions on fact and truth.

The 'lower social grade' demographics appear to have used this referendum to show their disdain for our current polity. It is up to us to make a difference so that in future we may be proud of our decisions as a nation rather than disgusted at the process.

An aged population means that as 'the young' we will be outnumbered and must communicate with our elders, engaging in debate rather than seeking to 'correct' them.

We must not accept a system where any elected MP can hold the post of science, health, education... minister/secretary etc. These positions should be appointments decided on knowledge, experience, and qualifications in these sectors.

Our democracy is not good enough, and perhaps never will be. We cannot look to political parties made up of career politicians to have our best interests at heart. We must unite in individual action. The individual must show humanity. The individual must wield fact. The individual must consider their neighbours.

Finally - this is all my own opinion - I could be wrong. All I intend is to make you think. If we all used our minds to find fact instead of listening to opinions we would be better off. If we took the system of Socrates whereby the greater factual and logical argument was automatically victorious, we might be able to settle a referendum unanimously in minutes. If we allow emotion, particularly fear and hatred, to influence our decisions, we become easy to manipulate. I hope that humanity is able to benefit from experience, knowledge, and reason, instead of the alternatives that we are so used to.

Peace.


Monday, 20 July 2015

IIAA Christmas Gig

In 2012 a few staff at the International Institute for Accelerator Applications, namely Anna Kolano, Prof. Sue Kilcoyne and Prof. Bob Cywinski decided to hold a small 'gig' (for want of a better word) in the Physics Library at the University of Huddersfield. At the time the IIAA consisted of around 9 staff and 6 students.

To continue the tradition, another gig was organised in 2013. This time catering for a larger group (around 22). Once again Anna, Bob and Sue performed, this time joined by Adam, Aimee Hopper and David Bruton.


The evening began with Bob & Adam performing 

A brief visit from Neil Diamond is always welcome.

Anna performs with Bob.


Bob likes to be the centre of attention.

TripAdvisor

This reviewing malarkey takes a lot of time, so I've decided to simply use TripAdvisor, you can find my profile here.

Monday, 8 June 2015

Fedora 22: Configuring proxy settings for DNF (Yums replacement)

Having recently upgrading to Fedora 22, I tried to run yum to update my packages.

   [HR@M11x ~]$sudo yum update
    Yum command has been deprecated...

So the new package handling tool is DNF (Dandified Yum), which has the command

   [HR@M11x ~]$dnf

On the University of Huddersfield network I have to configure the proxy, which used to be done by editing yum.conf:

   [HR@M11x ~]$sudo gedit /etc/profile.d/yum.conf

and adding the line:

   proxy=http://wwwproxy.hud.ac.uk:3128

This works for yum, but now it has to be done for DNF:

   [HR@M11x ~]$sudo gedit /etc/profile.d/dnf/dnf.conf


fortunately the syntax is the same:

   proxy=http://wwwproxy.hud.ac.uk:3128
  
And now DNF should work.

Tuesday, 30 September 2014

Rafique Advisor: Med-One Huddersfield

Introduction

Med-One is considered one of the best restaurants in Huddersfield. At the time of writing this review it sits at #26 of TripAdvisor's list of top restaurants in Huddersfield, however it remains in contention for #1 on RafiqueAdvisor.

It is a Lebanese restaurant concentrating on Mediterranean and Levantine cusines [1].

Restaurant

Having run successfully for the past few years, the restaurant has recently been revamped and now includes a large second floor space, though I have never been seated there. The clean white walls are adorned with various reminders of head chef Khalil's heritage, and the smell from the kitchen greets you as you arrive.

Service

Though waiters and waitresses seem to change every month, the majordomo has been a stalwart figure, and remains the highest authority when asking for recommendations or the contents of a dish. The pace of Med-One is somewhat laid back, however when times are busy or you sit amongst a large group, efficiency is high and food is delivered hot and in one go.

Food

A few favourites for your perusal.

Starters

Chef's Bread (V): Two freshly baked breads (similar to lavas bread), that are both soft and crispy, lightly sprinkled with herbs and served with two dips. This is an appetiser that I always order as the mains here are quite large and a starter is not always necessary. The two dips (one yoghurt based, one tomato/chilli based) are unlike anything you would expect, and both are rather refreshing.

Taken from the Med-One website


Kubbeh Makliye: A hot starter for those that wish to try something new. Minced lamb surrounded by a combination of crushed wheat and lean minced lamb, served with a taratour dip (yoghurt, garlic, sesame paste) and side salad. A serving usually contains 3 Kubbeh Makliye.

Mains

Goulash: Perhaps not what you would expect in a Lebanese restaurant, but this dish is my personal favourite.Mixed peppers, diced beef, courgette, aubergine, tomatoes, garlic, herbs and spices with freshly baked bread topping, served with rice and side salad. Ask for extra thyme for a distinct flavour. Also available as a vegetarian dish, this should more than satisfy your taste buds. When done properly the tender beef absorbs the rich flavours, and is complemented well by the bread and rice.

Kebab Halabi (Aleppo Kebab): A large kebab for the hungry carnivore. Lamb kebabs in freshly baked Lebanese flatbreads served with chopped parsley, finely sliced red onion, copped tomato, drizzled with lemon juice, and seasoned with sumac. This dish contains a hefty helping of lamb, and though it may seem simple from the description, you will enjoy it.

Kevino Pizza


Kevino Pizza: A folded pizza containing tomato sauce, cheddar cheese, shredded lamb, baked then filled with fresh tomatoes, finely sliced onions, peppers, lettuce and drizzled with garlic sauce. A new pizza experience, this feast will leave you content and possibly drowsy.

Maqluba: Rice cooked with seasoned grilled chicken and aubergine topped with lightly toasted pine nuts, served with side salad and tsatsiki. Tender chicken and flavoursome rice, this is a smaller dish than most, and as such makes a good lunch option. 

Deserts

Qatayef, from Med-One's Facebook page


Med-One's deserts are it's weak point. With a very small selection as it is normal to finish a meal with tea or coffee. All deserts are nut-heavy for those with allergies, and incredibly rich. I would recommend trying Qatayef; a crepe like desert filled with clotted cream or walnuts & cinnamon. 

Wine

My friend and colleague David Bruton is something of a connoisseur when it comes to wine. He recommends the £40 bottle of Lebanese red.

Rating

A light and airy setting, excellent food, and warm service. In my opinion the best place to eat in Huddersfield, perhaps Sir Patrick Stewart agrees.
Sir Patrick Stewart at Med One
 I award Med One 5 stars.



[1] http://www.med-one.co.uk/about/

Rafique Advisor

Over the past few years I have visited many restaurants in Manchester and Huddersfield, mostly because I lived on the Curry Mile and near Huddersfield town centre. After giving advice on local eateries, my friend and colleague Jordan Taylor started referring to my advice as 'Rafique Advisor'.

So in order to help others when making important eating decisions, I have decided to put these 'reviews' on this blog, and perhaps make a new blog if they become too numerous.

All views are my own.

Friday, 25 July 2014

Hartree Summer School 2014: High Performance Computing

The Hartree Centre is an STFC centre for scientific computing, home to the UK's fastest academic super computer - Blue Joule an IBM Bluegene/Q, an amazing visualisation suite, and support for all HPC applications in research and industry.

The Course

Prof. Jack Dongarra (Uni. Tennessee, Uni. Manchester, Oak Ridge) lead the teaching staff of the week long event along with Dr. Kirk Jordan (IBM), the school was capably organised by Terry Hewitt, Damian Jones and Dave Cable from the STFC. The whole event was 3 weeks - the first on visualisation and the last on big data, though I only attended the middle week on HPC.


The week involved talks and practical sessions on; general HPC (Jack Dongarra), parallel programming with X10 (Olivier Tardieu, IBM), OpenMP (Christian Terboven, RWTH Aachen), MPI (Chris Wareing, Uni. Leeds), numerical linear algebra (Julien Langou, Uni. Colorado), HPC architectures (Kirk Jordan), computational steering (John Brooke, Uni. Manchester), visualisation (David Duke, Uni. Leeds), and big data (Chris Williams, IBM).
David Duke from the University of Leeds giving a talk on visualisation
Although the course was largely attended by computer scientists, there were also many other scientists, including those from physics, engineering, chemistry, and business.

The weather was surprisingly good over the week, breaks were spent on the canal bank.
The Bridgewater canal running alongside Daresbury Laboratory

Blue Joule

The Hartree Centre is home to the UK's 3rd most powerful supercomputer ( #14 top500 list 39, June 2012, #23 top500 list 43, June 2014). We visited Blue Joule and Blue Wonder. Blue Joule is a 1.2 Petaflop/s 131,072 core IBM BlueGene/Q. Blue Wonder is a 158.7 TeraFlop 8192 core iDataplex.
The ~21 Petabytes of tape storage for Blue Joule taken from here
The rooms are temperature controlled and full of cameras. Some of the racks are water cooled, others are not. The systems contained a lot of varied hardware, including; FPGAs, Xeon Phis, standard nodes, large amounts of memory (tape, HDD, and flash), switches, controllers, power supplies and plenty of cabling. We were told that the system is the largest USB hub in the UK (at >2048 USB connections). Blue Joule is also one of the greenest supercomputers in the world.

Blue Wonder taken from here

Blue Joule taken from here

Visualisation Suite

Hartree has a rather large stereographic 3D power screen for visualisation of scientific data. Some useful features include the ability to observe simulations (running on Blue Joule) in real time, allowing a user to change simulation variables if necessary. For example if something has gone beyond a realistic physical limit, a job can be stopped (saving money, time, and power), or variables can be changed to make the most of remaining resources.


3D Visualisation Suite taken from here
Information on the visualisation opportunities available at the Hartree Centre can be found here.

Interesting Facts

  • OpenMP and X10 (developed by IBM for the past ~decade) are mainly designed to implement task based code on many core machines, whereas MPI is designed to allow users to work across many nodes or machines. OpenMP is a model for shared memory machines.
  • Although the top HPC machines (top500) may cost over 200 million dollars each, the cost of power, maintenance, cooling etc is often much more. Running costs can mean that the total cost of buying, running, and maintaining a top500 machine for ~5 years can be over $1 billion.
  • After the HPC system lifetime (~5 years) is over, the machines are often scrapped (literally), the silicon isn't reused and gold is often stripped from the machine boards.
  • The power use of a processor scales like it's frequency cubed (f^3), which is why chip manufacturers move into increased transistor density rather than increasing the frequency when improving processor performance.
  • Slide delivered by Intel, taken from this article
  • Intel are soon to release a standalone Xeon Phi CPU called Knights Landing, which will deliver 3 TeraFlops, and as it is does not have to be used as a coprocessor via PCI-Express, it should offer massive performance gains over existing 'accelerators' such as GPUs and existing Xeon Phi (Knights Corner), which are bottlenecked by the PCIe bus.
  • Power consumption is the primary design constraint for future HPC system design.

Adventure Time

Myself and David Bruton decided to walk from Daresbury Laboratories to the Britannia Daresbury Park hotel. There was some confusion when we encountered an abandoned bridge.
The abandoned bridge that we mistakenly tried to cross

Dave on said bridge


The old, 20 million Volt, vertical tandem Van De Graaff accelerator at Daresbury Laboratories
Follow the Hartree Centre on Twitter @HartreeCentre

Thursday, 3 July 2014

Outreach: The Physics of Frisbees

When the weather is nice, the laboratory can get rather warm. Doing an experiment outside with Frisbees can be both fun and informative, as well as a good introduction to the scientific method.

How a Frisbee works

Image from http://web.wellington.org/miller/frisbee.gif

A Frisbee creates a difference in pressure due to it's curvature. As shown in the diagram above, air travels faster over the curved surface and thus a higher pressure is created underneath the Frisbee, giving it lift.

As the Frisbee is travelling in air, a drag force is exerted on it in the opposite direction to that of it's motion.

Another physical effect is that of gyroscopic motion. As the lift force acting upon the Frisbee is centred near the front of the Frisbee, it will experience a torque which tends to flip the Frisbee over if it is not spinning. When it is spinning, the gyroscopic phenomena of precession occurs. In this case the spinning means that the torque enacts over many points on the disc, and it's net force is negligible.

Normally a Frisbee has small ridges on the top of the disc, these cause a small amount of turbulence, this allows the Frisbee to travel further.

Simple free body diagram
Finally we consider the angle of the disc. In the above diagram the Frisbee is flat, in reality it is usually tilted at some angle to the horizontal. The launch angle will affect both the lift and drag force exerted upon the Frisbee, as this will determine how much air is deflected downwards and upwards by the edge of the disc. The disc is more likely to curve towards the direction of spin if it is released at a larger angle because of this.

Gravity will eventually cause the disc to hit the ground.

Modern Frisbees are hollow discs rather than the more conventional solid discs. The modern design has a few advantages. Firstly increasing the curvature on the outer edge and inner edge means that air will flow over two surfaces rather than just the one. There is usually a small groove on the underside of the disc which increases it's lift, and the disc can be somewhat flexible, which should reduce it's drag slightly as it can adapt to changes in wind direction etc.

Equipment
You will require a reasonably long and straight patch of grass, as well as the following.
  • Long piece of string (~40m)
  • Wooden skewers or similar (to stick into the ground)
  • Tape measure
  • 2 Frisbees, one solid disc and one hollow disc
  • Pen & paper

Method
Stick a wooden skewer into the ground and tie one end of the string to it. Lay the string in a straight line, using the skewers to mark every few metres, I recommend every 5 metres.

Get the participants to throw each Frisbee a number of times (using the below points of investigation) and observe the behaviour when different tilt angles / amounts of spin etc are used.

Try to get the participants to investigate the below points and think about why this behaviour is observed. Adding competition is usually a good way to get participants interested in the optimum throwing conditions. For example a competition for longest distance travelled, straightest flight etc.

Points of Investigation
  • Due to the shape of the Frisbee, its aerodynamic benefits are not utilised if the disc is thrown upside down.
  • Throwing the Frisbee perfectly horizontally should maximise the distance it will travel.
  • If released at a large tilt angle but thrown slightly upwards, the disc should fly in a projectile trajectory, but fly to the left/right of the intended direction.
  • Increasing the amount of spin should increase it's stability, decreasing or throwing with no spin will result it a very short travel distance due to the torque pitching the disc over.
  • Using both a regular solid disc and a modern hollow disc Frisbee may result in the hollow disc travelling further.

If all else fails, you can always stand in a circle throwing a Frisbee around whilst discussing Physics and answering any questions that the participants have.

Friday, 23 May 2014

Installing Google Chrome (& Repository) on Fedora

First use wget to download the GPG key:

$ wget https://dl-ssl.google.com/linux/linux_signing_key.pub

Next import to RPM:

$ rpm --import linux_signing_key.pub

Now create and edit a file in /etc/yum.repos.d/ named google.repo

$ sudo gedit /etc/yum.repos.d/google.repo &

Edit the file to contain the following:

[google64]
name=Google-x86_64
baseurl=http://dl.google.com/linux/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Finally use yum to update and install chrome:

$ sudo yum install chrome
$ sudo yum update


Thursday, 19 December 2013

3. Courant-Snyder Formalism

When considering many turns of an accelerator lattice, we observe the behaviour of a beam envelope. Hill's equation's are second order differential equations for a system with periodic focussing properties. The motion has a variable spring constant $k(s)$ which depends on the magnetic properties of the accelerator ring. If the ring has periodicity L, then so does the function $k(s)$:

\begin{equation}k(s+L) ~=~ k(s)\end{equation}

From this we can expect something similar to harmonic oscillation where the frequency and amplitude depend on the location in the accelerator ring, and show periodicity similar to that of the function $k(s)$.

The Courant-Snyder formalism assumes a solution of Hill's equation inspired by this intuition on position dependent amplitude and phase, to provide us with a set of auxiliary functions that allow us to extract the maximum information from Hill's equations. Thus we use the ansatz:

\begin{equation}x(s) ~=~ \sqrt{\epsilon \beta(s) }~ cos ( \psi (s) + \psi_0).\end{equation}

$\beta(s)$ is a position dependent amplitude, $\psi(s)$ is a position dependent phase, and $\epsilon$ is a constant known as the emittance. As Hill's equation is linear the emittance does not appear in it. $\beta(s)$ is the important variable in the Courant-Snyder formalism. Having many names such as the beta function and the beam envelope function, it has the physical meaning of amplitude, which is dependent on the position along the accelerator. It represents the focussing properties of an accelerator lattice, a small $\beta$ represents a tightly focussed lattice.  We note that $\beta(s+L) = \beta(s)$.

Taking derivatives of the Courant-Snyder ansatz and substituting into the equation of motion, we get two terms; one proportional to cos and the other proportional to sin. We obtain two differential equations:

\begin{equation}\frac{1}{2} (\beta \beta'' - \frac{1}{2} \beta'^2) - \beta^2 \psi^2 + \beta^2k ~=~0,\end{equation}

\begin{equation}\beta'\psi' + \beta\psi'' ~=~ 0.\end{equation}

The latter may be integrated as:

\begin{equation} \beta'\phi' + \beta\psi'' ~=~ (\beta\psi')'. \end{equation}

We may choose the integration constant to be 1, $\beta\psi'=1$. The result for the phase function is thus:

\begin{equation}
\psi(s) ~=~ \int\limits_0^s \frac{ds}{\beta(s)},
\end{equation}

a position dependent phase, which is related to an integration of the beta function along the beam line. Knowing the beta function means that we may compute the phase function. We can eliminate the phase function from the first Courant-Snyder differential equation, to obtain a differential equation for the beta function:

\begin{equation} \frac{1}{2} \beta \beta'' - \frac {1}{4}\beta'^2 + \beta^2k ~=~1 \end{equation}

Thus we see that $\beta$ is determined by the distribution of focussing strengths along the accelerator, though we do not solve this equation in practice. We define two functions that, along with $\beta$, are called the lattice, or sometimes TWISS functions:

\begin{equation} \alpha(s) ~=~ \frac{-1}{2} \frac{d\beta(s)}{ds}, \end{equation}

and

\begin{equation} \gamma(s) ~=~ \frac{1+\alpha(s)^2}{\beta(s)}. \end{equation}

Once the lattice functions are known, the motion of a single particle through the lattice is completely defined in specifying the emittance and initial phase factor of the particle.

After some algebra we see that

\begin{equation} \epsilon ~=~ \gamma x^2 + 2 \alpha x x' + \beta x'^2. \end{equation}

Original Paper
E.D. Courant and H.S. Snyder, Ann. Phys. 3, 1 (1958)
Adapted from
[1] S. Y. Lee, Accelerator Physics, Second Edition, World Scientific, 2007
[2] H. Weidemann. Particle Accelerator Physics I: Basic Principles and Linear Beam
Dynamics. Springer, 1999
[3] R. Appleby, Beam Dynamics, Cockcroft Lectures 2011