đŸ Archived View for gemini.circumlunar.space âș users âș adiabatic âș scrawlspace captured on 2020-10-31 at 00:53:19. Gemini links have been rewritten to link to archived content
âĄïž Next capture (2020-11-07)
-=-=-=-=-=-=-
This is scrawlspace. I scrawl in this space. Do not expect coherence or permanence here.
I âneeded to clear my headâ, or so I thought, so I decided to take a walk.
It was a decently long one â 6 miles (10 kilometers). I paused at the starting point after walking about half that and decided to make another loop around. I kind of thought I could use it.
Iâm glad I went for a walk, and Iâm glad I went for the full two loops.
What I did _not_ expect afterwards is to better describe the walk as ârestoring my executive functionâ.
In response to:
gemini://carcosa.net/journal/20201025-drafts-branching.gmi
I donât have a gemlog (yet), but if I wanted to write posts that would automatically get picked up and published Iâd probably just put the draft in a directory off to the side that doesnât get uploaded or otherwise monitored. Then, when itâs done, just move it into wherever it should be so it can get picked up by sftp/rsync/the index-file generator.
I use Git for my capsule as well, but I canât imagine using more than one branch unless I wanted to radically restructure everything and break loads of links.
On second thought, I imagined it. Multiple branches might be a useful tool for managing the deployment and rescinding of a great April Foolâs joke.
iPad gaming is better than Switch gaming because the screenshots are all in PNG (not JPEG) and you donât have to dig them out of a teeny SD card thing in the back of the device after shutting it off.
Itâs Saturday. Do you know if your capsuleâs TLS certificate is expired?
If youâre not automatically getting your TLS certificates renewed like Letâs Encrypt has you do, do you have a manual to-do set to pester you a month before your 1- or 3- or 5-year certificate expires?
I ask because I was checking out the usual CAPCOM and Spacewalk feeds and, like, three of the links I checked out had TLS-type errors in amfora. Unlike a lot of Gemini clients, amforaâs pretty strict about not letting TLS funny-business pass.
Relevant links:
Background:
gemini://tanelorn.city/~bouncepaw/gemlog/md-sucks.gemini
gemini://perplexing.space:1965/2020/re-why-markdown-sucks.gmi
A while ago I wanted to make a structured document. More structured than what I could get out of a giant Markdown file (I wanted a deeply nested <section>/<h1>-style, and I canât get that with Markdown).
My favorite editor for many things is Visual Studio Code. It has Emmet support, which will let you type a pretty-much-CSS bit of text and get nicely-structured HTML out of it. VS Code, with the right plugin or three, also has decent Prettier support, which will happily re-indent your HTML nicely (so you donât have to). I donât do reformat-on-save for Prettier, but I hit â„âF to run Prettier fairly frequently when Iâm editing anything that can be reformatted by it.
If you want your documentâs version of Prettier to be stable, youâll need to basically install it into the root of the directory associated with your HTML document. Having a containing folder for an HTML document isnât an issue for me (how else am I going to have it in a Git repository?), but thereâs now a `node_modules` directory sitting in an otherwise clean-feeling directory. Itâs one thing to have a boxed-up Lovecraftian horror like a node_modules directory in a mostly-JavaScript programming project or tucked away in `/usr/local/` or `~/Library/Application Support/`, but itâs another thing to have it sitting there in a _very_ otherwise-Spartan directory, all wrapped up with a garishly large bow.
VS Code wonât auto-curl your quotes like BBEdit will, but thereâs nothing keeping you from typing in BBEdit and occasionally handling the re-formatting of your elements in VS Code. (Tip: in BBEdit, hold down `Control` and press your (double) quote key to get the opposite behavior, whether your quote marks are curly-by-default or straight-by-default.)
So, yeah. Kinda not awful if you have loads of modern tools close at hand. Then again, if youâre writing a big file like this in Markdown, you probably have somewhat different tools, like a live-preview that reloads your changes every time you save the file, so youâre probably also only getting by with a handful of helpful annoyances no matter what youâre writing in.
Initial time estimate: 4 hours, give or take.
Actual time taken: 11 minutes.
Maple bacon onion jam
Broken user query tests
Background:
https://github.com/lunaryorn/mdcat
https://github.com/charmbracelet/glow
https://github.com/sharkdp/bat
Somehow, I ended up with mdcat(1) on my laptop and glow(1) on my desktop.
Not sure if I should have both, one, or neither on my computers. bat(1) already seems to do what `mdcat` does, and probably better. Typing `glow` isnât part of my muscle memory, though. Whatâs more, I have trouble remembering the name of the darn thing for the times when I _do_ want pretty-printed Markdown in a Terminal window.
Update: I actually had mdcat(1) on both my machines. Out the airlock it went, because bat(1) is better.
(was: Re: I am the preëminent server of WebP in Geminispace)
Previously:
gemini://nytpu.com/gemlog/2020-10-13.gmi
(also, scroll down to âI am the preĂ«minent server of WebP in Geminispaceâ)
I used lossy WebP on some The Legend of Zelda: Breath of the Wild screenshots (originally JPEG, much to my dismay) and they looked OK. The space savings was impressive.
Then, many months later, I looked again, more closely, flipping back and forth between the original and the lossy-WebP-recompressed version, and the WebP was clearly inferior. I remember someone else on the Internet said âwell, waddya expect if you use a pile of video compression techniques on a still image?â and that sounded like a reasonable take. (IIRC lots of VP6? 8? compression techniques are used in lossy WebP.)
At any rate, Iâm a teeny bit surprised someone would use imagemagick(1) to compress WebP, but thatâs probably a handy swiss-army knife to a lot of people. I wonder what kind of lossless compression ratios nytpu (linked above) would get if `cwebp -z 9` were run on all the PNGs.
I canât say Iâm a huge fan of WebP, mainly because my desktop browser of choice and OS of choice wonât support it until I can be convinced that macOS Big Sur wonât be a raging dumpster fire. <picture>/<source> makes it usable in HTML, but thereâs no widely-available fallback mechanism for CSS yet and âbackground hero images where nobody really needs to care how good they lookâ is where WebP really shines.
Replies:
nytpu: âWebP Revisited (a little more in-depth this time)â
Also:
carcosa.net: â2020-10-13: Re: webp on Geminiâ
I ran
wget -np -w 1 --mirror [some site with a bunch of tiny files]
`-np` means âdonât ascend up into a parent directoryâ, `-w 1` means âwait 1 second in between requestsâ, and `--mirror` turns on a bunch of options thatâre good to have on if you want to mirror a directory tree.
Total wall clock time: 2d 7h 5m 47s Downloaded: 173919 files, 2.6G in 1h 25m 17s (539 KB/s)
Two days of downloading, but only an hour and a half of downloading. Hence the title of this post.
Now I need to learn and memorize (or write down) the magic incantation that will allow me to skip downloading all of Apacheâs sorted-every-which-way file-listing pages. You know, the ones with URLs like âindex.html?C=D;O=Dâ.
Iâd almost want to re-download all those files again, if only to see how much faster itâd be.
Background:
GUS: Gemini Universal Search statistics
I went to gus.guru and had a look at the stats there. It had this line in it:
7 - image/webp
I happily serve up WebP-encoded images. I wonder if Iâm responsible for all of them.
> ag webp âŠ
Hm, I canât count. Computers are better at that than I am, anyway.
> ag webp | wc -l 11
OK, the unpublished templates, the upload script, and the colophon verbiage account for all of the difference between 7 and 11.
I am literally the sole server of WebP in Geminispace.
If youâre looking to be Old on the Internetâą one day, you can say âI remember when all the WebP on Geminispace was losslessâ.
Background:
Aglio, an API Blueprint-to-HTML converter
Snowboard, an API Blueprint toolkit
Iâve been wanting to play around with API Blueprint for quite a while. This past Friday night (yes, yes, I know) I finally got a chance to mock up a simple API with it.
Itâs my kind of thing, but the tooling around it is mediocre (at least for the tools Iâve tried). Aglio seems like one of the most popular to-HTML converters for API Blueprint, but for some reason itâs not outputting variable bits in URLs (things in braces). Snowboard is also a thing, but itâs in a Docker container whichâŠIâm still not _happy_ about, even if Docker is a totally reasonable, fine choice for this sort of thing.
My lukewarm attitude towards API Blueprint reminds me of my attitude toward DocBook. Sure, DocBook can provide you with a fantastically rich documentation source that can be converted into a bunch of different formats, but if you donât like the default DSSSL and XSL transformation stylesheets, youâre not going to like what you get out of DocBook. And I didnât like the stylesheetsâ output, and I didnât have enough manpower to any of them into something Iâd like (unlike, say, the GNOME Project).
Background:
https://commitizen-tools.github.io/commitizen/
Finally got a chance to try commitzen. My evaluation:
git rm .cz.toml brew uninstall commitizen
Prior reading:
gemini://going-flying.com/~mernisse/10.gmi
My hot take: Given current auto-update technology, a personal server in every home is a widespread security nightmare. Only a tiny handful of nerds vet the devices they allow on their home network, and most IoT devices are running some flavor of Linux or whatever thatâs vulnerable to heaven alone knows what sort of exploit.
Also, âsend some company some money every month to host your stuffâ is a pretty decent idea, whether itâs a web host or VPS or Heroku. That way, someone else handles the patching and upgrades and hardware faults.
Oh, and basically none of these homebrew solutions seem to have cracked the âI want to share photos of my kids with just their grandparents and a few of my friendsâ problem. Facebook, Google, and Apple have all solved that mostly. Anyone can share anything to everybody pretty easily, but sharing to only a handful of people on the planet is much, much more difficult to get right and easy and not subsidized by ads.
I kind of resent blogs.
One of the things Iâve noticed is that itâs difficult to get your work noticed in Gemspace if you donât have some kind of Atom feed. In order to have one of those, youâre probably going to have to have some kind of automatically-generated feed. Whatâs the best way to have an automatically-generated feed of anything? Having a blog.
I donât want to have to set up a blog or a blog workflow or a static-site generator. I burned a couple days on generating an Atom feed from a YAML-formatted JSON Feed feed and I want those days of my life back. On the other hand, having a single-file blog was kind of a neat idea and I might actually use it in the future.
The weird part? I used to be a big fan of Atom. Now its insistence on titles grates. I think Iâd rather patch Spacewalk to handle JSON Feeds in addition to Atom feeds. Unlike CAPCOMâ , I donât think I need to do anything weird to have it handle nonexistent titlesâŠbecause it doesnât seem to display titles anyway.
â : Boy, that was a confusing name when I first saw it in Geminispace.
gemini://sakurina.flounder.online/20201006r.gmi
I canât reach out and tell you that Iâve responded to your post, so I guess weâll see if you notice this. this gemlog doesnât have a feed of any kind, so if you see it, I guess content *can* be noticed without an atom feed.
Guess I shouldâve read the Spacewalk README/source code a little bit more slowly and thoroughly, then. Thanks!
â