If you get this error (probably because you want to load some modules): # modprobe xt_comment FATAL: Could not load...
I couldn't successfully execute a simple iptables command and got this error on an Ubuntu server: # /sbin/iptables -I INPUT...
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...
Then the "sorted" select should be sorted But the "unsorted" select should not be sorted
ImageMagick takes a string with several options when cropping an image. See the command line options for how to provide...
Addressing is a fertile ground for incorrect assumptions, because everyone's used to dealing with addresses and 99% of the...
In the tradition of our PostgreSQL cheat sheet for MySQL lamers, here is a cheat sheet for Jasmine when you...
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...
Angular 1.3+ has an alternative getter/setter pattern: You can bind ng-model to an accessor function. This is a function...
This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. This setup allows...
Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...
jQuery comes with .animate() that lets you transition some CSS selectors: function floatIn($element) { $element.css({ 'opacity': 0, 'margin-top': 200px...
Databound provides Javascript a simple API to the Ruby on Rails CRUD. Tries to expose a full model CRUD as...
When you have an ngRepeat directive that uses track by, be sure to move the track by instructions to the...
Bourbon is a library of pure Sass mixins that are designed to be simple and easy to use. No configuration...
Lightweight Angular JS directive to upload files Includes polyfills for old IEs. Unfortunately, their auto-loading mechanism may not work...
Today in computer: In Coffeescript, on and yes are aliases for true. off and no are aliases for false.
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...
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...
A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use...