...If you want to enable OS upgrades using do-release-upgrade make sure you include $release-proposed packages in the mirror script, e.g., precise-proposed. Additionally, you have to add...
...your script as debmirror silently ignores some directories. I attached our modified script to include current releases Enable Ubuntu release upgrade from the local mirror Download the following two files...
...file name and extension for a given version. Uploader class VideoUploader < CarrierWave::Uploader::Base include DoesCarrierwaveFormatPatches version :mp4 do set_file_specs file_type: 'video/mp4', extension: :mp4, suffix: '1080p'
...format: :mp4, resolution: 1080] end end Trait This trait uses our gem Modularity. Just include the code in your uploader if you don't want to use the gem.
Was ist Elastic? Suchmaschine, basierend auf Apache Lucene größtenteils Open-Source einige kommerzielle Features ("Elastic Stack", früher "X-Pack") Zugriffsrechte...
...matched on method and URI. However, no request URI will equal another when they include a nonce. You won't be able to match these requests with VCR. Solution
# spec/support/vcr.rb or wherever you need it VCR.configure do |config| # For matching requests that include OAuth params in the query string config.register_request_matcher(:oauth_uri) do |reqA, reqB|
The proxying server adds a header X-Forwarded-For to every request. It includes the original client IP. You can include that header in your access log by using...
...just does memoization and does it well. The syntax is similiar also: class Foo include Memoizer def bar ... end memoize :bar end If you're using Ruby 2.1+, you can...
...write this even shorter: class Foo include Memoizer memoize def bar ... end end This is because def returns the method name as a symbol in...
...element again. This unblocks the entire JavaScript API for the current page. You can include the following module in your test to get a method interact_with_page that does...
...id: 2, title: "How to rock", state: "draft"> ] Let's say you wanted to include deleted articles. Removing the available scope is one way but you might also add another...
...Here's how to reproduce the issue: Example 1 # bad code (Time.current .. Time.current + 1.hour).include?(Time.current) # Use Range#cover? instead of Range#include? since the former does no typecasting into...
ZSH is an alternative command line shell that includes some features like spelling correction, cd automation, better theme, and plugin support. You can replace Bash with ZSH like following:
...fill in "E-mail" with "foo@bar.com" inside the login frame Note: Spreewald >= 4.1.0 already includes that step
...important as we want to append "mice" and "pandas" only to those arrays that include "cats" in the first place. name topics Alice {dogs,mice,pandas} Bob {llamas}
A rough guide how to implement a REST API. The discussion here includes some interesting points as well: Timestamps: ISO8601 format ("2021-02-22T20:34:53.686Z")
Then /^I should get a response with status (\d+)$/ do |status| response.status.should include(status) end Capybara Then /^I should get a response with status (\d+)$/ do |status| page.status_code.should include...
end class Foo prepend FooExtensions # the only change to above: prepend instead of include end Foo.new.bar # => 'Hello in my World' As mentioned, monkey patches are usually a threat to...
Modern versions of Capybara include a finder method #ancestor which allows you to find a parental element using CSS or XPath. If you previously did something like this: field.find(:xpath...
...commands, and scope to individual machines or machine roles. Unfortunately Capistrano 3 does not include these commands any more. cap shell Basics First of all, spawn a Capistrano shell (we...
...ES5 --allowJs --outFile build.js The output will only transpile ES6 syntax. It will not include any polyfills for missing APIs...
...gem with the newer library gem install --no-rdoc --no-ri nokogiri -- --with-xml2-include=/opt/local/include/libxml2 --with-xml2-lib=/opt/local/lib If you still get the error, try to uninstall all...
...how the joined column is qualified as groups.name (rather than just name): class ContactFilter include Minidusen::Filter filter :text do |scope, phrases| columns = [:name, :email, 'groups.name'] scope.joins(:group).where_like...
...means there won't be a pretty sign-in form any more which would include a link for sign-up or password reset. Sign-up would be easy to solve...
...hash or your session data into consideration. The following example demonstrates how you could include params to generate the cache path: class JobsController < ApplicationController caches_action :index, :cache_path => :index_cache_path.to...
...c www.example.com.ca-bundle -s www.example.com-2011 -v The output should look like this and includes the server certificate Amazon Resource Name (ARN) and GUID: arn:aws:iam::322191361670:server-certificate...
.../projects/:id => ProjectsController#show GET /projects/:id/report => Projects::ReportsController#show Hacks to solve this include renaming the report route to something like /projects_report, or defining a new collection action ProjectsController...