Uncategorized

Submit a form in post method in Node.js

install express and body-parser sh npm install express body-parser multer server.js const express = require(“express”); const bodyParser = require(“body-parser”); const app = express(); const port = 3000; app.use(bodyParser.urlencoded({ extended: true })); // Serve HTML form app.get(“/”, (req, res) => { res.send(` <form action=”/submit” method=”POST”> <input type=”text” name=”name” placeholder=”Enter your name” required /> <button type=”submit”>Submit</button> </form> …

Submit a form in post method in Node.js Read More »

WEATHER_APP in Python – Fetch Real-Time Weather Data

INTRODUCTION The WEATHER_APP in Python is a simple application that fetches actual-time weather records the use of an API. It permits customers to enter a city name and get contemporary weather details inclusive of temperature, humidity, and weather conditions. This mission enables in information API integration and operating with JSON statistics in Python. STEP 1: …

WEATHER_APP in Python – Fetch Real-Time Weather Data Read More »

Get official website URL from company name ( even the company name is misspelled)

In this article, we will understand how we can extract all the links from a URL or an HTML document using Python.   FIRST METHOD :   Libraries Required: bs4 (BeautifulSoup): It is a library in python which makes it easy to scrape information from web pages, and helps in extracting the data from HTML and XML …

Get official website URL from company name ( even the company name is misspelled) Read More »

How to Read, Display, and Save Images Using OpenCV

What is open CV OPEN CV is stand on (open source computer vision library).open cv generally used in open source library for computer.it provide a comprehensive set of function and tools for various task How to install openCV using pip Installing OpenCV using pip is a straightforward process. Here are the steps: Installing OpenCV using …

How to Read, Display, and Save Images Using OpenCV Read More »

Uploading image and store in Node.js

To upload and save an image within a Node.js application, you may use the multer middleware for multipart/form-data handling, which is essentially utilized for uploading files. Here’s a step-by-step guide: Step 1: Prepare Your Node.jsProject Initialize a new Node.js project: mkdir image-upload cd image-upload npm init -y Install the required dependencies: npm install express multer mkdir image-upload: This command makes a new directory (folder) called image-upload. The …

Uploading image and store in Node.js Read More »

Move an HTML element using JavaScript

Certainly! You can move an HTML element using JavaScript by modifying its `style` properties, such as `left`, `top`, `transform`, or using CSS transitions and animations. Here’s a basic example demonstrating how to move an element using JavaScript and inline styles: Moving an HTML element using JavaScript involves several steps. Here, I’ll explain the process in …

Move an HTML element using JavaScript Read More »

How to remove Duplicates from a JavaScript Array

Removing Duplicates from a JavaScript Array Removing duplicates from an array is a very common task in Javascript, particularly when handling large datasets. So, in this article, let’s explore different methods for efficiently removing duplicate values from an array. To improve readability and address the issue of color contrast, here are a few suggestions: Text …

How to remove Duplicates from a JavaScript Array Read More »

Sort an Array of Objects by Property Value in JavaScript

Sorting an Array of Objects by Property Values in JavaScript: A Complete Guide   Sorting an array of objects in JavaScript is a crucial skill for handling structured data efficiently. Whether you’re dealing with a list of products, users, or numerical data, knowing how to sort effectively can enhance performance and usability. In this guide, …

Sort an Array of Objects by Property Value in JavaScript Read More »

How to Play a Video in Slow Motion Using OpenCV in Python

Introduction Have you ever wanted to play a video in slow motion using Python? Whether you are analyzing motion, working on video processing projects, or just experimenting with OpenCV, playing a video in slow motion can be useful. In this blog, we will walk through how to play a video in slow motion using OpenCV, …

How to Play a Video in Slow Motion Using OpenCV in Python Read More »

Scroll to Top