Regex Glitch Poetry
Weird little regular expressions hiccup turned the sentence “the ceiling is high; really nice here; and cold.” into:
1 |
it's tit's hit's eit's it's dit's oit's oit's rit's it's iit's sit's it's dit's ait's mit's pit's ;it's it's iit's it's lit's oit's vit's eit's it's tit's oit's it's eit's ait's tit's ;it's it's ait's nit's dit's it's tit's hit's eit's it's rit's oit's oit's mit's it's bit's eit's cit's oit's mit's eit's sit's it's git's rit's ait's yit's .it's |
OCR From Photographs
A quick preview of a longer process: running Optical Character Recognition (OCR, essentially converting images of text into actual text) on photographs, many of which do not include any text at all. Below is the result, run on about 25 images:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
L 2w §§.§;§s~5 ,L_§;L wvmfigxb we, «usmswm E ugxwfim L L .L L . L. L .%L.v§RwEf% figs»: gfifiz 2&3 3L,..aL.,: a%L.$ §a§£ L L .L L L LL . ,5 wxmacfiaswmm mmow. . LL. LEwz9,.§EE»:§mmnw &¢2.§..E-,~cauu§ Lao ..m L . $L§.3.x;%m£ §. a§,a.i...L«b aw .L.w.»w§L «Q 30.. a,E8L.w3 afivuf in. my QZL L . , L .n.?2a.:L3w.mm..S6wn.:s.w L L . L .. a L.:.&£._.afi.w§.%éamaaxv _ afifi. L . «.m§L...mm,a. L%mmLLw,LLww.Z L wmwr.y.,§:..v L at . mfi.mJL 4.? xv81,_.T.u£zI1III.m:.8.m«u£!Ii§nm11.1iH ....TI.m§«.9I..amua.Da.m..lUuuAu.lmK.u Egg! as an w..nSHea£u..nc£a.T8afia£ul1wulDamu£w§uaau£iaJ1ulz., . §fi£diu1SanSfinanm£.?unhu!uwlBmiu£Im8fl3am:_ T w£~P&MQuum§ai3u£QmuHulmflNflIUuwnlmmDm3NuuflIiixw».iuh.u4w»W.§»., §fiu£&2a.nEnm3fiE»x£ulu3@¢nSmum.!uu4mflu£Im.u3aa§.1n.mI. 2§a§muns£35E§m.§.aB...£maI3i§uwB§a&»aa3£u. uwitwaawmfiau um$nwB%&.:muIu73uvOu£%@m?l.2un§&3u£ ilfva m.mI.&~d. $.elam§%1m5£wNm%E..§uanwvnIi&nfim 355u££o:¢w.uP.U 2:. dnmueum. A w...w...1».w..wa.. «.;«.....a... .. E...m.Lm, Mun.» a4.rdufimvN.mM m .«¢¢.¢.wm.mZ3§.«l%_.4~MoEGuumAufi.nb mumyuuh my mflwwmvwqm ._wrAB..7 fit, ufl W/EH9” fl..A..mm.,..m wuauunm mflumv .u...m«.X?m Bkaamumflm mm mm... uudmfi hufiunnw Wu wwmm5nwWfiaamflmAnunbum..cu«mu¢a.E—onEou ,..¢Hw~.wwL«wwzz....M./J Nfiwm 4 1/umwwwu ,._F..11 «mu «my Gcdmwufl mu emu mama.“ E_§, 3.0 ,.£mT.o$. ..~ ,. wnox, WM ,.»..um WW1, ~u:N5.t»Eu.§.tuan~ omaswé mow afluawwu mam _.,fiZ-,u..£..m .5 Ouwnvmm Iv: V; ‘« . *9? . - I I Q ' 3 . ., V» I3. ' ‘X91 . I K , < ‘D. \:. an -~ ,. 4. \ z staflio 3:. 2.. IL . . ‘.22 . 3 3,33-..».. . ». .=oi_:: 3 .::_..,x.. w lIt.:Iv...|€.A!vt M ...mm.~.n\8.u<: <.:_.:3; . 3<u:E. 5» fr. .|..t'|.\:.c|..s .1 1 . , 3%. 32 535 .4 5.3 .W‘.xIv3eB4o.¢na_.m..., §3~..§ _ 3.”. 3. 2.5.. 3 a......? an ._oE.; ;..\|i19s\stf..\,:;..f .5. 5!: 311%. :..«:S. :2 \.u=.....‘:....§.§. a§.s an n 8 .<uu..2§ .2 .. . ,. ,, ~ |
Source code to come shortly, though it’s a pretty simple automation written in Python and using Tesseract.
Wireless Networks: Hoboken to Glen Ridge
A list of wireless network names, gathered on NJ Transit between Hoboken and Glen Ridge, New Jersey, USA:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
057D54 07B408691242 07FX08034671 07FX10059282 08FX01070057 08FX04005731 08FX05009589 08FX06050446 08FX11013211 09FX09048391 09FX09061285 09FX11089795 101 102 |
Notes from “Virtual Muse”
Some notes from “Virtual Muse: Experiments in Computer Poetry” by Charles Hartman (1996). Page numbers are indicated in parentheses.
- “A neuron has no mind” (3)
- The idea of nonsense as different from meaningless, quoted from Lewis Carroll’s Jabberwocky:
“‘Twas brillig, and the slithy roves/Did gyre and gimble in the wabe” - “The syntactical system of English, which Carroll leaves intact while disrupting the vocabulary, carries a far greater proportion of the meaning of a sentence than we’re usually aware of.” (19)
- “Understanding isn’t additive. Meaning doesn’t accumulate word by word as we trudge through a sentence. It precipitates, as rain precipitates out of air under the right conditions… Reading takes place within a context, and the context is present at the reading because the reader brings it along… Sense is never absolutely continuous; there are irreducible gaps. Poetry tends to make us more aware of the gaps than does conversation or political speeches.” (21)
- “Language is a ‘structure of differences’ [referring to Ferdinand de Saussure] in the sense that words don’t get their meaning directly from referring to things in the world. They get their meaning from their relations to other words… Many words have meaning only because of their relations within that system: which, the, only, and so on.” (26)
- For a long while I have been interested in outmoded, cumbersomely-created books that, due to time and technology, are relics: the concordance is such a text. “The classic literary computer project is the concordance: a list of all the words that appear in a certain work (or all the works by a certain author or, in the grandest concordance so far, the Thesaurus Linguae Graecae, the whole of classical Greek literature). The list is arranged in alphabetical order for easy reference, preferably with an indication of the context for each appearance of the word.” (38)
- Generative linguistics (41)
- The “Travesty” program: “A text, such as a passage from a novel, is among other things a set of characters. It consists of so many e’s, so many f’s, and so on. It’s also a set of character pairs (so many ex’s, so many ch’s, etc) and of triplets (the’s, wkw’s, etc), and so on… From [a frequency table], another text can be constructed that shares statistical properties, but only those properties, with the first one. That’s what Travesty does. It produces an output text that duplicates the frequencies of n-character groupds in the input text. To put the same thing the other way, it thoroughly scrambles its input text but only down to level n.“
n=1: “Dengethe pr: o ls h thee. wicach Ye thur. obbug lesila thicateronoisthate Thrit O athe are. t is: winsict kerprurise, y m? the o mor sty hetseatheancathensous.”
n=9: “Dead flies cause the ointment of the apothecary to send forth a stinking savour: so doth a little folly him that is in reputation for wisdom and honour. A wise man’s heart is at his right hand; but a fool’s hear at his left.”
(54-55) - “Now I had my program; but what to do with it? The first thing I tried was the easiest. I let it run for a while and then combed through the output looking for interesting chunks I could string together. But this approach held onto a residue of my earlier false assumption. I was still treating the computer as a retarded or psychotic human brain from which I could hope for flashes (however far apart) of ordinary or extraordinary lucidity.” (82)
- Apparently, Roget’s “Thesaurus” has a “synopsis of categories” which contains “all the possible things to talk about in an orderly outline.” (94)
- “How do words mean when we put them into new contexts? Under what conditions does the meaning web tear apart? What meanings can words make (or can we make of them) when we disturb their normal relation to each other?” (104)
- “It’s worth making a three-way distinction among the random, the arbitrary, and the contingent… If we get rid of contingency entirely, replacing it with purely random or arbitrary linguistic acts, we get genuine gibberish. The point, rather, is to introduce calculated bits of mechanized anarchy into the language, put the results back into the contingent world where language lives, and see how the dust settles.” (109)
Some Kind of Adobe Error
Found in, printed via some odd process and left in the printer:
ERROR: ioerror (COMMAND TYPE: operatortype)
OFFENDING COMMAND: readstring "readstring"
OPERAND STACK: (4 total entries)
===top of stack===
{
-filestream-
-mark-
-savelevel-
DICTIONARY STACK: (11 total entries)
===top of stack===
<unknown>
Adobe_AGM_Image
SharedFontDirectory
Adobe_CoolType_LVMFonts
Adobe_CoolType_GVMFonts
Adobe_CoolType_Core
Adobe_AGM_Core
Adobe_AGM_Utils
userdict
globaldict
systemict
EXECUTION STACK: (17 total entries)
===top of stack (top 10 entries shown)===
{ pop }
---@exec---
{
{ --cleartomark-- --restore-- }
{ --currentdict-- /_Filters --known-- { _Filters AGMING_flushfilters } --if-- --end-- }
-filestream-
{ --disableinterrupt-- }
--@aborted--
{ --clearinterrupt-- --disableinterrupt-- { } --exch-- 0 --exch-- --put-- --clear-- }
--@aborted--
NEXT 320 CHARACTERS AFTER ERROR:
-- No More Data Available --
Bruno Jakob
Bruno Jakob’s “Philosophy Escaped (Invisible Painting)” made from Zurich snow water, thoughts, energy, and thoughts on primed green paper; 1999.
js Poetry
Some JavaScript poetry from today’s Google Doodle source code:
1 |
else if (!a.La && (!a.Ka && !a.ha && !a.Ma) |
and…
1 |
Pa = "function" == typeof Ra ? Ra() : Ra; |
Via: Google (make it easier to read using jsbeautifier.org)