Сентябрь 2017

Comet and Pub/Sub and their implementations in the Rails ActionCable framework.
Comet
Comet is a technology (a web application model) that allows sending data to he client without any requests from the client side. The server decides when and what data it wants to transfer to the client. Alternative name of this technology is Push technology, in...

Untitled Document.md
Why DBeaver
Recently I was looking for a simple free database viewer for PostgreSQL on Ubutu 16.04. I failed to catch up on PgAdmin3, but came across a topic on HN where various GUI tools for PostgreSQL were discussed:
Postage – A fast replacement for pgAdmin
These 2 options looked good: DBeaver and Valentina DB.
After checking...

Add bootstrap-sass gem to the Gemfile:
gem 'bootstrap-sass', '~> 3.3', '>= 3.3.6'
or install it from your terminal: gem install bootstrap-sass -v 3.3.6
Restart the server (ctrl+c, rails s) to make the files available through the pipeline
Rename file extension app/assets/stylesheets/application.css to .scss
In the bottom of this file (don't touch anything else), add:
// "bootstrap-sprockets" must be imported before "bootstrap"...

Target HTML Elements with Selectors
To add JS to your HTML, you need a script tag. Your browser will run any JS inside a script element, including jQuery.
Code that you put inside the document ready function will run as soon as your browser has loaded your page:
$(document).ready(function() {
...