AOP development of Spring (XML based on AspectJ)
Introduction to Spring's AOP:
AOP idea was first proposed by AOP alliance. Spring is the best framework to use this idea
Spring's AOP has its own implementation (very cumbersome) Aspect is an AOP framework. Spring introduces aspect as its own AOP development.
Two sets of AOP development methods in Spring
◆ traditional way ...
Posted by stry_cat on Tue, 12 Nov 2019 19:08:44 +0100
The realization and basic operation of sequential linear table
Ever since I saw the platform of "think or not" in Zhihu, I always wanted to write something; I also wanted to communicate with more people and learn something.The teaching material of school data structure is teacher Yan Weimin's "data structure (C language version)". In the teaching material, the class C language between p ...
Posted by rondog on Sat, 09 Nov 2019 15:10:22 +0100
Image Segmentation Source Parsing Based on Graph
The code to calculate the edge is as follows:
def create_edge(img, width, x, y, x1, y1, diff):
vertex_id = lambda x, y: y * width + x
w = diff(img, x, y, x1, y1)
return (vertex_id(x, y), vertex_id(x1, y1), w)
def build_graph(img, width, height, diff, neighborhood_8=False):
# The list contains the IDS and d ...
Posted by Tbull on Thu, 07 Nov 2019 20:26:03 +0100
MD5 tool development (QT programming)
MD5 tool development
MD5 message digest algorithm, a widely used cryptographic hash function, can generate a 128 bit (16 byte) hash value to ensure the integrity and consistency of information transmission. MD5 was designed by Ronald Linn Rivest, an American cryptographer, and was released in 1992 to replace MD4 algo ...
Posted by Cardale on Thu, 07 Nov 2019 17:34:43 +0100
[SHOI2014] magic compound
At a glance, it's a dynamic picture (kouhu.jpg
All of the above is false news...
In fact, this problem is an obvious technical (xia) Qiao (gao) problem. We find that the number of questions is far less than the number of sides, which shows that some sides have always existed.. So we can do it offline. We can shrink the graph composed of the exi ...
Posted by GESmithPhoto on Mon, 04 Nov 2019 20:50:40 +0100
Ethereum Chinese document translation - Smart contract
This paper Original link
Click here to get Chinese document of Etherscan API (full version)
The layout of the whole content is better, and readers are recommended to read it.
Smart contracts
Please refer to the API related to the smart contract and the parameter description of the interface. Etherscan API conventions , not described separatel ...
Posted by psychosquirrel on Mon, 04 Nov 2019 17:25:45 +0100
[spock] it's so silky in a single test
Why does everyone hate to write single tests
Before about swagger As mentioned in the article, there are two things programmers hate most, one is that others don't write documents, the other is that they write documents themselves. The same holds here if you replace the documentation with unit tests.
Every developer understands the role of uni ...
Posted by badt18 on Sun, 03 Nov 2019 21:07:10 +0100
Java Concurrent Programming: addWorker method of ThreadPoolExecutor
From: https://blog.csdn.net/u011637069/article/details/79593114
addWorker method
The source code is relatively long and looks bluff. In fact, I did two things. 1) only use cyclic CAS operation to increase the number of threads by 1; 2) create a new thread and enable it.
The source code is as follows:
private boolean addWorker (Run ...
Posted by ksb24930 on Sun, 03 Nov 2019 15:32:00 +0100
Use of Golang sort package
1. Introduction to sort package
The standard library sort package in Golang provides primitives for sorting slices and user-defined collections. Sort package provides sorting support for built-in type slices, such as [] int slice, [] float64 slice and [] string slice. If you need to sort the custom struct type slices ...
Posted by avatar.alex on Sun, 03 Nov 2019 04:22:46 +0100
Java HashMap underlying implementation principle source code analysis Jdk8
In JDK 1.6 and JDK 1.7, HashMap is implemented by bitbucket + linked list, that is, it uses linked list to handle conflicts, and the linked lists with the same hash value are stored in a linked list. However, when there are many elements in a bucket, that is, there are many elements with equal hash value, the efficiency of searching by key valu ...
Posted by bertfour on Sun, 03 Nov 2019 03:24:07 +0100