|
What! And miss out on the advantages of storing it in a UNIQUEIDENTIFIER column? Think of the math you could do with 128 bit unsigned fields!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Culture's probably not the problem (if it is it's between browser and back-end, not DB and back-end).
It's posted as string "1.2" (no matter if the separator in the input is actually a comma or dot) and .NET converts that to a whole number.
It's probably a string because it's bound (with Vue.js) to an input and inputs are always strings.
Anyway, you'd think that converting "1.2" to 1.2 before posting would solve the problem.
Unfortunately, it doesn't...
And here I was thinking saving some data was going to be easy
|
|
|
|
|
If it was easy, everybody would do it. You see what happened when we had VB6
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I had a course on a no-code platform last week (Betty Blocks).
The more I code, the more I like no-code
|
|
|
|
|
Sander Rossel wrote: I had a course on a no-code platform last week (Betty Blocks).
The more I code, the more I like no-code Having worked with and on multiple code-generators, I'm a bit sceptical, but looks promising overall. And free to try by the looks of it
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Quote: I'm so happy that after about 30 years of web development I always thought you are very much younger, please correct your Profile picture
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
I'm 30 actually
Of course I haven't been web developing for 30 years... If I had we wouldn't be in this HTML/CSS/JavaScript mess that is the web today
|
|
|
|
|
I primarily work WPF and that does a great job of converting. However, I recently worked on a project where I had problems with converting number, and so had to do some work arounds. Funny thing was I could not reproduce the problem in a sample project. Go figure.
|
|
|
|
|
Clifford Nelson wrote: Funny thing was I could not reproduce the problem in a sample project Been there, done that. I feel your pain!
|
|
|
|
|
Just tell the user they can't use the number 1.2 or 1,2.
Sander Rossel wrote: Guess I'll just be happy I'm not working with dates.
You're prescience is excellent. Working with date/time in Javascript is such a nightmare. Months are 0-based. Days are 1-based. UTC vs local time. Adding time. Formatting date/time. Ugh. If you haven't already, seriously consider using Moment.js | Home
|
|
|
|
|
Marc Clifton wrote: Just tell the user they can't use the number 1.2 or 1,2. I've considered converting it to an int. It's quite easy for me to use 120 instead of 1.2 or 85 instead of -0.15.
They're sort of "magic" numbers that I got from some calculation I need to use.
I'll gladly divide them by 100 if that means I don't have all that double/decimal trouble in JavaScript and .NET.
Anyway, I figured out what was wrong before I went there
Marc Clifton wrote: seriously consider using Moment.js | Home My go-to library when I need to work with dates (especially when I need to support Klingon culture as well! )
|
|
|
|
|
Sander Rossel wrote: I figured out what was wrong before I went there
Enlighten me. I'm curious.
|
|
|
|
|
It's actually in a post above, but it seems the permalink to posts has disappeared...
Here's a copy/paste (spoiler: I messed up).
Sander Rossel wrote: FOUND IT!!!
Apparently, I wasn't posting JSON at all...
The entire thing got posted as form data and that uses different deserialization rules for obvious(???) reasons
Changed the type of AJAX to JSON and 1.22 is now serialized as 1.22 (but 1,22 is completely invalid ).
|
|
|
|
|
VM with mozilla thunderbird crashed.
I could still get the data but couldn't run any apps (Including thunderbird).
Googled where Thunderbird stores email and email setup.
%appdata%\roaming\thunderbird
Installed Thunderbird on new machine. Did not start it.
Copied %appdata%\roaming\thunderbird from old to new machine.
Started Thunderbird...
All email accounts and email available with no wait and works exactly like it did on the first machine.
Phew...
Very cool, Mozilla.
|
|
|
|
|
Yeah, I use Seamonkey. Integrated browser, email and other stuff.
The email is thunderbird for all intents and purposes. It handles rss feeds nicely too.
Good stuff.
|
|
|
|
|
Cross-platform too! I copied my profile from Win7 onto a USB, then to Ubuntu, now my primary machine. Works seamlessly. The only significant difference I noticed is that I get two copies of the "Master Password" dialog at startup. I think that's because I have two email accounts. And yes, it does RSS well, particularly using message filters.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Peter_in_2780 wrote: Cross-platform too! I copied my profile from Win7 onto a USB, then to Ubuntu, now my primary machine. Works seamlessly.
That is truly amazing. Great work by the Thunderbird team.
|
|
|
|
|
digging down in the stored email you will find the messages stored in plain text,
i.e. there's a files in there called Inbox, Inbox.msf (also Sent, Trash ...) The ones without extensions are your messages.
If for some weird reason thunderbird wont play (which is rare) you can read those files with nothing more than notepad/np++ and see messages - A bit messy for the html formatted but you can search for and find body text.
- in fact many other mail clients will recognise those files as RFC-whatevernumber email files and open them correctly.
as usual it's only microslop that does things differently, they broke [and attempted kill] that standard decades ago, and never fixed it.
Signature ready for installation. Please Reboot now.
|
|
|
|
|
Lopatir wrote: you can read those files with nothing more than notepad/np++ and see messages
That's really cool stuff.
Lopatir wrote: as usual it's only microslop that does things differently, they broke [and attempted kill] that standard decades ago, and never fixed it.
Most likely in their attempt to own your data which is locked up in their proprietary software. Really too bad.
|
|
|
|
|
Thunderbirds are go !
|
|
|
|
|
similar with firefox also
Caveat Emptor.
"Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
|
|
|
|
|
abmv wrote: similar with firefox also
it's very cool to see developers think this type of stuff through and solve it properly.
Of course, it probably does have to do with being very open and not trying to lock your data up in proprietary software so you can never move away from them.
I didn't even expect what I did (simple copy) to actually work and I was stunned when it did.
|
|
|
|
|
At some point this is thought to be too easy, too simple. So a developer comes up with a bright idea, perhaps to encode the emails because it is 'more secure', or to put it in XML because 'thats the way things are done these days' and he wants to put it on his CV, or to use some new technology, because its like playing with a new toy to him.
And it f***s up.
This is why oldversion.com exists. Because so many software engineers are twats, and I have worked with quite a few.
|
|
|
|
|
Munchies_Matt wrote: This is why oldversion.com exists. Because so many software engineers are twats, and I have worked with quite a few.
Thanks need something like this.
|
|
|
|
|
In Transact-SQL anyway...
Mostly they're optional.
Sometimes they're required.
But never put one between END TRY and BEGIN CATCH .
(SQL Server 2014)
|
|
|
|