I decided to run the server as an XCP service, because it’s a nice easy way to make little sub-processes in macOS. All of that actually worked quite nicely, except for one fundamental part of the application: Apple Events, which have to be called on the main thread. Unfortunately in an XPC service the main thread is blocked by the service listener, meaning the Apple Events can’t run.
I decided to put all of the logic for the application into the server and have the client communicate over TCP, even if the client was the process that actually _started_ the server. The reason being there would be no difference between a local client and a remote one, just the IP address it would connect to.
Making up for the lack of a camera on the Apple Watch. https://mastodon.emory.coffee/media/kLKWmqmG8qdmjiGMPoE
Someone really couldn’t be bothered with perspective in the latest Doctor Who episode. https://mastodon.emory.coffee/media/WPbESy8noeWvWCFJlRA
Alcohol, Star Trek Show more
How has no craft distiller come up with a gin called “He’s Dead, Gin”? Seems like it’s begging to be made, but the Internet turns up nothing.
Since @djsundog mentioned alternate history computers it reminded me of this: https://www.docubyte.com/works/guide-to-computing/
I'm now thinking about how I could make a a modern version of the Kenbak 1.
Apparently my iPad has notification noises turned on. I know this because I was started when @tootapp honked at me.
Everyone in New York today
Everyone in California today https://mastodon.emory.coffee/media/5KGMNwv0n9ys6GaNGGI https://mastodon.emory.coffee/media/bxXLMORobpAh4I7rWj4
I've settled on a solution for this that I'm happy enough with. Alongside my nginx container I'm running an Rsync daemon container with shared volumes. Now any runner on the local network can sync files.
First I put the password into a file:
- echo "$RSYNC_PASS" > /rsync_pass
- chmod 600 /rsync_pass
Then build my Hugo site and sync:
- rsync -av --delete public/ --password-file=/rsync_pass rsync://$RSYNC_USER@$PRODUCTION_IP/data$PRODUCTION_DIR
Really hope this doesn’t burst into flames. https://mastodon.emory.coffee/media/unUI5nVg-31ks9Pa9vk
Photographer, maker, and general nerd.
emory.coffee is one server in the network