User:Albert Jongstra/duplicators/THEMATIC
< User:Albert Jongstra | duplicators
Revision as of 20:33, 23 September 2010 by Migratebot (talk | contribs) (Created page with "== EVERYONE CAN MAKE A BOOK ==
A fanzine is created from user generated
pages through a computer installation at Wolfart
projectspaces.
The participant had to make a deci...")
EVERYONE CAN MAKE A BOOK
A fanzine is created from user generated pages through a computer installation at Wolfart projectspaces.
The participant had to make a decision to participate because of the height of the webcam.
When the webcam in the installation detected motion a picture is printed out on paper and
saved as a digital copy. The printing process is used as a visible feedback for the actions
of the participants. Each participant created a realtime single page for this fanzine.
The analog & digital fanzine contains a collection of pictures from visitors during
the ‘Rotterdam Is Hard’ expo at the WLfrt Projectspaces on the19th of March 2010.
DIGITAL OUTPUT
Epub file
ANALOG OUPUT
Printed booklet
CODE USED FOR MOTION & PRINTING
import time, os
#from os import system
folder = "/home/eee"
keeps_folder = "/home/eee/Desktop/keep"
lastprint = None
while True:
# check the folder for files
files = os.listdir(folder)
# sort them by time
sortlist = []
for f in files:
fp = os.path.join(folder, f)
if os.path.isfile(fp): # no folders!
tstamp = os.stat(fp).st_mtime
sortlist.append((tstamp, fp))
sortlist.sort()
if len(sortlist) >= 2: # only when it's not empty
(tstamp, lastfile) = sortlist[-2]
# if diff(time of most recent file - last print) > SOME_MIN_TIME:
if lastprint == None or ((tstamp - lastprint) > 30):
# print the most recent
#cmd = 'lpr ' + lastfile
os.system("lpr " + lastfile)
# os.system(cmd)
# move it to a "keeps" folder
cmd = 'mv \"'+ lastfile +'\" \"'+keeps_folder+'\"'
os.system(cmd)
# record lastprint as the timestamp of what we just printed
lastprint = tstamp
# erase all the files
pat = os.path.join(folder, "*.jpg")
cmd = "rm "+pat
print cmd
os.system(cmd)
# record the current time
time.sleep(1)
#for i in images:
# # print i
# tstamp = time.localtime(os.stat(i).st_atime)
# di.append((tstamp, i))
# # tstamp = time.asctime(tstamp)
# # break
#di.sort()