<?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>Rorra's blog &#187; Ruby</title>
	<atom:link href="http://www.rorra.com.ar/category/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rorra.com.ar</link>
	<description>Senior Developer</description>
	<lastBuildDate>Mon, 30 Aug 2010 13:44:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Rails 3, mysql and UTF-8</title>
		<link>http://www.rorra.com.ar/2010/07/30/rails-3-mysql-and-utf-8/</link>
		<comments>http://www.rorra.com.ar/2010/07/30/rails-3-mysql-and-utf-8/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 18:01:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.rorra.com.ar/?p=192</guid>
		<description><![CDATA[So, have you started to work with rails 3? Did you realize that your UTF-8 databases doesn&#8217;t work nice with mysql? This is because the mysql gem works with ASCII-8BIT encoding, but ruby 1.9 and rails 3 works with UTF-8 &#8230; <a href="http://www.rorra.com.ar/2010/07/30/rails-3-mysql-and-utf-8/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-7024942925419851";
/* 468x60, creado 26/03/09 */
google_ad_slot = "2077812753";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
So, have you started to work with rails 3? Did you realize that your UTF-8 databases doesn&#8217;t work nice with mysql? This is because the mysql gem works with ASCII-8BIT encoding, but ruby 1.9 and rails 3 works with UTF-8 encoding, so when you create a model into the database, everything works fine, but when you work with those models, it doesn&#8217;t works so nice and you don&#8217;t get what you stored.<br />
What&#8217;s the solution? Well, there are actually three solutions, the most recommended, use mysql2, in order to do this, edit your Gemfile and include:</p>
<pre name="code" class="ruby">
gem "mysql2"</pre>
<p>and then, edit your databases.yml file, and change the adapter to mysql2</p>
<pre name="code" class="ruby">
development:
  adapter: mysql2
  database: fun_development
  user: root
  password:
  encoding: utf8</pre>
<p>Another solution, is just instead of using the &#8220;mysql&#8221; gem, use the &#8220;ruby-mysql&#8221; gem, but it&#8217;s pretty slow because it&#8217;s a 100% ruby gem.</p>
<pre name="code" class="ruby">
gem "ruby-mysql"</pre>
<p>The last solution is a monkey patch, but its also slow to use it, so I really recommend using the mysql 2 gem</p>
<pre name="code" class="ruby">
require 'mysql'

class Mysql::Result
  def encode(value, encoding = "utf-8")
    String === value ? value.force_encoding(encoding) : value
  end

  def each_utf8(&#038;block)
    each_orig do |row|
      yield row.map {|col| encode(col) }
    end
  end
  alias each_orig each
  alias each each_utf8

  def each_hash_utf8(&#038;block)
    each_hash_orig do |row|
      row.each {|k, v| row[k] = encode(v) }
      yield(row)
    end
  end
  alias each_hash_orig each_hash
  alias each_hash each_hash_utf8
end</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.rorra.com.ar/2010/07/30/rails-3-mysql-and-utf-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Contributing to ruby on rails source code is so easy</title>
		<link>http://www.rorra.com.ar/2010/07/29/contributing-to-ruby-on-rails-source-code-is-so-easy/</link>
		<comments>http://www.rorra.com.ar/2010/07/29/contributing-to-ruby-on-rails-source-code-is-so-easy/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 16:59:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.rorra.com.ar/?p=186</guid>
		<description><![CDATA[I finally made my first contribution to rails, although it&#8217;s not a big fix nor anything like that, is a way to get started. If you have read my last posts, you will see how to install and works with &#8230; <a href="http://www.rorra.com.ar/2010/07/29/contributing-to-ruby-on-rails-source-code-is-so-easy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-7024942925419851";
/* 468x60, creado 26/03/09 */
google_ad_slot = "2077812753";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<br/><br />
I finally made my first <a href="http://github.com/rails/rails/commit/aa054c35f7809b57ecb105e485e4436d9fe37b1b">contribution to rails</a>, although it&#8217;s not a big fix nor anything like that, is a way to get started.<br />
<br/><br />
If you have read my last posts, you will see how to install and works with rails edge, but now I&#8217;ll explain how to setup a good rails environment to live in the edge and to help ruby on rails community by checking the issues posted on <a href="https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets">lighthouseapp.com</a> to see if they are a real bug or not, to create patches for bugs, or why not, to create a new functionality for the rails framework.<br />
<br/><br />
Supposing that you already installed the last version of rails, you will need to get the rails code checked out from github, and make your demo project to use that version, so you can modify that version to create fixes, to test fixes, etc.</p>
<pre name="code" class="ruby">
git checkout http://github.com/rails/rails.git
</pre>
<p><br/><br />
Now that you just create an application for doing test/development</p>
<pre name="code" class="ruby">
rails new my_app
</pre>
<p><br/><br />
Edit the Gemfile of my_app (my_app/Gemfile) to use the rails code you are going to work with, by giving the rails gem a parameter :path where your code of ruby on rails is installed</p>
<pre name="code" class="ruby">
gem 'rails', :path => File.expand_path('../../rails',  __FILE__)
</pre>
<p><br/><br />
And that&#8217;s all, now you can follow this <a href="http://edgeguides.rubyonrails.org/contributing_to_rails.html">guide</a> to know how to work with git in order to post valid patches.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rorra.com.ar/2010/07/29/contributing-to-ruby-on-rails-source-code-is-so-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 3.0 RC Released!!!!</title>
		<link>http://www.rorra.com.ar/2010/07/27/rails-3-0-rc-released/</link>
		<comments>http://www.rorra.com.ar/2010/07/27/rails-3-0-rc-released/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 15:00:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.rorra.com.ar/?p=178</guid>
		<description><![CDATA[So finally, rails 3.0 RC was released, cool news because rails 3.0 brings a lot of updates and it will be very fun to develop for rails 3.0. I wonder how much work would be out there migrating rails 2.x &#8230; <a href="http://www.rorra.com.ar/2010/07/27/rails-3-0-rc-released/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-7024942925419851";
/* 468x60, creado 26/03/09 */
google_ad_slot = "2077812753";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>So finally, rails 3.0 RC was released, cool news because rails 3.0 brings a lot of updates and it will be very fun to develop for rails 3.0. I wonder how much work would be out there migrating rails 2.x to rails 3.x versión.<br />
Rails 3.0 RC is out just after 21 hours bunder 1.0.0.RC.1 was released, was it really a coincidence? Yeah sure&#8230;<br />
So how to start playing with rails 3.0.RC? Pretty easy, first, install <a href="http://rvm.beginrescueend.com/">rvm</a>, after that, lets install ruby 1.9.2 RC 2</p>
<pre class="ruby">
rvm install 1.9.2</pre>
<p>Now let&#8217;s use ruby 1.9.2</p>
<pre name="code" class="ruby">
rvm 1.9.2</pre>
<p>Then we will install bundler, because we are using rvm, we won&#8217;t use sudo at anytime</p>
<pre name="code" class="ruby">
gem install bundler -v 1.0.0.rc.1</pre>
<p>And now we can install rails rc 1</p>
<pre name="code" class="ruby">
gem install rails --pre</pre>
<p>We can start playing with rails 3.0</p>
<pre name="code" class="ruby">
rails app my_app_name
cd my_app_name
bundle install</pre>
<p>But finally, instead of locking your development on rails 3.0.RC 1, work with the latest version of rails that is being developed (because we will find bugs in the RC), edit the Gemfile inside your application, and do these modifications</p>
<pre name="code" class="ruby">
#gem 'rails', '3.0.0.rc'

# Bundle edge Rails instead:
gem 'rails', :git => 'git://github.com/rails/rails.git'</pre>
<p>Now update your app to work with the latest version of rails</p>
<pre name="code" class="ruby">
bundle install</pre>
<p>And that&#8217;s all <img src='http://www.rorra.com.ar/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
You can report any bugs you find on <a href="https://rails.lighthouseapp.com/projects/8994-ruby-on-rails">https://rails.lighthouseapp.com/projects/8994-ruby-on-rails</a>, and also check the bugs there, reproduce them and confirm that is really a bug or not, and don&#8217;t forget, you are also testing bundler 1.0.0.RC.1, so if you find any issue with bundler, you can report your issues on <a href="http://github.com/carlhuda/bundler/issues">http://github.com/carlhuda/bundler/issues</a>.<br />
<strong>Remember, this is your opportunity to give something back to the open source community</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rorra.com.ar/2010/07/27/rails-3-0-rc-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing RubyDebug with ruby 1.9.2 and rails 3 to use RubyMine</title>
		<link>http://www.rorra.com.ar/2010/07/24/installing-rubydebug-with-ruby-1-9-2-and-rails-3-to-use-rubymine/</link>
		<comments>http://www.rorra.com.ar/2010/07/24/installing-rubydebug-with-ruby-1-9-2-and-rails-3-to-use-rubymine/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 20:26:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.rorra.com.ar/?p=171</guid>
		<description><![CDATA[So you are trying to install ruby-debug to debug rails applications (or perhaps ruby-debug-ide for RubyMine) and you are having problems with it, because you have ruby 1.8.7 for your system, and you are using rvm in order to user &#8230; <a href="http://www.rorra.com.ar/2010/07/24/installing-rubydebug-with-ruby-1-9-2-and-rails-3-to-use-rubymine/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-7024942925419851";
/* 468x60, creado 26/03/09 */
google_ad_slot = "2077812753";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
So you are trying to install ruby-debug to debug rails applications (or perhaps ruby-debug-ide for RubyMine) and you are having problems with it, because you have ruby 1.8.7 for your system, and you are using rvm in order to user ruby 1.9.2 to test rails edge.</p>
<p>The first thing to notice, is that all of the sources that you have installed with rvm are located in $rvm_path/src, so in case you are using ruby 1.9.2 rc 2 as I&#8217;m doing right now, the installation is pretty easy</p>
<pre name="code" class="ruby">
gem install ruby-debug-ide19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.2-rc2/
</pre>
<p>But for sure, if you are using ruby 1.9.1 or any other version, you can easily do a ls $rvm_path/src to find the right location to compile ruby-debug-ide19 into your system.</p>
<p>Now, you can add the gem to the Gemfile if you are planning to debug from the console</p>
<pre name="code" class="ruby">
gem 'ruby-debug19', :require => 'ruby-debug', :group => :development
</pre>
<p>And then run</p>
<pre name="code" class="ruby">
rails s --debug
</pre>
<p>Or if you are using rubymine, the debug will start although it&#8217;s not working yet, hopefully it will be working before rubymine 2.3.5 is released, because nobody wants to use rails3 without ruby 1.9.2, or at least I don&#8217;t want to do that <img src='http://www.rorra.com.ar/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rorra.com.ar/2010/07/24/installing-rubydebug-with-ruby-1-9-2-and-rails-3-to-use-rubymine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrating radiant 0.9, globalize and GeoIP</title>
		<link>http://www.rorra.com.ar/2010/01/10/integrating-radiant-globalize-and-geoip/</link>
		<comments>http://www.rorra.com.ar/2010/01/10/integrating-radiant-globalize-and-geoip/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 09:28:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.rorra.com.ar/?p=156</guid>
		<description><![CDATA[After downloading and using radiant 0.9 and globalize, I realized that I wanted to redirect the users by default with their geo location. So I installed GeoIP and then I had to do these little modifications to the Globalize plugin. &#8230; <a href="http://www.rorra.com.ar/2010/01/10/integrating-radiant-globalize-and-geoip/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-7024942925419851";
/* 468x60, creado 26/03/09 */
google_ad_slot = "2077812753";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
After <a href="http://www.rorra.com.ar/en/2009/12/30/installing-radiant-09-with-multiple-language-support/">downloading and using radiant 0.9 and globalize</a>, I realized that I wanted to redirect the users by default with their geo location.<br />
So I installed <a href="http://github.com/cjheath/geoip/">GeoIP</a> and then I had to do these little modifications to the Globalize plugin.<br />
First, I edit the file config/environment.rb and added this line, in order to load GeoIP with the application</p>
<pre name="code" class="ruby">
config.gem 'geoip'
</pre>
<p>Then I updated the file vendor/extensions/globalize2/lib/globalize2/application_controller_extensions.rb</p>
<pre name="code" class="ruby">
module Globalize2
  module SiteControllerExtensions
    def self.included(base)
      base.class_eval do
        alias_method_chain :find_page, :globalize

        alias_method_chain :show_page, :homepage_redir
      end
    end

    def show_page_with_homepage_redir
      url = params[:url]
      if Array === url
        url = url.join('/')
      else
        url = url.to_s
      end

      if url == '/'
        locale = params[:locale] || cookies[:locale] || session[:locale] || Globalize2Extension.ip_lookup(request.remote_ip)
        redirect_to CGI.unescape('/' + locale + '/') and return
      end

      show_page_without_homepage_redir
    end

    def find_page_with_globalize(url)
      globalized_url = '/' + I18n.locale + '/' + url
      find_page_without_globalize(globalized_url)
    end
  end
end
</pre>
<p>So, as you can see on the code, I also check if the user has the language selected in a cookie, and when the user selects (or get a locale by default), I set the cookie with the locale, so the next time the user came into the site, he will see the last language selected.<br />
Finally, I updated the file vendor/extensions/globalize2/globalize2_extension.rb and added the following method, where I get the country code from the user, and I set the locale based on his country ip, or the default locale.</p>
<pre name="code" class="ruby">
  def ip_lookup(ip)
    g = GeoIP.new( File.join(File.dirname(__FILE__), '..', '..', 'gems', 'geoip-0.8.6', 'GeoIP.dat'))
    r = g.country(ip)
    country_code = r[3]
    case country_code
      when 'DE'
        'de'
      when 'GB'
        'uk'
      when 'AU'
        'au'
      when 'FR'
        'fr'
      when ' US'
        'us'
      else
        'us'
    end
  end
</pre>
<p>And finally, we need to tell Radiant to load the GeoIP library, so in the same file, we add</p>
<pre name="code" class="ruby">
  extension_config do |config|
    config.gem 'geoip', :source =&gt; 'http://github.com'
  end
</pre>
<p>So that&#8217;s all, now you have GeoIP working with globalize and Radiant 0.9 <img src='http://www.rorra.com.ar/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rorra.com.ar/2010/01/10/integrating-radiant-globalize-and-geoip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Radiant &amp; Globalize: Redirecting the user to their language site</title>
		<link>http://www.rorra.com.ar/2010/01/09/radiant-globalize-redirecting-the-user/</link>
		<comments>http://www.rorra.com.ar/2010/01/09/radiant-globalize-redirecting-the-user/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 09:30:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.rorra.com.ar/?p=159</guid>
		<description><![CDATA[After installing Radiant 0.9 and Globalize, I realized I had to redirect the user to their language site. So, if the user has been assigned to the locale en, when he vist http://mysite.com he should be redirected to http://mysite.com/en Why? &#8230; <a href="http://www.rorra.com.ar/2010/01/09/radiant-globalize-redirecting-the-user/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-7024942925419851";
/* 468x60, creado 26/03/09 */
google_ad_slot = "2077812753";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
After installing <a href="http://www.rorra.com.ar/2009/12/30/installing-radiant-09-with-multiple-language-support/">Radiant 0.9 and Globalize</a>, I realized I had to redirect the user to their language site.<br />
<br/><br />
So, if the user has been assigned to the locale en, when he vist http://mysite.com he should be redirected to http://mysite.com/en<br />
<br/><br />
Why? Because I had some files under images with locales, and I had some flash issues that were not going to work from the homepage address.<br />
<br/><br />
So I ended updating the file vendor/extensions/globalize2/lib/globalize2/site_controller_extensions.rb</p>
<pre name="code" class="ruby">
module Globalize2
  module SiteControllerExtensions
    def self.included(base)
      base.class_eval do
        alias_method_chain :find_page, :globalize

        alias_method <img src='http://www.rorra.com.ar/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> riginal_show_page, :show_page
        alias_method :show_page, :check_homepage_redir

      end
    end

    def check_homepage_redir
      url = params[:url]
      if Array === url
        url = url.join('/')
      else
        url = url.to_s
      end

      if url == '/'
        locale = params[:locale] || cookies[:locale] || session[:locale] || Globalize2Extension.ip_lookup(request.remote_ip)
        redirect_to CGI.unescape('/' + locale + '/') and return
      end

      original_show_page
    end

    def find_page_with_globalize(url)
      globalized_url = '/' + I18n.locale + '/' + url
      find_page_without_globalize(globalized_url)
    end
  end
end
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.rorra.com.ar/2010/01/09/radiant-globalize-redirecting-the-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vangaga.com released!</title>
		<link>http://www.rorra.com.ar/2009/12/30/vangaga-released/</link>
		<comments>http://www.rorra.com.ar/2009/12/30/vangaga-released/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 11:33:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.rorra.com.ar/?p=116</guid>
		<description><![CDATA[In the last months, I joined Vaganga, to work in what I believe, the next travel site to buy your touristic packages with an excellent price. When I joined the company, the source code was being started by an American &#8230; <a href="http://www.rorra.com.ar/2009/12/30/vangaga-released/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In the last months, I joined <a href="http://vaganga.com">Vaganga</a>, to work in what I believe, the next <a href="http://vaganga.com">travel site</a> to buy your touristic packages with an excellent price.<br />
When I joined the company, the source code was being started by an American company called <a href="http://www.xillent.com/casestudy.asp?cs=5">Xillent</a>, and it was a real disaster, I don&#8217;t know where they learn to develop websites, but if you want to have a daily post in <a href="http://thedailywtf.com/">Daily WTF</a>, be sure to hire them. So I ended rewriting a big part of the code, and luckily, we already released the first version of the web site, and although I have thought (and I&#8217;m already working) in migrating all the site to rails, while working to support the current PHP version, the site was released and it&#8217;s ready to be used.<br />
Some points to consider to use this site for your next trip <img src='http://www.rorra.com.ar/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  :</p>
<ul>
<li>It&#8217;s cheaper that many other sites, it&#8217;s one of the cheapest web sites out there.</li>
<li>Besides great prices, you can be part of the Vaganga community, with important benefits</li>
<li>We maintain an history of all your buys, an in little time, we will have discounts for people that buy on the site</li>
</ul>
<p>For now, the site is working with <a href="http://www.xe.com/ucc/convert.cgi?Amount=1&#038;From=MXN&#038;To=USD&#038;image.x=61&#038;image.y=12&#038;image=Submit>mexican pesos currency</a>, but it&#8217;s the same that if you buy in any currency, you will get charged by your credit card in your local currency.<br />
But I&#8217;m already working in improving the site, and in little time I&#8217;ll have the site working with American Dollars, as well as other currencies, and I&#8217;m also working on updating the site speed to improve the search time (although if you compare the site speed with other popular sites you will notice it&#8217;s really fast).<br />
So, what are you waiting for? Start using the site and pay really low commissions for your trips!!!!<br />
<a href="http://vaganga.com">VAGANGA</a><br />

<a href='http://www.rorra.com.ar/2009/12/30/vangaga-released/vaganga_12_09_01/' title='vaganga_12_09_01'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/vaganga_12_09_01-150x150.jpg" class="attachment-thumbnail" alt="vaganga_12_09_01" title="vaganga_12_09_01" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/vangaga-released/vaganga_12_09_02/' title='vaganga_12_09_02'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/vaganga_12_09_02-150x150.jpg" class="attachment-thumbnail" alt="vaganga_12_09_02" title="vaganga_12_09_02" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/vangaga-released/vaganga_12_09_03/' title='vaganga_12_09_03'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/vaganga_12_09_03-150x150.jpg" class="attachment-thumbnail" alt="vaganga_12_09_03" title="vaganga_12_09_03" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/vangaga-released/vaganga_12_09_04/' title='vaganga_12_09_04'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/vaganga_12_09_04-150x150.jpg" class="attachment-thumbnail" alt="vaganga_12_09_04" title="vaganga_12_09_04" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/vangaga-released/vaganga_12_09_05/' title='vaganga_12_09_05'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/vaganga_12_09_05-150x150.jpg" class="attachment-thumbnail" alt="vaganga_12_09_05" title="vaganga_12_09_05" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/vangaga-released/vaganga_12_09_06/' title='vaganga_12_09_06'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/vaganga_12_09_06-150x150.jpg" class="attachment-thumbnail" alt="vaganga_12_09_06" title="vaganga_12_09_06" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/vangaga-released/vaganga_12_09_07/' title='vaganga_12_09_07'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/vaganga_12_09_07-150x150.jpg" class="attachment-thumbnail" alt="vaganga_12_09_07" title="vaganga_12_09_07" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/vangaga-released/vaganga_12_09_08/' title='vaganga_12_09_08'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/vaganga_12_09_08-150x150.jpg" class="attachment-thumbnail" alt="vaganga_12_09_08" title="vaganga_12_09_08" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/vangaga-released/vaganga_12_09_09/' title='vaganga_12_09_09'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/vaganga_12_09_09-150x150.jpg" class="attachment-thumbnail" alt="vaganga_12_09_09" title="vaganga_12_09_09" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/vangaga-released/vaganga_12_09_10/' title='vaganga_12_09_10'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/vaganga_12_09_10-150x150.jpg" class="attachment-thumbnail" alt="vaganga_12_09_10" title="vaganga_12_09_10" /></a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rorra.com.ar/2009/12/30/vangaga-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing radiant 0.9 with multiple language support</title>
		<link>http://www.rorra.com.ar/2009/12/30/installing-radiant-09-with-multiple-language-support/</link>
		<comments>http://www.rorra.com.ar/2009/12/30/installing-radiant-09-with-multiple-language-support/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 10:46:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.rorra.com.ar/?p=96</guid>
		<description><![CDATA[I&#8217;ve been playing with many CMS, I developed and worked on many web sites, and although Radiant 0.9 was not yet released (Radiant 0.9 RC1 was released), the updates that we have in Radiant 0.9 are great and we should &#8230; <a href="http://www.rorra.com.ar/2009/12/30/installing-radiant-09-with-multiple-language-support/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-7024942925419851";
/* 468x60, creado 26/03/09 */
google_ad_slot = "2077812753";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
I&#8217;ve been playing with many CMS, I developed and worked on many web sites, and although Radiant 0.9 was not yet released (Radiant 0.9 RC1 was released), the updates that we have in Radiant 0.9 are great and we should strongly consider start using Radiant 0.9 right now. I don&#8217;t understand why they didn&#8217;t name it 1.0, since it&#8217;s really mature.<br />
<br/><br />
The actual support for multiple languages, with plugins like globalize2, save the images automatically in Amazon S3, which is pretty cheap, and you can host your site on herko for $0, and start paying once you have thousand of visits, well, I&#8217;m having dreams right now about it, but Radiant stop being a toy some time ago to be a real mature CMS and one more of the reasons that many people is migrating to Rails (because of the CMS <img src='http://www.rorra.com.ar/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ), anyway, I love playing with Radiant <img src='http://www.rorra.com.ar/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
<br/><br />
Let&#8217;s get started. There is an excellent guide wrote by Aissac to install Radiant with Paperclip and Globalize2, but if you follow the guide step by step, you will find some troubles (I did), so I left you here a step by step guide, for beginners, so you can get your Radiant 0.9 RC 1 plus the most used plugins with support for multiple languages.<br />
<br/><br />
Assuming you already have installed ruby, rails, rubygem, etc. the first step is to install Radiant 0.9 RC 1, we can download it from the next address:<br />
<a href="http://radiantcms.org/downloads/radiant-0.9.0-rc1.gem">http://radiantcms.org/downloads/radiant-0.9.0-rc1.gem</a><br />
<br/><br />
Once you download it, execute the command:</p>
<pre name="code" class="bash">gem install radiant-0.9.0-rc1.gem</pre>
<p><br/><br />
We generate our site</p>
<pre name="code" class="bash">radiant new_site</pre>
<p><br/><br />
And we edit the database configuration file (config/database.yml)</p>
<pre name="code" class="bash">development:
  adapter: mysql
  database: new_site_development
  username: root
  password:
  host: localhost
  encoding: utf-8</pre>
<p><br/><br />
We generate the database, and we end the installation of Radiant</p>
<pre name="code" class="bash">rake db:create
rake db:bootstrap</pre>
<p><br/><br />
Now we start installing the plugins, first, copy_move plugin</p>
<pre name="code" class="bash">
git clone git://github.com/pilu/radiant-copy-move.git vendor/extensions/copy_move
rake radiant:extensions:copy_move:update
rake radiant:extensions:copy_move:migrate
</pre>
<p><br/><br />
We install the reorder plugin, which will allow us to order our website pages</p>
<pre name="code" class="bash">
git clone git://github.com/radiant/radiant-reorder-extension.git vendor/extensions/reorder
rake radiant:extensions:reorder:update
rake radiant:extensions:reorder:migrate
</pre>
<p><br/><br />
We continue with paperclip</p>
<pre name="code" class="bash">
git clone git://github.com/kbingman/paperclipped.git vendor/extensions/paperclipped
rake radiant:extensions:paperclipped:migrate
rake radiant:extensions:paperclipped:update
</pre>
<p><br/><br />
Now we install globalize2, which allows multiple languages on our site (even if we are just thinking about just one language)</p>
<pre name="code" class="bash">
git clone git://github.com/Aissac/radiant-globalize2-extension.git vendor/extensions/globalize2
rake radiant:extensions:globalize2:migrate
rake radiant:extensions:globalize2:update
</pre>
<p><br/><br />
A intermediate step before continuing, we need to edit the file config/environment.rb, and after the commented line with config.extensions, we add:</p>
<pre name="code" class="bash">
  config.extensions = [ :copy_move, :paperclipped, :globalize2, :all ]
</pre>
<p><br/><br />
And now, we install globalize2-paperclipped, which allow us to globalize our assets <img src='http://www.rorra.com.ar/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre name="code" class="bash">
git clone git://github.com/Aissac/radiant-globalize2-paperclipped-extension.git vendor/extensions/globalize2_paperclipped
rake radiant:extensions:globalize2_paperclipped:migrate
rake radiant:extensions:globalize2_paperclipped:update
</pre>
<p><br/><br />
The chicken is ready!!! (Argentine phrase <img src='http://www.rorra.com.ar/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ), now you can have your site with Radiant, in multiple languages, don&#8217;t forget to check each plugin documentation, in example, to setup many languages in globalize2, edit the file config/environment.rb and add to the end of it:</p>
<pre name="code" class="bash">
Radiant::Config['globalize.default_language'] = 'sp'
Radiant::Config['globalize.languages'] = 'en,de,fr'
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.rorra.com.ar/2009/12/30/installing-radiant-09-with-multiple-language-support/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Work on BeaconStreetGirls</title>
		<link>http://www.rorra.com.ar/2009/12/30/work-on-bsg/</link>
		<comments>http://www.rorra.com.ar/2009/12/30/work-on-bsg/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 08:29:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[My Work]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.rorra.com.ar/?p=68</guid>
		<description><![CDATA[During this year, I was working as a developer in a website known as Beacon Street Girls While working there, I first developed a cool feature by using an api provided by Doink I think it was a great featured, &#8230; <a href="http://www.rorra.com.ar/2009/12/30/work-on-bsg/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-7024942925419851";
/* 468x60, creado 26/03/09 */
google_ad_slot = "2077812753";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
During this year, I was working as a developer in a website known as <a href="http://www.beaconstreetgirls.com">Beacon Street Girls</a><br />
<br/><br />
While working there, I first developed a cool feature by using an api provided by <a href="http://www.doink.com/">Doink</a><br />
<br/><br />
I think it was a great featured, and while the site was live, we got a lot of videos from the users, but a couple of months ago, because of the financial crisis, the rails site where I was working went down and now they maintain a PHP version of the site.<br />
<br/><br />
You can check some screens of the work done<br />
<br/><br />

<a href='http://www.rorra.com.ar/2009/12/30/work-on-bsg/doink_app1/' title='doink_app'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/doink_app1-150x150.jpg" class="attachment-thumbnail" alt="doink_app" title="doink_app" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/work-on-bsg/beacon-street-girls-maeve-kaplan-taylor_s-personal-page/' title='beacon-street-girls-maeve-kaplan-taylor_s-personal-page'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/beacon-street-girls-maeve-kaplan-taylor_s-personal-page-150x150.jpg" class="attachment-thumbnail" alt="beacon-street-girls-maeve-kaplan-taylor_s-personal-page" title="beacon-street-girls-maeve-kaplan-taylor_s-personal-page" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/work-on-bsg/beacon-street-girls-1-1/' title='beacon-street-girls-1-1'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/beacon-street-girls-1-1-150x150.jpg" class="attachment-thumbnail" alt="beacon-street-girls-1-1" title="beacon-street-girls-1-1" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/work-on-bsg/beacon-street-girls-2-1/' title='beacon-street-girls-2-1'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/beacon-street-girls-2-1-150x150.jpg" class="attachment-thumbnail" alt="beacon-street-girls-2-1" title="beacon-street-girls-2-1" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/work-on-bsg/beacon-street-girls-3-1/' title='beacon-street-girls-3-1'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/beacon-street-girls-3-1-150x150.jpg" class="attachment-thumbnail" alt="beacon-street-girls-3-1" title="beacon-street-girls-3-1" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/work-on-bsg/beacon-street-girls-4-1/' title='beacon-street-girls-4-1'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/beacon-street-girls-4-1-150x150.jpg" class="attachment-thumbnail" alt="beacon-street-girls-4-1" title="beacon-street-girls-4-1" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/work-on-bsg/beacon-street-girls-5-1/' title='beacon-street-girls-5-1'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/beacon-street-girls-5-1-150x150.jpg" class="attachment-thumbnail" alt="beacon-street-girls-5-1" title="beacon-street-girls-5-1" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/work-on-bsg/beacon-street-girls-6/' title='beacon-street-girls-6'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/beacon-street-girls-6-150x150.jpg" class="attachment-thumbnail" alt="beacon-street-girls-6" title="beacon-street-girls-6" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/work-on-bsg/beaconstreetgirls/' title='beaconstreetgirls'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/beaconstreetgirls-150x150.jpg" class="attachment-thumbnail" alt="beaconstreetgirls" title="beaconstreetgirls" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/work-on-bsg/clip_comments-index/' title='clip_comments-index'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/clip_comments-index-150x150.jpg" class="attachment-thumbnail" alt="clip_comments-index" title="clip_comments-index" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/work-on-bsg/clips-index-1/' title='clips-index-1'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/clips-index-1-150x150.jpg" class="attachment-thumbnail" alt="clips-index-1" title="clips-index-1" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/work-on-bsg/clips-index/' title='clips-index'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/clips-index-150x150.jpg" class="attachment-thumbnail" alt="clips-index" title="clips-index" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/work-on-bsg/dock-1/' title='dock-1'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/dock-1-150x150.jpg" class="attachment-thumbnail" alt="dock-1" title="dock-1" /></a>
<a href='http://www.rorra.com.ar/2009/12/30/work-on-bsg/dock-2/' title='dock-2'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/dock-2-150x150.jpg" class="attachment-thumbnail" alt="dock-2" title="dock-2" /></a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rorra.com.ar/2009/12/30/work-on-bsg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Focus on Virtualization relased</title>
		<link>http://www.rorra.com.ar/2009/12/27/focus-on-virtualization-relased/</link>
		<comments>http://www.rorra.com.ar/2009/12/27/focus-on-virtualization-relased/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 12:04:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[My Work]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.rorra.com.ar/?p=134</guid>
		<description><![CDATA[Last year I was working on a site that ended being pretty nice, Focus on Virtualization. It&#8217;s a web site made for IDG and Microsoft, it was done in just two weeks, and one of the parts that I really &#8230; <a href="http://www.rorra.com.ar/2009/12/27/focus-on-virtualization-relased/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last year I was working on a site that ended being pretty nice, <a href="http://www.focusonvirtualization.com/">Focus on Virtualization.</a><br />
<br/><br />
It&#8217;s a web site made for IDG and Microsoft, it was done in just two weeks, and one of the parts that I really liked were the tweets.<br />
<br/><br />
Some images:<br />

<a href='http://www.rorra.com.ar/2009/12/27/focus-on-virtualization-relased/focus_on_virtualization_1/' title='focus_on_virtualization_1'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/focus_on_virtualization_1-150x150.jpg" class="attachment-thumbnail" alt="focus_on_virtualization_1" title="focus_on_virtualization_1" /></a>
<a href='http://www.rorra.com.ar/2009/12/27/focus-on-virtualization-relased/focus_on_virtualization_2/' title='focus_on_virtualization_2'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/focus_on_virtualization_2-150x150.jpg" class="attachment-thumbnail" alt="focus_on_virtualization_2" title="focus_on_virtualization_2" /></a>
<a href='http://www.rorra.com.ar/2009/12/27/focus-on-virtualization-relased/focus_on_virtualization_3/' title='focus_on_virtualization_3'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/focus_on_virtualization_3-150x150.jpg" class="attachment-thumbnail" alt="focus_on_virtualization_3" title="focus_on_virtualization_3" /></a>
<a href='http://www.rorra.com.ar/2009/12/27/focus-on-virtualization-relased/focus_on_virtualization_4/' title='focus_on_virtualization_4'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/focus_on_virtualization_4-150x150.jpg" class="attachment-thumbnail" alt="focus_on_virtualization_4" title="focus_on_virtualization_4" /></a>
<a href='http://www.rorra.com.ar/2009/12/27/focus-on-virtualization-relased/focus_on_virtualization_5/' title='focus_on_virtualization_5'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/focus_on_virtualization_5-150x150.jpg" class="attachment-thumbnail" alt="focus_on_virtualization_5" title="focus_on_virtualization_5" /></a>
<a href='http://www.rorra.com.ar/2009/12/27/focus-on-virtualization-relased/focus_on_virtualization_6/' title='focus_on_virtualization_6'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/focus_on_virtualization_6-150x150.jpg" class="attachment-thumbnail" alt="focus_on_virtualization_6" title="focus_on_virtualization_6" /></a>
<a href='http://www.rorra.com.ar/2009/12/27/focus-on-virtualization-relased/focus_on_virtualization_7/' title='focus_on_virtualization_7'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/focus_on_virtualization_7-150x150.jpg" class="attachment-thumbnail" alt="focus_on_virtualization_7" title="focus_on_virtualization_7" /></a>
<a href='http://www.rorra.com.ar/2009/12/27/focus-on-virtualization-relased/focus_on_virtualization_8/' title='focus_on_virtualization_8'><img width="150" height="150" src="http://www.rorra.com.ar/wp-content/uploads/focus_on_virtualization_8-150x150.jpg" class="attachment-thumbnail" alt="focus_on_virtualization_8" title="focus_on_virtualization_8" /></a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rorra.com.ar/2009/12/27/focus-on-virtualization-relased/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
