When using Chrome for Selenium tests, the chromedriver binary will be used to control Chrome. To debug problems that stem...
...the puppetdb_query feature. This can result in more complex code but has several benefits: you can use more complex puppetdb queries to get the resources you want than with...
...large number of ActiveRecord objects only to collect its ID. Edge Rider has a better way. Your relations gain a method #collect_ids that will fetch all IDs in a...
...number of ActiveRecord objects only to collect its column value. Edge Rider has a better way. Your relations gain a method #collect_column that will fetch all column values in...
We've already learned how to integrate user-provided images uploads to our application in 205 basic file uploads and...
How to write an issue Issue format Read the card Project management best practices: Issues. Gatekeeping Get familiar with our Gatekeeping process. In particular you should understand the...
When you don't only have a favicon.ico in your project but also PNGs of different sizes and backgrounds, you...
...intensive for large files Other ways to solve this problem Other solutions might work better and make more sense depending on what you are trying to achieve. These alternatives could...
...you obviously do not want to duplicate it and your tests might very well benefit from this approach. Use it with care, however -- doing this more than a few times...
...making the test impossible to read). An alternative is also to hide that functionality behind other steps that do more complex things differently...
To allow HTTP 304 responses, Rails offers the fresh_when method for controllers. The most common way is to pass...
By default subscript ( ) and superscript ( ) tags are styled with vertical-align: sub, respectively vertical-align: super by most browsers.
Resources RubyGuides: Mastering Ruby Regular Expressions Using regular expressions in JavaScript Testing regular expressions visually Regular Expressions: Quantifier modes...
Knowing when to refactor Just feeling like refactoring is not a good reason to do it. Make an educated decision...
This cards describes an example with a Github Client on how to keep your Rails application more maintainable by extracting...
When you query the browser for DOM elements, there are some footguns you should know about. Some lists are synchronized...
When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...
When ending a Selenium test Capybara resets the browser state by closing the tab, clearing cookies, localStorage, etc.
This card will show you how to use git rebase --onto without confusion. Use case: You've got two feature...
Fill in find field with e.g. url (? .*?) Hint: the "url" at the beginning of the string is just a text fragment; the (? .*?) is our named capture group.
Spammers have started abusing other application to send their spam. This works like this: The application has some form that...
Important wkhtmltopdf is deprecated and shouldn't be used anymore. Please consider switching to another tool We can install wkhtmltopdf...
...change the rendered html, some variation of @message.content.body.to_rendered_html_with_layout Changing the behavior of the editor You may want to add some functionality to the editor or remove...
...addEventListener("trix-action-invoke", event => { const { editor } = event.target if (event.actionName === "x-horizontal-rule") { // ... } // Add behavior for the other buttons // ... }) Check the Trix README to check what you can do.
vertical-align is hard. Have you ever wanted to vertically center an icon with text? This usually means "vertically align...
Hint This applies only to distributions based on Debian. Requirement You need to setup the PostgreSQL Apt Repository first.
To apply transparency to an element, you can use opacity in CSS. However, sometimes you don't want to make...