Admin
Mar 25, 2017
25 comments
851
When you change any of your javascripts or stylesheets in the production environment, you need to run rake assets:precompile; this task compiles and compresses the various .js and .css files and creates the application.js and application.css files...
Snippet
Clear the cache from the Rails asset pipeline
Introduction Often when developing apps with Rails you need to set up environment variables to keep sensitive information secure in your code. This article looks at how to set up environment config variables in Rails. We’ll look at why we need to...
Snippet
Managing Environment Configuration Variables in Rails
Admin
Mar 24, 2017
15 comments
342
Follow these steps to create an Angular JS 2 project using Angular CLI.   Install Angular CLI on your machine  npm install -g angular-cli If that doesn't work, install npm install -g @angular/cli   Create a new project using ng command:...
Snippet
Creating Angular2 Project using Angular CLI
Admin
Feb 27, 2017
3 comments
1.12K
  A workaround for ng-change in angular js which does not catch file input change event.   view.html: <input type="file" custom-on-change="uploadFile"> controller.js: app.controller('myCtrl', function($scope){ $scope.uploadFile = func...
Snippet
File change event using custom angular directive
Admin
Feb 22, 2017
6 comments
632
Index.html   <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, use...
Snippet
Flexbox basic usage
Admin
Jan 25, 2017
12 comments
1.03K
JavaScript is the official language of all modern web browsers. As such, JavaScript questions come up in all sorts of developer interviews. This article isn’t about the newest JavaScript libraries, common development practices, or any of the new ...
Snippet
3 JavaScript questions for coding interviews
Admin
Dec 01, 2016
8 comments
655
Here’s the list of the top 10 best ES6 features for a busy software engineer (in no particular order): Default Parameters in ES6 Template Literals in ES6 Multi-line Strings in ES6 Destructuring Assignment in ES6 Enhanced Object Literals in ...
Snippet
MUST READ: Top 10 ES6 Features
If you want to revert changes made to your working copy, do this:   git checkout . If you want to revert changes made to the index (i.e., that you have added), do this. Warning this will reset all of your unpushed commits to master!: git reset...
Snippet
Revert all local changes in Git managed project to p...
In today’s connected world, managing customers and creating new, positive experiences is a challenge for organisations of all shapes and sizes. Successful companies understand that an initial sale is only the beginning of the customer relationship...
Article
Expectations Are Rising. Can Your Customer Experienc...
We are surrounded by more "hidden" applications of big data, analytics, sensors, and business intelligence than we probably know—and in places where we might not imagine it. Here are 10 ways this behind-the-scenes tech is redefining how the world ...
Article
10 ways big data, analytics, and sensors are helping...
Admin
Sep 02, 2016
20 comments
492
The solution doesn’t require writing a specific directive or adding any additional attributes or decoration to my page content -  a short timeout (like, 1ms short) inside of which Prism.highlightElement(elem) is called. // Content is my service, ...
Snippet
Using PrismJs syntax highlighting with AngularJs
Admin
May 26, 2016
15 comments
423
Introduction PostgreSQL 9.4 was released on 12/18/2014. More information about the release is available on the official PostgreSQL documentation.This article is written to provide an easy migration solution from PostgreSQL 9.3 to 9.4 for Debian s...
Snippet
Migrating from PostgreSQL 9.3 to 9.4