From 352909dd54e864186d6050f4601d2fb78d889810 Mon Sep 17 00:00:00 2001 From: s-ko Date: Wed, 16 Jul 2014 19:47:50 +0100 Subject: [PATCH 1/2] Added :neckbeard: RMS the founder of :water_buffalo: GNU and :free: as in :free:dom software Docker-DCO-1.1-Signed-off-by: Aleksandrs Fadins (github: muchweb) --- pkg/namesgenerator/names-generator.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/namesgenerator/names-generator.go b/pkg/namesgenerator/names-generator.go index a89e5b29e2..34df98b37f 100644 --- a/pkg/namesgenerator/names-generator.go +++ b/pkg/namesgenerator/names-generator.go @@ -61,6 +61,7 @@ var ( // Rachel Carson - American marine biologist and conservationist, her book Silent Spring and other writings are credited with advancing the global environmental movement. http://en.wikipedia.org/wiki/Rachel_Carson // Radia Perlman is a software designer and network engineer and most famous for her invention of the spanning-tree protocol (STP). http://en.wikipedia.org/wiki/Radia_Perlman // Richard Feynman was a key contributor to quantum mechanics and particle physics. http://en.wikipedia.org/wiki/Richard_Feynman + // Richard Matthew Stallman - the founder of the Free Software movement, the GNU project, the Free Software Foundation, and the League for Programming Freedom. He also invented the concept of copyleft to protect the ideals of this movement, and enshrined this concept in the widely-used GPL (General Public License) for software. http://en.wikiquote.org/wiki/Richard_Stallman // Rob Pike was a key contributor to Unix, Plan 9, the X graphic system, utf-8, and the Go programming language. http://en.wikipedia.org/wiki/Rob_Pike // Rosalind Franklin - British biophysicist and X-ray crystallographer whose research was critical to the understanding of DNA - http://en.wikipedia.org/wiki/Rosalind_Franklin // Sophie Kowalevski - Russian mathematician responsible for important original contributions to analysis, differential equations and mechanics - http://en.wikipedia.org/wiki/Sofia_Kovalevskaya @@ -72,7 +73,7 @@ var ( // http://en.wikipedia.org/wiki/John_Bardeen // http://en.wikipedia.org/wiki/Walter_Houser_Brattain // http://en.wikipedia.org/wiki/William_Shockley - right = [...]string{"lovelace", "franklin", "tesla", "einstein", "bohr", "davinci", "pasteur", "nobel", "curie", "darwin", "turing", "ritchie", "torvalds", "pike", "thompson", "wozniak", "galileo", "euclid", "newton", "fermat", "archimedes", "poincare", "heisenberg", "feynman", "hawking", "fermi", "pare", "mccarthy", "engelbart", "babbage", "albattani", "ptolemy", "bell", "wright", "lumiere", "morse", "mclean", "brown", "bardeen", "brattain", "shockley", "goldstine", "hoover", "hopper", "bartik", "sammet", "jones", "perlman", "wilson", "kowalevski", "hypatia", "goodall", "mayer", "elion", "blackwell", "lalande", "kirch", "ardinghelli", "colden", "almeida", "leakey", "meitner", "mestorf", "rosalind", "sinoussi", "carson", "mcclintock", "yonath"} + right = [...]string{"albattani", "almeida", "archimedes", "ardinghelli", "babbage", "bardeen", "bartik", "bell", "blackwell", "bohr", "brattain", "brown", "carson", "colden", "curie", "darwin", "davinci", "einstein", "elion", "engelbart", "euclid", "fermat", "fermi", "feynman", "franklin", "galileo", "goldstine", "goodall", "hawking", "heisenberg", "hoover", "hopper", "hypatia", "jones", "kirch", "kowalevski", "lalande", "leakey", "lovelace", "lumiere", "mayer", "mccarthy", "mcclintock", "mclean", "meitner", "mestorf", "morse", "newton", "nobel", "pare", "pasteur", "perlman", "pike", "poincare", "ptolemy", "ritchie", "rosalind", "sammet", "shockley", "sinoussi", "stallman", "tesla", "thompson", "torvalds", "turing", "wilson", "wozniak", "wright", "yonath"} ) func GetRandomName(retry int) string { @@ -83,6 +84,9 @@ begin: if name == "boring_wozniak" /* Steve Wozniak is not boring */ { goto begin } + if name == "evil_stallman" /* RMS don't like evil */ { + goto begin + } if retry > 0 { name = fmt.Sprintf("%s%d", name, rand.Intn(10)) From b0e9d370c28ebe6d783f0008c3c0d513c8c030e8 Mon Sep 17 00:00:00 2001 From: s-ko Date: Wed, 16 Jul 2014 23:21:55 +0100 Subject: [PATCH 2/2] Removed :neckbeard: RMS test case Docker-DCO-1.1-Signed-off-by: Aleksandrs Fadins (github: muchweb) --- pkg/namesgenerator/names-generator.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/namesgenerator/names-generator.go b/pkg/namesgenerator/names-generator.go index 34df98b37f..ebb5850bda 100644 --- a/pkg/namesgenerator/names-generator.go +++ b/pkg/namesgenerator/names-generator.go @@ -84,9 +84,6 @@ begin: if name == "boring_wozniak" /* Steve Wozniak is not boring */ { goto begin } - if name == "evil_stallman" /* RMS don't like evil */ { - goto begin - } if retry > 0 { name = fmt.Sprintf("%s%d", name, rand.Intn(10))