
Install Let’s Encrypt to Create SSL Certificates
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 ...
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...
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...
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:...
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...
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...
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 ...
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 ...
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...
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...
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 ...
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, ...