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

Sometimes you want to know exactly how many objects exist within your running Ruby process. Here is how: stats = {} ObjectSpace.each...

relishapp.com

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

makandra Operations

Sending a testmail from a server with a configured exim is easy as pie. From your usershell: tell exim that...

stackoverflow.com

Ruby has a set of methods to convert an object to another representation. Most of them come in explicit and...

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

makandra dev

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

postgresql.org

PostgreSQL's array data type is pretty useful, but manipulating values of arrays can be awkward because of its syntax...

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

Ruby allows multiple assignment: a, b, c = o In order to prove multiple values from a single object, Ruby calls...

speakerdeck.com

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

Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...

What is a Cookie? Google it if you do not know. How are cookies transferred between your browser and...

The asset pipeline is one of Rails' two mechanisms how stylesheets, javascripts and images from your /assets folder are processed...

Some tasks in a web application are better not done live when a user request a page, but in 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...