From 97a175e56d15ad90801647fb8501b9ab84ed6087 Mon Sep 17 00:00:00 2001 From: Tim Bird Date: Fri, 24 Sep 2021 16:08:23 -0600 Subject: [PATCH] Add trivia and rps files for ELC 2021 --- rgdata/rps.py | 76 ++--- rgdata/trivia.py | 752 ++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 756 insertions(+), 72 deletions(-) diff --git a/rgdata/rps.py b/rgdata/rps.py index 55a17df..54c05e3 100755 --- a/rgdata/rps.py +++ b/rgdata/rps.py @@ -3,53 +3,53 @@ # this file represents the "host throw" for each numbered round rps_data = { - 1: "rock", + 1: "scissors", 2: "rock", - 3: "scissors", - 4: "paper", - 5: "scissors", - 6: "rock", - 7: "scissors", - 8: "paper", - 9: "paper", - 10: "scissors", - 11: "rock", - 12: "paper", + 3: "paper", + 4: "rock", + 5: "rock", + 6: "paper", + 7: "paper", + 8: "scissors", + 9: "rock", + 10: "paper", + 11: "scissors", + 12: "scissors", 13: "paper", - 14: "rock", - 15: "scissors", - 16: "scissors", + 14: "scissors", + 15: "rock", + 16: "paper", 17: "scissors", 18: "rock", - 19: "scissors", - 20: "paper", + 19: "rock", + 20: "rock", 21: "rock", 22: "paper", 23: "scissors", 24: "rock", - 25: "scissors", - 26: "rock", - 27: "rock", - 28: "paper", - 29: "paper", - 30: "rock", - 31: "paper", - 32: "paper", - 33: "scissors", - 34: "rock", - 35: "rock", - 36: "scissors", - 37: "rock", + 25: "paper", + 26: "paper", + 27: "scissors", + 28: "scissors", + 29: "scissors", + 30: "scissors", + 31: "scissors", + 32: "rock", + 33: "paper", + 34: "scissors", + 35: "scissors", + 36: "paper", + 37: "scissors", 38: "rock", - 39: "paper", - 40: "rock", + 39: "rock", + 40: "scissors", 41: "rock", - 42: "paper", - 43: "paper", + 42: "scissors", + 43: "rock", 44: "paper", - 45: "paper", - 46: "scissors", - 47: "rock", - 48: "scissors", - 49: "scissors", + 45: "rock", + 46: "paper", + 47: "scissors", + 48: "paper", + 49: "paper", } diff --git a/rgdata/trivia.py b/rgdata/trivia.py index fba67fa..73affb4 100644 --- a/rgdata/trivia.py +++ b/rgdata/trivia.py @@ -10,45 +10,729 @@ # the question text and answer text may include format # strings to reference images, like so: %(image_url)s +# +# any bare percents need to be escaped '%' -> '%%' +# +# single quotes are escaped. This is not needed inside """ blocks +# by python, but vim doesn't handle it and if not escaped it messes +# up vim's syntax highlighting. +# +# tdata = { 1: [ """ - What company launched the rocket shown here? -

- + [Warmup question] The currently released version of Linux is:? +
+ """, - "SpaceX", - "Blue Origin", - "", - "green", - """ - There's a logo on the side of the rocket. - """ - ], + +"v5.15-rc5", +"v5.14.7", +"", +"red", +""" + +

+Release candidates aren\'t "released" kernels. It says right in +their name that they are 'candidates', not actual releases yet. +Besides - the current rc kernel is 5.15-rc3, not 5.15-rc5. +""", +], + 2: [ - """ - What is the the airspeed velocity of an unladen swallow? - """, - "26 mph", - "I don't know that!", - "", - "red|green", - """ - Either answer is OK. - """ - ], +""" +A group of academic security researchers got in trouble this past year for: +

+ +""", +"Submitting patches with intentional security bugs to the Linux kernel", +"Publicly announcing kernel security flaws, without first notifying kernel developers", +"", +"green", +""" +Researchers from the University of Minnesota submitted some patches +that contained known flaws to a few mailing lists. Their stated intention +was not to introduce bugs, but rather to test kernel security review practices. +However, this caused great consternation. All previous patches from +U of MN were reviewed, and the researchers apologized. +

+Source: +

+""", +], + 3: [ - """ - What is the name of the organization that Linus Torvalds works for? - """, - "The Linus Foundation", - "Linaro", - "something else", - "both", - """ - Linus is employed by the Linux Foundation
- Not the Linus Foundation! - """ - ], +""" +How many Embedded Linux Conferences have there been? +""", + +"16", +"30", +"", +"red", +""" +

+There have been 30, counting Embedded Linux Conference Europe +(and not counting the CELF Worldwide Technical Conference in 2005) + +Source: +

+""", +], + +4: [ +""" +How old was Linus Torvalds when he made the first announcement of Linux? +""", +"21 years old", +"24 years old", +"", +"green", +""" + +Linus was 21 yeasr old, and a student at the University of Helsinki, in Finland, +when he announced Linux (in 1991). +

+Sources: +

+""", +], + +5: [ +""" + +How many times has Linux landed on Mars? +""", +"once", +"14 times", +"more than 14 times", +"both", +""" +There were the following: + +

+Sources: +

+""", +], + +6: [ +""" +Who wrote which "War of the Worlds"? + + +""", +"Edgar Rice Burroughs", +"Jules Verne", +"H.G. Wells", +"both", +""" + +

+Source: +

+

+Note: One of the rare science fiction books for which copyright has expired! + +""", +], + +7: [ +""" +Which of the following companies was victorious in an important lawsuit about +copyright of APIS, that was resolved this year by the US Supreme Court? +""", +"Oracle", +"Google", +"", +"red", +""" +The court ruled that Google's use of the JAVA API constituted "fair use" +under copyright law. +

+Source: +

+""", + +], + +8: [ +""" +How many instances of Linux are there now in outer space? +""", +"less than 100", +"more than 100", +"", +"red", +""" + +There are actually about 106,000 instance of Linux in outer space - most +of them in the 1607 working Starlink satellites. Each Starlink satellite uses +66 instances of Linux. +

+Source: +

+ +""", +], + +9: [ +""" +Speaking of space... The Space Needle is: +""", +"the name of a hypothetical space elevator (project) proposed by NASA", +"an observation tower in Seattle, Washington", +"both", +"red", +""" + +NASA has studied space elevators, but has no project named "Space Needle". +The most serious study of space elevators appears to +have been the NIAC (NASA Institute for Advanced Concepts) +Phase 2 report from 2003. In that report, +the space elevators were called ... "space elevators". +

+Source: +

+ +""", +], + +10: [ +""" +How old is the Space Needle? +""", +"less than 50 years old", +"more than 50 years old", +"", +"red", +""" +It was originally built in April, 1962 the 1962 world's fair in Seattle, +making it currently 59 years old. I visited it when I was 10 years old, +in the early 70s. + +When it was built, it was the tallest structure in the US west of the +Mississippi river. + +

+ +

+Source: +

+

+ +""", +], + +11: [ +""" +Scientist recently demonstrate two ways to create truly random numbers +extremely quickly using a laser. Which solution produced data more quickly: +""", +"a laser reflecting with itself in an special micro-cavity", +"a laser interacting with the quantum vacuum state", +"", +"green", +""" +Both of these were demonstrated this year. The laser reflecting in a +micro-cavity produced random numbers at a rate of 250 terabytes per second. +The 'quantum vacuum' solution was susceptible to external noise, which could +de-randomize the output, that had to be removed in post-processing. +It "only" produced about 19 gigabits of random data per second. +

+ + +

+ +Sources: +

+

+That's more random data than you can shake a stick at. +""", +], + +12: [ +""" +PREEMPT_RT has finally been fully merged into the mainstream Linux kernel! +""", +"True", +"False", +"", +"red", +""" +Significant parts of the PREEMPT_RT patch were merged in the 5.14 and 5.15 +kernels, but there are still some parts remaining: 175 patches, affecting +215 files, 1350+ 2650- lines. A few items, including some things +related to cpu_chill() and NOHZ remain. + +Sources: +

+ +

+Note: While researching this, I found articles announcing +that PREEMPT_RT was close to being fully mainlined in + 2015, 2017 2019, 2020, and 2021. +""", +], + +13: [ +""" +printk() has been changed in the 5.15 Linux kernel with the ability to: +""", +"automatically translate messages into other languages besides English", +"get a list of all printk message strings included in the kernel", +"", +"red", +""" +The feature, called 'printk indexing' allows checking that kernel +messages that are detected by diagnostics tools are still present, +despite kernel code changes. + +

+Source: +

+""", +], + +14: [ +""" +The 5.15 kernel now uses the -Werror flag by default. +The intended effect is that: + +""", +"any compiler warning is converted into an error that will halt the build", +"certain errors (specified in a special variable) can now be ignored as warnings", +"", +"green", +""" +As one comentator put it: +

+"YAY! One fewer way for stars to align wrong and maintainers to screw up." +

+Source: +

+ +

+I warned you this would happen! +

+ +""", +], + +15: [ +""" +How many private, all non-professional missions to outer space have there +been, ever? +""", +"one", +"two", +"three", +"red", +""" + +They are the Inspiration4 mission and the Blue Origin sub-orbital flight. +The Inspiration 4 mission (launched by Spacex) is the only orbital one +

+ + + + + + + +yesyesyessome, partially + +yesno*yesno + +yesnonomany + +nononomost + +nononomost +
mission: ->spaceX (Inspiration 4)Virign GalacticBlue Originalother missions
privately funded + + + +
all non-professionals + + + +
orbital + + + +
to ISS + + + +
to ISS + + + +
+

+* The Virgin Galactic sub-orbital flight had a professional pilot. + +

+I, for one, welcome our new amatuer astronaut opportunities. +""", +], + +16: [ +""" +During the landing sequence for the Inspiration4 private space mission, +one of the crew members is shown watching which "in-flight" movie? +

+""", +"Star Wars", +"Alien", +"Spaceballs", +"both", +""" +You can see Spaceballs playing on Chris Sembroski's tablet during the +landing video. +

+ +

+ +Source: +

+ +

+I don't always go to space, but when I do, I watch "Spaceballs" +""", +], + +17: [ +""" +
+
    +
  • How old is Tux now? +
+
+ +
+ +""", +"30 years old", +"25 years old", +"20 years old", +"red", +""" + +Tux was announced by Linus Torvalds in 1996 +

+Source: +

+""", +], + +18: [ +""" +New technology has been refined (pun intended) that can power a +bus from garbage. It uses: +

+ +""", +"human waste (poo and pee)", +"banana peels and beer", +"", +"green", +""" + +

+Recent work by the University of Bristol's Robotics Laboratory, +has taken existing Microbial Fuel Cells technology, and has +minituarized it to demonstrate MFCs that are smaller than +a AA battery, with similar performance. (The MFCs powering the bus +are bigger.) +

+The 'banana peels and beer' is from a scene where Doc Brown is filling +a "Mr. Fusion" device in the movie "Back to the Future". + +

+Source: +

+ +

+Important Note: "Mr. Fusion" is a fictional device. +""", +], + +19: [ +""" +A record size for chip feature density was announced in May +by IBM. The feature density was described as: + +

+ + +""", +"4 nanometers", +"2 nanometers", +"", +"red", +""" +Individual physical elements on the chip are larger than 2 nanometers, but +due to 3-D stacking the effective density of a demonstration wafer +had about 333 million transistors per square millimeter. + +

+Source: +

+

+What will those crazy scientists thing of next!! + +""", +], + +20: [ +""" + +What major phone vendor has announced a program to "upcycle" old phones +into useful IOT devices: + +

+ +""", +"Samsung", +"Apple", +"Sony", +"green", +""" + +Samsung is releasing special firmware updates for old Galaxy phones that +turn them into smart home devices such as a childcare monitor, +a pet care solution, or a light sensor (for home automation control). +

+Source: +

+

+Another win for embedded Linux! + +""", +], + +21: [ +""" + +What large tech company is headquartered in Seattle? + +""", +"Amazon", +"Microsoft", +"", +"green", +""" + +Amazon's headquarters are in downtown Seattle. +

+ +

+Microsoft's headquarters are in Redmond Washington, about 12 miles away +

+Sources: +

+

+Just a few blocks from where I'm standing! (I think) +""", +], + +22: [ +""" +What is the Beowulf project? + +

+ + +""", +"the name of a new quantum computer by Google", +"one of the earliest uses of Linux in supercomputer clusters", +"", +"red", +""" +Beowulf was developed by NASA researchers in 1994, to provide supercomputer +performance using commodity hardware. +

+Google's quantum computer is named "Sycamore". +

+Sources: +

+""", + +], + +23: [ +""" +The movie "Free Guy" is about: +""", +"a Non-player character in a video game becoming sentient", +"a government agent who can travel forwards and backwards in time", +"", +"green", +""" +Free Guy is a movie staring Ryan Reynolds about an NPC becoming a +true Artificial Intelligence. It's also a fairly insightful comedy +about the state of modern video games. +

+ +

+

+Source: +

+

+ +""", +], + +24: [ +""" +How many countries has Embedded Linux Conference been in? + +""", +"6", +"8", +"", +"red", +""" +As of 2021, Embedded Linux Conference has been held in the following +countries: +Austria, France, Spain, Germany, United Kingdom, Ireland, +the Czech Republic, and the USA. + +

+We'll return to Europe someday... + +""", +], + +25: [ +""" +The FSF recently blogged about: + +""", +"Writing their own version of the DCO (Developer Certificate of Origin)", +"Starting work on version 4 of the GPL license", +"", +"green", +""" +They want something that provides more of the capabilities that copyright +assignment provides, since some projects (notably gcc) have started +accepting DCOs in place of copyright assignment, and the FSF doesn't think +any of the the current industry-standard DCOs are adequate for this. + +

+ +Source: +

+

+""", +], + +26: [ +""" +Which longstanding kernel interface was removed in 2021, due to security considerations: +""", +"/dev/kmem", +"/proc/sys/kernel", +"", +"green", +""" + +/dev/kmem was finally removed, after years of being deprecated, in v5.12 +of the Linux kernel. + +Source: +

+

+Hackers are sad that they can't read kernel memory directly anymore. +""", +], + +27: [ +""" +What epic science fiction trilogy is coming to streaming this fall? + +""", +"Dune", +"Foundation", +"both", +"both", +""" + +
+Dune + + + +   Foundation    + + +
+ +""", +], } +