Powerful expression engine -- OGNL
OGNL (Object Graph Navigation Language) is an open source expression engine. By using OGNL, we can access arbitrary properties in the Java object tree and call methods of the Java object tree through expressions. In other words, if we regard an expression as a string with semantics, OGNL is the catalyst for the communication between the semant ...
Posted by QSDragon on Sat, 04 Dec 2021 20:07:03 -0800
C + + virtual functions and polymorphism
one virtual function
one point one definition The member function decorated with virtual is called virtual function
one point two Impact on class memory
An empty class (there is no data member ...
Posted by elgordo1960 on Sat, 04 Dec 2021 20:04:53 -0800
Experiment 8 project case - e-commerce data analysis
Level 1: Statistics of user churn
Task description
This task: according to the user behavior data, write MapReduce program to count the loss of users.
Relevant knowledge
This training is an intermediate difficulty MapReduce programming exercise, which simulates the statistical analysis of e-commerce data in real scenes. Therefore, it is ...
Posted by kane007 on Sat, 04 Dec 2021 19:59:57 -0800
Chapter 2 sparse arrays and queues
Chapter 2 sparse arrays and queues
2.1 sparse array
2.1.1 basic introduction
When most elements in an array are 0 or the same value array, sparse array can be used to save the array (compress redundant data)
Representation of sparse array:
How many rows and columns are there in the first row? How many different values are there (relati ...
Posted by Mortier on Sat, 04 Dec 2021 19:52:55 -0800
Fast number theory transformation (NTT)
Fast number theory transformation (NTT)
I wanted to learn this thing before. I haven't done it orz. Now I'll make it up.
I don't think I have much new knowledge about learning this thing. It's good to master FFT before learning.
FFT can be seen here: https://www.cnblogs.com/Tenshi/p/15434004.html
NTT is used to solve the modular problem of po ...
Posted by dnast on Sat, 04 Dec 2021 19:49:24 -0800
Single linked list (JavaScript Implementation)
To store multiple elements, array is the most commonly used data structure, but array also has many disadvantages:
The creation of an array usually requires a continuous memory space, and the size is fixed. Therefore, when the current array cannot meet the capacity requirements, it needs to be expanded (usually apply for a larger array, an ...
Posted by redtux on Sat, 04 Dec 2021 19:39:12 -0800
Docker installation software mysql redis nginx configuration mount
Docker MySQL
The address of the Docker image of MySQL on the dockerhub: https://hub.docker.com/_/mysql(opens new window)
Current (2021-04-02) latest and 8.0.23 Is the same mirror. In addition, 5.7 Version and 5.7.33 Is the same mirror.
# 1. Installation and test
# Query central warehouse
docker ...
Posted by joad on Sat, 04 Dec 2021 19:19:40 -0800
SQL basic application - DQL (select)
The world.sql exercise on the mysql official website is used
DQL introduction
select show
Application of select statement
select is used alone
select @@port; --View port
select @@basedir; --View the directory where the program is located
select @@server_id; --see server_id
mysql> select database(); --View the current library
+- ...
Posted by batterdmooie on Sat, 04 Dec 2021 19:07:48 -0800
Hook rules and custom hooks
Hook rule
Use Hook only at the top
Do not call Hook in loops, conditions, or nested functions to ensure that they are always invoked at the top level of your React function. By following this rule, you can ensure that hooks are called in the same order in each rendering. This allows react to maintain the correct hook state between multipl ...
Posted by SyWill on Sat, 04 Dec 2021 18:57:34 -0800
Queue - simple operation of chain queue and sequential queue
Queue learning notes – chain team and sequence team
1. Queue (circular queue)
In the sequential storage structure of the queue, in addition to using a group of storage units with continuous addresses to store the elements from the queue head to the queue tail in turn, it is also necessary to attach two integer variable front and rear to ...
Posted by dragin33 on Sat, 04 Dec 2021 18:46:25 -0800