Posts

Showing posts from November, 2009

SIB Company Trip – 28 Nov 2009

Image
                 

Hardware and Software requirements when install SharePoint Foundation 2010 (WSS 4.0)

(Ref: http://technet.microsoft.com/en-us/library/cc288751(office.14).aspx ) Hardware requirements The requirements in the following table apply to single server with built-in database installations and server farm installations that include a single server or multiple servers in the farm. Component Minimum requirement Processor 64-bit, dual processor, 3 GHz RAM 4 GB for stand-alone or evaluation installation 8 GB for single server and multiple server farm installation for production use Hard disk 80 GB Other DVD drive Software requirements The requirements in the following table apply to single server with built-in database installations and server farm installations that include a single server or multiple...

JavaScript Query String Parsing

  This will return an array named "GET" that consists of query string variables that can be referenced by the following example: http: //example.com/index.html?id=1001&fname=Ben&lname=Bradley   alert( "id = " + GET[ "id" ]); alert( "first name = " + GET[ "fname" ]); alert( "last name = " + GET[ "lname" ]);

Convert XML to JSON string.

Have you ever think how to convert XML data to JSON string, the next is JSON string to objects, and you can easily navigate to the XML data by access to object’s properties. The following code show you a way to convert XML data to JSON string: private static string XmlToJSON(XmlDocument xmlDoc) { StringBuilder sbJSON = new StringBuilder(); sbJSON.Append( "{ " ); XmlToJSONnode(sbJSON, xmlDoc.DocumentElement, true ); sbJSON.Append( "}" ); return sbJSON.ToString(); }   // XmlToJSONnode: Output an XmlElement, possibly as part of a higher array private static void XmlToJSONnode(StringBuilder sbJSON, XmlElement node, bool showNodeName) { if (showNodeName) sbJSON.Append( "\"" + SafeJSON(node.Name) + "\": " ); sbJSON.Append( "{" ); // Build a sorted list of key-value pairs ...