|
well, I had the pleasure of arguing with my water department today (new post coming) and watching my 5 yo grandson. He and I have decided that he can come over this summer, and I'll teach him how to swim. So, there is project #1.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
charlieg wrote: I just need to sedate the geriatric golden that I know has less than 6 months to live Hips are failing I'm so sorry .
Week before last I had my greyhound Bacchus put to sleep after he developed bone cancer. He was retired from a racing kennel in Florida and we think he'd been through a hurricane or a tropical storm, because he was terrified of bad weather. We found a CBD-infused treat that helped him a lot, and was a lot less harsh than the trazadone we tried first.
We've had a fair amount of thunderstorms the last couple of weeks. I think I need to give Big B a treat, and then I remember .
Software Zen: delete this;
|
|
|
|
|
Well, life took a surprise turn on me. Daughter came home from Tennessee yesterday and announced that her golden is coming to live with them. One less thing to worry about. There is no doubt that the dog and her have a very special bond, so I'm hoping that with her being seen daily, he'll really improve.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
charlieg wrote: tornadoes a bit north of me, but....
... nice breeze blowing through the office
I guess as long as one is sure it is just a breeze.
|
|
|
|
|
Wordle 1,056 4/6
⬜⬜🟨⬜🟨
⬜⬜🟨🟨⬜
⬜🟨⬜🟨🟨
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,056 4/6
⬜⬜🟨⬜🟨
🟨⬜⬜🟨⬜
🟨🟩⬜🟨⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,056 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!
|
|
|
|
|
Wordle 1,056 4/6
🟨🟨🟨🟨⬜
⬜⬜🟨🟨🟨
⬜🟩🟩🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
⬜⬜🟨⬜🟨
⬜🟨⬜⬜⬜
🟨🟨🟨🟨⬜
🟩🟩🟩🟩🟩
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,056 5/6*
⬜⬜🟨⬜🟨
🟨🟨⬜🟨⬜
⬜🟨🟨🟨⬜
🟨⬜⬜🟨🟩
🟩🟩🟩🟩🟩
Wrong 3rd choice - should have finished in 4
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,056 5/6*
🟨⬛⬛⬛🟨
⬛⬛🟨🟨⬛
⬛🟨⬛🟨⬛
⬛🟩🟨⬛⬛
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,056 5/6
⬛🟨⬛⬛⬛
🟨⬛⬛🟨⬛
⬛⬛🟨🟨⬛
⬛⬛🟨⬛🟨
🟩🟩🟩🟩🟩
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 1,056 3/6
⬛🟩🟨⬛⬛
🟩🟩🟩🟨⬛
🟩🟩🟩🟩🟩
Jeremy Falcon
|
|
|
|
|
Wordle 1,056 4/6
⬛⬛⬛⬛⬛
⬛⬛🟨⬛🟨
🟩🟨⬛🟩🟨
🟩🟩🟩🟩🟩
|
|
|
|
|
IP-API.com - Geolocation API[^] is a little web service to get a bunch of info about where you're at based on your IP (or an IP you give it)
I use it for my little internet clocks to fetch the timezone since they don't have GPS.
It can return values in CSV, JSON or other formats.
Arduino already has stream.readStringUntil(',') so parsing CSV seemed trivial. For quite awhile I was doing that.
On a lark, I decided to swap it out to use JSON and my little JSON pull parser for embedded.
The resulting code is actually a bit shorter than the CSV approach. And it doesn't take a lot of RAM because it's a pull parser (like XmlReader), and not a DOM
I'm leaving it in JSON
I love when stuff like that happens.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: Arduino already has stream.readStringUntil(',')
But no honoring of quotes and escapes?
modified 9-May-24 20:37pm.
|
|
|
|
|
Of course it does.
I should amend that: The CSV technique did not. The JSON technique does. In this case it doesn't matter, because the data formats are all known ahead of time. It's not generalized.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
modified 9-May-24 20:50pm.
|
|
|
|
|
Quote: In this case it doesn't matter, because the data formats are all known ahead of time. It's not generalized
That is what I thought too. I had rolled my own JSON parser because the data was in a set format. Did not think I needed a whole big JSON library. Everything was humming along nicely until I was about 110,000 reads in, then the website threw in a different format and it all went boom. The fix was easy, but what a pain. I was glad I was the only one using the code.
Within you lies the power for good - Use it!
|
|
|
|
|
JSON is a bit different than CSV though. My JSON is compliant.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I rolled my own JSON reader -- converting JSON to XML as it goes, because SQL Server has an XML datatype and functions.
And every once in a while I would receive a corrupt JSON file (produced by a third-party product) and I would need to deal with it. In such cases I needed to report where the error occurred.
|
|
|
|
|
I derived my parser from this, ultimately: JSON[^]
Although I first converted a lot of it to regex for reasons.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Yep, I have referred to that many times. All I need to do is load data from JSON files into database tables. My reader scans along, tokenizing the JSON, and checking whether or not it has located an item I want to send to the database.
|
|
|
|
|
Yeah I do similar. I used my Visual FA project to render some state graphs, and then used those to hand roll a lexer/tokenizer in C++. I hand rolled it because even though I have a generator for C/C++ I do some extra things while lexing. Like when I'm scanning a number it parses the number into a double and a long long both at the same time. That way I get numeric values on those fields and I don't lose precision for very long ints. Since it streams it can process very long numbers, even though it will lose precision
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: parses the number into a double and a long long
Because I'm loading to SQL Server, I let the server do that as appropriate. I just send XML and extract individual values via XPath and squirt them into columns.
|
|
|
|
|
Mine is a generalized JSON parser. I use it for various things.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|