Netty: NIO Selector selector (detailed notes and source code of C/S demo)
Netty foundation java NIOSelectorThree elements: Selector, SelectableChannel, selectable channel and SelectionKeyIn essence, the Selector is a listener that monitors whether the channel is generated by operations we care about. The operations correspond to events (connect, receive, read / write). The SelectionKey is used to represent specific e ...
Posted by e11rof on Tue, 16 Nov 2021 18:55:42 -0800
ADC acquisition experiment
catalogue
Test requirements:
Experimental equipment:
Experimental ideas:
Experimental steps:
Summary:
Program source code:
Test requirements:
Collect 50hz AC through stm32ADC and display it through serial port
Experimental equipment:
Wildfire stm32MINI series with stm32f103RC chip
Experimental ideas:
Trigger ADC through Tim (time ...
Posted by Randuin on Tue, 16 Nov 2021 18:48:13 -0800
spinnaker in Kubernetes uses two
Background:Follow closely Use of spinnaker in Kubernetes . Various simple Triggers are completed, and deploy Mainfest deploys a simple pipeline of kubernetes. According to the actual environment, I want to go deeper into the pipeline steps: parametric construction, webhook triggering, e-mail sending, jenkins pipeline integration and so onFirst ...
Posted by danc81 on Tue, 16 Nov 2021 18:44:46 -0800
[introduction to Linux] basic IO
✔ Review the interface of C file
When learning C language, we learned some interfaces of C language for file operation. There are fopen, fclose, fputc, fgetc, fputs, fgets, fprintf, fscanf, fread, fwrite, etc
Briefly review with a piece of code:
#include<stdio.h>
#include<string.h>
int main()
{
FILE* fp=fope ...
Posted by utdfederation on Tue, 16 Nov 2021 17:48:11 -0800
React's Hook allows function components to have the characteristics of class components
1, What problems have been solved?
Hook is a special function starting with use (useState, useEffect, etc.), which can only be used inside the function component. It allows you to use state and other React features without writing class. For example, useState is equivalent to the state object in the class component.
1. Update instructions for ...
Posted by Ryodox on Tue, 16 Nov 2021 17:24:23 -0800
25 Vue tips you need to know
Restrict prop to a list of types Using the validator option in the prop definition, you can limit prop to a specific set of values:
export default {
name: 'Image',
props: {
src: {
type: String,
},
style: {
type: String,
validator: s => ['square', 'rounded'].includes(s)
}
}
};
Copy code
The validator ...
Posted by Roble on Tue, 16 Nov 2021 17:18:26 -0800
2 - [high concurrency - service] - 1 Hystrix
1 background of hystrix
With the improvement of business complexity and the continuous splitting of the system, a user-oriented API has layers of nested RPC calls, and the call chain may be very long. This will cause the following problems:
Reduced API interface availability Citing an official example of Hystrix, suppose that an application ...
Posted by warmwind on Tue, 16 Nov 2021 17:13:16 -0800
1 - [high performance Nginx server] - 10 LVS + kept + Nginx to achieve high performance load balancing cluster
1 LVS action
LVS is an open source software, which can realize transport layer and four layer load balancing.
LVS is the abbreviation of Linux Virtual Server, which means Linux Virtual Server.
Currently:
Three IP load balancing technologies: VS/NAT, VS/TUN and VS/DREight scheduling algorithms: rr, wrr, lc, wlc, lblc, lblcr, dh, sh
2. Diffe ...
Posted by Comdemned on Tue, 16 Nov 2021 17:09:30 -0800
java code implementation of exchange sorting of [data structure and algorithm]
preface
Today, I will share with you a very important sorting algorithm among data structures and algorithms. The so-called sorting is to reorder the data elements in ascending and descending order according to the specified keyword size. Sorting is a basic operation of data structures such as linear tables and bin ...
Posted by marq on Tue, 16 Nov 2021 17:05:02 -0800
The Rust Programming Language - Chapter 10 generics, trait, and lifecycle - 10.1 generic data types
10 generics, trait, and lifecycle
Every programming language has tools to deal with repetitive concepts efficiently, and Rust uses generics. Generics are alternatives to concrete types or other abstract types. We can express the properties of generics, such as how their behavior is associated with other types of generics, without knowing what ...
Posted by vh3r on Tue, 16 Nov 2021 17:02:13 -0800