Get Person Names from Passports by Python

Today, I’ve got something pretty cool to share with you. Ever wondered how you can extract names from passports using a bit of code magic? I wrote a Python script as a function to read a person’s name from a passport image. Code:: [open on github] from PIL import Image import pytesseract import re def […]

Read more.

Popular regex patterns

Email Address Validation: /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/ URL Validation: /^(https?|ftp):\/\/[^\s\/$.?#].[^\s]*$/i”; Username Validation (alphanumeric and underscores): /^[a-zA-Z0-9_]+$/ Password Validation (minimum 8 characters, at least one uppercase, one lowercase, one number, and one special character): /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/ Date (YYYY-MM-DD) Validation: /^\d{4}-\d{2}-\d{2}$/ HTML Tags Removal: /<[^>]+>/ Numeric-only String: /^[0-9]+$/ Alphabetic-only String: /^[a-zA-Z]+$/ Alphanumeric String: /^[a-zA-Z0-9]+$/ Hex Color Code: /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/ Credit Card Number […]

Read more.

Recreating Tables for a Specific Django App

Recreating Tables for a Specific Django App: To delete a table from a specific app in Django, follow these steps: Firstly, let’s get rid of the migration folder for that particular app you have in mind. Now, execute the following command: python manage.py dbshell After running the above command, use the following command within the […]

Read more.

Resolving Git Insensitivity to Case Sensitivity in Folder/File Names

If you’re a user of Git services or have a personal Git server, you’ve likely encountered the issue where Git doesn’t exhibit sensitivity to changes in the names of directories and files, treating every character as case-insensitive. This becomes problematic when you try to deploy code to production and face challenges due to this insensitivity. […]

Read more.

Deploying FastAPI with Uvicorn on DigitalOcean

If you’re currently in the process of deploying your FastAPI project on DigitalOcean using Uvicorn and encountering issues with proper execution, you’ve come to the right place. In this blog post, I will walk you through the steps to overcome common challenges and ensure a smooth deployment. One common issue when deploying FastAPI with Uvicorn […]

Read more.

Publishing Your React.js App on cPanel with GitHub Actions

Please following this step: emove the “dist” and “build” folders from the .gitignore file. You need to create an FTP account from your cPanel host and add it to the secrets of your repository. Add the CPANEL_HOST, CPANEL_USERNAME, and CPANEL_PASSWORD to the secrets of your repository. Create a deploy.yml file in the “.github/workflows” directory and […]

Read more.

Find keyword position in the google search result + python

As the world becomes increasingly digital, more and more businesses rely on search engine optimization to drive traffic to their websites. In order to optimize their website for search engines, website owners need to know the position of their keywords in Google search results. This can be a laborious process for businesses to do manually. […]

Read more.

Setup DigitalOcean spaces in django

Here I will explain how to set up DigitalOcean spaces in the django app, one of the popular products in DigitalOcean. Before you start reading this post, you are reading this post as an expert user, so I won’t explain simple points. The first step is to install Django, gunicorn, Django-storages, and boto3 packages using pip: pip install […]

Read more.

Matlab: removing the notebook line from Paint

As a child, many of us drew a lot of paint. Our paint notebook ran out of free paper one day, and we drowned inside a simple vertical notebook. During our image processing course, we will use Matlab to remove vertical lines from the piece of a notebook. For removing vertical lines inside painting paper, […]

Read more.

Docker: we cannot access it in Iran.

Many online services have banned Iranians from using their services in recent years. In my opinion, this is a confirmed case of racism in the 21st century. Our job is to develop software for simple projects, not to engage in politics. Since I resolved the docker access problem with the repository mirror last week, I […]

Read more.

Solved: Natas web-security challenge username and password

I have solved the Natas Challenge step and am sharing the password and username for Nata’s Challenge. All challenges are made to learn something. If you want to know about web security, I recommend solving Natas’ steps without my username and password list. It took me a month and three hours a day to complete […]

Read more.

Demonstrate layer dimension in ‘visualcross’

As a deep learning specialist or student, you must work with documentation. Your document must show your models in detail. When you search Google for “how to demonstrate our violate deep learning model details,” you’ll find the ‘visual cross’ library. Paul Gavrikov developed the ‘visual cross.’ What’s the visual cross? Visualkeras is a Python package to […]

Read more.