phili.pe

One useful postgres command I stumbled upon recently was \x. It gives you an expanded display which allows you to...

shrinerb.com

Now that CarrierWave is no longer maintained, Shrine might be worth a look.

Nobody needs HTML e-mails. However, you occasionally might have to write an HTML message for some weird reason. Here...

blog.activecollab.com

A great walkthrough through several design iteration of the same landing page.

By pressing Ctrl + Shift + V you can select a recently copied string for pasting.

relishapp.com

You can configure RSpec 3.3+ to raise an error when attempting to stub or mock a non-existing method. We...

bugs.ruby-lang.org

This is basically Ruby-native syntax for andand.

When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when...

makandra dev

Installing SSL certificates usually implies additionally using intermediate certificates. If one of them is missing, some SSL client implementations might...

makandra dev
github.com

Utility methods to distribute each or map over multiple threads or processes.

If you get an error like: subprocess installed post-removal script returned error exit status 78 when installing/removing/updating a package...

If you have jQuery code like this: if (condition) { $element.show(); } else { $element.hide(); } ... you can shorten this to: $element.toggle(condition);

You want to test your 1GE or 10GE internet uplink? We needed to ensure we have full 10GE to the...

When dealing with AR scopes, you can remove conditions, order, etc by using the unscope method. It is available on...

You can say this in Javascript: $.fn.jquery => "1.11.1"

makandra dev
support.mozilla.org

You cannot find your account passwords in the Account Settings – that'd be too easy. Here is where you find...

makandra dev

Redactor is yet another WYSIWYG editor. It definitely has its weak points, but I want to point out that it...

Rails 4 introduced raising an error on pending migrations. This is most annoying when you are crafting a migration but...

speakerdeck.com

Web fonts are great. They are also be really bad for front-end performance because they block rendering. You may...

stackoverflow.com

Some browsers define window.event, which will return a copy of the "current" event. However, this is not defined by the...

github.com

When a method has keyword arguments, Ruby offers implicit conversion of a Hash argument into keyword arguments. This conversion is...

makandracards.com

Writing ruby methods that accept both optional and keyword arguments is dangerous and should be avoided. This confusing behavior will...

This is a guide on how to effectively use Git when working on a feature branch. It is designed to...

Starting with Rails 4.0, when you get an exception reported via the ExceptionNotification gem, you will only see a very...