netty encoding and decoding and packet sticking and unpacking processing
netty encoding and decoding and packet sticking and unpacking processing
Codec
When you send or receive a message through Netty, a data conversion will occur. The inbound message will be decoded: from byte to another format (such as java object); If it is an outbound message, it will be encoded into bytes. Netty provides a series of practi ...
Posted by mise_me_fein on Fri, 04 Mar 2022 14:30:26 +0100
Install HustOJ for Ubuntu Server 20.04
hustoj itself provides the installation script. The following manual installation is mainly to be familiar with its composition.
sed -i 's/tencentyun/aliyun/g' /etc/apt/sources.list
If it is Tencent cloud, change it to Alibaba cloud. We don't need this operation.
apt-get update
apt-get install -y subversion
/usr/sbin/useradd -m -u 1536 judge ...
Posted by herbally on Fri, 04 Mar 2022 14:28:06 +0100
[computer network] - Protocol layering
1. Agreement: an agreement.
2. Protocol layering:
(1) OSI (open system interconnection) seven layer model
(2) TCP/IP five layer model
(3) TCP/IP four layer model
Layer namefunctionRelated agreementsapplication layerResponsible for communication between applications HTTP SSH DNS Display layerConvert the network datagram into the package req ...
Posted by mrpickleman on Fri, 04 Mar 2022 14:21:06 +0100
7, Kubernetes - Service details
catalogue
1. Service introduction
2. Service type
3. Service usage
3.1 preparation of experimental environment
3.2 ClusterIP type Service
3.3 Service of headliner type
3.4 NodePort type Service
3.5 LoadBalancer type Service
3.6 Service of externalname type
4. Introduction to ingress
5. Use of ingress
5.1 environmental preparat ...
Posted by phpdragon on Fri, 04 Mar 2022 13:52:01 +0100
Spring learning notes 01
catalogue
1, HelloWorld
What is Spring?
Describe Spring in detail
Spring module
2, IOC & Di overview
Previous IOC
3, Configure Bean
1. Step 1:
2. Step 2:
3. Step 3:
4, Property configuration details
V. automatic assembly
6, Relationship between beans
7, Scope of Bean
8, Use external properties file
9, SpEL
10, Manage the ...
Posted by iamtheironman on Fri, 04 Mar 2022 13:49:47 +0100
H5 of front-end learning
1, HTML5
Adjust the size of the video and select the type of video (type=video/mp4/webm/ogg)Pause and pause methods Element supports multiple elements Element can link different video files. The browser will use the first recognizable format
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
& ...
Posted by johnsiilver on Fri, 04 Mar 2022 13:40:45 +0100
Using conditional lock to control the synchronization of multiple threads (java implementation)
catalogue
Title:
answer:
Explanation:
Recently, I did a topic of multithreading synchronization. I used conditional locking to solve it. By doing this problem, we can have a basic understanding of the application of locks. This article will briefly explain it.
Ps: after finishing, I found that this is the original question on Li buckle. T ...
Posted by moonman89 on Fri, 04 Mar 2022 13:34:38 +0100
Analysis of the whole process of SpringBoot application accessing Prometheus
Prometheus: Prometheus is an open monitoring solution. Users can easily install and use Prometheus and expand it
The following will implement the whole process of a SpringBoot application accessing Prometheus
1.2 installation
Linux Installation
Download package specified on the official website: https://prometheus.io/download/
Download loca ...
Posted by phpBeginner06 on Fri, 04 Mar 2022 13:27:44 +0100
Vue3 calculation properties
Calculation attribute keyword: calculated.
Computational properties are useful when dealing with some complex logic.
Here is an example of an inverted string:
<title>Vue Test example - Rookie tutorial(runoob.com)</title>
<script src="https://unpkg.com/vue@next"></script>
</head>
<body>
<div id="app"> ...
Posted by Kiubbo on Fri, 04 Mar 2022 13:22:51 +0100
vue page refresh, data loss, data reset, data cache, data cache, vuex cache
Page refresh data lost
In vue, data, vuex store and other data are in memory. Once the page is refreshed, these data will be lost (or reset to the initial value), which will affect the user experience at some times.
Cache, recovery
If you want to make the data refresh not lost, you have to listen to the page refresh event, cache the data to ...
Posted by jarriola on Fri, 04 Mar 2022 13:03:15 +0100