Ahmad Hamze Homepage
  • Posts
  • Mapping Earthquakes Locations on a Map
  • Pictionary using websockets
  • AI Blogs
    • Chatbot with Vector Database and FastAPI
    • Medical Chatbot
  • Algorithmics Blogs
    • Recursion with Memoization
  • Automation Programs
    • Puppeteer vs Selenium
    • Selenium Speed Test
  • Cellular Automata
  • Infrastructure & DevOps
    • Chatbot Deployment
  • Mathematics
    • From random walk to diffusion
    • Simple C++ matrix calculation
  • Opinion Blogs
    • With due apology to front-end developers
    • Advice to my past self
    • Changing Jobs and Tech Stacks
    • Web Dev Learned Lessons
  • React Applications
    • React Trivia Quiz
    • Storybook with React
Cellular Automata

In the 1940s, John Von Neumann and Stanislaw Ulam wanted to design a computer able to self-repair. In the real world an object can be produced only from a more complex object. Consider replicating a piece of paper. To create one, we need to have a more complex object, a printer, the printer is a much more complex system than paper, and to create a printer, we need a lot of smaller components which are themselves complex and so on.

April 15, 2023 Read
Estimating pi

Using the Monte-Carlo simulation to estimate the value of π First of all, let's talk briefly about what is a Monte-Carlo simulation. Simply put, it is a computational method that uses a large number of random samples to obtain a result. It is used in a wide range of disciplines like mathematics, computer graphics, and physical sciences. In this blog, we will see how we can use this method to estimate the value of the mathematical constant \( \pi \).

March 3, 2021 Read
RAG Chatbot: Vector Database Approach

In a previous blog, I wrote about a RAG chatbot that I created using a dataset of medical questions and answers. The RAG chatbot embedded the user’s question and retrieved the most relevant answers from an embedding file. Then, using the retrieved answers, GPT-4o-mini generated the final answer. In this blog, we will get rid of the embedding file and use a vector database instead, the code will be repurposed to be smaller in size in order to deploy the chatbot using Docker and AWS.

May 1, 2025 Read
RAG Chatbot: Vector Database & Deployment

In a previous blog, we created a RAG chatbot using Qdrant, and FastAPI. In this blog, we will deploy the chatbot as an API using Docker and AWS.

April 29, 2025 Read
RAG Medical Chatbot

A few years ago, when I started delving deeper into programming, AI was one of the main topics that captivated my interest. It was only natural for me to stumble upon this subject since I was drawn to scientific programming and Python. Back in the day, AI wasn’t the hype as it is today. Most importantly, when it was discussed, it was associated with different domains, not just LLMs as it is today.

April 9, 2025 Read
Reflections on Changing Jobs

After a long pause, here I am writing a blog post once again. Recently, I got distracted by many things, and I fell into a cycle of procrastination, but arriving late is better than never. I am now working with a new team and using a new tech stack. While writing this post, I had been working with them for about eight months. This gave me more than enough time to reflect on the changes happening in my life.

February 2, 2025 Read
With due apology to front-end developers

Dear front-end developers, I owe you all an apology! Let me start by introducing myself a bit. I studied mathematics at university, and during that time I did some scientific programming, mostly solving differential equations, linear algebra, statistics, and optimization problems. This was done using Python and Matlab. After graduation, I delved more into “serious programming” and started learning C++ and Java, I liked working with C++ and did a few projects with it.

March 23, 2024 Read
From random walk to diffusion

Randomness is an interesting concept, we have seen in previous blogs how it can be harnessed to compute mathematical constants, and even create a universal computer. In this blog we will see how randomness can be used to model diffusion. Diffusion can be defined as the movement of particles from a region of higher concentration to a region of lower concentration. This is a common phenomenon and can be observed in our daily lives.

October 22, 2023 Read
Enhancing Recursion with Memoization

In this blog, we will go over an example of recursion and how we can use something called memoization to increase the speed of the code. The Fibonacci Sequence If you’ve never heard of it, it’s quite simple, just start with two numbers 0 and 1, and add them together to get the next number in the sequence (yeah, that’ll be 1 once again). Now add the new number with the one just before it to obtain the next number, so 1 + 1 and that is 2.

April 17, 2022 Read
Puppeteer vs Selenium

This blog is for learning purposes only, you can find the complete code on my Github go there to find the instructions necessary to run the code. Introduction In a previous blogI created a selenium bot that performs the 10fastfingers typing speed, it scored 960 WPM. This code was far from perfect, I did it quickly without taking into consideration the best performance that could be achieved.

November 4, 2021 Read
Selenium Speed Test

This blog is for learning purposes only, you can find the complete code on my Github go there to find the instructions necessary to run the code. Background The first time I ever used Selenium, I had to type a string into a search bar. Doing so, I couldn't see if a string was typed at all, to the point where I thought maybe it doesn't actually type words.

October 28, 2021 Read
Storybook with React

In this blog, I will be showing how to use Storybook with React and talk a bit about its benefits. I have used Storybook during my first job as a frontend developer, and I enjoyed every moment of it. What is Storybook Here’s a description from the official website Storybook is an open source tool for building UI components and pages in isolation. It streamlines UI development, testing, and documentation.

October 24, 2021 Read
  • ««
  • «
  • 1
  • 2
  • »
  • »»
Navigation
  • About me
  • Skills
  • Projects
  • Blogs
Contact me:
  • Email: ahmadhamze@yahoo.com

Toha
© 2021 Copyright.
Powered by Hugo Logo