<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DkYNQHg-fSp7ImA9WhRUF04.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763</id><updated>2012-01-28T12:33:11.655+05:30</updated><category term="Mahakanda" /><category term="chm files" /><category term="Huawei E220" /><category term="MySQL" /><category term="places" /><category term="funny" /><category term="Mahela Jayawardana" /><category term="silverlight" /><category term="photography" /><category term="cricket" /><category term="Document/Literal WSDL" /><category term="snaptu" /><category term=".bin media files" /><category term=".cue media files" /><category term="Threads" /><category term="IQ" /><category term="IslandCricket" /><category term="WindowsVista" /><category term="CHAMPIONS LEAGUE TWENTY/20 INDIA" /><category term="Sanath Jayasuriya" /><category term="Industrial Training" /><category term="Programming" /><category term="Software QA" /><category term="WSO2" /><category term="seo" /><category term="traveling" /><category term="encryption" /><category term="Batting order" /><category term="software" /><category term="RPC/encoded WSDL" /><category term="mobile applications" /><category term="Kumar Sanagakkara" /><category term="search" /><category term="OOP" /><category term="chm file reading problems" /><category term="flowers" /><category term="ubuntu" /><category term="ebuddy" /><category term="Silly stories" /><category term="wayamba" /><category term="media file formats" /><category term="google" /><category term=".NET" /><category term="Sri Lanka cricket" /><title>// Nadun's Weblog</title><subtitle type="html">/*  Everything from technical stuff, cricket, politics,   
     traveling to general life.
*/</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://nadunh.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/NadunsWeblog" /><feedburner:info uri="nadunsweblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;AkYCSHk7eSp7ImA9WhdSF0g.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-7963962444191207771</id><published>2011-07-27T10:30:00.003+05:30</published><updated>2011-07-27T14:46:09.701+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-27T14:46:09.701+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term=".NET" /><category scheme="http://www.blogger.com/atom/ns#" term="silverlight" /><category scheme="http://www.blogger.com/atom/ns#" term="encryption" /><title>Encryption in Silverlight and .NET Applications</title><content type="html">I wanted to encrypt some sensitive data in a Silverlight application and decry pt that in the server. Sergey Barskiy's has written a good post about that.  Here is the code. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Encryption functionality&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(136, 136, 136); font-family: 'Lucida Grande', sans-serif; font-size: 11px; "&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(68, 68, 68); font-family: 'Lucida Grande', sans-serif; font-size: 14px; "&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; "&gt;using&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; "&gt; System; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;using&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; System.Text; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;using&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; System.Security.Cryptography; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;using&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; System.IO; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(68, 68, 68); font-family: consolas; font-size: 10pt; "&gt; &lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;namespace&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; Encryption &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;    &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;public&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;static&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;class&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: rgb(43, 145, 175); "&gt;EncryptionUtility&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;    { &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(68, 68, 68); font-family: consolas; font-size: 10pt; "&gt; &lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;        &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: gray; "&gt;///&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: green; "&gt; &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: gray; "&gt;&lt;summary&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;        &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: gray; "&gt;///&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: green; "&gt; Encrypt the data&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;        &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: gray; "&gt;///&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: green; "&gt; &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: gray; "&gt;&lt;/span&gt;&lt;/summary&gt;&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;        &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: gray; "&gt;///&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: green; "&gt; &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: gray; "&gt;&lt;param name="input"&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: green; "&gt;String to encrypt&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: gray; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;        &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: gray; "&gt;///&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: green; "&gt; &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: gray; "&gt;&lt;returns&gt;&lt;/returns&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: green; "&gt;Encrypted string&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: gray; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;        &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;public&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;static&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;string&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; Encrypt(&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;string&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; input, &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;string&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; password) &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;        { &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(68, 68, 68); font-family: consolas; font-size: 10pt; "&gt; &lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;            &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;byte&lt;/span&gt;&lt;span class="Apple-style-span"   &gt;[] utfData = &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: rgb(43, 145, 175); "&gt;UTF8Encoding&lt;/span&gt;&lt;span class="Apple-style-span"   &gt;.UTF8.GetBytes(input); &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;            &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;byte&lt;/span&gt;&lt;span class="Apple-style-span"   &gt;[] saltBytes = &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: rgb(43, 145, 175); "&gt;Encoding&lt;/span&gt;&lt;span class="Apple-style-span"   &gt;.UTF8.GetBytes(password); &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;            &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;string&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; encryptedString = &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;string&lt;/span&gt;&lt;span class="Apple-style-span"   &gt;.Empty; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;            &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;using&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; (&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: rgb(43, 145, 175); "&gt;AesManaged&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; aes = &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;new&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: rgb(43, 145, 175); "&gt;AesManaged&lt;/span&gt;&lt;span class="Apple-style-span"   &gt;()) &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;            { &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: rgb(43, 145, 175); "&gt;Rfc2898DeriveBytes&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; rfc = &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;new&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: rgb(43, 145, 175); "&gt;Rfc2898DeriveBytes&lt;/span&gt;&lt;span class="Apple-style-span"   &gt;(password, saltBytes); &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(68, 68, 68); font-family: consolas; font-size: 10pt; "&gt; &lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                aes.BlockSize = aes.LegalBlockSizes[0].MaxSize; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                aes.KeySize = aes.LegalKeySizes[0].MaxSize; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                aes.Key = rfc.GetBytes(aes.KeySize / 8); &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                aes.IV = rfc.GetBytes(aes.BlockSize / 8); &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(68, 68, 68); font-family: consolas; font-size: 10pt; "&gt; &lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;using&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; (&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: rgb(43, 145, 175); "&gt;ICryptoTransform&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; encryptTransform = aes.CreateEncryptor()) &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                { &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                    &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;using&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; (&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: rgb(43, 145, 175); "&gt;MemoryStream&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; encryptedStream = &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;new&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: rgb(43, 145, 175); "&gt;MemoryStream&lt;/span&gt;&lt;span class="Apple-style-span"   &gt;()) &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                    { &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                        &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;using&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; (&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: rgb(43, 145, 175); "&gt;CryptoStream&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; encryptor =  &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                            &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;new&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: rgb(43, 145, 175); "&gt;CryptoStream&lt;/span&gt;&lt;span class="Apple-style-span"   &gt;(encryptedStream, encryptTransform,&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: rgb(43, 145, 175); "&gt;CryptoStreamMode&lt;/span&gt;&lt;span class="Apple-style-span"   &gt;.Write)) &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                        { &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                            encryptor.Write(utfData, 0, utfData.Length); &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                            encryptor.Flush(); &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                            encryptor.Close(); &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(68, 68, 68); font-family: consolas; font-size: 10pt; "&gt; &lt;/span&gt;&lt;span class="Apple-style-span"   &gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                            &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;byte&lt;/span&gt;&lt;span class="Apple-style-span"   &gt;[] encryptBytes = encryptedStream.ToArray(); &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                            encryptedString = &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: rgb(43, 145, 175); "&gt;Convert&lt;/span&gt;&lt;span class="Apple-style-span"   &gt;.ToBase64String(encryptBytes); &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                        } &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                    } &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;                } &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;            } &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   &gt;            &lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; color: blue; "&gt;return&lt;/span&gt;&lt;span class="Apple-style-span"   &gt; encryptedString; &lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(68, 68, 68); font-family: consolas; font-size: small; "&gt;        } &lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(136, 136, 136); font-family: 'Lucida Grande', sans-serif; font-size: 11px; "&gt; &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(136, 136, 136); font-family: 'Lucida Grande', sans-serif; font-size: 11px; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Decryption functionality&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   &gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(68, 68, 68); font-family: consolas; font-size: 13px; "&gt;&lt;span style="color: gray; "&gt;///&lt;/span&gt;&lt;span style="color: green; "&gt; &lt;/span&gt;&lt;span style="color: gray; "&gt;&lt;summary&gt;&lt;br /&gt;        &lt;span style="color: gray; "&gt;///&lt;/span&gt;&lt;span style="color: green; "&gt; Decrypt a string&lt;/span&gt;&lt;br /&gt;        &lt;span style="color: gray; "&gt;///&lt;/span&gt;&lt;span style="color: green; "&gt; &lt;/span&gt;&lt;span style="color: gray; "&gt;&lt;/span&gt;&lt;/summary&gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style="color: gray; "&gt;///&lt;/span&gt;&lt;span style="color: green; "&gt; &lt;/span&gt;&lt;span style="color: gray; "&gt;&lt;param name="input"&gt;&lt;/span&gt;&lt;span style="color: green; "&gt;Input string in base 64 format&lt;/span&gt;&lt;span style="color: gray; "&gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style="color: gray; "&gt;///&lt;/span&gt;&lt;span style="color: green; "&gt; &lt;/span&gt;&lt;span style="color: gray; "&gt;&lt;returns&gt;&lt;/returns&gt;&lt;/span&gt;&lt;span style="color: green; "&gt;Decrypted string&lt;/span&gt;&lt;span style="color: gray; "&gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style="color: blue; "&gt;public&lt;/span&gt; &lt;span style="color: blue; "&gt;static&lt;/span&gt; &lt;span style="color: blue; "&gt;string&lt;/span&gt; Decrypt(&lt;span style="color: blue; "&gt;string&lt;/span&gt; input, &lt;span style="color: blue; "&gt;string&lt;/span&gt; password)&lt;br /&gt;        {&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(68, 68, 68); font-family: consolas; font-size: 13px; "&gt;&lt;br /&gt;&lt;span&gt; &lt;/span&gt; &lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(49, 60, 70); font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "&gt;input = input.Replace(" ","+");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(68, 68, 68); font-family: consolas; font-size: 13px; "&gt;            &lt;span style="color: blue; "&gt;byte&lt;/span&gt;[] encryptedBytes = &lt;span style="color: rgb(43, 145, 175); "&gt;Convert&lt;/span&gt;.FromBase64String(input);&lt;br /&gt;            &lt;span style="color: blue; "&gt;byte&lt;/span&gt;[] saltBytes = &lt;span style="color: rgb(43, 145, 175); "&gt;Encoding&lt;/span&gt;.UTF8.GetBytes(password);&lt;br /&gt;            &lt;span style="color: blue; "&gt;string&lt;/span&gt; decryptedString = &lt;span style="color: blue; "&gt;string&lt;/span&gt;.Empty;&lt;br /&gt;            &lt;span style="color: blue; "&gt;using&lt;/span&gt; (&lt;span style="color: blue; "&gt;var&lt;/span&gt; aes = &lt;span style="color: blue; "&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175); "&gt;AesManaged&lt;/span&gt;())&lt;br /&gt;            {&lt;br /&gt;                &lt;span style="color: rgb(43, 145, 175); "&gt;Rfc2898DeriveBytes&lt;/span&gt; rfc = &lt;span style="color: blue; "&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175); "&gt;Rfc2898DeriveBytes&lt;/span&gt;(password, saltBytes);&lt;br /&gt;                aes.BlockSize = aes.LegalBlockSizes[0].MaxSize;&lt;br /&gt;                aes.KeySize = aes.LegalKeySizes[0].MaxSize;&lt;br /&gt;                aes.Key = rfc.GetBytes(aes.KeySize / 8);&lt;br /&gt;                aes.IV = rfc.GetBytes(aes.BlockSize / 8);&lt;br /&gt;&lt;span&gt; &lt;/span&gt;&lt;br /&gt;                &lt;span style="color: blue; "&gt;using&lt;/span&gt; (&lt;span style="color: rgb(43, 145, 175); "&gt;ICryptoTransform&lt;/span&gt; decryptTransform = aes.CreateDecryptor())&lt;br /&gt;                {&lt;br /&gt;                    &lt;span style="color: blue; "&gt;using&lt;/span&gt; (&lt;span style="color: rgb(43, 145, 175); "&gt;MemoryStream&lt;/span&gt; decryptedStream = &lt;span style="color: blue; "&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175); "&gt;MemoryStream&lt;/span&gt;())&lt;br /&gt;                    {&lt;br /&gt;                        &lt;span style="color: rgb(43, 145, 175); "&gt;CryptoStream&lt;/span&gt; decryptor = &lt;br /&gt;                            &lt;span style="color: blue; "&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175); "&gt;CryptoStream&lt;/span&gt;(decryptedStream, decryptTransform,&lt;span style="color: rgb(43, 145, 175); "&gt;CryptoStreamMode&lt;/span&gt;.Write);&lt;br /&gt;                        decryptor.Write(encryptedBytes, 0, encryptedBytes.Length);&lt;br /&gt;                        decryptor.Flush();&lt;br /&gt;                        decryptor.Close();&lt;br /&gt;&lt;span&gt; &lt;/span&gt;&lt;br /&gt;                        &lt;span style="color: blue; "&gt;byte&lt;/span&gt;[] decryptBytes = decryptedStream.ToArray();&lt;br /&gt;                        decryptedString = &lt;br /&gt;                            &lt;span style="color: rgb(43, 145, 175); "&gt;UTF8Encoding&lt;/span&gt;.UTF8.GetString(decryptBytes, 0, decryptBytes.Length);&lt;br /&gt;                    }&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;&lt;span&gt; &lt;/span&gt;&lt;br /&gt;            &lt;span style="color: blue; "&gt;return&lt;/span&gt; decryptedString;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(68, 68, 68); font-family: consolas; font-size: 13px; "&gt;In the decrpting part I had to include the line &lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(49, 60, 70); font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "&gt; input = input.Replace(" ","+");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   &gt;It seems 64-bic encoding does not work with spaces. Plus sign will be interpreted as a space when you call the &lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(49, 60, 70); font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "&gt;FromBase64String method. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(49, 60, 70); font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(49, 60, 70); font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(49, 60, 70); font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  &gt;&lt;span class="Apple-style-span" style="font-size: 11px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-7963962444191207771?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/Od-23kS7lWw" height="1" width="1"/&gt;</content><link rel="related" href="http://dotnetspeak.com/index.php/2010/08/encryption-in-silverlight-and-net-applications/" title="Encryption in Silverlight and .NET Applications" /><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/7963962444191207771/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=7963962444191207771" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/7963962444191207771?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/7963962444191207771?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/Od-23kS7lWw/encryption-in-silverlight-and-net.html" title="Encryption in Silverlight and .NET Applications" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2011/07/encryption-in-silverlight-and-net.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0ICSHY6eSp7ImA9WhdTFEg.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-4166013463577533158</id><published>2011-07-12T10:53:00.009+05:30</published><updated>2011-07-12T11:49:29.811+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-12T11:49:29.811+05:30</app:edited><title>Determining  if CheckBoxes are checked in a Silverlight Datagrid.</title><content type="html">&lt;div&gt;&lt;div&gt;This is the simplest way of adding a checked box column to a data grid in silver light and iterate through the values to determine which values are checked. The code is straight forward.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;data:datagrid name="gridActivityList" margin="0" autogeneratecolumns="False"&gt;&lt;/data:datagrid&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;        &amp;lt;data:DataGrid x:Name="gridActivityList" Margin="0"  AutoGenerateColumns="False"&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre; "&gt;&amp;gt;   &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &amp;lt;data:DataGrid.Columns&amp;gt;     &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;        &amp;lt;data:DataGridTextColumn x:Name="Activity" Binding="{Binding ActivityName}" Header="Activity" Width="200"/&amp;gt;  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &amp;lt;data:DataGridTemplateColumn&amp;gt;   &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;        &amp;lt;data:DataGridTemplateColumn.CellTemplate&amp;gt;    &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;        &amp;lt;DataTemplate&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;        &amp;lt;StackPanel ToolTipService.ToolTip="View Activity History"&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;        &amp;lt;CheckBox x:Name="activityExecute" IsChecked="{Binding IsChecked,Mode=TwoWay}" Width="60" Margin="5,3,5,3" /&amp;gt;   &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;        &amp;lt;/StackPanel&amp;gt;  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;        &amp;lt;/DataTemplate&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;   &amp;lt;/data:DataGridTemplateColumn.CellTemplate&amp;gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &amp;lt;/data:DataGridTemplateColumn&amp;gt;  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &amp;lt;/data:DataGrid.Columns&amp;gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;         &amp;lt;/data:DataGrid&amp;gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre; "&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre; "&gt;   &lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;   &lt;data:datagrid.columns&gt;     &lt;data:datagridtextcolumn name="Activity" binding="{Binding ActivityName}" header="Activity" width="200"&gt;     &lt;data:datagridtemplatecolumn&gt;      &lt;data:datagridtemplatecolumn.celltemplate&gt;       &lt;datatemplate&gt;        &lt;stackpanel tooltip="View Activity History"&gt;         &lt;checkbox name="activityExecute" ischecked="{Binding IsChecked,Mode=TwoWay}" width="60" margin="5,3,5,3"&gt;        &lt;/checkbox&gt;&lt;/stackpanel&gt;       &lt;/datatemplate&gt;      &lt;/data:datagridtemplatecolumn.celltemplate&gt;     &lt;/data:datagridtemplatecolumn&gt;    &lt;/data:datagridtextcolumn&gt;&lt;/data:datagrid.columns&gt;   &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;data:datagridtemplatecolumn.celltemplate&gt;&lt;/data:datagridtemplatecolumn.celltemplate&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;    C&lt;/span&gt;# code&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &lt;/span&gt;List&lt;activitylist&gt; list = (List&lt;activitylist&gt;)gridActivityList.ItemsSource;&lt;/activitylist&gt;&lt;/activitylist&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &lt;/span&gt;foreach (ActivityList a in list)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;  &lt;/span&gt;if (a.IsChecked)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;  &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;   &lt;/span&gt;checkedActivities.Add(a.ActivityName);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;  &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &lt;/span&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-4166013463577533158?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/C_vK8JtDy5w" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/4166013463577533158/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=4166013463577533158" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/4166013463577533158?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/4166013463577533158?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/C_vK8JtDy5w/determining-if-checkboxes-are-checked.html" title="Determining  if CheckBoxes are checked in a Silverlight Datagrid." /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2011/07/determining-if-checkboxes-are-checked.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU4ESX44eyp7ImA9WhZTFU4.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-8013784695312794871</id><published>2011-03-19T16:12:00.003+05:30</published><updated>2011-03-19T16:55:08.033+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-03-19T16:55:08.033+05:30</app:edited><title>HTML Parser - Java Library to extract html Elements</title><content type="html">&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" &gt;&lt;u&gt; &lt;/u&gt;&lt;/span&gt;&lt;a href="http://htmlparser.sourceforge.net/"&gt;HTML Parser - HTML Parser&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;HTML Parser is a very cool java library which can be used to extract values in a html page.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Let's take the URL - http://www.google.ca/finance?q=BMO&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-TFp1a_ghA7Y/TYSJ100A2JI/AAAAAAAAASM/9rV0_IDg3I8/s1600/htmlparser.jpg"&gt;&lt;img style="text-align: left;display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; cursor: pointer; width: 320px; height: 200px; " src="http://2.bp.blogspot.com/-TFp1a_ghA7Y/TYSJ100A2JI/AAAAAAAAASM/9rV0_IDg3I8/s320/htmlparser.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5585740995649132690" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;Let's say we want to extract the value of the span tag - ( Mar 18 - Close.)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is the code&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;import java.io.IOException;&lt;/div&gt;&lt;div&gt;import java.net.MalformedURLException;&lt;/div&gt;&lt;div&gt;import java.net.URL;&lt;/div&gt;&lt;div&gt;import java.net.URLConnection;&lt;/div&gt;&lt;div&gt;import org.htmlparser.Node;&lt;/div&gt;&lt;div&gt;import org.htmlparser.Parser;&lt;/div&gt;&lt;div&gt;import org.htmlparser.filters.CssSelectorNodeFilter;&lt;/div&gt;&lt;div&gt;import org.htmlparser.util.NodeList;&lt;/div&gt;&lt;div&gt;import org.htmlparser.util.ParserException;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;public class test {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;/**&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt; * @param args&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt; */&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;public static void main(String[] args) {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;String URL = "http://www.google.ca/finance?q=BMO";&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;try {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;URL url = new URL(URL);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;URLConnection urlcon;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;urlcon = url.openConnection();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;Parser parser = new Parser(urlcon); // creating of HTML parser&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;            &lt;/span&gt;// object&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;CssSelectorNodeFilter cssFilter = new CssSelectorNodeFilter(&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;     &lt;/span&gt;"SPAN.nwp");&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;NodeList nodes = parser.parse(cssFilter); // getting nodes of&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;             &lt;/span&gt;  // span.nwp. Only NodeList created with one value&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;Node node = nodes.elementAt(0);  //getting the first value of the nodes list&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;System.out.println(nodes.size());&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;String value = node.getFirstChild().getText(); //getting the value of the node&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;System.out.println(value);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;} catch (MalformedURLException e) {&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;System.out.println("Malformed Exception :" + e.getMessage());&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;} catch (IOException e) {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;e.printStackTrace();&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;} catch (ParserException e) {&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;e.printStackTrace();&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-8013784695312794871?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/UXn0-4-g-ec" height="1" width="1"/&gt;</content><link rel="related" href="http://htmlparser.sourceforge.net/" title="HTML Parser - Java Library to extract html Elements" /><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/8013784695312794871/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=8013784695312794871" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/8013784695312794871?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/8013784695312794871?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/UXn0-4-g-ec/html-parser-java-library-to-extract.html" title="HTML Parser - Java Library to extract html Elements" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-TFp1a_ghA7Y/TYSJ100A2JI/AAAAAAAAASM/9rV0_IDg3I8/s72-c/htmlparser.jpg" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2011/03/html-parser-java-library-to-extract.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08AR34yfSp7ImA9Wx9WF0g.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-2604690495140595182</id><published>2011-01-23T08:31:00.000+05:30</published><updated>2011-01-23T08:34:06.095+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-23T08:34:06.095+05:30</app:edited><title>YouTube - Sri Lanka</title><content type="html">&lt;a href="http://www.youtube.com/watch?v=N7jE5I3lx5I&amp;amp;feature=player_embedded"&gt;YouTube - Sri Lanka&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-2604690495140595182?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/PyIzk9avy34" height="1" width="1"/&gt;</content><link rel="related" href="http://www.youtube.com/watch?v=N7jE5I3lx5I&amp;feature=player_embedded" title="YouTube - Sri Lanka" /><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/2604690495140595182/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=2604690495140595182" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/2604690495140595182?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/2604690495140595182?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/PyIzk9avy34/youtube-sri-lanka.html" title="YouTube - Sri Lanka" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2011/01/youtube-sri-lanka.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU4BR3k9fyp7ImA9Wx9SFEs.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-1734168486814387669</id><published>2010-12-04T17:16:00.005+05:30</published><updated>2010-12-04T17:29:16.767+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-04T17:29:16.767+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><title>MySQL - Having reserved key word as a column name</title><content type="html">&lt;div style="text-align: justify;"&gt;In MySql you will run into trouble when you try to execute a query if you have a reserved keyword as a column name. As an example let's take "update google_mapping set Open_Market='N' where Group='Taiwan';. Group is a reserved keyword in MySql.  Solution is to surround keyword with ``.  So in the above example you have to modify the query like this.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"update google_mapping set Open_Market='N' where `Group`='Taiwan'";&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-1734168486814387669?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/57shZNB3op8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/1734168486814387669/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=1734168486814387669" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/1734168486814387669?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/1734168486814387669?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/57shZNB3op8/mysql-having-reserved-key-word-as.html" title="MySQL - Having reserved key word as a column name" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/12/mysql-having-reserved-key-word-as.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04CR348eSp7ImA9Wx5bFE4.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-8169683796818617828</id><published>2010-10-30T15:16:00.000+05:30</published><updated>2010-10-30T15:16:06.071+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-30T15:16:06.071+05:30</app:edited><title>Esoteric programming language</title><content type="html">&lt;a href="http://en.wikipedia.org/wiki/Esoteric_programming_language#Examples"&gt;Esoteric programming language - Wikipedia, the free encyclopedia&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Escoteric programming languages! Well I heard about them today for the first time. These programming languages are not used in real world programming. They have mainly used to test the boundaries of computer programming language design, as a joke and as a prof of concept by hackers and hobbyists . You can find great deal about them in this wiki article. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-8169683796818617828?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/5Hn8zKrdV0Y" height="1" width="1"/&gt;</content><link rel="related" href="http://en.wikipedia.org/wiki/Esoteric_programming_language#Examples" title="Esoteric programming language" /><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/8169683796818617828/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=8169683796818617828" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/8169683796818617828?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/8169683796818617828?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/5Hn8zKrdV0Y/esoteric-programming-language.html" title="Esoteric programming language" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/10/esoteric-programming-language.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU4GRXw6fSp7ImA9Wx5UFUo.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-359788071245324675</id><published>2010-10-20T18:02:00.000+05:30</published><updated>2010-10-20T18:02:04.215+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-20T18:02:04.215+05:30</app:edited><title>David Parnas - Father of the Software Engineering</title><content type="html">&lt;a href="http://en.wikipedia.org/wiki/David_Parnas"&gt;David Parnas - Wikipedia, the free encyclopedia&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Recently I heard that David Parnas is considered as the father of modern day Software Engineering. . Geez, I am in the Software Engineering field &lt;/div&gt;&lt;div&gt;all these years with out knowing the father of Software Engineering. ;)  He has published many papers regarding Software Architecture.  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-359788071245324675?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/cPVu4yVFzKo" height="1" width="1"/&gt;</content><link rel="related" href="http://en.wikipedia.org/wiki/David_Parnas" title="David Parnas - Father of the Software Engineering" /><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/359788071245324675/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=359788071245324675" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/359788071245324675?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/359788071245324675?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/cPVu4yVFzKo/david-parnas-father-of-software.html" title="David Parnas - Father of the Software Engineering" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/10/david-parnas-father-of-software.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04ER3Y4fyp7ImA9Wx5UE0w.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-9020650053666814345</id><published>2010-10-15T11:04:00.004+05:30</published><updated>2010-10-17T16:08:26.837+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-17T16:08:26.837+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Programming" /><category scheme="http://www.blogger.com/atom/ns#" term="OOP" /><title>Brief Introduction to Object Oriented Programming Fundamentals</title><content type="html">Main Fundamental concepts of Object Oriented Programming are&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;1. Data Abstraction&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;2. Encapsulation&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;3. Polymorphism&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;4. Inheritance&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. Data Abstraction - Process of Grouping together fields and methods and defining classes. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2.Data Encapsulation - Hiding the implementation details. Provides a barrier to prevent misuse. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3.Inheritance - Receiving responsibility of parents. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4. Polymorphism - Ability to substitute a one type for another type at runtime. It's also called &lt;span class="Apple-tab-span" style="white-space:pre"&gt;    &lt;/span&gt;  dynamic binding and late binding.  Overriding is directly related to this. &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-9020650053666814345?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/Kf5y4MJiGqs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/9020650053666814345/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=9020650053666814345" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/9020650053666814345?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/9020650053666814345?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/Kf5y4MJiGqs/brief-introduction-to-object-oriented.html" title="Brief Introduction to Object Oriented Programming Fundamentals" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/10/brief-introduction-to-object-oriented.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUCRHs7fyp7ImA9Wx5UEU8.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-5377768401021527402</id><published>2010-08-27T12:51:00.007+05:30</published><updated>2010-10-15T11:27:45.507+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-15T11:27:45.507+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Huawei E220" /><category scheme="http://www.blogger.com/atom/ns#" term="WindowsVista" /><title>Huawei E220, the device has been disconnected or is unavailable</title><content type="html">&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; "&gt;&lt;span class="Apple-style-span" style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-size:medium;"&gt;Huawei USB modem didn't work in my Windows Vista laptop. &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.mobilebroadbandrocks.com/device/huawei-e220"&gt;&lt;span class="Apple-style-span" style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-size:medium;"&gt;my2cent &lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-size:medium;"&gt;blog helped me to resolve the issue. :)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; "&gt;&lt;span class="Apple-style-span" style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-size:medium;"&gt;You can download Huawei E220 Vista Firmware (v11.110.05.00.00) from the link below.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; font-family:Arial, Helvetica, sans-serif;font-size:12px;"&gt;&lt;/span&gt;&lt;a href="http://www.mobilebroadbandrocks.com/download/huawei-e220-vista-firmware-v11110050000"&gt;http://www.mobilebroadbandrocks.com/download/huawei-e220-vista-firmware-v11110050000&lt;/a&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; font-family:Arial, Helvetica, sans-serif;font-size:12px;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As in the screen shot below shows Device manager should list Huawei in the Modems section if the device has been correctly install in the machine.&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: rgb(51, 51, 51); line-height: 20px; "&gt; &lt;/span&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_HLypqwRjk7c/THdrbCrHj5I/AAAAAAAAAPE/0K1nyrMZZsk/s1600/Untitled.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 200px;" src="http://1.bp.blogspot.com/_HLypqwRjk7c/THdrbCrHj5I/AAAAAAAAAPE/0K1nyrMZZsk/s320/Untitled.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5509990781429452690" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family:Arial, Helvetica, sans-serif;color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 20px; font-size: -webkit-xxx-large;"&gt;&lt;span class="Apple-style-span" style="font-family:'times new roman';font-size:130%;"&gt;&lt;span class="Apple-style-span" style="font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family:Arial, Helvetica, sans-serif;color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 20px; font-size: -webkit-xxx-large;"&gt;&lt;span class="Apple-style-span" style="font-family:'times new roman';font-size:130%;"&gt;&lt;span class="Apple-style-span" style="font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="line-height: 20px;"&gt;Few days after writing this blog post I dicovered what is causing me this problem. It's VMWare.  I uninstall that and now device works fine. :)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family:Arial, Helvetica, sans-serif;color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 20px; font-size: -webkit-xxx-large;"&gt;&lt;span class="Apple-style-span" style="font-family:'times new roman';font-size:130%;"&gt;&lt;span class="Apple-style-span" style="font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family:Arial, Helvetica, sans-serif;color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 20px; font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-5377768401021527402?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/WierKNgHtB0" height="1" width="1"/&gt;</content><link rel="related" href="http://www.mobilebroadbandrocks.com/device/huawei-e220" title="Huawei E220, the device has been disconnected or is unavailable" /><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/5377768401021527402/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=5377768401021527402" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/5377768401021527402?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/5377768401021527402?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/WierKNgHtB0/huawei-e220-device-has-been.html" title="Huawei E220, the device has been disconnected or is unavailable" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_HLypqwRjk7c/THdrbCrHj5I/AAAAAAAAAPE/0K1nyrMZZsk/s72-c/Untitled.jpg" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/08/huawei-e220-device-has-been.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUIGQHcyfip7ImA9WxFRE0k.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-465369470573549812</id><published>2010-04-27T09:45:00.004+05:30</published><updated>2010-04-27T10:15:21.996+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-27T10:15:21.996+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="photography" /><category scheme="http://www.blogger.com/atom/ns#" term="Mahakanda" /><category scheme="http://www.blogger.com/atom/ns#" term="flowers" /><title>Flowers</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_HLypqwRjk7c/S9ZruX7YZbI/AAAAAAAAAN0/5bj-E4wHAho/s1600/22042010287.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_HLypqwRjk7c/S9ZruX7YZbI/AAAAAAAAAN0/5bj-E4wHAho/s320/22042010287.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5464673642301908402" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_HLypqwRjk7c/S9ZrfTdhVvI/AAAAAAAAANs/0OIjnlxj-vM/s1600/13042010266.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_HLypqwRjk7c/S9ZrfTdhVvI/AAAAAAAAANs/0OIjnlxj-vM/s320/13042010266.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5464673383404885746" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-465369470573549812?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/2DeOVwY9xHE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/465369470573549812/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=465369470573549812" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/465369470573549812?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/465369470573549812?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/2DeOVwY9xHE/flowers.html" title="Flowers" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_HLypqwRjk7c/S9ZruX7YZbI/AAAAAAAAAN0/5bj-E4wHAho/s72-c/22042010287.jpg" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/04/flowers.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0EDQXo9fSp7ImA9WxFRE0k.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-6030523251676800696</id><published>2010-04-27T09:35:00.004+05:30</published><updated>2010-04-27T09:44:30.465+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-27T09:44:30.465+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term=".cue media files" /><category scheme="http://www.blogger.com/atom/ns#" term=".bin media files" /><category scheme="http://www.blogger.com/atom/ns#" term="media file formats" /><title>How to view .bin and .cue media files</title><content type="html">&lt;span class="Apple-style-span" style="font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; color: rgb(17, 17, 17); line-height: 22px; "&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; color: rgb(17, 17, 17); line-height: 22px; "&gt;I used powerISO and it was easy. You can find more info regarding this&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; color: rgb(17, 17, 17); line-height: 22px; "&gt;&lt;a href="http://theos.in/windows-vista/howto-play-bin-movie-dvd-file/"&gt;Watch .bin movie file with Windows VLC player&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Tried to use Demon Pro too. It didn't work out well. Maybe you might be lucky. ;)&lt;/div&gt;&lt;div&gt;&lt;a href="http://netforbeginners.about.com/od/peersharing/ss/playingbinfiles.htm"&gt;How to play .bin, .cue, .dat and .rar movie file&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:Arial;font-size:6;color:#3E3E3E;"&gt;&lt;span class="Apple-style-span" style="font-size: 22px; line-height: 26px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-6030523251676800696?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/nnNe-4j_EX8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/6030523251676800696/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=6030523251676800696" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/6030523251676800696?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/6030523251676800696?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/nnNe-4j_EX8/how-to-view-bin-and-cue-media-files.html" title="How to view .bin and .cue media files" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/04/how-to-view-bin-and-cue-media-files.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEECR347cSp7ImA9WxFSFEU.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-6662199408421333289</id><published>2010-04-16T23:44:00.005+05:30</published><updated>2010-04-17T11:07:46.009+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-17T11:07:46.009+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="seo" /><category scheme="http://www.blogger.com/atom/ns#" term="search" /><category scheme="http://www.blogger.com/atom/ns#" term="google" /><title>Advance Google Searching</title><content type="html">&lt;div&gt;Google is the leader when it comes to search engines. With the google search engine here are some techniques to get various kind of usual information.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;# (site:) - Domain restricted search. Shows how many URLs are indexed by Google from a    directory including all the sub domains. Also shows sites of specific top level domain. &lt;div&gt;  &lt;span class="Apple-tab-span" style="white-space:pre"&gt;      &lt;/span&gt;e.g;   site:www.google.com,   site: google.com,   site: lk&lt;br /&gt;&lt;br /&gt;&lt;div&gt;# (inurl:) -Narrows the search to urls with the given word.&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;e.g: inurl:cricket This gives urls which contain word cricket&lt;/div&gt;&lt;div&gt;&lt;br /&gt;# (intitle:)- Narrows the seach to urls where title of the page contains the given parameter&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;       &lt;/span&gt;e.g intitle:seo - This gives search results  which contain seo in the title&lt;/div&gt;&lt;div&gt;&lt;br /&gt;# (inanchor:) -Narrows the seach to urls most powerful backlinks which contain the the given  parameter&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;      &lt;/span&gt;e.g inanchor:srilanka&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;/span&gt;# &lt;span class="Apple-tab-span" style="white-space:pre"&gt;(&lt;/span&gt;intext:) - Find the pages with most optimized relevant body text. &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;     &lt;/span&gt;e.g intext:seo&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# (ext:)/(filetype:) - Seaches pages that ends with given extension&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;    &lt;/span&gt;e.g ext:py , filetype:py&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# (related:) - Gives similar sites which they are linked to. &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;e.g related:www.cricinfo.com&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# (info:) - Gives information about a site such as web pages that are similar, web pages that link to the site, web pages that contain the given term etc. &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;          e.g  info:www.example.com&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# (cache:) - See what the page looks like when google crawls it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# ~keyword - Show key words that google think are related&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;e.g   ~car ~rentals - Will give results that related to zoo car and rentals &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# "" - Gives results with the exact words withing the quotes.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;e.g "I love my country" &lt;span class="Apple-tab-span" style="white-space:pre"&gt;    &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-6662199408421333289?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/Dzntd1fsO1Y" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/6662199408421333289/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=6662199408421333289" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/6662199408421333289?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/6662199408421333289?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/Dzntd1fsO1Y/advance-google-searching.html" title="Advance Google Searching" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/04/advance-google-searching.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUQFQXk8cCp7ImA9WxFSE00.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-4866509074560563881</id><published>2010-04-15T10:10:00.002+05:30</published><updated>2010-04-15T10:25:10.778+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-15T10:25:10.778+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="WindowsVista" /><title>How to block a web site in Windows Vista</title><content type="html">&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;Sometimes you may need to block web site. You can easily achieve this by using Windows Hosts file. Hosts file is located in &lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: 14px; line-height: 24px; "&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;C:\WINDOWS\SYSTEM32\DRIVERS\ETC. Open that in Notepad. As an exaple if you want to block the site www.example.com include this lines at the bottom of the file.&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'times new roman';font-size:130%;"&gt;&lt;span class="Apple-style-span" style="font-size: 14px; line-height: 24px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: 14px; line-height: 24px; "&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;127.0.0.1 example.com&lt;br /&gt;127.0.0.1 www.example.com&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica; font-size: 14px; line-height: 24px; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica; font-size: 14px; line-height: 24px; "&gt;You can find more information regarding this in &lt;a href="http://www.gohacking.com/2008/01/how-to-block-website.html"&gt;gohacking &lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-4866509074560563881?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/dzI75Aczk-g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/4866509074560563881/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=4866509074560563881" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/4866509074560563881?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/4866509074560563881?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/dzI75Aczk-g/how-to-block-web-site-in-windows-vista.html" title="How to block a web site in Windows Vista" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/04/how-to-block-web-site-in-windows-vista.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEEHRXwzeSp7ImA9WxFTFUg.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-5071819162754835208</id><published>2010-04-06T16:41:00.003+05:30</published><updated>2010-04-06T16:47:14.281+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-06T16:47:14.281+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Software QA" /><title>Importance of Software Testing</title><content type="html">&lt;p class="topmargin"&gt;&lt;a name="FAQ1_3"&gt;Don't ever take software testing for granted. &lt;/a&gt;&lt;/p&gt;&lt;p class="topmargin"&gt;&lt;a name="FAQ1_3"&gt;&lt;b&gt;&lt;/b&gt;&lt;/a&gt;&lt;b&gt;&lt;a href="http://www.softwareqatest.com/qatfaq1.html#FAQ1_3"&gt;Source&lt;/a&gt;  -http://www.softwareqatest.com/&lt;/b&gt;&lt;/p&gt;&lt;p class="topmargin"&gt;&lt;a name="FAQ1_3"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;b&gt;&lt;a name="FAQ1_3"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;b&gt;&lt;a name="FAQ1_3"&gt;&lt;b&gt; some recent major computer system failures caused by software  bugs?&lt;/b&gt;&lt;/a&gt;&lt;/b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;It was reported in August 2009 that a large suburban school district  introduced  a new computer system that was 'plagued with bugs' and resulted in many  students starting  the school year without schedules or with incorrect schedules, and many  problems with grades.  Upset students and parents started a social networking site for sharing  complaints.&lt;/li&gt; &lt;li&gt; In February of 2009 users of a major search engine site were  prevented  from clicking through to sites listed in search results for part of a  day.  It was reportedly due to software that did not effectively handle a  mistakenly-placed  "/" in an internal ancillary reference file that was frequently updated  for use by the  search engine. Users, instead of being able to click thru to listed  sites, were  instead redirected to an intermediary site which, as a result of the  suddenly  enormous load, was rendered unusable.&lt;/li&gt; &lt;li&gt; A large health insurance company was reportedly banned by  regulators from  selling certain types of insurance policies in January of 2009 due to  ongoing computer  system problems that resulted in  denial of coverage for needed  medications  and mistaken overcharging or cancelation of benefits.  The regulatory  agency was  quoted as stating that the problems were posing "a serious threat to the  health  and safety" of beneficiaries.&lt;/li&gt;  &lt;li&gt; A news report in January 2009 indicated that a major IT and  management  consulting company was still battling years of problems in implementing  its own  internal accounting systems, including a 2005 implementation that  reportedly "was attempted without adequate testing".&lt;/li&gt; &lt;li&gt; In August of 2008 it was reported that more than 600 U.S. airline  flights were significantly delayed due to a software glitch in the U.S. FAA air  traffic  control system.  The problem was claimed to be a 'packet switch' that  'failed  due to a database mismatch', and occurred in the part of the system that  handles  required flight plans.  &lt;/li&gt;  &lt;li&gt; Software system problems at a large health insurance company in August  2008 were  the cause of a privacy breach of personal health information for several  hundred thousand  customers, according to news reports.  It was claimed that the problem  was  due to software that 'was not comprehensively tested'. &lt;/li&gt;  &lt;li&gt; A major clothing retailer was reportedly hit with significant software  and  system problems when attempting to upgrade their online retailing  systems  in June 2008.  Problems remained ongoing for some time.  When the  company made  their public quarterly financial report, the software and system  problems were   claimed as the cause of the poor financial results.&lt;/li&gt;  &lt;li&gt;  Software problems in the automated baggage sorting system of a major  airport  in February 2008 prevented thousands of passengers from checking baggage for their flights.  It was reported that the breakdown occurred during a   software upgrade, despite pre-testing of the software.  The system  continued  to have problems in subsequent months.&lt;/li&gt;  &lt;li&gt; News reports in December of 2007 indicated that significant software  problems were continuing to occur in a new ERP payroll system for a  large urban school system.  It was believed that more than one third of  employees had received incorrect paychecks at various times since the  new system went live the preceding January, resulting in overpayments  of $53 million, as well as underpayments.  An employees' union brought  a lawsuit against the school system, the cost of the ERP system was  expected to rise by 40%, and the non-payroll part of the ERP system was  delayed.  Inadequate testing reportedly contributed to the problems. The school system was still working on cleaning up the aftermath  of the problems in December 2009, going so far as to bring lawsuits  against  some employees to get them to return overpayments.   &lt;/li&gt;  &lt;li&gt; In November of 2007 a regional government reportedly brought a  multi-million dollar lawsuit against a software services vendor,  claiming that the vendor 'minimized quality' in delivering  software for a large criminal justice information system and the  system did not meet requirements.  The vendor also sued its  subcontractor on the project.&lt;/li&gt;  &lt;li&gt; In June of 2007 news reports claimed that software flaws in a popular  online stock-picking contest could be used to gain an unfair advantage  in pursuit of the game's large cash prizes.  Outside investigators  were called in and in July the contest winner was announced.  Reportedly   the winner had previously been in 6th place, indicating that the  top 5 contestants may have been disqualified.&lt;/li&gt;   &lt;li&gt; A software problem contributed to a rail car fire in a major underground  metro  system in April of 2007 according to newspaper accounts. The software  reportedly failed to perform as expected in detecting and preventing  excess  power usage in equipment on new passenger rail cars, resulting in  overheating and  fire in the rail car, and evacuation and shutdown of part of the system.&lt;/li&gt;     &lt;li&gt; Tens of thousands of medical devices were recalled in March of 2007 to  correct a software bug.  According to news reports, the software would  not   reliably indicate when available power to the device was too low.&lt;/li&gt;        &lt;li&gt;  A September 2006 news report indicated problems with software  utilized in a state government's primary election, resulting in  periodic unexpected rebooting of voter checkin machines, which  were separate from the electronic voting machines, and resulted  in confusion and delays at voting sites.  The problem was reportedly  due to insufficient testing.&lt;/li&gt;    &lt;li&gt;  In August of 2006 a U.S. government student loan service erroneously made public the personal data of as many as 21,000 borrowers   on it's web site, due to a software error.  The bug was fixed and the  government department subsequently offered to arrange for free  credit monitoring services for those affected.&lt;/li&gt;  &lt;li&gt;  A software error reportedly resulted in overbilling of up to several  thousand dollars to each of 11,000 customers of a major  telecommunications  company in June of 2006. It was reported that the software bug was fixed   within days, but that correcting the billing errors would take much  longer.&lt;/li&gt;  &lt;li&gt;  News reports in May of 2006 described a multi-million dollar lawsuit  settlement paid by a healthcare software vendor to one of its customers.    It was reported that the customer claimed there were problems with the  software they had contracted for, including poor integration of software   modules, and problems that resulted in missing or incorrect data used by   medical personnel.&lt;/li&gt;  &lt;li&gt;  In early 2006 problems in a government's financial monitoring software  resulted in incorrect election candidate financial reports being made  available to the public. The government's election finance  reporting web site had to be shut down until the software was repaired.&lt;/li&gt;   &lt;li&gt; Trading on a major Asian stock exchange was brought to a halt   in November of 2005, reportedly due to an error in a system  software upgrade.  The problem was rectified and  trading resumed later the same day.&lt;/li&gt;  &lt;li&gt; A May 2005 newspaper article reported that a major hybrid car  manufacturer had to install a software fix on 20,000 vehicles  due to problems with invalid engine warning lights and  occasional stalling.   In the article, an automotive software  specialist indicated that the automobile industry spends $2 billion  to $3 billion per year fixing software problems.&lt;/li&gt;  &lt;li&gt; Media reports in January of 2005 detailed severe problems with  a $170 million high-profile U.S. government IT systems project. Software   testing was one of the five major problem areas according to a  report of the commission reviewing the project.  In March of 2005  it was decided to scrap the entire project.&lt;/li&gt;  &lt;li&gt;  In July 2004 newspapers reported that a new government  welfare management system in Canada costing several hundred million  dollars was unable to handle a simple benefits rate increase after  being put into live operation. Reportedly the original contract  allowed for only 6 weeks of acceptance testing and the system was  never tested for its ability to handle a rate increase.&lt;/li&gt;  &lt;li&gt;  Millions of bank accounts were impacted by errors due to installation  of inadequately tested software code in the transaction processing  system of a major North American bank, according to mid-2004 news  reports.  Articles about the incident stated that it took two weeks  to fix all the resulting errors, that additional problems resulted  when the incident drew a large number of e-mail phishing attacks  against the bank's customers, and that the total cost of the incident could exceed $100 million.&lt;/li&gt;  &lt;li&gt; A bug in site management software utilized by companies  with a significant percentage of worldwide web traffic was  reported in May of 2004.  The bug resulted in performance problems for many of the sites simultaneously and required  disabling of the software until the bug was fixed.&lt;/li&gt;  &lt;li&gt; According to news reports in April of 2004, a software bug was  determined to be a major contributor to the 2003 Northeast  blackout, the worst power system failure in North American  history.  The failure involved loss of electrical power to  50 million customers, forced shutdown of 100 power plants,  and economic losses estimated at $6 billion. The bug was reportedly in one utility company's vendor-supplied power  monitoring and management system, which was unable to correctly  handle and report on an unusual confluence of initially localized  events.  The error was found and corrected after examining  millions of lines of code. &lt;/li&gt;  &lt;li&gt;  In early 2004, news reports revealed the intentional use  of a software bug as a counter-espionage tool. According to the  report, in the early 1980's one nation surreptitiously allowed a hostile   nation's espionage service to steal a version of sophisticated  industrial software that had intentionally-added flaws.  This  eventually resulted in major industrial disruption in the country  that used the stolen flawed software.&lt;/li&gt;  &lt;li&gt; A major U.S. retailer was reportedly hit with a large government fine  in October of 2003 due to web site errors that enabled customers to  view one anothers' online orders.&lt;/li&gt;  &lt;li&gt; News stories in the fall of 2003 stated that a manufacturing company  recalled all their transportation products in order to fix a software  problem causing instability in certain circumstances.  The company found   and reported the bug itself and initiated the recall procedure in which  a software upgrade fixed the problems.&lt;/li&gt;  &lt;li&gt; In August of 2003 a U.S. court ruled that a lawsuit against a large  online brokerage company could proceed; the lawsuit reportedly  involved claims that the company was not fixing system problems  that sometimes resulted in failed stock trades, based on the  experiences of 4 plaintiffs during an 8-month period.  A previous  lower  court's ruling that "...six miscues out of more than  400 trades does not indicate negligence." was invalidated. &lt;/li&gt;  &lt;li&gt;  In April of 2003 it was announced that a large student loan company  in the U.S. made a software error in calculating the monthly  payments on 800,000 loans.  Although borrowers were to be notified  of an increase in their required payments, the company will still  reportedly lose $8 million in interest.  The error was uncovered  when borrowers began reporting inconsistencies in their bills.&lt;/li&gt;    &lt;li&gt;  News reports in February of 2003 revealed that the U.S. Treasury  Department mailed 50,000 Social Security checks without any beneficiary  names.  A spokesperson indicated that the missing names were due  to an error in a software change.  Replacement checks were  subsequently mailed out with the problem corrected, and recipients  were then able to cash their Social Security checks.&lt;/li&gt;   &lt;li&gt;  In March of 2002 it was reported that software bugs in Britain's  national tax system resulted in more than 100,000 erroneous tax  overcharges.  The problem was partly attributed to the difficulty of  testing the integration of multiple systems.&lt;/li&gt;   &lt;li&gt;  A newspaper columnist reported in July 2001 that a serious flaw was  found in off-the-shelf software that had long been used in systems  for tracking certain U.S. nuclear materials. The same software had been  recently donated to another country to be used in tracking their own  nuclear materials, and it was not until scientists in that country  discovered the problem, and shared the information, that U.S.  officials became aware of the problems.&lt;/li&gt;   &lt;li&gt;  According to newspaper stories in mid-2001, a major systems  development contractor was fired and sued over problems with a  large retirement plan management system.  According to the reports,  the client claimed that system deliveries were late, the software had  excessive defects, and it caused other systems to crash. &lt;/li&gt;  &lt;li&gt;  In January of 2001 newspapers reported that a major European  railroad was hit by the aftereffects of the Y2K bug.  The company found that many of their newer trains would not run due to their  inability to recognize the date '31/12/2000'; the trains were  started by altering the control system's date settings.&lt;/li&gt;  &lt;li&gt;  News reports in September of 2000 told of a software vendor  settling a lawsuit with a large mortgage lender; the vendor had reportedly delivered an online mortgage processing system that  did not meet specifications, was delivered late, and didn't work.&lt;/li&gt;  &lt;li&gt; In early 2000, major problems were reported with a new computer  system in a large suburban U.S. public school district with 100,000+  students; problems included 10,000 erroneous report cards and students  left stranded by failed class registration systems; the district's  CIO was fired. The school district decided to reinstate it's original  25-year old system for at least a year until the bugs were worked out  of the new system by the software vendors.&lt;/li&gt;  &lt;li&gt; A review board concluded that the NASA Mars Polar Lander failed in  December 1999 due to software problems that caused improper functioning  of retro rockets utilized by the Lander as it entered the Martian  atmosphere.&lt;/li&gt;  &lt;li&gt; In October of 1999 the $125 million NASA Mars Climate  Orbiter spacecraft was believed to be lost in space due  to a simple data conversion error.  It was determined that  spacecraft software used certain data in English units that should have been in metric units.  Among other tasks, the orbiter  was to serve as a communications relay for the Mars  Polar Lander mission, which failed for unknown reasons  in December 1999.  Several investigating panels were  convened to determine the process failures that allowed the error to go undetected.&lt;/li&gt;  &lt;li&gt; Bugs in software supporting a large commercial high-speed data  network affected 70,000 business customers over a period of 8 days  in August of 1999. Among those affected was the electronic trading  system of the largest U.S. futures exchange, which was shut down  for most of a week as a result of the outages.&lt;/li&gt;  &lt;li&gt; In April of 1999 a software bug caused the failure of a $1.2 billion U.S. military satellite launch, the costliest unmanned accident in the history of Cape Canaveral launches.  The failure was the latest in a string of launch failures, triggering a complete military and industry review of U.S. space launch programs, including software integration and testing processes. Congressional oversight hearings were requested.&lt;/li&gt;  &lt;li&gt;  A small town in Illinois in the U.S. received an unusually large monthly   electric bill of $7 million in March of 1999.  This was about 700  times larger than its normal bill.  It turned out to be due to  bugs in new software that had been purchased by the local power  company to deal with Y2K software issues.&lt;/li&gt;  &lt;li&gt; In early 1999 a major computer game company recalled all copies  of a popular new product due to software problems. The company  made a public apology for releasing a product before it was ready.&lt;/li&gt;  &lt;li&gt; The computer system of a major online U.S. stock trading service failed during trading hours several times over a period of days in  February of 1999 according to nationwide news reports. The problem  was reportedly due to bugs in a software upgrade intended to  speed online trade confirmations. &lt;/li&gt;  &lt;li&gt;In April of 1998 a major U.S. data communications network failed for 24 hours, crippling a large part of some U.S. credit card transaction authorization systems as well as other large U.S. bank, retail, and government data systems.  The cause was eventually traced to a software bug.&lt;/li&gt;  &lt;li&gt;January 1998 news reports told of software problems at a major U.S. telecommunications company that resulted in no charges for long distance calls for a month for 400,000 customers. The problem went undetected until customers called up with questions about their bills.&lt;/li&gt;  &lt;li&gt;In November of 1997 the stock of a major health industry company dropped 60% due to reports of failures in computer billing systems, problems with a large database conversion, and inadequate software testing.  It was reported that more than $100,000,000 in receivables had to be written off and that multi-million dollar fines were levied on the company by government agencies.&lt;/li&gt;  &lt;li&gt;A retail store chain filed suit in August of 1997 against a transaction processing system vendor (not a credit card company) due to the software's inability to handle credit cards with year 2000 expiration dates.&lt;/li&gt;  &lt;li&gt;In August of 1997 one of the leading consumer credit reporting companies reportedly shut down their new public web site after less than two days of operation due to software problems. The new site allowed web site visitors instant access, for a small fee, to their personal credit reports.  However, a number of initial users ended up viewing each others' reports instead of their own, resulting in irate customers and nationwide publicity.  The problem was attributed to "...unexpectedly high demand from consumers and faulty software that routed the files to the wrong computers."&lt;/li&gt;  &lt;li&gt;In November of 1996, newspapers reported that software bugs caused the 411 telephone information system of one of the U.S. RBOC's to fail for most of a day. Most of the 2000 operators had to search through phone books instead of using their 13,000,000-listing database. The bugs were introduced by new software modifications and the problem software had been installed on both the production and backup systems. A spokesman for the software vendor reportedly stated that 'It had nothing to do with the integrity of the software. It was human error.'&lt;/li&gt;  &lt;li&gt;  On June 4 1996 the first flight of the  European Space Agency's new Ariane 5 rocket failed shortly after launching, resulting in an estimated uninsured loss of a half billion dollars. It was reportedly due to the lack  of exception handling of a floating-point error in a  conversion from a 64-bit integer to a 16-bit signed integer.&lt;/li&gt;  &lt;li&gt;Software bugs caused the bank accounts of 823 customers of a major U.S. bank to be credited with $924,844,208.32 each in May of 1996, according to newspaper reports.  The American Bankers Association claimed it was the largest such error in banking history.  A bank spokesman said the programming errors were corrected and all funds were recovered.&lt;/li&gt;  &lt;li&gt; In August 1991 the concrete base structure for a North Sea oil  platform imploded and sank off the coast of Norway, reportedly due to errors in  initially-used design software.  The enormous structure, on hitting the  seabed,  reportedly was detected as a magnitude 3.0 seismic event and resulted in  a loss  of $700 million. The base structure was eventually redesigned and the  full  platform was completed two years later, and was still in use as of 2008.&lt;/li&gt; &lt;li&gt; On January 1 1984 all computers produced by one of the  leading minicomputer makers of the time reportedly failed worldwide.   The cause was claimed to be a leap year bug in a date handling function  utilized in deletion of temporary operating system files. Technicians throughout the world worked for several days to clear up the problem. It was also reported that the same bug affected many of the same  computers four years later. &lt;/li&gt;   &lt;li&gt;Software bugs in a Soviet early-warning monitoring system nearly brought on nuclear war in 1983, according to news reports in early 1999. The software was supposed to filter out false missile detections caused by Soviet satellites picking up sunlight reflections off cloud-tops, but failed to do so. Disaster was  averted when a Soviet commander, based on what he said was a '...funny feeling in my gut', decided the apparent missile attack was a false alarm. The filtering software code was rewritten.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-5071819162754835208?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/gbS_gyoW6JU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/5071819162754835208/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=5071819162754835208" title="6 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/5071819162754835208?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/5071819162754835208?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/gbS_gyoW6JU/importance-of-software-testing.html" title="Importance of Software Testing" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>6</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/04/importance-of-software-testing.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0YERnczcSp7ImA9WxBaGEs.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-4770534147979276485</id><published>2010-03-29T16:38:00.002+05:30</published><updated>2010-03-29T16:41:47.989+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-29T16:41:47.989+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term=".NET" /><category scheme="http://www.blogger.com/atom/ns#" term="Threads" /><title>.NET Threads</title><content type="html">&lt;a href="http://msdn.microsoft.com/en-us/library/1c9txz50.aspx"&gt;http://msdn.microsoft.com/en-us/library/1c9txz50.aspx&lt;/a&gt; - Threads best practices&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/8xs8549b.aspx"&gt;http://msdn.microsoft.com/en-us/library/8xs8549b.aspx&lt;/a&gt; - BackGroundWorker&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-4770534147979276485?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/uXKOlhE6s2M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/4770534147979276485/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=4770534147979276485" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/4770534147979276485?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/4770534147979276485?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/uXKOlhE6s2M/net-threads.html" title=".NET Threads" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/03/net-threads.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQCQ3k-fCp7ImA9WxBaE04.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-3703868737324446393</id><published>2010-03-23T14:04:00.000+05:30</published><updated>2010-03-23T14:06:02.754+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-23T14:06:02.754+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term=".NET" /><title>.NET Programming Standards and Naming Conventions</title><content type="html">&lt;div&gt;&lt;br /&gt;&lt;/div&gt; &lt;a href="http://www.irritatedvowel.com/Programming/Standards.aspx"&gt;http://www.irritatedvowel.com/Programming/Standards.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-3703868737324446393?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/Ck36EJMvn0o" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/3703868737324446393/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=3703868737324446393" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/3703868737324446393?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/3703868737324446393?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/Ck36EJMvn0o/net-programming-standards-and-naming.html" title=".NET Programming Standards and Naming Conventions" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/03/net-programming-standards-and-naming.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0IFQ3c5eSp7ImA9WxBbEk8.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-508252876700744811</id><published>2010-03-10T19:08:00.003+05:30</published><updated>2010-03-10T19:28:32.921+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-10T19:28:32.921+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="cricket" /><category scheme="http://www.blogger.com/atom/ns#" term="funny" /><category scheme="http://www.blogger.com/atom/ns#" term="Sanath Jayasuriya" /><title>Garu Emathituma ! ගරු ඈමතිතුමා</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_HLypqwRjk7c/S5ehEGdG-vI/AAAAAAAAANk/zDnnSovJ2VY/s1600-h/26138_110037239010685_100000132289576_244214_3234972_n.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 232px;" src="http://4.bp.blogspot.com/_HLypqwRjk7c/S5ehEGdG-vI/AAAAAAAAANk/zDnnSovJ2VY/s320/26138_110037239010685_100000132289576_244214_3234972_n.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5446999366152157938" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;In my opinion Sanath is hitting below the belt by deciding continue to play cricket while contesting in the election. This move is really disastrous to Sri Lankan Cricket. First time in the history, game loved by all Sri Lankans is politicized. In my opinion is Sanath is the most selfish cricketer ever to play for Sri Lanka. After playing 20 years why can't he make up his mind to retire gracefully and give chances to talented youngsters. Adding salt to the wound he is not consistence at all these days. If he played for an another country he must have dropped long time ago. Knowing Sanath I think he will try to play in the 2015 world cup too. He will be an automatic choice for the team cause he has political backing. Selectors will be powerless.  Sad state of affairs. Who is to be blamed.? Sanath or politics.?&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-508252876700744811?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/cYjI8BSYktw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/508252876700744811/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=508252876700744811" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/508252876700744811?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/508252876700744811?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/cYjI8BSYktw/garu-emathituma.html" title="Garu Emathituma ! ගරු ඈමතිතුමා" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_HLypqwRjk7c/S5ehEGdG-vI/AAAAAAAAANk/zDnnSovJ2VY/s72-c/26138_110037239010685_100000132289576_244214_3234972_n.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/03/garu-emathituma.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMMQnw7eSp7ImA9WxBbEUQ.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-5241563121411287117</id><published>2010-03-10T07:08:00.002+05:30</published><updated>2010-03-10T10:51:23.201+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-10T10:51:23.201+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="mobile applications" /><category scheme="http://www.blogger.com/atom/ns#" term="snaptu" /><category scheme="http://www.blogger.com/atom/ns#" term="ebuddy" /><title>Two Cool Mobile Applications</title><content type="html">&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;Two of the most  impressive mobile applications I am using these days. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;1.) &lt;a href="http://www.ebuddy.com/"&gt;ebuddy&lt;/a&gt;  -  It enables chat messaging from phone. Currently it has support for FACEBOOK , GTalk, MSN, Yahoo, MSN, AIM, MYSPACE, ICQ&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2.) &lt;a href="http://www.snaptu.com/"&gt;snaptu&lt;/a&gt; - They say snaptu is the fastest facebook mobile application. In additions to facebook it has support for twitter, Picasa, Cricinfo and many more.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-5241563121411287117?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/YQmHySSTTHQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/5241563121411287117/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=5241563121411287117" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/5241563121411287117?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/5241563121411287117?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/YQmHySSTTHQ/two-cool-mobile-applications.html" title="Two Cool Mobile Applications" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/03/two-cool-mobile-applications.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYFQ3o4fip7ImA9WxBVEkU.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-7239692910634046742</id><published>2010-02-16T07:53:00.002+05:30</published><updated>2010-02-16T08:11:52.436+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-16T08:11:52.436+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="chm file reading problems" /><category scheme="http://www.blogger.com/atom/ns#" term="chm files" /><title>A Problem with CHM files in Windows Vista</title><content type="html">&lt;div style="text-align: justify;"&gt;I recently got a ADO.NET ebook in a chm format. I placed it in a folder structure C#/ADO. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;When I opened the chm file content was not loaded. Problem was placing the chm file under a folder which contains a ''#' as in 'C#'. Actually chm files are called Microsoft Compiled HTML Help files and a proprietary format for online help files.  It is related to html files. Problem is Since # means something specific in HTML helpviewer get confused. So don't place chm files in a folder where it's name contains '#'.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:sans-serif;font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; line-height: 19px;"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-7239692910634046742?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/66CF9VV5XQA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/7239692910634046742/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=7239692910634046742" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/7239692910634046742?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/7239692910634046742?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/66CF9VV5XQA/problem-with-chm-files-in-windows-vista.html" title="A Problem with CHM files in Windows Vista" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2010/02/problem-with-chm-files-in-windows-vista.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QNRXY4eip7ImA9WxNWGEU.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-2047030987885437876</id><published>2009-10-18T21:16:00.002+05:30</published><updated>2009-10-18T21:26:34.832+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-18T21:26:34.832+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="IQ" /><title>IQ Test</title><content type="html">I tested my IQ level using http://www.free-iqtest.net. I got 140 and according to them I am gifted.    :)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.free-iqtest.net/" title="Free IQ Test"&gt;&lt;img src="http://www.free-iqtest.net/images/badges2/l140.gif" alt="Free IQ Test" border="0" height="100" width="200" /&gt;&lt;/a&gt;&lt;br /&gt;Free-IQTest.net - &lt;a title="Free IQ Test" href="http://www.free-iqtest.net/"&gt;Free IQ Test&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-2047030987885437876?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/-Fjo2GgVRC4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/2047030987885437876/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=2047030987885437876" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/2047030987885437876?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/2047030987885437876?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/-Fjo2GgVRC4/iq-test.html" title="IQ Test" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2009/10/iq-test.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkECQHozcCp7ImA9WxNXE08.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-4293687679289701315</id><published>2009-09-30T19:50:00.002+05:30</published><updated>2009-09-30T19:54:21.488+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-30T19:54:21.488+05:30</app:edited><title>How to pronounce Sri Lankan names</title><content type="html">I picked this from cricinfo. One fan has emailed during the NZ vs Sri Lanak match.&lt;br /&gt;&lt;br /&gt;Bonggo: "Many commentators have pointed out the difficulty in pronouncing the names of the Sri Lankan XI in the past. It is not that difficult if you can read English. Let me tell you the best way of pronouncing some of those difficult name those names and trust me they come very close to the original:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 51); font-weight: bold;"&gt;Jayasuriya: Jaya Sue Rear &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 51); font-weight: bold;"&gt;Kandamby: Can Dumb Bee&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 51); font-weight: bold;"&gt;Malinga: Maa Linger&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 51); font-weight: bold;"&gt;Kaluvitharana: Kalu With Are Runner&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-4293687679289701315?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/O4gCAsUuH8I" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/4293687679289701315/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=4293687679289701315" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/4293687679289701315?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/4293687679289701315?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/O4gCAsUuH8I/how-to-pronounce-sri-lankan-names.html" title="How to pronounce Sri Lankan names" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2009/09/how-to-pronounce-sri-lankan-names.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkYAQns-eyp7ImA9WxNQF08.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-7237481160351604508</id><published>2009-09-23T20:58:00.003+05:30</published><updated>2009-09-23T21:05:43.553+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-23T21:05:43.553+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Silly stories" /><title>Software Engineer</title><content type="html">&lt;div style="text-align: justify;"&gt;There was a software engineer, who used to develop programs on his Pentium machine, sitting under a tree on the banks of a river. He used to earn his bread by selling those programs in the Sunday market. One day, while he was working, his machine tumbled off the table and fell in the river. Encouraged by his childhood story of the lumberjack and axe, he started praying for the river Goddess. River Goddess wanted to test him and so appeared only after one month of rigorous prayers. The engineer told her that he lost his computer in the river. As usual, the Goddess wanted to test his honesty. She picked ! up a match box and asked "Is this your computer ?". Disappointed by the Goddess' lack of computer awareness, "No" replied the engineer. Then she picked up a pocket sized calculator and asked if that was it. Annoyed by this, the engineer said "No, not at all" and also thought of educating the Goddess about computers. Then she picked up his Pentium and asked if it was his. The engineer, left with no option, sighed and said "Yes !" and took his machine. The Goddess was happy for his honesty and was about to give the previous objects also to him. But even before she could make the offer, the engineer asked the Goddess," Don't you know that you should show me some better computers, before bringing up my own ?" Goddess, apparently angered at this, replied, "I know that, you stupid donkey! The first two things I showed you were Millennium and Trillennium, the latest computers from IBM" and disappeared. The Pentium followed her.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;  Moral of the story: If you don't know much, better keep quiet.&lt;br /&gt;&lt;br /&gt;Thanks to Shabbir - &lt;a href="http://www.mbaguys.net/t48/"&gt;www.mbaguys.net&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-7237481160351604508?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/enEVJwZAa8g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/7237481160351604508/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=7237481160351604508" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/7237481160351604508?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/7237481160351604508?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/enEVJwZAa8g/software-engineer.html" title="Software Engineer" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2009/09/software-engineer.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUAHSH87eyp7ImA9WxNQE04.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-3658205222903496979</id><published>2009-09-19T08:14:00.003+05:30</published><updated>2009-09-19T10:52:19.103+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-19T10:52:19.103+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Sri Lanka cricket" /><title>ICC Champions Trophy 2009 - Selection Blunder</title><content type="html">Sri Lankan squad for the champion trophy is as follows.&lt;br /&gt;&lt;br /&gt;Kumar Sangakkara (captain), Muttiah Muralitharan, Sanath Jayasuriya, Tillekeratne Dilshan, Mahela Jayawardena, Upul Tharanga, Thilan Samaraweera, Chamara Kapegedera, Angelo Mathews, Nuwan Kulasekera, Thilan Thushara Mirando, Thilina Kandamby, Dhammika Prasad, Ajantha Mendis, Lasith Malinga.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Including Upul Tharanga in the squad is a real blunder. Surely Sanath Jayasuriya and Dilshan will open the innings in every match. So why include Tharanga. He will just be a passenger in this  tour. If one of the opening batter gets injured Someone like Mahela or Kumar can open. Tharanga's place should have gone to a fast bowler, Maharoof or Dilhara Fernado. Lasith Malinga was also not doing great in ODI matches recently. Maharoof has the batting ability too. He did well against touring Pakistan A team.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-3658205222903496979?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/etEUxeB67jU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/3658205222903496979/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=3658205222903496979" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/3658205222903496979?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/3658205222903496979?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/etEUxeB67jU/icc-champions-trophy-2009-selection.html" title="ICC Champions Trophy 2009 - Selection Blunder" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>4</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2009/09/icc-champions-trophy-2009-selection.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0AGQns4fip7ImA9WxNRGE4.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-7028046988284574482</id><published>2009-09-13T14:55:00.003+05:30</published><updated>2009-09-13T15:25:23.536+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-13T15:25:23.536+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Sri Lanka cricket" /><category scheme="http://www.blogger.com/atom/ns#" term="Batting order" /><category scheme="http://www.blogger.com/atom/ns#" term="Kumar Sanagakkara" /><category scheme="http://www.blogger.com/atom/ns#" term="Mahela Jayawardana" /><title>What is Mahela doing at No 3.</title><content type="html">&lt;div style="text-align: justify;"&gt;&lt;a href="http://www.cricinfo.com/slvpak2009/content/player/49289.html"&gt;Mahela Jayawardana&lt;/a&gt; is a really good stroke maker of Sri Lanka. He is fluent on both sides of the wickets and has the ability of playing innovative shots like Dilshan. Last Pakistan series when Jayasuriya was absence due to an illness he opened the innings and scored a brilliant &lt;a href="http://www.cricinfo.com/slvpak2009/engine/match/403372.html"&gt;century&lt;/a&gt;. Ever since that innings Sri Lanka team has decided to send Mahela at No 3 instead of &lt;a href="http://www.cricinfo.com/slvpak2009/content/player/50710.html"&gt;Kumar&lt;/a&gt; to play agrresively and take advantage of the power plays. Since that century Mahela has failed in at No 3. Sri Lanka has  two very attacking batmen at the top that is &lt;a href="http://www.cricinfo.com/compaq/content/player/49209.html"&gt;Sanath&lt;/a&gt; and &lt;a href="http://www.cricinfo.com/compaq/content/current/player/48472.html"&gt;Dilshan&lt;/a&gt;. Because of that No 3 should play solidly and try to consolidate. Kumar is the ideal man to do that. Since Sri Lanka has an inexperience middle order Mahela should come at no 4 and try to build a good innigs. It's a real waste  to lose Mahela's wicket trying to play aggresively in power plays. In 2006 also Mahela was moved to no 3. He played brilliantly in England but then ran into a lean patch. During the world cup Kumar was again reinserted at No 3. In my opinion Mahela's feet movement was not the best early on in his innigs. So safe option is to send Kumar at no 3 and Mahela at No 4. Hope Sri Lankan team manegement will realize this very soon.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-7028046988284574482?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/yvH0o3oKs_Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/7028046988284574482/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=7028046988284574482" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/7028046988284574482?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/7028046988284574482?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/yvH0o3oKs_Q/what-is-mahela-doing-at-no-3.html" title="What is Mahela doing at No 3." /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2009/09/what-is-mahela-doing-at-no-3.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYCRXwzfCp7ImA9WxNSE0k.&quot;"><id>tag:blogger.com,1999:blog-1267672026707653763.post-2022085342104763069</id><published>2009-08-27T09:36:00.001+05:30</published><updated>2009-08-27T09:39:24.284+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-27T09:39:24.284+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="cricket" /><category scheme="http://www.blogger.com/atom/ns#" term="wayamba" /><category scheme="http://www.blogger.com/atom/ns#" term="CHAMPIONS LEAGUE TWENTY/20 INDIA" /><title>SRI LANKA TEAM - WAYAMBA</title><content type="html">&lt;p&gt;CHAMPIONS LEAGUE TWENTY/20 INDIA (8th TO 23rd OCTOBER 2009)&lt;/p&gt; &lt;p&gt;1.  Jehan Mubarak               (Captain)&lt;br /&gt;2.  Jeevantha Kulathunga    (Vice Captain )&lt;br /&gt;3.  Mahela Jayawardena&lt;br /&gt;4.  Mahela Udawatta&lt;br /&gt;5.  Thisara Perera&lt;br /&gt;6.  Sameera Soysa&lt;br /&gt;7.  Ajantha Mendis&lt;br /&gt;8.  Shalika Karunanayake&lt;br /&gt;9.  Isuru Udana&lt;br /&gt;10. Ishara Amarasinghe&lt;br /&gt;11. Chanaka Welagedara&lt;br /&gt;12. Rangana Hearath&lt;br /&gt;13. M.F. Maharoof&lt;br /&gt;14. Kaushlya Lokuarchchi&lt;br /&gt;15. M.  Vandort &lt;/p&gt; &lt;p&gt;Team Officials:&lt;/p&gt; &lt;p&gt;1. Asoka Pathirana                    -           Manager&lt;br /&gt;2. Ranjith Madurusinghe          -           Provincial Representative&lt;br /&gt;3. Vinothen John                        -           Selector &lt;/p&gt; &lt;p&gt;Supports Staff:&lt;/p&gt; &lt;p&gt;1. Manoj Abeywickrama             -           Coach&lt;br /&gt;2. Uditha Bandara                       -           Physiotherapist&lt;br /&gt;3. D.S. N.Premaratne                  -           Masseur&lt;br /&gt;4. Sanath Jayasundara                -           Computer Analyst &lt;/p&gt; &lt;p&gt;Lanka De Silva                        -           Asst. Coach / Fielding Coach &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1267672026707653763-2022085342104763069?l=nadunh.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/NadunsWeblog/~4/clmHN0Y5Ix4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nadunh.blogspot.com/feeds/2022085342104763069/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=1267672026707653763&amp;postID=2022085342104763069" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/2022085342104763069?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1267672026707653763/posts/default/2022085342104763069?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NadunsWeblog/~3/clmHN0Y5Ix4/sri-lanka-team-wayamba.html" title="SRI LANKA TEAM - WAYAMBA" /><author><name>Nadun Herath</name><uri>http://www.blogger.com/profile/17165120693130686126</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="25" height="32" src="http://bp0.blogger.com/_HLypqwRjk7c/SD4Vw-fZe3I/AAAAAAAAAAU/0pbnJ8PZ70c/S220/Image030.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nadunh.blogspot.com/2009/08/sri-lanka-team-wayamba.html</feedburner:origLink></entry></feed>

