User:Silviolorusso/prototyping/chitchatwithpetraandmarie: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
Line 78: Line 78:
print wordsOp
print wordsOp
</source>
</source>
And here's a little demo of how it works
<span style="color:rgb(255,255,255);">Going</span> <span style="color:rgb(255,255,255);">to</span> <span style="color:rgb(255,255,255);">Disappear.</span> <span style="color:rgb(254,254,254);">Disappear.</span> <span style="color:rgb(253,253,253);">Disappear.</span> <span style="color:rgb(252,252,252);">Disappear.</span> <span style="color:rgb(251,251,251);">Disappear.</span> <span style="color:rgb(250,250,250);">Disappear.</span> <span style="color:rgb(249,249,249);">Disappear.</span> <span style="color:rgb(248,248,248);">Disappear.</span> <span style="color:rgb(247,247,247);">Disappear.</span> <span style="color:rgb(246,246,246);">Disappear.</span> <span style="color:rgb(245,245,245);">Disappear.</span> <span style="color:rgb(244,244,244);">Disappear.</span> <span style="color:rgb(243,243,243);">Disappear.</span> <span style="color:rgb(242,242,242);">Disappear.</span> <span style="color:rgb(241,241,241);">Disappear.</span> <span style="color:rgb(240,240,240);">Disappear.</span> <span style="color:rgb(239,239,239);">Disappear.</span> <span style="color:rgb(238,238,238);">Disappear.</span> <span style="color:rgb(237,237,237);">Disappear.</span> <span style="color:rgb(236,236,236);">Disappear.</span> <span style="color:rgb(235,235,235);">Disappear.</span> <span style="color:rgb(234,234,234);">Disappear.</span> <span style="color:rgb(233,233,233);">Disappear.</span> <span style="color:rgb(232,232,232);">Disappear.</span> <span style="color:rgb(231,231,231);">Disappear.</span> <span style="color:rgb(230,230,230);">Disappear.</span> <span style="color:rgb(229,229,229);">Disappear.</span> <span style="color:rgb(228,228,228);">Disappear.</span> <span style="color:rgb(227,227,227);">Disappear.</span> <span style="color:rgb(226,226,226);">Disappear.</span> <span style="color:rgb(225,225,225);">Disappear.</span> <span style="color:rgb(224,224,224);">Disappear.</span> <span style="color:rgb(223,223,223);">Disappear.</span> <span style="color:rgb(222,222,222);">Disappear.</span> <span style="color:rgb(221,221,221);">Disappear.</span> <span style="color:rgb(220,220,220);">Disappear.</span> <span style="color:rgb(219,219,219);">Disappear.</span> <span style="color:rgb(218,218,218);">Disappear.</span> <span style="color:rgb(217,217,217);">Disappear.</span> <span style="color:rgb(216,216,216);">Disappear.</span> <span style="color:rgb(215,215,215);">Disappear.</span> <span style="color:rgb(214,214,214);">Disappear.</span> <span style="color:rgb(213,213,213);">Disappear.</span> <span style="color:rgb(212,212,212);">Disappear.</span> <span style="color:rgb(211,211,211);">Disappear.</span> <span style="color:rgb(210,210,210);">Disappear.</span> <span style="color:rgb(209,209,209);">Disappear.</span> <span style="color:rgb(208,208,208);">Disappear.</span> <span style="color:rgb(207,207,207);">Disappear.</span> <span style="color:rgb(206,206,206);">Disappear.</span> <span style="color:rgb(205,205,205);">Disappear.</span> <span style="color:rgb(204,204,204);">Disappear.</span> <span style="color:rgb(203,203,203);">Disappear.</span> <span style="color:rgb(202,202,202);">Disappear.</span> <span style="color:rgb(201,201,201);">Disappear.</span> <span style="color:rgb(200,200,200);">Disappear.</span> <span style="color:rgb(199,199,199);">Disappear.</span> <span style="color:rgb(198,198,198);">Disappear.</span> <span style="color:rgb(197,197,197);">Disappear.</span> <span style="color:rgb(196,196,196);">Disappear.</span> <span style="color:rgb(195,195,195);">Disappear.</span> <span style="color:rgb(194,194,194);">Disappear.</span> <span style="color:rgb(193,193,193);">Disappear.</span> <span style="color:rgb(192,192,192);">Disappear.</span> <span style="color:rgb(191,191,191);">Disappear.</span> <span style="color:rgb(190,190,190);">Disappear.</span> <span style="color:rgb(189,189,189);">Disappear.</span> <span style="color:rgb(188,188,188);">Disappear.</span> <span style="color:rgb(187,187,187);">Disappear.</span> <span style="color:rgb(186,186,186);">Disappear.</span> <span style="color:rgb(185,185,185);">Disappear.</span> <span style="color:rgb(184,184,184);">Disappear.</span> <span style="color:rgb(183,183,183);">Disappear.</span> <span style="color:rgb(182,182,182);">Disappear.</span> <span style="color:rgb(181,181,181);">Disappear.</span> <span style="color:rgb(180,180,180);">Disappear.</span> <span style="color:rgb(179,179,179);">Disappear.</span> <span style="color:rgb(178,178,178);">Disappear.</span> <span style="color:rgb(177,177,177);">Disappear.</span> <span style="color:rgb(176,176,176);">Disappear.</span> <span style="color:rgb(175,175,175);">Disappear.</span> <span style="color:rgb(174,174,174);">Disappear.</span> <span style="color:rgb(173,173,173);">Disappear.</span> <span style="color:rgb(172,172,172);">Disappear.</span> <span style="color:rgb(171,171,171);">Disappear.</span> <span style="color:rgb(170,170,170);">Disappear.</span> <span style="color:rgb(169,169,169);">Disappear.</span> <span style="color:rgb(168,168,168);">Disappear.</span> <span style="color:rgb(167,167,167);">Disappear.</span> <span style="color:rgb(166,166,166);">Disappear.</span> <span style="color:rgb(165,165,165);">Disappear.</span> <span style="color:rgb(164,164,164);">Disappear.</span> <span style="color:rgb(163,163,163);">Disappear.</span> <span style="color:rgb(162,162,162);">Disappear.</span> <span style="color:rgb(161,161,161);">Disappear.</span> <span style="color:rgb(160,160,160);">Disappear.</span> <span style="color:rgb(159,159,159);">Disappear.</span> <span style="color:rgb(158,158,158);">Disappear.</span> <span style="color:rgb(157,157,157);">Disappear.</span> <span style="color:rgb(156,156,156);">Disappear.</span> <span style="color:rgb(155,155,155);">Disappear.</span> <span style="color:rgb(154,154,154);">Disappear.</span> <span style="color:rgb(153,153,153);">Disappear.</span> <span style="color:rgb(152,152,152);">Disappear.</span> <span style="color:rgb(151,151,151);">Disappear.</span> <span style="color:rgb(150,150,150);">Disappear.</span> <span style="color:rgb(149,149,149);">Disappear.</span> <span style="color:rgb(148,148,148);">Disappear.</span> <span style="color:rgb(147,147,147);">Disappear.</span> <span style="color:rgb(146,146,146);">Disappear.</span> <span style="color:rgb(145,145,145);">Disappear.</span> <span style="color:rgb(144,144,144);">Disappear.</span> <span style="color:rgb(143,143,143);">Disappear.</span> <span style="color:rgb(142,142,142);">Disappear.</span> <span style="color:rgb(141,141,141);">Disappear.</span> <span style="color:rgb(140,140,140);">Disappear.</span> <span style="color:rgb(139,139,139);">Disappear.</span> <span style="color:rgb(138,138,138);">Disappear.</span> <span style="color:rgb(137,137,137);">Disappear.</span> <span style="color:rgb(136,136,136);">Disappear.</span> <span style="color:rgb(135,135,135);">Disappear.</span> <span style="color:rgb(134,134,134);">Disappear.</span> <span style="color:rgb(133,133,133);">Disappear.</span> <span style="color:rgb(132,132,132);">Disappear.</span> <span style="color:rgb(131,131,131);">Disappear.</span> <span style="color:rgb(130,130,130);">Disappear.</span> <span style="color:rgb(129,129,129);">Disappear.</span> <span style="color:rgb(128,128,128);">Disappear.</span> <span style="color:rgb(127,127,127);">Disappear.</span> <span style="color:rgb(126,126,126);">Disappear.</span> <span style="color:rgb(125,125,125);">Disappear.</span> <span style="color:rgb(124,124,124);">Disappear.</span> <span style="color:rgb(123,123,123);">Disappear.</span> <span style="color:rgb(122,122,122);">Disappear.</span> <span style="color:rgb(121,121,121);">Disappear.</span> <span style="color:rgb(120,120,120);">Disappear.</span> <span style="color:rgb(119,119,119);">Disappear.</span> <span style="color:rgb(118,118,118);">Disappear.</span> <span style="color:rgb(117,117,117);">Disappear.</span> <span style="color:rgb(116,116,116);">Disappear.</span> <span style="color:rgb(115,115,115);">Disappear.</span> <span style="color:rgb(114,114,114);">Disappear.</span> <span style="color:rgb(255,255,255);">255</span> <span style="color:rgb(255,255,255);">times.</span>

Revision as of 18:22, 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

And here's a little demo of how it works

Going to Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. Disappear. 255 times.