There is a kind of features in web applications that hinder automated integration tests. Examples include cookie consent banners or...

css-tricks.com

...cannot detect whether a browser will do something useful with a tel: link. Your best options seem to be: Don't have tel: links and rely on the mobile browsers...

github.com

By default, Cucumber uses mocha. This note shows to use RSpec stubs and mocks instead. Rspec 1 / Rails 2

If Sunspot does not work and fails with a backtrace similar to this: /project/shared/bundle/ruby/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:227:in `adapt_response' /project/shared/bundle/ruby/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:164...

Spreewald now comes with a step that tests if a form field is visible: Then the "Due date" field should...

Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...

devblog.imedo.de

XPath matchers can be combined with CSS-selector matchers. This is really useful if not, for example, the content of...

makandra dev
github.com

SitePrism gives you a simple, clean and semantic DSL for describing your site using the Page Object Model pattern, for...

makandra dev

...filters to what is visible through an element. touch-action (IE11+): Limiting default touch behavior (like scrolling) background-blend-mode (Edge 79+): Mixing background color and image Scroll snapping (Edge...

...continue a scroll movement until it reaches the edge of a child element. overscroll-behavior (no Safari): Prevent scroll chaining

ruby-toolbox.com

If you need a gem for a certain purpose, be sure to check this site. The rankings are determined by...

makandra dev
github.com

Bourbon is a library of pure Sass mixins that are designed to be simple and easy to use. No configuration...

makandra dev
github.com

When you need to use diff in either some Ruby code or your Rails app, use the differ gem.

Modern cameras often produce JPEGs that have a "I should be rotated 90° to the left" flag. If you process...

S3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3. S3cmd reads...

postgresql.org

...them as arrays when you are working with arrays. E.g. bad: WHERE topics @> 'value', better: WHERE topics @> '{value}' Check the PostgreSQL documentation on Array Functions and Operators for more information...

...on a string that was previously marked as #html_safe will lead to unexpected behavior. E. g. backreferences to captured groups ($1, $2) will be nil even if the group...

...be safe after using gsub on them. You can, however, fix the $1 gsub behavior on html_safe strings...

makandra dev

Ever wondered how you can create a simple table output in bash? You can use the tool column for creating...

Rails ships with two separate build pipelines: Sprockets ("asset pipeline") and Webpacker. Webpacker has many more moving parts, but allows...

makandra dev
medium.freecodecamp.com

The linked article states that CSS breakpoints should group "similar" screen sizes and thus be at: 600px "narrow"

jeff.dallien.net

x = "Universe" <<-'MESSAGE' Hello #{x} MESSAGE # => "Hello #{x}" That will make the string behave like a single-quoted string, so sequences like \n will be used as they are...

Instead of showing you two lines for each change, Git allows you to highlight changes in a line explicitly:

...thing to do with any new U2410 should be to disable the incredibly annoying beep when pressing any monitor button. Here is the fastest way to achieve that:

...Sound”; the “Power Save Audio” entry is usually grayed out, so this is 1 beep less than from above.) Right Down Tick Do it this way or your colleagues will...

There is a bug in ActiveRecord 2.3.x that leads to changes in nested forms getting lost. class Project < ActiveRecord...

Generate a password htpasswd -Bn firstname.lastname This will ask you for a password and use bcrypt (-B, more secure) and...