|
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 2hrs 15mins ago.
|
|
|
|
|
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 2hrs 10mins ago.
|
|
|
|
|
I have been using VS 2022 17.7.4 on my home box for a while.
A few weeks again I set up a VM and installed VS2022 17.9.6.
In 17.7.4, the region collapse/expand icons are plus/minus signs in a little box. Pretty clear to see and understand.
In 17.9.6, they use ^ and > sumbols, which, IMHO, is a lot harder for your eyes to figure out.
Why would they change this????
In theory, theory and practice are the same. But in practice, they never are.”
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
|
|
|
|
|
lol
Personally, I don't mind it.
At first I thought it was a resharper or visual assist thing.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
I do mind it. Not only do the new icons look horible, it's just the fact that they would change it. I mean, why???
This is the sort of thing that drives devs mad. Leave things alone!!! It wouldn't be so bad if they created an option to change it an defaulted it to the previous setting, but to just go about changing the UI that devs are used to with zero warning is just rediculous.
In theory, theory and practice are the same. But in practice, they never are.”
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
|
|
|
|
|
Freakin' diva! ![Wink | ;)](https://www.codeproject.com/script/Forums/Images/smiley_wink.gif)
|
|
|
|
|
Um, what?
In theory, theory and practice are the same. But in practice, they never are.”
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
|
|
|
|
|
You missed it Kevin. He's poking at you. But seriously, changing defaults on developers is just an abortion. Dear MS, I have a really good elephanting idea. If you think what you are doing is better, let us have the option of "we disagree, make it go back".
The only thing worse I have ever seen MS do (maybe I'll make a website and had ads...) is force reboots. Whoever made the final decision on that needs to be beaten to the point of hospitalization (not the morgue). Free points if you can cite the movie.
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.
|
|
|
|
|
I know, right? And then they do NOT actually fix what devs have been begging them to fix, such as:
Microsoft Developer Community - Full Git Submodule Support[^]
Look in the comments in the thread of that post and you'll see what I mean.
Look, it took them until VS2022 just to make the devenv.exe process a 64-bit process.
|
|
|
|
|
Ya, lot's of new 'features', but ZERO useful change
In theory, theory and practice are the same. But in practice, they never are.”
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
|
|
|
|
|
Kevin Marois wrote: I mean, why???
They figured they needed to provide a reason for people to write extensions to change it back?
|
|
|
|
|
Because they are more interested in form than function, and to "be more inclusive."
Squares, apparently, hurt people's feelings...
|
|
|
|
|
LOL - A more liberal IDE
In theory, theory and practice are the same. But in practice, they never are.”
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
|
|
|
|
|
Maybe they do it to reduce confusion. A squared + is a plus, but a squared - is also a plus.
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|
|
trønderen wrote: Maybe they do it to reduce confusion.
They failed.
In theory, theory and practice are the same. But in practice, they never are.”
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
|
|
|
|
|
Because they can and you can not.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
I thought it appeared different but only now know why. C’est La Vie[^]
|
|
|
|
|
Perhaps MS should make these icons configurable. Config files are as old as eternity, isn't it?
Or, has MS already made these icons configurable ?
|
|
|
|
|
If you wish to format a date in Power Apps, there is a nice set of format letters to provide custom output. So using the Text function I can write
Text(myDate, "mmm dd yy")
Or for time I can write
Text(myTime, "hhmm")
Or I can combine them into
Text(myDateTime, "hhmm mmm dd yy")
Why would anyone think to use the same lower case letters for two very distinct fields?
There is actually a work-around, make sure dd comes first in the date. Good luck 'mercans. ![Big Grin | :-D](https://www.codeproject.com/script/Forums/Images/smiley_biggrin.gif)
|
|
|
|
|
Because "mm" means minutes, and "mmm" means the three-letter short month name. If you want the two-digit month number, you use "MM".
Custom date and time format strings - .NET | Microsoft Learn[^]
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I wouldn't necessarily assume that Power Apps use the same conventions .NET does.
I've used Power BI just a tiny bit, and I wouldn't assume anything based on any prior knowledge or...dare I say, common sense.
|
|
|
|
|
No, you use lower case "m" for both.
|
|
|
|
|
I thought 'mmm' meant Beer. At least it does when Homer does it.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
I’m begging you for the benefit of everyone, don’t be STUPID.
|
|
|
|
|
Richard MacCutchan wrote:
There is actually a work-around, make sure dd comes first in the date. Good luck 'mercans. Big Grin |
I would make sure dd comes last. yyyy-mm-dd is my default format.
|
|
|
|