images installation and init operation during k8s installation in kubadm mode
When using kubeadm to install k8s, there is a step to download images. Generally, many methods are used: use docker images to download the image name and tag the image name again, and then configure the cluster sub ip information during initialization
As follows:
1.Set up kubelet Domestic pause image
cat >/etc/sysconfig/kube ...
Posted by porta325 on Mon, 23 Mar 2020 08:21:10 -0700
Do you really change your status?
In enterprise applications, there are too many scenarios involving modifying state. For example, after an enterprise enters the network, it needs to check its qualification. After the individual receives the task, the enterprise administrator shall review the receiver.
In the application management system, usually as shown in the figure below, ...
Posted by Pastulio on Mon, 23 Mar 2020 06:45:23 -0700
[NLP] Text Classification and Generalization (rnn, cnn, word2vec, TfidfVectorizer)
1. Emotional Analysis of Chinese Comments (keras+rnn)
1.1 Required Libraries
1.2 Pre-training Word Vector
1.3 Word Vector Model
1.4 Training corpus (dataset)
1.5 participle and tokenize
1.6 Index Length Standardization
1.7 Reverse tokenize
1.8 Building an embedding matrix
1.9 padding and truncatin ...
Posted by d3vilr3d on Sun, 22 Mar 2020 19:07:16 -0700
LeetCode 945. Make the array the only minimum increment
My LeetCode brush Title source [GitHub]: https://github.com/izhoujie/Algorithmcii
LeetCode 945. Make the array the only minimum increment
subject
Given an array of integers A, any A[i] is selected and incremented by 1 for each move operation.
Returns the minimum number of operations that make each value in A unique.
Example 1:
Input: [1,2,2]
...
Posted by tomato on Sun, 22 Mar 2020 10:52:55 -0700
Reality is more complicated than theory
Let's think about a practical problem. When spring comes, we are going to buy clothes. At the same time, as a clothing manufacturer, we are going to release new clothes. If you are a technical consultant of a clothing manufacturer, please analyze what kind of clothes belong to this year's fashion trend and what would you do?
First of all, as a ...
Posted by RedMaster on Sat, 21 Mar 2020 02:23:30 -0700
What day of the week is a better choice for the fund?[python statistical analysis] - know
A common way of fixed investment of a fund is to apply for a fixed share of the fund from the fund company during a fixed period of time each week or month.Fund fixed investment can average costs, spread risks and achieve automatic investment, so fund fixed investment is also called "lazy investment technique".Today, we mainly use ...
Posted by poknam on Fri, 20 Mar 2020 13:33:49 -0700
Tensorflow flag design a digital recognition SPA
Effect
The web end loads the trained model, the simple model used this time, and then predicts the number and returns the result according to the image data transmitted from the front end
The saved png image is converted to base64 encoding and returned. In this way, the src with img tag can display the image directly in the front end, re ...
Posted by cheeks2k on Fri, 20 Mar 2020 10:36:12 -0700
Thread & coordination & asynchrony of crawler
Thread pool
from multiprocessing.dummy import Pool
The callback function asynchronously performs some operation on the elements in the iteratable object
Note: callback must have one parameter and only one parameter
Asynchronous is mainly used in time-consuming operations
from multiprocessing.dummy import Pool
pool = Pool(3) # Instantiat ...
Posted by Mirkules on Fri, 20 Mar 2020 10:32:57 -0700
Redis database introduction and manual compilation and installation process
Preface
This paper introduces Redis database from the origin of NoSQL, then demonstrates the process of Redis manual compilation and installation (the system version of the experimental environment is Centos7), and finally introduces the common command tools of Redis.
What is NoSQL?
NoSQL -- non relational SQL, non relational database. The st ...
Posted by ramzess on Fri, 20 Mar 2020 04:20:20 -0700
Convolutional Neural Network Processing Text Sequences
We previously discussed convolution neural networks, which extract features from local regions and are very effective for image recognition processing of kittens and dogs. We also discussed cyclic neural networks for text processing because the order of text is sequential.Based on the above characteristics, we consider time or the front and bac ...
Posted by babygodzilla on Wed, 18 Mar 2020 18:53:21 -0700