Friday, December 22, 2006
Wordpress
To visit my blog, click here:
.................................................................
http://ranahammad.wordpress.com/
.................................................................
Thursday, November 30, 2006
A day of remembrance
Woww....... A year and 10 months...... 648 days to be precise..........from Feb 21st 2005 till Nov 30th 2006.......................... a wonderful experience and great learning helped me to get a job in Techlogix Pvt Ltd.
Developers of both teams; CCTV and Agrando(RTV) arranged a farewell for me. A couple of old colleagues were called too. We had lunch in AFC, H-Bloack branch. It was great fun. Thanx to everyone a lot. I appreciate everyone for giving me such an importance.
The Experience:
The time I spent in Intagleo was unique in its own way. I learned new domain, technologies and tools. I came across many problems and the way my managers helped me out is unforgettable. I appreciate for what they have done for me and I give them high regards. The staff was very helpful and caring, they were always there whenever I needed any guidance. I really appreciate the times my network manager spent with me, the approaches he told me to follow in the development field.......are tooo goood. My managers always put me at ease in handling my responsibilities and I enjoyed my fellow developers experiences and made them enjoy my experiences toooo. They all treated my like their brother and shared every problem with me and I did the same with them. We tried to helped each other in any problem which was bugging anyone of us. We participated in many games(indoor and outdoor) and I still smile on those events, lunchs, dinners and farewells which we gave to our fellow developers....I did not think that I will be getting a farewell so early in my life, but still I had a great time with everyone there and I wish them best of luck for the future.
Yousuf breaks 30-year-old record
Sir Viv Richards's had scored 1710 runs in 1976, a memorable run during which he scored two double-hundreds against England in England and the closest anyone had come to it since was Ricky Ponting in 2005, with 1544 runs. And just before he went past Richards tally, he had glided past Zaheer Abbas's record for the most runs made by a Pakistani batsman in a three-Test series. Abbas had made 583 runs against the visiting Indians in 1978-79.
Tuesday, October 24, 2006
Linked In
Tuesday, October 10, 2006
A series of unfortunate events for PCB
Inzamam was acquitted of tampering but was handed a four-match ban for bringing the game into disrepute, and according to Zaheer Abbas, who was Pakistan's manager on the tour, he had "lost the confidence" of senior board officials.
Inzamam's replacement, Younis Khan, last week refused to lead the side, saying he did not want to be a "dummy" captain. The refusal prompted Khan to resign, although he was reinstated by Ashraf on Saturday, hours before the team's departure for India and the Champions Trophy.
The crisis gripping Pakistan cricket intensified on Monday with the resignation of the PCB's director of operations, Abbas Zaidi.
Zaidi's departure comes three days after the resignation of the former PCB chairman, Shaharyar Khan, and two days after Mushtaq Ahmed was sacked as assistant coach for the Champions Trophy. This is what an umpire can do.................. Not only he can turn the face of the match but he can also turn the fate of the team playing that match. Lets hope everyting turns out gooood.........and Pakistan return home with the Champions Trophy. Good luck Pakistan Cricket Team ;)
Tuesday, October 03, 2006
What makes a good UN secretary general?
The Security Council was expected to hold a formal vote to pick the eighth secretary-general in the United Nations' 60-year history on October 9, making Ban Ki-moon's appointment almost assured.
Nobel prize for genetic discovery
The work of Dr Andrew Fire and Dr Craig Mello could lead to new treatments for a range of illnesses, including viral infections and cancer.
They discovered a phenomenon called RNA interference, which regulates the expression of genes. The process has the potential to help researchers shut down genes which cause harm in the body.
Thursday, September 28, 2006
Japan launches Sun 'microscope'
Zero-gravity surgery 'a success'
The five-man team and the patient landed safely at an airport in southwestern France after a three-hour flight, although doctors said the midair surgery to remove a cyst from the man's arm took only about 10 minutes.
Chief surgeon Dominique Martin said the near zero-gravity operation, the first on a human, was not technically difficult, but was aimed at breaking a barrier in medical expertise.
The experiment is part of a broader effort to develop robots for future operations from a distance -- in space or on Earth.
Wednesday, September 27, 2006
Mircsoft ban Testing in Pakistan
Microsoft has filed a federal lawsuit against testing materials vendor TestKing, alleging that the company is illegally selling the actual answers to its certification exams. http://certcities.com/editorial/news/story.asp?EditorialsID=1085&page=8
Pervez Musharraf - "In the Line of Fire"
http://archive.gulfnews.com/articles/06/09/06/10065284.html
General Pervez Musharaf wrote about his life and his experiences about Pakistan and her relations with the world. The book is available at local book stores for a price of Rs 1250 in Pakistan. The book can also be found at the following link:
http://www.amazon.com/Line-Fire-Memoir-Pervez-Musharraf/dp/0743283449
Tuesday, September 26, 2006
Importance of Ramadan for Muslims
Saturday, September 23, 2006
Arthur Ashe -------- "Why me?"
"Why does GOD have to select you for such a bad disease?"
To this Arthur Ashe replied: The world over ---
50,000,000 children start to play tennis,
5,000,000 learn to play tennis,
500,000 learn professional tennis,
50,000 come to the circuit,
5000 reach the grand slam,
50 reach Wimbledon,
4 to semi final,
2 to the finals.
When I was holding a cup, I never asked GOD "Why me?"
And today in pain I should not be asking GOD "Why me?"
--------------------------------------------------------------
reference:
http://en.wikipedia.org/wiki/Arthur_Ashe
Husnain Malik, Sami Uz Zaman and Jehanzeb Haroon
Saturday, September 16, 2006
Why Good Programmers Are Lazy and Dumb
This makes a lazy programmer a good programmer. Of course, this is only half the truth; for a lazy programmer to be a good programmer, he (or she) also must be incredibly unlazy when it comes to learning how to stay lazy – that is, which software tools make his work easier, which approaches avoid redundancy, and how he can make his work be maintained and refactored easily. (By the way, the word "unlazy" has 14,400 hits in Google; I'm sure this makes it legal.)
a) stop learning
Point a) will make it hard for him to try to find new techniques to allow him to work faster. Point b) will give him a hard time debugging his own work, and refactoring it. In the endless battle between a programmer and the compiler, it's best for the programmer to give up early and admit that it's always him and never the compiler who's at fault (unless it's about character encoding issues, which is the part even the compiler gets wrong).
For the sake of argument (and this was entirely hypothetical) let's say the client indeed turned off images in his browser. Or his son did. Whatever the case, this answer could not have been found if you would work in "smart" mode*. None of the questions asked by the programmer required any programming skills. No; simply because the problem is so stupid, only stupidity can tackle it.
*Some years ago, I had a long telephone discussion about the whole web site being messed up since my last update... it turned out the guy disabled stylesheets in his browser. Back then, I would have suspected everything but such a simple solution and was listening to half an hour of complaints about quality standards etc. In the end, the assumption that my update was at fault was just that... an assumption. You better listen to facts only if you start debugging, and never to what people think might be the reason.
There's another side to it. The too-stupid person will just run off and, without a second thought, do something wrong. The too-smart person will sit down and plan something right, without taking any action. A pragmatic programmer is sort of in-between; he knows making the wrong decision 1 out of 10 times doesn't hurt the goal as bad as making only right decisions 5 out of 10 times, and making no decision at all the other 5 times.
It's like the story of the centipede. The centipede was very good at walking with its hundred legs. It never spent a thought on just how it could walk. Until one day, when a big black bug asked the centipede "How can you manage to walk with all those feet? Don't you find it hard to coordinate their rhythm?" The black bug already left, when the centipede was still sitting down, pondering how it could walk, wondering, and (for the first time in his life) even worrying a little bit. From that day on, the centipede couldn't walk anymore.So you better not think too much if you want to achieve something. And of course this is only half the truth, too...
10 Things That Will Get You Fired
Wednesday, September 13, 2006
Reunion of BCSS01 and BCSF01
Both batches attended the reunion in large numbers. Only 16 students from BCSS01 and about more than 50 students from BCSF01 attended the reunion. Great ratio, right:)
The idea was initiated by our junior microsftian Fahim, and our teachers Sir Waqar and Anzar proved to be very supportive. It was great fun meeting everyone after almost 20 months. All juniors have got a better place and few are getting higher education, that is great toooo.
The event started well and ended well. We had a fateha for our batch fellow Farhan Bhatti. Aleem shared some of his experiences with everyone while standing on a fountain :D We had a great dinner and it was something I will not forget for some time. The students of our batch who attended were:
Abdul Aleem Khan, he is currently working in Dubai sotware house (don't remember the name) as a Senior Software Engineer.
Mian Haroon Saeed, he is currently working in Techlogix as a software engineer. He also became a coder king in couple of weeks back.
Usman Qutab, he is currently working in CambridgeDocs as a software engineer. A .Net specialized boy working in Java domain from about a year.
Touseef Liaqat, he is currently working in Mentor Graphics as a software engineer. He is engaged and sooon will be married.
Yasir Mehmood, he is currently working in Innovative as a software engineer. He got married 2 days before the Reunion.
Ikhlaq Ahmed, he is going to University of Glosgow on HEC scholarship for facult development program. He will join Quetta Institute of Technology after completing his studies.
Waleed Yousaf, he is also going on 26th september 2006 for further studies. I did not get the course name and place where he is going.
Sheheryar Ilahi, he left Descon then joined some other place, and then he again joined Descon. How faithful :)
Salman Abid Jafri, he is I think in Descon. Did not get a chance to know about him completely.
Salman Hamid, he is a Human Resource Manager in Greenwich something. They conduct hiring for many big companies.
Irfan Tahir, he is doing MBA from NUST.
Tariq Yousaf, he is currently working in Systems Ltd as a software engineer in .Net team.
Moeen Ahmed, he is currently working in Systems Ltd as a software engineer in .Net team.
Najam Nazar, he is currently working in a software house (did not get the name) as a software engineer.
Dawood Nasim, he is ................ did not get the chance to ask him what he is doing :)
I hope I haven't missed anyone. I'll add them if anyone comes in my mind.
Good luck to everyone for their plans.
Dynamic Ellipse Fitting on blobs in an image
The technique to place a dynamic ellipse is as follow:
Center of Image ---> (Xi,Yi)
Center of blob -----> (Xb,Yb)
Angle for the orientation of the ellipse depends upon the distance from the center and also the location of the blob in an image, therefore
Angle--------------> 180 - ((arctan((Yb-Yi)/(Xb-Xi)))*180/Pi)
Equation of the ellipse is:
-------------------------
x^2/a^2 + y^2/b^2 = 1
-------------------------
this can be expanded to:
(Xb-Xi)^2/Rx^2 + (Yb-Yi)^2/Ry^2 = 1
=> (Xb-Xi)^2*Ry^2 + (Yb-Yi)^2*Rx^2 = Rx^2*Ry^2
where Rx = Wi/hx, Ry = Hi/hy
Wi = width of the image
Hi = height of the image
hx = ??????? (still not finalized)
hy = ??????? (still not finalized)
distance of the blob from the center of an image -> sqRoot((Yb-Yi)^2 + (Xb-Xi)^2)
this thing will be used to adjust the values of hx and hy. In this way a variable length ellipse will be
placed on the blobs in an image.
Tuesday, September 12, 2006
Teaching at PUCIT
Will discuss the contents which I covered in the course, later.
Reconnection with my blog
Thanx Aleeem
Saturday, August 26, 2006
Background Subtraction - Stauffer & Grimson's Algorithm
Since the background does not always remain constant (mainly because of light changes or continuous movement of leaves) therefore we need to develop an approach in which we update the background continuously so that minute changes in the background are made part of the background. Stauffer & Grimson’s algorithm is one of the most reliable algorithms to facilitate adaptive background subtraction.
Stauffer & Grimson Algorithm
The algorithm models each pixel with a mixture of Gaussians. At every frame, for each pixel, distance of pixel’s color value is calculated from each of the associated K Gaussian distributions. Every new pixel is checked against all existing distributions. The match is the distribution with Mahalanobis distance less than a threshold. The mean and variance of unmatched distributions remain unchanged. The matched distributions are updated by using alpha blending concept. For the unmatched pixel, the lowest weight Gaussian is replaced by the new Gaussian with mean at the new pixel and an initial estimate of covariance matrix. Then we sum up distributions less than some threshold to decide whether the current pixel is part of the background or foreground.
Reference
"Adaptive Background mixture models for real-time tracking" by Chris Stauffer and W.E.L Grimson (The Artificial Intelligence Laboratory, Massachusetts Institute of Technology)
http://www.ai.mit.edu/projects/vsam/
Overview of the algorithm is given at the following link:
http://www-staff.it.uts.edu.au/~massimo/BackgroundSubtractionReview-Piccardi.pdf
The original paper is available at the following link:
http://www.ai.mit.edu/projects/vsam/Publications/stauffer_cvpr98_track.pdf
Principal Component Analysis
PCA is an approach used for face recognition and it is also enhanced to work for gender classification and skin detection.
Basic Principles of PCA
To decompose face images into a small set of characteristic feature images called Eigenfaces, which may be thought of as the principal components of the original images. These Eigenfaces function as the orthogonal basis vectors of a linear subspace called Face Space. Recognition is performed by projecting a new face image into this face space and then comparing it position in the face space with those of known faces.
Phases of PCA
A - Initialization
Acquisition of training set of face images and calculation of Eigenfaces.
B - RecognitionGiven an image to be recognized, calculate a set of weights of M Eigenfaces by projecting it onto each of the Eigenfaces. Determine if the face image is a face at all by checking if the image is sufficiently close to the face space. If it is a face, classify the weight pattern as either a known person or as unknown. If the same unknown face is seen several times, Eigenfaces and weight patterns are updated by calculating the new face’s characteristic weight and incorporating into the known faces.
for more info:
http://en.wikipedia.org/wiki/Principal_components_analysis
Dreams
http://en.wikipedia.org/wiki/Dream#Understanding_dreams
To check what does your dreams mean, choose an alphabet:
http://www.findyourfate.com/dreams/dreams.htm
If Pluto is out of solar system
http://www.cnn.com/2006/TECH/space/08/24/pluto.ap/index.html
It's quite amazing that astrological studies are weakened. There used to be calculations of Pluto's movement on the stars and stuff like that, now I'm thinking many things are going to be affected. May be my future toooo :D
Monday, August 14, 2006
Managed Extensions for C++ Development Scenarios
For each file using Managed Extensions, include the following code at the beginning of the file:
#using
using namespace System; // Only include to access the .NET Framework classes
In addition, you must use the /clr (common language runtime compilation) compiler option when compiling the application.
When using the .NET Framework, code that targets the common language runtime is known as managed code, while code that does not target the common language runtime is known as unmanaged code. Managed Extensions for C++ allows you to mix unmanaged and managed code within the same application. New applications written with Managed Extensions can take advantage of unmanaged code features and new managed code features. Existing components can easily be wrapped as .NET Framework components using Managed Extensions, preserving investment in existing code while integrating with the .NET Framework.
Managed Extensions is the best choice for the following development scenarios:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmex/html/vcconFeaturesOfManagedExtensionsForC.asp
Where did the word "Algorithm" come from?
14th August 2006
Thursday, August 10, 2006
The Coding King
Still it is a great achievement, I wish him good luck. Now he has again awakened a challenger in me. Now I'll have to look for these kinds of competitions :D
For more information:
http://blogs.msdn.com/jobsblog/archive/2006/08/08/692567.aspx
Wednesday, March 22, 2006
Computer Vision - An Introduction
Computer vision is by some seen as a subfield of artificial intelligence where image data is being fed into a system as an alternative to text based input for controlling the behaviour of a system. Some of the learning methods which are used in computer vision are based on learning techniques developed within artificial intelligence.
Since a camera can be seen as a light sensor, there are various methods in computer vision based on correspondences between a physical phenomenon related to light and images of that phenomenon. For example, it is possible to extract information about motion in fluids and about waves by analyzing images of these phenomena. Also, a subfield within computer vision deals with the physical process which given a scene of objects, light sources, and camera lenses forms the image in a camera. Consequently, computer vision can also be seen as an extension of physics.
A third field which plays an important role is neurobiology, specifically the study of the biological vision system. Over the last century, there has been an extensive study of eyes, neurons, and the brain structures devoted to processing of visual stimuli in both humans and various animals. This has led to a coarse, yet complicated, description of how "real" vision systems operate in order to solve certain vision related tasks. These results have led to a subfield within computer vision where artificial systems are designed to mimic the processing and behaviour of biological systems, at different levels of complexity. Also, some of the learning-based methods developed within computer vision have their background in biology.
Yet another field related to computer vision is signal processing. Many existing methods for processing of one-variable signals, typically temporal signals, can be extended in a natural way to processing of two-variable signals or multi-variable signals in computer vision. However, because of the specific nature of images there are many methods developed within computer vision which have no counterpart in the processing of one-variable signals. A distinct character of these methods is the fact that they are non-linear which, together with the multi-dimensionality of the signal, defines a subfield in signal processing as a part of computer vision.
Beside the above mentioned views on computer vision, many of the related research topics can also be studied from a purely mathematical point of view. For example, many methods in computer vision are based on statistics, optimization or geometry. Finally, a significant part of the field is devoted to the implementation aspect of computer vision; how existing methods can be realized in various combinations of software and hardware, or how these methods can be modified in order to gain processing speed without losing too much performance.
Computer vision and (digital) image processing are related fields. The distinction between the two is not very clear, e.g., computer vision uses many methods which traditionally belong to image processing. One formal distinction would be to say that image processing deals with transforming images, producing one image from another, or with producing low-level information about an image, such as edges or lines. Neither of these tasks provide, or require, an interpretation about what the image contains in terms of objects or events. Computer vision, on the other hand, uses models and assumptions about the real world depicted in the images to extract information which, e.g., can be used to control actions on objects in a scene. In more advanced systems, these models can be learned rather than programmed.
Wednesday, March 08, 2006
Starting from the start
Last post I made was about months back. Now I will post daily some posts related to all work I have done in the previous year....... Previous year........wow.......Now I have an experience of more than a year in my development career.
I have been developing in C++/VC++/VC++.Net/C#, and have used few things in backend(Access, Excel, XML and then finally I was asked to use MySql). Besides these I also used Matlab, IrfanView, VCD-Cutter,Virtual Dub and Crystal Reports..............these are the things which I used again and again for simplifing my tasks.
The domain in which I have been working is Computer Vision............. and the products are Customer Counting using a single Network Camera, Customer Recognition, Face Detection, Tracking...... It has been a very wonderful first year............. I'll discuss all the things which I read and performed research in...... I hope my coming years are as wonderful as the first one :)
Congratulations Bunty [i.e. me] for completing the first professional year.