Useful Tools & Commands in Linux (To be updated)There are many useful tools in Linux to help us to explore the world. However, different from graphic tools, they are in fact some instructions in Linux, which motivates me to record some of them here, for sharing and my poor memory. strace Strace is...Apr 19, 2022 路 2 min readyaohui.hashnode.dev
The speed of value type comparison in C#Introduction In C#, there is a type named ValueType. Numeric types such as int, double are all derived from it. Sometimes we may want to compare two ValueType object (the two object are actually the same numeric type). In some conditions, though we c...Apr 18, 2022 路 3 min readyaohui.hashnode.dev
Little Tricks of C/C++This is a blog recording little tricks I meet or use in C/C++. I will update this blog every time I meet a new trick. (If my memory is good enough to remember this blog馃槀) Use "R" to cancel escape of string. Use gsl::narrow to cast from one type to ...Apr 11, 2022 路 1 min readyaohui.hashnode.dev
How to Solve Undefined Reference to Template Class Error of C++Recently, in my open-source project Num.NET, a problem puzzled me. The problem I abstract my code as below: define.h template<typename T> class Methods{ public: T methodA(T inp); void methodB(vector<T> &inp, int c); } impl.cpp template<type...Mar 1, 2022 路 3 min readyaohui.hashnode.dev
What I learned from Microsoft as an SDE InternSince 4th, January, I have worked in Microsoft as an intern for nearly two months. During the period, I really learned a lot from my colleague so that I want to record them here. Do exactly what the project supposes you to do The first lesson from Mi...Feb 24, 2022 路 5 min readyaohui.hashnode.dev