Unpacking iterables in python with * is a pretty handy trick for writing code that is just a tiny bit more pythonic than not. arr: Tuple[Union[int, str]] = (1, 2, 3, 'a', 'b', 'c') print(arr) >>> (1, 2, 3, 'a', 'b', 'c') # the * unpacks ... read more →
pipx is a tool I've been using to solve a few problems of mine... pinning formatting tools like black, flake8, isort, etc. to the same version for all my projects keeping virtual environments clean of things like cookiecutter python utilities I wan ... read more →
fx is an interactaive JSON viewer for the terminal. It's a simple tool built with Charmcli's Bubble Tea. Installation The installation with go was broken for me - both via the link and direct from the repo. Now I'm not a gopher so I don't really kno ... read more →
I use Jellyfin at home for serving up most of our media - movies and shows etc. My dream is to have a GPU capable of transcoding any and all of our media for smooth playback on any device... Now, I thought I'd have that by now with my Nvidia Quadro ... read more →
Type hinting has helped me write code almost as much, if not more, than unit testing. One thing I love is that with complete type hinting you get a lot more out of your LSP. Typing dictionaries can be tricky and I recently learned about TypedDict to ... read more →
My moonlander is great, and I just recently added CAPS LOCK back to my keymapping but I've moved it... At present it is where the ESC kep usually is however I'm trying to match my general moonlander usage with a keymap that fits on a planck. Because ... read more →
I've started using Terraform to manage Snowflake infrastructure at work. I'm still a noobie but I've got a workflow that I think makes sense... Here's the directory setup for a simple project with some databases, schemas, and tables to manage. terra ... read more →
My current homelab setup is not great but it works... Proxmox on PowerEdge R610 I boot off an SD card and have 1 SSD and 5 HDDs configured as a JBOD array using a Dell H700 SAS controller. I cannot boot from a disk using this controller and I can't ... read more →
I often struggle to remember the correct way to do and type comparisons when working in pandas. I remember learning long long ago that and and & are different, the former being lazy boolean evaluation whereas the latter is a bitwise operation. I ... read more →
I have a specific need for counting the number of lines in a file quickly. At work we use S3 for data storage during our Kedro pipeline development, and in the development process we may end up orphaning several datasets. In order to keep our worksp ... read more →