Tuesday, 5 April 2016

Babies first words

/*
I was pleasantly surprised to be asked by a friends child, "which language should I learn?" From the context it was clear that they meant computer language. I regularly write in five, (though which five changes with time context and application, and that's not including things like CSS,) so my first reaction was to resist recommending the language de jour, (either mine, which happens to be C++, or the a-la-mode python.)
  I asked what operating system they had regular access to and found out that they had windows. One of the most under rated, and most abused languages is ECMAscript. I remember, (I'm that old) waaay back when Microsoft created the only tolerable operating system, XP I had to create some scripts to automate a project for a client and I ended up using JScript.

So I installed notepad++ and naturally wrote:

wscript.echo("Hello World");

Saved it as hw.js and told them to double click it.... (My kingdom for a horseshoe nail.)  My "cool" melted away with a jarring "gank" alert noise. I then took far too long to remember/realise why.

Some part of my brain had automatically discarded the solution because, "everyone knows that windows is case insensitive."

*/
WScript.echo("Windows JScript IS case sensitive: wscript.echo\n Error: 'wscript' is undefined\n Code: 800A1391\n Source: Microsoft JScript runtime error\n I feel like my whole life is a lie; unix = case-sensitive (it cares), microsoft = (case) insensitive. Jay script? more like BS cript.");

// JScript is NOT windows filesystem.

Sunday, 31 January 2016

[windows] NAS re-connect fail

TL;DR: Control Panel > Credential Manager
On the right hand side "Add a Windows Credential".

I've just been repairing someone's dual-boot Debian/Windows 8 laptop, (obviously it was the Windows that had the problem.) When I boot the, (frankly cheap, but brand new) laptop into Linux everything that I request seems to happen instantly, or much faster than Windows. [0] They have a NAS and each time they reboot into Window they had to re-enter their username and password. (The NAS partitions mount automatically under Linux. ) So I checked that the NAS supported SAMBA, (it does) and did some other tests. I created a test user on the NAS and that worked, (would reconnect by itself after reboot.) Eventually I realised the problem, (I had to get into the cult mindset of Microsoft.)

The user had the same username to log into windows as they do for the NAS, so the Windows operating system defaults to the local details. This is despite the re-connect challenge window having a "Remember these details" box - which Windows arogantly and presumptuously ignores, and uses the local system details... which fail because the user is well trained enough to not use the same passphrase for everything.

The details that most helped me crack this problem was actually on a microsoft site. My thanks to maximus006dflw:

https://answers.microsoft.com/en-us/windows/forum/windows_7-networking/attached-network-drive-does-not-remember/2d87c52e-fd24-4984-b824-2e3828980cba?auth=1

MA maximus006dflw replied on
Use credential manager in Windows 7 to remember the username and password for your NAS Drive if it doesnt remember it automatically.
Go to Start / Control Panel / User Accounts and Family Safety / Credential Manager
On the right hand side, right below where it says "Windows Credentials" Select "Add a Windows Credential".
Enter your NAS' Server name in the first box.
User Name in the second box and your password for the server in the third box.
 

[0] For example, opening a new folder on Windows takes 1 to 10 seconds, depending on how its feeling. On Linux it seems to happen before I've finished pressing the W+f chord.

Thursday, 28 January 2016

Things to do with your hands

The first type of shorthand that I tried to learn was one of the Pitman. Since then I've found that I prefer the Gregg/Thomas/Boyd/Gabelsberger/Groote flowing types.

If you are interested in such a thing then I would suggest learning Hangul and then looking at Arabic script before creating your own system.  (Note Devanagari digits!)

SI units and scientific notation help to keep numbers short.

If you want to lengthen a vowel from win to wine then just add an ee. [wat?]

The problem is that stenography has been shown to be much faster than any popular keyboard, (such as Qwerty). The advantage of, (light line) shorthand is that a any writing surface that has a flowing system of writing, (pencil on paper, chalk on slate, finger in the sand) are all possible without specialised equipment.

That is where Plover is so interesting.

oh and Learn Cued Speech. It makes you a superhero.

Tuesday, 5 January 2016

Shuttering out the truth

France is (almost) [0]  a wonderful experiment. It is almost exactly like England, but Beta, (a test platform if you will.)

The two observations that I would like to suggest are more than correlated are: window shutters and hypochondria.

Even before Seasonal Affective Disorder became effective, it was known that humans have an intimate relationship with light that, (as it happens goes back to the first simple multi-cellular ancestors), can clearly affect both physical and mental health.

The English mostly use curtains, (drapes) to cover their windows. The French mostly use shutters.

In this era of energy consciousness the French can clearly feel smug as shutters will, (usually) provide far better insulation that curtains. And killing of the humans more quickly might be the best thing for the climate, (another win for France!)

So why, where there is a convenient corner-shop, (open WHEN YOU NEED IT) in England, is the equivalent location in France is occupied by a pharmacy? (Not open late, or at lunch time. Where "lunch time" is 12h00 to 14h30 - a pharmacist has a "right" to eat you know.)

Is the national health system in France such a "racquet" [1] that it can support so many pharmacies? Did the 1789 revolution throw the genetic strength out with the reform bath-water? (If so, so much for short-sighted logic.)

These are other conclusions that you may argue for, but I think that the gene pool is probably more elastic than that and it is simply the reduction in natural light that is causing so many French people [2] to be such hypochondriacs [3].

You don't get a national health system that is the envy of most developed nations, (and all other nations) without having plenty of sick people to work play with, I mean cure. [4]

Research filtered through pop-journalism offers support for the necessity of sunlight for healthy eye development, (meaning that especially children should not live in shuttered rooms - though if their energy levels didn't give you a clue that they should be outside running about, then maybe you need to work on your powers of observation or conclusions.)

Conclusion: Everyone should have shutters to insulate their windows, but they should open and shut automatically with the rising and setting of the sun, which would probably consume as much energy as they conserve so just use curtains that can keep in the heat while letting in the light. This Englishman thanks you.


[0] When we look at Jean-Paul Sartre's attempts to destroy the bourgeois influences that were, as he saw it, impinging upon the Liberty of the French, (while he had the freedom to postulate such guff) it has a charming naïveté, as if he had already forgotten each of the previous revolutions of his nation. Each one trying to crush a little more freedom from the bodied of those that are perceived to have more Liberty than the majority of the nation. The problem is that it is as sure as entropy that you always reduce the general liberty when you try to drink it from the blood of your fellow humans.

[1] actually racket is one of the few places where the French have the sense to use the same word as in English. ;-)
[2] Feel free to collect your own data, but I'm convinced.
[3] oh yes you are you frenchies. oh and stop smoking - you selfish stinkie person.
[4] Yeah, I know its flawed logic - that paragraph is meant to inject levity before the conclusion.

Tuesday, 15 December 2015

Poppins Shield

As someone once said, "A spoon full of sugar, helps the medicine go down." With that in mind I want to explore, (and collect)  the types of ideas that help you lie to yourself, or at least protect yourself from your own brain and others.

The first example is putting your watch forward by a few minutes if you are always late.

The second is using a smaller plate if you habitually server yourself too much, (if your eyes are bigger than your stomach, or if you would like your stomach to be a little smaller.)

If you are a Freudian then I'm looking for Id management, without the repression, regression, rationalisation, displacement, denial or projection that only have positive results with no negative reactions. Effortless self-working magic tricks for the Egos tool kit.

One of the extreme poppins shields is to put a padlock on the refrigerator, (lock the fridge, not just using the flat surface at the top to store locks!) A watered down version is putting the cookie-jar on the top shelf, (or on the fridge, with your locks, or in a cupboard.)

Monday, 14 December 2015

Hornet Frontiee Defence

Since the Vespa velutina, (Asian Hornet) arrived in Bordeaux in 2004 it has managed to conquer most of France in ten years. As someone that grew up in England this makes me think of world-war two. We have a malevolent invasion force in France that is threatening to cross the channel.

So how would I protect England, and then push back? I'd design an autonomous lighter-than-air drone, (fight fire-with-fire). (Obviously I've already designed it.) It would be a small blimp that could collect rain-water and sunlight. The sunlight would be converted into electricity and used to create hydrolysis, (when needed) to collect the hydrogen from the water and use that for lift. The craft would have to be able to maneuver so it will require one Coanda fan on each side, (no exposed blades to get caught up in trees). As the craft may spend long periods in a static location it should be able to moor itself with a fixed hook. That just leaves the payload.

A device that can locate and match the target, (the black-hornets) and a weapon. I thought long and hard about this part. A water/sand jet that could knock their wings off, (water is probably far too heavy, but could be extracted from the hydrolysis chamber.) A small laser could perform the same job and use the energy in the solar-batteries.

The real advantage comes when electronic hobbyists create many of these and they are able to share information. Even if a single craft was unable to follow a hornet back to its nest, the speed could indicate a bee-line to or from the nest and the direction would draw a line that would point to (or from) the nest. Then any other drone that passes within the 802.11 range could be informed of a sighting, (//UTC/GPS/direction/velocity) and with enough drones the south coast could become an impenetrable mesh.

One of the problems of this invading species is that they are elusive; locating their nests can be quite the challenge. I suspect that many generations of humans have hunted this insect for its lava, (a rich source of protein - yes really) and that Darwinian pressure has meant that the ones that tend to hide their nests in the tops of trees, (and other concealed locations) are the ones that we are left with.

A single drone could hover outside of a nest and zap each drone and eventually the queen, but it might be better to design a Mylar/nylon bag that could be drawn up over the nest at night to seal and contain the whole lot. (Research into something as light as a nylon stocking and still resistant to the formidable mandibles of this aggressive species would have to locate the best material. I envisaged a device that could be attached to a drone that had two arms that could spread the opening of the bag and draw it up over the nest. Then tie it off at the top and cut the nest free from its anchor.
 The crafts mooring anchor could be used to attach itself to the nest before cutting the nests anchor so that its decent would be more gentle (and could be guided through the branches into some sort of oil-drum receptacle, (which could be closed and ignited so that it becomes a safe incinerator.  As some nests will be in forest locations, we have to ensure that we have no chance of starting a forest fire.

The ground based equipment could be an auxiliary ground support based craft, (something low and flat with caterpillar-track propulsion.) The drone could summon HFD-GS1 to assist with disposal.
 The heart of this technology is the ability for computer vision to locate a hornet and track it. (That shouldn't be hard,) and an autonomous craft that could use solar-powered-hydrolysis-of-rain as its lift.

Once England is safe we could crate a Normandy invasion force to Defend our neighbor and sweep the problem from Europe. There is a bit of a clock on this, as the invader is spreading in all directions and will soon occupy an area that will be too large to patrol.

This species is terrible for bees, but anecdotally they might also be impacting the mosquito population of France at the same time. This could protect against he spread of malaria (though it seems we have a new wonder drug on that front... for now). This could disrupt the bird-life of Europe, though I have no idea how that would impact anyone other than twichers.


Friday, 25 September 2015

The web of the ages of life


I remember the time that I was told that there are just [insert random number between 1 and 30] types of story. This was interesting to me as I planned to become a writer, (once I had something worth writing about.) After a little more research I realised two things, that are relevant to that:
  1. We all pigeonhole things to understand them through generalised groupings
  2. You can cut a cake up into as many sized slices as you want
That said, I think that it could be beneficial to discussions about the stages in life to have names for the emotional periods in ones life, (and that of others.)

"He is going through a pre-rebound funk" to describe the time between being dumped and no longer wanting to see the other person, seems a little heavy.

What and That and When have four letters. Who, Yes, How have three and No and It have just two. These are important words and I feel that the fewer the letter the more important the word is, (the to an it is how.)


If we look at human life, the first division that I met was 3: The riddle of the sphinx.

"What walks on four legs in the morning,
two in the afternoon,
and three in the evening?"

The three ages of man is a nice riddle, but not very helpful for my purposes. So maybe a need a larger number: How about 7?

Seven turns up a lot from the middle ages right up until the end of the Renaissance. We had seven celestial bodies, (Sun, Moon, Venus, Mars, Mercury, Jupiter, Saturn); Seven days of the week.

Shakespeare divided life into:
  1.    Infancy
  2.    Childhood
  3.    The lover
  4.    The soldier
  5.    The justice
  6.    Old age
  7.    Mental dementia and death
Which is interesting as a start. In English we now have the term teenagers, (which is surprisingly new.) Now I want to add "the 27 club". Then when I look at  Stephen Fry and Hugh Laurie I notice that as well as being horrendously, humongously talented they both went through a period of depression. This seems to be linked with a period when the nihilistic realisation strikes and gains a more dominant position; The individual fails to keep their balanced perspective of  the positive aspects of life.
This could be seen as a huge disrespect for the amazing chance that we each have, to be living, but at the time Churchill's black dog bites and the fantasy of death seems preferable.

There is that half-done moment, when you realise that you have, (statistically) used up half of your time on earth. (I haven't got to the, "Almost" stage where you start to report that you are, "almost 90" that seems to happen to people when they feel old, (or are under ten, "I'm five and a half."

"I hit the bottom when I reached the top." This may be a cliché but is quite understandable. You have a goal, you focus on that goal and during the journey to the top you are working so hard that you don't have time to moap... but once you get there you have time to look about and think. Thinking: Bad!

Though I have often, (far too often) met individuals that I felt should resign from life I would have to agree with Dylan Thomas, "Do not go gentle into that good night", or as I put it, "do not go quietly into that dark night." I don't want to stigmatise suicide or euthanasia any more than I would want to glorify them. I feel that we each own our lives and if we want to end them we should be able to. This does not take into account the debt that we own to humanity, (here I'm using humanity to generalise our respective societies into a whole - but obviously we act locally.)

Individual development is not linear, it is a web. We each learn the same lessons, but it could be in any order. There are some things that seem to depend upon others, (writing demands language).

If I listen to Eddie Izzard about his own personal development, (and it should be noted that we listen to him because he is talented and has worked very hard in one aspect of his life, namely the professional part - but usually I feel that that gives an individual no access to talk on other topics, except in his case that is patently not true. I may not fully agree with his politics, but I would be offended if you did not listen to him.) "Where was I?"
He highlights that we must learn to be strong to achieve positively in life. This will enable us to be honest with others about ourselves; Which will, in turn help us become more fulfilled individuals and give more back to society. That is why it is in the interest of us all to accept each other for who we are, and more importantly accept ourselves.

I would campaign to alter society to encourage everyone to do exactly what they want, as long as it does not negatively impact others, (but for that to happen we would need language and words to inform others that their behaviour is undesirable in a way that would not be responded to. It is no good if the meekest observant person can not highlight opportunities for improvement.) Additionally, it is becoming more and more clear that our subjective lives are best judged by others and the worst judge is ourselves. That said there are somethings that I would want implemented: No shouting in public places, no littering, (but absolutes are hard to implement and are sometimes more destructive.) These are the things that matter to me, NOT which religion you are part of.

About this blog

Sort of a test blog... until it isn't