ion: There was a small discussion #elsewhere about ways to map an IPv4 address to something that is easy to remember and e.g. pass along in a phone discussion. This is what i came up with:
ion: >> [83,145,237,222].merge(256).split(2048).map {|i| RFC2289::WORDS[i] }.join(' ')
ion: => "MOW ABET MIND"
ion: >> %w{MOW ABET MIND}.map {|w| RFC2289::INDEX[w] }.merge(2048).split(256)
ion: => [83, 145, 237, 222]
ion: ...or just use DNS. ;-)
ytti: nice
ytti: where is Array#merge defined?
ion: Hm, that would work for phone numbers as well. My Finnish phone number would be DAM HEFT TREE, and with the 358 prefix added, AX MERT DAVY DARE.
ion: I defined Array#merge and Numeric#split. I can put the code somewhere if you're curious.
ytti: nah, nevermind