Free Google Translate API v2

December 25th 2011, 5:25 amCategory: Ruby 6 comments

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.

Rasem, draw SVG images using ruby

April 17th 2011, 5:06 amCategory: Ruby 1 comments

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 :)

Creating a Mechanize redirects log

March 6th 2010, 11:44 pmCategory: Ruby 1 comments

In this post, we will see how to create a redirects log to mechanize library. Mechanize is following redirects, but what if I want to know which pages it visited? It is simple and easy to add redirects logs to mechanize.

Using Windows Live Contacts in Ruby

January 11th 2010, 4:35 amCategory: Ruby 1 comments

You can use Windows Live SDK to get user contacts. To get start using this APIs you must follow the following steps: 

  1. Register your application.

  2. Install and run the sample application for your platform.

  3. Request consent from the Windows Live ID user.

  4. Parse the consent token to obtain the delegation token.

  5. Use the delegation token to access an allowed offer and action.