Brian Wisti

Brian Wisti ( he / him / his )

Caffeinated, occasionally crafty geek in Seattle. I like FOSS, drawing, and yarn.

A blog, of sorts. I keep quick notes and longer posts here. Mostly about computers and code, but sometimes drawings and assorted crafts. And other stuff. It's a plain old fashioned personal site.

Naming things in tmux

In which I sort out which tmux session is which

Read on…

Using the Webmention.io API

Using the Webmention.io API

Fetching my IndieWeb mentions with HTTPie and Requests

Read on…

I added this note from org mode

Trying an experiment with setting up a capture template so ox-hugo can add short notes to the site.

I built up the ox-hugo capture sample to get my preferred SECTION/YEAR/MONTH/STUB folder layout.

(defun org-hugo-note-capture-template ()
  "Returns `org-capture' template string for new site note."
  (let* ((title (read-from-minibuffer "Title: "))
         (fname (org-hugo-slug title))
         (year (format-time-string "%Y"))
         (month (format-time-string "%m")))
    (mapconcat #'identity
               `(
                 ,(concat "* TODO " title)
                 ":properties:"
                 ,(concat ":export_hugo_bundle: "
                          (mapconcat #'identity (list year month fname) "/"))
                 ":export_file_name: index"
                 ":end:"
                 "%?\n")
               "\n")))

Then the important bits of my capture template…

(use-package org
  :custom
  (org-capture-templates
   (quote ("s" "Site")
          ("sn" "Note" entry
           (file+olp+datetree bmw/org-site "Notes")
           (function org-hugo-note-capture-template)))))

Eventually I got it right, and C-c c s n brought me to this buffer, where I’m editing a note that’s already longer than I usually intend these to be.

* Notes
:properties:
:export_hugo_section: note
:end:
** 2020
*** 2020-10 October
**** 2020-10-24 Saturday
***** TODO I added this note from org mode                        :emacs:
:properties:
:export_hugo_bundle: 2020/10/i-added-this-note-from-org-mode
:export_file_name: index
:end:

Trying an experiment: setting up a [[https://orgmode.org/manual/Capture-templates.html][capture template]] so [[https://ox-hugo.scripter.co/][ox-hugo]] can add short notes to the site.

Still loads to figure out — for example, how will I get cover images working? But at least I proved to myself that it works.

Back to fixing the broken IndieWeb mentions, which is why I opened my editor a couple of hours ago.

Checking out Playwright for Python

While automation is important, end-to-end tests are prone to being slow and flaky. To fix this, we released Playwright in JavaScript earlier this year and have enabled thousands of developers and testers to be successful at end-to-end testing. Today, we’re bringing the same capabilities to Python.

Almost made it to bed at a reasonable time until a random search showed me this. I’d been glancing enviously at Playwright earlier this year. Configurable, cross-browser testing? Nice. Nicer than Selenium, anyways.

BRB rewriting all my browser tests.

Local WP is nice, but no.

I just figured why you give me so much trouble.
Fezzik — The Princess Bride

Playing with an instance of WordPress on my computer by way of Local and I’m at a loss. What’s that big friendly-looking thing with the unobtrusive buttons? Where are the 150 things I need to remember for a single post?

Well, they’re probably in the part where I’d need to make sure everything is up to date. With the static site once it’s up I don’t have to care about it any more.

My brain hurts.

I felt like Fezzik.

Well, I haven’t fought one person for so long. I’ve been specialised in groups, battling gangs for local charities, that kind of thing.
Fezzik — The Princess Bride

Only — you know. Smaller. Not so intimidating.

You use different moves when you’re fighting half a dozen people, than when you only have to be worried about one
Fezzik — The Princess Bride

Nah, I’ll stick with my overcomplicated site workflow for now.