Series Part 1: https://jaytuckey.name/2021/07/22/trio-tutorial-simple-tcp-chat-program-part-1/ In part 2 we look at making a tool to assist with testing the TCP server we are building: We use the built-in python socket library in the testclient: https://docs.python.org/3/library/socket.html Got any questions? Contact me: https://jaytuckey.name/about/
I’ve made a video about making a simple TCP-based program using Python and Trio. The video is here: https://www.youtube.com/watch?v=6JM1hgjLV-A The features I plan to build are: each user has a long running tcp connection user is asked for name on connection user sends message each other connected user receives the message In part 1 we […]
I’ve recently been using the htmx (https://htmx.org/) javascript library to make some simple Flask web applications I have made a bit more dynamic. The page is very simple, but contains a big table of data in the center. It has a form at the top of the page that allows you to write simple queries […]
Movie Thoughts / Review – Stowaway
I really enjoyed this movie! It had a solid mix of real science along with a better story than most movies. One aspect I enjoyed was that the characters didn’t spend excessive time explaining everything that occurred to the audience. The doctor, played by Anna Kendrick, makes a wrist brace for the crew commander. She […]
These are some tips I’ve put together on how to create a certificate using acme.sh then import it into a FortiGate firewall for use on the SSL-VPN or similar. Getting the Certificate and Key file I won’t go into too much detail on this – just use the acme.sh documentation to get a key+certificate: https://acme.sh […]
Here’s some examples of how to use Nanoleaf lights with Home Assistant. Note that when this doc was written I was using Home Assistant v2021.2 with Nanoleaf firmware v5.0.0 Setting Up First, set up the lights using the Nanoleaf app, join them to your WiFi, etc. Then attach them to Home Assistant. The docs on […]
We use phpIPAM to manage all our IP Addresses, and we have recently built integrations between phpIPAM and our Kea DHCP server for reservations, and also into our BIND DNS server. These have been running on a schedule, which has worked well, but doing it that way means that it can take a while after […]
This is a simple script to send an email via MS’s O365 Service: Note how you need to set up an SSL context and perform .starttls() to properly create a secure connection.
Inspired by the recent changes to the Facebook WhatsApp’s privacy policy, I decided to go through why I avoid services provided by advertising-based businesses. For more details on the WhatsApp changes, see: https://www.forbes.com/sites/carlypage/2021/01/08/whatsapp-tells-users-share-your-data-with-facebook-or-well-deactivate-your-account/ Incentives Businesses are driven by their incentives, which are their business goals. The business goal of every for-profit company is quite simple: […]
These are the things that I’ve run into on KDE Plasma running under Wayland that prevent me from using it full-time. I thought I would get them down here so I could keep track of them and hopefully provide feedback upstream as-needed: Screen Sharing in Microsoft Teams For me this is a deal-breaker for getting […]