AngularJS: integrating with server-side validation

I have an angular app that contains a save button taken from the examples:<button ng-click="save" ng-disabled="form.$invalid">SAVE</button>This works great for client side validation because form.$invalid becomes false as user fixes problems, but I have an email field which is set invalid if another user is registered with same email. As soon as I set my email field invalid, I cannot submit the form, and the user has no way to fix that validation error. So now I can no longer use form.$invalid to disable my submit button.There must ...Read more

tensorflow - ConvNet validation accuracy relation with each epoch

When training a CNN, why can the validation loss improve in an epoch even if an epoch before it the validation loss has not improved? I don't use any dropout and the training and validation dataset remain the same after each epochModel:model = Sequential()model.add(Conv2D(filters=16, kernel_size=2, padding='same', activation='relu', input_shape=(32, 32, 3)))model.add(MaxPooling2D(pool_size=2))model.add(Conv2D(filters=32, kernel_size=2, padding='same', activation='relu'))model.add(Conv2D(filters=64, kernel_size=2, padding...Read more

validation - Filter only applied if in the same package

For a Java EE application I created a custom as kindly documented by Abhishek. It basically is running fine. However, when I move the annotation and filter (e.g. from to another package on the same level (e.g. then the filter is not applied anymore. Why not?It does work if the filter and annotation are moved to a sub-package (e.g. from more

validation - Grails Domain: How to access parent domain data?

I have a parent child domain structure, and I want access parent domain data in child domain for validator. For example in the code example below, child1 has a variable 'name' and for validator purpose I need child2 data.How can I achieve this situation?I have domain structure like this:class Parent{ Child child1 Child child2 static mapping = { child1 lazy:false child2 lazy:false }}class Child{ String name // some other variables static belongsTo = [parent:Parent] static constraints = { name(nullable...Read more

validation - Clojure: check if a function has certain post (or pre) conditions

QuestionIn Clojure, it is possible to check if a variable represents a function, using ifn?.What I'm asking myself is, if there is a way to check if a var is a function which has certain post (or pre) conditions.Bonus: is it possible to construct the post-condition to be checked parametrically?ExampleLet's say that foo represents a function (i.e. (ifn? foo) returns true).How can I check that foo has a certain post condition, e.g. that it returns numbers between 0 and 10. In other words, how can I check that foo has the following post-condition?...Read more

validation - Check for length of a character string in SAS Proc Format

I would like to write a PROC FORMAT to check for errors in a variable that serves as a unique identifier. The variable is a character string of length 16, and it usually has a number of trailing zeros, like so:0000001234567890I would like the PROC to output an error to the log if, for example, the variable is null or if the length of the sting is different from 16. Can this be done in the same proc, without having to go through functions such as length()?what I would like to obtain is something like:proc format;value $ id_error ' ' = _ERROR...Read more

validation - CSS3 Background Gradients Not Validating, Can Someone Tell Me Why? Code Example Inside

Can someone tell me why the following css is not validating? I've been trying to research this myself with no luck. All of the documentation I've read says this is the proper why to do gradients in css3.#header { color: white; font-size: 12px; font-family: Helvetica, Verdana, Arial, sans-serif; background: black; background: -moz-linear-gradient(top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.65)), color-stop(100%,rgba(0,0,0,0))); background: -webkit-l...Read more

Disable validation of HTML5 form elements

In my forms, I'd like to use the new HTML5 form types, for example <input type="url" /> (more info about the types here).The problem is that Chrome wants to be super helpful and validate these elements for me, except that it sucks at it. If it fails the built-in validation, there's no message or indication other than the element getting focus. I prefill URL elements with "http://", and so my own custom validation just treats those values as empty strings, however Chrome rejects that. If I could change its validation rules, that would work...Read more

validation - AngularJs: Disabled submit button is gets enable from firebug console

I am using ng:Disabled directive for disabling my submit button. Its working fine its not enabling until all the required input fields are getting filled, but when I am inspecting the element using Google chrome firebug console and manually delete the disabled attribute from submit button then its get "Enabled" and form is submitted. So my question is that how to handle this type of problem. There are any option to checking validate from controller and enable/disable submit button from controller.Please give me some suggestion for this.Basicall...Read more

validation - Mozilla's publicsuffix -- does it contains _all_ currently available LTD's?

There's a Mozilla's project "". I think it'll come in handy for my library where I want to validate URIs, particularly the ltd part. Does publicsuffix contain all possible ltd's in the word which are currently available in the Internet and is always up to date? Can it be used in production?Note that my question isn't about suggesting me a library or service for validating URIs....Read more

amazon web services - Parameter Validation for AWS Api Gateway

So I created a resource and a GET action on my Api Gateway. I correctly pass my url parameters through Method Execution and through Integration Request via Mapping Templates. Currently I am having my Api endpoint execute a Lambda function when hit and there are parameter validates in my Lambda function. I was hoping there would be a way for Api Gateway to tell me validate the url parameters for me. But I can't find any documentation or blog that teaches me how to do that. I heard in a previous post that this feature may come in later if people ...Read more

validation - Proper way to validate DKIM-Signature (b= part)

I'm trying to develop my home email server (with NodeJS on server side but it's not important as I try to figure out principles).I use this documentation to guide myself through DKIM-Signature validation routine, but it requires some complicated steps and I can't figure out where is my mistake. For an email example I used one sent from server. It should be totally valid. There is it's header:DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;; s=mail2; h=References:In-Reply-To:Content-Type:Message-ID:Reply-To:D...Read more