Lien Published & Destroyed that: Difference between revisions
(→Code) |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 27: | Line 27: | ||
Prototyping and programming were slightly destroying my brain during this workshop. I tried to figure out what Terminal [https://en.wikipedia.org/wiki/Terminal_emulator] and Python [https://en.wikipedia.org/wiki/Python_(programming_language)] were about. I tried and played with coding but most of the time the only replies these programmes gave me, were errors. Frustrating! But I turned this frustration around and started to collect all my errors. Together with this, I also collected all sort of questions I wanted to ask these programmes, | Prototyping and programming were slightly destroying my brain during this workshop. I tried to figure out what Terminal [https://en.wikipedia.org/wiki/Terminal_emulator] and Python [https://en.wikipedia.org/wiki/Python_(programming_language)] were about. I tried and played with coding but most of the time the only replies these programmes gave me, were errors. Frustrating! But I turned this frustration around and started to collect all my errors. Together with this, I also collected all sort of questions I wanted to ask these programmes, accompanied by some random questions that were going through my mind at that time. | ||
The result is a conversation between a human being (called "Echo") and a computer programme (called "-bash"). Echo keeps on asking -bash questions. -bash gives answers in the form of errors. Frustrating! | The result is a conversation between a human being (called "Echo") and a computer programme (called "-bash"). Echo keeps on asking -bash questions. -bash gives answers in the form of errors. Frustrating! | ||
In space, the conversation is accompanied by a really irritating sound, that is played everytime that -bash answers by giving an error. You are free to use the code that is written for this conversation! | In space, the conversation is accompanied by a really irritating sound, that is played everytime that -bash answers by giving an error. You are free to use the code that is written for this conversation! | ||
Lien Van Leemput | |||
[http://lienvanleemput.tumblr.com/] | |||
==Code== | ==Code== | ||
import pygame | import pygame | ||
import time | import time | ||
questions = [ | questions = [ | ||
"Echo: Are you sure you want to create this?", | |||
"Echo: They say you find solutions to certain problems, is that so?", | "Echo: They say you find solutions to certain problems, is that so?", | ||
"Echo: Are you more attracted to facts than to fiction?", | "Echo: Are you more attracted to facts than to fiction?", | ||
] | ] | ||
answers = [ | answers = [ | ||
"-bash: raspberrypi dhcpcd[2537]: exited", | "-bash: raspberrypi dhcpcd[2537]: exited", | ||
"-bash: ABSOLUTELY NO WARRANTY", | "-bash: ABSOLUTELY NO WARRANTY", | ||
"-bash: Received packet from invalid interface.", | "-bash: Received packet from invalid interface.", | ||
] | ] | ||
i = 0 | i = 0 | ||
while True: | while True: | ||
index = i % len(questions) - 1 | index = i % len(questions) - 1 | ||
print questions[index] | print questions[index] | ||
time.sleep(1) | |||
print answers[index] | |||
pygame.mixer.init() | |||
print answers[index] | |||
pygame.mixer.music.load("Printer_1.wav") | |||
pygame.mixer.init() | |||
pygame.mixer.music.play() | |||
pygame.mixer.music.load("Printer_1.wav") | |||
while pygame.mixer.music.get_busy() == True: | |||
pygame.mixer.music.play() | |||
continue | |||
while pygame.mixer.music.get_busy() == True: | |||
continue | time.sleep(5) | ||
time.sleep(5) | i += 1 | ||
i += 1 |
Latest revision as of 12:50, 12 February 2016
ERROR(S)
Project
Echo: ‘Are you sure you want to create this?’
-bash: raspberrypi dhcpcd[2537]: exited
Echo: ‘They say you find solutions to certain problems, is that so?’
-bash: ABSOLUTELY NO WARRANTY
Echo: ‘Are you more attracted to facts than to fiction?’
-bash: Received packet from invalid interface.
Echo: ‘Are you more attracted to data than to feelings?’
-bash: uart-pl011 dev:f1: no DMA platform data
Echo: ‘Can you even feel things?’
-bash: failed with error -2
Echo: ‘Where is the real body of your interest?’
-bash: DHCPNAK(wlan0) 192.168.1.24 7c:d1:c3:82:72:e8 wrong address
Prototyping and programming were slightly destroying my brain during this workshop. I tried to figure out what Terminal [1] and Python [2] were about. I tried and played with coding but most of the time the only replies these programmes gave me, were errors. Frustrating! But I turned this frustration around and started to collect all my errors. Together with this, I also collected all sort of questions I wanted to ask these programmes, accompanied by some random questions that were going through my mind at that time.
The result is a conversation between a human being (called "Echo") and a computer programme (called "-bash"). Echo keeps on asking -bash questions. -bash gives answers in the form of errors. Frustrating! In space, the conversation is accompanied by a really irritating sound, that is played everytime that -bash answers by giving an error. You are free to use the code that is written for this conversation!
Lien Van Leemput [3]
Code
import pygame import time questions = [ "Echo: Are you sure you want to create this?", "Echo: They say you find solutions to certain problems, is that so?", "Echo: Are you more attracted to facts than to fiction?", ] answers = [ "-bash: raspberrypi dhcpcd[2537]: exited", "-bash: ABSOLUTELY NO WARRANTY", "-bash: Received packet from invalid interface.", ] i = 0 while True: index = i % len(questions) - 1 print questions[index] time.sleep(1) print answers[index] pygame.mixer.init() pygame.mixer.music.load("Printer_1.wav") pygame.mixer.music.play() while pygame.mixer.music.get_busy() == True: continue time.sleep(5) i += 1