Debug ionic apps installed on device using google chrome

Run following command on terminal – ionic cordova run  –device –debug Next it will ask platform, example android Then Open chrome and Web Inspector in chrome, and follow below menu path. From right side menu “Customize and contorl DevTools” -> More tools ->  Remote Devices It will show list of devices, click on your device, … Read more

AWS SSL for EC2 instance

As AWS SSL certificates are free to use, just you need to use with them LB i.e. load balancers which have some cost. Let’s go through steps to integrate – Step 1 – Setup EC2 and make sure you are running any web server on it to test in the browser, so we can test … Read more

Environment Variables in Angular

Need to use different values depending on the environment you’re in? If you’re building an app that talks to the Stripe API for example, you’ll want to use your test publishable key during development and then your live publishable key in production. It’s easy to do in Angular using the environment.ts file. Angular CLI projects already use … Read more

NFC technology, contactless payments future

Hope you are watching the advertisement on TV or youtube, in which people paying bills just by hovering their credit card on POS machine. Banks like ICICI in India launched this type of cards where NFC( Near field communication ) technology is used. Lets understand NFC, two devices here one is credit card and other is POS terminal/ Card … Read more

Add new SSH users to AWS EC2

Check existing users : cut -d: -f1 /etc/passwd sudo adduser user_name add newly created to root group sudo usermod -a -G sudo user_name change current user to new user cd to home dir of newly created user run mkdir .ssh secure it by chmod 700 .ssh to create authorized_keys file run touch .ssh/authorized_keys Copy your public key in clipboard cat … Read more

Python virtualenv?

We always use different version of libraries in our projects as per requirement, it means we need project environments supporting local installation of packages and avoid usage of globally installed packages. virtualenv i.e. Virtual Environment, is solutions to above problem as it maintain a separate copy of Python and libs utilized in your python project. … Read more

Gravity Form Date Field Filter

When you use “Gravity form date field” and want a user to select future dates or today’s date only, simply add one Html field and copy paste below code snippet to HTML field. This will be applied to all date fields in gravity form. <script > gform.addFilter( ‘gform_datepicker_options_pre_init’, function( optionsObj, formId, fieldId ) { // do stuff optionsObj.minDate = new … Read more

What is the difference between npm and bower?

npm is most commonly used for managing Node.js modules, but it works for the front-end too. Bower is created solely for the front-end and is optimized with that in mind. The biggest difference is that npm does nested dependency tree (size heavy) while Bower requires a flat dependency tree (puts the burden of dependency resolution on … Read more