<?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>Rafael Pinto</title>
	<atom:link href="http://rafaelunp.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rafaelunp.wordpress.com</link>
	<description>Apenas para minha documentação (mas pode lhe ser útil)</description>
	<lastBuildDate>Fri, 07 Oct 2011 11:19:35 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='rafaelunp.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Rafael Pinto</title>
		<link>http://rafaelunp.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://rafaelunp.wordpress.com/osd.xml" title="Rafael Pinto" />
	<atom:link rel='hub' href='http://rafaelunp.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Squirrel Erro: Create/Alter Procedure</title>
		<link>http://rafaelunp.wordpress.com/2009/08/12/squirrel-create-alter-procedure/</link>
		<comments>http://rafaelunp.wordpress.com/2009/08/12/squirrel-create-alter-procedure/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 00:40:33 +0000</pubDate>
		<dc:creator>Rafael</dc:creator>
				<category><![CDATA[Squirrel]]></category>

		<guid isPermaLink="false">http://rafaelunp.wordpress.com/?p=63</guid>
		<description><![CDATA[Ao tentar executar algum comando de criação de procedures, views, triggers, etc, usando o Squirrel temos o seguinte erro: Error: &#8216;CREATE/ALTER PROCEDURE&#8217; must be the first statement in a query batch. SQLState: S0001 ErrorCode: 111 Para isso não ocorrer, basta desmarcar a opção &#8220;limit rows&#8221;, que vem marcada por default. Detalhes&#8230; o erro poderia ser [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=63&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ao tentar executar algum comando de criação de procedures, views, triggers, etc, usando o Squirrel temos o seguinte erro:</p>
<p><code><br />
</code></p>
<blockquote><p>Error: &#8216;CREATE/ALTER PROCEDURE&#8217; must be the first statement in a query batch.<br />
SQLState:  S0001<br />
ErrorCode: 111</p>
</blockquote>
<div id="attachment_65" class="wp-caption aligncenter" style="width: 227px"><a href="http://rafaelunp.files.wordpress.com/2009/08/squirrel.jpg"><img class="size-medium wp-image-65" title="Squirrel" src="http://rafaelunp.files.wordpress.com/2009/08/squirrel.jpg?w=217&#038;h=298" alt="Erro ao criar uma procedure" width="217" height="298" /></a><p class="wp-caption-text">Erro ao criar uma procedure</p></div>
<p>Para isso não ocorrer, basta desmarcar a opção &#8220;limit rows&#8221;, que vem marcada por default.<br />
Detalhes&#8230; o erro poderia ser mais amigável&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rafaelunp.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rafaelunp.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rafaelunp.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rafaelunp.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rafaelunp.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rafaelunp.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rafaelunp.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rafaelunp.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rafaelunp.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rafaelunp.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rafaelunp.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rafaelunp.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rafaelunp.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rafaelunp.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=63&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rafaelunp.wordpress.com/2009/08/12/squirrel-create-alter-procedure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/247b3b2cef29fb2b798f8a8f21b541c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rafael</media:title>
		</media:content>

		<media:content url="http://rafaelunp.files.wordpress.com/2009/08/squirrel.jpg?w=217" medium="image">
			<media:title type="html">Squirrel</media:title>
		</media:content>
	</item>
		<item>
		<title>Salvando resultado de consultas em arquivo no SQL Server</title>
		<link>http://rafaelunp.wordpress.com/2009/07/17/salvando-resultado-consultas-no-sql-server-2005/</link>
		<comments>http://rafaelunp.wordpress.com/2009/07/17/salvando-resultado-consultas-no-sql-server-2005/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 22:06:32 +0000</pubDate>
		<dc:creator>Rafael</dc:creator>
				<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[sql server xp_cmdshell sqlcmd]]></category>

		<guid isPermaLink="false">http://rafaelunp.wordpress.com/?p=51</guid>
		<description><![CDATA[Um breve exemplo de como salvar consultas ou resultado de uma Stored Procedure em um arquivo texto, utilizando MS SQL Server 2005. Para fazer esta tarefa vamos utilizar a procedure xp_cmdshell disponível no banco master, juntamente com o comando do windows sqlcmd a rotina ficaria assim: declare @servidor varchar(30), @usuario varchar(20), @senha varchar(20), @banco varchar(30), [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=51&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Um breve exemplo de como salvar consultas ou resultado de uma Stored Procedure em um arquivo texto, utilizando MS SQL Server 2005.</p>
<p>Para fazer esta tarefa vamos utilizar a procedure xp_cmdshell disponível no banco master, juntamente com o comando do windows sqlcmd a rotina ficaria assim:</p>
<blockquote><p><code>declare @servidor varchar(30), @usuario varchar(20), @senha varchar(20), @banco varchar(30), @procedure varchar(80), @arquivoFisico varchar(30), @comando varchar(250)</p>
<p>set @servidor = 'localhost'<br />
set @usuario = 'sa'<br />
set @senha = 'sa'<br />
set @banco = 'NomeDoSeuBanco'<br />
set @procedure = 'select * from tabela ' --poderia ser uma stored Procedure também<br />
set @arquivoFisico = 'c:\saida.csv'<br />
set @comando = 'sqlcmd -S '+@servidor+' -U '+@usuario+' -P '+@senha+' -d '+@banco+' -q "'+@Procedure+'" -s ";" -f 65001 -o '+@arquivoFisico</p>
<p>exec master.dbo.xp_cmdshell @comando<br />
</code></p></blockquote>
<p>No nosso caso o comando sqlcmd está recebendo como parâmetros:<br />
-S Servidor<br />
-U Usuario<br />
-P Senha<br />
-d Banco de dados<br />
-q Instrucao SQL<br />
-s Separador de campos dentro do arquivo texto, no nosso caso, ponto e virgula (poderia ser virgula)<br />
-f 65001 determinando que o arquivo seja gerado com encode UTF-8<br />
-o Saida Caminho fisico</p>
<p><a href="http://rafaelunp.wordpress.com/2009/07/17/sql-server-blocked-access-to-procedure-sys-xp_cmdshell/">Caso o SQL Server bloqueie o acesso a procedure xp_cmdshell é só habilita-la.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rafaelunp.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rafaelunp.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rafaelunp.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rafaelunp.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rafaelunp.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rafaelunp.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rafaelunp.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rafaelunp.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rafaelunp.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rafaelunp.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rafaelunp.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rafaelunp.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rafaelunp.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rafaelunp.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=51&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rafaelunp.wordpress.com/2009/07/17/salvando-resultado-consultas-no-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/247b3b2cef29fb2b798f8a8f21b541c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rafael</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server blocked access to procedure &#8216;sys.xp_cmdshell&#8217;</title>
		<link>http://rafaelunp.wordpress.com/2009/07/17/sql-server-blocked-access-to-procedure-sys-xp_cmdshell/</link>
		<comments>http://rafaelunp.wordpress.com/2009/07/17/sql-server-blocked-access-to-procedure-sys-xp_cmdshell/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 21:58:08 +0000</pubDate>
		<dc:creator>Rafael</dc:creator>
				<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[sql server xp_cmdshell]]></category>

		<guid isPermaLink="false">http://rafaelunp.wordpress.com/?p=47</guid>
		<description><![CDATA[If you get this message: SQL Server blocked access to procedure &#8216;sys.xp_cmdshell&#8217; of component &#8216;xp_cmdshell&#8217; because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of &#8216;xp_cmdshell&#8217; by using sp_configure. For more information about enabling &#8216;xp_cmdshell&#8217;, see &#8220;Surface Area Configuration&#8221; in SQL Server [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=47&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you get this message:</p>
<p>SQL Server blocked access to procedure &#8216;sys.xp_cmdshell&#8217; of component &#8216;xp_cmdshell&#8217; because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of &#8216;xp_cmdshell&#8217; by using sp_configure. For more information about enabling &#8216;xp_cmdshell&#8217;, see &#8220;Surface Area Configuration&#8221; in SQL Server Books Online.</p>
<p>That&#8217;s because, by default, xp_cmdshell is disabled in SQL Server 2005 for security reasons.</p>
<p>To turn it on, run this script:</p>
<blockquote><p><code>EXECUTE SP_CONFIGURE 'show advanced options', 1<br />
RECONFIGURE WITH OVERRIDE<br />
GO</p>
<p>EXECUTE SP_CONFIGURE 'xp_cmdshell', '1'<br />
RECONFIGURE WITH OVERRIDE<br />
GO</p>
<p>EXECUTE SP_CONFIGURE 'show advanced options', 0<br />
RECONFIGURE WITH OVERRIDE<br />
GO</code></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rafaelunp.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rafaelunp.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rafaelunp.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rafaelunp.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rafaelunp.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rafaelunp.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rafaelunp.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rafaelunp.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rafaelunp.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rafaelunp.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rafaelunp.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rafaelunp.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rafaelunp.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rafaelunp.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=47&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rafaelunp.wordpress.com/2009/07/17/sql-server-blocked-access-to-procedure-sys-xp_cmdshell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/247b3b2cef29fb2b798f8a8f21b541c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rafael</media:title>
		</media:content>
	</item>
		<item>
		<title>Melhorando a produtividade com a configuração do Eclipse</title>
		<link>http://rafaelunp.wordpress.com/2009/07/02/melhorando-a-produtividade-com-a-configuracao-do-eclipse/</link>
		<comments>http://rafaelunp.wordpress.com/2009/07/02/melhorando-a-produtividade-com-a-configuracao-do-eclipse/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 21:59:32 +0000</pubDate>
		<dc:creator>Rafael</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[eclipse configuração]]></category>

		<guid isPermaLink="false">http://rafaelunp.wordpress.com/?p=42</guid>
		<description><![CDATA[Configurei o meu eclipse desta forma e na minha opinião melhorou a produtividade. General &#62; Appearance Marcar "show traditional style tabs" Desmarcar "enable animations" General &#62; Editor &#62; Text Editor Marcar "show line numbers" General &#62; Editor &#62; Text Editor &#62; Spelling Desmarcar "Enable spell check" Java &#62; Editor &#62; Content Assist Marcar "completion overwrites" [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=42&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Configurei o meu eclipse desta forma e na minha opinião melhorou a produtividade.</p>
<blockquote><p><code><br />
General &gt; Appearance Marcar "show traditional style tabs" Desmarcar "enable animations"</p>
<p>General &gt; Editor &gt; Text Editor Marcar "show line numbers"</p>
<p>General &gt; Editor &gt; Text Editor &gt; Spelling Desmarcar "Enable spell check"</p>
<p>Java &gt; Editor &gt; Content Assist Marcar "completion overwrites" Marcar "insert common prefixes automatically" Marcar "guess filled method arguments"</p>
<p>Java &gt; Editor &gt; Typing Marcar "Semicolons" Marcar "Braces"</p>
<p>Java &gt; Editor &gt; Save Actions Marcar "Perform the selected actions on save" Marcar "Organize imports" Marcar "Additional actions" e clicar no botão "Configure...": Aba Code style: Marcar "Use blocks in if/while/for/do statements" e selecionar "always" Aba Unecessary Code: Marcar "Remove unused imports" Marcar "Remove unecessary casts" Aba Missing Code: Marcar "Add missing annotations", "@Override" e "@Deprecated" Aba Code Organizing: Marcar "Remove trailling whitespace" e selecionar "all lines"</p>
<p>Java &gt; Compiler &gt; Errors/Warnings: Mudar para "ignore" as opções da seção "Generic Types" - melhor do que ficar adicionando @SuppressWarnings</p>
<p>Java &gt; Debug Desmarcar "Suspend execution on uncaught exceptions"<br />
</code></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rafaelunp.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rafaelunp.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rafaelunp.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rafaelunp.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rafaelunp.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rafaelunp.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rafaelunp.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rafaelunp.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rafaelunp.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rafaelunp.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rafaelunp.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rafaelunp.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rafaelunp.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rafaelunp.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=42&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rafaelunp.wordpress.com/2009/07/02/melhorando-a-produtividade-com-a-configuracao-do-eclipse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/247b3b2cef29fb2b798f8a8f21b541c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rafael</media:title>
		</media:content>
	</item>
		<item>
		<title>Error running JSF with Jboss</title>
		<link>http://rafaelunp.wordpress.com/2009/06/22/error-running-jsf-with-jboss/</link>
		<comments>http://rafaelunp.wordpress.com/2009/06/22/error-running-jsf-with-jboss/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 15:46:24 +0000</pubDate>
		<dc:creator>Rafael</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JSF Jboss Error]]></category>

		<guid isPermaLink="false">http://rafaelunp.wordpress.com/2009/06/22/error-running-jsf-with-jboss/</guid>
		<description><![CDATA[Error: The specified InjectionProvider implementation &#8216;org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider&#8217; does not implement the InjectionProvider interface. Solution: You need to remove the bundled JSF implementation. To do so you need to comment/remove the following from the web.xml found under jboss-4.2.0.GA\server\\deploy\jboss-web.deployer\conf. Under jboss 5.0.0GA jboss-5.0.0.GA\server\default\deployers\jbossweb.deployer\web.xml &#60; !-- Comment/Remove this -- &#62; &#60; !-- Configures JSF for a web application if [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=38&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Error: The specified InjectionProvider implementation &#8216;org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider&#8217; does not implement the InjectionProvider interface.</p>
<p>Solution:<br />
You need to remove the bundled JSF implementation. To do so you need to comment/remove the following from the web.xml found under jboss-4.2.0.GA\server\\deploy\jboss-web.deployer\conf.</p>
<p>Under jboss 5.0.0GA jboss-5.0.0.GA\server\default\deployers\jbossweb.deployer\web.xml</p>
<blockquote><p><code>&lt; !-- Comment/Remove this -- &gt;<br />
&lt; !-- Configures JSF for a web application if the javax.faces.webapp.FacesServlet is declared -- &gt;<br />
&lt; !-- in web.xml. -- &gt;<br />
&lt; !--<br />
&lt; listener&gt;<br />
&lt; listener-class&gt;org.jboss.web.jsf.integration.config.JBossJSFConfigureListener <!-- listener-class--><br />
&lt; /listener&gt;<br />
--&gt;<br />
&lt; !-- Comment/Remove this -- &gt;<br />
&lt; !-- Listens to all web app lifecycle events so that @PreDestroy can be called on -- &gt;<br />
&lt; !-- JSF managed beans that go out of scope. You can comment this out if you -- &gt;<br />
&lt; !-- don't use JSF or you don't use annotations on your managed beans. -- &gt;<br />
&lt; !--<br />
&lt; listener&gt;<br />
&lt; listener-class&gt;com.sun.faces.application.WebappLifecycleListener&lt; /listener-class&gt;<br />
&lt; /listener&gt;<br />
-- &gt;</code></p>
</blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rafaelunp.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rafaelunp.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rafaelunp.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rafaelunp.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rafaelunp.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rafaelunp.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rafaelunp.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rafaelunp.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rafaelunp.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rafaelunp.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rafaelunp.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rafaelunp.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rafaelunp.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rafaelunp.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=38&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rafaelunp.wordpress.com/2009/06/22/error-running-jsf-with-jboss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/247b3b2cef29fb2b798f8a8f21b541c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rafael</media:title>
		</media:content>
	</item>
		<item>
		<title>Sequência de Fibonacci em Ruby e Java</title>
		<link>http://rafaelunp.wordpress.com/2009/03/13/fibonacci-ruby-jav/</link>
		<comments>http://rafaelunp.wordpress.com/2009/03/13/fibonacci-ruby-jav/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 14:54:46 +0000</pubDate>
		<dc:creator>Rafael</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[java ruby fibonacci]]></category>

		<guid isPermaLink="false">http://rafaelunp.wordpress.com/?p=28</guid>
		<description><![CDATA[Escrevendo a sequência de Fibonacci em Ruby x, y = 0, 1 10.times do   puts y   x, y = y, x + y end e em java&#8230; class Fib {   public static void main (String args[]) {      int x = 0;      int y = 1;      int total = 1; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=28&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Escrevendo a sequência de Fibonacci em Ruby</p>
<pre>x, y = 0, 1
10.times do
  puts y
  x, y = y, x + y
end</pre>
<p>e em java&#8230;</p>
<pre>class Fib {
  public static void main (String args[]) {
     int x = 0;
     int y = 1;
     int total = 1;
     for (int i=0; i&lt;10; i++) {
       System.out.println(total);
       total = x+y;
       x = y;
       y = total;
     }
   }
}</pre>
<p>Resultado em ambos os casos:<br />
1<br />
1<br />
2<br />
3<br />
5<br />
8<br />
13<br />
21<br />
34<br />
55</p>
<p>*Depois que se aprende o básico do Ruby, o básico do Java fica complexo demais&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rafaelunp.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rafaelunp.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rafaelunp.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rafaelunp.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rafaelunp.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rafaelunp.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rafaelunp.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rafaelunp.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rafaelunp.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rafaelunp.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rafaelunp.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rafaelunp.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rafaelunp.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rafaelunp.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=28&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rafaelunp.wordpress.com/2009/03/13/fibonacci-ruby-jav/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/247b3b2cef29fb2b798f8a8f21b541c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rafael</media:title>
		</media:content>
	</item>
		<item>
		<title>Traduzindo labels no active_scaffold</title>
		<link>http://rafaelunp.wordpress.com/2009/02/23/traduzindo-labels-no-active_scaffold/</link>
		<comments>http://rafaelunp.wordpress.com/2009/02/23/traduzindo-labels-no-active_scaffold/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 15:51:31 +0000</pubDate>
		<dc:creator>Rafael</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[rails active scaffold]]></category>

		<guid isPermaLink="false">http://rafaelunp.wordpress.com/?p=21</guid>
		<description><![CDATA[Juntamente com minhas dúvidas, percebi que outras pessoas também questionaram como traduzir alguns labels no active_scaffold. Pois bem, descobri duas maneiras para traduzir as expressões “Create”, “Edit”, “Delete”, “Show”, “Found”, etc, que aparecem nas views geradas automaticamente. A primeira seria através do application.rb adicionar o código: ActiveScaffold.set_defaults do &#124;config&#124; config.ignore_columns.add [:created_at, :updated_at, :lock_version] config.create.link.label = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=21&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Juntamente com minhas dúvidas, percebi que outras pessoas também questionaram como traduzir alguns labels no active_scaffold.</p>
<p>Pois bem, descobri duas maneiras para traduzir as expressões “Create”, “Edit”, “Delete”, “Show”, “Found”, etc, que aparecem nas views geradas automaticamente. A primeira seria através do application.rb adicionar o código:</p>
<blockquote><p>ActiveScaffold.set_defaults do |config|<br />
config.ignore_columns.add [:created_at, :updated_at, :lock_version]<br />
config.create.link.label = &#8220;Novo&#8221;<br />
config.update.link.label = &#8220;Alterar&#8221;<br />
config.delete.link.label = &#8220;Excluir&#8221;<br />
config.show.link.label = &#8220;Exibir&#8221;<br />
end</p></blockquote>
<p>E a outra forma, mais drástica, seria acessar os arquivos .rb que ficam na pasta vendor/plugins/active_scaffold/lib/config e alterar os labels da maneira que quisermos.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rafaelunp.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rafaelunp.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rafaelunp.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rafaelunp.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rafaelunp.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rafaelunp.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rafaelunp.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rafaelunp.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rafaelunp.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rafaelunp.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rafaelunp.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rafaelunp.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rafaelunp.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rafaelunp.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=21&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rafaelunp.wordpress.com/2009/02/23/traduzindo-labels-no-active_scaffold/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/247b3b2cef29fb2b798f8a8f21b541c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rafael</media:title>
		</media:content>
	</item>
		<item>
		<title>Problemas com active_scaffold</title>
		<link>http://rafaelunp.wordpress.com/2009/02/23/problemas-com-active_scaffold/</link>
		<comments>http://rafaelunp.wordpress.com/2009/02/23/problemas-com-active_scaffold/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 15:22:00 +0000</pubDate>
		<dc:creator>Rafael</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[rails active scaffold]]></category>

		<guid isPermaLink="false">http://rafaelunp.wordpress.com/?p=16</guid>
		<description><![CDATA[Procurando por plugins ajax para Rails no google, constatei que um dos mais populares atualmente é o active_scaffold. Acessei o tutorial deste plugin. Executei todas as instruções, passo a passo, mas para minha surpresa tive um pequeno problema de incompatibilidade de versões (rails 2.1.0) de forma que não conseguia nem startar a aplicação! Como eu [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=16&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Procurando por plugins ajax para Rails no google, constatei que um dos mais populares atualmente é o <a title="Active Scaffold" href="http://activescaffold.com/" target="_blank">active_scaffold</a>. Acessei o <a title="Tutorial Active_Scaffold" href="http://activescaffold.com/tutorials/getting-started" target="_blank">tutorial</a> deste plugin. Executei todas as instruções, passo a passo, mas para minha surpresa tive um <span style="text-decoration:line-through;">pequeno</span> problema de incompatibilidade de versões (rails 2.1.0) de forma que não conseguia nem startar a aplicação!</p>
<p>Como eu segui a risca todo passo a passo do tutorial, não entendi o que havia feito de errado, mas vamos as considerações:</p>
<p>No github, peguei a seguinte versão: git://github.com/neves/active_scaffold.git</p>
<p>Adicionai as linhas abaixo no layout</p>
<pre>&lt;%= javascript_include_tag :defaults %&gt;
&lt;%= active_scaffold_includes %&gt;</pre>
<p>E finalmente, no controller:</p>
<pre>class UserController &lt; ApplicationController
  active_scaffold :user
end</pre>
<p><strong>Só isso já é o suficiente para o active_scaffold rodar!</strong><br />
PORÉM, ao continuar lendo o tutorial, já no final temos as recomendações temos:</p>
<blockquote><p><strong>&#8220;Generating scaffold_resources&#8221;</strong><br />
If you are starting up a new application and want to use controller resources and RESTful routing,<br />
then you should be aware that script/generate scaffold_resources requires some tweaking to operate with ActiveScaffold.<br />
After running this generator, you’ll want to open up the generated controller, empty out all the built-in Rails scaffolding,<br />
and replace it with the active_scaffold :my_model call.<br />
Then, you’ll want to open up config/routes.rb and edit the new map.resources line and add an :active_scaffold =&gt; true argument.</p></blockquote>
<p>É neste ponto que está o problema. Alterando o arquivo config/routes.rb e adicionando a linha :active_scaffold =&gt; true,<br />
o servidor não inicializa e não é possível prosseguir. O erro que mostra é de incompatibilidade entre a versão do active_scaffold com a versão do rails.</p>
<p>Como estou iniciando em RoR, limitei-me a gerar o scaffold da forma convencional e alterar manualmente os controllers. Isto é o suficiente para fazê-lo funcionar. Caso alguém conheça mais profundamente sobre este assunto, fica aberto para comentários que venham a agregar valor!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rafaelunp.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rafaelunp.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rafaelunp.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rafaelunp.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rafaelunp.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rafaelunp.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rafaelunp.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rafaelunp.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rafaelunp.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rafaelunp.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rafaelunp.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rafaelunp.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rafaelunp.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rafaelunp.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=16&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rafaelunp.wordpress.com/2009/02/23/problemas-com-active_scaffold/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/247b3b2cef29fb2b798f8a8f21b541c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rafael</media:title>
		</media:content>
	</item>
		<item>
		<title>Apresentação</title>
		<link>http://rafaelunp.wordpress.com/2009/02/18/apresentacao/</link>
		<comments>http://rafaelunp.wordpress.com/2009/02/18/apresentacao/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 11:30:14 +0000</pubDate>
		<dc:creator>Rafael</dc:creator>
				<category><![CDATA[Apresentação]]></category>
		<category><![CDATA[Rafael Pinto]]></category>

		<guid isPermaLink="false">http://rafaelunp.wordpress.com/?p=8</guid>
		<description><![CDATA[Prezados, Estou iniciando este blog para centralizar (e compartilhar) informações que me foram (e são) úteis na área de desenvolvimento de sistemas. Inicialmente escreverei sobre Rails, que é uma linguagem que estou aprendendo e com isso surgem muitas dúvidas.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=8&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Prezados,</p>
<p>Estou iniciando este blog para centralizar (e compartilhar) informações que me foram (e são) úteis na área de desenvolvimento de sistemas. Inicialmente escreverei sobre Rails, que é uma linguagem que estou aprendendo e com isso surgem muitas dúvidas.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rafaelunp.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rafaelunp.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rafaelunp.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rafaelunp.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rafaelunp.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rafaelunp.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rafaelunp.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rafaelunp.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rafaelunp.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rafaelunp.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rafaelunp.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rafaelunp.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rafaelunp.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rafaelunp.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rafaelunp.wordpress.com&amp;blog=4900653&amp;post=8&amp;subd=rafaelunp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rafaelunp.wordpress.com/2009/02/18/apresentacao/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/247b3b2cef29fb2b798f8a8f21b541c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rafael</media:title>
		</media:content>
	</item>
	</channel>
</rss>
