Derive Most Math Trigonometry Formulas via Euler Identity

When I was in high school, I remember that I had to memorize all trigonometry formulas. I didn’t have a single way to resort to when I was locked. Fortunately, As I will show here, most trigonometry formulas can be derived via simple algebraic modifications of Euler's Formula. This way, any time we are locked and can’t remember what the formula was, we can simply derive it. Euler’s Formula $$e^{ix} = \cos(x) + i\sin(x)$$ ...

September 3, 2025 · 8 min · 1695 words · Amir

Setting Up Caddy for Reverse Proxy is dead simple

I’ve recently found Caddy as a tool to assign urls to my docker services and I’m quite happy with it. I’ve done other reverse proxies like Nginx and Traefik in the past but they are too complicated for my needs. Let’s start. Let’s say that you want to assign your url like newservice.amirpourmand.ir to a service in a VM with a public IP address. I’ll go you through it. Also, It has multiple benefits. The first one is that you don’t have to do IPs. You don’t have to deal with ugly IPs that may change in the future. You deal with Secure URLs. The second is that the connection is https. ...

July 3, 2024 · 3 min · 533 words · Amir