|
Celebrating little victories by combining some hobbies together
Maybe I'll make a Pip-boy[^]
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Wordle 1,160 5/6
⬜⬜⬜🟨🟨
🟨🟨⬜⬜⬜
⬜⬜🟨🟨🟩
🟨⬜🟩🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,160 4/6*
⬜🟨⬜⬜⬜
⬜🟨⬜⬜🟩
🟨🟩🟩⬜🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,160 4/6*
⬜🟩⬜⬜🟩
⬜🟩⬜⬜🟩
🟨🟩🟩⬜🟩
🟩🟩🟩🟩🟩
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
⬜🟩⬜⬜🟩
🟩🟩⬜⬜🟩
🟩🟩🟩🟩🟩
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 1,160 3/6
⬜🟩⬜🟨⬜
🟨🟩🟩⬜⬜
🟩🟩🟩🟩🟩
Within you lies the power for good - Use it!
|
|
|
|
|
Wordle 1,160 4/6*
⬛🟨⬛⬛🟩
⬛⬛⬛🟩🟩
⬛⬛🟩🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,160 3/6
⬛⬛⬛🟨🟩
⬛🟩⬛⬛🟩
🟩🟩🟩🟩🟩
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 1,160 4/6
🟨⬛🟨⬛⬛
⬛⬛🟩⬛⬛
🟨🟩🟩⬛🟩
🟩🟩🟩🟩🟩
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
The shortest horror story: On Error Resume Next
|
|
|
|
|
Wordle 1,160 3/6
🟨⬜🟨🟨⬜
🟨🟩⬜⬜🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,160 2/6*
⬜⬜⬜🟩🟩
🟩🟩🟩🟩🟩
Happiness will never come to those who fail to appreciate what they already have. -Anon
And those who were seen dancing were thought to be insane by those who could not hear the music. -Frederick Nietzsche
|
|
|
|
|
Wordle 1,160 5/6
⬛🟨⬛🟨🟨
🟨🟩🟨⬛⬛
⬛🟩⬛🟩🟩
⬛🟩⬛🟩🟩
🟩🟩🟩🟩🟩
Jeremy Falcon
|
|
|
|
|
Wordle 1,160 3/6
🟨🟩⬜⬜⬜
⬜🟩⬜⬜🟨
🟩🟩🟩🟩🟩
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Edit: Actual photographic evidence of victory non-trivial SVG document[^]
parse_res.attr[0].strokeDashCount = 0;
It has taken me a day of extremely stressful hair pulling to find that this line of code didn't exist and it should have.
It was manifesting as a stack overflow, so I spent my day, tracking that, and pruning the stack.
Here was the offending code that caused the memory corruption that reported as a stack issue.
for (i = 0; i < attr->strokeDashCount; i++)
shape->stroke_dash_array[i] = attr->strokeDashArray[i] * scale;
Here the strokeDashCount value was a ridiculously high garbage number, with (un)predictable results.
This never would have happened in a high level language.
I love me some C and C++. It's an incredible programming language family, but also a very powerful weapon you can wield against yourself if you're not careful.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
modified 21-Aug-24 23:38pm.
|
|
|
|
|
I utilize the subscript operator w/ extreme caution. Only if the size is confirmed and the index checked against it do I utilize it.
|
|
|
|
|
It was checked. But the number it was checked against was garbage.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Am a bit surprised you did not utilize an assert to verify the size of the indexed object is in fact the presumed quantity as stored in variable.
|
|
|
|
|
I don't like using assert() because it simply causes a bootloop on these devices when hit. I don't have a debugger.
Also this code did not originate with me. I forked it from another project, and have done a lot of work to it, but a significant portion I have yet to touch.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
May I inquire means by which garbage value originated.
|
|
|
|
|
solar flares probably.
It's what happens in C and C++ when you don't initialize a value explicitly on a release build. It's garbage. leftover bits in stale ram.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Don't static analyzers catch that sort of thing.
|
|
|
|
|
It's not easy to run static analysis on this code because I don't have much control over my build environment. It's all controlled and automagic via PlatformIO. That's often nice because it streamlines my workflow but limits the sorts of tools i can use.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Hmm. Just a suggestion, but I've used static analyzers such as those included in VS2022 against code from embedded environments more than once. True, it can be a PITA to set up and you have to separate the wheat from the chaff. The end result however can catch a lot of simple errors that aren't detectable by less comprehensive compilers.
Software Zen: delete this;
|
|
|
|
|
It's far easier to keep my lib cross platform, run static analysis on what I can on the PC, and furble with the rest on embedded blindly if needed than it is to try to make PIO's toolchain work outside the PIO IDE.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I hear that!
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|