From e22544bca3d93deb70f4cf96dcb0dc35796c8f5e Mon Sep 17 00:00:00 2001 From: Henry Webster Date: Sat, 25 Jul 2026 19:42:56 -0500 Subject: Inner thoughts blog post; styling tweaks --- posts/2026-07-25_inner-thoughts.md | 47 ++++++++++++++++++++++++++++++++++++++ style.css | 8 ++++++- theme.scm | 2 +- 3 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 posts/2026-07-25_inner-thoughts.md diff --git a/posts/2026-07-25_inner-thoughts.md b/posts/2026-07-25_inner-thoughts.md new file mode 100644 index 0000000..b8966a6 --- /dev/null +++ b/posts/2026-07-25_inner-thoughts.md @@ -0,0 +1,47 @@ +title: Inner Thoughts Regarding an Insignificant Program +date: 2026-07-25 00:00 +--- +_All I want is the `discid` submission URL._ + +This thing I do, where I rake through `.bash_history` to find my `nix-shell` Python one-liner is ridiculous. +Perhaps I put it in `~/.local/bin`. +Then I could at least remember what to run. + +All I want is the `discid` submission URL _via a memorable script._ + +That won't work for me. +One thing I can't stand is stray Python environments marring my machine's spotless file system. +But I also can't be calling `nix-shell` all the time. +I suppose I could put it in my system config with `writePython3Bin`. + +All I want is the `discid` submission URL via a memorable script _built in my system configuration._ + +Wait, I'm always copy-and-pasting it from the terminal into the browser. +I should have the command pipe the URL into `xdg-open` so it pops right up. + +All I want is the `discid` submission URL via a memorable script built in my system configuration _that opens the page in my browser._ + +It works! +That wasn't hard at all. +This is a truly crafty set up... but pulling in all of Python is nagging me. +It's so simple, which makes it so suspect. +When I look at the C library the Python depends on, `libdiscid`, there's already an example C program that does almost exactly what I want. +I just have to shear it down a bit. + +All I want is the `discid` submission URL via a memorable script built in my system configuration that opens the page in my browser _with minimal dependencies._ + +I know the UNIX philosophy is "do one thing and do it well", but this is unreasonable. +Perhaps I can make it accept a command line argument that specifies what info from `libdiscid` to output. +There could be all sort of useful info in there. +Perhaps I can output to JSON and use `jq` to nab what I need. +Or use a simple key-value pairs and extract with `sed`. +Yes, that would be the `discid` printer of my dreams. +The one to rule them all! + +_All I want is to wring everything possible out of what `libdiscid` knows about the silly little polycarbonate platter currently in my drive and then I can finally..._ + +Never mind. + + diff --git a/style.css b/style.css index 5f6f774..846fa85 100644 --- a/style.css +++ b/style.css @@ -7,7 +7,7 @@ html { body { margin: 0 auto; padding: 0; - max-width: 720px; + max-width: 650px; font-family: system-ui, sans-serif; font-weight: normal; } @@ -65,6 +65,12 @@ img { figure { margin: 1rem 4rem; } +aside { + padding: 1rem; + border: 1px solid ButtonText; + background-color: ButtonFace; + font-style: italic; +} .footnotes { font-size: smaller; } diff --git a/theme.scm b/theme.scm index 1078b45..62d703c 100644 --- a/theme.scm +++ b/theme.scm @@ -100,7 +100,7 @@ ;; not optimal, btw (list-head items (min 5 (length items)))) ;; TODO only show if there are more entries than max? - (a (@ (href ,(post-uri post site prefix))) "See more.")) + (p (a (@ (href ,(post-uri post site prefix))) "See more."))) `(section (h2 ,(post-ref post 'title)) ;; TODO fill in datetime correctly ((header "updated " (time ,(date->string*(post-date post)))) -- cgit v1.3