Templates

From XPUB & Lens-Based wiki

Git of the day

git clone https://git.pzimediadesign.nl/repos/t4pp_03_templates.git


template based works

Madlibs02.jpg

Mad Libs - phrasal template word game


Artybollocks Generator

Spam


News and reports

Cut ups

Take a newspaper. Take some scissors. Choose from this paper an article the length you want to make your poem. Cut out the article. Next carefully cut out each of the words that make up this article and put them all in a bag. Shake gently. Next take out each cutting one after the other. Copy conscientiously in the order in which they left the bag. The poem will resemble you. And there you are—an infinitely original author of charming sensibility, even though unappreciated by the vulgar herd.

  • cut out each of the words that make up this article
  • Shake gently
  • take out each cutting one after the other


Words Made Flesh Florian Cramer - Chapter 3: Computation and Fragmentation

Markov Chains

  • Markov Chains are random generators with memory
  • Markov Chains analyze the transitions of an event (eg: the sequence of words in a text or the sequence of rainy and sunny days in weather), resulting in its transition tables
  • the transition tables of a text can be used to generate new texts
  • the generated sentences will tend to be grammatically correct, but semantically random (despite lacking natural language knowledge)
  • more input == more complex results

text generation programs using Markov chains

python install PyMarkovChain

install PyMarkovChain Python library

sudo pip install PyMarkovChain

if you dont have pip (python package manager) install it:

  • (debian/ubuntu)
    sudo aptitude install python-pip
  • (mac)
    brew install python-pip

Uncreative Writing - Kenneth Goldsmith

Uncreative-Writing-Goldsmith-Kenneth-EB2370004184746-e1360045972335.jpg


faced with an unprecedented amount of available text, the problem is not needing to write more of it; instead, we must learn to negotiate the vast quantity that exists. How I make my way through this thicket of information—how I manage it, how I parse it, how I organize and distribute it—is what distinguishes my writing from yours.

Far from this “uncreative” literature being a nihilistic, begrudging acceptance—or even an outright rejection—of a presumed “technological enslavement,” it is a writing imbued with celebration […] The wonderful rhythms of repetition, the spectacle of the mundane reframed as literature, a reorientation to the poetics of time, and fresh perspectives on readerliness

Goldsmith, Kenneth. 2011. Uncreative Writing: Managing Language in the Digital Age. New York: Columbia University Press.

Uncreative writing practices also provide a windows to the ways in which we write and are written in the current technological context. Examples of works that explore this aspect:

Filter Bubble


Image source:http://www.tracyparish.ca/2013/10/the-filter-bubble-eli-pariser-devlearn-sketchnote.html

The 2016 election took place under the spectre of a bubble. Not the subprime mortgage lending bubble that shaped the 2008 election, but the “filter bubble”. Tens of millions of American voters gets their news on Facebook, where highly personalized news feeds dish up a steady stream of content that reinforces users’ pre-existing beliefs.

Wong, Julia Carrie, Sam Levin, and Olivia Solon. 2016. “Bursting the Facebook Bubble: We Asked Voters on the Left and Right to Swap Feeds.” The Guardian, November 16, sec. US news. https://www.theguardian.com/us-news/2016/nov/16/facebook-bias-bubble-us-election-conservative-liberal-news-feed.

Democracy requires citizens to see things from one another’s point of view, but instead we’re more and more enclosed in our own bubbles. Democracy requires a reliance on shared facts; instead we’re being offered parallel but separate universes.

As Chris Palmer of the Electronic Frontier Foundation explained to me, “You’re getting a free service, and the cost is information about you. And Google and Facebook translate that pretty directly into money.”

Pariser, Eli. 2011. The Filter Bubble: What the Internet Is Hiding From You. London: The Penguin Press.



How Technology Disrupted the Truth – Podcast | News | The Guardian. 2016. Accessed November 21. https://www.theguardian.com/news/audio/2016/jul/22/how-technology-disrupted-the-truth-podcast.


Integration with HTML,CSS

  • HTML can provide structure to templates
  • CSS can provide (variable) style
  • WeasyPrint can generate PDFs and PNGS from HTML and CSS, and can be use as a Python library

cronjob

crontab -e