<?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 simonsarris.com</title>
	<atom:link href="http://simonsarris.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://simonsarris.com</link>
	<description></description>
	<lastBuildDate>Fri, 18 May 2012 01:46:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on A Gentle Introduction to Making HTML5 Canvas Interactive by ammulder</title>
		<link>http://simonsarris.com/blog/510-making-html5-canvas-useful/comment-page-1#comment-345</link>
		<dc:creator>ammulder</dc:creator>
		<pubDate>Fri, 18 May 2012 01:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://simonsarris.com/?p=510#comment-345</guid>
		<description>Really nice -- the bit on finding accurate mouse coordinates was especially helpful </description>
		<content:encoded><![CDATA[<p>Really nice &#8212; the bit on finding accurate mouse coordinates was especially helpful </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to play Age of Empires II on Windows Vista and Windows 7 by Darrelaubrey</title>
		<link>http://simonsarris.com/blog/6-how-to-play-age-of-empires-ii-on-windows-vista-and-windows-7/comment-page-1#comment-344</link>
		<dc:creator>Darrelaubrey</dc:creator>
		<pubDate>Tue, 15 May 2012 05:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://simonsarris.com/?p=6#comment-344</guid>
		<description> whats your email? i would like to talk to you more about this issue.</description>
		<content:encoded><![CDATA[<p> whats your email? i would like to talk to you more about this issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Understanding the HTML5 Canvas image security rules by simonsarris</title>
		<link>http://simonsarris.com/blog/480-understanding-the-html5-canvas-image-security-rules/comment-page-1#comment-340</link>
		<dc:creator>simonsarris</dc:creator>
		<pubDate>Thu, 03 May 2012 23:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://simonsarris.com/?p=480#comment-340</guid>
		<description>Sometimes sites are hosted on domains like, for example:

http://home.comcast.net/~heidi.quinn/all_stevensline.htm (just some random page I found)But what if that site tried to grab something from internal.comcast.net, effectively taking a file from a comcast employee (presumably they&#039;d be able to access internal.comcast.net from their computer at work but its unavailable otherwise)</description>
		<content:encoded><![CDATA[<p>Sometimes sites are hosted on domains like, for example:</p>
<p><a href="http://home.comcast.net/~heidi.quinn/all_stevensline.htm (just" rel="nofollow">http://home.comcast.net/~heidi.quinn/all_stevensline.htm (just</a> some random page I found)But what if that site tried to grab something from internal.comcast.net, effectively taking a file from a comcast employee (presumably they&#8217;d be able to access internal.comcast.net from their computer at work but its unavailable otherwise)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Understanding the HTML5 Canvas image security rules by Lance</title>
		<link>http://simonsarris.com/blog/480-understanding-the-html5-canvas-image-security-rules/comment-page-1#comment-339</link>
		<dc:creator>Lance</dc:creator>
		<pubDate>Thu, 03 May 2012 21:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://simonsarris.com/?p=480#comment-339</guid>
		<description>I want to access something in the same domain... but with a different machine... ie m1.myserver.com and m2.myserver.com, seems reasonably secure? </description>
		<content:encoded><![CDATA[<p>I want to access something in the same domain&#8230; but with a different machine&#8230; ie m1.myserver.com and m2.myserver.com, seems reasonably secure? </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Gentle Introduction to Making HTML5 Canvas Interactive by Brandon</title>
		<link>http://simonsarris.com/blog/510-making-html5-canvas-useful/comment-page-1#comment-338</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Sun, 22 Apr 2012 16:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://simonsarris.com/?p=510#comment-338</guid>
		<description>I love it!!! Thank you so much. I added an on double click shape remove ability... 


[***Inside CanvasState***]
  canvas.addEventListener(&#039;dblclick&#039;, function(e) {
    var mouse = myState.getMouse(e);
    // check if we dblclick on existing shape
    for (var i = myState.shapes.length-1; i &gt;= 0; i--) {
      if (myState.shapes[i].contains(mouse.x, mouse.y)) {
        myState.removeShape(i);//found one, remove it
        myState.selection = null;//clear the selection
        return;
      }
    }
    // dblclick on empty space creates new shape
    myState.addShape(new Shape(mouse.x - 10, mouse.y - 10, 20, 20, &#039;rgba(0,255,0,.6)&#039;));
  }, true);


[***Below addShape***]
CanvasState.prototype.removeShape = function(i) {
  this.shapes.splice(i, 1);
  this.valid = false;
}


*Only problem is it will only remove the uppermost object that was dbl clicked on.. but clicking and dragging only drags the top most shape so I&#039;m not worried.</description>
		<content:encoded><![CDATA[<p>I love it!!! Thank you so much. I added an on double click shape remove ability&#8230; </p>
<p>[***Inside CanvasState***]<br />
  canvas.addEventListener(&#8216;dblclick&#8217;, function(e) {<br />
    var mouse = myState.getMouse(e);<br />
    // check if we dblclick on existing shape<br />
    for (var i = myState.shapes.length-1; i &gt;= 0; i&#8211;) {<br />
      if (myState.shapes[i].contains(mouse.x, mouse.y)) {<br />
        myState.removeShape(i);//found one, remove it<br />
        myState.selection = null;//clear the selection<br />
        return;<br />
      }<br />
    }<br />
    // dblclick on empty space creates new shape<br />
    myState.addShape(new Shape(mouse.x &#8211; 10, mouse.y &#8211; 10, 20, 20, &#8216;rgba(0,255,0,.6)&#8217;));<br />
  }, true);</p>
<p>[***Below addShape***]<br />
CanvasState.prototype.removeShape = function(i) {<br />
  this.shapes.splice(i, 1);<br />
  this.valid = false;<br />
}</p>
<p>*Only problem is it will only remove the uppermost object that was dbl clicked on.. but clicking and dragging only drags the top most shape so I&#8217;m not worried.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HTML5 Canvas drawText considered harmful by Swarm Intelligence in HTML5 Canvas &#124; cmikavac.net</title>
		<link>http://simonsarris.com/blog/322-canvas-drawtext-considered-harmful/comment-page-1#comment-337</link>
		<dc:creator>Swarm Intelligence in HTML5 Canvas &#124; cmikavac.net</dc:creator>
		<pubDate>Fri, 20 Apr 2012 12:00:42 +0000</pubDate>
		<guid isPermaLink="false">http://simonsarris.com/?p=322#comment-337</guid>
		<description>[...] indicator in the top left corner of the canvas introduced some performance problems. Apparently, drawing text inside canvas is very, very poorly implemented in all browsers except Chromium. The problem I had [...]</description>
		<content:encoded><![CDATA[<p>[...] indicator in the top left corner of the canvas introduced some performance problems. Apparently, drawing text inside canvas is very, very poorly implemented in all browsers except Chromium. The problem I had [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Gentle Introduction to Making HTML5 Canvas Interactive by Guest</title>
		<link>http://simonsarris.com/blog/510-making-html5-canvas-useful/comment-page-1#comment-336</link>
		<dc:creator>Guest</dc:creator>
		<pubDate>Wed, 11 Apr 2012 05:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://simonsarris.com/?p=510#comment-336</guid>
		<description>you are a genius man!!</description>
		<content:encoded><![CDATA[<p>you are a genius man!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Making and Moving Selectable Shapes on an HTML5 Canvas: A Simple Example by David Miller</title>
		<link>http://simonsarris.com/blog/140-canvas-moving-selectable-shapes/comment-page-1#comment-335</link>
		<dc:creator>David Miller</dc:creator>
		<pubDate>Fri, 06 Apr 2012 14:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://simonsarris.com/?p=140#comment-335</guid>
		<description>Never develop a desktop application, once it reaches 300 lines of code to do something similar, you just might have a heart attack.</description>
		<content:encoded><![CDATA[<p>Never develop a desktop application, once it reaches 300 lines of code to do something similar, you just might have a heart attack.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Increasing Performance by Caching Paths on HTML5 Canvas by Saturnix</title>
		<link>http://simonsarris.com/blog/427-increasing-performance-by-caching-paths-on-canvas/comment-page-1#comment-334</link>
		<dc:creator>Saturnix</dc:creator>
		<pubDate>Thu, 05 Apr 2012 02:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://simonsarris.com/?p=427#comment-334</guid>
		<description>Thanks! This was so useful! I&#039;ll have to change an entire script, but I hope it will perform better. Will be following this blog :)</description>
		<content:encoded><![CDATA[<p>Thanks! This was so useful! I&#8217;ll have to change an entire script, but I hope it will perform better. Will be following this blog :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Customizing the HP Envy Quick Launch keys by Dianomana Huang</title>
		<link>http://simonsarris.com/blog/24-envy-keyboard/comment-page-1#comment-333</link>
		<dc:creator>Dianomana Huang</dc:creator>
		<pubDate>Wed, 04 Apr 2012 16:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://simonsarris.com/?p=24#comment-333</guid>
		<description>Ugh ok so apparently I did something some long time ago and made the email key to change into opening up a new browser/window.

I don&#039;t remember how I did that... and I kinda want to change it back to mail. Can someone help me? I don&#039;t want to mess up my pc :(

Someone please email me : wildcat11293@hotmail.com</description>
		<content:encoded><![CDATA[<p>Ugh ok so apparently I did something some long time ago and made the email key to change into opening up a new browser/window.</p>
<p>I don&#8217;t remember how I did that&#8230; and I kinda want to change it back to mail. Can someone help me? I don&#8217;t want to mess up my pc :(</p>
<p>Someone please email me : <a href="mailto:wildcat11293@hotmail.com">wildcat11293@hotmail.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

