OAuth2 protocol and Spring Security OAuth2 integration
The authorization protocol of OAuth 2.0 allows third-party applications to access restricted HTTP resources. As usual, when you use Github and Google account to log in to other systems, you use the OAuth 2.0 authorization framework. The following figure is the authorization page diagram of using Github account to log in to Coding system:
...
Posted on Sun, 19 Jan 2020 01:58:18 -0500 by tanita
java AOP aspect programming practice
This example is an annotation based aspect programming practice. This aspect function is mainly used to count the execution time of the annotated method
1. First configure maven dependency:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-b ...
Posted on Sat, 18 Jan 2020 09:12:04 -0500 by anatak
The implementation source code of kubernetes service scatter algorithm
In the distributed scheduling, in order to ensure the high availability and disaster recovery requirements of the service, it is usually said that the service is evenly distributed in multiple areas, racks and nodes, so as to avoid the service unavailability caused by a single point of failure. The algorithm, SelectorSpread, is naturally implem ...
Posted on Sat, 18 Jan 2020 02:05:50 -0500 by d~l
s081[2]-unix memory allocation-malloc implementation
memory allocation
Previous courses
OS Interface: https://dreamerjonson.com/2020/01/04/6-s081-1/
Systems programming
wiki Reference
The main difference between system programming and application programming is that application programming is designed to produce software that directly serves users.
System programming mainly serves other applica ...
Posted on Fri, 17 Jan 2020 11:21:02 -0500 by alimadzi
Simple TCP client program based on QTcpsocket
Code connection:
Local path (for Copy code): H disk / Baidu online disk: / program backup / QT/QT_EasyClient.zip
1. introduction
In fact, the [QTcpsocket](https://doc.qt.io/archives/qt-5.6/qtcpsocket.html) in the Qt network module has been well encapsulated, avoiding the tedious process of programming ...
Posted on Fri, 17 Jan 2020 09:49:33 -0500 by Joe
Introduction to network socket programming
The following is a Li's understanding of socket programming, hoping to help you; if there are errors, please point out generously;
1: Socket programming preparation
2: Introduction of socket api
3: The introduction and implementation of client / server of udp protocol
4: The introduction and impl ...
Posted on Fri, 17 Jan 2020 09:21:16 -0500 by thirdeye
CopyOnWriteArrayList data is written disorderly
CopyOnWriteArrayList problem
This article records a problem that may cause data errors in CopyOnWriteArrayList,
This problem was originally a conjecture when reading a book, but after verification, it was found that the problem existed.
Originally, I thought that there would be no such problem since the jdk was on, but there was no such probl ...
Posted on Fri, 17 Jan 2020 06:48:45 -0500 by kateevanne
Bash scripting learning note 08: Functions
Official information: Shell Functions (Bash Reference Manual)
brief introduction
As we are Bash script programming learning note 06: conditional structure Finally, we should integrate some code blocks that may be executed repeatedly to avoid overstaffing the code.
Function exists to solve this problem. When defining a function, we can integra ...
Posted on Fri, 17 Jan 2020 05:55:03 -0500 by CookieD89
Figure kubernetes scheduler based on map/reduce mode
In the optimization stage, multiple nodes and multiple algorithms are parallel calculated by map/reduce mode, and the final storage results are designed based on the two-level index, so as to achieve the unlocked design in the whole calculation process. At the same time, in order to ensure the randomness of the allocation, the random method is ...
Posted on Fri, 17 Jan 2020 05:49:02 -0500 by AL-Kateb
On Dart language learning by Flutter
Dart is a new language for me. In order to develop Flutter better, I need to spend some time to learn dart.
But Dart seems to be easier to use~
1. Variable declaration
1. var
It can accept any type of variable. As long as var is assigned, its type will be determined and cannot be changed.
2. dynamic a ...
Posted on Fri, 17 Jan 2020 05:47:19 -0500 by lvitup