<?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>coding &#187; qt</title>
	<atom:link href="http://www.coding.com.br/tag/qt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coding.com.br</link>
	<description>have you coded today?</description>
	<lastBuildDate>Fri, 23 Jul 2010 02:37:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SHOUTcast search</title>
		<link>http://www.coding.com.br/linux/shoutcast-search/</link>
		<comments>http://www.coding.com.br/linux/shoutcast-search/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 19:48:58 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[qt]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=714</guid>
		<description><![CDATA[I&#8217;m working on a project using SHOUTCast. In order to know about  services requests, especially XML output, I made this small program to display search queries.  The program perform an Http request and parse the result in a appropriate view.
screenshot
This code is hosted in Github.
$ git clone git://github.com/maluta/shoutcast-search.git
$ cd shoutcast-search
$ qmake &#38;&#38; make &#38;&#38; [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I&#8217;m working on a project using <a href="http://yp.shoutcast.com/">SHOUTCast</a>. In order to know about  services requests, especially XML output, I made this small program to display search queries.  The program perform an Http request and parse the result in a appropriate view.</p>
<p style="text-align: center;"><img class="size-medium wp-image-713 aligncenter" title="ShoutCast Search" src="http://www.coding.com.br/wp-content/uploads/2010/03/sc-300x233.png" alt="" width="300" height="233" /><a href="http://farm5.static.flickr.com/4068/4410975721_5faa4f3bf2_o.png" target="_blank">screenshot</a></p>
<p style="text-align: center;">This code is hosted in <a title="Shoutcast search repository " href="http://github.com/maluta/shoutcast-search" target="_blank">Github</a>.</p>
<pre style="text-align: left;">$ git clone git://github.com/maluta/shoutcast-search.git
$ cd shoutcast-search
$ qmake &amp;&amp; make &amp;&amp; ./shoutcast-search
</pre>
<p style="text-align: justify;">To listen some radio I <em>cut &amp; paste</em> &#8216;Playlist&#8217; info and put in some player. For example, to listen the Bob Dylan radio selected in screenshot I would do:</p>
<pre>
curl -s http://yp.shoutcast.com/sbin/tunein-station.pls?id=486
</pre>
<blockquote><p>
[playlist]<br />
numberofentries=2<br />
File1=http://68.90.68.227:8001<br />
Title1=(#1 &#8211; 11/55) DylanRadio.com<br />
Length1=-1<br />
File2=http://66.55.139.212:7190<br />
Title2=(#2 &#8211; 30/50) DylanRadio.com<br />
Length2=-1<br />
Version=2
</p></blockquote>
<p>As you can see, ouput has two URLs, so I select one and choose mplayer to play.</p>
<pre>
mplayer http://68.90.68.227:8001
</pre>
<p>Enjoy <img src='http://www.coding.com.br/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><strong>Bonus:</strong> A not beautiful way to play from command line&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">curl <span style="color: #660033;">-s</span> http:<span style="color: #000000; font-weight: bold;">//</span>... <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #ff0000;">&quot;^File1&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-c7-</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #c20cb9; font-weight: bold;">mplayer</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/linux/shoutcast-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=486" length="0" type="audio/x-scpls" />
		</item>
		<item>
		<title>Google Translate na linha de comando</title>
		<link>http://www.coding.com.br/programacao/google-translate-na-linha-de-comando/</link>
		<comments>http://www.coding.com.br/programacao/google-translate-na-linha-de-comando/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 19:54:31 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[programação]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[qt]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=445</guid>
		<description><![CDATA[Isto pode ser feito de mil maneiras diferentes (e até mais simples) : usando shell script, python, php, etc. Resolvi fazer uma prova do conceito em Qt/C++ para treinar. Para executar baixe o script de instalação install-translate.sh que ira fazer o downlad dos arquivos e compilar.
]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Isto pode ser feito de mil maneiras diferentes (e até mais simples) : usando <em>shell script</em>, <em>python</em>, <em>php</em>, etc. Resolvi fazer uma prova do conceito em Qt/C++ para treinar. Para executar baixe o script de instalação <a href="http://gist.github.com/raw/242972/a00ec3c18d8c61a29a8614045c186bc883ca4771/install-translate.sh">install-translate.sh</a> que ira fazer o <em>downlad </em>dos arquivos e compilar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/programacao/google-translate-na-linha-de-comando/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
