gist.github.com

A list of common computer I/O actions and how long they take. Visual comparison chart: http://i.imgur.com/k0t1e.png

makandra dev
stackoverflow.com

git rebase -i -> mark your commit with edit git reset HEAD~ (remove the marked commit, but keep its...

phili.pe

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

While you usually do not need a Content-Type on GET request (which have a blank body), an external API...

blog.activecollab.com

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

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

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

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

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

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

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

makandra dev

Starting with Ruby 1.9, most #each methods can be called without a block, and will return an enumerator. This is...

github.com

Rails 5 will introduce ActiveRecord::Relation#or. On Rails 4 and 3.2 you can use the activerecord_any_of gem...

blog.intercom.io

A fantastic guide for a dilemma facing any web-based product. Here’s a simple set of Yes/No questions that...

ma.ttias.be

Article shows how to make a script that fakes one kind of content when printed with cat, but uses different...

To safely transport an arbitrary string within a URL, you need to percent-encode characters that have a particular meaning...

As the web is being used for more and more tasks, expectations rise. Not only should web pages offer rich...

This is how you regain disk space from OpenStack instances if you are using kvm and qcow. If your instance...