<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1590365593679599766</id><updated>2012-02-07T05:46:29.491-08:00</updated><category term='Me'/><category term='C# goals context of Design'/><category term='WSO2 Con'/><category term='MPJ'/><category term='Travel Green Ceylon'/><category term='phones'/><category term='Game'/><category term='marketting'/><category term='Flex 4'/><category term='Windows'/><category term='My projects'/><category term='Apple'/><category term='Prolog'/><category term='medical'/><category term='DOM'/><category term='Sinhala'/><category term='WSO2 Carbon'/><category term='what is &quot;ROR&quot;???'/><category term='PuTTY'/><category term='Networking'/><category term='Basic Examples in Ruby Class'/><category term='Flex'/><category term='Apache'/><category term='Future Computers'/><category term='IE6 until 2014'/><category term='c++'/><category term='Java Script'/><category term='Bill Gates: Reckless Driving'/><category term='RESTful WS'/><category term='facebook'/><category term='Industrial Application in Mobile Databases'/><category term='Blu-ray Player'/><category term='java'/><category term='Socket Programing'/><category term='New Sinhala Songs'/><category term='Wii'/><category term='Adobe AIR'/><category term='Windows PowerShell'/><category term='Window Phone Application'/><category term='IIS'/><category term='Tutorials in Expression Blend 3'/><category term='USB'/><category term='c'/><category term='Champs Networking Month'/><category term='Local Storages'/><category term='Amazon Mechanical Turk'/><category term='iPhone'/><category term='MAVEN'/><category term='Yahoo User Interface'/><category term='New Google’s search engine'/><category term='j2ME'/><category term='iPhone Web Apps'/><category term='Banking System'/><category term='Debug'/><category term='Microsoft student champ community - Sri Lanka'/><category term='Hacking'/><category term='project'/><category term='Movies'/><category term='Bing Maps Silverlight Control'/><category term='Blog'/><category term='google'/><category term='.NET'/><category term='Microsoft'/><category term='MVC'/><category term='Windows 8'/><category term='Tweeter'/><category term='String processing'/><category term='XMLHttpRequest'/><category term='IT'/><category term='tomcat'/><category term='LibraryThing'/><category term='WSO2'/><category term='HTML 5'/><category term='Windows Presentation Foundation'/><category term='C Programming'/><category term='Silverlight Beginners Tutorials'/><category term='E-Sri Lanka Mail'/><category term='Two Threads and one Nail in OOP'/><category term='ROR'/><category term='Hello world in Ruby'/><category term='How to setup Ruby in Linux'/><category term='Ruby on Rails'/><category term='AdSense Search'/><category term='Android'/><category term='learning'/><category term='My Brother&apos;s Work'/><category term='සිංහල'/><category term='Windows 7'/><category term='Internet'/><category term='php'/><category term='Rich Internet Applications'/><category term='web Applications'/><category term='reCAPTCHA'/><category term='jQuery Mobile'/><category term='Horde'/><category term='Structured for SRS'/><category term='Imagine cup 2010'/><category term='Web Service'/><category term='Web video to Plasma TV'/><category term='netbeans'/><category term='Install RoR to Vista'/><category term='C#'/><category term='SOAP'/><category term='Linux'/><category term='ANT'/><category term='twitter'/><category term='Design Pattern'/><category term='Apache Shindig'/><category term='Ubuntu'/><category term='Fourth finger'/><category term='Microsoft student champ community - Sri Lanka  - 02/2009'/><category term='Axis2'/><category term='Windows Communication Foundation (WCF)'/><title type='text'>Madhuka</title><subtitle type='html'>C#, WPF, Expression Blend 3, Silver light, Flex 4, C++ tutorial, vedio downloads, madhuka, java, ruby on  rails, J2me, Google news, It new enws, microsoft, windows 7</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default?start-index=101&amp;max-results=100'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>296</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-377373926257730130</id><published>2011-12-26T22:25:00.000-08:00</published><updated>2012-01-08T22:26:00.331-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web Applications'/><category scheme='http://www.blogger.com/atom/ns#' term='MVC'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Service'/><category scheme='http://www.blogger.com/atom/ns#' term='Java Script'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>JavaScriptMVC (JMVC)</title><content type='html'>&lt;p&gt;It is client-side JavaScript toolset. It is broken down into four sub-projects:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;jQueryMX is a collection of useful jQuery libraries that provide the missing functionality necessary to implement and organize large-scale jQuery applications.&lt;/li&gt;    &lt;li&gt;StealJS is a &amp;quot;code manager&amp;quot; that keeps your code beautiful and organized while developing and FAST for users in production.&amp;#160; dependency management, code cleaning, building, etc.&lt;/li&gt;    &lt;li&gt;FuncUnit is a web application testing framework &lt;/li&gt;    &lt;li&gt;DocumentJS provides powerful JavaScript documenting capabilities. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3"&gt;Installing JavaScriptMVC&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Download the latest JavaScriptMVC. &lt;a href="http://javascriptmvc.com/builder.html"&gt;http://javascriptmvc.com/builder.html&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Unzip the folder on your file system or web server.    &lt;br /&gt;eg: I am hosting in WAMP so I am unzip it in www fodler &lt;/p&gt;  &lt;p&gt;We can Verifing the install by going to dirtectory by cmd and type js. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-5cZ1WvwRsLg/TwqIcDq3gRI/AAAAAAAACG0/_RK2bC1naww/s1600-h/image%25255B3%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-mDPrnZDZcD0/TwqIc3saRdI/AAAAAAAACG8/dC9Y796cG9w/image_thumb%25255B1%25255D.png?imgmax=800" width="455" height="186" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This starts the Rhino JS engine. Type quit() to exit. now enjoy the js with mvc. &lt;img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://lh3.ggpht.com/-el_dUNiYeWY/TwqIdyXZIII/AAAAAAAACHA/aGwhkDCTVD4/wlEmoticon-smile%25255B2%25255D.png?imgmax=800" /&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-377373926257730130?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/377373926257730130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=377373926257730130' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/377373926257730130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/377373926257730130'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/12/javascriptmvc-jmvc.html' title='JavaScriptMVC (JMVC)'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/-mDPrnZDZcD0/TwqIc3saRdI/AAAAAAAACG8/dC9Y796cG9w/s72-c/image_thumb%25255B1%25255D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-8260237952791263972</id><published>2011-12-19T21:58:00.000-08:00</published><updated>2012-01-08T21:59:00.607-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web Applications'/><category scheme='http://www.blogger.com/atom/ns#' term='WSO2'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache Shindig'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title type='text'>Shindig on Windows7 with Tomcat</title><content type='html'>&lt;p&gt;Download Apache Shindig from &lt;a href="http://shindig.apache.org/download/index.html#Download_Apache_Shindig" target="_blank"&gt;Here (war)&lt;/a&gt;, &lt;/p&gt;  &lt;p&gt;Or you can build it from trunk, I will write on it later post.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;System Requirements&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Java version: JDK 1.5 or above &lt;/li&gt;    &lt;li&gt;As in topic we need Apache Tomcat to do this tutorial.If you do not have tomcat, Download it from &lt;a href="http://tomcat.apache.org/download-70.cgi" target="_blank"&gt;here&lt;/a&gt; (32-bit/64-bit Windows Service Installer), just install it just by clicking the downloaded setup. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Go to the &amp;lt;Tomcat Directory&amp;gt;\webapps\ folder and delet folder called ROOT&lt;/p&gt;  &lt;p&gt;Past the Downloaded ' shindig-server-2.0.0.war' to 'webapps' Directory and rename it as 'ROOT.war'&lt;/p&gt;  &lt;p&gt;Start the tomcat as admin, It will create the ROOT folder and here it look like&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/--yQSSC6UPIA/TsuM_ifKYWI/AAAAAAAACBQ/UGQmjRVpOdk/s1600-h/image%25255B3%25255D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-1sdy8sne2e0/TsuNAwpFZdI/AAAAAAAACBY/L8PRxo9acpM/image_thumb%25255B1%25255D.png?imgmax=800" width="472" height="380" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Go to &lt;a href="http://localhost:8080/samplecontainer/samplecontainer.html"&gt;http://localhost:8080/samplecontainer/samplecontainer.html&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Here it look like. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-2Bw6hMoQrI4/TsuNB54nMgI/AAAAAAAACBg/Z6vGdTrfGc0/s1600-h/image%25255B8%25255D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-6O7bU73j13Y/TsuNDNrNb9I/AAAAAAAACBo/WNAEStr11pA/image_thumb%25255B4%25255D.png?imgmax=800" width="449" height="466" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Let is do more in here, later&amp;#160; and it is the &lt;strong&gt;Hello World to “Apache&lt;/strong&gt; &lt;strong&gt;Shindig”&lt;/strong&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-8260237952791263972?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/8260237952791263972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=8260237952791263972' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8260237952791263972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8260237952791263972'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/11/download-apache-shindig-from-here-war.html' title='Shindig on Windows7 with Tomcat'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/-1sdy8sne2e0/TsuNAwpFZdI/AAAAAAAACBY/L8PRxo9acpM/s72-c/image_thumb%25255B1%25255D.png?imgmax=800' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-7885184084104287993</id><published>2011-12-13T00:39:00.000-08:00</published><updated>2012-01-08T21:35:05.414-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='WSO2 Carbon'/><category scheme='http://www.blogger.com/atom/ns#' term='WSO2'/><category scheme='http://www.blogger.com/atom/ns#' term='Debug'/><title type='text'>Do Patch to Carbon product and Debug it</title><content type='html'>&lt;p&gt;When you get patch file or if you create patch file for carbon. You need to apply it to the product and debug it. In this post i will explain it &lt;/p&gt;  &lt;p&gt;copy the jar file to the&amp;#160; &amp;lt;CARBON_SERVER&amp;gt;/repository/components/patches/patch&amp;lt;patchID&amp;gt; and run the carbon server with applying the patches to server by below command &lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;wso2server.bat -DapplyPatches&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-7WuYsYKhDyI/Twp8SqiRrhI/AAAAAAAACFE/uegj2Xr0lBA/s1600-h/image3.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/-SdPH8tMgxSM/Twp8T581OOI/AAAAAAAACFM/vnIZdvEpOhs/image_thumb4.png?imgmax=800" width="244" height="116" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;After the patch applied you can see that patch0000 is created now you can enjoy the patch. But If you want to see the patch is work well as developer. you need have debug&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3"&gt;&lt;u&gt;Do debug now&lt;/u&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;wso2server.bat --debug 8888&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-kXSRr7_k6jE/Twp8VBrYs7I/AAAAAAAACFU/tbxcCk1Dqyc/s1600-h/image8.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-Mz4WH6QykcI/Twp8WmYxWMI/AAAAAAAACFc/vD-MNpUNcZo/image_thumb12.png?imgmax=800" width="569" height="75" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now configure debug congfiguration as below&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-FSA-H-rWjy4/Twp8YmfhZBI/AAAAAAAACFk/lRwQTjh3qFw/s1600-h/image13.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-T8SMtLBFmko/Twp8ZjuNYXI/AAAAAAAACFs/oBr0HPYiG7k/image_thumb18.png?imgmax=800" width="580" height="441" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;After that go to debug mode of UI &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-3hOOWCiZxiM/Twp8amVPcFI/AAAAAAAACF0/Uv0oIZp7W0s/s1600-h/image_thumb1215.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image_thumb12[1]" border="0" alt="image_thumb12[1]" src="http://lh6.ggpht.com/-sWx6tlh2Chw/Twp8bidxpfI/AAAAAAAACF8/jjg5N12g4Yo/image_thumb121_thumb1.png?imgmax=800" width="244" height="147" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Then run debug by click debug button in debug mode and go to the place for set break point and duble click on there&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-EX9roHqJFb4/Twp8ctqYMJI/AAAAAAAACGE/PKvOx-qbkYc/s1600-h/image19.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/-UZalKFJiYDc/Twp8eOSsJ-I/AAAAAAAACGM/u49BZLl8r5M/image_thumb25.png?imgmax=800" width="533" height="134" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;we can find the list of break points &lt;/p&gt;  &lt;p&gt;Press F6 we can move to next and we can inspect the values &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-gCU3SZQu0Iw/Twp8e0iWpUI/AAAAAAAACGU/7ADQLADI7CA/s1600-h/image24.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-8N0z1UtJOLs/Twp8frvZUzI/AAAAAAAACGY/erAoerxarmE/image_thumb32.png?imgmax=800" width="331" height="37" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-T8clhRFCPNs/Twp8gfW8a6I/AAAAAAAACGk/ZZTPiYow0y8/s1600-h/image33.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/--nDsUW_t3bs/Twp8h8XW_kI/AAAAAAAACGs/gwFD9rBWoYg/image_thumb43.png?imgmax=800" width="354" height="199" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Work complete&lt;/p&gt;  &lt;p&gt;make sure you check all the place you did change by debug level.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-7885184084104287993?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/7885184084104287993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=7885184084104287993' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7885184084104287993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7885184084104287993'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/12/do-patch-to-carbon-product-and-debug-it.html' title='Do Patch to Carbon product and Debug it'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/-SdPH8tMgxSM/Twp8T581OOI/AAAAAAAACFM/vnIZdvEpOhs/s72-c/image_thumb4.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-3761350136200027884</id><published>2011-12-05T02:33:00.000-08:00</published><updated>2012-01-04T09:48:39.651-08:00</updated><title type='text'>Better to know JPDA</title><content type='html'>&lt;p&gt;&lt;font size="3"&gt;&lt;strong&gt;&lt;u&gt;Introduction to Java Platform Debugger Architecture (JPDA)&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;JPDA is a multitiered architecture    &lt;br /&gt;It is consists of two interfaces the &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;JVM Tool Interface (JVMTI) &lt;/li&gt;    &lt;li&gt;Java Debug Interface (JDI)      &lt;br /&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;in this architecture we can find&amp;#160; Java Debug Wire Protocol and it is for tie back-end and front-end.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;The JVM Tool Interface (JVMTI) is a low-level native interface that defines the services a Java virtual machine provides for tools such as debuggers and profilers. JVM TI was introduced in J2SE 5.0 and replaced JVMDI and JVMPI.&lt;/p&gt;  &lt;p&gt;The Java Debug Wire Protocol (JDWP) describes the format of debugging information and requests transferred between the process being debugged and a debugger front end, which implements the JDI, such as Eclipse, JBuilder,&amp;#160; IntelliJ IDEA, etc. (The program being debugged is often called the debuggee in Sun's JPDA specification)&lt;/p&gt;  &lt;p&gt;Terms in JPDA specification&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;A transport defines how applications access and transmit data between the front end and back end &lt;/li&gt;    &lt;li&gt;A connector is a JDI abstraction used to establish a connection between a debugger application and a target VM. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;font size="3"&gt;&lt;u&gt;&lt;strong&gt;Let is try some real work&lt;/strong&gt;&lt;/u&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Open eclipse and create java project&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-pIAigWgBiy8/TwSP-m3Bz8I/AAAAAAAACDU/jCGSLLLWuQQ/image41.png?imgmax=800"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/-wghARPhWt9g/TwSQB4T_0lI/AAAAAAAACDc/6izHYqHFpS8/image_thumb5.png?imgmax=800" width="244" height="217" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;and java class (Here is my class)&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;class Test {      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public static void main(String str[]) {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; int x=10;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.out.println(&amp;quot;X =&amp;quot;+x);&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;#160;&amp;#160;&amp;#160; }      &lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#000000"&gt;Then make jar file from this (Right Click and go to Export and select file type as jar)&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-bMXIcKcQOuw/TwSQD3uUmvI/AAAAAAAACDk/Ilq1r4Ialzc/image8.png?imgmax=800"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/-tzvwl-IX6tM/TwSQGfhp_lI/AAAAAAAACDs/PJPpzvae938/image_thumb7.png?imgmax=800" width="421" height="312" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#333333"&gt;Now we copy that jar file to remote machine or same machine, and start that jar with debug mode. The simple Java application can act as a debug server or client. Depending on the configuration, you can choose either Socket Attach or Socket Listen connection type in Eclipse. &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Target VM acts as debug server&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;In here we invokes the Java application on the remote side, acts as a debug server, and listens for a socket connection on port 8000. The target VM will be suspended until the debugger connects.&lt;/p&gt;  &lt;p&gt;C:\Users\Madhuka\workspace\jars&amp;gt;&lt;font color="#0000ff"&gt;java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=&amp;quot;8000&amp;quot; -jar MyTest.jar      &lt;br /&gt;Listening for transport dt_socket at address: 8000&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-HAo8-_plbfk/TwSQJWtUZUI/AAAAAAAACD0/-jDYOchfdjw/image17.png?imgmax=800"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-xAwwMNyzisE/TwSQOirBzWI/AAAAAAAACD8/AhVD6ZQ2L_w/image_thumb19.png?imgmax=800" width="568" height="98" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Start Eclipse using the remote launch configuration and specify the target VM address of the remote application. by click    &lt;br /&gt;Run &amp;gt; Debug Configurations&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-QSDnPCfwqGc/TwSQQpn7njI/AAAAAAAACEE/dx_FrKcyQeI/image121.png?imgmax=800"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-loN47PRp5qk/TwSQSrCbAnI/AAAAAAAACEM/7v6IJEob660/image_thumb12.png?imgmax=800" width="244" height="228" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Double-click the Remote Java Application in the Eclipse menu. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-1AOZE-ml7No/TwSQhquz9NI/AAAAAAAACEU/J-e6qX0Xm1E/image.png?imgmax=800"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-UO1zCTzk7cU/TwSQuwhSedI/AAAAAAAACEc/-jUg3Mc8jtw/image_thumb.png?imgmax=800" width="587" height="308" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Set break points and Click the Eclipse Debug button&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-PAcyVHFIFwM/TwSQ3Rv7DuI/AAAAAAAACEk/SpjJlCbUJEo/image29.png?imgmax=800"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-UA6ua2dFTUY/TwSQ5v3u6tI/AAAAAAAACEs/uVAd_uZZnL8/image_thumb33.png?imgmax=800" width="541" height="249" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;do some code change and see that debug is work well&lt;/p&gt;  &lt;p&gt;System.out.println(&amp;quot;X =&amp;quot;+ ++x); do the change in debugger mode. We can debug it still we did not save the change &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-isQROLtTirQ/TwSQ60eoYGI/AAAAAAAACE0/3D7CyY1V0CM/image34.png?imgmax=800"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-3POxefNyaFM/TwSQ8-UY37I/AAAAAAAACE8/toS76E5zyNE/image_thumb40.png?imgmax=800" width="465" height="204" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Next post I will explain debugging real world product with patching. &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-3761350136200027884?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/3761350136200027884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=3761350136200027884' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/3761350136200027884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/3761350136200027884'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/12/better-to-know-jpda.html' title='Better to know JPDA'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/-wghARPhWt9g/TwSQB4T_0lI/AAAAAAAACDc/6izHYqHFpS8/s72-c/image_thumb5.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-1947544289650408765</id><published>2011-11-30T10:28:00.001-08:00</published><updated>2011-11-30T10:28:19.816-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PuTTY'/><category scheme='http://www.blogger.com/atom/ns#' term='WSO2'/><title type='text'>PuTTy</title><content type='html'>&lt;p&gt;I just need know new things so I join a team called Build. To do some release for my company. So I just got email like this with some file&lt;/p&gt;  &lt;p&gt;and command&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;“ssh -p2233 -i /home/jhona/Downloads/Mykey/id1_rsa &lt;/strong&gt;&lt;a href="mailto:home1@run1.usa1.max.net"&gt;&lt;strong&gt;home1@run1.usa1.max.net&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;”&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;We know this to used in Ubuntu. But How to do this windows. That is why we need PuTTY &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3"&gt;What is PuTTY?&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;PuTTY is an SSH and telnet client, developed originally by Simon Tatham for the Windows platform. PuTTY is open source software that is available with source code. Name of PuTTY remind me a&amp;#160; one thong 'tty', 'tty' is the name for a terminal in the Unix tradition. PuTTY's development dates back to early 1999&lt;/p&gt;  &lt;p&gt;Features of PuTTY better to know   &lt;br /&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;The storing of hosts and preferences&lt;/li&gt;    &lt;li&gt;Control over the SSH encryption &lt;/li&gt;    &lt;li&gt;Command-line SCP(Secure copy) and SFTP (Secret File Transfer Protocol, Secure FTP) clients&lt;/li&gt;    &lt;li&gt;IPv6 support&lt;/li&gt;    &lt;li&gt;Self-contained executable&lt;/li&gt;    &lt;li&gt;Public-key authentication&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;   &lt;br /&gt;Dowload it from &lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank"&gt;Here&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;In here You find Many Applications better to know    &lt;br /&gt;&lt;font size="3"&gt;&lt;strong&gt;which App for what?&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;PuTTY&lt;/strong&gt; - the Telnet and SSH client itself;    &lt;br /&gt;PSCP - an SCP client, i.e. command-line secure file copy;    &lt;br /&gt;PSFTP - an SFTP client, i.e. general file transfer sessions much like FTP;    &lt;br /&gt;PuTTYtel - a Telnet-only client;    &lt;br /&gt;Plink - a command-line interface to the PuTTY back ends;    &lt;br /&gt;&lt;strong&gt;Pageant&lt;/strong&gt; - an SSH authentication agent for PuTTY, PSCP and Plink;    &lt;br /&gt;&lt;strong&gt;PuTTYgen&lt;/strong&gt; - an RSA and DSA key generation utility;    &lt;br /&gt;pterm - a standalone terminal emulator.&lt;/p&gt;  &lt;p&gt;Let is connect to remote sever buy using putty&lt;/p&gt;  &lt;p&gt;By above ssh command I am get the details to add putty&lt;/p&gt;  &lt;p&gt;here is in picture mode for better understanding&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-3OrPhKtTv5E/TtZ1mxtmX0I/AAAAAAAACCw/CAJSEmFKNJk/s1600-h/ss%25255B6%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="ss" border="0" alt="ss" src="http://lh6.ggpht.com/-uTB4TmSU6HU/TtZ1q1dg7sI/AAAAAAAACC4/fvguIx9rlOs/ss_thumb%25255B9%25255D.png?imgmax=800" width="471" height="555" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I got rsa key.By it I can get ppk file from &lt;strong&gt;PuTTYgen&lt;/strong&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/--ndQPxekqww/TtZ1s8uK_fI/AAAAAAAACDA/D1o1VR3MIos/s1600-h/image%25255B4%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-bURuQx-Q8dU/TtZ1wfdY2qI/AAAAAAAACDI/DHhxWjtvJZs/image_thumb%25255B2%25255D.png?imgmax=800" width="466" height="448" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-1947544289650408765?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/1947544289650408765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=1947544289650408765' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/1947544289650408765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/1947544289650408765'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/11/putty.html' title='PuTTy'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/-uTB4TmSU6HU/TtZ1q1dg7sI/AAAAAAAACC4/fvguIx9rlOs/s72-c/ss_thumb%25255B9%25255D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-8951827653224397808</id><published>2011-11-30T08:12:00.001-08:00</published><updated>2011-11-30T08:12:42.085-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WSO2'/><category scheme='http://www.blogger.com/atom/ns#' term='MVC'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery Mobile'/><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><category scheme='http://www.blogger.com/atom/ns#' term='Java Script'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>Lightweight Model, View, and Controller</title><content type='html'>&lt;p&gt;Lightweight Model, View, and Controller from scratch using JQuery. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-RCvI6mSz90c/TtZV3URdX0I/AAAAAAAACCg/kEeejg9RqCc/s1600-h/image%25255B4%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/-7NVISns0BPc/TtZV94B1n3I/AAAAAAAACCo/RRKMxkt75hw/image_thumb%25255B5%25255D.png?imgmax=800" width="555" height="119" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;A simple data flow diagram for this View &amp;lt;=&amp;gt; Controller &amp;lt;=&amp;gt; Model &amp;lt;=&amp;gt; Local Storage&amp;lt;=&amp;gt;AJAX&amp;lt;=&amp;gt; WS&amp;lt;=&amp;gt; Server&amp;#160; &lt;/p&gt;  &lt;p&gt;The View will only communicate with the Controller, where all of our application logic resides. The Controller will tell the Model when and what data to load. The Model will keep data and manage the AJAX calls to server.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;&lt;strong&gt;View&lt;/strong&gt; should only do one thing, and that’s display data and never application logic in here. &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;What do we need to have in here?      &lt;br /&gt;- Showing data to the user,       &lt;br /&gt;- Capturing user feedback eg: mouse clicks, text input, drag and drops, touch&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;   &lt;br /&gt;&lt;strong&gt;The Model&lt;/strong&gt; is in charge of data and loading data from the server via AJAX and caching that data locally to minimize duplicate AJAX calls for improve the performaces of the site. There are no any UI code and application logic at all.     &lt;br /&gt;(We keep track of who is listening to the Model, so we can notify them when important things happen in the Model.)&lt;/p&gt;  &lt;p&gt;methods of the Model can be called by the Controller for to request data.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Controller &lt;/strong&gt;will have application logics.&lt;strong&gt;&amp;#160;&lt;/strong&gt;View and Model will notify listeners when something happened and Controller is that listener. Simple it is Controller’s job to listen to all of the events going on in the Model and the View.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;Why is that listener functions is important?     &lt;br /&gt;These listener functions make it incredibly simple keep the view 100% in sync with the state of the Model.&lt;/p&gt;  &lt;p&gt;Lets do some coding in action in Later Post&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-8951827653224397808?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/8951827653224397808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=8951827653224397808' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8951827653224397808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8951827653224397808'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/11/lightweight-model-view-and-controller.html' title='Lightweight Model, View, and Controller'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/-7NVISns0BPc/TtZV94B1n3I/AAAAAAAACCo/RRKMxkt75hw/s72-c/image_thumb%25255B5%25255D.png?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-3487983588146097193</id><published>2011-11-28T03:05:00.001-08:00</published><updated>2011-11-28T03:05:42.671-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web Applications'/><category scheme='http://www.blogger.com/atom/ns#' term='WSO2'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>Second MVC for HTML5</title><content type='html'>&lt;p&gt;I am not going to write something that on MVC that we learn in and out but I will point out some new look to it. Few days ago, I used to see a diagram in office where I was seating down something like this.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-AFR3FpOYGlM/TtNq4jdbXpI/AAAAAAAACBw/qd6GKuoXWbk/s1600-h/photo%2525201%25255B4%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="photo 1" border="0" alt="photo 1" src="http://lh5.ggpht.com/-QSBpu_dRdUM/TtNq6BsdgJI/AAAAAAAACB4/nHLwwg-VlhI/photo%2525201_thumb%25255B5%25255D.jpg?imgmax=800" width="540" height="294" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I just see some lightweight Model, View, and Controller in java script. Normally we do some MVC for server side some way it look like this.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-a-1iVtaJbQU/TtNq646BjnI/AAAAAAAACCA/C2l6ttVI54w/s1600-h/model-view-controller-01%25255B3%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="model-view-controller-01" border="0" alt="model-view-controller-01" src="http://lh3.ggpht.com/-hIH3jnnbaV0/TtNq8hNlHZI/AAAAAAAACCI/wq1qP2IDyFY/model-view-controller-01_thumb%25255B1%25255D.png?imgmax=800" width="243" height="291" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;But in first above diagram it has second MVC. I have work in some local storage and offline email system in HTML5 some months ago. How would it look like if we added HTML5 for this. &lt;/p&gt;  &lt;p&gt;It will be full HTML5 web. This will give more capabilities for in actions in HTML5 such offline running, local storages and with it this will boost the speed. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-lhZQxOUUb9Q/TtNq_abCmTI/AAAAAAAACCQ/JEyqGyYu1PI/s1600-h/photo%2525201%25255B9%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="photo 1" border="0" alt="photo 1" src="http://lh3.ggpht.com/-j3z5RCT8cVE/TtNrBB1DQVI/AAAAAAAACCY/ON__LlkqWoY/photo%2525201_thumb%25255B11%25255D.jpg?imgmax=800" width="536" height="257" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-3487983588146097193?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/3487983588146097193/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=3487983588146097193' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/3487983588146097193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/3487983588146097193'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/11/second-mvc-for-html5.html' title='Second MVC for HTML5'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/-QSBpu_dRdUM/TtNq6BsdgJI/AAAAAAAACB4/nHLwwg-VlhI/s72-c/photo%2525201_thumb%25255B5%25255D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-8091116955069430208</id><published>2011-11-15T04:17:00.001-08:00</published><updated>2011-11-15T20:47:11.430-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web Applications'/><category scheme='http://www.blogger.com/atom/ns#' term='WSO2'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery Mobile'/><category scheme='http://www.blogger.com/atom/ns#' term='iPhone'/><category scheme='http://www.blogger.com/atom/ns#' term='iPhone Web Apps'/><category scheme='http://www.blogger.com/atom/ns#' term='Java Script'/><title type='text'>TouchEvents for Smart Phones and Tabs</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;I am doing some html5 web application today, So I was looking touch events for web page. Here I will blog what I learnt on it.&lt;br /&gt;Today lot of people browser internet mainly from smart phones and tabs.They usually have a capacitive touch-sensitive screen to capture interactions made with the user's fingers.Touching&amp;nbsp; enable sophisticated applications, web developers need a way to handle these events not only the touch now it implies multi-touch even.&lt;br /&gt;Apple introduced their touch events &lt;a href="http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/TouchEventClassReference/TouchEvent/TouchEvent.html#//apple_ref/doc/uid/TP40009358" target="_blank"&gt;API in iOS 2.0&lt;/a&gt;, &lt;a href="http://dvcs.w3.org/hg/webevents/raw-file/tip/touchevents.html" target="_blank"&gt;Touch Events version 2 by W3C&lt;/a&gt; and Android has been catching up to this now.&lt;br /&gt;I will point out useful techniques to develop touch-enabled applications.&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;TouchEvent&lt;/span&gt;&lt;/b&gt; objects that can occur are:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;u&gt;touchstart &lt;/u&gt;&lt;/b&gt;      &lt;br /&gt;Sent when a finger for a given event touches the surface.      &lt;/li&gt;&lt;li&gt;touchmove     &lt;br /&gt;Sent when a given event moves on the surface.      &lt;/li&gt;&lt;li&gt;touchend     &lt;br /&gt;Sent when a given event lifts from the surface.      &lt;/li&gt;&lt;li&gt;touchcancel     &lt;br /&gt;Sent when the system cancels tracking for the touch.&lt;/li&gt;&lt;/ul&gt;How to make it in action&lt;br /&gt;lets do simple html page and test this touch events&lt;br /&gt;&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;!&lt;/span&gt;&lt;span class="html"&gt;DOCTYPE&lt;/span&gt; &lt;span class="attr"&gt;html&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;html&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;head&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;    &lt;br /&gt;        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;title&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;Touch Me&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;title&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;meta&lt;/span&gt; &lt;span class="attr"&gt;name&lt;/span&gt;&lt;span class="kwrd"&gt;="viewport"&lt;/span&gt; &lt;span class="attr"&gt;content&lt;/span&gt;&lt;span class="kwrd"&gt;="width=device-width, user-scalable=no"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;script&lt;/span&gt; &lt;span class="attr"&gt;type&lt;/span&gt;&lt;span class="kwrd"&gt;="text/javascript"&lt;/span&gt; &lt;span class="attr"&gt;src&lt;/span&gt;&lt;span class="kwrd"&gt;="magictouch.js"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;script&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;head&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;body&lt;/span&gt; &lt;span class="attr"&gt;onload&lt;/span&gt;&lt;span class="kwrd"&gt;="myTuchOn()"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;canvas&lt;/span&gt; &lt;span class="attr"&gt;id&lt;/span&gt;&lt;span class="kwrd"&gt;="canvas"&lt;/span&gt; &lt;span class="attr"&gt;width&lt;/span&gt;&lt;span class="kwrd"&gt;="300"&lt;/span&gt; &lt;span class="attr"&gt;height&lt;/span&gt;&lt;span class="kwrd"&gt;="300"&lt;/span&gt; &lt;span class="attr"&gt;style&lt;/span&gt;&lt;span class="kwrd"&gt;="top:0px; left:0px; width: 300px; height: 300px;"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;canvas&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;object&lt;/span&gt; &lt;span class="attr"&gt;id&lt;/span&gt;&lt;span class="kwrd"&gt;="tuio"&lt;/span&gt; &lt;span class="attr"&gt;type&lt;/span&gt;&lt;span class="kwrd"&gt;="application/x-tuio"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;            Plugin was not found&lt;br /&gt;        &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;object&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;body&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;html&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt; font-size: small;&lt;br /&gt; color: black;&lt;br /&gt; font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt; background-color: #ffffff;&lt;br /&gt; /*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt; background-color: #f4f4f4;&lt;br /&gt; width: 100%;&lt;br /&gt; margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;now write function myTuchOn() with this event listeners&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharpcode" style="color: blue;"&gt;canvas = document.getElementById(&lt;span class="str"&gt;'canvas'&lt;/span&gt;);&lt;br /&gt;&lt;br /&gt;                canvas.addEventListener(&lt;span class="str"&gt;'touchend'&lt;/span&gt;, &lt;span class="kwrd"&gt;function&lt;/span&gt;() {&lt;br /&gt;                    console.log(&lt;span class="str"&gt;'touch end'&lt;/span&gt;);&lt;br /&gt;                });&lt;br /&gt;&lt;br /&gt;                canvas.addEventListener(&lt;span class="str"&gt;'touchmove'&lt;/span&gt;, &lt;span class="kwrd"&gt;function&lt;/span&gt;(&lt;span class="kwrd"&gt;event&lt;/span&gt;) {&lt;br /&gt;                    console.log(&lt;span class="str"&gt;'touch move'&lt;/span&gt;);&lt;br /&gt;                    &lt;span class="kwrd"&gt;event&lt;/span&gt;.preventDefault();&lt;br /&gt;                });&lt;br /&gt;&lt;br /&gt;                canvas.addEventListener(&lt;span class="str"&gt;'touchstart'&lt;/span&gt;, &lt;span class="kwrd"&gt;function&lt;/span&gt;(&lt;span class="kwrd"&gt;event&lt;/span&gt;) {&lt;br /&gt;                    console.log(&lt;span class="str"&gt;'touch start'&lt;/span&gt;);                &lt;br /&gt;&lt;br /&gt;                });&lt;/pre&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt; font-size: small;&lt;br /&gt; color: black;&lt;br /&gt; font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt; background-color: #ffffff;&lt;br /&gt; /*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt; background-color: #f4f4f4;&lt;br /&gt; width: 100%;&lt;br /&gt; margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;Each touch event includes three lists of touches:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;touches: a list of all fingers currently on the screen in array of touch&lt;/li&gt;&lt;li&gt;targetTouches: a list of fingers on the current DOM element.&lt;/li&gt;&lt;li&gt;changedTouches: a list of fingers involved in the current event.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;I will update 'touchstart' event &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;pre class="csharpcode"&gt; &lt;span style="color: blue;"&gt;canvas.addEventListener(&lt;/span&gt;&lt;span class="str" style="color: blue;"&gt;'touchstart'&lt;/span&gt;&lt;span style="color: blue;"&gt;, &lt;/span&gt;&lt;span class="kwrd" style="color: blue;"&gt;function&lt;/span&gt;&lt;span style="color: blue;"&gt;(&lt;/span&gt;&lt;span class="kwrd" style="color: blue;"&gt;event&lt;/span&gt;&lt;span style="color: blue;"&gt;) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;                    console.log(&lt;/span&gt;&lt;span class="str" style="color: blue;"&gt;'touch start'&lt;/span&gt;&lt;span style="color: blue;"&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;                    myTouches = &lt;/span&gt;&lt;span class="kwrd" style="color: blue;"&gt;event&lt;/span&gt;&lt;span style="color: blue;"&gt;.touches;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;                    console.log(&lt;/span&gt;&lt;span class="str" style="color: blue;"&gt;'touch count'&lt;/span&gt;&lt;span style="color: blue;"&gt; + myTouches.length);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;                    &lt;/span&gt;&lt;span class="kwrd" style="color: blue;"&gt;var&lt;/span&gt;&lt;span style="color: blue;"&gt; i, len = myTouches.length;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;                    &lt;/span&gt;&lt;span class="kwrd" style="color: blue;"&gt;for&lt;/span&gt;&lt;span style="color: blue;"&gt;( i = 0; i &amp;lt; len; i++) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;                        &lt;/span&gt;&lt;span class="kwrd" style="color: blue;"&gt;var&lt;/span&gt;&lt;span style="color: blue;"&gt; touch = myTouches[i];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;                        &lt;/span&gt;&lt;span class="kwrd" style="color: blue;"&gt;var&lt;/span&gt;&lt;span style="color: blue;"&gt; px = touch.pageX;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;                        &lt;/span&gt;&lt;span class="kwrd" style="color: blue;"&gt;var&lt;/span&gt;&lt;span style="color: blue;"&gt; py = touch.pageY;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;                        console.log(&lt;/span&gt;&lt;span class="str" style="color: blue;"&gt;'Touch at '&lt;/span&gt;&lt;span style="color: blue;"&gt; + px + &lt;/span&gt;&lt;span class="str" style="color: blue;"&gt;','&lt;/span&gt;&lt;span style="color: blue;"&gt; + py);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;                    }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;                });&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt; font-size: small;&lt;br /&gt; color: black;&lt;br /&gt; font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt; background-color: #ffffff;&lt;br /&gt; /*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt; background-color: #f4f4f4;&lt;br /&gt; width: 100%;&lt;br /&gt; margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Lets run it and check is it work?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://lh3.ggpht.com/-CaDQ1rZ4xKI/TsJYQwDFaoI/AAAAAAAACAQ/cltdTVjilfY/s1600-h/photo%2525201%25255B3%25255D.png"&gt;&lt;img alt="photo 1" border="0" height="360" src="http://lh6.ggpht.com/-Zeufgv75Ero/TsJYRpq92kI/AAAAAAAACAY/22bScZlu8og/photo%2525201_thumb%25255B1%25255D.png?imgmax=800" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="photo 1" width="241" /&gt;&lt;/a&gt;&lt;a href="http://lh4.ggpht.com/-IMohLj5zZiM/TsJYSpYz0OI/AAAAAAAACAg/5AJpf6D1src/s1600-h/photo%2525202%25255B3%25255D.png"&gt;&lt;img alt="photo 2" border="0" height="358" src="http://lh5.ggpht.com/-o7ri9b6JsVM/TsJYTi6gi-I/AAAAAAAACAo/Ea0jOOx3TpQ/photo%2525202_thumb%25255B1%25255D.png?imgmax=800" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="photo 2" width="240" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Here I will touch web page with one &lt;i&gt;finger &lt;/i&gt;and move and get it up.&lt;/div&gt;&lt;br /&gt;&lt;a href="http://lh5.ggpht.com/-3gXkHMwNLGw/TsJYUd5Rn4I/AAAAAAAACAw/UwBSFKCNp5Y/s1600-h/photo%2525203%25255B3%25255D.png"&gt;&lt;img alt="photo 3" border="0" height="354" src="http://lh4.ggpht.com/-WcGViaN-IlY/TsJYVpa3Q3I/AAAAAAAACA4/JMpoCc9sWaE/photo%2525203_thumb%25255B1%25255D.png?imgmax=800" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="photo 3" width="237" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here I touch with 3 &lt;i&gt;fingers and still it work fine.. &lt;img alt="Smile" class="wlEmoticon wlEmoticon-smile" src="http://lh3.ggpht.com/-05pD-scRnBg/TsJYWVcnXwI/AAAAAAAACBA/xaEVEV-1738/wlEmoticon-smile%25255B2%25255D.png?imgmax=800" style="border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none;" /&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Be read for more&lt;/i&gt;&lt;br /&gt;These lists consist of objects that contain touch information such as identifier, target, coordinates and rotationAngle&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-8091116955069430208?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/8091116955069430208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=8091116955069430208' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8091116955069430208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8091116955069430208'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/11/i-am-doing-some-html5-web-application.html' title='TouchEvents for Smart Phones and Tabs'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/-Zeufgv75Ero/TsJYRpq92kI/AAAAAAAACAY/22bScZlu8og/s72-c/photo%2525201_thumb%25255B1%25255D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-3970750931391193736</id><published>2011-11-13T20:54:00.001-08:00</published><updated>2011-11-13T20:54:58.246-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jQuery Mobile'/><category scheme='http://www.blogger.com/atom/ns#' term='iPhone Web Apps'/><category scheme='http://www.blogger.com/atom/ns#' term='phones'/><category scheme='http://www.blogger.com/atom/ns#' term='Java Script'/><title type='text'>Multi-paging from jQuery Mobile</title><content type='html'>&lt;p&gt;If you did not try hello world with jQuery mobile here is link to make hello world to it, &lt;a href="http://madhukaudantha.blogspot.com/2011/10/hello-world-with-jquery-mobile.html"&gt;Hello world with jQuery Mobile&lt;/a&gt;. Here I will post on multi paging and transition in pages with page transition events in this post.&lt;/p&gt;  &lt;p&gt;Basic that we need to know    &lt;br /&gt;A single HTML document can contain multiple 'pages'     &lt;br /&gt;Divs with a data-role of &amp;quot;page&amp;quot; with&amp;#160; unique ID     &lt;br /&gt;When we click a link, the framework will look for an internal 'page' with the ID and transit to it.(Because of this it's not possible to an anchoring.)&lt;/p&gt;    &lt;pre class="csharpcode"&gt;&amp;#160;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper"&gt;&lt;br /&gt;  &lt;div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet"&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum1"&gt;   1:&lt;/span&gt; &amp;lt;div data-role=&lt;span style="color: #006080"&gt;&amp;quot;page&amp;quot;&lt;/span&gt; id=&lt;span style="color: #006080"&gt;&amp;quot;homePage&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum2"&gt;   2:&lt;/span&gt;     &amp;lt;div data-role=&lt;span style="color: #006080"&gt;&amp;quot;header&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum3"&gt;   3:&lt;/span&gt;         &amp;lt;h1&amp;gt;Home Page&amp;lt;/h1&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum4"&gt;   4:&lt;/span&gt;     &amp;lt;/div&amp;gt;&amp;lt;!-- /header --&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum5"&gt;   5:&lt;/span&gt;     &amp;lt;div data-role=&lt;span style="color: #006080"&gt;&amp;quot;content&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum6"&gt;   6:&lt;/span&gt;         &amp;lt;p&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum7"&gt;   7:&lt;/span&gt;             &amp;lt;a href=&lt;span style="color: #006080"&gt;&amp;quot;#aboutPage&amp;quot;&lt;/span&gt;&amp;gt;About Page&amp;lt;/a&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum8"&gt;   8:&lt;/span&gt;         &amp;lt;/p&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum9"&gt;   9:&lt;/span&gt;     &amp;lt;/div&amp;gt;&amp;lt;!-- /content --&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum10"&gt;  10:&lt;/span&gt; &amp;lt;/div&amp;gt;&amp;lt;!-- /page --&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum11"&gt;  11:&lt;/span&gt; &amp;lt;!-- Start of second page --&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum12"&gt;  12:&lt;/span&gt; &amp;lt;div data-role=&lt;span style="color: #006080"&gt;&amp;quot;page&amp;quot;&lt;/span&gt; id=&lt;span style="color: #006080"&gt;&amp;quot;aboutPage&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum13"&gt;  13:&lt;/span&gt;     &amp;lt;div data-role=&lt;span style="color: #006080"&gt;&amp;quot;header&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum14"&gt;  14:&lt;/span&gt;         &amp;lt;h1&amp;gt;About Page&amp;lt;/h1&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum15"&gt;  15:&lt;/span&gt;     &amp;lt;/div&amp;gt;&amp;lt;!-- /header --&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum16"&gt;  16:&lt;/span&gt;     &amp;lt;div data-role=&lt;span style="color: #006080"&gt;&amp;quot;content&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum17"&gt;  17:&lt;/span&gt;         &amp;lt;p&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum18"&gt;  18:&lt;/span&gt;             &amp;lt;a href=&lt;span style="color: #006080"&gt;&amp;quot;#homePage&amp;quot;&lt;/span&gt;&amp;gt;Home Page&amp;lt;/a&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum19"&gt;  19:&lt;/span&gt;         &amp;lt;/p&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum20"&gt;  20:&lt;/span&gt;     &amp;lt;/div&amp;gt;&amp;lt;!-- /content --&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum21"&gt;  21:&lt;/span&gt; &amp;lt;/div&amp;gt;&amp;lt;!-- /page --&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;In Here we have Ajax navigation for page Titles even&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;data-title=&amp;quot;Page Title&amp;quot; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;in data role page.&amp;#160; It automatically updated to match the data-title of the page currently in view&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Page transitions&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;jQuery Mobile framework includes a set of six CSS-based transition.&lt;br /&gt;  &lt;br /&gt;By default, the framework applies the right to left slide transition. To set a custom transition effect, add the data-transition attribute to the link.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;lt;a href=&amp;quot;#aboutPage&amp;quot; data-transition=&amp;quot;pop&amp;quot;&amp;gt;About Page with POP&amp;lt;/a&amp;gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;We can create custom CSS-based transitions&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;eg: normally page&amp;#160; slide happen from right to left. So i need to make it other vise.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper"&gt;&lt;br /&gt;  &lt;div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet"&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum1"&gt;   1:&lt;/span&gt; &lt;span style="color: #006080"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #0000ff"&gt;style&lt;/span&gt;&lt;span style="color: #006080"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum2"&gt;   2:&lt;/span&gt;             &lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum3"&gt;   3:&lt;/span&gt;     &lt;span style="color: #cc6633"&gt;.slide&lt;/span&gt;&lt;span style="color: #cc6633"&gt;.in&lt;/span&gt; {&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum4"&gt;   4:&lt;/span&gt;         -webkit-transform: translateX(0);&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum5"&gt;   5:&lt;/span&gt;         -webkit-animation-name: &lt;span style="color: #006080"&gt;slideinfromleft;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum6"&gt;   6:&lt;/span&gt;     }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum7"&gt;   7:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum8"&gt;   8:&lt;/span&gt;     &lt;span style="color: #cc6633"&gt;.slide&lt;/span&gt;&lt;span style="color: #cc6633"&gt;.out&lt;/span&gt; {&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum9"&gt;   9:&lt;/span&gt;         -webkit-transform: translateX(-100%);&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum10"&gt;  10:&lt;/span&gt;         -webkit-animation-name: &lt;span style="color: #006080"&gt;slideouttoright;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum11"&gt;  11:&lt;/span&gt;     }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum12"&gt;  12:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum13"&gt;  13:&lt;/span&gt;     @-webkit-keyframes slideinfromright {&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum14"&gt;  14:&lt;/span&gt;         from { -webkit-transform: translateX(100%); }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum15"&gt;  15:&lt;/span&gt;         to { -webkit-transform: translateX(0); }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum16"&gt;  16:&lt;/span&gt;     }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum17"&gt;  17:&lt;/span&gt;     @-webkit-keyframes slideouttoleft {&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum18"&gt;  18:&lt;/span&gt;         from { -webkit-transform: translateX(0); }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum19"&gt;  19:&lt;/span&gt;         to { -webkit-transform: translateX(-100%); }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum20"&gt;  20:&lt;/span&gt;     }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum21"&gt;  21:&lt;/span&gt;     &lt;span style="color: #008000"&gt;/*reverse*/&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum22"&gt;  22:&lt;/span&gt;     &lt;span style="color: #cc6633"&gt;.slide&lt;/span&gt;&lt;span style="color: #cc6633"&gt;.in&lt;/span&gt;&lt;span style="color: #cc6633"&gt;.reverse&lt;/span&gt; {&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum23"&gt;  23:&lt;/span&gt;             -webkit-transform: translateX(0);&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum24"&gt;  24:&lt;/span&gt;             -webkit-animation-name: &lt;span style="color: #006080"&gt;slideinfromleft;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum25"&gt;  25:&lt;/span&gt;         }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum26"&gt;  26:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum27"&gt;  27:&lt;/span&gt;         &lt;span style="color: #cc6633"&gt;.slide&lt;/span&gt;&lt;span style="color: #cc6633"&gt;.out&lt;/span&gt;&lt;span style="color: #cc6633"&gt;.reverse&lt;/span&gt; {&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum28"&gt;  28:&lt;/span&gt;             -webkit-transform: translateX(100%);&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum29"&gt;  29:&lt;/span&gt;             -webkit-animation-name: &lt;span style="color: #006080"&gt;slideouttoright;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum30"&gt;  30:&lt;/span&gt;         }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum31"&gt;  31:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum32"&gt;  32:&lt;/span&gt;         @-webkit-keyframes slideinfromleft {&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum33"&gt;  33:&lt;/span&gt;             from { -webkit-transform: translateX(-100%); }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum34"&gt;  34:&lt;/span&gt;             to { -webkit-transform: translateX(0); }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum35"&gt;  35:&lt;/span&gt;         }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum36"&gt;  36:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum37"&gt;  37:&lt;/span&gt;         @-webkit-keyframes slideouttoright {&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum38"&gt;  38:&lt;/span&gt;             from { -webkit-transform: translateX(0); }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum39"&gt;  39:&lt;/span&gt;             to { -webkit-transform: translateX(100%); }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum40"&gt;  40:&lt;/span&gt;         }&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum41"&gt;  41:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum42"&gt;  42:&lt;/span&gt; &lt;span style="color: #006080"&gt;&amp;lt;&lt;/span&gt;/&lt;span style="color: #0000ff"&gt;style&lt;/span&gt;&lt;span style="color: #006080"&gt;&amp;gt;&lt;/span&gt;   &lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum43"&gt;  43:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;It is so, easy now i need to controle the time.&lt;br /&gt;  &lt;br /&gt;The CSS for jQuery Mobile defines the default easing and duration in the following rules.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Let make slow move &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper"&gt;&lt;br /&gt;  &lt;div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100.16%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; height: 89px; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet"&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum1"&gt;   1:&lt;/span&gt; &lt;span style="color: #cc6633"&gt;.in&lt;/span&gt;, &lt;span style="color: #cc6633"&gt;.out&lt;/span&gt; {&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum2"&gt;   2:&lt;/span&gt;    -webkit-animation-timing-function: ease-in&lt;span style="color: #006080"&gt;-out;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum3"&gt;   3:&lt;/span&gt;    -webkit-animation-duration: &lt;span style="color: #006080"&gt;2500ms;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum4"&gt;   4:&lt;/span&gt;    }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;    &lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;&lt;br /&gt;  &lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;&lt;font size="3"&gt;Page transition events&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;We can get triggers before and after these transitions. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;  &lt;li&gt;pagebeforeshow &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;pagebeforehide &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;pageshow &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;pagehide&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;eg:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper"&gt;&lt;br /&gt;  &lt;div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet"&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum1"&gt;   1:&lt;/span&gt; &amp;lt;script&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum2"&gt;   2:&lt;/span&gt;         $( &lt;span style="color: #006080"&gt;'div'&lt;/span&gt; ).live( &lt;span style="color: #006080"&gt;'pageshow'&lt;/span&gt;,&lt;span style="color: #0000ff"&gt;function&lt;/span&gt;(&lt;span style="color: #0000ff"&gt;event&lt;/span&gt;, ui){&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum3"&gt;   3:&lt;/span&gt;           console.log(&lt;span style="color: #006080"&gt;'page hide: '&lt;/span&gt;+ ui.prevPage.attr(&lt;span style="color: #006080"&gt;'id'&lt;/span&gt;));&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum4"&gt;   4:&lt;/span&gt;         });&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum5"&gt;   5:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum6"&gt;   6:&lt;/span&gt;         $( &lt;span style="color: #006080"&gt;'div'&lt;/span&gt; ).live( &lt;span style="color: #006080"&gt;'pagehide'&lt;/span&gt;,&lt;span style="color: #0000ff"&gt;function&lt;/span&gt;(&lt;span style="color: #0000ff"&gt;event&lt;/span&gt;, ui){&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum7"&gt;   7:&lt;/span&gt;           console.log(&lt;span style="color: #006080"&gt;'page show: '&lt;/span&gt;+ ui.nextPage.attr(&lt;span style="color: #006080"&gt;'id'&lt;/span&gt;));&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum8"&gt;   8:&lt;/span&gt;         });&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum9"&gt;   9:&lt;/span&gt;         &lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum10"&gt;  10:&lt;/span&gt;         &lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum11"&gt;  11:&lt;/span&gt;         &amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;!--CRLF--&gt;&lt;/div&gt;&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/1590365593679599766-3970750931391193736?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/3970750931391193736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=3970750931391193736' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/3970750931391193736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/3970750931391193736'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/11/multi-paging-from-jquery-mobile.html' title='Multi-paging from jQuery Mobile'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-2095174836401236218</id><published>2011-11-07T22:59:00.001-08:00</published><updated>2011-11-08T17:27:35.810-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WSO2 Carbon'/><category scheme='http://www.blogger.com/atom/ns#' term='WSO2'/><title type='text'>Add multi-tenancy for IS</title><content type='html'>&lt;p&gt;I am making this post for who never ever see wso2 IS or manager. (To &lt;a href="http://madhukaudantha.blogspot.com/2011/10/building-carbon-from-windows-7.html" target="_blank"&gt;build branch&lt;/a&gt; and &lt;a href="http://madhukaudantha.blogspot.com/2011/10/building-wso2-branch-322-where-all.html" target="_blank"&gt;build&amp;#160; in critical time&lt;/a&gt;)&lt;/p&gt;  &lt;p&gt;Build C:\WSO2\Branches\products\manager\1.5.1&amp;gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-TKfWL5X4C64/TrjTBvYcQpI/AAAAAAAAB84/r4X3DfBYHQs/s1600-h/image4.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-sPH_o7pgMVE/TrjTCsPqjXI/AAAAAAAAB9A/TqHQwAOKfpY/image_thumb2.png?imgmax=800" width="571" height="226" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;build “C:\WSO2\Branches\products\is\3.2.1&amp;gt;”&lt;a href="http://lh5.ggpht.com/-EritxuzRlY0/TrjTDjQWGKI/AAAAAAAAB9I/pi1_PaqGvaM/s1600-h/image8%25255B1%25255D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-9KQoBEzCjgc/TrjTE1I-TxI/AAAAAAAAB9Q/Y6pJkrxHV0M/image_thumb4.png?imgmax=800" width="465" height="340" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Unzipping Products&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;go to “C:\WSO2\Branches\products\is\3.2.1\modules\distribution\service\target” and get &lt;/p&gt;  &lt;p&gt;&amp;quot;wso2stratos-is-1.5.1.zip” and zip it&lt;/p&gt;  &lt;p&gt;I will unzip it in “F:\WSO2 Product\IS3.2.1-services\wso2stratos-is-1.5.1”&lt;/p&gt;  &lt;p&gt;In “C:\WSO2\Branches\products\manager\1.5.1\modules\distribution\service\target” will have “wso2stratos-manager-1.5.1.zip” and unzip it in “F:\WSO2 Product\New\wso2stratos-manager-1.5.1”&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Run Both servers at once&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;F:\WSO2 Product\New\wso2stratos-manager-1.5.1\repository\conf in this directory you will find “carbon.xml” in there you will make change “&lt;font color="#000000"&gt;&lt;strong&gt;offset&lt;/strong&gt;&lt;/font&gt;” tag value to 1&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Run server&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;‘F:\WSO2 Product\New\wso2stratos-is-1.5.1\bin\wso2server.bat’ click this bat in linux ‘wso2server.sh’ for &lt;/p&gt;  &lt;p&gt;same “F:\WSO2 Product\New\wso2stratos-manager-1.5.1\bin\wso2server.bat” for wso2stratos-manager&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="https://localhost:9443/carbon/admin/index.jsp?loginStatus=true"&gt;https://localhost:9443/carbon/admin/index.jsp?loginStatus=true&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-Pdbx49MjGM0/TrjTF5huIeI/AAAAAAAAB9Y/nZqsZcGrCXE/s1600-h/image12%25255B1%25255D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-wxrRcMF9PcI/TrjTG61WrmI/AAAAAAAAB9g/WsUFzGM2xV4/image_thumb6.png?imgmax=800" width="463" height="300" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="https://localhost:9444/carbon/admin/index.jsp"&gt;https://localhost:9444/carbon/admin/index.jsp&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-rgWyC392a5U/TrjTIHgqmiI/AAAAAAAAB9o/wSnEotwIh5o/s1600-h/image16.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-lthv8XXbCvk/TrjTI-xe_0I/AAAAAAAAB9w/9tvHmRCJodg/image_thumb8.png?imgmax=800" width="445" height="289" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;So far so Good, both are running OK,&lt;/p&gt;  &lt;p&gt;Now we will try to add multi-tenancy support for WSO2 Identity Server&lt;/p&gt;  &lt;p&gt;Now get the feature multi-tenancy from wso2stratos-manager &lt;/p&gt;  &lt;p&gt;‘F:\WSO2 Product\New\wso2stratos-manager-1.5.1&lt;font color="#000000"&gt;\repository\components\plugins’&lt;/font&gt; This is the place that for us to pick the jars. Let is pick what we need, &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;org.wso2.carbon.tenant.dispatcher-1.5.1.jar &lt;/li&gt;    &lt;li&gt;org.wso2.carbon.tenant.mgt-1.5.1.jar &lt;/li&gt;    &lt;li&gt;org.wso2.carbon.tenant.mgt.core-1.1.0.jar &lt;/li&gt;    &lt;li&gt;org.wso2.carbon.tenant.mgt.stub-3.2.0.jar &lt;/li&gt;    &lt;li&gt;org.wso2.carbon.tenant.mgt.ui-1.5.1.jar &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-3H6iBFYs9xU/TrjTKFt8z_I/AAAAAAAAB94/YZJ_-S0wSbo/s1600-h/image8.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-MiVRW1Huc2g/TrjTLSe2tgI/AAAAAAAAB-A/FU-ZUOjchIk/image_thumb3.png?imgmax=800" width="586" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;lets find the missing jar for my task&lt;/p&gt;  &lt;p&gt;stratos-is-1.5.1\bin&amp;gt;&lt;font color="#0000ff"&gt;wso2server.bat –DosgiConsole&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Start server with osgi&amp;#160; &lt;/p&gt;  &lt;p&gt;osgi&amp;gt; &lt;font color="#0000ff"&gt;ss tenant&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-x4N9q0kT9MQ/TrjTMOERq-I/AAAAAAAAB-I/gjHPzNNjpjw/s1600-h/image12.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-Ggpoiy48hhM/TrjTMyu9ppI/AAAAAAAAB-Q/BwuWv3cw7pI/image_thumb5.png?imgmax=800" width="566" height="135" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;stratos-is-1.5.1\bin&amp;gt;wso2server.bat -DosgiConsole&lt;/p&gt;  &lt;p&gt;Bundle id is 275&lt;/p&gt;  &lt;p&gt;osgi&amp;gt; start 275&lt;/p&gt;  &lt;p&gt;“org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.wso2.carbon.b    &lt;br /&gt;illing.mgt.services; version=&amp;quot;0.0.0&amp;quot;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-BU1oV7vR_W0/TrjTN1YXYmI/AAAAAAAAB-Y/DqK1x0chGHg/s1600-h/image16%25255B1%25255D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-CfAXHA4nsAE/TrjTO_5OwKI/AAAAAAAAB-g/wx5bOFO1wtE/image_thumb7.png?imgmax=800" width="568" height="126" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Let is go to ‘\wso2stratos-manager-1.5.1\repository\components\plugins’&amp;#160; and find this jar and install billing jar and start it,&lt;/p&gt;  &lt;p&gt;like this way we can find the missing jar for our task.&lt;/p&gt;  &lt;p&gt;Here is list of jar that I found &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;· antlr-2.7.7.wso2v1.jar &lt;/li&gt;    &lt;li&gt;· antlr-runtime-3.1.1.wso2v1.jar &lt;/li&gt;    &lt;li&gt;· axis-1.4.0.wso2v1.jar &lt;/li&gt;    &lt;li&gt;· drools-5.0.1.wso2v1.jar &lt;/li&gt;    &lt;li&gt;· janino-2.5.15.wso2v1.jar &lt;/li&gt;    &lt;li&gt;· joda-time-1.6.0.wso2v1.jar &lt;/li&gt;    &lt;li&gt;· json-1.0.0.wso2v1.jar &lt;/li&gt;    &lt;li&gt;· jsr94-1.1.0.wso2v1.jar &lt;/li&gt;    &lt;li&gt;· kaptcha-2.3.0.wso2v1.jar &lt;/li&gt;    &lt;li&gt;· mvel2-2.0.10.wso2v1.jar &lt;/li&gt;    &lt;li&gt;· mysql_connector_java_5.1.10_bin_1.0.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.account.mgt-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.account.mgt.stub-3.2.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.account.mgt.ui-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.activation-1.5.1.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.billing.core-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.billing.mgt-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.business.messaging.paypal.integration.core-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.common-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.email.sender-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.keystore.mgt-1.1.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.payment.paypal-1.5.1.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.redirector.servlet-1.1.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.redirector.servlet.stub-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.redirector.servlet.ui-1.1.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.register.ui-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.rule.core-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.rule.engine.drools-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.rule.engine.jsr94-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.rule.server-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.rulecep.adapters-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.rulecep.commons-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.stratos.common.stub-3.2.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.task-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.tenant.mgt-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.tenant.mgt.core-1.1.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.tenant.mgt.stub-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.tenant.mgt.ui-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.tenant.reg.agent.client-1.1.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.tenant.reg.agent.stub-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.tenant.register.stub-3.2.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.theme.mgt-1.1.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.theme.mgt.stub-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.theme.mgt.ui-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.throttling.agent-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.throttling.agent.stub-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.upgrade-1.1.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.usage-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.usage.meteringqueryds.stub-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.usage.meteringsummarygenerationds.stub-3.2.0.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.usage.summary.generator-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.carbon.validate.domain-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.stratos.identity.dashboard.ui-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.stratos.identity.login.ui-1.5.2.jar &lt;/li&gt;    &lt;li&gt;· org.wso2.stratos.manager.services.mgt-1.1.0.jar &lt;/li&gt;    &lt;li&gt;· quartz-1.6.0.wso2v2.jar &lt;/li&gt;    &lt;li&gt;· synapse-commons-2.1.0.wso2v4.jar &lt;/li&gt;    &lt;li&gt;· synapse-core-2.1.0.wso2v4.jar &lt;/li&gt;    &lt;li&gt;· synapse-extensions-2.1.0.wso2v4.jar &lt;/li&gt;    &lt;li&gt;· synapse-tasks-2.1.0.wso2v4.jar &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Here is that tenant osgi bundle start well&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-qaj8OSFSc7Q/TrjTPsJGQmI/AAAAAAAAB-k/4w6E8tyY4Ds/s1600-h/image20.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-Wu98ooArBTk/TrjTQceKOCI/AAAAAAAAB-w/rQnIC8IHcIs/image_thumb9.png?imgmax=800" width="544" height="258" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="https://10.100.3.31:9443/carbon/"&gt;https://10.100.3.31:9443/carbon/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;go to browser and check for it,&lt;/p&gt;  &lt;p&gt;Username:admin&lt;/p&gt;  &lt;p&gt;Password :admin&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-GlXks9qfap4/TrjTRjqFW-I/AAAAAAAAB-4/JkhOylwZtus/s1600-h/image29.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" align="left" src="http://lh5.ggpht.com/-K0MnbuXVJjc/TrjTS5_BRlI/AAAAAAAAB_A/Nom5NdVtrDo/image_thumb19.png?imgmax=800" width="208" height="399" /&gt;&lt;/a&gt;&lt;a href="http://lh4.ggpht.com/-3pXBEXXG5b0/TrjTUJCHbNI/AAAAAAAAB_I/KZTGlFMvJN0/s1600-h/image24.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" align="right" src="http://lh3.ggpht.com/-SfZITbddA6M/TrjTU6KvPcI/AAAAAAAAB_Q/C74fXb3pgE0/image_thumb11.png?imgmax=800" width="333" height="243" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Here we can see ‘Multitenancy’ in main slider&amp;#160; bar &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Before going more we need some configuration file from manager&lt;/p&gt;  &lt;p&gt;Copy the related configuration files from stratos-manager home\repository\conf to IS-home\repository\conf dir&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-uGbCpzKhNt8/TrjTWexfGWI/AAAAAAAAB_Y/JqwFFGlhth4/s1600-h/image%25255B6%25255D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-7CJhpmZYlAY/TrjTX0ZtB9I/AAAAAAAAB_g/rr6o6NZpl50/image_thumb%25255B3%25255D.png?imgmax=800" width="513" height="469" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;adding New Tenant&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-tHTC6ao_LNw/TrjTY2Q9f6I/AAAAAAAAB_o/Phghc7DKUa0/s1600-h/image%25255B10%25255D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/-hLxgog6BMho/TrjTZjMwsmI/AAAAAAAAB_w/73Z-2JUCUJM/image_thumb%25255B5%25255D.png?imgmax=800" width="518" height="460" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Here it work!!&lt;/p&gt;  &lt;p&gt;If you feel you need more good looking in here added resource files with themes by adding &lt;/p&gt;  &lt;p&gt;stratos-manager home\resources to to IS-home\ resources&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-2095174836401236218?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/2095174836401236218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=2095174836401236218' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2095174836401236218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2095174836401236218'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/11/add-multi-tenancy-for-is.html' title='Add multi-tenancy for IS'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/-sPH_o7pgMVE/TrjTCsPqjXI/AAAAAAAAB9A/TqHQwAOKfpY/s72-c/image_thumb2.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-4983083814108942904</id><published>2011-10-31T03:41:00.001-07:00</published><updated>2011-10-31T03:44:52.448-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WSO2 Carbon'/><category scheme='http://www.blogger.com/atom/ns#' term='WSO2'/><title type='text'>Building WSO2 Branch 3.2.2, Where all others are committing to it</title><content type='html'>&lt;p&gt;I was building branch where normally that easy to make, But I need to build 3.2.2 that is releasing soon. So all of them were committing to it. So it was breaking lot of time. But truly this help to learn lot in pom.xml and maven.&lt;/p&gt;  &lt;p align="left"&gt;&lt;a href="http://lh6.ggpht.com/-ly_FTGnDwsA/Tq57IOTzIKI/AAAAAAAAB64/3CCu6IWmgLc/s1600-h/image1.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-TGQo8H58gEU/Tq57KEA1WoI/AAAAAAAAB7A/kpcQzHPUNAs/image_thumb.png?imgmax=800" width="527" height="557" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I was getting Build error on the way, In here I was missing some UI.jar &lt;/p&gt;  &lt;p&gt;In there I move to &lt;/p&gt;  &lt;p&gt;‘C:\WSO2\Branches\components\identity\org.wso2.carbon.identity.relyingparty.ui\3.2.2’&lt;/p&gt;  &lt;p&gt;get up from there. (not make do svn from particular 2 root level, if so error will increase) better get root svn up, But in such time better to try to svn up only particular place because&amp;#160; lot of changes happening to it,&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-jE_1OTJzW10/Tq57LIQ5LcI/AAAAAAAAB7I/jp4tZ_C67yQ/s1600-h/image31.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-bTn8JkZnGPM/Tq57MmqEsEI/AAAAAAAAB7Q/mPT17AkALyI/image3_thumb.png?imgmax=800" width="497" height="281" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Try to build form break point &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-FulYo1jrKf0/Tq57NXsiTTI/AAAAAAAAB7Y/WDwAM1mP3No/s1600-h/image61.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-n5qyxmtGWqg/Tq57PdxB7EI/AAAAAAAAB7g/YJNiLCnrUFM/image6_thumb.png?imgmax=800" width="498" height="136" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Above one was some far simple one. Some time, It say build issue when I try to make it say I have fix some in services stub then I try it say some in dependencies. so I have to move particular place and make it. &lt;/p&gt;  &lt;p&gt;eg: &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-bN7YIdh5DAs/Tq57Qfz_-jI/AAAAAAAAB7o/kFSzNTMUZYw/s1600-h/image122.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/-hKH7ghCEAE8/Tq57Slq2heI/AAAAAAAAB7w/VuX8bszQVX4/image12_thumb4.png?imgmax=800" width="442" height="393" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;to the miss file place get update?&lt;/p&gt;  &lt;p&gt;by the name of the jar we can find the dir of that missing jar&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-5eL1_XOft0s/Tq57Tg9cErI/AAAAAAAAB74/GyNbo0jQ4Qk/s1600-h/image92.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/--B0yr6Lg_xw/Tq57VuXjCNI/AAAAAAAAB8A/1YD7yf4fMb8/image9_thumb7.png?imgmax=800" width="388" height="286" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;It have never org.wso2.carbon:org.wso2.carbon.reporting.api:jar:3.2.2 so I go to “C:\WSO2\Branches\components\reporting\org.wso2.carbon.reporting.api”&lt;/p&gt;  &lt;p&gt;get svn up &lt;/p&gt;  &lt;p&gt;then build WSO2 Carbon - Reporting API&lt;/p&gt;  &lt;p&gt;finally this make it work.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-4983083814108942904?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/4983083814108942904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=4983083814108942904' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4983083814108942904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4983083814108942904'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/10/building-wso2-branch-322-where-all.html' title='Building WSO2 Branch 3.2.2, Where all others are committing to it'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/-TGQo8H58gEU/Tq57KEA1WoI/AAAAAAAAB7A/kpcQzHPUNAs/s72-c/image_thumb.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-5578607996908960998</id><published>2011-10-25T05:19:00.001-07:00</published><updated>2011-10-25T05:20:13.369-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Android'/><category scheme='http://www.blogger.com/atom/ns#' term='phones'/><title type='text'>Start your Android Tab by CMD</title><content type='html'>&lt;p&gt;I am doing some html5 web app developments and I need to check some work in Android Tab, But I do not have one. I testing all in my iphone 4. It is really OK,&lt;/p&gt;  &lt;p&gt;I love command prompt a lot, in windows (Normally other do not like it much, cmd teach me a lot). even I like linux terminal, It do all for me.:)&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3"&gt;I will tell you make Android Emulator on CMD&lt;/font&gt;&lt;/strong&gt;. I am in windows 7.&lt;a href="http://lh5.ggpht.com/--a9mvdCy8c0/TqapESG5VTI/AAAAAAAAB5E/owssVG7QWBw/s1600-h/image%25255B3%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-8XtQ7mJL_M8/TqapFDep-PI/AAAAAAAAB5M/XuyPXs7NWU8/image_thumb%25255B1%25255D.png?imgmax=800" width="482" height="94" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You shuld need Android&amp;#160; SDk and manger for this &lt;a href="http://developer.android.com/sdk/index.html"&gt;http://developer.android.com/sdk/index.html&lt;/a&gt;    &lt;br /&gt;Download it,&lt;/p&gt;  &lt;p&gt;go to 'Android\android-sdk\tools' in my one '&lt;font color="#0000ff"&gt;C:\Program Files (x86)\Android\android-sdk\tools' &lt;/font&gt;by cmd&lt;/p&gt;  &lt;p&gt;and type &amp;quot;emulator -avd &amp;lt;name&amp;gt;&amp;quot; eg:&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;emulator -avd Phone&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-uDwYxHkOtbI/TqapGGPepnI/AAAAAAAAB5U/Cq95b1_70qs/s1600-h/image%25255B19%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/-rJqBqwwI-9o/TqapHa0TkrI/AAAAAAAAB5c/bXgpjJVNqwA/image_thumb%25255B20%25255D.png?imgmax=800" width="419" height="269" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;wow, It loaded!!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-My39HqK8JA0/TqapJQVZtZI/AAAAAAAAB5k/KrD-VnCag2g/s1600-h/image%25255B13%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-9qhkq8AAVWc/TqapKh5AJuI/AAAAAAAAB5o/jlShU3L3jaE/image_thumb%25255B13%25255D.png?imgmax=800" width="410" height="268" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-qa0iFf2_otc/TqapMFIr7_I/AAAAAAAAB50/uijiAgotCso/s1600-h/image%25255B18%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-_kO-fChO8EE/TqapNSYWtmI/AAAAAAAAB58/i1QkwhkEOjY/image_thumb%25255B19%25255D.png?imgmax=800" width="419" height="272" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;play with it,&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Here is phone too&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-_1bGGXrVZmg/Tqapdt6HpnI/AAAAAAAAB6k/LSjNoilcnMY/s1600-h/image%25255B33%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-m3jLt0h2Gl0/Tqapeq64qAI/AAAAAAAAB6s/ILe41vAIk1U/image_thumb%25255B31%25255D.png?imgmax=800" width="510" height="333" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Note:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;pre&gt;&lt;p&gt;&lt;font face="Arial"&gt;Where is this Phone that I am calling, It was create before hand and it is reside in my PC at &lt;font color="#0000ff"&gt;“C:\Users\Madhuka\.android\avd”&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/font&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/font&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" face="Arial"&gt;&lt;a href="http://lh3.ggpht.com/-POKAxBnjcm8/TqapOLI8aSI/AAAAAAAAB6A/XPGSAG-FUBU/s1600-h/image%25255B25%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-QvYn-U4PQ3I/TqapO4jrp3I/AAAAAAAAB6M/jTtfhLwxqD8/image_thumb%25255B27%25255D.png?imgmax=800" width="250" height="386" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;&lt;/font&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;To make Android Phone go to start --&amp;gt; type 'SDK'&amp;#160; go to&lt;strong&gt; Android SDk Manager&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;font face="Arial"&gt;&lt;/font&gt;&lt;/strong&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial"&gt;in there go to Virtual Devices--&amp;gt; click new and have what type you need.&lt;br /&gt;enjoy it.&lt;/font&gt; &lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" face="Arial"&gt;&lt;/font&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;a href="http://lh3.ggpht.com/-VzLMFttw9FI/TqapP4bpnDI/AAAAAAAAB6U/D2a51ROt6IU/s1600-h/image%25255B29%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-JODPF7OHvoI/TqapQ3zzGRI/AAAAAAAAB6c/NhNrBGYXnN0/image_thumb%25255B29%25255D.png?imgmax=800" width="420" height="300" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" face="Arial"&gt;&lt;/font&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;font color="#000000" face="Arial"&gt;&lt;/font&gt;&amp;#160;&lt;/p&gt;&lt;/pre&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-5578607996908960998?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/5578607996908960998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=5578607996908960998' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/5578607996908960998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/5578607996908960998'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/10/start-your-android-tab-by-cmd.html' title='Start your Android Tab by CMD'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/-8XtQ7mJL_M8/TqapFDep-PI/AAAAAAAAB5M/XuyPXs7NWU8/s72-c/image_thumb%25255B1%25255D.png?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-2562261682061211091</id><published>2011-10-24T04:55:00.001-07:00</published><updated>2011-10-24T05:03:03.016-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web Applications'/><category scheme='http://www.blogger.com/atom/ns#' term='phones'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>HTML5 in Mobile Devices??</title><content type='html'>&lt;p&gt;HTML5, core technology of the Internet,&amp;#160; provides mobile device users richer web applications and improved usability with providing common in smartphone-optimized mobile web applications. HTML5 adds many new syntactical features.&amp;#160; Ian Hickson of Google is the editor of HTML5.   &lt;br /&gt;Before making coding in application. We need look around more. I have done HTML5 web application for email system with offline capability. Again I got a chace to work on HTML5. HTML5 can be evolution of the web some of time as I think. &lt;/p&gt;  &lt;p&gt;So I have been asked lot of question from around me. &lt;/p&gt;  &lt;p&gt;Mainly, &lt;/p&gt;  &lt;p&gt;&lt;font color="#000000" size="3"&gt;&lt;strong&gt;“What are features of HTML5 that make mobile application strong?”&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#000000" size="3"&gt;&lt;strong&gt;       &lt;br /&gt;&lt;/strong&gt;&lt;/font&gt;yAP, HTML5 capabilities in mobile devices.( &lt;a href="http://www.netbiscuits.com/mobile-metrics-report-2011" target="_blank"&gt;Mobile Web Metrics Report H2/2011&lt;/a&gt; &lt;a href="http://www.netbiscuits.com/mobile-metrics-report-2011)"&gt;)&lt;/a&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;GeolocationAPI&lt;/li&gt;    &lt;li&gt;offline web application&lt;/li&gt;    &lt;li&gt;WebStorage&lt;/li&gt;    &lt;li&gt;CSS3 Selectors &lt;/li&gt;    &lt;li&gt;Video / audio support&lt;/li&gt;    &lt;li&gt;Advanced forms&lt;/li&gt;    &lt;li&gt;2D animations &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;HTML5 promises to push the capabilities of web applications to the point of making web apps as engaging as Flash applications and as integrated with the device as mobile applications.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font size="3"&gt;Frameworks for app development&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;jQuery Mobile, It is&amp;#160; built on jQuery. &lt;/li&gt;    &lt;li&gt;Sencha Touch, is the first HTML5 framework for mobile devices &lt;a href="http://www.sencha.com/products/touch/demos/"&gt;http://www.sencha.com/products/touch/demos/&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;jQTouch, This framework is heavy on the CSS.&amp;#160; &lt;a href="http://jqtouch.com/"&gt;http://jqtouch.com/&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;SproutCore &lt;a href="http://www.sproutcore.com/"&gt;http://www.sproutcore.com/&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;M-Project,&amp;#160; use of jQuery&amp;#160; with features like offline support &lt;a href="http://the-m-project.net/"&gt;http://the-m-project.net/&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Platform&lt;/u&gt;&lt;/strong&gt;&amp;#160; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;WorkLight is a mobile application platform&amp;#160; with frameworks such as PhoneGap, Sencha Touch and JQuery, &lt;a href="http://www.worklight.com/"&gt;http://www.worklight.com/&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;MobileNationHQ&amp;#160; &lt;a href="http://www.mobilenationhq.com/"&gt;http://www.mobilenationhq.com/&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;This all in Tech work,   &lt;br /&gt;I never forget to see what is my users are wish to see.    &lt;br /&gt;so Master Question is &lt;/p&gt;  &lt;p&gt;&lt;font color="#000000" size="4"&gt;&lt;strong&gt;Mobile Users Prefer Browsers over Apps?&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-cyotTfW3BFM/TqVSB7uvmuI/AAAAAAAAB4k/VWfhqMC957c/s1600-h/120934%25255B3%25255D.gif"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="120934" border="0" alt="120934" src="http://lh6.ggpht.com/-nZXaNrPdTKQ/TqVSCjFGKVI/AAAAAAAAB4s/6x1z7dDH8qk/120934_thumb%25255B1%25255D.gif?imgmax=800" width="379" height="516" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p align="left"&gt;&lt;a href="http://lh3.ggpht.com/-JLQKuhOa5G0/TqVSDQ7odeI/AAAAAAAAB40/XGxsnoCxNFU/s1600-h/120938%25255B5%25255D.gif"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="120938" border="0" alt="120938" src="http://lh5.ggpht.com/-mU_xuIGe3bM/TqVSFR4GZpI/AAAAAAAAB48/Hk367Qjvs8s/120938_thumb%25255B3%25255D.gif?imgmax=800" width="363" height="533" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;[resource URL: &lt;a href="http://www.emarketer.com/Article.aspx?R=1008010"&gt;http://www.emarketer.com/Article.aspx?R=1008010&lt;/a&gt;]    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Yap, Users are know getting in to it,&lt;/p&gt;  &lt;p&gt;For even Me, I used to read news on mobile native apps. But with google news I shift it to web application mode.   &lt;br /&gt;It is nice look and more user friendly than app.&lt;/p&gt;  &lt;p&gt;Let us begin to work!! with &lt;font size="3"&gt;&lt;strong&gt;HTML5 mobile and PC application.&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-2562261682061211091?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/2562261682061211091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=2562261682061211091' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2562261682061211091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2562261682061211091'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/10/html5-in-mobile-devices.html' title='HTML5 in Mobile Devices??'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/-nZXaNrPdTKQ/TqVSCjFGKVI/AAAAAAAAB4s/6x1z7dDH8qk/s72-c/120934_thumb%25255B1%25255D.gif?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-7525369961502699793</id><published>2011-10-21T04:06:00.001-07:00</published><updated>2011-10-21T04:10:38.269-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='WSO2 Carbon'/><category scheme='http://www.blogger.com/atom/ns#' term='WSO2'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Service'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='MAVEN'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title type='text'>Building Carbon Branch from Windows 7</title><content type='html'>&lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font size="2"&gt;Introduction&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;WSO2 is the lean enterprise middleware company, delivering the only complete open source enterprise SOA middleware stack ....read more &lt;a href="http://wso2.org/"&gt;http://wso2.org/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-s2FgpBgV0VI/TqFSFc3QmtI/AAAAAAAAB3Q/Yw1ZKiQerwQ/s1600-h/image%25255B13%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-LYWaad8D_D4/TqFSGKefRuI/AAAAAAAAB3Y/IhFmWcXAufQ/image_thumb%25255B10%25255D.png?imgmax=800" width="260" height="69" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font size="2"&gt;Things to be needed &lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;tortoise &lt;a href="http://tortoisesvn.net/"&gt;http://tortoisesvn.net/&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Maven 2.2.1 &lt;a href="http://maven.apache.org/download.html"&gt;http://maven.apache.org/download.html&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Sun Java Development Kit 1.6 &lt;a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html"&gt;http://www.oracle.com/technetwork/java/javase/downloads/index.html&lt;/a&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;   &lt;br /&gt;Download them from link and install them in to windows&lt;/p&gt;  &lt;p&gt;Are you need help to &lt;strong&gt;&lt;u&gt;&lt;font size="2"&gt;setup Maven&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;?    &lt;br /&gt;Here it is &lt;a href="http://madhukaudantha.blogspot.com/2011/09/installing-maven-in-windows-7.html"&gt;http://madhukaudantha.blogspot.com/2011/09/installing-maven-in-windows-7.html&lt;/a&gt;    &lt;br /&gt;make sure you got maven 2.x.x&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font size="2"&gt;Install java&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;, set java path&lt;/p&gt;  &lt;p&gt;such as &lt;/p&gt;  &lt;p&gt;JAVA_HOME to java jdk dir   &lt;br /&gt;and PATH TO java bin dir&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Setup SVN in windows&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;If you do not have sub version control (svn) in your windows 7 &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;you can download TortoiseCVS &lt;a href="http://www.tortoisecvs.org/download.shtml"&gt;http://www.tortoisecvs.org/download.shtml&lt;/a&gt; and install it. &lt;/li&gt;    &lt;li&gt;or you preferred cmd work (standalone command line Subversion package) like slik &lt;a href="http://www.sliksvn.com/en/download/"&gt;http://www.sliksvn.com/en/download/&lt;/a&gt; . In Slik we have to give PATH in environment variable ‘C:\Program Files\SlikSvn\bin’ &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Now go to the place where do need to make check out carbon. In My case I need it in ‘C:\WSO2\Carbon’. Go to the particular place and right click on the mouse go to ‘svn checkout’&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-Vj3SOXugVCI/TqFSGk0heaI/AAAAAAAAB3g/zLaEBgYjfgk/s1600-h/image4.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-oKvOPZneUQg/TqFSHVddfMI/AAAAAAAAB3o/Xrx3Ci41Z9c/image_thumb6.png?imgmax=800" width="236" height="299" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;then give the URL for Repo in wso2 carbon branch repo url is &lt;/p&gt;  &lt;p&gt;‘&lt;a title="https://svn.wso2.org/repos/wso2/branches/carbon/3.2.0" href="https://svn.wso2.org/repos/wso2/branches/carbon/3.2.0"&gt;https://svn.wso2.org/repos/wso2/branches/carbon/3.2.0&lt;/a&gt;’&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-SnLFFrh4bQ0/TqFSHwzotyI/AAAAAAAAB3w/_u9ux4og7oc/s1600-h/image13.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-cnwvCtTTrW4/TqFSItI8mJI/AAAAAAAAB34/Nt6pjB0GZ5s/image_thumb11.png?imgmax=800" width="382" height="297" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Let increase java heap size to avoid such below errors &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-e0faXHeYKIY/TqFSJE3VboI/AAAAAAAAB4A/OiYcDWUrY4w/s1600-h/image1%25255B7%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-LGZv2mhnuF4/TqFSJ0vFQeI/AAAAAAAAB4I/5Rdb2EMK0rI/image1_thumb%25255B14%25255D.png?imgmax=800" width="517" height="121" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;set MAVEN_OPTS=-Xmx2048m -Xms512m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=1024m&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#000000"&gt;You can set this environment variable &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Then go to branch directory&amp;#160; and type &lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;mvn clean install&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-ChRMsAoi2Rc/TqFSKZFj1SI/AAAAAAAAB4Q/wmLhjZEvfQM/s1600-h/image%25255B8%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-G6DJAv3UlO8/TqFSLWCpksI/AAAAAAAAB4Y/rkLCarwK1xo/image_thumb%25255B4%25255D.png?imgmax=800" width="470" height="355" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Enjoy you meals and play some games in this time because it will take time. but look in to PC randomly to check is there any brakes in building.&lt;/p&gt;  &lt;p&gt;some time you need&amp;#160;&amp;#160; ‘3.2.2’ version to build rather than default one. &lt;/p&gt;  &lt;p&gt;If so go to ‘C:\WSO2\Branches\patch-releases\’ (Where you get wso2 carbon branch) in this directory we can find the version you need, I need 3.2.2 &lt;/p&gt;  &lt;p&gt;so make, We need maven clean install so type&lt;/p&gt;  &lt;p&gt;mvn clean install &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font style="background-color: #cccccc" color="#000000" size="3"&gt;&lt;strong&gt;&lt;u&gt;Tips for building&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;if it say can’t delet a file then go to dir type this with file name&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;del filename.extension &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;if It stop on particular place start from there. (eg: start from abdera-il8n)&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;mvn clean install –Dmaven.test.skip=true -rf :abdera-i18n&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Some time you do not need test, so skip by this &lt;/p&gt;  &lt;pre&gt;&lt;code&gt;&lt;font color="#0000ff"&gt;mvn clean install -Dmaven.test.skip=true&lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;font color="#333333"&gt;to build offline &lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;font color="#0000ff"&gt;mvn clean install –o&lt;/font&gt;&lt;/pre&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-7525369961502699793?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/7525369961502699793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=7525369961502699793' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7525369961502699793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7525369961502699793'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/10/building-carbon-from-windows-7.html' title='Building Carbon Branch from Windows 7'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/-LYWaad8D_D4/TqFSGKefRuI/AAAAAAAAB3Y/IhFmWcXAufQ/s72-c/image_thumb%25255B10%25255D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-8010491596996691115</id><published>2011-10-17T05:12:00.001-07:00</published><updated>2011-10-17T05:12:38.515-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Windows to Linux Bridge,</title><content type='html'>&lt;p&gt;I am currently working on a machine tat has Ubuntu 11 and windows 7. I need to get some file from Ubuntu with going to it (restarting)   &lt;br /&gt;Here is DiskInternals Linux Reader that I used for it. Linux Reader is 100% free application.&lt;/p&gt;  &lt;p&gt;This program make bridge between Windows and Ext2/Ext3/Ext4, HFS and ReiserFS file systems. Program provides for read-only access and does not allow you to make records in file system partitions. I can get save that folder or file to my windows and can do edit need. It will not affect the work of Linux later.&lt;/p&gt;  &lt;p&gt;Download it &lt;a href="http://www.diskinternals.com/download/Linux_Reader.exe"&gt;http://www.diskinternals.com/download/Linux_Reader.exe&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I&lt;a href="http://lh4.ggpht.com/-NhHZBHPyfX4/TpwbqJy_ngI/AAAAAAAAB2g/85QidQhNrxY/s1600-h/image%25255B14%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-2KBk3YcVyhA/Tpwbq3GZTSI/AAAAAAAAB2o/q6-rMk838Tc/image_thumb%25255B6%25255D.png?imgmax=800" width="573" height="310" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I am looking in to Linux file from windows 7 &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-uVHPOHKVOqc/TpwbruxR0wI/AAAAAAAAB2w/dzTshF4ykv4/s1600-h/image%25255B13%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-tNP45DmJU34/TpwbsME9J_I/AAAAAAAAB20/MFJq05_ebyw/image_thumb%25255B5%25255D.png?imgmax=800" width="334" height="202" /&gt;&lt;/a&gt;&lt;a href="http://lh6.ggpht.com/--m5ZFYFhXks/TpwbsqYnQeI/AAAAAAAAB3A/IYb7_0MPJho/s1600-h/image%25255B8%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-Wc4RwEWdPOo/TpwbtUHGACI/AAAAAAAAB3I/bDQVXOBxdjw/image_thumb%25255B2%25255D.png?imgmax=800" width="244" height="197" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Getting Linux files in to windows 7&lt;/p&gt;  &lt;p&gt;It is very simple work. &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-8010491596996691115?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/8010491596996691115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=8010491596996691115' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8010491596996691115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8010491596996691115'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/10/windows-to-linux-bridge.html' title='Windows to Linux Bridge,'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/-2KBk3YcVyhA/Tpwbq3GZTSI/AAAAAAAAB2o/q6-rMk838Tc/s72-c/image_thumb%25255B6%25255D.png?imgmax=800' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-4192981993374971479</id><published>2011-10-11T21:49:00.001-07:00</published><updated>2011-10-11T21:49:01.355-07:00</updated><title type='text'>Hello world with jQuery Mobile</title><content type='html'>&lt;p align="justify"&gt;jQuery Mobile is touch-friendly web UI developmentframework by the jQuery project team. It is compatibale with a wide variety of smartphones and tablets. It is compatible with other mobile app frameworks and platforms such as PhoneGap. It is having Dual license GPL or MIT. It gives&amp;#160; High Quality on iOS from version 3.1.3, Symbian S60 v5.0, Symbian UIQ v3.2, BlackBerry OS 6.0, Android v1.5, Windows Mobile v7.0 and webOS 1.4.1 by Native Mobile browser support.&lt;/p&gt;  &lt;p align="justify"&gt;jQuery Mobile relies on HTML5 data-* attributes to support the various UI elements, transitions, and page structure. They are silently discarded by browsers that don't support them.&lt;/p&gt;  &lt;p&gt;Let us write Hello World with jQuery Mobile    &lt;br /&gt;Download jQuery Mobile&amp;#160; from &lt;a href="http://jquerymobile.com/download/"&gt;http://jquerymobile.com/download/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Here is header section of html file &lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;lt;head&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;title&amp;gt;jQuery Mobile &amp;lt;/title&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;link href=&amp;quot;jquery.mobile/jquery.mobile.min.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; /&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;script src=&amp;quot;jquery.mobile/jquery-1.6.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;script src=&amp;quot;jquery.mobile/jquery.mobile.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;       &lt;br /&gt;&amp;lt;/head&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;HTML head section we load three jQuery Mobile components:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;jQuery Core library — The core jQuery library &lt;/li&gt;    &lt;li&gt;jQuery Mobile library — The mobile-specific part of the jQuery framework &lt;/li&gt;    &lt;li&gt;jQuery Mobile CSS — The CSS that defines the core jQuery Mobile UI elements &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Here is body section&lt;/p&gt;  &lt;p&gt;Defining a page block &lt;font color="#0000ff"&gt;&amp;lt;div data-role=&amp;quot;page&amp;quot;&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Note:    &lt;br /&gt;&lt;font color="#0000ff"&gt;&amp;lt;div data-role=&amp;quot;page&amp;quot; id=&amp;quot;page1&amp;quot;&amp;gt;      &lt;br /&gt;&lt;/font&gt;The id attribute is necessary only if local multiple page blocks reside on the same HTML file document.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;The next couple of code listings show how to define the different header, content, and footer sections of the page. &lt;/p&gt;  &lt;p&gt;Here is full code, &lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;lt;html&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;head&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;title&amp;gt;jQuery Mobile &amp;lt;/title&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;link href=&amp;quot;jquery.mobile/jquery.mobile.min.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; /&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;script src=&amp;quot;jquery.mobile/jquery-1.6.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;script src=&amp;quot;jquery.mobile/jquery.mobile.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;       &lt;br /&gt;&amp;lt;/head&amp;gt;       &lt;br /&gt;&amp;lt;body&amp;gt; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;lt;div data-role=&amp;quot;page&amp;quot;&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;div data-role=&amp;quot;header&amp;quot; data-theme=&amp;quot;a&amp;quot;&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;h1&amp;gt;The title&amp;lt;/h1&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/div&amp;gt;&amp;lt;!-- /header --&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;div data-role=&amp;quot;content&amp;quot;&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;p&amp;gt;The content&amp;lt;/p&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/div&amp;gt;&amp;lt;!-- /content --&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;div data-role=&amp;quot;footer&amp;quot;&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;h4&amp;gt;The Footer&amp;lt;/h4&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/div&amp;gt;&amp;lt;!-- /Footer --&amp;gt;       &lt;br /&gt;&amp;lt;/div&amp;gt;&amp;lt;!-- /page --&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;lt;/body&amp;gt;      &lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Host it even in local server and test it, Here I am testing from iPhone 4.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-XAi86Pn4dGo/TpUcJ3yJATI/AAAAAAAAB2Q/eqM8tWu2iLQ/s1600-h/photo%25255B5%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="photo" border="0" alt="photo" src="http://lh3.ggpht.com/-ld2Dg7QA17E/TpUcOOoV-5I/AAAAAAAAB2Y/0NVVMdXneXw/photo_thumb%25255B3%25255D.png?imgmax=800" width="446" height="299" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-4192981993374971479?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/4192981993374971479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=4192981993374971479' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4192981993374971479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4192981993374971479'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/10/hello-world-with-jquery-mobile.html' title='Hello world with jQuery Mobile'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/-ld2Dg7QA17E/TpUcOOoV-5I/AAAAAAAAB2Y/0NVVMdXneXw/s72-c/photo_thumb%25255B3%25255D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-4657028467683734325</id><published>2011-10-04T21:41:00.000-07:00</published><updated>2011-10-04T21:41:03.272-07:00</updated><title type='text'>Shifting from Maven 3 to 2</title><content type='html'>&lt;br /&gt;I was building WSO2 carbon trunk (maven 3) and carbon branch (maven 2) so here i will post how do this shifting in&amp;nbsp;Ubuntu&lt;br /&gt;&lt;br /&gt;Download Maven 2.2 from here &lt;a href="http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.2.1-bin.tar.gz"&gt;http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.2.1-bin.tar.gz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;$ t&lt;span class="Apple-style-span" style="color: blue;"&gt;ar -xzvf apache-maven-2.2.1-bin.tar.gz&amp;nbsp;&lt;/span&gt;&lt;br /&gt;…. this command will unpacks Maven&lt;br /&gt;&lt;br /&gt;$ &lt;span class="Apple-style-span" style="color: blue;"&gt;sudo mkdir /usr/local/apache-maven/maven2&lt;/span&gt;&lt;br /&gt;&amp;nbsp;… creates a maven sub-folder in the usr/local/ folder&lt;br /&gt;&lt;br /&gt;$ &lt;span class="Apple-style-span" style="color: blue;"&gt;sudo cp -R apache-maven-2.2.1 /usr/local/apache-maven/maven2&lt;/span&gt;&lt;br /&gt;&amp;nbsp;…. copies extraced Maven files to the new sub-folder.&lt;br /&gt;&lt;br /&gt;Add the Maven 2 PATH variables to the environment file.&lt;br /&gt;$ &lt;span class="Apple-style-span" style="color: blue;"&gt;sudo gedit /etc/environment&amp;nbsp;&lt;/span&gt;&lt;br /&gt;… to edit the environment file.&lt;br /&gt;&lt;br /&gt;Two changes required:&lt;br /&gt;Firstly add the following lines.&lt;br /&gt;JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.26"&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;M2_HOME=”/usr/local/apache-maven/maven2/apache-maven-2.2.1″&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;MAVEN_HOME=”/usr/local/apache-maven/maven2/apache-maven-2.2.1″&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;M2=”/usr/local/apache-maven/maven2/apache-maven-2.2.1/bin”&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Secondly change the top line for PATH. It should look like this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/&lt;span class="Apple-style-span" style="color: blue;"&gt;usr/local/apache-maven/maven2/apache-maven-2.2.1/bin&lt;/span&gt;”&lt;br /&gt;&lt;br /&gt;Let is check the Installation of maven 2,&lt;br /&gt;Logout:&lt;br /&gt;Log back in to the above user&lt;br /&gt;&lt;br /&gt;check the maven version $ &lt;span class="Apple-style-span" style="color: blue;"&gt;mvn –version&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-TMqKdB_TUQo/Tovejt54EkI/AAAAAAAAB2M/mrHSmEt7wz4/s1600/mavn+.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="120" src="http://1.bp.blogspot.com/-TMqKdB_TUQo/Tovejt54EkI/AAAAAAAAB2M/mrHSmEt7wz4/s400/mavn+.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&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/1590365593679599766-4657028467683734325?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/4657028467683734325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=4657028467683734325' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4657028467683734325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4657028467683734325'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/10/shifting-from-maven-3-to-2.html' title='Shifting from Maven 3 to 2'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-TMqKdB_TUQo/Tovejt54EkI/AAAAAAAAB2M/mrHSmEt7wz4/s72-c/mavn+.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-2165357453816968971</id><published>2011-10-02T20:10:00.001-07:00</published><updated>2011-10-02T20:10:23.700-07:00</updated><title type='text'>October 4 to iPhone 5?4s?</title><content type='html'>October 4 is expected to be only the announcement date of the new iPhone. October 14 is the one you’ll want to put aside for queuing outside your nearest Apple store. If Apple uses the announcement, then October 14 or 15 could see the new iPhone reach the first consumers.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;- Posted using BlogPress from my iPhone4&lt;br /&gt;&lt;p class='blogpress_location'&gt;Location:&lt;a href='http://maps.google.com/maps?q=Jayantha%20Mallimarachchi%20Mawatha,Colombo,Sri%20Lanka%406.953727%2C79.874204&amp;z=10'&gt;Jayantha Mallimarachchi Mawatha,Colombo,Sri Lanka&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-2165357453816968971?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/2165357453816968971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=2165357453816968971' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2165357453816968971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2165357453816968971'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/10/october-4-to-iphone-54s.html' title='October 4 to iPhone 5?4s?'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-1024722383537911721</id><published>2011-09-26T22:01:00.001-07:00</published><updated>2011-10-25T04:13:22.413-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WSO2 Carbon'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><category scheme='http://www.blogger.com/atom/ns#' term='MAVEN'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title type='text'>Installing Maven in windows 7</title><content type='html'>1. Download MAVEN &lt;a href="http://maven.apache.org/download.html" target="_blank"&gt;http://maven.apache.org/&lt;/a&gt;&lt;br /&gt;2. Unzip it and rename it to ‘maven’&lt;br /&gt;3.Set environmental variables JAVA_HOME to your Java environment, MAVEN_HOME to the directory you uncompressed, to do it on command prompt type this (Assume Ant is installed in E:\maven\.)&lt;br /&gt;&lt;span style="color: blue;"&gt;set MAVEN_HOME=E:\maven     &lt;br /&gt;set JAVA_HOME=D:\Program Files\Java\jdk1.6.0_03      &lt;br /&gt;set PATH=%PATH%;%MAVEN_HOME%\bin&lt;/span&gt;&lt;br /&gt;In windows 7 you can go to Control Panel\All Control Panel Items\System or right click on&amp;nbsp; Computer and then to “Advance system setting”   &lt;br /&gt;-Choose Advanced Tab    &lt;br /&gt;-Press&amp;nbsp; Environtmen Variables Button    &lt;br /&gt;-In the System Variables, click New Button&lt;br /&gt;Give the Variable Name:&lt;span style="color: blue;"&gt;MAVEN_HOME     &lt;/span&gt;Give the Value: &lt;span style="color: blue;"&gt;E:\maven     &lt;/span&gt;Click OK&lt;br /&gt;&lt;br /&gt;Then,we’ll add new MAVEN_HOME path,    &lt;br /&gt;And Click again on New Button if you do not have ‘path’ Variable in there, if so select it and edit as    &lt;br /&gt;Give the Variable Name:&lt;span style="color: blue;"&gt;path     &lt;/span&gt;Give the Value &lt;span style="color: blue;"&gt;D:\Program Files\Java\jdk1.6.0_03\bin;%MAVEN_HOME%\bin     &lt;/span&gt;Click OK&lt;br /&gt;4. Check wheter MAVEN works correctly or not.   &lt;br /&gt;In the command prompt, type:    &lt;br /&gt;&lt;span style="color: blue;"&gt;mvn-version&lt;/span&gt;&lt;br /&gt;I got Apache Maven 3.0.3&lt;br /&gt;what on you?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-1024722383537911721?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/1024722383537911721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=1024722383537911721' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/1024722383537911721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/1024722383537911721'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/09/installing-maven-in-windows-7.html' title='Installing Maven in windows 7'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-800991540588018280</id><published>2011-09-18T02:49:00.000-07:00</published><updated>2011-09-19T02:50:19.777-07:00</updated><title type='text'>Old days in Rhino</title><content type='html'>&lt;br /&gt;I try some old days in Rhino, I am going to blog on Rhino (JavaScript for Java). Rhino converts JavaScript scripts into java classes. it works as compiler as well as interpreter. Stable release&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;1.7R3 was in May 9, 2011.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;What is Rhino?&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;Rhino is an open source JavaScript engine. It is developed entirely in Java and managed by the Mozilla Foundation.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;How to setup it in Ubuntu 11?&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;download rhino &lt;a href="http://www.mozilla.org/rhino/download.html"&gt;http://www.mozilla.org/rhino/download.html&lt;/a&gt;&lt;/li&gt;&lt;li&gt;unzip it and go in to that Folder by terminal&lt;a href="http://4.bp.blogspot.com/-lfjJf-nWuFc/TncPsXPYJ2I/AAAAAAAAB2E/kv6Pdmeee2I/s1600/1rhino1_7R2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="258" src="http://4.bp.blogspot.com/-lfjJf-nWuFc/TncPsXPYJ2I/AAAAAAAAB2E/kv6Pdmeee2I/s400/1rhino1_7R2.png" width="400" /&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;In there run js.jar file by typeing 'java -jar js.jar'&lt;/li&gt;&lt;li&gt;Type print("Hello world")&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-fIs7J2s1AVo/TncPt3QbbBI/AAAAAAAAB2I/JzaDBdvAwiY/s1600/2rhino1_7R2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="109" src="http://4.bp.blogspot.com/-fIs7J2s1AVo/TncPt3QbbBI/AAAAAAAAB2I/JzaDBdvAwiY/s400/2rhino1_7R2.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;yap, it work!!&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-800991540588018280?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/800991540588018280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=800991540588018280' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/800991540588018280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/800991540588018280'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/09/old-days-in-rhino.html' title='Old days in Rhino'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-lfjJf-nWuFc/TncPsXPYJ2I/AAAAAAAAB2E/kv6Pdmeee2I/s72-c/1rhino1_7R2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-704167106358316191</id><published>2011-09-12T11:52:00.001-07:00</published><updated>2011-09-12T11:52:22.118-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WSO2 Con'/><category scheme='http://www.blogger.com/atom/ns#' term='WSO2'/><title type='text'>Pre-conference Tutorials on WSO2 Con 2011</title><content type='html'>&lt;p&gt;I participated Pre-conference Tutorials on WSO2 Con 2011, today (12/09/2011). I followed track 3 in there and those Pre-conference Tutorials happen at Taj Samudra Hotel, in Colombo, Sri Lanaka&lt;/p&gt;  &lt;p&gt;it was good experience for me, It remind me Microsoft TechEd 2010, Sunmicro summit that was happen 5 or 6 years ago. &lt;/p&gt;  &lt;p&gt;Here are some I went and there were four more, but I pick below tracks and it was matched to me.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3"&gt;'Introduction to OSGi'&lt;/font&gt;&lt;/strong&gt; &lt;/p&gt;  &lt;p&gt;was done by Project Manger, Sameera Jayasoma &amp;amp; Pradeep Fernando.   &lt;br /&gt;The need for OSGi and issues in Jar    &lt;br /&gt;OSGi concepts around the Module layer    &lt;br /&gt;Lifecycle layer and Services layer    &lt;br /&gt;Tooling support for OSGi and domos of them    &lt;br /&gt;Service listeners&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-3xPEScaTJGc/Tm5UnxWeftI/AAAAAAAAB1Q/pVnC7MI9TV0/s1600-h/IMG_0916%25255B3%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="IMG_0916" border="0" alt="IMG_0916" src="http://lh3.ggpht.com/-8FOwVOzBI_I/Tm5UolT2NKI/AAAAAAAAB1U/8c5lABStdSI/IMG_0916_thumb.jpg?imgmax=800" width="244" height="183" /&gt;&lt;/a&gt;&lt;a href="http://lh3.ggpht.com/-AxMhLkTgq4M/Tm5UqioaehI/AAAAAAAAB1Y/TgOrh46EZr8/s1600-h/IMG_0917%25255B3%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="IMG_0917" border="0" alt="IMG_0917" src="http://lh5.ggpht.com/-fiRU73-foV0/Tm5UrWhpAWI/AAAAAAAAB1c/W8NB8AJkfmk/IMG_0917_thumb.jpg?imgmax=800" width="244" height="183" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;(I will write about OSGi in later)&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3"&gt;'Introduction to the WSO2 Carbon Platform'&lt;/font&gt;&lt;/strong&gt; &lt;/p&gt;  &lt;p&gt;was done by Afkham Azeez, Director of Architecture, WSO2 and Supun Malinga   &lt;br /&gt;An overview of the WSO2 Carbon architecture    &lt;br /&gt;The advantages of a modular framework    &lt;br /&gt;Platform capabilities    &lt;br /&gt;A comprehensive demo on adding component is created, plugged into the platform&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-foEaPI9gu54/Tm5UtDPWBWI/AAAAAAAAB1g/rDS7F3UhukM/s1600-h/IMG_0922%25255B3%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="IMG_0922" border="0" alt="IMG_0922" src="http://lh3.ggpht.com/-Xsn_TW-0c0c/Tm5Uuv0y2mI/AAAAAAAAB1k/vzvqbEqf3ms/IMG_0922_thumb.jpg?imgmax=800" width="244" height="183" /&gt;&lt;/a&gt;&lt;a href="http://lh5.ggpht.com/-M9g6X8MY6u4/Tm5UybvF-pI/AAAAAAAAB1o/vrn-9PX7Mtk/s1600-h/IMG_0923%25255B3%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="IMG_0923" border="0" alt="IMG_0923" src="http://lh6.ggpht.com/-Ba3Wy4r9SRY/Tm5UzMJzvLI/AAAAAAAAB1s/ZHdT5rdeli8/IMG_0923_thumb.jpg?imgmax=800" width="244" height="183" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;There were good lunch and teas also. &lt;img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://lh5.ggpht.com/-DmZhReLGxbs/Tm5Uzux0b2I/AAAAAAAAB1w/X0zlVOFySsk/wlEmoticon-smile%25255B2%25255D.png?imgmax=800" /&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-voXdwdPf94c/Tm5U1nbDXwI/AAAAAAAAB10/JkeBh-c2Ut0/s1600-h/IMG_0921%25255B5%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="IMG_0921" border="0" alt="IMG_0921" src="http://lh5.ggpht.com/-LQckSXacMPE/Tm5U2TkBmxI/AAAAAAAAB14/TfAL7W04B0Y/IMG_0921_thumb%25255B2%25255D.jpg?imgmax=800" width="246" height="185" /&gt;&lt;/a&gt;&lt;a href="http://lh6.ggpht.com/-X-MyCmueyxg/Tm5U4GPXXyI/AAAAAAAAB18/n2iHoUE8BVo/s1600-h/IMG_0924%25255B4%25255D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="IMG_0924" border="0" alt="IMG_0924" src="http://lh6.ggpht.com/-NTARtD_TYvU/Tm5U5OLjbuI/AAAAAAAAB2A/tPToOx2CixY/IMG_0924_thumb%25255B1%25255D.jpg?imgmax=800" width="242" height="181" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-704167106358316191?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/704167106358316191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=704167106358316191' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/704167106358316191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/704167106358316191'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/09/pre-conference-tutorials-on-wso2-con.html' title='Pre-conference Tutorials on WSO2 Con 2011'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/-8FOwVOzBI_I/Tm5UolT2NKI/AAAAAAAAB1U/8c5lABStdSI/s72-c/IMG_0916_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-4548525965122943018</id><published>2011-09-06T23:32:00.000-07:00</published><updated>2011-09-06T23:32:04.789-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WSO2'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Back to Ubuntu with WSO2</title><content type='html'>I just start on ubuntu machine as I walked in to WSO2. So Here I will write some simple basic ubuntu teminal commands codes that I am using and some of work I did to ubuntu to my stlye.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Maximize, Minimize and Close&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I have the habit of using Maximize, Minimize and Close buttons in Right Corner, so I have to change default windows button layout of Ubuntu 11.04.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Open gconf-editor (hit ALT+F2 and enter ‘gconf-editor’)&lt;/li&gt;&lt;li&gt;Go to apps -&amp;gt; Metacity -&amp;gt; General and select button layout field&lt;/li&gt;&lt;li&gt;Change the default value in to 'menu:maximize,minimize,close'&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-bxmJ7-tLN8I/TmcPHmaq6BI/AAAAAAAAB1I/Jr1isIEBoMo/s1600/day1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="97" src="http://2.bp.blogspot.com/-bxmJ7-tLN8I/TmcPHmaq6BI/AAAAAAAAB1I/Jr1isIEBoMo/s400/day1.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Then I check for java, sure It is not there yet, because machine is new one. Then I open Terminal (CTRL+ALT+T) and type javac, opss. it is not there &lt;br /&gt;so i used this command to install java.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;sudo apt-get install openjdk-6-jdk&lt;/span&gt;&lt;br /&gt;java -version&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-4548525965122943018?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/4548525965122943018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=4548525965122943018' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4548525965122943018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4548525965122943018'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/09/back-to-ubuntu-with-wso2.html' title='Back to Ubuntu with WSO2'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-bxmJ7-tLN8I/TmcPHmaq6BI/AAAAAAAAB1I/Jr1isIEBoMo/s72-c/day1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-540374286521971555</id><published>2011-08-25T07:37:00.001-07:00</published><updated>2011-08-25T07:37:08.382-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Using Putty from Windows to Linux Server</title><content type='html'>&lt;p&gt;I think it is important to know how how with Putty, truly it is not big work, But know is important. There fore I am write this.&lt;/p&gt;  &lt;p&gt;I am in windows 7 machine and my remote server is linux server so I have to transfer my files to it.&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;strong&gt;Passing a file to server&lt;/strong&gt;&lt;/font&gt; by&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;pscp C:/wamp/www/offlineAPI5.1/OfflineAPI5.5-readingImages.zip&amp;#160; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="mailto:sh@192.248.15.237:/home/shalika/localStorage/version5.1"&gt;&lt;font color="#0000ff"&gt;sh@192.248.15.237:/home/shalika/localStorage/version5.1&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-0vIigrjH-Tg/TlZd10vjaxI/AAAAAAAAB0w/dsa0XVi3vMs/s1600-h/image6.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-Mjl9gayxmsg/TlZd6skp9HI/AAAAAAAAB00/HhBApyyiIuI/image_thumb2.png?imgmax=800" width="573" height="291" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I can not do it to all my files so here is the way to pass the folder&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;PSCP -r C:/wamp/www/offlineAPI5.1 shalika@192.248.15.237:/home/shalika/localStorage/version5.1&lt;/font&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-fIc1VBa_R5M/TlZd-QQdwQI/AAAAAAAAB04/M3epaZybvI0/s1600-h/image11.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-vfqdhAMZRvA/TlZeD8-KPWI/AAAAAAAAB08/CCC4MnAiXAc/image_thumb5.png?imgmax=800" width="542" height="275" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-540374286521971555?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/540374286521971555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=540374286521971555' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/540374286521971555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/540374286521971555'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/08/using-putty-from-windows-to-linux.html' title='Using Putty from Windows to Linux Server'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/-Mjl9gayxmsg/TlZd6skp9HI/AAAAAAAAB00/HhBApyyiIuI/s72-c/image_thumb2.png?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-5981064834021377469</id><published>2011-06-20T11:42:00.001-07:00</published><updated>2011-06-20T11:42:39.254-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='MPJ'/><title type='text'>MPJ Express in Multicore Configuration</title><content type='html'>&lt;p&gt;MPJ Express is a message passing library that be can be used by the application developers to develop and execute parallel Java applications on compute clusters or network of computers.MPJ Express can be configured in two ways:&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;&lt;strong&gt;&lt;u&gt;Multicore Configuration&lt;/u&gt;&lt;/strong&gt;: This configuration is used by developers who want to execute their parallel Java applications on multicore or shared memory machines (laptops and desktops).    &lt;br /&gt;&lt;strong&gt;&lt;u&gt;Cluster Configuration&lt;/u&gt;&lt;/strong&gt;: This configuration is used by developers who want to execute their parallel Java applications on distributed memory platforms including clusters and network of computers.&lt;/p&gt;  &lt;p&gt;Now we will try some, first develop parallel applications on desktops/laptops using multicore configuration and then take the same code to distributed memory platforms including clusters. First setup this in PC. I having windows 7 and here is the steps.&lt;/p&gt;  &lt;p&gt;Pre-requisites   &lt;br /&gt;Java 1.5 (stable) or higher (I have java 1.6)&lt;/p&gt;  &lt;p&gt;Download MPJ Express and unpack it.   &lt;br /&gt;2. Set MPJ_HOME and MPJ_PATH environmental variables. Right-click My Computer-&amp;gt;Properties-&amp;gt;Advanced tab-&amp;gt;Environment Variables and export&amp;#160; the following system variables (User variables are not enough)    &lt;br /&gt;Set the value of MPJ_HOME = c:\mpj (assuming mpj is in c:\    &lt;br /&gt;Append the c:\mpj\bin directory to the MPJ_PATH variable &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-k0Zi2Mau-Mg/Tf-TyBg3fNI/AAAAAAAAByE/5htW_f0lL80/s1600-h/image%25255B12%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-bgws7IdGqN0/Tf-T5a6LUQI/AAAAAAAAByI/QmaIz9fuzYE/image_thumb%25255B4%25255D.png?imgmax=800" width="344" height="150" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-_Ja0ooNUZc4/Tf-T7ur5NpI/AAAAAAAAByM/7fhbsF1e-q8/s1600-h/image%25255B13%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-xVQdTeGVtTI/Tf-T-J05zPI/AAAAAAAAByQ/D1sP_Cb7sng/image_thumb%25255B5%25255D.png?imgmax=800" width="345" height="150" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Then go to MPJ bin folder and right click on “installmpjd-windows.bat” and run as administrator.&lt;a href="http://lh3.ggpht.com/-3Ml7VammXVU/Tf-UBD9nmxI/AAAAAAAAByU/Y2OeoRDzMi8/s1600-h/image%25255B19%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" align="left" src="http://lh6.ggpht.com/-e6776F-BJ9M/Tf-UFZxF9AI/AAAAAAAAByY/EhFB2xDhCBo/image_thumb%25255B11%25255D.png?imgmax=800" width="391" height="246" /&gt;&lt;/a&gt;    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;For : Run “ %MPJ_HOME%/bin/installmpjd-windows.bat”&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-ZqFOF3OGQZs/Tf-UItkPNzI/AAAAAAAAByc/3x042OzLbzc/s1600-h/image%25255B23%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-n0Rog_wla4Y/Tf-UKV-he8I/AAAAAAAAByg/Md716hWLXQE/image_thumb%25255B13%25255D.png?imgmax=800" width="357" height="185" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;After that go to Control-Panel-&amp;gt;Administrative Tools-&amp;gt;Services-&amp;gt; MPJ Daemon and start the service.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-ai10UlajmtE/Tf-UQEyZhnI/AAAAAAAAByk/Fe5XBHAMI2I/s1600-h/image%25255B25%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-Yjzp1Ja2Nmo/Tf-UUrHknwI/AAAAAAAAByo/ot3YfkCco5I/image_thumb%25255B15%25255D.png?imgmax=800" width="520" height="310" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Open note pad and add below code and save as “HelloWorld.java”&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;import mpi.*;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;public class HelloWorld {&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;public static void main(String args[]) throws Exception { &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;MPI.Init(args);&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;int me = MPI.COMM_WORLD.Rank();&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;int size = MPI.COMM_WORLD.Size();&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;System.out.println(&amp;quot;Hi I am from &amp;lt;&amp;quot;+me+&amp;quot;&amp;gt;&amp;quot;);&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;MPI.Finalize();&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;}&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;}&lt;/font&gt;&lt;/p&gt;          &lt;p&gt;open CMD in the file (“HelloWorld.java”) dir and type “&lt;font color="#0000ff"&gt;javac -cp .;%MPJ_HOME%/lib/mpj.jar HelloWorld.java&lt;/font&gt;” to compile the file &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-uRQQtHqJxBA/Tf-UX3KdUoI/AAAAAAAABys/P9npYHhOcYE/s1600-h/image%25255B29%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-dzHDg8PWsCY/Tf-UaCj27eI/AAAAAAAAByw/UYK7XjssVyI/image_thumb%25255B17%25255D.png?imgmax=800" width="530" height="111" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Use “&lt;font color="#0000ff"&gt;mpjrun.bat -np 4 HelloWorld&lt;/font&gt;” to excute the file &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/-3CzvzrEGks0/Tf-UeI_geTI/AAAAAAAABy0/1ncNMFsiktg/s1600-h/image%25255B33%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-Z-yi7127vLo/Tf-UhFS6URI/AAAAAAAABy4/2v1Rh0AG13c/image_thumb%25255B19%25255D.png?imgmax=800" width="531" height="149" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;give no of proceess to run and see the results&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-1zRn53-AwBI/Tf-UjJBKHEI/AAAAAAAABy8/FjnkUmTRi80/s1600-h/image%25255B37%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/-tempNECQhUQ/Tf-UmfvO8lI/AAAAAAAABzA/ppx6r-3Ot8k/image_thumb%25255B21%25255D.png?imgmax=800" width="526" height="148" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Now You know simple MPJ Express works… &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-5981064834021377469?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/5981064834021377469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=5981064834021377469' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/5981064834021377469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/5981064834021377469'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/06/mpj-express-in-multicore-configuration.html' title='MPJ Express in Multicore Configuration'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/-bgws7IdGqN0/Tf-T5a6LUQI/AAAAAAAAByI/QmaIz9fuzYE/s72-c/image_thumb%25255B4%25255D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-2961860400578905632</id><published>2011-06-19T07:58:00.001-07:00</published><updated>2011-06-19T07:58:21.996-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XMLHttpRequest'/><category scheme='http://www.blogger.com/atom/ns#' term='DOM'/><category scheme='http://www.blogger.com/atom/ns#' term='project'/><category scheme='http://www.blogger.com/atom/ns#' term='Java Script'/><title type='text'>Reading REST from DOM</title><content type='html'>&lt;p&gt;In our server REST web services return XML (eXtensible Markup Language). XML Maybe it is a little hard to understand, but XML does not DO anything. XML was created to structure, store, and transport information. So Here we also getting XML from our web services.&lt;/p&gt;  &lt;p&gt;Here is example that I am getting when I request my inbox from&amp;#160; our REST ful web services&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/-gu2sh6fv9p8/Tf4OS6vUXiI/AAAAAAAABwc/VvPWvGdB2n8/s1600-h/image%25255B6%25255D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/-jAgEmkMbFsg/Tf4OVfsYB6I/AAAAAAAABwg/2A2wmOKSktQ/image_thumb%25255B7%25255D.png?imgmax=800" width="558" height="460" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The &lt;strong&gt;&lt;u&gt;&lt;font size="2"&gt;XMLHttpRequest&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt; object is used to exchange data with a server (REST web services) behind the scenes.&lt;/p&gt;  &lt;p&gt;The XMLHttpRequest object can:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Update a web page without reloading the page (getting new data to user site no reloading) &lt;/li&gt;    &lt;li&gt;Request data from a server after the page has loaded (asking new emails from REST web services) &lt;/li&gt;    &lt;li&gt;Receive data from a server after the page has loaded (User is in box new email receiving, no reloading ) &lt;/li&gt;    &lt;li&gt;Send data to a server in the background (boosting all our web features) &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;So it leads me to used XMLHttpRequest to my module also.&lt;/p&gt;  &lt;p&gt;The &lt;strong&gt;&lt;u&gt;&lt;font size="2"&gt;XML DOM&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt; defines a standard way for accessing and manipulating XML documents.The XML DOM views an XML document as a tree-structure.All elements can be accessed through the DOM tree. XML DOM content (text and attributes) can be modified or deleted, and new elements can be created. The elements, their text, and their attributes are all known as nodes.Here are some common XMLHttpRequest Object Methods&lt;/p&gt;  &lt;table border="0" cellspacing="0" cellpadding="2" width="528"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="222"&gt;&lt;strong&gt;&lt;font size="2"&gt;Method&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/strong&gt;&lt;/td&gt;        &lt;td valign="top" width="304"&gt;&lt;strong&gt;&lt;font size="2"&gt;Description&lt;/font&gt;&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="222"&gt;         &lt;p&gt;abort()&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;       &lt;/td&gt;        &lt;td valign="top" width="304"&gt;         &lt;p&gt;Stops the current request&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="222"&gt;getAllResponseHeaders()&lt;/td&gt;        &lt;td valign="top" width="304"&gt;Returns complete set of headers (labels and values) as a string&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="222"&gt;getResponseHeader(&amp;quot;headerLabel&amp;quot;)&lt;/td&gt;        &lt;td valign="top" width="304"&gt;Returns the string value of a single header label&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="222"&gt;open(&amp;quot;method&amp;quot;, &amp;quot;URL&amp;quot;[, asyncFlag[, &amp;quot;userName&amp;quot;[, &amp;quot;password&amp;quot;]]])&lt;/td&gt;        &lt;td valign="top" width="304"&gt;Assigns destination URL, method, and other optional attributes of a pending request&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="222"&gt;send(content)&lt;/td&gt;        &lt;td valign="top" width="304"&gt;Transmits the request, optionally with postable string or DOM object data&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="222"&gt;setRequestHeader(&amp;quot;label&amp;quot;, &amp;quot;value&amp;quot;)&lt;/td&gt;        &lt;td valign="top" width="304"&gt;Assigns a label/value pair to the header to be sent with a request&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;All modern browsers have a built-in &lt;strong&gt;&lt;u&gt;&lt;font size="2"&gt;XML parser&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;.An XML parser converts an XML document into an XML DOM object - which can then be manipulated with a JavaScript.The following code fragment parses an REST web services resturn my recently recive email in my Inbox (XML document) into an XML DOM object:&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&lt;em&gt;if (window.XMLHttpRequest)        &lt;br /&gt;{// code for IE7+, Firefox, Chrome, Opera, Safari         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; xmlhttp=new XMLHttpRequest();         &lt;br /&gt;}         &lt;br /&gt;else         &lt;br /&gt;{// code for IE6, IE5         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; xmlhttp=new ActiveXObject(&amp;quot;Microsoft.XMLHTTP&amp;quot;);         &lt;br /&gt;}         &lt;br /&gt;xmlhttp.open(&amp;quot;POST&amp;quot;,&amp;quot;http:localhost:8081/DBmail/Madhuka/INBOX1.xml&amp;quot;,false);         &lt;br /&gt;xmlhttp.send();         &lt;br /&gt;xmlDoc=xmlhttp.responseXML;&lt;/em&gt;&lt;/font&gt;     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font size="2"&gt;XMLHttpRequest Object Properties&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Once a request has been sent, scripts can look to several properties that all implementations have in common, shown in below Table and all properties are read-only.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-dSi6hoSPJxo/Tf4OWuyerHI/AAAAAAAABwk/hqErIpbBd6M/s1600-h/image%25255B11%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-0HfEnz7Ta0Q/Tf4OYCtDzUI/AAAAAAAABwo/QLg1ftWbxBY/image_thumb%25255B15%25255D.png?imgmax=800" width="326" height="174" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;because I did call the my above method in Java script so in browser console we will call the JS method and try&amp;#160; some XML http Request object properties&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&lt;strong&gt;readyState&lt;/strong&gt;&lt;/font&gt; :&amp;#160;&amp;#160; Object status integer:    &lt;br /&gt;0 = uninitialized    &lt;br /&gt;1 = loading    &lt;br /&gt;2 = loaded    &lt;br /&gt;3 = interactive    &lt;br /&gt;4 = complete&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-9M7XTMQG2K8/Tf4OZbQfjpI/AAAAAAAABws/Tz4nAvP-nRE/s1600-h/image%25255B16%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-znaa8n3CjkU/Tf4OawsLiBI/AAAAAAAABww/imMF0wyxZBc/image_thumb%25255B22%25255D.png?imgmax=800" width="317" height="220" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;status is 4 it means complete&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;onreadystatechange &lt;/font&gt;&lt;/strong&gt;&amp;#160;&amp;#160; Event handler for an event that fires at every state change&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&lt;strong&gt;responseText&lt;/strong&gt;&lt;/font&gt;&amp;#160;&amp;#160;&amp;#160; String version of data returned from server process&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-DNqb65sy6Y0/Tf4OcJIc_OI/AAAAAAAABw0/4MIAaiHLVQQ/s1600-h/image%25255B21%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/-TrPR5X9BWw8/Tf4OdrNW91I/AAAAAAAABw4/NFOUzFGMLqE/image_thumb%25255B29%25255D.png?imgmax=800" width="333" height="285" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;responseXML&lt;/font&gt;&lt;/strong&gt;&amp;#160;&amp;#160;&amp;#160; DOM-compatible document object of data returned from server process&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/-_v2yGhPSTNQ/Tf4OetFu3LI/AAAAAAAABw8/b-iIBwngjpY/s1600-h/image%25255B26%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/-md_gnI2IIcM/Tf4OgLv_RyI/AAAAAAAABxA/tbBZjj0slkE/image_thumb%25255B35%25255D.png?imgmax=800" width="327" height="346" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;&lt;font color="#0000ff"&gt;&lt;strong&gt;status&lt;/strong&gt;&lt;/font&gt;&amp;#160;&amp;#160;&amp;#160; Numeric code returned by server, such as 404 for &amp;quot;Not Found&amp;quot; or 200 for &amp;quot;OK&amp;quot;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;statusText&lt;/font&gt;&lt;/strong&gt;&amp;#160;&amp;#160;&amp;#160; String message accompanying the status code&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/-BV_6SnaQkk0/Tf4Og65nZ3I/AAAAAAAABxE/j1InYfxAnIg/s1600-h/image%25255B31%25255D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/-mnd7MHUPsII/Tf4OieJBfRI/AAAAAAAABxI/cNL-DrDD38g/image_thumb%25255B41%25255D.png?imgmax=800" width="380" height="172" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now I think we have good idea on &lt;strong&gt;&lt;font size="2"&gt;&lt;u&gt;XMLHttpRequest&lt;/u&gt; object&lt;/font&gt;&lt;/strong&gt; to get Inbox email list xml to local storage in HTML5.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-2961860400578905632?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/2961860400578905632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=2961860400578905632' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2961860400578905632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2961860400578905632'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/06/reading-rest-from-dom.html' title='Reading REST from DOM'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/-jAgEmkMbFsg/Tf4OVfsYB6I/AAAAAAAABwg/2A2wmOKSktQ/s72-c/image_thumb%25255B7%25255D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-2963937650780296194</id><published>2011-06-07T10:33:00.001-07:00</published><updated>2011-06-07T10:33:07.907-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Common Language Runtime and Java Virtual Machine</title><content type='html'>&lt;p&gt;The Common Language Runtime (CLR - virtual machine for .NET) and the Java Virtual Machine (JVM) share similar architectures, but there are lots of differences. &lt;/p&gt;  &lt;p&gt;Both the CLR and the JVM manage an internal heap of memory that is used for allocations. Both VMs's heap are allocate memory from the operating system. The JVM places a fixed upper limit on the heap size. If the JVM heap growing beyond that limit, and no garbage can be collected and an OutOfMemoryError is thrown. The CLR has upper limit on the heap size. The CLR heap maximum size will be dependent on how much memory can be allocated from the operating system.&lt;/p&gt;  &lt;p&gt;When we looking on releasing allocated memory JVM is that it does not release allocated memory back to the operating system for the rest of the lifetime of the process. The CLR, on the other hand, will release allocated memory back to the operating system if it is no longer needed.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-2963937650780296194?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/2963937650780296194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=2963937650780296194' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2963937650780296194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2963937650780296194'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/06/common-language-runtime-and-java.html' title='Common Language Runtime and Java Virtual Machine'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-4970054423977895480</id><published>2011-05-23T09:21:00.001-07:00</published><updated>2011-05-23T09:21:48.362-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOM'/><category scheme='http://www.blogger.com/atom/ns#' term='Java Script'/><category scheme='http://www.blogger.com/atom/ns#' term='RESTful WS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>Using email as RESTful in DOM</title><content type='html'>&lt;p&gt;I want to read such xml&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;lt;DBMAIL&amp;gt;     &lt;br /&gt;&amp;lt;Function&amp;gt;FolderList&amp;lt;/Function&amp;gt;      &lt;br /&gt;&amp;lt;Status&amp;gt;Sucess&amp;lt;/Status&amp;gt;      &lt;br /&gt;&amp;lt;FolderList&amp;gt;      &lt;br /&gt;&amp;lt;folder&amp;gt;INBOX&amp;lt;/folder&amp;gt;      &lt;br /&gt;&amp;lt;folder&amp;gt;SENT&amp;lt;/folder&amp;gt;      &lt;br /&gt;&amp;lt;folder&amp;gt;OUTBOX&amp;lt;/folder&amp;gt;      &lt;br /&gt;&amp;lt;folder&amp;gt;TRASH&amp;lt;/folder&amp;gt;      &lt;br /&gt;&amp;lt;/FolderList&amp;gt;      &lt;br /&gt;&amp;lt;Untagged&amp;gt;Recent Flag List&amp;lt;/Untagged&amp;gt;      &lt;br /&gt;&amp;lt;/DBMAIL&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#333333"&gt;here is the Javascripte that I used for it&lt;/font&gt;&lt;/p&gt;  &lt;div id="codeSnippetWrapper" class="csharpcode-wrapper"&gt;   &lt;pre id="codeSnippet" class="csharpcode"&gt;&lt;span class="kwrd"&gt;function&lt;/span&gt; readFolders(){&lt;br /&gt;             &lt;br /&gt;    &lt;span class="kwrd"&gt;if&lt;/span&gt; (window.XMLHttpRequest)&lt;br /&gt;    {&lt;span class="rem"&gt;// code for IE7+, Firefox, Chrome, Opera, Safari&lt;/span&gt;&lt;br /&gt;        xmlhttp=&lt;span class="kwrd"&gt;new&lt;/span&gt; XMLHttpRequest();&lt;br /&gt;    }&lt;br /&gt;    &lt;span class="kwrd"&gt;else&lt;/span&gt;&lt;br /&gt;    {&lt;span class="rem"&gt;// code for IE6, IE5&lt;/span&gt;&lt;br /&gt;        xmlhttp=&lt;span class="kwrd"&gt;new&lt;/span&gt; ActiveXObject(&lt;span class="str"&gt;&amp;quot;Microsoft.XMLHTTP&amp;quot;&lt;/span&gt;);&lt;br /&gt;    }&lt;br /&gt;    xmlhttp.open(&lt;span class="str"&gt;&amp;quot;GET&amp;quot;&lt;/span&gt;,&lt;span class="str"&gt;&amp;quot;xml/folderlist.xml&amp;quot;&lt;/span&gt;,&lt;span class="kwrd"&gt;false&lt;/span&gt;);&lt;br /&gt;    xmlhttp.send();&lt;br /&gt;    xmlDoc=xmlhttp.responseXML; &lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;here I doing this in browser console &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;xmlDoc&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TdqJfWLF1jI/AAAAAAAABv8/QmBO6ZCq3jo/s1600-h/image%5B3%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TdqJg7cKsqI/AAAAAAAABwA/FO13nU9XGwE/image_thumb%5B1%5D.png?imgmax=800" width="451" height="248" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;to get the value of in xml&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;xmlDoc.getElementsByTagName(&amp;quot;Function&amp;quot;)[0].childNodes[0].nodeValue;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TdqJh8ezqgI/AAAAAAAABwE/Vf8ihoP62vE/s1600-h/image%5B7%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TdqJjJ2W14I/AAAAAAAABwI/9jUDf-wdjeM/image_thumb%5B3%5D.png?imgmax=800" width="436" height="234" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;How get nested one it easy too&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font color="#0000ff"&gt;xmlDoc.getElementsByTagName(&amp;quot;folder&amp;quot;)&lt;/font&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;this will return array&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TdqJkIHA27I/AAAAAAAABwM/mfiMH3We164/s1600-h/image%5B12%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TdqJlH4rokI/AAAAAAAABwQ/1sVF2uTPcXs/image_thumb%5B10%5D.png?imgmax=800" width="470" height="107" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;how to get that value only?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font color="#0000ff"&gt;x[0].childNodes[0].nodeValue&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TdqJlnrW1hI/AAAAAAAABwU/miTliy6dA70/s1600-h/image%5B17%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TdqJmkTLyQI/AAAAAAAABwY/0Z9Up7b9cQQ/image_thumb%5B19%5D.png?imgmax=800" width="249" height="58" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-4970054423977895480?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/4970054423977895480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=4970054423977895480' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4970054423977895480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4970054423977895480'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/05/using-email-as-restful-in-dom.html' title='Using email as RESTful in DOM'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_9Z2F35N9rxA/TdqJg7cKsqI/AAAAAAAABwA/FO13nU9XGwE/s72-c/image_thumb%5B1%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-754203038093964436</id><published>2011-05-17T23:57:00.001-07:00</published><updated>2011-05-17T23:57:10.204-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web Applications'/><category scheme='http://www.blogger.com/atom/ns#' term='iPhone'/><category scheme='http://www.blogger.com/atom/ns#' term='iPhone Web Apps'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>iPhone Web Apps Tutorial (part 1)</title><content type='html'>&lt;p&gt;All the hardcore Objective-C developers have been having a hard time writing apps for the iPhone. I too read a tutorial or two about developing for the iPhone, but its C—or a form of it—and it’s really hard to learn.&lt;/p&gt;  &lt;p&gt;But I now i was doing HTML5 offline project so I was thinking make web app for my iPOd. it is easy than creating web page.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font size="3"&gt;About the App&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The icon needs to be &lt;strong&gt;57px x 57px&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TdNtgJgKEjI/AAAAAAAABu8/Ex1sHCxNMEw/s1600-h/iphon_icon%5B4%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="iphon_icon" border="0" alt="iphon_icon" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TdNthNri7HI/AAAAAAAABvA/elPxbQNUM3Q/iphon_icon_thumb%5B2%5D.png?imgmax=800" width="61" height="61" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The iPhone will round the corners of us icon, create a dropshadow, and add a shine to whatever icon we use.&lt;/p&gt;  &lt;p&gt;It should be in &lt;strong&gt;PNG or JPG format&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;The startup screen needs to be &lt;strong&gt;320px x 460px&lt;/strong&gt; and should also be in PNG or JPG format.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TdNtiAtr3nI/AAAAAAAABvE/JNP4o1D4ats/s1600-h/startup%5B3%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="startup" border="0" alt="startup" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TdNtjGqP5yI/AAAAAAAABvI/SkkCm8yvDu4/startup_thumb%5B1%5D.png?imgmax=800" width="171" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Note&lt;/u&gt;&lt;/strong&gt;:    &lt;br /&gt;This is mobile app development so even though we are caching our stuff, it’s still a smart idea to keep our file sizes small then app run more faster.&lt;/p&gt;  &lt;p&gt;A screen size of 320px x 460px. When we are in web mode, it has a screen size of 320px x 356px. This can affect the user interface of your offline HTML5 app.&lt;/p&gt;  &lt;p&gt;Lets this OUT&lt;/p&gt;  &lt;p&gt;code :&lt;/p&gt;  &lt;p&gt;   &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;!&lt;/span&gt;&lt;span class="html"&gt;DOCTYPE&lt;/span&gt; &lt;span class="attr"&gt;html&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;html&lt;/span&gt; &lt;span class="attr"&gt;manifest&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;tetris.manifest&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;head&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;meta&lt;/span&gt; &lt;span class="attr"&gt;name&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;viewport&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;content&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;meta&lt;/span&gt; &lt;span class="attr"&gt;name&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;apple-mobile-web-app-capable&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;content&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;yes&amp;quot;&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;meta&lt;/span&gt; &lt;span class="attr"&gt;name&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;apple-mobile-web-app-status-bar-style&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;content&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;black&amp;quot;&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;link&lt;/span&gt; &lt;span class="attr"&gt;rel&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;apple-touch-icon&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;href&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;iphon_icon.png&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;link&lt;/span&gt; &lt;span class="attr"&gt;rel&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;apple-touch-startup-image&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;href&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;startup.png&amp;quot;&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;link&lt;/span&gt; &lt;span class="attr"&gt;rel&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;stylesheet&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;href&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;tetris.css&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;type&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;text/css&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;media&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;screen, mobile&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;title&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;main&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;charset&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;utf-8&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;title&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;offline Apps&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;title&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;head&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;body&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;   &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;h1&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;Madhuka &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;h1&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;   &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;h1&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;iPhone App&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;h1&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;   &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;h1&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt; Testing &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;h1&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;body&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;html&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;  &lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;There’s proprietary Apple markup on our HTML5 page. A brief explanation of each:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;  &lt;li&gt;&lt;code&gt;apple-mobile-web-app-capable&lt;/code&gt;: This is another tip-off that we want to be an offline app. &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;&lt;code&gt;apple-mobile-web-app-status-bar-style&lt;/code&gt;: This hides the status bar, and nav bar when the app is offline. &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;&lt;code&gt;apple-touch-icon&lt;/code&gt;:This is the pointer to the image that want to be the icon. &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;  &lt;li&gt;&lt;code&gt;apple-touch-startup-image&lt;/code&gt;: This is a url pointing to the startup image.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Here is app running on iPod 4G…..&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TdNtkTS8JGI/AAAAAAAABvM/DJIRO7A2yDU/s1600-h/IMG_0722%5B2%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="IMG_0722" border="0" alt="IMG_0722" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TdNtlck-n8I/AAAAAAAABvQ/m6n70RJX9gk/IMG_0722_thumb.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;App is running in Browser&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TdNtqzWAwSI/AAAAAAAABvU/SJxJU5qK10k/s1600-h/IMG_0725%5B2%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="IMG_0725" border="0" alt="IMG_0725" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TdNtsp62_hI/AAAAAAAABvY/bJM5I0kZ0sM/IMG_0725_thumb.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Here is our Web app (ipod have round the corners of us icon, create a dropshadow, and add a shine to our icon)&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TdNttxdFVdI/AAAAAAAABvc/JdJedGP8rcw/s1600-h/IMG_0727%5B2%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="IMG_0727" border="0" alt="IMG_0727" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TdNtuxkb7gI/AAAAAAAABvg/6hMa2gUFyDs/IMG_0727_thumb.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Here is our start up screen that we created&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TdNtv0wvMbI/AAAAAAAABvk/mKiTtf5BHVI/s1600-h/IMG_0726%5B2%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="IMG_0726" border="0" alt="IMG_0726" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TdNtw7W3-cI/AAAAAAAABvo/2e8ClMdXvYg/IMG_0726_thumb.png?imgmax=800" width="164" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Here is HTML codes… you can add for you need.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-754203038093964436?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/754203038093964436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=754203038093964436' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/754203038093964436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/754203038093964436'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/05/iphone-web-apps-tutorial-part-1.html' title='iPhone Web Apps Tutorial (part 1)'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_9Z2F35N9rxA/TdNthNri7HI/AAAAAAAABvA/elPxbQNUM3Q/s72-c/iphon_icon_thumb%5B2%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-1376644221520365573</id><published>2011-05-15T06:00:00.001-07:00</published><updated>2011-05-15T06:00:59.277-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XMLHttpRequest'/><category scheme='http://www.blogger.com/atom/ns#' term='ROR'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><category scheme='http://www.blogger.com/atom/ns#' term='RESTful WS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>Creating, Customizing XML with Ruby and Builder</title><content type='html'>&lt;p&gt;Recently, I needed to generate some xml for a rails 2.3 app. What was supposed to be a fast and easy, turned out to take much longer than expected. After all, rails already provides&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt; respond_to do |format|     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; format.html # index.html.erb      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; format.xml&amp;#160; { render :xml =&amp;gt; @emails }      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; end&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;It is return some this &lt;/p&gt;  &lt;p&gt;&lt;font color="#ffffff"&gt;&lt;font color="#000000"&gt;&amp;lt;emails type=&amp;quot;array&amp;quot;&amp;gt;       &lt;br /&gt;&amp;lt;email&amp;gt;        &lt;br /&gt;&amp;lt;created-at type=&amp;quot;datetime&amp;quot;&amp;gt;2011-05-15T06:22:07Z&amp;lt;/created-at&amp;gt;        &lt;br /&gt;&amp;lt;id type=&amp;quot;integer&amp;quot;&amp;gt;1&amp;lt;/id&amp;gt;        &lt;br /&gt;&amp;lt;mailfrom&amp;gt;max&amp;lt;/mailfrom&amp;gt;        &lt;br /&gt;&amp;lt;mailto&amp;gt;john&amp;lt;/mailto&amp;gt;        &lt;br /&gt;&amp;lt;subject&amp;gt;hello Drive&amp;lt;/subject&amp;gt;        &lt;br /&gt;&amp;lt;updated-at type=&amp;quot;datetime&amp;quot;&amp;gt;2011-05-15T06:52:40Z&amp;lt;/updated-at&amp;gt;        &lt;br /&gt;&amp;lt;/email&amp;gt;        &lt;br /&gt;&amp;lt;/emails&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#ffffff"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;      &lt;br /&gt;&lt;/font&gt;i only need ‘from’ not ‘mailfrom’ name tag in xml as well as i am not needing 'typeof' anttribute in xml&lt;/p&gt;  &lt;p&gt;so how to &lt;strong&gt;achieve&lt;/strong&gt;, is simple thanks to rails&amp;#160; &lt;/p&gt;  &lt;p&gt;In &lt;strong&gt;&lt;font color="#0000ff"&gt;&lt;u&gt;'emails_controller.rb'&lt;/u&gt;&lt;/font&gt;&lt;/strong&gt; you have to do below update in method 'index' as below&lt;/p&gt;  &lt;p&gt;&lt;font size="3" face="Aharoni"&gt;&lt;u&gt;app/controllers/emails_controller.rb&lt;/u&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;font color="#0000ff"&gt;def index     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; @emails = Email.all&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;#160;&amp;#160;&amp;#160; respond_to do |format|     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; format.html # index.html.erb      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;font color="#ff0000"&gt;&amp;#160; format.xml&amp;#160; # index.xml.builder       &lt;br /&gt;&lt;/font&gt;&amp;#160;&amp;#160;&amp;#160; end      &lt;br /&gt;&amp;#160; end&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Secondly, we need to create an 'xml.builder' file, in this case, &amp;quot;index.xml.builder&amp;quot;. Inside the xml.builder view, we have access to an ‘xml’ object that is used to generate the xml.&lt;/p&gt;  &lt;p&gt;In '&lt;strong&gt;\app\views\emails'&lt;/strong&gt; director create new file called &amp;quot;&lt;font color="#0000ff"&gt;index.xml.builder&lt;/font&gt;&amp;quot; and here is it's contain&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;xml.emails do     &lt;br /&gt;&amp;#160; @emails.each do |email|      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; xml.email do      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; xml.to email.mailto      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; xml.from email.mailfrom      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; xml.subject email.subject&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; end      &lt;br /&gt;&amp;#160; end      &lt;br /&gt;end&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Here is my out put in XML&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/Tc_OguYL5II/AAAAAAAABu0/ECmGVSjVbjw/s1600-h/image%5B4%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/Tc_Oic4jC9I/AAAAAAAABu4/Q7RLx2Kq2W0/image_thumb%5B2%5D.png?imgmax=800" width="497" height="386" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;woow... it is simple than another in REST.. :) &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-1376644221520365573?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/1376644221520365573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=1376644221520365573' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/1376644221520365573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/1376644221520365573'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/05/creating-customizing-xml-with-ruby-and.html' title='Creating, Customizing XML with Ruby and Builder'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_9Z2F35N9rxA/Tc_Oic4jC9I/AAAAAAAABu4/Q7RLx2Kq2W0/s72-c/image_thumb%5B2%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-7453678795457691143</id><published>2011-05-15T03:03:00.001-07:00</published><updated>2011-05-15T03:03:11.667-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XMLHttpRequest'/><category scheme='http://www.blogger.com/atom/ns#' term='ROR'/><category scheme='http://www.blogger.com/atom/ns#' term='DOM'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><category scheme='http://www.blogger.com/atom/ns#' term='RESTful WS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>Access-Control-Allow-Origin in Rails</title><content type='html'>&lt;p&gt;Here I am write post where I was stuck in my project for 1/2 hour, I want to connect WEBrick server REST web service and Apache Web server XMLHttpRequest to REST. Normally it is easy but When I call this I got error&lt;/p&gt;  &lt;p&gt;xmlhttp.open(&amp;quot;GET&amp;quot;,&amp;quot;http://localhost:3000/emails/1.xml&amp;quot;,false);&lt;/p&gt;  &lt;p&gt;//”http://localhost:3000/emails/1.xml” is REST server XML and it is called my “&lt;a href="http://localhost:8081/DOM/test2.html"&gt;http://localhost:8081/DOM/test2.html&lt;/a&gt;”&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/Tc-kuLyXHNI/AAAAAAAABuU/-WUivsFLO8s/s1600-h/server%20XML%20rteqest%5B4%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="server XML rteqest" border="0" alt="server XML rteqest" src="http://lh5.ggpht.com/_9Z2F35N9rxA/Tc-kvlA3IpI/AAAAAAAABuY/23m1E_7qLBQ/server%20XML%20rteqest_thumb%5B2%5D.png?imgmax=800" width="491" height="314" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font size="3"&gt;&lt;u&gt;Introduction&lt;/u&gt;&lt;/font&gt; &lt;/p&gt;  &lt;p&gt;These restrictions prevent a client-side Web application running from one origin from obtaining data retrieved from another origin, and also limit unsafe HTTP requests.&lt;/p&gt;  &lt;p&gt;Here is message on my web page in Apache&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/Tc-kwkrBjNI/AAAAAAAABuc/ssXHJe_dFjo/s1600-h/image%5B9%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/Tc-kx3i321I/AAAAAAAABug/1yd9uoQDayA/image_thumb%5B8%5D.png?imgmax=800" width="519" height="266" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;and still WEBrick has it XML ok&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/Tc-kzWt35aI/AAAAAAAABuk/xVYgV7ovChg/s1600-h/image%5B10%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/Tc-k1PRRFMI/AAAAAAAABuo/B9qbvCzGLmg/image_thumb%5B9%5D.png?imgmax=800" width="525" height="282" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;So Here I write how I over come this.&lt;/p&gt;  &lt;p&gt;I have problem with sending XHR requests from different domains. So the solution is to setup response headers: Access-Control-Request-Method, Access-Control-Allow-Origin.&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;headers['Access-Control-Allow-Origin'] = '*'     &lt;br /&gt;headers['Access-Control-Request-Method'] = '*'&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;for in rails    &lt;br /&gt;&lt;u&gt;&lt;strong&gt;app/application_controller.rb&lt;/strong&gt;&lt;/u&gt; file to add below&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&lt;em&gt;after_filter :set_access_control_headers&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&lt;em&gt;def set_access_control_headers       &lt;br /&gt;headers['Access-Control-Allow-Origin'] = 'http://localhost:8081/'        &lt;br /&gt;headers['Access-Control-Request-Method'] = '*'        &lt;br /&gt;end&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#000000"&gt;Apache now access that xml and viewing in that site&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/Tc-k1__ZNTI/AAAAAAAABus/zmsAwDZlr5Q/s1600-h/image%5B14%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/Tc-k3bhIuOI/AAAAAAAABuw/eh4OFZGoFF8/image_thumb%5B11%5D.png?imgmax=800" width="449" height="317" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-7453678795457691143?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/7453678795457691143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=7453678795457691143' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7453678795457691143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7453678795457691143'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/05/access-control-allow-origin-in-rails.html' title='Access-Control-Allow-Origin in Rails'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_9Z2F35N9rxA/Tc-kvlA3IpI/AAAAAAAABuY/23m1E_7qLBQ/s72-c/server%20XML%20rteqest_thumb%5B2%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-6723931238311286259</id><published>2011-04-23T06:20:00.001-07:00</published><updated>2011-04-23T06:21:28.857-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ROR'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><category scheme='http://www.blogger.com/atom/ns#' term='Internet'/><category scheme='http://www.blogger.com/atom/ns#' term='RESTful WS'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>Creating Custom Rails Routes</title><content type='html'>&lt;p&gt;&lt;a href="http://madhukaudantha.blogspot.com/2011/04/custom-routes-definition-in-ror.html"&gt;last post&lt;/a&gt; I wrote simple work on customizing rails routes now we will play more. It is easy and fun and more use full&lt;/p&gt;  &lt;p&gt;this my main page and url is &lt;a href="http://localhost:3000/mailheaders"&gt;http://localhost:3000/mailheaders&lt;/a&gt; it is not cool URL for main page so how to change it.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TbLSDPzlF3I/AAAAAAAABtY/gkZVFLlzvmE/s1600-h/image%5B11%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TbLSEYA18gI/AAAAAAAABtc/rPOxcQBZ3vE/image_thumb%5B14%5D.png?imgmax=800" width="441" height="241" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;open you config/routes.rb file in ROR project and add following to do it &lt;/p&gt;  &lt;p&gt;map.connect('madhuka', {:controller =&amp;gt; &amp;quot;mailheaders&amp;quot;, :action =&amp;gt; &amp;quot;index&amp;quot;})&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TbLSFEAe0JI/AAAAAAAABtg/A0F1kOaO6S4/s1600-h/image%5B12%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TbLSGU0iasI/AAAAAAAABtk/LCK15ZAQGUs/image_thumb%5B15%5D.png?imgmax=800" width="437" height="255" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;woow.. it done.&lt;/p&gt;  &lt;p&gt;so I need to change the url places in working on it&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff" size="3"&gt;&lt;strong&gt;http:/ host/controller/action? params&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font color="#0000ff" size="2"&gt;eg: &lt;a href="http://localhost:3000/message/givesentmessage?to=aaa"&gt;http://localhost:3000/message/givesentmessage?to=aaa&lt;/a&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;and lets change it as you wish (I am put params in url in midle)&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff" size="3"&gt;&lt;strong&gt;http:/ host/controller/params/action&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font color="#333333" size="2"&gt;add this to routes.rb file &lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&lt;em&gt;map.connect('messages/:to/giveMessages/', {:controller =&amp;gt; &amp;quot;message&amp;quot;, :action =&amp;gt; &amp;quot;givesentmessage&amp;quot;})&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TbLSHUyuOEI/AAAAAAAABto/UKRR8PaNRTc/s1600-h/image%5B18%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TbLSIdjkysI/AAAAAAAABts/Z6JWFBSOTf0/image_thumb%5B23%5D.png?imgmax=800" width="471" height="181" /&gt;&lt;/a&gt;    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;woooww….. it is easy and very useful!!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-6723931238311286259?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/6723931238311286259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=6723931238311286259' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/6723931238311286259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/6723931238311286259'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/04/creating-custom-rails-routes.html' title='Creating Custom Rails Routes'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_9Z2F35N9rxA/TbLSEYA18gI/AAAAAAAABtc/rPOxcQBZ3vE/s72-c/image_thumb%5B14%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-821044325176177783</id><published>2011-04-23T05:42:00.001-07:00</published><updated>2011-04-23T05:46:54.507-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Service'/><category scheme='http://www.blogger.com/atom/ns#' term='ROR'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><category scheme='http://www.blogger.com/atom/ns#' term='RESTful WS'/><title type='text'>Custom routes definition in ROR</title><content type='html'>&lt;p&gt;Today I was working on rest web services and I was need some custom &lt;b&gt;routes&lt;/b&gt; definition. my project is rails project &lt;/p&gt;  &lt;p&gt;&lt;a href="http://localhost:3000/message/givesentmessage?to=aaa"&gt;http://localhost:3000/message/givesentmessage?to=aaa&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TbLJLm91JvI/AAAAAAAABtI/Hh2hLjRraCc/s1600-h/image%5B4%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TbLJMnSmkrI/AAAAAAAABtM/z96LFEsfaSI/image_thumb%5B4%5D.png?imgmax=800" width="412" height="259" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;but I need to pass parameters in URL with out ‘?’ marking such as&lt;/p&gt;  &lt;p&gt;&lt;a href="http://localhost:3000/message/givesentmessage/aaa.xml"&gt;http://localhost:3000/message/givesentmessage/aaa.xml&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;to do in ROR open your open config/routes.rb file and add the following routing:&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;#160; map.connect ':controller/:action/:to.:format'&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#000000"&gt;now it will work even&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://localhost:3000/message/givesentmessage/aaa.xml"&gt;http://localhost:3000/message/givesentmessage/aaa.xml&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TbLKN2Ent1I/AAAAAAAABtQ/Pv6HhU0Bbvg/s1600-h/image%5B9%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TbLKPEu9B3I/AAAAAAAABtU/QELHHiq914I/image_thumb%5B9%5D.png?imgmax=800" width="445" height="280" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Where ‘aaa’ is the record ids. In the controller you have access to these ids via the params variable.&lt;/p&gt;  &lt;p&gt;to = params[:to]&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-821044325176177783?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/821044325176177783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=821044325176177783' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/821044325176177783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/821044325176177783'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/04/custom-routes-definition-in-ror.html' title='Custom routes definition in ROR'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_9Z2F35N9rxA/TbLJMnSmkrI/AAAAAAAABtM/z96LFEsfaSI/s72-c/image_thumb%5B4%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-9096408113057595060</id><published>2011-04-22T05:25:00.001-07:00</published><updated>2011-04-22T05:25:01.499-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Local Storages'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>HTML5 Local Storage–Part 2</title><content type='html'>&lt;pre&gt;&lt;font face="Lucida Sans"&gt;Here is Storage interface and below I am doing this particle in browser console &lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;interface &lt;dfn&gt;Storage&lt;/dfn&gt; {&lt;br /&gt;  readonly attribute unsigned long &lt;a href="http://dev.w3.org/html5/webstorage/#dom-storage-length"&gt;length&lt;/a&gt;;&lt;br /&gt;  DOMString &lt;a href="http://dev.w3.org/html5/webstorage/#dom-storage-key"&gt;key&lt;/a&gt;(in unsigned long index);&lt;br /&gt;  getter any &lt;a href="http://dev.w3.org/html5/webstorage/#dom-storage-getitem"&gt;getItem&lt;/a&gt;(in DOMString key);&lt;br /&gt;  setter creator void &lt;a href="http://dev.w3.org/html5/webstorage/#dom-storage-setitem"&gt;setItem&lt;/a&gt;(in DOMString key, in any value);&lt;br /&gt;  deleter void &lt;a href="http://dev.w3.org/html5/webstorage/#dom-storage-removeitem"&gt;removeItem&lt;/a&gt;(in DOMString key);&lt;br /&gt;  void &lt;a href="http://dev.w3.org/html5/webstorage/#dom-storage-clear"&gt;clear&lt;/a&gt;();&lt;br /&gt;};&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;Each Storage object is associated with a list of key/value pairs when it is created.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The length attribute must return the number of key/value pairs currently present in the list associated with the object.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The key(n) method must return the name of the nth key in the list. (Thus, adding or removing a key may change the order of the keys, but merely changing the value of an existing key must not.)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The getItem(key) method must return a structured clone of the current value associated with the given key.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The setItem(key, value) method must first create a structured clone of the given value.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The removeItem(key) method must cause the key/value pair with the given key&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The clear() method must atomically cause the list associated with the object to be emptied of all key/value pairs.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;localStorage.length&lt;/p&gt;&lt;br /&gt;&lt;p&gt;localStorage.key(0)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;localStorage.getItem("name1")&lt;br /&gt;&lt;p&gt;localStorage.removeItem("name1")&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TbFzlQWeEKI/AAAAAAAABs4/Cynxf-iqi_g/s1600-h/image%5B4%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TbFzm_aUneI/AAAAAAAABs8/fydBlbgg3fM/image_thumb%5B2%5D.png?imgmax=800" width="530" height="377"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-9096408113057595060?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/9096408113057595060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=9096408113057595060' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/9096408113057595060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/9096408113057595060'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/04/html5-local-storagepart-2.html' title='HTML5 Local Storage–Part 2'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_9Z2F35N9rxA/TbFzm_aUneI/AAAAAAAABs8/fydBlbgg3fM/s72-c/image_thumb%5B2%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-2176066610433486315</id><published>2011-04-22T04:36:00.001-07:00</published><updated>2011-04-22T04:40:09.785-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Local Storages'/><category scheme='http://www.blogger.com/atom/ns#' term='DOM'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>HTML5 Local Storage</title><content type='html'>&lt;p&gt;HTML5 localStorage is a client-side key-value database, meaning it is stored in the users browser. This means the users data is saved on their machine inside their browser. This also means that their data is only available to them when on that machine and in that browser. Remember that localStorage is per browser not per computer.&lt;/p&gt;  &lt;p&gt;let try it out.&lt;/p&gt;  &lt;p&gt;From JavaScript code, we will access HTML5 Storage through the localStorage object on the global window object. Before we use it, we will detect whether the browser supports it.&lt;/p&gt;  &lt;div id="codeSnippetWrapper" class="csharpcode-wrapper"&gt;   &lt;pre class="csharpcode"&gt;&lt;font color="#0000ff"&gt;&lt;span class="kwrd"&gt;function&lt;/span&gt; supports_html5_storage()&lt;br /&gt;{ &lt;br /&gt;    &lt;span class="kwrd"&gt;if&lt;/span&gt; (&lt;span class="kwrd"&gt;typeof&lt;/span&gt;(localStorage) == &lt;span class="str"&gt;'undefined'&lt;/span&gt; )      &lt;br /&gt;              {        &lt;br /&gt;                         alert(&lt;span class="str"&gt;'Your browser does not support HTML5 localStorage. Try upgrading.'&lt;/span&gt;);   &lt;br /&gt;              } &lt;span class="kwrd"&gt;else&lt;/span&gt;     &lt;br /&gt;             {   &lt;br /&gt;                       alert(&lt;span class="str"&gt;'Your browser support HTML5 localStorage.'&lt;/span&gt;);       &lt;br /&gt;             }&lt;br /&gt;}&lt;/font&gt;     &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class="csharpcode"&gt;          &lt;br /&gt;&lt;font face="Lucida Sans"&gt;To detect we can used Modernizr.js even. Then create simply form in HTML&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id="codeSnippetWrapper" class="csharpcode-wrapper"&gt;&lt;br /&gt;  &lt;pre class="csharpcode"&gt;&lt;font color="#0000ff"&gt;&amp;lt;form name=&lt;span class="str"&gt;&amp;quot;testform&amp;quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;input type=&lt;span class="str"&gt;&amp;quot;text&amp;quot;&lt;/span&gt; name=&lt;span class="str"&gt;&amp;quot;name&amp;quot;&lt;/span&gt; placeholder=&lt;span class="str"&gt;&amp;quot;key&amp;quot;&lt;/span&gt;/&amp;gt;&lt;br /&gt;&amp;lt;input type=&lt;span class="str"&gt;&amp;quot;text&amp;quot;&lt;/span&gt; name=&lt;span class="str"&gt;&amp;quot;value&amp;quot;&lt;/span&gt; placeholder=&lt;span class="str"&gt;&amp;quot;value&amp;quot;&lt;/span&gt; /&amp;gt;&lt;br /&gt;&amp;lt;input type=&lt;span class="str"&gt;&amp;quot;button&amp;quot;&lt;/span&gt; name=&lt;span class="str"&gt;&amp;quot;button&amp;quot;&lt;/span&gt; value=&lt;span class="str"&gt;&amp;quot;Store&amp;quot;&lt;/span&gt; onClick=&lt;span class="str"&gt;&amp;quot;storeInLocal(this.form)&amp;quot;&lt;/span&gt;/&amp;gt; &lt;br /&gt;&amp;lt;input type=&lt;span class="str"&gt;&amp;quot;button&amp;quot;&lt;/span&gt; name=&lt;span class="str"&gt;&amp;quot;button&amp;quot;&lt;/span&gt; value=&lt;span class="str"&gt;&amp;quot;Support test&amp;quot;&lt;/span&gt; onClick=&lt;span class="str"&gt;&amp;quot;supports_html5_storage()&amp;quot;&lt;/span&gt;/&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class="csharpcode"&gt;&lt;font size="2" face="Lucida Sans"&gt;Then create storeInLocal() with passing form to it as parameters to it.&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id="codeSnippetWrapper" class="csharpcode-wrapper"&gt;&lt;br /&gt;  &lt;pre id="codeSnippet" class="csharpcode"&gt;&lt;font color="#0000ff"&gt;&lt;span class="kwrd"&gt;function&lt;/span&gt; storeInLocal(form){&lt;br /&gt;        &lt;span class="kwrd"&gt;if&lt;/span&gt; (&lt;span class="kwrd"&gt;typeof&lt;/span&gt;(localStorage) == &lt;span class="str"&gt;'undefined'&lt;/span&gt; ) {    &lt;br /&gt;alert(&lt;span class="str"&gt;'Your browser does not support HTML5 localStorage. Try upgrading.'&lt;/span&gt;);&lt;br /&gt;} &lt;span class="kwrd"&gt;else&lt;/span&gt; {    &lt;br /&gt;&lt;span class="kwrd"&gt;try&lt;/span&gt; &lt;br /&gt;{    &lt;br /&gt;localStorage.setItem(form.name.value,form.value.value); &lt;br /&gt;} &lt;br /&gt;&lt;span class="kwrd"&gt;catch&lt;/span&gt; (e) {                    &lt;br /&gt;alert(&lt;span class="str"&gt;'Quota exceeded!'&lt;/span&gt;+e); &lt;span class="rem"&gt;//data wasn't successfully saved due to quota exceed so throw an error        &lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;Here is clearing Local storage in browser in below&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="csharpcode-wrapper"&gt;&amp;#160;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="csharpcode-wrapper"&gt;and button for that in form too.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="csharpcode-wrapper"&gt;&amp;#160;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="csharpcode-wrapper"&gt;&lt;font color="#0000ff"&gt;&lt;span class="kwrd"&gt;function&lt;/span&gt; clearLocal(){&lt;br /&gt;&lt;br /&gt;    &lt;br /&gt;localStorage.clear();&lt;br /&gt;&lt;br /&gt;    &lt;br /&gt;}&lt;/font&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharpcode"&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TbFoNXdAThI/AAAAAAAABso/cvxf16pLLQ0/s1600-h/image%5B4%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TbFoO9nvEjI/AAAAAAAABss/_Dv-5j_mofs/image_thumb%5B2%5D.png?imgmax=800" width="564" height="307" /&gt;&lt;/a&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharpcode"&gt;&lt;font face="Lucida Sans"&gt;here is data in local data bases.&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharpcode"&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TbFoQO7hj9I/AAAAAAAABsw/sHPUJvLkWJ8/s1600-h/image%5B9%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TbFoRjPamqI/AAAAAAAABs0/H4XtanDOtyc/image_thumb%5B5%5D.png?imgmax=800" width="560" height="305" /&gt;&lt;/a&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharpcode"&gt;in Next post I will explain on retrieving them. &lt;/pre&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-2176066610433486315?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/2176066610433486315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=2176066610433486315' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2176066610433486315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2176066610433486315'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/04/html5-local-storage.html' title='HTML5 Local Storage'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_9Z2F35N9rxA/TbFoO9nvEjI/AAAAAAAABss/_Dv-5j_mofs/s72-c/image_thumb%5B2%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-2815162036704784554</id><published>2011-03-06T11:22:00.001-08:00</published><updated>2011-03-06T11:32:29.183-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XMLHttpRequest'/><category scheme='http://www.blogger.com/atom/ns#' term='DOM'/><category scheme='http://www.blogger.com/atom/ns#' term='Java Script'/><title type='text'>Change the Value of an Element</title><content type='html'>&lt;p&gt;In the &lt;a href="http://madhukaudantha.blogspot.com/2011/03/nodes-in-dom.html"&gt;DOM&lt;/a&gt;, everything is a node. Element nodes do not have a text value.&lt;/p&gt;  &lt;p&gt;The text of an element node is stored in a child node. This node is called a text node.&lt;/p&gt;  &lt;h4&gt;&lt;font size="2"&gt;&lt;u&gt;Change the Value of a Text Node&lt;/u&gt;&lt;/font&gt;&lt;/h4&gt;  &lt;p&gt;eg:&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;to=xmlDoc.getElementsByTagName(&amp;quot;to&amp;quot;)[0].childNodes[0];&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;to.nodeValue=&lt;/font&gt;&lt;a href="mailto:madhuka@gmail.com"&gt;&lt;font color="#0000ff"&gt;madhuka@gmail.com&lt;/font&gt;&lt;/a&gt;&lt;font color="#0000ff"&gt;;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TXPe9a1BjYI/AAAAAAAABos/AcTJZZhrQp0/s1600-h/image%5B4%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TXPe-tHb0kI/AAAAAAAABow/4ijUU_IsfX4/image_thumb%5B5%5D.png?imgmax=800" width="472" height="203" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;font size="2"&gt;&lt;strong&gt;Change the Value of an Attribute&lt;/strong&gt;&lt;/font&gt;&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;In the DOM, attributes are nodes. Unlike element nodes, attribute nodes have text values.&lt;/p&gt;  &lt;p&gt;I am using the setAttribute() method for it&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;x=xmlDoc.getElementsByTagName('email'); &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;x[0].setAttribute(&amp;quot;eid&amp;quot;,&amp;quot;e0&amp;quot;);&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;x[1].setAttribute(&amp;quot;eid&amp;quot;,&amp;quot;e1&amp;quot;);&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TXPe_s4UFtI/AAAAAAAABo0/2w3YFj2_xqw/s1600-h/image%5B9%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TXPfA_8z8gI/AAAAAAAABo4/zzrlW3buWjU/image_thumb%5B11%5D.png?imgmax=800" width="388" height="279" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;    &lt;p&gt;and also we can change it by nodeValue property too…&lt;/p&gt;  &lt;p&gt;enjoy DOM and XML play.. &lt;img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TXPfBlsf2mI/AAAAAAAABo8/5Wns0jXk6PY/wlEmoticon-smile%5B2%5D.png?imgmax=800" /&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-2815162036704784554?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/2815162036704784554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=2815162036704784554' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2815162036704784554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2815162036704784554'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/03/change-value-of-element.html' title='Change the Value of an Element'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_9Z2F35N9rxA/TXPe-tHb0kI/AAAAAAAABow/4ijUU_IsfX4/s72-c/image_thumb%5B5%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-3283589992514635255</id><published>2011-03-06T11:03:00.001-08:00</published><updated>2011-03-06T11:04:14.138-08:00</updated><title type='text'>Play with XML DOM</title><content type='html'>&lt;p&gt;Here i will write on how to get the Value of an Element in &lt;a href="http://madhukaudantha.blogspot.com/2011/03/nodes-in-dom.html"&gt;XML DOM&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;The &lt;strong&gt;&lt;font size="2"&gt;getElementsByTagName()&lt;/font&gt;&lt;/strong&gt; method returns a node list containing all elements with the specified tag name.&lt;/p&gt;  &lt;p&gt;eg: &lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;xmlDoc.getElementsByTagName(&amp;quot;emails&amp;quot;)[0];&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;here is chrome console screen shoot of that&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TXPaOm-T5HI/AAAAAAAABn0/VL8XkU7xKrQ/s1600-h/image%5B9%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TXPaP69fHOI/AAAAAAAABn4/5fz5aUgx4IA/image_thumb%5B12%5D.png?imgmax=800" width="421" height="221" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;by changing the “i” you specified the email element &lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;xmlDoc.getElementsByTagName(&amp;quot;email&amp;quot;)[i];&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TXPaQpchvWI/AAAAAAAABn8/GECoi7Q5X6Y/s1600-h/image%5B14%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TXPaR1X8TjI/AAAAAAAABoA/x5Px10uxJMM/image_thumb%5B19%5D.png?imgmax=800" width="393" height="223" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;In the DOM, everything is a node. Element nodes does not have a text value.&lt;/p&gt;  &lt;p&gt;The text of an element node is stored in a child node. This node is called a text node. Therefore we must get the value of the child node (text node).&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TXPaS9ppBiI/AAAAAAAABoE/3oftLDISLmU/s1600-h/image%5B4%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TXPaT0Kx7cI/AAAAAAAABoI/2U6XvApxEZQ/image_thumb%5B6%5D.png?imgmax=800" width="416" height="316" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The childNodes property returns a list of child nodes. The &amp;lt;emails&amp;gt; element has three child node and passing prams you get the particular childNode&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;xmlDoc.getElementsByTagName(&amp;quot;email&amp;quot;)[1].childNodes;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;xmlDoc.getElementsByTagName(&amp;quot;email&amp;quot;)[1].childNodes[0];&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TXPaUvuRUnI/AAAAAAAABoM/jSd5fQS7J-I/s1600-h/image%5B20%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TXPaVvaBEYI/AAAAAAAABoQ/uSZYadESLpg/image_thumb%5B29%5D.png?imgmax=800" width="537" height="82" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;in that child node (&amp;lt;from&amp;gt;) has another single childNode and it is text node. &lt;/p&gt;        &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TXPaWKMnDZI/AAAAAAAABoU/HkGRI2BEfng/s1600-h/image%5B25%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TXPaW48i6JI/AAAAAAAABoY/utylQkWzBQw/image_thumb%5B36%5D.png?imgmax=800" width="537" height="73" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The nodeValue property returns the text value of the text node&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;xmlDoc.getElementsByTagName(&amp;quot;email&amp;quot;)[1].childNodes[1].childNodes[0].nodeValue;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#000000"&gt;or&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;xmlDoc.getElementsByTagName(&amp;quot;from&amp;quot;)[1].childNodes[0].nodeValue &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TXPaXr8PcTI/AAAAAAAABoc/o6K-yA336A0/s1600-h/image%5B30%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TXPaYXeKrrI/AAAAAAAABog/VRZystbxnqg/image_thumb%5B44%5D.png?imgmax=800" width="527" height="109" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;in console you can see the deferent color of emelent and value.&lt;/p&gt;  &lt;p&gt;&lt;font size="3"&gt;&lt;strong&gt;&lt;u&gt;Now we will get the Value of an Attribute&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;The getAttribute() method returns an attribute value.&lt;/p&gt;  &lt;p&gt;The following code retrieves the text value of the &amp;quot;eid&amp;quot; (email ID) attribute of the first &amp;lt;email&amp;gt; element:&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;xmlDoc.getElementsByTagName(&amp;quot;email&amp;quot;)[0].getAttribute(&amp;quot;eid&amp;quot;);&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TXPaZAhbkvI/AAAAAAAABok/c4NCoN0QuOA/s1600-h/image%5B35%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TXPaaFwATYI/AAAAAAAABoo/WCFqymB9Ahg/image_thumb%5B51%5D.png?imgmax=800" width="509" height="221" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-3283589992514635255?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/3283589992514635255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=3283589992514635255' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/3283589992514635255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/3283589992514635255'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/03/play-with-xml-dom.html' title='Play with XML DOM'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_9Z2F35N9rxA/TXPaP69fHOI/AAAAAAAABn4/5fz5aUgx4IA/s72-c/image_thumb%5B12%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-7203059690077280266</id><published>2011-03-06T10:28:00.001-08:00</published><updated>2011-03-06T10:28:10.633-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XMLHttpRequest'/><category scheme='http://www.blogger.com/atom/ns#' term='DOM'/><category scheme='http://www.blogger.com/atom/ns#' term='E-Sri Lanka Mail'/><category scheme='http://www.blogger.com/atom/ns#' term='Java Script'/><title type='text'>Nodes in DOM</title><content type='html'>&lt;p&gt;The DOM defines a standard by W3C (World Wide Web Consortium) for accessing documents like HTML and XML&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;A DOM (Document Object Model) defines a standard way for accessing and manipulating documents.&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;The XML DOM views an XML document as a tree-structure and all elements can be accessed through the DOM tree. Their content and attributes.&lt;/li&gt;    &lt;li&gt;The HTML DOM defines a standard for accessing and manipulating HTML documents&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TXPSM9Dx1TI/AAAAAAAABns/3OF8MLdvOvo/s1600-h/image%5B9%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TXPSOH1H7KI/AAAAAAAABnw/DvY3FnPI47A/image_thumb%5B11%5D.png?imgmax=800" width="441" height="281" /&gt;&lt;/a&gt;    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;here is java script code on that DOM&lt;/p&gt;  &lt;pre class="csharpcode"&gt;msg=&lt;span class="str"&gt;&amp;quot;&amp;lt;emails&amp;gt;&amp;lt;email eid=\&amp;quot;1\&amp;quot;&amp;gt;&amp;lt;to&amp;gt;madhuka@max.com&amp;lt;/to&amp;gt;&amp;lt;from&amp;gt;bhagya@max.com&amp;lt;/from&amp;gt;&amp;lt;subject&amp;gt;hi, I wrote the blog post&amp;lt;/subject&amp;gt;&amp;lt;/email&amp;gt;&amp;lt;email eid=\&amp;quot;2\&amp;quot;&amp;gt;&amp;lt;to&amp;gt;max@max.com&amp;lt;/to&amp;gt;&amp;lt;from&amp;gt;Gihan@max.com&amp;lt;/from&amp;gt;&amp;lt;subject&amp;gt;hi, sir I was testing&amp;lt;/subject&amp;gt;&amp;lt;/email&amp;gt;&amp;lt;/emails&amp;gt;&amp;quot;&lt;/span&gt;;&lt;/pre&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The root node in the XML above is named &amp;lt;emails&amp;gt; and All other nodes are contained within &amp;lt;emails&amp;gt;.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The root node holds two &amp;lt;email&amp;gt; nodes.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The first &amp;lt;email&amp;gt; node holds three nodes: &amp;lt;to&amp;gt;, &amp;lt;from&amp;gt; and &amp;lt;subject&amp;gt;. Each of them contain one text node.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;&lt;font color="#0000ff" size="3"&gt;NOTE&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;font color="#0000ff"&gt;&amp;lt;to&amp;gt;madhuka@max.com&amp;lt;/to&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The element node &amp;lt;to&amp;gt;, holds a text node with the value &amp;quot;madhuka@max.com&amp;quot;.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;quot;madhuka@max.com&amp;quot; is not the value of the &amp;lt;to&amp;gt; element. It is &lt;strong&gt;&lt;font size="2"&gt;text node Value&lt;/font&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-7203059690077280266?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/7203059690077280266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=7203059690077280266' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7203059690077280266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7203059690077280266'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/03/nodes-in-dom.html' title='Nodes in DOM'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_9Z2F35N9rxA/TXPSOH1H7KI/AAAAAAAABnw/DvY3FnPI47A/s72-c/image_thumb%5B11%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-7344838443077560300</id><published>2011-03-06T06:26:00.001-08:00</published><updated>2011-03-06T07:11:37.738-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SOAP'/><category scheme='http://www.blogger.com/atom/ns#' term='XMLHttpRequest'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Service'/><category scheme='http://www.blogger.com/atom/ns#' term='Axis2'/><category scheme='http://www.blogger.com/atom/ns#' term='Internet'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>XMLHttpRequest</title><content type='html'>&lt;p&gt;I need XMLHttpRequest work for my project, so I think it also has value to be post on blog. therefore I am writing this post on it. I will give example on them also.&lt;/p&gt;  &lt;p&gt;First I will talk about some HTTPRequest and its issues . The problem in HTTPRequest is that with each HTTP connection, a new page is reloaded. All the elements of the page are broken down and recreated each time while the user waits for the network and waits for the page to redraw. Its incredibly inefficient, slow, and not much fun for the user.But when we need new data for our application, we can make a network request for that data in the background using an XMLHttpRequest call.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;The XMLHttpRequest object can:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Update a web page without reloading the page &lt;/li&gt;    &lt;li&gt;Request data from a server after the page has loaded &lt;/li&gt;    &lt;li&gt;Receive data from a server after the page has loaded &lt;/li&gt;    &lt;li&gt;Send data to a server in the background &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Lets go to real world of development of them&lt;/p&gt;  &lt;p&gt;All modern browsers (IE7+, Firefox, Chrome, Safari, and Opera) have a built-in XMLHttpRequest object and IE5 and IE6 use an ActiveX Object.&lt;/p&gt;  &lt;p&gt;lets check it support your browsers (My browser is Chrome). Here i am typing my on browser console. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TXOZbY2kh7I/AAAAAAAABnU/WAO0xa7PLFk/s1600-h/image%5B3%5D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TXOZd2hYCBI/AAAAAAAABnY/Xpq0ldN6AdU/image_thumb%5B1%5D.png?imgmax=800" width="501" height="236" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;oK, I is supporting.&lt;/p&gt;  &lt;div id="codeSnippetWrapper"&gt;   &lt;pre id="codeSnippet" class="csharpcode"&gt;&amp;lt;script type=&lt;span class="str"&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;if&lt;/span&gt; (window.XMLHttpRequest) &lt;br /&gt;&lt;br /&gt;{&lt;span class="rem"&gt;// code for IE7+, Firefox, Chrome, Opera, Safari &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;xmlhttp=&lt;span class="kwrd"&gt;new&lt;/span&gt; XMLHttpRequest(); &lt;br /&gt;&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;else&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;{&lt;span class="rem"&gt;// code for IE6, IE5 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;xmlhttp=&lt;span class="kwrd"&gt;new&lt;/span&gt; ActiveXObject(&lt;span class="str"&gt;&amp;quot;Microsoft.XMLHTTP&amp;quot;&lt;/span&gt;); &lt;br /&gt;&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now we can parse an XML string into an XML DOM object and test it.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="csharpcode"&gt;&lt;br /&gt;  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   1:  &lt;/span&gt;&amp;lt;html xmlns=&lt;span class="str"&gt;&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre&gt;&lt;span class="lnum"&gt;   2:  &lt;/span&gt;&amp;lt;head&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   3:  &lt;/span&gt;&amp;lt;title&amp;gt;Create XML DOM &lt;span class="kwrd"&gt;object&lt;/span&gt;&amp;lt;/title&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre&gt;&lt;span class="lnum"&gt;   4:  &lt;/span&gt;&amp;lt;script language=&lt;span class="str"&gt;&amp;quot;javascript&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   5:  &lt;/span&gt;msg=&lt;span class="str"&gt;&amp;quot;&amp;lt;emails&amp;gt;&amp;lt;email&amp;gt;&amp;lt;to&amp;gt;madhuka@max.com&amp;lt;/to&amp;gt;&amp;lt;from&amp;gt;bhagya@max.com&amp;lt;/from&amp;gt;&amp;lt;subject&amp;gt;hi, I wrote the blog post&amp;lt;/subject&amp;gt;&amp;lt;/email&amp;gt;&amp;lt;/emails&amp;gt;&amp;quot;&lt;/span&gt;;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre&gt;&lt;span class="lnum"&gt;   6:  &lt;/span&gt;&amp;#160;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   7:  &lt;/span&gt;&lt;span class="kwrd"&gt;if&lt;/span&gt; (window.DOMParser)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre&gt;&lt;span class="lnum"&gt;   8:  &lt;/span&gt;  {&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   9:  &lt;/span&gt;  parser=&lt;span class="kwrd"&gt;new&lt;/span&gt; DOMParser();&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre&gt;&lt;span class="lnum"&gt;  10:  &lt;/span&gt;  xmlDoc=parser.parseFromString(msg,&lt;span class="str"&gt;&amp;quot;text/xml&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  11:  &lt;/span&gt;  }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre&gt;&lt;span class="lnum"&gt;  12:  &lt;/span&gt;&lt;span class="kwrd"&gt;else&lt;/span&gt; &lt;span class="rem"&gt;// Internet Explorer&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  13:  &lt;/span&gt;  {&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre&gt;&lt;span class="lnum"&gt;  14:  &lt;/span&gt;  xmlDoc=&lt;span class="kwrd"&gt;new&lt;/span&gt; ActiveXObject(&lt;span class="str"&gt;&amp;quot;Microsoft.XMLDOM&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  15:  &lt;/span&gt;  xmlDoc.async=&lt;span class="str"&gt;&amp;quot;false&amp;quot;&lt;/span&gt;;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre&gt;&lt;span class="lnum"&gt;  16:  &lt;/span&gt;  xmlDoc.loadXML(txt); &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  17:  &lt;/span&gt;  }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre&gt;&lt;span class="lnum"&gt;  18:  &lt;/span&gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  19:  &lt;/span&gt;&amp;lt;/head&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre&gt;&lt;span class="lnum"&gt;  20:  &lt;/span&gt;&amp;#160;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  21:  &lt;/span&gt;&amp;lt;body&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre&gt;&lt;span class="lnum"&gt;  22:  &lt;/span&gt;&amp;lt;/body&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;  &lt;pre class="alt"&gt;&lt;span class="lnum"&gt;  23:  &lt;/span&gt;&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;now we test that object go to our page and it console and type xmlDoc then you will get xml document as below. We just create XML DOM object by XML string. it is easy. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;isn’t it?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TXOZfYU54fI/AAAAAAAABnc/OXUiI44Gezg/s1600-h/image%5B8%5D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TXOZiDerdCI/AAAAAAAABng/IHD8MIQRHJs/image_thumb%5B4%5D.png?imgmax=800" width="497" height="334" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-7344838443077560300?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/7344838443077560300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=7344838443077560300' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7344838443077560300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7344838443077560300'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/03/xmlhttprequest.html' title='XMLHttpRequest'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_9Z2F35N9rxA/TXOZd2hYCBI/AAAAAAAABnY/Xpq0ldN6AdU/s72-c/image_thumb%5B1%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-4439141933745831873</id><published>2011-02-24T10:05:00.001-08:00</published><updated>2011-02-24T10:05:11.202-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><category scheme='http://www.blogger.com/atom/ns#' term='USB'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><title type='text'>Thunderbolt I/O technology</title><content type='html'>&lt;p align="justify"&gt;Thunderbolt is a revolutionary I/O technology that supports high-resolution displays and high-performance data devices through a single, compact port.&lt;/p&gt;  &lt;p align="justify"&gt;   &lt;br /&gt;Thunderbolt began at Intel Labs with a simple concept.It gives you access to a world of high-resolution displays and high-speed peripherals with one compact port. That’s because Thunderbolt is based on two fundamental technologies: PCI Express and DisplayPort.&lt;/p&gt;  &lt;p align="justify"&gt;   &lt;br /&gt;Thunderbolt also provides 10 watts of power to peripherals. Thunderbolt is based on DisplayPort technology, the video standard for high-resolution displays, any Mini DisplayPort display plugs right into the Thunderbolt port. To connect a DisplayPort, DVI, HDMI, or VGA display, just use an existing adapter.&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;     &lt;div align="justify"&gt;USB 2.0: 480 Mbps&lt;/div&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;div align="justify"&gt;FireWire 800: 800 Mbps&lt;/div&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;div align="justify"&gt;Express Card: 2.5 Gbps&lt;/div&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;div align="justify"&gt;USB 3.0: 5 Gbps&lt;/div&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;div align="justify"&gt;Thunderbolt: 10 Gbps&lt;/div&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p align="justify"&gt;With 10 Gbps of throughput in both directions, Thunderbolt I/O technology lets you move data to and from peripherals up to 20 times faster than with USB 2.0 and more than 12 times faster than with FireWire 800.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TWadz0HuQCI/AAAAAAAABk0/BhP2I_3uhYI/s1600-h/intel_thunderbolt_diagram%5B3%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="intel_thunderbolt_diagram" border="0" alt="intel_thunderbolt_diagram" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TWad1bwwASI/AAAAAAAABk4/UJvq6XGHST8/intel_thunderbolt_diagram_thumb%5B1%5D.jpg?imgmax=800" width="314" height="382" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-4439141933745831873?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/4439141933745831873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=4439141933745831873' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4439141933745831873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4439141933745831873'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/02/thunderbolt-io-technology.html' title='Thunderbolt I/O technology'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_9Z2F35N9rxA/TWad1bwwASI/AAAAAAAABk4/UJvq6XGHST8/s72-c/intel_thunderbolt_diagram_thumb%5B1%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-705498414151310601</id><published>2011-02-24T06:05:00.001-08:00</published><updated>2011-02-24T06:05:04.349-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Local Storages'/><category scheme='http://www.blogger.com/atom/ns#' term='E-Sri Lanka Mail'/><category scheme='http://www.blogger.com/atom/ns#' term='Internet'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>Client-side Storages with HTML 5</title><content type='html'>&lt;p&gt;Today I will point out Client side storage feature. There are several reasons to use client-side storage. &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;We can make our app work when the user is offline, possibly sync'ing &lt;/li&gt;    &lt;li&gt;It make app to performance booster (instead of waiting for it to download again)&lt;/li&gt;    &lt;li&gt;It is easier programming model, with no server infrastructure required&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;The technologies for local storages are:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;Web Storage&lt;/strong&gt;: it provides a key-value mapping (present implementations only support string-to-string mappings)&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Web SQL Database&lt;/strong&gt;: it gives us all the power of SQL relational database.&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Indexed Database&lt;/strong&gt;: This is somewhere in between Web Storage and Web SQL Database. Like Web Storage, it's a straightforward key-value mapping, but it supports indexes like those of relational databases&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;File Access:&lt;/strong&gt; It is an API for reading file content in JavaScript (There are also proposals underway for file writing capabilities)&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Lets check the Browser support&lt;/p&gt;  &lt;p&gt;here is code for test that I am going to use&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&lt;em&gt;function browserSupport(){       &lt;br /&gt;console.log(&amp;quot;I&lt;strong&gt;ndexed Database&lt;/strong&gt;: &amp;quot; + window.mozIndexedDB);        &lt;br /&gt;console.log(&amp;quot;Web SQL Database: &amp;quot; + window.openDatabase);        &lt;br /&gt;console.log(&amp;quot;Web Storage: &amp;quot; + typeof(localStorage));         &lt;br /&gt;console.log(&amp;quot;File Access: &amp;quot; + window.FileReader);         &lt;br /&gt;}&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#000000"&gt;1. Lets check this in &lt;strong&gt;chrome&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TWZlYcf2DVI/AAAAAAAABjk/XpRMiVSnqKo/s1600-h/image%5B3%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TWZlZnlOJoI/AAAAAAAABjo/TTRuRnMHkjI/image_thumb%5B1%5D.png?imgmax=800" width="532" height="184" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;No indexed Database support (but it was supporting some months ago)&lt;/p&gt;  &lt;p&gt;2. Now I will try in &lt;strong&gt;Firefox&lt;/strong&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TWZla4jiP8I/AAAAAAAABjs/tX30uuFWaog/s1600-h/image%5B8%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TWZlcDEZYmI/AAAAAAAABjw/M2wInyQalsk/image_thumb%5B4%5D.png?imgmax=800" width="518" height="240" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;It is support indexed Database but not SQL data bases yet.&lt;/p&gt;  &lt;p&gt;3. Now try with &lt;strong&gt;Safari &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TWZldarYXvI/AAAAAAAABj0/kheUlTzPPFs/s1600-h/image%5B13%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TWZlehzX_AI/AAAAAAAABj4/2S2NBGTfafU/image_thumb%5B10%5D.png?imgmax=800" width="521" height="200" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;No Indexed Databases and file Access &lt;/p&gt;  &lt;p&gt;4. Now I will test in &lt;strong&gt;IE&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TWZlfu1oH9I/AAAAAAAABj8/k62AqOixrHk/s1600-h/image%5B18%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TWZlhDrAGCI/AAAAAAAABkA/1M3LGn6aE38/image_thumb%5B16%5D.png?imgmax=800" width="532" height="253" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;only it is web storage&lt;/p&gt;  &lt;p&gt;5. Final try it out with Opera&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TWZliCyCwNI/AAAAAAAABkE/0toDzg7rxbc/s1600-h/image%5B25%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TWZljoPE81I/AAAAAAAABkI/m1dOG1GTsPc/image_thumb%5B25%5D.png?imgmax=800" width="549" height="400" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;it is not supporting for indexed and file API&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;Here is full results&lt;/strong&gt;&lt;/p&gt;  &lt;table border="0" cellspacing="0" cellpadding="2" width="469"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="99"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="61"&gt;&lt;font size="2"&gt;&lt;strong&gt;Chrome&amp;#160;&amp;#160;&amp;#160; &lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="65"&gt;&lt;font size="2"&gt;&lt;strong&gt;Firefox&amp;#160;&amp;#160;&amp;#160; &lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="68"&gt;&lt;font size="2"&gt;&lt;strong&gt;Safari&amp;#160;&amp;#160;&amp;#160; &lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="84"&gt;&lt;font size="2"&gt;&lt;strong&gt;Opera&amp;#160;&amp;#160; &lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="90"&gt;&lt;font size="2"&gt;&lt;strong&gt;IE&lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="99"&gt;&lt;font style="background-color: #a5a5a5" color="#ffffff" size="2"&gt;&lt;/font&gt;&lt;font color="#ffffff" size="2"&gt;&lt;font color="#000000"&gt;Web&lt;/font&gt; &lt;font color="#000000"&gt;Storage&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="61"&gt;&lt;font color="#000000" size="2"&gt;yes&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="65"&gt;&lt;font color="#000000" size="2"&gt;yes&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="68"&gt;&lt;font color="#000000" size="2"&gt;yes&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="84"&gt;&lt;font color="#000000" size="2"&gt;yes&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="90"&gt;&lt;font color="#000000" size="2"&gt;yes&lt;/font&gt;&lt;font style="background-color: #a5a5a5" size="2"&gt;&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="99"&gt;&lt;font color="#0000ff" size="2"&gt;Indexed DB&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="61"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="65"&gt;&lt;font color="#0000ff" size="2"&gt;yes&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="68"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="84"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="90"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="99"&gt;&lt;font size="2"&gt;Web SQL DB&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="61"&gt;&lt;font size="2"&gt;yes&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="65"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="68"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="84"&gt;&lt;font size="2"&gt;Yes&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="90"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="99"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;strong&gt;File Access&lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="61"&gt;&lt;font size="2"&gt;yes&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="65"&gt;&lt;font size="2"&gt;yes&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="68"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="84"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/td&gt;        &lt;td valign="top" width="90"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;So all of browser support Web Storage with (key/Value)&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-705498414151310601?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/705498414151310601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=705498414151310601' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/705498414151310601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/705498414151310601'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/02/client-side-storages-with-html-5.html' title='Client-side Storages with HTML 5'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_9Z2F35N9rxA/TWZlZnlOJoI/AAAAAAAABjo/TTRuRnMHkjI/s72-c/image_thumb%5B1%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-4997783264045686742</id><published>2011-02-23T10:27:00.001-08:00</published><updated>2011-02-23T10:27:46.689-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>Enable the debugging menu in safari 4 in Windows 7</title><content type='html'>&lt;p&gt;I need the “debugging menu” of web browsers so I was need in safari, &lt;/p&gt;  &lt;p&gt;1. Go to dir where you have install safari in you PC (Windows 7)&lt;/p&gt;  &lt;p&gt;eg: D:\Program Files\Utilities\Safari&lt;/p&gt;  &lt;p&gt;2. Then in that dir you have to type &lt;/p&gt;  &lt;p&gt;Safari.exe executable: /enableInternalDebugMenu&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TWVRh5fKSDI/AAAAAAAABjU/RuDdvHhjBCI/s1600-h/image%5B8%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TWVRj1hohjI/AAAAAAAABjY/QZuINxsOe7Q/image_thumb%5B7%5D.png?imgmax=800" width="456" height="317" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;3. For disabling it&lt;/p&gt;  &lt;p&gt;Safari.exe executable: /disableInternalDebugMenu&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TWVRmIYNE8I/AAAAAAAABjc/SGN9vu78Y3c/s1600-h/image%5B3%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TWVRoKsY5_I/AAAAAAAABjg/k5-CIrKTr08/image_thumb%5B1%5D.png?imgmax=800" width="432" height="300" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;simple and Sweet, there some other ways to… but this one also easy as I think than changing “Preferences.plist”. &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-4997783264045686742?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/4997783264045686742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=4997783264045686742' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4997783264045686742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4997783264045686742'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/02/enable-debugging-menu-in-safari-4-in.html' title='Enable the debugging menu in safari 4 in Windows 7'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_9Z2F35N9rxA/TWVRj1hohjI/AAAAAAAABjY/QZuINxsOe7Q/s72-c/image_thumb%5B7%5D.png?imgmax=800' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-576964860985965425</id><published>2011-02-11T20:02:00.001-08:00</published><updated>2011-02-11T20:02:01.553-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Window Phone Application'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><category scheme='http://www.blogger.com/atom/ns#' term='phones'/><title type='text'>Nokia's Windows Phone 7 concept revealed!</title><content type='html'>&lt;p&gt;This is the first image you'll see anywhere of the early fruit of Microsoft and Nokia's budding new partnership.We have it on good authority that the Technicolor phones on show are conceptual devices produced by the two companies.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TVYGIbIWLxI/AAAAAAAABio/2Mlovb25ZK0/s1600-h/nw%5B3%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="nw" border="0" alt="nw" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TVYGJn0CkfI/AAAAAAAABis/SizTlwMKD_Q/nw_thumb%5B1%5D.jpg?imgmax=800" width="373" height="304" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt; &amp;quot;Recently, the Polish designer Michal Bonikowski and Rafal Pilat has designed a Nokia Windows Phone 7 concept phone, this Nokia concept phone looks like the HTC WP7 smartphone, which use the magnesium alloy body and has a 4.0-inch touchscreen display, a 8 megapixels camera as well as run the Windows Phone 7 system&amp;quot;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TVYGKn11BiI/AAAAAAAABiw/8zAcobUNedk/s1600-h/nw1%5B3%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="nw1" border="0" alt="nw1" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TVYGLiZUsaI/AAAAAAAABi0/Sxs4JaJXTgI/nw1_thumb%5B1%5D.jpg?imgmax=800" width="353" height="293" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;Here are some cool Nokia Windows Phone 7 concepts, thanks to EagleEye.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TVYGMYw9pJI/AAAAAAAABi4/fDFJj-r7jVU/s1600-h/nw2%5B4%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="nw2" border="0" alt="nw2" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TVYGNUk08DI/AAAAAAAABi8/IzEr2u5rsUk/nw2_thumb%5B1%5D.jpg?imgmax=800" width="444" height="297" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Nokia's new design -- the shape of these handsets is somewhere between its recent N8 and C7 Symbian devices and there is, as usual for Nokia, a choice of sprightly colors. The trio of keys adorning the new concept's bottom give away its Windows Phone 7 ties, but also remind us that the N8 and E7 are highly unlikely to receive any WP7 upgrade love. The best part about this whole discovery, however, might be that it confirms Steve Ballmer's assertion that the engineers of both companies have &amp;quot;spent a lot of time on this already.&amp;quot; So, who else is excited about owning an Engadget-blue Microkia device&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-576964860985965425?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/576964860985965425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=576964860985965425' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/576964860985965425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/576964860985965425'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/02/nokia-windows-phone-7-concept-revealed.html' title='Nokia&amp;#39;s Windows Phone 7 concept revealed!'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_9Z2F35N9rxA/TVYGJn0CkfI/AAAAAAAABis/SizTlwMKD_Q/s72-c/nw_thumb%5B1%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-3857380748461885729</id><published>2011-02-10T06:55:00.001-08:00</published><updated>2011-02-10T06:55:44.764-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web Applications'/><category scheme='http://www.blogger.com/atom/ns#' term='Local Storages'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>Cookies vs HTML5 Local Storages</title><content type='html'>&lt;p&gt;now I&amp;#160; am working on email project with HTML5 local storage, So these post will be for introduction for HTML5 local storages. &lt;/p&gt;  &lt;p&gt;When we start talking local storages in web applications cookies will be first word that come to my mind few yesra ago, later google gears, but now it is HTML5. Cookies were invented early in the web’s history, and indeed they can be used for persistent local storage of small amounts of data. &lt;/p&gt;  &lt;p&gt;cookies    &lt;br /&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;slowing down your web application by transmitting the same data over and over in HTTP request.     &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;sending data unencrypted over the internet (without SSL)     &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;are limited to about 4 KB of data &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;   &lt;br /&gt;if you need &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;a lot of storage space&lt;/li&gt;    &lt;li&gt;on the client&lt;/li&gt;    &lt;li&gt;that persists beyond a page refresh&lt;/li&gt;    &lt;li&gt;and isn’t transmitted to the server (unless you go out of your way to send it manually)&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;??&lt;/p&gt;  &lt;p&gt;answer is &lt;font size="3"&gt;&lt;strong&gt;HTML5.&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;here is simple code for checking HTML5 Local storages in browser&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;function supports_html5_storage(){     &lt;br /&gt; if (typeof(localStorage) == 'undefined' ) {      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;alert('Your browser does not support HTML5 localStorage. Try upgrading.');&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;} &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;else      &lt;br /&gt;{&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;alert('Your browser support HTML5 localStorage.');&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;}&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TVP8avIlMYI/AAAAAAAABig/E0JRkxKRH8g/s1600-h/image%5B3%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TVP8b7eBscI/AAAAAAAABik/7BYKCZ45_Ks/image_thumb%5B1%5D.png?imgmax=800" width="399" height="139" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-3857380748461885729?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/3857380748461885729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=3857380748461885729' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/3857380748461885729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/3857380748461885729'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/02/cookies-vs-html5-local-storages.html' title='Cookies vs HTML5 Local Storages'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_9Z2F35N9rxA/TVP8b7eBscI/AAAAAAAABik/7BYKCZ45_Ks/s72-c/image_thumb%5B1%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-175934133916563490</id><published>2011-02-05T02:40:00.001-08:00</published><updated>2011-02-05T02:41:22.786-08:00</updated><title type='text'>Is PC a Boy or a Girl?</title><content type='html'>&lt;p&gt;Today I went to my face book I found this on one of my friend’s (Prabath ayya) post&lt;/p&gt;  &lt;p&gt;&lt;font size="5"&gt;“&lt;/font&gt;&lt;font color="#0000ff"&gt;Is Your Computer a Boy or a Girl?     &lt;br /&gt;It’s pretty easy to find out what gender your computer is.      &lt;br /&gt;Follow the instructions.      &lt;br /&gt;1) Open your notepad      &lt;br /&gt;2) Type or copy paste: CreateObject(&amp;quot;SAPI.SpVoice&amp;quot;).Speak&amp;quot;I love you&amp;quot;      &lt;br /&gt;3) Save as computer_sex.vbs      &lt;br /&gt;4) Run the file.      &lt;br /&gt;If you hear a male voice, congratulations, you have a boy if woman’s, well, it’s a girl.      &lt;br /&gt;I have a baby girl :)      &lt;br /&gt;What about you? &lt;/font&gt;&lt;font size="5"&gt;”&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="5"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;so it is interesting I think to more about this&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;Now I will say how to make your PC girl or Boy as you like, update you “computer_sex.vbs” by open it by right click&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TU0o-TqGWFI/AAAAAAAABiA/LmEz_mBsg5E/s1600-h/image%5B8%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TU0o_0ZcrzI/AAAAAAAABiE/R7qtC5smPas/image_thumb%5B11%5D.png?imgmax=800" width="322" height="330" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TU0pBH-gkSI/AAAAAAAABiI/iQECTtBbt4k/s1600-h/image%5B12%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TU0pCVjs1uI/AAAAAAAABiM/_bm99TuN13o/image_thumb%5B13%5D.png?imgmax=800" width="535" height="185" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;Set VObj = CreateObject(&amp;quot;SAPI.SpVoice&amp;quot;)     &lt;br /&gt;&amp;#160;&amp;#160; with VObj      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Set .voice = .getvoices.item(0)      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; .Volume = 100      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; .Rate = 7      &lt;br /&gt;&amp;#160;&amp;#160; end with&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;VObj.Speak &amp;quot;&amp;lt;pitch middle='-25'&amp;gt;&amp;quot; &amp;amp;&amp;#160; &amp;quot;Hello how is you&amp;quot;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;pitch -25 male and to pitch 25 female&lt;/p&gt;  &lt;p&gt;control&amp;#160; volume and rate (specking speed)&lt;/p&gt;  &lt;p&gt;If you don’t know how to run this file?&lt;/p&gt;  &lt;p&gt;open cmd in windows try this …… enjoy you PC voice &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TU0pDHGj55I/AAAAAAAABiQ/Xr6i1Evxa88/s1600-h/image%5B18%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TU0pEaqEJpI/AAAAAAAABiU/Vabl4cIE_Lc/image_thumb%5B17%5D.png?imgmax=800" width="561" height="137" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TU0pFibANXI/AAAAAAAABiY/KIIqkgXfV6s/s1600-h/image%5B23%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TU0pG1m8ajI/AAAAAAAABic/399-pavkEQA/image_thumb%5B20%5D.png?imgmax=800" width="514" height="261" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-175934133916563490?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/175934133916563490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=175934133916563490' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/175934133916563490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/175934133916563490'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/02/is-your-computer-boy-or-girl.html' title='Is PC a Boy or a Girl?'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_9Z2F35N9rxA/TU0o_0ZcrzI/AAAAAAAABiE/R7qtC5smPas/s72-c/image_thumb%5B11%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-7620762070712650501</id><published>2011-02-04T10:07:00.001-08:00</published><updated>2011-02-04T10:07:02.962-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='E-Sri Lanka Mail'/><category scheme='http://www.blogger.com/atom/ns#' term='Socket Programing'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>Do you know about “HTML5 Web Sockets” ?</title><content type='html'>&lt;p&gt;I was doing my project on web email system that I am going to use HTML 5 for it. I found new HTML5 Web Sockets. It is interesting so here I am going to write this post on it.&lt;/p&gt;  &lt;p&gt;I will be explaining what techniques that we have been used to simulate server push until now and simple define HTML5 web sockets.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3"&gt;Directional work until now&lt;/font&gt;&lt;/strong&gt;    &lt;br /&gt;Until now, the web has been one directional.(web pages could only send a request to a web server, and not the other way around)&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3"&gt;AJAX entering to the web&lt;/font&gt;&lt;/strong&gt;    &lt;br /&gt;2005, AJAX came to world and web developers quickly adopted techniques to simulate a request from server to client known as polling.&amp;#160; There are two types of polling, &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;short polling&lt;/li&gt;    &lt;li&gt;long polling&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="2"&gt;Short polling&lt;/font&gt;&lt;/strong&gt; is implemented by making a request to the web server every few seconds or so to see if data has changed.&amp;#160; If it has, the web server will respond with the new data.&amp;#160; Otherwise, it will respond with a blank message. &lt;/p&gt;  &lt;p&gt;drawback :&amp;#160; there is a higher rate of server requests and an overhead in CPU usage on the web server and need network bandwidth for this messages for each second.&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;strong&gt;Long polling&lt;/strong&gt;&lt;/font&gt; is implemented by making a single request to the web server and keeping the connection open until the data has changed, at which point the web server sends back a response. &lt;/p&gt;  &lt;p&gt;draw back: server still has to check if the data has changed every few seconds.   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; it needs to send headers for every request and every response.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="3"&gt;HTML5 web socket?&lt;/font&gt;&lt;/strong&gt;    &lt;br /&gt;HTML5 Web Sockets will single handedly revolutionize web technologies. HTML5 will be the first HTML specification to support client side web sockets.&amp;#160; In other words, when data changes on the web server, the web server can send a request to client, eliminating the need for polling.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-7620762070712650501?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/7620762070712650501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=7620762070712650501' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7620762070712650501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7620762070712650501'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/02/do-you-know-about-html5-web-sockets.html' title='Do you know about “HTML5 Web Sockets” ?'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-5751141900611202619</id><published>2011-01-31T09:09:00.001-08:00</published><updated>2011-01-31T09:09:14.019-08:00</updated><title type='text'>Angry Birds Move</title><content type='html'>&lt;p&gt;Yesterday I was playing “ Angry Birds' creators Rovio ” and it is great game. Angry Birds' creators Rovio have announced that a new edition of the game will be a tie in with a Hollywood animated film.&lt;/p&gt;  &lt;p&gt;Angry Birds RIO , due for release in March, will feature characters from the movie RIO, made by the same people as Ice Age.&lt;/p&gt;  &lt;p&gt;The new game will have 45 levels.&lt;/p&gt;  &lt;p&gt;In it the birds travel to Brazil to try and rescue two new friends, Blu and Jewel, a pair of tropical birds who are the main stars of the film.&lt;/p&gt;  &lt;p&gt;Finnish developers Rovio said Angry Birds RIO would &amp;quot;pair the physics-based gameplay of the original with unique twists based on the highly-anticipated film.&amp;quot;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TUbss4jexbI/AAAAAAAABh0/ZqmsFb7E2DY/s1600-h/angry_birds_rio%5B3%5D.jpg"&gt;&lt;img style="display: block; float: none; margin-left: auto; margin-right: auto" title="angry_birds_rio" alt="angry_birds_rio" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TUbsuMGAIBI/AAAAAAAABh4/Njn24WC0wpA/angry_birds_rio_thumb%5B1%5D.jpg?imgmax=800" width="180" height="135" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-5751141900611202619?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/5751141900611202619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=5751141900611202619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/5751141900611202619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/5751141900611202619'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/01/angry-birds-move.html' title='Angry Birds Move'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_9Z2F35N9rxA/TUbsuMGAIBI/AAAAAAAABh4/Njn24WC0wpA/s72-c/angry_birds_rio_thumb%5B1%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-3794937800011638115</id><published>2011-01-27T00:26:00.001-08:00</published><updated>2011-01-27T00:26:33.047-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='c'/><title type='text'>C++  for Beginners</title><content type='html'>&lt;p&gt;Here I am writing quick and simple learn way for C++.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Functions&lt;/u&gt;&lt;/strong&gt; &lt;/p&gt;  &lt;p&gt;Using functions we can structure our programs in a more modular way,&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;type name ( parameter1, parameter2, ...) { statements }&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;eg:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;// add function example   &lt;br /&gt;#include &amp;lt;iostream&amp;gt;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;using namespace std;&lt;/p&gt;  &lt;p&gt;int add (int a, int b)   &lt;br /&gt;{    &lt;br /&gt;&amp;#160; int c;    &lt;br /&gt;&amp;#160; c=a+b;    &lt;br /&gt;&amp;#160; return (c);    &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;int main ()   &lt;br /&gt;{    &lt;br /&gt;&amp;#160; int result;    &lt;br /&gt;&amp;#160; result = add (2,3);    &lt;br /&gt;&amp;#160; cout &amp;lt;&amp;lt; &amp;quot;The result is &amp;quot; &amp;lt;&amp;lt; result ;    &lt;br /&gt;&amp;#160; system(&amp;quot;PAUSE&amp;quot;);    &lt;br /&gt;&amp;#160; return EXIT_SUCCESS;&lt;/p&gt;  &lt;p&gt;}&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-3794937800011638115?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/3794937800011638115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=3794937800011638115' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/3794937800011638115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/3794937800011638115'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2011/01/c-for-beginners.html' title='C++  for Beginners'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-5956724314012605216</id><published>2010-12-16T03:26:00.001-08:00</published><updated>2010-12-16T05:18:37.503-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C Programming'/><title type='text'>Simple ‘C’ function</title><content type='html'>&lt;p&gt;A function is a module or block of program code which deals with a particular task. &lt;/p&gt;  &lt;p&gt;function will make code   &lt;br /&gt;reusable     &lt;br /&gt;it stop be mixing on coding    &lt;br /&gt;It avoid repeating parts of the programming coding&lt;/p&gt;  &lt;p&gt;let make our add_integer to function and run it.&lt;/p&gt;  &lt;p&gt;here is modified code, Blue color text show the changes we did to our &lt;a href="http://madhukaudantha.blogspot.com/2010/12/add-two-integer-by-c.html"&gt;previous code&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;font color="#000000"&gt;#include&amp;lt;stdio.h&amp;gt; // standard input output header file     &lt;br /&gt;#include&amp;lt;conio.h&amp;gt;      &lt;br /&gt;main()      &lt;br /&gt;{      &lt;br /&gt;int a,b;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&lt;font color="#000000"&gt;printf(&amp;quot;enter any number&amp;quot;);       &lt;br /&gt;scanf(&amp;quot;%d&amp;quot;,&amp;amp;a); // or cin &amp;gt;&amp;gt; a        &lt;br /&gt;printf(&amp;quot;enter any number&amp;quot;);        &lt;br /&gt;scanf(&amp;quot;%d&amp;quot;,&amp;amp;b);        &lt;br /&gt;&lt;/font&gt;Add_Two_Integers(a,b);      &lt;br /&gt;Add_Two_Integers(12,23);      &lt;br /&gt;&lt;/font&gt;&lt;font color="#000000"&gt;getch();&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#000000"&gt;}&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;Add_Two_Integers(a,b)&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; /* Add a and b */&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;int a,b;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;{ int c;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;c = a + b;     &lt;br /&gt;printf (&amp;quot;\n%d&amp;quot;,c);&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;}&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#000000"&gt;here it is in running&lt;/font&gt;    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TQn3crgk6MI/AAAAAAAABgw/fkGo0hvHJFU/s1600-h/image%5B4%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TQn3dj6DxgI/AAAAAAAABg0/mtEb7UHRvYw/image_thumb%5B5%5D.png?imgmax=800" width="330" height="170" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-5956724314012605216?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/5956724314012605216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=5956724314012605216' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/5956724314012605216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/5956724314012605216'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/12/simple-c-function.html' title='Simple ‘C’ function'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_9Z2F35N9rxA/TQn3dj6DxgI/AAAAAAAABg0/mtEb7UHRvYw/s72-c/image_thumb%5B5%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-4516561726219364841</id><published>2010-12-16T03:11:00.001-08:00</published><updated>2010-12-16T03:11:39.208-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C Programming'/><title type='text'>Add Two Integer by ‘C’</title><content type='html'>&lt;p&gt;Here i will explain about C code for add two given integer by user.&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Every C program must have a main() function. &lt;/li&gt;    &lt;li&gt;Program will be in starting curly bracket { and } ending curly bracket. &lt;/li&gt;    &lt;li&gt;Then we define variables, here we need 3 variables integer variables a,b &amp;amp; c. C will hold result value.&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;printf&lt;/strong&gt;() function will print a message.      &lt;br /&gt;&lt;strong&gt;scanf&lt;/strong&gt;() function is used to input a value from the keyboard. (Value input by the keyboard will be stored in variable 'a' and second value will be sotred in 'b')&lt;/li&gt;    &lt;li&gt;we have used %d format string. %d is for integer means we have to input a integer from the keyboard.     &lt;br /&gt;&lt;em&gt;&lt;u&gt;Format Strings:&lt;/u&gt;&lt;/em&gt;&lt;/li&gt;    &lt;li&gt;%d - integer&lt;/li&gt;    &lt;li&gt;%f - float&lt;/li&gt;    &lt;li&gt;%c – character&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;+ is an arithmetic operator&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;getch&lt;/strong&gt;() statement is a get character statement. It pause the output until user presses a key from the keyboard.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;here is c coding for that&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;#include&amp;lt;stdio.h&amp;gt; // standard input output header file     &lt;br /&gt;#include&amp;lt;conio.h&amp;gt;      &lt;br /&gt;main()      &lt;br /&gt;{      &lt;br /&gt;int a,b,c;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;printf(&amp;quot;enter Integer:&amp;quot;);     &lt;br /&gt;scanf(&amp;quot;%d&amp;quot;,&amp;amp;a); // or cin &amp;gt;&amp;gt; a      &lt;br /&gt;printf(&amp;quot;enter Integer:&amp;quot;);      &lt;br /&gt;scanf(&amp;quot;%d&amp;quot;,&amp;amp;b);      &lt;br /&gt;c=a+b;      &lt;br /&gt;printf(&amp;quot;%d&amp;quot;,c);      &lt;br /&gt;getch();      &lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#000000"&gt;Code is running……&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TQnz5fIfY6I/AAAAAAAABgo/WrGjob-SdYI/s1600-h/image%5B3%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TQnz6QuFlOI/AAAAAAAABgs/TwGd1q2i8yE/image_thumb%5B1%5D.png?imgmax=800" width="383" height="179" /&gt;&lt;/a&gt;&lt;font color="#0000ff"&gt;     &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-4516561726219364841?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/4516561726219364841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=4516561726219364841' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4516561726219364841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4516561726219364841'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/12/add-two-integer-by-c.html' title='Add Two Integer by ‘C’'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_9Z2F35N9rxA/TQnz6QuFlOI/AAAAAAAABgs/TwGd1q2i8yE/s72-c/image_thumb%5B1%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-8284999606917410074</id><published>2010-12-16T02:54:00.001-08:00</published><updated>2010-12-16T02:54:57.903-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>C programing in windows 7</title><content type='html'>&lt;p&gt;hi, today I got call from&amp;#160; my friend and I asked about “c” Programing so I think to write small “C hello world” program in Windows 7. &lt;/p&gt;  &lt;p&gt;C&amp;#160; is a computer programming language developed in 1972 by Dennis Ritchie for use with the Unix operating system. C was designed for implementing system software but it is also widely used for developing portable application software.&lt;/p&gt;  &lt;p&gt;I can give more details on C later, Let Us Code it,&lt;/p&gt;  &lt;p&gt;We can use lot of ways to code I will used windows cmd as I am prefer all the time.   &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TQnv0xcciFI/AAAAAAAABf0/BV9zxugni60/s1600-h/image%5B7%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TQnv2Z8EICI/AAAAAAAABf4/PokFOLg6FUw/image_thumb%5B6%5D.png?imgmax=800" width="332" height="322" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;1. Click Start, point to All Programs, Microsoft Visual Studio 2010, and Visual Studio Tools, and then click Visual Studio 2010 Command Prompt.&lt;/p&gt;  &lt;p&gt;2. Go to the directory you need to create you C program by the command prompt. (eg: cd dir/dir1/cproject)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TQnv3GZi8xI/AAAAAAAABf8/z6t7wAhpaXk/s1600-h/image%5B11%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TQnv4ABHqfI/AAAAAAAABgA/fsRzhvnNCXE/image_thumb%5B8%5D.png?imgmax=800" width="493" height="147" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;3. Then type notepad hello.c and press ENTER. (hello is program name), Click Yes to create a file.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TQnv5HbcXJI/AAAAAAAABgE/1BMnLNoXN5o/s1600-h/image%5B16%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TQnv6Nx31NI/AAAAAAAABgI/Y8YVc8VoPRU/image_thumb%5B15%5D.png?imgmax=800" width="499" height="229" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;4. In opened Notepad, type the below codes and save it.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;int main(void)     &lt;br /&gt;{      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; printf(&amp;quot;Hello to C program.\n&amp;quot;);      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; return 0;      &lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;5. In the command prompt, type cl hello.c and press ENTER.&lt;/p&gt;  &lt;p&gt;The cl.exe compiler generates an executable program, hello.exe.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TQnv6-C4lII/AAAAAAAABgM/BNLvhJBiTcE/s1600-h/image%5B20%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TQnv7mIpnKI/AAAAAAAABgQ/AQ9tdIEBvqo/image_thumb%5B17%5D.png?imgmax=800" width="481" height="195" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TQnv83CN8BI/AAAAAAAABgU/141PON9Ujek/s1600-h/image%5B25%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TQnv96-upLI/AAAAAAAABgY/KGRq9DWhsSM/image_thumb%5B23%5D.png?imgmax=800" width="474" height="219" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;here is file that are generated&lt;/p&gt;  &lt;p&gt;6. To run hello.exe, type hello and press ENTER.&lt;/p&gt;  &lt;p&gt;The program displays this text and exits:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TQnv-qmVDoI/AAAAAAAABgc/ml7RRFdZdFk/s1600-h/image%5B29%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TQnv_mwAiwI/AAAAAAAABgg/kbewzZH0yv8/image_thumb%5B25%5D.png?imgmax=800" width="499" height="132" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;7. To close command prompt type exit&lt;/p&gt;  &lt;p&gt; So you can try more C code now….&lt;/p&gt;  &lt;p&gt;You can use “Dev c++” IDEs for C programming even. &lt;img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TQnwAOc07aI/AAAAAAAABgk/Bw-PsE8B8vE/wlEmoticon-smile%5B2%5D.png?imgmax=800" /&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-8284999606917410074?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/8284999606917410074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=8284999606917410074' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8284999606917410074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8284999606917410074'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/12/c-programing-in-windows-7.html' title='C programing in windows 7'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_9Z2F35N9rxA/TQnv2Z8EICI/AAAAAAAABf4/PokFOLg6FUw/s72-c/image_thumb%5B6%5D.png?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-1290154675931226935</id><published>2010-11-19T03:31:00.001-08:00</published><updated>2010-11-19T03:31:15.227-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ROR'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>Create Simple Form in ROR and Retrieving</title><content type='html'>&lt;p&gt;hi, I was try some ROR simple way to me and I found another simple way for forms, But there can be more simple ways for this,&lt;/p&gt;  &lt;p&gt;Here is my practice&amp;#160; at this time&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;find.html.erb&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;lt;% form_for :search, :url =&amp;gt; { :action =&amp;gt; &amp;quot;dotags&amp;quot; } do |f| %&amp;gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;%= f.error_messages %&amp;gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160; First name: &amp;lt;%= f.text_field :sname %&amp;gt;&amp;lt;br /&amp;gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;%= f.submit 'Search' %&amp;gt;      &lt;br /&gt;&amp;lt;% end %&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TOZf_UMHZzI/AAAAAAAABfQ/W7emXLKJHL8/s1600-h/image%5B3%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TOZgAZMx30I/AAAAAAAABfU/nCSk48ibCl8/image_thumb%5B4%5D.png?imgmax=800" width="244" height="66" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;search_controller.rb&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;&lt;font color="#0000ff"&gt;&amp;#160; def dotags&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #get our params&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; @mytest = (params[:search][:sname])     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print(&amp;quot;sname&amp;quot;+@mytest.to_s)      &lt;br /&gt;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160; end&lt;/font&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-1290154675931226935?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/1290154675931226935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=1290154675931226935' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/1290154675931226935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/1290154675931226935'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/11/create-simple-form-in-ror-and.html' title='Create Simple Form in ROR and Retrieving'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_9Z2F35N9rxA/TOZgAZMx30I/AAAAAAAABfU/nCSk48ibCl8/s72-c/image_thumb%5B4%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-666384957133737551</id><published>2010-11-18T22:15:00.001-08:00</published><updated>2010-11-18T22:16:01.960-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ROR'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>Radio buttons on ROR</title><content type='html'>&lt;p&gt;it is very simple work again putting Radio Button in ruby on rails. But I suffer about 2 hours for it. Radio buttons are import to in where user have to select one of a thing in list, Such as Gender&lt;/p&gt;  &lt;p&gt;so here is the way to make it. in view file it is look like&lt;/p&gt;  &lt;p&gt;&lt;font color="#4f81bd"&gt;&amp;lt;% form_for(@profile) do |f| %&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#4f81bd"&gt;&amp;lt;p&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;%= f.label :name %&amp;gt;&amp;lt;br /&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;%= f.text_field :name %&amp;gt;      &lt;br /&gt;&amp;#160; &amp;lt;/p&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#4f81bd"&gt;&amp;lt;p&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;%= f.label :gender %&amp;gt;&amp;lt;br /&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;font color="#0000ff"&gt;&amp;lt;%= radio_button :profile, :gender, &amp;quot;Male&amp;quot;&amp;#160;&amp;#160; %&amp;gt; male       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;%= radio_button :profile, :gender, &amp;quot;Female&amp;quot; %&amp;gt; female        &lt;br /&gt;&lt;/font&gt;&amp;#160; &amp;lt;/p&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color="#4f81bd"&gt; &amp;lt;p&amp;gt;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;%= f.submit 'Update' %&amp;gt;      &lt;br /&gt;&amp;#160; &amp;lt;/p&amp;gt;      &lt;br /&gt;&amp;lt;% end %&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TOYWG7N_-0I/AAAAAAAABfI/Rr_F-5UXnd4/s1600-h/image%5B5%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TOYWILwz2mI/AAAAAAAABfM/PHG_bMIpkpQ/image_thumb%5B8%5D.png?imgmax=800" width="280" height="88" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;note&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160; &lt;strong&gt;&amp;lt;%= radio_button(object_name, method, tag_value, options) %&amp;gt;label&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;isn’t it simple?&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-666384957133737551?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/666384957133737551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=666384957133737551' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/666384957133737551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/666384957133737551'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/11/radio-buttons-on-ror.html' title='Radio buttons on ROR'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_9Z2F35N9rxA/TOYWILwz2mI/AAAAAAAABfM/PHG_bMIpkpQ/s72-c/image_thumb%5B8%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-7021198012081564550</id><published>2010-11-17T04:03:00.001-08:00</published><updated>2010-11-17T04:03:02.268-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='phones'/><title type='text'>Would you like to know if your mobile is original or not?</title><content type='html'>&lt;p&gt;&lt;b&gt;Press the following on your mobile&lt;font color="#ff0000" size="5"&gt; &lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;font color="#ff0000" size="5"&gt;*#06#&lt;/font&gt; &lt;/b&gt;&lt;b&gt;and the-international mobile equipment identity number appears. Then check the &lt;/b&gt;&lt;b&gt;&lt;font size="4"&gt;&lt;font color="#c0504d"&gt;7&lt;sup&gt;th&lt;/sup&gt;&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;b&gt; &lt;/b&gt;&lt;b&gt;and &lt;/b&gt;&lt;font color="#c0504d"&gt;&lt;b&gt;&lt;font size="4"&gt;8&lt;sup&gt;th&lt;/sup&gt;&lt;/font&gt;&lt;/b&gt; &lt;/font&gt;&lt;b&gt;numbers:&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TOPEbSSvuHI/AAAAAAAABfA/rkRtC6CO0nE/s1600-h/image%5B4%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TOPEdE0w4BI/AAAAAAAABfE/PcC8n1WtRjE/image_thumb%5B6%5D.png?imgmax=800" width="572" height="87" /&gt;&lt;/a&gt;&lt;b&gt;&lt;/b&gt;    &lt;p&gt;     &lt;br /&gt;IF the Seventh &amp;amp; Eighth digits are&lt;font color="#ff0000"&gt; &lt;/font&gt;&lt;/p&gt;   &lt;font color="#ff0000"&gt;&lt;b&gt;02 &lt;/b&gt;&lt;b&gt;or &lt;/b&gt;&lt;b&gt;20&lt;/b&gt;&lt;/font&gt; &lt;b&gt;this means your cell phone was assembled in &lt;/b&gt;&lt;b&gt;Emirates&lt;/b&gt; &lt;b&gt;which is very Bad quality&lt;/b&gt; &lt;/p&gt; &lt;b&gt;   &lt;p&gt;     &lt;br /&gt;IF the Seventh &amp;amp; Eighth digits are &lt;/p&gt;   &lt;font color="#ff0000"&gt;&lt;b&gt;08&lt;/b&gt; &lt;b&gt;or &lt;/b&gt;&lt;b&gt;80&lt;/b&gt;&lt;/font&gt; &lt;b&gt;this means your cell phone was manufactured in &lt;/b&gt;&lt;b&gt;Germany &lt;/b&gt;&lt;b&gt;which is fair quality&lt;/b&gt; &lt;/b&gt;&lt;b&gt;   &lt;p&gt;     &lt;br /&gt;IF the Seventh &amp;amp; Eighth digits are&lt;/p&gt;   &lt;b&gt;&amp;#160; &lt;font color="#ff0000"&gt;01&lt;/font&gt;&lt;/b&gt;&lt;font color="#ff0000"&gt;&lt;b&gt;&amp;#160; or &lt;/b&gt;&lt;b&gt;10&lt;/b&gt;&lt;/font&gt;&lt;b&gt;&lt;font color="#ff0000"&gt; &lt;/font&gt; this means your cell phone was manufactured in &lt;/b&gt;&lt;b&gt;Finland &lt;/b&gt;&lt;b&gt;which is very Good&lt;/b&gt;&lt;/b&gt;&lt;b&gt;   &lt;p&gt;     &lt;br /&gt;IF the Seventh &amp;amp; Eighth digits are &lt;/p&gt;   &lt;b&gt;&lt;font color="#ff0000"&gt;00&lt;/font&gt;&lt;/b&gt; &lt;b&gt;this means your cell phone was manufactured in &lt;/b&gt;&lt;b&gt;original factory &lt;/b&gt;&lt;b&gt;which is the best Mobile Quality&lt;/b&gt;&lt;/b&gt;  &lt;p&gt;&lt;b&gt;     &lt;br /&gt;IF the Seventh &amp;amp; Eighth digits are &lt;/b&gt;&lt;b&gt;&lt;font color="#ff0000"&gt;13&lt;/font&gt;&lt;/b&gt;&lt;b&gt;&amp;#160; this means your cell phone was assembled in&lt;/b&gt;&lt;b&gt;Azerbaijan&lt;/b&gt;&lt;b&gt; &lt;/b&gt;&lt;b&gt;which is very Bad quality and also dangerous for your health &lt;/b&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-7021198012081564550?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/7021198012081564550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=7021198012081564550' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7021198012081564550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7021198012081564550'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/11/would-you-like-to-know-if-your-mobile.html' title='Would you like to know if your mobile is original or not?'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_9Z2F35N9rxA/TOPEdE0w4BI/AAAAAAAABfE/PcC8n1WtRjE/s72-c/image_thumb%5B6%5D.png?imgmax=800' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-4006222477588652277</id><published>2010-11-15T18:18:00.000-08:00</published><updated>2010-11-16T18:19:57.947-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft student champ community - Sri Lanka'/><category scheme='http://www.blogger.com/atom/ns#' term='Me'/><category scheme='http://www.blogger.com/atom/ns#' term='Champs Networking Month'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Do you Know this Champs Networking Month?</title><content type='html'>&lt;h5&gt;&lt;font size="3"&gt;If you Don’t know champs Networking Month, It is for you then!!&lt;/font&gt;&lt;/h5&gt;  &lt;h5&gt;Sri Lanka’s largest and ever growing undergraduate student technical community, “&lt;a href="http://www.champs.lk/default.aspx"&gt;Microsoft Student Champs&lt;/a&gt;” has broaden it’s horizons over the last few months. Since been commenced in 2005, it has been an active community. But from the number of community members, it didn’t had large quantities in the beginning. No worries! we do only count on quality more than the quantity. Champs only concern about encouraging members to be active in the society for their own betterment and for the goodness of fellow members. But year-by-year number grew rapidly.&lt;/h5&gt;  &lt;p&gt;&lt;a href="http://1.bp.blogspot.com/_6h_zOF7ZsEE/TOLPImpZuwI/AAAAAAAAAJc/NlK7d3PPzMc/s1600/champs.png"&gt;&lt;img style="display: block; float: none; margin-left: auto; margin-right: auto" src="http://1.bp.blogspot.com/_6h_zOF7ZsEE/TOLPImpZuwI/AAAAAAAAAJc/NlK7d3PPzMc/s400/champs.png" width="521" height="374" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a name="more"&gt;&lt;/a&gt;    &lt;br /&gt;In the initial stage champs was formed by Microsoft with the participation of students from University of Colombo and University of Moratuwa. But we didn’t want to keep the benefits only to us. So, since then champs community has reached 13 other universities and institutes in the country (and some others planning to get onboard soon !) We have been to several universities across the country to host our meetings and workshops. In the shortest form, we are planning to give the benefits of the champs community for other interested people. Our effort is not only to share the benefits, but we want to have good relationships with all the university students to see whether there any way to help each other .    &lt;br /&gt;Taking that effort another step forward, we have commence this November as the “&lt;strong&gt;&lt;em&gt;Champs Networking Month&lt;/em&gt;&lt;/strong&gt;”.    &lt;br /&gt;What is the networking month? Well, this is not only about giving a chance to other enthusiasts who is so much passionate about the technology to get onboard. But what we are primarily targeting is, to getting networked with other university undergraduate societies in the country.    &lt;br /&gt;Not only technical societies! It might be any student society or a club which intend to do something for the fellow students and for the community. Of course, we will have lots to share and lots to learn from each other.&amp;#160; By the end of the networking month, we hope to improve our connections among the Sri Lankan undergraduate societies and to get in touch with them to see how we can finally help our country as young-talented graduates.    &lt;br /&gt;For further details visit champs &lt;a href="http://www.champs.lk/default.aspx"&gt;web site&lt;/a&gt; and &lt;a href="http://www.facebook.com/studentchamps"&gt;Facebook page&lt;/a&gt;.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-4006222477588652277?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/4006222477588652277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=4006222477588652277' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4006222477588652277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4006222477588652277'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/11/do-you-know-this-champs-networking.html' title='Do you Know this Champs Networking Month?'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_6h_zOF7ZsEE/TOLPImpZuwI/AAAAAAAAAJc/NlK7d3PPzMc/s72-c/champs.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-8359655432804930915</id><published>2010-11-04T10:39:00.001-07:00</published><updated>2010-11-04T10:39:20.582-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ROR'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><title type='text'>File Uploading using RoR on Windows 7</title><content type='html'>&lt;p&gt;I did code on ROR in two months, but now i need to do some project by ROR and my development OS is windows 7.   &lt;br /&gt;I have a requirement web site visitors to upload a file on our server. Rails makes it very easy to handle this requirement so I select ROR for this,&lt;/p&gt;  &lt;p&gt;let us try it out.&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;C:\test&amp;gt;rails upload     &lt;br /&gt;C:\test&amp;gt; cd upload      &lt;br /&gt;C:\test\upload&amp;gt; mkdir upload\public\data&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Creating Model&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;We have to create a &amp;quot;DataFile&amp;quot; model.&lt;/p&gt;  &lt;p&gt;&amp;gt;&lt;font color="#0000ff"&gt; ruby script/generate model DataFile&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;then create a method called &amp;quot;save&amp;quot; in upload/app/models/data_file.rb&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;class DataFile &amp;lt; ActiveRecord::Base     &lt;br /&gt;&amp;#160; def self.save(upload)      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; name =&amp;#160; upload['datafile'].original_filename      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; directory = &amp;quot;public/data&amp;quot;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; # create the file path      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; path = File.join(directory, name)      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; # write the file      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; File.open(path, &amp;quot;wb&amp;quot;) { |f| f.write(upload['datafile'].read) }      &lt;br /&gt;&amp;#160; end      &lt;br /&gt;end&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Creating Controller&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Let's create a controller for our upload project:&lt;/p&gt;  &lt;p&gt;&amp;gt; &lt;font color="#0000ff"&gt;ruby script/generate controller Upload&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;After that we open upload/app/controllers/upload_controller.rb file and save the following code:&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;class UploadController &amp;lt; ApplicationController     &lt;br /&gt;&amp;#160; def index      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; render :file =&amp;gt; 'app\views\upload\uploadfile.html.erb'      &lt;br /&gt;&amp;#160; end      &lt;br /&gt;&amp;#160; def uploadFile      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; post = DataFile.save( params[:upload])      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; render :text =&amp;gt; &amp;quot;File has been uploaded successfully&amp;quot;      &lt;br /&gt;&amp;#160; end      &lt;br /&gt;end&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Creating View&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Finally we will create a view file app/views/upload/uploadfile.html.erb &lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff"&gt;&amp;lt;h1&amp;gt;File Upload&amp;lt;/h1&amp;gt;     &lt;br /&gt;&amp;lt;% form_tag({:action =&amp;gt; 'uploadFile'},       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; :multipart =&amp;gt; true) do %&amp;gt;      &lt;br /&gt;&amp;lt;p&amp;gt;&amp;lt;label for=&amp;quot;upload_file&amp;quot;&amp;gt;Select File&amp;lt;/label&amp;gt; :       &lt;br /&gt;&amp;lt;%= file_field 'upload', 'datafile' %&amp;gt;&amp;lt;/p&amp;gt;      &lt;br /&gt;&amp;lt;%= submit_tag &amp;quot;Upload&amp;quot; %&amp;gt;      &lt;br /&gt;&amp;lt;% end %&amp;gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;OK,   &lt;br /&gt;Finally run the project&lt;/p&gt;  &lt;p&gt;&amp;gt; &lt;font color="#0000ff"&gt;ruby script/server&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TNLvtk1a5rI/AAAAAAAABeY/t-9aeuYMb4Y/s1600-h/image%5B4%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TNLvvQ2fThI/AAAAAAAABec/W5FqJVC5UK8/image_thumb%5B5%5D.png?imgmax=800" width="474" height="274" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TNLvwSghPhI/AAAAAAAABeg/rWxAadFxJTk/s1600-h/image%5B9%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TNLvxjUgCrI/AAAAAAAABek/KXQnotC-4cM/image_thumb%5B12%5D.png?imgmax=800" width="465" height="150" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Check the folder …\upload\public\data for the uploaded file.&lt;/p&gt;  &lt;p&gt;Woow, it is Work out…&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-8359655432804930915?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/8359655432804930915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=8359655432804930915' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8359655432804930915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8359655432804930915'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/11/file-uploading-using-ror-on-windows-7.html' title='File Uploading using RoR on Windows 7'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_9Z2F35N9rxA/TNLvvQ2fThI/AAAAAAAABec/W5FqJVC5UK8/s72-c/image_thumb%5B5%5D.png?imgmax=800' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-3583599586122085896</id><published>2010-10-27T23:51:00.001-07:00</published><updated>2010-10-27T23:52:48.360-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Me'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><category scheme='http://www.blogger.com/atom/ns#' term='j2ME'/><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><category scheme='http://www.blogger.com/atom/ns#' term='phones'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Career Guidance in ICT, plus Mobile application development</title><content type='html'>&lt;p&gt;Yesterday, I did Career Guidance in ICT that Organized by Sri Lanka Foundation Institute. I did session ‘Developing Simple Mobile Applications’.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TMkdG_lOR5I/AAAAAAAABdU/1TEZT0__M30/s1600-h/image%5B15%5D%5B2%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="image[15]" border="0" alt="image[15]" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TMkdIhzKzrI/AAAAAAAABdY/WJ4PSKqe9NQ/image%5B15%5D_thumb.png?imgmax=800" width="238" height="313" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I briefed about Mobile application development&lt;/p&gt;  &lt;p&gt;“Mobile application development is the process by which applications are developed for small low-power handheld devices such as personal digital assistants, enterprise digital assistants or mobile phones. These applications are either pre-installed on phones during manufacture, or downloaded by customers from app stores and other mobile software distribution platforms.”&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TMkdKA9azVI/AAAAAAAABdc/DnFUAox1uKA/s1600-h/27102010276%5B4%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="27102010276" border="0" alt="27102010276" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TMkdK6igq-I/AAAAAAAABdg/H5bMM-0a_0A/27102010276_thumb%5B1%5D.jpg?imgmax=800" width="240" height="180" /&gt;&lt;/a&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TMkdMYayb7I/AAAAAAAABdk/urE5w4CRHuw/s1600-h/27102010277%5B4%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="27102010277" border="0" alt="27102010277" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TMkdNdyR2NI/AAAAAAAABds/Qe6WZNKm7tg/27102010277_thumb%5B1%5D.jpg?imgmax=800" width="240" height="180" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This was the path for the session on that day&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;› Introduction on about Mobile application development&lt;/li&gt;    &lt;li&gt;› Platform and Environment&lt;/li&gt;    &lt;li&gt;› Platform development environment&lt;/li&gt;    &lt;li&gt;› J2me Hello world (Demo)&lt;/li&gt;    &lt;li&gt;› Windows Phone 7 application (Demo)&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font size="2"&gt;Links for download these IDE’s &lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Here is the link for downloading net beans for j2ME: &lt;a href="http://netbeans.org/downloads/start.html?platform=windows&amp;amp;lang=en&amp;amp;option=java"&gt;http://netbeans.org/downloads/start.html?platform=windows&amp;amp;lang=en&amp;amp;option=java&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Expression Blend 4 Release Candidate (RC) is available for download here. &lt;a href="http://www.softpedia.com/get/Multimedia/Graphic/Graphic-Editors/Microsoft-Expression-Blend.shtml"&gt;http://www.softpedia.com/get/Multimedia/Graphic/Graphic-Editors/Microsoft-Expression-Blend.shtml&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Visual Studio 2010 Express is available for download here. &lt;a href="http://www.microsoft.com/express/Downloads/"&gt;http://www.microsoft.com/express/Downloads/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Here is that j2ME Hello world code&lt;/u&gt;&lt;/strong&gt; &lt;/p&gt;  &lt;p&gt;HiMidlet.java&lt;/p&gt;  &lt;p&gt;package hello;&lt;/p&gt;  &lt;p&gt;import javax.microedition.midlet.*;&lt;/p&gt;  &lt;p&gt;import javax.microedition.lcdui.*;&lt;/p&gt;  &lt;p&gt;public class HiMidlet extends MIDlet {&lt;/p&gt;  &lt;p&gt;private Display display;&lt;/p&gt;  &lt;p&gt;private Form form;&lt;/p&gt;  &lt;p&gt;public void startApp() {&lt;/p&gt;  &lt;p&gt;form = new Form(&amp;quot;Sri Lanka Foundation&amp;quot;);&lt;/p&gt;  &lt;p&gt;String msg = &amp;quot;Hello to j2ME&amp;quot;;&lt;/p&gt;  &lt;p&gt;form.append(msg);&lt;/p&gt;  &lt;p&gt;display = Display.getDisplay(this);&lt;/p&gt;  &lt;p&gt;display.setCurrent(form);&lt;/p&gt;  &lt;p&gt;}&lt;/p&gt;  &lt;p&gt;public void pauseApp() {&lt;/p&gt;  &lt;p&gt;}&lt;/p&gt;  &lt;p&gt;public void destroyApp(boolean unconditional) {&lt;/p&gt;  &lt;p&gt;}&lt;/p&gt;  &lt;p&gt;}&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="2"&gt;&lt;u&gt;Here the links to download project file&lt;/u&gt;&lt;/font&gt;&lt;/strong&gt; &lt;/p&gt;  &lt;p&gt;J2me Application: &lt;a href="http://rapidshare.com/files/427559037/HelloICT.zip"&gt;http://rapidshare.com/files/427559037/HelloICT.zip&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Windows phone 7 Application: &lt;a href="http://rapidshare.com/files/427563269/hiwp7.zip"&gt;http://rapidshare.com/files/427563269/hiwp7.zip&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TMkdOqulOjI/AAAAAAAABdw/GjZgHyNPfCw/s1600-h/image%5B20%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TMkdRVeMQFI/AAAAAAAABd0/pXCbeCeCcPo/image_thumb%5B21%5D.png?imgmax=800" width="135" height="244" /&gt;&lt;/a&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TMkdSvp1x0I/AAAAAAAABd4/V7v4WowsaN8/s1600-h/image%5B24%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TMkdTkAte0I/AAAAAAAABd8/xOQJahL9uf0/image_thumb%5B26%5D.png?imgmax=800" width="134" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Here is jar application for j2me: &lt;a href="http://rapidshare.com/files/427563269/hiwp7.zip"&gt;http://rapidshare.com/files/427563269/hiwp7.zip&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TMkdVPz2NoI/AAAAAAAABeA/-C22hn8NKVI/s1600-h/image%5B3%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TMkdWD3GTqI/AAAAAAAABeE/mTFo1-f49Pg/image_thumb%5B1%5D.png?imgmax=800" width="153" height="333" /&gt;&lt;/a&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TMkdXAlaQAI/AAAAAAAABeI/6zmD_8-oOzo/s1600-h/image%5B9%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TMkdXyuCeRI/AAAAAAAABeM/1nPWKRlLI3s/image_thumb%5B9%5D.png?imgmax=800" width="268" height="331" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-3583599586122085896?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/3583599586122085896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=3583599586122085896' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/3583599586122085896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/3583599586122085896'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/10/career-guidance-in-ict-plus-mobile.html' title='Career Guidance in ICT, plus Mobile application development'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_9Z2F35N9rxA/TMkdIhzKzrI/AAAAAAAABdY/WJ4PSKqe9NQ/s72-c/image%5B15%5D_thumb.png?imgmax=800' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-5710413481100424019</id><published>2010-10-24T12:12:00.001-07:00</published><updated>2010-10-24T12:12:58.508-07:00</updated><title type='text'>C# application using Command Line</title><content type='html'>&lt;p&gt;Hi, I used to cmd and programming ID in different programming languages, So I will tell how to do C# Application in command line. &lt;/p&gt;  &lt;p&gt;Microsoft’s .NET SDK ships with a command line compiler called csc.exe. It can be executed from within the DOS prompt.&lt;/p&gt;   &lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TMSFHvFXHuI/AAAAAAAABc8/d8yoNgwCu0I/s1600-h/image%5B4%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TMSFJd7BNjI/AAAAAAAABdA/cmU-alLr-p4/image_thumb%5B6%5D.png?imgmax=800" width="337" height="327" /&gt;&lt;/a&gt;  &lt;p&gt;1. Open note pad and enter below code and save it as ‘HelloWorld.cs’&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;// HelloWorld.cs&lt;/p&gt;  &lt;p&gt;// -------------&lt;/p&gt;  &lt;p&gt;using System;&lt;/p&gt;  &lt;p&gt;class HelloWorld&lt;/p&gt;  &lt;p&gt;{&lt;/p&gt;  &lt;p&gt;public static void Main()&lt;/p&gt;  &lt;p&gt;{&lt;/p&gt;  &lt;p&gt;Console.WriteLine(&amp;quot;Hello World&amp;quot;);   &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;} &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;NOTE::&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;'‘using System;’defines the namespace System. &lt;/li&gt;    &lt;li&gt;&amp;quot;class HelloWorld” declares our class named HelloWorld. &lt;/li&gt;    &lt;li&gt;Line “public static void Main()” defines the Main() method, which is considered as a entry point for all C# programs. &lt;/li&gt;    &lt;li&gt;“WriteLine()” method of the Console class and prints &amp;quot;Hello World&amp;quot; as output.&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Now move to compiling the code by using a C# compiler. I assume you are using the compiler which ship with .NET SDK. (I am on .NET 4)&lt;/strong&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;you have to give the following command at the DOS prompt as shown in the figure given below&lt;/p&gt;  &lt;pre&gt;&lt;pre&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;csc HelloWorld.cs&lt;/font&gt;&lt;/strong&gt; &lt;/pre&gt;&lt;pre&gt;&amp;#160;&lt;/pre&gt;&lt;pre&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TMSFKOFEjHI/AAAAAAAABdE/-9mzJCjY2Y4/s1600-h/image%5B8%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TMSFLet-eTI/AAAAAAAABdI/ro-W5RkfOcM/image_thumb%5B8%5D.png?imgmax=800" width="513" height="180" /&gt;&lt;/a&gt;&lt;/pre&gt;&lt;pre&gt;&amp;#160;&lt;/pre&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;( If you have installed Mono C# Compiler then you should compile the above program using the following command: mcs HelloWorld.cs )&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;NOTE::&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If there are any errors and warnings, the compiler will display them during the above process. You have to go through all those messages and correct them preferably by going back to the source code. As explained earlier, C# is a case sensitive language and hence even if you miss a semicolon or a comma, the compiler will throw error messages. If there are no errors and warnings your screen would look like as shown in the figure given above.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To view the output of the above program, you have to supply the name of the assembly (HelloWorld.exe) at the DOS prompt.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;For example, you have to give the following command for executing the above program.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;pre&gt;HelloWorld &lt;/pre&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The output will be as shown in the figure given below&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TMSFM6q1lTI/AAAAAAAABdM/UEuy9K8bEEE/s1600-h/image%5B12%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TMSFODUssVI/AAAAAAAABdQ/SdIR9MVKDRo/image_thumb%5B10%5D.png?imgmax=800" width="505" height="177" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Using ID as Visual studio is really Ok, but it will be great when you know cmd&amp;#160; (Command prompt commands) also can do them,You will be smart programmer.&amp;#160; &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-5710413481100424019?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/5710413481100424019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=5710413481100424019' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/5710413481100424019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/5710413481100424019'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/10/c-application-using-command-line.html' title='C# application using Command Line'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_9Z2F35N9rxA/TMSFJd7BNjI/AAAAAAAABdA/cmU-alLr-p4/s72-c/image_thumb%5B6%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-8025921182565787296</id><published>2010-10-15T11:01:00.001-07:00</published><updated>2010-10-15T11:01:01.937-07:00</updated><title type='text'>Drag and Drop in C# (WPF)</title><content type='html'>&lt;p&gt;Today I started working on C# project again for my friend, So I have to polish my C# canvas knowledge back &lt;img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TLiW0JrJfTI/AAAAAAAABbc/US-bYtzRqK0/wlEmoticon-smile%5B2%5D.png?imgmax=800" /&gt;&lt;/p&gt;  &lt;p&gt;Lets Crete simple Drag and Drop in C# (WPF), Create WPF project in VS 2010.&lt;/p&gt;  &lt;p&gt;Here i create a simple drag able object based on a Thumb&lt;/p&gt;  &lt;p&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Thumb &lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;myThumb&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;DragDelta&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;onDragDelta&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Canvas.Left&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;0&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Canvas.Top&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;0&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Template&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;{&lt;/span&gt;&lt;span style="color: #a31515"&gt;StaticResource &lt;/span&gt;&lt;span style="color: red"&gt;ball&lt;/span&gt;&lt;span style="color: blue"&gt;}&amp;quot;/&amp;gt; &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;Lets create the most simplest shape template Ellipse ball.&lt;/p&gt;  &lt;pre class="code"&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Window.Resources&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;ResourceDictionary&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;ControlTemplate &lt;/span&gt;&lt;span style="color: red"&gt;x&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: red"&gt;Key&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;ball&amp;quot;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Ellipse &lt;/span&gt;&lt;span style="color: red"&gt;Width&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;60&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Height&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;30&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Fill&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Blue&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;ControlTemplate&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;ResourceDictionary&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;    &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;Window.Resources&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;here is the updated you XAML file. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Window &lt;/span&gt;&lt;span style="color: red"&gt;x&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: red"&gt;Class&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Dragging.MainWindow&amp;quot;&lt;br /&gt;        &lt;/span&gt;&lt;span style="color: red"&gt;xmlns&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;br /&gt;        &lt;/span&gt;&lt;span style="color: red"&gt;xmlns&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: red"&gt;x&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;br /&gt;        &lt;/span&gt;&lt;span style="color: red"&gt;Title&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;MainWindow&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Height&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;350&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Width&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;525&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Window.Resources&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;ResourceDictionary&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;ControlTemplate &lt;/span&gt;&lt;span style="color: red"&gt;x&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: red"&gt;Key&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;ball&amp;quot;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Ellipse &lt;/span&gt;&lt;span style="color: red"&gt;Width&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;60&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Height&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;30&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Fill&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Blue&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;ControlTemplate&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;ResourceDictionary&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;    &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;Window.Resources&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;    &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Grid&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Canvas &lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;myCanvas&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Thumb &lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;myThumb&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;DragDelta&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;onDragDelta&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Canvas.Left&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;0&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Canvas.Top&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;0&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Template&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;{&lt;/span&gt;&lt;span style="color: #a31515"&gt;StaticResource &lt;/span&gt;&lt;span style="color: red"&gt;ball&lt;/span&gt;&lt;span style="color: blue"&gt;}&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;Canvas&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;    &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;Grid&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;Window&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Our Thumb element needs actually one event handler for the basic drag support implementation – &amp;quot;onDragDelta&amp;quot;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;void &lt;/span&gt;onDragDelta(&lt;span style="color: blue"&gt;object &lt;/span&gt;sender, &lt;span style="color: #2b91af"&gt;DragDeltaEventArgs &lt;/span&gt;e)&lt;br /&gt;       {&lt;br /&gt;           &lt;span style="color: #2b91af"&gt;Canvas&lt;/span&gt;.SetLeft(myThumb, &lt;span style="color: #2b91af"&gt;Canvas&lt;/span&gt;.GetLeft(myThumb) + e.HorizontalChange);&lt;br /&gt;           &lt;span style="color: #2b91af"&gt;Canvas&lt;/span&gt;.SetTop(myThumb, &lt;span style="color: #2b91af"&gt;Canvas&lt;/span&gt;.GetTop(myThumb) + e.VerticalChange);&lt;br /&gt;       }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Press F5&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TLiW1wFH-EI/AAAAAAAABbg/eHIU_RUX1Nw/s1600-h/image%5B4%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TLiW3FLYz5I/AAAAAAAABbk/U2ehNTFJP28/image_thumb%5B7%5D.png?imgmax=800" width="367" height="249" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-8025921182565787296?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/8025921182565787296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=8025921182565787296' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8025921182565787296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8025921182565787296'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/10/drag-and-drop-in-c-wpf.html' title='Drag and Drop in C# (WPF)'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_9Z2F35N9rxA/TLiW0JrJfTI/AAAAAAAABbc/US-bYtzRqK0/s72-c/wlEmoticon-smile%5B2%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-7128263734133005603</id><published>2010-10-11T04:50:00.001-07:00</published><updated>2010-10-11T04:50:29.766-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='SOAP'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Service'/><category scheme='http://www.blogger.com/atom/ns#' term='Axis2'/><category scheme='http://www.blogger.com/atom/ns#' term='tomcat'/><title type='text'>Hello World with Apache Axis2</title><content type='html'>&lt;p&gt;Lets develop a Web service with an operation which will echo a string value under Axis 2.&lt;/p&gt; &lt;p&gt;1. Create Folder called ‘Server’&lt;/p&gt; &lt;p&gt;2. In sever folder create ‘SimpleService.java’&lt;/p&gt; &lt;div&gt;&lt;font color="#0000ff"&gt;&lt;span class="rem"&gt;/**&lt;/span&gt;&lt;br&gt;&lt;span class="rem"&gt;* The service implementation class&lt;/span&gt;&lt;br&gt;&lt;span class="rem"&gt;*/&lt;/span&gt;&lt;br&gt;&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; SimpleService {&lt;br&gt;&lt;br&gt;&lt;span class="kwrd"&gt;public&lt;/span&gt; String echo(String value) {&lt;br&gt;&lt;span class="kwrd"&gt;return&lt;/span&gt; value;&lt;br&gt;}&lt;br&gt;}&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;pre class="csharpcode"&gt;3. In sever folder create new folder name it as ‘META-INF’&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;pre class="csharpcode"&gt;4. In that ‘META-INF’ folder create ‘services.xml’&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;pre&gt;&lt;font color="#0000ff"&gt;&amp;lt;service&amp;gt;&lt;br&gt;	&amp;lt;parameter name="ServiceClass" &lt;br&gt;          locked="false"&amp;gt;SimpleService&amp;lt;/parameter&amp;gt;&lt;br&gt;	&amp;lt;operation name="echo"&amp;gt;&lt;br&gt;		&amp;lt;messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/&amp;gt;&lt;br&gt;	&amp;lt;/operation&amp;gt;    &lt;br&gt;&amp;lt;/service&amp;gt;&lt;/font&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;pre&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;br&gt;&lt;strong&gt;&lt;font size="2"&gt;NOTE&lt;/font&gt;&lt;/strong&gt;:&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Within the "service" element there should be a parameter specifying the service implementation Java class. &lt;/li&gt;&lt;/ul&gt;&lt;pre&gt;&amp;lt;parameter name="ServiceClass" locked="false"&amp;gt;SimpleService&amp;lt;/parameter&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;The second child element of the "service" element "operation" element describes the operation and the message receiver that is to be used for that operation. Hence we set it to "echo":&lt;/li&gt;&lt;/ul&gt;&lt;pre&gt;&amp;lt;operation name="echo"&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Axis2 provides a MessageReceiver based on Java reflection and the "messageReceiver" element declaring that org.apache.axis2.rpc.receivers.RPCMessageReceiver should be used.&lt;/li&gt;&lt;/ul&gt;&lt;pre&gt;&amp;lt;messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;br /&gt;&lt;div&gt;&lt;pre class="csharpcode"&gt;&lt;font face="Lucida Sans"&gt;5. In sever folder create another new folder name it as ‘temp’&lt;/font&gt;&lt;/pre&gt;&lt;pre class="csharpcode"&gt;&lt;font face="Lucida Sans"&gt;6. Open command  prompt in sever folder. (Shift + Right Click mouse)&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;7. Now compile the SimpleService.java class and move the SimpleService.class file to the temp directory.&lt;pre&gt;javac SimpleService.java -d temp/&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;8. Create a META-INF directory within the "temp" directory and copy the service.xml file into the META-INF directory. Change directory to the "temp" directory and use the "jar" command as follows to create the service archive named SimpleService.aar.&lt;pre&gt;jar -cvf SimpleService.aar *&lt;/pre&gt;&lt;pre&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TLL55fd4jYI/AAAAAAAABbE/CNmjjRqBkGg/s1600-h/image%5B5%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TLL561gg1mI/AAAAAAAABbI/QWyfDN5U0t8/image_thumb%5B3%5D.png?imgmax=800" width="586" height="298"&gt;&lt;/a&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font face="Lucida Sans"&gt;9. Using Axis2 with Tomcat to host start tomcat go to &lt;/font&gt;&lt;a href="http://localhost:8080/axis2/axis2-admin/&amp;rsquo;"&gt;&lt;font face="Lucida Sans"&gt;‘http://localhost:8080/axis2/axis2-admin/’&lt;/font&gt;&lt;/a&gt;&lt;font face="Lucida Sans"&gt; user name ‘admin’ password ‘axis2’ then upload your ‘SimpleService.aar’ in ‘\Server\temp’ directory&lt;/font&gt; &lt;/pre&gt;&lt;pre&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TLL58DyTXoI/AAAAAAAABbM/TDS_k87J4Sw/s1600-h/image%5B10%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TLL5-FWR-jI/AAAAAAAABbQ/p5_GG2tWNk8/image_thumb%5B6%5D.png?imgmax=800" width="501" height="432"&gt;&lt;/a&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font face="Lucida Sans"&gt;then click to ‘upload’&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font face="Lucida Sans"&gt;10.  then Go to ‘&lt;a href="http://localhost:8080/axis2/services/SimpleService?wsdl"&gt;http://localhost:8080/axis2/services/SimpleService?wsdl&lt;/a&gt;’&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TLL5_cLVcLI/AAAAAAAABbU/GhCmIJHFnQ8/s1600-h/image%5B15%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TLL6A2FEOrI/AAAAAAAABbY/97j-KbgYgvs/image_thumb%5B9%5D.png?imgmax=800" width="408" height="364"&gt;&lt;/a&gt;&lt;/pre&gt;&lt;pre&gt;DONE.&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-7128263734133005603?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/7128263734133005603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=7128263734133005603' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7128263734133005603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/7128263734133005603'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/10/hello-world-with-apache-axis2.html' title='Hello World with Apache Axis2'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_9Z2F35N9rxA/TLL561gg1mI/AAAAAAAABbI/QWyfDN5U0t8/s72-c/image_thumb%5B3%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-2079418328851976090</id><published>2010-10-10T23:57:00.001-07:00</published><updated>2010-10-24T10:58:09.810-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft student champ community - Sri Lanka'/><category scheme='http://www.blogger.com/atom/ns#' term='Me'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>අපි ගියෝ, infotel ප්‍රදර්ශනය පැත්තේ</title><content type='html'>&lt;p&gt;තොරතුරු තාක්ෂණය වෙනුවෙන්ම පවත් වන infotel ප්‍රදර්ශනය ලංකවේ මෙම් මස පලමු සතියේ පැවැත් විය. මේහි තේමාව වුයේ “සංවර්ධනයට තොරතුරු තාක්ෂණය” යි.මේවර පැවැත්වුයේ&amp;#160; infotel දසවන සරණියයි. &lt;/p&gt;  &lt;p&gt;මේන්න අපිත්……..&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TLK0u-3GrEI/AAAAAAAABaM/vrxq3nkynoA/s1600-h/image%5B11%5D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TLK0w2CWqjI/AAAAAAAABaQ/sbNvNzjY35E/image_thumb%5B13%5D.png?imgmax=800" width="287" height="208" /&gt;&lt;/a&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TLK02GiYInI/AAAAAAAABaU/PvAiUr0lBSw/s1600-h/image%5B13%5D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TLK05Ow6DyI/AAAAAAAABaY/E0d8oAehDMo/image_thumb%5B15%5D.png?imgmax=800" width="306" height="206" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-punch" alt="Punch" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TMRzpa6AuqI/AAAAAAAABbs/8FyrYDsdA40/wlEmoticon-punch%5B2%5D.png?imgmax=800" /&gt; මේහි Microsoft තාක්ෂණයන් බේදා ගත් අපි…..&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TLK0-ur0JgI/AAAAAAAABac/5HNcQ23oWYo/s1600-h/image%5B23%5D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TLK1AruXiVI/AAAAAAAABak/0qaFxIzNYsI/image_thumb%5B27%5D.png?imgmax=800" width="295" height="192" /&gt;&lt;/a&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TLK1F0zeT9I/AAAAAAAABao/F3Dg5oWf47U/s1600-h/image%5B22%5D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TLK1H7ZaGNI/AAAAAAAABas/wf67hQel1YA/image_thumb%5B26%5D.png?imgmax=800" width="287" height="196" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-messenger" alt="Messenger" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TMRzqVDK61I/AAAAAAAABbw/lCEYqIkvNm0/wlEmoticon-messenger%5B2%5D.png?imgmax=800" /&gt; අපි ක්‍රීඩාව අමතක නොකලේමු…..&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TLK1M-P5y-I/AAAAAAAABaw/qZgcYdmLvYw/s1600-h/image%5B28%5D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TLK1O686quI/AAAAAAAABa0/rdE0U6eXq_g/image_thumb%5B34%5D.png?imgmax=800" width="293" height="197" /&gt;&lt;/a&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TLK1UuFXHnI/AAAAAAAABa4/pzPrqC2Ty50/s1600-h/image%5B33%5D.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TLK1W-ZympI/AAAAAAAABa8/8CjlOvy9XNE/image_thumb%5B40%5D.png?imgmax=800" width="274" height="196" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;මේත් අපි, දක්ෂයන් සොයාගයමු…... &lt;img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TLK1ZO3-xcI/AAAAAAAABbA/q6CZGkAH1ow/wlEmoticon-winkingsmile%5B2%5D.png?imgmax=800" /&gt;&lt;/p&gt;  &lt;p&gt;ඔබත් තොරතුරු තාක්ෂණයට ඇලුම් කරයිද, එයට අපි අතහිත දෙමු….. &lt;img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TMRzrjL8EAI/AAAAAAAABb0/varH2oxBfes/wlEmoticon-smile%5B2%5D.png?imgmax=800" /&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-2079418328851976090?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/2079418328851976090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=2079418328851976090' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2079418328851976090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2079418328851976090'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/10/microsoft-technologies-was-spreading.html' title='අපි ගියෝ, infotel ප්‍රදර්ශනය පැත්තේ'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_9Z2F35N9rxA/TLK0w2CWqjI/AAAAAAAABaQ/sbNvNzjY35E/s72-c/image_thumb%5B13%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-8439488389704683532</id><published>2010-09-30T23:23:00.000-07:00</published><updated>2010-10-10T23:33:18.966-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft student champ community - Sri Lanka'/><category scheme='http://www.blogger.com/atom/ns#' term='Me'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Microsoft Student Champs Workshop at UCSC</title><content type='html'>&lt;p&gt;Microsoft Student Champs with the purpose of empowering students with latest technical knowledge and assuming their community responsibilities for helping fellow students, reached University of Colombo School of computing for a single day workshop. Workshop was held at UCSC on 29&lt;sup&gt;th&lt;/sup&gt; of September 2010 with the participation of more than 200 students. &lt;/p&gt;  &lt;p&gt;The event proceeded with two main goals. That is, to give an idea to the students about .Net technologies from an industrial point-of-view, and to motivate young students to take part in the world’s largest student technical competition, Microsoft Imagine Cup!&lt;/p&gt;  &lt;p&gt;Keynote speech is done by Mr. Wellington Perera (Director DPE, Microsoft Sri Lanka). He introduce the next year Imagine Cup competition, &amp;quot;Imagine Cup 2011 - New York&amp;quot; and explain the features and behavior of the Visual Studio 2010.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TLKvgjXbQaI/AAAAAAAABZ8/iOl479EcM7o/s1600-h/image%5B13%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TLKvjcLzw_I/AAAAAAAABaA/aoSZ-2QHxAc/image_thumb%5B17%5D.png?imgmax=800" width="385" height="310" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The young students, who were new to the Champs community, were introduced to the Microsoft Student Champs program by Oshan Siriwardena (Microsoft student Ambassador). They were informed about the benefits and the opportunities of this unique and ever growing student program.&lt;/p&gt;  &lt;p&gt;Mr. Preethiviraj Kulasingham, a community leader and a expert in SQL Server technologies, conduct a session on SQL Server. He covered the tips and tricks to good data base design and maintaining with SQL Server 2008.&lt;/p&gt;  &lt;p&gt;&lt;img alt="" src="http://blog.champs.lk/image.axd?picture=2010%2f10%2fDSC00054.JPG" width="448" height="358" /&gt;&lt;/p&gt;  &lt;p&gt;Hasini Adhikari and Chanaka Upendra recently graduated students from UCSC itself and also the winners of the Imagine cup local competition 2010, discussed their experience in the previous Imagine Cup competitions. &lt;/p&gt;  &lt;p&gt;Mr. Prabath Fonseka did a presentation about ASP.Net. He covered the basic concepts of ASP.Net technologies and inspired the young programmers to explore new trends in web technologies related to ASP.Net.&lt;/p&gt;  &lt;p&gt;&lt;img alt="" src="http://blog.champs.lk/image.axd?picture=2010%2f10%2fDSC00104b.jpg" width="380" height="400" /&gt;&lt;/p&gt;  &lt;p&gt;Mr. Uditha Bandara, Microsoft Valuable professional for XNA gaming, did a presentation on XNA Games and introduce the audience to XNA game developement.&lt;/p&gt;  &lt;p&gt;&lt;img alt="" src="http://blog.champs.lk/image.axd?picture=2010%2f10%2fDSC00139.JPG" width="300" height="230" /&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TLKvob1W-sI/AAAAAAAABaE/tTtwRmEVD_E/s1600-h/image%5B14%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TLKvrPx2tTI/AAAAAAAABaI/o0l4gIu2J1A/image_thumb%5B18%5D.png?imgmax=800" width="460" height="262" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-8439488389704683532?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/8439488389704683532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=8439488389704683532' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8439488389704683532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/8439488389704683532'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/09/microsoft-student-champs-workshop-at.html' title='Microsoft Student Champs Workshop at UCSC'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_9Z2F35N9rxA/TLKvjcLzw_I/AAAAAAAABaA/aoSZ-2QHxAc/s72-c/image_thumb%5B17%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-5986792878233894994</id><published>2010-09-30T10:48:00.001-07:00</published><updated>2010-09-30T10:55:40.420-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SOAP'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Service'/><category scheme='http://www.blogger.com/atom/ns#' term='IIS'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Using the Web Service Under IIS</title><content type='html'>&lt;p&gt;Now we have a Web service (&lt;a href="http://madhukaudantha.blogspot.com/2010/09/creating-web-service-under-iis.html"&gt;Previous post&lt;/a&gt;), and we will create a Web site where you will reference and use the Web service that we created on IIS.&lt;/p&gt;  &lt;p&gt;1. Create New Web Application and name it as a 'CalculatorClient'&lt;/p&gt;  &lt;p&gt;2.The Web service is a component that you can reference in your application. Therefore, you must create a reference to it. To do that AddWeb Reference.&lt;/p&gt;  &lt;p&gt;3.In the URL list, enter the following URL for the Web service, and then click Go:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://localhost:23660/MyCalculator.asmx"&gt;http://localhost:23660/MyCalculator.asmx&lt;/a&gt; (Web service URL)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TKTNTkrAVkI/AAAAAAAABZk/2k0334-qXR4/s1600-h/image%5B3%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TKTNVL0_LgI/AAAAAAAABZo/Ih9oYU_cXaM/image_thumb%5B1%5D.png?imgmax=800" width="404" height="282" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;4. Click Add Reference.&lt;/p&gt;  &lt;p&gt;To call the Web service methods&lt;/p&gt;  &lt;p&gt;5. Open the Default.aspx page and switch to Design view.&lt;/p&gt;  &lt;p&gt;From the Standard group in the Toolbox, drag and drop the following controls onto the page&amp;#160; as below.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TKTNWE4BSCI/AAAAAAAABZs/uEZtS3WuoYg/s1600-h/image%5B8%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TKTNXe0-3YI/AAAAAAAABZw/greWy-QCyUU/image_thumb%5B8%5D.png?imgmax=800" width="335" height="351" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;6. Double-click AddButton to create an event handler for its Click event and update code as below&lt;/p&gt;  &lt;pre class="code"&gt;&lt;span style="color: blue"&gt;protected void &lt;/span&gt;Button1_Click(&lt;span style="color: blue"&gt;object &lt;/span&gt;sender, &lt;span style="color: #2b91af"&gt;EventArgs &lt;/span&gt;e)&lt;br /&gt; {&lt;br /&gt;     localhost.&lt;span style="color: #2b91af"&gt;MyCalculator &lt;/span&gt;cal = &lt;span style="color: blue"&gt;new &lt;/span&gt;localhost.&lt;span style="color: #2b91af"&gt;MyCalculator&lt;/span&gt;();&lt;br /&gt;     &lt;span style="color: blue"&gt;int &lt;/span&gt;a = &lt;span style="color: #2b91af"&gt;Int32&lt;/span&gt;.Parse(TextBox1.Text);&lt;br /&gt;     &lt;span style="color: blue"&gt;int &lt;/span&gt;b = &lt;span style="color: #2b91af"&gt;Int32&lt;/span&gt;.Parse(TextBox2.Text);&lt;br /&gt;     Label1.Text = &lt;span style="color: #a31515"&gt;&amp;quot;&amp;quot;&lt;/span&gt;+cal.add(a,b);&lt;br /&gt; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;7. Press CTRL+F5 to run the page.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TKTNYmpTPrI/AAAAAAAABZ0/lvmhwfD5qzE/s1600-h/image%5B12%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TKTNaPKPY0I/AAAAAAAABZ4/tYgZghhar38/image_thumb%5B10%5D.png?imgmax=800" width="433" height="322" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-5986792878233894994?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/5986792878233894994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=5986792878233894994' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/5986792878233894994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/5986792878233894994'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/09/using-web-service-under-iis.html' title='Using the Web Service Under IIS'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_9Z2F35N9rxA/TKTNVL0_LgI/AAAAAAAABZo/Ih9oYU_cXaM/s72-c/image_thumb%5B1%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-2096865018869826019</id><published>2010-09-30T08:11:00.001-07:00</published><updated>2010-09-30T08:11:44.230-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SOAP'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Service'/><category scheme='http://www.blogger.com/atom/ns#' term='IIS'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Creating a Web Service Under the IIS</title><content type='html'>&lt;p&gt;Creating a Web Service Under the IIS Root&lt;/p&gt;  &lt;p&gt;1. On the File menu, click Create New Web Application. (named it as ‘calculatorWebService’)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TKSofUg3jZI/AAAAAAAABY4/6BDnWqd38HE/s1600-h/image%5B3%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TKSohDPchpI/AAAAAAAABY8/pb53D_WxlZ8/image_thumb%5B1%5D.png?imgmax=800" width="454" height="257" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;To create the Web service&lt;/p&gt;  &lt;p&gt;2. In Solution Explorer, right-click the Web site name and then click Add New Item.&lt;/p&gt;  &lt;p&gt;3. Click Web Service, and then in the Name box, type ‘MyCalculator’.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TKSoitMEY7I/AAAAAAAABZA/uLUmo4vHqKQ/s1600-h/image%5B7%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TKSokhCzboI/AAAAAAAABZI/Bw9Ps_1lJHc/image_thumb%5B3%5D.png?imgmax=800" width="449" height="254" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Lets create the add methods&lt;/p&gt;  &lt;p&gt;4. Add the below code inside the class, after the HelloWorld method.&lt;/p&gt;  &lt;pre class="code"&gt;[System.Web.Services.&lt;span style="color: #2b91af"&gt;WebMethod&lt;/span&gt;()]&lt;br /&gt;      &lt;span style="color: blue"&gt;public double &lt;/span&gt;add(&lt;span style="color: blue"&gt;int &lt;/span&gt;a, &lt;span style="color: blue"&gt;int &lt;/span&gt;b)&lt;br /&gt;      {&lt;br /&gt;          &lt;span style="color: blue"&gt;return &lt;/span&gt;(a+b);&lt;br /&gt;      }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To test the Web service&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;5. In Solution Explorer, click Convert.asmx, and then press CTRL+F5. (The browser shows the methods that are exposed by the Web service)&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TKSolQekilI/AAAAAAAABZM/PP9uVFxMEXM/s1600-h/image%5B12%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TKSom0l-WVI/AAAAAAAABZQ/u5QAyFIGsMs/image_thumb%5B9%5D.png?imgmax=800" width="314" height="182" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;6. Click add, which invokes that method.(A page appears that prompts you for parameter values for the add method.)&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TKSon6UTlYI/AAAAAAAABZU/QHpLNVWYxe8/s1600-h/image%5B17%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TKSopCOV0YI/AAAAAAAABZY/HTCsVx5H2Dg/image_thumb%5B15%5D.png?imgmax=800" width="300" height="230" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TKSoqC4z0NI/AAAAAAAABZc/rxI6pI1Xn3c/s1600-h/image%5B22%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TKSore_O3pI/AAAAAAAABZg/lVJar5viMJY/image_thumb%5B21%5D.png?imgmax=800" width="295" height="124" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;You have finished creating the Web service; the next step is to use it. So next post will be on it.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-2096865018869826019?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/2096865018869826019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=2096865018869826019' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2096865018869826019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/2096865018869826019'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/09/creating-web-service-under-iis.html' title='Creating a Web Service Under the IIS'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_9Z2F35N9rxA/TKSohDPchpI/AAAAAAAABY8/pb53D_WxlZ8/s72-c/image_thumb%5B1%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-6926264598628683283</id><published>2010-09-28T10:59:00.001-07:00</published><updated>2010-09-28T11:02:24.600-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='SOAP'/><category scheme='http://www.blogger.com/atom/ns#' term='netbeans'/><title type='text'>Consuming the Web Service by Java Client Application</title><content type='html'>&lt;p&gt;My &lt;a href="http://madhukaudantha.blogspot.com/2010/09/jax-web-services-with-simple-tutorial.html"&gt;last post&lt;/a&gt; say how to deploy the web service,     &lt;br /&gt;So this post will be on create a client to make use of the web service's add method. Here, client will be a Java class in a Java SE application.&lt;/p&gt;  &lt;p&gt;1.Choose File &amp;gt; New Project (Ctrl-Shift-N). Select Java Application from the Java category. Name the project MyWSClient_Application.(default settings then Click Finish)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TKIswZyGLzI/AAAAAAAABYQ/sYCSuBhi_Rs/s1600-h/image%5B8%5D%5B3%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image[8]" border="0" alt="image[8]" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TKIsxlbm67I/AAAAAAAABYU/sBGNEZoHC3A/image%5B8%5D_thumb%5B1%5D.png?imgmax=800" width="419" height="97" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TKIsy8YFUYI/AAAAAAAABYY/rUVqWOWdmFg/s1600-h/image%5B10%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TKIs0NNoEZI/AAAAAAAABYc/GShWK7NOQ0w/image_thumb%5B7%5D.png?imgmax=800" width="426" height="213" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;2.Right-click the CalculatorWS_Client_Application node and choose New &amp;gt; Web Service Client.(default and click Finish)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TKIs1NvMbwI/AAAAAAAABYg/5lW-gREfq_g/s1600-h/image%5B15%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TKIs2XpZaVI/AAAAAAAABYk/_l1jMJCYxg0/image_thumb%5B13%5D.png?imgmax=800" width="377" height="214" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TKIs3tWEpZI/AAAAAAAABYo/AR2j_ML3tdM/s1600-h/image%5B19%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TKIs5b8YUyI/AAAAAAAABYs/F-EG3IFJM_I/image_thumb%5B15%5D.png?imgmax=800" width="478" height="324" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;3.The Projects window displays you can find node for the add method that you created &lt;a href="http://madhukaudantha.blogspot.com/2010/09/jax-web-services-with-simple-tutorial.html"&gt;last time.&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TKIs6XETZiI/AAAAAAAABYw/AFOgTPQcFxo/s1600-h/image%5B23%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TKIs7UOTVPI/AAAAAAAABY0/MUwbfp7aZbg/image_thumb%5B21%5D.png?imgmax=800" width="244" height="193" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;4.Now open Main.java and then drag the add node above into the ‘// TODO code application logic here’ line. You now see the following:&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; public static void main(String[] args) {   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;try { // Call Web Service Operation    &lt;br /&gt;&amp;#160;&amp;#160; org.me.calculator.CalculatorWSService service = new org.me.calculator.CalculatorWSService();    &lt;br /&gt;&amp;#160;&amp;#160; org.me.calculator.CalculatorWS port = service.getCalculatorWSPort();&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; //change value of int   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; int a =&lt;font size="2"&gt; &lt;/font&gt;&lt;strong&gt;&lt;font size="2"&gt;10;       &lt;br /&gt;&lt;/font&gt;&lt;/strong&gt;&amp;#160;&amp;#160;&amp;#160; int b = &lt;strong&gt;&lt;font size="2"&gt;3;       &lt;br /&gt;&lt;/font&gt;&lt;/strong&gt;&amp;#160;&amp;#160; // TODO process result here    &lt;br /&gt;&amp;#160;&amp;#160; int result = port.add(a, b);    &lt;br /&gt;&amp;#160;&amp;#160; System.out.println(&amp;quot;Result = &amp;quot;+result);    &lt;br /&gt;} catch (Exception ex) {    &lt;br /&gt;&amp;#160;&amp;#160; // TODO handle custom exceptions here    &lt;br /&gt;}    &lt;br /&gt;// TODO code application logic here    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;run and see&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Result = 13&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;you just consume the web service that you created in &lt;a href="http://madhukaudantha.blogspot.com/2010/09/jax-web-services-with-simple-tutorial.html"&gt;last post&lt;/a&gt;.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-6926264598628683283?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/6926264598628683283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=6926264598628683283' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/6926264598628683283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/6926264598628683283'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/09/consuming-web-service-by-java-client.html' title='Consuming the Web Service by Java Client Application'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_9Z2F35N9rxA/TKIsxlbm67I/AAAAAAAABYU/sBGNEZoHC3A/s72-c/image%5B8%5D_thumb%5B1%5D.png?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-4686969698209169292</id><published>2010-09-27T05:13:00.001-07:00</published><updated>2010-09-27T05:17:50.111-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft student champ community - Sri Lanka'/><category scheme='http://www.blogger.com/atom/ns#' term='Me'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>September, Monthly Meeting of Microsoft Student Champ community</title><content type='html'>&lt;p&gt;Monthly Meeting of Microsoft Student Champ community of September, 2010 was held on 3&lt;sup&gt;rd&lt;/sup&gt; September at Auditorium, 3rd Floor, DHPL Tower from 4.00 p.m to 6.30 p.m&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TKCKIpm6UUI/AAAAAAAABXw/meBGwEan0SU/s1600-h/SAM_2603%5B4%5D.jpg"&gt;&lt;img style="display: inline" title="SAM_2603" alt="SAM_2603" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TKCKJzg_fCI/AAAAAAAABX0/bjA4Tky85fw/SAM_2603_thumb%5B2%5D.jpg?imgmax=800" width="317" height="238" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Country Manager, Microsoft Sri Lanka Sriyan de Silva Wijeyeratne addressed Microsoft Student Champ. He pointed out 21st Century Software Program, Upper coming Microsoft Technologies and Cloud Computing.&lt;/p&gt;  &lt;p&gt;Student Presentation was done by Thurupathan Vijayakumar who is Microsoft Student Champ from University Moratuwa and it was about “Cloud Computing with Windows Azure Platform” &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TKCKLgQF1HI/AAAAAAAABX4/ug2pYugkkUM/s1600-h/SAM_2620%5B3%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="SAM_2620" border="0" alt="SAM_2620" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TKCKNYZXeII/AAAAAAAABX8/lZcWv_H8MAc/SAM_2620_thumb%5B1%5D.jpg?imgmax=800" width="314" height="236" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Chief Executive Officer, Ridgecrest Financial (Pvt) Ltd, Sanath Fernando did the Industry Presentation on “Entrepreneurship”.&amp;#160; He talked about ‘LinkLK’ platform too.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TKCKPNVY-CI/AAAAAAAABYA/IS3nBPVGMUQ/s1600-h/SAM_2614%5B2%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="SAM_2614" border="0" alt="SAM_2614" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TKCKQvLkkJI/AAAAAAAABYE/vQ5z5K-5JcU/SAM_2614_thumb.jpg?imgmax=800" width="244" height="184" /&gt;&lt;/a&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TKCKSWghfqI/AAAAAAAABYI/Wk2tLQy2q7I/s1600-h/SAM_2627%5B2%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="SAM_2627" border="0" alt="SAM_2627" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TKCKTh2wcdI/AAAAAAAABYM/gI3fBVncmkQ/SAM_2627_thumb.jpg?imgmax=800" width="244" height="184" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;More than 100 University students were presented to this meeting from 10 different universities. Finally we had debut on “Cloud Computing”. &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-4686969698209169292?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/4686969698209169292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=4686969698209169292' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4686969698209169292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4686969698209169292'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/09/meeting-of-microsoft-student-champ.html' title='September, Monthly Meeting of Microsoft Student Champ community'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_9Z2F35N9rxA/TKCKJzg_fCI/AAAAAAAABX0/bjA4Tky85fw/s72-c/SAM_2603_thumb%5B2%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-5581256099711937134</id><published>2010-09-26T12:16:00.001-07:00</published><updated>2010-09-26T12:16:09.892-07:00</updated><title type='text'>JAX Web Services with Simple Tutorial</title><content type='html'>&lt;p&gt;Last Lecture in ‘Distributed Processing’ I have to do Assignment in Web Services. So lets try it out.&lt;/p&gt;  &lt;p&gt;Firstly What Are Web Services?&lt;/p&gt;  &lt;p&gt;Web services is a &lt;strong&gt;distributed&lt;/strong&gt; application components that are &lt;strong&gt;externally available&lt;/strong&gt;. &lt;/p&gt;  &lt;p&gt;You can use them to integrate computer applications that are written in different languages and run on different platforms. Web services are language and platform independent because vendors have agreed on common web service standards.&lt;/p&gt;  &lt;p&gt;As I got to know I have to write web service in java and client in C#. First I will try on&amp;#160; Web services&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;I will do try this with JAX-WS Web Services&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;what is JAX-WS?&amp;#160; &lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Java API for XML Web Services (JAX-WS), JSR 224, is an important part of the Java EE 5 and EE 6 . JAX-WS simplifies the task of developing web services using Java technology. It is providing support for multiple protocols such as &lt;strong&gt;SOAP 1.1, SOAP 1.2, XML&lt;/strong&gt;, and by providing a facility for supporting additional protocols along with &lt;strong&gt;HTTP&lt;/strong&gt;. JAX-WS simplifies web service development and &lt;strong&gt;reduces the size of runtime&lt;/strong&gt; JAR files.&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="2"&gt;Let us Create JAX_WS on NetBeans ID&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;1. Choose File &amp;gt; New Project (Ctrl-Shift-N). Select Web Application from the Java Web category or EJB Module from the Java EE category.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TJ-blHfGqSI/AAAAAAAABWQ/dCs7-vJakvQ/s1600-h/image%5B4%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TJ-bmtPTA_I/AAAAAAAABWU/btFMnc6CPkw/image_thumb%5B2%5D.png?imgmax=800" width="576" height="397" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;2. Name the project ‘MyCalCulatorWS’. Select a location for the project. Click Next.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TJ-bnmNBsII/AAAAAAAABWY/GUxqnk5xe20/s1600-h/image%5B9%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TJ-bozKvY2I/AAAAAAAABWc/gJt_DX4Dbro/image_thumb%5B5%5D.png?imgmax=800" width="579" height="362" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;3. Select your server and Java EE version and click Finish.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TJ-bp75pbbI/AAAAAAAABWg/zDd4Fqqevz4/s1600-h/image%5B14%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TJ-brBgzoTI/AAAAAAAABWk/0PNxYQRESgc/image_thumb%5B8%5D.png?imgmax=800" width="524" height="251" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Then us Creating a Web Service from a Java Class&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;4.Right-click the MyCalCulatorWS node and choose New &amp;gt; Web Service.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TJ-bsE-tuBI/AAAAAAAABWo/BL5jy-S9n-M/s1600-h/image%5B19%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TJ-btT0eQ3I/AAAAAAAABWs/VMCMxUy8NG4/image_thumb%5B14%5D.png?imgmax=800" width="481" height="262" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;5. Name the web service CalculatorWS and type org.me.calculator in Package. Leave Create Web Service from Scratch selected.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TJ-buW3SPlI/AAAAAAAABWw/P05YZPzTyOw/s1600-h/image%5B23%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TJ-bvuUzpjI/AAAAAAAABW0/eCzm_AqUHoQ/image_thumb%5B16%5D.png?imgmax=800" width="518" height="274" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;(Click Finish. The Projects window displays the structure of the new web service and the source code is shown in the editor area)&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;strong&gt;Adding an Operation to the Web Service&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;6. Find the web service's node in the Projects window. Right-click that node. A context menu opens.In there Click Add Operation.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TJ-bwaotX7I/AAAAAAAABW4/zIRnFI_g2z4/s1600-h/image%5B28%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TJ-bxX3mKtI/AAAAAAAABW8/s_YznrOaMoM/image_thumb%5B22%5D.png?imgmax=800" width="425" height="195" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;7. Now you get 'Add Operation' dialog box, type 'add' in Name and type 'int' in the Return Type drop-down list. &lt;/p&gt;  &lt;p&gt;Then click Add and create a parameter of type int named a. Then click Add again and create a parameter of type int called b.   &lt;br /&gt;now we see the following:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TJ-byLviYAI/AAAAAAAABXA/zk5E1x2aN5Q/s1600-h/image%5B33%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TJ-bzdlCGaI/AAAAAAAABXE/-eAe8GnZXKA/image_thumb%5B25%5D.png?imgmax=800" width="397" height="312" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;8. Click OK at the bottom of the Add Operation dialog box.(visual designer now displays the below screen)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TJ-b0En70TI/AAAAAAAABXI/LjRCw-wMGtI/s1600-h/image%5B38%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TJ-b1HQkUDI/AAAAAAAABXM/MJlrJsDuorI/image_thumb%5B31%5D.png?imgmax=800" width="535" height="201" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;9. Click Source and view.&lt;/p&gt;  &lt;p&gt;you will find &lt;em&gt;'//TODO write your implementation code here:&lt;/em&gt;'    &lt;br /&gt;and update it as &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;strong&gt;int c =a+b;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return c;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;here is full code of that file:&lt;/p&gt;  &lt;p&gt;package org.me.calculator;&lt;/p&gt;  &lt;p&gt;import javax.jws.WebMethod;   &lt;br /&gt;import javax.jws.WebParam;    &lt;br /&gt;import javax.jws.WebService;&lt;/p&gt;  &lt;p&gt;@WebService()   &lt;br /&gt;public class CalculatorWS {&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160; //the web service simply receives two numbers and then returns their sum.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; @WebMethod(operationName = &amp;quot;add&amp;quot;)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public int add(@WebParam(name = &amp;quot;a&amp;quot;)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; int a, @WebParam(name = &amp;quot;b&amp;quot;)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; int b) {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; int c =a+b;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return c;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;}&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;strong&gt;Deploying and Testing the Web Service&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;10. Right-click the project and choose Deploy. The IDE starts the application server, builds the application, and deploys the application to the server.&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/TJ-b2K8Ey3I/AAAAAAAABXQ/-sPd8JtUrM8/s1600-h/image%5B49%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TJ-b3AHExzI/AAAAAAAABXU/AiWeyAoURm8/image_thumb%5B42%5D.png?imgmax=800" width="355" height="207" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;11. In the IDE's Projects tab, expand the Web Services node of the MyCalCulatorWS project. Right-click the CalculatorWS node, and choose ‘Test Web Service’. &lt;/p&gt;              &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TJ-b38PqxwI/AAAAAAAABXY/XN8kmV9ZokE/s1600-h/image%5B43%5D%5B3%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image[43]" border="0" alt="image[43]" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TJ-b5DbyleI/AAAAAAAABXc/3X_L2Uc-wpQ/image%5B43%5D_thumb%5B1%5D.png?imgmax=800" width="406" height="317" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;12. If you deployed to the GlassFish server, type two numbers in the tester page, as shown below:    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TJ-b6aREvaI/AAAAAAAABXg/Cgdg2ojneG0/s1600-h/image%5B53%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TJ-b7h4HOyI/AAAAAAAABXk/utuoY49DJeM/image_thumb%5B44%5D.png?imgmax=800" width="493" height="271" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;The sum of the two numbers is displayed:&lt;/em&gt;&lt;/p&gt;      &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TJ-b83FKHOI/AAAAAAAABXo/lQ_L9rdksn4/s1600-h/image%5B57%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TJ-b-ApYiZI/AAAAAAAABXs/4q5WJ-dN9Wo/image_thumb%5B46%5D.png?imgmax=800" width="307" height="345" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Wooww.. we did simple JAX Web Services…. Later (next post) I will say how to create a ‘Consuming the Web Service’.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-5581256099711937134?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/5581256099711937134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=5581256099711937134' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/5581256099711937134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/5581256099711937134'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/09/jax-web-services-with-simple-tutorial.html' title='JAX Web Services with Simple Tutorial'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_9Z2F35N9rxA/TJ-bmtPTA_I/AAAAAAAABWU/btFMnc6CPkw/s72-c/image_thumb%5B2%5D.png?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-4605345487013041067</id><published>2010-09-12T11:20:00.001-07:00</published><updated>2010-09-12T11:20:29.895-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><category scheme='http://www.blogger.com/atom/ns#' term='Networking'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML 5'/><title type='text'>Introduction to HTML 5</title><content type='html'>&lt;p&gt;HTML5 is currently &lt;strong&gt;under development&lt;/strong&gt; and it is the &lt;strong&gt;next major revision&lt;/strong&gt; of the HTML standard.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TI0Z5B0xOEI/AAAAAAAABWI/kxML5ZHTax8/s1600-h/html5affectseo%5B3%5D.jpg"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="html5affectseo" border="0" alt="html5affectseo" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TI0Z64P-hZI/AAAAAAAABWM/Uh2lwmbw9tw/html5affectseo_thumb%5B1%5D.jpg?imgmax=800" width="226" height="246" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;HTML 5&amp;#160; incorporates features:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Video playback &lt;/li&gt;    &lt;li&gt;Canvas element(2D and 3D)&lt;/li&gt;    &lt;li&gt;Drag-and-drop &lt;/li&gt;    &lt;li&gt;Local SQL Database&lt;/li&gt;    &lt;li&gt;Offline storage database (offline web applications)&lt;/li&gt;    &lt;li&gt;Document editing&lt;/li&gt;    &lt;li&gt;Browser history management&lt;/li&gt;    &lt;li&gt;Cross-document messaging&lt;/li&gt;    &lt;li&gt;Geolocation&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;em&gt;Those features have been previously dependent on third-party browser plug-ins such as Adobe Flash and Microsoft Silverlight.&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;HTML5 will reach (World Wide Web Consortium) W3C Recommendation by late 2010.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;Ian Hickson, editor of the HTML5 specification, guessed that this would occur in the year 2022 or later. However, many parts of the specification are stable and may be implemented in products&lt;/p&gt;  &lt;p&gt;So as SE or Web developer better to have practice on HTML 5&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-4605345487013041067?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/4605345487013041067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=4605345487013041067' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4605345487013041067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4605345487013041067'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/09/introduction-to-html-5.html' title='Introduction to HTML 5'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_9Z2F35N9rxA/TI0Z64P-hZI/AAAAAAAABWM/Uh2lwmbw9tw/s72-c/html5affectseo_thumb%5B1%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-1690364625341647078</id><published>2010-09-10T01:59:00.001-07:00</published><updated>2010-09-10T03:13:56.867-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Window Phone Application'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><title type='text'>Capturing Photo by Windows 7 phone Camera</title><content type='html'>&lt;p&gt;This Post is about How to Create “Windows 7 Mobile Phone” Application For Capturing&amp;#160; Photo by Windows phone Camera&lt;/p&gt;  &lt;p&gt;1. Create New Project or Add new Project Name it as “&lt;strong&gt;Camera&lt;/strong&gt;” type of &lt;strong&gt;Windows Phone Application&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/TInzSkOVXWI/AAAAAAAABVQ/T8ZDAz1Htr8/s1600-h/image%5B7%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_9Z2F35N9rxA/TInzVXXnzLI/AAAAAAAABVU/fFfntqJLnPc/image_thumb%5B3%5D.png?imgmax=800" width="464" height="263" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;2. Open“MainPage.xaml”and Add image and Button as below via drag and drop&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TInzWpnmPnI/AAAAAAAABVY/7xPhhF9nxHA/s1600-h/image%5B11%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TInzYHIWPHI/AAAAAAAABVc/w1kTxO2nGYU/image_thumb%5B8%5D.png?imgmax=800" width="160" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;here is xaml of it:&lt;/em&gt;&lt;/p&gt;    &lt;pre class="code"&gt;   &lt;span style="color: green"&gt;&amp;lt;!--ContentPanel - place additional content here--&amp;gt;&lt;br /&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Grid &lt;/span&gt;&lt;span style="color: red"&gt;x&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;ContentGrid&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Grid.Row&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Image &lt;/span&gt;&lt;span style="color: red"&gt;Height&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;523&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;HorizontalAlignment&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Left&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Margin&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;0,0,0,6&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;image1&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Stretch&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Fill&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;VerticalAlignment&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Bottom&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Width&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;480&amp;quot; /&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Button &lt;/span&gt;&lt;span style="color: red"&gt;Content&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Start Camera&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Height&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;72&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;HorizontalAlignment&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Left&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Margin&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;65,10,0,0&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;button1&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;VerticalAlignment&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Top&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Width&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;316&amp;quot; /&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;Grid&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;3. Give Click event to ‘button1’ by Double click on design View&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Here&amp;#160; it is “MainPage.xaml.cs”&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;private void &lt;/span&gt;button1_Click(&lt;span style="color: blue"&gt;object &lt;/span&gt;sender, &lt;span style="color: #2b91af"&gt;RoutedEventArgs &lt;/span&gt;e)&lt;br /&gt;      {&lt;br /&gt;&lt;br /&gt;      }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;4. update you Code in MainPage.xaml.cs as below&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Collections.Generic;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Linq;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Net;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Controls;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Documents;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Input;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Media;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Media.Animation;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Shapes;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;Microsoft.Phone.Controls;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;Microsoft.Phone.Tasks;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Media.Imaging;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue"&gt;namespace &lt;/span&gt;Camera&lt;br /&gt;{&lt;br /&gt;    &lt;span style="color: blue"&gt;public partial class &lt;/span&gt;&lt;span style="color: #2b91af"&gt;MainPage &lt;/span&gt;: &lt;span style="color: #2b91af"&gt;PhoneApplicationPage&lt;br /&gt;    &lt;/span&gt;{&lt;br /&gt;        &lt;span style="color: #2b91af"&gt;CameraCaptureTask &lt;/span&gt;cameraCaptureTask;&lt;br /&gt;&lt;br /&gt;        &lt;span style="color: green"&gt;// Constructor&lt;br /&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;public &lt;/span&gt;MainPage()&lt;br /&gt;        {&lt;br /&gt;            InitializeComponent();&lt;br /&gt;            SupportedOrientations = &lt;span style="color: #2b91af"&gt;SupportedPageOrientation&lt;/span&gt;.PortraitOrLandscape;&lt;br /&gt;            cameraCaptureTask = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;CameraCaptureTask&lt;/span&gt;();&lt;br /&gt;            cameraCaptureTask.Completed += cameraCaptureTask_Completed;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span style="color: blue"&gt;private void &lt;/span&gt;button1_Click(&lt;span style="color: blue"&gt;object &lt;/span&gt;sender, &lt;span style="color: #2b91af"&gt;RoutedEventArgs &lt;/span&gt;e)&lt;br /&gt;        {&lt;br /&gt;                        cameraCaptureTask.Show();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span style="color: green"&gt;// The Completed event handler. In this example, a new BitmapImage is created and&lt;br /&gt;        // the source is set to the result stream from the CameraCaptureTask&lt;br /&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;void &lt;/span&gt;cameraCaptureTask_Completed(&lt;span style="color: blue"&gt;object &lt;/span&gt;sender, &lt;span style="color: #2b91af"&gt;PhotoResult &lt;/span&gt;e)&lt;br /&gt;        {&lt;br /&gt;           &lt;br /&gt;            &lt;span style="color: blue"&gt;if &lt;/span&gt;(e.TaskResult == &lt;span style="color: #2b91af"&gt;TaskResult&lt;/span&gt;.OK)&lt;br /&gt;            {&lt;br /&gt;               &lt;br /&gt;                &lt;span style="color: #2b91af"&gt;BitmapImage &lt;/span&gt;bmp = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;BitmapImage&lt;/span&gt;();&lt;br /&gt;                bmp.SetSource(e.ChosenPhoto);&lt;br /&gt;                image1.Source = bmp;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;5. Press F5 and try it Out&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TInzZ7Zq67I/AAAAAAAABVg/MQreTSKipPI/s1600-h/image%5B16%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/TInzblCNEiI/AAAAAAAABVk/RbSffz7UZNA/image_thumb%5B14%5D.png?imgmax=800" width="153" height="273" /&gt;&lt;/a&gt;&lt;a href="http://lh3.ggpht.com/_9Z2F35N9rxA/TInzdXss32I/AAAAAAAABVo/6D913FtLJes/s1600-h/image%5B21%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/TInzezKmV4I/AAAAAAAABVs/i4l4nXizuVA/image_thumb%5B20%5D.png?imgmax=800" width="153" height="272" /&gt;&lt;/a&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/TInzgu4qolI/AAAAAAAABVw/0Eam3UKaR_w/s1600-h/image%5B26%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_9Z2F35N9rxA/TInzigIsNgI/AAAAAAAABV0/aHo8csdzPTo/image_thumb%5B26%5D.png?imgmax=800" width="148" height="271" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-1690364625341647078?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/1690364625341647078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=1690364625341647078' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/1690364625341647078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/1690364625341647078'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/09/capturing-photo-by-windows-7-phone.html' title='Capturing Photo by Windows 7 phone Camera'/><author><name>Madhuka</name><uri>http://www.blogger.com/profile/00905046016224726592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_9Z2F35N9rxA/SO3EcDU6oUI/AAAAAAAAACg/w8dnIve-nrs/S220/02022008956.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_9Z2F35N9rxA/TInzVXXnzLI/AAAAAAAABVU/fFfntqJLnPc/s72-c/image_thumb%5B3%5D.png?imgmax=800' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1590365593679599766.post-4619898822720004363</id><published>2010-08-30T11:59:00.001-07:00</published><updated>2010-08-30T12:01:08.531-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight Beginners Tutorials'/><category scheme='http://www.blogger.com/atom/ns#' term='Window Phone Application'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><title type='text'>Widows Mobile camera</title><content type='html'>&lt;p&gt;Today 1/2day I was working with Windows mobile camera that did not give me what me need,&lt;/p&gt;  &lt;p&gt;eg: I get capture by camera and accepted it, then my application went to close, &lt;/p&gt;  &lt;pre class="code"&gt;cameraCaptureTask.Completed += &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;EventHandler&lt;/span&gt;&amp;lt;&lt;span style="color: #2b91af"&gt;PhotoResult&lt;/span&gt;&amp;gt;(cameraCaptureTask_Completed);&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;cameraCaptureTask_Completed method is never called &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;1/2 hour ago I found this &lt;a href="http://social.msdn.microsoft.com/Forums/en/windowsphone7series/thread/5bfa47b5-005a-4a93-9897-ff6b6a890d71"&gt;thread&lt;/a&gt; that also having same problem they have over come it, but it is not safe yet &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now I write how did they to over&amp;#160; it&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;1. Create new Project Windows Phone List Application &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/THv_VEsATpI/AAAAAAAABUY/_FT0mbl64H0/s1600-h/image%5B3%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/THv_Wpnja-I/AAAAAAAABUc/nMinau7E4EM/image_thumb%5B1%5D.png?imgmax=800" width="488" height="313" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;2. Go to Detail page and button and image as below&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt; &lt;span style="color: green"&gt;&amp;lt;!--ContentPanel contains details text. Place additional content here--&amp;gt;&lt;br /&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Grid &lt;/span&gt;&lt;span style="color: red"&gt;x&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;ContentPanel&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Grid.Row&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Image &lt;/span&gt;&lt;span style="color: red"&gt;Height&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;470&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;HorizontalAlignment&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Left&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Margin&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;41,0,0,50&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;image1&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Stretch&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Fill&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;VerticalAlignment&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Bottom&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Width&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;390&amp;quot; /&amp;gt;&lt;br /&gt;            &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Button &lt;/span&gt;&lt;span style="color: red"&gt;Content&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Capture A Photo&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Height&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;72&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;HorizontalAlignment&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Left&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Margin&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;24,6,0,0&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;button1&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;VerticalAlignment&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Top&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Width&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;420&amp;quot; &lt;/span&gt;&lt;span style="color: red"&gt;Click&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;button1_Click_1&amp;quot; /&amp;gt;&lt;br /&gt;        &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;Grid&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;3. Go to DetailPage.xaml.cs and add followings&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Media.Imaging;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;Microsoft.Phone.Tasks;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;4. added Reference as Phone.dll &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/THv_XsZyPFI/AAAAAAAABUg/c_2uK42CHlQ/s1600-h/image%5B8%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_9Z2F35N9rxA/THv_ZocD9xI/AAAAAAAABUk/10ytTv8buH8/image_thumb%5B4%5D.png?imgmax=800" width="485" height="276" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;5. Here is the code for DetailPage.xaml.cs&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Collections.Generic;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Linq;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Net;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Controls;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Documents;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Input;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Media;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Media.Animation;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Media.Imaging;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Shapes;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Windows.Navigation;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;Microsoft.Phone.Controls;&lt;br /&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;Microsoft.Phone.Tasks;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue"&gt;namespace &lt;/span&gt;WindowsPhoneListApplication1&lt;br /&gt;{&lt;br /&gt;    &lt;span style="color: blue"&gt;public partial class &lt;/span&gt;&lt;span style="color: #2b91af"&gt;DetailsPage &lt;/span&gt;: &lt;span style="color: #2b91af"&gt;PhoneApplicationPage&lt;br /&gt;    &lt;/span&gt;{&lt;br /&gt;        &lt;span style="color: green"&gt;// Declare the CameraCaptureTask object with page scope.&lt;br /&gt;        &lt;/span&gt;&lt;span style="color: #2b91af"&gt;CameraCaptureTask &lt;/span&gt;cameraCaptureTask;&lt;br /&gt;&lt;br /&gt;        &lt;span style="color: green"&gt;// Constructor&lt;br /&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;public &lt;/span&gt;DetailsPage()&lt;br /&gt;        {&lt;br /&gt;         &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            InitializeComponent();&lt;br /&gt;&lt;br /&gt;            &lt;span style="color: green"&gt;// Initialize the CameraCaptureTask and assign the Completed handler in the page constructor.&lt;br /&gt;            &lt;/span&gt;cameraCaptureTask = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;CameraCaptureTask&lt;/span&gt;();&lt;br /&gt;            cameraCaptureTask.Completed += &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;EventHandler&lt;/span&gt;&amp;lt;&lt;span style="color: #2b91af"&gt;PhotoResult&lt;/span&gt;&amp;gt;(cameraCaptureTask_Completed);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;              &lt;span style="color: green"&gt;// The Completed event handler. In this example, a new BitmapImage is created and&lt;br /&gt;        // the source is set to the result stream from the CameraCaptureTask&lt;br /&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;void &lt;/span&gt;cameraCaptureTask_Completed(&lt;span style="color: blue"&gt;object &lt;/span&gt;sender, &lt;span style="color: #2b91af"&gt;PhotoResult &lt;/span&gt;e)&lt;br /&gt;        {&lt;br /&gt;            &lt;span style="color: blue"&gt;if &lt;/span&gt;(e.TaskResult == &lt;span style="color: #2b91af"&gt;TaskResult&lt;/span&gt;.OK)&lt;br /&gt;            {&lt;br /&gt;                &lt;span style="color: #2b91af"&gt;BitmapImage &lt;/span&gt;bmp = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;BitmapImage&lt;/span&gt;();&lt;br /&gt;                bmp.SetSource(e.ChosenPhoto);&lt;br /&gt;                image1.Source = bmp;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;&lt;span style="color: green"&gt;// In this example, the CameraCaptureTask is shown in response to a button click. &lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;span style="color: green"&gt;&lt;/span&gt;        &lt;span style="color: blue"&gt;private void &lt;/span&gt;button1_Click_1(&lt;span style="color: blue"&gt;object &lt;/span&gt;sender, &lt;span style="color: #2b91af"&gt;RoutedEventArgs &lt;/span&gt;e)&lt;br /&gt;        {&lt;br /&gt;            cameraCaptureTask.Show();&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;7. Here is F5 Screen Shots&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/THv_azHr0bI/AAAAAAAABUo/h0qjiZf8dRk/s1600-h/image%5B26%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/THv_b2303HI/AAAAAAAABUs/Lf82tycNtVc/image_thumb%5B23%5D.png?imgmax=800" width="193" height="360" /&gt;&lt;/a&gt;&lt;a href="http://lh4.ggpht.com/_9Z2F35N9rxA/THv_c29Z8WI/AAAAAAAABUw/VWJWh28wBzs/s1600-h/image%5B25%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/THv_dytox4I/AAAAAAAABU0/ormd6V7A_uc/image_thumb%5B22%5D.png?imgmax=800" width="195" height="359" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://lh6.ggpht.com/_9Z2F35N9rxA/THv_e0U7ftI/AAAAAAAABU4/CCgq5LZrFXY/s1600-h/image%5B40%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/THv_gKYDuuI/AAAAAAAABU8/UkhtqCrAL90/image_thumb%5B32%5D.png?imgmax=800" width="193" height="356" /&gt;&lt;/a&gt;&lt;a href="http://lh5.ggpht.com/_9Z2F35N9rxA/THv_hJ5di9I/AAAAAAAABVA/U20YlqGcTW4/s1600-h/image%5B45%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_9Z2F35N9rxA/THv_iQSCRpI/AAAAAAAABVE/7KKZHPUwLW8/image_thumb%5B38%5D.png?imgmax=800" width="194" height="355" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1590365593679599766-4619898822720004363?l=madhukaudantha.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://madhukaudantha.blogspot.com/feeds/4619898822720004363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1590365593679599766&amp;postID=4619898822720004363' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4619898822720004363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1590365593679599766/posts/default/4619898822720004363'/><link rel='alternate' type='text/html' href='http://madhukaudantha.blogspot.com/2010/08/widows-mobile-camera.html' title='Widows Mobile camera'/><author><name>Madhuka</name><uri>http://www.blogge
