Website Push Notification with Google Firebase

Mainly three things are needed A file named firebase-messaging-sw.js placed in the root of the website. This file contains the codes for receiving the push when the browser is minimized or that particular website is closed. The scripts for receiving the push The server side code to send the PUSH   firebase-messaging-sw.js Code for Receiving… Continue reading Website Push Notification with Google Firebase

Playing RTMP in Browser without FLASH

RTMP is used for streaming live video. With a bit of manipulation of the frontend codes it can also be used to play audio only (the below code does that) Now the thing is playing RTMP link in browser requires Flash which is not supported by Apple and Linux based OS. The solution is to… Continue reading Playing RTMP in Browser without FLASH

JS library for Image Manipulation

The below links has various image processing functionality implemented using Javascript. They can be useful to implement various image processing functionality in website frontend. www.marvinj.org/en/index.html gitHub.com/inspirit/jsfeatSome features of this library are Basic image processing methods (grayscale, derivatives, box-blur, resample, etc.) Grayscale Box blur Gaussian blur Equalize histogram Fast Corners feature detector YAPE06 feature detector YAPE… Continue reading JS library for Image Manipulation

Add SSH key for additional users in Amazon AWS

Created key using puttygen (other tools can be used also) Key Type = RSA Bits = 2048 Uploaded the public key to the server Added AllowUsers dev1 (add further users using space) to /etc/ssh/sshd_config Restart sshd