Troubleshoot disabled issues with Google’s new version features

Problem recurrence Recently, I suddenly took over a bug in the backend. This backend has not been iteratively updated for a long time. I am not familiar with the business, so I can only look at the source code. The problem reappeared quickly. The repair operation in the test was also correct. It was because […]

RSA encryption and decryption (Java version) (no length limit)

import javax.crypto.Cipher; import java.io.ByteArrayOutputStream; import java.security.Key; import java.security.KeyFactory; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.NoSuchAlgorithmException; import java.security.PrivateKey; import java.security.PublicKey; import java.security.interfaces.RSAPrivateKey; import java.security.interfaces.RSAPublicKey; import java.security.spec.InvalidKeySpecException; import java.security.spec.PKCS8EncodedKeySpec; import java.security.spec.X509EncodedKeySpec; import java.util.Base64; import java.util.HashMap; import java.util.Map; public class RSAUtil2 { public static final String KEY_ALGORITHM = “RSA”; private static final String PUBLIC_KEY = “RSAPublicKey”; private static final […]

Conversion between strings (char*, const char*, char[], string, QString, QByteArray, int, double)

Table of Contents 1. Several methods to apply for space: 1. C language 2.C++ 2. Conversion of each string 1. char* and unsigned char*, char* and const char*, char* and char[ ] 2. string and char*, string and unsigned char*, string and QString, string and int, double 3. QString and int, double, QString and char* […]

Self-developed a simple version of OkHTTP

One, background In order to thoroughly understand the principle of okhttp, I developed one based on okhttp. Second, ideas If the business does not issue a request, it is packaged with AsyncCall, and then under the action of the network distributor, each specific Call is executed. These specific Calls will pass through layers of interceptors […]

Launcher3 custom desktop application [Android13 version]

Article directory summary Change default layout Dynamically add apps to the home screen in code summary Summary Launcher3 project address: AOSP source code/packages/apps/Launcher3 Launcher3 customizes desktop applications. I currently have two methods in practice: Change the default layout file and specify which apps to add to the home screen Dynamically add apps to the home […]

springboot integrates ShardingSphere5.2.1 (latest version)

The content includes two methods: table configuration file type and custom type. Unable to direct the last code, crazy pictures config MyBaseMapper package cn.com.lyb.config; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import java.util.List; public interface MyBaseMapper<T> extends BaseMapper<T> {<!– –> /** * Batch insertion, equivalent to insertList */ int insertBatchSomeColumn(List<T> entityList); } MybatisPlusConfig package cn.com.lyb.config; import com.baomidou.mybatisplus.annotation.DbType; import com.baomidou.mybatisplus.core.injector.AbstractMethod; import […]

Caused by gcc/c++ version inconsistency problem

1. Question The system of the rk3566 board is ubuntu20.04 focal, and /etc/apt/source.list is replaced by Alibaba source. The x86-67 PC host system is ubuntu20.04 jammy /etc/apt/source.list replaced by Tsinghua source Follow rknpu2’s development tutorial Rockchip_Quick_Start_RKNN_SDK_V1.5.2_CN.pdf: After the cross-compilation is passed (cross-compilation issues are recorded in this document: CSDN), push the relevant generated files to […]

Mybatis framework construction (eclipse version)

1. Preparation before setting up the environment 1. Create a database for testing CREATE DATABASE `shiyanyi`; USE `shiyanyi`; DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int NOT NULL AUTO_INCREMENT, `username` varchar(32) NOT NULL, `brithday` date DEFAULT NULL, `sex` char(1) DEFAULT NULL, `address` varchar(256) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT […]