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.
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.
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.
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.
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.
The 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.
Cucumber is a powerful tool to write BDD tests. You can write your scenarios and definitions with common language on an outside-in approach. A good (but little long) place to start learning it is at Cucumber backgrounder. I will bring some quick steps. Installing and configuring Install the gem at your machine $ gem install [...] » Continue reading.
Rails 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.
Quick 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.
Inspired 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.