Found 34487 Articles for Programming

Python script to shows Laptop Battery Percentage

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

499 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

Java Program to Get CPU Serial Number for Windows Machine

Shiva Keerthi
Updated on 16-Aug-2023 08:57:44

452 Views

CPU known as Central Processing Unit is the brain of the computer. It performs all the main operations in a computer. It is also called central processor or main processor. The CPU serial number is a unique identifier which is given to that particular CPU by the manufacturer to each individual central processor. Its main purpose is to track and identify the hardware for warranty claim. In this section, we are going to write a java program to get CPU serial number for windows machine. CPU helps in executing the instructions and performing all the mathematical operations. CPU contains 3 ... Read More

Python Script to Open a Web Browser

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

3K+ 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

Java Program to Get Components of a URL

Shiva Keerthi
Updated on 16-Aug-2023 08:53:11

802 Views

URL known as Uniform Resource Locator is a string used to specify the location of web resources like web pages, images, videos, files on the internet.URL helps to easily access them and helps to retrieve the resources from the web servers.URL is also known as Internet address or web address. In this section, we will be discussing how to get the different components of a URL in Java. Components of a URL Below are the components of a URL − Protocol − Protocol specifies which method is used to access the web resource. This method is used to specify ... Read More

Java Program to find the Last Index of a Particular Word in a String

Shiva Keerthi
Updated on 16-Aug-2023 08:46:54

219 Views

A String is a sequence of characters. In Java, a string is also an object. It is the object of the String class. The last index of a particular word in a string is nothing but the position of the last occurrence of that word in the string. The index of a character in a string defines or tells the position in the string. The position or Index always starts from 0. In this section, we are going to discuss how to implement a java program to find the last index of a particular word in a string. Strings are ... 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

660 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

759 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

287 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

Advertisements