Skip to content

Accessibility. I love it, even though for me it's just simple things like not having to touch a mouse when navigating a graphical UI.

We should really pay more attention to all kinds of accessibility. It's great.

Webmention counters:

  • 0
  • 💬0
  • 🔄0
  • 🔖0

Okay, apparently using reranking might be a much better idea, since it's more accurate and the workflow, from my vague understanding of it after reading a few Reddit comments, fits my workflow more.

Webmention counters:

  • 0
  • 💬0
  • 🔄0
  • 🔖0

Was playing around with vector embeddings today. (Side note: Turns out my blog has duplicate posts! Maybe I need to clean up the database someday.)

Got an idea for a quick LLM enhancement that I could build into Bowl: I guess I could call it "vibe-tagging".

Compute embeddings over the post's content (maybe with a vision-capable embedding model), and then compute embeddings over common tags used in posts before (I vaguely remember Micropub having a ?q=category extension that one could use for that) and propose several tags that are above the similarity threshold (cosine similarity?).

The good thing about it is since embedding models are tiny, this could be potentially ran entirely on-device, without a need for an external API. (To be completely honest, Smart Summary could also run on-device with a small enough model, but I reached for the Ollama API out of habit to simplify handling model deployment and use GPU acceleration.)

Webmention counters:

  • 0
  • 💬0
  • 🔄0
  • 🔖0

Um, actually, Kittybox is a dynamic web server, but the HTML it serves as the post content (i.e. the text you are reading right now) is a string stored in the database as part of the MF2-JSON object.

This means that to inject a style in a post, I need to somehow hash the style block and then communicate the CSP hash to the web-server (maybe as a technical property on the HTML blob inside the MF2-JSON I store in the database?).

Parsing the HTML is the hard part, but I guess as I already have a parser for Webmention processing, I could reuse the same parser for that. Storing the hashes somewhere and injecting them into the post is also not easy, as I'd have to combine two CSP headers into one (subsequent CSP headers can only restrict the policy). This should probably be done on middleware layer, I guess.

In other words, I'm lazy! ✨ (For now. Until it hurts too much and I'll bite the bullet)

Webmention counters:

  • 0
  • 💬0
  • 🔄0
  • 🔖0

Wait, how would you make client certificate auth work on a subpath, if it works on a layer below HTTP? One thing that comes to mind is making client certs optional and doing a 401/403 on pages that should require auth, but that should absolutely be doable with a liberal application of subroutes in Caddy. (The server will still request certificates, because it doesn't know which page you're visiting until the TLS handshake completes, but since the server indicates which roots it trusts, this shouldn't be a problem for random visitors — their user agent will skip the prompt if there are no suitable certificates.)

Webmention counters:

  • 0
  • 💬0
  • 🔄0
  • 🔖0

Oh, finally remembered that I can put resize set width command into a for_window clause to get some of my GTK apps resized to a small sidebar on my display. Bowl looks much nicer on a small display; mainly because only the post composer widget is implemented, and a two-column layout that I'm thinking of will require a few more things the app lacks for now.)

Now, if only Sway included a positioning command that puts windows relative to the top-right or bottom-right corner...

(I suppose that is not hard to implement; I was able to implement it using an external script, but an external script incurs a delay that native commands do not. Thus it would be beneficial to patch Sway to support corner-relative window moves.)

Webmention counters:

  • 0
  • 💬0
  • 🔄0
  • 🔖0

TIL that HTML forms with method="POST" and an absent action (meaning the form POSTs to the same URL it was loaded from) do not clear the query string, allowing to pass through the query string that was initially passed to the page of a form.

Webmention counters:

  • 0
  • 💬0
  • 🔄0
  • 🔖0

Random thought: perhaps modern LLM interfaces are oversimplified, which leads users to unnecessarily overestimating their capabilities (such as ascribing "intelligence" or "sentience" to the models).

Perhaps a good LLM interface should expose its guts and details so it is obvious how it works.

Deliberate friction or dizzying complexity might be sobering for the end user a little.

Webmention counters:

  • 0
  • 💬0
  • 🔄0
  • 🔖0

Oh wow. Turns out Bandcamp's billing system accepts an overseas card I happen to have. Isn't that nice?

Webmention counters:

  • 0
  • 💬0
  • 🔄0
  • 🔖0

I really need to take a break from programming, but the ideas keep flowing into my head and I find it hard to stop.

Webmention counters:

  • 0
  • 💬0
  • 🔄0
  • 🔖0

Had a fight with the Content-Security-Policy header today. Turns out, I won, but not without sacrifices.

Apparently I can't just insert <style> tags into my posts anymore, because otherwise I'd have to somehow either put nonces on them, or hash their content (which would be more preferrable, because that way it remains static).

I could probably do the latter by rewriting HTML at publish-time, but I'd need to hook into my Markdown parser and process HTML for that, and, well, that's really complicated, isn't it? (It probably is no harder than searching for Webmention links, and I'm overthinking it.)

Webmention counters:

  • 0
  • 💬0
  • 🔄0
  • 🔖0

Oh, it looks like refresh tokens actually work in Bowl. Nice. I had to add some tweaks to the detection functions, but, oh well...

Webmention counters:

  • 0
  • 💬0
  • 🔄0
  • 🔖0

I really need to make something to syndicate to Bluesky. It seems wonderful to have a new alternative to the now-dead Twitter, but I still want to post to my blog first.

ATProto feels a tiny bit overengineered. It was obviously built to have a semi-centralized reach layer, and that shows in its design. Plain HTML pages and/or microformats2 are a much simpler format, and at times richer than Bluesky's default Lexicon.

I want to gain benefits of both.

Webmention counters:

  • 0
  • 💬0
  • 🔄0
  • 🔖0

Mozilla is playing with fire. I don't like their latest "AI" pivot. AI doesn't exist and never will, and whatever is called AI right now is not it. And is not worth using.

Seriously, "AI text" "detectors"? They don't really work that well. They sometimes also misidentify input texts written by someone not proficient with language as LLM output.

Webmention counters:

  • 0
  • 💬0
  • 🔄0
  • 🔖0