* Performance consideration: http://msdn.microsoft.com/en-us/magazine/hh456402.aspx
* Comparison with old patterns: http://msdn.microsoft.com/en-us/library/jj152938.aspx
Monday, October 1, 2012
,NET timers
Comparisons: http://msdn.microsoft.com/en-us/magazine/cc164015.aspx
Note that System.Timers.Timer and System.Threading.Timer by default call your timer event handler on a worker thread obtained from the common language runtime (CLR) thread pool.
Note that System.Timers.Timer and System.Threading.Timer by default call your timer event handler on a worker thread obtained from the common language runtime (CLR) thread pool.
System.Windows.Forms | System.Timers | System.Threading | |
---|---|---|---|
Timer event runs on what thread? | UI thread | UI or worker thread | Worker thread |
Instances are thread safe? | No | Yes | No |
Familiar/intuitive object model? | Yes | Yes | No |
Requires Windows Forms? | Yes | No | No |
Metronome-quality beat? | No | Yes* | Yes* |
Timer event supports state object? | No | No | Yes |
Initial timer event can be scheduled? | No | No | Yes |
Class supports inheritance? | Yes | Yes | No |
* Depending on the availability of system resources (for example, worker threads) |
Monday, September 24, 2012
WebGL
Model-View-Projection Matrices
- Model maps object coordinate to world coordinate
- View maps world coordinate to camera coordinate
- Projection maps camera coordinate to screen coordinate
Monday, September 10, 2012
Single Sign-On
How to configure IIS7 and IE for Single Sign-On using Windows Authentication: http://support.etouch.net/cm/wiki/?id=78151
Thursday, September 6, 2012
WebSocket
- Node.js and WebSocket
- http://socket.io
- http://martinsikora.com/nodejs-and-websocket-simple-chat-tutorial
- http://www.nodebeginner.org/
- WebApp framework for node js http://expressjs.com/
- Is binary transferable using websocket?
- What happen if a connection is disrupted ?
- Need to handle manually, see http://stackoverflow.com/questions/3780511/reconnection-of-client-when-server-reboots-in-websocket
- Socket.IO seems to have this supported
- How can I simulate disconnected connection for unit test
- Difficult but doable, see http://stackoverflow.com/questions/7268419/how-can-i-kill-a-websocket-connection?rq=1
- How about Proxy ?
- Good question ...
Thursday, August 9, 2012
Wednesday, August 8, 2012
Wednesday, July 25, 2012
Friday, July 20, 2012
Cookies
How to detect cookie in Javascript
http://stackoverflow.com/questions/8112634/jquery-detecting-cookies-enabled
Delete cookie for a specific site by clicking bookmark
http://labnol.blogspot.jp/2006/12/how-to-delete-browser-cookies-of-any.html
Cross-domain communication, 3rd party cookie problems:
- http://vimeo.com/24705559, options:
- PostMessage
- JSONP
- CORS Cross Origin Resource Sharing
- Document.domain Hacks
- Window.name Hacks
- IFrame Hacks
Creating P3P compact policy:
- http://blog.sweetxml.org/2007/10/minimal-p3p-compact-policy-suggestion.html
- http://stackoverflow.com/questions/5774014/iframe-cant-read-nor-set-cookies
- http://viralpatel.net/blogs/how-to-set-third-party-cookies-with-iframe/
http://stackoverflow.com/questions/8112634/jquery-detecting-cookies-enabled
Delete cookie for a specific site by clicking bookmark
http://labnol.blogspot.jp/2006/12/how-to-delete-browser-cookies-of-any.html
Cross-domain communication, 3rd party cookie problems:
- http://vimeo.com/24705559, options:
- PostMessage
- JSONP
- CORS Cross Origin Resource Sharing
- Document.domain Hacks
- Window.name Hacks
- IFrame Hacks
Creating P3P compact policy:
- http://blog.sweetxml.org/2007/10/minimal-p3p-compact-policy-suggestion.html
- http://stackoverflow.com/questions/5774014/iframe-cant-read-nor-set-cookies
- http://viralpatel.net/blogs/how-to-set-third-party-cookies-with-iframe/