[C + + basic] usage and constant reference
1.1 basic use of references
Function: alias the variable. The new alias points to the same block of memory.Syntax: data type & alias = original name
#include<iostream>
using namespace std;
//Reference, alias variables
int main(){
int a = 10;
int &b = a;
cout << "a = " << a << endl;
cout << "b = " ...
Posted by daveh33 on Tue, 22 Feb 2022 03:28:04 +0100
Quanzhi H64 platform el1_ Debugging analysis of abnormal interrupt in entry
1. log analysis
[ 3537.282130] PC is at do_page_fault+0x40/0x2e0
[ 3537.282130] LR is at do_translation_fault+0x5c/0xd4
[ 3537.282130] pc : [<ffffffc000095704>] lr : [<ffffffc000095a00>] pstate: 800001c5
[ 3537.282130] sp : ffffffc027b38130
[ 3537.282130] x29: ffffffc027b38130 x28: ffffffc027bdc000
[ 3537.282130] x27: ffffffc0009f ...
Posted by learning_php_mysql on Tue, 22 Feb 2022 03:08:17 +0100
Throw away Electron and embrace Tauri based on Rust
What is TauriTauri is a cross platform GUI framework, which is basically similar to the idea of Electron. The front-end implementation of Tauri is also based on a series of Web languages, and the back-end of Tauri uses Rust. Tauri can create smaller, faster and more secure cross platform desktop applications.Why Rust?Rust is a language that giv ...
Posted by smonsivaes on Tue, 22 Feb 2022 03:08:02 +0100
Please, use three JS make 2D pictures have 3D effect, cool, okay 💥
It is only used for secondary publication, research, publication and other illegal materials. It is only used for secondary publication, research, profit-making and other illegal materials.backgroundWhen I visited sketchfab, I saw many examples of two-dimensional plane to three-dimensional model, so I followed their example and used three JS + ...
Posted by n14charlie on Tue, 22 Feb 2022 03:03:48 +0100
Talk about how to synchronize data to the apollo configuration center
prefaceFriends who have landed micro service projects should be familiar with the configuration center. The configuration center can be used for centralized management of configuration and hot update of configuration. At present, the common configuration centers in the market include QConf, spring cloud config, diamond, disconf, apollo, nacos, ...
Posted by Or1g1naL on Tue, 22 Feb 2022 02:41:07 +0100
Several Tomcat performance optimization directions
Open Tomcat management interface
Modify Tomcat \ conf \ Tomcat users XML add user
<role rolename="manager"/>
<role rolename="manager-gui"/>
<role rolename="admin"/>
<role rolename="admin-gui"/>
<user username="tomcat" password="tomcat" roles="admin-gui,admin,manager-gui,manager"/>
Note: Tomcat9 also needs t ...
Posted by HostingTrade on Tue, 22 Feb 2022 02:38:49 +0100
Go custom JSON serialization
By using structure tags, adding whitespace and encapsulating response data, we have been able to add a lot of custom information to JSON responses. But what happens when you need more freedom to customize JSON when that's not enough?
To answer this question, we first need to talk about some theories of how Go handles JSON serialization. The ke ...
Posted by eojlin on Tue, 22 Feb 2022 02:12:43 +0100
Creating simple classes in Matlab
catalogue
Create a simple class
Design class
create object
Access properties
Call method
Add constructor
Method Vectorization
overloaded function
BasicClass code list
Create a simple class
Design class
The basic purpose of class is to define the object that encapsulates the data and the operations to be performed on the data. For ...
Posted by ineedhelp on Tue, 22 Feb 2022 02:07:11 +0100
Basic knowledge of JavaScript Chapter 6 - functions (including a large number of case studies)
preface❤️ The rainbow after the rain is more beautiful, and the suffering life is more brilliant ❤️
1, JavaScript function
(1) Concept of function
In JS, many codes with the same or similar functions may be defined, which may need to be reused. Although the for loop statement can also realize some simple repetitive operations, it has lim ...
Posted by Birch on Tue, 22 Feb 2022 02:06:26 +0100
Android HAL hardware abstraction layer loading process
The hardware manufacturer is protecting the core code and will present the core implementation in the HAL layer in the form of so library. When necessary, HAL will automatically call the relevant shared library.
Format of shared library
<MODULE_ID>.variant.so
id: the unique number of the hardware moduleVariant: the variant name. T ...
Posted by maralynnj on Tue, 22 Feb 2022 02:00:43 +0100