PostgreSQL, unlike MySQL, treats strings as case sensitive in all circumstances. This includes comparison with = and LIKE collision detection in...

Here is a symbol of an eight note: ♪ Its two-byte hex representation is 0x266A. This card describes how to...

When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...

til.hashrocket.com

Apparently you can pash a second scope to a hash-condition and the whole thing will be evaluated as a...

This is quite an edge case, and appears like a bug in Rails (4.2.6) to me. Update: This is now...

makandra dev
gist.github.com

When ActiveRecord child objects are autosaved in Rails.

mitrev.net

As announced before, Ruby has introduced a safe navigation operator with version 2.3.0. receiver&.method prevents NoMethodErrors by intercepting method...

PostgreSQL uses the C library's locale facilities for sorting strings: First, all the letters are compared, ignoring spaces and...

jakearchibald.com

The way that Javascript schedules timeouts and promise callbacks is more complicated than you think. This can be the reason...

makandra dev

Have you ever mistaken one Rails environment for another? The attached helper will help you to never do it again...

stackoverflow.com

When you are working with jQuery selectors and collections, many times you want to know if the collection actually contains...

to create a Gallery that has a name and has_many :images, which in turn have a...

jqueryui.com

UI sortable helps reordering items with drag 'n drop. It works quite fine. Proven configuration for sorting table rows

The attached ImageLoader helper will start fetching an image and return an image that is resolved once the image is...

jQuery's find looks in the element's descendants. It will never return the current element itself, even if the...

thecssninja.com

Sometimes you want to preload images that you will be using later. E.g. if hovering over a an area changes...

Spreewald gives you the within meta step that will constrain page inspection to a given scope. Unfortunately, this does not...

jquery.com

Since jQuery 3 saw it's first release candidate today, the links has a list of (breaking) changes.

When you run rake db:rollback and nothing happens, you are probably missing the latest migration file (or have not...

github.com

Adds missing native PostgreSQL data types to ActiveRecord and convenient querying extensions for ActiveRecord and Arel for Rails 4.x...

guides.rubyonrails.org

ActiveRecord offers an explain method similar to using EXPLAIN SQL statements on the database. However, this approach will explain all...

developer.mozilla.org

When building a form with a file select field, you may want to offer your users a live preview before...

makandra dev
github.com

This gem gives you a rake task db:seed:dump do create a db/seeds.rb from your current database state.

Instead of using this hack you might want to use MariaDB 10.x which can work with both old and...