After updating Rubygems you see a wall of deprecation warnings like this: NOTE: Gem::SourceIndex#add_spec is deprecated, use...
If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...
...new RegExp('^(\\d+) users') # => /^(\d+) users/ Our expression above now works only at the beginning of the matched string, looks for a number (\d+ [1]) and also captures that. Sweet...
...might have a negative impact on your application's performance. We did not yet benchmark it, but using it for elements that are rendered very often is probably a bad...
Two weeks ago, Cloudflare was struck by a global outage that lasted ~30 minutes. The incident was rooted on a...
...when you run a Selenium test with Capybara. This will help you understand "impossible" behavior of your tests. When you run a Rack::Test (non-Javascript) test with Capybara, there...
...you. But sometimes the complexity will bleed through, causing your tests to show "impossible" behavior. Here is some unexpected behavior caused by the interaction of threads and processes:
In order to request a SSL certificate from any dealer, you usually need a CSR certificate. As both the CSR...
We had a strange behaviour on one of our mariadb-servers: Everyday at around midnight we saw that the root-account on one of our servers is trying to access...
If you are using scrum in a project you might be familiar with planning poker, a playful way to agree...
...nested, :inverse_of => :parent accepts_nested_attributes_for :nested end class Nested < ActiveRecord::Base belongs_to :parent validates_presence_of :parent_id # <- end With the parent already persisted creating nesteds...
...soften the validation to only validate on the associated object: class Nested < ActiveRecord::Base belongs_to :parent validates_presence_of :parent # <- without `_id` end Drawback With this softened validation now...
Angular comes with different types of services. Each one with its own use cases. All of these services are singletons...
By default, Devise redirects to a sign-in form when accessing a route that requires authentication. If for some reason...
...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...
When storing files for lots of records in the server's file system, Carrierwave's default store_dir approach may...
...a lot more, you can think of it as a "Browserstack for mail clients". Best practices Use tables for layouting. Use these HTML attributes: align="center", width="100%", valign="top...
...In a second tab, open a preview of your designed HTML mail. It's best to take it from Staging, so that assets (images!) will be available to litmus during...
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...
Note: We are talking about Machinist 1 here, Machinist 2 may have solved this or might require a different approach...
Du verstehst was eine Custom Resource ist und warum das nützlich sein kann. Du weißt, was ein Operator ist...
With cd .. you can navigate one directory up from the one you are at now. If you use that a...
Sometimes, the rails dev server doesn't terminate properly. This can for example happen when the dev server runs in...
RubyMine offers you to exclude directories from search, meaning faster search results and less "noise" in the list of result...
Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:
...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...