Thursday, December 31, 2009

Some Regular Expressions for Validations


This regular expressions matches dates of the form XX/XX/YYYY where XX can be 1 or 2 digits long and YYYY is always 4 digits long.

4/1/2001 | 12/12/2001 | 55/5/3434

1/1/01 | 12 Jan 01 | 1-1-2001


Matches a string if it is a valid time in the format of HH:MM

02:04 | 16:56 | 23:59

02:00 PM | PM2:00 | 24:00

Matches | Name Surname | "b. blah"

name | name."surname" |


This pattern allows standard e-mail addresses (e.g., sub domains (e.g., the new two- and four-letter domains (e.g. and and country codes (e.g. Also, this patter follows the Network Solutions standard length of 67 characters for top-level domains. The reason I allow numbers to be entered in the domain suffix is for future planning. If you do not want numbers to be able to be added as a domain suffix (e.g. user@domain.123), simply delete the last two occurrences of "\d".

Matches | |

 Non-Matches | |

Tuesday, December 29, 2009

Troubleshoot BlueScreen Death

If you’ve used Windows for any length of time, chances are you’ve seen a Blue Screen of Death. You’re lucky when it’s only a bad driver and your system reboots politely. When you’re unlucky, it could be something more serious, such as a hardware failure. Either way, it’s a sign of system instability. Unfortunately, a BSOD is usually cryptic. Factor in the fact that Windows usually reboots itself automatically within a short period of time–with no assurance that you won’t get the same error–and you can see the need for BlueScreenView.
BlueScreenView is a small utility that will scan all your minidump files created during ‘blue screen of death’ crashes, and then display the information about all crashes in one table. For each crash, BlueScreenView displays the minidump filename, the date/time of the crash, the basic crash information displayed in the blue screen (Bug Check Code and 4 parameters), and the details of the driver or module that possibly caused the crash (filename, product name, file description, and file version).
Features of BlueScreenView
· Automatically scans your current minidump folder and displays the list of all crash dumps, including crash dump date/time and crash details.
· Allows you to view a blue screen which is very similar to the one the Windows displayed during the crash.
· BlueScreenView enumerates the memory addresses inside the stack of the crash, and find all drivers/modules that might be involved in the crash.
· BlueScreenView also allows you to work with another instance of Windows, simply by choosing the right minidump folder (In Advanced Options).
· BlueScreenView automatically locate the drivers appeared in the crash dump, and extract their version resource information, including product name, file version, company, and file description.
Download BlueScreenView App here

Faster Firefox

1. Open the Firefox “config” page: click into the Firefox address location bar, and type about:config, press Enter.
2. Search the line browser.tabs.showSingleWindowModePrefs . (tip: press “b” on your keyboard to quick scroll).
3. Double click on browser.tabs.showSingleWindowModePrefs . This will set its toggle to “true”. Now your advanced and enhanced tabbing should be set.
Note: in Firefox version 1.5, the command line is singlewindow.openintabs.
4. Next: we will increase the “pipeline” RAM ability for Firefox to accomodate more packet transfer. In the same config document, scroll down to the line that says network.http.pipelining . Double click this line to set it to “true”.
5. Lastly, we will increase the maximum pipeline requests to 100. Find the line that says network.http.pipelining.maxrequests. Double click on it, and a dialog box will pop up. Change the setting from 4 to 100.
6. No need to save this file. Simply close and restart Firefox, and you should see an immediate 10% to 40% increase in web page transfer speed, and faster opening of your tabbed windows! Enjoy!

Google Chrome Tips

Google chrome is Popular these days and Most of us don,t know about the latest tips and Tricks that we can use with google chrome. Google still has a long way to go with the browser adding features and fixing problems. Nevertheless, I’ve collected what I think are some of the most useful tips and the most interesting tweaks for the Chrome browser.
11 Google Chrome Tips & tricks

1.Keyboard Shortcuts

Google Chrome offers some unique shortcuts that go beyond the typical CTRL + T for opening new browser tabs. Here is a link to all of Google Chrome keyboard shortcuts. And here three that I find unique, when compared to those offered by Firefox and IE.
CTRL + SHIFT + N automatically opens up a Chrome ‘incognito’ window which allows you to surf on a PC without leaving behind any digital footprints.
SHIFT + Escape allows for fast access to Chrome?s Task Manager utility that allows you to nix browser processes that have gone awry.
CTRL + SHIFT + T will open recently closed browser tabs.
2. Alt + Home loads your Google Chrome home page, with thumbnails of your most visited sites shown in the active tabbed window.
3. Show the list of recently visited pages from the current tab: right-click on the “Back” button. This also works for the “Forward” button.

4. If you need more space in a textarea, resize it by dragging the lower right corner.

5. Fun With Tabs Browser tabs are an incredibly useful feature in browsers today. Google has spent some time and made them even more useful by allowing more tab flexibility than is currently possible with IE or Firefox. Chrome allows you to peel browser tabs off a browser so they can become their own browser window. Chrome also allows you to take two separate Chrome browsers and drag them together creating one window with two tabs.
6. Jump to different open tabs using Control + 1, Control + 2, Control + 3, etc. Control + 9 takes you to the last tab.
7. After downloading a file, you can copy it to the desktop or to any other folder by using drag and drop directly from Google Chrome.

8. Control +B hides the Google Chrome bookmarks bar. Press Control + B to bring it back again.
9. Perform simple calculations and unit conversions using Google Calculator by simply typing the expression in Google Chrome’s address bar (or “omnibox”). To copy the answer, select the suggestion.

10. Control + H is a faster way to bring up the History page.
11. Edit any web page – right-click a page and select Inspect element. Now edit the HTML source code and hit Return to view the changes.

Lock your Drives, Floppy, CD/DVD and USB drives

PC users who want to protect, hide and lock their local, network, Floppy and USB drives than they have to try Advanced Drive Protector. Advanced Drive Protector is intended for PC users who want to protect, hide and lock their local, network, Floppy and USB drives, and disable the AutoRun feature for them to ensure both security and privacy.
This software lets you apply a range of security options to individual drives ranging from hiding options to access security restrictions.
The Autorun feature is one of the worst security breaches in any Windows system. If a user inserts an infected USB drive or a CD/DVD disk, the virus residing on the disk may run and infect your system.

How to Recover Windows Admin Password

So you forgot your Windows Admin password? Don’t worry. Here i will tell you how you can retrieve your Windows Admin password or reset it easily. PCLoginNow is freeware app whicl help you to do it easily.
PCLoginNow is an easy-to-use tool to reset local administrator and other accounts passwords on Windows system. No need to reinstall the system. It resets Windows passwords and Windows security settings instantly. All version of Windows are completely supported. It’s an incredible CD for Home users and Businesses. And most of all, it’s the most popular and safe solution for removing your Windows password until now.
How to Recover Windows Admin Password

How to use it:-
  1. Download ISO files.
  2. Burn the ISO file to CD (see Burn CD).
  3. Set the BIOS to boot from CD. (see Set BIOS)
  4. Insert the CD you burned and reboot your computer. The software then automatically runs.
  5. Use PCLoginNow to finish the job. (see User-Guide of PCLoginNow)

3 ways to send anonymous email

Do you want to send an email anonymously because, for example, you fear your views might not be appreciated by your boss? There are various web based anonymous email service providers available in the internet. From where you can send anonymous email. So am posting here some of the best sites which helps you to send anonymous email.

1. SendAnonymousEmail
– Is a free service which allow you to send unlimitted anonymous email.
2. deadfake - a site that lets you send free fake emails to anyone you like. There’s no signup, no registration, no fuss. You can even send fake emails with rich text; fonts, colours, etc.
3. Note2email is a web application designed to send quick text notes to any email address in the world.
* one easy step for sending email notes
* encryption of the email notes
* no login required
* spam flag system

Lock your PC with a USB Disk

Rohos Logon Key

Two-factor authentication solution that converts any USB drive into a security token for your computer and allows to access Windows in a secure way by USB token, replacing the Windows login.

Fully functional 15-day trial

10 Tricks With A USB Thumb Drive

Any ordinary USB memory device can do a lot more than you probably thought it could. It can carry programs, encryption and even a full installation of Windows XP! Here is our tenlist for the coolest things you can do with a USB thumb drive:
Take your programs with you
We all know how frustrating it is when we take your files to another computer just to discover that the software required to read the files is not installed.
Here’s the simplest solution – take your programs with you – on your USB thumb drive. Here’s how to do it with Portable Apps:
1. Go to the Portable Apps website and download the installer, choosing the software you want to carry along.
2. Run the installer and install the software to the root of your USB thumb drive.
And you’re done! As soon as you connect your thumb drive into a computer, Portable Apps will open up automatically.
Surf anonymously
With Portable Apps and Firefox, you can surf the web without leaving any trace on the computer you are using. If you want extra security, install a Firefox security plugin such as FoxyProxy. To iput Firefox onto the drive, just copy-paste the Firefox folder from you computer, or install Firefox onto the thumb drive.
Set a program to run automatically (autorun)
Using autorun, you can set a program to start up automatically when you connect the drive to a computer. You can also use the same script for a data CD-ROM. Note that some computers have autorun disabled for security purposes. [Here's how to disable autorun.]
Open up notepad and paste the following script:
Make sure you replace filename with the full path to the file. For example, a file called program.exe in a folder called “programs” on the thumb drive would be /programs/program.exe
Replace description with a short description of the program, for example, My Jukebox or Mozilla Firefox.
Save the file as autorun.inf, making sure you select “All Programs” from the save menu, not “Text document”!
Help! I’m lost!
Ever lost a USB drive? Even if you haven’t, there’s a pretty good chance you’ll lose a few during your life. And with all the important information on it, it could be a disaster to have it fall into someone’s hands.
A good idea is to encrypt all the information on the drive, but you would still want it back, wouldn’t you? Luckily, the folks at the Daily Cup Of Tech have come up with a solution.
Save a program called “Help! I’m Lost!” on the drive, that a finder just can’t get around opening. The program opens a message box with your personal “I’m lost” message. It’s a good idea to offer the finder a bigger reward than the drive itself, so that they’ll be interested in contacting you.
Hide the drive inside something
Why not surprise your friends and co-workers by sticking something that looks like a broken USB cable into the computer’s USB drive?
You’ll be sure to get a few shocked faces when you start to play a movie from it.
The guys from show us how to do it. (You are gonna need an unbelievably small thumb drive for this…)
Secure your PC
Just like with an RFID badge, you can use a USB drive to lock and unlock a PC. Insert it to begin working and pull it out when you’ve finished, locking the computer. There are several programs for this . Rohos, a commercial program and WiKID, a semi-open source one.
If you really need to secure your computer with a USB drive, I suggest you give Rohos a try, as WiKID is rather complicated.
Portable jukebox
Don’t just carry the music with you, also carry the player! You can install audio programs such as WinAmp and CoolPlayer+ on your thumb drive. Just unextract the ZIP folders to the USB drive.
If you want the jukebox to start up automatically when you connect the memory stick to the computer, use the autorun feature shown tip 3 and point it to the exe of your audio player.
Encrypt your data
If you carry any sensitive indormation on your USB memory stick, a good idea is to encrypt it. Hardware-level encryption will help, but it will cost extra. You can get a free program to encrypt your data just as securely. For this I recommend TrueCrypt, but most others will also do.
You will need admin access on the computer you want to use your encrypted thumb drive on, so this it’s usability a little.
Run a standalone OS for dedicated tasks
The easiest OS to boot from a USB drive is probably Linux. There are many small capacity Linux versions out there that will fit on your drive. The best 3 are Puppy Linux, Damn Small Linux and Webconverger.
Make sure you select a version that needs less space than your USB drive’s maximum, so you have room for files and software.
And this leads us nicely to the final tip…
Run Windows itself from a USB thumb drive
Modifying Windows to work on a USB drive is quite difficult, but luckily there are some tools that will do it for us. Note that you will need a separate Windows license for this, as Microsoft only lets you use one for each single computer, and a USB drive is treated by them like a computer…
What you’ll need:
  1. A licensed copy of Windows
  2. A USB device, min. 1GB (We recommend a USB hard disk, as a flash memory stick will become unusable after 100000 writing processes. Assuming that only 2 processes are used per second, the drive will last only 60 days with 8 hours of work each day… A hard disk doesn’t have this problem.)
Here is the link to the full tutorial, translated from German.

Popular Posts