<?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: Let the games begin!</title>
	<atom:link href="http://www.dafishinsea.com/blog/2009/01/19/let-the-games-begin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dafishinsea.com/blog/2009/01/19/let-the-games-begin/</link>
	<description>Arrr ! Ya call that programming? Walk the plank now, yarrr..!</description>
	<lastBuildDate>Fri, 18 Jun 2010 16:10:36 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: admin</title>
		<link>http://www.dafishinsea.com/blog/2009/01/19/let-the-games-begin/comment-page-1/#comment-153</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 18 Jun 2010 16:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.dafishinsea.com/blog/2009/01/19/let-the-games-begin/#comment-153</guid>
		<description>of course my &lt; and &gt; got replaced with &lt; and &gt; LOL</description>
		<content:encoded><![CDATA[<p>of course my &amp;lt; and &amp;gt; got replaced with < and > LOL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.dafishinsea.com/blog/2009/01/19/let-the-games-begin/comment-page-1/#comment-152</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 18 Jun 2010 16:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.dafishinsea.com/blog/2009/01/19/let-the-games-begin/#comment-152</guid>
		<description>Sorry its taken me so long to respond to these issues. On looking back at this post I noticed that the XML shown had been escaped into &lt; and &gt;s at some point, so obviously it would not work as shown. I&#039;ve corrected that now. It is important to note that you need to replace the default flashpolicy.xml that comes with the download with the code shown in the post for it to work.

On following my own instructions I found a couple of gotchas... the command line to start the policy daemon needs to run as super-user (ie , sudo...)  or it will not work ( I get an error saying that &#039;permission denied&#039; though it also says that it is listening.  

Once I had the policy server daemon running, I tried running the app in this page, but it still came back with a server error, even though the command line said that it had handled a valid request. I realized that I had not started the WiiFlash Server, so I did that, and pressed the 1 &amp; 2 buttons on my wiimote so that it appears in the list of Wiimotes connected in the WiiFlashServerJ panel. NOW it finally worked when I reloaded the page and I was able to control the fish. Here is how the command line conversation went:

~/flash/flashpolicyd/Standalone 
&gt;: ./flashpolicyd.py --file=../flashpolicy.xml --port=843
Listening on port 843

(13, &#039;Permission denied&#039;)

~/flash/flashpolicyd/Standalone 
&gt;: sudo ./flashpolicyd.py --file=../flashpolicy.xml --port=843
Password:
Listening on port 843

Connection from 127.0.0.1:64006
Valid request received from 127.0.0.1:64006
Sent policy file to 127.0.0.1:64006
Connection from 127.0.0.1:64021
Valid request received from 127.0.0.1:64021
Sent policy file to 127.0.0.1:64021
Connection from 127.0.0.1:64058
Valid request received from 127.0.0.1:64058
Sent policy file to 127.0.0.1:64058

...</description>
		<content:encoded><![CDATA[<p>Sorry its taken me so long to respond to these issues. On looking back at this post I noticed that the XML shown had been escaped into &lt; and &gt;s at some point, so obviously it would not work as shown. I&#8217;ve corrected that now. It is important to note that you need to replace the default flashpolicy.xml that comes with the download with the code shown in the post for it to work.</p>
<p>On following my own instructions I found a couple of gotchas&#8230; the command line to start the policy daemon needs to run as super-user (ie , sudo&#8230;)  or it will not work ( I get an error saying that &#8216;permission denied&#8217; though it also says that it is listening.  </p>
<p>Once I had the policy server daemon running, I tried running the app in this page, but it still came back with a server error, even though the command line said that it had handled a valid request. I realized that I had not started the WiiFlash Server, so I did that, and pressed the 1 &#038; 2 buttons on my wiimote so that it appears in the list of Wiimotes connected in the WiiFlashServerJ panel. NOW it finally worked when I reloaded the page and I was able to control the fish. Here is how the command line conversation went:</p>
<p>~/flash/flashpolicyd/Standalone<br />
>: ./flashpolicyd.py &#8211;file=../flashpolicy.xml &#8211;port=843<br />
Listening on port 843</p>
<p>(13, &#8216;Permission denied&#8217;)</p>
<p>~/flash/flashpolicyd/Standalone<br />
>: sudo ./flashpolicyd.py &#8211;file=../flashpolicy.xml &#8211;port=843<br />
Password:<br />
Listening on port 843</p>
<p>Connection from 127.0.0.1:64006<br />
Valid request received from 127.0.0.1:64006<br />
Sent policy file to 127.0.0.1:64006<br />
Connection from 127.0.0.1:64021<br />
Valid request received from 127.0.0.1:64021<br />
Sent policy file to 127.0.0.1:64021<br />
Connection from 127.0.0.1:64058<br />
Valid request received from 127.0.0.1:64058<br />
Sent policy file to 127.0.0.1:64058</p>
<p>&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alejandro</title>
		<link>http://www.dafishinsea.com/blog/2009/01/19/let-the-games-begin/comment-page-1/#comment-151</link>
		<dc:creator>Alejandro</dc:creator>
		<pubDate>Fri, 18 Jun 2010 15:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dafishinsea.com/blog/2009/01/19/let-the-games-begin/#comment-151</guid>
		<description>Hi.
Same as Luiza. i got meesage &quot;Listening on port 843&quot; and my xml policy file says &quot;&quot;.

Some particular location for phyton files or xml?? Something to do in Flex (Security.loadPolicyFile(&quot;url_of_xml_policyfile&quot;) doesnt work)??</description>
		<content:encoded><![CDATA[<p>Hi.<br />
Same as Luiza. i got meesage &#8220;Listening on port 843&#8243; and my xml policy file says &#8220;&#8221;.</p>
<p>Some particular location for phyton files or xml?? Something to do in Flex (Security.loadPolicyFile(&#8221;url_of_xml_policyfile&#8221;) doesnt work)??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luiza</title>
		<link>http://www.dafishinsea.com/blog/2009/01/19/let-the-games-begin/comment-page-1/#comment-148</link>
		<dc:creator>Luiza</dc:creator>
		<pubDate>Fri, 21 May 2010 21:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.dafishinsea.com/blog/2009/01/19/let-the-games-begin/#comment-148</guid>
		<description>Hi :)
I executed the command (got message listening on port 843) and changed the xml but it&#039;s still reporting error with security violation. Driving me nuts today... =/</description>
		<content:encoded><![CDATA[<p>Hi <img src='http://www.dafishinsea.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I executed the command (got message listening on port 843) and changed the xml but it&#8217;s still reporting error with security violation. Driving me nuts today&#8230; =/</p>
]]></content:encoded>
	</item>
</channel>
</rss>
