Merge branch 'master' of tuxcode.org:pentagameshow
This commit is contained in:
commit
90272948c5
|
@ -1,3 +1,4 @@
|
||||||
|
#TODO Sojus Koppelmanöver
|
||||||
#--- !Question
|
#--- !Question
|
||||||
#question: What is the question?
|
#question: What is the question?
|
||||||
#answers:
|
#answers:
|
||||||
|
@ -22,17 +23,17 @@ answers:
|
||||||
- true: Sony
|
- true: Sony
|
||||||
- true: Sony
|
- true: Sony
|
||||||
tier: 1
|
tier: 1
|
||||||
game_round: 2
|
game_round: 1
|
||||||
media:
|
media:
|
||||||
question:
|
question:
|
||||||
- pix/q_target.png
|
- pix/q_target.png TODO
|
||||||
explanation:
|
explanation:
|
||||||
- pix/a_target.jpg
|
- pix/a_target.jpg TODO
|
||||||
|
|
||||||
--- !Question
|
--- !Question
|
||||||
# http://de.wikipedia.org/wiki/Strahlenkrankheit
|
# http://de.wikipedia.org/wiki/Strahlenkrankheit
|
||||||
# Wie gut koennen sich Leute die Fukushima facts merken?
|
# Wie gut koennen sich Leute die Fukushima facts merken?
|
||||||
question: What is leathal doses of radioactivity that causes death with 100% probability within 14 days after exposition (LD100/14)? (1 Gray (Gy) == 1 Sievert (Sv))
|
question: What is leathal doses of radioactivity that causes death with 100% probability within 14 days after exposition (LD100/14)? (1 Gray (Gy) == 1 Sievert (Sv)) #TODO Inforgrafik, und Frage kuerzer
|
||||||
answers:
|
answers:
|
||||||
- false: "> 6 mGy"
|
- false: "> 6 mGy"
|
||||||
- false: "> 600 mGy"
|
- false: "> 600 mGy"
|
||||||
|
@ -48,7 +49,7 @@ media:
|
||||||
|
|
||||||
--- !Question
|
--- !Question
|
||||||
# http://www.justiz.sachsen.de/smj/content/2674.php Offizielle Pressemitteilung
|
# http://www.justiz.sachsen.de/smj/content/2674.php Offizielle Pressemitteilung
|
||||||
question: Why did Saxony (German State) not use the Bundestrojaner (governmental trojan horse)?
|
question: Why did Saxony (German State) not use the Staatstrojaner (governmental trojan horse)?
|
||||||
answers:
|
answers:
|
||||||
- true: Technically not capable of doing so.
|
- true: Technically not capable of doing so.
|
||||||
- false: Ethically not justifiable.
|
- false: Ethically not justifiable.
|
||||||
|
@ -159,7 +160,7 @@ answers:
|
||||||
- false: 415 days
|
- false: 415 days
|
||||||
- true: 541 days
|
- true: 541 days
|
||||||
- false: 451 days
|
- false: 451 days
|
||||||
- false: 154 days
|
- false: 514 days
|
||||||
tier: 8
|
tier: 8
|
||||||
game_round: 1
|
game_round: 1
|
||||||
media:
|
media:
|
||||||
|
@ -202,7 +203,7 @@ media:
|
||||||
|
|
||||||
--- !Question
|
--- !Question
|
||||||
# http://linux.slashdot.org/story/11/10/05/1920255/welcome-back-kernelorg
|
# http://linux.slashdot.org/story/11/10/05/1920255/welcome-back-kernelorg
|
||||||
question: How many weeks did it take to bring kernel.org back up after it has been hacked in end of August 2011?
|
question: How many weeks did it take to bring kernel.org back up after they found out that it has been hacked in end of August 2011?
|
||||||
answers:
|
answers:
|
||||||
- false: ~ 1 week
|
- false: ~ 1 week
|
||||||
- false: It is still not up
|
- false: It is still not up
|
||||||
|
@ -236,7 +237,7 @@ media:
|
||||||
# http://arstechnica.com/tech-policy/news/2011/10/get-hacked-dont-tell-drone-base-didnt-report-virus.ars
|
# http://arstechnica.com/tech-policy/news/2011/10/get-hacked-dont-tell-drone-base-didnt-report-virus.ars
|
||||||
question: How did the US Airforce cyber security departement learn about the virus infected drones?
|
question: How did the US Airforce cyber security departement learn about the virus infected drones?
|
||||||
answers:
|
answers:
|
||||||
- false: Advanced intrusion detection mechanisms
|
- false: Intrusion detection mechanisms
|
||||||
- true: Read it in the news
|
- true: Read it in the news
|
||||||
- false: The badly programmed virus caused system instabilities
|
- false: The badly programmed virus caused system instabilities
|
||||||
- false: By random, during standart maintainance
|
- false: By random, during standart maintainance
|
||||||
|
@ -399,7 +400,7 @@ answers:
|
||||||
- true: It can run the same viruses?
|
- true: It can run the same viruses?
|
||||||
- false: It can import MS Word now.
|
- false: It can import MS Word now.
|
||||||
- false: It has the same plugin-api.
|
- false: It has the same plugin-api.
|
||||||
- true: It fucks up documents just as well.
|
- false: It fucks up documents just as well.
|
||||||
tier: 6
|
tier: 6
|
||||||
game_round: 2
|
game_round: 2
|
||||||
media:
|
media:
|
||||||
|
@ -424,7 +425,7 @@ media:
|
||||||
- videos/question1.webm
|
- videos/question1.webm
|
||||||
|
|
||||||
--- !Question
|
--- !Question
|
||||||
question: Which company delivers software that could reboot by a IPv6 ping in 2011?
|
question: Which company delivers software that could be rebooted by a IPv6 ping in 2011?
|
||||||
answers:
|
answers:
|
||||||
- false: Microsoft
|
- false: Microsoft
|
||||||
- true: Cisco
|
- true: Cisco
|
||||||
|
@ -441,10 +442,10 @@ media:
|
||||||
--- !Question
|
--- !Question
|
||||||
question: How much money has HP spent in CEO pay-offs since 2005?
|
question: How much money has HP spent in CEO pay-offs since 2005?
|
||||||
answers:
|
answers:
|
||||||
- false: $10 mio
|
- false: $100 mio
|
||||||
- true: $80 mio
|
- true: $80 mio
|
||||||
- false: $50 mio
|
- false: $1 bln
|
||||||
- false: $25 mio
|
- false: $500 mio
|
||||||
tier: 9
|
tier: 9
|
||||||
game_round: 2
|
game_round: 2
|
||||||
media:
|
media:
|
||||||
|
@ -499,7 +500,7 @@ media:
|
||||||
- videos/question1.webm
|
- videos/question1.webm
|
||||||
|
|
||||||
--- !Question
|
--- !Question
|
||||||
question: What is the gain in round trip time by the new $300 mio EU-US cable (first in 10 years)?
|
question: What is the improvement of round trip time by the new $300 mio EU-US cable (first in 10 years)?
|
||||||
answers:
|
answers:
|
||||||
- false: 6s
|
- false: 6s
|
||||||
- false: 0.6s
|
- false: 0.6s
|
||||||
|
@ -529,22 +530,7 @@ media:
|
||||||
- videos/phonestory.webm
|
- videos/phonestory.webm
|
||||||
|
|
||||||
--- !Question
|
--- !Question
|
||||||
question: Which App wasn't removed from the Apple app store this year?
|
question: Why does the German SPD politician Sebastian Edathy want the data retention law?
|
||||||
answers:
|
|
||||||
- false: Phone Story
|
|
||||||
- true: Cure-Gay
|
|
||||||
- false: Smuggle Truck
|
|
||||||
- false: Conterfai Lugary
|
|
||||||
tier: 5
|
|
||||||
game_round: 3
|
|
||||||
media:
|
|
||||||
question:
|
|
||||||
- pix/question1.png
|
|
||||||
explanation:
|
|
||||||
- videos/question1.webm
|
|
||||||
|
|
||||||
--- !Question
|
|
||||||
question: Why does the German SPD politician Sebastian Edathy wants the data retention law?
|
|
||||||
answers:
|
answers:
|
||||||
- true: to catch who send him a plastic pussy
|
- true: to catch who send him a plastic pussy
|
||||||
- false: to catch file sharers
|
- false: to catch file sharers
|
||||||
|
@ -559,7 +545,7 @@ media:
|
||||||
- videos/question1.webm
|
- videos/question1.webm
|
||||||
|
|
||||||
--- !Question
|
--- !Question
|
||||||
question: What was not patented to our knowledge?;Snowman;Snowball;Patenting;Geotracking;1;
|
question: What was not patented to our knowledge?
|
||||||
answers:
|
answers:
|
||||||
- true: Snowman
|
- true: Snowman
|
||||||
- false: Snowball
|
- false: Snowball
|
||||||
|
@ -588,21 +574,6 @@ media:
|
||||||
explanation:
|
explanation:
|
||||||
- videos/question1.webm
|
- videos/question1.webm
|
||||||
|
|
||||||
--- !Question
|
|
||||||
question: Which country did not get his copyright law dictated by the US?
|
|
||||||
answers:
|
|
||||||
- false: Canada
|
|
||||||
- false: Spain
|
|
||||||
- false: Sweden
|
|
||||||
- true: Russia
|
|
||||||
tier: 9
|
|
||||||
game_round: 3
|
|
||||||
media:
|
|
||||||
question:
|
|
||||||
- pix/question1.png
|
|
||||||
explanation:
|
|
||||||
- videos/question1.webm
|
|
||||||
|
|
||||||
--- !Question
|
--- !Question
|
||||||
question: What vendor/project did not violate the GPL?
|
question: What vendor/project did not violate the GPL?
|
||||||
answers:
|
answers:
|
||||||
|
@ -647,21 +618,6 @@ media:
|
||||||
explanation:
|
explanation:
|
||||||
- videos/question1.webm
|
- videos/question1.webm
|
||||||
|
|
||||||
--- !Question
|
|
||||||
question: Which city is going to support founding of 100 hackerspaces?
|
|
||||||
answers:
|
|
||||||
- false: Paris
|
|
||||||
- false: New York
|
|
||||||
- true: Shanghai
|
|
||||||
- false: Rio de Janeiro
|
|
||||||
tier: 3
|
|
||||||
game_round: 4
|
|
||||||
media:
|
|
||||||
question:
|
|
||||||
- pix/question1.png
|
|
||||||
explanation:
|
|
||||||
- pix/shanghai.jpg
|
|
||||||
|
|
||||||
--- !Question
|
--- !Question
|
||||||
question: Who did not die this year?
|
question: Who did not die this year?
|
||||||
answers:
|
answers:
|
||||||
|
@ -693,7 +649,7 @@ media:
|
||||||
- pix/shanghai.jpg
|
- pix/shanghai.jpg
|
||||||
|
|
||||||
--- !Question
|
--- !Question
|
||||||
question: How many babies were given away in Spain between and the 90-es?
|
question: How many babies were given away in Spain between TODO and the 90-es?
|
||||||
answers:
|
answers:
|
||||||
- false: PHP
|
- false: PHP
|
||||||
- true: 300,000
|
- true: 300,000
|
||||||
|
@ -708,12 +664,14 @@ media:
|
||||||
- pix/shanghai.jpg
|
- pix/shanghai.jpg
|
||||||
|
|
||||||
--- !Question
|
--- !Question
|
||||||
question: How many Mrs USA finalists think evolution should be taught in school?
|
question: How many Mrs USA finalists think evolution should be taught in school (out of 51)?
|
||||||
|
source: http://themoderatevoice.com/114102/americas-rejection-of-evolution-reflected-in-miss-usa-pageant/
|
||||||
|
comment: I’m a big science geek
|
||||||
answers:
|
answers:
|
||||||
- false: PHP
|
- true: 1
|
||||||
- true: 300,000
|
- false: 2
|
||||||
- false: Java
|
- false: 4
|
||||||
- false: Dennis Ritchie
|
- false: 8
|
||||||
tier: 7
|
tier: 7
|
||||||
game_round: 4
|
game_round: 4
|
||||||
media:
|
media:
|
||||||
|
@ -767,6 +725,22 @@ media:
|
||||||
explanation:
|
explanation:
|
||||||
- videos/question1.webm
|
- videos/question1.webm
|
||||||
|
|
||||||
|
--- !Question
|
||||||
|
question: What answers Siri when you ask it "Can you call me an ambulance?"
|
||||||
|
answers:
|
||||||
|
- true: goose
|
||||||
|
- false: sheep
|
||||||
|
- false: chicken
|
||||||
|
- false: dog
|
||||||
|
tier: 10
|
||||||
|
game_round: 4
|
||||||
|
media:
|
||||||
|
question:
|
||||||
|
- pix/question1.png
|
||||||
|
explanation:
|
||||||
|
- videos/question1.webm
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#8;What detail the Homeland Security software FAST doesn't take into account to compute potential criminals?;ethnische Zugehörigkeit;Körpermaße;Abstammung;Haarfarbe;4
|
#8;What detail the Homeland Security software FAST doesn't take into account to compute potential criminals?;ethnische Zugehörigkeit;Körpermaße;Abstammung;Haarfarbe;4
|
||||||
#1;Welches Land hat ACTA noch nicht unterzeichnet?;Australien;Japan;Kanada;Deutschland;4;
|
#1;Welches Land hat ACTA noch nicht unterzeichnet?;Australien;Japan;Kanada;Deutschland;4;
|
||||||
|
|
13
TODO
13
TODO
|
@ -46,6 +46,15 @@
|
||||||
= Hotfixes =
|
= Hotfixes =
|
||||||
DONE: nedap flush
|
DONE: nedap flush
|
||||||
DONE: nedap encoding
|
DONE: nedap encoding
|
||||||
timeout sound
|
DONE: timeout sound
|
||||||
DONE: irc+nedap auf 1. screen
|
DONE: irc+nedap auf 1. screen
|
||||||
overload
|
DONE: overload
|
||||||
|
|
||||||
|
|
||||||
|
= 28C3 =
|
||||||
|
|
||||||
|
how to reproduce: shift to self & dead keys?
|
||||||
|
|
||||||
|
credits + battletoads.ogg
|
||||||
|
websocket keys change
|
||||||
|
fragen mit quelle live auf identi.ca posten
|
||||||
|
|
12
censor.html
12
censor.html
|
@ -17,6 +17,18 @@
|
||||||
.image img {
|
.image img {
|
||||||
max-width: 30%;
|
max-width: 30%;
|
||||||
}
|
}
|
||||||
|
.image .accept {
|
||||||
|
font-size: 150%;
|
||||||
|
color: #007f00;
|
||||||
|
}
|
||||||
|
.image .reject {
|
||||||
|
font-size: 150%;
|
||||||
|
color: #7f0000;
|
||||||
|
}
|
||||||
|
.image .postpone {
|
||||||
|
font-size: 125%;
|
||||||
|
color: #7f7f00;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -6,6 +6,11 @@ var mime = require('mime');
|
||||||
|
|
||||||
var WS_KEY = 'nedap-kneemFothbedchoadHietEnobKavLub1';
|
var WS_KEY = 'nedap-kneemFothbedchoadHietEnobKavLub1';
|
||||||
var MIME_HTML = 'text/html; charset=UTF-8';
|
var MIME_HTML = 'text/html; charset=UTF-8';
|
||||||
|
var ROOT_HEADERS = { 'Content-type': MIME_HTML,
|
||||||
|
'Pragma': 'no-cache',
|
||||||
|
'Expires': '-1',
|
||||||
|
'Cache-Control': 'no-cache, must-revalidate, max-age=1'
|
||||||
|
};
|
||||||
var UPLOAD_DIR = "static/gifs";
|
var UPLOAD_DIR = "static/gifs";
|
||||||
var GIFS_PREFIX = "http://localhost:2342/gifs/";
|
var GIFS_PREFIX = "http://localhost:2342/gifs/";
|
||||||
try { fs.mkdirSync(UPLOAD_DIR); } catch (e) {}
|
try { fs.mkdirSync(UPLOAD_DIR); } catch (e) {}
|
||||||
|
@ -56,6 +61,12 @@ function updateBackend() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function errorResponse(res) {
|
||||||
|
res.writeHead(503, { 'Content-type': MIME_HTML });
|
||||||
|
res.write("<img src=\"/503.png\">");
|
||||||
|
res.end();
|
||||||
|
}
|
||||||
|
|
||||||
function nedap(app) {
|
function nedap(app) {
|
||||||
app.get('/', function(req, res) {
|
app.get('/', function(req, res) {
|
||||||
if (mode === 'nedap' &&
|
if (mode === 'nedap' &&
|
||||||
|
@ -83,11 +94,10 @@ function nedap(app) {
|
||||||
form.c('input', { type: 'submit',
|
form.c('input', { type: 'submit',
|
||||||
value: 'Submit' });
|
value: 'Submit' });
|
||||||
|
|
||||||
res.writeHead(200, { 'Content-type': MIME_HTML });
|
res.writeHead(200, ROOT_HEADERS);
|
||||||
res.write(html(form.toString()));
|
res.write(html(form.toString()));
|
||||||
res.end();
|
res.end();
|
||||||
} else if (mode === 'gif') {
|
} else if (mode === 'gif') {
|
||||||
res.writeHead(200, { 'Content-type': MIME_HTML });
|
|
||||||
var form = new ltx.Element('form', { action: "/i",
|
var form = new ltx.Element('form', { action: "/i",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
enctype: "multipart/form-data"
|
enctype: "multipart/form-data"
|
||||||
|
@ -99,10 +109,11 @@ function nedap(app) {
|
||||||
name: 'token',
|
name: 'token',
|
||||||
value: Token.generate() });
|
value: Token.generate() });
|
||||||
form.c('p').t("Max file size: 2 MB");
|
form.c('p').t("Max file size: 2 MB");
|
||||||
|
res.writeHead(200, ROOT_HEADERS);
|
||||||
res.write(html(form.toString()));
|
res.write(html(form.toString()));
|
||||||
res.end();
|
res.end();
|
||||||
} else {
|
} else {
|
||||||
res.writeHead(404, { 'Content-type': MIME_HTML });
|
res.writeHead(404, ROOT_HEADERS);
|
||||||
res.write(html('<p>No question left on server.</p>'));
|
res.write(html('<p>No question left on server.</p>'));
|
||||||
res.end();
|
res.end();
|
||||||
}
|
}
|
||||||
|
@ -120,30 +131,23 @@ function nedap(app) {
|
||||||
'Location': '/thanks' });
|
'Location': '/thanks' });
|
||||||
res.end();
|
res.end();
|
||||||
} else {
|
} else {
|
||||||
res.writeHead(400, { 'Content-type': MIME_HTML,
|
errorResponse(res);
|
||||||
'Location': '/' });
|
|
||||||
res.write(html("<p>Face validation error.</p>"));
|
|
||||||
res.end();
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
res.writeHead(400, { 'Content-type': MIME_HTML,
|
errorResponse(res);
|
||||||
'Location': '/' });
|
|
||||||
res.write(html("<p>Huh?</p>"));
|
|
||||||
res.end();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get('/thanks', function(req, res) {
|
app.get('/thanks', function(req, res) {
|
||||||
res.writeHead(200, { 'Content-type': MIME_HTML });
|
res.writeHead(200, { 'Content-type': MIME_HTML });
|
||||||
res.write(html("<p>Thanks, your vote may have been counted.</p>"));
|
res.write(html("<p>Thanks, your vote may have been counted. <a href='/'>Back</a></p>"));
|
||||||
res.end();
|
res.end();
|
||||||
});
|
});
|
||||||
|
|
||||||
app.post('/i', function(req, res) {
|
app.post('/i', function(req, res) {
|
||||||
if (req.files.gif) {
|
if (req.files.gif) {
|
||||||
if (!Token.validate(req.body.token)) {
|
if (!Token.validate(req.body.token)) {
|
||||||
res.writeHead(200, { 'Content-type': MIME_HTML });
|
errorResponse(res);
|
||||||
res.end("Cheater!");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* pass to frontend */
|
/* pass to frontend */
|
||||||
|
@ -161,13 +165,12 @@ function nedap(app) {
|
||||||
} }));
|
} }));
|
||||||
});
|
});
|
||||||
|
|
||||||
res.writeHead(200, { 'Content-type': MIME_HTML });
|
res.writeHead(303, { 'Content-type': MIME_HTML,
|
||||||
res.write(html("<p>Image eval() successful!</p>"));
|
'Location': '/thanks' });
|
||||||
res.end();
|
res.end();
|
||||||
} else {
|
} else {
|
||||||
console.error(err.stack || err);
|
console.error(err.stack || err);
|
||||||
res.writeHead(500, { 'Content-type': 'text/plain' });
|
errorResponse(res);
|
||||||
res.end("Oops");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
BIN
nedap/static/503.png
Normal file
BIN
nedap/static/503.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
6
quiz.css
6
quiz.css
|
@ -144,8 +144,9 @@ ul#tiers li.done {
|
||||||
font-size: 175%;
|
font-size: 175%;
|
||||||
}
|
}
|
||||||
#scoreboard dl dd {
|
#scoreboard dl dd {
|
||||||
margin-left: 4em;
|
margin-left: 1em;
|
||||||
margin-bottom: 0.65em;
|
margin-bottom: 0.65em;
|
||||||
|
font-size: 90%;
|
||||||
}
|
}
|
||||||
#scoreboard dl dd .score {
|
#scoreboard dl dd .score {
|
||||||
font-size: 125%;
|
font-size: 125%;
|
||||||
|
@ -153,7 +154,7 @@ ul#tiers li.done {
|
||||||
}
|
}
|
||||||
|
|
||||||
#scoreboard dl dd img {
|
#scoreboard dl dd img {
|
||||||
margin-left: 0.5em;
|
margin-left: 0.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#timer {
|
#timer {
|
||||||
|
@ -184,5 +185,6 @@ ul#tiers li.done {
|
||||||
}
|
}
|
||||||
|
|
||||||
#gifs img {
|
#gifs img {
|
||||||
|
display: inline-block;
|
||||||
max-width: 20%;
|
max-width: 20%;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user