makandra dev
phrogz.net

...The and tags both come with some non-default behavior that you know from other tags.

makandra dev

To add a new panel in MATE: Right-click on an existing panel and choose New Panel

tenderlovemaking.com

...define_method and def actually increased a little, to a difference of about 5-10% for the example above (tested for 2.5.7, 2.6.5, 2.7.0). However, the above still applies: for...

So you want to use object-fit, but you also need to support Internet Explorer. One option is to use...

til.hashrocket.com

Apparently you can pash a second scope to a hash-condition and the whole thing will be evaluated as a...

When using ImageMagick to manipulate images, you might see that images get darker when beeing modified by newer versions of...

...they aligned properly on Linux, iOS and macOS, whereas with a vertical-align of -18%, it looked good on Windows and iOS, but not Linux. Further investigation showed that not...

makandra dev
thecodelesscode.com

The Codeless Code is a charming series of stories about monks and nuns at a programming monastery. Some stories to...

This is quite an edge case, and appears like a bug in Rails (4.2.6) to me. Update: This is now...

makandra dev
gist.github.com

When ActiveRecord child objects are autosaved in Rails.

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...

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...