

Merge two arrays in Java using Stream API
We can use the Stream.of() method to sequentially order the stream whose elements are the values. The flatMap() function returns […]

How to create a new user and grant permissions in MySQL?
MySQL is a popular open-source relational database management system used for web applications. Creating a new user and granting permissions […]

How to use Rsync to sync local and remote directories?
Rsync is a powerful tool for syncing files and directories between local and remote systems. It is a popular choice […]

How To Transform JSON Data with jq?
One of the most popular tools for working with JSON is jq, a command-line tool that is designed to manipulate […]

How to build React applications faster with Bun?
React is a popular JavaScript library for building user interfaces. Bun is a build tool that is designed to work […]

How to setup a React project with Vite?
React is a popular JavaScript library used for building dynamic user interfaces. Vite, on the other hand, is a fast […]

Top ReactJS Security Vulnerabilities and How to Fix Them
In recent years, ReactJS has become a popular choice for web application development. However, as with any technology, there are […]

How to Format Dates in Python?
When working with dates in Python, it’s important to know how to format them properly. In this article, we will […]

Reading a file line by line with Python
Python is a popular scripting language that is widely used for data analysis, automation, and web development. By reading a […]

Executing shell commands with Python
When working with Python, there may be times when you need to execute shell commands directly from your Python code. […]

Copying directories using SCP
SCP, or Secure Copy, is a command-line utility used to copy files and directories between two remote hosts over a […]

Writing to files with Python
Python provides several ways to write data to a file, including using the built-in open() function and the with statement. […]

Validating SSN using regular expressions in Java
Validating a Social Security Number (SSN) using regular expressions in Java is a common task when working with user input. […]

How to remove Docker images, containers and volumes?
Docker is a popular platform that allows developers to create, deploy, and run applications in containers. However, when working with […]

How to set focus on element after rendering with React?
When building web applications with React, you may want to set focus on a particular element after it has been […]

Collect Stream into Unmodifiable List, Set or Map with Java 8
Java 8 introduced a new Stream API that makes it easy to process collections of data. One of the most […]

How to Change Port for Spring Boot Applications
Spring Boot is a popular framework used to develop Java-based web applications. By default, Spring Boot applications run on port […]

Reading and Writing XML Files in Python with Pandas
XML files are a common data format used for exchanging data between different systems. Python provides several libraries for parsing […]

Resizing images in React
Resizing images is a common task in web development, especially when it comes to optimizing website performance. In React, there […]

Concatenating strings in Bash
Concatenating strings in Bash is a common task that you may come across when working on shell scripts. This article […]

How to Work with PostgreSQL in Python?
PostgreSQL is a popular open-source relational database management system. It offers many advanced features and is widely used in production […]

Aligning images in React Native
Aligning images in React Native is a crucial aspect of building any mobile app. In this tutorial, we’ll go over […]

Simple event emitter and listener in Node.js using callbacks
Callbacks can be used to write clean implementations of anything Promises in Node.js. This is a sample code for an […]

Read files in Node.js using callbacks
Callbacks can be used to write clean implementations of anything Promises in Node.js. This is a sample code to read […]

Pull down loading in Vue 3 using Composition API
Use the Composition API in Vue 3 to implement the pull-down loading function more conveniently. In the setup function, functions such […]

Anti-shake throttling in JavaScript
Anti-shake and throttling are both ways to solve performance problems caused by high-frequency trigger events. Anti-shake means that after the […]

Enable GCP Audit logging using Terraform
Data Access Audit logs are disabled by default as its cost depends on the usage. To enable them using Terraform […]

One line PowerShell scripts to start MS Office apps to start with blank documents
To start a blank PowerPoint presentation: To start a blank Word document: To start a blank Excel document: To start […]

Check whether a file exists or not in a Google Cloud Storage bucket using gsutil
The gsutil stat command provides a strongly consistent way to check for the existence (and read the metadata) of an […]

Aggregated free testnet faucets for all blockchain networks
A Curated list of Testnet faucets for Ropsten, Goerli, Kovan, Polygon/Mumbai, FantomTest, Sokol, Aurora etc. Networks Etherspot Etherspot testnet PoA […]

Android — Basic Hilt setup with viewmodel + fragment
Hilt is a modern android DI framework for dependency injection. It is merely a wrapper around Dagger2. Forget dagger-android, hilt brings […]

How to install a specific nodejs version according to the workspace with pnpm?
You install a particular version of nodejs according to a workspace with pnpm. For installation, you need a .npmrc file. Steps Create […]



Android — Instrumentation test with hilt
Testing in Android has been a pain from the beginning and there is no standard architecture setup to execute the […]

Android Utility belt — Collection of dependencies for a greenfield project
[ Originally published at https://mahendranv.github.io/posts/android-gradle-deps-kit ] Starting an android project will bring in a new set of challenges 👀 aka […]

Access JavaScript property case-insensitively
You can alternatively already provide the searchKey in lowercase. If you want it as a function: If the key can’t […]

How to read command line arguments in NodeJS?
Let’s assume you are passing a few values from the command line when you are running a node command. These […]

Sort the list of file names using ls command
To list only the file names using ls command we can pass -a option to it. You can sort the […]

Flatten an irregular list of lists in Python
Let’s say I would like to flatten an irregular list of lists. First approach is by using collections.Iterable where x […]

Split a list into evenly sized chunks in Python
where l is the list and n is the number of items in a chunk. Use xrange() instead of range() in the case of […]

Create a flat list out of a list of lists in Python
Let’s take a list of lists. To merge this lists to a flat list you can use the following ways. […]

Rename keys in an array of objects using JavaScript
I have an array of country objects. In this array I would like to replace the key name with country. […]

TypeError: ‘str’ object does not support item assignment – Python error – How to fix?
Python strings are immutable and they cannot be changed during the course of Python program execution. In Python, strings cannot […]

Warning: Each child in a list should have a unique “key” prop – How to fix this react error?
When creating a list in the UI from an array with JSX, you might get this error. To fix this […]

Kill all processes running on a port in Linux
To kill all processes running on the port 8080:

Update counter on click of button in React
In this example, the counter is updated every time the user clicks on the Update Counter button, the page is refreshed and […]












Merge two arrays in Java using Stream API
We can use the Stream.of() method to sequentially order the stream whose elements are the values. The flatMap() function returns […]
Curly hair, very fair, please share :)
Display console logs in HTML
If you want to display JavaScript console logs in HTML pages, you can override the default implementation of console.log(). Source
Optional Chaining in JavaScript
Have you ever had to check for the existence of objects or arrays before accessing its properties using && ? […]
Importing JSON into a MongoDB collection
Use the mongoimport utility to import data into a MongoDB database. MongoDB provides the mongoimport utility that can be used to import JSON, CSV, […]
Differences between java.util.Date and java.sql.Date in Java
Handling dates is tricky in Java just like handling JSON in Java. This confusion lets developers use libraries like Joda […]
Unsupported projection option: sort – Mongoose error – How to fix?
UnhandledPromiseRejectionWarning: MongoError: Unsupported projection option: sort is an error that is thrown when you pass sort options into mongoose schema […]
Convert an Object to an Array in JavaScript
In this post, we will see how to convert an object to an array in JavaScript. To achieve this we […]
How to create a new user and grant permissions in MySQL?
MySQL is a popular open-source relational database management system used for web applications. Creating a new user and granting permissions […]
OutOfMemoryError and GC overhead limit in Maven’s surefire plugin – How to resolve?
When you run into OutOfMemoryError when running unit tests in Maven, you have to set the Java Heap Memory in the maven-surefire-plugin inside the pom.xml. Surefire usually runs […]