<?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>Chronosbox &#187; Gentoo</title>
	<atom:link href="http://chronosbox.org/blog/categories/linux/gentoo/feed" rel="self" type="application/rss+xml" />
	<link>http://chronosbox.org/blog</link>
	<description>idéias e dicas de uma mente insana trabalhando com TI</description>
	<lastBuildDate>Sun, 30 Oct 2011 04:57:21 +0000</lastBuildDate>
	<language>pt</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Migrando bases de dados LATIN1 para UTF-8 com o PostgreSQL</title>
		<link>http://chronosbox.org/blog/moving-postgresql-databases-from-latim1-to-utf8</link>
		<comments>http://chronosbox.org/blog/moving-postgresql-databases-from-latim1-to-utf8#comments</comments>
		<pubDate>Sat, 06 Feb 2010 05:59:22 +0000</pubDate>
		<dc:creator>Felipe 'chronos' Prenholato</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Debian/Ubuntu]]></category>
		<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Servidores]]></category>
		<category><![CDATA[clusters]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[iso-8859-1]]></category>
		<category><![CDATA[latin1]]></category>
		<category><![CDATA[pgsql]]></category>
		<category><![CDATA[psql]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[utf-8]]></category>
		<category><![CDATA[utf8]]></category>

		<guid isPermaLink="false">http://chronosbox.org/blog/?p=264</guid>
		<description><![CDATA[Nos dias atuais é um padrão que todos os sites e servidores web rodem ao menos com UTF-8 como encoding default, entretanto pode-se encontrar casos onde ainda se roda LATIN1 ou até mesmo ASCII. O caso que tratamos hoje é de um servidor Debian, versão 5.0.3 (lenny), que usava o encode LATIN1 quando instalado e [...]]]></description>
			<content:encoded><![CDATA[<p>Nos dias atuais é um padrão que todos os sites e servidores web rodem ao menos com UTF-8 como encoding default, entretanto pode-se encontrar casos onde ainda se roda LATIN1 ou até mesmo ASCII.</p>
<p>O caso que tratamos hoje é de um servidor Debian, versão 5.0.3 (lenny), que usava o encode LATIN1 quando instalado e configurado o Postgresql, e não me deixava criar uma base de dados UTF-8, gerando o seguinte erro:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;color: #FCFFBA;">debian:~<span style="color: #666666; font-style: italic;"># su postgres -c 'createdb teste3  -E UTF-8'</span>
createdb: database creation failed: ERROR:  encoding UTF8 does not match server<span style="color: #ff0000;">'s locale en_US
DETAIL:  The server'</span>s LC_CTYPE setting requires encoding LATIN1.</pre></div></div>

<p><span id="more-264"></span></p>
<h3>Porque??</h3>
<p>O Postgresql, quando roda pela primeira vez, cria um cluster usando o encode default do sistema, e após feito isso, não se pode alterar o encode do cluster. O cluster default é o main, em todas as intalações que eu vi. </p>
<p>No caso deste servidor o encode default (locales) era en_US, que para o Debian significa en_US.ISO-8859-1. Por default o Debian Lenny, nas minhas instalações do zero, usa en_US.UTF-8, então o servidor provavelmente deveria ser um antigo Debian Etch atualizado.</p>
<h3>A solução</h3>
<p>Depois de alguma pesquisa, descobri que, após configurar o encode do servidor para usar UTF-8, poderia criar um novo cluster que suportasse tal encode.</p>
<p>Vamos ao passo a passo da solução do problema.</p>
<ul>
<li><strong>Criando um novo cluster:</strong> Para criar um novo cluster no Debian, é bastante simples:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;color: #FCFFBA;">debian:~<span style="color: #666666; font-style: italic;"># pg_createcluster 8.3 utf8_cluster</span>
Creating new cluster <span style="color: #7a0874; font-weight: bold;color: #CCC;">&#40;</span>configuration: <span style="color: #000000; font-weight: bold;color: #CCC;">/</span>etc<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>postgresql<span style="color: #000000; font-weight: bold;color: #CCC;">/</span><span style="color: #000000;color: #DDD;">8.3</span><span style="color: #000000; font-weight: bold;color: #CCC;">/</span>utf8_cluster, data: <span style="color: #000000; font-weight: bold;color: #CCC;">/</span>var<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>lib<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>postgresql<span style="color: #000000; font-weight: bold;color: #CCC;">/</span><span style="color: #000000;color: #DDD;">8.3</span><span style="color: #000000; font-weight: bold;color: #CCC;">/</span>utf8_cluster<span style="color: #7a0874; font-weight: bold;color: #CCC;">&#41;</span>...
Moving configuration <span style="color: #c20cb9; font-weight: bold;color: #577A61;">file</span> <span style="color: #000000; font-weight: bold;color: #CCC;">/</span>var<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>lib<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>postgresql<span style="color: #000000; font-weight: bold;color: #CCC;">/</span><span style="color: #000000;color: #DDD;">8.3</span><span style="color: #000000; font-weight: bold;color: #CCC;">/</span>utf8_cluster<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>postgresql.conf to <span style="color: #000000; font-weight: bold;color: #CCC;">/</span>etc<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>postgresql<span style="color: #000000; font-weight: bold;color: #CCC;">/</span><span style="color: #000000;color: #DDD;">8.3</span><span style="color: #000000; font-weight: bold;color: #CCC;">/</span>utf8_cluster...
Moving configuration <span style="color: #c20cb9; font-weight: bold;color: #577A61;">file</span> <span style="color: #000000; font-weight: bold;color: #CCC;">/</span>var<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>lib<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>postgresql<span style="color: #000000; font-weight: bold;color: #CCC;">/</span><span style="color: #000000;color: #DDD;">8.3</span><span style="color: #000000; font-weight: bold;color: #CCC;">/</span>utf8_cluster<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>pg_hba.conf to <span style="color: #000000; font-weight: bold;color: #CCC;">/</span>etc<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>postgresql<span style="color: #000000; font-weight: bold;color: #CCC;">/</span><span style="color: #000000;color: #DDD;">8.3</span><span style="color: #000000; font-weight: bold;color: #CCC;">/</span>utf8_cluster...
Moving configuration <span style="color: #c20cb9; font-weight: bold;color: #577A61;">file</span> <span style="color: #000000; font-weight: bold;color: #CCC;">/</span>var<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>lib<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>postgresql<span style="color: #000000; font-weight: bold;color: #CCC;">/</span><span style="color: #000000;color: #DDD;">8.3</span><span style="color: #000000; font-weight: bold;color: #CCC;">/</span>utf8_cluster<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>pg_ident.conf to <span style="color: #000000; font-weight: bold;color: #CCC;">/</span>etc<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>postgresql<span style="color: #000000; font-weight: bold;color: #CCC;">/</span><span style="color: #000000;color: #DDD;">8.3</span><span style="color: #000000; font-weight: bold;color: #CCC;">/</span>utf8_cluster...
Configuring postgresql.conf to use port <span style="color: #000000;color: #DDD;">5433</span>...
&nbsp;
debian:~<span style="color: #666666; font-style: italic;"># /etc/init.d/postgresql-8.3 restart</span></pre></div></div>

<p>O cluster vai rodar na primeira porta livre que achar depois da 5432, a não ser que você especifique. Para ter efeito, reinicia-se o Postgresql.</li>
<li><strong>Criando o usuário:</strong> Agora crie o usuário da base de dados, recomendo o mesmo nome e senha além de editar sua autenticação para trust no pg_hba.conf do seu cluster:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;color: #FCFFBA;">debian:~<span style="color: #666666; font-style: italic;"># su postgres -c &quot;createuser -P pyuser -p 5433&quot;</span>
Enter password <span style="color: #000000; font-weight: bold;color: #B83A24;">for</span> new role:
Enter it again:
Shall the new role be a superuser? <span style="color: #7a0874; font-weight: bold;color: #CCC;">&#40;</span>y<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>n<span style="color: #7a0874; font-weight: bold;color: #CCC;">&#41;</span> n
Shall the new role be allowed to create databases? <span style="color: #7a0874; font-weight: bold;color: #CCC;">&#40;</span>y<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>n<span style="color: #7a0874; font-weight: bold;color: #CCC;">&#41;</span> n
Shall the new role be allowed to create <span style="color: #c20cb9; font-weight: bold;color: #577A61;">more</span> new roles? <span style="color: #7a0874; font-weight: bold;color: #CCC;">&#40;</span>y<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>n<span style="color: #7a0874; font-weight: bold;color: #CCC;">&#41;</span> n</pre></div></div>

</li>
<li><strong>Migrando as bases:</strong> Agora você deve migrar as bases de dados. Primeiro crie ela e depois faça um dump seguido de um psql, direto na linha de comando. Siga o exemplo:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;color: #FCFFBA;">debian:~<span style="color: #666666; font-style: italic;"># su postgres -c &quot;createdb teste3 -e -p 5433 -O pyuser&quot;</span>
CREATE DATABASE teste3 OWNER pyuser;</pre></div></div>

<p>Agora liste a base de dados:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;color: #FCFFBA;">debian:~<span style="color: #666666; font-style: italic;"># su postgres -c &quot;psql -l -p 5433&quot;</span>
        List of databases
   Name    <span style="color: #000000; font-weight: bold;color: #CCC;">|</span>  Owner   <span style="color: #000000; font-weight: bold;color: #CCC;">|</span> Encoding
-----------+----------+----------
 postgres  <span style="color: #000000; font-weight: bold;color: #CCC;">|</span> postgres <span style="color: #000000; font-weight: bold;color: #CCC;">|</span> UTF8
 template0 <span style="color: #000000; font-weight: bold;color: #CCC;">|</span> postgres <span style="color: #000000; font-weight: bold;color: #CCC;">|</span> UTF8
 template1 <span style="color: #000000; font-weight: bold;color: #CCC;">|</span> postgres <span style="color: #000000; font-weight: bold;color: #CCC;">|</span> UTF8	
 teste3    <span style="color: #000000; font-weight: bold;color: #CCC;">|</span> pyuser   <span style="color: #000000; font-weight: bold;color: #CCC;">|</span> UTF8
<span style="color: #7a0874; font-weight: bold;color: #CCC;">&#40;</span><span style="color: #000000;color: #DDD;">4</span> rows<span style="color: #7a0874; font-weight: bold;color: #CCC;">&#41;</span></pre></div></div>

<p>Após criar a base de dados, então faremos a população dela, atenção quanto as portas:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;color: #FCFFBA;">debian:~<span style="color: #666666; font-style: italic;"># pg_dump -U pyuser teste3 | psql -U pyuser -p 5433 teste3</span></pre></div></div>

</li>
<li><strong>Configurando sua aplicação:</strong> Esta é a parte mais simples, apenas altere a porta da sua aplicação para a porta do novo cluster.</li>
</ul>
<p>Repita os passos da criação da base de dados para cada base que precisa ser movida, e pronto, tudo funcionando agora com suporte a UTF-8.</p>
]]></content:encoded>
			<wfw:commentRss>http://chronosbox.org/blog/moving-postgresql-databases-from-latim1-to-utf8/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Configurando múltiplos ambientes Python</title>
		<link>http://chronosbox.org/blog/setting-up-multiple-python-envrionments</link>
		<comments>http://chronosbox.org/blog/setting-up-multiple-python-envrionments#comments</comments>
		<pubDate>Wed, 27 Jan 2010 02:20:01 +0000</pubDate>
		<dc:creator>Felipe 'chronos' Prenholato</dc:creator>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[2.4]]></category>
		<category><![CDATA[2.5]]></category>
		<category><![CDATA[2.6]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[versions]]></category>

		<guid isPermaLink="false">http://chronosbox.org/blog/?p=259</guid>
		<description><![CDATA[Nota: Olá meus caros leitores, apesar do ChronosBox ser um ótimo Blog, eu estou focando meus esforços em um blog conjunto com meu amigo Handrus Nogueira, portanto não deixem de visitar o Dev With Passion! Todos os posts do ChronosBox estarão no Dev With Passion, exceto por alguns comentários novos. Abraços! Múltiplos ambientes python Trabalhar [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Nota</strong>: Olá meus caros leitores, apesar do ChronosBox ser um ótimo Blog, eu estou focando meus esforços em um blog conjunto com meu amigo <a href="http://twitter.com/handrus">Handrus Nogueira</a>, portanto não deixem de visitar o <a href="http://devwithpassion.com">Dev With Passion</a>! Todos os posts do ChronosBox estarão no <a href="http://devwithpassion.com">Dev With Passion</a>, exceto por alguns comentários novos. Abraços!</em></p>
<h3>Múltiplos ambientes python</h3>
<p>Trabalhar com várias versões de ambientes python tem se tornado algo comum em minha vida, e acredito que um meio fácil de &#8216;setar&#8217; estes ambientes seja algo útil e  não tão simples para a maioria das pessoas.</p>
<p>Eu criei um simples bash script que seta este &#8216;ambiente&#8217;, trata-se de uma função que você cria no seu <em><strong>.bash_profile</strong></em>. Executa-se ela com a versão do python em seguida e pronto, seu ambiente esta configurado. Vamos ver no código como eu fiz, o script está com comentários em inglês:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;color: #FCFFBA;"><span style="color: #7a0874; font-weight: bold;color: #8FB394;">export</span> <span style="color: #007800;">ORIGINALPATH</span>=<span style="color: #007800;color: blue;">$PATH</span>
loadpyenv<span style="color: #7a0874; font-weight: bold;color: #CCC;">&#40;</span><span style="color: #7a0874; font-weight: bold;color: #CCC;">&#41;</span><span style="color: #7a0874; font-weight: bold;color: #CCC;">&#123;</span>
    <span style="color: #666666; font-style: italic;"># $PV is our control variable, get from $1, first argument on shell</span>
    <span style="color: #666666; font-style: italic;"># anything that you need to put here and depend for python version ${PV} is your var ;)</span>
    <span style="color: #7a0874; font-weight: bold;color: #8FB394;">export</span> <span style="color: #007800;">PV</span>=<span style="color: #007800;">$1</span>
    <span style="color: #7a0874; font-weight: bold;color: #8FB394;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;color: #666666;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>:: Setting environ to use python <span style="color: #007800;">$PV</span>&quot;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;"># Put here various aliases that you can use</span>
    <span style="color: #666666; font-style: italic;"># put a python alias</span>
    <span style="color: #7a0874; font-weight: bold;color: #8FB394;">alias</span> <span style="color: #007800;">python</span>=<span style="color: #ff0000;color: #666666;">&quot;python<span style="color: #007800;">${PV}</span>&quot;</span>
    <span style="color: #666666; font-style: italic;"># m and runserver a kick alias for Django common actions</span>
    <span style="color: #7a0874; font-weight: bold;color: #8FB394;">alias</span> <span style="color: #007800;">m</span>=<span style="color: #ff0000;color: #666666;">&quot;python<span style="color: #007800;">${PV}</span> manage.py&quot;</span>
    <span style="color: #7a0874; font-weight: bold;color: #8FB394;">alias</span> <span style="color: #007800;">runserver</span>=<span style="color: #ff0000;color: #666666;">&quot;python<span style="color: #007800;">${PV}</span> manage.py runserver :8000&quot;</span>
    <span style="color: #666666; font-style: italic;"># easy and fast install of python packages, in right path with localpyinstall</span>
    <span style="color: #7a0874; font-weight: bold;color: #8FB394;">alias</span> <span style="color: #007800;">localpyinstall</span>=<span style="color: #ff0000;color: #666666;">&quot;python<span style="color: #007800;">${PV}</span> setup.py install --prefix=~/.py/<span style="color: #007800;">${PV}</span>/&quot;</span>
    <span style="color: #7a0874; font-weight: bold;color: #8FB394;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;color: #666666;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>:: New aliases&quot;</span>
    <span style="color: #666666; font-style: italic;"># print aliases :)</span>
    <span style="color: #7a0874; font-weight: bold;color: #8FB394;">alias</span> python m runserver localpyinstall
&nbsp;
    <span style="color: #7a0874; font-weight: bold;color: #8FB394;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;color: #666666;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>:: New PATH&quot;</span>
    <span style="color: #666666; font-style: italic;"># setup aplications path, be careful about not use $ORIGINALPATH.</span>
    <span style="color: #666666; font-style: italic;">#</span>
    <span style="color: #666666; font-style: italic;"># I use a path structure like that:</span>
    <span style="color: #666666; font-style: italic;"># ~/.py/</span>
    <span style="color: #666666; font-style: italic;"># |-- 2.4</span>
    <span style="color: #666666; font-style: italic;"># |-- 2.5</span>
    <span style="color: #666666; font-style: italic;"># `-- 2.6</span>
    <span style="color: #7a0874; font-weight: bold;color: #8FB394;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #ff0000;color: #666666;">&quot;<span style="color: #007800;">${HOME}</span>/.py/<span style="color: #007800;">${PV}</span>/bin/:<span style="color: #007800;">${ORIGINALPATH}</span>&quot;</span>
    <span style="color: #7a0874; font-weight: bold;color: #8FB394;">echo</span> <span style="color: #007800;color: blue;">$PATH</span>
    <span style="color: #7a0874; font-weight: bold;color: #8FB394;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;color: #666666;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>:: New PYTHON PATH&quot;</span>
    <span style="color: #666666; font-style: italic;"># setup new python path, don't need to add system wide path, just our custom paths</span>
    <span style="color: #7a0874; font-weight: bold;color: #8FB394;">export</span> <span style="color: #007800;">PYTHONPATH</span>=<span style="color: #ff0000;color: #666666;">&quot;<span style="color: #007800;">${HOME}</span>/.py/<span style="color: #007800;">${PV}</span>/lib/python<span style="color: #007800;">${PV}</span>/site-packages/&quot;</span>
    <span style="color: #666666; font-style: italic;"># print more some info</span>
    python<span style="color: #007800;color: blue;">$PV</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;color: #666666;">&quot;import sys;print sys.path&quot;</span>
    <span style="color: #7a0874; font-weight: bold;color: #8FB394;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;color: #666666;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>:: Django version &amp;amp; file&quot;</span>
    python<span style="color: #007800;color: blue;">$PV</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;color: #666666;">&quot;import django;print 'version %s ... file %s' % (django.get_version(),django.__file__);&quot;</span>
<span style="color: #7a0874; font-weight: bold;color: #CCC;">&#125;</span></pre></div></div>

<p>Agora crie uma estrutura de diretórios com o comando:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;color: #FCFFBA;">$ <span style="color: #c20cb9; font-weight: bold;color: #577A61;">mkdir</span> <span style="color: #660033;">-pv</span> ~<span style="color: #000000; font-weight: bold;color: #CCC;">/</span>.py<span style="color: #000000; font-weight: bold;color: #CCC;">/</span><span style="color: #7a0874; font-weight: bold;color: #CCC;">&#123;</span><span style="color: #000000;color: #DDD;">2.4</span>,<span style="color: #000000;color: #DDD;">2.5</span>,<span style="color: #000000;color: #DDD;">2.6</span><span style="color: #7a0874; font-weight: bold;color: #CCC;">&#125;</span></pre></div></div>

<p>E cada vez que for usar uma versão diferente do python, carregue com:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;color: #FCFFBA;">$ loadpyenv VERSÃO</pre></div></div>

<p>Onde VERSÃO é a versão escolhida do python.</p>
<h3>Várias versões do Python no <a href="http://www.gentoo.org">Gentoo</a></h3>
<p>O <a href="http://www.gentoo.org">Gentoo Linux</a>, minha distro do dia a dia, me dá um bom bonus quanto a múltiplas versões do python, configure no /etc/make.conf a seguinte linha:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;color: #FCFFBA;"><span style="color: #007800;">USE_PYTHON</span>=<span style="color: #ff0000;color: #666666;">&quot;2.4 2.5 2.6&quot;</span></pre></div></div>

<p>Instale os pythons nas versões escolhidas e execute o seguinte comando para re-compilar seus pacotes:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;color: #FCFFBA;">emerge $<span style="color: #7a0874; font-weight: bold;color: #CCC;">&#40;</span>eix <span style="color: #660033;">-I</span> dev-python<span style="color: #000000; font-weight: bold;color: #CCC;">/*</span> <span style="color: #000000; font-weight: bold;color: #CCC;">|</span> <span style="color: #c20cb9; font-weight: bold;color: #577A61;">grep</span> <span style="color: #ff0000;color: #666666;">&quot;\[I\]&quot;</span> <span style="color: #000000; font-weight: bold;color: #CCC;">|</span> <span style="color: #c20cb9; font-weight: bold;color: #577A61;">cut</span> <span style="color: #660033;">-d</span><span style="color: #ff0000;">' '</span> -f2<span style="color: #7a0874; font-weight: bold;color: #CCC;">&#41;</span></pre></div></div>

<p><em>O <strong>eix</strong> é uma aplicação de indexação do portage, muito comum nas máquinas Gentoo.</em></p>
<p>Cada pacote python é recompilado para as 3 versões (no caso), mas tive problemas em compilar alguns pacotes para a 2.4, fiquem avisados <img src='http://chronosbox.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Bom, é isso, até mais!</p>
]]></content:encoded>
			<wfw:commentRss>http://chronosbox.org/blog/setting-up-multiple-python-envrionments/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Meus 3 dias testando KDE 4.2.2</title>
		<link>http://chronosbox.org/blog/my-3-days-testing-kde-422</link>
		<comments>http://chronosbox.org/blog/my-3-days-testing-kde-422#comments</comments>
		<pubDate>Fri, 17 Apr 2009 02:41:36 +0000</pubDate>
		<dc:creator>Felipe 'chronos' Prenholato</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet GentooBR]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[kde4]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://chronosbox.org/blog/?p=143</guid>
		<description><![CDATA[Hoje finalizo com meus 3 dias de testes em cima do KDE 4. Para adiantar minhas opnições, eu digo que realmente gostei muito do que fizeram, mas os bugs encontrados não o tornam um desktop apto para uso diário, embora bonito. Vamos as minhas opniões ponto principais! Ponto a ponto posso dizer que o modo [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_141" class="wp-caption alignleft" style="width: 310px"><a href="http://chronosbox.org/blog/wp-content/uploads/2009/04/start.png"><img src="http://chronosbox.org/blog/wp-content/uploads/2009/04/start-300x187.png" alt="The boot of KDE 4.2.2 in Gentoo" title="After compiling" width="300" height="187" class="size-medium wp-image-141" /></a><p class="wp-caption-text">The boot of KDE 4.2.2 in Gentoo</p></div> Hoje finalizo com meus 3 dias de testes em cima do KDE 4.</p>
<p>Para adiantar minhas opnições, eu digo que realmente gostei muito do que fizeram, mas os bugs encontrados não o tornam um desktop apto para uso diário, embora bonito. Vamos as minhas opniões ponto principais!</p>
<p>Ponto a ponto posso dizer que o modo como é organizado os plasmoids e os temas usados estão ficando cada vez melhor. A integração com GTK continua a mesma do KDE 3.5.10 que uso. Os novos plasmoids precisam, na sua maioria, de um trabalho melhor, pois plasmoids que me deixariam ter RSS no desktop de uma maneira bonita (o que me é muito útil) não funcionam, o monitor de sistema não perde aos feios monitores do superkaramba e ainda continuamos a ter plugins inúteis como o olho que segue o mouse.<br />
<span id="more-143"></span><br />
O visual do KDE 4.2.2 está fantástico, como disse os temas são belos (mas temos os feios também) e temos possiblidade de customizar cada item do tema, misturando itens de vários temas. A transparência no KDE 4 é real, usando composite e  desativada facilmente via Alt+Ctrl+F12 ou automática se o KDE detecta que ela está sobrecarregando o sistema.<br />
<div id="attachment_142" class="wp-caption alignright" style="width: 310px"><a href="http://chronosbox.org/blog/wp-content/uploads/2009/04/real_transparency.png"><img src="http://chronosbox.org/blog/wp-content/uploads/2009/04/real_transparency-300x187.png" alt="KDE now have real transparency using X composite" title="Real transparency" width="300" height="187" class="size-medium wp-image-142" /></a><p class="wp-caption-text">KDE now have real transparency using X composite</p></div>O yakuake, na versão para KDE 4 ficou melhor, com possibilidade de editar o visual por perfis e fácil interação com suas caixas de dialogo, além das já conhecidas divisão em tela dos terminais (lembrando o screen). O firefox funciona normalmente (sem aquela baita integração ao KDE como de costume) e o Konqueror está bem menos chato.  O Dolphin evoluiu absurdos, não trava mais, está realmente muito usável, suporta abas, zoom e visualização de vários protocolos. Ele conta com as abas e ainda um terminal rápido que podem ser exibidas através das teclas de atalho (não, não temos pastas exibidas por default). O modo de navegação é por meio de breadcrumbs mas facilmente podemos digitar o endereço desejado.</p>
<p>A possiblidade de customização de efeitos (utéis e inutéis) é consideravél, podemos ter o cubo, cilindro, efeitos de explosão na janela. A janela torcendo (é isso??) e as utilidades para achar o mouse foram realmente úteis, uma por beleza e brincadeira e outra por pura utilidade. Outras customizações utéis são as ações para os cantos da janela, onde eu usei a que mostra um grid com todas as janelas para ai você escolher. Os Alt+Tabs frescurentos também estão aqui e tem lá sua <b>in</b>utilidade. Infelizmente efeitos bonitinhos para mim não é uma prioridade já que meu foco é um desktop para programar, neste ponto, espero que o time do KDE foque em estabilidade e desempenho.</p>
<p><div id="attachment_140" class="wp-caption alignleft" style="width: 310px"><a href="http://chronosbox.org/blog/wp-content/uploads/2009/04/klauncher.png"><img src="http://chronosbox.org/blog/wp-content/uploads/2009/04/klauncher-300x187.png" alt="New Klauncher (Alt+F2)" title="New Klauncher (Alt+F2)" width="300" height="187" class="size-medium wp-image-140" /></a><p class="wp-caption-text">New Klauncher (Alt+F2)</p></div> A menina dos olhos para mim, ficou com o KLauncher, muito melhorado em relação ao KDE 3.5 ele pode ser orientado a comandos ou a tarefas (não consegui usar esse por problemas de BIOS, não funcionou comigo), ele está bonito, agradavél de usar, bem indexado e ainda tem um botãozinho útil para um monitor de processos do KDE.</p>
<p>Meus ovos podres vão para o Kopete, infelizmente, embora a interface tenha melhorado bastante (tem que notar bem pra ver) ele da crash quando adiciono contatos no MSN e seu sistemas de notificação foi a gota d&#8217;água <img src='http://chronosbox.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , simplesmente não da para desabilitar e me deixou louco, impossível trabalhar com um monte de balões pulando a cada mensagem de amigos. Outro ponto muito negativo também é que no geral, mesmo com o composite desabilitado, o KDE 4.2.2 ainda está meio lentão, parecido com o Windows Vista. Não seria um problema se eu tivesse vindo direto do Windows Vista para o KDE 4.2.2, mas minha volta ao Linux foi ao KDE 3.5.x e a diferença de velocidade entre eles é realmente notável para programar, o que me leva devolta, hoje, ao kde 3.5.10. Ficarei de olho no KDE 4 e quem sabe nas versão 4.3.x ele fica bom para usar no dia a dia :].</p>
]]></content:encoded>
			<wfw:commentRss>http://chronosbox.org/blog/my-3-days-testing-kde-422/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

