How to replace text inside a div element with JavaScript and jQuery

In the world of dynamic web engineering, users interact with a webpage and update the text inside an HTML division (div) element is popular. For example, an asynchronous call will…

How to make API calls in Java

Nowadays, RESTful APIs are used everywhere for fetching data from an external resource. Frankly speaking, the approaches of fetching remote data will not work for all RESTful resources. In other…

How to compile and run a simple Java program relying on dependencies

As you know, compiling or running programmes relying on dependencies without build tools is a headache. I am an old-school guy who loves to test and run any program from…

How to convert a list into a string and vice versus in Python

String and lists are the data structures commonly used in various programming languages for multiple purposes. We often see exchangeable conversions between list and string, for example, storing data into…

How did I reduce the deploying time of BioModels?

I have worked with BioModels as an enterprise application for nine years. I don’t remember when deploying times became too slow; it was a nightmare because it took more than…

How to remove duplicates from a list in Python

In Python, a list is a versatile collection of objects that allows for duplicates.  But sometimes it is necessary to make the list unique to streamline our data or perform…

How to extract a sub list in Groovy

Groovy has a built-in method on the List type to return a view of the portion of a List object between the specified fromIndex, inclusive, and toIndex, exclusive. The method…

How to use SVG in React

Introduction In React, we often use SVG for icons or images. How do we use it efficiently? How do we add a number in the centre of a trolley icon?…

JavaScript Spread vs. Rest Operator

Introduction In modern JavaScript, the spread and rest operators are indispensable tools for simplifying array manipulation and function parameters. These operators provide elegant solutions for tasks like array expansion and…

How to ignore top rows in CSV or TSV files

Working with CSV or TSV files, we often ought to ignore the header row (aka. the column headers) before reading the rest of the file. To strip out the first…