﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Pete on Software</title>
	<atom:link href="http://www.peteonsoftware.com/index.php/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peteonsoftware.com</link>
	<description></description>
	<lastBuildDate>Fri, 03 Sep 2010 10:18:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Comment on Ruby Koans by Pascal Van Hecke</title>
		<link>http://www.peteonsoftware.com/index.php/2009/08/16/ruby-koans/comment-page-1/#comment-3236</link>
		<dc:creator>Pascal Van Hecke</dc:creator>
		<pubDate>Fri, 03 Sep 2010 10:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.peteonsoftware.com/?p=105#comment-3236</guid>
		<description>Shorter code is definitely not better, but combining my own TriangleError and Brian Genisio&#039;s Array you can write it in 2 lines:

def triangle(a, b, c)
  raise TriangleError, &quot;Triangle error&quot;  if (a &lt;= 0 &#124;&#124; b &lt;= 0 &#124;&#124; c = (a+b+c))
  [:equilateral, :isosceles, :scalene][[a,b,c].uniq.size - 1]
end

Who performs better ;-)</description>
		<content:encoded><![CDATA[<p>Shorter code is definitely not better, but combining my own TriangleError and Brian Genisio&#8217;s Array you can write it in 2 lines:</p>
<p>def triangle(a, b, c)<br />
  raise TriangleError, &#8220;Triangle error&#8221;  if (a &lt;= 0 || b &lt;= 0 || c = (a+b+c))<br />
  [:equilateral, :isosceles, :scalene][[a,b,c].uniq.size &#8211; 1]<br />
end</p>
<p>Who performs better <img src='http://www.peteonsoftware.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby Koans by Alexxey</title>
		<link>http://www.peteonsoftware.com/index.php/2009/08/16/ruby-koans/comment-page-1/#comment-3213</link>
		<dc:creator>Alexxey</dc:creator>
		<pubDate>Thu, 26 Aug 2010 20:21:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.peteonsoftware.com/?p=105#comment-3213</guid>
		<description>def triangle(a, b, c)
	a,b,c=[a, b, c].sort
	raise TriangleError if a=a+b
	
	case [a, b, c].uniq.length
		when 1	
			:equilateral
		when 2
			:isosceles
		else
			:scalene
	end
end</description>
		<content:encoded><![CDATA[<p>def triangle(a, b, c)<br />
	a,b,c=[a, b, c].sort<br />
	raise TriangleError if a=a+b</p>
<p>	case [a, b, c].uniq.length<br />
		when 1<br />
			:equilateral<br />
		when 2<br />
			:isosceles<br />
		else<br />
			:scalene<br />
	end<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Windows Phone 7 &#8211; Microphone and Isolated Storage by Pete</title>
		<link>http://www.peteonsoftware.com/index.php/2010/06/23/windows-phone-7-microphone-and-isolated-storage/comment-page-1/#comment-3180</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Wed, 18 Aug 2010 23:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.peteonsoftware.com/?p=191#comment-3180</guid>
		<description>Great article, Ibrahim, and thanks for the shout-out.</description>
		<content:encoded><![CDATA[<p>Great article, Ibrahim, and thanks for the shout-out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Windows Phone 7 &#8211; Microphone and Isolated Storage by Ibrahim Ersoy</title>
		<link>http://www.peteonsoftware.com/index.php/2010/06/23/windows-phone-7-microphone-and-isolated-storage/comment-page-1/#comment-3160</link>
		<dc:creator>Ibrahim Ersoy</dc:creator>
		<pubDate>Sat, 14 Aug 2010 00:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.peteonsoftware.com/?p=191#comment-3160</guid>
		<description>Hi Pete,
You can read it from here:
http://www.c-sharpcorner.com/UploadFile/iersoy/2550/Default.aspx?ArticleID=c7010c16-2a9f-4761-b5c6-31e3cdf75a31

The same way you build application in WP7 using Silverlight is being ported to XNA with no pain as you will see in the article.

Thank you! 
Have a nice day!

Cheers,
Ibrahim</description>
		<content:encoded><![CDATA[<p>Hi Pete,<br />
You can read it from here:<br />
<a href="http://www.c-sharpcorner.com/UploadFile/iersoy/2550/Default.aspx?ArticleID=c7010c16-2a9f-4761-b5c6-31e3cdf75a31" rel="nofollow">http://www.c-sharpcorner.com/UploadFile/iersoy/2550/Default.aspx?ArticleID=c7010c16-2a9f-4761-b5c6-31e3cdf75a31</a></p>
<p>The same way you build application in WP7 using Silverlight is being ported to XNA with no pain as you will see in the article.</p>
<p>Thank you!<br />
Have a nice day!</p>
<p>Cheers,<br />
Ibrahim</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Contented Cows by Jon Kruger</title>
		<link>http://www.peteonsoftware.com/index.php/2010/08/12/contented-cows/comment-page-1/#comment-3152</link>
		<dc:creator>Jon Kruger</dc:creator>
		<pubDate>Fri, 13 Aug 2010 02:49:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.peteonsoftware.com/?p=215#comment-3152</guid>
		<description>Dude, you are reading my mind.</description>
		<content:encoded><![CDATA[<p>Dude, you are reading my mind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why Be Passionate? by Phil Shearer</title>
		<link>http://www.peteonsoftware.com/index.php/2010/08/10/why-be-passionate/comment-page-1/#comment-3142</link>
		<dc:creator>Phil Shearer</dc:creator>
		<pubDate>Wed, 11 Aug 2010 03:45:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.peteonsoftware.com/?p=202#comment-3142</guid>
		<description>The quote by Malcolm Gladwell could not be more accurate.  I meandered through a few different fields as I progressed through my career.  The only time I was truly happy was when I was working some sort of retail.  This in itself is a bit of a curse.  Retail (field level) is a notoriously low paying job.  Therein lies my dilemma.  Should I be happy with what I am doing and barely pay the bills or look for a more lucrative area that will afford a better lifestyle.  
    There never was a choice for me.  When I was very young (5 or 6) I lived on the second floor of a farmhouse.  On this farm there was a spring house that had a sort of counter and shelves.  I made my mother open all of our food at the bottom.  That would allow me to display the food on the shelves and have it look like a real store.  
    I never really gave this much thought later in life until, well into my career, my mother reminded me of that childhood obsession and said that I seemed to be born to the retail life.
    There is something inherently satisfying in preparing a store for the day&#039;s business.  The biggest driving factor, however, is satisfying as many people as possible each day.  How creative can I be in solving a perceived wrong?
    At a company meeting (approx 180 stores) I was asked to address the assembly on customer service.  This came as a surprise to me as I had no advance notice that I would be speaking.  I spoke for about 20 minutes before I realized that I had been at the podium for that long.  I apologized to the other store managers and corporate people for rambling on so long but was assured by the company president that my passion for satisfying people was very evident and hopefully would be contagious.  The reason they wanted me to speak extemporaneously was that they felt that my passion for service would not be diluted by a prepared, written and rewritten speech watered down by careful choice of word and phrase.
    I have enjoyed every retail job I have held (with the exception of the last one for a company that shall remain nameless) and actually looked forward to going to work every day.
    If you don&#039;t love your job, or at least like it a lot, you will not achieve great success.  Somewhere out there is a field for every working person.  It may take a bit of work to find it, but you must make the effort.  Very few worthwhile things just fall into your life.  Let me close this with another quote.  
    At the Football Hall of Fame induction this year Russ Grimm made this statement:  &quot;There is no better feeling than moving a man from point A to point B against his will.&quot;  Passion?  You bet!  Can you find yours?</description>
		<content:encoded><![CDATA[<p>The quote by Malcolm Gladwell could not be more accurate.  I meandered through a few different fields as I progressed through my career.  The only time I was truly happy was when I was working some sort of retail.  This in itself is a bit of a curse.  Retail (field level) is a notoriously low paying job.  Therein lies my dilemma.  Should I be happy with what I am doing and barely pay the bills or look for a more lucrative area that will afford a better lifestyle.<br />
    There never was a choice for me.  When I was very young (5 or 6) I lived on the second floor of a farmhouse.  On this farm there was a spring house that had a sort of counter and shelves.  I made my mother open all of our food at the bottom.  That would allow me to display the food on the shelves and have it look like a real store.<br />
    I never really gave this much thought later in life until, well into my career, my mother reminded me of that childhood obsession and said that I seemed to be born to the retail life.<br />
    There is something inherently satisfying in preparing a store for the day&#8217;s business.  The biggest driving factor, however, is satisfying as many people as possible each day.  How creative can I be in solving a perceived wrong?<br />
    At a company meeting (approx 180 stores) I was asked to address the assembly on customer service.  This came as a surprise to me as I had no advance notice that I would be speaking.  I spoke for about 20 minutes before I realized that I had been at the podium for that long.  I apologized to the other store managers and corporate people for rambling on so long but was assured by the company president that my passion for satisfying people was very evident and hopefully would be contagious.  The reason they wanted me to speak extemporaneously was that they felt that my passion for service would not be diluted by a prepared, written and rewritten speech watered down by careful choice of word and phrase.<br />
    I have enjoyed every retail job I have held (with the exception of the last one for a company that shall remain nameless) and actually looked forward to going to work every day.<br />
    If you don&#8217;t love your job, or at least like it a lot, you will not achieve great success.  Somewhere out there is a field for every working person.  It may take a bit of work to find it, but you must make the effort.  Very few worthwhile things just fall into your life.  Let me close this with another quote.<br />
    At the Football Hall of Fame induction this year Russ Grimm made this statement:  &#8220;There is no better feeling than moving a man from point A to point B against his will.&#8221;  Passion?  You bet!  Can you find yours?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Windows Phone 7 &#8211; Microphone and Isolated Storage by Pete</title>
		<link>http://www.peteonsoftware.com/index.php/2010/06/23/windows-phone-7-microphone-and-isolated-storage/comment-page-1/#comment-3122</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Thu, 05 Aug 2010 12:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.peteonsoftware.com/?p=191#comment-3122</guid>
		<description>Ibrahim,

Of course!  I think that&#039;s awesome and I look forward to reading the article.</description>
		<content:encoded><![CDATA[<p>Ibrahim,</p>
<p>Of course!  I think that&#8217;s awesome and I look forward to reading the article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Windows Phone 7 &#8211; Microphone and Isolated Storage by Ibrahim Ersoy</title>
		<link>http://www.peteonsoftware.com/index.php/2010/06/23/windows-phone-7-microphone-and-isolated-storage/comment-page-1/#comment-3118</link>
		<dc:creator>Ibrahim Ersoy</dc:creator>
		<pubDate>Wed, 04 Aug 2010 20:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.peteonsoftware.com/?p=191#comment-3118</guid>
		<description>Hi Pete,

I have made the XNA version of Microphone sample using your codes.

I have written an article about it.

Do i have permission to publish it by telling about you in the article?

Thank you</description>
		<content:encoded><![CDATA[<p>Hi Pete,</p>
<p>I have made the XNA version of Microphone sample using your codes.</p>
<p>I have written an article about it.</p>
<p>Do i have permission to publish it by telling about you in the article?</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby Koans by Kay</title>
		<link>http://www.peteonsoftware.com/index.php/2009/08/16/ruby-koans/comment-page-1/#comment-3087</link>
		<dc:creator>Kay</dc:creator>
		<pubDate>Mon, 26 Jul 2010 13:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.peteonsoftware.com/?p=105#comment-3087</guid>
		<description>I just did the triangle scenario and my code is as follows:

def triangle(a,b,c)
  if (a&lt;=0 or b&lt;=0 or c&lt;=0)
    begin
    raise TriangleError
    end
  elsif (a==b and a==c)
    return :equilateral
  elsif
  (a==b or a==c or b==c)
    return :isosceles
  else
    :scalene
  end
end</description>
		<content:encoded><![CDATA[<p>I just did the triangle scenario and my code is as follows:</p>
<p>def triangle(a,b,c)<br />
  if (a&lt;=0 or b&lt;=0 or c&lt;=0)<br />
    begin<br />
    raise TriangleError<br />
    end<br />
  elsif (a==b and a==c)<br />
    return :equilateral<br />
  elsif<br />
  (a==b or a==c or b==c)<br />
    return :isosceles<br />
  else<br />
    :scalene<br />
  end<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Greed Ruby Koan by Mike Murray</title>
		<link>http://www.peteonsoftware.com/index.php/2009/08/17/the-greed-ruby-koan/comment-page-1/#comment-3079</link>
		<dc:creator>Mike Murray</dc:creator>
		<pubDate>Tue, 20 Jul 2010 00:56:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.peteonsoftware.com/?p=115#comment-3079</guid>
		<description>Whoa, delete the last comment, horrible formatting...

Instead of doing a hash with counts, I sorted the dice array and then took length-of-3 subarrays to see if I could find a three-some. On each subarray, I used the array.uniq trick that was suggested in the comments of your last post about the Triangles koan.

Here’s my code:  &lt;a href=&quot;http://pastie.org/1051380&quot; rel=&quot;nofollow&quot;&gt;http://pastie.org/1051380&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Whoa, delete the last comment, horrible formatting&#8230;</p>
<p>Instead of doing a hash with counts, I sorted the dice array and then took length-of-3 subarrays to see if I could find a three-some. On each subarray, I used the array.uniq trick that was suggested in the comments of your last post about the Triangles koan.</p>
<p>Here’s my code:  <a href="http://pastie.org/1051380" rel="nofollow">http://pastie.org/1051380</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
