<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Oxaric's Blog</title>
	<atom:link href="http://oxaric.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://oxaric.wordpress.com</link>
	<description>A compendium of amazing things...</description>
	<lastBuildDate>Tue, 12 May 2009 20:27:36 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Fun With BASH Piping! by Nick Warrington</title>
		<link>http://oxaric.wordpress.com/2008/11/24/fun-with-bash-piping/#comment-242</link>
		<dc:creator>Nick Warrington</dc:creator>
		<pubDate>Tue, 12 May 2009 20:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://oxaric.wordpress.com/?p=366#comment-242</guid>
		<description>This is my kind of tutorial. Thanks!</description>
		<content:encoded><![CDATA[<p>This is my kind of tutorial. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hidden Image Watermarking by Linda</title>
		<link>http://oxaric.wordpress.com/2008/12/09/hidden-image-watermarking/#comment-112</link>
		<dc:creator>Linda</dc:creator>
		<pubDate>Tue, 10 Mar 2009 08:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://oxaric.wordpress.com/?p=989#comment-112</guid>
		<description>Hai louis..... your code is very helpfull for me..
i&#039;m linda from Indonesia...
I&#039;m in a project of watermarking... and combine two image, exactly the same what u&#039;ve done on this...

u really a smart guy... but i wanna ask u...
what method that u use in this?? i mean what&#039;s the method&#039;s name??

i hear about some methods like &quot;spread spectrum&quot;, &quot;Least significant bit (LSB)&quot;, &quot;Singular Value decomposition&quot;, &quot;DCT&quot;, &quot;DWT&quot;

Please answer me... and may i use your code for my exam project??
i am a student college... and i need to know the name of your methods :)</description>
		<content:encoded><![CDATA[<p>Hai louis&#8230;.. your code is very helpfull for me..<br />
i&#8217;m linda from Indonesia&#8230;<br />
I&#8217;m in a project of watermarking&#8230; and combine two image, exactly the same what u&#8217;ve done on this&#8230;</p>
<p>u really a smart guy&#8230; but i wanna ask u&#8230;<br />
what method that u use in this?? i mean what&#8217;s the method&#8217;s name??</p>
<p>i hear about some methods like &#8220;spread spectrum&#8221;, &#8220;Least significant bit (LSB)&#8221;, &#8220;Singular Value decomposition&#8221;, &#8220;DCT&#8221;, &#8220;DWT&#8221;</p>
<p>Please answer me&#8230; and may i use your code for my exam project??<br />
i am a student college&#8230; and i need to know the name of your methods :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Euler Project Problem #104 Solution by oxaric</title>
		<link>http://oxaric.wordpress.com/2008/11/24/euler-project-problem-104-solution/#comment-39</link>
		<dc:creator>oxaric</dc:creator>
		<pubDate>Sun, 28 Dec 2008 05:54:18 +0000</pubDate>
		<guid isPermaLink="false">http://oxaric.wordpress.com/2008/11/24/euler-project-problem-104-solution/#comment-39</guid>
		<description>Sorry it has taken such a long time for a response!

You never directly define k but from your words it appears you mean k to be the final answer.  I&#039;ve already put up the code!  I&#039;m not going to give out answers too. :)

If you are using dynamic programming I would suggest you create a dynamic program that can dynamically handle any array length needed to find the answer to the solution.  If a dynamic program is hard coded then it&#039;s not really dynamic right?</description>
		<content:encoded><![CDATA[<p>Sorry it has taken such a long time for a response!</p>
<p>You never directly define k but from your words it appears you mean k to be the final answer.  I&#8217;ve already put up the code!  I&#8217;m not going to give out answers too. :)</p>
<p>If you are using dynamic programming I would suggest you create a dynamic program that can dynamically handle any array length needed to find the answer to the solution.  If a dynamic program is hard coded then it&#8217;s not really dynamic right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Euler Project Problem #59 Solution by oxaric</title>
		<link>http://oxaric.wordpress.com/2008/11/24/euler-project-problem-59-solution/#comment-38</link>
		<dc:creator>oxaric</dc:creator>
		<pubDate>Sun, 28 Dec 2008 05:48:43 +0000</pubDate>
		<guid isPermaLink="false">http://oxaric.wordpress.com/?p=564#comment-38</guid>
		<description>That&#039;s a good method that is probably much more functional for secret messages without so many known constraints on the final message.  I was just hacking for speed and answers. :)</description>
		<content:encoded><![CDATA[<p>That&#8217;s a good method that is probably much more functional for secret messages without so many known constraints on the final message.  I was just hacking for speed and answers. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Euler Project Problem #59 Solution by Ori</title>
		<link>http://oxaric.wordpress.com/2008/11/24/euler-project-problem-59-solution/#comment-36</link>
		<dc:creator>Ori</dc:creator>
		<pubDate>Fri, 26 Dec 2008 04:27:52 +0000</pubDate>
		<guid isPermaLink="false">http://oxaric.wordpress.com/?p=564#comment-36</guid>
		<description>Clever solution! What I did was test for the frequency of space, &#039;e&#039;, and &#039;t&#039; (the three most common letters in English) with each code letter, and picked the codes that deviated least from their standard frequency (as given &lt;a href=&quot;http://millikeys.sourceforge.net/freqanalysis.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;). Here it is in Python:

message = [ 79....73 ] # snipped for brevity

likely_spaces = 0.1874 * len(message)
likely_es = 0.0960 * len(message)
likely_ts = 0.0702 * len(message)

code = [0,0,0]

for pos in range(3): # first, second, third code letter
	mindiv = 1000
	for possible_codeletter in range(97, 123): # possiblities
		spaces = 0
		es = 0
		ts = 0
		
		for letter in message[pos::3]:
			decrypted_letter = letter ^ possible_codeletter
			if decrypted_letter == 32: spaces += 1
			elif decrypted_letter == 69 or decrypted_letter == 101: es += 1
			elif decrypted_letter == 84 or decrypted_letter == 116: ts += 1
		spaces *= 3
		es *= 3
		ts *= 3
		deviation = abs( likely_spaces - spaces ) + abs ( likely_ts - ts ) + abs( likely_es + es )
		if deviation &lt; mindiv: 
			code[pos] = possible_codeletter
			mindiv = deviation

codeword = chr(code[0]) + chr(code[1]) + chr(code[2])
print &quot;The code is: &quot;, codeword, &#039;(&#039;, code, &#039;)&#039;

sum = 0
for i in range(len(message)):
	if (i - 1) % 3 == 0:
		message[i] = message[i] ^ code[1]
	elif (i - 2) % 3 == 0:
		message[i] = message[i] ^ code[2]
	else:
		message[i] = message[i] ^ code[0]
	sum += message[i]
	
for i in range(len(message)):
	message[i] = chr(message[i])

decrypted = &#039;&#039;.join(message)

print decrypted
print sum</description>
		<content:encoded><![CDATA[<p>Clever solution! What I did was test for the frequency of space, &#8216;e&#8217;, and &#8216;t&#8217; (the three most common letters in English) with each code letter, and picked the codes that deviated least from their standard frequency (as given <a href="http://millikeys.sourceforge.net/freqanalysis.html" rel="nofollow">here</a>). Here it is in Python:</p>
<p>message = [ 79....73 ] # snipped for brevity</p>
<p>likely_spaces = 0.1874 * len(message)<br />
likely_es = 0.0960 * len(message)<br />
likely_ts = 0.0702 * len(message)</p>
<p>code = [0,0,0]</p>
<p>for pos in range(3): # first, second, third code letter<br />
	mindiv = 1000<br />
	for possible_codeletter in range(97, 123): # possiblities<br />
		spaces = 0<br />
		es = 0<br />
		ts = 0</p>
<p>		for letter in message[pos::3]:<br />
			decrypted_letter = letter ^ possible_codeletter<br />
			if decrypted_letter == 32: spaces += 1<br />
			elif decrypted_letter == 69 or decrypted_letter == 101: es += 1<br />
			elif decrypted_letter == 84 or decrypted_letter == 116: ts += 1<br />
		spaces *= 3<br />
		es *= 3<br />
		ts *= 3<br />
		deviation = abs( likely_spaces &#8211; spaces ) + abs ( likely_ts &#8211; ts ) + abs( likely_es + es )<br />
		if deviation &lt; mindiv:<br />
			code[pos] = possible_codeletter<br />
			mindiv = deviation</p>
<p>codeword = chr(code[0]) + chr(code[1]) + chr(code[2])<br />
print &#8220;The code is: &#8220;, codeword, &#8216;(&#8216;, code, &#8216;)&#8217;</p>
<p>sum = 0<br />
for i in range(len(message)):<br />
	if (i &#8211; 1) % 3 == 0:<br />
		message[i] = message[i] ^ code[1]<br />
	elif (i &#8211; 2) % 3 == 0:<br />
		message[i] = message[i] ^ code[2]<br />
	else:<br />
		message[i] = message[i] ^ code[0]<br />
	sum += message[i]</p>
<p>for i in range(len(message)):<br />
	message[i] = chr(message[i])</p>
<p>decrypted = &#8221;.join(message)</p>
<p>print decrypted<br />
print sum</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Euler Project Problem #104 Solution by YuYevon</title>
		<link>http://oxaric.wordpress.com/2008/11/24/euler-project-problem-104-solution/#comment-29</link>
		<dc:creator>YuYevon</dc:creator>
		<pubDate>Tue, 16 Dec 2008 12:14:07 +0000</pubDate>
		<guid isPermaLink="false">http://oxaric.wordpress.com/2008/11/24/euler-project-problem-104-solution/#comment-29</guid>
		<description>Hi Louis &quot;oxaric&quot; Casillas,

(forgive me if my English isn&#039;t very good...)

I was trying to write the code to solve this problem, and I found a solution in C++, using the NTL library, but now I&#039;m &quot;in trouble&quot;:

even if my algorithm (which doesn&#039;t take too much time) is correct, I fail in finding &#039;k&#039; because the algorithm implements dynamic programming and I don&#039;t know how big the array must be in order to get the correct output.

In sum (to avoid bothering you), could you tell me the value of &#039;k&#039; you find out with your algorithm?
I would try it by myself with your code but I haven&#039;t the GMP library installed and it would be too boring to download and install it only for this.

Thank you for your eventual answer!

YuYevon</description>
		<content:encoded><![CDATA[<p>Hi Louis &#8220;oxaric&#8221; Casillas,</p>
<p>(forgive me if my English isn&#8217;t very good&#8230;)</p>
<p>I was trying to write the code to solve this problem, and I found a solution in C++, using the NTL library, but now I&#8217;m &#8220;in trouble&#8221;:</p>
<p>even if my algorithm (which doesn&#8217;t take too much time) is correct, I fail in finding &#8216;k&#8217; because the algorithm implements dynamic programming and I don&#8217;t know how big the array must be in order to get the correct output.</p>
<p>In sum (to avoid bothering you), could you tell me the value of &#8216;k&#8217; you find out with your algorithm?<br />
I would try it by myself with your code but I haven&#8217;t the GMP library installed and it would be too boring to download and install it only for this.</p>
<p>Thank you for your eventual answer!</p>
<p>YuYevon</p>
]]></content:encoded>
	</item>
</channel>
</rss>
