Whenever you have to deal with randomness in a jasmine test there are some spy strategies to help you out...
There are different kind of memory measurement metrics in Linux. These are the differences: Code Name Description vsz virtual memory...
Sometimes you want to write a test for a business rule that's based on multiple variables. In your goal...
Modern JavaScript includes Intl.NumberFormat to format numbers in different formats and locales. In this card, we describe a wrapper for...
Running gem update --system will install the latest version of RubyGems. However the latest version might not be compatible with...
This card is a short summary on different ways of assigning multiple attributes to an instance of a class.
If you want to find out what type of network card is used for a given network interface on a...
After an upgrade to rails 7 I noticed that async reindexing jobs of Searchkick were failing for Model.reindex(mode: :async...
As we're switching from PT to Linear, I've updated the existing bash script to work for commits that...
Raising errors for required and permitted attributes makes it easier to find errors in your application during development and in...
Why do we migrate? Due to a change in licensing, we cannot provide Elasticsearch versions >= 8.0. Version 7.17.x will...
Developing or debugging SAML functionality can be a hassle, especially when you need to go back and forth with someone...
jq is great when dealing with JSON data. Check out the official jq Manual. Content Select only specific keys
These are the top ten accessibility errors as researched by TPGi, a company focusing on accessibility. See the linked article...
Usually our code lives on GitLab, therefore our documentation for CI testing is extensive in this environment. If you are...
I, [2024-01-21T06:22:17.484221 #2698200] INFO -- : [4cdad7a4-8617-4bc9-84e9-c40364eea2e4] test
Tested on Ubunut 22.04 1. Opener script Create a file ~/.local/bin/coverage_zip_opener with: #!/bin/bash tmp_folder="/tmp/coverage-report-opener" if [ -z "$1" ]
Your development server is usually running on an insecure HTTP connection which is perfectly fine for development.
You can use pg_repack to do a VACUUM FULL without holding an exclusive lock during processing. There is still...
A general overview about why and how we migrate can be found under Migrating from Elasticsearch to Opensearch
When you find similar groups of expect calls in your tests, you can improve readability by extracting the group into...
If you ever need to restore exact records from one database to another, Marshal might come in handy. Marshal.dump is...
The sprintf method has a reference by name format option: sprintf("% d : % f", { :foo => 1, :bar => 2 }) # => 1 : 2.000000
Apply Test Driven Development(TDD) to the process of building container images by defining test before writing code and automate...