<?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"
	>

<channel>
	<title>Marcelo Murad</title>
	<atom:link href="http://marcelomurad.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://marcelomurad.com</link>
	<description>Sistemas web, agilidade e tecnologia.</description>
	<pubDate>Tue, 01 Mar 2011 16:59:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>Change default table name of session active_record_store for rails 2.3.x.</title>
		<link>http://marcelomurad.com/2009/10/change-default-table-name-of-session-active_record_store-for-rails-23x/</link>
		<comments>http://marcelomurad.com/2009/10/change-default-table-name-of-session-active_record_store-for-rails-23x/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 20:55:45 +0000</pubDate>
		<dc:creator>murad</dc:creator>
		
		<category><![CDATA[rails]]></category>

		<category><![CDATA[active_record]]></category>

		<category><![CDATA[active_record_store]]></category>

		<category><![CDATA[rails 2.3.x]]></category>

		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://marcelomurad.com/?p=67</guid>
		<description><![CDATA[Just a little tip that can save some time. Before rails 2.3.x you should define the new table name like
CGI::Session::ActiveRecordStore::Session.set_table_name &#8220;new_table_name&#8221;
Now you have to define it like that
ActiveRecord::SessionStore::Session.set_table_name &#8220;new_table_name&#8221;
]]></description>
			<content:encoded><![CDATA[<p>Just a little tip that can save some time. Before rails 2.3.x you should define the new table name like</p>
<blockquote><p>CGI::Session::ActiveRecordStore::Session.set_table_name &#8220;new_table_name&#8221;</p></blockquote>
<p>Now you have to define it like that</p>
<blockquote><p>ActiveRecord::SessionStore::Session.set_table_name &#8220;new_table_name&#8221;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://marcelomurad.com/2009/10/change-default-table-name-of-session-active_record_store-for-rails-23x/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Off-Topic - LinkedIn import contacts.</title>
		<link>http://marcelomurad.com/2009/08/linkedin-import-contacts/</link>
		<comments>http://marcelomurad.com/2009/08/linkedin-import-contacts/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 20:19:15 +0000</pubDate>
		<dc:creator>murad</dc:creator>
		
		<category><![CDATA[Causos]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://marcelomurad.com/?p=62</guid>
		<description><![CDATA[Hoje resolvi me cadastrar no LinkedIn, logo que o cadastro é realizado, o sistema pergunta se quer importar contatos de alguns lugares, incluindo sua lista de contatos do gmail. Normalmente acho esta opção uma mão na roda. Sendo assim, aceitei importar a lista de contatos do gmail. Abaixo está a tela do sistema neste ponto [...]]]></description>
			<content:encoded><![CDATA[<p>Hoje resolvi me cadastrar no LinkedIn, logo que o cadastro é realizado, o sistema pergunta se quer importar contatos de alguns lugares, incluindo sua lista de contatos do gmail. Normalmente acho esta opção uma mão na roda. Sendo assim, aceitei importar a lista de contatos do gmail. Abaixo está a tela do sistema neste ponto e meu entendimento quanto a utilização da mesma.<br />
<a href="http://marcelomurad.com/wp-content/uploads/2009/08/linkedin.png"><img class="aligncenter size-medium wp-image-63" title="linkedin" src="http://marcelomurad.com/wp-content/uploads/2009/08/linkedin-300x181.png" alt="" width="300" height="181" /></a></p>
<p>Na caixa grande do lado esquerdo estão todos os contatos do meu gmail, na caixa pequena do lado direito, segundo a seta verde, o link remove all e o botão Invite, estariam os usuário que seriam convidados. Sendo assim, cliquei no botão Invite e todos os meus contatos receberam um convite!!! Depois de alguns minutos, pela quantidade de emails que recebi de confirmação e mensagens instantâneas de pessoas perguntando do que se tratava o convite, tive certeza que convidei todos os meus contatos para o LinkedIn. Por todos, entende-se amigos, clientes, grupos de email que participo, namoradas, ex-namoradas, cachorros, periquitos e papagaios! Legal né? Só no trabalho houveram pessoas que receberam 6 emails de convite.</p>
<p>Peço desculpas a todos que receberam o convite indevidamente!</p>
]]></content:encoded>
			<wfw:commentRss>http://marcelomurad.com/2009/08/linkedin-import-contacts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Verify if the element exists before replace_html</title>
		<link>http://marcelomurad.com/2009/07/verify-if-the-element-exists-before-replace_html/</link>
		<comments>http://marcelomurad.com/2009/07/verify-if-the-element-exists-before-replace_html/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 16:27:39 +0000</pubDate>
		<dc:creator>murad</dc:creator>
		
		<category><![CDATA[rails]]></category>

		<category><![CDATA[prototype]]></category>

		<category><![CDATA[replace_html]]></category>

		<guid isPermaLink="false">http://marcelomurad.com/?p=56</guid>
		<description><![CDATA[I tried many things before decide to extend the framework. But did not get stisfied with the avaliable solutions. So here it is.
Just put the code bellow in some initializer.

]]></description>
			<content:encoded><![CDATA[<p>I tried many things before decide to extend the framework. But did not get stisfied with the avaliable solutions. So here it is.</p>
<p>Just put the code bellow in some initializer.</p>
<p><script src="http://gist.github.com/141044.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://marcelomurad.com/2009/07/verify-if-the-element-exists-before-replace_html/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Pequeno grande monitor&#8230;</title>
		<link>http://marcelomurad.com/2009/04/pequeno-grande-monitor/</link>
		<comments>http://marcelomurad.com/2009/04/pequeno-grande-monitor/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 16:22:04 +0000</pubDate>
		<dc:creator>murad</dc:creator>
		
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://marcelomurad.com/?p=40</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://marcelomurad.com/wp-content/uploads/2009/04/dsc00705resized.jpg"><img class="aligncenter size-medium wp-image-41" title="Pequeno Monitor" src="http://marcelomurad.com/wp-content/uploads/2009/04/dsc00705resized-300x225.jpg" alt="" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://marcelomurad.com/2009/04/pequeno-grande-monitor/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Gitorious installation.</title>
		<link>http://marcelomurad.com/2009/04/gitorious-installation/</link>
		<comments>http://marcelomurad.com/2009/04/gitorious-installation/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 18:26:29 +0000</pubDate>
		<dc:creator>murad</dc:creator>
		
		<category><![CDATA[Ubuntu]]></category>

		<category><![CDATA[rails]]></category>

		<category><![CDATA[gitotious]]></category>

		<guid isPermaLink="false">http://marcelomurad.com/?p=36</guid>
		<description><![CDATA[I just create a script that will automatically install gitorious in a ubuntu server.
If you are having troubles installing it, you can try the script or take a look in what it does.
http://github.com/marcelomurad/rails-env-install/
]]></description>
			<content:encoded><![CDATA[<p>I just create a script that will automatically install <a title="Gitorious Home" href="http://gitorious.org/" target="_blank">gitorious</a> in a ubuntu server.</p>
<p>If you are having troubles installing it, you can try the script or take a look in what it does.</p>
<p><a title="Gitorious script installation" href="http://github.com/marcelomurad/rails-env-install/tree/master" target="_blank">http://github.com/marcelomurad/rails-env-install/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://marcelomurad.com/2009/04/gitorious-installation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Customise error fields</title>
		<link>http://marcelomurad.com/2009/03/customise-error-fields/</link>
		<comments>http://marcelomurad.com/2009/03/customise-error-fields/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 22:46:07 +0000</pubDate>
		<dc:creator>murad</dc:creator>
		
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://marcelomurad.com/?p=32</guid>
		<description><![CDATA[The default rails error message style is to insert a div with attribute class set to fieldWithErrors involving the form field.
That is how I&#8217;ve changed the default rails behaviour to inject css error class into the object.

]]></description>
			<content:encoded><![CDATA[<p>The default rails error message style is to insert a div with attribute class set to fieldWithErrors involving the form field.</p>
<p>That is how I&#8217;ve changed the default rails behaviour to inject css error class into the object.</p>
<p><script src="http://gist.github.com/141047.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://marcelomurad.com/2009/03/customise-error-fields/feed/</wfw:commentRss>
		</item>
		<item>
		<title>RailsConf 2009 aí vou eu!</title>
		<link>http://marcelomurad.com/2009/03/railsconf-2009-ai-vou-eu/</link>
		<comments>http://marcelomurad.com/2009/03/railsconf-2009-ai-vou-eu/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 22:18:15 +0000</pubDate>
		<dc:creator>murad</dc:creator>
		
		<category><![CDATA[rails]]></category>

		<category><![CDATA[railsconf]]></category>

		<guid isPermaLink="false">http://marcelomurad.com/?p=30</guid>
		<description><![CDATA[


]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.railsconf.com"><br />
<img title="RailsConf 2009" src="http://assets.en.oreilly.com/1/event/24/rails2009_336x280.jpg" border="0" alt="RailsConf 2009" width="336" height="280" /><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://marcelomurad.com/2009/03/railsconf-2009-ai-vou-eu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to configure MediaWiki to access Active Directory on Ubuntu</title>
		<link>http://marcelomurad.com/2008/11/how-to-configure-mediawiki-to-access-active-directory-on-ubuntu/</link>
		<comments>http://marcelomurad.com/2008/11/how-to-configure-mediawiki-to-access-active-directory-on-ubuntu/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 20:22:24 +0000</pubDate>
		<dc:creator>murad</dc:creator>
		
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://marcelomurad.com/?p=28</guid>
		<description><![CDATA[
sudo apt-get install php5-ldap;
Download LdapAuthentication.php and copy it to extensions directory;
edit LocalSettings.php

#LDAP Auth
require_once &#8216;extensions/LdapAuthentication.php&#8217;;
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array(&#8217;{#DOMAINNAME#}&#8217;);
$wgLDAPServerNames = array(&#8217;{#DOMAINNAME#}&#8217; =&#62; &#8216;{#domain_server_host#}&#8217;);
$wgLDAPSearchStrings = array(&#8217;{#DOMAINNAME#}&#8217; =&#62; &#8216;{#DOMAINNAME#}\\USER-NAME&#8217;);
$wgLDAPEncryptionType = array(&#8217;{#DOMAINNAME#}&#8217; =&#62; &#8216;clear&#8217;);
$wgLDAPUseLocal = false;
$wgMinimalPasswordLength = 1;
$wgLDAPBaseDNs = array(&#8217;{#DOMAINNAME#}&#8217; =&#62; &#8216;{#BASEDN#}&#8217;);
$wgLDAPSearchAttributes = array(&#8217;{#DOMAINNAME#}&#8217; =&#62; &#8217;sAMAccountName&#8217;);
edit everything that is between {##}.
That is it.
Restart apache and test it.
]]></description>
			<content:encoded><![CDATA[<ul>
<li>sudo apt-get install php5-ldap;</li>
<li>Download <a title="LdapAuthentication.php" href="http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/LdapAuthentication/LdapAuthentication.php?revision=43434" target="_blank">LdapAuthentication.php</a> and copy it to extensions directory;</li>
<li>edit LocalSettings.php</li>
</ul>
<p>#LDAP Auth<br />
require_once &#8216;extensions/LdapAuthentication.php&#8217;;</p>
<p>$wgAuth = new LdapAuthenticationPlugin();<br />
$wgLDAPDomainNames = array(&#8217;{#DOMAINNAME#}&#8217;);<br />
$wgLDAPServerNames = array(&#8217;{#DOMAINNAME#}&#8217; =&gt; &#8216;{#domain_server_host#}&#8217;);<br />
$wgLDAPSearchStrings = array(&#8217;{#DOMAINNAME#}&#8217; =&gt; &#8216;{#DOMAINNAME#}\\USER-NAME&#8217;);<br />
$wgLDAPEncryptionType = array(&#8217;{#DOMAINNAME#}&#8217; =&gt; &#8216;clear&#8217;);<br />
$wgLDAPUseLocal = false;<br />
$wgMinimalPasswordLength = 1;<br />
$wgLDAPBaseDNs = array(&#8217;{#DOMAINNAME#}&#8217; =&gt; &#8216;{#BASEDN#}&#8217;);<br />
$wgLDAPSearchAttributes = array(&#8217;{#DOMAINNAME#}&#8217; =&gt; &#8217;sAMAccountName&#8217;);</p>
<p>edit everything that is between {##}.</p>
<p>That is it.</p>
<p>Restart apache and test it.</p>
]]></content:encoded>
			<wfw:commentRss>http://marcelomurad.com/2008/11/how-to-configure-mediawiki-to-access-active-directory-on-ubuntu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to use gem ruby_plsql with JRuby</title>
		<link>http://marcelomurad.com/2008/10/how-to-use-gem-ruby_plsql-with-jruby/</link>
		<comments>http://marcelomurad.com/2008/10/how-to-use-gem-ruby_plsql-with-jruby/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 16:09:40 +0000</pubDate>
		<dc:creator>murad</dc:creator>
		
		<category><![CDATA[jruby]]></category>

		<guid isPermaLink="false">http://dtmconsultoria.com/?p=47</guid>
		<description><![CDATA[That is just the basic configuration. Hope that helps.
enviroment.rb
config.gem &#8220;ruby-plsql&#8221;, :lib =&#62; &#8220;ruby_plsql&#8221;
models/some_model.rb
require &#8220;ruby_plsql&#8221;
class SomeModel &#60; ActiveRecord::Base
def persist
plsql.connection = ActiveRecord::Base.connection.
raw_connection.connection
appraisal_id = plsql.bra_customhr_eval_pk.create_appraisal(
:p_employee_number =&#62; self.appraisee.employee_number,
:p_appraisal_template_id =&#62;  @avalTemplate[0].template_id,
:p_period_start_date =&#62; @avalTemplate[0].valid_from,
:p_period_end_date =&#62; @avalTemplate[0].valid_until,
:p_business_group_id =&#62; self.appraisee.business_group_id,
:p_appraisal_id =&#62; nil,
:p_object_version_number =&#62; nil)[:p_appraisal_id
end
end
]]></description>
			<content:encoded><![CDATA[<p>That is just the basic configuration. Hope that helps.</p>
<p>enviroment.rb</p>
<p>config.gem &#8220;ruby-plsql&#8221;, :lib =&gt; &#8220;ruby_plsql&#8221;</p>
<p>models/some_model.rb</p>
<p>require &#8220;ruby_plsql&#8221;</p>
<p>class SomeModel &lt; ActiveRecord::Base</p>
<p style="padding-left: 30px;">def persist</p>
<p style="padding-left: 60px;">plsql.connection = ActiveRecord::Base.connection.</p>
<div style="padding-left: 60px;" dir="ltr">raw_connection.connection</div>
<div style="padding-left: 60px;" dir="ltr">appraisal_id = plsql.bra_customhr_eval_pk.create_appraisal(<br />
:p_employee_number =&gt; self.appraisee.employee_number,<br />
:p_appraisal_template_id =&gt;  @avalTemplate[0].template_id,<br />
:p_period_start_date =&gt; @avalTemplate[0].valid_from,<br />
:p_period_end_date =&gt; @avalTemplate[0].valid_until,<br />
:p_business_group_id =&gt; self.appraisee.business_group_id,</p>
<p>:p_appraisal_id =&gt; nil,<br />
:p_object_version_number =&gt; nil)[:p_appraisal_id</p></div>
<div style="padding-left: 30px;" dir="ltr">end</div>
<div dir="ltr">end</div>
]]></content:encoded>
			<wfw:commentRss>http://marcelomurad.com/2008/10/how-to-use-gem-ruby_plsql-with-jruby/feed/</wfw:commentRss>
		</item>
		<item>
		<title>JRuby + JNDI + JBOSS + Oracle</title>
		<link>http://marcelomurad.com/2008/07/jruby-jndi-jboss-oracle/</link>
		<comments>http://marcelomurad.com/2008/07/jruby-jndi-jboss-oracle/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 15:22:06 +0000</pubDate>
		<dc:creator>murad</dc:creator>
		
		<category><![CDATA[jruby]]></category>

		<guid isPermaLink="false">http://dtmconsultoria.com/2008/07/18/jruby-jndi-jboss-oracle/</guid>
		<description><![CDATA[I finally got jndi with jboos to work in jruby on rails . Bellow is an example of files configuration.
I was getting the bellow error:
 javax.naming.NamingException has no valid JNDI binding
=====oracle-ds.xml=====
&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;ISO-8859-1&#8243;?&#62;
&#60;datasources&#62;
&#60;!&#8211; Início: Datasource Technip &#8211;&#62;
&#60;local-tx-datasource&#62;
&#60;jndi-name&#62;simu3&#60;/jndi-name&#62;
&#60;connection-url&#62;jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521:simu3&#60;/connection-url&#62;
&#60;driver-class&#62;oracle.jdbc.driver.OracleDriver&#60;/driver-class&#62;
&#60;user-name&#62;login&#60;/user-name&#62;
&#60;password&#62;password&#60;/password&#62;
&#60;attribute name=&#8221;MinSize&#8221;&#62;5&#60;/attribute&#62;
&#60;attribute name=&#8221;MaxSize&#8221;&#62;20&#60;/attribute&#62;
&#60;attribute name=&#8221;BlockingTimeoutMillis&#8221;&#62;5000&#60;/attribute&#62;
&#60;attribute name=&#8221;IdleTimeoutMinutes&#8221;&#62;15&#60;/attribute&#62;
&#60;idle-timeout-minutes&#62;5&#60;/idle-timeout-minutes&#62;
&#60;/local-tx-datasource&#62;
&#60;/datasources&#62;
=====warble.rb=====
have to enable the line in warble.rb like this:
# Additional files/directories to include, above those in [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got jndi with jboos to work in jruby on rails . Bellow is an example of files configuration.</p>
<p>I was getting the bellow error:</p>
<blockquote><p> javax.naming.NamingException has no valid JNDI binding</p></blockquote>
<p>=====oracle-ds.xml=====<br />
&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;ISO-8859-1&#8243;?&gt;<br />
&lt;datasources&gt;<br />
&lt;!&#8211; Início: Datasource Technip &#8211;&gt;<br />
&lt;local-tx-datasource&gt;<br />
&lt;jndi-name&gt;simu3&lt;/jndi-name&gt;<br />
&lt;connection-url&gt;jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521:simu3&lt;/connection-url&gt;<br />
&lt;driver-class&gt;oracle.jdbc.driver.OracleDriver&lt;/driver-class&gt;<br />
&lt;user-name&gt;login&lt;/user-name&gt;<br />
&lt;password&gt;password&lt;/password&gt;<br />
&lt;attribute name=&#8221;MinSize&#8221;&gt;5&lt;/attribute&gt;<br />
&lt;attribute name=&#8221;MaxSize&#8221;&gt;20&lt;/attribute&gt;<br />
&lt;attribute name=&#8221;BlockingTimeoutMillis&#8221;&gt;5000&lt;/attribute&gt;<br />
&lt;attribute name=&#8221;IdleTimeoutMinutes&#8221;&gt;15&lt;/attribute&gt;<br />
&lt;idle-timeout-minutes&gt;5&lt;/idle-timeout-minutes&gt;<br />
&lt;/local-tx-datasource&gt;<br />
&lt;/datasources&gt;</p>
<p>=====warble.rb=====<br />
have to enable the line in warble.rb like this:<br />
# Additional files/directories to include, above those in config.dirs<br />
config.includes = FileList["jboss-web.xml"]</p>
<p># JNDI data source name<br />
config.webxml.jndi = &#8220;jdbc/simu3&#8243;</p>
<p>=====database.yml=====<br />
production:<br />
adapter: jdbc<br />
jndi: &#8220;java:/simu3&#8243;<br />
driver: oracle.jdbc.driver.OracleDriver</p>
<p>=====jboss-web.xml=====<br />
&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br />
&lt;jboss-web&gt;<br />
&lt;resource-ref&gt;<br />
&lt;res-ref-name&gt;jdbc/simu3&lt;/res-ref-name&gt;<br />
&lt;jndi-name&gt;java:/simu3&lt;/jndi-name&gt;<br />
&lt;/resource-ref&gt;<br />
&lt;/jboss-web&gt;</p>
<p><strong>The most important thing was the creation of jboss-web.xml</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://marcelomurad.com/2008/07/jruby-jndi-jboss-oracle/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
