<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>unsignedint</title>
	
	<link>http://www.unsignedint.net/blog</link>
	<description>adding noise to the signal</description>
	<lastBuildDate>Thu, 28 Jan 2010 19:07:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/unsignedint" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="unsignedint" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Como obter o ID de um post dentro e fora do Loop do WordPress</title>
		<link>http://www.unsignedint.net/blog/2010/01/16/obter-id-de-um-post-no-wordpress/</link>
		<comments>http://www.unsignedint.net/blog/2010/01/16/obter-id-de-um-post-no-wordpress/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 11:46:29 +0000</pubDate>
		<dc:creator>lmmendes</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[post_id]]></category>

		<guid isPermaLink="false">http://www.unsignedint.net/blog/?p=342</guid>
		<description><![CDATA[Ultimamente tenho andado a fazer algumas modificações ao meu blog e surgiu-me a necessidade de obter o ID de um post fora do loop (The Loop) do WordPress:

&#60;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&#62;

Dentro do loop para obter o ID basta fazer o seguinte:

$post->ID

Já fora do loop para termos [...]]]></description>
			<content:encoded><![CDATA[<p>Ultimamente tenho andado a fazer algumas modificações ao meu blog e surgiu-me a necessidade de obter o ID de um post fora do <a href="http://codex.wordpress.org/The_Loop">loop (The Loop)</a> do WordPress:</p>
<pre name="code" class="php">
&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;
</pre>
<p>Dentro do <em>loop </em>para obter o ID basta fazer o seguinte:</p>
<pre name="code" class="php">
$post->ID
</pre>
<p>Já fora do <em>loop</em> para termos acesso ao ID do post vamos ter que aceder á variável global <em>$wp_query</em>, ou seja, para obtermos acesso ao ID do post:</p>
<pre name="code" class="php">
global $wp_query;
$wp_query->post->ID
</pre>
<p>É tão simples como isso, para saberem mais informação sobre o <em>$wp_query</em> consultem o <a href="http://codex.wordpress.org/Function_Reference/WP_Query">Codex aqui.</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-love">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.unsignedint.net/blog/2010/01/16/obter-id-de-um-post-no-wordpress/&amp;title=Como+obter+o+ID+de+um+post+dentro+e+fora+do+Loop+do+WordPress" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.unsignedint.net/blog/2010/01/16/obter-id-de-um-post-no-wordpress/&amp;title=Como+obter+o+ID+de+um+post+dentro+e+fora+do+Loop+do+WordPress" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.unsignedint.net/blog/2010/01/16/obter-id-de-um-post-no-wordpress/&amp;title=Como+obter+o+ID+de+um+post+dentro+e+fora+do+Loop+do+WordPress" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.unsignedint.net/blog/2010/01/16/obter-id-de-um-post-no-wordpress/&amp;title=Como+obter+o+ID+de+um+post+dentro+e+fora+do+Loop+do+WordPress" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.unsignedint.net/blog/2010/01/16/obter-id-de-um-post-no-wordpress/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.unsignedint.net/blog/2010/01/16/obter-id-de-um-post-no-wordpress/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.unsignedint.net/blog/2010/01/16/obter-id-de-um-post-no-wordpress/&amp;title=Como+obter+o+ID+de+um+post+dentro+e+fora+do+Loop+do+WordPress" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.unsignedint.net/blog/2010/01/16/obter-id-de-um-post-no-wordpress/&amp;t=Como+obter+o+ID+de+um+post+dentro+e+fora+do+Loop+do+WordPress" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Como+obter+o+ID+de+um+post+dentro+e+fora+do+Loop+do+WordPress+-+http://b2l.me/du7dy+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.unsignedint.net/blog/2010/01/16/obter-id-de-um-post-no-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove WordPress iNove theme sidebar using custom fields</title>
		<link>http://www.unsignedint.net/blog/2010/01/16/hide-inove-wordpress-theme-sidebar-using-custom-fields/</link>
		<comments>http://www.unsignedint.net/blog/2010/01/16/hide-inove-wordpress-theme-sidebar-using-custom-fields/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 01:35:37 +0000</pubDate>
		<dc:creator>lmmendes</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[inove wordpress nosidebar]]></category>

		<guid isPermaLink="false">http://www.unsignedint.net/blog/?p=295</guid>
		<description><![CDATA[I&#8217;m using WordPress iNove theme v.1.4.6 and i needed a way to hide the sidebar for a specific post so i dove in the iNove theme code and figured out how to do this with the minimum changes to the original theme code.
First open the iNove theme &#8216;header.php&#8217; file using your favorite editor, usually found [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using <a href="http://wordpress.org/extend/themes/inove">WordPress iNove theme</a> v.1.4.6 and i needed a way to hide the sidebar for a specific post so i dove in the iNove theme code and figured out how to do this with the minimum changes to the original theme code.</p>
<p>First open the iNove theme &#8216;header.php&#8217; file using your favorite editor, usually found at <em>&lt;wp install folder&gt;/wp-content/themes/inove/header.php</em>.</p>
<p>Now look for this piece of code (starting from the top of the file):</p>
<pre name="code" class="php">
... some code ...
			$feed = 'http://' . $options['feed_url'];
		}
	} else {
		$feed = get_bloginfo('rss2_url');
	}
?&gt;
</pre>
<p><span id="more-295"></span><br />
Now append at the end of that code the following snippet:</p>
<pre name="code" class="php">
&lt;?php
    global $wp_query;
    if( get_post_custom( $wp_query->post->ID, 'nosidebar', 'true') ){
        $inove_nosidebar = true;
    }
?&gt;
</pre>
<p>You should get some thing like this:</p>
<pre name="code" class="php">
... some code ...
			$feed = 'http://' . $options['feed_url'];
		}
	} else {
		$feed = get_bloginfo('rss2_url');
	}
?&gt;

&lt;?php
    the_meta();
    global $wp_query;
    if( get_post_custom( $wp_query->post->ID, '', 'true') ){
        $inove_nosidebar = true;
    }
?&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
</pre>
<p>Now when you need to disable the sidebar in a post you simply add  a new &#8216;Custom Field&#8217; named &#8216;nosidebar&#8217; and set it&#8217;s value to &#8216;true&#8217; like you see in the figure.</p>
<p><a href="http://www.unsignedint.net/blog/wp-content/uploads/2010/01/wp_nosidebar_custom_fields.png"><img src="http://www.unsignedint.net/blog/wp-content/uploads/2010/01/wp_nosidebar_custom_fields.png" alt="Wordpress setting &#039;nosidebar&#039; custom field" title="Wordpress &#039;nosidebar&#039; Custom Fields" width="582" height="233" class="alignnone size-full wp-image-320" /></a></p>
<p>Et voilà, all done! </p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-love">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.unsignedint.net/blog/2010/01/16/hide-inove-wordpress-theme-sidebar-using-custom-fields/&amp;title=Remove+WordPress+iNove+theme+sidebar+using+custom+fields" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.unsignedint.net/blog/2010/01/16/hide-inove-wordpress-theme-sidebar-using-custom-fields/&amp;title=Remove+WordPress+iNove+theme+sidebar+using+custom+fields" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.unsignedint.net/blog/2010/01/16/hide-inove-wordpress-theme-sidebar-using-custom-fields/&amp;title=Remove+WordPress+iNove+theme+sidebar+using+custom+fields" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.unsignedint.net/blog/2010/01/16/hide-inove-wordpress-theme-sidebar-using-custom-fields/&amp;title=Remove+WordPress+iNove+theme+sidebar+using+custom+fields" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.unsignedint.net/blog/2010/01/16/hide-inove-wordpress-theme-sidebar-using-custom-fields/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.unsignedint.net/blog/2010/01/16/hide-inove-wordpress-theme-sidebar-using-custom-fields/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.unsignedint.net/blog/2010/01/16/hide-inove-wordpress-theme-sidebar-using-custom-fields/&amp;title=Remove+WordPress+iNove+theme+sidebar+using+custom+fields" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.unsignedint.net/blog/2010/01/16/hide-inove-wordpress-theme-sidebar-using-custom-fields/&amp;t=Remove+WordPress+iNove+theme+sidebar+using+custom+fields" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Remove+WordPress+iNove+theme+sidebar+using+custom+fields+-+http://b2l.me/dt7rt+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.unsignedint.net/blog/2010/01/16/hide-inove-wordpress-theme-sidebar-using-custom-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Instalar o Homebrew Channel na Wii</title>
		<link>http://www.unsignedint.net/blog/2009/12/26/installing-the-homebrew-channel/</link>
		<comments>http://www.unsignedint.net/blog/2009/12/26/installing-the-homebrew-channel/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 11:46:23 +0000</pubDate>
		<dc:creator>lmmendes</dc:creator>
				<category><![CDATA[Wii]]></category>

		<guid isPermaLink="false">http://www.unsignedint.net/blog/?p=216</guid>
		<description><![CDATA[Como instalar o Homebrew Channel na Wii, DVDX e BootMii]]></description>
			<content:encoded><![CDATA[<p><strong>Uma breve introdução ao Homebrew Channel:</strong></p>
<p>O Homebrew Channel (HBC) é uma aplicação desenvolvida por terceiros (não licenciada pela Nintendo) capaz de se actualizar automaticamente, criada pela Team Twiizers que permite aos utilizadores da Wii executarem aplicações sem terem que estar a executar exploits sempre que desejam executar uma aplicação Homebrew.</p>
<p>A instalação do HBC envolve a execução de um dos seguintes exploits <a href="http://wiibrew.org/wiki/Twilight_Hack">Twilight Hack</a>, <a href="http://wiibrew.org/wiki/Smash_Stack">Smash Stack</a>, <a href="http://wiibrew.org/wiki/Indiana_Pwns">Indiana Pwns</a> ou <a href="http://wiibrew.org/wiki/Bannerbomb">Bannerbomb</a> que por sua vez vão permitir a instalação do HBC.</p>
<p>Este exploit só é necessário ser executado uma vez para instalar o HBC pois todos os restantes softwares Homebrew vão ser lançados pelo HBC evitando como se dizia no inicio deste artigo a execução do exploit por cada aplicação Homebrew que se pretende lançar.</p>
<p>Neste caso vamos recorrer ao exploit  Bannerbomb pois os restantes exploits requerem que se possua o jogo original e se execute um save modificado do mesmo de forma a se poder executar o exploit logo tornam-se pouco práticos.<br />
<span id="more-216"></span><br />
<strong>O objectivo deste tutorial:</strong></p>
<p>Com este tutorial vamos conseguir correr na Wii o <em>HackMii Installer</em> que vai instalar o HBC que nos permite correr código Homebrew, vai também instalar o DVDx que irá permitir ver filmes em DVD&#8217;s na Wii e também irá instalar o BootMii.</p>
<p><strong>Material necessário:</strong></p>
<ul>
<li>Wii</li>
<li>Cartão de memoria SD ou SDHC</li>
<li><a href="http://bannerbomb.qoid.us/index.new.php">Bannerbomb v2</a></li>
<li><a href="http://bootmii.org/download">HackMii Installer v0.6</a></li>
</ul>
<p><strong>Guia passo-a-passo:</strong></p>
<p><strong>1)</strong> Formate o cartão SD com FAT ou FAT32.</p>
<p><strong>2) Bannerbomb v2)</strong></p>
<p>Faça download do <em>Bannerbomb v2</em> (no momento em que este tutorial foi escrito o ficheiro chamava-se abd6a_v200.zip) descompacte o ficheiro e cópie a pasta &#8220;private&#8221; que obteve para a raiz do cartão. Ou seja, neste momento depois da pasta estar cópiada o único conteúdo do cartão será uma pasta com o nome de <em>private</em>.</p>
<p><strong>3) HackMii Installer</strong></p>
<p>Faça agora download do <em>HackMii Installer v0.6</em> descompacte o ficheiro e copie o ficheiro <em>boot.elf</em> para a raiz do cartão SD. Por fim o conteúdo do cartão SD deve ser idêntico ao que mostra a imagem que se segue:</p>
<p><a href="http://www.unsignedint.net/blog/wp-content/uploads/2009/12/SD_card_boot_and_private.jpg"><img class="alignnone size-medium wp-image-230" title="Cartão SD com pasta &quot;private&quot; e boot.&quot;elf&quot;" src="http://www.unsignedint.net/blog/wp-content/uploads/2009/12/SD_card_boot_and_private-300x188.jpg" alt="" width="300" height="188" /></a></p>
<p><strong>4) Instalar o HBC, DVDX e BootMii:</strong></p>
<p>Com a Wii desligada introduza o cartão de memoria. Ligue-a Wii e no menu principal clique no icone do cartão SD como mostra a figura em baixo.</p>
<p><a href="http://www.unsignedint.net/blog/wp-content/uploads/2009/12/wii_press_sd_card_main_menu.png"><img class="alignnone size-medium wp-image-248" title="Pressionar o icone do cartão SD está a direita do curso (mão)" src="http://www.unsignedint.net/blog/wp-content/uploads/2009/12/wii_press_sd_card_main_menu-300x167.png" alt="" width="300" height="167" /></a></p>
<p>Selecione &#8220;Yes&#8221; para iniciar o instalador do Hackmii que ira instalar o HBC, DVDx e boot2.</p>
<p><a href="http://www.unsignedint.net/blog/wp-content/uploads/2009/12/wii_load_boot_dol_elf.jpg"><img class="alignnone size-medium wp-image-234" title="Wii Bannerbomb v2 popup" src="http://www.unsignedint.net/blog/wp-content/uploads/2009/12/wii_load_boot_dol_elf-300x207.jpg" alt="" width="300" height="207" /></a></p>
<p>Quando vir um ecran idêntico ao de baixo, tome nota num papel se a seguir a BootMii aparece escrito &#8220;Can install BootMii&#8221;  ou pelo contrario aparece a rosa a seguinte frase &#8220;Can only be installed as an IOS&#8221; como é mostrada na figura. Agora pressione pressione <em>A</em> para continuar.</p>
<p><a href="http://www.unsignedint.net/blog/wp-content/uploads/2009/12/wii_hackmii_installer_step1.jpg"><img class="alignnone size-medium wp-image-236" title="wii hackmii installer step1" src="http://www.unsignedint.net/blog/wp-content/uploads/2009/12/wii_hackmii_installer_step1-300x176.jpg" alt="" width="300" height="176" /></a></p>
<p>No menu seguinte pressione &#8220;Install Homebrew Channel&#8221;, &#8220;Install DVDx&#8221;.</p>
<p><a href="http://www.unsignedint.net/blog/wp-content/uploads/2009/12/wii_install_hbc_dvdx_bootmii.jpg"><img class="alignnone size-medium wp-image-251" title="Instalar o HBC, DVDx e BootMii" src="http://www.unsignedint.net/blog/wp-content/uploads/2009/12/wii_install_hbc_dvdx_bootmii-300x183.jpg" alt="" width="300" height="183" /></a></p>
<p>Entre depois no menu do BootMii</p>
<p><a href="http://www.unsignedint.net/blog/wp-content/uploads/2009/12/wii_bootmii_install_menu.png"><img class="alignnone size-medium wp-image-253" title="Menu de instalação do BootMii" src="http://www.unsignedint.net/blog/wp-content/uploads/2009/12/wii_bootmii_install_menu-300x158.png" alt="" width="300" height="158" /></a></p>
<p>Agora no menu de instalação do BootMii selecione a opção mais indicada para si, se há pouco lhe apareceu &#8220;Can install BootMii&#8221; selecione &#8220;Prepare SD Card&#8221; primeiro (siga as instruções no ecran) e de seguinda selecione &#8220;Install BootMii as boot2&#8243; caso contrario se lhe apareceu um texto a rosa  há pouco a dizer &#8220;Can only be installed as an IOS&#8221; selecione &#8220;Install BootMii as a IOS&#8221;.<br />
Escolha agora voltar para o menu principal &#8220;Return to Main Menu&#8221; e de seguida &#8220;Exit&#8221;, reinicie a Wii.</p>
<p>Agora no System Menu da Wii vai aparecer se tudo correu bem um novo canal com o nome de &#8220;HomeBrew Channel&#8221; e pronto é tudo.</p>
<p>Nota: Se instalou o BootMii como boot2 cada vez que ligar a Wii esta vai entrar o BootMii primeiro em vez de entrar no System Menu (menu normal da Wii) para evitar que isto aconteça mude o nome da pasta &#8220;bootmii&#8221; no cartão SD para outra coisa qualquer (ex: bootyou ) ou mova a pasta para o seu pc.</p>
<p><strong>Referencias bibliográficas:</strong></p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Homebrew_Channel">http://en.wikipedia.org/wiki/Homebrew_Channel</a></li>
<li><a href="http://wiibrew.org/wiki/Homebrew_Channel">http://wiibrew.org/wiki/Homebrew_Channel</a></li>
<li><a href="http://wiibrew.org/wiki/Homebrew_setup">http://wiibrew.org/wiki/Homebrew_setup</a></li>
<li><a href="http://bannerbomb.qoid.us/index.new.php">http://bannerbomb.qoid.us/index.new.php</a></li>
</ul>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-love">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.unsignedint.net/blog/2009/12/26/installing-the-homebrew-channel/&amp;title=Instalar+o+Homebrew+Channel+na+Wii" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.unsignedint.net/blog/2009/12/26/installing-the-homebrew-channel/&amp;title=Instalar+o+Homebrew+Channel+na+Wii" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.unsignedint.net/blog/2009/12/26/installing-the-homebrew-channel/&amp;title=Instalar+o+Homebrew+Channel+na+Wii" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.unsignedint.net/blog/2009/12/26/installing-the-homebrew-channel/&amp;title=Instalar+o+Homebrew+Channel+na+Wii" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.unsignedint.net/blog/2009/12/26/installing-the-homebrew-channel/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.unsignedint.net/blog/2009/12/26/installing-the-homebrew-channel/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.unsignedint.net/blog/2009/12/26/installing-the-homebrew-channel/&amp;title=Instalar+o+Homebrew+Channel+na+Wii" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.unsignedint.net/blog/2009/12/26/installing-the-homebrew-channel/&amp;t=Instalar+o+Homebrew+Channel+na+Wii" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Instalar+o+Homebrew+Channel+na+Wii+-+http://b2l.me/b9dem+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.unsignedint.net/blog/2009/12/26/installing-the-homebrew-channel/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>O Linux é um SO mau e sem compaixão</title>
		<link>http://www.unsignedint.net/blog/2009/10/22/o-linux-e-um-so-mau-e-sem-compaixao/</link>
		<comments>http://www.unsignedint.net/blog/2009/10/22/o-linux-e-um-so-mau-e-sem-compaixao/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 20:57:19 +0000</pubDate>
		<dc:creator>lmmendes</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[linux funny]]></category>

		<guid isPermaLink="false">http://www.unsignedint.net/blog/?p=190</guid>
		<description><![CDATA[
&#8220;Roubado&#8221; de Geeks are Sexy





		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Share this on Reddit
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Share this on Technorati
		
		
			Subscribe to the comments for this post?
		
		
			Add this to Google Bookmarks
		
		
			Share this on Facebook
		
		
			Tweet This!
		





]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.unsignedint.net/blog/wp-content/uploads/2009/10/linux-evil.png" alt="linux-evil" title="linux-evil" width="314" height="145" class="alignnone size-full wp-image-189" /></p>
<p>&#8220;Roubado&#8221; de <a href="http://www.geeksaresexy.net/2009/10/09/linux-is-an-evil-and-uncompassionate-os/">Geeks are Sexy</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-love">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.unsignedint.net/blog/2009/10/22/o-linux-e-um-so-mau-e-sem-compaixao/&amp;title=O+Linux+%C3%A9+um+SO+mau+e+sem+compaix%C3%A3o" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.unsignedint.net/blog/2009/10/22/o-linux-e-um-so-mau-e-sem-compaixao/&amp;title=O+Linux+%C3%A9+um+SO+mau+e+sem+compaix%C3%A3o" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.unsignedint.net/blog/2009/10/22/o-linux-e-um-so-mau-e-sem-compaixao/&amp;title=O+Linux+%C3%A9+um+SO+mau+e+sem+compaix%C3%A3o" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.unsignedint.net/blog/2009/10/22/o-linux-e-um-so-mau-e-sem-compaixao/&amp;title=O+Linux+%C3%A9+um+SO+mau+e+sem+compaix%C3%A3o" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.unsignedint.net/blog/2009/10/22/o-linux-e-um-so-mau-e-sem-compaixao/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.unsignedint.net/blog/2009/10/22/o-linux-e-um-so-mau-e-sem-compaixao/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.unsignedint.net/blog/2009/10/22/o-linux-e-um-so-mau-e-sem-compaixao/&amp;title=O+Linux+%C3%A9+um+SO+mau+e+sem+compaix%C3%A3o" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.unsignedint.net/blog/2009/10/22/o-linux-e-um-so-mau-e-sem-compaixao/&amp;t=O+Linux+%C3%A9+um+SO+mau+e+sem+compaix%C3%A3o" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=O+Linux+%C3%A9+um+SO+mau+e+sem+compaix%C3%A3o+-+http://b2l.me/t2v7+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.unsignedint.net/blog/2009/10/22/o-linux-e-um-so-mau-e-sem-compaixao/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing nginx and rails passenger on Mac OS X Snow Leopard</title>
		<link>http://www.unsignedint.net/blog/2009/10/17/installing-nginx-and-rails-passenger-on-mac-os-x-snow-leopard/</link>
		<comments>http://www.unsignedint.net/blog/2009/10/17/installing-nginx-and-rails-passenger-on-mac-os-x-snow-leopard/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 11:07:50 +0000</pubDate>
		<dc:creator>lmmendes</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.unsignedint.net/blog/?p=170</guid>
		<description><![CDATA[I&#8217;m new to Mac OS X, nginx and rails so after much goggling i finally got everything to work so i resolved to compile the list of instructions that i followed.
First we need to download, compile and install PRE (Perl Compatible Regular Expressions) it&#8217;s required for nginx. You can find the most recent version here [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m new to Mac OS X, nginx and rails so after much goggling i finally got everything to work so i resolved to compile the list of instructions that i followed.</p>
<p>First we need to download, compile and install PRE (Perl Compatible Regular Expressions) it&#8217;s required for nginx. You can find the most recent version here http://www.pcre.org/ , at time of writing this post the most recent version is 7.9</p>
<p>Compiling and installing PRE</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> ~<span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>src
curl <span style="color: #660033;">-O</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.csx.cam.ac.uk<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>programming<span style="color: #000000; font-weight: bold;">/</span>pcre<span style="color: #000000; font-weight: bold;">/</span>pcre-7.9.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvzf</span> pcre-7.9.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> pre-<span style="color: #000000;">7.9</span>
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span>
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></td></tr></table></div>

<p>Installing Phusion Passenger via gem</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">gem <span style="color: #c20cb9; font-weight: bold;">install</span> passenger</pre></td></tr></table></div>

<p>Now that you have Phusion Passenger installed you can install and configure nginx and passenger using a bundled script from passenger called &#8220;passenger-install-nginx-module&#8221; but that is no fun and usually don&#8217;t install the lasted stable version of nginx, so you can run the script and follow it&#8217;s instructions (that include auto-downloading and installing of nginx) or do it my way&#8230; the hard way.</p>
<p>So now we need to find where &#8220;gem&#8221; installed the nginx module so we can refer to it&#8217;s during the nginx configuration, so to get the module path you just need to run this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">passenger-config <span style="color: #660033;">--root</span></pre></td></tr></table></div>

<p>In my case the command output is</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/&lt;</span>usename<span style="color: #000000; font-weight: bold;">&gt;/</span>.gem<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>passenger-2.2.5</pre></td></tr></table></div>

<p>You need to write down this output, you will need it in the next step.</p>
<p>Now it&#8217;s time do download and install nginx we will be installing version 0.7.62 (stable).</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>src
curl <span style="color: #660033;">-O</span> http:<span style="color: #000000; font-weight: bold;">//</span>sysoev.ru<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx-0.7.62.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvzf</span> nginx-0.7.62.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> nginx-0.7.62
.<span style="color: #000000; font-weight: bold;">/</span>configure \
<span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span> \
<span style="color: #660033;">--conf-path</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf \
<span style="color: #660033;">--http-log-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>access_log \
<span style="color: #660033;">--error-log-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>error_log \
<span style="color: #660033;">--pid-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>nginx.pid \
<span style="color: #660033;">--http-client-body-temp-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>client \
<span style="color: #660033;">--http-proxy-temp-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>proxy \
<span style="color: #660033;">--http-fastcgi-temp-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>fastcgi \
<span style="color: #660033;">--with-md5-asm</span> <span style="color: #660033;">--with-md5</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include \
<span style="color: #660033;">--with-sha1-asm</span> \
<span style="color: #660033;">--with-sha1</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include \
--with-http_realip_module \
--with-http_ssl_module \
--with-http_stub_status_module \
<span style="color: #660033;">--add-module</span>=<span style="color: #ff0000;">'/Users/&lt;username&gt;/.gem/ruby/1.8/gems/passenger-2.2.5/ext/nginx'</span>
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></td></tr></table></div>

<p>Has you can see in line <strong>20</strong> you need to add the previous output that i told you to write down.</p>
<p>The nginx install path&#8217;s, bin, etc&#8230; :</p>
<p>bin: /usr/local/sbin/nginx<br />
etc: /etc/nginx/<br />
pid: /var/run/nginx.pid<br />
document root: /usr/local/html/<br />
error log: /var/log/nginx/error_log</p>
<p>Now let&#8217;s create a demo rails application to show things working</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">rails ~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>blog</pre></td></tr></table></div>

<p>Edit /etc/nginx/nginx.conf (you can use your favorit text editor, i will be using vi)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf</pre></td></tr></table></div>

<p>Find the &#8220;http&#8221; section and add this lines</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">passenger_root <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/&lt;</span>username<span style="color: #000000; font-weight: bold;">&gt;/</span>.gem<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>passenger-2.2.5;
passenger_ruby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby;</pre></td></tr></table></div>

<p>You should get something like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">http <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    include       mime.types;
    default_type  application<span style="color: #000000; font-weight: bold;">/</span>octet-stream;
&nbsp;
    passenger_root <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/&lt;</span>username<span style="color: #000000; font-weight: bold;">&gt;/</span>.gem<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>passenger-2.2.5;
    passenger_ruby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby;
. . . .</pre></td></tr></table></div>

<p>Now adding the virtual host to nginx.conf to run ~/Sites/blog app ( /Users/<username>/Sites/blog )</p>
<p>Add a new server configuration (vhost) inside the http section of the nginx.conf file like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">  server <span style="color: #7a0874; font-weight: bold;">&#123;</span>
          passenger_enabled on;
          listen <span style="color: #000000;">80</span>;
          server_name blog;
          root <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/&lt;</span>username<span style="color: #000000; font-weight: bold;">&gt;/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>blog<span style="color: #000000; font-weight: bold;">/</span>public;
          rails_env development;
  <span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<p>Now save the file and let&#8217;s se if it&#8217;s all working.</p>
<p>Start the nginx like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>nginx</pre></td></tr></table></div>

<p>Let&#8217;s edit the /etc/host file to add the new vhost name ( blog )</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts</pre></td></tr></table></div>

<p>add this to the bottom of the file, save and exit</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">127.0.0.1       blog</pre></td></tr></table></div>

<p>Now point your browser to <strong>http://blog</strong> and you should the the standard rails app page if you experince any problem starting nginx use this command to see nginx error log</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tail</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>error_log</pre></td></tr></table></div>

<p>All done, i hope it helps you.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-love">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.unsignedint.net/blog/2009/10/17/installing-nginx-and-rails-passenger-on-mac-os-x-snow-leopard/&amp;title=Installing+nginx+and+rails+passenger+on+Mac+OS+X+Snow+Leopard" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.unsignedint.net/blog/2009/10/17/installing-nginx-and-rails-passenger-on-mac-os-x-snow-leopard/&amp;title=Installing+nginx+and+rails+passenger+on+Mac+OS+X+Snow+Leopard" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.unsignedint.net/blog/2009/10/17/installing-nginx-and-rails-passenger-on-mac-os-x-snow-leopard/&amp;title=Installing+nginx+and+rails+passenger+on+Mac+OS+X+Snow+Leopard" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.unsignedint.net/blog/2009/10/17/installing-nginx-and-rails-passenger-on-mac-os-x-snow-leopard/&amp;title=Installing+nginx+and+rails+passenger+on+Mac+OS+X+Snow+Leopard" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.unsignedint.net/blog/2009/10/17/installing-nginx-and-rails-passenger-on-mac-os-x-snow-leopard/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.unsignedint.net/blog/2009/10/17/installing-nginx-and-rails-passenger-on-mac-os-x-snow-leopard/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.unsignedint.net/blog/2009/10/17/installing-nginx-and-rails-passenger-on-mac-os-x-snow-leopard/&amp;title=Installing+nginx+and+rails+passenger+on+Mac+OS+X+Snow+Leopard" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.unsignedint.net/blog/2009/10/17/installing-nginx-and-rails-passenger-on-mac-os-x-snow-leopard/&amp;t=Installing+nginx+and+rails+passenger+on+Mac+OS+X+Snow+Leopard" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Installing+nginx+and+rails+passenger+on+Mac+OS+X+Snow+Leopard+-+http://b2l.me/snre+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.unsignedint.net/blog/2009/10/17/installing-nginx-and-rails-passenger-on-mac-os-x-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Activar o suporte para escrita NTFS no Mac OS X Snow Leopard</title>
		<link>http://www.unsignedint.net/blog/2009/10/07/activar-o-suporte-para-escrita-ntfs-no-mac-os-x-snow-leopard/</link>
		<comments>http://www.unsignedint.net/blog/2009/10/07/activar-o-suporte-para-escrita-ntfs-no-mac-os-x-snow-leopard/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 23:18:39 +0000</pubDate>
		<dc:creator>lmmendes</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[ntfs]]></category>

		<guid isPermaLink="false">http://www.unsignedint.net/blog/?p=163</guid>
		<description><![CDATA[O Snow Leopard possui nativamente suporte para escrita em partições NTFS contudo este vem desactivado por omissão. Sendo necessario por isso activar o suporte de escrita em partições NTFS explicitamente para uma dada partição.

No Terminal escreva diskutil info /Volume/nome_do_volume onde nome_do_volume é o nome da drive/unidade que aparece montada no Ambiente de Trabalho (Desktop). Da [...]]]></description>
			<content:encoded><![CDATA[<p>O Snow Leopard possui nativamente suporte para escrita em partições NTFS contudo este vem desactivado por omissão. Sendo necessario por isso activar o suporte de escrita em partições NTFS explicitamente para uma dada partição.</p>
<ol>
<li>No Terminal escreva <em>diskutil info /Volume/nome_do_volume onde nome_do_volume</em> é o nome da drive/unidade que aparece montada no Ambiente de Trabalho (Desktop). Da informação retornada pelo comando copie a string (sequência de caracteres) que se segue a UUID.</li>
<li>Faça o uma cópia de segurança do ficheiro /etc/fstab (por omissão este ficheiro não existe por isso não se preocupe se não o encontrar). Caso exista para fazer uma cópia digite <em>sudo cp /etc/fstab /etc/fstab.bak</em></li>
<li>Digite <em>sudo nano /etc/fstab</em> ( ou use o &#8216;vi&#8217; se preferir <img src='http://www.unsignedint.net/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  )</li>
<li>Digite no editor <em>UUID=string_copiada_anteriormente none ntfs rw</em></li>
<li>E pronto salve o ficheiro e reinicie o computardor, a partir deste momento o suporte de escrita para NTFS para a sua unidade já esta activado. Repira a operação para as restantes unidades que deseje activar o suporte para escrita.</li>
</ol>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-love">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.unsignedint.net/blog/2009/10/07/activar-o-suporte-para-escrita-ntfs-no-mac-os-x-snow-leopard/&amp;title=Activar+o+suporte+para+escrita+NTFS+no+Mac+OS+X+Snow+Leopard" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.unsignedint.net/blog/2009/10/07/activar-o-suporte-para-escrita-ntfs-no-mac-os-x-snow-leopard/&amp;title=Activar+o+suporte+para+escrita+NTFS+no+Mac+OS+X+Snow+Leopard" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.unsignedint.net/blog/2009/10/07/activar-o-suporte-para-escrita-ntfs-no-mac-os-x-snow-leopard/&amp;title=Activar+o+suporte+para+escrita+NTFS+no+Mac+OS+X+Snow+Leopard" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.unsignedint.net/blog/2009/10/07/activar-o-suporte-para-escrita-ntfs-no-mac-os-x-snow-leopard/&amp;title=Activar+o+suporte+para+escrita+NTFS+no+Mac+OS+X+Snow+Leopard" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.unsignedint.net/blog/2009/10/07/activar-o-suporte-para-escrita-ntfs-no-mac-os-x-snow-leopard/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.unsignedint.net/blog/2009/10/07/activar-o-suporte-para-escrita-ntfs-no-mac-os-x-snow-leopard/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.unsignedint.net/blog/2009/10/07/activar-o-suporte-para-escrita-ntfs-no-mac-os-x-snow-leopard/&amp;title=Activar+o+suporte+para+escrita+NTFS+no+Mac+OS+X+Snow+Leopard" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.unsignedint.net/blog/2009/10/07/activar-o-suporte-para-escrita-ntfs-no-mac-os-x-snow-leopard/&amp;t=Activar+o+suporte+para+escrita+NTFS+no+Mac+OS+X+Snow+Leopard" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Activar+o+suporte+para+escrita+NTFS+no+Mac+OS+X+Snow+Leopard+-+http://b2l.me/snrf+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.unsignedint.net/blog/2009/10/07/activar-o-suporte-para-escrita-ntfs-no-mac-os-x-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Social Media Revolution</title>
		<link>http://www.unsignedint.net/blog/2009/08/24/social-media-revolution/</link>
		<comments>http://www.unsignedint.net/blog/2009/08/24/social-media-revolution/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 07:27:27 +0000</pubDate>
		<dc:creator>unsignedint</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[info]]></category>
		<category><![CDATA[social]]></category>

		<guid isPermaLink="false">http://unsignedint.net/blog/?p=162</guid>
		<description><![CDATA[





		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Share this on Reddit
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Share this on Technorati
		
		
			Subscribe to the comments for this post?
		
		
			Add this to Google Bookmarks
		
		
			Share this on Facebook
		
		
			Tweet This!
		





]]></description>
			<content:encoded><![CDATA[<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/sIFYPQjYhv8&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/sIFYPQjYhv8&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-love">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.unsignedint.net/blog/2009/08/24/social-media-revolution/&amp;title=Social+Media+Revolution" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.unsignedint.net/blog/2009/08/24/social-media-revolution/&amp;title=Social+Media+Revolution" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.unsignedint.net/blog/2009/08/24/social-media-revolution/&amp;title=Social+Media+Revolution" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.unsignedint.net/blog/2009/08/24/social-media-revolution/&amp;title=Social+Media+Revolution" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.unsignedint.net/blog/2009/08/24/social-media-revolution/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.unsignedint.net/blog/2009/08/24/social-media-revolution/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.unsignedint.net/blog/2009/08/24/social-media-revolution/&amp;title=Social+Media+Revolution" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.unsignedint.net/blog/2009/08/24/social-media-revolution/&amp;t=Social+Media+Revolution" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Social+Media+Revolution+-+http://b2l.me/snrg+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.unsignedint.net/blog/2009/08/24/social-media-revolution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Abrir links "mailto" no GMail usando Firefox</title>
		<link>http://www.unsignedint.net/blog/2009/08/09/abrir-links-mailto-no-gmail-usando-firefox/</link>
		<comments>http://www.unsignedint.net/blog/2009/08/09/abrir-links-mailto-no-gmail-usando-firefox/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 20:57:14 +0000</pubDate>
		<dc:creator>unsignedint</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[GMail]]></category>
		<category><![CDATA[Mailto]]></category>

		<guid isPermaLink="false">http://unsignedint.net/blog/?p=103</guid>
		<description><![CDATA[Há uns dias estava a discutir com uns colegas meus a parvoíce de nós terem pedido no desenvolvimento de um projecto que colocássemos um endereço de e-mail de uma pagina web &#8220;um link para um e-mail de forma este abrir directamente no outlook dos visitantes&#8221;&#8230; é escusado dizer que deu assunto para uns valentes minutos [...]]]></description>
			<content:encoded><![CDATA[<p>Há uns dias estava a discutir com uns colegas meus a parvoíce de nós terem pedido no desenvolvimento de um projecto que colocássemos um endereço de e-mail de uma pagina web &#8220;um link para um e-mail de forma este abrir directamente no outlook dos visitantes&#8221;&#8230; é escusado dizer que deu assunto para uns valentes minutos de gozo&#8230;</p>
<p>Mas historias a parte andei a então a pesquisar como mudar o evento/protocolo utilizado no Firefox 3 de forma a que ele abri-se o GMail sempre que alguém clica-se num link com &#8220;mailto:&#8221;  e foi assim que descobri <a href='http://gmailblog.blogspot.com/2008/07/power-tip-set-gmail-as-your-default.html'>esta</a> dica no blog do GMail contudo não funcionou logo comigo, assim sendo seguem-se os passos que segui para conseguir a por a dica a funcionar como deve ser.<br />
<span id="more-103"></span><br />
<strong>1)</strong> Entre na sua conta de GMail</p>
<p><strong>2)</strong> Na barra de endereço do browser digite o seguinte, substituindo por completo o endereço que lá se encontra por:</p>
<pre>
javascript:window.navigator.registerProtocolHandler("mailto","https://
mail.google.com/mail/?extsrc=mailto&#038;url=%s","Gmail")
</pre>
<p>E pressione &#8220;<em>Enter</em>&#8220;.</p>
<p><strong>3)</strong> O Firefox vai pedir para adicionar o GMail como o gestor de e-mail por omissão como mostra a figura, adicione a aplicação.</p>
<p><img src="http://www.unsignedint.net/blog/wp-content/uploads/2009/08/gmailhandlerbuttonwin.png" alt="gmailhandlerbuttonwin" title="gmailhandlerbuttonwin" width="494" height="118" class="alignnone size-full wp-image-113" /></p>
<p><strong>4)</strong> Agora para testar se ficou tudo a funcionar clique no link em baixo para teste, é e-mail fictício:</p>
<p><a href="mailto:sapo.cocas@sapo.pt">mailto:sapo.cocas@sapo.pt</a> <img src='http://www.unsignedint.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Agora se nada aconteceu, ou se o seu programa por omissão continuou a abrir como por exemplo ou Outlook ou Firebird invés do GMail como seria suposto siga para o passo 5 caso contrario, se foi redireccionado com sucesso para o GMail fique por aqui.</p>
<p><strong>5)</strong> Na barra de endereço do Firefox digite <code>about:config</code> e verifique se o campo: <em><code>network.protocol-handler.external.mailto</code></em> esta definido com o seu valor por omissão <code>true</code> como mostra a figura:</p>
<p><img src="http://www.unsignedint.net/blog/wp-content/uploads/2009/08/firefox_about_config_external_mailto.png" alt="firefox_about_config_external_mailto" title="firefox_about_config_external_mailto" width="561" height="198" class="alignnone size-full wp-image-120" /></p>
<p><strong>6)</strong> Agora para terminar vá ao menu do Firefox, Ferramentas (Tools) -> Opções (Options) -> Applications (Aplicações) e digite na janela no campo de pesquisa <code>mailto</code> como mostra a figura.</p>
<p><img src="http://www.unsignedint.net/blog/wp-content/uploads/2009/08/firefox_tools_options_applications_mailto.png" alt="Firefox Tools -&gt; Options -&gt; Applications -&gt; Filter: mailto" title="Firefox Tools -&gt; Options -&gt; Applications -&gt; Filter: mailto" width="469" height="440" class="alignnone size-full wp-image-124" /></p>
<p>Na coluna da acção (Action) a executar seleccione do menu o GMail e pressione OK.</p>
<p>E prontos é tudo, repita o passo <em>4</em> para testar se tudo ficou a funcionar como deve ser.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-love">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.unsignedint.net/blog/2009/08/09/abrir-links-mailto-no-gmail-usando-firefox/&amp;title=Abrir+links+%26quot%3Bmailto%26quot%3B+no+GMail+usando+Firefox" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.unsignedint.net/blog/2009/08/09/abrir-links-mailto-no-gmail-usando-firefox/&amp;title=Abrir+links+%26quot%3Bmailto%26quot%3B+no+GMail+usando+Firefox" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.unsignedint.net/blog/2009/08/09/abrir-links-mailto-no-gmail-usando-firefox/&amp;title=Abrir+links+%26quot%3Bmailto%26quot%3B+no+GMail+usando+Firefox" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.unsignedint.net/blog/2009/08/09/abrir-links-mailto-no-gmail-usando-firefox/&amp;title=Abrir+links+%26quot%3Bmailto%26quot%3B+no+GMail+usando+Firefox" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.unsignedint.net/blog/2009/08/09/abrir-links-mailto-no-gmail-usando-firefox/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.unsignedint.net/blog/2009/08/09/abrir-links-mailto-no-gmail-usando-firefox/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.unsignedint.net/blog/2009/08/09/abrir-links-mailto-no-gmail-usando-firefox/&amp;title=Abrir+links+%26quot%3Bmailto%26quot%3B+no+GMail+usando+Firefox" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.unsignedint.net/blog/2009/08/09/abrir-links-mailto-no-gmail-usando-firefox/&amp;t=Abrir+links+%26quot%3Bmailto%26quot%3B+no+GMail+usando+Firefox" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Abrir+links+%26quot%3Bmailto%26quot%3B+no+GMail+usando+Firefox+-+http://b2l.me/snrh+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.unsignedint.net/blog/2009/08/09/abrir-links-mailto-no-gmail-usando-firefox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sapo Fotos jQuery Plugin</title>
		<link>http://www.unsignedint.net/blog/2009/08/08/sapo-fotos-jquery-plugin/</link>
		<comments>http://www.unsignedint.net/blog/2009/08/08/sapo-fotos-jquery-plugin/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 11:03:17 +0000</pubDate>
		<dc:creator>unsignedint</dc:creator>
				<category><![CDATA[Labs]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Sapo Fotos]]></category>

		<guid isPermaLink="false">http://unsignedint.net/blog/?p=74</guid>
		<description><![CDATA[Este é o meu primeiro plugin para o JQuery por isso não esperem de mais foi feito em poucas horas enquanto aprendia como escrever um plugin para o jQuery   (conto em escrever um post dedicado a como escrever um plugin para o jQuery, mas tudo a seu tempo).
Vamos começar pelo básico, para colocarmos [...]]]></description>
			<content:encoded><![CDATA[<p>Este é o meu primeiro plugin para o JQuery por isso não esperem de mais foi feito em poucas horas enquanto aprendia como escrever um plugin para o jQuery <img src='http://www.unsignedint.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  (conto em escrever um post dedicado a como escrever um plugin para o jQuery, mas tudo a seu tempo).</p>
<p>Vamos começar pelo básico, para colocarmos o plugin a funcionar temos em primeiro que incluir a biblioteca do  jQuery e fazer o mesmo com a do Sapo Fotos como se pode ver no código que se segue:</p>
<pre name='code' class='xhtml'>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" ></script>
<script src="jquery.sapofotos-0.1-min.js" type="text/javascript" ></script>
</pre>
<p><span id="more-74"></span><br />
Agora basta adicionarmos um elemento ao <em>body</em> na nossa pagina para ser populado com a galaeria de fotos, como por exemplo uma div com um <em>id</em> com o valor <em>galeria-sapo-fotos</em> como se vê no exemplo seguinte:</p>
<pre name='code' class='xhtml'>
<div id='galeria-sapo-fotos'></div>
</pre>
<p>Por fim para por tudo a funcionar basta invocar o script, o exemplo que se segue, vamos exibir fotos com a <em>tag</em> com o valor de <em>serra</em> dentro da <em>div</em> com a <em>id</em> <em>galeria-sapo-fotos</em></p>
<pre name='code' class='javascript'>
<script>
$('#galeria-sapo-fotos').sapoFotos({
   tag: 'serra'
});
</script>
</pre>
<p>O sapoFotos aceita vários parâmetros como entrada eles são:</p>
<p>user: &#8220;nome de um utilizador do sapo fotos&#8221;<br />
tag: &#8220;uma ou mais tags&#8221;<br />
limit: &#8220;o numero maximo de tumbnails a exibir&#8221;<br />
size: &#8220;dimensão dos tumbnails&#8221;</p>
<p>É tudo como se pode ver é bastante simples utilizar esta biblioteca.</p>
<p>Download: <img src="http://www.unsignedint.net/blog/wp-content/uploads/2009/08/Download-32x32.png" alt="Download File" title="Download File" width="32" height="32" class="size-full wp-image-90" /><a href='http://unsignedint.net/labs/sapofotos/jquery.sapofotos-0.1.zip' onClick="pageTracker._trackEvent('Labs', 'Sapo Fotos jQuery Plugin', 'Library download');">Sapo Fotos jQuery Plugin v0.1</a></p>
<p>Demostração: [<a href='http://unsignedint.net/labs/sapofotos/demo/demo-sapo.fotos.jquerty.html' onClick="pageTracker._trackEvent('Labs', 'Sapo Fotos jQuery Plugin', 'Live! Demo');">Demonstração Online</a>]</p>
<p>Agradeço que deixem nos comentários os erros encontrados ou alguma sugestão.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-love">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.unsignedint.net/blog/2009/08/08/sapo-fotos-jquery-plugin/&amp;title=Sapo+Fotos+jQuery+Plugin" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.unsignedint.net/blog/2009/08/08/sapo-fotos-jquery-plugin/&amp;title=Sapo+Fotos+jQuery+Plugin" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.unsignedint.net/blog/2009/08/08/sapo-fotos-jquery-plugin/&amp;title=Sapo+Fotos+jQuery+Plugin" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.unsignedint.net/blog/2009/08/08/sapo-fotos-jquery-plugin/&amp;title=Sapo+Fotos+jQuery+Plugin" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.unsignedint.net/blog/2009/08/08/sapo-fotos-jquery-plugin/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.unsignedint.net/blog/2009/08/08/sapo-fotos-jquery-plugin/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.unsignedint.net/blog/2009/08/08/sapo-fotos-jquery-plugin/&amp;title=Sapo+Fotos+jQuery+Plugin" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.unsignedint.net/blog/2009/08/08/sapo-fotos-jquery-plugin/&amp;t=Sapo+Fotos+jQuery+Plugin" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Sapo+Fotos+jQuery+Plugin+-+http://b2l.me/snrj+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.unsignedint.net/blog/2009/08/08/sapo-fotos-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Error: #1005 – Can't create table '….#sql-e7c_89.frm' (errno: 150)</title>
		<link>http://www.unsignedint.net/blog/2009/08/01/mysql-error-1005-cant-create-table-sql-e7c_89-frm-errno-150/</link>
		<comments>http://www.unsignedint.net/blog/2009/08/01/mysql-error-1005-cant-create-table-sql-e7c_89-frm-errno-150/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 23:28:04 +0000</pubDate>
		<dc:creator>unsignedint</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[foreign key]]></category>
		<category><![CDATA[innodb]]></category>

		<guid isPermaLink="false">http://unsignedint.net/blog/?p=40</guid>
		<description><![CDATA[Se estiverem a tentar criar uma relação entre duas tabelas usando o MySQL e obtiverem o seguinte erro:

#1005 - Can't create table '.\twitta\#sql-e7c_89.frm' (errno: 150)


Experimentem activar o modo de debug do motor de innoDB de forma a obter mais informações sobre o erro e a poderem-no perceber.

Para tal digitem na vossa consola:

mysql> SHOW ENGINE INNODB [...]]]></description>
			<content:encoded><![CDATA[<p>Se estiverem a tentar criar uma relação entre duas tabelas usando o MySQL e obtiverem o seguinte erro:</p>
<pre name="code" class="sql">
#1005 - Can't create table '.\twitta\#sql-e7c_89.frm' (errno: 150)
</pre>
<p>
Experimentem activar o modo de debug do motor de <strong>innoDB</strong> de forma a obter mais informações sobre o erro e a poderem-no perceber.<br />
<span id="more-40"></span><br />
Para tal digitem na vossa consola:</p>
<pre name="code" class="sql">
mysql> SHOW ENGINE INNODB STATUS;
</pre>
<p>E agora fazendo scroll para para cima sobre o output apresentado podem ver uma mensagem de erro mais detalhada. no meu caso foi:<br />
</p>
<pre name="code" class="sql">
------------------------
LATEST FOREIGN KEY ERROR
------------------------
090801 23:41:40 Error in foreign key constraint of table twitta/#sql-e7c_8a:
 FOREIGN KEY ( `user_id` ) REFERENCES `users` ( `id` ) ON DELETE CASCADE:
Cannot find an index in the referenced table where the
referenced columns appear as the first columns, or column types
in the table and the referenced table do not match for constraint.
Note that the internal storage type of ENUM and SET changed in
tables created with >= InnoDB-4.1.12, and such columns in old tables
cannot be referenced by such columns in new tables.
See http://dev.mysql.com/doc/refman/5.0/en/innodb-foreign-key-constraints.html
for correct foreign key definition.
</pre>
<p>Depois de consultar a documentação que o modo de debug sugere, rapidamente me apercebi do meu erro. A tabela onde estava criar a chave estrangeira o campo referenciado não estava indexado. Como se pode ler na documentação:</p>
<pre>
InnoDB requires indexes on foreign keys and referenced keys so that foreign key
checks can be fast and not require a table scan. In the referencing table,
there must be an index where the foreign key columns are listed as the first
columns in the same order. Such an index is created on the referencing table
automatically if it does not exist. (This is in contrast to some older versions,
in which indexes had to be created explicitly or the creation of foreign key
constraints would fail.) index_name, if given, is used as described previously
</pre>
<p>Espero que isto vós ajude.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-love">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.unsignedint.net/blog/2009/08/01/mysql-error-1005-cant-create-table-sql-e7c_89-frm-errno-150/&amp;title=MySQL+Error%3A+%231005+-+Can%26%23039%3Bt+create+table+%26%23039%3B....%23sql-e7c_89.frm%26%23039%3B+%28errno%3A+150%29" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.unsignedint.net/blog/2009/08/01/mysql-error-1005-cant-create-table-sql-e7c_89-frm-errno-150/&amp;title=MySQL+Error%3A+%231005+-+Can%26%23039%3Bt+create+table+%26%23039%3B....%23sql-e7c_89.frm%26%23039%3B+%28errno%3A+150%29" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.unsignedint.net/blog/2009/08/01/mysql-error-1005-cant-create-table-sql-e7c_89-frm-errno-150/&amp;title=MySQL+Error%3A+%231005+-+Can%26%23039%3Bt+create+table+%26%23039%3B....%23sql-e7c_89.frm%26%23039%3B+%28errno%3A+150%29" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.unsignedint.net/blog/2009/08/01/mysql-error-1005-cant-create-table-sql-e7c_89-frm-errno-150/&amp;title=MySQL+Error%3A+%231005+-+Can%26%23039%3Bt+create+table+%26%23039%3B....%23sql-e7c_89.frm%26%23039%3B+%28errno%3A+150%29" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.unsignedint.net/blog/2009/08/01/mysql-error-1005-cant-create-table-sql-e7c_89-frm-errno-150/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.unsignedint.net/blog/2009/08/01/mysql-error-1005-cant-create-table-sql-e7c_89-frm-errno-150/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.unsignedint.net/blog/2009/08/01/mysql-error-1005-cant-create-table-sql-e7c_89-frm-errno-150/&amp;title=MySQL+Error%3A+%231005+-+Can%26%23039%3Bt+create+table+%26%23039%3B....%23sql-e7c_89.frm%26%23039%3B+%28errno%3A+150%29" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.unsignedint.net/blog/2009/08/01/mysql-error-1005-cant-create-table-sql-e7c_89-frm-errno-150/&amp;t=MySQL+Error%3A+%231005+-+Can%26%23039%3Bt+create+table+%26%23039%3B....%23sql-e7c_89.frm%26%23039%3B+%28errno%3A+150%29" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=MySQL+Error%3A+%231005+-+Can%26%23039%3Bt+create+table+%26%23039%3B....%23sql-e7c_89.frm%26%23039%3B+%28er%5B..%5D+-+http://b2l.me/snrk+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.unsignedint.net/blog/2009/08/01/mysql-error-1005-cant-create-table-sql-e7c_89-frm-errno-150/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
