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

<channel>
	<title>Person @ CREATIVEDESK &#187; Fame</title>
	<atom:link href="http://hardik.in/tag/fame/feed/" rel="self" type="application/rss+xml" />
	<link>http://hardik.in</link>
	<description>Hardik Dalwadi</description>
	<lastBuildDate>Fri, 06 Jan 2012 10:04:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Puzzle No:  255 July-21-2008(4) @ Novell</title>
		<link>http://hardik.in/2010/06/09/puzzle-no-255-july-21-20084-novell/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://hardik.in/2010/06/09/puzzle-no-255-july-21-20084-novell/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 15:08:18 +0000</pubDate>
		<dc:creator>Hardik Dalwadi</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Fame]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Novell]]></category>
		<category><![CDATA[Puzzle]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Test]]></category>

		<guid isPermaLink="false">http://hardik.in/?p=479</guid>
		<description><![CDATA[Yes, i know that, title looks weired and confusing. But while managing my backup i found this old puzzle with solution. Let me explain in detail. When i was in Novell, i used to wrote articles on SLES / SLED. Due to that interest, one day my friend redirected me to puzzle section of company [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Yes, i know that, title looks weired and confusing.  But while managing my backup i found this old puzzle with solution. Let me explain in detail. When i was in <a href="http://www.novell.com/home/" target="_blank">Novell</a>, i used to<a href="http://www.novell.com/communities/user/3673/track" target="_blank"> wrote articles on SLES / SLED.</a> Due to that interest, one day my friend redirected me to puzzle section of company wide circular, it was mostly for social activities. First top five, who solved that puzzle got their name in next circular. Imagine your name around 500+ people. So i thought let&#8217;s jump in this fame game <img src='http://hardik.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So, title contains Puzzle Number of that puzzle which i attended very first time.</p>
<blockquote><p><strong>Puzzle No:  255 July-21-2008(4)</strong></p>
<p><strong>What would be the value of X and Y to correct  X * Y * XY = YYY equation?</strong></p></blockquote>
<p>I was BASH freak, due to my Q/A Automation work @ Novell. So i thought, let&#8217;s not find one result, make it automated to find different  possibilities of X and Y.  I decided to wrote BASH script with TRY / ERROR methodology.   Which took my 30 Minutes due to cosmetic changes. I was feeling top of the world because of my Hard Work + Smart Work deadly combo <img src='http://hardik.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I submitted my solution (Answer + Script). But, in next circular i was not in top five <img src='http://hardik.in/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .</p>
<p>Then i did retrospective analysis of my failure, which helped me to manage  my name in top five for next few month. I also took part in Novell Test Fest 2008 by winning series of on-line quizzes. My team was  First Prize Winner in Novell Test Fest 2008. Then my friend, who had redirected me to that Puzzle Fame Game (For me at-least) came and told me that you are true winner, you have not used Google. I didn&#8217;t say anything, i just smiled  <img src='http://hardik.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong><a href="http://hardik.in/wp-content/uploads/2010/06/20100610014117_255.txt#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">Download script to solve Puzzle No:  255 July-21-2008(4)  @ Novell: </a></strong><a href="http://hardik.in/wp-content/uploads/2010/06/20100610014117_255.txt#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><strong>What would be the value of X and Y to correct  X * Y * XY = YYY  equation?</strong></a><strong> (Please don&#8217;t file any Bug <img src='http://hardik.in/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ):</strong></p>
<blockquote><p>person@CANONICAL-DESK:~/DATA/PUZZULES$ cat 255</p>
<p>#!/bin/bash</p>
<p>###############################################</p>
<p># Puzzle No:  255 July-21-2008(4)                                                         #</p>
<p># Author: &#8220;Hardik Dalwadi&#8221; &lt;dhardik@novell.com&gt;                       #</p>
<p># Version: 1.0                                                                                                #</p>
<p># ChangeLOG: 1. Not considering posibiity of X=0 and Y=0          #</p>
<p>#                           2. Support for Try &amp; Error Count if we satrt from   #</p>
<p>#                               X=1 and y=1                                                                  #</p>
<p>###############################################</p>
<p>### Sucess Codes ###</p>
<p>E_SUCCESS=0</p>
<p>E_ERROR=1</p>
<p>### Initializing X and Y ###</p>
<p>X=0</p>
<p>Y=0</p>
<p>### Initializing Try &amp; Error Count ###</p>
<p>Z=0</p>
<p>### Clearing Screen ###</p>
<p>clear</p>
<p>### Here we GO ###</p>
<p>### Starting from Y=1 ###</p>
<p>for Y in `seq 1 9`</p>
<p>do</p>
<p>### Starting from X=1 ###</p>
<p>for X in `seq 1 9`</p>
<p>do</p>
<p>YYY=&#8221;$Y$Y$Y&#8221;</p>
<p>XY=&#8221;$X$Y&#8221;</p>
<p>let  &#8216;RESULT=X * Y * XY&#8217;</p>
<p>let Z++</p>
<p>echo &#8220;Try &amp; Error Count :  $Z&#8221;</p>
<p>echo &#8220;Possibility of X  :  $X&#8221;</p>
<p>echo &#8220;Possibiligy of Y  :  $Y&#8221;</p>
<p>echo &#8220;So, YYY Would be  :  $YYY&#8221;</p>
<p>echo &#8220;So, XY  Would be  :  $XY&#8221;</p>
<p>echo &#8220;So, X * Y * XY    :  $RESULT&#8221;</p>
<p>echo &#8220;Comparing Eqation X * Y * XY = YYY&#8221;</p>
<p>### Comparing Equation ###</p>
<p>if [ $YYY -eq $RESULT ]</p>
<p>then</p>
<p>echo -en &#8216;\E[47;34m&#8217;&#8221;\033[1mRESULT = POSITIVE&#8221;</p>
<p>echo</p>
<p>echo -en &#8216;\E[47;34m&#8217;&#8221;\033[1mSo, Possibility of X = $X and Y = $Y to make the equation X * Y * XY = YYY Possible!&#8221;</p>
<p>echo</p>
<p>exit $E_SUCCESS</p>
<p>else</p>
<p>echo</p>
<p>echo -en &#8216;\E[47;31m&#8217;&#8221;\033[1mRESULT =  NEGTIVE&#8221;</p>
<p>echo</p>
<p>fi</p>
<p>sleep 1</p>
<p>clear</p>
<p>done</p>
<p>done</p>
<p>### Here we STOP ###</p>
<p>person@CANONICAL-DESK:~/DATA/PUZZULES$</p></blockquote>
<p><strong>Answer of the puzzle and positive output from script with statistics:</strong></p>
<blockquote><p>Try &amp; Error Count :  57</p>
<p>Possibility of X  :  3</p>
<p>Possibiligy of Y  :  7</p>
<p>So, YYY Would be  :  777</p>
<p>So, XY  Would be  :  37</p>
<p>So, X * Y * XY    :  777</p>
<p>Comparing Eqation X * Y * XY = YYY</p>
<p>RESULT = POSITIVE</p>
<p>So, Possibility of X = 3 and Y = 7 to make the equation X * Y * XY = YYY Possible!</p>
<p>person@CANONICAL-DESK:~/DATA/PUZZULES$</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://hardik.in/2010/06/09/puzzle-no-255-july-21-20084-novell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

