💾 Archived View for gem.hack.org › mc › log › 2022-10-24.gmi captured on 2024-08-25 at 00:23:43. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-04-19)

-=-=-=-=-=-=-

2022-10-24

It's Maladay! It's my day off, as usual on Mondays, but fitting considering it's a Discordian holiday. I slept in. Now sitting with a cup of coffee in my home office at 10:20 and checking in with Gemini Space.

Code on Codeberg

I cleaned up and pushed a few things to Codeberg:

You can find it all here:

https://codeberg.org/mchack/

Still thinking about what I'm going to do with the things I have on Github and Gitlab. Some (most?) of them are not really live projects anymore so perhaps I'll just leave them be.

I have some projects I've kept locally as well, like the start of a BBS in Go, and my own split XMPP client (Go for backend, elisp for UI). They will probably also end up on Codeberg.

I'll make sure to donate to Codeberg. I'm glad that it exists.

Wayland urgency

Wayland seems to have gotten something like X11's urgency hints while I wasn't looking!

https://wayland.app/protocols/xdg-activation-v1

https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/50

In my .config/foot.ini:

[bell]
urgent=yes

Then test with something like

% sleep 5; echo -e '\a'

in another terminal. Be sure to move away from that window before the BEL sounds!

Both yambar and river-tag-overlay then tells me that something happened in the tag where the BEL happened. Nice! I've missed this.

Standalone Markdown tool

In the Swedish hacker dictionary I used pandoc to generate a standalone HTML page of the whole thing. I went to install pandoc on this box yesterday and it wanted to install heaps and heaps of Haskell packages:

Total Download Size:    71.76 MiB
Total Installed Size:  504.18 MiB

Whoa!

So I went looking for an alternative. I use cmark for my web pages together with a small Perl script I wrote many years ago to get the HTML headers and a small navigation bar but I didn't want to depend on Perl for this thing... I thought about using blackfriday-tool:

https://github.com/russross/blackfriday-tool

but Blackfriday Markdown is a bit off compared to CommonMark and it hasn't been touched in years. Then I realized that someone has done a small CLI tool around the Go Goldmark Markdown library, gm:

https://github.com/kpym/gm

https://github.com/yuin/goldmark

that works in a similar way to blackfriday-tool. Great! So used it like this in the Makefile:

.md.html:
	gm -c style.css {body}lt;

Ta-da!

MikroKOM and PC emulators

Joacim Melin told me he found both the binaries and the Pascal source code for the CP/M (originally) and MS-DOS BBS program MikroKOM!

https://ftp.melin.org/bbs/ms-dos/mikrokom/

I had a look around in the Pascal source. Seems understandable enough but with a whiff of Swedish here and there even in variable names.

I tried running it in DOSBox, but:

C: \> mk
Initierar systemet... Runtime error 003 at 0c59:2422

Dammit!

Probably DOSBox isn't quite emulating the things I need. I probably need a simple 8086, 8088 or possibly 286 so I'll have to look into using some other emulator. Perhaps PCemu or 86box? Neither is packaged by Arch but I guess I'll try compiling myself. Will be interesting to see if they can work under Wayland.

I also want to try my hand at Turbo Pascal again. Handily enough that's what MikroKOM is written in.

mc,

Maladay in the YOLD 3188

mc

mc's gemlog