Server Side Programming Articles

Page 94 of 2109

How to connect ReactJS with Flask API?

Prince Yadav
Prince Yadav
Updated on 27-Mar-2026 4K+ Views

Building modern web applications requires connecting frontend and backend technologies effectively. ReactJS and Flask are popular choices for frontend and backend development respectively. This article explores how to connect ReactJS with Flask API to create robust web applications. We'll cover setting up a Flask API, enabling CORS, making API requests from ReactJS, displaying data, and handling errors. Creating a Flask API First, create a Python script that defines API routes using Flask's @app.route decorator − from flask import Flask, jsonify app = Flask(__name__) @app.route('/api/data') def get_data(): response = {'message': ...

Read More

SPSA (Simultaneous Perturbation Stochastic Approximation) Algorithm using Python

Jaisshree
Jaisshree
Updated on 27-Mar-2026 696 Views

The Simultaneous Perturbation Stochastic Approximation (SPSA) algorithm is a gradient-free optimization method that finds the minimum of an objective function by simultaneously perturbing all parameters. Unlike traditional gradient descent, SPSA estimates gradients using only two function evaluations per iteration, regardless of the parameter dimension. SPSA is particularly effective for optimizing noisy, non-differentiable functions or problems with many parameters where computing exact gradients is computationally expensive or impossible. How SPSA Works The algorithm estimates the gradient by evaluating the objective function at two points: the current parameter values plus and minus a random perturbation. This simultaneous perturbation of ...

Read More

Skin Cancer Detection using TensorFlow in Python

Jaisshree
Jaisshree
Updated on 27-Mar-2026 1K+ Views

Early detection of any disease, especially cancer, is very crucial for the treatment phase. One such effort made in this direction is the use of machine learning algorithms to detect and diagnose skin cancer with the help of a machine learning framework like TensorFlow. The traditional method of cancer detection is quite time-consuming and requires professional dermatologists. However, with the help of TensorFlow, not only can this process be made fast, but more accurate and efficient. Moreover, people who do not get timely access to doctors and dermatologists, can use this meanwhile. Algorithm Overview The skin cancer ...

Read More

How to Compress Images Using Python and PIL?

Prince Yadav
Prince Yadav
Updated on 27-Mar-2026 15K+ Views

In today's digital era, images have become a necessary part of our lives. They play an important and significant role in communication and expression across a wide range of platforms, from social media to websites. However, high−quality images can consume a considerable amount of storage space and it'll result in slower website loading times and longer upload times. Image compression becomes applicable in this situation. By reducing the size of an image, you can ensure faster loading times, lower bandwidth usage, and more storage space. In this article, we will look into the process of compressing images using Python ...

Read More

How to Compare two Dataframe with Pandas Compare?

Prince Yadav
Prince Yadav
Updated on 27-Mar-2026 1K+ Views

If you work with data analysis or data science, then you already know the importance of comparing DataFrames. Fortunately, the Python library, pandas, offers a handy compare() method that allows you to compare two DataFrames and highlight their differences. This method is incredibly useful for identifying discrepancies between datasets and making informed decisions based on those differences. In this article, we will explore how to use pandas compare() to compare two DataFrames and dive into some of the customization options available. Whether you're an experienced data analyst or a beginner, this article will provide you with the knowledge you ...

Read More

How to Change Column Type in PySpark Dataframe

Prince Yadav
Prince Yadav
Updated on 27-Mar-2026 9K+ Views

PySpark DataFrames are powerful data structures for big data processing. One common task when working with DataFrames is changing column data types to ensure data consistency, perform accurate calculations, and optimize memory usage. In this tutorial, we will explore three methods to change column types in PySpark DataFrames: using cast(), withColumn(), and SQL expressions. Method 1: Using cast() Function The cast() function is the most straightforward way to convert a column from one data type to another. It takes the desired data type as an argument and returns a new column with the modified type. Syntax ...

Read More

How to Call a C Function in Python

Prince Yadav
Prince Yadav
Updated on 27-Mar-2026 10K+ Views

Calling C functions in Python can greatly enhance the capabilities of your programs by incorporating functionality from C libraries. Python offers various methods to seamlessly integrate C code, resulting in improved performance and access to low-level system APIs. This article explores different approaches including ctypes, CFFI, and Cython. Using the ctypes Library The Python ctypes library is a robust resource that empowers us to generate C-compatible data types and directly invoke functions in dynamic link libraries or shared libraries using Python. Step 1: Create a Simple C Library First, let's create a simple C function to ...

Read More

Higher-Lower Game with Python

Prince Yadav
Prince Yadav
Updated on 27-Mar-2026 7K+ Views

The Higher-Lower game is a classic and entertaining guessing game that challenges players to guess a randomly generated number within a specified range. By implementing this game using Python, beginners can gain valuable coding experience while creating an interactive and enjoyable gaming experience. In this article, we will explore the step-by-step process of creating a Higher-Lower game with Python, providing detailed explanations and code examples along the way. Whether you're a novice programmer looking to enhance your skills or simply seeking a fun coding project, this guide will help you build a fully functional game. Understanding the Game ...

Read More

GET Request Query Parameters with Flask using python

Prince Yadav
Prince Yadav
Updated on 27-Mar-2026 4K+ Views

Flask, a lightweight web framework for Python, provides developers with an intuitive and efficient way to handle GET request query parameters. When users interact with web applications, query parameters are often sent as part of the URL, conveying additional information to the server. With Flask, extracting and utilizing these query parameters becomes a seamless process. This article will explore GET request query parameters with Flask and Python. We will demonstrate practical examples that showcase how to effectively extract and manipulate query parameter data in your Flask applications. Understanding GET Requests and Query Parameters GET requests are a ...

Read More

Flask login without Database in Python

Prince Yadav
Prince Yadav
Updated on 27-Mar-2026 1K+ Views

Flask, a lightweight web framework for Python, offers various tools and libraries for building dynamic web applications. When it comes to implementing user authentication in Flask, developers often turn to traditional database systems. However, there are cases where using a database might be unnecessary or overkill, such as small-scale applications or rapid prototyping. In such scenarios, implementing a Flask login system without a database can be a simple and efficient solution. By using memory data structures and Flask's session object, developers can create a basic login system that stores user information without the need for a database. Setting Up ...

Read More
Showing 931–940 of 21,090 articles
« Prev 1 92 93 94 95 96 2109 Next »
Advertisements