Showing posts with label Bach. Show all posts
Showing posts with label Bach. Show all posts

Saturday, April 25, 2015

Two Part Invention

Just bland things today, I'm afraid. My thinking processes, heightened by two days of fasting led me to two wonderful inventions I'd like to share with you.

1. The Skype Mannequin

In his celebrated novel, "The Milkman in the Night", Andrey Kurkov has a middle-class, middle-aged widow in the Ukraine embalming her deceased husband - I think 'plastification' might have been the technique - so that he would continue to keep her company and perhaps scare off the bad guys (that old silhouette at the window trick). I assumed this was a satire on the well-know garrulousness of Ukrainian menfolk.

Still, it got me thinking. Perhaps a mannequin could be made of me. Equipped with a speaker in the mouth, microphones in the ears, cams in the eyes and a decent WiFi link I believe it could give an excellent impression of me doing small-talk. A small motor for the odd arm gesture would complete the illusion. I was thinking of installing it on the couch at my mother's house for those days I don't visit in person.

Please let me know if you want to fund this. (I am also contemplating an AI control system).

2. The Lethal Net Curtain

The Executioner has long been a favourite in our house. Powered by two AA batteries, solid-state circuitry in the handle boosts the voltage to some low number of kilovolts. This is fed to a grid of cross-hatched wires in the form of a tennis bat. Zap! Watch those mozzies explode!

The Executioner

We could reverse-engineer these components and feed the volts to a net curtain, where the net was fine wire. We all like to open our bedroom windows as the summer approaches but we hate the insects. In America the houses come with insect screens but in the UK, not so much. My bug-zapping net curtain is exactly the answer we've all been looking for.

Let me know, etc.

---

Would you like to see a cute Two Part Invention? Here's J. S. Bach's Two-Part Invention Number 4 in D minor (Bass Guitar Accompaniment). Sorry about the five-second intro Ad, skip it and you get to the earnest fat guy: and he rocks!


---

The new Badger Cam was reset to stills + video and when I checked this morning, 249 Megabytes of the camera's 8 GB SD memory had been used for 8 + 8 pix/videos. The new location was the barbecue stand, overlooking the back garden. I'm now understanding better the concept of wildlife photography: you get to watch a lot of uninteresting videos.

To cut to the chase (you see what I did there?) here's the best of the crop. Our little black cat arrives from next door and finds an interloper already in our garden ...




Riveting, wasn't it? The movies were cats all the way down: as Clare observed, not wildlife at all.

Wednesday, November 19, 2014

Politicians lie in cast iron sinks

Back in 1979 I had just joined Kienzle Data Systems as a programmer, and had been bundled off to their German headquarters at Villingen in the Black Forest to learn their assembler*. Here's a picture I took.

Villingen in the winter of 1979/80

Yes, it was very cold that year. Twenty below, the kind of cold which hurts your ears and bites your nose. In the evenings I curled up in my hotel room and read Douglas Hofstadter's new Pulitzer Prize-winning book, 'Gödel, Escher, Bach', which in my circles was the publishing event of the year, the decade or maybe even the century. Here's what Amazon has to say.
'What is a self, and how can a self come out of inaminate matter?' This is the riddle that drove Hofstadter to write this extraordinary book. Linking together the music of J.S. Bach, the graphic art of Escher and the mathematical theorems of Gödel, as well as ideas drawn from logic, biology, psychology, physics and linguistics, Douglas Hofstadter illuminates one of the greatest mysteries of modern science: the nature of human thought processes.
The book is astonishingly profound and well-written - if overlong - and is on the syllabus of many university computer science courses. Strangely, what  I particularly remember relates to the title of this post.

Hofstadter is introducing us, in his gentle way, to the propositional calculus. He is going to take us all the way to Gödel's great Incompleteness Theorems but first he has to teach us about logical connectives (such as AND and OR).

In logic if we have 'Dorsai are tough' together with 'Exotics are wise', both taken to be true, then we may validly deduce: 'Dorsai are tough AND Exotics are wise'. Sounds trivial, but that's how computers work. You will observe that this is really definitional of 'and'. Hofstadter playfully introduces us to this idea by using a preposition which is not in fact a logical connective - 'in'. So, he says, we can all agree that:
'Politicians lie'
(little has changed over the years), and
'cast iron sinks'.
But would we want to conclude that:
'Politicians lie in cast iron sinks'?
Cue big smiles, but you see what he did there? Changed a verb into a noun? There's playfulness, there's trickery and there's outright cheating!

Didn't forget it though.

--

* An incredibly geeky aside. We initially thought that the Kienzle assembly language directly spoke to their CPU chip. But then we learned that the microprocessor was in fact Intel, and that the Kienzle systems guys had 'microcoded' their own assembly language via an interpreter written in Intel assembler. No doubt they had their reasons - yet another layer of indirection, how traditional - but we felt, somehow, .. emasculated!

---

Continuing on this theme, soon afterwards I was asked whether I could modify some of the systems utilities: I recall they wanted some changes in the 'disk copy' program. Utilities were, of courser, written by the German systems programmers and we had only the binary, and no documentation.

I knew the answer: write a disassembler. Given the simplicity of the Kienzle assembly language this was a relatively trivial problem. The most difficult part was just finding where the end of a program actually was, as there was no 'terminating' code. Program-end was usually indicated by a long subsequent string of binary zeroes.

So I succeeded in disassembling the German copy utility, making the required changes and then re-assembling it. The management were happy. I was so impressed with myself that I decided that every floppy disk should have a copy of my disassembler on it, for the world's convenience. I therefore added some code that checked any mounted disk for a copy of my program and, if it didn't find one, wrote my disassembler out onto the said floppy.

Yes, I had written my first virus!