Dotfiles are Indeed Meant to Be Forked

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.


Add a category to a custom UITableViewCell when loading from a Nib File

Coming back to Obj-c after spending some time with Ruby and I stumbled upon an old problem. And with my new pair of eyes I think I was able to create a nice technique for designing custom a UITableViewCell on iOS. Lets say you are loading your UITableViewCell from a Nib file. Now how do [...] » Continue reading.


Manage multiple accounts on Heroku

Heroku offers a nice solution to deploy and host Rails applications with Git. If you use Heroku frequently, you probably will need a way to manage your multiple accounts, maybe your personal and company one. There is a nice gem that does it called Heroku Account. The use is pretty straightforward: Installation: 1heroku plugins:install git://github.com/ddollar/heroku-accounts.git [...] » Continue reading.


Create an application quickly with Rails Wizard

Do you want to create a Rails application quickly? You should try Rails Wizard. Rails Wizard allows you to visually select what technologies you want for assets, authentication, deployment, persistence, services, templating and testing. After selecting, you got the Rails command with the URL that contains the remote Ruby script for creation. It is a [...] » Continue reading.


Reloading model files when testing

If for some reason you need to reload your model files, maybe because you have something like 123def User < ActiveRecord::Base   after_update :do_some_stuff if MyApp::Application.config.some_config end How do you test that? You need to reload the model file every time the config changes. Thanks to John Dewey’s post now we know how. 12345before(:each) do [...] » Continue reading.


Receive error notifications using Airbrake

Airbrake Logo

There is a pretty nice service that notifies errors on your application called Airbrake. We have been using it successfully in our Rails app (RD Station) through the airbrake gem. Airbrake allow us to receive bugs by email and prioritize accordingly. The use is pretty straight. You just need to install the gem and execute [...] » Continue reading.


Single table inheritance in Rails

It is easy to create a single table inheritance in Rails. Suppose you got a model where there is a superclass Post and two subclasses, Twitter and Facebook, like below: 123class Post < ActiveRecord::Base; end class TwitterPost < Post; end class FacebookPost < Post; end Those subclasses can be mapped for the same table and [...] » Continue reading.


Ruby and Rails code style and best practices

Ruby code

Developers and programmers like Ruby ’cause it’s very flexible with syntax. You can write code in your way (of course it’s not a totally free way) and the compiler will understand. But, if you work in a team or write shared code in general, it’s good to have some guidelines to follow and put some [...] » Continue reading.


Top 3 Trends at RubyConf Br

ruby

At RubyConf Br among several interesting presentations there was at least 3 topics mentioned on most of them. It was not a coincidence that the best Rails developers in the world was talking about the same tech things, these topics seems to reflect the main trends on web development nowadays. Distributed (systems) applications Several years [...] » Continue reading.


RubyConfBr 1st day impressions

RubyConfBr

First day of RubyConfBr gave us a lot of cool things to share. Among funny, boring and useful presentations the conference was being great, any ruby developer would love it. Let’s put it on a ‘bullet point’ compilation of all talks we’ve seen on the first day. Ps.: You may watch the presentations at http://eventials.com/rubyconfbr [...] » Continue reading.