...names on localhost. This is annoying, since you will sign out your current user whenever you switch to another app. A better way is to use our own daho.im service...
...one from the storage or store the original file in the storage. That means, whenever retrieve_from_store! is called on the uploader, a hook also calls retrieve_versions_from...
...This will also change your Ruby version, but only the one you are using whenever no other version is specified, e.g. via a .ruby-version file or RBENV_VERSION variable...
...config --global core.hooksPath ~/.githooks Store the above snippet to ~/.githooks/pre-push chmod +x ~/.githooks/pre-push Execution Whenever you push, Rubocop will automatically run, and prevent the push if unsuccessful. Note that Rubocop...
}, "active_workers": 0 }, "timestamps": { "sidekiq_performed": "2016-11-10 17:51:03", "whenever_ran": "2016-11-10 17:51:02", "requested": "2016-11-10 17:56:45" } }
...controller rendering the monitoring output as JSON class MonitoringController < ApplicationController def status data = { timestamps: { whenever_ran: Redis.current.get('monitoring:timestamp:whenever_ran'), sidekiq_performed: Redis.current.get('monitoring:timestamp:sidekiq_performed'), requested: Time.now.to...
...If you set the :validate option to true, then associated objects will be validated whenever you save this object. By default, this is false: associated objects will not be validated...
Whenever you have to deal with randomness in a jasmine test there are some spy strategies to help you out! Let's say we have a method Random.shuffle(array) to...
...DOM structure which may be annoying. Still, we recommend to use the CSS approach whenever possible, since Clamping in JavaScript has significant performance costs. Usage display: -webkit-box overflow: hidden...
...because its extensions are not built. Try: gem pristine nokogiri --version 1.10.4 So whenever a patch level Ruby update is deployed, gems with native extensions are automatically re-installed. Because...
...unused_keys.leaves.count} i18n keys, run `i18n-tasks unused' to show them" end end Alternatives Simple "Whenever I18n::MissingTranslationData exception is caught, i18n_translation_spawner tries to add a new key into...
...make use of the command option of OpenSSH: Specifies that the command is executed whenever this key is used for authentication. The command supplied by the user (if any) is...
...MacBook, using more than one external display is only possible with workarounds. Docking stations Whenever you're considering using more than 1 external display, it makes sense to consider using...
...of the groups development and test when deploying to the stages production and staging. Whenever you create custom groups in your Gemfile, make sure to exclude these, if they should...
... staging: *production Disabling unused compression Webpacker supports Brotli compression, and produces .br files whenever compiling zipped files. However, these are of no value when they are not used.
To integrate those two, we include and activate timemachine.js in our Rails layout whenever we see that Timecop is mocking the time: - if defined?(Timecop) && Timecop.top_stack_item = javascript...
...diff --color-moved=dimmed_zebra $(git config init.defaultBranch)" Caveat Aliases are evaluated only once whenever you open a new terminal. This means that you cannot expect these aliases to adjust...
...refs/heads/ | fzf | sed 's/\* //g' | xargs -I '{}' git checkout {}" alias rb=recent-branch Now whenever you want to switch back and forth between your most recent branches, type recent-branch...
use callbacks to delegate control, e.g. in an event handler: "Hey, whenever a user clicks you, please run this code" (keyword "whenever") use promises to make time...
hamster provides several collection classes, such as Hamster::Hash. Hamster collections are immutable. Whenever you modify a Hamster collection, the original is preserved and a modified copy is returned...
...enable font smoothing for variable fonts. The bast workaround is to enable font smoothing whenever you apply the "wght" font variation setting. For example, to style the element: strong
...Exception Notification We are using the exception_notification gem to receive an e-mail whenever one of our apps raises an unhandled exception. Look through the repo and understand how...
...with a text/plain content type. Write a Middleware that prints OUCH to the screen whenever the Rails application raises an unhandled error...
...usually group tasks by their domain/scope. An example crontab might look like this: # Begin Whenever generated tasks for: project100 MAILTO="log@example.com" MAILFROM="cron@example.com" # When server is booting up, ensure Sidekiq...
23 8 * * * baz 30 * * * * plop 5 8 * * * bar 1 0 * * * foo # End Whenever generated tasks for: project100 While you can human-parse this one easily, crontabs with several...
...some catastrophic backtracking: .*(?:.*=.*) This is a small reminder do keep using the lazy operator ? whenever possible and furthermore be aware that regular expressions should not only be unit-tested but...
Are you adding a "Then show me the page" and re-run Cucumber whenever there is a failing scenario? Don't be that guy! Save time with the shiny new...
...shows failing scenarios immediately, it will also open the current page in your browser whenever a scenario step fails. After you installed the gem, use the formatter like this: