Sign in

Tech Enthusiast | Undergraduate | Blogger
Photo by Florian van Duyn on Unsplash

When building a web application, one of the most challenging things is inserting images using input boxes and cropping them according to a given aspect ratio. So by reading this article, you can solve these troubles mentioned above when developing a web project. Let’s get started.🎊

STEP 1: Create a React JS application

You’ll need to have…


“A lot of problems we face in life, be it business, finance, including logistics, container ship loading, aircraft loading -these are all knapsack problems,” — Carsten Murawski

Photo by Jeremy Bishop on Unsplash

What is Dynamic Programming?

In this article, I am going to discuss solving knapsack problems using dynamic programming. …


Browsers can store key-value pairs in a better way than using cookies.

Photo by Andrew Neel on Unsplash

In this article, I am going to discuss HTML web storage that is used in Web browsers. Let’s dive into the explanation.

What are cookies?

Cookies🍪

Browser cookies are identified and read by “key-value” pairs. These tell cookies where to be sent…


Understanding the greedy algorithm

Photo by Red Zeppelin on Unsplash

Let’s think of an array of stick-lengths, find which three sticks form a non-degenerate triangle such that:

  • the triangle has a maximum perimeter
  • if there are two or more combinations with the same value of maximum perimeter, output the one with the longest side.
  • Output -1 if not possible

Are…


Basics of Model-View-Controller Architecture

Photo by Paul Skorupskas on Unsplash

What is MVC architecture?

The Model-View-Controller (MVC) is an architectural pattern that separates an application into three main logical components: the model, the view, and the controller. Each of these components is built to handle specific development aspects of an application. …


Photo by Derzulya Zaza on Unsplash

A stack is an abstract data type that consists of a predefined capacity. It allows adding and removing elements in a particular order. When every time an element is added, it goes to the top of the stack. Stack enables all data to operations at one end only. …


Photo by Kai Wenzel on Unsplash

Google Sign-In, simplifying your integration with Google APIs. A user has the option of revoking access at any time to an application. OAuth was developed as an authentication protocol, so the result of any OAuth flow is that the app obtains an access token. Something about the user’s account can…


Flutter is a new Open Source framework created by Google that focuses on the creation of cross-platform applications. Flutter primarily targets iOS and Android but is increasingly adding support for desktop platforms too.

Photo by Denis Cherkashin on Unsplash

In this article, I am going to discuss the most useful Widgets that we need when we…


One of the main reasons to use threads in Java is to make a task run parallel to another task.

Photo by Alex Palmer on Unsplash

Why we use Threads in Java?

We use Threads to make Java applications faster by doing multiple things at the same time. In technical terms, Thread helps us to achieve parallelism in Java programs. Since the…


The Map interface is not a subtype of the Collection Interface. Therefore it behaves a bit differently from the rest of the collection types.

Photo by Dariusz Sankowski on Unsplash

In my previous article, we discussed Java lists, queues, and sets in the Java Collection Interface. If you are not familiar with lists, queues, and sets…

Pulsara Sandeepa

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