Thursday, 16 August 2012

memorising morse code

As you're no doubt aware, Morse code is a series of dots and dashes for letters of the alphabet. Assuming you don't care to memorise something so difficult, and that you can write out numbers as words, and that you speak english and don't care for diacriticals, the following sequence is what you get if you turn morse code into computer binary:

tmoengakqidzwyrcuxsbjplfvh

How did I work this out? Well, let's start with dashes are zeroes and dots are ones.

morse as binary: dot = 1, dash = 0

8421
----
a 10 = 2
b 0111 = 07
c 0101 = 05
d 011 = 03
e 1  = 1
f 1101 = 13
g 001 = 001
h 1111 = 15
i 11 = 3
j 1000 = 8
k 010 = 02
l 1011 = 11
m 00 = 00
n 01 = 01
o 000 = 000
p 1001 = 9
q 0010 = 002
r 101 = 5
s 111 = 7
t 0 = 0
u 110 = 6
v 1110 = 14
w 100 = 4
x 0110 = 06
y 0100 = 04
z 0011 = 003

t, m, o = 0, 00, 000 = - -- ---
e, n, g = 1, 01, 001 = . -. --.
a, k, q = 2, 02, 002 = .- -.- --.-
i, d, z = 3, 03, 003 = .. -.. --..
w, y = 4, 04 = .-- -.--
r, c = 5, 05 = .-. -.-.
u, x = 6, 06 = ..- -..-
s, b = 7, 07 = ... -...
j = 8 = .---
p = 9 = .--.
L = 11 = .-..
f = 13 = ..-.
v = 14 = ...-
h = 15 = ....

starting at zeroes:
tmo (0), eng (1), akq (2), idz (3), wy (4), rc (5), ux (6), sb (7), jplfvh (8,9,11,13,14,15)
10 and 12 in binary are missing.

so, if you remember to exclude binary for 10 and 12, morse code is:
tmo eng akq idz, wy rc ux sb, jplfvh (0,1,2,3,4,5,6,7,8-15)

and if you remember four batches of three, then four batches of two, then the rest as jplfvh:
tmoengakqidzwyrcuxsbjplfvh

gives you the alphabetic order of morse code rendered as computer binary. So you just have to remember a different alphabetic order, and how it unpack it. 

 


alternatively, arrange the alphabet into order of binary values:

t 0 0
m 00 00
o 000 000

e 1 1
n 01 01
g 001 001

a 10 2
k 010 02
q 0010 002

i 11 3
d 011 03
z 0011 003

w 100 4
y 0100 04

r 101 5
c 0101 05

u 110 6
x 0110 06

s 111 7
b 0111 07

j 1000 8
p 1001 9
l 1011 11
f 1101 13
v 1110 14
h 1111 15

OR

 

Or sort into frequency of letters:

 

e .
t -
a .-
o ---
i ..
n -.
s ...
h ....
r .-.
d -..
l .-..
c .-.
u ..-
m --
w .--
f ..-.
g --.
y -.--
p .--.
b -...
v ...-
k -.-
j .--
x -..-
q --.-
z --..

 

Or sort into sequence of dots/dashes with dashes (zeroes) coming first:

 

one bit letters:
t -
e .

 

two-bit letters:
m --
n -.
a .-
i ..

 

three-bit letters:
o ---
g --.
k -.-
d -..
w .--
r .-.
u ..-
s ...

 

four-bit letters:
j .---
h ....
c .-.-
l .-..
f ..-.
y -.--
p .--.
b -...
v ...-
x -..-
q --.-
z --..

php 7 nightmare

OK so Centos 6 insists on installing php 5.3 and even if you download other RPMs and install them, they do not replace the existing 5.3 whic...