MySQL and MariaDB have an SQL mode setting which changes how MySQL behaves. The SQL mode value is comprised of...
Running rails server will start a local server that you can access via http://localhost:3000. When you are working...
Form fields can be rendered as noneditable by setting the disabled or the readonly attribute. Be aware of the differences...
Trying to open a vnc window with geordi geordi vnc ended up with this error: > VNC viewer could not be...
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...
When a Rails controller action should handle both HTML and JSON responses, do not use request.xhr? to decide that. Use...
Understanding your type of cronjob Some cronjobs must only run on a single server. E.g. when you run nightly batch...
Rails applications and ruby gems should have a README that gives the reader a quick overview of the project. Its...
When making requests using curl, no cookies are sent or stored by default. However, you can tell curl to re...
By default, browsers will not wrap text at syllable boundaries. Text is wrapped at word boundaries only. This card explains...
HTTPie consists of a single http command designed for painless debugging and interaction with HTTP servers, RESTful APIs, and web...
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...
Browsers support different types of redirects. Be very careful with these status codes: 301 Moved Permanently 308 Permanent Redirect
Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...
If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...
After loading a staging dump into development, you might get an ActiveRecord::EnvironmentMismatchError when trying to replace the database (like...
There are several gems that make it easy to read and process xlsx files. Parsing the entire file at once...
If another session is accessing your database you are trying to reset or drop you might have seen the following...
Sometimes you add Paperclip image styles, sometimes you remove some. In order to only keep the files you actually need...
You can configure a Ubuntu system as a gateway in order to share it's internet connection (maybe via WLAN...
Capistrano has the concept of a "rollback" that comes in really handy in case of errors. When you notice that...
Webpack is the future. We're using it in our latest Rails applications. For tests, we want to compile assets...