Friday, August 30, 2013

Why C still matters in 2013: a simple example

http://jabsoft.io/2013/08/29/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

Future?
8
http://act2.me/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:
C:\Windows\Microsoft.NET\Framework\v4.0.30319

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

Uninstall:
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"