User:Silviolorusso/prototyping/chitchatwithpetraandmarie: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 43: Line 43:


using urls  www.one.com www.day.com www.i.com www.was.com
using urls  www.one.com www.day.com www.i.com www.was.com
== Disappearance, repetition and consume ==
I wrote a bit of code that does what we were discussing in class: each word in a text become more transparent each time is repeated. I was thinking at the world of information and news. I was thinking that the meaning of the words is consumed by their repetition. Think of #OccupyWallStreet, think of what will happen with SOPA.
Here's the script if you wanna play with it.
<source lang="python">
#!/usr/bin/python
import re
text = "The text that has to be processed."
words = text.split()
wordsOp = ""
checklist = {}
for words in words:
    # split the word from punctuation
    word = re.findall(r'\w+',words)
    # make the word lowercase
    wordLow = word[0].lower()
    # check if the word is in the dictionary, if the word is there count -1,  if not there add the word to the checklist and count 255(maximum opacity)
    if wordLow in checklist:
        checklist[wordLow] -= 1
    else:
        checklist[wordLow] = 255
    # append words with opacity (HTML)
    wordsOp = wordsOp + "<span style=\"color:rgb(" + str(checklist[wordLow]) + "," + str(checklist[wordLow]) + "," + str(checklist[wordLow]) + ");\">" + words + "</span> "
# print the new string
print wordsOp
</source>

Revision as of 18:21, 19 January 2012

Chitchat with Marie, Petra and Silvio | 19/01/12

Text-based reworking, databases and stuff

  • "greatest" on wikipedia
  • putting together and create new meaning
  • politician saying I'm right
  • 10 questions
  • ideal city
  • vincent/ wikipedia project
  • student at udeka google alphabet
  • suggestions
  • metahaven
  • collection of sources:
  • news portals
  • Thank you for the add.
  • impoting text into a layout
  • Onomatopee book
  • buy a word in order to have adds
  • nike captcha


++++

in a text each word connected to its definition.


what is behind a word?

recursive process into the same text



what a word can link to?


using urls www.one.com www.day.com www.i.com www.was.com


Disappearance, repetition and consume

I wrote a bit of code that does what we were discussing in class: each word in a text become more transparent each time is repeated. I was thinking at the world of information and news. I was thinking that the meaning of the words is consumed by their repetition. Think of #OccupyWallStreet, think of what will happen with SOPA.

Here's the script if you wanna play with it.

 
#!/usr/bin/python

import re

text = "The text that has to be processed."
words = text.split()
wordsOp = ""
checklist = {}

for words in words:
    # split the word from punctuation
    word = re.findall(r'\w+',words)
    # make the word lowercase
    wordLow = word[0].lower()
    # check if the word is in the dictionary, if the word is there count -1,  if not there add the word to the checklist and count 255(maximum opacity)
    if wordLow in checklist:
        checklist[wordLow] -= 1
    else:
        checklist[wordLow] = 255
    # append words with opacity (HTML)
    wordsOp = wordsOp + "<span style=\"color:rgb(" + str(checklist[wordLow]) + "," + str(checklist[wordLow]) + "," + str(checklist[wordLow]) + ");\">" + words + "</span> "

# print the new string 
print wordsOp