<?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>ditoinfo in english &#187; ruby</title>
	<atom:link href="http://danteregis.com/category/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://danteregis.com</link>
	<description>talking about programming and computer stuff</description>
	<lastBuildDate>Tue, 09 Jun 2009 21:57:13 +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>autotest keeps running continuosly even without changing any files?</title>
		<link>http://danteregis.com/2007/12/autotest-keeps-running-continuosly-even-without-changing-any-files/</link>
		<comments>http://danteregis.com/2007/12/autotest-keeps-running-continuosly-even-without-changing-any-files/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 21:34:26 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/12/21/autotest-keeps-running-continuosly-even-without-changing-any-files/</guid>
		<description><![CDATA[So, your autotest also keeps running over and over when your Rails code fails? Well, I had this issue here and found that the problem was that, when the tests were run, Ferret updated the index. So, autotest believed that files where changed when they weren&#8217;t. Googling a bit I found this code that you [...]]]></description>
			<content:encoded><![CDATA[<p>So, your autotest also keeps running over and over when your Rails code fails? Well, I had this issue here and found that the problem was that, when the tests were run, Ferret updated the index. So, autotest believed that files where changed when they weren&#8217;t. Googling a bit I found this code that you should put on your ~/.autotest :</p>
<pre class="brush: ruby">
Autotest.add_hook :run do |at|
  at.exceptions = /^(?:\.\/)?(?:db|index|doc|log|public|script|tmp|filestore|vendor\/rails)|\.svn|(?:.*_flymake\.rb$)/
end
</pre>
<p>If it does not work, try running autotest with &#8220;-v&#8221; option, to see which files have changed on autotest concern, and include the relevant directory on the list above.</p>
<p>Hope this helps you! <img src='http://danteregis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/12/autotest-keeps-running-continuosly-even-without-changing-any-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Console input on Ruby: Masking passwords on the command line</title>
		<link>http://danteregis.com/2007/11/console-input-on-ruby-masking-passwords-on-the-command-line/</link>
		<comments>http://danteregis.com/2007/11/console-input-on-ruby-masking-passwords-on-the-command-line/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 04:36:49 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/11/19/console-input-on-ruby-masking-passwords-on-the-command-line/</guid>
		<description><![CDATA[I like plain old console applications. They are fast (to program, compile and use) and, of course, add a cool factor, like people saying they have absolutely no idea of what you are doing!
Ruby, of course, can do console apps, but it&#8217;s not trivial to read user input. And what if you want the user [...]]]></description>
			<content:encoded><![CDATA[<p>I like plain old console applications. They are fast (to program, compile and use) and, of course, add a cool factor, like people saying they have absolutely no idea of what you are doing!</p>
<p>Ruby, of course, can do console apps, but it&#8217;s not trivial to read user input. And what if you want the user to type a password? You would like, of course, to show them asteriks &#8216;*&#8217; or nothing at all instead of the plain text being typed.</p>
<p>Well, &#8220;highline&#8221; gem covers this and much more. What about writing:</p>
<pre class="brush: ruby">ask(&quot;Enter your password:  &quot; ) { |q| q.echo = &quot;x&quot; }</pre>
<p>And that&#8217;s all! That&#8217;s quite cool, man. It can even check if the answer matches some regex, or split it by commas, or anything you want<br />
Take a look at it: <a href="http://highline.rubyforge.org/">http://highline.rubyforge.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/11/console-input-on-ruby-masking-passwords-on-the-command-line/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Getting notifications of autotest results on Linux (Gnome)</title>
		<link>http://danteregis.com/2007/08/getting-notifications-of-autotest-results-on-linux-gnome/</link>
		<comments>http://danteregis.com/2007/08/getting-notifications-of-autotest-results-on-linux-gnome/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 18:57:39 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/08/22/getting-notifications-of-autotest-results-on-linux-gnome/</guid>
		<description><![CDATA[If you watched the PeepCode episode about RSpec (the first of the trilogy), you may want something like growl on linux to get informed about the results of autotest. Well, there is such thing, but it is quite complicated.
You can use libnotify on Gnome, though. Those little alerts Ubuntu shows you (3 new updates, It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>If you watched the PeepCode episode about RSpec (the first of the trilogy), you may want something like <strong>growl</strong> on linux to get informed about the results of <strong>autotest</strong>. Well, there is such thing, but it is quite complicated.</p>
<p>You can use <strong>libnotify</strong> on Gnome, though. Those little alerts Ubuntu shows you (3 new updates, It&#8217;s time to restart your computer, Connected to Wireless Network etc), all uses libnotify.  Let&#8217;s move on!</p>
<p>1) Install the libnotify-bin package via apt-get</p>
<p>2) Go to a terminal and type, remembering to change ZenTest-3.6.0 to your current version.</p>
<p>sudo gedit  /usr/lib/ruby/gems/1.8/gems/ZenTest-3.6.0/lib/autotest/gnomenotify.rb</p>
<p>3) Paste the following on the new file<br />
<code><br />
</code></p>
<pre class="brush: ruby">
# -*- ruby -*-
# Adapted from PeepCode RSpec screencast no 1,
# who got it from someone else!
# Adapted with tip from http://ph7spot.com/articles/getting_started_with_autotest
# by DitoCujo (http://ditoinfo.wordpress.com)
module Autotest::GnomeNotify
  EXPIRATION_IN_SECONDS = 5
  ERROR_ICON = &quot;gtk-dialog-error&quot;
  SUCCESS_ICON = &quot;gtk-dialog-info&quot;
  def self.notify(title, msg, icon)
    options = &quot;-t #{EXPIRATION_IN_SECONDS * 1000} -i #{icon}&quot;
    system &quot;notify-send #{options} &#039;#{title}&#039; &#039;#{msg}&#039;&quot;
  end
  Autotest.add_hook :ran_command do |at|
    results = [at.results].flatten.join(&quot;\n&quot;)
    output = results.slice(/(\d+)\s+examples?,\s*(\d+)\s+failures?(,\s*(\d+)\s+not implemented)?/)
    if output
      if $~[2].to_i &gt; 0
        notify &quot;FAIL&quot;, &quot;#{output}&quot;, ERROR_ICON
      else
        notify &quot;Success!&quot;, &quot;#{output}&quot;, SUCCESS_ICON
      end
    end
  end
end
</pre>
<p><code></code>4) Now save the file and open your .autotest file (/home/_____/.autotest &#8211; Create one if it does not exist) and require the file you just created by placing this line on the top:</p>
<p>require &#8216;autotest/gnomenotify&#8217;</p>
<p>Done! You should now get beautiful notifications on your screen like this one here</p>
<p><a href="http://ditoinfo.files.wordpress.com/2007/08/libnotify.png" title="Gnome Notify for Autotest"><img src="http://ditoinfo.files.wordpress.com/2007/08/libnotify.thumbnail.png" alt="Gnome Notify for Autotest" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/08/getting-notifications-of-autotest-results-on-linux-gnome/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Formatting dates nicely in Rails</title>
		<link>http://danteregis.com/2007/08/formatting-dates-nicely-in-rails/</link>
		<comments>http://danteregis.com/2007/08/formatting-dates-nicely-in-rails/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 02:19:10 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/08/16/formatting-dates-nicely-in-rails/</guid>
		<description><![CDATA[I always thought those &#8220;today&#8221;, &#8220;yesterday&#8221;, &#8220;4 days ago&#8221; date references on some websites way cool. On a small system I&#8217;m working on I did some code to do something alike, though in portuguese. But if you want it in english, there&#8217;s a small plugin called relative_time_helpers that you can install by typing:
 script/plugin install [...]]]></description>
			<content:encoded><![CDATA[<p>I always thought those &#8220;today&#8221;, &#8220;yesterday&#8221;, &#8220;4 days ago&#8221; date references on some websites way cool. On a small system I&#8217;m working on I did some code to do something alike, though in portuguese. But if you want it in english, there&#8217;s a small plugin called relative_time_helpers that you can install by typing:</p>
<pre> script/plugin install http://ar-code.svn.engineyard.com/plugins/relative_time_helpers/</pre>
<p>Then, you can do things like</p>
<pre>&lt;%= relative_time(Time.now) %&gt;
# today

&lt;%= relative_time(1.day.ago) %&gt;&lt;
# yesterday

&lt;%= relative_time(1.day.from_now) %&gt;
# tomorrow

&lt;%= relative_time_span([Time.now, 5.days.from_now]) %&gt;# May 17th - 22nd</pre>
<p>This tip was taken from <a href="http://activereload.net/2007/5/17/displaying-nice-relative-dates">Active Reload Blog</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/08/formatting-dates-nicely-in-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ruby on rails reference cheat sheet</title>
		<link>http://danteregis.com/2007/03/ruby-on-rails-reference-cheat-sheet/</link>
		<comments>http://danteregis.com/2007/03/ruby-on-rails-reference-cheat-sheet/#comments</comments>
		<pubDate>Wed, 07 Mar 2007 20:00:53 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/03/07/ruby-on-rails-reference-cheat-sheet/</guid>
		<description><![CDATA[This website has an excelent Ruby on Rails resource for those in need (like most of us). It features lot&#8217;s of command line options, code snippets, and stuff like that. Very handfull! This is the link to the blog entry, and this one points to the text itself. Take a look!
]]></description>
			<content:encoded><![CDATA[<p>This website has an excelent Ruby on Rails resource for those in need (like most of us). It features lot&#8217;s of command line options, code snippets, and stuff like that. Very handfull! This is the <a href="http://blog.invisible.ch/2006/05/01/ruby-on-rails-reference/" target="_blank">link to the blog entry</a>, and <a href="http://blog.invisible.ch/files/rails-reference-1.1.html" target="_blank">this one points to the text itself</a>. Take a look!</p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/03/ruby-on-rails-reference-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ruby on rails ide comparison</title>
		<link>http://danteregis.com/2007/03/ruby-on-rails-ide-comparison/</link>
		<comments>http://danteregis.com/2007/03/ruby-on-rails-ide-comparison/#comments</comments>
		<pubDate>Wed, 07 Mar 2007 19:37:22 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[netbeans]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/03/07/ruby-on-rails-ide-comparison/</guid>
		<description><![CDATA[Sébastien from The Nameless One, did a very impressive job comparing three of the main Ruby on Rails IDE avaiable. His extensive post includes a feature chart with each IDE&#8217;s most important features side-by-side, using colors to show how good or bad implemented that feature is on a particular IDE. It&#8217;s more than worth looking, [...]]]></description>
			<content:encoded><![CDATA[<p>Sébastien from <a href="http://tnlessone.wordpress.com/" target="_blank">The Nameless One</a>, did a very impressive job comparing three of the main Ruby on Rails IDE avaiable. His extensive post includes a feature chart with each IDE&#8217;s most important features side-by-side, using colors to show how good or bad implemented that feature is on a particular IDE. It&#8217;s more than worth looking, and the <a href="http://tnlessone.wordpress.com/2007/02/28/ruby-rails-ide-comparison-idea-netbeans-radrails/" target="_blank">link is here</a>.</p>
<p>BTW, I&#8217;ll stay with Netbeans Development Edition. Even being unstable (I believe it&#8217;s not even Alpha yet) it&#8217;s quite usable, and I&#8217;m doing most of my work on it. Just missing a few test features. But that should come on the next milestones!</p>
<p>Thanks Sébastien, for the great job!</p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/03/ruby-on-rails-ide-comparison/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to install ruby on rails and lighttpd on ubuntu</title>
		<link>http://danteregis.com/2007/03/how-to-install-ruby-on-rails-and-lighttpd-on-ubuntu/</link>
		<comments>http://danteregis.com/2007/03/how-to-install-ruby-on-rails-and-lighttpd-on-ubuntu/#comments</comments>
		<pubDate>Tue, 06 Mar 2007 05:39:46 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/03/06/how-to-install-ruby-on-rails-and-lighttpd-on-ubuntu/</guid>
		<description><![CDATA[Hey folks. It&#8217;s interesting how difficult it was for me to get Rails up and running on Lighttpd. I&#8217;ve tried lot&#8217;s and lot&#8217;s of tutorials, but none of them seemed fit to me. I came up with this solution, wich is actually a merge of lot&#8217;s tips. Feel free to contribute, and I hope that [...]]]></description>
			<content:encoded><![CDATA[<p>Hey folks. It&#8217;s interesting how difficult it was for me to get Rails up and running on Lighttpd. I&#8217;ve tried lot&#8217;s and lot&#8217;s of tutorials, but none of them seemed fit to me. I came up with this solution, wich is actually a merge of lot&#8217;s tips. Feel free to contribute, and I hope that this helps you out.</p>
<p>1) First, include UNIVERSE on your sources.list. It is located on /etc/apt/sources.list. If you are unsure, take a look at <a href="http://www.ubuntu-nl.org/source-o-matic/" target="_blank">this web-site</a>. It may help you out. Remember to <strong>sudo</strong>, or be root to do everything<span id="more-20"></span></p>
<p>2) Then update your package list and upgrade your machine.<br />
<code><br />
apt-get update<br />
apt-get upgrade<br />
</code></p>
<p>3) Install the build-essential package. It has the most-used tools to compile programs from source.<br />
<code><br />
apt-get install build-essential<br />
</code></p>
<p>4) Install ruby and everything it needs.<br />
<code><br />
apt-get install ruby1.8 ruby1.8-dev irb1.8 rdoc1.8 libyaml-ruby libzlib-ruby libopenssl-ruby<br />
</code></p>
<p>5) Create simbolic links for ruby. The installation made before create binaries with unfriendly names (e.g. ruby1.8). So, we create links to be able to use &#8220;ruby&#8221; and &#8220;irb&#8221; from the console:<br />
<code><br />
ln -s /usr/bin/ruby1.8 /usr/bin/ruby<br />
ln -s /usr/bin/irb1.8 /usr/bin/irb<br />
</code></p>
<p>6) Download and install RubyGems<br />
<code><br />
cd ~<br />
mkdir ruby_install/ruby_gems<br />
cd ruby_install/ruby_gems<br />
wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz<br />
tar xvzf rubygems-0.9.0.tgz<br />
cd rubygems-0.9.0<br />
ruby setup.rb<br />
</code></p>
<p>7) Install Rails with RubyGems<br />
<code><br />
gem install rails --include-dependencies<br />
</code><br />
PS: Sometimes, on machines behind network proxies, the above command will not work. On this case, you can manually install each of Rails components. They can be downloaded from <a href="http://www.rubyforge.org">rubyforge.org</a> and must be installed on this order:</p>
<ul>
<li>Rake</li>
<li>ActiveSupport</li>
<li>ActiveRecord</li>
<li>ActionPack</li>
<li>ActionMailer</li>
<li>ActionWebService</li>
<li>Rails</li>
</ul>
<p>8 ) Install RedCloth if you plan on using textilize.<br />
<code><br />
gem install redcloth<br />
</code></p>
<p>9) Now, it&#8217;s time to install FastCGI<br />
<code><br />
apt-get install libfcgi libfcgi-dev libfcgi-ruby1.8<br />
gem install fcgi<br />
</code></p>
<p>10) Install MySQL client libraries (if you are using MySQL)<br />
<code><br />
apt-get install libmysqlclient15-dev libmysql-ruby1.8<br />
gem install mysql<br />
</code><br />
PS: When gem install asks you whitch version of mysql to install, just choose the greater version number for your system.</p>
<p>11) Install lighttdp<br />
<code><br />
apt-get install lighttpd<br />
</code></p>
<p>12) Save a backup copy of your /etc/lighttpd/lighttpd.conf</p>
<p>13) Use this lighttpd.conf. Remember to change <strong>var.railsdir</strong><br />
server.modules           = ( &#8220;mod_rewrite&#8221;, &#8220;mod_accesslog&#8221;, &#8220;mod_fastcgi&#8221;, &#8220;mod_compress&#8221;, &#8220;mod_expire&#8221; )</p>
<p>server.pid-file = “/var/run/lighttpd.pid”</p>
<p>var.railsdir = &#8220;/home/web/test&#8221;</p>
<p>server.error-handler-404 = &#8220;/dispatch.fcgi&#8221;<br />
server.document-root     = var.railsdir + &#8220;/public/&#8221;</p>
<p>server.errorlog          = var.railsdir + &#8220;/log/lighttpd.error.log&#8221;<br />
accesslog.filename       = var.railsdir + &#8220;/log/lighttpd.access.log&#8221;</p>
<p>url.rewrite              = ( &#8220;^/$&#8221; =&gt; &#8220;index.html&#8221;, &#8220;^([^.]+)$&#8221; =&gt; &#8220;$1.html&#8221; )</p>
<p>compress.filetype        = ( &#8220;text/plain&#8221;, &#8220;text/html&#8221;, &#8220;text/css&#8221;, &#8220;text/javascript&#8221; )<br />
compress.cache-dir       = var.railsdir + &#8220;/tmp/cache&#8221;</p>
<p>expire.url               = ( &#8220;/favicon.ico&#8221;  =&gt; &#8220;access 3 days&#8221;,<br />
&#8220;/images/&#8221;      =&gt; &#8220;access 3 days&#8221;,<br />
&#8220;/stylesheets/&#8221; =&gt; &#8220;access 3 days&#8221;,<br />
&#8220;/javascripts/&#8221; =&gt; &#8220;access 3 days&#8221; )</p>
<p># Change *-procs to 2 if you need to use Upload Progress or other tasks that<br />
# *need* to execute a second request while the first is still pending.<br />
fastcgi.server      = ( &#8220;.fcgi&#8221; =&gt; ( &#8220;localhost&#8221; =&gt; (<br />
&#8220;min-procs&#8221;       =&gt; 4,<br />
&#8220;max-procs&#8221;       =&gt; 4,<br />
&#8220;socket&#8221;          =&gt; var.railsdir + &#8220;/tmp/sockets/fcgi.socket&#8221;,<br />
&#8220;bin-path&#8221;        =&gt; var.railsdir + &#8220;/public/dispatch.fcgi&#8221;,<br />
&#8220;bin-environment&#8221; =&gt; ( &#8220;RAILS_ENV&#8221; =&gt; &#8220;production&#8221; )<br />
) ) )</p>
<p>mimetype.assign = (<br />
&#8220;.css&#8221;        =&gt;  &#8220;text/css&#8221;,<br />
&#8220;.gif&#8221;        =&gt;  &#8220;image/gif&#8221;,<br />
&#8220;.htm&#8221;        =&gt;  &#8220;text/html&#8221;,<br />
&#8220;.html&#8221;       =&gt;  &#8220;text/html&#8221;,<br />
&#8220;.jpeg&#8221;       =&gt;  &#8220;image/jpeg&#8221;,<br />
&#8220;.jpg&#8221;        =&gt;  &#8220;image/jpeg&#8221;,<br />
&#8220;.js&#8221;         =&gt;  &#8220;text/javascript&#8221;,<br />
&#8220;.png&#8221;        =&gt;  &#8220;image/png&#8221;,<br />
&#8220;.swf&#8221;        =&gt;  &#8220;application/x-shockwave-flash&#8221;,<br />
&#8220;.txt&#8221;        =&gt;  &#8220;text/plain&#8221;<br />
)</p>
<p># Making sure file uploads above 64k always work when using IE or Safari<br />
# For more information, see http://trac.lighttpd.net/trac/ticket/360<br />
$HTTP["useragent"] =~ &#8220;^(.*MSIE.*)|(.*AppleWebKit.*)$&#8221; {<br />
server.max-keep-alive-requests = 0<br />
}</p>
<p>14) Set adequate permissions on your application&#8217;s folders:<br />
<code><br />
chmod -R 775 log/<br />
chmod -R 775 public/<br />
chmod -R 775 tmp/<br />
</code></p>
<p>15) You&#8217;re done.</p>
<p><strike>There&#8217;s a small catch on this stuff: You won&#8217;t be able to /etc/init.d/services/lighttpd stop or restart. For some reason, lighttpd loose it&#8217;s connection with init.d, and you can only stop it sending TERM signals from the command line:<br />
</strike> <code><strike><br />
$ sudo ps -A | grep lighttpd<br />
1234   lighttpd<br />
$ sudo kill -9 1234</strike><br />
</code></p>
<p>Using  server.pid-file = “/var/run/lighttpd.pid” will take care of the job! Config example updated. Thanks, raul.<br />
That&#8217;s it. I hope it helped you.<br />
Best</p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/03/how-to-install-ruby-on-rails-and-lighttpd-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>netbeans and UTF8 encoding</title>
		<link>http://danteregis.com/2007/02/netbeans-and-utf8-encoding-2/</link>
		<comments>http://danteregis.com/2007/02/netbeans-and-utf8-encoding-2/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 07:18:06 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[netbeans]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/02/26/netbeans-and-utf8-encoding-2/</guid>
		<description><![CDATA[[digg=http://www.digg.com/programming/Netbeans_and_UTF8_encoding]
When I started using Netbeans as my Ruby on Rails IDE, I noticed that, at least on my build, it did not use UTF 8 on files by default. If you speak english that usually is not a problem, but for me, who write software in portuguese, it is very important.
But, Mr. Google gave me [...]]]></description>
			<content:encoded><![CDATA[<p>[digg=http://www.digg.com/programming/Netbeans_and_UTF8_encoding]<br />
When I started using Netbeans as my Ruby on Rails IDE, I noticed that, at least on my build, it did not use UTF 8 on files by default. If you speak english that usually is not a problem, but for me, who write software in portuguese, it is very important.<br />
But, Mr. Google gave me a tip, and I&#8217;ll place it here so you don&#8217;t have to bother him again with this same question.<br />
Theres a file, inside the /etc folder of netbeans directory, called netbeans.conf. I don&#8217;t know if it stays elsewhere in Linux, I&#8217;ll only know later today, but anyway, you should place this option inside the quotes of <strong>netbeans_default_options</strong>:<br />
<em>-J-Dfile.encoding=UTF-8</em><br />
That&#8217;s it. Worked perfectly for me.<br />
Best</p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/02/netbeans-and-utf8-encoding-2/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
