When there's a Gemfile.lock in your working directory that you cannot remove by either checkout, reset [--hard], stash, probably...
I had a very frequent cronjob that in rare cases could be relatively slow. To avoid multiple instances of this...
Sometimes you just want to have a small web server that serves files to test something. Serve the current directory...
When you're developing a gem, never list the same dependency as both runtime and development dependency in your .gemspec...
Sometimes you want to know exactly how many objects exist within your running Ruby process. Here is how: stats = {} ObjectSpace.each...
Starting with Rails 4.0, when you get an exception reported via the ExceptionNotification gem, you will only see a very...
Rails 5 will introduce ActiveRecord::Relation#or. On Rails 4 and 3.2 you can use the activerecord_any_of gem...
A fantastic guide for a dilemma facing any web-based product. Here’s a simple set of Yes/No questions that...
While debugging an intricate issue with failed HTTP requests I have come to appreciate the more advanced features of the...
If you have problems installing a gem and get a error collect2: error: ld returned 1 exit status it's...
If the project team consists of at least 2 members, do a daily standup. It should not take much longer...
We organize our daily work with issues in our Linear workspace. Issue format A good issue needs to be precise...
When working on a bigger project, the easiest way to improve your work relation with a client or an external...
When starting a project we always make a good estimate of all known requirements, and plan budgets and available developers...
I recommend install Node.js using nvm. This way you can have multiple Node versions in your ~/.nvm. You also won...
To update your Rubygems to the latest available version, type the following: gem update --system Note that you have a...
You can make both mobile Chrome and mobile Safari display a native app install banner. The banner suggests that the...
If you'd like to preview the crontab that whenever will deploy, run the following: bundle exec whenever
To check which rubygems versions your different rbenv rubys are using, you can use this small bash script:
MarcoPolo shows your app name and environment in your console prompt so you don't accidentally break production Officially supporting...
tig is a command line explorer for Git that is just awesome. Install via apt-get or brew. Handy commands...
Here is how to start your Rails application to accept both HTTP and HTTPS in development. gem install passenger
The Bullet gem is designed to help you increase your application's performance by reducing the number of queries it...
If you see a stacktrace beginning with lines like this: E, [2015-07-16T09:23:10.896146 #23308] ERROR -- : app...