Add gem 'database_cleaner' to your Gemfile. Then: Cucumber & Rails 3+ # features/support/database_cleaner.rb DatabaseCleaner.clean_with(:deletion) # clean once, now DatabaseCleaner.strategy = :transaction...
If you paste multiple lines of text into a cell, Calc's AutoCorrect will change the first character of the...
Jonas Nicklas, the author of Carrierwave and Capybara, has released Refile, a gem for handling file uploads in Rails. It...
ImageMagick takes a string with several options when cropping an image. See the command line options for how to provide...
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
When running Selenium features with parallel_tests, some browser-server interaction might take longer than usual and the impatient Capybara...
Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...
A CLI for working with Postgres databases. Ships with auto-completion and syntax highlighting.
Interesting approach to caching responses directly in the HTTP server, based on the value of an individual cookie.
The Angular 1.2 way: # By default, angular returns undefined for invalid attributes which removes # the value from the form field...
Copy data from LibreOffice Calc When you copy data from multi-line cells in LibreOffice Calc, quotation marks are automatically...
When using git diff, you might encounter weird characters where umlauts (or any other UTF-8) characters should be. It...
Traveling Ruby is a project which supplies self-contained, "portable" Ruby binaries: Ruby binaries that can run on any Linux...
Adobe no longer supports their PDF reader on Linux and the official page does not offer it for download. \
The benefit of the Rails asset pipeline is that it compiles your stylesheets and javascripts to a single file, respectively...
The Rails asset pipeline improves delivery of application assets (javascripts, stylesheets, images, fonts). Here are some basic facts about its...
Option 0: Download from the official page (preferred) Open https://googlechromelabs.github.io/chrome-for-testing/ In Section "Stable" > chromedriver / linux64 > Download ZIP from...
Clamps (ie. cuts off) an HTML element's content by adding ellipsis to it if the content inside is too...
The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the...
Starting Terminator with split screens is quite simple: Just store a layout and start Terminator with the --layout option.
If you get one of this errors: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: ( ): found...
Have you ever opened a file with vim, edited it and when you wanted to save your changes it told...
Settings -> Editor -> General -> Smart Keys -> Unindent -> To nearest indent position RubyMine 7.0: Settings -> Editor -> General -> Smart Keys -> Backspace...
For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for...