Paying it forward with Visual Studio Hotfixes

Recently had the Ultimate Visual Studio nightmare. No matter what the Project, VSTO would crash.
This should apply to all versions since, say 2008 but in my case it was 2010 Ultimate.
The bug was a duplicate install of Telerik NuGet packages so the real fix is to remove all Telerik Nuget packages I suppose.
But I was recently reminded of a troubleshooting trick in VSTO from the old command line.

 

Run : devenv.exe /log “C:\ActivityLog.xml” And Voila all of your errors are cleanly reported.

So whatever the problem you should know what to do next.

 Happy Coding !!!

More Augmentations

domino

Augmented Reality Domino Knock-Down Game

Introduction

This is an advanced tutorial, and as such we expect that you are already familiar with XNA and scene graph based 3D programming. The game is a single player game in which the player shoots virtual balls into a real-world environment to knock down all of the virtual dominos overlaid on top of a board. The player holds a webcam in one hand and shoots the virtual ball by clicking a mouse using the other hand. Before the game starts, the player is allowed to add virtual dominos or modify the positions and orientations of the existing ones overlaid on the board as desired.

How To Compile and Run The Game

After you download the Goblin XNA distribution from http://goblinxna.codeplex.com, as well as all other necessary libraries indicated in the installation guide, compile the Goblin XNA project under the /src directory. If you’re not familiar with Goblin XNA framework, it is strongly recommended that you first go through the tutorials in the /tutorials directory. Then, find the ARDominos directory under /projects directory and open up the solution file in order to build and run the game.

No Primary Keys ? No Problem !!!

Declare @prefix as nvarchar(11);
Declare @suffix1 as nvarchar(100);
Declare @suffix2 as nvarchar(100);

set @prefix=’ALTER TABLE’;

set @suffix1= ‘ ADD ID int NOT NULL IDENTITY(1,1) CONSTRAINT pk_’;
set @suffix2= ‘ PRIMARY KEY NONCLUSTERED ‘;

select distinct(sys.tables.name) , @prefix +’ ‘+ sys.tables.name + @suffix1+sys.tables.name+@suffix2
from sys.tables inner join syscolumns on
sys.tables.object_id=syscolumns.id
order by sys.tables.name asc