This is useful if, for example, you want to use a background-image that has to scale with the width...

stackoverflow.com

This card will show you how to use git rebase --onto without confusion. Use case: You've got two feature...

jakearchibald.com

TLDR: Browser implementations of HTTP/2 push are horrible. You might end up with worse performance than without pushing. However, the...

By default Middleman generates files with a .html extension. Because of this all your URLs end in /foo.html instead of...

Middleman is a static page generator that brings many of the goodies that Rails developers are used to.

rspec.info

In modern default RSpec configurations, your tests are usually run in random order. This helps to detect "flickering" tests that...

This card compares patterns to store trees in a relation database like MySQL or PostgreSQL. Implementation examples are for the...

jetbrains.com

RubyMine provides a visual tool for resolving merge conflicts locally. Follow Git > Resolve Conflicts in the context menu to open...

github.com

The parallel-gem is quite easy to use and can speed up rendering time if you want to render the...

Imagine the following HTML structure, where the scrolling container has overflow-y: scroll: +--scrolling container+-+ | | | +-child element+----+ | | | ++iframe++ | | | | | | | | | | | | | | +-----------------------+ | | | | <-- actually cut...

When you load a dump for development, records may reference images that are not available on your machine.

blog.jetbrains.com

RubyMine allows bookmarking lines of code. This is super-helpful when working on a complex problem. I've been using...

When filling out forms in Selenium tests, Chrome shows the (usual) bubble, asking to store those credentials. While the bubble...

Some pseudo-elements need to be addressed with vendor prefixes. E.g. ::selection is not supported by Firefox, you need to...

Sometimes you want/have to send specific http(s) requests. You can do that easy with curl or just write the...

ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...

You can start vim with a read-only option. This prevents making accidentally changes in files you don't want...

Note: The behaviour of Spreewald's within step is as described below for version < 1.9.0; For Spreewald >= 1.9.0 it is...

The maximum version of Internet Explorer you can have depends on your version of Windows. E.g. Windows 7 users can...

makandra dev

This is a visualization of the files that will be generated by some useful rails generators. Invoke a generator from...

makandra dev
javascript.info

To move elements around we should be familiar with coordinates. Most JavaScript methods deal with one of two coordinate systems...

This is not an issue in newer versions of HAML (starting with 5.0.0), as the ugly-option was removed...

makandra dev
activestate.com

Looks like ActiveState is trying to market a new Ruby distribution for Enterprises: ActiveRuby Enterprise Edition is designed for businesses...

labs.detectify.com

The postMessage API is an alternative to JSONP, XHR with CORS headers and other methods enabling sending data between origins...