Programming

runserver' produces an error MIME-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/Iufyh5ys=boUhbk 8j.ZRe8A"; protocol="application/pgp-sign ature" --Sig_/Iufyh5ys=boUhbk8j.ZRe8A Content-Type: text/pl...
runserver' produces an error MIME-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/Iufyh5ys=boUhbk 8j.ZRe8A"; protocol="application/pgp-sign ature" --Sig_/Iufyh5ys=boUhbk8j.ZRe8A Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable
22 minutes ago
The following java program checks for the validity of US and Canada phone number formats using regular expression. The regular expression used here can handle the following rules: The starting character may be ‘+’ but is op...
The following java program checks for the validity of US and Canada phone number formats using regular expression. The regular expression used here can handle the following rules: The starting character may be ‘+’ but is optional If the country code is used, it can be either 0 or 1 and is optional Various codes (country, area) might be separated with ‘-’ or ‘.’ but is optional Area code should not start with 0 but may be optionally enclosed in round brackets package com.kushal.tools; /** * @author Kushal Paudyal * Last Modified on 05/11/2011 * Java Regular Expression to Validate US and Canada phone numbers. */ import java.util.regex.Pattern; public class RegexUSAndCandaPhoneNumberValidator{ /** * REGEX IS: ^[+]?[01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?\d{3}[- .]?\d{4}$ * Escape Sequences are added in the following String for back slash (\) */ static String phoneValidationUSCandaRegex = "^[+]?[01]?[- .]?(\\([2-9]\\d{2}\\)|[2-9]\\d{2})[- .]?\\d{3}[- .]?\\d{4}$"; /** * This method compares the parameter string against the US Phone number * regex and returns true if the pattern is matched - meaning the phone * number is valid. * * The regular expression used here can handle the following rules: * The starting character may be '+' but is optional * If the country code is used, it can be either 0 or 1 and is optional * Various codes (country, area) might be separated with '-' or '.' but is optional * Area code should not start with 0 but may be optionally enclosed in round brackets * */ public static boolean isAValidUSPhoneNumber(String str) { return Pattern.matches(phoneValidationUSCandaRegex, str); } public static void main (String [] args ) { String [] phoneNumbersToValidate={"2-309-778-4234", "1-309-778-4423", "309-778-4235", "3097784234", "309.778.4234", "01-309-798-4234", "001-309-798-4234", "0-309-798-4234", "+1-309-798-4235", "1-3097980577", "1-309.7980578", "1-(309)-788-8978"}; for(int index=0;index Originally posted 2011-05-17 20:34:21.
about 1 hour ago
Lately there have been a lot of organizations trying to hire a DevOps engineer. I myself have been asked to fill in DevOps roles. There are a number of issues with that. The biggest problem is that I always have to ask what exactly th...
Lately there have been a lot of organizations trying to hire a DevOps engineer. I myself have been asked to fill in DevOps roles. There are a number of issues with that. The biggest problem is that I always have to ask what exactly the organisation is looking for. Preview Text: Lately there have been a lot of organizations trying to...
about 2 hours ago
I gave a talk last week at AppNexus on building and scaling a test-driven culture.http://www.youtube.com/watch?v=QvHf94hxzRc Preview Text: I gave a talk last week at AppNexus on building a...
I gave a talk last week at AppNexus on building and scaling a test-driven culture.http://www.youtube.com/watch?v=QvHf94hxzRc Preview Text: I gave a talk last week at AppNexus on building and scaling a test-driven culture... Legacy Sponsored: unsponsored
about 3 hours ago
Well, I watched the tech session. Unbelievably, in an hour long session, which btw, was really sloppy and poorly presented, there was not a single mention of testing.. !! What year is it?? I thought we stopped arguing whether TDD was a p...
Well, I watched the tech session. Unbelievably, in an hour long session, which btw, was really sloppy and poorly presented, there was not a single mention of testing.. !! What year is it?? I thought we stopped arguing whether TDD was a priority a decade ago. Not google, apparently. Went on to find out that there is no test runner support in the IDE at all right now! You have...
about 3 hours ago
If you were to ask me a book to understand the Object oriented concepts in a practical way- I will surely recommend “The Object Oriented Thought process”.These are some of the good things I found: Preview Text: ...
If you were to ask me a book to understand the Object oriented concepts in a practical way- I will surely recommend “The Object Oriented Thought process”.These are some of the good things I found: Preview Text: If you were to ask me a book to understand the Object oriented concepts in a practical way- I will surely recommend “The Object...
about 3 hours ago
Preview Text: A fantastic journey into Android dark side ISBN or ASIN: 1849691509 Book Author(s...
Preview Text: A fantastic journey into Android dark side ISBN or ASIN: 1849691509 Book Author(s): Feipeng Liu Publisher: packtpub ...
about 3 hours ago
A series of posts about the tornado in Oklahoma City, Preview Text: Arthur Charpentier's data and statistics roundup focuses on the data around last week's Oklahoma tornado, ...
A series of posts about the tornado in Oklahoma City, Preview Text: Arthur Charpentier's data and statistics roundup focuses on the data around last week's Oklahoma tornado, and much much more. Legacy Sponsored: unsponsored
about 3 hours ago
One of the most frequent question I get asked is 'How to check if my plug-in is getting picked up properly?' The easiest way to verify is by using Host OSGi Console. Preview Text: ...
One of the most frequent question I get asked is 'How to check if my plug-in is getting picked up properly?' The easiest way to verify is by using Host OSGi Console. Preview Text: One of the most frequent question I get asked is 'How to check if my plug-in is getting picked up properly?' The easiest way to verify is by using Host...
about 3 hours ago
It’s now two years since McKinsey Global Institute’s seminal report, “Big data: The next frontier for innovation, competition, and productivity”, was published. If there was a moment when the big data industry was born, it was with the p...
It’s now two years since McKinsey Global Institute’s seminal report, “Big data: The next frontier for innovation, competition, and productivity”, was published. If there was a moment when the big data industry was born, it was with the publication of this report. No, McKinsey weren’t the first to talk about big data and they certainly weren’t the first to coin it (1), but they were...
about 3 hours ago