|
I wrote a little C implementation of a ring buffer I was using for serial UART code. It wasn't very efficient because it only dealt with puts and gets one byte at a time. I improved it to deal in adding and reading series of bytes at a time.
I wrote it for someone I met on reddit who taught himself to code recently. I respect the effort, but bear in mind he taught himself to code recently.
Not really thinking about that code, I sent it off to him and it didn't occur to me to stash it somewhere. It was just something I threw together to help someone out.
Turns out, that bit of code was gold. And I can't find it. I could get some iteration of it back from the person on reddit, but I know they've already hacked it some - they told me as much. Yikes.
I tried to wrap my head around it to rewrite it, but I'm already dealing with overlapped I/O in windows w/ COM ports right now, and I can't spin that many plates these days, at least at once. I'll have to come back to it later, except I'm blocked now for want of the ring buffer.
I wish I had that code. Nice bit of kit that, a circular buffer you could write entire chunks to and from. I didn't think it was that big of a deal when I wrote it.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
That's why I often write a quick Tip here on something I've done - it's come in handy on several occasions when I get to need it again!
"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!
|
|
|
|
|
Indeed.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
C'mon, you can (re-)do it. It doesn't look so difficult (keeping in mind your skills).
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
... (we'll call her "Sue") and they get to discussing "That Employee" (we'll call her "Karen"): you know the one - takes 30 minute loo breaks, disappears for an hour and no-one knows where she is, always last in line to do anything. The one no-one wants to work with, or to work on stuff she has done in the past. That Employee.
Anyway, Sue's daughter still works there, so the gossip gets back to Sue, and she passes it on the Herself. The company has had enough of Karen, and is building up a paper trail with the aim of firing her when they have enough evidence to forestall any legal objections.
Karen appears to have noticed that the game is up, and has found a new job, doing the same thing - so she applies online, and gives her reasons for wanting to change job as basically "the management here are sh*t".
Unfortunately, she didn't notice that the company she is applying for is not only in the same group of care homes, but ... is the care home she is currently "working" for ... and her application lands right on the home managers desk.
Oh, I'd have loved to hear that conversation!
Names changed to protect the guilty.
"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!
|
|
|
|
|
Failing to maintain standard circuits in key (7)
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
|
|
|
|
|
RELAPSE?
"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!
|
|
|
|
|
Nope
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
|
|
|
|
|
Good! I had no idea how to get from "Key" to "Ree" ...
"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!
|
|
|
|
|
You are on the right track though.
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
|
|
|
|
|
COLLAPSE in that case! (though that's 8, not 7 letters... )
COLE = maker of locks/keys
|
|
|
|
|
Nope
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
|
|
|
|
|
LAPSING?
(though it should be LAPSSING, but that isn't a word ...)
"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!
|
|
|
|
|
Its laps in g
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
|
|
|
|
|
"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!
|
|
|
|
|
Eh ?
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
|
|
|
|
|
as in "I should have thought of that" ...
"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 832 2/6
⬛🟨🟨⬛🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 832 5/6
🟨⬜🟨⬜⬜
⬜🟨🟨🟨⬜
🟨🟨⬜🟨⬜
⬜🟨🟨⬜🟨
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 832 4/6
⬜⬜🟨⬜🟩
🟩⬜⬜🟩🟩
🟩⬜⬜🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 832 3/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!
|
|
|
|
|
Wordle 832 4/6
🟨🟨⬜⬜⬜
⬜🟨🟩⬜⬜
🟩⬜🟩🟩🟩
🟩🟩🟩🟩🟩
Using this one daily
|
|
|
|
|
Wordle 832 5/6*
⬜⬜🟨⬜🟩
🟩⬜⬜🟩🟩
🟩⬜⬜🟩🟩
🟩⬜⬜🟩🟩
🟩🟩🟩🟩🟩
One of those days...
Happiness will never come to those who fail to appreciate what they already have. -Anon
|
|
|
|
|
Wordle 832 4/6
🟩⬜⬜🟨🟨
🟩🟨⬜🟨🟩
🟩⬜🟩⬜🟩
🟩🟩🟩🟩🟩
|
|
|
|