1. Assignment Rules in JavaScript

    TL;DR Let's say we have three objects chained together: var objectOne = { a: 10 }; var objectTwo = Object.create(objectOne); var objectThree = Object.create(objectTwo); console.log(objectOne.a); // 10 console.log(objectTwo.a); // 10 console.log(objectThree.a); // 10 console.log(objectOne.hasOwnProperty("a")); // true console.log(objectTwo.hasOwnProperty("a"…


  2. Linode, DigitalOcean and VULTR Comparison

    I became a Linode user a long time ago. It was almost monopoly in that “Linode like” piece of VPS market. Then in 2011 DigitalOcean came along. As a very aggressive competitor, they offered the same amount of RAM and much more transfer for a quarter of the Linode price…


  3. Convert a CMS-based website to Rails

    At a recent consulting, I was asked whether certain features can be implemented on a Joomla site. While some of these features were critical to them, most were subtle. After initial inspection, I concluded that though may be done on the Joomla platform, it would not worth the effort: While…


  4. Deploy Rails App With Docker

    Why? Because it is cool. And when, for any reason, the app needs to be moved to another server; I can just copy the whole docker repository instead of re-deploy the app and migrate the database and copy over the assets and ... you got the idea. It took me a…


  5. Calling rake tasks in Rails

    I have a controller called Agent. And for whatever reason, I want to call a rake task upon each creation of an agent. So in the Agent#create I have: class AgentsController < ApplicationController .... def create if @agent.save # Call rake task "peckr:init" and send in @agent.url # and…