December 2011
5 posts
7 tags
Generate PDF with prawn and Google charts
Hey guys, It’s a quickly post about how to generate pdf with prawn and google charts. Prawn is a awesome lib in ruby for generating PDF documents and google charts is a API to generate charts. I like to create a class responsible to generate my pdf documents. Here is my implementation: # encoding: UTF-8 require 'open-uri' class GenderReportPdf < Prawn::Document def...
Dec 29th
4 tags
OmniAuth strategy for authenticating to Podio
Hello fellows, Now that I finished my bachelor’s degree, I have free time to devote to open source projects that I like and a project that I really like is OmniAuth. OmniAuth is a libary that standardizes multi-provider authentication for web applications. It’s very flexible and nice! In my current job, we are using a lot a web application called Podio. It’s a very cool...
Dec 22nd
4 tags
Finally bachelor's degree in Informations system
After almost 5 hard years, yesterday I finally presented my last job at the university, it’s was a paperwork with more than 60 pages that I wrote about developing social network applications. Now I’m ready to receive my bachelor’s degree in Informations system (it’s like computer science). It was hard years, trying to figure out how to work all day long and at the...
Dec 15th
6 tags
Validates password strength in Rails app
Hello guys, In the last weekend I finished a rubygem to validate the password strength. It’s a very simple gem, the code are available at github To install: gem install password_strong It’s very simple to use, just add verify_strong in the attribute. Example: class User < ActiveRecord::Base verify_strong :password end In the future I gonna work in client side...
Dec 13th
4 tags
Creating custom middlewares with Rack
To kick off, What is Rack? A Rack applications is a object that has a methods named ‘call’ and that method receive the enviroment as a argument and return a array with exactly three values: status, header and body. The following is a simple example: class App def call(env) [200, {"Content-Type" => "text/plain"},["LucasAllan.com"]] end end Rack is the base of a lot of...
Dec 13th