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 …

Unable to send mails through Google SMTP

Most of the developers use Google’s SMTP for outgoing emails on their development environments. And that works for most but setting the SMTP servere to smtp.gmail.com and 465 as SMTP port but their gmail account password will not work if they have enabled Google 2-step verification. For it to work you …

Using Stripe Webhooks with localhost URLs

Stripe, as we know is one of the most convenient Payment gateways not only for the Businesses/Customers but also for the developers since it provides a powerful API to integrate in almost any system regardless of platform or language dependency. As in any other payment gateway it also provides us …

Redactor not saving complete deletions

Most of the apps today use WYSIWYG editors to manage editable content/text and we have some highly customizable options available such as TinyMCE(http://tinymce.com) or CKEditor(http://ckeditor.com). Another great option is Redactor(http://imperavi.com/redactor/) if you want minimalistic UI with extremely simple API. It is simple to implement and comes readily compatible with jQuery. …

Laravel 4.x cheatsheet

Laravel documentation is good and is improving day by day but here is a brief and basic list of important points and methods that we need to work with. Installation: 1 – Download source from github 2 – Put it into the webroot 3 – Install composer 4 – CD to that …