Moving to a new Blog

We have created a new Blog that will talk about the lessons learned of 3 years at Resultados Digitais, working in products like RD Station, with more than a a thousand clients, and Raio X do Marketing. We are going to talk about dev, design, agile and product in general. At this time will be […] » Continue reading.

Case: MongoDB at Production on Ruby on Rails


versão em português At Resultados Digitais we chose MongoDB to store data for RDstation’s new Timeline feature. For this post, I’m assuming you already know how to setup Rails with MongoDB (try Mongoid) Here I’ll show how did we setup MongoDB at production with MongoLab, the challenges we faced with the scale and why did […] » Continue reading.

Faster searches with elasticsearch on Ruby


Here at Resultados Digitais we were using a search gem called scoped_search. It is a great  gem which allows every kind of complex search query, but there is one drawback: scoped_search uses the regular SQL database and every query results in lots of joins. As our user base grew and queries started to take a […] » Continue reading.

Updating your Heroku SSL certificate

RDstation‘s SSL birthday was about to come up, so we’ve updated it and this guide was spawned as a “by-product”. If you’re sane, go check the Gist: or If you like WordPress, keep reading. To generate the new SSL you need to follow these steps: [@dev] Generate a .CSR (a key text file); [@dev] […] » Continue reading.

SaaS products that you should use on your development process

Recently gave a mini talk in our local Ruby User Group (GURU-SC) about some SaaS tools that are used in our development process to build our product (RD Station), facilitate operation the and improve infrastructure. This post will cover the first topic: development process. What do we use and how does it work? We use […] » Continue reading.

How to use Vagrant to run Heroku Celadon Cedar stack

Our team keeps growing. People want to use different operating systems and because they have different roles, like devs and designers, sometimes they don’t want (have) to directly deal with low level config stuff. That is why we decided to create a virtualized environment to run the application that is closely to Heroku Celadon Cedar […] » Continue reading.

How to transform a few MySQL tables into a PDF

I had a portal in the past that I decided to shutdown. The portal used to have niche information about products and resellers, so users could search for products and contact them. Instead of just shutting down, I decided to keep a simple home page and allow future users to download a PDF with the […] » Continue reading.

Run tests on terminal with Textmate.


TextMate 2 got recently open-sourced and with that I reverted the decision to switch to Sublime Text 2. Sublime Text indeed has some edge over TextMate, but overall I believe TM is a more mature editor. TM2 has been showing a lot traction lately with several nightly builds being delivered in the last weeks. That […] » Continue reading.

Using Tor networking though Ruby

Tor logo

Tor is free software and an open network that allows people and groups to improve their privacy and security when navigating on the Internet. You can easily install it (works on Mac, Windows, Linux/UNIX and Android) and then start navigating anonymously. To learn more about how Tor works, please check I have created a […] » Continue reading.

How to recover from a corrupted table on Heroku shared database

Heroku, a famous cloud application platform, was affected by Amazon outage a few weeks ago at 15/06. Unfortunately, due to this episode, one of my Rails app had a corrupted table on the shared database that it was running. The problem: A part of the application was broken and when a Ruby code tried to […] » Continue reading.