Blog

Filtering all blogs tagged as "ruby."    Clear filter

Rails Translation Center Gem

A common task in most of Rails applications is to use internationalization. You have to work with yaml and text files to manage your web application translations. Sometimes, you need your system users to help you translating it to several languages. So, you need a user friendly and easy tool to translate your web application.

In BadrIT we solved this problem and developed Translation Center, A multi-lingual, GUI rich, community based, translation Center for Rails apps. It builds a translation center community with translators and admins from your system users.

 

 

Read More

Free Google Translate API v2 6

 Background

Google Translate API v2 is now available as a paid service only, and the number of requests your application can make per day is limited. As of December 1, 2011, Google Translate API v1 is no longer available; it was officially deprecated on May 26, 2011.

Migration
So, if you were using google translate API in you application, you have to register for a paid service or you may do like other many developers migrated to other free API services like

 

Wait, Google Translate API is still FREE :) Lets see how.

 

Read More

Rasem, draw SVG images using ruby1

The web is moving to HTML 5 where SVG images are the standard images to use. But how to generate SVG images to include? You might draw static SVG images and include them in your web site but this will not help with generated SVG images with dynamic data. Of course,  you can read the complete specification of SVG and generate your own images; these are a few hundreds of pages; good luck with that :)

The elegant solution is to use Rasem, a pure ruby gem, to generate SVG images. Rasem allows you to describe your SVG images in pure ruby code. You can either save the generated image to a file or output it to a string to use it with your HTML 5 page. Rasem generates standard SVG images that are compliant with the W3C standard.

gem install rasem

and have fun!

Checkout the project main page at: http://github.com/aseldawy/rasem

You can find examples and usage instructions there.

Read More

Heroku currently active username, How to change on Mac OSX or Linux ?!

If you are already using Heroku on your Mac or Linux with some email like me@x.com and you want change the currently active username on your Mac to other like me@y.com, you should do the following:

Read More

Access oDesk APIs in Ruby and Rails2

BadrIT has developed libraries to access oDesk APIs. Checkout Ruby Desk gem for desktop applications and its variant RoR Desk plugin for Rails applications.

Update 13-7-2010: Ruby Desk and RoR Desk are now officially listed on oDesk developer section. See ttp://developers.odesk.com/API-Libraries and http://developers.odesk.com/Examples.

Read More
« Previous Entries