[ โ Java] it is called [function] in C language and [method] in Java - this article clearly explains the "function" - Method in Java
๐ Write in front ๐
preface We must have learned about functions in C language. I believe you have a deep understanding of functions, because functions are used in C a lot. Especially when doing projects, they are written in modules. Java also provides you with "functions", but the names are different. In Java, they are called ...
Posted by ess14 on Fri, 22 Oct 2021 21:11:11 -0700
mybatis learning notes-04
1. Set log
Logs can facilitate our troubleshooting. They are not enabled by default. They need to be set in the core configuration file. name and value should be consistent with the official documents!
1.1 default log
<!--Set log default configuration-->
<settings>
<setting name="logImpl" value="STDOUT_LOGGING"/> ...
Posted by killerz on Fri, 22 Oct 2021 21:06:55 -0700
Behavior tree -- [4] simple tree
This article describes how to build a simple tree to experience the use of the following running script tree.
An understanding of tick
Suppose you want to do two things in order, find the goal and grasp the goal (you can't grasp it until you find it first). The plan is as follows, PS: the top two layers can be regarded as strategy (gene ...
Posted by 182x on Fri, 22 Oct 2021 21:05:26 -0700
python test development django-159.Celery asynchronous and RabbitMQ environment construction
preface
Celery is a Python task queue system used to handle work task assignments across threads or network nodes. It makes asynchronous task management easy. Your application only needs to push messages to agents like RabbitMQ, and the Celery worker will pop them up and schedule tasks to execute.
Celery
Five roles of celery
Task s are task ...
Posted by sargus on Fri, 22 Oct 2021 21:04:00 -0700
How to create Maven aggregation project (build microservice project)
1. Build an aggregation project in idea. Both the parent project and the child project are module s. In the pom file of the parent project, do the following:
In the 1.1 POM file, unified version management is configured
<dependencyManagement>
<dependencies>
<!--spring boot Core dependent version definition(s ...
Posted by arkleyjoe on Fri, 22 Oct 2021 20:15:30 -0700
[C language] โ๏ธ Dynamic memory management and related functions
catalogue
1, Why is there dynamic memory allocation
2, Dynamic memory function
ย malloc and free
calloc
realloc
1, Why is there dynamic memory allocation
ย There are two ways to open up space we have learned before:
int main()
{
int a = 5;
char ch = 'b';
int arr[20] = { 0 };
}
The above ways of developing memory are tha ...
Posted by r.smitherton on Fri, 22 Oct 2021 20:10:50 -0700
R reshape2 converting data tutorial
reshape2 is a package written by Hadley Wickham, which can easily convert data between wide and long formats.
1. Length width data format
Wide data format Each variable of wide data format corresponds to a column, for example:
## ozone wind temp
## 1 23.61538 11.622581 65.54839
## 2 29.44444 10.266667 79.10000
## 3 59.11538 ...
Posted by dirkie on Fri, 22 Oct 2021 20:06:39 -0700
[SHA256 of security algorithm] C language source code implementation of SHA256 abstract operation
summary
As we all know, the summary algorithm is also a particularly important existence in the security field, and SHA256 is one of the most common summary algorithms. Its characteristic is that it has low computational complexity. The equal length summary value can be obtained by inputting the original text of unequal length data, which ...
Posted by stuartc1 on Fri, 22 Oct 2021 20:04:40 -0700
LeetCode buckle biweekly 63
The happiest thing at the weekend is to fill in questions and write solutions to cook for his wife.
Weekly portal
2037. Make each student have the minimum number of seat movements
Idea: greed
Time complexity:
O
(
n
โ
...
Posted by jxrd on Fri, 22 Oct 2021 19:50:27 -0700
Thread safety problems and processing methods
Thread safety problems and processing methods
Example: create three windows to sell tickets, with a total number of 100 tickets. Use the way to implement the Runnable interface 1. Problem: in the process of selling tickets, there are duplicate tickets and wrong tickets -- > there are thread safety problems 2. Cause of the problem: when a th ...
Posted by lazy_yogi on Fri, 22 Oct 2021 19:31:38 -0700