Check Execution Time of Python Script

Niharika Aitam
Updated on 09-Aug-2023 14:45:08

13K+ Views

The python script is the file that can store the code which is used to execute a specific task or set of tasks. This file is saved with the file extension “.py”. The python script can be created and edited in any text editor and can be executed using the command line prompt or can be imported as a package or module into the integrated development environment(IDE). Each python script will take some time to execute the file; it can be calculated by using the following ways. Using the time Module In python, we have the time module which ... Read More

Check Multiple Variables Against a Value in Python

Niharika Aitam
Updated on 09-Aug-2023 14:42:47

4K+ Views

The variable is an entity that stores on different values. When we assign a new value, every time, the previous value will be replaced with the new one. In python, a variable can be alphabetic, underscore, numeric value starting with the alphabet etc. The multiple variables can be against a value; it can be checked by using the following ways in python. Using logical ‘or’ and ‘and’ One of the way to check multiple variables against a value in python is by logical or and and. The and operator will check if all the variables are equal to their ... Read More

Check Loading Time of Website Using Python

Niharika Aitam
Updated on 09-Aug-2023 14:35:53

832 Views

We use different websites in our day to day life. Every particular website will take some time to load the content. Mathematically, we can get the loading time by subtracting the time obtained with the reading time of the whole website. In python we have few packages and modules to check loading time of the website. Steps/Approach The following are the steps that we need to follow to get the loading time of the website. Let’s see each step one by one. Firstly, we have to import the required libraries into our python environment. The following is the lines ... Read More

Check If Time Series Data is Stationary with Python

Niharika Aitam
Updated on 09-Aug-2023 14:34:50

494 Views

Time series is a collection of data points, which are recorded at regular intervals of time. It is used to study the trend of patterns, relationship between the variable over the defined time. The common examples of time series are stock prices, weather patterns and economic indicators. It analyzes the time series data by the statistical and mathematical techniques. The main aim of the time series is to identify the patterns and trends of the previous data to forecast the future values. The data is said to be stationary, if it doesn’t change with the time. It is necessary ... Read More

Check If TensorFlow Is Using GPU

Niharika Aitam
Updated on 09-Aug-2023 14:32:59

722 Views

GPU is abbreviated as Graphics Processing Unit. It is a specialized processor designed to handle the complex and repetitive calculations required for video encoding or decoding, graphics rendering and other computational intensive tasks. It is mainly suited to perform the large scale parallel computations, which makes ideal for the machine learning and other data based applications. The GPU in machine learning has become more popular as it reduces the time required to train complex neural networks. Tensorflow, Pytorch, keras are the built-in frameworks of machine learning which supports the GPU acceleration. The following are the steps to check if Tensorflow ... Read More

Password Protect Web Directories in Apache using .htaccess File

Mrudgandha Kulkarni
Updated on 09-Aug-2023 14:32:00

417 Views

In today's digital landscape, ensuring the security of web applications and protecting sensitive data is of utmost importance. One effective way to enhance the security of your web directories is by implementing password protection. By password protecting specific directories, you can restrict access to authorized users only, adding an extra layer of defense against unauthorized access. In Apache, the .htaccess file plays a crucial role in configuring directory-specific settings, including password protection. By leveraging the power of the .htaccess file, you can easily enforce password authentication for specific web directories, ensuring that only authorized individuals can access the content within. ... Read More

Override Entrypoint Using Docker Run

Mrudgandha Kulkarni
Updated on 09-Aug-2023 14:31:02

11K+ Views

In the world of containerization, Docker has become a popular choice for packaging and deploying applications. One of the key aspects of Docker containers is the entrypoint, which defines the default command that is executed when the container starts. However, there are scenarios where you may need to override the entrypoint and execute a different command inside the container. This flexibility allows you to customize the container behavior based on your specific requirements. In this article, we will explore the concept of overriding the entrypoint using the docker run command. We will delve into the reasons why you might need ... Read More

Open, Extract and Create RAR Files in Linux

Mrudgandha Kulkarni
Updated on 09-Aug-2023 14:30:28

720 Views

RAR is a popular file compression format known for its efficient compression algorithm and ability to compress large files into smaller archives. While Linux natively supports common archive formats like ZIP and TAR, working with RAR files requires additional tools. In this blog post, we will explore how to open, extract, and create RAR files in Linux. Whether you've received a RAR file and need to extract its contents or want to compress files into a RAR archive, we will cover the necessary steps and tools to accomplish these tasks. We will explore both command-line and graphical methods, giving you ... Read More

Open Port for a Specific IP Address in Firewalld

Mrudgandha Kulkarni
Updated on 09-Aug-2023 14:29:49

3K+ Views

In today's interconnected world, network security is of utmost importance. One essential aspect of securing your network is managing the access to specific ports on your system. Firewalld, a dynamic firewall management tool, provides a flexible and user-friendly approach to firewall configuration in CentOS. This guide will focus on a common scenario: opening a port for a specific IP address in Firewalld. By allowing access only to specific IP addresses, you can enhance the security of your system and restrict unauthorized access. In this article, we will explore the step-by-step process of opening a port for a specific IP address ... Read More

Name or Rename Docker Containers

Mrudgandha Kulkarni
Updated on 09-Aug-2023 14:29:08

33K+ Views

Naming or renaming Docker containers is an essential aspect of container management. When working with multiple containers, the default random names assigned by Docker can be challenging to track and manage. However, by assigning meaningful names to your containers, you can easily identify and interact with them, improving your overall Docker workflow. Naming or renaming Docker containers is an essential aspect of container management. When working with multiple containers, the default random names assigned by Docker can be challenging to track and manage. However, by assigning meaningful names to your containers, you can easily identify and interact with them, improving ... Read More

Advertisements