In our previous post, we explored the concept of a convex hull. This time I want to look at a beautiful implication of that geometric boundary, one that perfectly bridges pure mathematics, classical physics, and even modern artificial intelligence. In the world of LLMs, the convex hull represents the boundary of an AI's knowledge base. Simply step outside that geometric perimeter of training data, and the model begins to hallucinate.

Ever wondered how game engines detect collisions between two complex bodies? Calculating a perfect collision between highly detailed shapes would be nearly impossible to run in real time. Instead, game engines simplify the math by approximating those bodies with their convex hulls—effectively creating the "tightest possible wrapping" around the object to keep the game running fast. If we take the simplest example: where our object is just a set of three points, then its convex hull becomes the solid triangle that has those points as its corners.

To illustrate, consider a classic three-tier application hosted on a Kubernetes cluster, consisting of a frontend, a backend, and a database pods. In a production scenario, the frontend communicates with the backend, and the backend handles requests to and from the database. Because the backend acts as an intermediary, there is typically no architectural need for the frontend pods to communicate directly with the database pods.

Inspired by the hexagonal shape of France, I wondered: how many ways can we connect all its 6 vertex cities so that each can reach the others without any redundant paths, that is to say without cycles. It’s not like I’m trying to reinvent the wheel here. Honestly, I’m just showing off my knowledge of a beautiful problem that has been known to mankind for over 180 years (since 1847), three years before the term "matrix" itself was introduced by James Joseph Sylvester in 1850. 

How can one derive Newton’s gravitational $\frac{1}{r^2}$ law by considering that planets orbit the Sun in elliptical trajectories?
In fact, even before Newton, Kepler’s laws already stated that planets move around the Sun in elliptical orbits. Here we will make the following assumption: we will assume that celestial bodies attract each other according to the $\frac{1}{r^2}$​ law, and we will derive the formula for the trajectory traced by a planet and verify that it is indeed an ellipse.

Hi folks! In this post I decided to create a complete flow of a Spring Boot application that demonstrates an upload and a display of an image on the home page. In fact there are dozens of ways to save an uploaded file on a hosting server and handle the names of the uploaded files. Here we are going to adopt a special kind of naming procedure. First of all we will remove non-alphanumeric characters from the file names except those of dots and parenthesis.

In the previous post we built a "hello world" application on Spring Boot. In this post we will be configuring the same application for a database connection.

Every time I want to start writing something about Spring Boot I realize that it will exceed any normal post size if I start describing all the steps in order to build the application from the scratch up to the point where the topic of my interest is.  So finally I came up with the idea of making a demo application as a starting point for my upcoming posts.

Recently, I added the MathJax on my website that allows me to write $\LaTeX$ formulas and I couldn't help posting something that involves Math, yet at the same time keeping it simple for a wide range of audience. So just let me start by a motivational story.

The pagination allows us to split the data content list into evenly distributed chunks and represent them as if separate pages, hence the naming. It also gives a user an opportunity to navigate easily through the pages. The best example I can come up with is the Goooooooooogle pagination, when you search something and the search result comes with a previous link, an increasing sequence of 10 consecutive integer links and a next link. Here we are going to create a similar one for a random entity data type using Spring Data JPA.