C++ Bitwise Operations Fundamentals: Bitwise Extraction and Flag Setting

In actual C++ development, bitwise operations are a common technique, especially when dealing with system states, flags, or control bits. Bitwise operations can provide very efficient solutions. This article will illustrate how to use bitwise operations to retrieve and set specific flags through an example.

Bitwise Operations Fundamentals

In computers, data is stored in binary bits (0 and 1). Bitwise operations are operations performed on these binary bits. C++ provides several commonly used bitwise operators:

Upgrading from a desktop to a 2.5G network card, accelerating local area network connectivity.

Desktop hardware three-in-one, in the previous text we mentioned PCIe adapter for solid state drives, where did the old SSDs go? Of course there was no waste, were any of them broken, disassembled and installed on the newly purchased ‘MechMaker Mini-3765H’ (bought a year ago).

The new machine has powerful hardware specifications: 2.5G dual network interface, PCIe4.0, WiFi6.

Recently moved house and my room doesn’t have a dedicated router for networking, all the machines are connected via wireless network; the ASUS motherboard desktop wireless card performance wasn’t great, or perhaps it was the router’s wireless access, which resulted in slow upload speeds between local networks, leading to poor network speeds between the machines. I purchased a 2.5G NIC and installed it on the desktop.

ASUS Z490 motherboard has too many disks, resulting in intermittent disk unrecognition.

Continuing from the previous text, an issue suddenly arose where the wireless network card was unable to be recognized. Before rebuilding the partitions, I had also researched other solutions online, such as: removing the motherboard battery and disconnecting power for fifteen minutes; upgrading to the latest version of the BOIS driver, but all attempts were unsuccessful.

Thinking there were still tasks to complete, I switched to a limited network by pulling a web across from the living room into the room. However, this is when the problem returned – wired networking was also unable to be recognized. I then resorted to the ultimate solution of reinstalling the system, which resulted in partition loss during the boot process. If the issue had consistently occurred, I wouldn’t have spent so long troubleshooting it; the ASUS disk conflict is intermittent and triggered by unstable system restarts.

Last week, I purchased a new 2TB solid-state drive from长江存储 (Jiangang Chengsu – Yangtze Storage) with an M.2 interface, and the machine never rebooted until yesterday when I shut it down once.

Windows Built-in Disk Cleanup Tool: Storage

I’m not sure from what version it started, but in Windows 11, the Disk Cleanup tool has been significantly improved and become much smarter.

The key is that it’s an official tool, so it won’t accidentally delete files, won’t have ads, won’t have pop-ups, won’t have background processes, or any unnecessary elements.

You can access the Disk Cleanup tool in Windows 11 by going to Settings > System > Storage > Temporary Files.

Docker Domestic Mirror Proxy Failed

Deploying Docker on domestic servers, after deployment, if the company doesn’t provide a registry center, the first thing developers need to do is configure a domestic registry mirror address. It’s lucky that today there was a server configured with a registry mirror address, but when pulling images, it kept failing to pull.

Error response from daemon: “https://registry-1.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

Troubleshooting and Repair Attempts

Initially, we attempted to switch to alternative mirror acceleration addresses, hoping to resolve the issue. However, as expected, the problem persisted.

The End of the Age of Wild Capitalism: The Era of League of Legends Esports Concludes

The esports industry has experienced rapid development over the past decade and a half, becoming an increasingly significant cultural phenomenon worldwide. Particularly MOBA games like League of Legends (LoL), which is often abbreviated as LOL, not only provide players with the joy of competition but also inject powerful momentum into capital, driving the flourishing development of various esports platforms and events. However, all of this has entered a phase of gradual decline with the influx of capital and the rise of the entertainment industry. The rise and fall of PandyTV, the competition between DouYu and Huya, marks the end of the “wild capitalism era,” and the favorable conditions – time, place, people, and heaven – for esports seem to be starting to change.

Hong Kong Exchange, History of Virtual Currency Development

  • Bitcoin once again elected as US President, also bringing virtual currencies back into the public eye. The Hong Kong Exchange has been actively deploying related business, and here’s a brief record of its virtual currency development history.

“Fee reduction, fee reduction! Domestic mega-ETFs are experiencing a large-scale fee reduction.”

  • Hua Tai Bei Rui HongShan 300 ETF and related funds issued a notice lowering the overall fee rate to the lowest among peers.