AI-powered image descriptions on my blog
Für Blogs ist Mastodon denkbar ungeeinget.
Wer schon ein Wordpress hat, könnte das ActivityPub Plugin aktivieren, das ist wohl der einfachste Weg.
Sonst einfach mal auf #fediverse.party schauen und ein Häckchen bei "Blog and Publishing" machen.
#WriteFreely und #GoBlog schauen interessant aus und werden auch noch aktiv entwickeln. Ich selber verwende #Friendica als Software "für alles" - damit kann man auch sehr gut lange formatierte Artikel erstellen.
It’s not a winter wonderland out here, but with Christmas and winter coming soon, maybe a little snow on my blog isn’t a bad idea. I’ve just programmed a snow animation for another project and thought I could reuse the code in the form of a simple GoBlog plugin.
My first passkeys implementation
It took me so long to find the cause of a memory leak in GoBlog. I thought it was smart to use a cache for prepared database statements. But I didn’t read the documentation and didn’t know that prepared statements need to be closed when they are no longer needed to free up the allocated resources. I finally fixed it by removing the prepared statement cache altogether. Less code, fewer problems in the future, and the cache wasn’t much of an improvement anyway. I also learned about the usefulness of memory profiling.
It seems like I finally fixed a memory leak in GoBlog yesterday, that sometimes made my blog crashing. How? I used Anthropic’s new Claude 3.5 Sonnet to write me a new HTTP compression middleware that compresses HTTP responses using zstd
or gzip
when possible. I needed to instruct a few changes and modify some code lines as the initial implementation was wrong, but thereafter, it finally seems to work better than my original implementation that probably leaked some objects anywhere. Claude also helped me to write unit tests (which I adapted a bit, though) and increase code coverage.
Extended content warning
https://jlelse.blog/thoughts/2024/03/extended-content-warning
Today, I finally finished the reworked MicroPub endpoint in GoBlog using the indielib library by Henrique. It killed about 400 lines of my spaghetti code.
And I also improved the system prompt of the AI summary plugin a bit. First, I tried to write the system prompt myself, but GPT-3.5-Turbo just didn’t want to do what I tasked it to do. So I asked Bing Chat (GPT-4) to help me with the task of writing a good system prompt. In my tests it looked more promising then. Let’s hope for better AI summaries on my blog posts in the future.
Now that I have vacation, it seems like my motivation to work on GoBlog (and blog) is back a bit…
Colin just reminded me, that it’s the third GoBlog birthday of this blog! I am still genuinely content with it, despite the apparent loss of my blogging momentum since then.
Another Sunday spent working on my website, this time implementing Reposts/Boosts
I don’t even use them that much, but learning with GoBlog is so much fun!
Finally pushed my custom GoBlog-Letterboxd plugin to GitHub! This means I can now shut down my Huginn instance, as the code can be repurposed for any future (PESOS) cross-posting needs.