USB boot selector05.07.2024I use a laptop that I dual boot with Ubuntu and Windows[1]. It takes a surprisingly long time from power button press to GRUB menu, so I often press it and do immediately other things (thanks ADHD). It is only a slight inconvenience but recently one morning I literally woke up and thought to myself: wouldn’t it be neat to have some kind of hardware switch to select which OS I want to boot? Read more...
Selective sketch building with PlatformIO01.07.2024I switched to use PlatformIO again for tinkering with electronics and wanted to note down a quick little tip. Recently I tested some screen modules and I was looking for a way to keep different sketches around in the same project. The problem here is that by default the build process includes all .cpp files from the src directory, which is not what I want in this case. My goal was to find a way to specify a specific source file that should be used, and I found one: build_src_filter - https://docs. Read more...
How to unbrick a Pro Micro clone (fast)26.04.2023Recently I’ve been getting back a bit dabbling around with electronics. Currently I specifically like to use the Sparkfun ProMicro, because of it’s on-board USB capabilities (more on that in a future blog post). (yeah, it’s a cheap clone I got from aliexpress) While setting up my Arduino IDE and playing around with it, I noticed that there are several ways that you can end up in a situation that makes it difficult to flash a new sketch to the board. Read more...
Running a blog with Hugo and GitHub Pages16.02.2023When I started this blog, I wanted to make a post of how I set it up. The time has come! Although I have to say, I kind of forgot what my pain points were initially, but I remember that I tried using “pure” GitHub Pages and Jekyll, and with both of them I wasn’t happy. What I wanted was: publishing by git posts as markdown a simple way to preview posts and the blog before publishing My solution now is using Hugo, another popular static site generator written in go. Read more...
Make some noise!18.01.2023Whenever I’m inside and I hear rain, it’s really calming to me. Even storms manage to bring me peace. Sometimes, when I have difficulties to sleep, and it’s not coincidentally raining outside, I might turn on some noise source. There are infinite options to choose from of course: iOS has it built in, there is airplane ambient noise readily available on Spotify and YouTube, and one of my favorites is the “Rain on a Tent” preset on mynoise. Read more...
Inspect return values with XDebug17.11.2022When working with a PHP codebase I really like to use XDebug as a way to find my way around and getting a grasp on what’s going on. One thing that annoyed me a bit was that in order to inspect return values of methods, I had to assign them to a dedicated variable. This doesn’t sound like a problem, but there can be a bunch of reasons why you don’t want to change the code for this. Read more...
About16.11.2022hello world, my name is Dena ^__^ and so far I spent an uncomfortably amount of time with computers and the internet during my life and it seems like that is not likely to change anytime soon. In the past I had several blogs. Sometimes on blogspot, sometimes self-hosted Wordpress instances, and sometimes something entirely different. But they all have one thing in common: they are lost in the sands of time. Read more...