<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>HMBR</title>
	<atom:link href="http://hmbr.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hmbr.wordpress.com</link>
	<description>dev in trouble</description>
	<lastBuildDate>Sat, 13 Apr 2013 07:08:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hmbr.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>HMBR</title>
		<link>http://hmbr.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hmbr.wordpress.com/osd.xml" title="HMBR" />
	<atom:link rel='hub' href='http://hmbr.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Bash &#8216;must know&#8217; tips</title>
		<link>http://hmbr.wordpress.com/2010/07/13/bash-must-know-tips/</link>
		<comments>http://hmbr.wordpress.com/2010/07/13/bash-must-know-tips/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 01:08:20 +0000</pubDate>
		<dc:creator>hmbr</dc:creator>
				<category><![CDATA[nerd]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://hmbr.wordpress.com/?p=67</guid>
		<description><![CDATA[Usually I read a lot of bash tips, codes, snippets, but some tips are hard to find, let see 2 tips: Read Line The ideia is, read each line of a file using bash, some people use terrible ways to do this job. Bash has a simple way, $(&#60; filename) echo $(&#60; file.txt) Apparently the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=67&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Usually I read a lot of bash tips, codes, snippets, but some tips are hard to find, let see 2 tips:</p>
<p><em><strong>Read Line</strong></em></p>
<p>The ideia is, read each line of a file using bash, some people use terrible ways to do this job.</p>
<p>Bash has a simple way, $(&lt; filename)<br />
<code><br />
echo $(&lt; file.txt)<br />
</code></p>
<p>Apparently the command did&#8217;n work, but the fact&#8217;s, the command worked, but printed line by line without &#8216;\n&#8217;.</p>
<p>This for show how to work with each line.<br />
<code><br />
for i in $(&lt;file); do echo $i; done<br />
</code><br />
<em><strong>Rename only the extension<br />
</strong></em></p>
<p>This is simple, some tasks need a in file and a out file, the two files can be different, if we need a &#8216;for&#8217; we need create a good number of files.</p>
<p>Instead of create something like foo.txt and foo.txt.xml, you can create one foo.xml.</p>
<p>Let&#8217;s use ${//}  to improve your  work.</p>
<p><code><br />
$variable = name.foo<br />
echo ${variable/foo/bar}<br />
</code></p>
<p>Inside a for, is awesome:<br />
<code><br />
for i in */*.xml; do xml2xsd $i ${i/xml/xsd}; done<br />
</code><br />
Thanks</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hmbr.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hmbr.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=67&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hmbr.wordpress.com/2010/07/13/bash-must-know-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f09592dc4dbcba6345c0aa3ea1170c5b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hmbr</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick and Dirty: A Mercurial Server Under Snow Leopard</title>
		<link>http://hmbr.wordpress.com/2010/06/16/quick-and-dirty-a-mercurial-server-under-snow-leopard/</link>
		<comments>http://hmbr.wordpress.com/2010/06/16/quick-and-dirty-a-mercurial-server-under-snow-leopard/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 04:05:59 +0000</pubDate>
		<dc:creator>hmbr</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[mercurial]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://hmbr.wordpress.com/?p=57</guid>
		<description><![CDATA[This is a fast tutorial to set up, quick and fast, a mercurial server at Snow Leopard using Apache and cgi(the dirty party). We need: One apache server, we&#8217;ll use the apache shipped with Snow Leopard Install the mercurial And the CGI script provide by Mercurial First, install the mercurial, I used the macports version [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=57&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This is a fast tutorial to set up, quick and fast, a mercurial server at Snow Leopard using Apache and cgi(the dirty party).</p>
<p>We need:</p>
<ol>
<li> One apache server, we&#8217;ll use the apache shipped with Snow Leopard</li>
<li>Install the mercurial</li>
<li>And the CGI script provide by Mercurial</li>
</ol>
<p>First, install the mercurial, I used the macports version</p>
<p><code>sudo port install mercurial<br />
</code><br />
Second, configure the httpd.</p>
<p>Create /etc/apache2/extra/httpd-hg.conf</p>
<p><code>ScriptAliasMatch        ^/hg(.*)        /var/hg/hgwebdir.cgi$1 #the last one is the the cgi file location<br />
&lt;Directory /var/hg&gt;<br />
AuthType Basic<br />
AuthName "Mercurial repositories"<br />
AuthUserFile /var/hg/.htpasswd # the user file<br />
Require valid-user<br />
Options ExecCGI FollowSymLinks<br />
Order allow,deny<br />
Allow from all<br />
AllowOverride all<br />
AddHandler cgi-script .cgi<br />
&lt;/Directory&gt;<br />
</code><br />
Include at /etc/apache2/httpd.conf</p>
<p><code>Include /etc/apache2/extra/httpd-hg.conf<br />
</code><br />
Third, create the repository, I&#8217;m using /var/hg.</p>
<p><code>sudo mkdir -p /var/hg/repos<br />
</code><br />
Create the cgi configure file hgweb.config at /var/hg</p>
<p><code>[collections]<br />
repos/ = repos/<br />
[web]<br />
style = gitweb<br />
</code><br />
Download the cgi file from <a href="http://www.selenic.com/repo/hg-stable/raw-file/tip/hgwebdir.cgi" target="_blank">http://www.selenic.com/repo/hg-stable/raw-file/tip/hgwebdir.cgi </a>and put at /var/hg</p>
<p>Uncomment the follow lines at hgwebdir.cgi and put the python location:</p>
<p><code>import sys<br />
sys.path.insert(0, "/System/Library/Frameworks/Python.framework/Versions/2.6/bin")<br />
</code><br />
Create the .htpasswd to authenticate users<br />
<code>htpasswd -c /var/hg/.htpasswd user<br />
</code><br />
At /var/hg/repos, create a repository<br />
<code>hg init /var/hg/repos/&lt;repository-name&gt;<br />
</code><br />
Edit the hgrc under /.hg<br />
<code>[web]<br />
push_ssl = false #allow push using non-ssl connection<br />
contact = user<br />
description = teste<br />
allow_push = user user2 #user allowed to push, must exist at .htpasswd<br />
</code><br />
Do not forget to change the permissions at /var/hg to user _www and group _www</p>
<p><code>sudo chown -R _www:_www  /var/hg<br />
</code><br />
Start the apache server</p>
<p><code>sudo apachectl -k start<br />
</code><br />
Now you have one repository, you can access using <a href="http://127.0.0.1/hg/" rel="nofollow">http://127.0.0.1/hg/</a></p>
<p>More info at <a href="http://mercurial.selenic.com/wiki/HgWebDirStepByStep" target="_blank">http://mercurial.selenic.com/wiki/HgWebDirStepByStep</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hmbr.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hmbr.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=57&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hmbr.wordpress.com/2010/06/16/quick-and-dirty-a-mercurial-server-under-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f09592dc4dbcba6345c0aa3ea1170c5b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hmbr</media:title>
		</media:content>
	</item>
		<item>
		<title>Changes</title>
		<link>http://hmbr.wordpress.com/2009/02/11/changes/</link>
		<comments>http://hmbr.wordpress.com/2009/02/11/changes/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 02:52:00 +0000</pubDate>
		<dc:creator>hmbr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hmbr.wordpress.com/?p=55</guid>
		<description><![CDATA[Big changes, new city, strange job, nice coworkers, new stuff, old friends The only problem, my girlfriend lives far, far way<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=55&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Big changes, new city, strange job, nice coworkers, new stuff, old friends</p>
<p>The only problem, my girlfriend lives far, far way <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hmbr.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hmbr.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=55&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hmbr.wordpress.com/2009/02/11/changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f09592dc4dbcba6345c0aa3ea1170c5b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hmbr</media:title>
		</media:content>
	</item>
		<item>
		<title>Como utilizar o Mascaramento de pacotes para descobrir as causas de um downgrade.</title>
		<link>http://hmbr.wordpress.com/2008/08/25/como-utilizar-o-mascaramento-de-pacotes-para-descobrir-as-causas-de-um-downgrade/</link>
		<comments>http://hmbr.wordpress.com/2008/08/25/como-utilizar-o-mascaramento-de-pacotes-para-descobrir-as-causas-de-um-downgrade/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 00:33:05 +0000</pubDate>
		<dc:creator>hmbr</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[gentoobr]]></category>
		<category><![CDATA[nerd]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://hmbr.wordpress.com/?p=46</guid>
		<description><![CDATA[Uma das coisas mais comuns no uso do gentoo, principalmente quando mistura pacotes estáveis, testings e unstables (como eu costumo fazer), é o downgrade de algum pacote para alguma versão anterior sem uma razão aparente, como o downgrade de uma versão estável para uma antiga versão. Isso ocorreu comigo quando fui realizar um emerge -NDuav [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=46&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Uma das coisas mais comuns no uso do gentoo, principalmente quando mistura pacotes estáveis, testings e unstables (como eu costumo fazer), é o downgrade de algum pacote para alguma versão anterior sem uma razão aparente, como o downgrade de uma versão estável para uma antiga versão.</p>
<p>Isso ocorreu comigo quando fui realizar um emerge -NDuav word:<br />
<code><br />
hellboy ~ # emerge -NDuav world<br />
</code><br />
<code><br />
These are the packages that would be merged, in order:<br />
</code><br />
<code><br />
Calculating world dependencies... done!<br />
[ebuild     UD] dev-util/bzr-1.1 [1.5] USE="bash-completion -curl -emacs -sftp -test" 3,346 kB<br />
[ebuild     U ] app-text/poppler-0.8.6 [0.8.5] USE="jpeg zlib -cjk" 1,435 kB<br />
[ebuild     U ] app-text/poppler-bindings-0.8.6 [0.8.5] USE="cairo gtk -qt3 -qt4 -test" 0 kB<br />
</code><br />
<code><br />
Total: 3 packages (2 upgrades, 1 downgrade), Size of downloads: 4,781 kB<br />
</code><br />
<code><br />
Would you like to merge these packages? [Yes/No]<br />
</code><br />
Vejam o caso do bazaar (dev-util/bzr), mas acontece que a versão 1.5 é uma versão estável como aponta o eix:<br />
<code><br />
hellboy ~ # eix dev-util/bzr<br />
[I] dev-util/bzr<br />
Available versions:  0.17 1.1 ~1.3 ~1.4 1.5 [M]~1.6_rc5 {bash-completion curl emacs sftp test}<br />
Installed versions:  1.5(07:43:31 PM 08/23/2008)(bash-completion -curl -emacs -sftp -test)<br />
Homepage:            <a href="http://bazaar-vcs.org/" rel="nofollow">http://bazaar-vcs.org/</a><br />
Description:         Bazaar is a next generation distributed version control system.<br />
</code><br />
A razão deste comportamento é sempre por causa de algum pacote já instalado ou que vai ser instalado, eu acho que a maneira abaixo a mais simples para descobrir qual o pacote esta forçando o downgrade.</p>
<p>Primeiro eu mascaro o todas as versões abaixo da versão já instalada do programa que esta sendo forçado o downgrade, no caso, todas as versões do bazaar abaixo do 1.5.<br />
<code><br />
sudo echo '&lt;=dev-util/bzr-1.4' &gt;&gt; /etc/portage/package.mask<br />
</code><br />
Feito isso, refaço o comando que originou o pedido de downgrade e vejo o resultado:<br />
<code><br />
hellboy ~ # emerge -NDuav world<br />
</code><br />
<code><br />
These are the packages that would be merged, in order:<br />
</code><br />
<code><br />
Calculating world dependencies /<br />
!!! All ebuilds that could satisfy "=dev-util/bzr-1.1*" have been masked.<br />
!!! One of the following masked packages is required to complete your request:<br />
- dev-util/bzr-1.1 (masked by: package.mask)<br />
</code><br />
<code><br />
For more information, see MASKED PACKAGES section in the emerge man page or<br />
refer to the Gentoo Handbook.<br />
(dependency required by "dev-util/bzrtools-1.1.0" [installed])<br />
</code><br />
<code><br />
!!! Problem resolving dependencies for dev-util/bzrtools<br />
!!! Depgraph creation failed.<br />
</code><br />
Dai eu observo que o responsável pelo downgrade é o pacote dev-util/bzrtools, que consta com todas as versões consideradas como instáveis:<br />
<code><br />
hellboy ~ # eix bzrtools<br />
[I] dev-util/bzrtools<br />
Available versions:  ~0.17.1 (~)1.1.0 ~1.3.0 ~1.4.0 ~1.5.0<br />
Installed versions:  1.1.0(02:34:38 AM 02/06/2008)<br />
Homepage:            <a href="http://bazaar.canonical.com/BzrTools" rel="nofollow">http://bazaar.canonical.com/BzrTools</a><br />
Description:         bzrtools is a useful collection of utilities for bzr.<br />
</code><br />
Como é um caso de pacotes instáveis, uma maneira seria apagar o pacote instável ou utilizar a keyword, como eu estou querendo aprender mais do bazaar, prefiro arriscar utilizar o pacote instável.<br />
<code><br />
sudo echo '=dev-util/bzrtools-1.5.0 ~*' &gt;&gt; /etc/portage/package.keywords<br />
</code><br />
Com isso elimino a fonte do downgrade e refaço o meu comando sem medo de downgrades <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> .<br />
<code><br />
hellboy ~ # emerge -NDuav world<br />
</code><br />
<code><br />
These are the packages that would be merged, in order:<br />
</code><br />
<code><br />
Calculating world dependencies... done!<br />
[ebuild     U ] dev-util/bzrtools-1.5.0 [1.1.0] 82 kB<br />
[ebuild     U ] app-text/poppler-0.8.6 [0.8.5] USE="jpeg zlib -cjk" 1,435 kB<br />
[ebuild     U ] app-text/poppler-bindings-0.8.6 [0.8.5] USE="cairo gtk -qt3 -qt4 -test" 0 kB<br />
</code><br />
<code><br />
Total: 3 packages (3 upgrades), Size of downloads: 1,517 kB<br />
</code><br />
<code><br />
Would you like to merge these packages? [Yes/No]<br />
</code><br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hmbr.wordpress.com/46/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hmbr.wordpress.com/46/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hmbr.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hmbr.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=46&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hmbr.wordpress.com/2008/08/25/como-utilizar-o-mascaramento-de-pacotes-para-descobrir-as-causas-de-um-downgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f09592dc4dbcba6345c0aa3ea1170c5b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hmbr</media:title>
		</media:content>
	</item>
		<item>
		<title>What Color Is Your Mind?</title>
		<link>http://hmbr.wordpress.com/2008/04/24/what-color-is-your-mind/</link>
		<comments>http://hmbr.wordpress.com/2008/04/24/what-color-is-your-mind/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 01:59:38 +0000</pubDate>
		<dc:creator>hmbr</dc:creator>
				<category><![CDATA[nerd]]></category>

		<guid isPermaLink="false">http://hmbr.wordpress.com/?p=45</guid>
		<description><![CDATA[Your Mind is Green Of all the mind types, yours has the most balance. You are able to see all sides to most problems and are a good problem solver. You need time to work out your thoughts, but you don&#8217;t get stuck in bad thinking patterns. You tend to spend a lot of time [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=45&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="350" align="center">
<tbody>
<tr>
<td align="center" bgcolor="#eeeeee"><span style="font-family:Georgia,Times New Roman,Times,serif;"><br />
<strong>Your Mind is Green</strong><br />
</span></td>
</tr>
<tr>
<td bgcolor="#ffffff">
<p style="text-align:center;"><img class="aligncenter" src="http://blogthings.cachefly.net/whatcolorisyourmindquiz/green.jpg" alt="" width="100" height="100" /></p>
<p><span style="color:#000000;"><br />
Of all the mind types, yours has the most balance.</p>
<p>You are able to see all sides to most problems and are a good problem solver.</p>
<p>You need time to work out your thoughts, but you don&#8217;t get stuck in bad thinking patterns.</span></p>
<p><span style="color:#000000;">You tend to spend a lot of time thinking about the future, philosophy, and relationships (both personal and intellectual).<br />
</span></td>
</tr>
</tbody>
</table>
<div><a href="http://www.blogthings.com/whatcolorisyourmindquiz/">What Color Is Your Mind?</a></div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hmbr.wordpress.com/45/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hmbr.wordpress.com/45/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hmbr.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hmbr.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=45&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hmbr.wordpress.com/2008/04/24/what-color-is-your-mind/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f09592dc4dbcba6345c0aa3ea1170c5b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hmbr</media:title>
		</media:content>

		<media:content url="http://blogthings.cachefly.net/whatcolorisyourmindquiz/green.jpg" medium="image" />
	</item>
		<item>
		<title>batch scanning</title>
		<link>http://hmbr.wordpress.com/2008/04/21/batch-scanning/</link>
		<comments>http://hmbr.wordpress.com/2008/04/21/batch-scanning/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 16:03:48 +0000</pubDate>
		<dc:creator>hmbr</dc:creator>
				<category><![CDATA[nerd]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://hmbr.wordpress.com/?p=44</guid>
		<description><![CDATA[As vezes é necessário copiar uma quantidade bizarra de arquivos, uma maneira simples de colocar em batch esta tarefa. 1 #!/bin/bash 2 3 device="hpaio:/usb/Photosmart_C3100_series?serial=BR73NGQ13X04KV"; 4 5 while true; 6 7 do if [[ -a stop_file ]]; 8 then break ; 9 fi; 10 11 echo "scanning" ; 12 name=`date +%s` ; 13 scanimage -d $device [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=44&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>As vezes é necessário copiar uma quantidade bizarra de arquivos, uma maneira simples de colocar em batch esta tarefa.</p>
<pre><a name="line1"> 1</a> <span style="color:#0000ff;"><strong>#!/bin/bash</strong></span>
<a name="line2"> 2</a>
<a name="line3"> 3</a> <span style="color:#2040a0;">device</span>=<span style="color:#008000;">"hpaio:/usb/Photosmart_C3100_series?serial=BR73NGQ13X04KV"</span>;
<a name="line4"> 4</a>
<a name="line5"> 5</a> while true;
<a name="line6"> 6</a>
<a name="line7"> 7</a>     do if [[ -a stop_file ]];
<a name="line8"> 8</a>         then break ;
<a name="line9"> 9</a>     fi;
<a name="line10">10</a>
<a name="line11">11</a>     echo <span style="color:#008000;">"scanning"</span> ;
<a name="line12">12</a>     <span style="color:#2040a0;">name</span>=`date +%s` ;
<a name="line13">13</a>     scanimage -d <span style="color:#2040a0;">$device</span> -p &gt;<span style="color:#2040a0;">$name</span>.pnm;
<a name="line14">14</a>
<a name="line15">15</a>     convert <span style="color:#2040a0;">$name</span>.pnm <span style="color:#2040a0;">$name</span>.jpg;
<a name="line16">16</a>     rm <span style="color:#2040a0;">$name</span>.pnm;
<a name="line17">17</a>
<a name="line18">18</a>     echo <span style="color:#008000;">"sleeping"</span> ;
<a name="line19">19</a>     sleep 10s;
<a name="line20">20</a>
<a name="line21">21</a>     do if [[ -a stop_file ]];
<a name="line22">22</a>         then break ;
<a name="line23">23</a>     fi;
<a name="line24">24</a>
<a name="line25">25</a> done
</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hmbr.wordpress.com/44/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hmbr.wordpress.com/44/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hmbr.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hmbr.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=44&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hmbr.wordpress.com/2008/04/21/batch-scanning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f09592dc4dbcba6345c0aa3ea1170c5b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hmbr</media:title>
		</media:content>
	</item>
		<item>
		<title>gtk and cedilla, a big brazillian problem</title>
		<link>http://hmbr.wordpress.com/2007/11/04/gtk-and-cedilla-a-big-brazillian-problem/</link>
		<comments>http://hmbr.wordpress.com/2007/11/04/gtk-and-cedilla-a-big-brazillian-problem/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 16:00:38 +0000</pubDate>
		<dc:creator>hmbr</dc:creator>
				<category><![CDATA[gnome]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://hmbr.wordpress.com/2007/11/04/gtk-and-cedilla-a-big-brazillian-problem/</guid>
		<description><![CDATA[One of the mostly annoying thinks about gtk is &#8216;ç&#8217;, especially when you are a Portuguese speaker and use US keyboard + gtk, this is because someone on the past made this choice at us-intl keyboards, acute+c = ć I&#8217;m not arguing against Polish, Bosnian, Croatian or Serbian, but is a stupid choice when we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=42&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>One of the mostly annoying thinks about gtk is &#8216;ç&#8217;, especially when you are a Portuguese speaker and use US keyboard + gtk, this is because someone on the past made this choice</p>
<p><strong>at us-intl keyboards, acute+c = ć</strong></p>
<p>I&#8217;m not arguing against Polish, Bosnian, Croatian or Serbian, but is a stupid choice when we compare the use of ç in the Latin World (Brazil, France, Spain, Portugal, etc) , even English has some ç.</p>
<p>My way to solve that is simple.<br />
<code><br />
diff gtk.immodules.old /etc/gtk-2.0/gtk.immodules</code><br />
<code><br />
14c14<br />
&lt; "cedilla" "Cedilla" "gtk+" "/usr/share/locale"<br />
"az:ca:co:fr:gv:oc:pt:sq:tr:wa"<br />
---<br />
&gt; "cedilla" "Cedilla" "gtk+" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en"</code></p>
<p>I hope that, some day, someone will fix that or put at the gtk ebuild a flag like us_latin_cedilla</p>
<p>180 millions of Brazilians will  love it.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hmbr.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hmbr.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hmbr.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hmbr.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=42&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hmbr.wordpress.com/2007/11/04/gtk-and-cedilla-a-big-brazillian-problem/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f09592dc4dbcba6345c0aa3ea1170c5b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hmbr</media:title>
		</media:content>
	</item>
		<item>
		<title>Gentoo Tools</title>
		<link>http://hmbr.wordpress.com/2007/04/19/gentoo-tools/</link>
		<comments>http://hmbr.wordpress.com/2007/04/19/gentoo-tools/#comments</comments>
		<pubDate>Thu, 19 Apr 2007 17:28:43 +0000</pubDate>
		<dc:creator>hmbr</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://hmbr.wordpress.com/2007/04/19/gentoo-tools/</guid>
		<description><![CDATA[Gentoo is know as a hard linux distribution, in fact, only the installation is a hard process, everything else is just a piece of cake. Ok, it&#8217;s not easy as ubuntu, but with the right tools, everyone can make magic. IMHO, no one can have all Gentoo experience without: equery (useful when you need information, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=39&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Gentoo is know as a hard linux distribution, in fact, only the installation is a hard process, everything else is just a piece of cake.</p>
<p>Ok, it&#8217;s not easy as ubuntu, but with the right tools, everyone can make magic.</p>
<p>IMHO,  no one can have all Gentoo experience  without:</p>
<ol>
<li>equery (useful when you need information, as USE flags, depends, package contents, etc)</li>
<li>eix ( excellent search packages program )</li>
<li>euse (USE flags )</li>
<li>revdep-rebuild (after an emerge -NDuav world, to fix broken packages)</li>
<li>module-rebuild rebuild -X ( after an kernel update, rebuild old modules to fit with your new kernel)</li>
</ol>
<p>Equery, euse and  revdep-rebuild are part of gentoolkit ( emerge gentoolkit), eix and module-rebuild have their own package.</p>
<p>And, of course, vim for everything else <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hmbr.wordpress.com/39/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hmbr.wordpress.com/39/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hmbr.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hmbr.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=39&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hmbr.wordpress.com/2007/04/19/gentoo-tools/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f09592dc4dbcba6345c0aa3ea1170c5b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hmbr</media:title>
		</media:content>
	</item>
		<item>
		<title>using zenity with emerge</title>
		<link>http://hmbr.wordpress.com/2007/04/03/using-zenity-with-emerge/</link>
		<comments>http://hmbr.wordpress.com/2007/04/03/using-zenity-with-emerge/#comments</comments>
		<pubDate>Tue, 03 Apr 2007 18:48:29 +0000</pubDate>
		<dc:creator>hmbr</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://hmbr.wordpress.com/2007/04/03/using-zenity-with-emerge/</guid>
		<description><![CDATA[Zenity is a great tool, it creates a gtk dialog box using shell commands. The following line shows how you can make a emerge without worry waiting for a terminal response. emerge -NDupv world &#62;/tmp/newpackage &#38;&#38; zenity --text-info --filename=/tmp/newpackage &#38;&#38; zenity --question --text="emerge?" &#38;&#38; emerge -NDuv world<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=37&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://live.gnome.org/Zenity" target="_blank">Zenity</a> is a great tool, it creates a gtk dialog box using shell commands.</p>
<p>The following line shows how you can make a emerge without worry waiting for a terminal response.</p>
<p><code>emerge -NDupv world &gt;/tmp/newpackage &amp;&amp; zenity --text-info --filename=/tmp/newpackage &amp;&amp; zenity --question --text="emerge?" &amp;&amp; emerge -NDuv world </code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hmbr.wordpress.com/37/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hmbr.wordpress.com/37/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hmbr.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hmbr.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=37&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hmbr.wordpress.com/2007/04/03/using-zenity-with-emerge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f09592dc4dbcba6345c0aa3ea1170c5b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hmbr</media:title>
		</media:content>
	</item>
		<item>
		<title>FISL 8.0</title>
		<link>http://hmbr.wordpress.com/2007/03/19/fisl-80/</link>
		<comments>http://hmbr.wordpress.com/2007/03/19/fisl-80/#comments</comments>
		<pubDate>Mon, 19 Mar 2007 01:20:40 +0000</pubDate>
		<dc:creator>hmbr</dc:creator>
				<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://hmbr.wordpress.com/2007/03/19/fisl-80/</guid>
		<description><![CDATA[Less than 25 days.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=36&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Less than 25 days.</p>
<p><a href="http://fisl.softwarelivre.org/8.0/www/" title="fisl" target="_blank"><img src="http://fisl.softwarelivre.org/8.0/www/files/banners/fisl8-168x60.png" alt="fisl" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hmbr.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hmbr.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hmbr.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hmbr.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hmbr.wordpress.com&#038;blog=375448&#038;post=36&#038;subd=hmbr&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hmbr.wordpress.com/2007/03/19/fisl-80/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f09592dc4dbcba6345c0aa3ea1170c5b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hmbr</media:title>
		</media:content>

		<media:content url="http://fisl.softwarelivre.org/8.0/www/files/banners/fisl8-168x60.png" medium="image">
			<media:title type="html">fisl</media:title>
		</media:content>
	</item>
	</channel>
</rss>
