admin

May 072017
 

I have been reading a book on chivalry and knights recently, and every so often wanted to shout at the historian writing it, but as he isn’t listening to me I guess I’ll just have to shout at you instead.

The main irritating claim was that the equipment of knights put entry out of the reach of ordinary ‘soldiers’. It is true that the need to provide a highly trained and specially bred horse or two, did significantly increase the cost of entry into the ranks.  But this is an overly simplistic analysis.

For a start, if we look at the fighting men of the Anglo-Saxon forces facing the Normans in 1066, many (perhaps even most) would have been equipped with just a spear and shield. But a wealthy core would have been much better equipped with costly mail armour, swords, etc. Many within this core would have quite easily afforded the additional cost of a destrier or two.

In addition, many of those ‘core’ soldiers would have been members of the royal household guards, or similar groups for other magnates. And it is likely that some or all of their equipment would have been provided by their lord. For example, look at William Marshall who whilst he was born into a privileged family certainly did not have the resources to pay for his own equipment; whilst his climb to become regent was exceptional and he was undoubtedly both exceptionally talented and exceptionally lucky, he would have almost certainly had to rely on being gifted his first destrier.

Yes this is after the Anglo-Saxon era (although right at the beginning of the chivalric era), although there is no reason to suppose that similar arrangements could not also take place in the Anglo-Saxon period. It is simply common-sense – an earl would want to impress his king with the number of followers he could provide, and a well-equipped follower is better than a poorly equipped one.

Onto chivalry itself: It’s a bit of a myth. Knights were generally expected to behave in a certain way with other knights and others of similar or higher rank, but lower ranks? The ordinary people? They were not so lucky; the standard way of making war consisted of sieges of fortified towns (resistance would usually result in extensive looting, killing, and raping of the inhabitants), open battles, and ravaging the landscape – burning crops, buildings, and generally making a nuisance – this later was intended to have an effect on the wealth of the lords of the territory, but the effect on the common people is predictable – death, rape, and impoverishment.

And impoverishment generally led to famine. As an example, during the Thirty Years War, overall 25-40% of the population of German fell victim to famine.  Whilst other wars and battles may not have caused such widespread famines, there was undoubtedly a huge death toll in payment for the entertainment of kings and knights.

And knights did not always act “knightly” towards their high-born prisoners either. Once a king (or other leader in battle) raised the dragon banner, no prisoners were taken including prisoners who would otherwise be worth a considerable amount in ransom.

So the much vaunted “chivalry” was a conditional code of honour that could be discarded according to circumstances.

On the other hand, the myth of chivalry did have some use – it fed the inclination leading to the laws of war and conventions on warfare such as the Geneva Convention(s). If anything the myth was more real than the reality of chivalry.

Dec 112015
 

There is a chemical (Diacetylsometimes found in the liquid that e-cigarettes use (or e-liquid for vaping), and there is a new “scare” about it’s presence in e-liquids. Which is hardly new news to serious vapers.

Nobody has demonstrated that diacetyl is dangerous in e-liquids.

What has been demonstrated is that diacetyl (which is very commonly used in the food industry as a flavouring) can potentially cause a condition called “popcorn lung” in people working with powdered diacetyl. It is obviously a very serious condition, but is also very rare.

Finding diacetyl in e-liquids is obviously not good, but it has been known about for at least a year and most respectable manufacturers are changing to alternative flavourings. What is not mentioned in the mainstream media is that smoking results in 10-100 times as much diacetyl being inhaled – if the potential for diacetyl in vaping is bad, then the certainty of diacetyl in smoke is worse.

Should e-liquid manufacturers stop using diacetyl? It is not certain that diacetyl in e-liquids is harmful, but it makes sense for manufacturers to remove it – which is what many of them have been doing!

Should vapers give up and risk going back to smoking? Well, no of course. Even ignoring all the other health risks associated with smoking, the risk associated with diacetyl is almost certainly far greater with smoking than with vaping.

Should vapers choose e-liquids that do not have diacetyl? That makes a great deal of sense, and there are plenty of choices out there.

To use a phrase used elsewhere: The safest way to vape is not to vape at all. But it doesn’t make sense to stop vaping if that puts you at risk of going back to smoking.

Bystanders? Worry about diesel pollution first.

And you don’t have to believe me; there are plenty of others suspicious of the new study :-

 

Dec 102015
 

damascus-unix-prompt

You have a a column of numbers that you have produced in some manner such as :-

$ awk '/clean message/ {print $(NF-1)}' mail.info.log
...
100935
12197
3606
84653
4498
99110
4762
3001
10889
12611
12249
12245
136599
49097
6668

And you want a quick and dirty way of finding the largest number. Well there is a way but it is perhaps the least efficient way to do it, and that is to sort the numbers into numerical order and use “head” to display the first one :-

$ awk '/clean message/ {print $(NF-1)}' mail.info.log | sort -rn | head -1
5476168

But frankly there must be a better method. And yes there is if you happen to be using zsh (or possibly others, but this has been tested with zsh). Simply iterate over the values assigning the current value to the “max” variable if the current variable is larger :-

$ max=0; for x in $(awk '/clean message/ {print $(NF-1)}' mail.info.log); [[ $x -gt $max ]] && max=$x; echo $max
5476168

You may be wondering why I don’t simply use the ability of awk to perform calculations. Well that is certainly possible, but I may not always be using awk to produce the numbers in the first place, and this is supposed to be a generic recipe.

Feb 272010
 

One of the great things about OpenSolaris is that the archaic packaging tools have been replaced with something that looks like it may be a little better; one of the disadvantages is that trying to install packages from something like OpenCSW is a little awkward when the first command fails.

Given that I’ve just to hunt around for the details a second time, it is worth working up the basics into something that can be added here. Firstly we need to install the commands necessary to support the old packages :-

pkg install SUNWpkgcmds
pkg install SUNWwget

Now that has been done, it should be possible to install the OpenCSW package command using pkgadd :-

pkgadd -d http://www.opencsw.org/pkg_get.pkg