As web developers, we know how easy it is to end up with web page bloat. But loading a webpage...
window.getSelection().toString(); Browser support: IE9+, Android 4.3+, Safari 5+
You can easily have a JavaScript hash/object that returns a default value for unset keys/properties -- as long as you need...
There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...
To create a 10 GB file: fallocate -l 10G huge_file.dat
Adding a gem means you take over the liability towards the external code. Checklist Based on "To gem, or not...
If the application under test makes sound, you probably want to disable this during integration testing. You can use the...
Web technology is a broad field and you cannot be an expert in all aspects. However, it is useful to...
Just like we use gems on the server, we use third party JavaScript libraries in the browser. These typically provide...
We generally use multiple application servers (at least two) and you have to search on all of them if you...
Advanced cucumber features Learn about the following cucumber features: Doc Strings ("multiline strings") Tables Tags Before/after hooks Background Scenario outlines...
We have projects that have been developed using many different versions of Ruby. Since we do not want to...
If you use Angular 1.4+ together with Angular Animate, all ng-show, ng-hide, ng-class etc. are animated on...
If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...
On application servers, gems are usually bundled into the project directory, at a location shared across deployments. This is usually...
deadlock 0x7f8a4160a360: sleep:- (main) - /home/me/.rbenv/versions/1.8.7-p375/lib/ruby/gems/1.8/gems/bundler-1.14.3/lib/bundler/worker.rb:43 deadlock 0x7f8a38c03b08: sleep:- - /home/me/.rbenv/versions/1.8.7-p375/lib/ruby/gems/1.8/gems/bundler-1.14.3/lib/bundler/worker.rb:56 *** longjmp causes uninitialized stack frame ***: /home/me/.rbenv/versions/1.8.7-p375/bin/ruby terminated
This error message may occur when rspec gets loaded by rake, e.g. when you migrate the test database. NoMethodError: undefined...
There are some inconvenient Gem dependencies. Resolve them by adding/modifying these lines in your Gemfile: gem 'guard-livereload', '>= 2.5.2', require...
Reminder of what you can do with Geordi. Note: If you alias Geordi to something short like g, running commands...
Try updating to 1.0.4 right in the Gemfile.lock.
TLDR: When you put CSS rules into a partial and import that partial multiple times, the CSS rules will be...
First find the reference for the entry you want through looking at the stash: $ git stash list stash@{0}: WIP...
Collection of useful tools in the Chrome JavaScript console. Make the whole page editable This is not special to Chrome...
TruffleRuby is an experimental Ruby implementation that tries to achieve ~10x performance over MRI. This has been on our radar...