January 10, 2025
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).
...
November 25, 2024
The fundamental property of a matrix is the transformation space, so eigenvalues describe the scaling strength in a certain direction. Eigenvectors describe that direction.
...
November 21, 2024
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.
...
November 12, 2024
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?
...
March 18, 2024
With a coding scheme where the minimum hamming distance between two valid codewords is m, it can detect r-bit errors at most when
...
March 18, 2024
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
...
November 7, 2023
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.
...
October 29, 2023
Most of these patterns have one thing in common, which is to connect producers and consumers through the interface. The abstraction of the interface is the key. It reflects a deep understanding of the underlying type. Knowing this can simply things, no matter what scenario we are dealing with, or what language is being used.
...