Posts
Spring
Do not live with a poor heart. Look towards beautiful things, help the weak, and no matter how cold it is outside, we must always carry spring in our heart.
Posts
Several Patterns for Handling States in C++
In programming, it is often necessary to control some form of state. This article summarizes several patterns for managing states.
Posts
The Superstition of Adding 0.5 Then Casting to int for Rounding a Float Value
To round a float value, adding 0.5 then casting to int is an amateur approach. Professionals use std::nearbyint.
Posts
Hypothesis: Engineering is Subjective
Engineering is often subjective, and it should not be assumed that talent is easily replaceable.
Posts
How to Make 'yum install' Error on Non-existent Package Names
When using ‘yum install’ and specifying a non-existent package name, it returns exit code 0. This article explains how to change this behavior.
Posts
Expected Value of the Cosine of a Random Variable Following the Standard Normal Distribution
I calculated the expected value of the cosine of a random variable following the standard normal distribution.