Yoshihiro Hokazono's funny website
I’m planning to write about various topics, including technical ones.
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.
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.
Hypothesis: Engineering is Subjective
Engineering is often subjective, and it should not be assumed that talent is easily replaceable.
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.
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.