I couldn't successfully execute a simple iptables command and got this error on an Ubuntu server: # /sbin/iptables -I INPUT...
Geordi 1.0 features a command line application geordi, that holds most of Geordi's previous commands. New features
Jonas Nicklas, the author of Carrierwave and Capybara, has released Refile, a gem for handling file uploads in Rails. It...
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...
You can do so much more than console.log(...)! See the attached link for a great breakdown of what the developer...
Interesting approach to caching responses directly in the HTTP server, based on the value of an individual cookie.
If you want a class-like construct in JavaScript, you can use the module pattern below. The module pattern gives...
The Angular 1.2 way: # By default, angular returns undefined for invalid attributes which removes # the value from the form field...
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. \
Option 0: Download from the official page (preferred) Open https://googlechromelabs.github.io/chrome-for-testing/ In Section "Stable" > chromedriver / linux64 > Download ZIP from...
The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the...
If you get one of this errors: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: ( ): found...
For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for...
Cucumber allows for prose in features and scenarios. Example: Feature: Cancel account There are several ways to cancel a user...
tlmgr is the TeX Live Manager and responsible for the TeX installation on your (Linux) machine. If you're getting...
In a JavaScript console, type this: > 9112347935156469760 9112347935156470000 Ooops. And that's not a float! This occurs because JavaScript uses...
A nice bookmarklet to analyze how many watchers have been registered on the current page. Good for keeping an eye...
Modern browsers natively suppport file pickers that allow the user to choose multiple files at once. To activate this feature...
So you want to organize your I18n using multiple .yml files but your Rails 4.1 application simply won't use...
When your system is not running on English, you may sometimes want to run some applications and not use your...
In Rails, you can very easily send emails with HTML and plaintext bodies. However, if you're trying to debug...