<?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"
	>

<channel>
	<title>Kamal's Blog</title>
	<atom:link href="http://kamalmeet.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://kamalmeet.com</link>
	<description>A Traveler's log</description>
	<pubDate>Tue, 13 Apr 2010 07:46:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Stress Testing the application!</title>
		<link>http://kamalmeet.com/?p=49</link>
		<comments>http://kamalmeet.com/?p=49#comments</comments>
		<pubDate>Tue, 13 Apr 2010 07:46:58 +0000</pubDate>
		<dc:creator>kamal</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[Testing]]></category>

		<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://kamalmeet.com/?p=49</guid>
		<description><![CDATA[Yesterday I needed to quickly test one of web modules for performance. Easiest way was to do some stress testing, simulate real world environment (100 users hitting url at the same time) and then checking the service response time. It looked simple, I just needed a stress-testing tool, which could take url of my webpage [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">Yesterday I needed to quickly test one of web modules for performance. Easiest way was to do some stress testing, simulate real world environment (100 users hitting url at the same time) and then checking the service response time. It looked simple, I just needed a stress-testing tool, which could take url of my webpage and return me the performance data. But it turned out much more complex than that.</p>
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--></p>
<p class="MsoNormal">First shock came when I came to know that not many professionals are doing stress testing for their applications. I checked with some of my friends and got the same answer that they were not doing stress testing. How could I blame others when I did stress testing for one of my applications like 4 years ago.</p>
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--></p>
<p class="MsoNormal">Anyway, I knew that I would have to figure out things from scratch. I was told about <a href="http://httpd.apache.org/docs/2.0/programs/ab.html">Apache Benchmark</a> (ab).  That looked promising to start with and I was able to get some performance data for static sites. But I was not able to look at the output, that ab was bringing back from the site. I tried to figure out how to check it for some time, but it turned out to be complex process, and I wanted to get over with the testing as soon as possible as other pending work was waiting.</p>
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--></p>
<p class="MsoNormal">So I though of using some UI based tool rather then command based (that’s the disadvantage of getting used to Windows). I googled around and found <a href="http://jakarta.apache.org/jmeter/">Jmeter</a>, which looked very promising, and my kind of tool (open source). Again it started off well. And this time I was able to get back the output. The Jmeter could show the output in multiple formats, including HTML. This also helped to see that the output I was getting back from website was actually an error message instead of the correct page. The tool was showing the test case as success, because the error message was actually embedded in the correct HTML page (based on some conditions, it was to be shown or hidden). Now I figured out that this was because the tool was not able to set values in session for multiple test cases. Jmeter looked promising and I was sure that there must be some place where I could set the session settings (it had a lots of settings options for cache/ cookies etc). But too many setting options could only confuse. I again spent a couple of hours on this tool before giving up.</p>
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--></p>
<p class="MsoNormal">Time was running out, and I needed a tool that could help me testing my application without much complexity. So I thought of trying trial version (14 days or some limited features) of some paid software, when I figured out <a href="http://www.paessler.com/webstress trial version">webserver stress</a> tool’s. That worked like piece of cake. All the required settings were just 3-4 screens. Setting up sessions meant just checking the check-box for cookies. Clear output files with detailed logs, Summary log, and logs for each user simulated, url logs etc made it easier to compare different performance parameters. The paid version is also cheap (less than 250$) for this.<span> </span></p>
<p class="MsoNormal">
<p class="MsoNormal">Anyone has better ideas for load/ stress/ performance testing of the application?</p>
]]></content:encoded>
			<wfw:commentRss>http://kamalmeet.com/?feed=rss2&amp;p=49</wfw:commentRss>
		</item>
		<item>
		<title>Tweet 4 Blood</title>
		<link>http://kamalmeet.com/?p=48</link>
		<comments>http://kamalmeet.com/?p=48#comments</comments>
		<pubDate>Wed, 07 Apr 2010 16:49:42 +0000</pubDate>
		<dc:creator>Kamalmeet</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[kool stuff]]></category>

		<guid isPermaLink="false">http://kamalmeet.com/?p=48</guid>
		<description><![CDATA[ If you were thinking twitter is just for sharing one liners, think again. It can actually be used to save a life. Thej has developed tweet4blood to help people in need of blood. Read more here- http://www.deccanchronicle.com/tabloids/how-save-life-021.
]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--> <!--[if gte mso 10]></p>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<p><![endif]-->If you were thinking twitter is just for sharing one liners, think again. It can actually be used to save a life. <a href="http://thejeshgn.com/">Thej</a><span> </span>has developed <a href="http://www.tweet4blood.com/">tweet4blood</a> to help people in need of blood. Read more here- <a href="http://www.deccanchronicle.com/tabloids/how-save-life-021">http://www.deccanchronicle.com/tabloids/how-save-life-021</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kamalmeet.com/?feed=rss2&amp;p=48</wfw:commentRss>
		</item>
		<item>
		<title>Creating a website, in less than an hour, for free</title>
		<link>http://kamalmeet.com/?p=47</link>
		<comments>http://kamalmeet.com/?p=47#comments</comments>
		<pubDate>Wed, 07 Apr 2010 16:23:01 +0000</pubDate>
		<dc:creator>Kamalmeet</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Design]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[kool stuff]]></category>

		<guid isPermaLink="false">http://kamalmeet.com/?p=47</guid>
		<description><![CDATA[Over the weekend a friend discussed his idea of creating a web portal for some specific services with me. The failed entrepreneur in me liked his idea and encouraged him to go ahead (anyone, who is trying, should be encouraged).  He shared some wireframes for his portal, but he was not sure how will [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">Over the weekend a friend discussed his idea of creating a web portal for some specific services with me. The failed entrepreneur in me liked his idea and encouraged him to go ahead (anyone, who is trying, should be encouraged). <span> </span>He shared some wireframes for his portal, but he was not sure how will it actually look on the web. So after returning home, I decided to get some basic version of the website up on the internet to help him. Resulting in the journey mentioned below.</p>
<p class="MsoNormal">
<p class="MsoNormal"><strong>Step 1</strong>: I knew I will have to share my email address with service providers (hosting space/ domain name etc.). And as I am looking for free stuff, it would be more than possible that I come across some fake websites.<span> </span>So I thought of creating a dummy email id which could be used to register to all these websites.</p>
<p class="MsoNormal">
<p class="MsoNormal"><strong>Step 2</strong>: Now I needed a domain name. I could buy, but as this was just a dummy site, why waste money. Next option is using subdomain from web hosting provider. Here I had to look for a free web hosting provider, and my past experience with free hosting providers is &#8216;don&#8217;t trust them&#8217;. The site can go down anytime without notice (its for free. What were you expecting?). So I thought of getting a free domain name, yes, a co.cc domain. I registered a domain with<span> </span><a href="http://www.co.cc/">http://www.co.cc/</a>, which I could<span> </span>use with any service provider.</p>
<p class="MsoNormal">
<p class="MsoNormal"><strong>Step 3</strong>: Now I needed web hosting. I googled around some free web hosting sites, zeroed upon one (checked features and reviews), registered, and bam, it is not working. Moved to second one, registered, and this time it worked. It was <a href="http://awardspace.com">awardspace.com</a>. I got Linux hosting with Apache, PHP, MYSQL. Basically all I needed, for free. I set up the nameservers for the domain and all is good. (Ofcourse I tried a hello world example, I am still the same old fashioned developer at heart).</p>
<p class="MsoNormal">
<p class="MsoNormal"><strong>Step 4</strong>: Now we have all set to host our web pages. I had the wireframe with me, and I had frontpage, I could easily create the HTML pages. BUT, from my past experience, I<span> </span>knew designing web pages is a sin for a developer (&#8221;Are you colorblind! Why are all the pages grey?&#8221;). So instead I pinged a designer friend and asked for some templates. Who suggested checking <a href="http://projectw.org">http://projectw.org</a> for free html/ php templates (you will find more interesting stuff on the forum, but handle with care :D). Ok so I had a template with me, now I needed to customize it for my pages. Actually this was the part which took most of the time. Once done! I just had to upload the pages to my website using ftp. And we are done.</p>
<p class="MsoNormal">
<p class="MsoNormal">Wasn&#8217;t it simple. If instead of a website you are trying to create a blog, you can simply upload the blogging software. Infact most of control panels come with blogging softwares, so that is actually simpler. <span> </span></p>
<p class="MsoNormal">
<p class="MsoNormal">If you don&#8217;t have your website yet, what are you waiting for? Go ahead! Get your hands dirty.</p>
<p class="MsoNormal">
]]></content:encoded>
			<wfw:commentRss>http://kamalmeet.com/?feed=rss2&amp;p=47</wfw:commentRss>
		</item>
		<item>
		<title>Trying ReCaptcha</title>
		<link>http://kamalmeet.com/?p=46</link>
		<comments>http://kamalmeet.com/?p=46#comments</comments>
		<pubDate>Tue, 06 Apr 2010 08:24:39 +0000</pubDate>
		<dc:creator>Kamalmeet</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://kamalmeet.com/?p=46</guid>
		<description><![CDATA[After trying to stop spam comments on my own, and failing, I have opted to install the third party captcha plugin.  Using Recaptcha plugin for wordpress. Let&#8217;s see if this can solve the spam problem.
]]></description>
			<content:encoded><![CDATA[<p>After trying to stop spam comments on my own, and failing, I have opted to install the third party captcha plugin.  Using <a href="http://recaptcha.net/plugins/wordpress/">Recaptcha </a>plugin for wordpress. Let&#8217;s see if this can solve the <a href="http://kamalmeet.com/?p=41">spam problem</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kamalmeet.com/?feed=rss2&amp;p=46</wfw:commentRss>
		</item>
		<item>
		<title>Problems are meant to be fixed.</title>
		<link>http://kamalmeet.com/?p=45</link>
		<comments>http://kamalmeet.com/?p=45#comments</comments>
		<pubDate>Sun, 07 Mar 2010 18:20:34 +0000</pubDate>
		<dc:creator>kamal</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://kamalmeet.com/?p=45</guid>
		<description><![CDATA[Sometimes things go terribly wrong. Its life, it is not meant to be perfect and smooth. When everything around you start falling into pieces, you might feel now this is the end of road, but actually it might just be a small hurdle and who knows, it might actually be a new beginning.
I remember a [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes things go terribly wrong. Its life, it is not meant to be perfect and smooth. When everything around you start falling into pieces, you might feel now this is the end of road, but actually it might just be a small hurdle and who knows, it might actually be a new beginning.</p>
<p>I remember a very beautiful incident in my life. I was working on an important project as a technical lead with a team of 4-5 developers. The day we moved the application to production; it bombed. Nothing was working. It was an important multi million dollar piece of software, which we had tested and retested multiple times before moving to production, but it refused to work on the d-day.  Obviosly clients were furious and emails started pouring from each side. As a tech lead it was my responsibility to make sure no technical issues should be there so I had a strong feeling that my career is over. My reporting manager would give me a call anytime and.. no idea what was in store for me. Anyways I tried my best to fix the problem, meanwhile I got calls and emails from client managers and directors, discussing issues, setting up meetings. But my manager never contacted me.</p>
<p>So the next day in morning, I went to my manager, thinking that he might actually have not read the emails. I was at his desk even before he came and waited for him. I was ready to take the responsibility of whole thing and was ready for any consequencies. So when he came, I tried explaining him the issue, but he told me that he had seen emails yesterday. So I asked him </p>
<p>&#8220;So what should I do now?&#8221;</p>
<p>(He, matter of factly) &#8220;Go and fix it!&#8221;</p>
<p>Thats it. Does he not understand the problem. I might lose him business, client might now want to do business with us again. So I again tried to emphasize on the seriosness of the issue. He just  told me</p>
<p>&#8220;Kamal, you are handling that project and I trust you. What ever is required to be done,  you will do it. If we lose business becuase of this, I will not care as I know you tried honestly. so Go and fix it&#8221;</p>
<p>Wow! I was so amazed and felt very  confident after that. Afterall, if such an experienced man is telling me to fix it, there must be a solution out there. So I went back and met with all  the managers from different teams and asked for help. To my surprise, everyone was more than ready to help  me and my team. It took us 3-4 days, but we were able to fix the software. And while we finding the fix, we actually came up with many new processes to make sure others do not face similar issues in future. So at the end we were appreciated by the clients for our sincere efforts. The  project which we thought would lose us business, eventually helped us improve our relationship with clients.</p>
<p>One very important lesson of my life I learnt from this incident, that even if the problem you are facing is scary and you are sure that this is end of road. Think again. There must  be a way out. After all, every  problem has a solution, and who knows, what  looks like a problem, might  actually be an opportunity. So whenever such a problem comes, I just tell myself, &#8220;Go and fix it&#8221;. cos there is no other way to deal with problems.</p>
<p>Nayi Subah hai, Chal uth naye safar  ko chalen<br />
zindagi udasi ke pehloo main padi achchi nahi lagti</p>
<p>behtar hain toofan se takra kar bikhar jaayen<br />
kashtiyaan sahil pe khadi achchi nahi lagti</p>
]]></content:encoded>
			<wfw:commentRss>http://kamalmeet.com/?feed=rss2&amp;p=45</wfw:commentRss>
		</item>
		<item>
		<title>System Design and documentation</title>
		<link>http://kamalmeet.com/?p=43</link>
		<comments>http://kamalmeet.com/?p=43#comments</comments>
		<pubDate>Tue, 27 Oct 2009 13:10:37 +0000</pubDate>
		<dc:creator>kamal</dc:creator>
		
		<category><![CDATA[System Design and documentation]]></category>

		<guid isPermaLink="false">http://kamalmeet.com/?p=43</guid>
		<description><![CDATA[Found some old notes of mine on system documentation. What all documentation you will deliver to customer
1.Business Process Model (The broader picture)
2.System Process Model (How does the system work)
3.Business Concept Model (Business Rules, Requirement Documents)
4.Use Case diagrams
5.Use Case Narratives
6.Solution analysis (Analyze various solutions)
7.Application Architecture Overview (existing components, new components, users, systems and subsystems, responsibilities, files [...]]]></description>
			<content:encoded><![CDATA[<p>Found some old notes of mine on system documentation. What all documentation you will deliver to customer</p>
<p>1.Business Process Model (The broader picture)</p>
<p>2.System Process Model (How does the system work)</p>
<p>3.Business Concept Model (Business Rules, Requirement Documents)</p>
<p>4.Use Case diagrams</p>
<p>5.Use Case Narratives</p>
<p>6.Solution analysis (Analyze various solutions)</p>
<p>7.Application Architecture Overview (existing components, new components, users, systems and subsystems, responsibilities, files queues, databases)</p>
<p>8.Solution  Option Comparison (Business Criteria, Technical Criteria)</p>
<p>9.Deployment Diagrams- Network, Systems, subsystems, application servers, database servers versions</p>
<p>10.Database Diagram</p>
<p>11.Component Architecture- Interactions, Interfaces</p>
<p>12.Infrastructure Architecture- JDBC driver, DB2 driver version etc</p>
<p>13.User Interface UI</p>
<p>14.Test Cases</p>
<p>15. Class Diagrams and Sequence Diagrams</p>
]]></content:encoded>
			<wfw:commentRss>http://kamalmeet.com/?feed=rss2&amp;p=43</wfw:commentRss>
		</item>
		<item>
		<title>Home Coming..</title>
		<link>http://kamalmeet.com/?p=42</link>
		<comments>http://kamalmeet.com/?p=42#comments</comments>
		<pubDate>Thu, 01 Oct 2009 10:59:21 +0000</pubDate>
		<dc:creator>kamal</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://kamalmeet.com/?p=42</guid>
		<description><![CDATA[Everything was planned. I was dreaming about driving back to Delhi, my home town, from Chandigarh, while singing &#8220;Country roads! take me home. To the place I belong&#8221;. But as always is the case with my life, I had to prepone my travel date because of a family urgency. Drove at 120 kmph on Delhi [...]]]></description>
			<content:encoded><![CDATA[<p>Everything was planned. I was dreaming about driving back to Delhi, my home town, from Chandigarh, while singing &#8220;Country roads! take me home. To the place I belong&#8221;. But as always is the case with my life, I had to prepone my travel date because of a family urgency. Drove at 120 kmph on Delhi - Chandigarh highway. And finally I am Delhi.</p>
<p>After 3 and a half years. Out of which I spend some part in Bangalore, some in U.S. and last 11-12 months in Chandigarh, I am back home (laut ke buddhoo ghar ko aaye). Things were not always as I expected, infact they never were as expected. But still.. main zindagi ka saath nibhata chala gaya&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://kamalmeet.com/?feed=rss2&amp;p=42</wfw:commentRss>
		</item>
		<item>
		<title>Spam bhejna band karo!</title>
		<link>http://kamalmeet.com/?p=41</link>
		<comments>http://kamalmeet.com/?p=41#comments</comments>
		<pubDate>Thu, 10 Sep 2009 10:44:56 +0000</pubDate>
		<dc:creator>kamal</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://kamalmeet.com/?p=41</guid>
		<description><![CDATA[Spammer bhaiyo aur behno.. please stop sending spam comments. Evertime I check my comments section, it is full of spam. &#8216;Get hot date&#8217;, &#8216;cheap Viagra&#8217;, &#8216;Free nude ladies&#8217;. Abey characterless aadmi samjha hai kya.. aur koi link chalta bhi nahi hai isme se.. 
Koi baat nahi beta.. aise aise filter lagaunga na.. ke reverse spamming [...]]]></description>
			<content:encoded><![CDATA[<p>Spammer bhaiyo aur behno.. please stop sending spam comments. Evertime I check my comments section, it is full of spam. &#8216;Get hot date&#8217;, &#8216;cheap Viagra&#8217;, &#8216;Free nude ladies&#8217;. Abey characterless aadmi samjha hai kya.. aur koi link chalta bhi nahi hai isme se.. </p>
<p>Koi baat nahi beta.. aise aise filter lagaunga na.. ke reverse spamming ho jayegi, aur tumhare mail boxes bhar jayenge spam mail se.. and I am serious..</p>
]]></content:encoded>
			<wfw:commentRss>http://kamalmeet.com/?feed=rss2&amp;p=41</wfw:commentRss>
		</item>
		<item>
		<title>Driving experience</title>
		<link>http://kamalmeet.com/?p=40</link>
		<comments>http://kamalmeet.com/?p=40#comments</comments>
		<pubDate>Tue, 25 Aug 2009 05:09:32 +0000</pubDate>
		<dc:creator>kamal</dc:creator>
		
		<category><![CDATA[driving]]></category>

		<guid isPermaLink="false">http://kamalmeet.com/?p=40</guid>
		<description><![CDATA[I did it again last Saturday.. Volunteered to take my Mother to temple in the morning, you know the early morning time, around 6, when driving in the cool wind gives you feeling that heavens can&#8217;t be different from this. And add some good soft music, and you know what life is all about. 
But [...]]]></description>
			<content:encoded><![CDATA[<p>I did it again last Saturday.. Volunteered to take my Mother to temple in the morning, you know the early morning time, around 6, when driving in the cool wind gives you feeling that heavens can&#8217;t be different from this. And add some good soft music, and you know what <a href="http://kamalmeet.com/?p=32">life is all about</a>. </p>
<p>But the feeling can be engrossing one and you can forget the actual purpose of your drive. Like after traveling for half an hour I released that I was supposed to drive to temple, which I had left like 10 Kms behind. </p>
<p>Not all driving experiences can be same fun, for example my drive from Delhi to Chandigarh yesterday, upto Karnal it was fun, but after that, AC of the car refused to oblige and heat outside was not making a good picture for driving. so last 100 Kms or so were pretty tiring. But again, that is more like life, not always good. </p>
<p>Looking forward to driving back to Delhi this weekend.</p>
]]></content:encoded>
			<wfw:commentRss>http://kamalmeet.com/?feed=rss2&amp;p=40</wfw:commentRss>
		</item>
		<item>
		<title>Object Oriented JavaScript- 4</title>
		<link>http://kamalmeet.com/?p=39</link>
		<comments>http://kamalmeet.com/?p=39#comments</comments>
		<pubDate>Wed, 12 Aug 2009 05:09:15 +0000</pubDate>
		<dc:creator>kamal</dc:creator>
		
		<category><![CDATA[AJAX]]></category>

		<category><![CDATA[DOM]]></category>

		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://kamalmeet.com/?p=39</guid>
		<description><![CDATA[We have talked about Basic OO concepts, Objects and Classes, and Inheritance in JS. Today, let me look at polymorphism in JS.
Now polymorphism is a criteria which can help me create multiple method with the same name, with the program deciding at the run time, that which method to be called, based on signature of [...]]]></description>
			<content:encoded><![CDATA[<p>We have talked about <a href="http://kamalmeet.com/?p=34">Basic OO concepts</a>, <a href="http://kamalmeet.com/?p=36">Objects and Classes</a>, and <a href="http://kamalmeet.com/?p=38">Inheritance</a> in JS. Today, let me look at polymorphism in JS.</p>
<p>Now polymorphism is a criteria which can help me create multiple method with the same name, with the program deciding at the run time, that which method to be called, based on signature of the method. The signature of methods can differ by number of arguments it takes, or type of arguments. In Js, we can not differentiate between methods based on type of arguments, because every type in JS can be treated as type &#8216;var&#8217;. But yes, JS supports polymorphism using different number of arguments, though indirectly. </p>
<p>In a way, polymorphism in JS is simpler than in OO languages. In JS you don&#8217;t even need to create multiple methods, in the same method, you can have different handlers for different number of arguments. <strong>arguments.length</strong> does the trick for you. Enough of talking, here is your example</p>
<p>&lt;script language=&#8221;JavaScript&#8221;&gt;<br />
//trying to create a closed figure</p>
<p>function closedFigure()<br />
{</p>
<p>this.createFigure=function()<br />
{<br />
var length = arguments.lengt<br />
h;<br />
if(length<3)<br />
{<br />
alert(&#8221;atleast 3 sides are required to close the figure&#8221;);<br />
}<br />
if(length==3)<br />
{<br />
alert(&#8221;you are trying to create a triangle with &#8220;+ arguments[0]+&#8221;,&#8221;+arguments[1]+&#8221;,&#8221;+arguments[2]);<br />
}<br />
if(length==4)<br />
{<br />
alert(&#8221;you are trying to create a quadrilateral with &#8220;+arguments[0]+&#8221;,&#8221;+arguments[1]+&#8221;,&#8221;+arguments[2]+&#8221;,&#8221;+arguments[3]);<br />
}<br />
if(length==5)<br />
{<br />
alert(&#8221;you are trying to create a pentagon with &#8220;+arguments[0]+&#8221;,&#8221;+arguments[1]+&#8221;,&#8221;+arguments[2]+&#8221;,&#8221;+arguments[3]+&#8221;,&#8221;+arguments[4]);<br />
}<br />
}</p>
<p>}</p>
<p>var figure=new closedFigure();</p>
<p>figure.createFigure(1,2);<br />
figure.createFigure(1,2,3);<br />
figure.createFigure(1,2,3,4);<br />
figure.createFigure(1,2,3,3,5);<br />
&lt;/script&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://kamalmeet.com/?feed=rss2&amp;p=39</wfw:commentRss>
		</item>
	</channel>
</rss>
