Why ESPHome might fail compiling a custom component with 'fatal error: string: No such file or directory'

I just spent several hours trying to figure out why ESPHome refused to compile a custom component I was working on. The error message I got was Compiling .pioenvs/datenzwerg-sleepy/src/esphome/components/sound_pressure/sound_pressure_sensor.c.o In file included from src/esphome/components/sound_pressure/sound_pressure_sensor.h:3, from src/esphome/components/sound_pressure/sound_pressure_sensor.c:1: src/esphome/core/component.h:3:10: fatal error: string: No such file or directory 3 | #include <string> | ^~~~~~~~ compilation terminated. Compiling .pioenvs/datenzwerg-sleepy/src/main.cpp.o *** [.pioenvs/datenzwerg-sleepy/src/esphome/components/sound_pressure/sound_pressure_sensor.c.o] Error 1 Other external and internal components compiled just fine, so that was quite a head scratcher, until I just finally noticed something in my source tree: my custom component鈥檚 source file had the file ending ....

July 14, 2023 路 1 min

How to fix VirtualBox on Fedora 38 with Kernel 6.3.5 by disabling IBT

For accounting and some windows only software (馃憢 Affinity Designer) I have a Windows 10 VM running in VirtualBox on my Framework running Fedora 38. Apparently I got a kernel update recently and as of this morning the VM refused to start. It just hung, and a look into journalctl showed something like this: Jun 13 10:23:50 draper kernel: traps: Missing ENDBR: 0xffff9b688c308f30 After some searching I came across this thread on the VirtualBox forums which explained the issue and also includes the solution....

June 13, 2023 路 1 min

How to export a Godot 4 game to run on the web on itch.io

On the Go Godot Jam 4 Discord I just saw some people having issues with how to get HTML5 exports from Godot 4 to work on itch.io, and since I just had to do this for my own game submission to the jam as well I decided to jot my steps down here (and on the Discord too) as it seems to be a bit of a pain for people....

May 14, 2023 路 1 min

How to make the Home Assistant app sync properly under iOS

While I鈥檓 strongly rooted in the Android camp, my partner has an iPhone, and on what seems to be every iOS update, the Home Assistant app installed on his phone stops syncing in the background. That wouldn鈥檛 be so bad if a lot of the home automations didn鈥檛 factor in presence status which gets synced through that, so this has been a source of minor annoyance whenever his status refused to mirror his presence or absence....

April 30, 2023 路 1 min

How to add Battle.net games to the Steamdeck

Update 2023-06-07: It turns out that these days, the by far easiest way to get Battle.net on the SteamDeck is using NonSteamLaunchers-On-Steam-Deck, as I recently saw on Gaming On Linux. I haven鈥檛 gotten a chance to try this myself yet, but it certainly looks very much straight forward, albeit not featuring individual game entries in Steam. For your quick Diablo fix, it should hopefully be just fine though. Battle.net is currently having a spring sale and I鈥檝e been eyeing Diablo II: Resurrected for a while now, so I jumped on the chance (and while at it also got StarCraft Remastered)....

April 15, 2023 路 Updated June 7, 2023 路 3 min

How to use Obsidian's Dataview plugin to visualize frontmatter

For every OctoPrint release I run through several update tests: I flash a specific OctoPi version, push it to a specific OctoPrint version, configure the release channel, then see if updating to the newest release (candidate) works fine. I use my testrig and its automation scripts for that and usually go through something between 5 and 10 separate scenarios. So far all of these scenarios were noted down as a Markdown table in my release checklist that these days I prepare in my Obsidian vault, including manually adjusting the testrig commands to match the scenario....

April 14, 2023 路 4 min

How to override the EDID data of a monitor under Linux

I鈥檓 slowly but surely fixing all the issues I had after switching back to Linux as my main OS, so here鈥檚 another TIL 馃槈 My secondary monitor is a 24" DELL with a resolution of 1920x1200, so 16:10, instead of the more common 1080p and 16:9. In order to be able to connect all my three monitors to my laptop, I make use of both the laptop鈥檚 HDMI port as well as a USB-C dock that has 2 HDMI ports....

April 11, 2023 路 3 min

How to reduce the titlebar size of Gnome 43

A few weeks ago I switched back to Linux as my primary OS, on a newly acquired refurbished Framework Laptop 11, and one thing that鈥檚 since been bothering me on my chosen desktop environment Gnome1 has been the HUGE titlebars: So I finally dug into solving this quickly, and came across this post on Reddit with a quite nice solution. I modified ~/.config/gtk-3.0/gtk.css and added the following contents: window.ssd headerbar.titlebar { padding-top: 2px; padding-bottom: 2px; min-height: 0; } window....

April 11, 2023 路 1 min

How to create an animated tile in Godot 4's tilemaps

Over the past four days I鈥檝e been doing a personal crash course on game development together with my partner1, ending up in building a small platformer in two days. We decided to use Godot Engine, as I had been circling it for a while now 2, and it turned out this decision was good because it was been a quite amazing experience, even for a total gamedev beginner like me 馃憤...

April 9, 2023 路 2 min

About SSH escape sequences

OpenSSH鈥檚 ssh command supports a bunch of escape sequences while a session is running, by default triggered by the ~ character. According to man ssh a list of available commands can be requested with ~?. And indeed, hitting ~? within an open SSH session prints some helpful information: $ ~? Supported escape sequences: ~. - terminate connection (and any multiplexed sessions) ~B - send a BREAK to the remote system ~C - open a command line ~R - request rekey ~V/v - decrease/increase verbosity (LogLevel) ~^Z - suspend ssh ~# - list forwarded connections ~& - background ssh (when waiting for connections to terminate) ~?...

March 22, 2023 路 2 min
Mastodon