Apr 252015
 

So for ages I've been having these mysterious slow downs in connecting to some of my internal servers. A few seconds, but once connected things are working normally.

And of course I kept putting off having a look into the problem, because firstly I'm lazy, secondly there are other more interesting things to look at, and thirdly I'd already discounted the obvious (actually I'd "fixed" it but made certain assumptions). But it's finally time to have a look.

Now I said I'd earlier discounted the obvious but decided to have a look any way. The thing to remember is that when you connect to a server it almost always performs a DNS lookup on your network address, so a mysterious slow down could well indicate that DNS resolution is to blame. You could perform diagnostics to determine what the problem is, but in all the decades I've been solving issues with computers whenever a mysterious slow down has occurred when connecting over the network, then the problem has almost always been the DNS resolver.

Taking a look at /etc/resolv.conf on the relevant server (a Linux container), and I find the file has a nameserver within it that was retired several weeks ago! Fixing that solved the issue.

Lessons learnt :-

  1. Just because you have a centrally distributed /etc/resolv.conf that is automatically installed on all your home network doesn't mean to say that it is always automatically installed. My Linux containers don't get that centrally distributed file (which had been corrected!).
  2. Don't assume that it's not the obvious even if you have reasons for thinking it couldn't possibly be the obvious (see #1).

 

Apr 222015
 

This post is going to be quite long and a bit of a mishmash of different things – my own personal story, a description of what vaping is, politics and conspiracy theories. No great detail in here – it's pretty much an overview.

After approximately 10 months of vaping and not smoking (the "stinkies" being the vaper's term for cigarettes), I think I can reasonbly claim that I am no longer a smoker. Like most ex-smokers, I made numerous attempts to give up varying from a few months to just a few hours. The last attempt to give up was assisted by having the right vaping equipment, but was surpisingly easy – either it was just at the right time, or vaping really does make it easier to quit. 

Of course without a double-blind study to show it, we really are not supposed to say that vaping makes it easier to quit smoking, but anecdotally (and personally) it certainly seems to be the case.

But …

What Is Vaping?

To put it simply, vaping is the act of inhaling the vapour produced by heating an e-liquid so that it produces something close to steam.

There is no burning or smoke involved. The vapour that is produced contains nicotine, vegetable glycerine, propylene glycol, and various flavourings.

Really rather chemical-sounding, but it contains hundreds of chemicals less than that produced by a burning cigarette. And whilst (with the exception of nicotine) the chemicals used in vaping are not necessarily approved for inhaling, there are approved for human consumption. 

The Gear

Cig-a-likes, clearomisers, tanks, mods, … the world of vaping equipment is a confusing mess. Some are more effective than others, and it isn't always easy to tell which is going to suit you, but the sound-bite :-

The more a device looks like a cigarette, the less effective it is.

(Although there is a seperate rant about cig-a-likes)

All devices whether they come as seperate components or as an integrated device can be split into two – the power source, and the atomiser. The atomiser is what turns e-liquids into vapour and is the key item (assuming a reasonably capable power source) for determining the quality of the vapour production. All of the different atomisers work in the same basic way – there is some form of e-liquid storage, some wicking material to move the e-liquid, and the electrical coil which heats up the e-liquid to produce the vapour.

The coil itself is pretty much like an old-fashioned electric fire, although a bit smaller. The coils vary in resistance from about 0.5 ohms to about 2 ohms; the lower the resistance the greater the strain on the power source. Varying the resistance makes a difference to the vaping experience that is too complex to go into here.

The different power sources themselves can be divided into two – regulated devices and unregulated devices. Unregulated devices are little more than a simple battery where the power suppplied to the atomiser is whatever the battery can provide. Whilst there are advantages with unregulated devices, they can be unsafe with lower resistance coils and so should be avoided by beginners.

Regulated devices allow you to set the power sent to the coil and if the battery is capable of delivering that power, it will be delivered. Most also include safety features to prevent electrical accidents.

Device Safety

Having mentioned issues with device safety, let's go a bit further into that.

If you buy a cheap and nasty battery off a well-known online auction site, charge it from a cheap and nasty battery charger, use it on an unregulated power source with an unreasonably low resistance coil, then you may have issues :-

  1. Electrical fire when your charger blows up or forces more electricity into your battery that it wants to hold.
  2. Battery venting when the battery gets overloaded. Whena  battery vents, it heats up dramatically, leaks liquids and gasses.
  3. If a battery vents inside a device that doesn't allow for the gasses to escape, then the gas pressure will build up until something lets go – in extreme cases you can have pieces of a metal tube fragmenting and scattering at high speed. A pipe bomb in other words.

Now that I've scared you all, let me emphasise that this does not happen if you're sensible – sensible in your purchasing decisions and sensible in your vaping habits. A good charger will shut down if the cheap and nasty battery it is charging shows signs of blowing up. A regulated device will turn off when the battery starts behaving badly. And a sensible vapour will make sure all their vaping components are safe before trying sub-ohnming.

Essentially when you hear of some kind of vaping accident (and you will – bad news travels faster than good news), you will know that you're hearing of an unlucky idiot.

Those Damn Cig-A-Likes

Cig-a-likes are exactly what they sound like – electronic cigarettes designed to look like "analog" cigarettes. Even down to a silly little LED that glows on the end when you take a puff.

They don't work. Or at least didn't work for me.

The batteries are too small to last more than an hour, and what is worse is they don't just stop but fade away.

The cartidges that plug into the batteries contain a tiny amount of e-liquid, and tastes bad enough that it makes bilge-water seem like a tasty drink.

As you might have guessed, I made several attempts to give up with the assistance of cig-a-likes, and failed every time. At best they were a crutch that kept me off the stinkies for a few days or hours, but they weren't satisfying, or enjoyable.  

E-Juice

I'm not entirely sure where the name comes from, but the liquid we use to generate the vapour is called "e-juice". 

It is flavoured, and may contain nictotine. Yes, you can get e-juice without the dreaded nicotine.

But what may come as a surprise is that most e-juice flavours have nothing at all to do with tobacco. Various fruits, spirits (whiskey, rum, etc.), baked goods, custards, and probably a whole lot more. And the relative unpopularity of tobacco flavours probably surprises the e-juice suppliers as much as you!

And no, all these colourful flavours have nothing to do with hooking children; as a whole the vaping industry seems horrified at the thought of selling to children. Since starting vaping I've seen more popup "Are you over 18" pop up messages from sites than in all the years before. It has much more to do with former smokers rediscovering their taste buds.

Is It Safe?

Oh boy! Is that a big can of worms. No. 

Alternatively

I don't know, but it smells nicer.

There is no such thing as safety. All activities (including consumption of anything) necessitate taking risks. Including vaping. This section should of course include many links to the relevant scientific papers detailing studies done. Unfortunately I'm too lazy, but not everyone has been :-

The right two questions to ask are :-

What Risks Are Associated With Vaping?

The short answer to that is that nobody knows.

The longer answer is that apparently there is not a significantly higher amount of HPHCs (a technical word meaning "nasty stuff") in e-cigarette vapour than there is in ambiant air whereas cigarette smoke contains tons (well to be more precise, milligrams which is lots in this scenario). Of course I have ignored the results of studies done with poor methodology.

There are studies which have found nasty stuff (in particular formaldehyde) in e-cigarette vapour, but in many cases this is a result of poor experimental methodology. Any experienced vapour knows about "dry hits" or "burnt hits" where the power is too high and/or the wicking isn't sufficient to deliver enough e-liquid to the coil. What happens then is that the coil chars or burns the wicking material, which results in a vapour that is so acrid and nasty that nobody could breathe it in fully; in one recent posting it has been described as Satan's farts.

With an automated testing machine it is difficult to avoid these dry hits as there is no human in the loop to say "Yerk". Interestingly in one study, the published tweet claimed high levels of formaldehyde which caused the researchers some distress as they had deliberately tested beyond the safe limits to produce half of their results. Their full study actually showed that there was no formaldehyde when vaping normally and formaldehyde was only found at ridiculously high levels of power (for the atomiser they were using).

Lastly, there is some level of misunderstanding of study results going on. For example, there is the case where a study found high levels of metalic nanoparticles in the vapour produced. Which was instantly leaped upon by the anti-crowd who negelected to point out that the levels found were below safe limits.

The long term effects of what appears to be non-toxic components of e-cigarette vapour are not well known, but it is widely accepted amongst reasonable people who have studied the question that vaping is much less risky than smoking. In fact it is entirely reasonable to suppose that walking alongside a busy road has a far higher risk (from internal combustion pollution) than vaping.

Or my old phrase summing up the situation :-

If you're a smoker, you'd be crazy not to try vaping. If you're a non-smoker, you would be crazy to start vaping.

Is probably a bit too cautious.

What Risks Does Vaping Impose On Bystanders?

This is even less well studied than vaping. But have you ever complained about the "smoke" machines at gigs or clubs? No? Well you've been ignoring a risk that is for all effective purposes just the same as an electonic cigarette; those "smoke" machines altough they pre-date e-cigarettes, are just big versions of a vaping device. 

Admittedly the "e-liquid" they put into smoke machines lacks the nicotine and usually flavourings that e-liquids contain, but the levels of nicotine reaching a bystander are zero or so low as to be negligable.

Probably the biggest risk is that the smell of some vapour is likely to make bystanders on a diet feel hungry.

Think Of The Children!

Actually, and just for once, let's not. Let's think of the smokers who will die if we daemonise vaping first

Vaping isn't for children. And if children do "experiment" (which they already do with cigarettes) isn't it better they experiment with something that is less risky than smoking itself? If we eventually change the world so that smoking is almost non-existent and most ex-smokers vape instead, children will find it much harder to experiment with smoking and will have to resort to vaping.

And preliinary evidence shows that children who do experiment with vaping are less inclined to get addicted to it.

Conspiracy Theories and Politics

When it comes to moves to regulate electronic cigarettes, the online vaping community seems particularly subject to conspiracy theories :-

  • Big Pharma wants to daemonise vaping because it has invested billions (really?) in nicotine replacement therapy and wants to keep selling the nicotine patches, sprays, and pills. 
  • Big tobacco wants to daemonise vaping to maintain their revenue stream.
  • Politicians want to daemonise vaping to maintain their revenue stream (from taxes).
  • Anti-tobacco campaignes want to daemonise vaping to maintain their revenue stream (if vaping takes over from smoking there will be fewer anti-tobacco jobs).

l'll be the first to say that I cannot disprove any of these (you cannot disprove a negative), and there may be some truth in some of them.

But Occam's razor leads me to believe it is just ignorance and assumptions that lead to the opposition to vaping. Regulation is necessary, but sensible evidence-based regulation not reflex regulation. So we need to educate the politicians, and the politicians need to educate themselves.

Apr 052015
 

It's a bit of a slow reaction to the leader's debate, and most of the debate was fairly predictable – the Tories want to cut public spending to pay off the deficit, Labour want to spend and hope the deficit will go away of it's own accord (and according to the historical record, Labour actually have a good track record of reducing the deficit!), and the Liberals want to fit themselves in the middle. The Greens made some interesting points, and the nationalist parties also had some interesting (if nationalistic) points to make.

But Farage (representing UKIP) was unbelievably simple-minded. Just about any problem could be dealt with by getting rid of the dirty foreigner.

Farage wants to cut the deficit by stopping sending money to those dirty foreigners. Their total saving on the foreign aid budget and the EU subscription would amount to £17 billion per year; even ignoring the fact the deficit is growing at about £100 billion a year, it will take approximately 88 years to pay off. Failure number 1.

Farage has a solution to the housing crisis – stop all the dirty foreigners coming in and taking over our houses. It seems like an obvious problem, but is not the whole story (see this article for an analysis of what may be wrong with the housing market).

On the question of the NHS, Farage has a solution to increase the NHS budget – stop treating all those dirty foreigners and let them die in the streets. Concentrating on figures for the moment, stopping treating foreigners may cut NHS costs by £2billion which sounds like a great deal, but it is a drop in the ocean compared with the overall NHS budget of £116 billion. What has not been mentioned is that the NHS is not very good at recovering costs from foreign health insurance schemes which is something worth looking at.

Personally I am quite willing to see the NHS spend 1.7% of it's budget on treating foreigners, because sick people need treatment. What kind of society would we be if we let those who don't qualify for treatment die in the streets? 

Farage and UKIP seem to have only one answer to all the problems the next government will face – blame foreigners. No problem is so simple that there is just one solution to it, and even if you believe that immigration is too high then you should at least agree with me that a party whose only answer is to blame foreigners is not worth considering.

Apr 042015
 

As an introduction to this, I'm writing this from the point of view of a freeholder wishing to evade the right of first refusal but for the record this is more or less what happened to me as a flat leaseholder. Obviously certain details have been changed and the relevant names left out.

One of the things they don't say when someone buys a leasehold flat is that when the freehold changes hands, the leaseholder should normally have the right of first refusal. The existing (and prospective) freeholder should formally notify the relevant leaseholders that the freehold is due to change hands, and offer the freehold on exactly the same terms.

There are certain exceptions to this right of first refusal which can be basically summed up as various forms of inheritance, so probably won't be of much use in helping out.

The first decision to make – long before the freehold changes hands – is whether it is worth defending. If the freehold is purely residential it is probably not worthwhile trying to defend it, and some of the options below are not available. If however there is commercial element to the freehold such as the shops in a mixed use block, then it is may well be worth defending. 

You can of course split off the valuable part of the freehold into a leasehold so that the freehold becomes a lot less valuable; even if you do lose it, you still retain the commercial and profitable part of the property. It also allows you to 'fiddle" the price of the freehold so that when you sell the freehold and the leasehold together, you charge far more for the freehold than it is actually worth.

And don't tell the leaseholders about their right of first refusal. Sure that's illegal, but it turns out nobody really cares about that. Most leaseholders won't be aware of their right of first refusal, and even if they are aware, they will be too concerned with the expense to take it any further. Unless you have managed to annoy them in some way.

And whilst you are ignoring the right of the leaseholders to be informed of their right of first refusal, you can keep yourself busy by merging the previous leasehold of shops with the freehold. Making a fundamental change to the value of the freehold will complicate the right of first refusal if it ever comes up.

If the leaseholders do make an attempt at enforcing their right of first refusal, delay at every opportunity. Unless you give up at the first hurdle, the issue is going to court and any court action is a game of chicken where the loser is the first to blink at the escalating legal costs.

As usual, justice in this country favours the rich.

Mar 212015
 

Today's little ramble was brought about by a little off-hand remark about the last election. Aparently the Tories got 10 million votes whereas the apathetic (those who didn't vote) numbered 16 million!. So why do all those people fail to vote?

Apathy

On first appearances there is not a great deal that can be done about those who are too apathetic to vote. By their nature the apathetic are very difficult to persuade into action.

But we can make voting easier

Postal voting already exists, but still takes a bit of effort to arrange and get sorted. It is rather too late to arrange it for the election this time around, but it is time we had some form of secure online voting. Previous attempts at electronic voting have not been entirely successful, so any online voting mechanism should be slowly are carefully worked out. It is not the sort of thing you hive off to the lowest bidder and let them solve all of the problems.

But probably the one thing I'm keenest on is to review the archaic and ridiculous habit of insisting on voting taking place on a Thursday. There is no reason for it other than convenience for the politicians (it gives them a long weekend to sort out the new government). It is nothing more than a historical custom. Setting the election for a day at the weekend would allow those who are only partialy apathetic more of a chance to get their vote in.

Many of us work, and voting on a Thursday involves disruption to a routine which may not have much available flexibility. In the morning, you're too busy getting the kids to school and yourself to work to take time out to vote (I vote in the mornings and it's amazing how quiet the polling booths are), and after a bad day at work it is all too easy to slump down on the sofa and "forget" about voting. 

Safe Seats

With our current electoral system, the result of an election is determined by the result in a handful of marginal seats; in the majority of seats the result is almost a foregone conclusion (with the occasional surprise often assisted by the presence of a particularly odious politician). 

If you happen to live within a safe seat, there is relatively little pressure to vote – your individual vote is unlikely to make a difference one way or another.

Given the result of the referendum for the last attempt at electoral reform, it is unlikely that any serious attempt at change will be made in the forseeable future. But our current electoral system definitely discourages voter turnout.

It would be nice if we could change the system in some way to make a direct connection between our vote and the person who was elected – so most of us could say that we were one of the 100,000 that voted for Fred and that's why she's an MP.

The Repugnant Political Establishment

There is an old joke about just how repugnance lawyers are :-

A grade school teacher was asking students what their parents did for a living. Timmy stood up and said, "My mom is a doctor!" Sarah stood up and said, "My father is a professor!" Little Johnny stood up and said, "My dad is a piano player in a whorehouse!"

The teacher couldn't believe what she's had just heard, so she made a point of calling Little Johnny's father that evening to discuss the situation. Little Johnny's father explained, "Actually, I'm a law attorney, but how am I supposed to explain that to a seven year old kid!"

And this goes doubly so for politicians (many of whom are or were either solicitors or barristers). Let's be honest: The best of them slither around the place, and you need to keep a tight grip on your wallet whenever a politician is around. How many stories about corrupt politicians have we had in the last 10 years?

It seems to many of us that although the political establishment gives lip service to the will, wishes and needs of the people, it in fact serves only it's own interests and those of it's specially favoured friends (who always seem to be rich and get richer). Whether or not you believe this, there is a significant proportion of the population who do believe it.

Amongst those who do believe, there are also plenty of those who believe that it is best to ignore the political establishment and try and achieve something outside it. Working outside the political establishment is a laudible aim, and something to be encouraged.

But it is not an exclusive choice – you can still work outside the political establishment, and still vote.

Cannot decide which of the rancid reptiles you like best? Just vote for the one you dislike the least; any vote cast for any candidate that opposes UKIP is worthwhile. 

My Vote Won't Make A Difference

Statistically that is entirely correct as a single vote does not make a difference.

But collectively we do make a difference; a small difference as the political establishment has stacked the deck, but a difference none the less.