-- Leo's gemini proxy

-- Connecting to gem.hack.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; charset=utf-8

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:


cottage: a small web service I wrote to keep tabs on my cottage. I'm nervous about my cottage losing power and heat in the winter and that the water will freeze. As a stopgap I let the router in the cottage do a curl thing every five minutes to this web service. If the service hasn't heard from the cottage for a while it lets me know with an XMPP message so I have some time to get to the cottage before the water freezes and I get a leak. Yes, of course this also gives me a false positive if the Internet connection goes down but it's better than nothing.


mctile: The River layout generator I use. Mostly a copy of the contrib/layout.c in the River distribution but with an added Monocle mode. I'm probably going to do some more work on this when I can find the time.


svenska-jargongfilen: A Swedish hacker's dictionary and encyclopedia of things in Swedish hackerdom.


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 $<

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

-- Response ended

-- Page fetched on Tue May 21 09:13:22 2024