Ramblings of a Software Engineer, Amusements of a Geek, Cacophony of a Guitarist, An Entropy Admirer's and an Interesting Character's Musings..
Wednesday, 20 February 2008
xda blog
Tuesday, 19 February 2008
O2 XDAIIi
XDA's may be becoming less common these days. However, check this out to see what XDA's can do for your business.
'Technology Success Stories for XDA'
Now, i've got my hands dirty with compact framework development, way to go for building the next big success story innit ?
Monday, 18 February 2008
Recursive Descent XML Parsing
A simple recursive descent parsing algorithm for parsing xml which i developed sometime back. Generally a recursive parsing algorithm is an idealistic approach for parsing xml documents with 'tree' sort of a structure. Most of the xml documents can be processed in .net using System.xml ,xpath expressions and various other techniques. But the generality for fetching the data in a certain order becomes important while processing the xml. for brevity's sake i'll consider an xml document which serializes a window.so, ideally the tree structure in the xml would look like the following.
Note the classic 'tree' structure here, i.e a 'container' node can contain other 'container' nodes as child nodes besides 'component' nodes. Therfore i used a recursive algorithm for parsing the tree.
the C# implementation:
internal void RecursiveDescentParseXML(XmlNode root)
{
XmlNode node = root;
Console.WriteLine(root.Name);
if (node.HasChildNodes)
{
XmlNodeList cnodes = node.ChildNodes;
foreach (XmlNode n in cnodes)
{
RecursiveDescentParseXML(n);
}
if (node.Name.ToString().Equals("window")) { }
else
{
Console.WriteLine("Node: " + node.Name +
" Should be added to : " + node.ParentNode.Name);
}
}
else{
Console.WriteLine("Node: " + node.Name +
" Should be added to : " + node.ParentNode.Name);
}
}
Sunday, 17 February 2008
Universal Translation on the fly!
'Compadre suite', a universal translation software developed by a company called SpeechGear provides unbelievable translations from speech,voice and images on the fly supporting 200 languages bidirectionally!!. really impressive! , The compelling part of the software is, it lets you speak into it (obviously through a mic) and have your speech translated into 'text' of a foreign language on the fly and also reads it aloud. (i.e back to speech in a foreign language) Now, for enterprises to adapt to such a thing might still sound naive because of the reasons best known like translation errors due to lack of voice training , pronounciation differences etc.
However, what really caught my attention was the interpreter bit of the software suit which runs on Windows Mobile Pocket PC!!. The 'Interpreter' on your Pocket PC can come in handy if you are in a foreign country, travelling abroad, or simply wanted to converse with a foreigner. It's versatile in that it provides voice commanding over text input.
Compadre Suit at CES 2008 [Video]