Archive for April, 2006

True fans story

April 20, 2006
Waheed Murad was a luky person!
thats y he had a fan like these…….. On the other side of park, near my house, there is a house situated known as ‘Captain Sahib’s House’…i have heared a lot abt this members of this house frm my elders…but the story i heared today really touched my heart.
Sister of Captain sahib was a not only a true fan of Waheed Murad but she was in love with him…. Her love was true love, wow! these type of lovers still exists btw us..she never misses any film of Waheed Murad and when ever went to cinema, she always bought 2 tickets, one for herself and one for ‘NO ONE’   i.e reserved for her love Waheed Murad…awesome…. and just for waheed murad she nerver married and died by devoting her self to the super hero…
 
Kesey jitey hain yeh kis tarhan jiey jatey hain
Ahl – e – dil  ki  basar  ooqat  pey  roona  aaya
 
 
may Allah bless her and reset her soul in peace!
Hats off for her!
 

f@tigu3D n @ngRy!

April 14, 2006
really fatigued with my current life….though i believe in Allah and what ever Allah has given to me is the best i can get…but still….i want to get hell out of here………..i want to go where nither no body knows me nor i know anybody…..

Rabi Un Noor Mubarak

April 10, 2006
To all muslims Rabi Ul Awal mubarak…..

They ask why we celebrate 12th Rabi Ul Awal?

Why shouldn’t we? as this is the day when out Holy Prophet Muhammad (p.b.u.h) was born. He is the one because of whom we are Muslims today, he (s.a.w) is the one who will leads us to Jannat, he (s.a.w) is the one who brought Quran…So y shouldn’t we celebrate 12th Rabi Ul Awal as wat we all are today is bc of this event of this day…

so….

Siwaey Iblees K Jahan Mey To Sabhi Khushian Mana Rahey Hain……

can i?

April 10, 2006
I thought that i can live with out you! and spent last couple of months without remebering you, as far as i think…but today suddenly i was caught by a sadness, i tried every thing, spent time with my friends, biking etc etc but still unable to get my heart to normal…but when you flashed in my mind, tears started to come out from my eyes and after few minutes i returned to normal….

so i concluded that i can forget u but cant live without you…As one can left breathing but after that…….

GENERICS IN C# 2.0

April 3, 2006
Many developers face problems with type safety when working in .Net environment because .In C++ class templates were used which allows a programmer to create a class generically so that it will increase the reusability and then to instantiate that class with type-specification so that to have type safety.
In .Net 1.x since every type was derived from the class Object so when ever you use collections there was no type checking at all and the problem usually creates headaches on the runtime.
Generics will allow a programmer to solve the type safety problem at compile time.

For e.g. in C# 1.1 when using push and pop operations of a stack let say for integers we used to write:

Stack intstack = new Stack();
Intstack.Push(10);
Int ipop=(int)stack.Pop();

In the above example when the value of an integer is pushed it is automatically boxed but when it is poped we had to explicitly unbox it.

Now see another problem when we write:

Stack intstack = new Stack();
Intstack.Push(10);
string spop=(string)stack.Pop();

The above code will not give compile time error but we know it will cause problems for us.

Now Microsoft in their .Net 2.0 environment has solved this problem, now we can use generics and some incorrect retrieve (such as Pop ()) operation with respect to type safety is performed the compiler will give a type mismatch error.

For e.g. look at the following code:

Intstack<int> istack= new Intstack<int>();
Istack.Insert(new int());
Int I = istack.Retrieve();
Istack.Insert(“ faisal “); // Now the compiler will give type mismatch error

Declaration of Intstack class can be done as follows:

Public class Intstack<T>
{
        T[ ] elements;
        int numelements;

        public void Insert(T elements)
        {
                //do something
        }

        public T Retrieve()
        {       
                // do something
        }
}

I hope this article would have given you some idea one of the many new features in the .Net environment which will help you to improve your product quality.


The above article was written by one of my BEST friend Syed Faisal Rehman… I really liked this new .NET feature as im a big fan of C++ and love to code C++….now since every thing is changing and with .NET microsoft has brought revolution so me myself switched to .net though i didnt want but what shuld i do its market requirement