Friday, August 30, 2013

Why C still matters in 2013: a simple example

  Language                           Time (in sec)
  Java                               0.133
  C Language                         0.006
  CPython                            0.534
  Javascript V8                      0.284

Thursday, August 8, 2013

Full stack web development


How to solve Entity framework problem: System.InvalidOperationException: Mapping and metadata information could not be found for EntityType entity framework Unable to load the specified metadata resource?

Once you use self-tracking entities, if want to add new one. Please keep using same type.

In one assembly, entity framework only allow one kind mapping. If more than one mapping type, will get above weird error message.

How to install or uninstall Windows Service from CMD command line?

In command line, go to .Net Framework folder:

Run following line:
installutil C:\folder name\ServiceHost.exe

installutil /u C:\folder name\ServiceHost.exe

If want to install service with different display name:
sc create "Your Service Name" binpath= "fullpath of your exe file"