Multi-chain support is not as simple as you think

A practical reflection on multi-chain wallet integration Finally, I have some free time to sort out the code. The Web3 project has access to multi-chain wallet connection functions, mainly involving Ethereum, Polygon, BSC and Solana. At first glance, it seemed like it was just a matter of “doing a few more sets of compatible logic”, but after I actually implemented it, I discovered that many things were actually not as simple as I thought. ...

July 5, 2025 · 15 min · MoeJue

[Notes] Git Common Commands by Scenario

For common Git operations in everyday development. It’s organized into categories to help you get started or get started. 📦 Basic Commands order corresponds English -ity, -ism, -ization git init Initialize a Git repository (create a .git folder). git clone <url> Clone the remote repository to local. git status View the current working directory status (file modifications, staging, etc.). git add <file> Adds a file to the staging area. git commit -m "message" ...

June 2, 2025 · 4 min · MoeJue

What is Web3.0, and what does it have to do with blockchain?

Another new inexplicable word -. - I can roughly summarize it into the following points: What is web3.0 Web 3.0 (Web3) is the development direction of the next generation of the Internet, aiming to create a more decentralized, user-controlled and data-protected network environment. Different from the previous Web 1.0 (static web pages) and Web 2.0 (dynamic, interactive web pages and social media), the core concepts and technologies of Web 3.0 include the following aspects: ...

June 17, 2024 · 5 min · MoeJue

Thermal Bluetooth printer development

Recently, I have been working on receipt printing. The project requirement is to implement it on both IOS and Android. I was confused when I started doing it. Then I found a lot of information on the Internet, stepped on a lot of pitfalls, and read a lot of articles. The result turned out to be okay. Bluetooth printers are generally divided into two printing modes, receipt printing and label printing. ...

November 5, 2019 · 15 min · MoeJue

WeChat authorized login

Documentation: https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421135319 The authorized login of WeChat is similar to the authorized login of QQ, Sina and other platforms, and both adopt the OauthOAuth2.0 authentication method. There are two types of WeChat authorization: Silent authorization Pop-up authorization requires manual consent from the user. Explanation of the differences between the two scopes Web page authorization initiated with snsapi_base as the scope is used to obtain the openid of the user who enters the page, and is authorized silently and automatically jumps to the callback page. What the user perceives is that they directly enter the callback page (often a business page) Web page authorization initiated with snsapi_userinfo as the scope is used to obtain the user’s basic information. However, this kind of authorization requires the user to manually agree, and since the user has agreed, there is no need to pay attention, and the user’s basic information can be obtained after authorization. The “Interface for Obtaining User Basic Information” in the user management interface can obtain the user’s basic information based on the user’s OpenID only after the user interacts with the public account through messages or after the follow-up event is pushed. This interface, including other WeChat interfaces, requires the user (i.e. openid) to follow the official account before it can be called successfully. ...

April 5, 2019 · 6 min · MoeJue

WeChat JSAPI payment

I have been doing business related to WeChat some time ago. Although it is not a new technology, I have never had the opportunity to come into contact with it before. Then I stepped on some pitfalls and took the time to organize and record it. There are 7 types of WeChat payment, including: payment code payment, JSAPI payment, Native payment, APP payment, H5 payment, mini program payment, and face payment. WeChat JSAPI payment is used in this business: the user enters the merchant’s H5 page by scanning the QR code on WeChat, following the official account, etc., and calls JSSDK within WeChat to complete the payment. ...

March 30, 2019 · 7 min · MoeJue

[Notes] Comprehensive list of commonly used Git commands

Following the last time, I took the time to sort out a relatively complete list of commonly used Git commands, and found a great map, very high-definition (1759*3162). View, add, submit, delete, retrieve, reset modified files git help # Display help for command git show # Display the contents of a certain commit git show $id git co – # Discard workspace modifications git co . # Discard workspace modifications ...

June 16, 2018 · 5 min · MoeJue

Installation of PHP environment under Linux

Learning environment: Centos 7.2 official version _64 bit # Update source yum update 安装nginx yum install nginx -y 安装mysql wget https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm yum localinstall mysql57-community-release-el7-11.noarch.rpm 安装PHP7.2 rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum update yum install -y php72w-cli php72w-common php72w-dba php72w-devel php72w-fpm php72w-gd php72w-imap php72w-mbstring php72w-mysql php72w-pdo php72w-pdo_dblib php72w-pear php72w-pecl-igbinary php72w-pecl-xdebug php72w-process php72w-xml php72w-xmlrpc php72w-opcache php72w-pecl-memcached php72w-pecl-mongodb php72w-pecl-redis 启动服务 service nginx start service mysql start service php-fmp start /usr/sbin/php-fpm –nodaemonize –fpm-config /etc/php-fpm.conf > /dev/null 2>&1 & ...

May 7, 2018 · 2 min · MoeJue

Simple Steps for Using Git

This article does not elaborate any conceptual knowledge, just make a note, simply is the use of the steps, if you encounter obstacles, please Google it! Using SSH to Bind Git to GitHub 1. Generate SSH key ssh-keygen -t rsa Specify the RSA algorithm to generate the key, after which two files will be generated, id_rsa and id_rsa.pub, i.e., the key id_rsa and the public key id_rsa.pub. For these two files ...

April 3, 2018 · 2 min · MoeJue

Use .htaccess to bind subdomain names to subdirectories

Under normal circumstances, a virtual host is only allowed to bind one domain name to the root directory. People who have used emlog should be familiar with the static links in it. It is a typical use of .htaccess files to redirect domain names to web pages. Use .htaccess to bind domain names to subdirectories. The prerequisite is that your space server must support the rewrite function of apache. Only in this way can .htaccess be used. If your space is a Linux server, it is usually enabled by default. That is, you can bind domain names to subdirectories and multiple sites in one space. ...

January 22, 2018 · 3 min · MoeJue