Make Python Interesting for You

Vikram Chiluka
Updated on 12-Jan-2023 12:06:40

344 Views

This article will teach us how to create some fascinating things in Python to make our work more interesting. Trading Bot While the economy, stock market, and cryptocurrencies are all suffering, many people are still profiting. Even though you shouldn't put all your money into a trading bot unless you know what you're doing, it's an interesting project to work on and learn from. AI Sports Betting Software Although the goal is to predict an outcome of events (much like the trading bot), the approach you choose to solve this challenge may be very different. As opposed to a trading ... Read More

Measure CPU Usage for a Process on Linux

Pradeep Jhuriya
Updated on 12-Jan-2023 11:10:17

7K+ Views

Introduction On modern multi-core CPUs, it is often useful to know the CPU usage of individual cores for a particular process. This can be helpful for identifying bottlenecks in the system, or for understanding the workload distribution across CPU cores. In this article, we will see how to measure separate CPU core usage for a process on Linux using various command line tools. Measure CPU Core Usage using top Command The top command is a commonly used tool for monitoring system resources, including CPU usage. By default, top displays the overall CPU usage for all cores, but it also provides ... Read More

Partitioning Disks in Linux

Pradeep Jhuriya
Updated on 12-Jan-2023 11:05:46

4K+ Views

Introduction In Linux, a disk partition is a logical division of a hard disk drive (HDD) or solid-state drive (SSD) that is used to manage data in a more organized manner. Partitions allow you to separate data by function, such as separating system files from user files, or to set up multiple operating systems on a single physical disk. There are several tools available for creating and managing disk partitions in Linux, including fdisk, parted, and gparted. In this article, we will focus on using fdisk and parted as they are widely available on most Linux distributions. Creating a Partition ... Read More

Delete Multiple Files at Once in Bash

Pradeep Jhuriya
Updated on 12-Jan-2023 10:56:15

8K+ Views

Introduction Bash is a Unix shell and command language that is commonly used on Linux systems. It allows users to perform a variety of tasks, including deleting files. In this article, we will look at how to delete multiple files at once in Bash on a Linux system. We will cover the basic syntax for deleting multiple files, as well as some advanced techniques for deleting specific types of files or forcing the deletion of write-protected files. Using rm Command in Linux The rm command is used to delete files in Bash. To delete a single file, you can use ... Read More

Creating a Temporary File in Linux

Pradeep Jhuriya
Updated on 12-Jan-2023 10:54:21

7K+ Views

Introduction In Linux, it is often necessary to create temporary files for various purposes, such as storing intermediate data during processing or storing configuration information for a script. Temporary files are usually created in the /tmp directory, which is a standard location for storing temporary files on most Linux systems. Creating a Temporary File in Linux There are several ways to create a temporary file in Linux. One of the most common methods is to use the mktemp command, which creates a unique temporary file and prints the file name to the console.SyntaxTo create a temporary file using mktemp,  use the ... Read More

Command Line Automation in Python

Prabhdeep Singh
Updated on 11-Jan-2023 18:20:31

6K+ Views

Python comes with a command line for managing user input and specific forms of data entering while Python applications are being executed. As a result, users can enter data and complete tasks otherwise that would be impossible. This also enables more complex tasks and increased program interaction. To communicate with computers and execute programs, one uses a command-line interface (CLI), and a text-based user interface (UI). Additional names for command-line interfaces include character user interfaces, console user interfaces, and command-line user interfaces. In this article, you will learn what the Python command-line interface (CLI) is and how to automate the ... Read More

Writing Efficient Python Code

Prabhdeep Singh
Updated on 11-Jan-2023 18:18:57

539 Views

In this article, we are going to discuss how to write efficient code in python and also discuss their importance. Python is a robust programming language that allows you to accomplish a lot with a minimal amount of code. You must prevent the use of code that is not necessary and employ suitable procedures and strategies to make your code run more quickly if you want to produce effective and optimized code. This article will go over several methods for writing Python code more quickly and effectively. Like − Establishing a function. Reduce unnecessary operations. Do not declare ... Read More

Run Linux Libraries on Docker on Windows

Hemant Sharma
Updated on 11-Jan-2023 18:15:35

779 Views

Introduction Here in this article, we will learn about Linux libraries. What is the actual function of these libraries and what are the different types of libraries. Then we will understand to use these Linux libraries on the Windows OS with the help of various methods mentioned below. What are the Linux libraries? The Linux terminal works and follows only the commands. It is a “Text Only Console”, that responds to terminal commands. The definitions or the code for these commands or functions are stored in libraries. Types of Linux libraries The libraries can be divided based on the nature ... Read More

Ignore Files in Docker

Hemant Sharma
Updated on 11-Jan-2023 18:14:29

7K+ Views

Introduction Here in this article, we will learn about the ignore file in docker. How to create a ignore file and how to use it with various ways to add files and folders to the ignore file. All the pre-requisite knowledge is mentioned in a stepwise manner. Do not directly jump to the implementation without knowing the requirement of the ignore files in the code industry. What are ignored files? Ignore files created in different systems like in the Git repository and the Dockerifle. These files help to exclude some files and directories from being used or copied in the ... Read More

Fix Docker Build Requires Exactly One Argument

Hemant Sharma
Updated on 11-Jan-2023 18:12:59

5K+ Views

Introduction Docker build is a container image builder command. The command helps you to create your container image with some extra tweakable functionalities. While building the image using the “docker build” command beginners face a very common and simple problem of arguments. In this article, we have discussed various ways of encountering that error and how to resolve the error. Different ways of executing the build are also mentioned in the article. Creation of Dockerfile First of all, we will create a dockerfile. This dockerfile will help us to create a docker container image of the “apache-web-server”. The index page ... Read More

Advertisements