Using the trial division algorithm

Photo by Format from Pexels

A prime number is a positive integer exactly divisible by 1 and itself. In other words, a prime number will have only 2 factors. The first ten prime numbers are.

2, 3, 5, 7, 11, 13, 17, 19, 23

1 is not a prime number because it’s not divisible by exactly 2 positive integers. This article will discuss how to determine a prime number and make it better in terms of time complexity using four different methods.

Write an awesome README

Photo by Christopher Gower on Unsplash

What is Markdown? Markdown is a way of writing rich-text (formatted text) content using plain text formatting syntax. From this post, you’ll learn all the Markdown’s major commands that will help you create an awesome GitHub README. I’ll talk about the 11 most commonly used markdown topics. I’ve also mentioned different ways, such as using HTML tags to style your README. If you’re interested, you can have a look at the HTML whitelists on GitHub.

Being a professional engineer gives me a unique angle on gaining self-awareness.

grayscale photo of woman wearing necklace and top
grayscale photo of woman wearing necklace and top
Photo by Rachel McDermott on Unsplash

Why is self-understanding so crucial? Because you need it to improve. Self-knowledge is how you experience and explain your character, emotions, motives, and wishes to perceive strengths and weaknesses. Then you apply these insights and take actions for self-growth. Mihai Valentin Ciolacu writes in his journal, “The subjects with a higher level of awareness of self-efficacy had a higher tendency of self-improvement (Valentin, 2013).”

Run Python with less effort

Photo by Ales Nesetril on Unsplash

In this post, I’ll explain how to Dockerize an existing Python project. I’ll use one of my Python projects for demonstration purposes. Dockerized application has many benefits. One of the most prominent ones is that other developers can smoothly run the project without any environment management. It can save time and effort, and developers can focus on development. If you are just getting started with Docker, then read the following post where I’ve covered some basics.


First, you will need to install Docker and download a git repository from GitHub. For this setup, I’m using macOS.

Automate your tweets

Photo by bongkarn thanyakij from Pexels and Brett Jordan on Unsplash

To promote my medium articles, sometimes I post them on my LinkedIn and Twitter accounts. Since I was repeating the same task over and over again, I wanted to automate this task. So I wrote a bot that updates my Twitter using GitHub Actions and Python on my behalf. It saves me time, and also I don’t have to worry about updating my Twitter.


You’ll need to install Python and download a git repository from GitHub. I’m using macOS for this setup. Now follow these three steps to create the Twitter bot.

Step 1

If you don’t have a Twitter developer account…

Choose from over 100 languages

person typing on Surface laptop
person typing on Surface laptop
Photo by Surface on Unsplash

What is Tesseract? It’s an open-source OCR (Optical character recognition) engine that can recognize more than 100 languages with Unicode support. Also, it can be trained to recognize other languages. An OCR engine can save time by digitizing documents rather than manually typing the content of the document. From this post, you’ll learn how to extract text from images using Tesseract OCR engine and Python.


For the setup, I’ll use Tesseract OCR engine, Python, and macOS. First, we need to install Tesseract OCR engine. Type the following command in your terminal.

brew install tesseract

You can use the following command…

Get started with serverless functions

Photo Of Man Using Computer
Photo Of Man Using Computer
Photo by Vlada Karpovich from Pexels

Node.js is an open-source JavaScript runtime environment that can execute JavaScript code on the back-end. If you’re a front-end developer and want to explore back-end development, then Node.js can be a good starting point because you already know JavaScript.


In this post, I will be using…

Learn the basics of binary search

binary search
binary search
Photo by Format from Pexels

A binary search is an algorithm that is used to find an element from a sorted array. This algorithm compares the target value to the middle element of the array. If the values are not equal, and the target value is less than the middle value, then the larger half is eliminated, or if the target value is larger than the middle value, then the smaller half is eliminated. So, after each comparison, the array gets halved. This process is done repeatedly until we can find the target value or we don’t find the target value.

Improving the compare function

Man Sitting in Front of Three Computers
Man Sitting in Front of Three Computers
Photo by olia danilevich from Pexels

Welcome to part two of my self-updating blog catalog series. The primary reason for this post is to improve the time complexity of the compare_data function. The previous function’s time complexity was O(mn), where m was the length of the RSS data feed, and n was the JSON array length. The RSS data feed contains the new data, and the JSON array contains the old data.

Using GitHub Actions and Python

Imac Aluminum on Table
Imac Aluminum on Table
Photo by Lee Campbell from Pexels

A few weeks back, I changed my website and added a blog section where I listed all my Medium posts. But I immediately ran into an issue that meant this small task took more manual work than I was expecting. Since I am using a JSON file as a source for the blog catalog data, every time I publish a new blog post on Medium, I had to add its title and URL to the JSON file and push it to GitHub. Finally, it got deployed to Netlify automatically, thanks to continuous deployment.

Mahbub Zaman

Computer Engineer. One day I’ll write a book.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store