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

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!

How to Configure POP3 or IMAP for Yahoo Mail

Tuesday, April 29th, 2014

How to Configure POP3 or IMAP for Yahoo Mail? Yahoo! is celebrating it’s 16th birthday of Yahoo! Mail service. Along with this, Yahoo! has rolled out a new design for its popular Yahoo! mail for web and mobile apps. The new design comes with lots of new features and a completely new interface. Along with the new interface, there are new additions to the free email service from Yahoo!. This includes ability to create disposable emails, email forwarding along with POP3 and IMAP access. Previously Yahoo! Mail has official support for POP3 and IMAP connections only for its paid service, but with this update it is now available for free account users. This means is that you can connect to Yahoo! Mail using third party tools like Thunderbird, Outlook, or other mail services that support these protocols.

So in case you are Yahoo! Mail user, you can configure POP3 or IMAP access on your email client. You can configure Yahoo Mail on Outlook or thunderbird or other email clients.

The following are the official POP and IMAP settings for Yahoo Mail. When you specify the user name, you need to type your complete Yahoo! mail address as there is local yahoo.co.in and yahoo.co.uk services.

POP3 incoming server details:

  • Server: pop.mail.yahoo.com
  • Port: 995
  • SSL: SSL/TLS

IMAP incoming server:

  • Server : imap.mail.yahoo.com
  • Port: 993
  • SSL: SSL/TLS

Outgoing server SMTP:

  • Server: smtp.mail.yahoo.com
  • Port: 465
  • SSL: SSL/TLS

Make sure you specify the port settings and also enable SSL and TLS in the advanced settings.

Once you have configured these settings correctly, you can fetch all the emails from your Yahoo! mail on your desktop and access them offline.