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 use Vagrant to run Heroku Celadon Cedar stack
Posted: November 29, 2012 | Author: Bruno Ghisi | Filed under: Dev, HerokuHow to transform a few MySQL tables into a PDF
Posted: September 16, 2012 | Author: Bruno Ghisi | Filed under: gem, RubyI 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.
Posted: August 15, 2012 | Author: Paulo Casaretto | Filed under: Guides
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
Posted: August 2, 2012 | Author: Bruno Ghisi | Filed under: gem, Ruby, Ruby and Rails
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 https://www.torproject.org/about/overview.html I have created a [...] » Continue reading.
How to recover from a corrupted table on Heroku shared database
Posted: June 25, 2012 | Author: Bruno Ghisi | Filed under: Heroku, Ruby and RailsHeroku, 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.
Create your first Ruby Gem with Jeweler
Posted: June 21, 2012 | Author: Bruno Ghisi | Filed under: gem, Ruby and RailsThe first thing you should do when need something during development is search for a gem. For this task, you can use ruby-toolbox.com, which rates and group gems, and rubygems.org, that hosts all the community gems. So, if you don’t find what you want or maybe if you just want something with a different approach, [...] » Continue reading.
How to measure the time taken by a given piece of code in Rails
Posted: June 8, 2012 | Author: Bruno Ghisi | Filed under: Ruby and RailsRails provides an interesting helper methods to measure the time taken by a given piece of code. It is useful in development when you need to investigate calls that you suspect of performance issues. The method is called benchmark() and the use is pretty easy. Just wrap the piece of code as below and the [...] » Continue reading.
ActiveRecord validation groups for wizards
Posted: May 21, 2012 | Author: Bruno Ghisi | Filed under: gem, Ruby and RailsQuick tip! If you need to control the validations in you ActiveRecord model, like steps of a wizard, there is an interesting gem for that. It is called Grouped Validations. Basically you just need to define the validation groups in your model, like step1 and step2 below: 1234567 validation_group :step1 do validates_presence_of :email end [...] » Continue reading.
Dotfiles are Indeed Meant to Be Forked
Posted: April 7, 2012 | Author: Paulo Casaretto | Filed under: Ruby and RailsInspired by Zach Holman’s post and his actual repository I decided I should get my own dotfiles. After messing around for a while and with some help from Zach himself through Twitter I finally did it. And I couldn’t be happier about it. In case you don’t know what Im talking about, dotfiles are a [...] » Continue reading.
Recent Comments