|
Yep,
I covered altitude, speed and heading. Realized after I posted that I should have used a city on the prime meridian for that extra kick.
DerekT-P wrote: I was more taken aback that the serialiser generates non-parseable JSON I think you might find that some people are surprised that you are trying to serialize an uninitialized object.
|
|
|
|
|
This is all documented in the docs for the GeoCoordinate class, which isn't serializable. The serialization/deserialization code needs to handle the NaNs to ensure uninitialized data is properly converted. Serializing a NaN to a number is not correct. NaN isn't an out of range error, it's simply not initialized. These are different concepts.
|
|
|
|
|
I can find a Microsoft document that does indeed state the constructor with no parameters creates an instance "with no fields set". The description of other constructors (e.g. passing lat/lng values) does not mention that other fields are not set. In this case, GeoCoordinate uses NaN to mean "unknown". I feel it would make more sense to use double? (i.e. nullable) values anyway - which would also be supported by JSON.
However my main gripe is not that the fields are NaN, but that ASP.Net fails to serialise NaN values in a way that makes the output JSON invalid. Valid input should not generate invalid output. I recognise (belatedly!) that NaN is itself not supported by JSON but that doesn't change the fact that valid input should generate valid output. If it's unable to do so it should throw an exception, surely?
My other gripe is that the Accuracy fields are documented as Double, yet they are clearly not a "true" Double. You can assign a valid double value to it (i.e. zero) and yet after the assignment the value remains NaN. This is not the normal behaviour of a Double and as such it would be really, really, really helpful if it were documented. You can set it successfully to .000000000000001 but not to zero. It makes you wonder if there are other values it can't have...? (Oh, and I tried setting it to a negative value, just to see what happens; and it crashed the IIS Application Pool. It's now showing as "Stopped" but won't accept Start! Guess that's it's way of telling me to go to bed... )
|
|
|
|
|
|
Here's link to Google Maps showing what you're asking to be the defaults:
Google Maps
|
|
|
|
|
Here's the source of those two properties[^]
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Microsoft's business model is to grind you down and break you, make you realize that hope is a luxury you can't afford and that any attempt at resistance is futile.
To err is human. Fortune favors the monsters.
|
|
|
|
|
...meet in the hallway.
One asks the other: Can't you sleep either?
|
|
|
|
|
Cuz they're corrupt? Or...?
|
|
|
|
|
Sorry but no, it is other: It is because they are unisex, bisexual, gay, straight, unknown, black, yellow, white, grey, thin, medium, heavy, male, female ... and lot others ...
|
|
|
|
|
Oh, got it!
|
|
|
|
|
It's OK for Portrait mode, but it looks odd in landscape to me - too much white space on the left and right.
Since I mostly run CP on my Portrait monitor, it's not a problem, but I'm unusual in having the choice, I think.
What do you guys think?
"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!
|
|
|
|
|
The main menu is on the right side now, instead of the left. Other than that, nothing major to complain about.
My usual layout is "fixed" and that seems fine so far.
modified 21-Mar-22 15:41pm.
|
|
|
|
|
Slacker007 wrote: The main menu is on the right site now, instead of the left.
Oh that's interesting. I hadn't realized that - it looks unbalanced now. Menus should be on the left.
|
|
|
|
|
To my mind the left edge is the logical place for the forum tree.
|
|
|
|
|
Richard MacCutchan wrote: To my mind the left edge is the logical place for the forum tree.
YES!
|
|
|
|
|
Until a couple of weeks ago all colors were muddy and matte but after today both eyes have had Cataract surgery and the colors are so vivid and the whites so white, it's given me a whole new outlook on life.
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
Glad to hear it! It's a truly wonderful surgery 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!
|
|
|
|
|
That it is, been waiting a long time for VA to finally do it.
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
I know you love photography. I can't imagine the improvement the surgery has given your eyes in regards to photography and all that goes with that.
|
|
|
|
|
I just got my right eye done today so it's going to be a couple of weeks before I can get out with my camera but am really looking forward to it.
In the past everything was fuzzy and dull, with the lenses they installed and cataracts removed things should be more in focus and colorful. In the past I had to rely on the camera, which is not all bad it's a D850 but there's so much more I want to do with it.
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
I'm delighted to hear that the surgery went well, Mike!
Will Rogers never met me.
|
|
|
|
|
Thanks Roger...so far so good!
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
I've literally just loaded the Lounge and the new layout immediately gave me a sense of vertigo / seasickness. It felt like I was falling off the left edge of the screen!
I suppose I could get used to it but the tree menu being on the right just feels wrong.
|
|
|
|
|
I prefer the "tree" on the left. Also, too much wasted space. Change for change sake?
>64
Some days the dragon wins. Suck it up.
|
|
|
|