Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Mrudgandha Kulkarni
134 articles
Python sorted containers - An Introduction
Python offers a wide range of data structures to efficiently organize and manipulate data. When it comes to handling sorted data, sorted containers play a crucial role. Sorted containers are data structures that maintain elements in a sorted order, providing fast access, insertion, and deletion operations. In this article, we will explore Python sorted containers and understand their significance in various applications. We will examine the different types of sorted containers and discuss their features, advantages, and implementation details. What are Sorted Containers? Sorted containers are specialized data structures that automatically maintain their elements in sorted order. ...
Read MorePython Script to Restart Computer
Restarting a computer is a common task that we often perform to troubleshoot issues, install updates, or apply system changes. Using a Python script can provide automation and convenience for system administrators and power users. In this article, we will explore how to create a Python script that can restart a computer using the subprocess module, along with cross-platform compatibility and safety considerations. The Importance of Restarting a Computer Restarting a computer is a fundamental troubleshooting step that can help resolve various issues and improve system performance. Here are some key reasons why restarting a computer is ...
Read MorePython Script to Shutdown your PC using Voice Commands
In today's world of automation and smart devices, voice control has become increasingly popular. From smartphones to virtual assistants, voice commands offer a convenient and hands−free way to interact with technology. What if you could extend this convenience to your PC as well? Imagine being able to shut down your computer with a simple voice command, saving you the trouble of manually navigating through menus or using the mouse. In this article, we will explore how to use Python to create a script that allows you to shut down your PC using voice commands. By leveraging the power of ...
Read MorePython script to shows Laptop Battery Percentage
Monitoring your laptop's battery percentage is essential for uninterrupted usage. Python provides a simple way to create scripts that display battery information using the psutil library. This tutorial shows how to create a Python script that retrieves and displays your laptop's current battery percentage. Prerequisites Before creating the script, ensure you have the following requirements ? Python − Python 3.6 or higher installed on your system psutil Library − Install using pip with the following command ? pip install psutil The psutil library works across Windows, macOS, and Linux systems, making ...
Read MorePython Script to Open a Web Browser
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 article, 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 MorePython script to monitor website changes
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 tutorial, 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. ...
Read MorePython Script to Monitor Network Connection and saving into Log File
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 article, we'll explore how to create a Python script that monitors network connections and saves the data into a log file. By leveraging Python's built-in libraries like socket and psutil, we can develop a script that periodically checks network connectivity, captures details such as IP addresses, timestamps, and connection statuses, and stores them in a log file for future reference. ...
Read MorePython Script to Logout Computer
Python can automate the logout process on different operating systems using system commands. This tutorial shows how to create cross-platform logout scripts for Windows, macOS, and Linux systems. Prerequisites Before creating the logout script, ensure you have Python installed on your system. Download it from the official Python website and follow the installation instructions for your operating system. The script requires administrative privileges on some systems, especially Windows. Ensure you have the necessary permissions to execute system logout commands. Method 1: Logging Out on Windows Windows uses the shutdown command with the /l flag to ...
Read MorePython script to get device vendor name from MAC Address
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). It consists of six groups of two hexadecimal digits, separated by colons or hyphens. This article explores how to create a Python script to retrieve the device vendor name from a given MAC address using two approaches: API-based lookup and local database lookup. Understanding MAC Addresses A MAC address consists of 48 bits (6 bytes) represented in hexadecimal notation. It is typically written ...
Read MorePython script to generate dotted text from any image
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 interesting visual representation of the original content. In this tutorial, we will explore how to create a Python script that can generate dotted text from any given image using PIL, NumPy, and Matplotlib libraries. Understanding Dotted Text Dotted text is a technique where the pixels of an image are replaced with dots of varying ...
Read More