nortti's microblog

kato

When workin on the terminal, I've ended up preferring to take advantage of the terminal scrollback where reasonable. As such, I've moved to using cat(1) instead of less(1) for when I want to read a text file.

There are some downsides to using cat(1), though. First of all, you're allowing the author of a file to send arbitrary instructions to your terminal. This turns out to be suboptimal for security. Secondly, there is no way to tell where one file ends and another starts. This is what you want when you are using it to concatenate several files together, but it is annoying if you want to quickly look through a directory full of many small files.

I wrote a small tool called kato to solve these problems for me.

#wikifinds

Dietrich von Bern and Theoderic the Great were usually treated as the same figure throughout the Middle Ages.[1][2] However, the lives of Dietrich von Bern and Theodoric the Great have several important differences. Whereas Theodoric the Great conquered Italy as an invader, Dietrich von Bern is portrayed as exiled from his rightful kingdom in Italy. Also, Dietrich is portrayed as a contemporary of Etzel (Attila the Hun, died 453) and his uncle is the semi-legendary Gothic king Ermenrich (Ermanaric, died 370s).[3] Dietrich is associated with Verona (the Bern of his name) rather than the capital of the historical Theodoric, Ravenna; the connection to Verona is attested since at least the eleventh century in Latin chronicles, beginning with the Annals of Quedlinburg.[4]

Dietrich has a number of mythological features: In the early eleventh-century Waldere he is an enemy of giants,[5] and in later Middle High German texts he also fights against dwarfs and wild men.[6] Even more notable is the fact that multiple texts record Dietrich breathing fire.[7]

(src)

Alkulukuja Paskova Karhu

https://alpha61.com/primenumbershittingbear/ (via)

Now on Fediverse

Ever since Cohost closed down I've been thinking on-off that I should maybe set up presence on the Fediverse. Mostly off, though, as I can generally just follow the ppl I know feeds without having an account myself, and if need be send replies through other channels. Recently, however, I've had a couple times where the only method of contact I'd have was fedi or something even worse.

So, partly for that reason, and partly just to get some more experience sysadmining OpenBSD, I've set up a snac2 instance at fedi.nortti.org

Feel free to send a follow and message me there. I probably won't post much, but it is a way that I intend to be reachable.

#wikifinds

The studio was intent on promoting its "all-talking" stars, and silent-film personality Rin Tin Tin obviously could not speak.

(src)

Haunt'd

I've rebuilt the site using Haunt. If everything goes well, you should see (essentially) no changes.

This will also mean that, hopefully, I'll start posting more often here again.

#wikifinds

His music draws inspiration from the work of celebrated modern composers like Dmitri Shostakovich, though he used the Super Mario series as a model of good video game composition.

(src)

#wikifinds

[ISO/IEC 8859-1] is specified by many other standards.[example needed] In practice, the superset encoding Windows-1252 is the more likely effective default[citation needed] and it is increasingly common for UTF-8 to work[clarification needed] whether or not a standard specifies it.[citation needed]

(src)

#wikifinds

GitHub hosts the Expat project. Versions exist for most[quantify] major[citation needed] operating-systems.

(src)

eBooks on the Nokia 225 4G

(I'll post a proper writeup about this later, but here's the quick version)

Nokia 225 4G is an (imo) pretty dissapointing featurephone by HMD Global. Unlike some other Mocor OS-based devices from them, the 225 4G supports web browsing using Opera Mini. It's alright, the usual Opera Mini caveats apply.

However, some time ago I discovered that the 225 4G actually comes with a second, hidden, web browser. Unlike Opera Mini, that one does not proxy all your requests through a server.

Both Opera Mini and the NokiaBrowser support saving pages for offline usage (though, annoyingly, the OS on the 225 4G does not let you start up Opera Mini if you are in offline mode, and NokiaBrowser can be started only from within Opera Mini). Opera Mini uses a bespoke binary format called OBML, but NokiaBrowser uses HTML with just a small header prepended to it. As such, I created some tooling to attach such a header to arbitrary HTML documents.

So, what can you use this for? For one, eBooks. The EPUB format is essentially just (X)HTML files in a ZIP archive.

After extracting the "Compatible epub" of The Count of Monte Cristo, I'm left with a collection of .xhtml files under epub/text. If I mount 225 4G's internal storage on my computer, I can then run:

python encode.py epub/text/chapter-1.xhtml /media/nortti/disk/browser/snapshot/monte-cristo-1.html

When I unmount the phone's storage and open up NokiaBrowser, I now have the first chapter of the book available under Menu → Open → Offline pages.

Beginning of the 1st chapter of The Count of Monte Cristo on the Nokia 225 4G
Next