-
How to install beautifulsoup
This article is about installing Beautifulsoup. It is a Python library, which can scrape webpages and parse the HTML code. Please check the prerequisites before starting. You can install Beautifulsoup by following these steps: 2. Test Beatifulsoup by testing the following script in the python interpreter you’ll see the HTML tag element has been formatted […]
-
How to start python in windows
To get started with Python in Windows, you need to download and install Python. The easiest way to install Python is by downloading the installer from python.org Once you have downloaded the installer, open it and follow the instructions on the screen. The simplest way to start Python in Windows is to open the Command […]
-
How to solve “root” does not exist in Postgres docker
Problem By default when we create docker in Postgres, we usually use this command to create a container after that, we execute to Postgres container for my case, I run created command And we got an error createdb: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: role “root” does not exist Solution By default […]
-
What is a circuit breaker pattern
The circuit breaker pattern is a design pattern that helps to prevent cascading failure in an application. It is based on the idea of breaking the connection between two components when there is a problem to reduce the impact of the failure. I’ll give an example of a real situation on the gateway. you can […]
-
Create random number array in python with numpy
Random number generation is a common operation in many areas of computer science, such as statistics, cryptography, and computer programming. In this article, we are going to learn how to create random numbers with NumPy arrays in Python. If you don’t have numpy you have to install numpy first 1. random one-dimension integer number in […]
-
How to create NumPy array in python
Today, I will show you how to use the NumPy array with the following example. create one-dimension NumPy array create two-dimension NumPy array Set minimum dimension to NumPy array Numpy can automatically upcasting type like this also can change the data type in an array like this Thank you for reading & enjoy your coding […]
-
Create random data to csv file using Python
Today We will create random data to csv file like this prerequisite python3 first, make sure you use python3, when you have checked your python version then, you have to install faker create random-person.py and insert the following code. open terminal and run command to execute the file open random-person.csv, you will see these output now, […]
-
Custom command in linux
sometimes we don’t want to type long commands every time. we want to create scripts and run custom scripts easily. today I will show you How to create commands in Linux. This is the command I will you how to create today, hello-command. we can type the hello command and pass one parameter when we […]