How to get a backtrace from a running Ruby process: Ruby 2.6 # First, find out the PID of your Ruby...
When you create a new branch and push it to origin, you won't be tracking it. This means a...
When talking to your MySQL server via a mysql shell, you can terminate queries by ; or \G -- the latter gives...
The following two hints are taken from Github's Ruby style guide: If your regular expression mentions a lot of...
This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...
Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...
When you are using NAT in your virtual machine (which you should), the host's IP address is: 10.0.2.2
After you configured your ODBC describe in Fix [RubyODBC]Cannot allocate SQLHENV when connecting to MSSQL 2005 with Ruby 1.8.7...
I followed this nice guide Connecting to MSSQL with Ruby on Ubuntu - lambie.org until I ran in the following errors...
This is one possibility to do this. There are other and maybe even better ways to do this.
We love Markdown. We use it wherever we can for text formatting. In a web app, the obvious place for...
Pour color on your Rails console with awesome_print. Turn confusing long strings into formatted output. Have objects and classes...
Install libreadline: sudo apt-get install libreadline-dev Reinstall the ruby and tell rvm where to find readline
When trying to install the gherkin gem, you might encounter an error with the following lines: ERROR: Error installing gherkin...
This card shows you how to format a card's content using Markdown. We use the Commonmarker interpreter, so here...
Instead of showing you two lines for each change, Git allows you to highlight changes in a line explicitly:
If your project manager wants to do gatekeeping on a project, as a developer you need to follow the following...
If you're responsible for gatekeeping in a projects, here is a guide, what to do. In order to reduce...
TeamViewer 6 and lower had an issue where they would see a multi-monitor Linux setup as a single wall...
In MySQL comparing zero to a string 0 = "any string" is always true! So when you want to compare a...
REST Client is a nice, simple HTTP client library for Ruby. When you do a simple GET request like that...
The attached patch lets you find a record by a string or number in any column: User.find_by_anything('carla...
Copy the attached file to config/initializers/indent_string.rb and you can say "foo".indent(4) # " foo" Note you will find many simpler...
When deploying code with Capistrano (depending on your configuration) at some point Capistrano tries to check out code from your...