// All posts
← home[Fixed] uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)
Fix the error after installing the latest version of paper_trail:uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Log…
What is jemalloc and how does it relate to Ruby / Ruby on Rails
What is jemalloc?. jemalloc (short for Jason Evans malloc) is a high-performance memory allocator that replaces the standard mall…
How to find the maximum subarray sum in Ruby
Let's consider a classic algorithmic problem: find the subarray with the maximum sum. Problem Statement We have an array of integ…
Task to check the correctness of bracket placement (Ruby)
The condition for the task is as follows. Create a function valid_braces that takes a string consisting only of brackets: ()[]{}.…
Task: Convert a Roman numeral to decimal (Ruby)
Let's consider a simple solution to the problem of converting a Roman numeral to a decimal (Ruby). Condition Create a function so…
[FIXED] cannot load such file -- html/pipeline (LoadError) occurs during rails generate thredded:install
How to fix the startup error rails generate thredded:install? ~/Desktop/sandbox rails generate thredded:install /Users/username/.…
Where to find an older version of Google Chrome and download it? Using an old Mac as an example.
I increasingly encounter that newer versions of software do not work on older versions of MacOS. Previously, it was a real quest …
Fixing minikube on Mac with M1 (abandoning qemu, running on docker)
On Mac with M1, it's not so simple with minikube. After its installation, I encountered another error: 😄 minikube v1.35.0 on Darw…
Fixing minikube "You are trying to run the amd64 binary on an M1 system."
On M1 Mac, when executing minikube config set cpus 4, I encountered the following error: | You are trying to run the amd64 binary…
[Codecov] What is the difference between patch and project coverage?
Codecov is a service for analyzing code coverage by tests, which integrates with CI/CD and shows which part of the code is actual…
Why does PostgreSQL skip IDs when saving new records? (Heroku)
Checking the last ID in the database, and it is unexpectedly larger than the actual number of records. Why does this happen?In He…
Pessimistic Lock in Rails: what it is and when to use it. What are the alternatives?
If you are working with Rails and need to avoid simultaneous changes to a single record by multiple processes, you should pay att…
Embedded programming: what it is and how to get started
Embedded programming — is the development of software for devices that have limited computing capabilities and perform specialize…
What is XOR and how does it work?
XOR (exclusive OR) is a simple yet useful logical operation used in programming, cryptography, and data processing. It works on t…
What is CFB (Cipher Feedback)?
CFB (short for Cipher Feedback) is one of the methods of data encryption that works on the principle of "chaining." Imagine you h…
What is debounce in JavaScript and why is it important?
If you have ever worked with events in JavaScript, such as scroll, resize, or keyup, you have probably noticed that they can be t…
What is Memoization (examples in Ruby and Ruby on Rails)?
Memoization — is an optimization technique that involves caching the results of function executions to avoid redundant computatio…
What is a Promise in JavaScript and how to quickly understand its essence?
Imagine that you ordered coffee at a café. The barista takes the order, issues a receipt, and says, “Please wait a moment.” You d…
Fix the error [DEPRECATION] #adapters is deprecated. Use #profiles instead. (Codecov / docile)
Recently encountered an error in Codecov, which was actually a false alert. It only appeared on the Codecov side and caused a CI …
[Fix] Heroku / SearchBox addon - indexing error "The client is unable to verify that the server is Elasticsearch"
When configuring the SearchBox search add-on on Heroku, an error occurred while starting the indexing from the console. Loading p…