...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...

github.com

...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...

...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.

github.com

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...

phili.pe

...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...

dev.to

...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...

makandra dev

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...

makandra dev

...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

makandra dev

...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...

blog.cloudflare.com

...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:

...original_env to restore the environment's state before Bundler was launched. Do this whenever you want to execute shell commands inside other bundles. Example outline Consider this setup:

...you can use for arbitrary precision arithmetic. You should use BigDecimal instead of Float whenever you care about rounding errors, e.g. whenever you are dealing with money. You should remember...

...rescue_from ActiveRecord::RecordNotFound, :with => :render_404 This will call the method render_404 whenever a RecordNotFound error occurs (you could pass a lambda instead of a symbol, too).

Whenever you deploy using Capistrano, a new folder is created within the releases directory on the remote server containing the application code. By default Capistrano 3 keeps the last...

...Like MAX or COUNT, GROUP_CONCAT is a MySQL aggregation function you can use whenever your query contains a GROUP BY. You can use it to retrieve a comma-separated...

...is sent, and explicitly setting the Content-Type header. We chose to do that whenever an X-Force-Content-Type header is set on an outgoing request. This enables us...

Net::SSH isn't very smart about using your ssh-agent. Basically whenever it sees a running ssh-agent it tries to connect with all added keys. Also...

Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version 0.5.0 of our geordi gem comes with a script that...

makandra dev

...sets the width of the clone's elements to those of the actual table. Whenever the user scrolls, the clone is hidden or shown appropriately and scrolled horizontally.

...say Then I should see "Application title" in the page source within "channel > title" whenever a simple "within ..." does not work. Note that you need to write all selectors in...