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.
Sometimes, through some firewall or proxy misconfiguration, you might have to deploy to a server that cannot access the git...
Dump this method into your Ruby console to quickly print data in columns. This is helpful for e.g. comparing attributes...
Assuming you're wanting to undo the effects of git rm or rm followed by git add -A or something...
Separate subject from body with a blank line Limit the subject line to 50 characters (max. 72), include...
Database connections are not thread-safe. That's why ActiveRecord uses a separate database connection for each thread.
In modern default RSpec configurations, your tests are usually run in random order. This helps to detect "flickering" tests that...
In case you want to require a gem, that is not in the Gemfile of you bundle and therefore not...
This card compares patterns to store trees in a relation database like MySQL or PostgreSQL. Implementation examples are for the...
RubyMine provides a visual tool for resolving merge conflicts locally. Follow Git > Resolve Conflicts in the context menu to open...
The parallel-gem is quite easy to use and can speed up rendering time if you want to render the...
Luckily, this is simple. Just install three packages: sudo apt install ipheth-utils libimobiledevice-dev libimobiledevice-utils
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.
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...
Sass lets you easily specify multiple selectors at once like this: .some-block &.has-hover, &:hover outline: 1px solid red...
For the initial setup or changes in the sentry reporting it might be useful to enabled reporting of sentry in...
ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...
Note: The behaviour of Spreewald's within step is as described below for version < 1.9.0; For Spreewald >= 1.9.0 it is...
Barby is a great Ruby gem to generate barcodes of all different sorts. It includes support for QR codes via...
git command line options for automating common rebasing tasks, like adding a fix to a commit that was already rebased...