Encapsulate Vue JS component library
1, Introduction
Dealing with the boundary of components: knowledge points about componentsRapid prototyping provided in Vue cli: it is convenient for us to develop components and run single file components separatelyComponent development: step bar, form componentThe best way to develop components Storybook: isolate the development componen ...
Added by SimpleManWeb on Sat, 19 Feb 2022 08:36:48 +0200
Chapter IV basis of pandas statistical analysis
Chapter IV basis of pandas statistical analysis
4.1 read / write data from different data sources
4.1.1 read / write database data
1. Database data reading
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
engine = create_engine("mysql+pymysql://root:123456@127.0.0.1/testdb?charset=utf8mb4")
session = sessionmake ...
Added by cwheel3915 on Sat, 19 Feb 2022 08:33:25 +0200
Build PXE/iPXE Server for Ubuntu 20.04
Introduction
To verify the PXE function of the network card, you need to build a PXE server. PXE is that the network card starts from the server and then downloads the system image to realize remote system startup or system installation locally.
PXE Server components
DHCP Server Assign the network IP address to the PXE network card and p ...
Added by kumar_ldh on Sat, 19 Feb 2022 08:27:43 +0200
Classification of film reviews using naive Bayes
Classification of film reviews using naive Bayes
1. Data set explanation:
The data set is a subset of IMDB movie data set, which has been divided into test set and training set. The training set includes 25000 movie reviews, and there are 25000 test sets. The data set has been preprocessed to convert the specific word sequence of each rev ...
Added by thestars on Sat, 19 Feb 2022 08:24:35 +0200
Compilation principle recursive descent analysis First, Follow set and prediction analysis table
Let's start with an example:
With grammar: E -> TE' E'->+E|ε T->FT' T'->T|ε F->PF' F'->F'|ε P->(E)|a|b|^
On the solution of First,Follow set and prediction analysis table
First of all, I read books and online materials. At first glance, I couldn't understand them. Next, let me share them in vernacular
First and Fol ...
Added by flemingmike on Sat, 19 Feb 2022 08:16:19 +0200
vue course expansion -- ie compatibility and ios compatibility of vue
Basic instruction of vue - 1
v-for
The v-for instruction renders a list based on an array, which is similar to the traversal syntax of JavaScript v-for="item in list" list is an array, and item is the array element currently traversed v-for="(item,index) in list" where index is the index of the current cycle, and the subscript start ...
Added by corcode on Sat, 19 Feb 2022 08:10:59 +0200
Bubble sort, select sort, insert sort, merge sort note sorting
This paper is a collection of notes after learning the basic sorting algorithm, which is not entirely original. Personal learning ability is limited. The pictures are made by myself. There may be errors in words and pictures. If found, I hope to point out. Since some leaders have conducted in-depth analysis of various algorithms, this blog is o ...
Added by Mercenary on Sat, 19 Feb 2022 08:04:42 +0200
Cross domain and Solutions
Cross domain interpretation
What is cross domain
When any of the protocol, domain name and port of a request url is different from the url of the current page, it is cross domain
Why do cross domain problems occur
Homology policy is an important security policy, which is used to restrict how an origin document or its loaded script can i ...
Added by ursvmg on Sat, 19 Feb 2022 08:00:07 +0200
The deployment of non relational database Redis, the use of Redis basic commands, Redis master-slave replication, read-write separation, and the persistence of Redis database
Architecture diagram
Install Redis service
wget http://download.redis.io/releases/redis-2.8.6.tar.gz
tar -xvf redis-2.8.6.tar.gz
cd redis-2.8.6
make
mkdir /usr/local/redis/etc
cp redis.conf /usr/local/redis/etc/
ps: make error resolvent: Execute the command make MALLOC=libc
Modify the profile to start the service
vim /usr/local/re ...
Added by StormTheGates on Sat, 19 Feb 2022 07:53:43 +0200
Deploy a complete set of enterprise K8s clusters
Deploy a complete set of enterprise K8s clusters
1, Prepare the environment
Server requirements:
• recommended minimum hardware configuration: 4-core CPU, 4G memory, 50G hard disk
• it is better for the server to access the external network. There will be a need to pull the image from the Internet. If the server cannot access the ...
Added by nediaz on Sat, 19 Feb 2022 07:47:46 +0200