Merge branch 'eh2011' of john:pentagameshow into eh2011

Conflicts:
	fragenkatalog_klobs/fragenpool
This commit is contained in:
klObs 2011-04-22 23:43:37 +02:00
commit 70d2df069e
17 changed files with 597 additions and 609 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "buzz_iface"]
path = buzz_iface
url = gitosis@tuxcode.org:buzzIface.git

BIN
4chan.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 KiB

6
TODO
View File

@ -23,11 +23,11 @@
* a8 -(0%)- irc-Web gateway (asto finded das blöd. Aber vllt. hat jemand keinen irc-Client zur Hand
* astro -(0%)- Google-Joker: ggf. anderer Name; Spieler darf für 30s bei Google suchen und im Web klicken.
Dafür gibt es ein unbeschriftetes Keyboard mit engl. oder dt. Tastaturlayout
* astro -(10%)- Pusher-Joker: Spieler gibt die Frage an einen anderen Spieler weiter
* astro -(100%)- Shift-Joker: Spieler gibt die Frage an einen anderen Spieler weiter
* astro -(100%)- Wikipedia-Joker: 2 Antworten werden wegen Irrelevanz gelöscht (Logo!)
* astro -(100%)- vote.c3d2.de & IRC auf Startscreen
* astro -( 0%)- nedap-joker rate limiting
* astro -( 70%)- nedap-joker vote w/ token
* astro -( 99%)- nedap-joker rate limiting
* astro -(100%)- nedap-joker vote w/ token
== Ideen ==
* - -()- Eliza-Joker: Frage kann wie bei Eliza per Text-Chat erörtert werden. Da ist aber der Aufwand für

BIN
bundestrojaner_sm.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

1
buzz_iface Submodule

@ -0,0 +1 @@
Subproject commit ea8ecdaf8aca8df691a81d07a4382417941ad97e

View File

@ -0,0 +1,541 @@
[{ "tier": 100,
"text": "Was sind die Hauptkritikpunkte des CCC am digitalen Radiergummi?",
"explanation": { "text": "Einsender: payload" },
"answers": [{ "text": "Ja es funktioniert nicht.", "right": true },
{ "text": "Da gibt es viele!" },
{ "text": "Es öffnet dem Missbrauch Tür und Tor." },
{ "text": "Wir finden das eigentlich ganz okay." }]
},
{ "tier": 100,
"text": "Warum wollten 17 Menschen sich in einem Flugzeug nicht setzen?",
"explanation": { "text": "Einsender: payload" },
"answers": [{ "text": "Abschiebung verhindern ", "right": true },
{ "text": "Schlangen im Flugzeug" },
{ "text": "Flugzeugentführung durchführen" },
{ "text": "Flugzeugentführung verhindern" }]
},
{ "tier": 100,
"text": "Welche Band veröffentlichte Ihr Debutalbum “Narwhalingus-EP” forkbar auf Github?",
"explanation": { "image": "narwhalingus-ep.png" },
"answers": [{ "text": "The Bristol 7s", "right": true },
{ "text": "The London 9s" },
{
"text": "Dieter Bohlen"
},
{
"text": "Polarkreis 18"
}
]
},
{
"tier": 100,
"text": "Warum sollen Bibliotheken ihre DRM-Ebooks nach 26 Ausleihen neu kaufen?",
"answers": [
{
"text": "Weil die echten Bücher nach 26 Ausleihen auch neu gekauft werden würden.",
"right": true
},
{
"text": "Weil die proprietären Dateiformate dann nicht mehr lesbar sind."
},
{
"text": "Damit anschliessend wegen erhöhter Nachfrage mehrere Digitale Exemplare vorliegen."
},
{
"text": "Weil einige Ausleihende vergessen, die Bücher wieder zurück zu laden."
}
]
},
{
"tier": 100,
"text": "Wie sehen die Pentalobes (Spezialschrauben) aus, mit denen Apple im iPhone 4 Probiert die Nutzer am Öffnen zu hindern?",
"image": "fragenkatalog_klobs/iphoneschrauben/714_expl.jpg",
"answers": [
{
"text": "a",
"right": true
},
{
"text": "b"
},
{
"text": "c"
},
{
"text": "d"
}
]
},
{
"tier": 100,
"text": "Von welchem Land verzeichnet Googlemaps weder Strassen-, noch Städtenamen?",
"answers": [
{
"text": "Nordkorea",
"right": true
},
{
"text": "Iran"
},
{
"text": "Pakistan"
},
{
"text": "Bhutan"
}
]
},
{
"tier": 100,
"text": "Über welchen Alternativweg sollen Internetsperren in Deutschland umgesetzt werden?",
"answers": [
{
"text": "Glücksspielstaatsvertrag",
"right": true
},
{
"text": "Fischereiausschuss"
},
{
"text": "Telemediengesetz"
},
{
"text": "Jugendmedienschutz-Staatsvertrag"
}
]
},
{
"tier": 100,
"text": "Wie viele Hausdurchsuchungen mussten Walter und Rose Martin aufgrund eines Fehlers in der Datenbank ertragen?",
"answers": [
{
"text": ">50",
"right": true
},
{
"text": "42"
},
{
"text": ">15, <42"
},
{
"text": "<=15"
}
]
},
{
"tier": 100,
"text": "Wie groß ist die radioaktive Belastung in Deutschland im Durchschnitt?",
"explanation": { "text": "Einsender: payload" },
"answers": [
{
"text": "3,9 mSv/Jahr",
"right": true
},
{
"text": "0,2 µSv/Stunde!"
},
{
"text": "1000 mSv/Stunde"
},
{
"text": "0,9 Sv/Jahr"
}
]
},
{
"tier": 100,
"text": "Warum können Atomunfälle bei uns nicht passieren?",
"explanation": { "text": "Einsender: payload" },
"answers": [
{
"text": "Weil nicht genügend Strahlenschutzanzüge vorligen.",
"right": true
},
{
"text": "Weil unsere Technik sicher ist.",
"right": true
},
{
"text": "Weil wir keine atomare Technik nutzen.",
"right": true
},
{
"text": "Fliegt dahinten eine rote Taube?",
"right": true
}
]
},
{
"tier": 100,
"text": "Wie werden Gestorbene nach einem Demozid (vorsätzliche Massentötungen von bestimmten Menschengruppen) gezählt?",
"answers": [
{
"text": "Megatote",
"right": true
},
{
"text": "Kiloleichen"
},
{
"text": "Hektoopfer"
},
{
"text": "Es gibt keine besondere Bezeichung."
}
]
},
{
"tier": 100,
"text": "Wie viel Gründungsmitglieder waren beim Gründungstreffen vom Zwiebelfreunde e.V. (Verein hinter Torservers.net) anwesend?",
"explanation": { "text": "Quelle: Pentacast 31" },
"answers": [
{
"text": "13",
"right": true
},
{
"text": "99"
},
{
"text": "23"
},
{
"text": "42"
}
]
},
{
"tier": 100,
"text": "Welches Gremium ist für die Standardisierung des TETRA Standards verantwortlich?",
"answers": [
{
"text": "ETSI",
"right": true
},
{
"text": "ITU"
},
{
"text": "IEEE"
},
{
"text": "IETF"
}
]
},
{
"tier": 100,
"text": "In welcher Einheit zählt Cem Özdemir den Stromverbrauch in Deutschland?",
"explanation": { "video": "oezdemir.webm" },
"answers": [
{
"text": "Gigabyte (GB)",
"right": true
},
{
"text": "Gigawatt (GW)"
},
{
"text": "Megawatt (MW)"
},
{
"text": "Pferdestärken (PS)"
}
]
},
{
"tier": 100,
"text": "Wer steckt NICHT in dem ursprünglichen Projektkonsortium „bIT4health“ (Gesundheitskarte)?",
"answers": [
{
"text": "T-Systems",
"right": true
},
{
"text": "IBM Deutschland"
},
{
"text": "SAP Deutschland"
},
{
"text": "Fraunhofer-Institut für Arbeitswirtschaft und Organisation (IAO)"
}
]
},
{
"tier": 100,
"text": "Welcher der abgebildeten Typies ist der Kopf hinter 4chan?",
"image": "4chan.png",
"answers": [
{
"text": "a"
},
{
"text": "b"
},
{
"text": "c",
"right": true
},
{
"text": "d"
}
]
},
{
"tier": 100,
"text": "Welche der folgenden Neusprechs wurde noch nicht im Neusprechblog behandelt:",
"answers": [
{
"text": "Sagt uns maha noch",
"right": true
},
{
"text": "Schutzlücke"
},
{
"text": "Stresstest"
},
{
"text": "Restrisiko"
}
]
},
{
"tier": 100,
"text": "Wer tritt in der neuen “YouTube Copyright School” auf?",
"answers": [
{
"text": "Simpsons"
},
{
"text": "Beavis and Butthead"
},
{
"text": "Eric aus South Park"
},
{
"text": "Happy Tree Friends",
"right": true
}
]
},
{
"tier": 100,
"text": "Welcher Umstand hilft in Neu Seeland der 3-Strikes-Gesetzgebung?",
"explanation": {
"text": "#blackout"
},
"answers": [
{
"text": "Erdbeben-Notstand",
"right": true
},
{
"text": "Gescheiterte Koalitionsverhandlungen"
},
{
"text": "Notstand wegen Ausrottung des Kiwis"
},
{
"text": "Empfehlung der Queen"
}
]
},
{
"tier": 100,
"text": "Welchen Stückpreis hatten die IPs im Adressblock von Nortel? ($7.5m total)",
"answers": [
{
"text": "$0.03"
},
{
"text": "$0.47"
},
{
"text": "$1.00"
},
{
"text": "$11.25",
"right": true
}
]
},
{
"tier": 100,
"text": "Wo ist laut Symantecs Internet Security Threat Report 2010 der beliebteste Logistikstandort für Cyberkriminelle?",
"explanation": { "image": "bundestrojaner_sm.gif" },
"answers": [
{
"text": "USA"
},
{
"text": "Deutschland",
"right": true
},
{
"text": "Russland"
},
{
"text": "China"
}
]
},
{
"tier": 100,
"text": "Wer klagt gegen das französische Dekret Nutzerdaten 1 Jahr aufzuheben?",
"answers": [
{
"text": "Google",
"right": true
},
{
"text": "Facebook",
"right": true
},
{
"text": "Microsoft"
},
{
"text": "Yahoo!"
}
]
},
{
"tier": 100,
"text": "Wo hat sich eine Smart City einen Virus eingefangen?",
"explanation": {
"text": "“We've put our entire city's operations in the cloud, and now we can't get it out,”"
},
"answers": [
{
"text": "Südkorea",
"right": true
},
{
"text": "Japan"
},
{
"text": "China"
},
{
"text": "USA"
}
]
},
{
"tier": 100,
"text": "Worauf hat Google 2001 ein Patent angemeldet und 2011 bekommen?",
"answers": [
{
"text": "Apple die Touchscreens wegzukaufen"
},
{
"text": "Integration eines Ereignisses in das Firmenlogo",
"right": true
},
{
"text": "App Store ohne Veröffentlichungskontrolle"
},
{
"text": "Animierte Bilder für IPv6-Besucher"
}
]
},
{
"tier": 100,
"text": "Was soll die Vorratsdatenspeicherung in Frankreich künftig auch noch umfassen?",
"answers": [
{
"text": "Passwörter",
"right": true
},
{
"text": "Namen von Mitbenutzern"
},
{
"text": "MAC-Adressen"
},
{
"text": "Betriebssystemversion"
}
]
},
{
"tier": 100,
"text": "Wie ist die Altersfreigabe für Opera im Apple App Store?",
"answers": [
{
"text": "unbeschränkt"
},
{
"text": "ab 6"
},
{
"text": "ab 17",
"right": true
},
{
"text": "ab 21"
}
]
},
{
"tier": 100,
"text": "Wieviele Folgen des Pentacast wurden bisher veröffentlicht?",
"answers": [
{
"text": "13"
},
{
"text": "26"
},
{
"text": "31",
"right": true
},
{
"text": "0x1F",
"right": true
}
]
},
{
"tier": 100,
"text": "Wann ist IPv6 Day?",
"answers": [
{ "text": "6. Juni" },
{ "text": "8. Juni", "right": true },
{ "text": "1. Juli" },
{ "text": "4. Juli" }
]
},
{
"tier": 100,
"text": "Wer forderte Vermummungsverbot im Internet?",
"explanation": { "text": "Axel E. Fischer, CDU, fordert Sicherheitsabstand auf Datenautobahnen." },
"answers": [
{ "text": "Hans-Peter Friedrich (CSU)" },
{ "text": "Ursula von der Leyen (CDU)" },
{ "text": "Günter Krings (CDU)" },
{ "text": "Axel E. Fischer (CDU)", "right": true }
]
}
]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

View File

@ -1,372 +0,0 @@
{
// url: http://blog.fefe.de/?ts=b3b82d0c
// submitter: payload
"tier": 100,
"text": "Was sind die Hauptkritikpunkte des CCC am digitalen Radiergummi?",
"answers": [
{
"text": "Ja es funktioniert nicht.",
"right": true
},
{
"text": "Da gibt es viele!"
},
{
"text": "Es öffnet dem Missbrauch Tür und Tor."
},
{
"text": "Wir finden das eigentlich ganz okay."
}
]
}
{
// url: http://blog.fefe.de/?ts=b3c7049a
// submitter: payload
"tier": 100,
"text": "Warum wollten 17 Menschen sich in einem Flugzeug nicht setzen?",
"answers": [
{
"text": "Abschiebung verhindern ",
"right": true
},
{
"text": "Schlangen im Flugzeug"
},
{
"text": "Flugzeugentführung durchführen"
},
{
"text": "Flugzeugentführung verhindern"
}
]
}
{
// url: http://pentamedia.c3d2.de/static_media/page_shots/2011/04/11/bandstelltihralbumforkbaraufgithub.png
// Coverart, oder einspielen?
"tier": 100,
"text": "Welche Band veröffentlichte Ihr Debutalbum "Narwhalingus-EP" forkbar auf Github?",
"answers": [
{
"text": "Bristol 7",
"right": true
},
{
"text": "London 9"
},
{
"text": "Dieter Bohlen"
},
{
"text": "Polarkreis 18"
}
]
}
{
// url http://pentamedia.c3d2.de/submit/2011/03/25/bibliothekensollendrm-ebooksnach26ausleihenn/
"tier": 100,
"text": "Warum sollen Bibliotheken ihre DRM-Ebooks nach 26 Ausleihen neu kaufen?",
"answers": [
{
"text": "Weil die echten Bücher nach 26 Ausleihen auch neu gekauft werden würden.",
"right": true
},
{
"text": "Weil die proprietären Dateiformate dann nicht mehr lesbar sind."
},
{
"text": "Damit anschliessend wegen erhöhter Nachfrage mehrere Digitale Exemplare vorliegen."
},
{
"text": "Weil einige Ausleihende vergessen, die Bücher wieder zurück zu laden."
}
]
}
{
// url: http://pentamedia.c3d2.de/submit/2011/01/22/applesperrtnutzerausiphone4mitspezial-schra/
"tier": 100,
"text": "Wie sehen die Pentalobes (Spezialschrauben) aus, mit denen Apple im iPhone 4 Probiert die Nutzer am Öffnen zu hindern?",
"explanation": {
//TODO
"image": "pix/714_expl.jpg"
},
"answers": [
{
"text": "a",
"right": true
},
{
"text": "b"
},
{
"text": "c"
},
{
"text": "d"
}
]
}
{
// url: http://maps.google.at/maps?ie=UTF8&ll=39.571822,126.029663&spn=3.730075,8.432007&z=8
"tier": 100,
"text": "Von welchem Land verzeichnet Googlemaps weder Strassen-, noch Städtenamen?"
"answers": [
{
"text": "Nordkorea",
"right": true
},
{
"text": "Iran"
},
{
"text": "Pakistan"
},
{
"text": "Bhutan"
}
]
}
{
// url: http://blog.die-linke.de/digitalelinke/glucksspielstaatsvertrag-ministerprasidenten-beschliesen-erneut-internetsperren/
"tier": 100,
"text": "Über welchen Alternativweg sollen Internetsperren in Deutschland umgesetzt werden?",
"answers": [
{
"text": "Glücksspielstaatsvertrag",
"right": true
},
{
"text": "Fischereiausschuss"
},
{
"text": "Telemediengesetz",
},
{
"text": "Jugendmedienschutz-Staatsvertrag"
}
]
}
{
// url: http://pentamedia.c3d2.de/submit/2010/03/27/8-jahre-hausdurchsuchung-dank-datenbankfehler/
"tier": 100,
"text": "Wie viele Hausdurchsuchungen mussten Walter und Rose Martin aufgrund eines Fehlers in der Datenbank ertragen?",
"answers": [
{
"text": ">50",
"right": true
},
{
"text": "42"
},
{
"text": ">15, <42"
},
{
"text": "<=15"
}
]
}
{
// url:
// submitter: payload
"tier": 100,
"text": "Wie groß ist die radioaktive Belastung in Deutschland im Durchschnitt?",
"answers": [
{
"text": "3,9 mSv/Jahr",
"right": true
},
{
"text": "0,2 µSv/Stunde!"
},
{
"text": "1000 mSv/Stunde"
},
{
"text": "0,9 Sv/Jahr"
}
]
}
{
// url: http://blog.fefe.de/?ts=b3b82d0c
// submitter: payload
"tier": 100,
"text": "Warum können Atomunfälle bei uns nicht passieren?",
"answers": [
{
"text": "Weil nicht genügend Strahlenschutzanzüge vorligen.",
"right": true
},
{
"text": "Weil unsere Technik sicher ist.",
"right": true
},
{
"text": "Weil wir keine atomare Technik nutzen.",
"right": true
},
{
"text": "Fliegt dahinten eine rote Taube?"
"right": true
}
]
}
{
// url: http://blog.fefe.de/?ts=b3b82d0c
"tier": 100,
"text": "Wie werden Gestorbene nach einem Demozid (vorsätzliche Massentötungen von bestimmten Menschengruppen) gezählt?",
"answers": [
{
"text": "Megatote",
"right": true
},
{
"text": "Kiloleichen"
},
{
"text": "Hektoopfer"
},
{
"text": "Es gibt keine besondere Bezeichung."
}
]
}
{
// Quelle: Pentacast 31
"tier": 100,
"text": "Wie viel Gründungsmitglieder waren beim Gründungstreffen vom Zwiebelfreunde e.V. (Verein hinter Torservers.net) anwesend?",
"answers": [
{
"text": "13",
"right": true
},
{
"text": "99"
},
{
"text": "23"
},
{
"text": "42"
}
]
}
{
// url: http://de.wikipedia.org/wiki/TETRA
"tier": 100,
"text": "Welches Gremium ist für die Standardisierung des TETRA Standards verantwortlich?",
"answers": [
{
"text": "ETSI",
"right": true
},
{
"text": "ITU"
},
{
"text": "IEEE"
},
{
"text": "IETF"
}
]
}
{
// url: http://www.youtube.com/watch?v=UzZXnNV4SoM
// Als Antwort vielleicht das Video abspielen
"tier": 100,
"text": "In welcher Einheit zählt Cem Özdemir den Stromverbrauch in Deutschland?",
"answers": [
{
"text": "Gigabyte (GB)",
"right": true
},
{
"text": "Gigawatt (GW)"
},
{
"text": "Megawatt (MW)"
},
{
"text": "Pferdestärken (PS)"
}
]
}
{
// url: http://de.wikipedia.org/wiki/Elektronische_Gesundheitskarte#Zeitlicher_Ablauf
// Urspruengliche einfuehrung 01.01.2006
"tier": 100,
"text": "Wer steckt <em>nicht</em> in dem ursprünglichen Projektkonsortium „bIT4health“ (Gesundheitskarte)?",
"answers": [
{
"text": "T-Systems",
"right": true
},
{
"text": "IBM Deutschland"
},
{
"text": "SAP Deutschland"
},
{
"text": "Fraunhofer-Institut für Arbeitswirtschaft und Organisation (IAO)"
}
]
}
{
// url:
// bilder im Verzeichnis
"tier": 100,
"text": "Welcher der abgebildeten Typies ist der Kopf hinter 4chan?",
"answers": [
{
"text": "a",
"right": true
},
{
"text": "b"
},
{
"text": "c"
},
{
"text": "d"
}
]
}
{
// url: neusprech.org
"tier": 100,
"text": "Welche der folgenden Neusprechs wurde noch nicht im Neusprechblog behandelt:",
"answers": [
{
"text": "Vorwärtsverteidigung",
"right": true
},
{
"text": "Schutzlücke"
},
{
"text": "Stresstest",
},
{
"text": "Restrisiko"
}
]
}

BIN
narwhalingus-ep.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

View File

@ -39,6 +39,16 @@ var Token = {
}
};
var updateBackendTimeout;
function updateBackend() {
if (!updateBackendTimeout) {
updateBackendTimeout = setTimeout(function() {
backend.send(JSON.stringify({ scores: scores }));
updateBackendTimeout = undefined;
}, 50);
}
}
function nedap(app) {
app.get('/', function(req, res) {
if (question && answers) {
@ -78,15 +88,16 @@ console.log({question:question,answers:answers})
var a = req.body.a;
if (a && /^\d+$/.test(a)) {
var i = parseInt(a, 10);
if (scores && i < scores.length) {
if (scores && i < scores.length && Token.validate(req.body.token)) {
scores[i]++;
backend.send(JSON.stringify({ scores: scores }));
updateBackend();
res.writeHead(303, { 'Content-type': 'text/html',
'Location': '/thanks' });
res.end();
} else {
res.writeHead(400, { 'Content-type': 'text/html' });
res.writeHead(400, { 'Content-type': 'text/html',
'Location': '/' });
res.end();
}
} else {

BIN
oezdemir.webm Normal file

Binary file not shown.

View File

@ -1,224 +0,0 @@
[
{
"tier": 100,
"text": "Wer tritt in der neuen “YouTube Copyright School” auf?",
"answers": [
{
"text": "Simpsons"
},
{
"text": "Beavis and Butthead"
},
{
"text": "Eric aus South Park"
},
{
"text": "Happy Tree Friends",
"right": true
}
]
},
{
"tier": 100,
"text": "Welcher Umstand hilft in Neu Seeland der 3-Strikes-Gesetzgebung?",
"explanation": {
"text": "#blackout"
},
"answers": [
{
"text": "Erdbeben-Notstand",
"right": true
},
{
"text": "Gescheiterte Koalitionsverhandlungen"
},
{
"text": "Notstand wegen Ausrottung des Kiwis"
},
{
"text": "Empfehlung der Queen"
}
]
},
{
"tier": 100,
"text": "Welchen Stückpreis hatten die IPs im Adressblock von Nortel? ($7.5m total)",
"answers": [
{
"text": "$0.03"
},
{
"text": "$0.47"
},
{
"text": "$1.00"
},
{
"text": "$11.25",
"right": true
}
]
},
{
"tier": 100,
"text": "Wo ist laut Symantecs Internet Security Threat Report 2010 der beliebteste Logistikstandort für Cyberkriminelle?",
/*"explanation": {
"text": "“Führend ist Deutschland jedoch beim Beherbergen von Bot-Netzen und Phishing-Servern. Im Jahr 2010 will Symantec rund 470.000 unterschiedliche bot-infizierte Computer beobachtet haben jeder fünfte europäische Bot-Computer soll hierzulande stehen. Deutschland sei für Cyberkriminelle ein bevorzugter Logistikstandort, wenn es um die Verbreitung von Viren, Phishing-Mails oder Spam geht. Möglicherweise ist dies auf die gute Internetinfrastruktur und die im Schnitt höhere Belastbarkeit deutscher Bankkonten zurückzuführen.”",
"image": "bundestrojaner.jpg"
},*/
"answers": [
{
"text": "USA"
},
{
"text": "Deutschland",
"right": true
},
{
"text": "Russland"
},
{
"text": "China"
}
]
},
{
"tier": 100,
"text": "Wer klagt gegen das französische Dekret Nutzerdaten 1 Jahr aufzuheben?",
"answers": [
{
"text": "Google",
"right": true
},
{
"text": "Facebook",
"right": true
},
{
"text": "Microsoft"
},
{
"text": "Yahoo!"
}
]
},
{
"tier": 100,
"text": "Wo hat sich eine Smart City einen Virus eingefangen?",
"explanation": {
"text": "“We've put our entire city's operations in the cloud, and now we can't get it out,”"
},
"answers": [
{
"text": "Südkorea",
"right": true
},
{
"text": "Japan"
},
{
"text": "China"
},
{
"text": "USA"
}
]
},
{
"tier": 100,
"text": "Worauf hat Google 2001 ein Patent angemeldet und 2011 bekommen?",
"answers": [
{
"text": "Apple die Touchscreens wegzukaufen"
},
{
"text": "Integration eines Ereignisses in das Firmenlogo",
"right": true
},
{
"text": "App Store ohne Veröffentlichungskontrolle"
},
{
"text": "Animierte Bilder für IPv6-Besucher"
}
]
},
{
"tier": 100,
"text": "Was soll die Vorratsdatenspeicherung in Frankreich künftig auch noch umfassen?",
"answers": [
{
"text": "Passwörter",
"right": true
},
{
"text": "Namen von Mitbenutzern"
},
{
"text": "MAC-Adressen"
},
{
"text": "Betriebssystemversion"
}
]
},
{
"tier": 100,
"text": "Wie ist die Altersfreigabe für Opera im Apple App Store?",
"answers": [
{
"text": "unbeschränkt"
},
{
"text": "ab 6"
},
{
"text": "ab 17",
"right": true
},
{
"text": "ab 21"
}
]
},
{
"tier": 100,
"text": "Wieviele Folgen des Pentacast wurden bisher veröffentlicht?",
"answers": [
{
"text": "13"
},
{
"text": "26"
},
{
"text": "31",
"right": true
},
{
"text": "0x1F",
"right": true
}
]
},
{
"tier": 100,
"text": "Wann ist IPv6 Day?",
"answers": [
{ "text": "6. Juni" },
{ "text": "8. Juni", "right": true },
{ "text": "1. Juli" },
{ "text": "4. Juli" }
]
},
{
"tier": 100,
"text": "Wer forderte Vermummungsverbot im Internet?",
"explanation": { "text": "Axel E. Fischer, CDU, fordert Sicherheitsabstand auf Datenautobahnen." },
"answers": [
{ "text": "Hans-Peter Friedrich (CSU)" },
{ "text": "Ursula von der Leyen (CDU)" },
{ "text": "Günter Krings (CDU)" },
{ "text": "Axel E. Fischer (CDU)", "right": "true" }
]
},

29
quiz.js
View File

@ -428,6 +428,24 @@ function switchToGame() {
};
timer.set(TIMER_QUESTION, timeout);
var activatePlayer = function(player) {
if (activePlayer !== null)
return;
if (playerNames[player]) {
activePlayer = player;
updateTier();
timer.set(TIMER_ANSWER, timeout);
}
for(var i = 0; i < playerNames.length; i++) {
sendToBackend({ buzzerLED: [i, i === player ? 1 : 0] });
}
sendToBackend({ buzzerLED: [player, 1] });
};
for(var i = 0; i < playerNames.length; i++) {
sendToBackend({ buzzerLED: [i, 1] });
}
keyHandler = function(key, keyCode) {
if (keyCode === 27) {
// Shortcut: cancel this state
@ -437,11 +455,7 @@ function switchToGame() {
PLAYER_KEYS.indexOf(key) >= 0) {
// No active player before, but somebody hit a button!
var player = PLAYER_KEYS.indexOf(key);
if (playerNames[player]) {
activePlayer = player;
updateTier();
timer.set(TIMER_ANSWER, timeout);
}
activatePlayer(player);
} else if (activePlayer !== null &&
ANSWER_KEYS.indexOf(key) >= 0) {
// player pronounced the answer
@ -474,6 +488,11 @@ function switchToGame() {
}
};
onBackendMessage = function(msg) {
if (msg.buzzer)
activatePlayer(msg.buzzer);
};
$('#nedap').hide();
$('#irc').hide();
onBackendMessage = null;

View File

@ -91,6 +91,14 @@ function pushIrcInfo() {
}
/*
* Buttons
*/
var buzz = new (require('./buzz_iface/node_lib/buzz').Buzz)('/dev/ttyUSB0');
buzz.on('button', function(key) {
sendToFrontend({ buzzer: key });
});
/*
* Web server
*/
@ -125,9 +133,10 @@ wss.createServer({ server: server }).on('connection', function(conn) {
if (msg.nedap) {
console.log({ toNedap: msg.nedap });
nedap.send(JSON.stringify(msg.nedap));
}
else if (msg.irc === "activate") {
} else if (msg.irc === "activate") {
pushIrcInfo();
} else if (msg.buzzerLED) {
buzz.set_led(msg.buzzerLED[0], msg.buzzerLED[1]);
}
} catch (e) {
console.error(e.stack);