Stay away from Riot.js for production grade work

If you are looking for template engines for web-development, then Riot.js looks very promising. It is indeed very easy to learn and a lightweight library that offers web-components in a nice to use way. The only problem is, it is good enough for toy applications, but once you get into any serious development with it, […]

Adding and Removing classes for a DOM node without JQuery

Now one may ask why do one need to add/remove classes from DOM nodes, and why not do it the easy way with JQuery. The answer to the first part of (why add/remove the classes from DOM nodes), the primary reason is to modify the behavior of the DOM node on the fly. For example, […]

How to use Handlebars.precompile API in Javascript

There are many resources on the internet that explain how to compile Handlebars templates on the fly in Javascript, but not much explanation can be found on how to use Handlebars precompile through API (and not through CLI command-line interface). Below is the right way of doing it. Assuming you have your Handlebars template as […]

Meteor: No plugin found named “ensureSignedIn”

Problem: If you are using iron:router, after updating Meteor to version you may start to encounter below errors in case you are using protective pages with ‘ensureSignedIn’ W20150812-18:40:06.912(5.5)? (STDERR) You now need a routing package like useraccounts:iron-routing or useraccounts:flow-routing to be able to configure routes! W20150812-18:40:06.943(5.5)? (STDERR) W20150812-18:40:06.943(5.5)? (STDERR) \.meteor\packages\meteor-tool\1.1.4\\dev_bundle\server-lib\node_modules\fibers\future.js:245 W20150812-18:40:06.943(5.5)? (STDERR) throw(ex); W20150812-18:40:06.943(5.5)? […]

How to customize Edx Theme in Bitnami Distribution

Once you setup the bitnami Edx distribution, you can ssh into your machine and go to themes folder: cd ~/apps/edx/themes/ Clone your theme git repository: sudo git clone stanford Make sure the directory name is same as the name of the theme. Also rename the .scss file to have the same name as the […]