77 Followers
152 Following
821 Posts
OpenBSD Slacker, CS student. Interested in all things BSDs, security, LISP and compilers. From Italy, currently trying to learn Japanese.
Bloghttps://www.omarpolo.com/
Italian Bloghttps://it.omarpolo.com
Gemini Capsulegemini://gemini.omarpolo.com
Honk@[email protected]
cvs'ing on the go 
Went trekking in the mountain with some friends. The forecast was good, and in fact the bad weather skipped us by going from the mountain nearby down to the valley.

oh yeah. once I realized that termux-notification needed Termux::API to be installed, even the notification works!

Ideally I should find a way to intercept the headsets buttons, but for now I'm already happy 

actually... amused-web works too, so I have the control UI available too. this is starting to become an interesting option. I only need to discover if the android scheduler will let my audio thread working in the background.

a screenshot can't show it obviously, but I got amused (my little music player) working on #android via #termux   

it required writing a custom audio backend using the oboe library, and there are a few hack here still, but it's a start.

thanks to @thfr, we're making progresses with #godot 4 on #OpenBSD. After a tiresome fight with some C++ types mismatches, here it is! #PlayOnBSD  

Wasted some hours last night implementing websockets support in the amused-web' home-grown HTTP server. It even seems to work!

extra fun points for using only libc (plus SHA1*() and imsg.)

It means that, with a bit of added javascript, the UI now automatically updates itself when events happen (a track finishes, another client jumps to some other track, ...). Still a few details to adjust but it's almost done! 

mad enough to start writing an #android audio backend for amused (on #termux, I'm afraid of the world of pain would be to port android studio to #OpenBSD and I don't have non-virtualized linux at hand anyway)

The good news is that so far it compiles, which is already something, and I'm still free from C++-induced headaches (for the time being.)
The so-so news is that I'm likely misusing the oboe' APIs and so it doesn't make any sound.
The bad news is that I need more work anyway since amused expects an fd to poll(2) on and the android audio doesn't work that way.

finally found the right incantation to fix the printing of non-ASCII characters in amused-monitor. I can finally see what I'm listening 

Managed to steal^W incorporate the crypto privsep engine from opensmtpd into gmid 

This means that the certificate' private key is never ever loaded in the server process and so can't be leaked. The internal crypto process owns the keys and just signs stuff on the behalf of the server processes.