Published

Single `mv` command to change all filenames in directory to lower case and replace spaces

This is the mv command I use to change all of the filenames in my current directory from mixed case to lowercase and replace spaces with underscores.

for file in *; do mv "$file" `echo $file | tr ' ' '_' | tr '[:upper:]' '[:lower:]'`  ; done

The ; semicolons indicate the end of each line of this command. To break it down:

  1. for file in * loops over all the files in the directory. You could change the * wildcard to something like *.jpg if you wanted to only target JPG files.
  2. do mv "$file" instructs the system to move each file in the loop to the location that immediately follows.
  3. `echo $file | tr ' ' '_' | tr '[:upper:]' '[:lower:]'` is the location we’re moving the file to. We use the tr “translate” command to replace spaces with underscores, and then again (separated by the | pipe character) to replace uppercase letters with lowercase letters. Then we echo that translated filename.
  4. done lets the system know that the loop is done.

I use this occasionally to prep files for use on the web when working on a static site, one that isn’t hooked it up to a CMS.

Published

What it was like being a poll worker

Circular enamel pin for the November 3, 2020 General Election in San Francisco

Being a poll worker was great. I think a lot of that had to do with the people I was working with all day (very nice), the precinct I was in (comfortable), and how busy it was (super quiet). It was a good way to be introduced to it, all in all. And I got a shiny new pin. 🙂

We really didn’t have that many people come in to vote, likely due to the big push for Vote By Mail. The vast majority of people were coming by to drop off their ballot. The longest the line ever got was about 5 people deep in the morning, then by about 11am or so there was almost no line at all. It was pretty chilly, unusually windy out and we had to have the windows and doors open all day for ventilation, but that wasn’t too bad.

There were only two frustrating points.

Read more

Published

Current listening: “My Finest Work Yet” by Andrew Bird

Currently listening to My Finest Work Yet by Andrew Bird. “Bloodless” is particularly on the nose.

Well, the best lack all conviction
And the worst keep sharpening their claws
They’re peddling in their dark fictions
While what’s left of us
Well, we just hem and we haw

And it’s so damn slinky, catchy.

LP from Loma Vista Records | Apple Music | Spotify

Published

Thoughts on LAMP vs JAMstack content management systems

Chris Coyier recently published a CSS-Tricks post titled “WordPress and Jamstack”. It’s a great rundown of the pros and cons, and I’m in agreement on the whole.

The most important point for my own use cases is from the section titled “CMS and End User UX”.

Sometimes, we developers are building sites just for us (I do more than my fair share of that), but I’d say developers are mostly building sites for other people. So the most important question is: am I building something that is empowering for the people I’m building it for?

I really enjoy working on JAMstack (JavaScript, APIs, Markup) sites, the dev environment can be spectacular. It’s wonderful to not worry about deployment, HTTPS, caching. BUT. I haven’t yet found a JAMstack content management system (CMS) that I love, so it’s not something I feel super comfortable reaching for in the majority of my client work.

Read more

Published

“the mystic mouth / leaves me so defted”

sweet love, sweet love
love

my throat is gurgling
the mystic mouth
leaves me so defted
defted

my throat is gurgling
the mystic mouth
leaves me so defted

and the deep black nightingale
turned willowy

and the deep black nightingale
turned willowy

by love’s tossed treatment
berefted

The lyrics to John Cage’s “Four Walls: Act I, Scene VII”. I couldn’t find the lyrics many places online, so here they are.

Been listening to Symbol by Susumu Yokota a lot recently, finally took the time to look up a few of the songs he sampled. The voice in “music from the lake surface” is particularly haunting and weird, turns out it’s this piece.

“Four Walls” premiered in Steamboat Springs, CO in 1944, and this particular piece was originally sung by Julie Harris. The lyrics are a poem by Merce Cunningham.

I wonder which recording he sampled… It’s my favorite that I’ve heard so far, am not that in to many of others I’ve heard. Though I do think that the version from the 1989 album by Richard Bunger and Jay Clayton is pretty good (Apple Music, Spotify).


Related: I purchased John Cage: A Mycological Foray published by Atelier Editions a while back and it’s gorgeous. I really should send the postcards inside, but I’ll probably hang on to them. Need more pleasurable things to look at during the day-to-day right now.


Related to related: Listen to Mushroom Haiku, excerpt from Silence (1972/69) on UbuWeb. Browse the rest of Ubu’s John Cage artefacts.

Published

Link: Cyberfeminism Index

Mindy Seu’s Cyberfeminism Index is now online. From the New Museum’s First Look:

In Seu’s telling, the term “cyberfeminism,” which came into usage in the early 1990s, “was meant as an oxymoron or provocation, a critique of the cyberbabes and fembots that stocked the sci-fi landscapes of the 1980s.” As a provocation, the term has certainly succeeded: over decades, it has brought feminisms and technologies into conflict and conversation, while the term itself has been contested, reimagined, debunked, and expanded. Cyberfeminism Index does not attempt to resolve these contradictions, but to honor the multiplicity of practices that might be gathered under this imperfect umbrella, particularly making efforts to center non-Western and nonbinary approaches.

Commissioned by Rhizome, developed by Angeline Meitzler. On larger screens, you can click the items to curate and download your own selection. Check it out.

cyberfeminismindex.com