...element.offsetHeight > 0; Or maybe you'd even like to patch Prototype so it behaves like jQuery: Element.addMethods({ visible: function() { return offsetWidth > 0 && offsetHeight...
This error can be caused by the mysql2 gem under mysterious circumstances. You need to remove it with gem uninstall...
In case Ruby does not detected the expected encoding of a file automatically you can specify the known encoding manually...
https://tableconvert.com/ is an online tool to convert tables between different formats (e.g. json, markdown, csv).
You need to install the official plugin, it is not bundled with RubyMine by default. Example: Setup a watcher...
If your rails application is unable to send mails, it might be useful to debug your settings using the rails...
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...
Hopefully you are using Psych for everything, but if you have legacy Syck YAML files lying around you could be...
Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...
Free Bootstrap theme resembling Material Design. Bootswatch offers Sass and Less files, so the theme can easily be integrated into...
...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...
We usually generate our commit messages from Pivotal Tracker IDs and titles, like [#15775609] Index view for conflicts
CSS support in major e-mail clients is horrible. This will give you an overview what you will not be...
Sometimes you need to run background jobs that you can't make important guarantees about - they may run out of...
...where a Contact record may be associated with a Group record: class Contact < ApplicationRecord belongs_to :group validates_presence_of :name, :street, :city, :email end class Group < ApplicationRecord
...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...
Here is some JavaScript code that allows you to click the screen and get the clicked element's text contents...
...shared and writable by threads. If incorrectly coordinated, those threads can lead to unexpected behaviors...
...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...
...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...
ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...
...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 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...