RSpec let's you chain a matcher with .or. The expectation will then pass if at least one matcher matches...
Browsers' printing methods usually don't print background colors. In most cases this is the desired behavior, because you don...
There is a kinda secret, yet well supported CSS feature called currentColor. It's like a special CSS variable that...
TL;DR Append your locale keys with _html to have them marked as html_safe and translate them with = t...
When your application is running on a multi-server setup, application logs are stored per server (unless you choose a...
You know that you can use jQuery's text() to get an element's contents without any tags.
For outputting a given String in HTML, you mostly want to replace line breaks with or tags.
Lets say we have a user with a contract whereas contract is a mounted carrierwave file. Now we want to...
When you need test images, instead of using services like lorempixel or placehold.it you may generate test images yourself.
When you find yourself constantly ignoring a RubyMine warning, you can simple disable that warning and de-clutter your editor...
On your local system that only hosts non-critical development data and only you have access to, you can store...
Form fields can be rendered as noneditable by setting the disabled or the readonly attribute. Be aware of the differences...
mysql> SELECT @@global.version; +------------------+ | @@global.version | +------------------+ | 5.6.30 | +------------------+ 1 row in set (0,00 sec) MySQL 5.6 Reference Manual says "BLOB and TEXT...
Here is how to use Chromedriver without libraries like selenium-webdriver. This can be useful for debugging. The following example...
This is painful. Consider using Microsoft Office or switching careers. If you need to write < 20 letters consider doing it...
wrap the text with a span use line-height for the spacing between lines ("margin")
By default, browsers will not wrap text at syllable boundaries. Text is wrapped at word boundaries only. This card explains...
You are not using javascript tests The file is served from a public folder (not via controller) Problem description...
An end-to-end test (E2E test) is a script that remote-controls a web browser with tools like Selenium...
When your public-facing application has a longer downtime for server maintenance or long migrations, it's nice to setup...
If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...
Here is some JavaScript code that allows you to click the screen and get the clicked element's text contents...
First, go to the webinterface of your phone. Choose Software Update in the navigation on the left. Next, you have...
ChromeDriver clicking works by simulating a mouse click in the middle of the element's first client rect (or bounding...