Categories

130 pages

Computer

WeChat Mini Program Background and Development Environment

WeChat Mini Program Introduction and Development Preparation

Why Mini Programs Exist

  • Better Experience: Slow web loading and blank screens; native app experience is faster.
  • Standards & Management: For WeChat, onboarding and management Before mini programs were released, WeChat published an SDK called JSDk to open up some of the original WeChat capabilities: WeChat Pay, coupons. However, developers used web development languages to develop logic, bypassing some WeChat regulations. Mini Programs have their own description language.

What are Mini Programs?

Mini programs are applications that can be used without needing to download and install them. They realize the dream of having applications within easy reach.

Office migration, the servers are inaccessible.

Administrative notice, office relocation from the second floor to the fifteenth floor – a standard, routine desk move.

Design Sense

Office Building

Migration

Closing up shop, packing everything away, a familiar route, a new workstation – adjusting computer cabling, finding a comfortable posture to start working. (ÒωÓױ)! – Connecting the network cable, the servers frequently used by the team were inaccessible. I tried switching to wireless networking, and access was normal again.

Embedded Systems – Getting Started Part 1 – Technical Terms

Here’s the English translation:

“When I think of embedded systems, my mind immediately goes back to the 51-pin single-chip microcomputers and Texas Instruments we used in university labs.

LPA3399Pro is a visual host developed on the HiSilicon RK3399Pro platform, designed for portable computing hosts that require extensive visual computation. It features an integrated NPU compute unit with 3.0 TOPS of processing power and supports various algorithm models.

RV1109 is HiSilicon’s SoC for machine vision within its AI branch, featuring a dedicated NPU. RV1109 provides 1TOPS of processing power.”

AI-assisted programming, the evolution of productivity

“GitHub Copilot” was released less than two years ago, and “ChatGPT” has appeared. I don’t fully understand the underlying principles; I’ve been using them for a while. The two tools’ levels of assistance are completely different, but they have both achieved a significant increase in productivity.

A Collection of Less Commonly Used Git Commands

Less commonly used, but very useful git commands

Reinstalling the system caused changes to folder ownership on Windows.

The new version of git has added security checks, prompting an unsafe state and preventing further operation.

git config --global --add safe.directory
git config --global --add safe.directory "*"

New Computer Saving Account Password Information

git config --global credential.helper store

If the saved information needs to be updated, first clear out the old credentials

- Compiler - Callback Function - Performance Testing

  • Last year, an SDK was designed to handle encapsulating certain events and provide a class interface externally. During service initialization, the caller implements the corresponding classes and passes the object pointer to the module.
  • Familiarity with C11 piqued my curiosity, leading me to explore what would happen if these interfaces were implemented using lambda function objects instead of pure virtual function definitions. Compared to the traditional interface definition method, it seemed more flexible.
  • The question arose: with two different syntaxes, which one is faster from a performance perspective? Not understanding compiler principles, I decided to try out some code to find out.

Introduction

Online website, allowing you to select different compilers, compilation parameters, run code on the linux platform, or view corresponding assembly code.

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.

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.