Programming
zram vs zswap
A comparison of two memory compression techniques in Linux, which aim to be faster than just using swap, and also reduce writes to swap.
Logging: Comparison of Frameworks
Logging is an often overlooked part of software development, and something I have been neglecting only up till recently. In this post, I compare several logging frameworks.
Setting up Moonlight on a Raspberry Pi 4
Some notes on how I setup Moonlight to auto-launch on a Raspberry Pi 4, as well as random display/audio issues.
How to Undervolt a Laptop (with NixOS)
Sometimes your laptop might run too hot and you want to reduce the temperatures.
Apart from cleaning the fans and changing the thermal paste, there are 2 software options available to you.
Race conditions with asyncio
in Python
What do you think the output of the following code will be?
Setting up Fedora with a Windows VM
This is a short guide on how to setup Fedora with a Windows VM via libvirt, optionally sharing a RAID-1 Btrfs volume from the host to the Windows guest via SAMBA. I'm assuming you are coming from Windows.
Reasons why you might want to do this:
- Windows is quite annoying.
- With Looking Glass, you can passthrough your GPU to the Windows guest and enjoy native graphics performance.
- The Btrfs filesystem allows snapshotting, checksumming and multi-disk RAID with an unequal number/size of drives.
- You can snapshot the entire Windows VM and revert to it anytime.
GPU Power Crashes
For a few months, while running my Windows 11 VM with a GPU passthrough-ed, I was getting random reboots/screen hangs. There was a clear pattern - the reboots/hangs occured whenever I launched a resource-intensive application on the VM, such as a game.
In an effort to trace down the problem, I looked through dmesg
(truncated for brevity) for various boots:
Syncing my Kindle with calibre-web, KOReader and Syncthing
I own an Amazon Kindle Paperwhite (2nd generation). For the longest time, I was looking for a solution that would enable me to sync my reading progress between my phone and Kindle, as well as transfer books between all devices wirelessly.
I finally managed to accomplish this with Syncthing, KOReader and Calibre-Web.
Syncthing Topology
I use Syncthing, a peer-to-peer filesharing program for my devices (most recently on my Kindle as well). There are a few network topologies possible in such a setup.