<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mayur Kadam</title>
    <description>The latest articles on DEV Community by Mayur Kadam (@mayurkadampro).</description>
    <link>https://dev.to/mayurkadampro</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F314506%2F357f8d2e-6cfa-48f1-a8ac-8f4b306a52fc.jpeg</url>
      <title>DEV Community: Mayur Kadam</title>
      <link>https://dev.to/mayurkadampro</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mayurkadampro"/>
    <language>en</language>
    <item>
      <title>Angular run-time Environment Config</title>
      <dc:creator>Mayur Kadam</dc:creator>
      <pubDate>Sat, 12 Sep 2020 13:40:20 +0000</pubDate>
      <link>https://dev.to/mayurkadampro/angular-run-time-environment-config-518a</link>
      <guid>https://dev.to/mayurkadampro/angular-run-time-environment-config-518a</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/Dqb_1t94s3c"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>angular</category>
    </item>
    <item>
      <title>Configuration of multiple environment</title>
      <dc:creator>Mayur Kadam</dc:creator>
      <pubDate>Sun, 26 Jul 2020 13:44:43 +0000</pubDate>
      <link>https://dev.to/mayurkadampro/configuration-of-multiple-environment-ifa</link>
      <guid>https://dev.to/mayurkadampro/configuration-of-multiple-environment-ifa</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/vT5nsF8EFIo"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Angular Custom Push Notification</title>
      <dc:creator>Mayur Kadam</dc:creator>
      <pubDate>Fri, 01 May 2020 14:32:22 +0000</pubDate>
      <link>https://dev.to/mayurkadampro/angular-custom-push-notification-38n</link>
      <guid>https://dev.to/mayurkadampro/angular-custom-push-notification-38n</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/sLYm0cxXwhI"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>angular</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Battery Indicator Python Script</title>
      <dc:creator>Mayur Kadam</dc:creator>
      <pubDate>Sat, 29 Feb 2020 14:37:08 +0000</pubDate>
      <link>https://dev.to/mayurkadampro/battery-indicator-python-script-eoh</link>
      <guid>https://dev.to/mayurkadampro/battery-indicator-python-script-eoh</guid>
      <description>&lt;p&gt;A laptop user you must take caution about your battery because the battery is also the most important component&lt;br&gt;
If you are using an old laptop then you might be a wonder to protect your battery from getting overcharged as well wanted to protect from getting drain at 0%&lt;br&gt;
Even if you have a new and very high spec laptop still you need to take caution or protect your battery to get overcharged.&lt;br&gt;
So, in this case, you might use any battery percentage indicator application on our laptop to save your battery life.&lt;br&gt;
and what if I tell you!! You can do the same things with the help of a simple python script.&lt;br&gt;
as it is a simple python script so it won't use your laptop many resources it just uses a little bit of resource of your laptop&lt;br&gt;
so even you have a very low spec laptop with you then you can simply use this script to give battery percentage alert.&lt;br&gt;
as this script is written in python so that you can run this on any OS as it is platform-independent language. so you no need to worry about compatibility.&lt;/p&gt;

&lt;p&gt;Script Introduction&lt;br&gt;
so basically in this python script, I simply monitor the battery percentage and also look for sockets is get a plug or not based on that you will get notified and notified in the sense of you will hear the voice which will warn you or about your battery percentage as well as on your screen notification will be appear in right side corner so that it will draw your attention. &lt;br&gt;
In order to use this script you simply need to copy below code and save it as whatever name you want but make it extension as .pyw&lt;br&gt;
by making extension .pyw so it can run in the background and also run this script continuously in the background simply create it a shortcut and paste it into the startup folder so whenever your computer is restarted this program will run in background and base on your battery status it will warn you.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import psutil
import time
import pyttsx3
from win10toast import ToastNotifier # also need to install win32api
import threading

toaster = ToastNotifier()
x=pyttsx3.init()
x.setProperty('rate',130)
x.setProperty('volume',8)
count = 0

def show_notification(show_text):
   toaster.show_toast(show_text,
                       icon_path='battery_indicator.ico',
                       duration=10)
   # loop the toaster over some period of time
   while toaster.notification_active():
      time.sleep(0.1)

def monitor():
   while (True):
      time.sleep(10)
      battery = psutil.sensors_battery()
      plugged = battery.power_plugged
      percent = int(battery.percent)

      if percent &amp;lt; 40:
         if plugged == False:
            processThread = threading.Thread(target=show_notification, args=("Your Battery at "+str(percent)+"% Please plug the cable",))  # &amp;lt;- note extra ','
            processThread.start()
            x.say("Your battery is getting low so charge it right now")
            x.runAndWait()
            count = 0
      elif percent == 100:
         if plugged == True:
            processThread = threading.Thread(target=show_notification, args=("Charging is getting complete",))  # &amp;lt;- note extra ','
            processThread.start()
            x.say("Charging is getting complete")
            x.runAndWait()
      elif percent == 90:
         if plugged == True:
            if count == 0:
               processThread = threading.Thread(target=show_notification, args=("Your Battery at 90% Please plug out the cable",))  # &amp;lt;- note extra ','
               processThread.start()
               x.say("Your battery at 90% ")
               x.runAndWait()
               count = count + 1

if __name__ == "__main__":
   monitor()




&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;script link:- &lt;a href="https://gist.github.com/ddc6faf2ece824930fda1ed74b78fea4.git"&gt;https://gist.github.com/ddc6faf2ece824930fda1ed74b78fea4.git&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;so far now you very well know how we are going to use this script. and if you still wanted to know how each line of python code works. then you can watch the below video for more details.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/oRzGTuXKINQ"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Clipboard Text Manipulation Python Script</title>
      <dc:creator>Mayur Kadam</dc:creator>
      <pubDate>Fri, 21 Feb 2020 14:21:37 +0000</pubDate>
      <link>https://dev.to/mayurkadampro/clipboard-text-manipulation-python-script-1c5j</link>
      <guid>https://dev.to/mayurkadampro/clipboard-text-manipulation-python-script-1c5j</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/WeQ0xsepHcM"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Angular 8 + Firebase Cloud Messaging Push Notifications</title>
      <dc:creator>Mayur Kadam</dc:creator>
      <pubDate>Sat, 25 Jan 2020 15:04:22 +0000</pubDate>
      <link>https://dev.to/mayurkadampro/angular-8-firebase-cloud-messaging-push-notifications-97a</link>
      <guid>https://dev.to/mayurkadampro/angular-8-firebase-cloud-messaging-push-notifications-97a</guid>
      <description>&lt;p&gt;Are you looking for push notification which is normally you seen in ANDROID application or IOS application which is basically giving popup on your device notification tab when the application is closed user still received the notification. The same things can happen with your web application. In the case of the web application, you will receive the notification when the browser tab is not active and this is done by with the help of a service worker.&lt;/p&gt;

&lt;p&gt;Now you might be wondering what is service worker ? or what is push notification ? as well so before i begin to explain it’s procedure it's better to understand some terminologies.&lt;/p&gt;

&lt;h1&gt;First, take look into what is Push Notifications&lt;/h1&gt;

&lt;p&gt;A push notification is a message popup similar to SMS. App publishers can send them at any time; users don’t have to be in the app or using their devices to receive them. They can do a lot of things; for example, they can show the latest sports scores, get a user to take any action, such as downloading a coupon or let a user know about an event, such as a flash sale.&lt;/p&gt;

&lt;p&gt;Push notifications look like SMS text messages and mobile alerts, but they only reach users who have installed your app. Each mobile platform and browsers have support for push notifications. It gives applications the ability to receive messages pushed to them from a server, whether or not the web app is in the foreground, or even currently loaded, on a user agent.&lt;/p&gt;

&lt;h1&gt;Second, look for prerequisites of Push Notifications&lt;/h1&gt;

&lt;p&gt;as we looking push notifications in angular 8 so you must have installed Node.js version &amp;gt; 10. NPM will be updated also because it will be used by default. Here, I am using Node version 10.16.3 and install the latest version of Angular CLI else you can upgrade your older version into the latest CLI by command.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 install -g @angular/cli@latest

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;once the project environment has been done you also require a firebase account to connect your web application into the cloud messaging.&lt;/p&gt;

&lt;p&gt;1 ) simply visit into firebase.google.com&lt;/p&gt;

&lt;p&gt;2 ) if you are new then click on sign up else you can log in into your old account&lt;/p&gt;

&lt;p&gt;3) once login click into go to console tab which is in the top right corner&lt;br&gt;
4) then click into Create a project&lt;/p&gt;

&lt;p&gt;5) once the project has been created then look for its project settings General tab and create one app for getting its credentials&lt;/p&gt;

&lt;p&gt;6 ) once your app is ready then simply copy its config for future use&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fscuo52wjmcgw8ns1iwv9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fscuo52wjmcgw8ns1iwv9.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7) also copy the server key from the Cloud Messaging tab&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fg6fpcojawwp8670r1rzw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fg6fpcojawwp8670r1rzw.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now your all prerequisites are complete 🙂&lt;/p&gt;

&lt;h1&gt;Now Create the Angular Project&lt;/h1&gt;

&lt;p&gt;Let’s create an Angular 8 project by using the following command:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 new push-notification
   cd push-notification

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;here we are using the firebase so we need to install that library so enter the following command in the same project directory.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 install firebase @angular/fire --save
   npm install firebase --save
   npm audit fix (if any vulnerabilities found else ignore)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;Now you have to create some file so follow the instruction carefully.&lt;/h2&gt;

&lt;p&gt;1) create manifest.json file save this file in the same folder where index.html file resides. We need to add a manifest.json file to our app and register it with the Angular CLI. Push Notifications use the service worker browser extension, which must be registered in this manifest.&lt;/p&gt;

&lt;p&gt;```{&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;"gcm_sender_id": "YOUR-SENDER-ID"&lt;br&gt;
}&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
then link it in the index.html file.

```&amp;lt;link

 rel="manifest" href="./manifest.json"&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;create firebase-messaging-sw.js Push messaging requires a service worker. This allows your app to detect new messages, even after the app has been closed by the user. and create this file in the same directory of manifest.json file which is in src/ directory.
Note:- Before importing the below script you need to check the latest version it's better if you import the latest version of the CDN link, so here i importing 7.6.0 version links.&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

importScripts('https://www.gstatic.com/firebasejs/7.6.0/firebase-app.js');
importScripts('https://www.gstatic.com/firebasejs/7.6.0/firebase-messaging.js');
  firebase.initializeApp({
   apiKey: “from firebase config”,
   authDomain: “from firebase config”,
   databaseURL: “from firebase config”,
   projectId: “from firebase config”,
   storageBucket: “from firebase config”,
   messagingSenderId: “from firebase config”,
   appId: “from firebase config”,
   measurementId: “from firebase config”
});
  const messaging = firebase.messaging();


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;we need to register these files in angular-cli.json&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

"assets": [
    "src/favicon.ico",
    "src/assets",
    "src/firebase-messaging-sw.js", // add this one
    "src/manifest.json" // this one also 
]


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Now you have to create the service provider in my case I'm going to create a messaging service provider in the service folder which is an app directory. so move into the app directory and enter bellow command by cmd.&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

mkdir service
cd service
ng g s messaging


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;once service has been created you have to paste below exact code into messaging.service.ts file&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

import { Injectable } from '@angular/core';
import { AngularFireMessaging } from '@angular/fire/messaging';
import { BehaviorSubject } from 'rxjs'
@Injectable()
export class MessagingService {
currentMessage = new BehaviorSubject(null);
constructor(private angularFireMessaging: AngularFireMessaging) {
this.angularFireMessaging.messaging.subscribe(
(_messaging) =&amp;gt; {
_messaging.onMessage = _messaging.onMessage.bind(_messaging);
_messaging.onTokenRefresh = _messaging.onTokenRefresh.bind(_messaging);
}
)
}
requestPermission() {
this.angularFireMessaging.requestToken.subscribe(
(token) =&amp;gt; {
console.log(token);
},
(err) =&amp;gt; {
console.error('Unable to get permission to notify.', err);
}
);
}
receiveMessage() {
this.angularFireMessaging.messages.subscribe(
(payload) =&amp;gt; {
console.log("new message received. ", payload);
this.currentMessage.next(payload);
})
}
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;let’s understand its functions&lt;/p&gt;

&lt;p&gt;requestPermission(): Browser/ device will ask to user for permission to receive notification. After permission is granted by the user, firebase will return a token that can use as a reference to send a notification to the browser.&lt;/p&gt;

&lt;p&gt;receiveMessage(): This function will be triggered when a new message has received.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Update the Environment files&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

export const environment = {
production: false,
firebase: {
  apiKey: “from firebase config”,
  authDomain: “from firebase config”,
  databaseURL: “from firebase config”,
  projectId: “from firebase config”,
  storageBucket: “from firebase config”,
  messagingSenderId: “from firebase config”,
  appId: “from firebase config”,
  measurementId: “from firebase config”
}
};


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Update the Components files&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;first, we will update the App Module File&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

import { BrowserModule } from ‘@angular/platform-browser’;
import { NgModule } from ‘@angular/core’;
import { AppRoutingModule } from ‘./app-routing.module’;
import { AppComponent } from ‘./app.component’;
import { AngularFireMessagingModule } from ‘@angular/fire/messaging’;
import { AngularFireDatabaseModule } from ‘@angular/fire/database’;
import { AngularFireAuthModule } from ‘@angular/fire/auth’;
import { AngularFireModule } from ‘@angular/fire’;
import { MessagingService } from ‘./service/messaging.service’;
import { environment } from ‘../environments/environment’;
import { AsyncPipe } from ‘../../node_modules/@angular/common’;
@NgModule({
   declarations: [AppComponent],
   imports: [
      AppRoutingModule,
      BrowserModule,
      AngularFireDatabaseModule,
      AngularFireAuthModule,
      AngularFireMessagingModule,
      AngularFireModule.initializeApp(environment.firebase),
   ],
   providers: [MessagingService,AsyncPipe],
   bootstrap: [AppComponent]
})
export class AppModule { }


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;then in the HTML part, we can use pipe async and JSON&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

{{ message | async | json }}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;And now update the App Components file&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

import { Component } from ‘@angular/core’;
import { MessagingService } from ‘./service/messaging.service’;
@Component({
  selector: ‘app-root’,
  templateUrl: ‘./app.component.html’,
  styleUrls: [‘./app.component.css’]
})
export class AppComponent {
  title = ‘push-notification’;
  message;
  constructor(private messagingService: MessagingService) { }
ngOnInit() {
  this.messagingService.requestPermission()
  this.messagingService.receiveMessage()
  this.message = this.messagingService.currentMessage
 }
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Finally, we did the Setup process... 😉&lt;/p&gt;

&lt;p&gt;Now run the project&lt;br&gt;
run application using ng serve -o after compilation is complete, open can your browser and browser will ask for permission.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fsjnlc2g6lamh1g7cor28.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fsjnlc2g6lamh1g7cor28.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;once you click on the allow button than it will print the token id on browser console sometime it will take time to load the token id but surely you will get that id in console dialog.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F8ichgziuosof5ubr0iwr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F8ichgziuosof5ubr0iwr.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;now we are ready to go…&lt;/p&gt;

&lt;h1&gt;Now look for sending a push notification&lt;/h1&gt;

&lt;p&gt;You can also hit Firebase Cloud Messaging directly using cURL.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

curl -X POST \
  https://fcm.googleapis.com/fcm/send \
  -H 'Authorization: key=YOUR-SERVER-KEY' \
  -H 'Content-Type: application/json' \
  -d '{ 
 "notification": {
  "title": "Hey there", 
  "body": "Subscribe to mighty ghost hack youtube channel"
 },
 "to" : "YOUR-GENERATED-TOKEN"
}'


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Also, you can use the postman for sending the request i will demonstrate you by the postman&lt;/p&gt;

&lt;p&gt;copy below JSON request and enter into the body part and also provide authorization key in the header section of postman before sending any request over googleapis and authorization key is nothing but the legacy serve key which we saw in prerequisite sections.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

{
 "notification": {
 "title": "Hey there", 
 "body": "Subscribe to might ghost hack youtube channel"
 },
 "to" : "YOUR-GENERATED-TOKEN"
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fytzu864vty5r69dxnusz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fytzu864vty5r69dxnusz.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;once all done we can send the request to the server &lt;a href="https://fcm.googleapis.com/fcm/send" rel="noopener noreferrer"&gt;https://fcm.googleapis.com/fcm/send&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;once i click on the send button on postman i will receive the popup and one thing important you have to note down when your project is in active tab means open in browser or you are in the same tab then message will appear on HTML but it will not give you any popup until and unless you minimize it or move into another tab. when you move into another tab or minimize the browser than service worker doing his work to show you the popup message&lt;/p&gt;

&lt;p&gt;now let me show the popup when the project tab is not in an active mode&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fxzqhvgukstfyglr8lteb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fxzqhvgukstfyglr8lteb.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;now look in active mode&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F1n43fuwd9j7xpti7h664.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F1n43fuwd9j7xpti7h664.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;Video Tutorial&lt;/h1&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/ODE9l1c3ujY"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;That’s it 😃&lt;/p&gt;

&lt;p&gt;hope you get it how easily we can configure the angular project to receive the push notification.&lt;/p&gt;

&lt;p&gt;If you want to look into the project than here is the GitHub link:- mayurkadampro/Angular-Push-Notification&lt;/p&gt;

</description>
      <category>angular</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Learn How To Deploy Angular app on Github</title>
      <dc:creator>Mayur Kadam</dc:creator>
      <pubDate>Thu, 16 Jan 2020 16:53:10 +0000</pubDate>
      <link>https://dev.to/mayurkadampro/learn-how-to-deploy-angular-app-on-github-44dh</link>
      <guid>https://dev.to/mayurkadampro/learn-how-to-deploy-angular-app-on-github-44dh</guid>
      <description>&lt;p&gt;As you are reading this post then you might become exciting to know about how very easily you can deploy ur angular application over Github. so before you move forward I’m assuming that you might have Github account already and must have the basic knowledge of angular application at least you done the angular setup on your machine.&lt;/p&gt;

&lt;p&gt;So we will go step by step by assuming you right now don’t have any kind of project ready yet so we will start from the beginning of project creation.&lt;/p&gt;

&lt;h1&gt;1) Create an Angular App&lt;/h1&gt;

&lt;p&gt;To create a new workspace and initial starter app:&lt;br&gt;
Open cmd and Run the CLI command ng new and provide the name my-app, as shown here&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ng new my-app&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;and it will open your browser directly with default template as shown below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fbheb72j1vaotk99g58q5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fbheb72j1vaotk99g58q5.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So we successfully did the application creation part 😃&lt;/p&gt;

&lt;h1&gt;2) Create a Github Repository&lt;/h1&gt;

&lt;p&gt;Create a new repository on GitHub.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fb81oe7cod4n201n53e3l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fb81oe7cod4n201n53e3l.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you click on create repository button you will see the command to push your local project into GitHub and To avoid errors, do not initialize the new repository with README, license, or gitignore files.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F3fi7wz3tc8gyjrt37syy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F3fi7wz3tc8gyjrt37syy.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;so we finally push our newly created project on Github 😃&lt;/p&gt;

&lt;h1&gt;3) Install GitHub page package&lt;/h1&gt;

&lt;p&gt;Add angular-cli-ghpages to your project by entering the following command on cmd.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm i -g angular-cli-ghpages --save&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;once all installation is getting complete next you have to build the app by the following command.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ng build --prod --base-href "https://username.github.io/repository_name/"&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;In my case, it could be&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ng build --prod --base-href "https://mayurkadampro.github.io/Angular_deploy_demo/"&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;lastly, enter the below commands which creates a new branch called gh-pages and pushes the compiled code to the branch.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ngh --dir=dist/[project-name]&lt;br&gt;
OR&lt;br&gt;
angular-cli-ghpages&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;so we also upload the build over a Github.&lt;br&gt;
Once we did that thing also then you ready to see your beautiful website over Github now you navigate to the URL to see the project running, it might take a few minutes for the app to become live. 😇&lt;/p&gt;

&lt;h1&gt;Still, Confuse ?? Then Check out below video&lt;/h1&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/8Mle8owZ3_4"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Here is deployed angular project which is hosted to GitHub -&lt;a href="https://mayurkadampro.github.io/Angular_deploy_demo/" rel="noopener noreferrer"&gt;https://mayurkadampro.github.io/Angular_deploy_demo/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;also, you can check your gh-pages -&lt;a href="https://github.com/mayurkadampro/Angular_deploy_demo/tree/gh-pages" rel="noopener noreferrer"&gt;https://github.com/mayurkadampro/Angular_deploy_demo/tree/gh-pages&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That’s it 🙂&lt;br&gt;
hope you get it how very easily you will deploy your project over Github. if you have any queries then you can comment out also I will happy to respond to your query.&lt;/p&gt;

</description>
      <category>angular</category>
      <category>javascript</category>
      <category>github</category>
    </item>
    <item>
      <title>python simple snippest for remove tags, links and symbol from data without using regex📃</title>
      <dc:creator>Mayur Kadam</dc:creator>
      <pubDate>Wed, 15 Jan 2020 18:21:09 +0000</pubDate>
      <link>https://dev.to/mayurkadampro/python-simple-snippest-for-remove-tags-links-and-symbol-from-data-without-using-regex-36n8</link>
      <guid>https://dev.to/mayurkadampro/python-simple-snippest-for-remove-tags-links-and-symbol-from-data-without-using-regex-36n8</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Flp1mc7zbjllptdlytx8t.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Flp1mc7zbjllptdlytx8t.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>PARENTHESES CheckerJava Program</title>
      <dc:creator>Mayur Kadam</dc:creator>
      <pubDate>Tue, 14 Jan 2020 03:02:47 +0000</pubDate>
      <link>https://dev.to/mayurkadampro/parentheses-checkerjava-program-4h7i</link>
      <guid>https://dev.to/mayurkadampro/parentheses-checkerjava-program-4h7i</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hcZN6W9s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/f4sdi5t5apy1wjasy5rk.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hcZN6W9s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/f4sdi5t5apy1wjasy5rk.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>java</category>
    </item>
    <item>
      <title>What is Cross-Site Scripting</title>
      <dc:creator>Mayur Kadam</dc:creator>
      <pubDate>Sat, 11 Jan 2020 10:33:45 +0000</pubDate>
      <link>https://dev.to/mayurkadampro/what-is-cross-site-scripting-9bi</link>
      <guid>https://dev.to/mayurkadampro/what-is-cross-site-scripting-9bi</guid>
      <description>&lt;p&gt;&lt;a href="https://link.medium.com/9YBgMWuL82"&gt;https://link.medium.com/9YBgMWuL82&lt;/a&gt;&lt;/p&gt;

</description>
      <category>xss</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Cross-site scripting Attack Tutorial</title>
      <dc:creator>Mayur Kadam</dc:creator>
      <pubDate>Sat, 11 Jan 2020 10:09:02 +0000</pubDate>
      <link>https://dev.to/mayurkadampro/cross-site-scripting-attack-tutorial-di1</link>
      <guid>https://dev.to/mayurkadampro/cross-site-scripting-attack-tutorial-di1</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/l4pVpsV7aQw"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>xss</category>
      <category>scripting</category>
      <category>vulnerability</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
