Rey in the morning
Working in a new room today, windows facing a yard full of birds...
(UPDATE two hours later; this time with intended image maybe?)
What I read in February 📚
The New Voices of Science Fiction, Hannu Rajaniemi (ed.) Some good stories, some not as good. A week later, nothing stands out as memorable. Wait, yes. “Secret Life of Bots” by Suzanne Palmer. Won a Hugo (as did a couple others I think). That one I remember being really fun.
That’s it. I’m mired in an Alistair Reynolds book that I haven’t decided to give up on, yet, and the free copy of Borne I got, which is okay, but requires sort-of slower, closer reading. Feels more like work than fun, so I don’t do it as often.
11ty and podcasting
It didn't take a huge amount of work to add a podcast template to that base. The result is my extremely-just-a-hobbyist, simple take on a podcast platform -- hc-podcast.
The 'base-blog' has an RSS helper already installed, so most of the work of adding a podcast feed to it comes from this
pod.njk template, and data from two sources:
A bunch of one-time data at the top of the feed that comes from
_data/metadata.json. Like the RSS helper code, that JSON file was already in the starter; I just added a bunch of podcast-specific key-value pairs. You'd obviously customize these for your own podcast.
Per-episode data from markdown files. I've cleverly saved them in a subfolder called
episodes. At the bottom of
pod.njk, there's a loop that goes through
collections.podcasts. In practice what this means is that 11ty will look for markdown files with a
podcasts tag, and create an XML entry for each.
I have no idea what industry-standards exist around podcast XML files. Googling the subject results in a cesspool of spam. I created my template after skimming a couple of feeds from well-known podcast studios.
My image(s) and audio files are hosted on a $5/mo Linode server (that also does a bunch of other dumb things) and would not likely stand up to high traffic. I'm sure there are a thousand solutions out there, for this issue, but I'm just building a goof for myself with free or nearly-so tools. (If you do a global repo search for
porknachos.com, you'll see the files I'm hosting externally. As of this writing, it's just a 1600px square image for the overall feed and an audio file for each markdown episode.)
Because I'm not actually a podcaster, I needed some sample audio. I wanted something that I could generate routinely, so I dipped into an older goofy project and found a way to make it even weirder, thanks mostly to
ffmpeg and Mac OS's
say command. The way I'm creating the episodes might be the subject of a different post; in any event, anyone giving this repo a try would clearly come to it with their own audio files.
Which reminds me that the biggest headache here is that you have to create the markdown files more-or-less by hand. Type in all the frontmatter (title, keywords, etc), and get the audio's byte-length and duration from the Finder (or whatever). I've automated this for myself, in connection with the autogenerated content, but I haven't incorporated a more-generic form into this repo, for auto-generating the markdown files and their frontmatter.
And which reminds me, if you delete all my markdown files and restart before you add any of your own, 11ty will crash because
collections.podcasts is empty. I stubbed my own toe on that, once or twice.
What I read in January 📚
homolife!" Okay, sure. That's how it works. Yep. (If you read it as a right-wing "this is what will happen if you don't vote for Goldwater!", it's still f-ing stupid.)
Somehow that's all I read but I feel like I've been going non-stop all month. I'm 33% into another A. Reynolds monster (the sequel to Blue Remembered Earth) it's good but a bit of a slog. Maybe that's it.
I've censored myself from posting maybe 3 things today, because trivial humor seems inappropriate. I try not to watch the news (after years @ the Capitol, I have a sort of PTSD re: politicians) but I know enough about when to keep my mouth shut.
(IOW: "Gold Dust Woman" being stuck in my head for 2 days is not actually "the worst.")Conversation
I never feel more like a real web maker-type than when things go totally wrong... like when an SSL cert fails overnight, and cascades into 10 other failures. ("But
you automated that, right?" Yeah, I did... for like 13 out of 14 sites. That last one, hidden in the default
.conf file, it bit me good.)
TIL how to make SQL-like queries on data in Google Sheets, which is making my anxiety-driven finance-reviewing much weirder.
Give your chart a "NamedRange" name (Data | Named Ranges), then you can call QUERY() which takes 2 arguments: the NamedRange (in my case "Spending") and the query you want (in my case this is selecting the dollar amount in column F from any row where the store name @ column B is my liquor store).
I'm SUMming that QUERY and dividing by a certain number of days (@ B24) to get a "$AMOUNT spent at $STORE per-day" value.
=SUM(QUERY(Spending, "select F where B = 'ABC Liquors'"))/B24
(It's not good.)Conversation
I'm not saying it's convenient, but it's a neat trick I didn't realize until today: If you have an AppleTV and a Mac, you can hit New Movie Recording (cmd-opt-N) in QuickTime, switch the input to your AppleTV (click the little chevron next to the red Record button to change this), do the same for the microphone... and you can record the A/V of whatever's on the TV.
I sort-of assume there's a flag somewhere that keeps you from recording HBO & movie rentals? It's sorta analog-hole-exploiting (but digital??), otherwise? I just tested it with a YouTube channel.Conversation