67,686 questions
Score of -2
0 answers
77 views
What is causing irregular spiking on training and validation loss with an ANN model tuned with HyberBand?
I have used Hyperband automatic tuning for an ANN model to predict price. After running the model with the automatic tuning, I am obtaining an R2 score of 1.00 that suggest overfitting, however, I am ...
Score of -2
1 answer
218 views
Validate Index for a Collection
Background
I am developing a set of Clx_*() utilities for Collections in VBA, which wrap (or extend) their corresponding Collection.*() methods and should be platform-agnostic. These procedures ...
Score of -2
1 answer
66 views
Conditionally alidate field if another field is entirely valid and not just filled
realestate\app\Http\Controllers\AuthController.php has registration validation rules and register method:
use Illuminate\Http\Request;
use Illuminate\Support\Facades\{Auth, Log};
use Illuminate\...
Best practices
0
votes
3
replies
129
views
Gap Statistic Versus Total Sum of Squares For Cluster Centres (r language)
Hi I had a quick question about what to do when you encounter a situation where the optimal cluster center is different when you graph out the gap statistic and the total sum of squares.
As I ...
Score of 2
1 answer
126 views
.NET 10 Minimal API validation throws "Property 'this[]' not found on type 'JsonElement'" when a DTO has a JsonElement member
On .NET 10 (SDK 10.0.300), enabling the Minimal API validation pipeline with AddValidation() throws an InvalidOperationException at request time when the request DTO contains a System.Text.Json....
Score of 0
3 answers
210 views
Why does my Java stack-based bracket validator fail with nested expressions?
I am implementing a simple bracket validator in Java using a stack. The goal is to verify whether an expression contains balanced parentheses, brackets, and braces. The validator works correctly for ...
Score of -2
1 answer
63 views
Custom Zod validation middleware returns empty object when validating query params in Express
I am building a simple side project to learn backend development. I am using a custom Zod validation middleware in my Express app that was already built. It works correctly for body and params but ...
Score of 0
0 answers
141 views
HTML Validation Extension in Visual Studio Code reports invalid figure but it should be fine?
I use Visual Studio Code and the site is still not online, but almost finished.
I'm a great fan of accessibility, so I use for example figure elements like this, i.e. with role="group":
<...
Score of 1
0 answers
131 views
xml-xsd-engine marks errors instead of warnings in lax mode
I am trying to validate an XML against an XSD using typescript. For that I am using a library called xml-xsd-engine.
The XML has some elements / attributes that are not present in the XSD and upon ...
Score of 2
1 answer
141 views
Laravel strict type validation on query parameters
So i'm working on a Laravel application, which uses query parameters (GET parameters) to communicate from front to back. To validate these parameters, I extented the FormRequest class:
class ...
Tooling
1
vote
1
replies
107
views
How do I sanitize input for generating PDFs in a web application?
I'm building a web application using Node.js. The application allows users to generate PDFs based on input data. I'm looking at pdf-lib, pdfkit and pdfmake to generate PDFs. However, from what I've ...
Score of 0
1 answer
187 views
Embed strings inside localized validation error messages
I configured localization in my project. I have generic validation error messages with placeholders, and field names, such as these.
src/main/resources/lang/messages.properties:
field.NotBlank=Polje {...
Score of 0
1 answer
83 views
Django - Register User with Confirm Password validation/error message on Bootstrap form
I am trying to create a Register User form using Django 6 and Bootstrap 5. The form displays field level validation/error messages. However, I am not sure how to include the Confirm Password field (...
Score of 1
0 answers
64 views
CsvValidator optional header column
I am using the UK National Archives CSV Validator via the Maven dependency uk.gov.nationalarchives:csv-validator-java-api-1.4.0.jar to validate both the headers and the body of CSV/txt files.
I am ...
Advice
0
votes
8
replies
173
views
Validate file content from malicious script
My program receives a CSV file with two columns: ID and Prompt. The security team has asked me to validate the Prompt field. If it contains elements such as <script>, <!-->, or similar ...