MongoDB Learning Notes - Addition, deletion and modification of documents in Mongo Shell

MongoDB Learning Notes (2) - Documentation Addition, Deletion and Amendment in Mongo Shell The version of MongoDB used in this article is 4.0.10 > db.version(); 4.0.10 I. Insert Documents 1. Insert a document Syntax: db. < collection >. insert (document) Insert a document into the user collection in the test database: > use test; s ...

Posted by lamajlooc on Tue, 30 Jul 2019 04:33:17 -0700

JWT Login, Logout, Verification Code Interface

6.2 Verification Code Interface When the authentication code interface is used to display the login page, the image address and identification of the authentication code are obtained. Install the Verification Code Function Component (if it is a full version of the framework downloaded from the official website, no installation is required)   ...

Posted by dizzy1 on Tue, 30 Jul 2019 02:43:42 -0700

Enterprise Operations and Maintenance - Cache Forward Moving of LNMP Architecture Using OpenResty

Articles Catalogue Introduction to OpenResty Analog cache forward Analysis Stress testing Introduction to OpenResty OpenResty (also known as ngx_openresty) is a scalable Web platform based on NGINX, initiated by Chinese Zhang Yichun, which provides many high-quality third-party modules. OpenRest ...

Posted by benz862 on Tue, 30 Jul 2019 02:35:41 -0700

python, basic (beginners one)

Run the first py file: Python3x: Python file path return Python2x: Python file path return Difference: The default encoding method for python2 is ascii. # -*- encoding:utf-8 -*- python3 default utf-8     Variables: Is to temporarily store the intermediate results of some operations in memory for subsequent code calls. 1, m ...

Posted by gonsman on Mon, 29 Jul 2019 14:41:59 -0700

Vue Componentized Development

1. Implementing data requests through axios Introduction to 1. json json is an acronym for JavaScript Object Notation. The word means a javascript object representation, where json refers to a data format similar to a javascript object. What json does: Transfer data between different system platforms or programming languages. Syntax for 1.1 ...

Posted by jimmyt1988 on Mon, 29 Jul 2019 11:44:43 -0700

Common front-end cross-domain request methods

Common front-end cross-domain solutions (full)   What is cross-domain? Cross-domain refers to documents or scripts in one domain trying to request resources in another domain, where cross-domain is broad. Broad cross-domain: 1. Resource jump: A link, redirection, form submission 2. Resource embedding: <link>, <script>, &lt ...

Posted by james2010 on Mon, 29 Jul 2019 07:42:18 -0700

OpenStack Component - Keystone Identity Authentication

1. Introduction to Keystone Kestone is one of the components of OpenStack, which is used to provide unified authentication services for other members of OpenStack family, including authentication, token issuance and verification, service list, user rights definition and so on. The authorization and authentication of all services in the cloud e ...

Posted by noirsith on Mon, 29 Jul 2019 04:08:07 -0700

Actual MySQL 8.0.17 Clone Plugin

background It's amazing, 5.7.17 and 8.0.17, two successive 17 minor versions are eye-catching. The former adds Group Replication, while the latter adds Clone Plugin. Today we're going to test this new feature in action. Introduction to Clone Plug-ins Cloning plug-ins allow data to be cloned locally or remotely from MySQL instances. Cloned data ...

Posted by fhil85 on Mon, 29 Jul 2019 00:45:57 -0700

php architecture based on Redhat7.2

Hypertext Preprocessor, hypertext preprocessor. It is a scripting language executed on the server side, similar to C language. It is a commonly used website programming language. After php is built, MySQLi Extension Library will be used to instantiate a MySQL connection object through MySQLi constru ...

Posted by fr34k2oo4 on Sun, 28 Jul 2019 22:34:43 -0700

CCPC - CometOJ Summer Happy Competition 2009

A-complete k-fork tree meaning of the title It is known that a complete (k) fork tree has (n) nodes. The distance between the two farthest points on the tree is calculated, and the distance between the nodes is 1. Basic Ideas If the depth of the tree is (h), then the distance between the two points of the full (k) fork tree is ((h-1)*2), and th ...

Posted by abakash on Sun, 28 Jul 2019 21:42:15 -0700