Friday, April 30, 2010

Fremont DMV Test Route


Fremont DMV Driving Test Routes

When my friends took their driving test in Fremont, the following routes were some of the possible ones that came up. It depends on the mood of the examiner. Each examiner has a different route. Whatever may be the route, keep cool and drive, you will come out with flying colors. You can use the following routes to keep yourself well prepared for the D-day.

ROUTE #1

1. Come out of DMV, Take Right on Dusterberry Way. (Remember to be on the right most lane initially, then you can move to other lanes)
2. Turn Right on Peralta Blvd
3. Turn Right on Maple Street
4. Turn Right on Central Avenue
5. Turn Left on Glenmoor Dr
6. Turn Left on Norris Dr -- This is residential area usually they will test curb parking and straight reverse here.
7. Turn Right on Logan Dr
8. Turn Left on Mattos Dr
9. Slight Left onto Palmer Dr
10. Turn Right on Lombard Ave
11. Turn Left on Argyle Road
12. Turn Left on Central Ave
13. Turn Right into the DMV and park the car.

ROUTE #2

1. Come out of DMV, Take Left on Dusterberry Way. (Remember to get on to the center lane, and then go to left side of the street)
2. Turn Right on Central Ave
3. Turn Left on Glenmoor Dr
4. Turn Left on Norris Dr
5. Turn Left on Logan Dr - -- This is residential area usually they will test curb parking and straight reverse here.
6. Turn Right on Central Ave
7. Turn Left on Dusterberry Way
8. Slight Right onto Peralta Blvd (If there is a STOP Sign, Stop before turning)
9. Turn Right at Maple Street,
10. Turn Right at Central Ave (Go to the left most lane)
11. Turn Left on Argyle Road
12. Turn Right at Argyle Court (Go to the end and take a U-turn)
13. Turn Left at Argyle Road
14. Turn Left at Central Ave
15. Turn Right into the DMV and park the car.

ROUTE #3

1. Come out of DMV, Take Right on Dusterberry Way. (Remember to be on the right most lane initially, then you can move to other lanes)
2. Turn Left at Hansen Ave
3. Turn Right at Cabrillo Dr
4. Turn Right at Alameda Dr - This is residential area usually they will test curb parking and straight reverse here.
5. Turn Left at Contracosta Ave
6. Turn Right at Thornton Ave
7. Turn Right at Elm St
8. Turn Left onto Tomasek Terrace
9. Tomasek Terrace Turns Left and Becomes Baine Ave
10. Turn Right onto Peralta Blvd
11. Slight Left onto DusterBerry Way
12. Turn Left into the DMV and park the car.

Thursday, April 22, 2010

Pattern Matching for Password

Java introduced Pattern matching API from JDK 1.4 onwards. Its definitely a wonderful API for validating passwords, userId, etc in an application. There are some predefined regular expressions available. Here, Iam going to explain a regular expression for password validation.

You would have encountered password rules in several websites. Lets see how the regular expression is going to be for the following password rule:
It should contain at least one digit from 0-9
It should contain at least one letter from A-Z
It should not contain any lower case letter
The minimum length of the username must be 6 characters and the maximum may be 20.
It should contain at least one character from amongst @#*=
It should not contain any spaces


Regular Expression for the above conditions :

  • (?=.*[@#*=]) # must contains one special character "@#$%"
  • (?=.*[A-Z]) # must contains one UPPER Case Character
  • (?!.*[a-z]) # must not contain lower case Character (See ! instead of =)
  • (?=.*[0-9]) # must contains one number 0-9
  • (?!.*\\s) # must not contain any spaces
  • . # match anything with previous condition checking
  • {6,20} # length at least 6 characters and maximum of 20

Java Pattern Matching Code:
import java.util.regex.Pattern;
import java.util.regex.Matcher;

public class UserName
{
public static void main(String[] args)
{
String password="ABC3a#@@";
Pattern pattern = Pattern.compile("(?=.*[@#*=])(?=.*[A-Z])(?!.*[a-z])(?=.*[0-9])(?!.*\\s).{6,20}$");
Matcher m = pattern.matcher(userName);
boolean b = m.matches();
if (b==false)
System.out.println("FAIL");
else if(b==true)
System.out.println("PASS");
}
}

Tuesday, October 13, 2009

School / Kindergarten readiness

I was thinking / calculating, when I would be sending my son to kindergarten. I came to know that each state in USA has different entrance age. I thought this table would come in handy for anyone who has kids.
StateAge 5 on or Before
Alabama1-Sep
Alaska15-Aug
Arizona1-Sep
Arkansas15-Sep
California2-Dec
ColoradoSchool District Option
Connecticut1-Jan
Delaware31-Aug
Florida1-Sep
Georgia1-Sep
Hawaii31-Dec
Idaho1-Sep
Illinois1-Sep
Indiana1-Jul
Iowa15-Sep
Kansas31-Aug
Kentucky1-Oct
Louisiana30-Sep
Maine15-Oct
Maryland1-Sep
MassachusettsSchool District Option
Michigan1-Dec
Minnesota1-Sep
Mississippi1-Sep
Missouri1-Aug
Montana10-Sep
Nebraska15-Oct
Nevada30-Sep
New HampshireSchool District Option
New JerseySchool District Option
New Mexico1-Sep
New YorkSchool District Option
North Carolina31-Aug
North Dakota1-Sep
Ohio30 September or August 1
Oklahoma1-Sep
Oregon1-Sep
PennsylvaniaSchool District Option
Rhode Island31-Dec
South Carolina1-Sep
South Dakota1-Sep
Tennessee30-Sep
Texas1-Sep
Utah2-Sep
Vermont1-Jan
Virginia30-Sep
Washington31-Aug
West Virginia1-Sep
Wisconsin1-Sep
Wyoming15-Sep

For more detailed information, Click here

Monday, October 05, 2009

Ayman's 1st Birthday



Its been a year since my son was born, and we hosted a party for him in a restaurant in Pleasanton, CA. It was initially scheduled to start at 11.30 AM, but as usual like indian parties it started a little late. Some friends turned up early and were waiting for Ayman to arrive. I asked to take the lunch first and then we can cut the cake, as many of the friends are yet to come including Ayman's mom. :)

Myself and friends (Seetha, Rajive) decorated the party hall and it was quite good, except for lack of balloons. We didnt know how to operate the helium tank and due that the number of balloons was quite less. I realized that when kids were not so happy. Otherwise my friends did a good job in decorating the party hall.

I ordered a half sheet size cake from Nobs hill and it was a simple and tasted good. My wife wanted a tiered cake, but due to budget constraints, have to settle for a simple one. Hopefully for the next birthday, we will have a tiered one.

We had a challenge in lighting the candles in the cake, as the kids were constantly blowing air using the trumpet. Finally, we cut the cake around 1.15pm.

Here are some pictures



Thursday, May 21, 2009

Strange Behavior of Excel - Reduce Size of Multiple Embedded Documents in Excel

Today, when I working on a excel document, I happened to embed a word document multiple times. I deleted it, emded it again, and it went on for several times. I noticed that this increases the size of the Excel. Whenever the embedded document is deleted from excel, then excel just removes the reference and leaves the contents of the embedded document hidden. This increases the size of the excel. I couldnt find how to reduce the size of the excel. Only thing which worked was copy the contents of the excel and paste in a new excel. In this way, the size reduces considerably.

Saturday, November 15, 2008

Latest happenings

As usual, I blog on and off every now and then. There's been lot of changes in my career and life, since my last post.

I became a father on September 30th. I had a son. He is keeping me busy and its fun to see him grow.

On October 6th, I joined another project with the same client, Kaiser, as a Tech lead. Its a new project and I have a team at offshore. Its nice to work in a elevated role, except the offshore challenges. The work is challenging and timeline is aggresive. We are using Seam framework which will run on Jboss Server, ESB Services on WSO2 Server.

Wednesday, September 03, 2008

Pleasanton DMV Behind the Wheel Driving Test Routes


When I was searching for DMV test routes for Pleasanton, I couldnt find one. So, I just collected some of the possible routes from friends and uploaded here.

Route # 1

->> Come out of DMV
->> Left @ Hopyard
-->> Left @ Parkside
-->> 2nd left
-->> Right @ Hopyard
->> Right @ W Las Positas
-->> Left @ Williow Road
-->> Left @ Inglewood ->> This is residential area usually they will test curb parking and straight reverse here.

-->> Left @ Denker
-->> Left @ Dorman
-->> Right @ Hopyard
-->> Left into DMV
->> Then he will ask you to park

Route # 2

->> Come out of DMV
->> go straight on W Las Positas
-->> Left @ Hacienda
-->> Left @ Gibraltor
-->> Left @ Williow Road
-->> Right @ W Las Positas
-->> Right @ Hopyard
-->> Left @ Inglewood ->> This is residential area usually they will test curb parking and straight reverse here.
-->> Left @ Denker
-->> Left @ Dorman
-->> Right @ Hopyard
-->> Left into DMV
->> Then he will ask you to park.


Route # 3

->> Come out of DMV
->> go straight on W Las Positas
-->> Left @ Hacienda
-->> Left @ Gibraltor
-->> Right @ Williow Road
-->> Left @ Inglewood
-> Go straight you will cross Hopyard junction- >> This is residential area usually they will test curb parking and straight reverse here.
-->> Right @ Denker
-->> Right @ Stoneridge
-->> Right @ Hopyard
-->> Left @ W Las Positas
-->> Left into DMV
->> Then he will ask you to park.