Found 27104 Articles for Server Side Programming

Python script to shows Laptop Battery Percentage

Mrudgandha Kulkarni
Updated on 11-Aug-2023 17:14:38

471 Views

Monitoring the battery percentage of your laptop is essential to keep track of its power level and ensure uninterrupted usage. Whether you're working on the go or relying on your laptop for extended periods, having a Python script to display the battery percentage can be incredibly useful. In this blog post, we will explore how to create a Python script that shows the laptop battery percentage. In the following sections, we will discuss the prerequisites for running the script, explore how to retrieve the battery information, and demonstrate how to display the battery percentage in a graphical user interface (GUI). ... Read More

Python Script to Open a Web Browser

Mrudgandha Kulkarni
Updated on 11-Aug-2023 16:34:03

2K+ Views

In today's digital world, web browsing has become an integral part of our daily lives. Whether it's researching information, shopping online, or accessing web-based applications, we spend a significant amount of time using web browsers. As a Python developer, wouldn't it be great to automate web browser operations and save time and effort? In this blog post, we'll explore how to create a Python script that opens a web browser and performs various operations. With the help of the Selenium library, we can interact with web browsers programmatically, allowing us to automate tasks such as navigating to a specific URL, ... Read More

Python script to monitor website changes

Mrudgandha Kulkarni
Updated on 11-Aug-2023 16:32:47

2K+ Views

In today's digital age, staying up to date with the latest changes on a website is crucial for various purposes, such as tracking updates on a competitor's site, monitoring product availability, or staying informed about important information. Manually checking websites for changes can be time-consuming and inefficient. That's where automation comes in. In this blog post, we will explore how to create a Python script to monitor website changes. By leveraging the power of Python and some handy libraries, we can automate the process of retrieving website content, comparing it with previous versions, and notifying us of any changes. This ... Read More

Python Script to Monitor Network Connection and saving into Log File

Mrudgandha Kulkarni
Updated on 11-Aug-2023 16:31:34

1K+ Views

Monitoring network connections is crucial for ensuring the stability and security of computer systems. Whether you're a network administrator or an individual user, having a way to track network connectivity and log relevant information can be invaluable. In this blog post, we'll explore how to create a Python script that monitors network connections and saves the data into a log file. By leveraging the power of Python and its extensive libraries, we can develop a script that periodically checks the network status, captures relevant details such as IP addresses, timestamps, and connection statuses, and stores them in a log file ... Read More

Python Script to Logout Computer

Mrudgandha Kulkarni
Updated on 11-Aug-2023 16:30:54

631 Views

In today's digital age, automation plays a crucial role in simplifying and streamlining various tasks. One such task is logging out of a computer, which is typically done manually by selecting the logout option from the operating system's user interface. However, what if we could automate this process using a Python script? In this blog post, we will explore how to create a Python script that can log out a computer with just a few lines of code. In this article, we will walk through the process of creating a Python script to logout a computer. We will cover the ... Read More

Python script to get device vendor name from MAC Address

Mrudgandha Kulkarni
Updated on 11-Aug-2023 16:29:56

714 Views

In the world of networking, MAC addresses play a crucial role in identifying devices connected to a network. A MAC (Media Access Control) address is a unique identifier assigned to each network interface card (NIC) or network adapter. It consists of six groups of two hexadecimal digits, separated by colons or hyphens. MAC addresses are commonly used for various purposes, including network management, security, and troubleshooting. In this article, we will explore how to create a Python script to retrieve the device vendor name from a given MAC address. We will explore two approaches: using an API to query a ... Read More

Python script to generate dotted text from any image

Mrudgandha Kulkarni
Updated on 11-Aug-2023 16:29:03

281 Views

In the digital age, manipulating images and creating artistic effects has become a common practice. One intriguing effect is the generation of dotted text from an image. This process involves converting the pixels of an image into a pattern of dots, creating an intriguing visual representation of the text. In this blog post, we will explore how to create a Python script that can generate dotted text from any given image. By leveraging the power of Python and some essential libraries, we can automate the process and easily generate stunning dotted text effects. Understanding Dotted Text Before we jump into ... Read More

Python Script to create random jokes using pyjokes

Mrudgandha Kulkarni
Updated on 11-Aug-2023 15:03:26

463 Views

Are you looking to add some humor to your Python scripts or applications? Whether you're building a chatbot, developing a command-line tool, or simply want to entertain yourself with a random joke, the pyjokes library is here to help. With pyjokes, you can effortlessly generate jokes in various categories and customize them to suit your preferences. In this blog post, we will explore how to use the pyjokes library to create random jokes in Python. We'll cover the installation process, generating jokes from different categories, customizing the jokes, displaying them in console applications or web pages, and handling any potential ... Read More

Total numbers with no repeated digits in a range

Vaishnavi Tripathi
Updated on 16-Aug-2023 10:38:47

2K+ Views

In this article, we will discuss different approaches to calculate the number of positive integers which have no repeated digits between a given range Low to high. The first approach is a brute force approach which iterates over all the numbers in the range and check if they contain repeated digits. In our second approach, we calculated the desired count using prefix array while in our last approach we used the concept of memorization in dynamic programming to get the desired result. Problem Statement: We are given two numbers low and high and we have to find the count of ... Read More

Tomohiko Sakamoto’s Algorithm- Finding the day of the week

Vaishnavi Tripathi
Updated on 16-Aug-2023 10:32:42

245 Views

In this article, we will discuss what is Tomohiko Sakamoto’s algorithm and how this algorithm is used to identify which day of the week does the given date occurs. There are multiple algorithms to know the day of the week but this algorithm is the most powerful one. This algorithm finds the day of the month on which the date occurs in least possible time and least space complexity. Problem statement − We are given a date as per Georgian calendar and our task is to find out which day of the week occurs on the given date using ... Read More

Advertisements