MySQL and MariaDB have an SQL mode setting which changes how MySQL behaves. The SQL mode value is comprised of...
On your local system that only hosts non-critical development data and only you have access to, you can store...
Your default postgres user is named like your linux user. That default user has limited access privileges, which can cause...
Here is how to use Chromedriver without libraries like selenium-webdriver. This can be useful for debugging. The following example...
Sometimes it's necessary for you to check which ports are in use on your local machine and which process...
If one etcd node is no longer a member of the remaining etcd cluster or fails to connect you need...
Katapult 0.3.0 brings Rails 5 and Ruby 2.5 support with a new design, plus a ton of smaller features, fixes...
This is an extension to PostgreSQL vs MySQL: How to UPDATE using a JOIN. UPDATE employees SET department_name = departments.name...
TL;DR Use user.update!(remove_avatar: true) to delete attachments outside of forms. This will have the same behavior as...
To check which elements an ActiveRecord relation contains use the contain_exactly matcher. describe User do let!(:admin) { create(:user...
We're usually running Ubuntu LTS versions. Sometimes newer hardware requires packages from more recent Ubuntu releases that only come...
When an Rspec example fails, I usually investigate by running that example again using rspec . However, this does not work...
While the hardware mute button of my Lenovo x230 worked on Ubuntu 14.04 out of the box, it does not...
If another session is accessing your database you are trying to reset or drop you might have seen the following...
You need to disable "Bluetooth low energy", then follow these core steps: Make sure the headphones are in pairing mode...
I frequently find myself needing a combination of group_by, count and sort for quick statistics. Here's a method...
There are many approaches out there how you can import data from a legacy application to a new application. Here...
You can not use the hash_including argument matcher with a nested hash: describe 'user' do let(:user) { {id: 1...
ActiveRecord::RecordNotFound errors provide quite meaningful error messages that can provide some insight on application details. Consider the following:
You can configure a Ubuntu system as a gateway in order to share it's internet connection (maybe via WLAN...
When using GROUP BY, MySQL now complains if the SELECT includes columns which are not part of the GROUP BY...
This card will show you how to use git rebase --onto without confusion. Use case: You've got two feature...
Assuming you're wanting to undo the effects of git rm or rm followed by git add -A or something...
Separate subject from body with a blank line Limit the subject line to 50 characters (max. 72), include...