If your git index for some reason becomes invalid, no need to worry. Your index is corrupt when you see this error running usual git commands like git pull, git...
Here is some JavaScript code that allows you to click the screen and get the clicked element's text contents...
...clone or #dup and you modify the copy, you will run into the following behavior: original_hash = { foo: { bar: 'original value' } } copied_hash = original_hash.dup copied_hash[:foo][:bar] = 'changed value...
Hopefully you are using Psych for everything, but if you have legacy Syck YAML files lying around you could be...
Free Bootstrap theme resembling Material Design. Bootswatch offers Sass and Less files, so the theme can easily be integrated into...
...this file as your project grows. The problem here is that this file potentially becomes very complicated to manage over the time. That’s why it’s important to find...
...BlackSwan competitor will appear and they will kick your ass. Their product will be better or more interesting or just better marketed than yours, and it also will be free...
Sometimes you need to run background jobs that you can't make important guarantees about - they may run out of...
When you have a hook in your Capistrano file that dumps your remote database, you might not want it to...
Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...
...about the differences between imperative and declarative scenarios. In my opinion, both styles have benefits and should be used appropriately based on the situation. The majority of examples on rspec...
...You could also use social media buttons, but disable them by default. The rationale behind this is: Facebook, Google, Twitter, and similar will send information to their servers even when...
When your Rails controller action responds with only a simple text, render text: 'Hello' may not be what you want...
...shared and writable by threads. If incorrectly coordinated, those threads can lead to unexpected behaviors...
This is called "cherry-picking". git cherry-pick commit-sha1 Note that since branches are nothing but commit pointers, cherry...
TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...
ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...
After a recent Ubuntu update I didn't see the main menu bar of the RubyMine IDE (File | Edit | View...
I experienced a lot of issues with google chrome that made it almost impossible to work with it. Here are...
...run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec rails runner 'ScriptRunner.go'" end becomes desc 'Run script' task :script do on primary :app do within current_path do
...user directly as an option to the server directive. Also, the roles syntax has become more ruby'esque, and the first server will by default be the primary one:
When testing with Cucumber / Caypbara, iframes are ignored, so you can't interact with them. To interact with your iframe...
TL;DR You shouldn't call $scope.$apply() or $scope.$digest() inside a function that can be invoked by Angular...
If you're using the Capybara webdriver, steps sometimes fail because the browser hasn't finished loading the next page...
.desktop files define launchers for applications installed on your machine. They specify the command that will be executed when launched...