The simplest way to implement a Kubernetes cluster on AWS is to use the EKS (Elastic Kubernetes Service) managed service. However, it was found that EKS is expensive, with a starting price that is unrelated to EC2 compute costs, solely from EKS. To learn (save money), we will use bare EC2 instances to build a Kubernetes cluster and integrate ArgoCD to achieve CD (Continuous Deployment).
...Home
Do Not Be a Good Kid
In Chinese, there is a word “懂事” (dǒng shì), which means sensible, obedient, and mature.
But I want to tell you my friends, whoever tells us to be sensible, we tell them to fuck off. Whoever tells us to be obedient, they are our enemies.
To be sensible is to tell us to conform to the framework of others, and to be sensible is to be tamed. Remember, friends, we don’t need to conform to anyone’s framework, and if we do, others must sacrifice the same to adapt to our framework.
...Understanding Matrix Eigenvalues and Eigenvectors
The fundamental property of a matrix is the transformation space, so eigenvalues describe the scaling strength in a certain direction. Eigenvectors describe that direction.
...Understanding Matrix Determinant
The determinant has nothing to do with “equations”, it is a scalar.
The determinant is only applicable to square matrices, describing the volume of n n-dimensional vectors. For two dimensions, it is the area. A determinant of zero indicates that the matrix cannot span an n-dimensional space, at most n-1 dimensions, i.e., not full rank. So the volume is zero in n dimensions.
...Collisions in Poisson Process
This is problem that you may encounter, and I found a simple way to calculate it. The result looks correct after comparing with the actual data. A website receives an average of 1000 requests per hour, and can only handle one at a time, taking 1 second. When a request arrives, if the previous one has not been completed, an error will occur. How many errors will occur on average in an hour?
...Human Nature: To Be Utilized, Not Opposed
Human nature is something to be utilized, not resisted. Even apparent opposition is merely another form of leverage. This is akin to how we harness water, electricity, or coal—not by fighting their essence but by channelling their forces. Especially for adults, genuine change rarely stems from another’s will; it occurs only when profound pain disrupts their mental and physical state.
...Understanding Hamming Distance error detection and correction
With a coding scheme where the minimum hamming distance between two valid codewords is m, it can detect r-bit errors at most when
...Understanding Matrix Multiplication
Matrix multiplication has four cases, but essentially they are all vector operations.
- Vector dot product
- Matrix multiply vector (right multiply)
- Vector multiply matrix (left multiply)
- Matrix multiply matrix
A pattern for handling chained channels in Golang
When we use channels to serialize tasks, we create an asynchronous flow. It is easy to mess things up in asynchronous programming, especially if we have additional requirements like timeout and cancelation.
...An essential ingredient of happiness
For some people, losing possibilities or choices in their lives, or having a heartfelt acceptance of fate, can be quite distasteful. It is best to always be in a state with infinite opportunities. Otherwise, surprisingly, they feel unsafe.
...