Design pattern series -- strategy pattern
Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it
example
Scenario: Shopping mall cashier software, the salesperson charges the customer according to the unit price and quantity of the goods purchased by the customer.
1, Knowledge point ...
Posted by herschen on Thu, 17 Feb 2022 20:12:01 +0100
Virtualization deployment under Linux
Virtualization deployment under Linux
1, Kvm installation conditions
intel vmx amd svm
2, Kvm virtualization installation
First, check whether your software exists. If it does not exist, download it directly dnf group install "Virtualization Client" "Virtualization Hypervisor" "Virtualization Tools" -y
Virtualization Client #Virtu ...
Posted by hrosas on Thu, 17 Feb 2022 20:07:47 +0100
Introduction to ElasticSearch
1, Download and install ElaticSearch
1. ElaticSearch download address
https://www.elastic.co/cn/downloads/elasticsearch
2. Installation method of windows version
Unzip for immediate use. The directory structure after unzip is as follows:
3. Start ElasticSearch
Enter the bin directory and click elastic search Bat file
4. Solve cr ...
Posted by mrvanjohnson on Thu, 17 Feb 2022 19:50:35 +0100
Malicious code analysis experiment Lab 7-3
Static analysis strings + IDA pro
View string exe
kerne`132`.dll
kernel32.dll
C:\windows\system32\kerne`132`.dll
C:\Windows\System32\Kernel32.dll
WARNING_THIS_WILL_DESTROY_YOUR_MACHINE book dll
exec,sleep,hello 127.26.15.13 malicious code may access this IP address SADFHUHF Import function exe focuses on Kernel32 A large number of fi ...
Posted by alexhard on Thu, 17 Feb 2022 19:46:24 +0100
java source code analysis - runtime annotation processor
java source code analysis - runtime annotation processor
In the previous "java source code analysis - basic principles of annotation", we learned some basic concepts and principles of annotation. At the end of the article, we also clicked on the annotation processor. At that time, I said that annotation information is actually obtain ...
Posted by kaushikgotecha on Thu, 17 Feb 2022 19:27:37 +0100
Vue framework 2 Basic knowledge
1, Vue first experience 1.1 Vue installation . The introduction of Internet links can be obtained from BootCDN
<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.14/vue.js">
. npm installed locally
stay Visual Studio Code Terminal input:
npm install vue@2.6.14
<script src="../node_mod ...
Posted by lhale on Thu, 17 Feb 2022 19:26:10 +0100
Python ヾ (≥ ▽≤ *) o SET set type
Python ヾ (≥ ▽≤ *) o SET set type
1, Concept of set
Set is one of the data types of Python, which is the same as the concept of set in mathematics Before explaining Python sets, I think it is necessary to review the main categories of mathematical sets: Union, intersection and difference
Collections in Python
If necessary, Pyth ...
Posted by BrazilMac on Thu, 17 Feb 2022 19:13:56 +0100
java - API about time
API for time and date before JDK8 1. currntTimeMillis() in System; This method will return a time difference (also known as timestamp) in milliseconds from 0:0:0 in January 1970 to the present
>public class DateTimeTest {
public static void main(String[] args) {
long time = System.currentTimeMillis();
System.out.println( ...
Posted by ranbla on Thu, 17 Feb 2022 18:50:49 +0100
R language survival analysis: analysis of lymphoma patients with time-varying competitive risk model
Original link: http://tecdat.cn/?p=22422
In this paper, we describe a flexible competitive risk regression model. The regression model is designated as the transition probability, that is, the cumulative incidence in the competitive risk setting. The model includes the model of Fine and Gray (1999) as a special case. This can be used to te ...
Posted by prometheuzz on Thu, 17 Feb 2022 18:47:12 +0100
node+express writes the back-end interface, deploys it to the server, and configures nginx+ssl certificate to realize https access
Zero. Preparation before start
Windows should be equipped with node, npm and git toolsServer (either Alibaba cloud or Tencent cloud)Domain name (filed)
If the above preparations are not ready, please check the Internet by yourself
1, Write the back-end interface locally using node+express
Introduction and introduction to express
1. Create ...
Posted by Darklink on Thu, 17 Feb 2022 18:35:59 +0100