Thursday, June 13, 2013

msi force install

Save the following text with a .bat extension and execute it to force a re install (update the text in red)

@echo off

WMIC product where name="productNameAsItAppearsInAddRemovePrograms" call uninstall
MyMsiName.msi REINSTALLMODE=amus          


Wednesday, June 12, 2013

Find the severs with which the applications on your computer is communicating. (Find open connections windows 7)

TCP View (a software tool from Microsoft) gives a nice little free UI tool that displays all the servers (remote address) that all the apps on your windows machine are communicating with. It also tells you what ports they are using. This app doesn't give you any details like wire shark, but I find this app very useful when I need to quickly confirm that all the apps are connected to the SQL servers that I expect them to be connected to. This app is from Microsoft and very safe to use.

Sunday, June 2, 2013

What does statically typed language mean?

A language that enforces type safety at compile time is called a statically typed language.

For example trying something like this will throw an error at compile time

int i = 5.25;

Compile time error: Cannot implicitly convert type 'double' to 'int'. An explicit conversion exists (are you missing a cast?)