...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...
...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...
...be considered deprecated. We will migrate the test setup of existing gems to Gemika whenever we make larger changes to it. Gemika is currently used in minidusen...
namespace :foo do task :bar, :roles => :something do # do crazy stuff end end Whenever we call foo.bar in our recipe, Capistrano will fail if you deploy to a stage...
...TimeWithZone as expected >> DateTime.current.beginning_of_day.class => DateTime # not a ActiveSupport::TimeWithZone as expected This means that whenever you are using those values for database interaction, you'll end up scoping on the...
node.attribute('foo').value returns its value node.content returns the content Careful with XPath: Whenever an XML document declares a namespace, like <list xmlns="http://mylist.org'> xml % './/list' will not...
This problem is reported on TechNet, for example. It seems the problem occurs whenever the organizer of an event is identical to the recipient of the email. Typically, ICS...
...the rake task like rake some_namespace:some_task --backtrace How this works with whenever Define a own job_type and use it for rake tasks in schedule.rb
...other memory is available sudo sysctl vm.swappiness 1 # Linux will try to avoid swap whenever possible The default value of the swappiness parameter is...
...that if you plan to freeze your Firefox versions because your Selenium tests break whenever Firefox updates, there is a better way that lets you keep an up-to-date...
...a custom $cacheFactory instance for your Restangular resources where you could expire cached responses whenever nescessary...
...target another memory area than where the file was located previously. Prefer disk encryption whenever possible. Erasing directories To erase complete directory structures, using shred is cumbersome. Use wipe instead...
...CSS the result will vary across all major browsers.\ Use an even line-height whenever possible. When you are styling block elements you often apply both height and line-height...
...Blogtrottr. Blogtrottr is an RSS-to-email service that sends you an e-mail whenever the feed updates...
...investigate a test failure it is super annoying when the terminal scrolls back down whenever the running test outputs another line. Luckily you can disable this behavior: Gnome terminal: *Edit...
We are consistently having trouble with selenium-webdriver > 2.5.0 where whenever we try to select an option from a Capybara complains: No such option 'Foo' in this select box. Available...