Monday, June 14, 2021

Disrupting the Groundhogs

Groundhogs are taking taking over our yard, especially the strip of lawn between us and our neighbor in the front. We've been told that professional exterminators are expensive, so I thought I'd try digging down about 3 inches in order to disrupt the entry to their tunnels. Maybe they'll get the idea they're no longer welcome and find somewhere else to burrow.

The yard will look a bit torn up for awhile, but I see it as only a first step. Next step: Rodenticide, blocks of which I'll shove into the their holes.

If anything, it's good exercise.

Tuesday, June 01, 2021

David Bowie – the Verbasizer – Mac Terminal Code

The Verbasizer was a digital version of the cut-up technique that writers William Burroughs and Brion Gysin had been using for decades. The process involved cutting up a piece of text with an eye toward recombining the words into new and unexpected structures.
It was a popular method among experimental writers but had fallen out of favor by the 1960s.
Bowie worked on the Verbasizer with Ty Roberts, who later co-founded Gracenote, an audio fingerprinting company. Bowie spent a lot of time taking bits of words from newspapers and other sources and then arranging them into lines of lyrics. He would cross out words that didn't fit to create the lyrics that ended up being on his final album.
I've written a few lines of code that do the same exact thing that David Bowie's Verbasizer did. My process in the following example was to copy the first five paragraphs of an article in today's New York Times about the drought in the West. I saved it in BBedit as a file called water.txt.

Through the marshlands along the Oregon-California border, the federal government a century ago carved a whole new landscape, draining lakes and channeling rivers to build a farming economy that now supplies alfalfa for dairy cows and potatoes for Frito-Lay chips.

The drawdowns needed to cover the croplands and the impacts on local fish nearing extinction have long been a point of conflict at the Klamath Project, but this year’s historic drought has heightened the stakes, with salmon dying en masse and Oregon’s largest lake draining below critical thresholds for managing fish survival. Hoping to limit the carnage, federal officials have shut the gates that feed the project’s sprawling irrigation system, telling farmers the water that has flowed every year since 1907 will not be available.

Some farmers, furious about water rights and fearing financial ruin, are already organizing a resistance. “Tell Pharaoh let our water feed the Earth,” said a sign erected near the nearly dry irrigation canal that would usually be flowing with water from Upper Klamath Lake in southern Oregon.

The brewing battle over the century-old Klamath Project is an early window into the water shortfalls that are likely to spread across the West as a widespread drought, associated with a warming climate, parches watersheds throughout the region.

In Nevada, water levels have dropped so drastically in Lake Mead that officials are preparing for a serious shortage that could prompt major reductions in Colorado River water deliveries next year. In California, Gov. Gavin Newsom has placed 41 counties under a state of emergency.

Then the magic: I ran the following code in Mac Terminal. The code creates a word list from the file, randomizes the words, arranges the words in six columns (the Verbasizer was in six columns), and then combines it all into a single paragraph.
Here's the text you can copy:

awk '{for(w=1;w<=NF;w++) print $w}' water.txt > water2.txt
cat water2.txt | perl -MList::Util=shuffle -e 'print shuffle();' >randomlist.txt
paste -d " " - - - - - - < randomlist.txt >water3.txt
sed 's/$/ /' water3.txt > water4.txt
cat water4.txt | tr -d '\n' > water5.txt

I ended up with the following files in my Poetry folder:
You can run the program as many times as you wish to get different results. Here's what one of my results looked like.

drawdowns parches for usually into counties levels has associated carved West that now potatoes the dropped to water next en financial and Oregon’s channeling preparing alfalfa sprawling emergency. telling southern farming that Pharaoh thresholds flowed a farmers, largest our are a drought, could resistance. fearing Gov. 41 under that the state rivers Earth,” a California, drought Lake conflict window Project “Tell salmon the limit flowing Oregon. to brewing water for water region. drastically the in a century-old Oregon-California century at for and fish been fish shortage are nearly and Klamath croplands so needed chips. federal Project, border, with to survival. be ruin, Klamath cows Gavin nearing for canal let widespread federal would the system, the will officials near project’s heightened the said Frito-Lay prompt Lake water dry landscape, build Hoping year that be government farmers battle sign whole Mead with dairy shortfalls In River a irrigation of Colorado dying marshlands shut new every point draining organizing the Newsom The a that the Nevada, and in lake the early likely impacts of is about that from have 1907 feed are year’s rights over has the managing a placed below to stakes, along with across carnage, a The since local economy the the irrigation cover that available. officials In an water water year. historic this Some spread the as warming extinction a have but feed on ago deliveries has and masse supplies Through Klamath not watersheds serious in a draining have reductions throughout climate, long major the the already Upper erected critical the water gates lakes furious

Friday, May 28, 2021

I Am Now Retired

The last month has been insanely busy with putting an end to the school year and putting an end to my teaching career. It's been a great twenty years, but time moves on, and so do we. For twenty years I've been a teacher. But now it's time to say I'm officially retired. As of today, I will spend the rest of my life doing what I want to do, not what some employer wants me to. Twenty years is long enough for anyone.

Two weeks ago, my colleagues threw me a retirement luncheon, with gifts and cash and good cheer. Having your career honored in such a way is touching and something I'll always cherish. (I didn't mean for that to sound like a platitude although it does.) When an employee's time at a company comes to an end, it's only right to throw them a party, right?
Last week, my second period students surprised me before class with a bag of Starbucks coffee, balloons, and a card. They all wrote messages in the card, and I spent the rest of the day smiling.
After cleaning out my room, I tossed the detritus of my career into the dumptster. I'm sure this photo is a metaphor for something. I'm just not sure what yet.

Monday, January 04, 2021

Typing on My Underwood

I love typing on old typewriters, especially the big desk models with elite typeface. (Elite is 12 characters per inch.) The music I'm listening to is by Pat Martino.

This Underwood typewriter is the same model formerly used by the writer Tom Wolfe.