<?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>Fabio Brandão - Blog &#187; Programas</title>
	<atom:link href="http://www.fnbrandao.com.br/blog/category/programas/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fnbrandao.com.br/blog</link>
	<description></description>
	<lastBuildDate>Tue, 24 Aug 2010 01:33:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Selenium + Wait for Ajax</title>
		<link>http://www.fnbrandao.com.br/blog/2010/04/selenium-wait-for-ajax/</link>
		<comments>http://www.fnbrandao.com.br/blog/2010/04/selenium-wait-for-ajax/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 18:56:56 +0000</pubDate>
		<dc:creator>fabio</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programação]]></category>
		<category><![CDATA[Selenium]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[waitforcondition]]></category>

		<guid isPermaLink="false">http://www.fnbrandao.com.br/blog/?p=61</guid>
		<description><![CDATA[Hoje tive que fazer um teste automatizado que deveria obrigatoriamente esperar por um Ajax ser executado para continuar a sua execução.
Encontrei este link: http://agilesoftwaretesting.com/?p=111, que fala o seguinte:
Faça um método em java como:
 
public static void waitForAjax(Selenium selenium, String timeout) {
    String js_condition =
      "selenium.browserbot.getCurrentWindow().jQuery.active == 0";
 [...]]]></description>
			<content:encoded><![CDATA[<p>Hoje tive que fazer um teste automatizado que deveria obrigatoriamente esperar por um Ajax ser executado para continuar a sua execução.</p>
<p>Encontrei este link: <a title="http://agilesoftwaretesting.com/?p=111" href="http://agilesoftwaretesting.com/?p=111" target="_blank">http://agilesoftwaretesting.com/?p=111</a>, que fala o seguinte:</p>
<p>Faça um método em java como:</p>
<p><code> </code></p>
<pre>public static void waitForAjax(Selenium selenium, String timeout) {
    String js_condition =
      "selenium.browserbot.getCurrentWindow().jQuery.active == 0";
    selenium.waitForCondition(js_condition, timeout);
}
</pre>
<p>O valor da variável js_condition dependerá do framework JS que está sendo utilizado no site. Basicamente ele segue o seguinte formato:</p>
<p><code>"selenium.browserbot.getCurrentWindow()." + library specific string + " == 0"</code></p>
<p>Onde a parte específica pode ser:</p>
<p><code>jQuery: "jQuery.active"<br />
Prototype: "Ajax.activeRequestCount"<br />
Dojo: "dojo.io.XMLHTTPTransport.inFlight.length"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnbrandao.com.br/blog/2010/04/selenium-wait-for-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP + Zend + PDO + MySQL</title>
		<link>http://www.fnbrandao.com.br/blog/2010/01/php-zend-pdo-mysql/</link>
		<comments>http://www.fnbrandao.com.br/blog/2010/01/php-zend-pdo-mysql/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 17:07:18 +0000</pubDate>
		<dc:creator>fabio</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[access denied for user]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[pdo]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[unknown mysql server host]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://www.fnbrandao.com.br/blog/?p=48</guid>
		<description><![CDATA[Hoje eu estava fazendo um site utilizando php, Zend Framework, PDO e MySQL.
Quando fui fazer uma tela que se conectava com o banco de dados, ocorria o seguinte erro:
SQLSTATE[HY000] [2005] Unknown MySQL server host ''localhost'' (1)
Removi do arquivo de configuração a linha que informava o host onde estava o banco de dados e o erro [...]]]></description>
			<content:encoded><![CDATA[<p>Hoje eu estava fazendo um site utilizando php, Zend Framework, PDO e MySQL.</p>
<p>Quando fui fazer uma tela que se conectava com o banco de dados, ocorria o seguinte erro:</p>
<p><code>SQLSTATE[HY000] [2005] Unknown MySQL server host ''localhost'' (1)</code></p>
<p>Removi do arquivo de configuração a linha que informava o host onde estava o banco de dados e o erro passou a ser:</p>
<p><code>SQLSTATE[28000] [1045] Access denied for user 'user'@'localhost' (using password: YES)</code></p>
<p>Não, as permissões não estavam erradas. O problema todo era o arquivo de configuração do zend (application.ini), que estava assim:</p>
<p><code>resources.db.params.host = 'localhost'<br />
resources.db.params.username = 'user'<br />
resources.db.params.password = 'pass'<br />
resources.db.params.dbname = 'db'</code></p>
<p>O problema todo era as aspas simples, deveriam ser aspas duplas:</p>
<p><code>resources.db.params.host = "localhost"<br />
resources.db.params.username = "user"<br />
resources.db.params.password = "pass"<br />
resources.db.params.dbname = "db"</code></p>
<p>Acabei perdendo a manhã toda até achar este pequeno problema.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnbrandao.com.br/blog/2010/01/php-zend-pdo-mysql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Selenium &#8211; Permission denied to get property Location.href</title>
		<link>http://www.fnbrandao.com.br/blog/2008/07/selenium-permission-denied-to-get-property-locationhref/</link>
		<comments>http://www.fnbrandao.com.br/blog/2008/07/selenium-permission-denied-to-get-property-locationhref/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 13:35:09 +0000</pubDate>
		<dc:creator>fabio</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programação]]></category>
		<category><![CDATA[Selenium]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Location.href]]></category>

		<guid isPermaLink="false">http://www.fnbrandao.com.br/blog/?p=22</guid>
		<description><![CDATA[Hoje tive um problema no Selenium, no qual o mesmo não conseguia verificar a url do navegador, jogando uma exceção com a seguinte mensagem:
Permission denied to get property Location.href
Procurando no google, encontrei o seguinte blog:
http://www.woloszyn.org/2008/04/22/selenium-and-the-permission-denied-to-get-property-locationhref-problem/
Este blog mencionava que o problema era causado por um redirect enviado pelo response do servidor. A solução desse blog foi [...]]]></description>
			<content:encoded><![CDATA[<p>Hoje tive um problema no Selenium, no qual o mesmo não conseguia verificar a url do navegador, jogando uma exceção com a seguinte mensagem:</p>
<p><code>Permission denied to get property Location.href</code></p>
<p>Procurando no google, encontrei o seguinte blog:</p>
<p><a href="http://www.woloszyn.org/2008/04/22/selenium-and-the-permission-denied-to-get-property-locationhref-problem/" target="_blank">http://www.woloszyn.org/2008/04/22/selenium-and-the-permission-denied-to-get-property-locationhref-problem/</a></p>
<p>Este blog mencionava que o problema era causado por um redirect enviado pelo response do servidor. A solução desse blog foi não utilizar o redirect.</p>
<p>Em outro site:</p>
<p><a href="http://www.nabble.com/Permission-denied-to-get-property-Location.href-td8081383.html" target="_blank">http://www.nabble.com/Permission-denied-to-get-property-Location.href-td8081383.html</a></p>
<p>Falava que só bastava utilizar o *chrome ou *iehta (no meu código estava sendo utilizado o *firefox). Após esta alteração, tudo voltou a funcionar normalmente.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnbrandao.com.br/blog/2008/07/selenium-permission-denied-to-get-property-locationhref/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Archlinux HP Pavilion dv9000 &#8211; Suspend e Hibernate</title>
		<link>http://www.fnbrandao.com.br/blog/2008/07/archlinux-hp-pavilion-dv9000-suspend-e-hibernate/</link>
		<comments>http://www.fnbrandao.com.br/blog/2008/07/archlinux-hp-pavilion-dv9000-suspend-e-hibernate/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 02:58:01 +0000</pubDate>
		<dc:creator>fabio</dc:creator>
				<category><![CDATA[ArchLinux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Megadeth]]></category>
		<category><![CDATA[Programas]]></category>
		<category><![CDATA[Shows]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dv9000]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[HP]]></category>
		<category><![CDATA[Suspend]]></category>

		<guid isPermaLink="false">http://www.fnbrandao.com.br/blog/?p=21</guid>
		<description><![CDATA[Como mencionado no último post, não estava conseguindo fazer meu notebook hibernar ou suspender no modo gráfico no Archlinux. Após uma simples pesquisa no google encontrei a solução: bastou colocar o meu usuário no grupo &#8220;power&#8221;.
]]></description>
			<content:encoded><![CDATA[<p>Como mencionado no último post, não estava conseguindo fazer meu notebook hibernar ou suspender no modo gráfico no Archlinux. Após uma simples pesquisa no google encontrei a solução: bastou colocar o meu usuário no grupo <em><strong>&#8220;power&#8221;</strong></em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnbrandao.com.br/blog/2008/07/archlinux-hp-pavilion-dv9000-suspend-e-hibernate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade Ubuntu e problema no Postgre</title>
		<link>http://www.fnbrandao.com.br/blog/2008/06/upgrade-ubuntu-e-problema-no-postgre/</link>
		<comments>http://www.fnbrandao.com.br/blog/2008/06/upgrade-ubuntu-e-problema-no-postgre/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 14:39:17 +0000</pubDate>
		<dc:creator>fabio</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Postgre]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.fnbrandao.com.br/blog/?p=18</guid>
		<description><![CDATA[Após atualizar o Ubuntu para a versão 8.04, o servidor do postgre não iniciava mais com o seguinte erro:

 * The PostgreSQL server failed to start. Please check the log output:
BRT LOG:  could not load root certificate file "root.crt": no SSL error reported
BRT DETAIL:  Will not verify client certificates.
BRT FATAL:  could not [...]]]></description>
			<content:encoded><![CDATA[<p>Após atualizar o Ubuntu para a versão 8.04, o servidor do postgre não iniciava mais com o seguinte erro:</p>
<p><code>
<pre> * The PostgreSQL server failed to start. Please check the log output:
BRT LOG:  could not load root certificate file "root.crt": no SSL error reported
BRT DETAIL:  Will not verify client certificates.
BRT FATAL:  could not create shared memory segment: Invalid argument
BRT DETAIL:  Failed system call was shmget(key=5432001, size=34504704, 03600).
BRT HINT:  This error usually means that PostgreSQL's request for a shared memory
segment exceeded your kernel's SHMMAX parameter.  You can either reduce the
request size or reconfigure the kernel with larger SHMMAX.  To reduce the request
size (currently 34504704 bytes), reduce PostgreSQL's shared_buffers parameter
(currently 3456) and/or its max_connections parameter (currently 103).
	If the request size is already small, it's possible that it is less than your
kernel's SHMMIN parameter, in which case raising the request size or reconfiguring
SHMMIN is called for.
	The PostgreSQL documentation contains more information about shared
memory configuration.
</pre>
<p></code></p>
<p>Foi necessário alterar o arquivo <em>&#8220;/etc/postgresql/8.3/main/postgresql.conf&#8221;</em>, trocando o valor da variável <em>&#8220;shared_buffers&#8221;</em> de <em>&#8220;32MB&#8221;</em> para <em>&#8220;26MB&#8221;</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnbrandao.com.br/blog/2008/06/upgrade-ubuntu-e-problema-no-postgre/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plugins Firefox3</title>
		<link>http://www.fnbrandao.com.br/blog/2008/06/plugins-firefox3/</link>
		<comments>http://www.fnbrandao.com.br/blog/2008/06/plugins-firefox3/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 13:38:31 +0000</pubDate>
		<dc:creator>fabio</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Firefox 3]]></category>
		<category><![CDATA[Programas]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://www.fnbrandao.com.br/blog/?p=17</guid>
		<description><![CDATA[Após o upgrade do Ubuntu 7.10 para 8.04 no trabalho, alguns plugins não funcionavam no Firefox 3.
Para fazer os plugins funcionarem, siga estes passos:

Faça o download do arquivo .xpi do plugin desejado
Abra o arquivo como um arquivo do tipo .zip
Dentro do arquivo existe um arquivo chamado &#8220;install.rdf&#8221;, altere este arquivo e troque o valor de [...]]]></description>
			<content:encoded><![CDATA[<p>Após o upgrade do Ubuntu 7.10 para 8.04 no trabalho, alguns plugins não funcionavam no Firefox 3.<br />
Para fazer os plugins funcionarem, siga estes passos:</p>
<ul>
<li>Faça o download do arquivo <em>.xpi</em> do plugin desejado</li>
<li>Abra o arquivo como um arquivo do tipo <em>.zip</em></li>
<li>Dentro do arquivo existe um arquivo chamado <em>&#8220;install.rdf&#8221;</em>, altere este arquivo e troque o valor de qualquer <em>&#8220;maxVersion&#8221;</em> por <em>&#8220;3.0.0.*&#8221;</em></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.fnbrandao.com.br/blog/2008/06/plugins-firefox3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
