|
That tank would be completely wrecked if it crashed into those balls of steel
|
|
|
|
|
Using ASP.NET Core Razor Pages for an application.
I've got this really simple thing where I need to let users enter a decimal number.
It seems this is one of the hardest things in programming in 2020.
Insert the "I'm about to end this man's whole career" meme here.
Elephanting thing won't let me enter a comma because my browser says the dot is my decimal separator.
Unfortunately, my Windows begs to differ.
So I enter a dot in the browser, e.g. "1.2", and I get "12" in my back-end.
This is an international application so I need to get it right somehow
Maybe I'll just allow ANY input and just parse the damn thing myself...
The only good thing about this is that I get the same behavior in every browser
|
|
|
|
|
> Maybe I'll just allow ANY input and just parse the damn thing myself
It's not that hard. That's what I would do.
Real programmers use butterflies
|
|
|
|
|
Not hard, but sad that I have to
Or maybe actually harder than we think, because even the smart people at Google, Mozilla and Microsoft did it wrong
|
|
|
|
|
There is a huge gulf between designing frameworks and developing applications. Here, they didn't even get a piss simple thing right. I don't even bother looking at a framework unless it's recommended by someone I trust. Most of them get in the way as much as they help, or worse.
|
|
|
|
|
It's not even framework related, even a simple <input type="number" step="0.1" /> doesn't work.
The number input won't even let me enter a comma whereas the generated text will let me enter it, but the validation tells me it's not valid.
At least with the text input I can override the jQuery validation
This seems to be wrong on a very basic level, either on the browser which looks at my browser settings instead of my OS settings, or .NET, which uses my OS settings instead of browser settings, or something in between I don't know.
|
|
|
|
|
One of my colleagues wrote an ASP.NET Core application, it causes me a lot of headaches trying to stop and uninstall it from an Inno Setup installer, the damn thing just seems to keep running even though I wrote a special "Stopper" application.
Do you have any advice or experience regarding that ?
|
|
|
|
|
Format and reinstall without even getting near that app?
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Nope, all my apps stop when they should and sometimes when they shouldn't
Did your colleague spin up a separate thread that he never disposes?
I've seen applications keep running in the background before, both web and desktop, and it was usually a threading problem (and a bad code base overall, but that's another issue).
|
|
|
|
|
Thanks, I suspect it has something to do with threading too, hope my (young and reckless) colleague realizes that too instead of blaming the installer.
|
|
|
|
|
RickZeeland wrote: instead of blaming the installer Always blame some(thing/one) else!
Even if it turns out to be a thread, it's the thread and not him
|
|
|
|
|
RickZeeland wrote: the damn thing just seems to keep running even though I wrote a special "Stopper" application.
I find that incredibly annoying myself, even asked about it on the Q&A forums and got no answer.
From what I've learned, if it helps: a typical IIS application, the DLL's are shadow copied so you can update the master ones and IIS detects this and copies re-shadows the DLL's, all nice and seemless to the user experience on the browser.
ASP.NET Core applications aren't shadow copied, so IIS "locks" the DLL's regardless of whether there's any endpoint call currently being executed or not. The only solution I've found is to manually stop the associated application pool, do the update, and restart it.
And there seems to be no way to do that from the command line. Extremely frustrating.
|
|
|
|
|
Marc Clifton wrote: And there seems to be no way to do that from the command line.
they don't provide iisreset anymore?
ETA: it might be iisrestart - it has been a long time.
Real programmers use butterflies
|
|
|
|
|
|
Convert the field into cents insted of $ value. That way there is no decimal.
Zen and the art of software maintenance : rm -rf *
Maths is like love : a simple idea but it can get complicated.
|
|
|
|
|
Can uncertainty be quantified as a hot beverage?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
The certainty of this joke working is quantified as
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.
|
|
|
|
|
No, but improbability can.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Do they all get entered into the contest - assuming they are popular enough? or just one of them?
I had a couple of popular articles and the one that is slightly less popular has a better chance of winning, I think.
Which is why i ask the question.
Sorry, I love these contests. They are a lot of fun.
Real programmers use butterflies
|
|
|
|
|
I can't see why a person who writes more than one article a month should not have more than one article in the monthly popularity contest. OTOH, the hamsters appear to be obliging entities; if you wish an article to be removed from contention, I'm sure that they'd oblige.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
I'm not entirely sure I want to have it removed. It's a hunch right now and I didn't figure I'd have a choice, so I'd have to think about it some.
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: Do they all get entered into the contest - assuming they are popular enough? Yes, they do.
/ravi
|
|
|
|
|
As Ravi said, yes. I've had that happen a couple of times.
|
|
|
|
|
Actually we used to have categories like VB.NET, and Web Development. The rule was you could be nominated in two separate categories. Now we only have one category, so we only allow one author per competition.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
They make up everything!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|