Background information about session storage in Rails Rails has a default mechanism to store the session in the CookieStore. This...

If you want to fill in textareas with multiple lines of text (containing line breaks / new lines) you can use...

benmccormick.org

The linked article lists a number of techniques that were best practices with ES5, but have better alternatives in modern...

To make a local copy of an S3 bucket, I use the s3cmd command line tool. Configure access keys:

If possible your code should detect features, not browsers. But sometimes you just need to sniff the browser. And when...

makandra dev
litmus.com

The 90s are calling: they want their tables back. Unfortunately, you need them all for laying out your HTML emails...

stackoverflow.com

Ruby has this handy block shortcut map(&:to_i) for map { |x| x.to_i }. However, it is limited to argument...

Whenever is a Ruby gem that provides a nicer syntax for writing and deploying cron jobs. Leading zeros are important...

When you need to store structured data (like Ruby hashes) in a single database column with ActiveRecord, a simple way...

makandra dev

Authentication is a special part of web applications. On the one hand, it usually is a crucial security mechanism restrict...

rspec.info

RSpec let's you chain a matcher with .or. The expectation will then pass if at least one matcher matches...

developer.mozilla.org

Browsers' printing methods usually don't print background colors. In most cases this is the desired behavior, because you don...

caniuse.com

There is a kinda secret, yet well supported CSS feature called currentColor. It's like a special CSS variable that...

Create a user without password (recommended) Replace newuser with your desired username: mysql -uroot -p CREATE USER 'newuser'@'localhost' IDENTIFIED...

guides.rubyonrails.org

TL;DR Append your locale keys with _html to have them marked as html_safe and translate them with = t...

CoffeeScript and JavaScript (ECMAScript) both have operators in and of. Each language use them for more than one purpose. There...

github.com

Using the JS fullscreen API is painful because all browers use different methods and events and you need to use...

There are two ways within systemd to manage the fact that you need the gluster service active before mounting the...

When your application is running on a multi-server setup, application logs are stored per server (unless you choose a...

By default, Capistrano truncates server responses and places an ellipsis at the end of lines that are longer than your...

If your rails application is unable to send mails, it might be useful to debug your settings using the rails...

wiki.postgresql.org

When you have a large PG database, you may want to find out which tables are consuming the most disk...

Webpacker uses Babel and Webpack to transpile modern JavaScript down to EcmaScript 5. Depending on what browser a project needs...

developer.mozilla.org

Touch devices have their own set of events like touchstart or touchmove. Because mobile browsers should also work with with...