hello everyone, in this article, we will discuss how to connect two different Mongo DB databases into one single spring boot project, for that one i have created simple spring boot project.

otherwise, below is the pom.xml file for that one.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.4</version>
<relativePath/> <!-- lookup parent from…


suppose you have downloaded different JDKs in your local machine, and you have to switch among them, time to time because different applications use different JDK versions, there can be applications that are running on JDK 1.8 some of them are runs on 1.7, some newly created applications run on JDK 15.

So let’s see how we can switch among these JDK versions using aliases.

suppose you have downloaded and installed JDK 1.8 and 11(these versions can be varied in my case I have installed JDK 1.8 and JDK 11) and I have added JDK 1.8 …


Hi, welcome to another interesting article on Coroutines in Kotlin. In this tutorial , we are going to see various approaches to create and execute suspending functions.

so we will explore the sequential, concurrent, and lazy execution of the code within a coroutine. So before you get in to this, there are a few things that you should already know.

  1. You should know the basics of the coroutine. like what is a coroutine and how to create a coroutine.
  2. You should know about how to implement suspend functions in Kotlin.
  3. You should be familiar with coroutine builders such as launch…


Optical character recognition or optical character reader (OCR) is the electronic or mechanical conversion of images of typed, handwritten or printed text into machine-encoded text, whether from a scanned document, a photo of a document, a scene-photo (for example the text on signs and billboards in a landscape photo) or from subtitle text superimposed on an image (for example: from a television broadcast) — Wikipedia

nowadays in most applications, we can see this OCR functionality, in this article we are going to see how to add optical character recognition functionality to your node js application.

for this purpose, we gonna…


hello developers! Welcome back, in this new article I'm going to show you how to create your own npm package and how to publish it. let’s start!

first of all, you should make a directory wherever you want. I will name it as “npmarticle”. and open the command prompt from the directory then type

npm init -y


Hello, guys welcome back, in this article I'm going to show you how can we call a function which resides in another angular component. there are a lot of ways to do this but in this article, let's see how to do this using RxJS subject.

here is the video tutorial for this article

https://www.youtube.com/watch?v=kUc-rwbJtqY&ab_channel=hasangalakdinu

first of all, you have to create a new angular project. it can be called by any name that you want. in my case, it is ‘article’.

ng new article

and after that, you have to generate two components, I'm calling these two as sibling1…


GraphQL is a query language QL would stand for it’s a query language for your API that’s entirely unlike anything that you’ve ever used before in terms of a standard API.

So in other API s that you’d hit a URL to get data let’s say you want to fetch data from the Rest API that you’ve designed for a retail shop. and you can say hey give me this information. …


hey guys, recently I attended a session in our company it is about node js. and I heard about the amazing JavaScript library the library named ‘lodash’. which is a popular utility library.

this library existed for a long time but I did not know about this library before. after that, I researched this. then I’m also using this library when I need some utility functions. this is a modular library and in this is the home page.

you will see that the how to install this library in your system, and how to run in a browser and nodeJS…


Hello guys, last week our project leader came up with a new requirement that is user registration for a certification portal but after registering them we want to use their user data for emailing and another purpose so I tried to search a way how to add this new user data to dynamodb table. and i found out how to do that using serverless framework.

so in this article, we are going to talk about adding confirmed Cognito user data to dynamodb table using serverless framework.

okay, let’s try out,

first of all, you should create a new dynamodb table…


It is sure you have used JWT many times in your projects but have you ever think about what is this JWT?

in this article we are going to see, what is JWT? what it is for, how it can be created. what the structure of JWT?

what the heck is jwt?

google give me this answer, (JWT) is a means of representing claims to be transferred between two parties. The claims in a JWT are encoded as a JSON object that is digitally signed using JSON Web Signature (JWS) and/or encrypted using JSON Web Encryption (JWE).

absolutely right but…

hasanga lakdinu

Software Engineer at hSenid Mobile

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store