Host byte, network byte, observe directly through debugger

Throughout the history of computer development, there has been no unified standard for data storage. There are two commonly used rules for byte arrangement. For example, if the low-order bits of a multi-digit number are placed at smaller addresses and the high-order bits are placed at larger addresses, it is referred to as little-endian; conversely, it is called big-endian. In network applications, byte order is a factor that must be considered because different types of machines may adopt different standards, so they are all converted according to the network standard. According to reading habits, big-endian byte order is more consistent with the left-to-right reading order.

Back then, as a young boy, he might have had talent, but it wasn’t common.

It’s my seventh year in the job, and I’m not getting as much positive feedback on the code I write. Let me reflect on how I ended up on this coding path. People’s choices, especially when they’re younger, tend to follow positive reinforcement more closely – actively avoiding harm and seeking benefit.

China’s COVID-19 lockdown easing

The policy announcement was incredibly sudden, and its implementation was swift – the Health Code QR code was lifted, and checks for green codes in public places ceased. Browsing the Chinese-language version of The New York Times, the entire front page was dominated by discussions about China’s reopening.

C11: sleep for vs yield

While reviewing the code, std::this_thread::yield() suddenly popped into my view, a syntax sugar from C11 that I’d used quite a bit, but hadn’t noticed before.

Linux Server, Reset MySQL Password

I had an idle Tencent Cloud server that was expiring at the end of the year and I hadn’t planned to renew it. So, I decided to deploy a MySQL database for development purposes. When reinstalling the system, I wanted to save time and chose a third-party image provided by Tencent Cloud, which already had MySQL installed. I thought the system should include a Readme file or similar documentation explaining the password and deployment path.

Onomatopoeia of the Night

Here’s the English translation of the provided text:

Within the vast system of Chinese characters, the character “命” (life/fate) is utterly unique; there isn’t even a single homophone. Perhaps this subtly suggests that each person’s life has only one opportunity, cannot be replicated, and cannot be relived.

During leisure time, I browsed the rankings on Qidian Chinese Net, and “The Nomenclature of Nights” consistently topped the charts with an overwhelming number of monthly votes, far surpassing the second-place book – a gap that was truly daunting. For many years, I had primarily read works by well-known authors like Tang Jiaqian and Ergen. This time, I decided to try a new author’s work and experience a different reading sensation.

A Brief Overview of Automated Testing

The investment in testing for financial trading systems far exceeded that of other systems, with tedious test steps repeatedly executed and a low ROI. As projects and personnel changed, uncontrollable factors inevitably introduced, a common situation being the modification of a field output from Interface A impacting the results of Interface B. With each version release, risk also accumulated.

Theoretical Knowledge

  • How to Measure the Value of Automation? An automation testing ROI = (Manual Execution Time) * (Number of Runs) / (Development Cost + Maintenance Cost)
  • Which Features Should Be Automated? Frequently used features that are unlikely to change. Writing automated test code for this type of interface yields the highest returns.
  • Why Choose This Timing to Drive Automation Testing? Not appropriate near project launch – distant water doesn’t quench immediate thirst; automation is a long-term return model. It’s most suitable when the project is already in a production environment and within a stable release cycle.

Framework Selection

Given the task of automation testing without prior practical experience, a typical starting point is to open a search engine and find tools and frameworks that can be used with the current system’s technology stack, review the user manuals, and get started. If you can immediately find a suitable tool, congratulations, perfect start!

Why Do We Need to Learn a New Language?

Starting from my academic years, I’ve been working with C++ for over ten years. So, why do I need to learn other programming languages?

Work experience: Lacking experience in elegant module design, C++ syntax is freeform. Learning other languages helps me guide the development of more elegant designs.

I often use them when writing some tools. The design principles for low-level libraries and business modules are also becoming clearer.