The generic solution is to generate a 32 digit key, encoded in hexadecimal composed as follows:
1: Unique down to the millisecond. Digits 1-8 are the hex encoded lower 32 bits of the System.DateTime.Now.Millisecond() call.
2: Unique across a cluster. Digits 9-16 are the encoded representation of the 32 bit integer of the underlying IP address.
3: Unique [...]
Archive for February, 2010
How can universally unique primary keys can be generated ?
Action Message Format – AMF 3
AMF is a binary protocol data transfer client server applications used by some Adobe Flash. The optional Adobe Flex / AMF (Action Message Format) to test support applications programmed with Adobe Flash technology Adobe Flex and using the application protocol AMF.
There are several variants of the binary AMF protocol:
AMF0: this version is used in Flex [...]
Custom Skin/Chrome for Adobe AIR Application(s)
This is a nice tutorial from Ryan Stewart which shows how to create custom chrome for your Adobe AIR applications.
Enjoy !
Reading and Writing Window Registry in C#
Since its introduction in Windows 95, the registry has more often than not intimidated developers. The registry acts as a central repository of information for the operating system and the applications on a computer. When you store information in the registry, choose the appropriate location based on the category of information being stored.
Here is how [...]
Indenting XML using C#
There are times when you need to display an XML string to be able to view in a good format.
// Pretty XML format with consistant indentation.
public static String prettyXMLPrint(String XML)
{
String Result = “”;
MemoryStream msStream = new MemoryStream();
XmlTextWriter xmlWriter = new XmlTextWriter(msStream , Encoding.Unicode);
XmlDocument xmlDocument = new XmlDocument();
try
{
// Load the XmlDocument with the [...]
General Electric (GE) Smart Grid Augmented Reality -
Augmented reality (AR) is a term for a live direct or indirect view of a physical real-world environment whose elements are merged with (or augmented by) virtual computer-generated imagery – creating a mixed reality. The augmentation is conventionally in real-time and in semantic context with environmental elements. GE Smart Grid Augmented Reality makes great use [...]
Adobe – Multi-touch Demos in Adobe AIR 2 and Flash Player 10.1
This is a cool demo by Kevin Lynch which presents multi-touch and “gestures” capabilities on the HP TouchSmart using Adobe AIR 2 and Adobe Flash Player 10.1.
What Is Six Sigma ?
SIX SIGMA:
A complete and flexible system for accomplishing, sustaining and exploiting business success. Six Sigma is driven by close understanding of customer needs, disciplined use of facts, data, and statistical analysis, and assiduous attention to managing, improving, and reinventing business processes.
The types of “business success” you may attain are broad because the established benefits of [...]
First Look at Flash Catalyst
This episode walks you through the Flash Catalyst interface. Then it also shows you how to build an interactive widget for the web from start to finish.
How to get the document’s innerHTML
If you want to access your document innerHTML, you can use the following
document.all[0].innerHTML
or
document.documentElement.innerHTML if you want to skip the tags <HMTL> tags