How to set PHP version per directory

On shared hosting servers, multiple versions of PHP can be simultaneously installed and various applications have to run with different PHP versions. How can we set up, for example, the…

Print Only HTTP Status Code With Curl

When handling HTTP requests, it is often necessary to check the status code of a response quickly, without retrieving the full headers or body. This is useful for testing API…

How to use the GET and POST method of Fetch API in JavaScript

This post will give an introductory explanation about using this method to get data from servers or post data to servers. What is the Fetch API? Fetch API is a…

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 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 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 merge arrays in JavaScript

How do you merge two arrays in JavaScript/jQuery? Method 1: Traditional or simple way – using loop Iterating on one of two arrays, get each element and append it into…

How to stop YouTube showing related videos

Unfortunately, if you’re like a lot of people and embed YouTube videos on your website, you might have noticed random videos showing up when you pause or get to the end of the video. Sometimes these videos could be from your competitors.

A short interview about An Lac House

In this post, we want to present how to embed a YouTube video into your WordPress and keep it responsive. What we need is to add a few CSS attributes…