Dev

Explore Btrfs images on MacOS

While troubleshooting a malfunctioning radar system, I wanted to inspect its firmware for diagnostic tools (couldn't find any). The firmware was stored in a Btrfs image, which isn't straightforward to handle on macOS without spending some quality time with FUSE.

To "extract" its contents, I instead used a Docker container with the necessary tools, because it's quite easy to do on plain linux. Here's how.

Read More

High Battery Drain in Cursor AI: It was the Import Cost Extension

Out of curiosity I'm testing Cursor AI ( and I'm actually enjoying it more that I should ), but I quickly noticed my laptop's battery draining at an alarming rate - faster than playing Factorio. After investigation, the root cause was clear: the Import Cost VS Code extension was triggering excessive CPU usage through repeated recalculations (for no reason?!).

Edit: No reason might seem excessive. It's a TypeScript project and I was working on components that got imported everywhere so I might understand why the sizes needed to be updated, but it's not a BIG project, it still doesn't make sense to eat all the CPU.

Read More

Integrating MJML with Django= Easy Responsive Email

If you're a Django developer tired of wrestling with HTML email templates that don't work in Gmail/Outlook/Thunderbird/Apple Mail/...., MJML (Mail Jet Markup Language) MIGHT be the solution you've been looking for. MJML simplifies the process of creating responsive emails that look great and are consistent across all devices and email clients.

Read More