To set a cookie in your test browser for cucumber tests, you need to know which driver you are using...

So your Cucumber feature sometimes dies with this exception: Modal Dialog Present (Selenium::WebDriver::Error::UnhandledAlertError) As a seasoned Selenium...

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

makandra dev

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

...after submitting the form due to the now displayed error messages. A compromise with better accessibility is to add the aria-required attribute in this case. This allows screen readers...

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

makandra dev

This may be awkward to set up, but will work once you're done. Fun facts:

Here is how to start your Rails application to accept both HTTP and HTTPS in development. gem install passenger

Sidekiq 7 adds a new feature called capsules. Use cases: a chrome queue limited to 1 for e.g. PDF processing...

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

s keeps saturation unchanged. calc(100 - l) inverts lightness. For example, 0% becomes 100%, and 100% becomes 0%. Example usage .demo { --inverted-color: hsl(from currentColor calc(h...

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

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

I recently stumbled over a quirk in the way Ruby handles local variables that I find somewhat dangerous. Consider:

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

We recently migrated a Rails application from yarn to npm. We decided to go this step instead of upgrading to...

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

...a? Capybara::Driver::Selenium Now the selenium driver is located by Capybara::Driver::Selenium. A better-looking approach would be: Capybara.current_driver == :selenium page.response_headers['Content-Disposition'] should be page.response.headers...

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

OpenAI is currently limiting the Audio generating API endpoint to text bodies with a maximum of 4096 characters.

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

apidock.com

Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead. ActiveRecord models have with a method becomes(klass) which you can...

Large Rails projects tend to define multiple custom ways to format Dates or DateTimes. This often leads to duplicated format...

Disclaimer This card is a collection of guides and things to have in mind when upgrading to a specific version...