Lien Published & Destroyed that

From Hackers & Designers
Revision as of 17:32, 11 February 2016 by Hdsb (talk | contribs) (→‎Code)

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, and just 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!

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