<?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>Ruy Rocha</title>
	<atom:link href="http://ruyrocha.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ruyrocha.com</link>
	<description>As Diehard As They Come</description>
	<lastBuildDate>Tue, 24 Aug 2010 10:44:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Instalação Automatizada do Ubuntu</title>
		<link>http://ruyrocha.com/instalacao-automatizada-do-ubuntu/</link>
		<comments>http://ruyrocha.com/instalacao-automatizada-do-ubuntu/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 10:44:15 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[instalacao automatizada]]></category>
		<category><![CDATA[kickseed]]></category>
		<category><![CDATA[kickstart]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=104</guid>
		<description><![CDATA[É possível realizar instalações automatizadas do Ubuntu via kickstart com o kickseed. Bem melhor, né? Mais aqui.]]></description>
			<content:encoded><![CDATA[<p>É possível realizar instalações automatizadas do Ubuntu via kickstart com o <strong>kickseed</strong>. Bem melhor, né? <img src='http://ruyrocha.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Mais <a title="Automated Ubuntu Installation" href="http://ubuntu-tutorials.com/2007/10/14/automated-ubuntu-installation-preview/">aqui</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/instalacao-automatizada-do-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Instalação Automatizada do Debian</title>
		<link>http://ruyrocha.com/instalacao-automatizada-do-debian/</link>
		<comments>http://ruyrocha.com/instalacao-automatizada-do-debian/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 15:24:07 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[debian preseed]]></category>
		<category><![CDATA[instalacao automatizada]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=102</guid>
		<description><![CDATA[O único modo (duvidoso) de automatizar a instalação do Debian é usando preseed e aqui está a documentação. Numa boa? Sem o debconf-get-selections demoraria para escrever na unha o arquivo usado na instalação. Ah, Kickstart&#8230;]]></description>
			<content:encoded><![CDATA[<p>O único modo (duvidoso) de automatizar a instalação do Debian é <a title="Automating Debian Ubuntu Installs With Preseed" href="http://pthree.org/2008/05/20/automating-debianubuntu-installs-with-preseed/">usando preseed</a> e <a title="Automating the installation using preseeding" href="http://d-i.alioth.debian.org/manual/en.i386/apb.html">aqui</a> está a documentação.</p>
<p>Numa boa? Sem o <strong>debconf-get-selections</strong> demoraria para escrever na unha o arquivo usado na instalação.</p>
<p>Ah, Kickstart&#8230; <img src='http://ruyrocha.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/instalacao-automatizada-do-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Ferramenta Perfeita de Monitoramento</title>
		<link>http://ruyrocha.com/a-ferramenta-perfeita-de-monitoramento/</link>
		<comments>http://ruyrocha.com/a-ferramenta-perfeita-de-monitoramento/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 17:27:09 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[Ferramentas]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=98</guid>
		<description><![CDATA[A Ferramenta Perfeita de Monitoramento &#8211; sem um nome feliz, ainda &#8211; executa o monitoramento dos serviços disponíveis em um servidor, como Web, Email, DB, DNS, SSH, etc, de uma forma diferente. Já de cara pergunto: que empresa Brazuca oferece isso? Não consigo lembrar de nenhuma. Sério, mesmo. O que os players como o Pingdom [...]]]></description>
			<content:encoded><![CDATA[<p>A <strong>Ferramenta Perfeita de Monitoramento</strong> &#8211; sem um nome feliz, ainda <img src='http://ruyrocha.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  &#8211; executa o monitoramento dos serviços disponíveis em um servidor, como Web, Email, DB, DNS, SSH, etc, de uma forma <strong>diferente</strong>.</p>
<p><span id="more-98"></span>Já de cara pergunto: que empresa Brazuca oferece isso? Não consigo lembrar de nenhuma. Sério, mesmo.</p>
<p>O que os players como o Pingdom fazem é: conectar no serviço e alertar em caso de indisponibilidade. Tem aquele outro que gera gráficos bonitos e tem um custo/benefício melhor, mas não lembro o nome agora, só lembro dos gráficos que eram um tanto quanto bonitos.</p>
<p>Certo&#8230; mas esse tipo de informação não garante que tudo está funcionando como deveria, garante? Ao conectar num Apache/Nginx/Lighttpd, ou qualquer outro daemon, em um intervalo de tempo definido &#8211; 1/3/15 minutos &#8211; você sabe que o daemon está respondendo, e só isso. Da mesma forma que ao checar o status do seu link de internet (por ping, snmp), sabe que o link está ativo e se comunicando com o mundo externo. Isto não garante que a sua navegação está<strong> totalmente funcional</strong>.</p>
<p>Voltando ainda na questão do Apache: de forma fictícia eu hospedo o site <strong>xyz.br</strong> que também é um ecommerce. Monitorar da forma que se faz hoje garante que eu saiba quando o daemon cai, mas não garante que ao acessar <strong>www.xyz.br</strong> eu caia na Home, e também não garante que o formulário de contato está funcionando, e também não garante que é possível se cadastrar e efetuar uma compra.</p>
<p>Monitorar o SSH, somente conectando na porta, bem, garante que o serviço está disponível. Entretanto não garante que determinado usuário pode acessar, e que as tentativas sem sucesso de determinado login serão logadas e alertadas.</p>
<p>Estes são dois cenários onde a <strong>Ferramenta Perfeita de Monitoramento</strong> se encaixa. Bem, <strong>let&#8217;s rock!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/a-ferramenta-perfeita-de-monitoramento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>O Novo Facebook Tupiniquim</title>
		<link>http://ruyrocha.com/o-novo-facebook-tupiniquim/</link>
		<comments>http://ruyrocha.com/o-novo-facebook-tupiniquim/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 17:21:10 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[Geral]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=96</guid>
		<description><![CDATA[Diria que ter ambição não é algo ruim, e ainda diria que é uma questão de escolha. Sonhar não é de todo mau e visualizar o possível acerto faz um bem enorme. Sério! O óbvio aqui é que nada vira realidade sem muito trabalho &#8211; preferencialmente ágil. Pelo que percebi até agora existe uma diferença [...]]]></description>
			<content:encoded><![CDATA[<p>Diria que ter ambição não é algo ruim, e ainda diria que é uma questão de escolha.</p>
<p>Sonhar não é de todo mau e visualizar o possível acerto faz um bem enorme. Sério! O óbvio aqui é que nada vira realidade sem <strong>muito</strong> trabalho &#8211; preferencialmente <span style="text-decoration: underline;">ágil</span>.</p>
<p>Pelo que percebi até agora existe uma diferença enorme nas ambições, e aparentemente o amigo quer criar o novo facebook tupiniquim. Não discordo totalmente deste pensamento.</p>
<p>Lembra do último endereço que lhe mostrei? Ao que parece o amigo pegou alguns milhões e veio para o Brasil. É o que parece e tem muita coisa pra dar certo. Aqui não duvido que em qualquer garagem ou home office já exista o novo facebook tupiniquim, sem a devida e necessária exposição.</p>
<p>Vamos aos fatos daquilo que penso?</p>
<p>Estamos no segundo semestre de 2010. O conceito de <em>cloud computing</em> já foi mais que digerido até então. O que acontece é que muitas empresas não precisam de um cloud server, mas cloud computing envolve de forma direta uma única coisa: <strong>disponibilidade de recursos</strong>. Existe outro fato: <em>social commerce</em> funciona, e também é hora de explodir SaaS para todos os cantos. Sei o que vou apresentar em Novembro e sei que preciso bater em algumas portas também &#8211; ao menos o modo como a infraestrutura é vista hoje se tornará <span style="text-decoration: underline;">obsoleto</span>.</p>
<p>Há um ano acreditei que o sistema para auditar portas e dispositivos USB <span style="text-decoration: line-through;">fosse do caralho e</span> sanaria um dos grandes problemas empresariais que é o roubo de documentos. O maior erro foi não ter pesquisado o suficiente, ao menos para constatar que já existia solução similar da Symantec. O outro erro, bem,</p>
<p>Você sabe onde eu pretendo chegar. E aí?</p>
]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/o-novo-facebook-tupiniquim/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Aprenda Ruby On Rails Com Boas Práticas</title>
		<link>http://ruyrocha.com/aprenda-ruby-on-rails-com-boas-praticas/</link>
		<comments>http://ruyrocha.com/aprenda-ruby-on-rails-com-boas-praticas/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 16:10:32 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[code quality]]></category>
		<category><![CDATA[melhores práticas]]></category>
		<category><![CDATA[railscasts]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby frameworks]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[ruby on rails guides]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=92</guid>
		<description><![CDATA[Vimos da forma mais breve possível Sinatra e Padrino, dois frameworks úteis escritos em Ruby, e agora vamos para Ruby On Rails sem perder qualquer tempo disponível. Não existe como cair de paraquedas em Rails sem ter visto Ruby. Acredito que deu tempo suficiente para escrever ao menos uma aplicação em Ruby&#8230; Rails não é [...]]]></description>
			<content:encoded><![CDATA[<p>Vimos da forma mais breve possível Sinatra e Padrino, dois frameworks úteis escritos em Ruby, e agora vamos para Ruby On Rails sem perder qualquer tempo disponível.</p>
<p>Não existe como cair de paraquedas em Rails sem ter visto Ruby. Acredito que deu tempo suficiente para escrever ao menos uma aplicação em Ruby&#8230;</p>
<p>Rails não é um CMS. Rails é um framework em Ruby para escrever aplicações web. É isso. Se tudo o que se precisa é gerir conteúdo, o WordPress faz o trabalho bem feito. Economize linhas dando um <em>hello world</em> com Sinatra, se é apenas isso o que precisa.</p>
<p>A documentação do Rails é bem escrita, e onde falta documentação é fácil perceber o que acontece dando aquela olhadela no código devidamente documentado &#8211; obrigado RDoc!</p>
<p>Sites <strong>úteis</strong>: <a title="Railscasts" href="http://railscasts.com">Railscasts</a> e <a title="Ruby On Rails Guides" href="http://guides.rubyonrails.org/">Ruby On Rails Guides</a>, sem deixar o GitHub de fora. E vale uma olhada no Akita On Rails também.</p>
<p>E para as boas práticas, Matthew Paul Moore <a title="Ruby On Rails Code Quality Checklist" href="http://www.matthewpaulmoore.com/ruby-on-rails-code-quality-checklist">já escreveu</a> sobre. <em>E duvido que todo mundo execute a 15.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/aprenda-ruby-on-rails-com-boas-praticas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ARDUINO</title>
		<link>http://ruyrocha.com/arduino/</link>
		<comments>http://ruyrocha.com/arduino/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 18:31:30 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[Geral]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[opensource]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=83</guid>
		<description><![CDATA[Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It&#8217;s intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments. Arduino can sense the environment by receiving input from a variety of sensors and can affect its surroundings by controlling lights, motors, and other actuators. The [...]]]></description>
			<content:encoded><![CDATA[<blockquote>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td width="4%" valign="top"></td>
<td width="48%" valign="top">Arduino is an open-source electronics  prototyping platform based on flexible, easy-to-use hardware and  software.  It&#8217;s intended for artists, designers, hobbyists, and anyone  interested in creating interactive objects or environments.</p>
<p>Arduino can sense the environment by receiving  input from a variety of sensors and can affect its surroundings by  controlling lights, motors, and other actuators.  The microcontroller on  the board is programmed using the <a href="http://arduino.cc/en/Reference/HomePage">Arduino programming  language</a> (based on <a rel="nofollow" href="http://wiring.org.co/">Wiring</a>) and the Arduino development environment  (based on <a rel="nofollow" href="http://www.processing.org/">Processing</a>).  Arduino projects can be stand-alone or  they can communicate with software on running on a computer (e.g. Flash,  Processing, MaxMSP).</p>
<p>The boards can be <a href="http://arduino.cc/en/Main/ArduinoBoardSerialSingleSided3">built by  hand</a> or <a href="http://arduino.cc/en/Main/Buy">purchased</a> preassembled; the software can be <a href="http://arduino.cc/en/Main/Software">downloaded</a> for free.  The  hardware reference designs (CAD files) are <a href="http://arduino.cc/en/Main/Hardware">available</a> under an  open-source license, you are free to <a href="http://arduino.cc/en/Main/Policy">adapt them to your needs</a>.</td>
</tr>
</tbody>
</table>
</blockquote>
<p>Pouco interessante?</p>
]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/arduino/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Padrino Ruby Web Framework</title>
		<link>http://ruyrocha.com/padrino-ruby-web-framework/</link>
		<comments>http://ruyrocha.com/padrino-ruby-web-framework/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 18:26:53 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[padrino]]></category>
		<category><![CDATA[padrino framework]]></category>
		<category><![CDATA[ruby framework]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=81</guid>
		<description><![CDATA[Padrino &#8211; the elegant ruby framwork &#8211; é outro framework em ruby e feito em cima do Sinatra. Não deixa nada a desejear, apesar de ser mais leve que Ruby On Rails. A documentação vale cada página. Uma feature interessante é a possibilidade de montar várias aplicações, unlike other ruby frameworks, e a declaração das [...]]]></description>
			<content:encoded><![CDATA[<p>Padrino &#8211; <em>the elegant ruby framwork</em> &#8211; é outro framework em ruby e feito em cima do Sinatra. Não deixa <strong>nada</strong> a desejear, apesar de ser mais leve que Ruby On Rails.</p>
<p>A <a title="Padrino Framework - Guides" href="http://www.padrinorb.com/guides">documentação </a>vale cada página.</p>
<p>Uma feature interessante é a possibilidade de montar várias aplicações, <em>unlike other ruby frameworks</em>, e a declaração das rotas de forma explícita ajuda <strong>muito</strong> também.</p>
<p>A autenticação e definição de <em>roles</em> para usuários, bah, é super simples.</p>
<p>Os plugins e templates estão disponíveis no branch <em>templates</em>, ou seja, não terá estes <em>generators</em> se instalar via rubygems.</p>
]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/padrino-ruby-web-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery &#8211; Mascarando Campos</title>
		<link>http://ruyrocha.com/jquery-mascarando-campos/</link>
		<comments>http://ruyrocha.com/jquery-mascarando-campos/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 18:15:46 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mascarar campos]]></category>
		<category><![CDATA[masked input]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=74</guid>
		<description><![CDATA[O plugin Masked Input para jQuery adiciona máscara aos campos. Sério, ex: %input#phone{:type =&#62; &#34;text&#34;}/ E no application.js: jQuery&#40;function&#40;$&#41;&#123; $&#40;&#34;#phone&#34;&#41;.mask&#40;&#34;?(99) 9999-9999&#34;&#41;; &#125;&#41;;]]></description>
			<content:encoded><![CDATA[<p>O plugin <a title="Masked Input" href="http://digitalbush.com/projects/masked-input-plugin/">Masked Input</a> para jQuery adiciona máscara aos campos. Sério, ex:</p>

<div class="wp_syntax"><div class="code"><pre class="haml" style="font-family:monospace;">%input#phone{:type =&gt; &quot;text&quot;}/</pre></div></div>

<p>E no application.js:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#phone&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">mask</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;?(99) 9999-9999&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/jquery-mascarando-campos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converse Com Dados!</title>
		<link>http://ruyrocha.com/converse-com-dados/</link>
		<comments>http://ruyrocha.com/converse-com-dados/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 01:34:33 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[active record]]></category>
		<category><![CDATA[activerecord]]></category>
		<category><![CDATA[design pattern]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=71</guid>
		<description><![CDATA[ActiveRecord é um design pattern que foi escrito em Ruby. Ainda não chegamos em Rails, certo? Use o ActiveRecord fora do Rails. Eu daria uma olhada leve em Sequel e Candy (mongodb).]]></description>
			<content:encoded><![CDATA[<p>ActiveRecord é um <em>design pattern</em> que foi escrito em Ruby. Ainda não chegamos em Rails, certo? Use o ActiveRecord fora do Rails. Eu daria uma olhada leve em Sequel e Candy (mongodb).</p>
]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/converse-com-dados/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IRB &#8211; Interactive Ruby Shell</title>
		<link>http://ruyrocha.com/irb-interactive-ruby-shell/</link>
		<comments>http://ruyrocha.com/irb-interactive-ruby-shell/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 20:57:25 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[interactive ruby shell]]></category>
		<category><![CDATA[irb]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=67</guid>
		<description><![CDATA[Passar batido sem falar do irb ficaria um tanto complicado. Você vê tuas linhas ganharem vida no irb quando executa o código na unha. O irb pode lêr sua configuração de um ~/.irbrc da vida. O que uso: require 'irb/completion' require 'irb/ext/save-history' &#160; IRB.conf&#91;:SAVE_HISTORY&#93; = 1000 IRB.conf&#91;:HISTORY_FILE&#93; = &#34;#{ENV['HOME']}/.irb-save-history&#34; puts &#34;History configured.&#34; &#160; # auto-indent [...]]]></description>
			<content:encoded><![CDATA[<p>Passar batido sem falar do irb ficaria um tanto complicado. Você vê tuas linhas ganharem vida no <strong>irb</strong> quando executa o código na unha.</p>
<p>O irb pode lêr sua configuração de um ~/.irbrc da vida. O que uso:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'irb/completion'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'irb/ext/save-history'</span>
&nbsp;
IRB.<span style="color:#9900CC;">conf</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:SAVE_HISTORY</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#006666;">1000</span>
IRB.<span style="color:#9900CC;">conf</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:HISTORY_FILE</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#996600;">&quot;#{ENV['HOME']}/.irb-save-history&quot;</span>
<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;History configured.&quot;</span>
&nbsp;
<span style="color:#008000; font-style:italic;"># auto-indent</span>
IRB.<span style="color:#9900CC;">conf</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:AUTO_INDENT</span><span style="color:#006600; font-weight:bold;">&#93;</span>=<span style="color:#0000FF; font-weight:bold;">true</span>
<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;Auto-indent on.&quot;</span>
&nbsp;
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'rubygems'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'map_by_method'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'what_methods'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'pp'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'wirble'</span>
&nbsp;
THEME_FOR_WHITE_BKG = <span style="color:#006600; font-weight:bold;">&#123;</span>
      <span style="color:#008000; font-style:italic;"># delimiter colors</span>
      <span style="color:#ff3333; font-weight:bold;">:comma</span>              =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:purple</span>,
      <span style="color:#ff3333; font-weight:bold;">:refers</span>             =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:blue</span>,
&nbsp;
      <span style="color:#008000; font-style:italic;"># container colors (hash and array)</span>
      <span style="color:#ff3333; font-weight:bold;">:open_hash</span>          =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:red</span>,
      <span style="color:#ff3333; font-weight:bold;">:close_hash</span>         =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:red</span>,
      <span style="color:#ff3333; font-weight:bold;">:open_array</span>         =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:red</span>,
      <span style="color:#ff3333; font-weight:bold;">:close_array</span>        =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:red</span>,
&nbsp;
      <span style="color:#008000; font-style:italic;"># object colors</span>
      <span style="color:#ff3333; font-weight:bold;">:open_object</span>        =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:dark_gray</span>,
      <span style="color:#ff3333; font-weight:bold;">:object_class</span>       =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:purple</span>,
      <span style="color:#ff3333; font-weight:bold;">:object_addr_prefix</span> =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:blue</span>,
      <span style="color:#ff3333; font-weight:bold;">:object_line_prefix</span> =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:blue</span>,
      <span style="color:#ff3333; font-weight:bold;">:close_object</span>       =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:dark_gray</span>,
      <span style="color:#008000; font-style:italic;"># symbol colors</span>
      <span style="color:#ff3333; font-weight:bold;">:symbol</span>             =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:black</span>,
      <span style="color:#ff3333; font-weight:bold;">:symbol_prefix</span>      =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:light_gray</span>,
&nbsp;
      <span style="color:#008000; font-style:italic;"># string colors</span>
      <span style="color:#ff3333; font-weight:bold;">:open_string</span>        =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:blue</span>,
      <span style="color:#ff3333; font-weight:bold;">:string</span>             =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:dark_gray</span>,
      <span style="color:#ff3333; font-weight:bold;">:close_string</span>       =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:blue</span>,
&nbsp;
      <span style="color:#008000; font-style:italic;"># misc colors</span>
      <span style="color:#ff3333; font-weight:bold;">:number</span>             =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:black</span>,
      <span style="color:#ff3333; font-weight:bold;">:keyword</span>            =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:brown</span>,
      <span style="color:#ff3333; font-weight:bold;">:class</span>              =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:red</span>,
      <span style="color:#ff3333; font-weight:bold;">:range</span>              =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:blue</span>,
    <span style="color:#006600; font-weight:bold;">&#125;</span>
&nbsp;
<span style="color:#008000; font-style:italic;">#Wirble::Colorize.colors = THEME_FOR_WHITE_BKG</span>
Wirble.<span style="color:#9900CC;">init</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:skip_prompt</span>=<span style="color:#006600; font-weight:bold;">&amp;</span>gt;true,:skip_history=<span style="color:#006600; font-weight:bold;">&amp;</span>gt;true<span style="color:#006600; font-weight:bold;">&#41;</span>
Wirble.<span style="color:#9900CC;">colorize</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/irb-interactive-ruby-shell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 3/61 queries in 0.037 seconds using memcached
Object Caching 821/1211 objects using apc

Served from: ruyrocha.com @ 2010-09-03 02:37:33 -->