If you're using the webdrivers gem and VCR together, depending on your configuration, VCR will yell at you regulary...

If you want to get the path of a file relative to another, you can use the expand_path method...

CSS variables are very different from preprocessor variables. While preprocessors use variables to compile a static piece of CSS, CSS...

A flat folder structure can be cool if you have only a few folders but can be painful for huge...

After a recent Ubuntu update I didn't see the main menu bar of the RubyMine IDE (File | Edit | View...

When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...

medium.com

In Ruby on Rails, all the routes of a given application can be found within the config/routes.rb file.

When writing some logs to a file, that don't use Ruby's logger utility, it is often useful to...

Rails middlewares are small code pieces that wrap requests to the application. The first middleware gets passed the request, invokes...

If you have a Ruby Pathname, you can use the method :/ to append filepaths to it. With this method, Ruby...

Ruby's File class has a handy method binary? which checks whether a file is a binary file. This method...

If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...

CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...

"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...

If you have a :string or :text field, you should pair it with a model validation that restricts its length...

makandra dev

# Basic HTML example # Javascript API (notable methods and properties) video = document.querySelector('video') video.play() video.pause() video.load() // Reset to the beginning and...

makandra dev

RubyMine has a HTTP Client that can be useful to test web APIs. Just create a .http scratch file an...

makandra dev
select2.org

Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...

github.com

If you render markdown from user input, an attacker might be able to use this to inject javascript code into...

We use CarrierWave in many of our projects to store and serve files of various formats - mostly images. A common...

github.com

The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud...

Test-Driven Development (TDD) in its most dogmatic form (red-green-refactor in micro-iterations) can be tedious. It does...

A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...

Embedding videos on a website is very easy, add a tag to your source code and it just works...