<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Silveira Neto &#187; Linux</title>
	<atom:link href="http://silveiraneto.net/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://silveiraneto.net</link>
	<description></description>
	<lastBuildDate>Fri, 09 Mar 2012 04:13:27 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>DIY recycle your old tv</title>
		<link>http://silveiraneto.net/2011/02/20/diy-recycle-your-old-tv/</link>
		<comments>http://silveiraneto.net/2011/02/20/diy-recycle-your-old-tv/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 01:18:03 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=3670</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2011/02/20/diy-recycle-your-old-tv/" title="DIY recycle your old tv"></a>When I came here to this room I found this old big tv laying around. Old but perfectly functional. First I put a tv cable on it with hundreds of channels but after one month I realized that mostly of &#8230;<p class="read-more"><a href="http://silveiraneto.net/2011/02/20/diy-recycle-your-old-tv/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2011/02/20/diy-recycle-your-old-tv/" title="DIY recycle your old tv"></a><p style="text-align: center;"><img class="size-full wp-image-3671 aligncenter" title="tv fireplace" src="http://silveiraneto.net/wp-content/uploads/2011/02/tv_fireplace.jpg" alt="" width="700" height="525" /></p>
<p>When I came here to this room I found this old big tv laying around. Old but perfectly functional.</p>
<p>First I put a tv cable on it with hundreds of channels but after one month I realized that mostly of them are crap and I was watching everything on my laptop (mostly shows from Netflix and BitTorrent). Obviously I wanted to connect my laptop video output on it.  As an old television it doesn&#8217;t have any HDMI port. It have a RCA video and audio ports so after some research I bought a <a href=" http://www.amazon.com/LinkStyle-LK-21941-LK-50111-Projector-Converter/dp/B0036FNN0K/ref=pd_sxp_grid_pt_1_1 ">VGA-to-RCA converter</a>. Besides watch movies on it there is a lot of cool things I could do with it to decorated the room or create a environment while we are jamming.</p>
<p>In this article I&#8217;ll show how to create a fireplace.</p>
<p><strong>You will need</strong></p>
<ul>
<li>an old tv</li>
<li>computer-tv connection (<a href="http://www.amazon.com/LinkStyle-LK-21941-LK-50111-Projector-Converter/dp/B0036FNN0K/ref=pd_sxp_grid_pt_1_1">vga-to-rca</a> in my case)</li>
<li>Linux (<a href="http://www.ubuntu.com/">Ubuntu</a> here)</li>
<li><a title="Mplayer Project" href="http://www.mplayerhq.hu">mplayer</a></li>
<li>wine</li>
<li>cheese</li>
</ul>
<p><strong>Getting a high definition fireplace video</strong></p>
<p>You can search in Youtube for <a title="youtube quey" href="http://www.youtube.com/results?search_query=fireplace+hd&amp;aq=f">high definition fireplace videos</a>.</p>
<p style="text-align: center;"><img class="size-medium wp-image-3677 aligncenter" title="youtube fireplace query" src="http://silveiraneto.net/wp-content/uploads/2011/02/youtube_fireplace_query-483x375.png" alt="" width="483" height="375" /></p>
<p>There is a lot of ways to extract the videos from Youtube and it&#8217;s not the point explain it here but I can say one the best ways today is using <a href="http://jdownloader.org/">JDownloader</a>. Using it you can extract sound and video in any available resolution.</p>
<p style="text-align: center;"><img class="size-full wp-image-3678 aligncenter" title="jdownloader example" src="http://silveiraneto.net/wp-content/uploads/2011/02/jdownloader_example.png" alt="" width="629" height="441" /></p>
<p>Choose a fireplace video and download the highest resolution available (usually 720p). Here I stored it at /home/silveira/Videos/fireplace_hd.flv.</p>
<p><strong>Screen layout</strong></p>
<p>I&#8217;m using the TV as a second display in the right. The width of my laptop monitor is 1920.</p>
<p style="text-align: center;"><img class="size-full wp-image-3684 aligncenter" title="resolução" src="http://silveiraneto.net/wp-content/uploads/2011/02/resolucao.png" alt="" width="554" height="386" /></p>
<p><strong>Creating a shortcut </strong></p>
<p>First, right click in the upper panel of Gnome and select <strong>Add to Panel</strong>.  Select the<strong> Custom Application Launcher </strong>option.</p>
<p>Let&#8217;s fill it like this:</p>
<p style="text-align: center;"><img class="size-full wp-image-3681 aligncenter" title="window add custom application launcher to gnome panel" src="http://silveiraneto.net/wp-content/uploads/2011/02/window_add_custom_application_launcher_to_gnome_panel.png" alt="" width="432" height="236" /></p>
<p>On the command put:</p>
<blockquote><p>/usr/bin/mplayer /home/silveira/Videos/fireplace_hd.flv -nosound -loop 0 -geometry +1900+0 -fs</p></blockquote>
<p>Explaning:</p>
<ul>
<li> <strong>/usr/bin/mplayer </strong>the mplayer full path (probably you have the same path but you can try &#8220;whereis mplayer&#8221; in a terminal to find it).</li>
<li><strong>/home/silveira/Videos/fireplace_hd.flv </strong>as I said, where I put the video.</li>
<li><strong>-nosound </strong>no sound. :) Usually I have some music playing so I don&#8217;t want any fire sound. But if you want  the fire crackling sound omit this parameter.</li>
<li><strong>-loop 0</strong> the video I took have 10 minutes. If I put -loop 6 it would loop for 1 hour. Zero means infinite times.</li>
<li><strong>-geometry +1900+0 </strong>you can specify the size of the screen and position but here I&#8217;m justing saying I want it on horizontal position 1900 (bigger than my first screen) so it goes to the tv.</li>
<li><strong>-fs </strong>fullscreen</li>
</ul>
<p>Now drink the wine and cheese in front of your low carbon footprint fireplace.  ;)</p>
<p><strong>Bonus</strong></p>
<p>Now you can use the same idea and make an virtual aquarium, ant farm, an interactive art piece or anything!</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2011/02/20/diy-recycle-your-old-tv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Miojo Script</title>
		<link>http://silveiraneto.net/2010/01/28/miojo-script/</link>
		<comments>http://silveiraneto.net/2010/01/28/miojo-script/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 05:37:29 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[libnotify]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[miojo]]></category>
		<category><![CDATA[notify]]></category>
		<category><![CDATA[notify-send]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=3133</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2010/01/28/miojo-script/" title="Miojo Script"></a>O pre-requisito é o notify-send, um utilitário de linha de comando do libnotify. No Ubuntu: sudo aptitude install libnotify-bin E aqui o script em si: sleep 5m; notify-send "aviso" "tirar o miojo do fogo" Pronto, depois de cinco minutos isso &#8230;<p class="read-more"><a href="http://silveiraneto.net/2010/01/28/miojo-script/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2010/01/28/miojo-script/" title="Miojo Script"></a><p>O pre-requisito é o notify-send, um utilitário de linha de comando do libnotify. No Ubuntu:</p>
<p><code>sudo aptitude install libnotify-bin</code></p>
<p>E aqui o script em si:</p>
<p><code>sleep 5m; notify-send "aviso" "tirar o miojo do fogo"</code></p>
<p>Pronto, depois de cinco minutos isso vai aparecer:</p>
<p style="text-align: center;"><img class="size-full wp-image-3134 aligncenter" title="notify" src="http://silveiraneto.net/wp-content/uploads/2010/01/notify.png" alt="" width="427" height="258" /></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2010/01/28/miojo-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Congelando e Ressuscitando Processos</title>
		<link>http://silveiraneto.net/2009/11/14/congelando-e-resucitando-processos/</link>
		<comments>http://silveiraneto.net/2009/11/14/congelando-e-resucitando-processos/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 06:21:14 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[português]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[batman]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mr freeze]]></category>
		<category><![CDATA[pidof]]></category>
		<category><![CDATA[posix]]></category>
		<category><![CDATA[SH]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2935</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2009/11/14/congelando-e-resucitando-processos/" title="Congelando e Ressuscitando Processos"></a>Nem só de morte vive o kill. Suponha que você tem um processo chamado program e quer congelar seu funcionamento. Para congela-lo sem mata-lo você pode mandar um sinal SIGSTOP com: kill -s stop `pidof program` Para ressuscitar o mesmo &#8230;<p class="read-more"><a href="http://silveiraneto.net/2009/11/14/congelando-e-resucitando-processos/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2009/11/14/congelando-e-resucitando-processos/" title="Congelando e Ressuscitando Processos"></a><p style="text-align: center;"><img class="size-full wp-image-2936 aligncenter" title="batman mr freeze" src="http://silveiraneto.net/wp-content/uploads/2009/11/batman_mr_freeze.jpg" alt="batman mr freeze" width="374" height="253" /></p>
<p>Nem só de morte vive o kill.</p>
<p>Suponha que você tem um processo chamado <em>program</em> e quer congelar seu funcionamento. Para congela-lo sem mata-lo você pode mandar um sinal SIGSTOP com:</p>
<blockquote><p><span style="color: #000000;"><span style="color: #0163b3;"> </span>kill -s stop `pidof program`</span></p>
</blockquote>
<p><span style="color: #000000;">Para </span>ressuscitar o mesmo processo:</p>
<blockquote><p><span style="color: #000000;">kill -s cont `pidof program`</span></p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/11/14/congelando-e-resucitando-processos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Twitter Bot @rudaufc versão 1</title>
		<link>http://silveiraneto.net/2009/11/09/twitter-bot-rudaufc-versao-1/</link>
		<comments>http://silveiraneto.net/2009/11/09/twitter-bot-rudaufc-versao-1/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 19:54:18 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[português]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[Comida]]></category>
		<category><![CDATA[CRON]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[culinária]]></category>
		<category><![CDATA[CURL]]></category>
		<category><![CDATA[ia]]></category>
		<category><![CDATA[inteligência artificial]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Restaurante Universitário]]></category>
		<category><![CDATA[robô]]></category>
		<category><![CDATA[robot]]></category>
		<category><![CDATA[SH]]></category>
		<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[ufc]]></category>
		<category><![CDATA[Universidade Federal do Ceará]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2927</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2009/11/09/twitter-bot-rudaufc-versao-1/" title="Twitter Bot @rudaufc versão 1"></a>Este aqui é um bot bem simples para Twitter. Diariamente, as nove da manhã ele posta qual vai ser o cardápio do RU (Restaurante Universitário) da UFC naquele dia. Assim, quando vai batendo a hora da fome, os alunos podem &#8230;<p class="read-more"><a href="http://silveiraneto.net/2009/11/09/twitter-bot-rudaufc-versao-1/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2009/11/09/twitter-bot-rudaufc-versao-1/" title="Twitter Bot @rudaufc versão 1"></a><p><center><img src="http://silveiraneto.net/wp-content/uploads/2009/11/robo.jpg" alt="robô" title="robô" width="117" height="227" class="alignnone size-full wp-image-2933" /></center></p>
<p>Este aqui é um bot bem simples para Twitter.</p>
<p>Diariamente, as nove da manhã ele posta qual vai ser o cardápio do RU (<a href="http://www.ufc.br/portal/index.php?option=com_content&#038;task=view&#038;id=6842&#038;Itemid=87">Restaurante Universitário</a>) da <a href="http://www.ufc.br">UFC</a> naquele dia.</p>
<p>Assim, quando vai batendo a hora da fome, os alunos podem entrar no perfil <a href="http://www.twitter.com/rudaufc">@rudaufc</a> e olhar qual vai ser o prato do dia, ou quem está seguindo ele no Twitter pode ter a agradável surpresa de ver todo dia o que vai ser servido hoje.</p>
<p>Aqui está o código fonte do arquivo rudaufc.sh:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;"># Twitter bot @rudaufc</span>
<span style="color: #007800;">login</span>=<span style="color: #ff0000;">&quot;rudaufc&quot;</span>
<span style="color: #007800;">senha</span>=<span style="color: #ff0000;">&quot;suasenhaaqui&quot;</span>
&nbsp;
<span style="color: #007800;">segunda</span>=<span style="color: #ff0000;">&quot;Picadinho com legumes ou bife na chapa. Salada de macarrão com cenoura. Arroz. Feijão com abóbora e batata doce.&quot;</span>
<span style="color: #007800;">terca</span>=<span style="color: #ff0000;">&quot;Franco guisado ou coxas de frango ao forno . Salada de acelga, cenoura e passas. Arroz. Feijão com abóbora e batata doce.&quot;</span>
<span style="color: #007800;">quarta</span>=<span style="color: #ff0000;">&quot;# Feijoada à moda RU ou bisteca . Salada de repolho branco, cenoura e abacaxi. Arroz. Feijão com abóbora e batata doce&quot;</span>
<span style="color: #007800;">quinta</span>=<span style="color: #ff0000;">&quot;Frango à passarinho ou frango chinês. Salada de Alface, Tomate e Cebola. Arroz. Feijão com abóbora e batata doce.&quot;</span>
<span style="color: #007800;">sexta</span>=<span style="color: #ff0000;">&quot;# Isca ao molho ou maravilha de carne. Salada de acelga com cenoura. Arroz. Feijão com abóbora e batata doce.&quot;</span>
&nbsp;
<span style="color: #007800;">dia</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span><span style="color: #c20cb9; font-weight: bold;">w</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">log</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>Y-<span style="color: #000000; font-weight: bold;">%</span>m-<span style="color: #000000; font-weight: bold;">%</span>d-<span style="color: #000000; font-weight: bold;">%</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">`</span><span style="color: #ff0000;">&quot;-$$.log&quot;</span>
<span style="color: #007800;">dir</span>=<span style="color: #ff0000;">&quot;/home/silveiraneto/rudaufc&quot;</span>
<span style="color: #007800;">msg</span>=<span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$dia</span>&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
<span style="color: #666666; font-style: italic;">#	&quot;0&quot;) msg=$domingo ;;</span>
	<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">msg</span>=<span style="color: #007800;">$segunda</span> <span style="color: #000000; font-weight: bold;">;;</span>
	<span style="color: #ff0000;">&quot;2&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">msg</span>=<span style="color: #007800;">$terca</span> <span style="color: #000000; font-weight: bold;">;;</span>
	<span style="color: #ff0000;">&quot;3&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">msg</span>=<span style="color: #007800;">$quarta</span> <span style="color: #000000; font-weight: bold;">;;</span>
	<span style="color: #ff0000;">&quot;4&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">msg</span>=<span style="color: #007800;">$quinta</span> <span style="color: #000000; font-weight: bold;">;;</span>
	<span style="color: #ff0000;">&quot;5&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">msg</span>=<span style="color: #007800;">$sexta</span> <span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #666666; font-style: italic;">#	&quot;6&quot;) msg=$sabado ;;</span>
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
curl <span style="color: #660033;">-u</span> <span style="color: #007800;">$login</span>:<span style="color: #007800;">$senha</span> <span style="color: #660033;">-d</span> <span style="color: #007800;">status</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$msg</span>&quot;</span> http:<span style="color: #000000; font-weight: bold;">//</span>twitter.com<span style="color: #000000; font-weight: bold;">/</span>statuses<span style="color: #000000; font-weight: bold;">/</span>update.xml <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$dir</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$log</span></pre></div></div>

<p>A mágica toda está na capacidade do <a href="http://en.wikipedia.org/wiki/CURL">Curl</a> de acessar facilmente a <a href="http://apiwiki.twitter.com/">API do Twitter</a> para enviar mensagens.</p>
<p>Para que o script execute diariamente as nove da manhã ele está alocado em um servidor com a <a href="http://pt.wikipedia.org/wiki/Crontab">crontab</a> configurada da seguinte maneira:</p>
<pre>
0 5 * * *  . /caminho_para_onde_ele_esta/rudaufc.sh
</pre>
<p><small>ps: leve em conta que o servidor está em um fuso horário diferente do Brasil.</small></p>
<p>Nessa versão o prato de cada dia está hardcoded no script, o que não é o ideal e faz com que semanalmente eu tenha que atualizar o script inserindo os pratos da semana manualmente. Eu espero que a próxima versão seja capaz de descobrir esses pratos e se atualizar sem nenhuma interferência.</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/11/09/twitter-bot-rudaufc-versao-1/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>The Fork Bomb Tattoo</title>
		<link>http://silveiraneto.net/2009/10/22/the-fork-bomb-tattoo/</link>
		<comments>http://silveiraneto.net/2009/10/22/the-fork-bomb-tattoo/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 12:43:53 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[aesthetics]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[computação]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[Dereka]]></category>
		<category><![CDATA[fork bomb]]></category>
		<category><![CDATA[forkbomb]]></category>
		<category><![CDATA[Freedom of Tattoo]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nerd]]></category>
		<category><![CDATA[philosophical]]></category>
		<category><![CDATA[philosophy]]></category>
		<category><![CDATA[tattoo]]></category>
		<category><![CDATA[tatuagem]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2893</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2009/10/22/the-fork-bomb-tattoo/" title="The Fork Bomb Tattoo"></a>I thought about these two problems my entire life. Graphical arts have a significant role in everything I do. I always expressed my feelings thorough graphical drawings. First on paper, so notebooks, then walls and others surfaces like the computer &#8230;<p class="read-more"><a href="http://silveiraneto.net/2009/10/22/the-fork-bomb-tattoo/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2009/10/22/the-fork-bomb-tattoo/" title="The Fork Bomb Tattoo"></a><p style="text-align: center;"><img class="aligncenter" title="ongoing tattoo process" src="http://farm3.static.flickr.com/2607/4033296389_85290741d8.jpg" alt="" width="500" height="375" /></p>
<p>I thought about these two problems my entire life.</p>
<p>Graphical arts have a significant role in everything I do. I always expressed my feelings thorough graphical drawings. First on paper, so notebooks, then walls and others surfaces like the computer screen. But the possibility of transform my body, my own skin in a art canvas always fascinated me. This was a natural step.</p>
<p>But the tattoo is an art that raises a tricky philosophical question, it&#8217;s something that you can not undo it. Once you did it, it&#8217;s done. You can change or add the meaning with others tattoos but you can not remove meaning of a draw in a negative way by erasing it like other forms of arts. Of course there&#8217;s some kinds of treatments with different approaches and variant results but I see no point on think about tattoos looking on how remove them. It seems obvious that doesn&#8217;t matter how cool and incredible something could appear or how sure I am about it, I could always change my mind and repent. This puzzle was around my mind for a long time until finally I saw way out.</p>
<p style="text-align: center;"><img title="Tattoo Process" src="http://farm3.static.flickr.com/2673/4034049942_1af14635a9.jpg" alt="" width="500" height="375" /></p>
<p>The key is that the life you live itself is also a tattoo. You say words that cannot be unsaid. You see things that you can not unseen.You feel such strong emotions that you can not heal your scars. Every moment it&#8217;s also a tattoo in the thin skin of the time and there&#8217;s nothing you can do about that because the time flows only in one direction. Of course you don&#8217;t paint all your life with ink in your own skin but at least, you can choose some parts of it to express as a beautiful tattoo.</p>
<p style="text-align: center;"><img class="aligncenter" title="Writing" src="http://farm3.static.flickr.com/2567/4040321653_444a80c6d5.jpg" alt="" width="375" height="500" /></p>
<p style="text-align: center;"><img class="aligncenter" title="Sketch" src="http://farm3.static.flickr.com/2517/4033961428_4a460ea198.jpg" alt="" width="500" height="238" /></p>
<p>The second problem is witch draw do. There are hundred of drawings that I love and besides I also enjoy old school tattoo drawings, I choose a piece of programming code. More specifically the <a href="http://www.digitalcraft.org/?artikel_id=292">Jaromil</a> <a href="http://www.runme.org/project/+forkbombsh/">most elegant forkbomb code ever written</a>:</p>
<p><img class="size-full wp-image-2904 aligncenter" title="forkbomb_small" src="http://silveiraneto.net/wp-content/uploads/2009/10/forkbomb_small.png" alt="forkbomb_small" width="150" height="23" /></p>
<p>This small piece of code fork itself twice in parallel creating more processes that will be forked again and again until stop the entire system. You can read a more detailed explanation on its operation, history and variations on <a title="Wikipedia article on Fork Bomb" href="http://en.wikipedia.org/wiki/Fork_bomb">Wikipedia&#8217;s Fork bomb article</a>.</p>
<p style="text-align: center;"><img class="aligncenter" title="Fork Bomb Tattoo" src="http://farm3.static.flickr.com/2632/4033961414_7e24ef85fc.jpg" alt="" width="500" height="297" /></p>
<p style="text-align: center;"><img class="aligncenter" title="Writing it" src="http://farm4.static.flickr.com/3126/4040384917_b12d9dfdef.jpg" alt="" width="500" height="375" /></p>
<p>It has several meanings to me, from the aesthetics from the computer science field to the shape and possibilities the draw allow. The exponential grow of the number of forked process it&#8217;s also another beautiful aspect of this code. From the viewer perspective, even a casual one, it has a beautiful as a puzzle to be decipher or a totem pole of different emoticons.</p>
<p style="text-align: center;"><img class="aligncenter" title="start" src="http://farm3.static.flickr.com/2517/4040321679_a7f8a29837.jpg" alt="" width="500" height="375" /></p>
<p style="text-align: center;"><img class="aligncenter" title="Blood and Ink" src="http://farm3.static.flickr.com/2768/4033319307_cf1f2e2213.jpg" alt="" width="500" height="375" /></p>
<p style="text-align: center;"><small>Blood and ink.</small></p>
<p>I tried for months several different fonts and styles to use on it, from mono space to stylized draws. In the end I choose the <a title="Wikipedia article on Bitstream Vera Font" href="http://en.wikipedia.org/wiki/Bitstream_Vera">Bitstream Vera Sans</a> by Jim Lyles. A free (<a title="understand" href="http://en.wikipedia.org/wiki/Gratis_versus_Libre">as in freedom</a>) font very common on GNU/Linux systems. I also did small change in the draw by reducing almost entirely the spacing between the braces. This made it look better when looking it by side creating a stronger emoticon illusion.</p>
<p style="text-align: center;"><img class="aligncenter" title="Emoticon Totem Pole" src="http://farm3.static.flickr.com/2422/4033340711_543ef81df0.jpg" alt="" width="288" height="500" /></p>
<p style="text-align: center;"><img class="aligncenter" title="Blood stain" src="http://farm3.static.flickr.com/2515/4033340715_9658d86f86.jpg" alt="Blood stain" width="500" height="375" /></p>
<p style="text-align: center;"><small>Blood stain in the paper towel after dry the finished tattoo.</small></p>
<p>The process almost doesn&#8217;t involve pain and hurt, in contrast with what I thought. It&#8217;s like a little cat scratch in your arm for almost 2 hours of painting. I did in the <a title="Freedom of Tattoo Studio" href="http://www.dereka.com.br/">Freedom of Tattoo</a> studio, from the well-known here tattoo artist Dereka, with Thiago, a very skilled artist.</p>
<p style="text-align: center;"><img class="aligncenter" title="Fork Bomb Tattoo" src="http://farm3.static.flickr.com/2681/4033340713_e8c88c7f26.jpg" alt="" width="500" height="375" /></p>
<p>My thanks to the studio, to Dereka, to Thiago and to my friend Silvio who took the pictures and accompanied me. There&#8217;s a <a href="http://www.flickr.com/photos/silveiraneto/sets/72157622637285048/">photo album with all tattoo photos</a>. I&#8217;m very happy with the final work.</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/10/22/the-fork-bomb-tattoo/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>JavaFX on Linux!</title>
		<link>http://silveiraneto.net/2009/06/02/javafx-on-linux/</link>
		<comments>http://silveiraneto.net/2009/06/02/javafx-on-linux/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 02:10:11 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[JavaFX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[Opensolaris]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2649</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2009/06/02/javafx-on-linux/" title="JavaFX on Linux!"></a>Yeah. No more workarounds. Download now JavaFX 1.2 for Windows, MacOS X, Linux and OpenSolaris! \o/ There&#8217;s also a lots of improvements in the language and the API. For details on that read this document. Unfortunately, as a side effect &#8230;<p class="read-more"><a href="http://silveiraneto.net/2009/06/02/javafx-on-linux/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2009/06/02/javafx-on-linux/" title="JavaFX on Linux!"></a><p>Yeah. No more workarounds. <a title="Get JavaFX" href="http://javafx.com/downloads">Download now JavaFX 1.2 for Windows, MacOS X, Linux and OpenSolaris!</a></p>
<p><center><img title="bob sponja dancinha" src="http://silveiraneto.net/wp-content/uploads/2009/06/bob_sponja_dancinha.gif" alt="bob sponja dancinha" width="275" height="200" /></center></p>
<p>\o/</p>
<p>There&#8217;s also a lots of improvements in the language and the API. For details on that <a href="http://www.javafx.com/docs/articles/javafx1-2.jsp">read this document</a>. Unfortunately, as a side effect of those great changes some JavaFX source codes posted here are now deprecated and need a few changes to compile again but the online preview of them as applet or Java Web Start will continue to work well.</p>
<p>Let&#8217;s code.</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/06/02/javafx-on-linux/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>OGG com qualidade</title>
		<link>http://silveiraneto.net/2009/03/07/ogg-com-qualidade/</link>
		<comments>http://silveiraneto.net/2009/03/07/ogg-com-qualidade/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 16:36:06 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[português]]></category>
		<category><![CDATA[câmera]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[multimídia]]></category>
		<category><![CDATA[ogg]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2376</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2009/03/07/ogg-com-qualidade/" title="OGG com qualidade"></a>Para o controle de qualidade quando encondando vídeos com o FFmpeg use o parâmetro -qscale seguido de um número. Os número podem ir de 1 (melhor qualidade) até 31 (pior qualidade), sendo que 13 já é uma qualidade bem ruim. &#8230;<p class="read-more"><a href="http://silveiraneto.net/2009/03/07/ogg-com-qualidade/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2009/03/07/ogg-com-qualidade/" title="OGG com qualidade"></a><p>Para o controle de qualidade quando encondando vídeos com o <a href="http://www.ffmpeg.org/">FFmpeg</a> use o parâmetro <strong>-qscale</strong> seguido de um número. Os número podem ir de 1 (melhor qualidade) até 31 (pior qualidade), sendo que 13 já é uma qualidade bem ruim.</p>
<p>Convertendo pro exemplo um vídeo chamado exemplo.flv para um arquivo ogg com a melhor qualidade seria:</p>
<blockquote><p>ffmpeg -i exemplo.flv -qscale 1 saida.ogg</p></blockquote>
<p>Sem usar esse parâmetro os arquivos encodados em OGG ficam com uma qualidade mediana. Uma opção bem útil é usar a mesma qualidade do arquivo de entrada, já que não é possível melhorar a qualidade do vídeo mesmo. Para isso existe o parâmetro <strong>-sameq</strong>. No exemplo anterior bastaria:</p>
<blockquote><p>ffmpeg -i exemplo.flv -sameq saida.ogg</p></blockquote>
<p>Com isso eu tenho reduzido os vídeos da <a href="http://silveiraneto.net/2009/02/21/camera-nova-e-fazendo-ela-trabalhar-bem-com-o-cinelerra/">minha câmera</a> para arquivos que só ocupam cerca de 1/5 do tamanho original e ainda assim mantém a mesma qualidade.</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/03/07/ogg-com-qualidade/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Arduino on Ubuntu</title>
		<link>http://silveiraneto.net/2009/02/28/arduino-on-ubuntu/</link>
		<comments>http://silveiraneto.net/2009/02/28/arduino-on-ubuntu/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 15:47:10 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Robótica Livre]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2322</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2009/02/28/arduino-on-ubuntu/" title="Arduino on Ubuntu"></a>My Arduinos arrived yesterday. It&#8217;s a programmable open source and hardware device. To install its software on my Ubuntu 8.10 I need Java installed and some tools that I could get by: sudo apt-get install avrdude avrdude-doc avrp avrprog binutils-avr &#8230;<p class="read-more"><a href="http://silveiraneto.net/2009/02/28/arduino-on-ubuntu/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2009/02/28/arduino-on-ubuntu/" title="Arduino on Ubuntu"></a><p style="text-align: center;"><img class="aligncenter" src="http://farm4.static.flickr.com/3046/3316603870_1ff6620246.jpg" alt="Arduinos" /></p>
<p>My Arduinos arrived yesterday. It&#8217;s a programmable open source and hardware device.</p>
<p>To install <a title="Arduino Software Download" href="http://arduino.cc/en/Main/Software">its software</a> on my Ubuntu 8.10 I need Java installed and some tools that I could get by:</p>
<blockquote><p>sudo apt-get install avrdude avrdude-doc avrp avrprog binutils-avr gcc-avr</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/02/28/arduino-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Camera nova e fazendo ela trabalhar bem com o Cinelerra</title>
		<link>http://silveiraneto.net/2009/02/21/camera-nova-e-fazendo-ela-trabalhar-bem-com-o-cinelerra/</link>
		<comments>http://silveiraneto.net/2009/02/21/camera-nova-e-fazendo-ela-trabalhar-bem-com-o-cinelerra/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 03:17:13 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[português]]></category>
		<category><![CDATA[áudio]]></category>
		<category><![CDATA[Casa Brasil]]></category>
		<category><![CDATA[câmera]]></category>
		<category><![CDATA[Cinelerra]]></category>
		<category><![CDATA[extrair]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[Oregon Scientific]]></category>
		<category><![CDATA[software livre]]></category>
		<category><![CDATA[sox]]></category>
		<category><![CDATA[telecentro]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2286</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2009/02/21/camera-nova-e-fazendo-ela-trabalhar-bem-com-o-cinelerra/" title="Camera nova e fazendo ela trabalhar bem com o Cinelerra"></a>A um tempo atrás eu comprei uma câmera nova pra mim. Como eu não quero posso comprar uma câmera boa mesmo agora eu preferi comprar uma bem barata que fizesse o básico. Uma câmera de preço médio iria ter poucas &#8230;<p class="read-more"><a href="http://silveiraneto.net/2009/02/21/camera-nova-e-fazendo-ela-trabalhar-bem-com-o-cinelerra/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2009/02/21/camera-nova-e-fazendo-ela-trabalhar-bem-com-o-cinelerra/" title="Camera nova e fazendo ela trabalhar bem com o Cinelerra"></a><p>A um tempo atrás eu comprei uma câmera nova pra mim.</p>
<p>Como eu não <span style="text-decoration: line-through;">quero</span> posso comprar uma câmera boa mesmo agora eu preferi comprar uma bem barata que fizesse o básico. Uma câmera de preço médio iria ter poucas funções e eu iria ficar pensando —  se eu tivesse comprado aquela outra. Além disso uma câmera custa um pouco mais trás também um maior zelo e o meu zelo é muito limitado e eu já gasto com outras coisas. Ou seja, cheguei a conclusão que pra mim o ideal seria uma câmera barata que pudesse estar absolutamente sempre comigo, esteja eu a pé, de ônibus ou de carro. Assim eu posso tirar muitas, muitas fotos, já que o meu fim principal pra ela é a documentação de eventos e atividades e não um trabalho artístico.</p>
<p style="text-align: center;"><img class="size-full wp-image-2285" title="oregon scientific" src="http://silveiraneto.net/wp-content/uploads/2009/02/oregon_scientific.jpeg" alt="oregon scientific" width="190" height="190" /></p>
<p>Dentro disso e uma certa urgência em voltar a tirar fotos (<a title="Cparty 2009" href="http://www.flickr.com/photos/silveiraneto/sets/72157612770124641/">Campus Party de 2009</a> chegando) eu comprei nas Americanas (a loja mesmo, não a ponto-com) uma <a href="http://www.oregonscientific.com.br/">Oregon Scientific</a> (nome estranho) de 5.0 Megapixels com um cartão de 1Gb, por R$ 200.  Ela é bem básica pra fotos já que não tem zoom optico e não se dá bem com movimentos mas a qualidade da gravação dos vídeos, inclusive com aúdio me surpreendeu.</p>
<p style="text-align: center;"><a title="laboratório de metareciclagem by Silveira Neto, on Flickr" href="http://www.flickr.com/photos/silveiraneto/3254622376/"><img class="aligncenter" src="http://farm4.static.flickr.com/3410/3254622376_e65ca56dbd.jpg" alt="laboratório de metareciclagem" width="500" height="375" /></a><br />
<small>Uma típica foto com ela. Essa em um telecentro da Casa Brasil.</small></p>
<p style="text-align: center;"><a title="#cparty by Silveira Neto, on Flickr" href="http://www.flickr.com/photos/silveiraneto/3219227639/"><img class="aligncenter" src="http://farm4.static.flickr.com/3375/3219227639_dd8c2c8e30.jpg" alt="#cparty" width="500" height="375" /></a><br />
<small>Um macro de um robô do ITA durante o Campus Party</small></p>
<p>Erámos felizes até eu <a title="Cromakey no Cinelerra" href="http://silveiraneto.net/2009/01/17/cromakey-no-cinelerra/">começar a fazer meus primeiros experimentos</a> com os vídeos dela com o <a title="Cinelerra" href="http://cinelerra.org/">Cinelerra</a> (software que eu ainda engatinho).</p>
<p>O vídeo tudo bem mas o aúdio dos vídeos dela (uns arquivos AVI com vídeo codificado e áudio cru) ficavam bichados no Cinelerra mas tocavam bem no <a title="Mplayer" href="http://www.mplayerhq.hu/">Mplayer</a> ou outros tocadores. Como o vídeo estava legal eu só precisava extrair os audios por fora que aí eu podia colocar eles como uma trilha de aúdio do Cinelerra e problema resolvido. O problema é que sempre que eu ia extrair esse aúdio dava algum problema. A solução veio em uma thread da <a title="mplayer list" href="http://lists.mplayerhq.hu/pipermail/mencoder-users/2005-December/002333.html">lista de usuários do Mencoder</a> usando a dupla Mplayer e <a href="http://www.linux.org/lessons/short/sox/index.html">Sox</a>:</p>
<blockquote><p>mplayer -vc null -vo null -ao pcm video_da_camera.AVI<br />
sox audiodump.wav -i -b -r 48000 -c 2 audio_do_video.wav</p></blockquote>
<p>No caso eu estou usando a taxa de amostragem em 48kHz e dois canais de áudio (stereo) para ficar compatível com outros formatos que eu estou usando no Cinelerra.</p>
<p>Pronto, voltamos a ser felizes juntos, eu, a câmera e o Cinelerra.</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/02/21/camera-nova-e-fazendo-ela-trabalhar-bem-com-o-cinelerra/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Cromakey no Cinelerra</title>
		<link>http://silveiraneto.net/2009/01/17/cromakey-no-cinelerra/</link>
		<comments>http://silveiraneto.net/2009/01/17/cromakey-no-cinelerra/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 03:23:22 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[português]]></category>
		<category><![CDATA[Cinelerra]]></category>
		<category><![CDATA[creative commons]]></category>
		<category><![CDATA[Cromakey]]></category>
		<category><![CDATA[Escócia]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[Jamendo]]></category>
		<category><![CDATA[James Valentine]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2183</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2009/01/17/cromakey-no-cinelerra/" title="Cromakey no Cinelerra"></a>Continuo minha epopéia para desvendar os segredos das complexas interfaces do Cinelerra. Dessa vez aprendi a usar o cromakey usando uma filmagem minha mesmo contra uma parede azul. Os dois monitores ajudam muito. Essa máquina aqui é uma das máquinas &#8230;<p class="read-more"><a href="http://silveiraneto.net/2009/01/17/cromakey-no-cinelerra/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2009/01/17/cromakey-no-cinelerra/" title="Cromakey no Cinelerra"></a><p style="text-align: center;"><img src="http://silveiraneto.net/wp-content/uploads/2009/01/cinelerra_editando-500x312.png" alt="cinelerra editando" title="cinelerra editando" width="500" height="312" class="alignnone size-medium wp-image-2186" /></p>
<p>Continuo minha epopéia para desvendar os segredos das complexas interfaces do <a href="http://cinelerra.org/">Cinelerra</a>. Dessa vez aprendi a usar o cromakey usando uma filmagem minha mesmo contra uma parede azul.</p>
<p>Os dois monitores ajudam muito. Essa máquina aqui é uma das máquinas que eu usei para editar. É uma das duas máquinas de edição multimídia na unidade da <a title="Casa Brasil" href="http://casabrasil.gov.br">Casa Brasil</a> do Vila União. </p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm4.static.flickr.com/3113/3202938082_50e02ae1e9.jpg" alt="Cinelerra" /></p>
<p>O resultado. Ainda falta muito pra chegar no nível de excelência do cromakey do Chapolin mas a gente chega lá.</p>
<p style="text-align: center;"><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/iDXPNhG2XMo&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/iDXPNhG2XMo&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>A imagem de fundo é de <a title="Flickr" href="http://www.flickr.com/photos/nationalgalleries/3095839422/">1888 por James Valentine</a>, vinda da <a title="Flickr Blog" href="http://blog.flickr.net/en/2009/01/14/great-scot/">Galeria Nacional da Escócia no Commons</a>. O som é de um trecho da música <a title="Jamendo" href="http://www.jamendo.com/en/album/13717"><em>La mort de Chloé</em> por Xcyril</a>.</p>
<p>Logo que eu tiver um maior domínio da técnica eu faço um tutorial explicando o procedimento. ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/01/17/cromakey-no-cinelerra/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

