Admin
Mar 29, 2017
5 comments
169
Download and Install Let’s Encrypt sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt cd /opt/letsencrypt Create an SSL Certificate cd /opt/letsencrypt sudo -H ./letsencrypt-auto certonly --standalone -d example.com ...
Snippet
Install Let’s Encrypt to Create SSL Certificates
Admin
Mar 25, 2017
1 comments
447
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
19 comments
576
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
2 comments
136
  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
4 comments
439
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
6 comments
482
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
16 comments
953
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
855
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