I would like to share my driving experience as these days I am taking car driving lessons.
Yesterday was my first driving session and it was really excited. do you know why?.......
Let see what happen in first day.
My Coach came to my house and then we went to my car parking's slot. He saw the car, I thought
he may called me to start the car as I told him, I have driving experience and only problem in traffic and turning point.
He took a key and then started my car....bung bung... car sound.
He told me just sit in the car and start it and don't do anything just sit ideal..I said.. Ok.
I seat in normal position and started by giving ignition to car.
Immediately what happen, he told me. few point you need to understand after starting your car.
Listen carefully............
1] your hand break should be above(60-70 degree).... so your car should not move after immediately you started your car. sometime if you stop at slop and if you started your car then there may be chances to move your car .
2] Sit Belt should be locked you for safety purpose.
3] Feel "ALL IS WELL" or "OM SHANTI OM" while driving your car. You should be sincere and not serious while driving.
4] Just keep your engine(heart) and car's engine relax so just wait 5/10 sec after start.
5] Feel the relativeness as your car is at origin and other objects relative to it. You out to observe each and every object's distance from your car because every time you may not be major the distance of each and every object. When you would feel the complete driving that time you would major each object from your car.
6] Label the car as "L" on both side(front & back).......he replied with smiley face.........your safety.
7] How you feel now on driver's sit?.. are you feel relax? your legs should be comfortable on clutch & break. Have you adjusted it accordingly.......I started adjusting by pressing handle below driver's sit. You need to just press above and move sit as per your legs adjustment.
8] Are you able to see behind without moving your head.....on right side.... on left side..... mean you need to adjust your 3 mirror (left, next, right) before start.
He added many small small points which i will be share in next day's session...... so just remember if you started your car driving. these point may help you :) ........
so till then HAPPY DRIVING..............enjoy.
Sunday, December 18, 2011
Sunday, December 13, 2009
use GetHashCode as per identity and equality
If you want to unique hashcode then there are 2 ways
1] requirement is equality mean if value contain in object should return same hashcode in this scenario you can use "Object.GetHashCode()" method.
2] requirement is identity mean if object contain same value but different instance should
return different hashcode, you can use "RuntimeHelpers.GetHashCode" method
Here you can find same hashcode for string becuase of CLR's intern pool for string.
Example
using System.Runtime.CompilerServices; <<<======= RuntimeHelpers class
namespace GetHashCodeSample
{
class Program
{
static void Main(string[] args)
{
string s1 = "nitin";
string s2 = "nitin";
int i = 1;
int j = 1;
System.Console.WriteLine("Using Object's GetHashCode");
System.Console.WriteLine("s1:{0}, s2 {1}", s1.GetHashCode(), s2.GetHashCode());
System.Console.WriteLine("Using RuntimeHelper's GetHashCode");
System.Console.WriteLine("s1:{0}, s2 {1}", RuntimeHelpers.GetHashCode(s1), RuntimeHelpers.GetHashCode(s2));
System.Console.WriteLine("Using RuntimeHelper's GetHashCode");
System.Console.WriteLine("i:{0}, j {1}", RuntimeHelpers.GetHashCode(i), RuntimeHelpers.GetHashCode(j));
System.Console.ReadLine();
}
}
}
Using Object's GetHashCode
s1:-1904952336, s2 -1904952336
Using RuntimeHelper's GetHashCode
s1:37121646, s2 37121646
Using RuntimeHelper's GetHashCode
i:45592480, j 57352375
Friday, August 10, 2007
Friday, March 30, 2007
.net Framework Debugging Shortcut Keys
Hi All,
find a link of shortcut keys of VS2005.
http://msdn2.microsoft.com/en-us/library/ms366733(VS.80).aspx
find a link of shortcut keys of VS2005.
http://msdn2.microsoft.com/en-us/library/ms366733(VS.80).aspx
Subscribe to:
Posts (Atom)