<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>And so it begins.</title>
	<atom:link href="http://cancerb0y.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cancerb0y.wordpress.com</link>
	<description>cancerb0y's scribble....</description>
	<lastBuildDate>Sun, 28 Dec 2008 16:00:01 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
		<url>http://www.gravatar.com/blavatar/877e817ca2069f637c1e17440d92d9fe?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>And so it begins.</title>
		<link>http://cancerb0y.wordpress.com</link>
	</image>
			<item>
		<title>iShare &#8211; Introduction video is out :)</title>
		<link>http://cancerb0y.wordpress.com/2008/12/27/ishare-introduction-video-is-out/</link>
		<comments>http://cancerb0y.wordpress.com/2008/12/27/ishare-introduction-video-is-out/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 22:30:33 +0000</pubDate>
		<dc:creator>machosry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cancerb0y.wordpress.com/?p=61</guid>
		<description><![CDATA[Today I released the introduction video of iShare. Please download and watch it. I need feedback for sure 
Watch here!!!
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=61&subd=cancerb0y&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today I released the introduction video of iShare. Please download and watch it. I need feedback for sure <img src='http://s.wordpress.com/wp-includes/images/smilies/face-smile.png' alt=':)' class='wp-smiley' /><br />
<a href="http://www.vimeo.com/2651409">Watch here!!!</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cancerb0y.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cancerb0y.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cancerb0y.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cancerb0y.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cancerb0y.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cancerb0y.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cancerb0y.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cancerb0y.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cancerb0y.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cancerb0y.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=61&subd=cancerb0y&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cancerb0y.wordpress.com/2008/12/27/ishare-introduction-video-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://sprasanna.com/trial/iShareintro.mov" length="78059882" type="video/quicktime" />
	
		<media:content url="http://1.gravatar.com/avatar/9864267575497017d192a31bb9e0631b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">machosry</media:title>
		</media:content>
	</item>
		<item>
		<title>iShare :) Baby in 6 hours!!!</title>
		<link>http://cancerb0y.wordpress.com/2008/12/26/ishare-baby-in-6-hours/</link>
		<comments>http://cancerb0y.wordpress.com/2008/12/26/ishare-baby-in-6-hours/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 19:45:45 +0000</pubDate>
		<dc:creator>machosry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cancerb0y.wordpress.com/?p=31</guid>
		<description><![CDATA[Before starting the success story one must always tell others the difficulties he faced. So let me start from that. December 22nd 2008, I got my api key and secret key from SlideShare. I was playing a little bit with them but I did not have any idea what tool to create using them. Then [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=31&subd=cancerb0y&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div class="wp-caption alignleft" style="width: 410px"><img alt="iShare" src="http://sprasanna.com/trial/background.png" title="iShare" width="400" height="400" /><p class="wp-caption-text">iShare</p></div>
<p>Before starting the success story one must always tell others the difficulties he faced. So let me start from that. December 22nd 2008, I got my api key and secret key from SlideShare. I was playing a little bit with them but I did not have any idea what tool to create using them. Then I was browsing the developers page of SlideShare and found few apps for SlideShare. I knew they have an app for Linkedin and a tool for PowerPoint but I never knew they have one for Facebook. Damn!!! I made up my mind to create an app for Orkut then. But what app to make??? These came in my mind &#8220;I have used iLike which is to share music and videos, why shouldn&#8217;t I create an app to share slideshows.&#8221; I named it right away as <strong>&#8220;iShare&#8221;</strong> just because the idea was from iLike <img src='http://s.wordpress.com/wp-includes/images/smilies/face-smile.png' alt=':)' class='wp-smiley' />  No offence. Then I went through Opensocial documentations I loved it immediately because it&#8217;s completely using JavaScript <img src='http://s.wordpress.com/wp-includes/images/smilies/face-smile.png' alt=':)' class='wp-smiley' />  Now I have to take an important decision, which programming language should I use? Java, PHP or Rails? Rails I don&#8217;t have depth knowledge in it so now PHP or Java? Java I can say I will act like a pro if I have javadoc in my hands but I must accept it is really slow. What about PHP? Even in PHP I don&#8217;t have much of experience and knowledge but PHP is damn fast. So I decided to choose PHP for server side scripting and JavaScript for client side scripting. </p>
<p>Then I downloaded SlideShare api for PHP. It is known as SSUtil (I guess SlideShare Utility). I must say the only file I like very much in the api is readme file. In the first glance on readme file I got what are all stuffs my app can do in Orkut. So I made final decision on my app. My app must let user to search for slideshows from SlideShare using tags or user ids and user must also be able to add slideshows also using urls (Example: user finds some slideshow in SlideShare and likes it and also wants to add in his Orkut profile. He need not come and search for his slideshow in Orkut rather he can copy paste the url and add). And it is going to have one more feature which is still underdevelopment due to some issues with OpenSocial api will likely to be implemented before beta release <img src='http://s.wordpress.com/wp-includes/images/smilies/face-smile.png' alt=':)' class='wp-smiley' />  And thats a surprise <img src='http://s.wordpress.com/wp-includes/images/smilies/face-wink.png' alt=';)' class='wp-smiley' />  Now I made decisions about everything. I started with setting up my localhost and created the skeleton with the features in 2 hours in my laptop. But this code was dropped later you can find the reason when you read more here. Now it is time for writing code using OpenSocial api to make a container for my app. And got done with it in less than 10 minutes. Damn!!! Even though I have a website (which I used for blogging) I don&#8217;t have a hosting service <img src='http://s.wordpress.com/wp-includes/images/smilies/face-sad.png' alt=':(' class='wp-smiley' />  That&#8217;s really sad. Three things made me sadder 1) I don&#8217;t have a credit card to buy hosting space 2) I can&#8217;t afford so much money right now for hosting space 3) Reason for (2) is I don&#8217;t have any money on me and I am bankrupted <img src='http://s.wordpress.com/wp-includes/images/smilies/face-sad.png' alt=':(' class='wp-smiley' />  Alright it is time to find a free hosting service provider. I searched I searched I searched and found only few good one with no free ad banners in my site. I tried with each one of them but my code was not working and did not show any errors. I was confused a lot. Fortunately one of the service provider has a channel in irc. I went there, posted my question and asked for reason. And I got the answer &#8220;allow_url_fopen = off&#8221; by all free hosting service providers <img src='http://s.wordpress.com/wp-includes/images/smilies/face-sad.png' alt=':(' class='wp-smiley' />  Since I need to get data from SlideShare.net using its api I needed that feature badly. Then I decided to buy hosting space for minimum period with affordable price. So started searching for service providers again and asked opinion from my friends too. Different opinions but I was not satisfied either by the price or the features. If the price is affordable then features are bad and vice versa. Finally I found Yahoo Small Business with a reasonable price and even GoDaddy. I decided to stick with Yahoo. What is the use of taking this decision? Even then I did not have any money or even now I don&#8217;t <img src='http://s.wordpress.com/wp-includes/images/smilies/face-sad.png' alt=':(' class='wp-smiley' />  I decided to borrow from someone but I was embarrassed to ask. I decided to ask from very close friends. So went to Sidhartha but unfortunately he had no credit card or money on him and his dad was out of station. I was even more embarrassed and finally I asked Kannan and he was ok for paying $26+.</p>
<p>December 24th 2008, Morning Kannan called me up and gave his credit card details and I successfully registered an account in Yahoo for 3 months period. And finished the setups and configurations. Uploaded my code and started running. Unfortunately I got errors once again. I was really confused and did not know what to do. I posted my errors in #php channel in irc and got response saying &#8220;it might be because of PHP 4&#8243;. I was really shocked to hear this. I coded completely in PHP 5 and the error was not from my code unfortunately from SSUtil.php. Only good thing I made was registering with Yahoo with 30 days money back guarantee on dissatisfaction. I wondered how come a big organization like Yahoo still has PHP 4 and with no option to migrate to PHP 5. All other service providers have the feature of migrating from PHP 4 to PHP 5 and vice versa but WHY YAHOO DON&#8217;T HAVE???? I immediately mailed Yahoo customer care to cancel my account and asked for cash back. I was helpless once again. I didn&#8217;t wanna go and ask anyone for money again <img src='http://s.wordpress.com/wp-includes/images/smilies/face-sad.png' alt=':(' class='wp-smiley' />  And I don&#8217;t have money to pay Kannan back <img src='http://s.wordpress.com/wp-includes/images/smilies/face-sad.png' alt=':(' class='wp-smiley' />  Atleast I got 3 months time to pay him back but right now I don&#8217;t have money to buy hosting space. I almost dropped my idea of creating app. I went to GoDaddy where I registered my domain name http://sprasanna.com to edit the configuration back to point my tumblr blog. And suddenly I saw something when I logged into my account saying &#8220;Free hosting space.&#8221; I thought not again but it said it comes with my domain name because of the promo coupon code I used when I bought this domain name. I didn&#8217;t want to waste this and wanted to give it a try. Successfully I finished configuring and saw the php.ini file and found &#8220;allow_url_fopen = on&#8221;. I must say thats one of my best moments in my life. I was so happy. I uploaded my files and started running. Everything was fine except for the free ads banners <img src='http://s.wordpress.com/wp-includes/images/smilies/face-sad.png' alt=':(' class='wp-smiley' />  Except that everything was fine. It infact worked well inside Orkut also. But that free ads banners were so annoying. I can&#8217;t say people whoever uses my app that the ads are because of free hosting service. So I decided to drop this code and restart from the scratch once again. But anyways I need hosting and I don&#8217;t wanna lose this free space I got but I didn&#8217;t want ad banners in my app. Since this code was completely written using PHP and only few lines of JavaScript I decided to use complete AJAX and restart once again from the scratch. It was already 4 AM 25th December 2008. Christmas eve. I needed some sleep since I have been working a lot with less sleep. I went to bed saying &#8220;Merry Christmas&#8221; to myself.</p>
<p>I got up at 1 PM 25th December 2008. Really bad and such a waste of time I spent in my bed. I finished my daily routines and other works started coding right from the scratch once again. But this time completely using AJAX stuffs and much more usage of OpenSocial api. I handled the most possible way to avoid ad banners since I have all my PHP files hosted from GoDaddy so every response from the server comes with the ad banners attached. So I added &#8216;&lt;<code>message</code>&gt;&#8217; to the both ends of responses. So I can easily get my responses using JavaScript like this response.split(&#8217;&lt;<code>message</code>&gt;&#8217;)[1] Wow and my ad banners are gone now <img src='http://s.wordpress.com/wp-includes/images/smilies/face-smile.png' alt=':)' class='wp-smiley' />  So finally found a way to avoid ad banners from free hosting services. I started speeding up my work and completed the coding part. Here I faced a big problem Orkut gets everything via proxy, say JS file, CSS file, images, videos, audios, etc etc and slideshows do come under this list. When everything else was loading well, slideshows alone were not loaded. And I found the reason was proxy and the transaction was not intialized by static.slideshare.net server. So I posted a question to SlideShare developers list asking is there any fix this but yet no reply from them <img src='http://s.wordpress.com/wp-includes/images/smilies/face-sad.png' alt=':(' class='wp-smiley' />  So I had to find another way. And I found it. If the url is posted without this &#8220;http://3.sandbox.gmodules.com/gadgets/proxy?refresh=86400&amp;url=&#8221; the embedded slideshow is playing properly. So I decided to change it dynamically and it works well <img src='http://s.wordpress.com/wp-includes/images/smilies/face-smile.png' alt=':)' class='wp-smiley' />  So now the app is ready for testing. Infact I even decided to release the beta version and I was going through the Orkut developer guidelines and it reminded me I was not done with one more feature. Yeah I totally forgot about the &#8220;Updates&#8221; feature in Orkut (whenever you do something with your apps it can be posted to your friends as your updates, it will just increase the apps&#8217; reputation exponentially and makes it popular). So I started working on it. But fortunately it kept failing again and again. And after few struggles I found I was posting the title part alone and I forgot about body. Even after body it kept failing because I had the slideshows image in it. So decided to drop the image and tried, Voila!!! it started working <img src='http://s.wordpress.com/wp-includes/images/smilies/face-smile.png' alt=':)' class='wp-smiley' />  Now everything works fine and the app is ready for beta release <img src='http://s.wordpress.com/wp-includes/images/smilies/face-smile.png' alt=':)' class='wp-smiley' />  But still I have one more feature which I would love to do often if it is added and I am on it now <img src='http://s.wordpress.com/wp-includes/images/smilies/face-smile.png' alt=':)' class='wp-smiley' />  </p>
<p>26th December 2008, Now I am giving out small demo to my friends in the web to test the stability and look out for bugs. Every now and then GoDaddy server goes down I have mailed them regarding this. So the baby is ready now to walk in the web world <img src='http://s.wordpress.com/wp-includes/images/smilies/face-smile.png' alt=':)' class='wp-smiley' />  I must say this whole coding part took six hours for me to complete. But there is no artistic magical designing works in my app. It is simple and easy to use. Even a novice can come and use this without any trouble and that is all I want. Lets see whether this app makes any magic <img src='http://s.wordpress.com/wp-includes/images/smilies/face-smile.png' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cancerb0y.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cancerb0y.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cancerb0y.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cancerb0y.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cancerb0y.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cancerb0y.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cancerb0y.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cancerb0y.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cancerb0y.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cancerb0y.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=31&subd=cancerb0y&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cancerb0y.wordpress.com/2008/12/26/ishare-baby-in-6-hours/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9864267575497017d192a31bb9e0631b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">machosry</media:title>
		</media:content>

		<media:content url="http://sprasanna.com/trial/background.png" medium="image">
			<media:title type="html">iShare</media:title>
		</media:content>
	</item>
		<item>
		<title>Overriding the default addressLayout.jsp</title>
		<link>http://cancerb0y.wordpress.com/2008/07/16/overriding-the-default-addresslayoutjsp/</link>
		<comments>http://cancerb0y.wordpress.com/2008/07/16/overriding-the-default-addresslayoutjsp/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 17:42:56 +0000</pubDate>
		<dc:creator>machosry</dc:creator>
				<category><![CDATA[openmrs]]></category>

		<guid isPermaLink="false">http://cancerb0y.wordpress.com/?p=23</guid>
		<description><![CDATA[This week I had to override the existing addressLayout.jsp. At first I was very confused in how to do it so I discussed it with Daniel, Brian and I sent an mail to the dev list. Finally Ben gave me an wonderful example and using that I successfully overriden the default addressLayout.jsp. Actually I tried [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=23&subd=cancerb0y&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This week I had to override the existing addressLayout.jsp. At first I was very confused in how to do it so I discussed it with Daniel, Brian and I sent an mail to the dev list. Finally Ben gave me an wonderful example and using that I successfully overriden the default addressLayout.jsp. Actually I tried that before Ben sent me the example but by mistake I extended SimpleFormController for portlet instead of the servlet one. Finally Daniel noticed it and corrected it and I have successfully overridden it. I had to create my own controller since the controller which the portlets usually extends doesnt support formView.  But I think I am wrong in the moduleApplicationContext.xml part which is given below. Must show that to Daniel and cross check it. Or if you find something wrong in that please let me so that I can correct it.</p>
<p>Here&#8217;s a screenshot:</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/1.png" alt="" width="604" height="420" /></p>
<p>So this is how it overrides.</p>
<p>This is how i modified my moduleApplicationContext.xml</p>
<p>&lt;bean id=&#8221;addresshierarchyUrlMapping&#8221; class=&#8221;org.springframework.web.servlet.handler.SimpleUrlHandlerMapping&#8221;&gt;<br />
&lt;property name=&#8221;mappings&#8221;&gt;<br />
&lt;props&gt;<br />
&lt;prop key=&#8221;**/addressLayout.portlet&#8221;&gt;addressLayoutPortletController&lt;/prop&gt;<br />
&lt;/props&gt;<br />
&lt;/property&gt;<br />
&lt;/bean&gt;</p>
<p>&lt;bean id=&#8221;addressLayoutPortletController&#8221; class=&#8221;org.openmrs.module.addresshierarchy.web.controller.AddressLayoutPortletController&#8221; &gt;<br />
&lt;property name=&#8221;commandName&#8221;&gt;&lt;value&gt;addressLayout&lt;/value&gt;&lt;/property&gt;<br />
&lt;property name=&#8221;commandClass&#8221;&gt;&lt;value&gt;org.openmrs.module.addresshierarchy.web.controller.AddressLayoutPortletController&lt;/value&gt;&lt;/property&gt;<br />
&lt;property name=&#8221;formView&#8221;&gt;&lt;value&gt;/module/@MODULE_ID@/portlets/addressLayout&lt;/value&gt;&lt;/property&gt;<br />
&lt;property name=&#8221;successView&#8221;&gt;&lt;value&gt;/module/@MODULE_ID@/portlets/addressLayout&lt;/value&gt;&lt;/property&gt;<br />
&lt;/bean&gt;</p>
<p>Still I am not done with the backend. I have few doubts hope I will finish it within this week.</p>
<p>But I do face a problem with this. Whenever newPatient form reloads with some validation errors my addressLayout.jsp is missing there.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/2.png" alt="" width="604" height="338" /></p>
<p>If someone has solution or suggestion please feel free to drop it here.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cancerb0y.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cancerb0y.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cancerb0y.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cancerb0y.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cancerb0y.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cancerb0y.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cancerb0y.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cancerb0y.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cancerb0y.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cancerb0y.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cancerb0y.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cancerb0y.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=23&subd=cancerb0y&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cancerb0y.wordpress.com/2008/07/16/overriding-the-default-addresslayoutjsp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9864267575497017d192a31bb9e0631b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">machosry</media:title>
		</media:content>

		<media:content url="http://machosry.googlepages.com/1.png" medium="image" />

		<media:content url="http://machosry.googlepages.com/2.png" medium="image" />
	</item>
		<item>
		<title>Codes for review</title>
		<link>http://cancerb0y.wordpress.com/2008/07/10/codes-for-review/</link>
		<comments>http://cancerb0y.wordpress.com/2008/07/10/codes-for-review/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 13:58:29 +0000</pubDate>
		<dc:creator>machosry</dc:creator>
				<category><![CDATA[openmrs]]></category>

		<guid isPermaLink="false">http://cancerb0y.wordpress.com/?p=21</guid>
		<description><![CDATA[Tree builder JS

var TreeBuilder = {
buildTreeNodes:function (dataObjs, treeParentNode){
var arr=new Array("Start","Country","State","Sub Location1","Sub Location2","Sub Location3","Sub Location4","Sub Location5","Sub Location6","Postal Code","Longitude","Latitude");
for(var i=0; i&#60;dataObjs.length;i++){
var typ = dataObjs[i].typeId;
var dumm = parseInt(typ);
var titl = dataObjs[i].title+&#8221;( &#8220;+arr[dumm]+&#8221; )&#8221;;
var node = dojo.widget.createWidget(&#8221;TreeNode&#8221;,{
title:titl ,locationName:dataObjs[i].title, locationId:dataObjs[i].locationId , typeId:dataObjs[i].typeId , parentId:dataObjs[i].parentId
});
treeParentNode.addChild(node);
treeParentNode.registerChild(node,i);
if(dataObjs[i].children){
this.buildTreeNodes(dataObjs[i].children, node);
}
}
},
buildTree:function (treeDat){
myTreeWidget = dojo.widget.createWidget(&#8221;Tree&#8221;,{
widgetId:&#8221;myNewTreeWidget&#8221;
});
this.buildTreeNodes(treeDat.treeNodes,myTreeWidget);
var treeContainer = document.getElementById(&#8221;myWidgetContainer&#8221;);
var placeHolder = document.getElementById(&#8221;treePlaceHolder&#8221;);
treeContainer.replaceChild(myTreeWidget.domNode,placeHolder);
DemoTreeManager.init();
}
};
Context menus and its actions

var DemoTreeManager = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=21&subd=cancerb0y&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Tree builder JS<br />
<code><br />
var TreeBuilder = {<br />
buildTreeNodes:function (dataObjs, treeParentNode){<br />
var arr=new Array("Start","Country","State","Sub Location1","Sub Location2","Sub Location3","Sub Location4","Sub Location5","Sub Location6","Postal Code","Longitude","Latitude");</code></p>
<p>for(var i=0; i&lt;dataObjs.length;i++){<br />
var typ = dataObjs[i].typeId;<br />
var dumm = parseInt(typ);<br />
var titl = dataObjs[i].title+&#8221;( &#8220;+arr[dumm]+&#8221; )&#8221;;<br />
var node = dojo.widget.createWidget(&#8221;TreeNode&#8221;,{<br />
title:titl ,locationName:dataObjs[i].title, locationId:dataObjs[i].locationId , typeId:dataObjs[i].typeId , parentId:dataObjs[i].parentId<br />
});<br />
treeParentNode.addChild(node);<br />
treeParentNode.registerChild(node,i);<br />
if(dataObjs[i].children){<br />
this.buildTreeNodes(dataObjs[i].children, node);<br />
}<br />
}<br />
},<br />
buildTree:function (treeDat){<br />
myTreeWidget = dojo.widget.createWidget(&#8221;Tree&#8221;,{<br />
widgetId:&#8221;myNewTreeWidget&#8221;<br />
});</p>
<p>this.buildTreeNodes(treeDat.treeNodes,myTreeWidget);<br />
var treeContainer = document.getElementById(&#8221;myWidgetContainer&#8221;);<br />
var placeHolder = document.getElementById(&#8221;treePlaceHolder&#8221;);<br />
treeContainer.replaceChild(myTreeWidget.domNode,placeHolder);<br />
DemoTreeManager.init();</p>
<p>}</p>
<p>};</p>
<p>Context menus and its actions<br />
<code><br />
var DemoTreeManager = {<br />
djWdgt: null,<br />
myTreeWidget: null,<br />
addTreeContextMenu: function(){</code></p>
<p>var ctxMenu = this.djWdgt.createWidget(&#8221;TreeContextMenu&#8221;,{});<br />
ctxMenu.addChild(this.djWdgt.createWidget(<br />
&#8220;TreeMenuItem&#8221;,{caption:&#8221;Add Location Component&#8221;,<br />
widgetId:&#8221;ctxAdd&#8221;}));<br />
ctxMenu.addChild(this.djWdgt.createWidget(<br />
&#8220;TreeMenuItem&#8221;,{caption:&#8221;Edit Location Component&#8221;,<br />
widgetId:&#8221;ctxEdit&#8221;}));<br />
ctxMenu.addChild(this.djWdgt.createWidget(<br />
&#8220;TreeMenuItem&#8221;,{caption:&#8221;Delete Location Component&#8221;,<br />
widgetId:&#8221;ctxDelete&#8221;}));<br />
document.body.appendChild(ctxMenu.domNode);<br />
/* Bind the context menu to the tree */<br />
ctxMenu.listenTree(this.myTreeWidget);<br />
},</p>
<p>addController: function(){<br />
this.djWdgt.createWidget(<br />
&#8220;TreeBasicController&#8221;,<br />
{widgetId:&#8221;myTreeController&#8221;,DNDController:&#8221;create&#8221;}<br />
);<br />
},<br />
bindEvents: function(){<br />
/* Bind the functions in the TreeActions object to the<br />
context menu entries */<br />
dojo.event.topic.subscribe(&#8221;ctxAdd/engage&#8221;,<br />
function (menuItem) {<br />
TreeActions.addNewNode(menuItem.getTreeNode(), &#8220;myTreeController&#8221;); }<br />
);<br />
dojo.event.topic.subscribe(&#8221;ctxDelete/engage&#8221;,<br />
function (menuItem) { TreeActions.removeNode(menuItem.getTreeNode(),<br />
&#8220;myTreeController&#8221;); }<br />
);<br />
dojo.event.topic.subscribe(&#8221;ctxEdit/engage&#8221;,<br />
function (menuItem) { TreeActions.editNode(menuItem.getTreeNode(),<br />
&#8220;myTreeController&#8221;); }<br />
);<br />
},<br />
init: function(){<br />
/* Initialize this object */<br />
this.djWdgt = dojo.widget;<br />
this.myTreeWidget = this.djWdgt.manager.<br />
getWidgetById(&#8221;myNewTreeWidget&#8221;);<br />
this.addTreeContextMenu();<br />
this.addController();<br />
this.bindEvents();<br />
}<br />
};</p>
<p>Its actions<br />
<code><br />
var TreeActions = {<br />
addNewNode: function(parent,controllerId){<br />
this.controller = dojo.widget.manager.getWidgetById(controllerId);<br />
if (!parent.isFolder) {<br />
parent.setFolder();<br />
}<br />
var arr=new Array("Country - 1","State - 2","Sub Location1 - 3","Sub Location2 - 4","Sub Location3 - 5","Sub Location4 - 6","Sub Location5 - 7","Sub Location6 - 8","Postal Code - 9","Longitude - 10","Latitude - 11");<br />
var typeid = parent.typeId;<br />
var str="Enter corresponding code for the location type \n";<br />
for(var i=typeid;itypeid){<br />
if(dummy&lt;12){<br />
var titl = prompt("Enter the location name","");<br />
if(titl==""){<br />
alert("Enter valid name");<br />
}<br />
else{<br />
var rad = this.controller;<br />
AddressHierarchy.createLocation(titl,parseInt(dummy)-1,parent.locationId,function(data){<br />
var arr=new Array("Start","Country","State","Sub Location1","Sub Location2","Sub Location3","Sub Location4","Sub Location5","Sub Location6","Postal Code","Longitude","Latitude");<br />
var dumm = parseInt(data[2]);<br />
var titl = data[0]+"( "+arr[dumm]+" )";<br />
var res = rad.createChild(parent, 0, { title: titl,locationName:data[0], locationId : data[1],typeId : data[2], parentId : data[3] });<br />
})</code></p>
<p>}}<br />
else{<br />
alert(&#8221;Invalid location type&#8221;);<br />
}<br />
}<br />
else{<br />
alert(&#8221;Invalid location type&#8221;);<br />
}</p>
<p>},<br />
removeNode: function(node,controllerId){<br />
if(node.title!=&#8221;Start&#8221;){<br />
if (!node) {<br />
alert(&#8221;Nothing selected to delete&#8221;);<br />
return false;<br />
}<br />
else{<br />
var name = node.locationName;<br />
var parid = node.parentId;<br />
this.controller = dojo.widget.manager.getWidgetById(controllerId);<br />
var rad = this.controller;<br />
if(!confirm(&#8221;Are you sure you want to delete &#8220;+name)){<br />
return false;<br />
}<br />
AddressHierarchy.deleteLocation(parid,name,function() {<br />
var res = rad.removeNode(node, dojo.lang.hitch(this));<br />
})</p>
<p>}<br />
}<br />
else{<br />
alert(&#8221;Cannot remove&#8221;);<br />
}<br />
},<br />
editNode: function(node,controllerId){<br />
if(node.title!=&#8221;Start&#8221;){<br />
if (!node) {<br />
alert(&#8221;Nothing selected to edit&#8221;);<br />
return false;<br />
}<br />
else{<br />
var oldname = node.locationName;<br />
var parid = node.parentId;<br />
this.controller = dojo.widget.manager.getWidgetById(controllerId);<br />
var rad = this.controller;<br />
var newname = prompt(&#8221;Enter the location name&#8221;,oldname);</p>
<p>if(newname!=null){<br />
AddressHierarchy.editLocation(parid,oldname,newname, function(){<br />
var arr=new Array(&#8221;Start&#8221;,&#8221;Country&#8221;,&#8221;State&#8221;,&#8221;Sub Location1&#8243;,&#8221;Sub Location2&#8243;,&#8221;Sub Location3&#8243;,&#8221;Sub Location4&#8243;,&#8221;Sub Location5&#8243;,&#8221;Sub Location6&#8243;,&#8221;Postal Code&#8221;,&#8221;Longitude&#8221;,&#8221;Latitude&#8221;);<br />
var dumm = parseInt(node.typeId);<br />
var titl = newname+&#8221;( &#8220;+arr[dumm]+&#8221; )&#8221;;<br />
node.edit({title:titl , locationName:newname});<br />
})}<br />
}<br />
}<br />
else{<br />
alert(&#8221;Cannot Edit&#8221;);<br />
}<br />
}};</p>
<p>JSON input from servlet<br />
<code><br />
function loadData(){<br />
$.getJSON("${pageContext.request.contextPath}/moduleServlet/addresshierarchy/addressTree",<br />
function(data){<br />
TreeBuilder.buildTree(data);<br />
});<br />
}<br />
</code><br />
HTML code before the tree loads</p>
<p>&lt;div  id=&#8221;myWidgetContainer&#8221;&gt;<br />
&lt;span id=&#8221;treePlaceHolder&#8221;<br />
style=&#8221;background-color:#F00; color:#FFF;&#8221;&gt;<br />
Loading&#8230;<br />
&lt;/span&gt;<br />
&lt;/div&gt;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cancerb0y.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cancerb0y.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cancerb0y.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cancerb0y.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cancerb0y.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cancerb0y.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cancerb0y.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cancerb0y.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cancerb0y.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cancerb0y.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cancerb0y.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cancerb0y.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=21&subd=cancerb0y&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cancerb0y.wordpress.com/2008/07/10/codes-for-review/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9864267575497017d192a31bb9e0631b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">machosry</media:title>
		</media:content>
	</item>
		<item>
		<title>Screenshots for review</title>
		<link>http://cancerb0y.wordpress.com/2008/07/10/screenshots-for-review/</link>
		<comments>http://cancerb0y.wordpress.com/2008/07/10/screenshots-for-review/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 13:54:19 +0000</pubDate>
		<dc:creator>machosry</dc:creator>
				<category><![CDATA[openmrs]]></category>

		<guid isPermaLink="false">http://cancerb0y.wordpress.com/?p=20</guid>
		<description><![CDATA[
This is how it looks in the admin page now.

This is how the tree looks when there is no location components.

On right click on the tree these options are given out. Brian has asked me to do something like even the options are given out according to the user previleges.

When user selects &#8220;Add Location Component&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=20&subd=cancerb0y&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignnone" src="http://machosry.googlepages.com/now1.png" alt="" width="436" height="237" /></p>
<p>This is how it looks in the admin page now.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/start.png" alt="" width="806" height="430" /></p>
<p>This is how the tree looks when there is no location components.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/right.png" alt="" width="806" height="430" /></p>
<p>On right click on the tree these options are given out. Brian has asked me to do something like even the options are given out according to the user previleges.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/pop.PNG" alt="" width="819" height="614" /></p>
<p>When user selects &#8220;Add Location Component&#8221; a pop up with list of components and its code is given. Its enough to enter the code by user.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/withtype.png" alt="" width="806" height="430" /></p>
<p>The location component is created and it displayed with the location type in the braces.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/edit.PNG" alt="" width="819" height="614" /></p>
<p>Prompt box user gets when he selects &#8220;Edit Location Component&#8221;.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/delcon.PNG" alt="" width="819" height="614" /></p>
<p>Confirmation box user gets when he selects &#8220;Delete Location Component&#8221;.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cancerb0y.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cancerb0y.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cancerb0y.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cancerb0y.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cancerb0y.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cancerb0y.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cancerb0y.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cancerb0y.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cancerb0y.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cancerb0y.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cancerb0y.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cancerb0y.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=20&subd=cancerb0y&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cancerb0y.wordpress.com/2008/07/10/screenshots-for-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9864267575497017d192a31bb9e0631b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">machosry</media:title>
		</media:content>

		<media:content url="http://machosry.googlepages.com/now1.png" medium="image" />

		<media:content url="http://machosry.googlepages.com/start.png" medium="image" />

		<media:content url="http://machosry.googlepages.com/right.png" medium="image" />

		<media:content url="http://machosry.googlepages.com/pop.PNG" medium="image" />

		<media:content url="http://machosry.googlepages.com/withtype.png" medium="image" />

		<media:content url="http://machosry.googlepages.com/edit.PNG" medium="image" />

		<media:content url="http://machosry.googlepages.com/delcon.PNG" medium="image" />
	</item>
		<item>
		<title>Sixth week of coding</title>
		<link>http://cancerb0y.wordpress.com/2008/07/08/sixth-week-of-coding/</link>
		<comments>http://cancerb0y.wordpress.com/2008/07/08/sixth-week-of-coding/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 17:46:54 +0000</pubDate>
		<dc:creator>machosry</dc:creator>
				<category><![CDATA[openmrs]]></category>
		<category><![CDATA[gsoc]]></category>

		<guid isPermaLink="false">http://cancerb0y.wordpress.com/?p=19</guid>
		<description><![CDATA[This week I had to work bit harder because i had to take off for four days from the project since I had to attend my cousin&#8217;s marriage.  At the start of the week Brian suggested a new concept for easy user interface. A javascript tree to maintain the address hierarchy even Daniel thought that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=19&subd=cancerb0y&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This week I had to work bit harder because i had to take off for four days from the project since I had to attend my cousin&#8217;s marriage.  At the start of the week Brian suggested a new concept for easy user interface. A javascript tree to maintain the address hierarchy even Daniel thought that would be good and pretty useful.</p>
<p>As they wished I designed the javascript tree with a small css bug (an extra line could be easily removed on a small research). Here are the screen shots</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/default.png" alt="" width="605" height="323" /></p>
<p>This is default view. You cannot delete or edit that &#8220;Start&#8221; link.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/treeview.png" alt="" width="605" height="323" /></p>
<p>This is the tree view.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/rightclick.png" alt="" width="605" height="323" /></p>
<p>Three options you get when you right click on a link.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/addpop.PNG" alt="" width="614" height="461" /></p>
<p>Popup you get when select &#8220;Add Location&#8221;.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/editpop.PNG" alt="" width="614" height="461" /></p>
<p>Popup you get when you select &#8220;Edit Location&#8221;.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/deleteconfirm.PNG" alt="" width="614" height="461" /></p>
<p>Confirmation dialog you get when you select &#8220;Delete Location&#8221;.</p>
<p>I use a Java string parsed into Json array to build this array. But I feel loading the tree the with a large number of locations will take pretty long time but once it is loaded this is the best way for an user to create a location rather than the old way plus maintaining the locations is also very easy.</p>
<p>I hope my mentor and backup mentor like this tree. I am doing a small research for the second part of my project. It will take 2 or 3 days and on 10th I have my project review. After that I will start coding for the second part.</p>
<p>P.S : I welcome any alternative suggestion for the Json array. I am not sure how to build a js tree without an array.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cancerb0y.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cancerb0y.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cancerb0y.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cancerb0y.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cancerb0y.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cancerb0y.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cancerb0y.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cancerb0y.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cancerb0y.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cancerb0y.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cancerb0y.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cancerb0y.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=19&subd=cancerb0y&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cancerb0y.wordpress.com/2008/07/08/sixth-week-of-coding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9864267575497017d192a31bb9e0631b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">machosry</media:title>
		</media:content>

		<media:content url="http://machosry.googlepages.com/default.png" medium="image" />

		<media:content url="http://machosry.googlepages.com/treeview.png" medium="image" />

		<media:content url="http://machosry.googlepages.com/rightclick.png" medium="image" />

		<media:content url="http://machosry.googlepages.com/addpop.PNG" medium="image" />

		<media:content url="http://machosry.googlepages.com/editpop.PNG" medium="image" />

		<media:content url="http://machosry.googlepages.com/deleteconfirm.PNG" medium="image" />
	</item>
		<item>
		<title>Fifth Week of Coding</title>
		<link>http://cancerb0y.wordpress.com/2008/07/01/fifth-week-of-coding/</link>
		<comments>http://cancerb0y.wordpress.com/2008/07/01/fifth-week-of-coding/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 02:12:00 +0000</pubDate>
		<dc:creator>machosry</dc:creator>
				<category><![CDATA[openmrs]]></category>

		<guid isPermaLink="false">http://cancerb0y.wordpress.com/?p=18</guid>
		<description><![CDATA[I have almost completed my first half project to be submitted for mid term evaluation.
I have put few screenshots here and explanation for it.

This is the create hierarchy page. It has auto completion text boxes which helps admin to create locations easily. There&#8217;s also a location counter in this page showing the number of locations [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=18&subd=cancerb0y&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have almost completed my first half project to be submitted for mid term evaluation.</p>
<p>I have put few screenshots here and explanation for it.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/ahsform.png" alt="" width="605" height="317" /></p>
<p>This is the create hierarchy page. It has auto completion text boxes which helps admin to create locations easily. There&#8217;s also a location counter in this page showing the number of locations in the table.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/initialpage.png" alt="" width="605" height="329" /></p>
<p>This is the manage hierarchy page. When it loads it looks like this. You can start editing or deleting by selecting a country.</p>
<p>The hierarchy is changed as you choose a location. If a hierarchy skips a location type then that particular drop down menu will be disabled.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/disabled.png" alt="" width="605" height="329" /></p>
<p><img class="alignnone" src="http://machosry.googlepages.com/aspercount.png" alt="" width="605" height="329" /></p>
<p><img class="alignnone" src="http://machosry.googlepages.com/componentchange.png" alt="" width="605" height="317" /></p>
<p>As you can see in screenshots the hierarchies are changed as the locations are changed.</p>
<p>Even manage hierarchy page has a location counter.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/edit.png" alt="" width="605" height="317" /></p>
<p>On choosing edit the submit button is renamed to &#8220;Edit&#8221;. And the user will be provided radio buttons and corresponding disabled textboxes. On selecting a radio button the corresponding textbox will be loaded with the selected value in the drop down menu. If the drop down menu is disabled then the textbox will not be enabled on selecting the radiobox. User can edit the location in the text box and click Edit button.</p>
<p><img class="alignnone" src="http://machosry.googlepages.com/delete.png" alt="" width="605" height="317" /></p>
<p>Delete also similar to Edit but this will not give out textboxes. User can click the radio button and click the Delete button.</p>
<p>Yesterday when Brian tried to work with my module he faced problems in manage hierarchy page. Still I could not figure out the reason. I tried the module in few other systems it worked fine there. Even in Internet Explorer 6 it worked fine. I have done this autocomplete thing today havent updated my code yet in the repository since there&#8217;s some problem in the repository.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cancerb0y.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cancerb0y.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cancerb0y.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cancerb0y.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cancerb0y.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cancerb0y.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cancerb0y.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cancerb0y.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cancerb0y.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cancerb0y.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cancerb0y.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cancerb0y.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=18&subd=cancerb0y&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cancerb0y.wordpress.com/2008/07/01/fifth-week-of-coding/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9864267575497017d192a31bb9e0631b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">machosry</media:title>
		</media:content>

		<media:content url="http://machosry.googlepages.com/ahsform.png" medium="image" />

		<media:content url="http://machosry.googlepages.com/initialpage.png" medium="image" />

		<media:content url="http://machosry.googlepages.com/disabled.png" medium="image" />

		<media:content url="http://machosry.googlepages.com/aspercount.png" medium="image" />

		<media:content url="http://machosry.googlepages.com/componentchange.png" medium="image" />

		<media:content url="http://machosry.googlepages.com/edit.png" medium="image" />

		<media:content url="http://machosry.googlepages.com/delete.png" medium="image" />
	</item>
		<item>
		<title>Fourth Week of Coding</title>
		<link>http://cancerb0y.wordpress.com/2008/06/23/fourth-week-of-coding/</link>
		<comments>http://cancerb0y.wordpress.com/2008/06/23/fourth-week-of-coding/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 23:07:05 +0000</pubDate>
		<dc:creator>machosry</dc:creator>
				<category><![CDATA[openmrs]]></category>

		<guid isPermaLink="false">http://cancerb0y.wordpress.com/?p=16</guid>
		<description><![CDATA[Huh&#8230; Atlast I am gonna complete my first half. Only few things left in the enhancements and backend. Hopefully I will finish the backend works tomorrow. Finally got access to svn repository gonna upload my src code tomorrow   . I am working on the form for managing the created hierarchies such as editing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=16&subd=cancerb0y&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Huh&#8230; Atlast I am gonna complete my first half. Only few things left in the enhancements and backend. Hopefully I will finish the backend works tomorrow. Finally got access to svn repository gonna upload my src code tomorrow <img src='http://s.wordpress.com/wp-includes/images/smilies/face-smile.png' alt=':)' class='wp-smiley' />  . I am working on the form for managing the created hierarchies such as editing and deleting. Since I have merged both ideas in the same form I am working on something like fliping. I am gonna provide the user with radio buttons. If he selects edit then he will get options for edit and if he selects delete he will get options for delete. The drop down works fine here but still things are there have to be done. I used drop down here because it would be helpful for users and I could gain some idea on how to do the second half. If everything works fine then I am gonna use the same Javascript file for my second half. Ah I forgot to mention. At the beginning I misunderstood few things in the DWR documentation and thats the reason for this delay. I misunderstood the <strong>&#8220;CALL BACK FUNCTION&#8221;</strong> part in the DWR. Thats really crazy na. Thats all for now folks. I will give my update once I finish the rest of works.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cancerb0y.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cancerb0y.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cancerb0y.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cancerb0y.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cancerb0y.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cancerb0y.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cancerb0y.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cancerb0y.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cancerb0y.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cancerb0y.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cancerb0y.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cancerb0y.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=16&subd=cancerb0y&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cancerb0y.wordpress.com/2008/06/23/fourth-week-of-coding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9864267575497017d192a31bb9e0631b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">machosry</media:title>
		</media:content>
	</item>
		<item>
		<title>The Third Week of Coding</title>
		<link>http://cancerb0y.wordpress.com/2008/06/17/the-third-week-of-coding/</link>
		<comments>http://cancerb0y.wordpress.com/2008/06/17/the-third-week-of-coding/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 21:07:49 +0000</pubDate>
		<dc:creator>machosry</dc:creator>
				<category><![CDATA[openmrs]]></category>

		<guid isPermaLink="false">http://cancerb0y.wordpress.com/?p=15</guid>
		<description><![CDATA[I am extremely sorry for the delay in the updates. Me and my mentor Daniel worked together and solved many issues. This is the first time in my lifetime to correct such many errors. But finally I see a small hope that I can finish the major part of the first deliverable by tomorrow. Actually [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=15&subd=cancerb0y&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I am extremely sorry for the delay in the updates. Me and my mentor Daniel worked together and solved many issues. This is the first time in my lifetime to correct such many errors. But finally I see a small hope that I can finish the major part of the first deliverable by tomorrow. Actually I thought I could do that by last weekend but I could not. And that was the reason for the delay in the updates. Hope I will put my codes in repository in this week for further reviews, suggestions and enhancements. Right now I am little bit held up in the hql part. I am in the verge of completing. I will update this post once I get done with this issue. Thanks for the patience.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cancerb0y.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cancerb0y.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cancerb0y.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cancerb0y.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cancerb0y.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cancerb0y.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cancerb0y.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cancerb0y.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cancerb0y.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cancerb0y.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cancerb0y.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cancerb0y.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=15&subd=cancerb0y&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cancerb0y.wordpress.com/2008/06/17/the-third-week-of-coding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9864267575497017d192a31bb9e0631b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">machosry</media:title>
		</media:content>
	</item>
		<item>
		<title>The Second Week of Coding</title>
		<link>http://cancerb0y.wordpress.com/2008/06/08/the-second-week-of-coding/</link>
		<comments>http://cancerb0y.wordpress.com/2008/06/08/the-second-week-of-coding/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 19:07:50 +0000</pubDate>
		<dc:creator>machosry</dc:creator>
				<category><![CDATA[openmrs]]></category>
		<category><![CDATA[gsoc]]></category>

		<guid isPermaLink="false">http://cancerb0y.wordpress.com/?p=12</guid>
		<description><![CDATA[This week also had been very hectic because of the exams. AAAAHHH finally I am done with exams. This week I managed to do only few things. Right now I am stuck with my form controller. I think I don&#8217;t have any problems with hibernate and mapping. They seem to be pretty fine. I am [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=12&subd=cancerb0y&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This week also had been very hectic because of the exams. AAAAHHH finally I am done with exams. This week I managed to do only few things. Right now I am stuck with my form controller. I think I don&#8217;t have any problems with hibernate and mapping. They seem to be pretty fine. I am planning to put my code in the svn repository once I am done with my form controller. All I have to do now with it is once my form is submitted the values should hierarchically stored in the table. Hope I will solve it soon. After this I still have &#8220;manage hierarchy section&#8221; I think that can be done easily once I complete this controller. But I must appreciate Rwanda Registration Module. It helped me a lot. Actually Brian insisted me to have a look at Rwanda Registration Module and Printing Module. In Rwanda Registration they have the address hierarchy facility. Though the locations are already stored in there and pulled out in the forms the codes can be used as reference and it instantly gives us some sparks to resolve some issue. Since its really late in the night my brain (oops&#8230; this is the third time i writing brian instead brain and correcting it&#8230;) is totally exhausted and I cannot get where am I stuck in this form controller. Tomorrow I gotta catch Daniel and solve this. It has been two weeks but still I have not complete the form thing. Again I have to speed up myself. You see I am the laziest person in the world <img src='http://s.wordpress.com/wp-includes/images/smilies/face-raspberry.png' alt=':P' class='wp-smiley' /> </p>
<p>Last week Ben and Paul enquired me about the Lambda Probe. And I replied to their comments. Actually Lambda Probe works fine for me. The main thing it helps me is in maintaining the system performance and not slowing down the firefox. But still I have to figure out one thing. When I delete my old module and try to upload the new modified one  I am getting  an error message saying <strong>&#8220;addresshierarchysupport-1.0.omod is already associated with a loaded module&#8221;. </strong>I thought to ask about this in IRC last week but forgot somehow because of exams. How will it be associated when there&#8217;s no modules at all in the module repository. Then everytime I have to restart my application to get the module to work in the system and LambdaProbe helps me to do that quickly without any troubles.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cancerb0y.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cancerb0y.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cancerb0y.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cancerb0y.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cancerb0y.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cancerb0y.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cancerb0y.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cancerb0y.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cancerb0y.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cancerb0y.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cancerb0y.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cancerb0y.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cancerb0y.wordpress.com&blog=3511467&post=12&subd=cancerb0y&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cancerb0y.wordpress.com/2008/06/08/the-second-week-of-coding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9864267575497017d192a31bb9e0631b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">machosry</media:title>
		</media:content>
	</item>
	</channel>
</rss>