tenderlovemaking.com

You can define methods using def or define_method. In the real world, there is no performance difference.

til.hashrocket.com

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

I had an issue with icons from an icon font aligning differently on Linux, iOS and Windows (seemingly browser-independent...

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

Note: This applies to plain Ruby scripts, Rails does not have this issue. When you work with Ruby strings, those...

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

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

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

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

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

jakearchibald.com

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

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

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

jqueryui.com

UI sortable helps reordering items with drag 'n drop. It works quite fine. Proven configuration for sorting table rows

redis.io

In production, you (or your ops team) should configure a maximum number of bytes that Redis can use to store...

makandra dev
browsercookielimits.squawky.net

TL;DR If you want to support most browsers, then don't exceed 50 cookies per domain, and don't...

Spreewald gives you the within meta step that will constrain page inspection to a given scope. Unfortunately, this does not...

relishapp.com

When you find yourself in the situation that you would like to define a custom matcher in your specs, but...

Many of our developers love to use the "awesome" window manager on Linux. However, RubyMine dialogs occasionally defocus while typing...

When you have a localized website, you may want to redirect users to their preferred language when they visit the...