Design mode -- Command mode (Command mode)

1. Definitions Command mode is a behavioral mode, which encapsulates a request as an object, so that you can parameterize customers with different requests, queue or log requests, and support revocable operations. As developers, they often receive requirements and then code according to the requirements. Of course, the requirements are genera ...

Posted by henrygao on Wed, 17 Nov 2021 21:56:34 -0800

Python visualization module -- Matplotlib

Learning objectives target Master common statistical charts and their significancePlot scatter and histogramapplication Explore the relationship between different variables Matplotlib can draw line chart, scatter chart, histogram, pie chart. We need to know the meaning of different statistical charts to decide which statistical chart t ...

Posted by Arenium on Wed, 17 Nov 2021 21:12:26 -0800

WebSocket real-time communication front end js

1. Introduction to websocket Similar to HTTP, WebSocket is a network communication protocol. 1.1. Why do I need WebSocket s We already have the HTTP protocol. Why do we need another protocol? What benefits can it bring? The answer is very simple, because the HTTP protocol has a defect: communication can only be initiated by the client, and ...

Posted by jaylearning on Wed, 17 Nov 2021 20:59:54 -0800

Golang language minimal type conversion library cast

01 introduceIn the development of Golang language project, because Golang language is strongly typed, conversion to type is often used. In this paper, we introduce the type conversion tripartite Library - github.com/spf13/cast, which is a minimal type conversion tripartite library. Through the functions it provides, we can facilitate type conve ...

Posted by forgun on Wed, 17 Nov 2021 20:54:09 -0800

Hiding skills of CobaltStrike server

catalogue Introduction:   1, Modify default port 2, Replace SSL certificate 3, Modify C2.profile file Create and modify C2 profile file: 4, Run the teamserver file server and go online   Introduction:   Many tools have their own characteristics, such as sqlmap, awvs and other scanners, which can be easily removed by waf ba ...

Posted by shaitan on Wed, 17 Nov 2021 20:52:28 -0800

Common HTML tags and resume making in Java EE

1, Foreword 1. HTML code is composed of various tags. 2. HTML code infrastructure <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document& ...

Posted by lmninfo on Wed, 17 Nov 2021 20:41:13 -0800

React form processing

In React, the form is divided into two parts: controlled components and uncontrolled components. 4.7.1 controlled components We know that form elements in HTML can input data (or delete), that is, they have their own variable state. For example, in a text box, you can enter or delete content in the text box, and the entered content can be cal ...

Posted by nodi on Wed, 17 Nov 2021 20:21:32 -0800

[docker compose] from building an image to running a Java project with one click

Let's start with a question. How many steps does it take for a new machine to run a regular spring boot project? 1. Download and configure java environment, mysql environment and redis environment (step 6) 2. Initialize mysql database and import sql files (step 2) 3. Download the jar package and start (step 2) As like as two peas Ling Wan ...

Posted by ryochiji on Wed, 17 Nov 2021 20:19:44 -0800

Example verification and thinking of Markowitz model (including Python code)

catalogue Brief introduction of Markowitz model 1, Principle 2, Correlation formula Example verification 1, Method selection 2, Train of thought ① Assumptions ② Set ③ Attention 3, Practice ① Data preparation ② The combination weight is calculated by Monte Carlo method ③ Select the effective frontier combination ④ Stock performan ...

Posted by dammitjanet on Wed, 17 Nov 2021 20:12:37 -0800

K8s source code analysis (10) - resource schema

Last In this article, we mainly introduce how codec completes the operations of decode and encode, that is, the process of object serialization and deserialization. In the core process of the decode operation, the object is first deserialized from the request, then converted to the target version (usually the build), and then processed. During ...

Posted by scarhand on Wed, 17 Nov 2021 19:52:44 -0800