{"id":644,"date":"2016-03-25T19:04:19","date_gmt":"2016-03-25T19:04:19","guid":{"rendered":"http:\/\/www.zoebachman.net\/itp\/?p=644"},"modified":"2016-03-25T20:38:58","modified_gmt":"2016-03-25T20:38:58","slug":"rwet-midterm","status":"publish","type":"post","link":"http:\/\/www.zoebachman.net\/itp\/?p=644","title":{"rendered":"RWET: Midterm"},"content":{"rendered":"<p>I like form. I find constraint to be an interesting mechanism for producing art, producing results we often could not have come up with consciously. That being said, the use of form has often directly related to ideas of personal expression and emotion, a way of structuring the subconscious or revealing an underlying architecture.<\/p>\n<p>While thinking about poetic form, the relation between logic and nature I kept hitting on integer sequences in math. The most well known is the Fibonacci sequence, the one where the next number in the series is created from the previous two.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/9\/93\/Fibonacci_spiral_34.svg\/2000px-Fibonacci_spiral_34.svg.png\" alt=\"\" width=\"1107\" height=\"701\" \/><\/p>\n<p>The Fib sequence is particularly revered because not only does it come up in lots of different mathematical explorations but in nature as well. Golden spirals\/ratios are seen in seed patterns, leaf placement and even faces. It&#8217;s an example of the underlying logic of what may seem like random chaos.<\/p>\n<p>I went through a lot of different ideas about what the source text could be, initially wanting to play with ideas of logic and emotion. But as I kept referring to Fibonacci as Gib I thought, what if it was specifically fibs, lies, that the program altered? A quippy play on words, fibbing fibbers and the fibs they tell&#8230;in fib sequence?<\/p>\n<p>Some months back On The Media did a <a href=\"http:\/\/www.wnyc.org\/story\/on-the-media-2015-12-04\/\" target=\"_blank\">whole show<\/a> about Political Lies. Politicians often get away with political lies because people don&#8217;t bother to fact check and then when they do, the first-impression, the lie, is still stronger than the truth. The lie is what people remember.<\/p>\n<p>So I was curious about what kind of poetry could emerge using the Fibonacci sequence on some of the recent political speeches, as we are currently in the heat of the presidential primaries.<\/p>\n<p>CODE, ATTEMPT 1:<br \/>\nI started by writing out my ideas for code in plain english<\/p>\n<p><a href=\"http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-24-at-3.55.12-PM.png\" rel=\"attachment wp-att-654\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-654\" src=\"http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-24-at-3.55.12-PM-300x216.png\" alt=\"Screen Shot 2016-03-24 at 3.55.12 PM\" width=\"300\" height=\"216\" srcset=\"http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-24-at-3.55.12-PM-300x216.png 300w, http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-24-at-3.55.12-PM-768x554.png 768w, http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-24-at-3.55.12-PM-1024x738.png 1024w, http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-24-at-3.55.12-PM-1200x865.png 1200w, http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-24-at-3.55.12-PM.png 1676w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nI then realized that I should use lists, so I went back to the list code examples and played around with different examples that I thought would be helpful. After a few tries I came up with this code:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/zoebachman\/87e574eb04e6132fa955.js\"><\/script><\/p>\n<p>I showed the poems to my friend and it was pretty amazing how easy it was to guess the candidates from just a few words.<\/p>\n<p>Ted Cruz, Remarks to the RedState Gathering in Atlanta, Georgia (August 8, 2015)<br \/>\n (from: http:\/\/www.presidency.ucsb.edu\/ws\/index.php?pid=114768)<\/p>\n<p>Wow!<br \/>\n God<br \/>\n God<br \/>\n bless<br \/>\n RedState.<br \/>\n thank<br \/>\n that<br \/>\n unbelievably<br \/>\n Let<br \/>\n of<br \/>\n much<br \/>\n in<br \/>\n of<br \/>\n their<br \/>\n the<br \/>\n the<br \/>\n Supreme<\/p>\n<p>Donald Trump, Remarks Announcing Candidacy for President in New York City (June 16, 2015)<br \/>\n http:\/\/www.presidency.ucsb.edu\/ws\/index.php?pid=110306<\/p>\n<p>Trump:<br \/>\n Wow.<br \/>\n Wow.<br \/>\n Whoa.<br \/>\n That<br \/>\n some<br \/>\n people.<br \/>\n you<br \/>\n It&#8217;s<br \/>\n wonderful<br \/>\n like<br \/>\n big,<br \/>\n in<br \/>\n beating<br \/>\n from<br \/>\n of<br \/>\n now.<br \/>\n we<br \/>\n all<br \/>\n protect.<br \/>\n Member:<\/p>\n<p>Bernie Sanders, Remarks Announcing Candidacy for President in Burlington, Vermont<br \/>\n (May 26, 2015)<br \/>\n http:\/\/www.presidency.ucsb.edu\/ws\/index.php?pid=110221<\/p>\n<p>Thank<br \/>\n you<br \/>\n you<br \/>\n all<br \/>\n very<br \/>\n for<br \/>\n and<br \/>\n that<br \/>\n as<br \/>\n as<br \/>\n and<br \/>\n also<br \/>\n state<br \/>\n Super-PACs<br \/>\n change,<br \/>\n game,<br \/>\n median<br \/>\n us<br \/>\n senior<\/p>\n<p>Clinton, Remarks in a Campaign &#8220;Kickoff&#8221; Speech in New York City (June 13, 2015)<br \/>\n http:\/\/www.presidency.ucsb.edu\/ws\/index.php?pid=110267<\/p>\n<p>Thank<br \/>\n you!<br \/>\n you!<br \/>\n Oh,<br \/>\n thank<br \/>\n all!<br \/>\n so<br \/>\n is<br \/>\n you.<br \/>\n friends,<br \/>\n be<br \/>\n America,<br \/>\n the<br \/>\n America:<br \/>\n had<br \/>\n repairs&#8230;<br \/>\n powerful<br \/>\n politics.<\/p>\n<p>I was slightly frustrated that for the sparseness of the text, many of the included words were &#8220;useless&#8221; or boring. I remembered that <a href=\"http:\/\/nicole.pizza\/itp\/2016\/02\/26\/rwet-week-4-pythong-song\/\" target=\"_blank\">Nicole<\/a> had a similar problem in an earlier assignment, which she solved through creating a list of &#8220;boring words&#8221; and if the code ran into one of these words to skip it. I asked Nicole if I could look at her code and went about adapting aspects to work with mine.<\/p>\n<p>After running into some bugs (that in the end had little to do with that part of the code), I was able to get most of the &#8220;boring words&#8221; out. Except for the ones attached to punctuation.<\/p>\n<p>Zach and I sat together and tried to use the .strip(&#8216;&#8221;,.;:?!&#8217;) method that he had in his code. We ran into some issues of the possibilities of certain data types, like lists vs strings. With some moving around of different for loops we were eventually able to get rid of all the punctuation except for apostrophes and dashes. Offending words such as &#8216;that&#8217;s&#8217; were added to the boring words text file to ensure they would not be present in the final text.<\/p>\n<p>Here&#8217;s the code:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/zoebachman\/12eecc199b82ec98f008.js\"><\/script><\/p>\n<p>and a couple of examples.<\/p>\n<p>**ok, my code started freezing up in terminal. I was able to parse one text, but after that the program keeps freezing. When I quit the program it says it&#8217;s having a problem with line 25, where the boring words are.<\/p>\n<p>But honestly &#8211; looking at the following Cruz example using the same sample text as above:<br \/>\nWow<br \/>\nGod<br \/>\nGod<br \/>\nbless<br \/>\nRedState<br \/>\nthank<br \/>\nextraordinary<br \/>\nyou<br \/>\nconservative<br \/>\nyou&#8217;re<br \/>\nWow<br \/>\nyou&#8217;re<br \/>\nyou&#8217;re<br \/>\nThank<br \/>\nconsists<br \/>\nhow<br \/>\nthink<br \/>\nemailed<\/p>\n<p>The lack of punctuation gives for a very different reading.<br \/>\n(Also I&#8217;m wondering if you&#8217;re should be on the boring list because 3 occurrences?!)<\/p>\n<p>I decided to add back in exclamation and question marks to the punctuation and ran some more text, including op-eds in addition to speech transcripts.<\/p>\n<p><script src=\"https:\/\/gist.github.com\/zoebachman\/ede3d1e77e16cf61dea2.js\"><\/script><\/p>\n<p>Here&#8217;s one of Trump&#8217;s speech in Dallas,<br \/>\nhttps:\/\/www.facebook.com\/MattWalshBlog\/posts\/1040241006009009<\/p>\n<p>Wow<br \/>\nAmazing<br \/>\nAmazing<br \/>\nAmazing<br \/>\nthank<br \/>\nSo<br \/>\nyou<br \/>\nTeleprompters!<br \/>\nso<br \/>\nold<br \/>\ncall<br \/>\nI<br \/>\ndo<br \/>\nDallas<\/p>\n<p>And the Cruz speech is vastly improved from the last iteration, thanks to the return of exclamation marks:<\/p>\n<p>Wow!<br \/>\nGod<br \/>\nGod<br \/>\nbless<br \/>\nRedState<br \/>\nthank<br \/>\nextraordinary<br \/>\nyou<br \/>\nconservative<br \/>\nyou&#8217;re<br \/>\nWow!<br \/>\nyou&#8217;re<br \/>\nyou&#8217;re<br \/>\nThank<br \/>\nconsists<br \/>\nyou<br \/>\nWow!<br \/>\nWe<br \/>\nhome<br \/>\nbless<\/p>\n<p>Or this one from Virginia,<\/p>\n<p>Ted Cruz, Remarks Announcing Candidacy for President at Liberty University in Lynchburg, Virginia (March 23, 2015)<br \/>\n(from: http:\/\/www.presidency.ucsb.edu\/ws\/index.php?pid=109774)<\/p>\n<p>Good<br \/>\nsee<br \/>\nsee<br \/>\nyou<br \/>\nGood<br \/>\nyou<br \/>\nyou<br \/>\nyou<br \/>\nyou<br \/>\nsee<br \/>\nGood<br \/>\nyou<br \/>\nGod<br \/>\nPresident<br \/>\nuniversity<br \/>\nso<br \/>\nyou<br \/>\nItalian<br \/>\ndrank<br \/>\nchildren<br \/>\nShe<br \/>\npioneering<\/p>\n<p>THOUGHTS:<\/p>\n<p>In the end, the poems conform to the proposed form of using the Fibonacci sequence.<\/p>\n<p>However,<\/p>\n<p>I do with that they were visually stronger. Part of the reason I like the Fibonacci sequence is it&#8217;s exponential growth, seen in the Golden Spiral.<\/p>\n<p>I tried to think through some ways that I could achieve this, but kept getting caught up in equating integers and words or strings (irregardless of Python types!). How does one add together words in somewhat sensical ways? Is it possible to parse a script when the numbers evolve exponentially so quickly that it&#8217;s difficult to equate to string characters or words?<\/p>\n<p>Perhaps this is where the human hand could better come into play. Possibly it would be punching up the visual aspect. Zach and I joked about placing them in a spiral formation.<\/p>\n<p>Also &#8211; why is it taking so long for the program to run in terminal?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I like form. I find constraint to be an interesting mechanism for producing art, producing results we often could not have come up with consciously. That being said, the use of form has often directly related to ideas of personal &hellip; <a href=\"http:\/\/www.zoebachman.net\/itp\/?p=644\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[122],"tags":[153,154,155,126,156],"class_list":["post-644","post","type-post","status-publish","format-standard","hentry","category-rwet","tag-fib","tag-fibonnaci","tag-generator","tag-poetry","tag-rwet"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=\/wp\/v2\/posts\/644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=644"}],"version-history":[{"count":10,"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=\/wp\/v2\/posts\/644\/revisions"}],"predecessor-version":[{"id":656,"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=\/wp\/v2\/posts\/644\/revisions\/656"}],"wp:attachment":[{"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=644"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}