In a nutshell: Capybara's find will not work properly on nodes from a list. Don't find on elements...
Why string sorting sucks in vanilla Ruby Ruby's sort method doesn't work as expected with special characters (like...
This is a way to run multiple redis server on one ubuntu server. These steps you have to do only...
How to get a backtrace from a running Ruby process: Ruby 2.6 # First, find out the PID of your Ruby...
I followed this nice guide Connecting to MSSQL with Ruby on Ubuntu - lambie.org until I ran in the following errors...
This article shows how to create a Sass mixin for a colored button. The button's foreground color is dynamically...
When your model is using a callback like before_save or before_validation to calculate an aggregated value from its...
Imagine you have 2 HTML boxes. The first one has a margin-bottom of let's say 30px and the...
In MySQL comparing zero to a string 0 = "any string" is always true! So when you want to compare a...
Imagine you have a piece of code that tries to send a request to a remote server. Now the server...
Ever seen this error when using Graticule? Numerical argument out of domain - acos Similarly to the to_sql problem for...
The following snippet demonstrates how you could create excel files (with spreadsheet gem) and format columns so that they follow...
You want Photoshop to always open files with "full" (100%) zoom and not try to fit them to your screen...
Though Internet Explorer 9 supports the box-shadow CSS property there is a nasty bug which sometimes prevents it from...
The SQL code generated by Graticule's spherical distance computation is insufficient and can lead to NULL distances in edge...
When used to do: $> cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R...
To show the collation of your tables you have to login to the MySQL console and execute SHOW TABLE STATUS...
Given the problem you have a new column postion and that column should be updated for all existing rows with...
Defining a custom to_json method for your classes can be useful. Do it properly or you will "randomly" get...
Since version 11.10 Opera provides support for linear gradients using -o-linear-gradient. The syntax is pretty similar to Mozilla...
The colors in Rails log files are helpful when watching them but, since they are ANSI color codes like ^[[4...
This will reduce the filesize of foo and bar to 0 bytes: truncate -s0 foo bar If the files do...
cURL makes a web request and shows you the response body. You can redirect the response body to /dev/null just...
If you using gpg for your encrypted backup and it fails after you put it in crontab make sure you...