Small open source Unicode library for C/C++

Does anyone know of a great small open source Unicode handling library for C or C++? I've looked at ICU, but it seems way too big. I need the library to support: all the normal...

Validate class/method names with regex

I'm currently working on an MVC Style framework for a company and for security reasons I need to make sure that the controller / method that's passed via the Query String is valid chars to the RFC...

Java isLetterOrDigit() method, isDigit(), isLetter()

I am trying to figure out how to check a String to validate whether it had at least one letter and one number in it. I will be upfront that this is homework and I am a little confused. There is a...

google maps api, The provided API key is invalid

This is my first time posting a question on stack overflow, really hoping you guys can help. I am trying to use the google maps geocodeing api for the first time and cannot get it to work. The url...

SourceTree and Stash: Unable to get local issuer certificate

We have Atlassian Stash installed on a Windows 2008R2 server, and for the most part everything is working nicely. We have an SSL certificate issued by our local on-premise CA and a DNS entry set...

IE11's Console reporting that I have more than one body tag

I keep getting this message on the IE11 Console HTML1514: Extra "<body>" tag found. Only one "<body>" tag should exist per document. File: Login, Line: 76, Column: 1 When I read the HTML, there...

How to validate / verify an X509 Certificate chain of trust in Python?

I am working on implementing a web application that utilizes an API. During a response, the API server sends over a link to an X509 certificate (in PEM format, composed of a signing certificate...

Mongoose saving with objectId

I am trying to save comments for a post. When I POST a comment from client side, the comment should be saved with the ObjectId of the post, which I collect from the post page - req.body.objectId....

Move zeroes to end of array in javascript - how to return nothing?

I am attempting to complete a leetcode.com question in JS. I am new to algorithms in general, and am having some trouble getting my first submission accepted. The question specifies the...

Schema-validation: missing table [hibernate_sequences]

I use Spring 4.3.3.RELEASE, Hibernate 5.2.2.Final, the database is MySQL. I wanted to try strategy = GenerationType.TABLE. As I know for GenerationType.SEQUENCE I need sequences in the database...

Jquery - Validating only one form out of multiple forms

So, I've browsed many threads on SO, but couldnt find my related query. Well, I've a webapp similar to SO, where questions are asked, and people have the liberty to comment/answer on the question...

ASP.NET/MVC: Automatic "validation-as-you-type"?

EDIT: I got it working now for text fields (see the comments below the question). However, for some reason, the validation doesn't kick in for my dropdown-list. In my ViewModel I have...

Refund using PHP PayPal REST API?

I am working on a PHP application that integrates into PayPal's REST API. I have the transactions processing correctly and saving the transaction ID into a MySQL database. I am now trying to...

Can't connect to Grails v3 rest controller, get 403, access denied

I created a new grails v3 app, and added following dependencies to build.gradle: compile group: 'org.springframework.security', name: 'spring-security-core', version: '4.2.1.RELEASE' compile...

Validation of read-only attributes

I would like to have some validation inside of a property setter in a class. This property has to be set during object creation and then it needs to be read-only from the outside. I found the...

Separating the Domain Model and the Data Model

My question is similar to this one: https://stackoverflow.com/questions/20944865/repository-pattern-and-mapping-between-domain-models-and-entity-framework. I have done a lot of reading on here...

Spring Security 5 - Password Migration

This is a follow-up to an earlier question. I am attempting to migrate an OAuth2 application to Spring Boot 2 / Security 5. According to one of the comments in my earlier question (and this), it...

Modal close and form value reset not working in Angular

Crossing with many existing questions related to my question, I post this. So don't comment this as duplicate and send duplicate answers my scenario is a little bit different. All solutions are...

Apache Calcite throws error when using COALESCE with untyped nulls only

When runnning SELECT COALESCE(NULL, NULL); on Apache Calcite I get an error which tells that ELSE clause or at least one THEN clause must be non-NULL This happens because COALESCE function is...

Unable to assume role and validate the specified targetGroupArn

I'd like to create and deploy a cluster using terraform ecs_service, but am unable to do so. My terraform applys always fail around IAM roles, which I don't clearly understand. Specifically, the...

What patterns exist for mocking a single function while testing?

I have a function generates a salted hash digest for some data. For the salt, it uses a random u32 value. It looks something like this: use rand::RngCore; use...

Symfony Iframe Logging Problem On Chrome With SameSite Cookies

I have A site and B site. Both on HTTPS, both on different domains. A site runs Symfony where I prepared a login page which I include via iframe on page B. The logging process works correctly on...

react-hook-form validation before submission

I have a form (sorry it is so long) that is very simple for a user to enter name, email, phone,...

Use generic interface in Moq with CQRS pattern

I have an interface ICommand -> marker interface: public interface ICommand { } another interface ICommandHandle: public interface ICommandHandler<T> where T : ICommand { Task HandleAsync(T...

TOML vs YAML vs StrictYAML

TOML said "TOML and YAML both emphasize human readability features, like comments that make it easier to understand the purpose of a given line. TOML differs in combining these, allowing comments...

LSTM for time-series prediction failing to learn (PyTorch)

I'm currently working on building an LSTM network to forecast time-series data using PyTorch. I tried to share all the code pieces that I thought would be helpful, but please feel free to let me...

DataAnnotation Attribute in Windows Forms - How to use UIHint Attribute with WinForms

I have a DataGrid with a List<Foo> as the datasource. I want the datagrid to use my custom control as the editor for the Foo.Value property. I believe is the purpose of the UIHintAttribute, but it...

Build android error at stage app:mergeDebugResources, ParseError AttributeNSNotUnique

I've been trying to build my Android Application on Android Studio 4.2 with Gradle 4.2.1, but I am faced with the following error of which I was only able to find one question one month ago, and...

AWS SSO Custom App SAML Authentication error (InvalidIdentityToken, Invalid Base64 SAMLResponse

I have created a sample custom app on AWS SSO and tried to authorize users with SAML. The workflow is as follows: User clicks custom app logo on SSO console and starts authentication flow. SAML...

ValueError: Input 0 of layer "sequential" is incompatible with the layer: expected shape=(None, 45), found shape=(None, 46)

I am using DNNs for my project and I meet an error as follows. The architecture is NN_model = Sequential() # input layer NN_model.add(Dense(128, kernel_initializer = 'normal', input_dim =...

Relevant tags