|
Best regards to him.
In March I was walking my dog and she caught me off balance. I fell awkwardly (on the kerb) and was taken to hospital with what I thought was really bad bruising. Turns out I'd broken the neck of my femur and needed screws in it.
Still a bit tender where the screw heads are, but at least I didn't need a hip replacement, which was one option being considered.
|
|
|
|
|
So I guess you could say you're... screwed (you must've heard this one a gazillion times by now )
I had a customer who fell off his bike, shoulder to kerb.
He was out of it for months.
One bad fall...
|
|
|
|
|
Ha!
TBH this is the worst break I've had, including (relatively) minor 'bike accidents (broken ribs, broken wrist, chipped elbow) and a skateboarding accident (broken wrist).
|
|
|
|
|
My uncle fell off his bike, no more uncle .
WEAR YOUR HELMETS!!!
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
modified 13-Sep-24 13:39pm.
|
|
|
|
|
Sorry to hear.
Also, we'll die before we'll wear helmets over in the Netherlands.
On the other hand, we have some of the best roads for cycling in the world (dedicated bike lanes, etc.).
I've cycled tens of thousands of km's in my life (probably even in the hundreds), never ever have I even thought about wearing a helmet.
Over here, you can spot tourists because they wear helmets.
|
|
|
|
|
My uncle lived in Sweden, I'm guessing helmets are not used there either. In the states it ought to be mandatory given some of the idiotic moves both drivers AND bicyclists make.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Sander Rossel wrote: I had a customer who fell off his bike, shoulder to kerb.
He was out of it for months.
One bad fall... A friend of mine back at home / high school time fell from bike hit the border of the walkway with the back of the head... never got up again.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Ouch, that's tough. I hope he has a speedy recovery, and better luck.
Your uncle's story reminded me of a Country music-based TV show back in the 70's called Hee Haw, with mixed comedy and music. One of the standard and repeated joke songs was a few fellows down on their luck singing, "If it weren't for bad luck I'd have no luck at all, gloom, despair, and agony on me."
There are no solutions, only trade-offs. - Thomas Sowell
A day can really slip by when you're deliberately avoiding what you're supposed to do. - Calvin (Bill Watterson, Calvin & Hobbes)
|
|
|
|
|
TNCaver wrote: "If it weren't for bad luck I'd have no luck at all, gloom, despair, and agony on me." My old man used to have tears in his eyes watching that show.
Another classic tune.
Quote: I searched the world over, And thought I found true love. You met another and Pfft! you were gone.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
TNCaver wrote: TV show back in the 70's called Hee Haw
Yes, that show ran at prime-time on Saturday nights. I have memories of viewing this show, propped up on my elbows on the floor watching the cigarette smoke swirling around the ceiling of my grandpa's house.
I remember the song in that skit, but I really remember the scantily clad hillbilly chicks!
On a serious note though, that show was great even if was corny! Lawrence Welk was another great musical themed show of that era.
"Go forth into the source" - Neal Morse
"Hope is contagious"
|
|
|
|
|
kmoorevs wrote: Lawrence Welk... My parents loved watching that show. I could almost tolerate it, sometimes.
There are no solutions, only trade-offs. - Thomas Sowell
A day can really slip by when you're deliberately avoiding what you're supposed to do. - Calvin (Bill Watterson, Calvin & Hobbes)
|
|
|
|
|
Sander Rossel wrote: but my uncle certainly isn't having any of it (although he could be dead three times over, is another way of looking at it). Coworker with lever transplantation was complaining that he wasn't allowed to lift more than 10 kilos after a year... Wife told him: Would the alternative have been better?
He never complained again.
And I was trying my father to change some habits during / after corona, he told me "I prefer to live 2 years than to survive 5", I never complained again.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Note to self: never be Sander's uncle.
Sorry to hear that. Apparently your uncles are luckless.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
Yeah, one nearly died of two collapsed lungs, one is in the hospital with his second cancer, two already died, one lost his son in an accident... And that's only counting the brothers of my parents
The one that fell down the stairs is "only" uncle by marriage (but much more fun than most of my other uncles).
CPallini wrote: Note to self: never be Sander's uncle. I think you're good, uncle Pallini
|
|
|
|
|
I have a theory that ladder's and stairs are swore enemies of human beings.
Always remember that when using them.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Yep - Fell from a 6 foot step ladder while hanging Christmas lights about 20 years ago resulting in 7 broken ribs, broken wrist, collapsed lung.
Of course I was acting immortal (being STUPID) and standing on the "Do not stand on this step" very top step and reaching up at the time....
My side still aches occasionally to remind me that I am not, in fact, immortal. I'm still pretty stupid tho...
Best wishes everyone - Craig
|
|
|
|
|
I am rewriting my entire SVG parsing to be able to peephole parse the entire thing using a 64 byte capture buffer. (Or more, but 64 bytes is the minimum)
This creates an interesting problem when it comes to really long attributes like the "d" attribute on the "path" element in SVG.
<path d="M-8.2 249.201C-8.2 249.201 -9 247.201 -13.4 246.801C-13.4 246.801 -35.8 243.201 -44.2 230.801C-44.2 230.801 -51 225.201 -46.6 236.801C-46.6 236.801 -36.2 257.201 -29.4 260.001C-29.4 260.001 -13 264.001 -8.2 249.201z"/>
The trick is the peephole parser returns about 64 bytes of that "d" attribute's value at a time. To read the entire "d" attribute will typically require multiple calls to read()
Well, I did it. With judicious use of state machines I can parse a float, skip whitespace, and parse path commands even they land partly across the 64 byte capture boundary.
Previously in my old code, I would gather all of the capture into one big string buffer and parse that.
This new approach wasn't easy code, but the result is very memory efficient, and robust in that it can handle content of any length with a constant (and very small) amount of memory.
Bless state machines. I have 7 states in my float parser alone.
I feel like I had my Wheaties this morning. Hooah!
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I would be interested in learning of the solution technique.
|
|
|
|
|
Here's my float routine. It uses my ml_reader markup peephole parser
Basically I keep a running cursor over the current buffer (**current) as well as the rdr for when I need to fetch the next string. The rest is just state machine stuff.
result_t parse_float(ml_reader_base& rdr, const char** current, float* result) {
char* end = NULL;
double res = 0.0, sign = 1.0;
long long intPart = 0, fracPart = 0;
int fracCount = 0;
long expPart = 0;
char expNeg = 0;
char hasIntPart = 0, hasFracPart = 0, hasExpPart = 0;
int state = 0;
if (**current == '+') {
(*current)++;
} else if (**current == '-') {
sign = -1;
(*current)++;
}
while (state<7) {
if (**current) {
switch (state) {
case 0: if (!isdigit(**current)) {
state = 1;
break;
}
hasIntPart=1;
intPart = (intPart*10)+(**current-'0');
++(*current);
break;
case 1:
*result = (float)intPart;
if(**current!='.') {
state = 3;
break;
}
++(*current);
state = 2;
break;
case 2: if (!isdigit(**current)) {
state = 3;
break;
}
++fracCount;
hasFracPart=1;
fracPart = (fracPart*10)+(**current-'0');
++(*current);
break;
case 3:
if(hasFracPart) {
*result += (double)fracPart/pow(10.0,(double)fracCount);
}
if(**current=='E' || **current=='e') {
++(*current);
state = 4;
} else {
state = 6;
}
break;
case 4:
if(**current=='+') {
++(*current);
}
if(**current=='-') {
expNeg = 1;
++(*current);
}
state = 5;
break;
case 5:
if (!isdigit(**current)) {
state = 6;
break;
}
hasExpPart=1;
expPart = (expPart*10)+(**current-'0');
++(*current);
break;
case 6:
if(hasExpPart) {
if(expNeg) {
expPart = -expPart;
}
*result *= pow(10.0,(double)expPart);
}
*result*=sign;
state = 7;
break;
}
} else {
if (!rdr.read()) {
return IO_ERROR;
}
if (!rdr.has_value()) {
*current = nullptr;
break;
}
*current = rdr.value();
}
}
if (rdr.node_type() == ml_node_type::attribute_end) {
if (!rdr.read()) {
return IO_ERROR;
}
}
if(!hasIntPart&&!hasFracPart) {
return FMT_ERROR;
}
return SUCCESS;
}
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I agree. I’ve done some amazingly complex code on extremely resource limited microprocessors with state machines. They are compact and very fast.
"Mistakes are prevented by Experience. Experience is gained by making mistakes."
|
|
|
|
|
I just came across a spam message that appeared to have been created by ChatGPT. It contained instructions on how to try and get your Daily Insider subscription working.
|
|
|
|
|
|
|
This is the kind of chaos to expect when only one person can (or wants to) do your job.
There are no solutions, only trade-offs. - Thomas Sowell
A day can really slip by when you're deliberately avoiding what you're supposed to do. - Calvin (Bill Watterson, Calvin & Hobbes)
|
|
|
|
|