Angular comes with different types of services. Each one with its own use cases. All of these services are singletons...
...origin (e.g. git fetch and git status). You should be 0 commits ahead or behind. Add and commit a file touch .please-update git add .please-update
...is no way to make GitHub do this nicely. :( If you know of a better approach, please let me know...
...hide gems from the backtrace. In such cases, log_subscriber.rb is the inner-most (i.e. "best") source in the backtrace. You probably have an initializer with this line: Rails.backtrace_cleaner.remove_silencers!
Using git rebase can be painful but luckily you can resort to cheating with git reset and committing anew.
We recently had a problem on a Memcache cluster, where one of the servers showed a significantly worse cache hit...
Sometimes, through some firewall or proxy misconfiguration, you might have to deploy to a server that cannot access the git...
In my opinion using this plus the icon font you get the best of all worlds, with low CPU usage, no JavaScript, and file-sizes in the one...
Note: We are talking about Machinist 1 here, Machinist 2 may have solved this or might require a different approach...
...include(3, 4, 5) evaluates to: NOT( .to include(3, 4, 5) ) However, it behaves like: .to (NOT include(3) && NOT include(4) && NOT include(5) ) Warning
Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:
When paginating records, we usually need to know the number of total records in order to render pagination links. Popular...
The linked rbenv plugin rbenv-each is very helpful to keep QoL gems up to date that are not part...
...an error out of stale_session_check! if it cannot find all classes. The best way to go: Don't do this. Strings and numbers should be enough and if...
I had a very frequent cronjob that in rare cases could be relatively slow. To avoid multiple instances of this...
tl;dr Since Rails 6.1+ you can use .compact_blank or .compact_blank! to remove blank values from collections (e.g...
Large projects usually have large test suites that can run for a long time. This can be annoying as running...
Capistrano 2 brings the shell command which allows you to run commands on your deployment targets. There is also invoke...
The maximum version of Internet Explorer you can have depends on your version of Windows. E.g. Windows 7 users can...
If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...
A word of caution There should rarely be a reason for you to split up config/routes.rb. If you need to...
The goal is to get Jasmine specs running in a Rails project using Webpacker, with the browser based test runner...
With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...
tl;dr In Chrome DevTools in the Sources tab you can activate Event Listener Breakpoints for debugging events. Example
...invalid calc value is ignored, so you might end up with missing or "random" behavior, depending on where you do this. The above example is valid once you use zero...