Thursday, February 2, 2012

"Cannot publish because a project failed to build" in MS VS2010

Ok, if you see this error "Cannot publish because a project failed to build" and your project just refuses to publish, DONT PANIC!!

Try this,
1.Go to your certificate key in your Solution explorer.
2. Delete it.
3. Go to Project properties -> Signing
4. Create a test certificate
5. Then publish.

Voila.... the project is published with an executable ready to be installed!

Tuesday, November 2, 2010

The Guess Who Application

An iPhone application that I worked on to guess the person who you capture with your iPhone camera!

The approach in this project is to extract features using distinct differences that are observed in the side face profiles and train classifiers to recognize faces.

The primary objective of this project was to process the side‐face profile images, extract the features and classify them in order to identify the closest match. The target was to obtain an accuracy that is comparable to previous published results on the same dataset that we are using.
On the successful completion of the primary objective, as the secondary objective of this project, we also demonstrated the real‐time recognition capability of our algorithm by building an interactive webbased face‐recognition application on an Apple iPhone.

Sunday, February 14, 2010

Errors and Fixes for Programming in MS Visual Studio 2008

It is the first time I am programming in C using Microsoft Visual Studio 2008.
Here are some of the silly mistakes I made and figured out the solutions for the errors.


Error 1: bError 1 error LNK2005: _main already defined in

Fix: check if you have two main functions anywhere in the project. It could be two files with main functions.

Error 2: error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0

Fix: int my2dArray[num][num]; /* WRONG! can't allocate using non-const variable */

so initialize array this way:
int **my2dArray = (int**) malloc(num * sizeof(int*));

Reference : http://pleasemakeanote.blogspot.com/2008/06/2d-arrays-in-c-using-malloc.html