If you are writing any amount of Javascript, you are probably using closures to hide local state, e.g. to have...
This blew my mind today: 12 Little-Known CSS Facts 12 Little-Known CSS Facts (The Sequel) Please make sure...
In most of our applications, users have their first and last name stored in separate columns. However, specifying them separately...
When using ORDER BY "column" in PostgreSQL, NULL values will come last. When using ORDER BY "column" DESC, NULLs will...
In my RubyMine I have recorded two macros for debugging and linked them to some keyboard shortcuts. Since I believe...
Today I ran into this: Invalid gemspec in [/usr/local/rvm/gems/ruby-1.9.3-p194/specifications/ZenTest-4.9.3.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]. You need a newer Rubygems version. Try...
There is no such thing as a "default order" of rows in database tables. For instance, when you paginate a...
Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...
When using Savon to connect a SOAP API, you may want to use Savon::SpecHelper to mock requests in your...
Datetime picker that offers: simple UI without a specific framework several of customization options allows custom date/time validations Localization happens...
When you have an element you want to hide, you can add a ng-show='isOpen' attribute to that element...
Several Rails migration methods accept index: true as an option to create an index. In some cases (like #add_column...
TL;DR Under certain circumstances, dynamically defined symbols may break keyword arguments in Ruby 2.2. This was fixed in Ruby...
It is a common misunderstanding that all [op]=-operators work the same way, but actually they don't. ||= and &&=
In RSpec you can tag examples or example groups with any tags you like simply by saying describe ReportCreator, slow...
If you want to grow a Ruby Array, you might find out about #fill but it is not really what...
# Given the following models class Image < ActiveRecord::Base has_many :album_images has_many :albums, through: :album_images
Starting from Rails 4.0, you can use a special form options helper called #collection_check_boxes. It behaves similar to...
When ending a Selenium test Capybara resets the browser state by closing the tab, clearing cookies, localStorage, etc.
You know that ActiveRecord caches associations so they are not loaded twice for the same object. You also know that...
Now supports RSpec 3 and Rails 4 Drops support for state_machine, which has some issues with Rails 4 and...
Web applications can be used by multiple users at the same time. A typical application server like Passenger has multiple...
RSpec 3 has verifying doubles. This breed of mock objects check that any methods being stubbed are present on an...
You can hook into Slack when using Capistrano for deployment. The slackistrano gem does most of the heavy lifting for...