Thursday, April 26, 2012

Sunday, April 15, 2012

Optimistic/Pessimistic Concurrency

The technique that first investigates whether other transactions have changed values in a row before permitting changes to be submitted.

Contrast with pessimistic concurrency control, which locks the record to avoid concurrency conflicts.

Optimistic control is so termed because it considers the chances of one transaction interfering with another to be unlikely.

http://msdn.microsoft.com/en-us/library/bb399373(v=vs.110).aspx

Saturday, April 7, 2012

HTML 5 and User Agents

User agents are not allowed to infer any meaning from the value of the id attribute

http://web.archive.org/web/20110716100719/http://diveintohtml5.org/semantics.html
Hence, the usefulness of semantic elements, such as "<header>," over pre-HTML 5 '<div id="header">'

Sunday, April 1, 2012

jQuery Templates Binding Expressions

Example:     <li><b>${Name}</b> (${ReleaseYear}) ${addCommas(GrossProfit)}</li>
http://api.jquery.com/tmpl/ 

Uses the $.tmpl method as a utility function of the jQuery function.

Templates can be defined in script elements or passed to the tmpl method.

Features one-binding only.

Tuesday, March 27, 2012

jQuery Ajax call to .NET web service

Service must be decorated with System.Web.Script.Services.ScriptService attribute. $.ajax client side method may have contentType property set to "application/json; charset=utf-8" and dataType property set to "json." Then iterate through response objects with response.d.

COM: Pointers to Interfaces Required

A client must have an interface pointer to invoke methods in that interface.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms687230(v=vs.85).aspx

Saturday, March 10, 2012

Math Symbols

see http://mathforum.org/library/drmath/view/51433.html
for upside down A ("for all"), epsilon, etc.