Fixing software update error: NOPUBKEY 8771ADB0816950D8

Trying to do and software update on LinuxMint 11-Kaya (and the same will probably happen with Ubuntu 11.10) gives this error/warning:

“W: GPG error: http://ppa.launchpad.net natty Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 8771ADB0816950D8″

As having updates not completing correctly is unnerving, I went searching and found that is caused by the key for HandBrake video transcoder (http://handbrake.fr/) not being available. To fix this, download the key from a keyserver. I found the subkeys.pgp.net has this key.

gpg --keyserver subkeys.pgp.net --recv-keys 8771ADB0816950D8 
gpg --export --armor  8771ADB0816950D8 | sudo apt-key add -
Posted in General, Linux | Leave a comment

Factoring Humanity

I’ve just finished reading “Factoring Humanity” by Robert Sawyer. I enjoyed it. A good SciFi – to quote “A near-future philosophical SF story of first contact, quantum computing, and artificial intelligence” – i.e. lots of real science. I was following up the “Drake pictogram” when I found this:

Posted in Books & Movies, General | Leave a comment

MMANA and offcentre/offset antenna feedpoints – an easy way

One way of having off-centre fed antennas is to use 3 wires, e.g. 10m, 0.1m, 20m and feed the antenna at the centre of the very short segment, but there is an easier way that uses just a single wire.

You can specify the number of segments and the specify the feedpoint as a number, rather the just ‘w1b’, ‘w1c’ or ‘w1e’ (where b/c/e are beginning, centre or end).

It’s easiest to explaining using an example of a wire with a small number of segments:

#e.g. a 6m wire long, 1m up, 0.8mm radius, 4 segments

w1: 0,-3,1,    0,3, 1,   0.8,   4
feedpoint (sources/Pulse) = w1b2

A wire above with 4 segments has 5 nodes (possible feedpoints). They’re numbered from ‘-1′ to ‘n-1′ where ‘n’ is the number of segments.
e.g.
w1b-1   # beginning – the first coordinate (-1 really does work)
w1b0    # (that’s b zero), 25%
w1b1     # the centre
w1b2    # 75%
w1b3    # far end

Therefore if the number after the “b” is called the “feedpointNo”, we can get two useful equations:

fraction-along-wire = (feedpointNo+1)/no-of-segments

OR

feedPointNo = (fraction-along-wire * no-of-segments) – 1

A wire with 100 segments should be precise enough for most uses and is easy to work with.
If want to feed it 20% of the way along:

feedPointNo = (0.20 * 100) – 1      # as 20% is 0.20

so w1b19  is the feedpoint.

I found the reference to digits after the wire/pulse in the documentation somewhere. The above writeup sounds like I had it all clear in my mind, but your question prompted me to go and play with MMANA and define a wire with 4 segments and play to sort out the details. Apparently the number of segments must be even, you can have 4 or 6 segments, but not 5.

IMPORTANT: make sure that the feedpoint number is between -1 and n-2

  • if it’s n-1, the START button doesn’t seem to do anything, but there’s no warning
  • if it’s the same as the number of segments (or greater) the feedpoint vanishes, but the “Start” button does give an error message.

Do try the example above with 4 segments. As there are so few it’s very clear in the geometry view where the feedpoint is.

Giovanni – ZL2GX

Posted in Electronics, General, Ham Radio | Leave a comment

RDiff-Backup

finding progress – use “lsof | grep rdiff-backup”

The lsof command lists open files …

Converting an existing directory to an rdiff-backup directory

This seems to work happily as long as the “–force” option is used

rdiff-backup --force --print-statistics  srcDir  existingCopyOfsrcDir

and simply creates the metadata as long as the file details are identical This means that their timestamps must match, not just their contents.

I was puzzled about this as I initially used “cp -R dir /tmp/dir” and it insisted on copying over the contents again, whereas using “rsync -av dir /tmp/dir” followed by the rdiff-backup only created the metadata. Naturally meld (a file/director content comparator) didn’t show any differences (it ignores timestamps). There was only the additional “rdiff-backup-data” directory, but puzzlingly even if it was deleted rdiff-backup seemed to know not to copy the files again. It finally clicked that the timestamps might be the cause.

What made me persist was the page that indicated this should work on backupcentral.com.

Posted in General | Leave a comment

Emacs IDO mode – a brilliant video

I’ve just been watching a tutorial video on the importance of uniform commands – ones you can use anywhere – centred around Emacs.

This is worth checking out http://www.vimeo.com/1013263

Interestingly enough (and it’s emphasised in the video), this sort of uniformity makes for great gains in productivity.

Posted in General | Leave a comment

An Inside Job. [Weekly Head Voices #33]

The interesting post below about scientific visualisation, music and the spread of ideas, and included this video with some really nice visualisations:

Darkstar: Gold from Evan Boehm on Vimeo.

The complete article is at
An Inside Job. [Weekly Head Voices #33].

Posted in General | Leave a comment

How to know/find out/see my ssh host key

Finding the host key fingerprint is useful for sorting out the SSH message about the host fingerprint message not matching the stored values and warning about man-in-the-middle attacks.

Here’s how to find the fingerprint from the public keys:

ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub
ssh-keygen -l -f /etc/ssh/ssh_host_key.pub

via How to know/find out/see my ssh host key.

Posted in Linux | Leave a comment

How to know/find out/see my ssh host key

How to know/find out/see my ssh host key.

This is useful when sorting out the SSH warning about a host-key being different from the stored value and warning about man-in-the-middle attacks.

To get the fingerprint from the public key, use one of:

ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub
ssh-keygen -l -f /etc/ssh/ssh_host_key.pub
Posted in General, Linux | Leave a comment

Emacs – IDEverything

A very nice quick pass through the use of Emacs for a Closure developer, showing how project management, debugging, email and Git version control can all be handled seemlessly.

I was actually looking for info on Pymacs (the Python add-on for Emacs) and found this instead. Well worth watching. Now where does one get Magit :-)

For more on Orgmode see http://www.orgmode.org, or if you like videos, see Carsten Dominik’s presentation at Google

via Emacs – IDEverything on Vimeo.

Posted in Software Development | Leave a comment

No Title

Starting files directly from the command line in Ubuntu

e.g. PDFs, HTML …

Add this:

# Open files and folders directly from the command line
# e.g. gnome-open README.PDF
# which with this alias becomes: g README.PDF
# This also works with folders
# e.g.  g .      will open the current folder

alias g='gnome-open'

either directly to the end of ~/.bashrc or preferably, create a new file called .bash_aliases and put it in there.

Thanks to http://embraceubuntu.com/2006/12/16/gnome-open-open-anything-from-the-command-line/

Posted in Linux | Leave a comment