Skip to main content

Posts

Showing posts from November, 2008

Google Search

Custom Search

Live Search

Yahoo Search


Search the web Search this site

Regular Expressions

In the resent past I had to write some simple regular expressions.
So thought of sharing them with you.An EMail Address Validator^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}[0-9]{1,3})(\]?)$
This will validate the entered EMail address.A Password Validator(?=.{6,})[a-zA-Z]+[^a-zA-Z]+[^a-zA-Z]+[a-zA-Z]+
This will validate the password to have at least 1 alphabetic character and 1 numeric digit, and altogether the password will be more than 6 characters long.A Telephone Number Valdator\d{4}\s\d{3}\s\d{6}
This will expect the telephone number to be in international format. For example (0094 777 123456).A Simple Length Validator[\s\S]{1,200}
This will allow only only 200 or lesser characters for input.

A Length Validator Which Works With Linefeed (Return, Enter)^(.\n){0,500}$
This will validate and allow only 500 input even in a multi line field when linefeed (enter) is used in between.A Date Validator(0[1-9]1[012])[- /.](0[1-9][12][0-9]3[01]…

Installing HyperV Integration Services

I think at least some of you might have started using Hyper V. Did you feel how difficult to move from your Host Operating System (OS) to Guest OS (You have to click some keyboard combinations to move in and out). To make our life easier you can install HyperV Integration Services to the guest OS.
To install, after starting your virtual machine click on the Action menu and click Insert Integration Services Setup Disk. This will start the installation process. After this finishes you no need to click key sequences to go back and forth among the OSs. This will also install the required components so that the virtual machine will be able to communicate with local area networks and internet. Please note that you need to install the Integration Services in each and every virtual machine separately.

Hyper-V

Hyper-V is the name for the next generation hypervisor-based server virtualization technology from Microsoft.
This is included in Windows Server 2008 as a role and enables you to create and manage virtual servers or machines.
A free version of this also available which is named as Microsoft Hyper-V Server 2008. This is a Windows core having only the Hyper-V functionality enabled.
If interested better visit the following sites.
http://en.wikipedia.org/wiki/Hyper-V
http://www.microsoft.com/windowsserver2008/en/us/hyperv-overview.aspx
http://www.microsoft.com/windowsserver2008/en/us/hyperv-faq.aspx

Enabling Forms Authentication in SharePoint

Recently I needed to change the authentication of one of the application that I did using SharePoint to forms. I needed to authenticate users using Active Directory (AD). Even there are many sources explaining how to do it I found most of them are not full. So thought to put an article my self.
The default authentication method of SharePoint is Windows. It will use a window to get the user information while logging in. To change the authentication first you need to login to the Administrator site.Now select Application Management and click on the link Authentication Providers under Application Security. In the Authentication Providers screen first make sure the correct web application is selected. If not, select the correct application using the drop down in the top left corner of the page. After selecting the correct application click on the Default zone (Please note that here I am going to change the default zones' authentication. If you are to change in another zone simply se…