<rant> I've been programming in Flutter for years, now. And for the most part it's fine...except for the sizing problems. I feel a deep weariness from the sizing problems. Specifically, I'm referring to how certain UI elements need to know how much space they have before they'll render - and if you put them in, … Continue reading Flutter UI disappoints me
Programming
Compiling other people’s code, for dummies
Here's some stuff I didn't know, when first I wanted to compile other people's code. If there's a CMakeLists.txt: mkdir build, cd build, cmake .., make If there's only a Makefile, make Subsequent "sudo make install" usually installs it somewhere accessible via path If you're missing a library or header file FOO, probably: apt-get install … Continue reading Compiling other people’s code, for dummies
Raspberry Pico fail to boot from flash
So. If you should find that the code runs from the debugger, but does not start on its own when you plug in the usb, add to your rootmost CMakeLists.txt set(PICO_BOARD pico_pair) referencing pico-sdk/src/boards/include/boards/pico_pair.h and if you don't have that file, just copy pico-sdk/src/boards/include/boards/pico.h but add these three lines near the top, after the name … Continue reading Raspberry Pico fail to boot from flash
Raspberry Pico GPIO latency
Fyi. Writing Pico PIO code. A read from a GPIO takes...3.5 clock cycles. I think. (Plz no sue.) I tested several wildly different clock speeds. You can do INPUT_SYNC_BYPASS with `hw_set_bits(&PIO->input_sync_bypass, 1u << PIN);` and it goes down to like 1.1 cycles, but the docs warn the PIO could summon nasal demons if it reads … Continue reading Raspberry Pico GPIO latency
LibreOffice Reflection
No, I don't know how to do LibreOffice Basic reflection. I'm kinda ticked about it. Spent ages trying to find how to get the area of a selection (y'know, the entirety of what a selection is?), found a ton of splintered documents and couldn't tell whether they were even applicable (and they were largely unhelpful … Continue reading LibreOffice Reflection