<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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>Esteve Personal Blog</title>
	<atom:link href="http://esteve.tizos.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://esteve.tizos.net</link>
	<description>A personal blog with my own opinions, experiences and stuff I'm interested on.</description>
	<pubDate>Wed, 23 Nov 2005 10:37:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>TFC Presentation</title>
		<link>http://esteve.tizos.net/archives/tfc-presentation/</link>
		<comments>http://esteve.tizos.net/archives/tfc-presentation/#comments</comments>
		<pubDate>Wed, 23 Nov 2005 10:36:43 +0000</pubDate>
		<dc:creator>esteve</dc:creator>
		
		<category><![CDATA[]]></category>

		<guid isPermaLink="false">http://esteve.tizos.net/?p=82</guid>
		<description><![CDATA[ This is the presentation for the TizOs kernel I did last week, here you can find both the PDF and the sources for it, made with latex-beamer. 



 Or you can download the  full latex sources  

]]></description>
			<content:encoded><![CDATA[<p> This is the presentation for the TizOs kernel I did last week, here you can find both the PDF and the sources for it, made with latex-beamer. </p>
<p><a href="/upload/TFC/TFCPresentation.pdf"><img src="/upload/TFC/PDF_icon.jpg" class="left" alt="PDF TFC"/></a></p>
<p></p>
<h3>
<p> <strong>Or</strong> you can download the <a href="/upload/TFC/TFC-Presentation-TEX.tar.gz"> full latex sources </a> </p>
</h3>
]]></content:encoded>
			<wfw:commentRss>http://esteve.tizos.net/archives/tfc-presentation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>22C3,  22nd Chaos Communication Congress.</title>
		<link>http://esteve.tizos.net/archives/22c3-22nd-chaos-communication-congress/</link>
		<comments>http://esteve.tizos.net/archives/22c3-22nd-chaos-communication-congress/#comments</comments>
		<pubDate>Wed, 09 Nov 2005 11:59:48 +0000</pubDate>
		<dc:creator>esteve</dc:creator>
		
		<category><![CDATA[]]></category>

		<guid isPermaLink="false">http://esteve.tizos.net/?p=81</guid>
		<description><![CDATA[ Through  Pof  I got to the  22C3 event Blog , a nice place to start looking for what is going to be awaiting us at the congress. 
 Borja and I are going there on the 27th, arrivng at Schoenenfeld Airport around 16:30, so I will be missing part, if not [...]]]></description>
			<content:encoded><![CDATA[<p> Through <a href="http://pof.eslack.org"> Pof </a> I got to the <a href="http://events.ccc.de/"> 22C3 event Blog </a>, a nice place to start looking for what is going to be awaiting us at the congress. </p>
<p> <a href="http://vicerveza.homeunix.net/~khaos/">Borja</a> and I are going there on the 27th, arrivng at Schoenenfeld Airport around 16:30, so I will be missing part, if not all, of the <a href="http://events.ccc.de/2005/11/07/structure-of-the-conference/"> first day </a>, a real pity! </p>
]]></content:encoded>
			<wfw:commentRss>http://esteve.tizos.net/archives/22c3-22nd-chaos-communication-congress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TizOs - Eyecandy version Screenshots</title>
		<link>http://esteve.tizos.net/archives/tizos-eyecandy-version-screenshots/</link>
		<comments>http://esteve.tizos.net/archives/tizos-eyecandy-version-screenshots/#comments</comments>
		<pubDate>Fri, 21 Oct 2005 12:36:39 +0000</pubDate>
		<dc:creator>esteve</dc:creator>
		
		<category><![CDATA[]]></category>

		<guid isPermaLink="false">http://esteve.tizos.net/?p=79</guid>
		<description><![CDATA[ Last two weeks I have been working on a graphical interface for the TizOs kernel, this interface will be used as a frontend application for a demo of the kernel capabilities. The interface is called extra-WM and runs on top of the tizos 0.0.7. At the moment is functional, and I&#8217;m planning on submitting [...]]]></description>
			<content:encoded><![CDATA[<p> Last two weeks I have been working on a graphical interface for the TizOs kernel, this interface will be used as a frontend application for a demo of the kernel capabilities. The interface is called extra-WM and runs on top of the tizos 0.0.7. At the moment is functional, and I&#8217;m planning on submitting it at sourceforge not later than next week. If anyone is really interested on this changes just drop a comment and I&#8217;ll post a snapshot of the current development tree. </p>
<p><a href="http://esteve.tizos.net/upload/tizos/screen/back.png"><img src="http://esteve.tizos.net/upload/tizos/screen/back-thumb.png" alt="Back Tizos" class="right border" /></a><br />
This is the graphical interface without applications, the background is the clock which is updated every second.</p>
<div class="clear"></div>
<p><a href="http://esteve.tizos.net/upload/tizos/screen/someapps1.png"><img src="http://esteve.tizos.net/upload/tizos/screen/someapps1-thumb.png" alt="Some Apps Tizos" class="right border" /></a><br />
Some applications running, at bottom plane the drawing application, a very simple pixel plotting app., on top of it the writting application with some text, and finally having the focus, the license.
</p>
<div class="clear"></div>
<p>
<a href="http://esteve.tizos.net/upload/tizos/screen/someapps2.png"><img src="http://esteve.tizos.net/upload/tizos/screen/someapps2-thumb.png" alt="Some Apps Tizos" class="right border" /></a><br />
Some more apps., the system info which shows the registered devices and the pong, a one-player pong game.
</p>
<div class="clear"></div>
<p> This graphical interface lets you move windows, chose to focus on one and different behaviour among windows. </p>
]]></content:encoded>
			<wfw:commentRss>http://esteve.tizos.net/archives/tizos-eyecandy-version-screenshots/feed/</wfw:commentRss>
		</item>
		<item>
		<title>University Project Finished</title>
		<link>http://esteve.tizos.net/archives/university-project-finished/</link>
		<comments>http://esteve.tizos.net/archives/university-project-finished/#comments</comments>
		<pubDate>Fri, 30 Sep 2005 09:43:35 +0000</pubDate>
		<dc:creator>esteve</dc:creator>
		
		<category><![CDATA[]]></category>

		<guid isPermaLink="false">http://esteve.tizos.net/archives/university-project-finished/</guid>
		<description><![CDATA[Yesterday I handled the university project document (TFC), I havn&#8217;t been posting updates on it because of the lack of time&#8230; but you can finally download the whole project. Comment on it will be really appreciated.



 Or you can download the  full latex sources  

]]></description>
			<content:encoded><![CDATA[<p>Yesterday I handled the university project document (TFC), I havn&#8217;t been posting updates on it because of the lack of time&#8230; but you can finally download the whole project. Comment on it will be really appreciated.</p>
<p><a href="/upload/TFC/TFCMain.pdf"><img src="/upload/TFC/PDF_icon.jpg" class="left" alt="PDF TFC"/></a></p>
<p></p>
<h3>
<p> <strong>Or</strong> you can download the <a href="/upload/TFC/TFC-Final-TEX.tar.gz"> full latex sources </a> </p>
</h3>
]]></content:encoded>
			<wfw:commentRss>http://esteve.tizos.net/archives/university-project-finished/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Is the iPod Shuffle Really Shuffle ? - Part Two -</title>
		<link>http://esteve.tizos.net/archives/is-the-ipod-shuffle-really-shuffle-part-two/</link>
		<comments>http://esteve.tizos.net/archives/is-the-ipod-shuffle-really-shuffle-part-two/#comments</comments>
		<pubDate>Mon, 05 Sep 2005 11:21:52 +0000</pubDate>
		<dc:creator>esteve</dc:creator>
		
		<category><![CDATA[]]></category>

		<guid isPermaLink="false">http://esteve.tizos.net/?p=76</guid>
		<description><![CDATA[This weekend I&#8217;ve been working again on the iPod Shuffle randomness&#8230; I&#8217;ve been quite busy lately, that is why I haven&#8217;t been posting. 
In this second post I will be finally using an iPod Shuffle and will show the first results on it&#8217;s degree of randomness, this results are probably
not statistically correct, as I don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend I&#8217;ve been working again on the iPod Shuffle randomness&#8230; I&#8217;ve been quite busy lately, that is why I haven&#8217;t been posting. </p>
<p>In this second post I will be finally using an iPod Shuffle and will show the first results on it&#8217;s degree of randomness, this results are probably<br />
not statistically correct, as I don&#8217;t have enough samples yet&#8230;</p>
<p><strong> <em>The Analyzer /dev/dsp </em></strong></p>
<p> As you might remember in last iPod post I gave a program that converted some WAV files to a number by analyzing it&#8217;s content, now I modified this program<br />
by taking the data from /dev/dsp insted that from a WAV file. </p>
<p> Data is taken in small chunks, the FFT is done on this chunk, when the FFT is has been finished I search for the frequency peak of the sample. This peak<br />
is used to determine which tone was in the original file. </p>
<p><strong> <em>The test set </em></strong></p>
<p>I&#8217;ve filled the iPod with exactly 256 audio files, this number of files is exactly 1 byte, we will see why I&#8217;m using this number of files later. Each of<br />
this files has an Id number which is a prime number so the id of the file ranges from 2 to 1619 ( the first 256 prime numbers ), this numeration is used as error<br />
detection. Here is a sample of the number <a href="/upload/ipod/1531.wav.mp3">1531</a> and <a href="/upload/ipod/1123.wav.mp3">1123</a>, if anyone needs the full<br />
set just post a comment and I&#8217;ll be glad to send it. </p>
<p><strong> <em>The first results</em></strong></p>
<p> After uploading the files to the iPod the test can begin, the output of the Shuffle is plugged into the Mic input of the pc. The iPod is put in shuffle position,<br />
the analyzer program is started and then the play button on the iPod is pressed ( iPod volume has to be put to the maximum ). Some hours later, when the Shuffle&#8217;s<br />
battery has been emptied ( 8 hours or so ), we can have a look at the output file. The file contains 9322 numbers ranging from 2 to 1619. This numbers have<br />
not been checked against errors. </p>
<p><strong> <em>Text output to stream</em></strong></p>
<p> It&#8217;s time to check the previous output for errors and to convert it to a stream for further processing, this binary stream will be passed to a program<br />
that analyzes it&#8217;s randomness. The range 2-1919 is converted to a range of 0&#215;00-0xFF ( 1byte ), we are using 1 byte values as the randomness analyzer<br />
takes 1 byte values. The range conversion is done by assigning a number to each prime, for example 2 is 1, 3 is 2, 5 is 3, &#8230; , 71 is 20, &#8230; , 809 is 140, &#8230; and<br />
1619 is 255. If any of the values of the input file can not be converted to the range is discarded and is considered as a detection error, I&#8217;ve not<br />
implemented error correction, but it will be done later. </p>
<p><strong> <em>Randomness</em></strong></p>
<p> At this point we have a binary file with the random data obtained from the iPod, we pass this output to <a href="http://www.fourmilab.ch/random/">ENT</a>, this<br />
program applies a series of tests to a stream of bytes, this tests help determine the randomness of this sequence. </p>
<p><strong> <em>A full example</em></strong></p>
<p> Now I&#8217;ll show the process and results obtained from this first test. At the end of this post all source code for the programs I&#8217;ve used can be obtained, of<br />
course this sources are GNU/GPL. </p>
<p> First of all we generate the files that will be uploaded to the iPod Shuffle, this script uses the min_gen_number.sh script to generate wav files,<br />
and then convert them to MP3 files: </p>
<pre>
# ./whole_set.sh
</pre>
<p> Those 256 files are uploaded to the Shuffle using gtkpod or anything else&#8230; Now we need mini-jack to mini-jack cable to connect the iPod&#8217;s<br />
headphone output to the Mic input of the computer. iPod&#8217;s volume has to be high when playing back files, also remember to put the iPod in Shuffle position. </p>
<pre>
# ./analyze_dsp "out$(date).txt"
( 8 hours later )
# cat "outSun Sep  4 21:39:14 CEST 2005.txt" | wc -l
9322
</pre>
<p>Now we have a file called <a href="/upload/ipod/outSun Sep  4 21:39:14 CEST 2005.txt">outSun Sep  4 21:39:14 CEST 2005.txt</a>, this file contains 9322 numbers<br />
which can contain errors. Now we have to transform this output to binary, and with the range of 0-255.</p>
<pre>
# ./streamize "outSun Sep  4 21:39:14 CEST 2005.txt" Sunday.bin
ERRROR 255
ERRROR 525
ERRROR 489
ERRROR 485
ERRROR 235
ERRROR 803
# ls -l Sunday.bin
-rw-r--r--  1 esteve users 9316 Sep  5 12:21 Sunday.bin
</pre>
<p> A binary file <a href="/upload/ipod/Sunday.bin">Sunday.bin</a> has been created, as we can see it has detected some errors, this numbers have been discarded.<br />
The size of the file is 9322 - 6, where 6 are the number of errors. Now this binary file is used as input to ENT: </p>
<pre>
# ./ent Sunday.bin
 Entropy = 7.999828 bits per byte.

 Optimum compression would reduce the size
 of this 9316 byte file by 0 percent.

 Chi square distribution for 9316 samples is 2.22, and randomly
 would exceed this value 99.99 percent of the times.

 Arithmetic mean value of data bytes is 127.4317 (127.5 = random).
 Monte Carlo value for Pi is 3.110824742 (error 0.98 percent).
 Serial correlation coefficient is 0.018126 (totally uncorrelated = 0.0).
</pre>
<p> We can compare this result with the result obtained by suppling ENT with a true random file obtained from timing radioactive decay events at<br />
<a href="http://www.fourmilab.ch/hotbits/">Hotbits</a>: </p>
<pre>
# ./ent Hotbits
 Entropy = 7.979351 bits per byte.

 Optimum compression would reduce the size
 of this 8192 byte file by 0 percent.

 Chi square distribution for 8192 samples is 232.50, and randomly
 would exceed this value 75.00 percent of the times.

 Arithmetic mean value of data bytes is 126.8322 (127.5 = random).
 Monte Carlo value for Pi is 3.129670330 (error 0.38 percent).
 Serial correlation coefficient is -0.016542 (totally uncorrelated = 0.0).
</pre>
<p><strong> <em>Sources</em></strong></p>
<ul>
<li><a href="/upload/ipod/whole_set.sh">whole_set.sh</a></li>
<li><a href="/upload/ipod/min_gen_number.sh">min_gen_number.sh</a></li>
<li><a href="/upload/ipod/analize_dsp.c">analize_dsp.c</a>, requires fftw3 and compile options : -lfftw3 -lm </li>
<li><a href="/upload/ipod/streamize.c">streamize.c </a></li>
</ul>
<p> <strong> Update: </strong> By the way this Blog was one year old on the <a href="http://esteve.tizos.net/archives/new-blog/"> 2nd of september</a>!! I forgot to post it. </p>
]]></content:encoded>
			<wfw:commentRss>http://esteve.tizos.net/archives/is-the-ipod-shuffle-really-shuffle-part-two/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
