CentOS7 installation configuration mongodb3.2

1. Download Dependent Packages yum -y install wget 2. Create a file directory mkdir -p /app/install mkdir–p /app/data/mongodb mkdir–p /app/log/mongodb 3. Download mongodb cd /app/install wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.2.16.tgz tar zxvf mongodb-linux-x86_64-3.2.16 ...

Posted by Collin on Mon, 20 Jul 2020 18:21:42 +0200

vue property binding and interaction

vue directive binding properties vue binds attributes by directive v-bind, src/width/height/title, such as v-bind:src='''can be abbreviated as: src=''', the same v-Bind:widthWait a moment, abbreviated as width,:height <script src="https://unpkg.com/vue/dist/vue.js"></script> <body> <div id="box"> <img v-bind:sr ...

Posted by ariliquin on Mon, 20 Jul 2020 18:09:56 +0200

SpringBoot implements multiple data source configuration

Spring boot for multi data source configuration springBoot implements the configuration of multiple data sources application.properties Configure two data sources in spring.datasource.primary.url=jdbc:mysql://localhost:3306/test1 spring.datasource.primary.username=root spring.datasource.primary.password=root spring.datasource.primary.driv ...

Posted by AtomicRax on Mon, 20 Jul 2020 18:01:36 +0200

Crawl app photos with python

Download a fighting fish first (you can do it without downloading, the URLs are all here, right) Grab a json package by grabbing it and get the address below   Observed tests show that modifying offset values is equivalent to paging an app Accessing this url returns a large dictionary with two indexes, one error and one data.Data is another 20 ...

Posted by djcubez on Mon, 20 Jul 2020 16:59:48 +0200

Mongodb update array $pull modifier

1. $pull modifier deletes qualifying elements from the array in the following format: { $pull: { <field1>: <value|condition>, <field2>: <value|condition>, ... } } 2. Specify a value to delete all lists Give a document under a stores collection { _id: 1, fruits: [ "apples", "pears", "oranges", "grapes", "bana ...

Posted by vex__ on Mon, 20 Jul 2020 16:51:29 +0200

android system camera returns picture (original)

Jurisdiction <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"></uses-permission> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"></uses-permission> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></u ...

Posted by pharcyde0 on Mon, 20 Jul 2020 16:29:32 +0200

java annotations are easy to use

java annotations are easy to use Annotations have been used throughout the development process, and today I finally want to look at the implementation of annotations.Drive directly // Custom Notes // Annotation has been implemented here // Note that comments are only valid in the form of reflection calls @Retention(va ...

Posted by gotit on Mon, 20 Jul 2020 16:23:01 +0200

Learn Python together: thread

thread The thread module of python is a lower level module, and the threading module of python is a package for thread, which can be used more conveniently Using the threading module Single thread execution #coding=utf-8 import time def saySorry(): print("Honey, I'm wrong. Can I eat now?") time.sleep(1) if __name__ == "__main__": ...

Posted by Toshiba23 on Sun, 19 Jul 2020 18:09:13 +0200

Kids learn Java (6): encapsulation

Object oriented has three characteristics: Encapsulation, Inheritance and Polymorphism. This section covers encapsulation. Procedure 1 class Woman { private String name; private int age; private Man husband; public void setName(String name) { this.name = name; } public String getName() { return ...

Posted by Japher on Sun, 19 Jul 2020 17:48:11 +0200

Several methods to find the maximum and minimum values in an integer array

In integer arrays, we need to get the maximum and minimum values of array elements from them: Method 1: Sort using Array first, then from the sorted array, the first element is the smallest and the last element is the largest.   public static int FindMaxNumber(params int[] stringValue) { Array.Sort(stringV ...

Posted by gmp on Sun, 19 Jul 2020 16:30:03 +0200