You can download .gem files using gem fetch: gem fetch activesupport consul This will produce files like active-support-5.0.0.gem and consul-0.12.1.gem...

mitrev.net

As announced before, Ruby has introduced a safe navigation operator with version 2.3.0. receiver&.method prevents NoMethodErrors by intercepting method...

Processes in Linux might be put into Swap ("virtual memory") occasionally. Even parts of a single process might be removed...

makandra dev

If you have made any changes to a libvirt xml config file you have to reload is. One way is...

The following will search for all .feature files containing a search term and run them using geordi. find features/ -name...

makandra dev
css-tricks.com

All new browsers support the new object-fit CSS property. It allows to specify how an element behaves within its...

github.com

Ever needed to use a global variable in Rails? Ugh, that's the worst. If you need global state, you...

makandra dev
blog.makandra.com

This card has become a blog post!

makandra dev

Macs render fonts bolder than they are, especially on dark background. This can be fixed by configuring the font smoothing...

Reading user input in console applications is usually done using Kernel#gets. Stubbing that can be a bit hairy.

When testing Ruby code that prints something to the terminal, you can test that output. Since RSpec 3.0 there is...

As you may know, HAML expands data attributes that are given as a hash: %div{ data: { count: 3 } }

makandra dev
stackoverflow.com

IE has a "Compatibility Mode" for old browsers. You can keep IE from offering it (and fix some other things...

willmore.eu

The linked site hosts a simple test. It shows two images with narrow vertical/horizontal lines. The more they resemble each...

PostgreSQL uses the C library's locale facilities for sorting strings: First, all the letters are compared, ignoring spaces and...

jakearchibald.com

The way that Javascript schedules timeouts and promise callbacks is more complicated than you think. This can be the reason...

thoughtbot.github.io

Let's say you have two factories that share some attributes and traits: FactoryBot.define do factory :user do screen_name...

makandra dev

Have you ever mistaken one Rails environment for another? The attached helper will help you to never do it again...

addons.mozilla.org

This extension allows you to manually sort (order) your folders in the folder pane of Thunderbird or automatically sort them...

kb.wisc.edu

When receiving a new SSL-Certificate for an existing SSL-key it should be checked that they match cryptographically.

Converting string characters to or from their integer value (7-bit ASCII value or UTF-8 codepoint) can be done...

makandra dev
github.com

It claims to be even faster and brings a new plugin that polyfills object-fit and object-position. This allows...

As your Rails project grows, you will accumulate a number of small patches. These will usually fix a bug in...

makandra dev
vectormagic.com

Automatically convert bitmap images like JPEGs, GIFs and PNGs to the crisp, clean, scalable vector art of EPS, SVG, and...