- Batch update local Git repositories and resolve legacy permission issues.

Fatal error unsafe repository ('/home/repon' is owned by someone else)

The projects within the team have dependencies on each other, and due to historical reasons, submodules haven’t been used to manage these project dependencies. Daily development requires manually updating the repository code one by one, otherwise various strange issues may arise.

WPF Learning Resources

The potholes in the mini-program development haven’t been filled, and we’ve just dug a new one with WPF. Recently, the company has been experiencing some turbulence, and remote collaboration communication is invariably less efficient than desired. So, we’ve taken on the development of client interfaces.

The Opening of Financial Anti-Corruption

The Central Committee of the Communist Party of China: will intensify anti-corruption efforts in state-owned enterprises and the financial sector, and thoroughly rectify “the four prevailing tendencies.”

Communist Party of China Central Politburo

The Political Bureau of the Central Committee of the Communist Party of China held a meeting on September 27, reviewing the Comprehensive Report on the First Round Supervision of the First Session of the Twentieth Party Congress. Xi Jinping, General Secretary of the Communist Party of China, chaired the meeting. The meeting emphasized that the supervision and oversight work should be used as an opportunity to further strengthen the leadership of the Communist Party in all aspects, urging supervised party organizations to raise their political stance, conscientiously fulfill the responsibilities and missions assigned by the Central Committee, continuously enhance the core functions and competitiveness of state-owned enterprises, consolidate the important material and political foundations of socialism with Chinese characteristics, intensify financial institutions’ service to the real economy and national strategies, and promote high-quality development. It was stressed to coordinate development and security, firmly establish bottom-line and limit thinking, adopt effective measures to prevent and mitigate major risks, and safeguard the safety line. It was also necessary to advance comprehensive Party self-discipline to greater depths, consolidate the responsibility of the secretary of the党委 (party committee) as the first person, strengthen the responsibilities of leadership committees members “dual duties in one position,” and enhance the supervision responsibilities of disciplinary and supervisory organizations, highlight strengthening supervision of all levels’ “one leader”, intensify anti-corruption efforts in state-owned enterprises and financial sectors, deeply rectify “four prevailing styles,” deepen reform, improve systems, promote source governance, and facilitate treatment of problems comprehensively. (Xinhua)

Revenue Generation Business Model: Raffle/Sweepstakes

Live streamers sending iPhones? Mini-program ranking rewards? Various live streaming platform gift giveaways?

These three seemingly unrelated items are, in essence, different monetization models for free traffic – a bit like a financial game.

Platform Lottery for Gifts

In typical scenarios, users reset their acquisition of platform currency and purchase gifts to send to the host, “Xin Yi” (Hearty), with each platform having another gameplay mechanic. After users acquire platform currency, they no longer directly send gifts but instead spend a certain amount of currency to participate in lottery activities, obtaining limited high-value gifts.

ZeroTier VPN

  • I recently got a mini host for the office, thinking it would be convenient to configure an environment and have occasional access at home. I temporarily deployed internal network penetration using frp – specifying port forwarding, which requires a public server with a connection quality dependent on its bandwidth. Instead, I experimented with a fresh Zerotier virtual LAN, similar to a VPN, where I created a virtual network card locally and all machines joined it into a single virtual network.

What is ZeroTier

ZeroTier is a software-defined wide area network (SD-WAN) solution that allows users to create secure virtual networks between devices in different geographic locations. Through ZeroTier, you can easily connect multiple computers, servers, and devices into a virtual, encrypted network – as if they were on the same local network. This helps developers and IT professionals securely share data and resources across different locations without complex network setups or VPN configurations.

VMware Virtual Machine Disk Space Optimization

When installing a development system with VMware virtual machines, it’s generally recommended to allocate extra disk space. Over time, the local disk space consumed by the VM will far exceed the actual size of its files.

Scenario Description

The df -h command revealed that the current machine was using 60GB of disk space, and after deleting all snapshots and clone images, the local virtual machine still occupied significantly more than 60GB, further straining the already limited hard drive.

Stable Diffusion – The Love, Hate, and Drama of Installing it from Scratch

Domestic resources are basically all recommending Autumn Leaf’s one-click deployment package, thinking that they are open-source projects based on Python, so deployment wouldn’t be very complicated, let’s try to start from scratch.

I was messing around with AI-generated images and specifically changed my graphics card, a beginner version of the 3060 12g; the seven-year-old 960 retired gloriously.

The core pytorch cuda installation, which I previously encountered issues with when writing Python game helper scripts (I had installed it locally before), still presented problems – the cuda encryption consistently failed to activate.

Program optimization should not attempt to fight against hardware.

one loop thread, the time taken has already been at the microsecond level, switching servers resulted in a backlog of up to 60,000 packets, to almost none.

In single-threaded loop processing data scenarios, the CPU performance depends on factors such as clock frequency, cache size, and instruction set architecture. Generally, CPUs with higher clock frequencies, larger caches, and more advanced instruction set architectures perform better in single-threaded data processing.

Single-Threaded

Performance improvements aren’t always achieved by adding threads; it’s not necessary to overcomplicate things. Refine the project workflow, identify time-consuming bottlenecks, and determine if a single thread can meet the requirements. Considering single-threaded approaches reduces complexity and minimizes potential issues.