Advent of Code 2020 - Day 1

in   code   ,

If you haven’t heard of Advent of Code , it is an Advent calendar of small programming puzzles that run every year from December 1st through the 25th. This year, I was happy to have solved the majority of the puzzles on my own, with very little help from the subreddit.

Most of these puzzles can be solved in Python using only the standard library, and for some, it really boils down to parsing the input into a form that’s more suited for processing. Suffice to say, there are a ton of spoilers in this series, so if you want to avoid spoilers, look away now.

Read more →

Linux HID Driver

in   Drivers   , ,

Most HIDs (Human Interface Devices) are supported in Linux without the need for a custom driver. However, some devices don’t necessarily implement the USB HID specification correctly, and the support for gamepad controls is rather lacking.

Of particular interest to me, and a few others in the Linux gaming community, is support for the Saitek X52/X52 Pro HOTAS joystick. For the most part, this joystick works very well in Linux, but with one limitation. The little thumb stick on the throttle module that controls the mouse motion. Linux only reports the X-axis for that thumbstick, and I traced it to the fact that Linux maps only one axis in the game controls usage page. For this to work as intended, we really need to build a customized driver.

Read more →

Vegetable Foccacia

in   Recipes   ,

Being in lockdown, I have had the chance to experiment more with my food. This is my latest creation in a vegetable foccacia-style bread, which is good enough for a weekend dinner.

Read more →