verification

How can I get a regex to check that a string only contains alpha characters [a-z] or [A-Z]?

Hi, I'm trying to create a regex to verify that a given string only has alpha characters a-z or A-Z. The string can be up to 25 letters long. (I'm not sure if regex can check length of strings) Examples: 1. "abcdef" = true; 2. "a2bdef" = false; 3. "333" = false; 4. "j" = true; 5. "aaaaaaaaaaaaaaaaaaaaaaaaaa" = false; //26 letters Here...

Apache/Tomcat and Ant verification using GnuPG

how in the heck is it possible to verify the signature of a distribution for apache Tomcat or ant? i've been using GnuPG and it doesn't seem to do the trick, despite warnings all over the apache site to verify files first. using windows...if that helps. STEPS: 1) download binary version .exe / .zip / .asc / KEYS file 2) gpg --import K...

Validate SSL certificates with Python

I need to write a script that connects to a bunch of sites on our corporate intranet over HTTPS and verifies that their SSL certificates are valid; that they are not expired, that they are issued for the correct address, etc. We use our own internal corporate Certificate Authority for these sites, so we have the public key of the CA to ...

Unit tests with mock verifies

I have a unit test that creates a mock calls my method to be tested (also injecting my mock) asserts method results verifies mock calls When mock calls don't verify as expected I get an exception, thus failing a test. How should I correctly call this verifies? Should I just be calling // verify property get accessor call m.VerifyGet...

How to verify external resources are available

How do you verify the state of the environment for a system without drastically increasing the scope of the system? I'm working on a system which talks to some remote servers. For example, it connects to a server and grabs logs of MyApp that ran on that server. These remote servers use a multitude of operating systems and are "manually"...

Are there any tools for verifying coding standards?

Hello, I'm having some trouble finding a tool for verifying if a code respects certain coding rules. For example I want to make sure of things like the following: class names start with a C class member names start with m_ global variables should start with g_ static variables should start with s_ comments should follow the doxygen r...

Is there an easy way to verify replication articles are correct?

On a Publication (secondarily, a Subscription), is there a script or command I can run that verifies that the articles currently in place match what is expected and/or correct? If changes were manually made to a replication database (i.e. a table's "MSMerge_ins_..." trigger is modified or deleted, causing replication of that table to fu...

How do I verify the host server's certificate in Silverlight?

I am concerned with MITM attacks in the Silverlight application I am writing. The site will be running over SSL. If my site is the victim of a MITM attack, as far as I know, my only defense right now is the warning page the browser displays when the site's certificate is untrusted. Since it is only a browser, the best it can do is simply...

How do you get a customer to accept better practices and cross-platform debugging during development?

Our customer has a "No unnecessary code" policy. And the people they have assigned to my project thinks this includes: Dianostic code Cross platform compatibility code "Software" faultcodes. ("Software doesn't break therefore these are unneeded.") Class methods that aren't used for THIS application ("Customer Code Review Issue : Pleas...

Server/Client Verification?

We're considering creating a program which sends a POST request to a server-side program for some processing. We'd like to consider some sort of verification to make sure the POST request isn't a random spammer attempting to overwhelm our system or something. I don't know too much about this stuff, but I was thinking the client might s...

Verifying file digests

Say I have 'n' number of files, for each of which I have CRC32, MD5 and SHA1 digests Now these 'n' number of files are actually split files/archives of single large file. When these smaller files are recombined/joined into the larger file, we can compute the digest of this larger file too. My question is : Is there a way to verify whe...

How to verify if an arg is a valid file name in Shell?

I need to verify if the args are valid file names, is this the right way to do it? It seems like I made some mistake inline 2, but I don't know where. for i in ${@}; do if [ -f ${i}]; then echo ${i} else continue fi done ...

Creditcard verification with regex?

What is the right way to verify a credit card with a regex? If which one to use there are tons online. If not how to verify? ...

Best way to Fingerprint and Verify html structure.

Hello there, I just want to know what is your opinion about how to fingerprint/verify html/links structure. The problem I want to solve is: fingerprint for example 10 different sites, html pages. And after some time I want to have possibility to verify them, so is, if site has been changed, links changed, verification fails, othervise...

Shared Business Rules for c# and Java objects

I've got a system that has Java server side objects and C# client objects. The objects can be modified in both sides of the system and so have business rules attached to them. The thing is currently the business rules only live on the server side, and I really want to avoid having to contact the server every time I want to verify the o...

YAML Schema: Allowing different types

I'm trying to write a schema for a YAML file using Kwalify. I have a structure that can be a string, sequence, or mapping. Basically foo: bar foo: - bar - baz foo: - name: bar count: 1 foo: - name: bar count: 1 - baz are all valid. Under the foo key, you can have a string array of strings or maps with the key...

How to verify a mail has been sent when using Zend_Mail?

I am using the Zend framework to send mail. Once the config is done and the code written it all boils down to one call: $Mail->send($Transport) How can i check that this mail has been sent correctly? I read somewhere that Zend Mail throws an exception but other people have said this is sometimes not the case. What's the bulletproof p...

Hilbert System - Automate Proof

I'm trying to prove the statement ~(a->~b) => a in a Hilbert style system. Unfortunately it seems like it is impossible to come up with a general algorithm to find a proof, but I'm looking for a brute force type strategy. Any ideas on how to attack this are welcome. ...

Verify domain ownership

When setting up Google Adsense or Gmail as a site owner, you are required to modify a CNAME record for verification. Microsoft does the same thing. I am building a website where I would like an owner of a group to verify ownership of a domain in the same way. How do I accomplish this? ...

Mobile Phone no. verification

I am designing a website.I want to validate the mobile no. entered by the user on the registration page, by sending a verification code to his mobile phone. Can anyone give me pointers to how should i proceed with it?? ...