67,707 questions
Advice
0
votes
2
replies
49
views
When it comes to measured data. How would you define an anomoly?
This is a very general question, but I am currently working on a project that researches anomalies in databases. I know there are a lot of general algorithms I can look into, but what are the correct ...
1
vote
1
answer
80
views
How to validate attribute relative to another when instantiating class
From this answer and similar blog posts I've used the decorator method to do data validation when creating a class. But now I need to validate one attribute relative to another. E.g.:
class Planet:
...
1
vote
0
answers
68
views
WinForms / .NETFramework: Format DataGridViewCell according to ValidationResult
Consider a small Winforms application that has a list of custom objects bound to a DataGridView.
The data class:
public class MyAwesomeClass : IDataErrorInfo, INotifyPropertyChanged
{
string _Name;...
0
votes
0
answers
33
views
validating a nonce in the add-to-cart url
Been trying to block a botnet attack that somehow goes directly to all the add-to-cart urls on my site without ever crawling the pages. htaccess rewrites are only blocking 90% of the requests.
Google'...
0
votes
1
answer
37
views
How to invalidate form if no checkboxes selected?
My form includes 3 checkboxes.
<fieldset class="mb-5">
<legend class="h4">Question?</legend>
<div class="input-group has-validation mb-3"&...
0
votes
1
answer
66
views
Rust Validator on Double Option Fields
I have the following struct for mapping payloads for updating an entity:
#[derive(Clone, Deserialize, ToSchema, Validate)]
pub struct BookUpdateset {
#[cfg_attr(
any(feature = "test-...
0
votes
0
answers
41
views
Calculate days from overlapping date ranges by month and grade
I am struggling to pull data that has overlapping dates to calculate the number of days when certain criteria is met. I used Results Reporting which is a SAP BI object. I've tried nested if statements ...
0
votes
3
answers
76
views
Disable Submit button *after* jquery.validation
I am using jquery.validation in an ASP.NET MVC form and would like to disable the submit button when jquery.validation passes and form actually submits. The validation triggers in the background (I am ...
0
votes
2
answers
92
views
Replace regex with Jinja2
I use Jinja2 and mixhtml for validating length of the input from the user.
From my app.py two cons
USER_USERNAME_MIN = 2
USER_USERNAME_MAX = 20
But I'm not sure how to place them into the input ...
0
votes
2
answers
183
views
Is there a better way to validate user input in C# then using a do-while loop [closed]
I'm new to C#, and I'm wondering if there is a more efficient way to validate user input than the code below. I've only been learning C# for about 2 weeks, and the code below will use the returned ...
Advice
0
votes
2
replies
104
views
Difference between `GetInvalidFileNameChars` and `GetInvalidPathChars`
I want to make sure I clearly understand the difference between GetInvalidfileNameChars and GetInvalidPathChars because, at least on windows platform, the former will exclude things like * ? : while ...
0
votes
0
answers
67
views
How to semantically associate the non-heading title with text block without breaking of HTML validity?
The following admonition block:
has been implemented as:
<div
role="alert"
class="..."
>
<div
id="ADMONITION_BLOCK-g63lpdW6hNuTc-02DamYx-TITLE"
...
-1
votes
2
answers
66
views
I need to set greater than or equal to in batch file
I have a batch file as shown below where I compare the target date to the current date.
The batch file works as long as the target date and current date are equal.
What I need is to set up so that if ...
1
vote
3
answers
133
views
Output ngModel value only when valid [closed]
I am currently migrating an AngularJS application to Angular 19+. I am using template-driven forms, because it is close to the AngularJS way of doing it.
When I have a form input in AngularJS using ng-...
0
votes
1
answer
45
views
Qlik Sense – Converting existing Budget variables to YTD gives wrong GP
I have an existing Budget P&L model that was originally built to work on a single selected month only using `Max(MONTH_NUM)~.
The variables work perfectly month by month, but I am trying to ...