<?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>Mauricio de Amorim &#187; MacOS</title>
	<atom:link href="http://mauriciodeamorim.com.br/tag/macos/feed/" rel="self" type="application/rss+xml" />
	<link>http://mauriciodeamorim.com.br</link>
	<description>Tecnologia e desenvolvimento web</description>
	<lastBuildDate>Tue, 21 Feb 2012 22:09:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Downgrade Firefox no Mac para rodar Cucumber com Selenium Webdriver</title>
		<link>http://mauriciodeamorim.com.br/2011/08/23/downgrade-firefox-no-mac-para-rodar-cucumber-com-selenium-webdriver/</link>
		<comments>http://mauriciodeamorim.com.br/2011/08/23/downgrade-firefox-no-mac-para-rodar-cucumber-com-selenium-webdriver/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 17:46:39 +0000</pubDate>
		<dc:creator>Mauricio de Amorim</dc:creator>
				<category><![CDATA[Configuração]]></category>
		<category><![CDATA[Dicas rápidas]]></category>
		<category><![CDATA[Erros]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[QA]]></category>
		<category><![CDATA[selenium]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://mauriciodeamorim.com.br/?p=813</guid>
		<description><![CDATA[Se você atualizou o Firefox para as versões 4, 5 ou 6 provavelmente está tendo problemas para rodar testes de Cucumber com o Selenium Webdriver, obtendo o erro abaixo: unable to obtain stable firefox connection in 60 seconds ( ) (Selenium::WebDriver::Error::WebDriverError) Para corrigir &#8220;paliativamente&#8221; e continuar a rodar meus testes fiz o downgrade do Firefox [...]]]></description>
			<content:encoded><![CDATA[<p>Se você atualizou o Firefox para as versões 4, 5 ou 6 provavelmente está tendo problemas para rodar testes de Cucumber com o Selenium Webdriver, obtendo o erro abaixo:</p>
<pre style="background-color: black; color: red">
unable to obtain stable firefox connection in 60 seconds ( )
(Selenium::WebDriver::Error::WebDriverError)
</pre>
<p>Para corrigir &#8220;paliativamente&#8221; e continuar a rodar meus testes fiz o downgrade do Firefox para versão 3.6.19 executando os passos abaixo:</p>
<p>1) Precisei limpar completamente a versão anterior do Firefox usando o <a href="http://freemacsoft.net/#" target="_blank">AppCleaner</a> que é free;</p>
<p>2) Encontrei as versões anteriores do FF no <a href="http://mac.oldapps.com/firefox.php" target="_blank">OldApps.com</a>;</p>
<p>3) Desabilitei o update de versões do FF em Preferences/Advanced/Update</p>
<p>Quem estiver como este mesmo problema no Ubuntu pode resolver com ajuda deste dois posts:</p>
<p><a href="http://code.dblock.org/unable-to-obtain-stable-firefox-connection-in-60-seconds-downgrading-firefox-on-ubuntu" target="_blank">http://code.dblock.org/unable-to-obtain-stable-firefox-connection-in-60-seconds-downgrading-firefox-on-ubuntu</a> </p>
<p><a href="http://blog.troyastle.com/2011/06/downgrade-to-firefox-36-on-ubuntu-natty.html" target="_blank">http://blog.troyastle.com/2011/06/downgrade-to-firefox-36-on-ubuntu-natty.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mauriciodeamorim.com.br/2011/08/23/downgrade-firefox-no-mac-para-rodar-cucumber-com-selenium-webdriver/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Dicas sobre podcasts e apresentações</title>
		<link>http://mauriciodeamorim.com.br/2011/04/11/dicas-sobre-podcasts-e-apresentacoes/</link>
		<comments>http://mauriciodeamorim.com.br/2011/04/11/dicas-sobre-podcasts-e-apresentacoes/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 09:42:04 +0000</pubDate>
		<dc:creator>Mauricio de Amorim</dc:creator>
				<category><![CDATA[Dicas rápidas]]></category>
		<category><![CDATA[colaboração]]></category>
		<category><![CDATA[Dicas]]></category>
		<category><![CDATA[empreendedorismo]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[podcast]]></category>

		<guid isPermaLink="false">http://mauriciodeamorim.com.br/?p=788</guid>
		<description><![CDATA[Alguns dias atrás fiz uma apresentação sobre empreendedorismo chamada &#8220;Empreendedorismo, o pontapé inicial &#8211; Como gerar ideias&#8221; baseada nos podcast do empreendecast, blog saia do lugar e minhas experiências pessoais. Durante o tempo de pesquisa utilizei algumas ferramentas e uma forma talvez não muito convencional de estudar e expor as ideias que compartilho aqui. Para [...]]]></description>
			<content:encoded><![CDATA[<p>Alguns dias atrás fiz uma apresentação sobre empreendedorismo chamada &#8220;Empreendedorismo, o pontapé inicial &#8211; Como gerar ideias&#8221; baseada nos podcast do <a href="http://empreendecast.com.br" target="_blank">empreendecast</a>, blog <a href="http://saiadolugar.com.br" target="_blank">saia do lugar</a> e minhas experiências pessoais. Durante o tempo de pesquisa utilizei algumas ferramentas e uma forma talvez não muito convencional de estudar e expor as ideias que compartilho aqui.</p>
<div style="padding-left:30px;">
<a href="http://itunes.apple.com/us/app/speedup-player-lite/id386748371?mt=8" target="_blank"><img height="80" width="80" style="float: left;" class=" size-full wp-image-794" title="SpeedUp" alt="SpeedUp" src="http://mauriciodeamorim.com.br/wp-content/uploads/2011/04/speedup_ico.jpg"></a></p>
<p><a href="http://support.apple.com/kb/HT3325?viewlocale=pt_BR" target="_blank"><img height="80" width="80" style="float: left;padding-left:30px;" class=" size-full wp-image-793" title="Keynote" alt="Keynote" src="http://mauriciodeamorim.com.br/wp-content/uploads/2011/04/keynote_ico-e1302348159814.jpg"></a></p>
<p><a href="http://www.digitalsirup.com/jfcontrol/" target="_blank"><img height="80" width="80" style="float: left;padding-left:30px;" class="size-full wp-image-792" title="jfcontrol" alt="jfcontrol" src="http://mauriciodeamorim.com.br/wp-content/uploads/2011/04/jfcontrol-e1302348263658.png"></a></p>
<p><a target="_blank" href="http://evernote.com"><img height="80" width="80" style="float: left; padding-left:30px;" class="size-full wp-image-791" title="Evernote" alt="Evernote" src="http://mauriciodeamorim.com.br/wp-content/uploads/2011/04/evernote_ico-e1302348300665.jpg"></a>
</div>
<p><br style="clear:both"/></p>
<p>Para estudar, como meu trajeto casa/trabalho e vice-versa não demora menos de uma hora, passei a ouvir podcasts e dentre eles destaco: </p>
<p><a href="http://www.cinemacomrapadura.com.br/rapaduracast/" target="_blank">Rapaduracast</a> &#8211; que fala sobre cinema, mas no episódio #200 eles falam como fazer um podcast, isto me ajudou a ter algumas ideiais;<br />
<a href="http://falafreela.com.br/" target="_blank">FalaFreela</a> &#8211; trata de dicas para quem é freelancer, mas também é um repositório de ideias e empreendedorismo.<br />
<a href="http://empreendecast.com.br" target="_blank">Empreendecast</a> &#8211; aborda vários tópicos sobre empreendedorismo, este foi a minha base.</p>
<p>Ferramentas que passei a usar e ou conhecer:</p>
<p>Deixando claro que não fiz uma pesquisa mais ampla para saber quais as plataformas que estas ferramentas atendem pois sou usário de Mac, então tudo que usei e cito aqui foi para Mac e Iphone.</p>
<p>- Para guardar minhas ideias utilizei o <a href="http://evernote.com" target="_blank">Evernote</a>, onde eu podia gravar um audio, incluir uma foto ou digitar um texto tudo no mesmo arquivo, com isto eu ia armazenando pequenos insights diariamente.<br />
- A apresentação foi feita em 20 slides no Keynote, todos os slides eram desenhos, praticamente sem palavras então utilizei o <a href="http://pixelmator.com" target="_blank">Pixelmator</a> para desenhar e tratar as imagens procurando deixar todas em preto e branco.<br />
- Para apresentar utilizei o <a href="http://support.apple.com/kb/HT3325?viewlocale=pt_BR" target="_blank">Keynote</a> para Iphone, destaque para este pois de qualquer lugar da sala via Wi-Fi consegui mudar meus slides e acompanhar as anotações no próprio Iphone. Também pesquisei um outro chamado <a href="http://www.digitalsirup.com/jfcontrol/" target="_blank">JFControl</a> que também é bastante interessante e dá para controlar bastante coisa no Mac remotamente através do Iphone.<br />
- Para ouvir os podcast, como eu não tenho muita paciência em ouvir na velocidade normal, utilizei o <a href="http://itunes.apple.com/us/app/speedup-player-lite/id386748371?mt=8" target="_blank">SpeedUp Lite</a> assim um podcast de 30 minutos eu ouvia em 20.</p>
<p>Infelizmente a palestra não foi gravada, então acho não faz sentido colocar os slides aqui porque são meros desenhos e sem contexto não tem significado.</p>
]]></content:encoded>
			<wfw:commentRss>http://mauriciodeamorim.com.br/2011/04/11/dicas-sobre-podcasts-e-apresentacoes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Erro ao instalar MySql com Homebrew no MacOS</title>
		<link>http://mauriciodeamorim.com.br/2010/07/11/erro-ao-instalar-mysql-com-homebrew-no-macos/</link>
		<comments>http://mauriciodeamorim.com.br/2010/07/11/erro-ao-instalar-mysql-com-homebrew-no-macos/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 04:43:36 +0000</pubDate>
		<dc:creator>Mauricio de Amorim</dc:creator>
				<category><![CDATA[Erros]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[homebrew]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[MySql]]></category>

		<guid isPermaLink="false">http://mauriciodeamorim.com.br/?p=688</guid>
		<description><![CDATA[Ao tentar instalar o MySql com Homebrew no meu MacOS Snow Leopard 10.6.4 obtive o seguinte erro: macos-snow ~ $ brew install mysql ==> Downloading ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz curl: (7) couldn't connect to host Este erro pode ocorrer se você re-instalou o seu SO ou está com uma máquina nova porque o MySql depende do bash e [...]]]></description>
			<content:encoded><![CDATA[<p>Ao tentar instalar o MySql com <a href="http://mxcl.github.com/homebrew/" target="_blank">Homebrew</a> no meu MacOS Snow Leopard 10.6.4 obtive o seguinte erro:</p>
<pre style="background-color: black; color: white;">
macos-snow ~  $ brew install mysql
<span style="color: #F9D64C">==> Downloading ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz</span>
curl: <span style="color: #FF3F3F">(7) couldn't connect to host</span>
</pre>
<p>Este erro pode ocorrer se você re-instalou o seu SO ou está com uma máquina nova porque o MySql depende do <a href="http://pt.wikipedia.org/wiki/Bash" target="_blank">bash</a> e o <a href="http://www.linuxfromscratch.org/lfs/view/6.5/chapter06/readline.html" target="_blank">Readline</a> é um componente para edição e histórico da linha de comando <a href="http://www.jorgebernal.info/development/fixing-snow-leopard-ruby-readline" target="_blank">por isso o Readline é instalado</a> antes da instalação do MySql.</p>
<p>A solução mais rápida foi editar a fórmula para instalação do Readline em /usr/local/Library/Formula/readline.rb e trocar o endereço <b>ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz</b> por <b>ftp://ftp.gnu.org/pub/gnu/readline/readline-6.0.tar.gz</b>, no meu caso isto aconteceu porque o primeiro endereço não estava respondendo.</p>
<pre style="background-color: black; color: white;">
class Readline  Formula
  url <b style="color: #FF3F3F">'ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz'</b>
  md5 'b7f65a48add447693be6e86f04a63019'
  homepage 'http://tiswww.case.edu/php/chet/readline/rltop.html' 

   ...
OS X provides the BSD Readline library. In order to prevent conflicts when
programs look for libreadline we are defaulting this GNU Readline installation
to keg-only.
   ...
</pre>
<p>Fica aqui a dica também se você quiser editar fórmulas para instalar com o Homebrew, no diretório /usr/local/Library/Formula/ irá encontrá-las. Para criar novas fórmulas visite <a href="http://wiki.github.com/mxcl/homebrew/formula-cookbook" target="_blank">Wiki do Homebrew</a> ou leia este post do <a href="http://akitaonrails.com/2010/02/27/limpando-meu-ambiente-de-desenvolvimento-parte-2-homebrew" target="_blank">AkitaOnRails</a>.</p>
<p><b>Mais informações: </b><br />
<a href="http://www.mail-archive.com/cygwin@cygwin.com/msg94439.html" target="_blank"> &#8211; Bash-4.0 available for FTP</a><br />
<a href="http://tim.theenchanter.com/2010/01/getting-ruby-to-use-readline-instead-of.html" target="_blank"">- Use readline instead of libedit</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mauriciodeamorim.com.br/2010/07/11/erro-ao-instalar-mysql-com-homebrew-no-macos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Melhorando o prompt do bash para RVM</title>
		<link>http://mauriciodeamorim.com.br/2010/03/16/prompt-bash-para-rvm/</link>
		<comments>http://mauriciodeamorim.com.br/2010/03/16/prompt-bash-para-rvm/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 05:00:00 +0000</pubDate>
		<dc:creator>Mauricio de Amorim</dc:creator>
				<category><![CDATA[Dicas rápidas]]></category>
		<category><![CDATA[Ambientes]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[RVM]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://mauriciodeamorim.com.br/?p=659</guid>
		<description><![CDATA[Esses dias configurei meus sistemas operacionais para usar RVM que serve para gerenciar diferentes instalações do Ruby na mesma máquina. Para instalar no Snow Leopard segui o tutorial do Akita &#8220;Limpando meu Ambiente de Desenvolvimento&#8221; e para instalar no Ubuntu segui o post do Barenko &#8220;Preparando o Ubuntu para múltiplos ambientes Ruby utilizando RVM&#8221; que [...]]]></description>
			<content:encoded><![CDATA[<p>Esses dias configurei meus sistemas operacionais para usar <a href="http://rvm.beginrescueend.com/" target="_blank">RVM</a> que serve para gerenciar diferentes instalações do Ruby na mesma máquina.</p>
<p>Para instalar no Snow Leopard segui o tutorial do Akita <a href="http://akitaonrails.com/2010/01/01/limpando-meu-ambiente-de-desenvolvimento" target="_blank">&#8220;Limpando meu Ambiente de Desenvolvimento&#8221;</a> e para instalar no Ubuntu segui o post do Barenko <a href="http://barenko.wordpress.com/2010/01/19/preparando-o-ubuntu-para-multiplos-ambientes-ruby-utilizando-rvm/" target="_blank">&#8220;Preparando o Ubuntu para múltiplos ambientes Ruby utilizando RVM&#8221;</a> que é mais ou menos uma &#8220;tradução&#8221; do post do Akita para Ubuntu. Deixei tudo igual com exceção da linha onde tem <strong>&#8220;/var/lib/gems/1.8/bin/rvm-install&#8221;</strong> que alterei para </p>
<pre>
~/rvm-install
</pre>
<p>Porém como eu uso <a href="http://github.com/guides/home" target="_blank">Git</a> uma coisa que estava me incomodando é que o prompt do <a href="https://help.ubuntu.com/community/Beginners/BashScripting" target="_blank">Bash</a> em ambos SO não estavam adequados para mostrar a versão da RVM e o branch atual do Git ao mesmo tempo, então fiz algumas e alterações e encontrei algumas &#8220;frescuras a mais&#8221; para personalizar o prompt.<br />
Substitua a linha que começa com &#8220;expost PS1=&#8217;&#8230;.&#8221; no arquivo ~/.bashrc (Ubuntu) ou ~/.bash_profile (MacOS) para:</p>
<pre>
sudo gedit ~/.bashrc
</pre>
<pre style="background-color:white; color:black">
export PS1='\[\033[38m\]\u\[\033[32m\] \w \[\033[1;33m\]`~/.rvm/bin/rvm-prompt i v
`\[\033[0;31m\] `git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /
`\[\033[37m\]$\[\033[00m\] '
</pre>
<p>Com isto o prompt ficará assim </p>
<pre style="background-color:black; color:white">
seu_usuario <span style="color: green">~/projetos/blog</span><span style="color: yellow; font-weight: bold"> ruby-ree </span><span style="color: red"> ( working ) </span>$
</pre>
<p>Segue uma tabela com as cores existentes, se você quiser deixar a fonte em negrito use 1; ao invés de 0;</p>
<pre style="background-color:black; color:white; width: 100px;">
<span style="color: green">"\033[0;32m"</span>
<span style="color: green; font-weight: bold">"\033[1;32m"</span>
</pre>
<p><strong>Cores</strong><br />
corPadrao=&#8221;\033[0m&#8221;<br />
preto=&#8221;\033[0;30m&#8221;<br />
vermelho=&#8221;\033[0;31m&#8221;<br />
verde=&#8221;\033[0;32m&#8221;<br />
marrom=&#8221;\033[0;33m&#8221;<br />
azul=&#8221;\033[0;34m&#8221;<br />
purple=&#8221;\033[0;35m&#8221;<br />
cyan=&#8221;\033[0;36m&#8221;<br />
cinzaClaro=&#8221;\033[0;37m&#8221;<br />
amarelo=&#8221;\033[0;33m&#8221;<br />
branco=&#8221;\033[1;37m&#8221;</p>
<p>Aproveitando que este post é sobre RVM, se alguém tiver dificuldades em rodar o script/console dentro de algum ambiente de RVM dá uma olhada neste <a href="http://www.ortiz.blog.br/dicas/problema-ao-executar-scriptconsole-com-rvm/" target="_blank">post</a> que tem uma solução para este problema.</p>
<p><strong>Referências:</strong><br />
<a href="http://akitaonrails.com/2010/01/01/limpando-meu-ambiente-de-desenvolvimento" target="_blank">Limpando meu Ambiente de Desenvolvimento</a><br />
<a href="http://barenko.wordpress.com/2010/01/19/preparando-o-ubuntu-para-multiplos-ambientes-ruby-utilizando-rvm/" target="_blank">Preparando o Ubuntu para múltiplos ambientes ruby utilizando RVM</a><br />
<a href="http://ubuntuforums.org/archive/index.php/t-31247.html" target="_blank">http://ubuntuforums.org/archive/index.php/t-31247.html</a><br />
<a href="http://www.vivaolinux.com.br/dica/Shell-script-com-texto-colorido" target="_blank">http://www.vivaolinux.com.br/dica/Shell-script-com-texto-colorido</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mauriciodeamorim.com.br/2010/03/16/prompt-bash-para-rvm/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

