Calendars:Networked Media Calendar/Networked Media Calendar/15-03-2011 -Event 1: Difference between revisions
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
* [http://www.eff.org/issues/acta ACTA] | * [http://www.eff.org/issues/acta ACTA] | ||
* [http://www.ipred.org/ IPRED] | * [http://www.ipred.org/ IPRED] | ||
== walk.py == | |||
<source lang="python"> | |||
from git.repository import Repository | |||
r = Repository("./dataset") | |||
path = "google/video.google.com/support/bin/answer.py?answer=31704" | |||
path = path.split("/") | |||
def treewalk(tree, path): | |||
if not path: | |||
return tree | |||
if path[0] in tree: | |||
child = tree[path[0]] | |||
return treewalk(child, path[1:]) | |||
import codecs | |||
seen = {} | |||
count = 0 | |||
noname = None | |||
for r in r.rev_list(): | |||
b = treewalk(r.tree, path) | |||
if b and b.name not in seen: | |||
seen[b.name] = True | |||
print r.shortname | |||
count += 1 | |||
fpath = "out/%06d.html" % count | |||
print "\t", b, fpath | |||
o = codecs.open(fpath, "w", "utf-8") | |||
o.write(b.contents) | |||
o.close() | |||
</source> |
Revision as of 17:52, 15 March 2011
11-18 | Nicolas Maleve (Michael and Aymeric)- Thematic Project
- http://constantvzw.org
- http://etraces.constantvzw.org
- Michael Moss Lecture Such quantities of sand!
- http://www.hatii.arts.gla.ac.uk/staff/mm.html
Crucially, systemic ambiguity is as much about the production as it is about the deciphering of signs.
Becoming able to read the shifting balance and distribution of forces in fluctuating patterns of uncertain signs is one thing.
Being able to produce such signs, to turn them to your advantage, is another.
— Andrew Goffey / Matthew Fuller
walk.py
from git.repository import Repository
r = Repository("./dataset")
path = "google/video.google.com/support/bin/answer.py?answer=31704"
path = path.split("/")
def treewalk(tree, path):
if not path:
return tree
if path[0] in tree:
child = tree[path[0]]
return treewalk(child, path[1:])
import codecs
seen = {}
count = 0
noname = None
for r in r.rev_list():
b = treewalk(r.tree, path)
if b and b.name not in seen:
seen[b.name] = True
print r.shortname
count += 1
fpath = "out/%06d.html" % count
print "\t", b, fpath
o = codecs.open(fpath, "w", "utf-8")
o.write(b.contents)
o.close()