Archive for April, 2014

Understanding Regular Expressions

Wednesday, April 30th, 2014
Regular Expressions are really helpful while form validation is required. Validating a field without a regular expression is too complicated. It is really easy to make regular expressions according to your needs if you are understanding regular expressions basics and how regular expression works.
Symbol             Explanation

^                       Start of string
                      End of string
.                        Any single character
+                       One or more character
                       Escape Special characters
?                       Zero or more characters

Input exactly match with “abc” 
var A = /^abc$/;

Input start with “abc”

var B = /^abc/;

Input end with “abc”

var C = /abc$/;

Input “abc” and one character allowed Eg. abcx

var D = /^abc.$/;

Input  “abc” and more than one character allowed Eg. abcxy

var E = /^abc.+$/;

Input exactly match with “abc.def”, cause (.) escaped

var F = /^abc.def$/;

Passes any characters followed or not by “abc” Eg. abcxyz12….

var G = /^abc.+?$/

Char                Group Explanation

[abc]                 Should match any single of character
[^abc]               Should not match any single character
[a-zA-Z0-9]      Characters range lowercase a-z, uppercase A-Z and numbers
[a-z-._]              Match against character range lowercase a-z and ._- special chats 
(.*?)                  Capture everything enclosed with brackets 
(com|info)         Input should be “com” or “info”
{2}                   Exactly two characters
{2,3}                Minimum 2 characters and Maximum 3 characters
{2,}                  More than 2 characters


Put together all in one URL validation.

var URL = /^(http|https|ftp)://(www+.)?[a-zA-Z0-9]+.([a-zA-Z]{2,4})/?/;

URL.test(“http://perolahammar.com”);                      // pass
URL.test(“http://www.perolahammar.com”);            // pass
URL.test(“https://perolahammar.com/”);                   // pass
URL.test(“http://perolahammar.com/index.html”);    // pass

Short Form     Equivalent              Explanation 

d                      [0-9]                         Any numbers
D                     [^0-9]                       Any non-digits
w                     [a-zA-Z0-9_]            Characters,numbers and underscore
W                    [^a-zA-Z0-9_]          Except any characters, numbers and underscore
                      –                                White space character
                     –                                Non white space character


var number = /^(+d{2,4})?s?(d{10})$/;  // validating phone number

number.test(1111111111);           //pass
number.test(+111111111111);     //pass
number.test(+11 1111111111);    //pass
number.test(11111111);               //Fail

XJapan to Perform on Madison Square Garden in October

Wednesday, April 30th, 2014

Yoshiki announcement the fans during the Yoshiki Classical at the Davies Hall in San Francisco that X Japan will be performing at Madison Square Garden on the 11th of October.

For now there are no other details, just the above image that appeared on both Yoshiki’s and X Japan’s websites.

Top Proxy Sites

Wednesday, April 30th, 2014

Are you fed up with your internet service which you are using in your college and gets blocked when your trying to use your favourite websites? Don’t worry. In this tutorial I will give you a list of some website which will give you access to all websites without any restrictions. These websites are commonly called as proxy sites and it will use some proxies to access websites. These sites are safe proxy sites. And also top proxy sites.

This will help you when you are using a restricted internet connection such as in your office, college etc. There are many websites available like these but these are the top list by me and I have experience with these.

You may have some other proxy sites wich you have good experience with. Please feel free to mention it in comments. Will be updating in our list

1. Hidemyass : Use our free proxy to surf anonymously online, hide your IP address, secure your internet connection, hide your internet history, and protect your online identity.

2. Newipnow.com : Every website you visit knows your IP address– the web ID for the computer you are connecting through. With NewIPNow.com, you can use our IP addresses to manage your web identity: › Browse the web anonymously using our shared, public IP addresses.

3. Blewpass : Browse anonymously and/or bypass your workplace, college or school network restrictions. Are your favourite sites blocked? Browse through blewpass.com instead! Just type the address of your favourite site in the text-field. 

4. Proxify : Proxify is an anonymous proxy service which allows anyone to surf the Web privately and securely. Unlike other VPN and proxies, there is no complicated software to install.

5. Anonymouse : Many mice surf the web under the illusion that their actions are private and anonymous. Unfortunately, this is not the way it is.

6. Ninjacloak : Ninja Cloak is a free anonymous web-based proxy service. With Ninja Cloak you can browse your favorite web sites anonymously and even from behind a firewall with blocked ports.

7. KProxy : KProxy.com is helping hundreds of thousands of people daily protecting their privacy and identity online and giving access to censored sites since 2005. KProxy.com is the most reliable and fastest free anonymous web proxy in internet.

8. 4freeproxy : 4 Free Proxy is a free web proxy site help you to hide your IP address, secure your internet connection. 4 Free Proxy also allows you to bypass any blocked websites from your government, workplace or school with our free proxy

9.Webevader : This unique proxy list sorts all of the free proxies by their country of origin (through their IP), by popularity as well as the most recent proxies submitted.

10. Unblockit : Surf the internet secretly and hide your online identity with fast and free web proxy server provided by unblockit.cc. The free ssl proxy server gives you complete confidentiality while using the Internet by hiding your IP address and dodging all network restrictions imposed by security administrator. No need to change any settings in your browser or in your network setup. Start browsing blocked websites now!