Using Dropzone.js with Angular 2

Dropzone.js is a file upload plugin that provides us with the ability to Drag and Drop as well as preview uploaded files. I have been using this plugin with core js for some time now and after recently i had to use it with Angular 2 as well. Here is how …

Angular 2 shared events

There are certain cases while developing a web app when we have to emit certain events when something occurs or something changes in one component. We want other application component(s) to be notified of the change. In Angular 2 we have two ways to notify components of those changes. Output …

Sails Model.destroy() fails

A few days ago i ran into an issue where i was getting the following error running destroy() on a MySql database table.

Investigating further, i came to know that the table in question by chance did not have a primary key. Looking into the destroy function in the sails-mysql adapter, I figured out the reason …

Integrating Angular (4) with Sails.js

Update #6 April 13, 2017: I have updated this post as well as the sample code repo to use Angular 4.0.2. Update #5 November 23, 2016: I have updated this post as well as the sample code repo to use Angular 2.2.1. Update #4 September 23, 2016: I have updated this post as well as the sample code repo to use Angular 2.0.0. Update #3 September 4, 2016: I have …

Building and Deploying a PHP application using TeamCity

Recently, I had a scenario where i had to deploy my PHP application on multiple web staging servers and my first though was going with the usual approach, i.e. checking out the files on both servers and manually pulling on each whenever needed. At first it worked out fine but …

Forcing HTTPS on AWS EC2 load-balancer cluster

Recently i had to force rewrite HTTP to HTTPS on servers running under an AWS EC2 load-balancer. My first instinct was to add rewrite rule like the one below.

But that did not work and after a bit of debugging i was able to figure out that it was …

Interact.js : Resize using a button

A few days ago i had to implement a resize functionality for one of my clients and i needed a library that was not dependent on jQuery since i had to implement it as a widget and i wanted to avoid any conflicts on host site  at all. So during …

Wistia file upload using Upload API

Wistia a professional video hosting with great analytics and video marketing tools. It has tons of features along with prompt customer support. What it lacks though is a great developer community. And surprisingly, Wistia does not officially support PHP developers for API integrations. It does not even have a PHP team for it? …

“Page Not Found”,YOU, AGAIN :@

So you have moved to a new machine and have setup everything correctly, all your LAMP settings are correct and your virtual host or localhost is setup as it should be. But you still get 404 errors on your projects. Your first hunch would be to see if your URL …