Element finding is a central feature of Capybara. Since #find is normally used to get elements from the current page...

Jasmine has long standing support for writing asynchronous specs. In days gone by we used the done callback to achieve...

Cucumber up to version 2 had a neat feature called Step Argument Transforms which was dropped in favor of Cucumber...

jQuery has a function $.fn.trigger(). You can use it to dispatch an event on a jQuery object: let $element = $('.foo...

Over the years we have tried several solution to have vector icons in our applications. There are many ways to...

To keep JavaScript sources small, it can sometimes make sense to split your webpack bundles. For example, if your website...

Was ist Elastic? Suchmaschine, basierend auf Apache Lucene größtenteils Open-Source einige kommerzielle Features ("Elastic Stack", früher "X-Pack") Zugriffsrechte...

PostCSS is a tool for transforming styles with JS plugins. In Webpacker you can configure the plugins and their settings...

makandra dev

min-width is known as a CSS property that can be set to define a least width for an element...

When you have a powerful machine with many CPU cores, you might run into an error like

makandra dev

This is a presentation from 2019-01-21. Summary We want to move away from jQuery in future projects

I had this error: > gem install bundler Successfully installed bundler-2.0.1 1 gem installed > bundle install Traceback (most recent call...

makandra dev

Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...

Puma allows you to specify the max and min threads. In development this could be useful if you use a...

The Ace editor is a great enhancement when you want users to supply some kind of code (HTML, JavaScript, Ruby...

codepen.io

Occasionally, your designer will hand you designs where elements break the layout's horizontal container width, like navigation buttons of...

Accessing pseudo elements via JavaScript or jQuery is often painful/impossible. However, accessing their styles is fairly simple. Using getComputedStyle

github.com

Phusion Passenger changed the way how it gets restarted several times. Through the project's history, these all were valid...

plnkr.co

Flexbox is awesome. Most of it even works in IE11, but flex: 1 won't work reliably in Internet Explorer...

makandra dev

If you need to run a program on a remote machine (e.g. to your office PC) with a graphical UI...

Google Chrome has a subtle rendering bug that hits me once in a while. It usually occurs in sliders with...

makandra dev

Option 1: JSON dump In config/webpack/environment.js you can get inspect environment which includes all webpack config options set for the...

makandra dev

For webpages to load fast it's recommended to optimize images. Ideally an image's file size should be as...

stackoverflow.com

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