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...

Disabling auto-complete in login forms is probably a bad idea, since it encourages weak passwords. If you are still...

makandra dev
eager.io

SmartUnderline is an open-source JavaScript library which uses clever tricks to draw underlines in a more beautiful and readable...

If you need to follow links, click buttons, etc. using Capybara inside an , you can do it like this:

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...

campaignmonitor.com

CSS support in major e-mail clients is horrible. This will give you an overview what you will not be...

css-tricks.com

Insanely detailled guide about controlling copy & paste behavior using web technology in 2015. Note that you can now trigger a...

duri.me

Small web application where you can upload an image (PNG, JPEG, GIF) and generate a base64-encoded version of it...

Rails comes with grouped_collection_select that appears to be useful, but isn't. As an alternative, consider the flat...

If you're supporting IE9+, you can listen to input to see if a text field changes. Other than change...

gist.github.com

The differences are subtle. You probably want to use Time, except when you want to use DateTime. See the attached...

Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead.

To disable the mostly useless automatic suggestion popups in RubyMine, go to File / Settings, then to Editor / General / Code Completion...

guides.rubyonrails.org

Starting from 4.1, Rails automatically detects the inverse of an association, based on heuristics. Unfortunately, it does not seem to...

postgresql.org

There is no such thing as a "default order" of rows in database tables. For instance, when you paginate a...

chimera.labs.oreilly.com

HTTP/2 will make our applications faster, simpler, and more robust—a rare combination—by allowing us to undo many of...

makandra dev
docs.google.com

WebRTC HTTP/2 is here, let’s optimize! or, why (some) yesterday's best-practices are today's HTTP/2 anti-patterns...

google.com

Surprisingly exhaustive new icon set by Google. Available as PNG, SVG and as a icon font. Comment from Henning

Since version 2.6 exception notifier distinguishes between foreground and background sections. The reason is that with background jobs (e.g. methods...

devalot.com

Good article about ruby singleton classes.

makandra dev
api.rubyonrails.org

ActiveModel supplies an errors object that behaves similar to a Hash. It can be used to add errors to a...

Developing complex regular expressions quickly blows my mind. Here are some online regex editors that help you by highlighting matching...