For outputting a given String in HTML, you mostly want to replace line breaks with or tags.

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...

Sometimes, the IRB prints a warning during boot: irb: warn: can't alias source from irb_source. Explanation

developer.mozilla.org

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

makandra dev
rubydoc.info

CarrierWave comes with some RSpec matchers which will make testing more comfortable. Let's say you have an Uploader like...

github.com

Recent Bundler (1.16.1) started complaining about missing dependencies in the Gemfile. This is due to a stricter handling of specifications...

Lets say we have a user with a contract whereas contract is a mounted carrierwave file. Now we want to...

hackernoon.com

CSS Flexbox has become extremely popular amongst front-end developers the last couple of years. This isn’t surprising, as...

jsfiddle.net

When you need test images, instead of using services like lorempixel or placehold.it you may generate test images yourself.

For applications coming with lots of stylesheets and scripts, asset compilation might take quite long. This can be annoying when...

makandra dev
begriffs.com

The attached article explains options you have to store the order of items in a database table. The simplest solution...

If the argument list is the same every time: expect(object).to receive(:foo).with('argument').and_return('response 1...

Boot partitions from installations prior to the 16.04 era are terribly small. When you install updates and encounter errors due...

Don't sum up columns with + in a sql-query if NULL-Values can be present. MySQL and PostgreSQL cannot...

When you find yourself constantly ignoring a RubyMine warning, you can simple disable that warning and de-clutter your editor...

makandra dev
github.com

geordi delete_dumps [directory] Recursively search for files ending in *.dump and offer to delete those. When no...

You might have some trouble running a Rails LTS 2 app with MySQL 5.7. If you don't want to...

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...

api.rubyonrails.org

Rails offers a way to prepend (or append) view paths for the current request. This way, you can make the...

The httpclient gem comes with a custom SSL cert store. While an customizable, application-level cert store is great when...

When you have string contents (e.g. a generated binary stream, or data from a remote source) that you want to...

You need to update a lof gems. Make sure you don't have any version constraints in your...