Blogs
Working with Facebook using Devise, Omniauth, Koala and Rails 5
First of all, we need to setup our Facebook app. There’s not much to add on this, simply create a new Facebook app if needed. When your app is created, make sure to add the proper app domain. In this case, the app domain will be localhost to allow...
Adding Read Replicas in a Production Ruby on Rails System with Zero Downtime Using Makara
When query, schema and index optimizations aren’t enough to support the load of a high throughput database system, fundamental changes in how data flows through that system are often necessary.Over the past few years, our team at Contactually has ...
Implementing Linear Regression using Ruby - Practical Artificial Intelligence
In this posts I will show how to implement linear regression in Ruby. Using existing Ruby gems we will setup a linear regression model, train the algorithm and make predictions in minutes. For this example we will use historic house prices in Stat...
Devise Facebook Omniauth login with connect and disconnect functionality
When talking about users authentication in Rails land there is one name that generally stands above all the other available gems. This name is Devise.I would not be so wrong to call it the de facto standard of Rails authentication considering the ...
The Art of Defensive Programming | JavaScript Bosnia
The European Space Agency’s Ariane 5 Flight 501 was destroyed 40 seconds after takeoff (June 4, 1996). The US$1 billion prototype rocket self-destructed due to a bug in the on-board guidance software. A bug in the code controlling the Therac-25 ra...