spkcode

  • Home
  • Blog
  • How to install beautifulsoup

    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 […]

    November 26, 2022
  • How to start python in windows

    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 […]

    November 26, 2022
  • How to solve “root” does not exist in Postgres docker

    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 […]

    June 4, 2022
  • What is a circuit breaker pattern

    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 […]

    March 17, 2022
  • How to convert list to numpy array in python

    How to convert list to numpy array in python

    In this tutorial, I will show you how to convert a list to a numpy array in python. The first thing we need to do is import the numpy module. This module is used for scientific computing and it has a lot of useful functions for data analysis. convert list to numpy array convert numpy […]

    March 13, 2022
  • Create random number array in python with numpy

    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 […]

    March 12, 2022
  • How to create NumPy array in python

    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 […]

    March 6, 2022
  • Imperative vs declarative programming

    Imperative vs declarative programming

    Before I explain what is imperative and declarative I will show you some code scenarios. There are apples and oranges in a basket. I want to count apples in the basket. case 1: case 2: the result of both got the same. use case 1: you how the code work, how the code loop, how […]

    March 5, 2022
  • Create random data to csv file using Python

    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, […]

    March 4, 2022
  • Custom command in linux

    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 […]

    March 4, 2022
  • Follow Following
    • spkcode
    • Already have a WordPress.com account? Log in now.
    • spkcode
    • Edit Site
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar