Archive for the ‘Uncategorized’ Category

Coronavirus Safety for Children

2020-01-28

Illustrated book and Video

My daughter Emily has created a children’s Book and Video for the young children of China, and around the world.  Emily is a Teacher and Writer in Shenzhen, Guangdong, China. After reading the safety advice she wanted to create something that was not as frightening for the young children of her class that are on their China New Year Break.

Press on image below to be taken to Emily’s site.

Coronavirus for Children (translated)

 

Hope you enjoy the Book and Video.

 

Emacs Tramp failing to load files from Solaris

2019-05-25


While using Emacs (Emacs-app from MacPorts) on macOS to edit files on Solaris system via Tramp I’ve been finding it was unable to edit from some hosts. To open a file using tramp the filename is entered as /protocol:[user@]hostname[#port]:pathname. For example, /scp:solaris:.profile. Tramp does not simply scp the file over. It connects to the remote system using ssh and carries out a number of tests. Emacs hung at this point when access Solaris 11.4 hosts, interuptable with Control-G. This was from MacOS version 10.13/10.14.

Setting Tramp verbosity to 10 (setq tramp-verbose 10) it appeared that Tramp was waiting for output from the remote host.

On the Solaris host I was using truss to watch the exec calls made by the bash shell that was started by tramp. The output of which suggested it had not received the command sent by tramp.

Aware that Solaris 11.4 uses OpenSSH rather than SunSSH I wondered if it was perhaps related to that. I spoke to my colleague Darren Moffat, who reminded me that OpenSSH has multiplexing; which Tramp can use. A quick test to 11.3sru35 with ssh still set to the default SunSSH version, showed the fault still occurred. By process of elimination I found the fault came about in Solaris 11.3sru17, where bash was updated from 4.1.17 to 4.4.11…

I tried switching shells:

(add-to-list 'tramp-connection-properties
             (list ".*" "remote-shell" "/usr/bin/ksh"))

but that I had no effect, it still hung.

Edit: 2020-04-23 Today I found that I do need to specify use of ksh as /bin/sh would exit following SIGSEGV while sending shell function tramp_perl_file_attributes().  Subject for another post.

Darren did suggest trussing the sshd process rather than the shell, with privileges elevated truss of the sshd process showed the tramp command had been received and sent to the shell process….

At this point I was about to expand the truss to show more information other that read,write and exec calls, when I noticed the locale. On the Mac LANG and LC_CTYPE is set to en_GB.UTF-8. Tramp was setting LC_CTYPE on the remote host too, not via ssh – it actually set it as part of the initialization. As I had noticed issues while ssh’ed in, I set the locale:

(add-to-list 'tramp-connection-properties
             (list ".*" "locale" "LC_ALL=C"))

Cleaned up all open connections (tramp-cleanup-all-connections) and hey-presto I’m back in operation.

Somewhat annoyingly this is mentioned on Emacs Wiki, I shall go and add my workaround.

Now obviously it shouldn’t matter what the locale is, it should have worked, but that is for another day.

Emacs 26.2 Tramp 2.3.5.26.2 Solaris 11.3sru17

Best Birthday Ever.

2010-06-29

Kirsty has booked me a surprise weekend in Rome. I can’t wait to go now, its so romantic. I’m so excited.

I also got a Multi-surface Tennis game, a hand made picture frame and a set of “Dad” Music CDs.

Mazda 6 saga continues – Enterprise fail to call.

2010-06-26

On Friday, Hugh’s Mazda get back to me just before five pm to briefly say that Enterprise will be calling me to arrange a different car. I’m too exasperated to say much in gratitude. Alas they don’t call. Saturday morning I was out on my bike while the rest of the family were either running, dancing or working. When we get back at lunch no message has been left on the answer phone. Getting the paper work from the glove box of the Corsa I find that Enterprise is now closed for the day. I want to right an expletive here!

Ordered Mazda 6 in our colour of choice

2010-05-04

After much ringing around I ordered the Mazda we wanted in the colour we wanted. Had to pay a little more as this dealer was not able to match the price the first dealer had. Just have to wait for delivery now.

Metalic paint at Extra Cost even in the wrong colour

2010-04-26

Agh! I’m going mad. After seven years I’ve finely decided it’s time to replace the car, a car we’ve had for ten years. I did try and replace it when it was just 3 years old but I got so frustrated I gave up!

So this time around we’ve considered Renault, Peugeot, Citroen, Ford, Vauxhall, Volvo… and finally the wife and I whittled it down to either the Skoda Octavia or a Mazda 6. We drove both on more that one occasion and finally decided on the Mazda 6 sport 2.2 Diesel and set about getting a quote.

The great thing we thought about buying new was that we could choose the options and colour. After all the manufacturer makes you pay extra for a Metallic or as in this case Mica.

How wrong we are it seems. Alan Gibson of Basingstoke are telling us that Rusty Red is what they have – and yes, they still want us to pay the extra for that colour even if its not what we wanted!

Aggh!!!