Use of Fabric management components

Fabric's official website: http://www.fabfile.org Help documents: https://fabric-chs.readthedocs.io/zh_CN/chs/tutorial.html Fabric installation yum install -y make gcc gcc++ python-devel python-pip $ pip install fabric==1.14.0 //perhaps $ pip3 install fabric2 (No, fabric.api Module) Verify installation python >>> import fabric //pe ...

Posted by gandelf1000 on Thu, 31 Oct 2019 04:44:23 -0700

I NEED A OFFER! (HDU 1203) (01 pack)

Title Link: http://acm.hdu.edu.cn/showproblem.php?pid=1203 Title: With $n in hand, there are m colleges and universities with a chance of admission. The application fee is a and the admission probability is b. Let's find the maximum probability of getting at least one offer. Explanation: To find ...

Posted by Monkeymatt on Thu, 31 Oct 2019 04:26:51 -0700

canvas, the only front-end implementation in the whole network, supports multi graph compression and package and download

Technology stack: canvas JSZIP.js (the JSZIP Library of the compression and decompression plug-in on the web page side) Filesaver.js (file saved to local library) Direct interpretation of source code: <div class="cont"> <div class="uploadBtn">Select pictures<input name="file" accept="image/png, image/jpeg" multipl ...

Posted by basim on Thu, 31 Oct 2019 03:22:39 -0700

Redis and Python interaction

Driving module redis Module is used to drive Redis database in Python environment Can be installed directly in pip mode pip install redis Or download domestic image: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package Create connection import redis con = redis.Redis( host="localhost", port="6379", password="12345 ...

Posted by kulikedat on Thu, 31 Oct 2019 02:32:02 -0700

On the difference between stream.foreach() and stream.peek().

Change thinking comes from daily work, so remember this experience.   Thinking: how to quickly change the internal attribute value of each item in the list and perform other fluid operations? Here's a test: how to get the object in the list according to the minimum value of a property   1: create any new test bean:   1 package com.dev ...

Posted by alasxdair on Thu, 31 Oct 2019 01:39:54 -0700

The Flutter subcomponent calls the parent component method to modify the parent component parameters

The main implementation of calling the parent component method by the subcomponent is that the parent component passes a method to the child component, and then calls the parent method in the sub component to modify the parent parameter. Take a look at the renderings Parent component implementation Write a method of "editParentText&quo ...

Posted by !Mikey on Thu, 31 Oct 2019 00:24:38 -0700

Graph theory -- Determination and maximum matching of bipartite graphs

Bipartite graph: the vertices in the graph can be divided into two sets, and the elements in the set are independent.   Judgment: there are at least two vertices. If there are loops, the length must be even. Dye method judgment: Dye x (- 1 or 1) from a point, traverse all its adjacent nodes, if not, dye - x, otherwise judge the point color, ...

Posted by flameche on Wed, 30 Oct 2019 23:00:31 -0700

In the Windows security log, a large number of events ID 4625;

Recently, I found a large number of network login failure records (event ID is 4625) in the Windows security log (win10 ﹤ 64 bit), and a large number of Internet IP attempts to log in to my computer in the background. I feel that the company's network is no longer safe, so I can only try my best to protect my computer. Try operation 1: disabl ...

Posted by jana on Wed, 30 Oct 2019 21:42:00 -0700

Work on a vue project with me

Next, we will configure the route of the city selection page. Add city.vue, click on the city, and then jump to the city page //router.js import Vue from 'vue' import Router from 'vue-router' import Home from '@/pages/home/Home' import City from '@/pages/city/City' Vue.use(Router) // Export a set of routing configuration items export default n ...

Posted by kotun on Wed, 30 Oct 2019 13:52:34 -0700

Using Docker

Foundation of Docker Technology: Namespace, the basis of container isolation, to ensure that container A cannot see container B. 6 namespace: User,Mnt,Network,UTS,IPC,Pid cgroups, container resource statistics and isolation. cgroups: cpu,blkio,device,freezer,memory unionfs, typical: aufs/overlayfs, the foundation of layered image implementat ...

Posted by domino1 on Wed, 30 Oct 2019 13:18:40 -0700