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

postgresql.org

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

sslscan is a nice tool to show details about TLS/SSL connections: ~> sslscan some-host-at.makandra.de Testing SSL server some-host-at.makandra.de on port 443...

makandra dev
semaphoreci.com

Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...

Please don't use the horrible datetime_select helper. It has a terrible UI. Always prefer to use a visual...

When you want to UPDATE a table with information from an associated table, you can JOIN the associated table into...

Several Rails migration methods accept index: true as an option to create an index. In some cases (like #add_column...

makandra dev
plugins.jetbrains.com

There are times when you have a chunk of text that you want to do something with, e.g. replace something...

makandra dev

Code folding is a very useful feature to me. It gives me a quick overview over a file and keeps...

edgeapi.rubyonrails.org

Starting from Rails 4.0, you can use a special form options helper called #collection_check_boxes. It behaves similar to...

There are some frontends available, but they all suck, are no longer maintained or are hard to install.

railscasts.com

See this Railscast. Basically you can simply write views like index.xlsx.erb: ID Name Release Date Price <% @products.each do |product| %> <%= product.id...

The easiest way to detect touch-capable browsers is to check for the presence of touch events. It is no...

github.com

Preview what your markdown would look like on Github. Helpful e.g. when writing or extending a Readme for your gem...

markembling.info

Using uncountable resources is not recommended as it breaks Rails' magic, e.g. when using form_for. You'll always be...

stackoverflow.com

Make sure you have libcurl3-dev installed: sudo apt-get install libcurl3-dev gem install typhoeus

This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. This setup allows...

askubuntu.com

Adobe no longer supports their PDF reader on Linux and the official page does not offer it for download. \

Option 0: Download from the official page (preferred) Open https://googlechromelabs.github.io/chrome-for-testing/ In Section "Stable" > chromedriver / linux64 > Download ZIP from...

Starting Terminator with split screens is quite simple: Just store a layout and start Terminator with the --layout option.

One of the many useful features of TextMate is autocompletion of words. If I were in TextMate right now, I...

stackoverflow.com

Have you ever opened a file with vim, edited it and when you wanted to save your changes it told...

If bower complains about a missing node binary, do not install Ubuntu's node package. Instead, you need to create...

Hash#fetch is a great way to ensure that a hash key is present. The error message when a key...