<?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 on: On the heels of Google IO &#8211; playing with HTML5 and F# web services</title>
	<atom:link href="http://www.russiantequila.com/wordpress/index.php?feed=rss2&#038;p=70" rel="self" type="application/rss+xml" />
	<link>http://www.russiantequila.com/wordpress/?p=70</link>
	<description>tech babble. random musings. no homers.</description>
	<lastBuildDate>Fri, 30 Jul 2010 19:55:59 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: pete</title>
		<link>http://www.russiantequila.com/wordpress/?p=70&#038;cpage=1#comment-4310</link>
		<dc:creator>pete</dc:creator>
		<pubDate>Fri, 30 Jul 2010 19:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.russiantequila.com/wordpress/?p=70#comment-4310</guid>
		<description>both are wrong...I havent tried this, but looking at the Fibonacci values, I need to start furthur up the sequence as the lower values are not exactly the same (3/5 = .6,  8/5 = .615, 89/144=.618). 
Thanks.</description>
		<content:encoded><![CDATA[<p>both are wrong&#8230;I havent tried this, but looking at the Fibonacci values, I need to start furthur up the sequence as the lower values are not exactly the same (3/5 = .6,  8/5 = .615, 89/144=.618).<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex p</title>
		<link>http://www.russiantequila.com/wordpress/?p=70&#038;cpage=1#comment-4302</link>
		<dc:creator>alex p</dc:creator>
		<pubDate>Thu, 29 Jul 2010 21:52:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.russiantequila.com/wordpress/?p=70#comment-4302</guid>
		<description>so what&#039;s wrong then - the tile sizes, or their locations? you might get rounding errors in arcX/arcY - i think those will be integers based on how your code is written.</description>
		<content:encoded><![CDATA[<p>so what&#8217;s wrong then &#8211; the tile sizes, or their locations? you might get rounding errors in arcX/arcY &#8211; i think those will be integers based on how your code is written.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pete</title>
		<link>http://www.russiantequila.com/wordpress/?p=70&#038;cpage=1#comment-4296</link>
		<dc:creator>pete</dc:creator>
		<pubDate>Wed, 28 Jul 2010 15:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.russiantequila.com/wordpress/?p=70#comment-4296</guid>
		<description>Thanks for the reply.
I&#039;m not actually plotting the values on screen yet. I&#039;m only drawing the tiles out by hand so see if my conversion is correct. The values will be plotted on a WPF canvas and I&#039;m still searching for the correct method to do that. (Arcsegement seems to be a possiblity but it doesnt use degrees or radians.) The JS to C# conversion was not an issue except I wasnt exactly sure I got the drawFactor right or possibly some other rounding issue.</description>
		<content:encoded><![CDATA[<p>Thanks for the reply.<br />
I&#8217;m not actually plotting the values on screen yet. I&#8217;m only drawing the tiles out by hand so see if my conversion is correct. The values will be plotted on a WPF canvas and I&#8217;m still searching for the correct method to do that. (Arcsegement seems to be a possiblity but it doesnt use degrees or radians.) The JS to C# conversion was not an issue except I wasnt exactly sure I got the drawFactor right or possibly some other rounding issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex p</title>
		<link>http://www.russiantequila.com/wordpress/?p=70&#038;cpage=1#comment-4293</link>
		<dc:creator>alex p</dc:creator>
		<pubDate>Wed, 28 Jul 2010 06:36:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.russiantequila.com/wordpress/?p=70#comment-4293</guid>
		<description>what do you mean your numbers are wrong? the tilings? assuming you just copied the source (no reason not to - basic js should be the same as c#), then the only thing i can think of is maybe it&#039;s expecting degrees instead of radians?</description>
		<content:encoded><![CDATA[<p>what do you mean your numbers are wrong? the tilings? assuming you just copied the source (no reason not to &#8211; basic js should be the same as c#), then the only thing i can think of is maybe it&#8217;s expecting degrees instead of radians?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pkz</title>
		<link>http://www.russiantequila.com/wordpress/?p=70&#038;cpage=1#comment-4292</link>
		<dc:creator>pkz</dc:creator>
		<pubDate>Wed, 28 Jul 2010 06:19:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.russiantequila.com/wordpress/?p=70#comment-4292</guid>
		<description>Trying to convert this to C#, but my numbers arent quite right:
            //
            var x = canvas.ActualWidth / 2;
            var y = canvas.ActualHeight / 2;
            var arcX = x;
            var arcY = y;

            // just hard code them
            int[] FibonacciValues = {0,1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233};

            var drawFactor = Math.Min(canvas.ActualWidth, canvas.ActualHeight) / (2 * (FibonacciValues[FibonacciValues.Length -1])) + 1;

            for (var i = 1; i &lt; FibonacciValues.Length; i++)
            {

                var last = FibonacciValues[i - 1];
                var current = FibonacciValues[i];

                var num = current * drawFactor;
                var lastNum = last * drawFactor;
                var idx = i - 2;

                var startAngle = 0.0;
                var endAngle = 0.0;
                switch (idx % 4)
                {
                    case 0:
                        x += lastNum;
                        y += lastNum - num;
                        arcX = x;
                        arcY = y;
                        startAngle = Math.PI / 2;
                        endAngle = Math.PI * 2;
                        break;
                    case 1:
                        x -= num - lastNum;
                        y -= num;
                        arcX = x;
                        arcY = y + num;
                        startAngle = Math.PI * 2;
                        endAngle = Math.PI * 3 / 2;
                        break;
                    case 2:
                        x -= num;
                        arcX = x + num;
                        arcY = y + num;
                        startAngle = Math.PI * 3 / 2;
                        endAngle = Math.PI;
                        break;
                    case 3:
                        y += lastNum;
                        arcX = x + num;
                        arcY = y;
                        startAngle = Math.PI;
                        endAngle = Math.PI / 2;
                        break;
                }

                if (idx &lt; 0)
                    continue;

            }

any idea of where I went wrong?</description>
		<content:encoded><![CDATA[<p>Trying to convert this to C#, but my numbers arent quite right:<br />
            //<br />
            var x = canvas.ActualWidth / 2;<br />
            var y = canvas.ActualHeight / 2;<br />
            var arcX = x;<br />
            var arcY = y;</p>
<p>            // just hard code them<br />
            int[] FibonacciValues = {0,1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233};</p>
<p>            var drawFactor = Math.Min(canvas.ActualWidth, canvas.ActualHeight) / (2 * (FibonacciValues[FibonacciValues.Length -1])) + 1;</p>
<p>            for (var i = 1; i &lt; FibonacciValues.Length; i++)<br />
            {</p>
<p>                var last = FibonacciValues[i - 1];<br />
                var current = FibonacciValues[i];</p>
<p>                var num = current * drawFactor;<br />
                var lastNum = last * drawFactor;<br />
                var idx = i &#8211; 2;</p>
<p>                var startAngle = 0.0;<br />
                var endAngle = 0.0;<br />
                switch (idx % 4)<br />
                {<br />
                    case 0:<br />
                        x += lastNum;<br />
                        y += lastNum &#8211; num;<br />
                        arcX = x;<br />
                        arcY = y;<br />
                        startAngle = Math.PI / 2;<br />
                        endAngle = Math.PI * 2;<br />
                        break;<br />
                    case 1:<br />
                        x -= num &#8211; lastNum;<br />
                        y -= num;<br />
                        arcX = x;<br />
                        arcY = y + num;<br />
                        startAngle = Math.PI * 2;<br />
                        endAngle = Math.PI * 3 / 2;<br />
                        break;<br />
                    case 2:<br />
                        x -= num;<br />
                        arcX = x + num;<br />
                        arcY = y + num;<br />
                        startAngle = Math.PI * 3 / 2;<br />
                        endAngle = Math.PI;<br />
                        break;<br />
                    case 3:<br />
                        y += lastNum;<br />
                        arcX = x + num;<br />
                        arcY = y;<br />
                        startAngle = Math.PI;<br />
                        endAngle = Math.PI / 2;<br />
                        break;<br />
                }</p>
<p>                if (idx &lt; 0)<br />
                    continue;</p>
<p>            }</p>
<p>any idea of where I went wrong?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
