Wednesday, July 24, 2013

Some facts about winRT

- The DispatcherTimer runs on the UI thread and the ThreadPoolTimer runs on the ThreadPool. If you don't need to update the UI then you should use the second one.

- Asynchronous != multi-thread
Asynchrony means running a job without blocking the Thread where it is working at. Concurrency is actually a special kind of asynchrony where it is achieved by creating a new Thread. 

- Timers
ThreadPoolTimer - submit a job to the thread pool
http://msdn.microsoft.com/en-us/library/windows/apps/jj248676.aspx

DispatcherTimer - run in the UI thread; firing time is not very accurate
http://stackoverflow.com/questions/10493253/controlled-non-ui-timer-in-metro-app-net

 System.Timers.Timer (should be used in server) v.s.System.Threading.Timer
http://stackoverflow.com/questions/1416803/system-timers-timer-vs-system-threading-timer

- Update UI in a different thread
http://stackoverflow.com/questions/9540260/update-ui-from-thread-in-winrt


- Deploy Windows App on Surface
http://www.lhotka.net/weblog/TestingAWinRTAppOnASurfaceRT.aspx

Monday, July 15, 2013

ASP .NET with Emgu CV on Windows Azure VM

  1. Disable "IE Enhanced Security Configuration" in Server Manager>Loval Server
  2. Install IIS Express 8
  3. Modify the configuration to allow connection to a new site
  4. Configure the endpoint on the Azure dashboard
  5. Allow inbound connection in the firewall setting
  6. Install EmguCV (cause it comes with ), put /x86/bin into the path environment variable
  7. Turn off the computer and start it
  8. Download codes/img from dropbox.