<?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 Controul</title>
	<atom:link href="http://blog.controul.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.controul.com</link>
	<description>Elaborations on flash.</description>
	<lastBuildDate>Sun, 01 Apr 2012 14:48:33 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>Comment on Random numbers: standard normal distribution in flash/as3 by hristo</title>
		<link>http://blog.controul.com/2009/04/standard-normal-distribution-in-as3/comment-page-1/#comment-299</link>
		<dc:creator>hristo</dc:creator>
		<pubDate>Sun, 01 Apr 2012 14:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=138#comment-299</guid>
		<description>Hey Chuck,

Standard normal numbers are not bound between 0 and 1. They are instead centered on 0 and have a standard deviation of 1.

Have a look at this:
http://en.wikipedia.org/wiki/Normal_distribution#Standardizing_normal_random_variables

Which means that a standard normal number can theoretically go as high and low as positive or negative infinity, although obviously this is infinitely unlikely (and of course impossible in this implementation).

If you want numbers in the (0,1) range, you&#039;re probably talking about the uniform distribution.

</description>
		<content:encoded><![CDATA[<p>Hey Chuck,</p>
<p>Standard normal numbers are not bound between 0 and 1. They are instead centered on 0 and have a standard deviation of 1.</p>
<p>Have a look at this:<br />
<a href="http://en.wikipedia.org/wiki/Normal_distribution#Standardizing_normal_random_variables" rel="nofollow">http://en.wikipedia.org/wiki/Normal_distribution#Standardizing_normal_random_variables</a></p>
<p>Which means that a standard normal number can theoretically go as high and low as positive or negative infinity, although obviously this is infinitely unlikely (and of course impossible in this implementation).</p>
<p>If you want numbers in the (0,1) range, you&#8217;re probably talking about the uniform distribution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How slow is static access in as3/avm2 (exactly) by SEREN SKYE BLOG &#187; Blog Archive &#187; Static Methods &#8211; a Marriage</title>
		<link>http://blog.controul.com/2009/04/how-slow-is-static-access-in-as3avm2-exactly/comment-page-1/#comment-295</link>
		<dc:creator>SEREN SKYE BLOG &#187; Blog Archive &#187; Static Methods &#8211; a Marriage</dc:creator>
		<pubDate>Fri, 23 Sep 2011 08:04:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=115#comment-295</guid>
		<description>[...] to litter the API with additional static methods. If all else fails, consider that generally static methods seem to be slower in Flash and so you probably want a good reason to use one over an instance method. Here&#8217;s [...]</description>
		<content:encoded><![CDATA[<p>[...] to litter the API with additional static methods. If all else fails, consider that generally static methods seem to be slower in Flash and so you probably want a good reason to use one over an instance method. Here&#8217;s [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Producing video with flash/air: png sequence rendering from swf playback by hristo</title>
		<link>http://blog.controul.com/2009/12/producing-video-with-flashair-png-sequence-rendering-from-swf-playback/comment-page-1/#comment-292</link>
		<dc:creator>hristo</dc:creator>
		<pubDate>Sat, 25 Jun 2011 11:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=352#comment-292</guid>
		<description>Thanks, I&#039;ll have a look - the benchmark results look pretty impressive!</description>
		<content:encoded><![CDATA[<p>Thanks, I&#8217;ll have a look &#8211; the benchmark results look pretty impressive!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Producing video with flash/air: png sequence rendering from swf playback by Karim</title>
		<link>http://blog.controul.com/2009/12/producing-video-with-flashair-png-sequence-rendering-from-swf-playback/comment-page-1/#comment-291</link>
		<dc:creator>Karim</dc:creator>
		<pubDate>Sat, 25 Jun 2011 11:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=352#comment-291</guid>
		<description>Also, check this one out - faster PNG Encoder: http://www.flasher.ru/forum/blog.php?b=203</description>
		<content:encoded><![CDATA[<p>Also, check this one out &#8211; faster PNG Encoder: <a href="http://www.flasher.ru/forum/blog.php?b=203" rel="nofollow">http://www.flasher.ru/forum/blog.php?b=203</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A diff/patch solution for Flash: a proof of concept Monte Carlo algorithm for comparing text versions in as3 by Alex</title>
		<link>http://blog.controul.com/2009/05/diff-patch-for-flash-as3/comment-page-1/#comment-290</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 21 Jun 2011 07:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=217#comment-290</guid>
		<description>Thanks again Hristo,
Indeed i commented out string encoding and that led to the problem i mentioned earlier (for some reason i thought that encoding is only used for safely transporting diff results via GET/POST requests and i can turn it off safely) 
Well everything went ok after i uncommented it out. 

Regarding a Js port of this algorithm - isn&#039;t it already ported ?
http://neil.fraser.name/software/diff_match_patch/svn/trunk/demos/demo_diff.html</description>
		<content:encoded><![CDATA[<p>Thanks again Hristo,<br />
Indeed i commented out string encoding and that led to the problem i mentioned earlier (for some reason i thought that encoding is only used for safely transporting diff results via GET/POST requests and i can turn it off safely)<br />
Well everything went ok after i uncommented it out. </p>
<p>Regarding a Js port of this algorithm &#8211; isn&#8217;t it already ported ?<br />
<a href="http://neil.fraser.name/software/diff_match_patch/svn/trunk/demos/demo_diff.html" rel="nofollow">http://neil.fraser.name/software/diff_match_patch/svn/trunk/demos/demo_diff.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A diff/patch solution for Flash: a proof of concept Monte Carlo algorithm for comparing text versions in as3 by hristo</title>
		<link>http://blog.controul.com/2009/05/diff-patch-for-flash-as3/comment-page-1/#comment-289</link>
		<dc:creator>hristo</dc:creator>
		<pubDate>Mon, 20 Jun 2011 14:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=217#comment-289</guid>
		<description>The correct pseudo-unified-diff output would be:

@@ -14,4 +14,14 @@
 est3
+xxx \n xxx

Which happens above just as you would expect it to
but i&#039;m seeing another issue above that should be related to the parser

i need to put this on github and make a js port of it as well, that would make it SO MUCH EASIER to manage</description>
		<content:encoded><![CDATA[<p>The correct pseudo-unified-diff output would be:</p>
<p>@@ -14,4 +14,14 @@<br />
 est3<br />
+xxx \n xxx</p>
<p>Which happens above just as you would expect it to<br />
but i&#8217;m seeing another issue above that should be related to the parser</p>
<p>i need to put this on github and make a js port of it as well, that would make it SO MUCH EASIER to manage</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A diff/patch solution for Flash: a proof of concept Monte Carlo algorithm for comparing text versions in as3 by Alex</title>
		<link>http://blog.controul.com/2009/05/diff-patch-for-flash-as3/comment-page-1/#comment-288</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 17 Jun 2011 18:45:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=217#comment-288</guid>
		<description>It&#039;s me again, now my question could seem interesting to you.
As you can see by my posts i did some studying of your fast-diff port :)

I am trying to create an as3 based program for comparing texts. For that i need to get positions of letters in text which should be highlighted (removed letters from one document and added letters in another document)

The problem is that it&#039;s not possible to get which symbols were added or removed with used Diff output format. And i think that the format used is not correct and doesn&#039;t correspond to unified diff format.

For example, consider comparing 2 texts (i&#039;ll write newline character as &quot;\n&quot;)

text 1:
test1 test2 test3

text 2:
test1 test2 test3xxx \n xxx

Raw output of Diff command would be:
@@ -14,4 +14,12 @@\n est3\n+xxx\n xxx

which is:
@@ -14,4 +14,12 @@
 est3
+xxx
 xxx

In fact we know that both &#039;xxx&#039; were added in second text. But according to the format used we should select only the first one &#039;xxx&#039; because it&#039;s preceded by a &quot;+&quot; sign. There is no way we can tell that second &#039;xxx&#039; should be marked as &#039;added&#039;. So it seems like there is a bug in a format or in the implementation of algorithm.

Hope to read your reply
Thanks ! :)</description>
		<content:encoded><![CDATA[<p>It&#8217;s me again, now my question could seem interesting to you.<br />
As you can see by my posts i did some studying of your fast-diff port :)</p>
<p>I am trying to create an as3 based program for comparing texts. For that i need to get positions of letters in text which should be highlighted (removed letters from one document and added letters in another document)</p>
<p>The problem is that it&#8217;s not possible to get which symbols were added or removed with used Diff output format. And i think that the format used is not correct and doesn&#8217;t correspond to unified diff format.</p>
<p>For example, consider comparing 2 texts (i&#8217;ll write newline character as &#8220;\n&#8221;)</p>
<p>text 1:<br />
test1 test2 test3</p>
<p>text 2:<br />
test1 test2 test3xxx \n xxx</p>
<p>Raw output of Diff command would be:<br />
@@ -14,4 +14,12 @@\n est3\n+xxx\n xxx</p>
<p>which is:<br />
@@ -14,4 +14,12 @@<br />
 est3<br />
+xxx<br />
 xxx</p>
<p>In fact we know that both &#8216;xxx&#8217; were added in second text. But according to the format used we should select only the first one &#8216;xxx&#8217; because it&#8217;s preceded by a &#8220;+&#8221; sign. There is no way we can tell that second &#8216;xxx&#8217; should be marked as &#8216;added&#8217;. So it seems like there is a bug in a format or in the implementation of algorithm.</p>
<p>Hope to read your reply<br />
Thanks ! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A diff/patch solution for Flash: a proof of concept Monte Carlo algorithm for comparing text versions in as3 by Alex</title>
		<link>http://blog.controul.com/2009/05/diff-patch-for-flash-as3/comment-page-1/#comment-287</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 14 Jun 2011 13:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=217#comment-287</guid>
		<description>oops... somehow i couldn&#039;t find this commented method before
thanks a lot :)</description>
		<content:encoded><![CDATA[<p>oops&#8230; somehow i couldn&#8217;t find this commented method before<br />
thanks a lot :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A diff/patch solution for Flash: a proof of concept Monte Carlo algorithm for comparing text versions in as3 by hristo</title>
		<link>http://blog.controul.com/2009/05/diff-patch-for-flash-as3/comment-page-1/#comment-286</link>
		<dc:creator>hristo</dc:creator>
		<pubDate>Tue, 14 Jun 2011 10:43:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=217#comment-286</guid>
		<description>Hey Alex,

The demos above use the .show() method of the Patch class, which I think is commented out in the sources above, but it works once you&#039;ve parsed the diff data into the internal representation of the Patch object, and uses this state to render the output in a text field.
 
.show is really a debug method, but you can see how you could build something of your own -essentially it iterates over the chuncks and renders inserts and deletes from the diff data and renders the &quot;kept&quot; chuncks from the original string. It&#039;s quite simple really.

What is your worry?</description>
		<content:encoded><![CDATA[<p>Hey Alex,</p>
<p>The demos above use the .show() method of the Patch class, which I think is commented out in the sources above, but it works once you&#8217;ve parsed the diff data into the internal representation of the Patch object, and uses this state to render the output in a text field.</p>
<p>.show is really a debug method, but you can see how you could build something of your own -essentially it iterates over the chuncks and renders inserts and deletes from the diff data and renders the &#8220;kept&#8221; chuncks from the original string. It&#8217;s quite simple really.</p>
<p>What is your worry?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A diff/patch solution for Flash: a proof of concept Monte Carlo algorithm for comparing text versions in as3 by Alex</title>
		<link>http://blog.controul.com/2009/05/diff-patch-for-flash-as3/comment-page-1/#comment-285</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 14 Jun 2011 10:33:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=217#comment-285</guid>
		<description>Thanks for adding source code !
I have a question - i have problems parsing Diff command output and would like to ask you how do you generate human readable representation of diff command ?

Parsing diff result chunk by chunk doesn&#039;t seem such a good idea for me.</description>
		<content:encoded><![CDATA[<p>Thanks for adding source code !<br />
I have a question &#8211; i have problems parsing Diff command output and would like to ask you how do you generate human readable representation of diff command ?</p>
<p>Parsing diff result chunk by chunk doesn&#8217;t seem such a good idea for me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

