Linux builds MySQL master slave

Achieve goals Set up two MySQL servers (one master and one slave), one as the master server and one as the slave server. The master server writes and the slave server reads. Workflow overview Primary server: Open binary log Configure a unique server ID Get the name and location of the master binary log file Create a user account for slave and ...

Posted on Wed, 16 Oct 2019 12:41:33 -0400 by Fahid

C language writes the current system time (Log) to the txt file

The program implementation is very simple, involving only two knowledge points. 1. The most basic opening and closing of files; 2. Acquisition of system time. The code is written in VS2019 environment, some functions will not be recognized in other compilers. You can only find the corresponding function by yourself and simply modify it. If ...

Posted on Wed, 16 Oct 2019 07:46:14 -0400 by deltatango5

Get page relative margins

1.getBoundingClientRect() getBoundingClientRect is used to get the location collection of an element relative to the window. There are top, right, bottom, left and other attributes in the collection. let client = e.target.getBoundingClientRect(); client.width // width client.height // height client.top // Top margin (above relative viewing are ...

Posted on Wed, 16 Oct 2019 06:22:16 -0400 by mrvanjohnson

One of the design modes: single instance mode [creation mode]

The creation mode is divided into the following types. Singleton mode: a class can only generate one instance. The class provides a global access point for external access to the instance. Its extension is the limited multiple instance mode. Prototype pattern: an object is used as a prototype, and multiple new instances similar to the proto ...

Posted on Wed, 16 Oct 2019 05:57:11 -0400 by suigion

Python develops exclusive wallpaper download and rotation program

I have always been partial to Buddhism for wallpaper, do not like to go to a pile of wallpaper. So we simply download wallpaper automatically in Python. The function of regular random rotation comes from entertainment and sharing it with you. Original link: https://www.codernice.top/articles/9f79c65e.html Get ready Download and install Python 3 ...

Posted on Wed, 16 Oct 2019 02:51:26 -0400 by mickey9801

[elasticsearch notes] Joining Queries - nested

note Detailed explanation of the type of "elastic search nested" The library used by elastic search (lucene) has no concept of internal objects, so the internal objects are flattened into a simple list of field names and values. In order to solve this problem, nested objects are needed. Nest ...

Posted on Tue, 15 Oct 2019 14:39:23 -0400 by julius_h

nginx is not perfect

nginx is a high-performance HTTP and reverse proxy server, characterized by less memory and strong concurrency What is reverse proxy? Forward proxy is to pack clients and wear vest, for example, hacker attacks a website, such as Reverse agent is to transfer a vest to the server for packaging, such as nginx Official website: http:/ ...

Posted on Tue, 15 Oct 2019 14:32:24 -0400 by trystan

Build extended ACL practice

The topology of this experiment is as follows: Objective: Complete the establishment of extended ACL on R1 route, and achieve the experimental requirements: Allow PC1 to access Linux web services; Allow PC2 to access the ftp service of Linux; PC1 and PC2 are forbidden to access other Linux services; Allow PC1 to connect PC2 Experimental st ...

Posted on Tue, 15 Oct 2019 12:55:53 -0400 by nike121

maven? Upload to and download from private server

Since the company didn't have maven, it wanted to use it again, so it built a nexus of its own. 1. Upload the local jar file to maven You need to add this in setting.xml in maven of the native (client windows):       <server> <id>releases</id> <username>admin</username> <p ...

Posted on Tue, 15 Oct 2019 10:36:38 -0400 by miro_igov

8086 assembly basic masm compilation source file

    IDE : Masm for Windows Integrated experimental environment 2015       OS : Windows 10 x64typesetting : Markdown        blog : my.oschina.net/zhichengjiu       gitee : gitee.com/zhichengjiu   demo.asm datas segment ;Segment code datas ends stacks segment ;Stack segment code stacks ends codes segment assume cs:codes,ds:datas ...

Posted on Tue, 15 Oct 2019 10:03:16 -0400 by zxiny_chin