Hi! 👋

Welcome to

Dong's Notes

This blog was primarily created as a place for me to record what I’ve learned. However, if the posts here can also be of help to you, that would make me very happy.

The content on this blog will focus on exploring the essence of problems, boosting productivity, and creating as much leverage as possible. From the book The Effective Engineer, I learned that effectiveness comes not only from improving personal skills, but also from choosing high-leverage activities. For me, sharing knowledge is one of those activities, as it helps me organize what I’ve learned, and can also support others in their growth.

  • Write to learn
  • Share knowledge
  • Grow together
Dong's Notes

Latest posts

View all posts →

Save data less in database using theory of bit in C#

Using bit fields in C/C++ might be familiar to you. In C/C++, bit fields allow you to create multiple variables within a single byte, within the limits of the bit representation. Today, I’m sharing a similar technique for C#. It’s important to note that this method doesn’t exactly mirror C/C++ bit fields. Instead of optimizing variable size at runtime, it focuses on optimizing data storage. This post will guide you through this technique and compare it with C/C++. ...

CSharp Tips

Changing default Grub boot options

Many people install dual boot both Windows and Linux. Some of them prefer set up Linux as a primary Operating System while some want to set Windows as their primary OS. After you install dual boot and start your computer, the Grub boot options will appear for you to choose, OS which you want to enter. If you prefer to have Windows as primary OS, this is inconvenient. The good news is that you can customize the priority OS in Grub boot. ...

Linux Tips

Bit Fields in C++ devide many variable with one byte

Structs are essential in C/C++ for creating new data types that simplify variable management. However, a lesser-known feature of C/C++ structs is Bit Fields, which allow you to allocate a specific number of bits for a variable, optimizing memory usage. Introduction Bit Fields allocate adjacent memory positions to hold a series of bits. For example, instead of using 8 bytes to store 8 flags (which would waste 54 bits), you can store them in a single byte by dividing the byte into different bit regions. ...

C/C++ Tips

Books

View all books →

I hope this will be a valuable reference source for you.

— Le Van Dong