makandra dev
medium.freecodecamp.com

The linked article states that CSS breakpoints should group "similar" screen sizes and thus be at: 600px "narrow"

TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...

There is no CSS selector for matching elements that contains a given string ¹. Luckily, Capybara offers the :text option to...

When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...

clipboardjs.com

We used zeroclipboard.js in some of our projects but now we switched to clipboard.js because it does not rely on...

solnic.eu

Yesterday I stumbled across a talk in which the guy mentioned module sub-classing. I was curious what you can...

In order to have monitoring for Sidekiq (like queue sizes, last run of Sidekiq) your application should have a monitoring...

github.com

This might be relevant for us since we're often managing customer documents in our apps. I played around with...

Same requests are recorded only once in vcr. Replaying a test fails, if you trigger the same request multiple times...

There is no build in functionally in jQuery and Prototype to extract params from a url. You can use this...

weareoutman.github.io

ClockPicker is a JavaScript and Bootstrap implementation of an Android-style time picker which looks and feels great. Unfortunately, it...

makandra dev

Sometimes you might need to nest a git-project inside another git-project. The right strategy is to use submodules...

makandra dev

Promises are the new way™ to express "Do this, and once you're done, do that". In contrast to callbacks...

To simulate Rails' to_sentence in your JavaScript application, you can use these few lines of CoffeeScript code: joinSentence = (array...

css-tricks.com

The linked article shows what current browsers do when you click a link like this: 1-562-867-5309

Here is a symbol of an eight note: ♪ Its two-byte hex representation is 0x266A. This card describes how to...

By convention, common protocols use a defined port, like 80 for HTTP or 443 for HTTPS. You can use nmap...

When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...

Chrome's developer tools automagically choose vertical or horizontal panel layout, based on their width. You can disable that magic...

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

jakearchibald.com

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

to create a Gallery that has a name and has_many :images, which in turn have a...

The attached ImageLoader helper will start fetching an image and return an image that is resolved once the image is...