Ncdu is a disk usage analyzer with an ncurses interface. It is designed to find space hogs on a remote...

Using Ruby 1.8.7 you will not be able to use the maximum versions Rubygems 1.8.30 and Bundler 1.17.3 with https://...

makandra dev

A primer on vector graphics For rastered image formats like JPG or PNG, each pixel is basically drawn on a...

You can not use the hash_including argument matcher with a nested hash: describe 'user' do let(:user) { {id: 1...

There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...

If you need to make an HTTPS connection to a host which uses an expired certificate, do not disable certificate...

When your Cucumber feature needs to browse the page HTML, and you are not sure how to express your query...

makandra dev

...lib provides a built-in email regex URI::MailTo::EMAIL_REGEXP. That's the best solution to work with. /\A[a-zA-Z0-9.!\#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA...

github.com

When using Sidekiq in your application, you must write thread-safe code. This wiki page also lists gems that are...

...lot of logic and callbacks for a particular form screen, but then the model becomes a pain in tests, where all those callbacks just get in the way. Or we...

...have different forms for the same model but they need to behave very differently (e.g. admin user form vs. public sign up form). There are many approaches that promise help...

...existing bash script to work for commits that are referencing Linear IDs. A core benefit of our convention to prefix commits by their corresponding issue ID is that we can...

...easily detect commits that belong to the same issue. You can either do that manually or use the bash script below. It can either be placed in your .bashrc or...

I frequently find myself needing a combination of group_by, count and sort for quick statistics. Here's a method...

...system's environment specifies. This is usually good enough. To test any timezone-dependent behavior in Chrome, you can change the time zone using the Chrome DevTools Protocol. Example

The gemspec for gems allows to add metadata to your gem, some of which have a special meaning and are...

These steps are now part of Spreewald. Here are some useful examples how to use the attached Cucumber Timecop steps...

I used two lab days to read the The framework field guide - Fundamentals, the first of a three part series...

...DateTime.strptime is not what you want You may eventually encounter DateTime.strptime. It's a "better" Time.parse where you can actually define the date format to parse, e.g. >> DateTime.strptime...

...If you use Rails' time_zone_select, you will be juggling zone names like "Berlin" which are actually unsupported. Unsupported zone identifiers are silently discarded and you'll end up...

...Normalize characters in Ruby". Specs (for nerds) Here are some specs that describe the behavior of #to_sort_atoms: describe String do describe '#to_sort_atoms' do it 'should return...

makandra dev

Git has the concept of hooks: bash scripts that are invoked at certain points in the Git lifecycle. One handy...

Ctrl + Alt + S > search "rubocop on save" Under "Inspections", check the highlighted box on rubocop -a Caveat: This adds a...

...component is using this class to render and modify some html, it may fastly become boilerplate to define every call of the method. Here callFake comes in handy, because it...

...of any dependent on the received arguments without having to know the exact arguments beforehand: spyOn(Random, 'shuffle').and.callFake((array) => array.reverse()) Now you can just assume any result of your...

unpoly.com

Version 3.7.0 broke some things in complex forms. Sorry for that. Concurrent user input is hard. 3.7.1 This change fixes...

If the project team consists of at least 2 members, do a daily standup. It should not take much longer...

JavaScript objects can have getter and setter functions that are called when a property is read from or written to...