Rorra's blog Senior Developer

December 30, 2009

Vangaga.com released!

Filed under: General,My Work,PHP,Ruby — admin @ 8:33 AM

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 company called Xillent, and it was a real disaster, I don’t know where they learn to develop websites, but if you want to have a daily post in Daily WTF, 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’m already working) in migrating all the site to rails, while working to support the current PHP version, the site was released and it’s ready to be used.
Some points to consider to use this site for your next trip ;) :

  • It’s cheaper that many other sites, it’s one of the cheapest web sites out there.
  • Besides great prices, you can be part of the Vaganga community, with important benefits
  • We maintain an history of all your buys, an in little time, we will have discounts for people that buy on the site

For now, the site is working with VAGANGA

Installing radiant 0.9 with multiple language support

Filed under: Ruby — admin @ 7:46 AM


I’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’t understand why they didn’t name it 1.0, since it’s really mature.


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’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 :) ), anyway, I love playing with Radiant :P


Let’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.


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:
http://radiantcms.org/downloads/radiant-0.9.0-rc1.gem


Once you download it, execute the command:

gem install radiant-0.9.0-rc1.gem



We generate our site

radiant new_site



And we edit the database configuration file (config/database.yml)

development:
  adapter: mysql
  database: new_site_development
  username: root
  password:
  host: localhost
  encoding: utf-8



We generate the database, and we end the installation of Radiant

rake db:create
rake db:bootstrap



Now we start installing the plugins, first, copy_move plugin

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



We install the reorder plugin, which will allow us to order our website pages

git clone git://github.com/radiant/radiant-reorder-extension.git vendor/extensions/reorder
rake radiant:extensions:reorder:update
rake radiant:extensions:reorder:migrate



We continue with paperclip

git clone git://github.com/kbingman/paperclipped.git vendor/extensions/paperclipped
rake radiant:extensions:paperclipped:migrate
rake radiant:extensions:paperclipped:update



Now we install globalize2, which allows multiple languages on our site (even if we are just thinking about just one language)

git clone git://github.com/Aissac/radiant-globalize2-extension.git vendor/extensions/globalize2
rake radiant:extensions:globalize2:migrate
rake radiant:extensions:globalize2:update



A intermediate step before continuing, we need to edit the file config/environment.rb, and after the commented line with config.extensions, we add:

  config.extensions = [ :copy_move, :paperclipped, :globalize2, :all ]



And now, we install globalize2-paperclipped, which allow us to globalize our assets :)

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



The chicken is ready!!! (Argentine phrase ;) ), now you can have your site with Radiant, in multiple languages, don’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:

Radiant::Config['globalize.default_language'] = 'sp'
Radiant::Config['globalize.languages'] = 'en,de,fr'

Getting back to work on my page :)

Filed under: General — admin @ 5:38 AM


This year (2009) I’ve been pretty busy, I assisted to 14 different subjects on the university, worked on a lot of interested projects, in Ruby on Rails, PHP, and some java and C++ as well. But I’m going to get some life back to my site, in special to get new customers and show the world I’m still here :)


Today I was trying to upgrade the site to wordpress 2.9, and all the plugins I have on the site. Once I updated everything in my local machine, I got a little surprise, the qtranslate plugin is not ready to work with wordpress 2.9


However, Quian Qin is working on the plugin to make it work with the new version of wordpress, so the update will have to wait until Qian Qin ends the work on the plugin, but I’m sure there are thousands of developers out there waiting for Quian Qin work in order to upgrade their sites.


http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=1271

Work on BeaconStreetGirls

Filed under: My Work,Ruby — admin @ 5:29 AM


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, 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.


You can check some screens of the work done


December 27, 2009

Focus on Virtualization relased

Filed under: My Work,Ruby — admin @ 9:04 AM

Last year I was working on a site that ended being pretty nice, Focus on Virtualization.


It’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.


Some images:

Powered by WordPress