Research on the time complexity of a test class to simplify the sorting algorithm

catalog 1, Background 2, Concept 2.1 definition of time complexity 2.2 comparison of time complexity 3, Test class 3.1 program structure 3.2 test tools 3.3 definition of sorting algorithm interface 3.4 implementation of various sorting algorithms 3.5 main test procedure 3.6 test analysis 4, Write at the end 1, Background In the proces ...

Posted on Fri, 05 Jun 2020 22:47:00 -0700 by AliasXNeo

Common modules and cases of CICDAnsible

Ansible common modules and cases Common modules File module: create a directory or file for the target host, and give permissions - name: create a file file: 'path=/root/aaa.txt state=touch mode=0755 owner=foo group=foo' copy module: file transfer from ansible to target - name: copy a file copy: 'remote_src=no src=roles/testbiox/foo.sh ...

Posted on Thu, 04 Jun 2020 09:22:46 -0700 by impulse()

What you need to know about the implementation principle of React Router(hash mode)

Single page apps you should know What is a single page application? single page web application (SPA) is an application with only one Web page. A Web application that loads only a single HTML page and dynamically updates that page when the user interacts with the application. React and Vue are the main front-end frameworks for building singl ...

Posted on Sat, 30 May 2020 17:41:20 -0700 by djKale

Use PInvoke interoperability to complement the pleasant interactive benefits of C#and C++.

One: Background 1. Storytelling If you often look at the source code of the FCL, you will find that there are many ways to make C# faster and more powerful by using the power of C/C++, as follows: [DllImport("QCall", CharSet = CharSet.Unicode)] [SecurityCritical] [SuppressUnmanagedCodeSecurity] private static extern bool InternalUseRandomi ...

Posted on Thu, 28 May 2020 17:54:55 -0700 by rIkLuNd

Technology sharing how to write MySQL Shell plug-ins

Author: Hong bin The person in charge and technical service director of akerson South District, MySQL ACE, is good at database architecture planning, fault diagnosis, performance optimization analysis, with rich practical experience, helping customers in various industries to solve MySQL technical problems, and providing customers in finance, ...

Posted on Thu, 28 May 2020 02:07:16 -0700 by huzefahusain

Python 3 command injection prevention

1, Background To be honest, I'm safe. I always find fault with other people's code, but sometimes it's my turn to write my own code without paying attention to security. Among them, if the security script is generally small, then the proportion of the code dealing with security problems will greatly exceed that of the business code, or if I'm ...

Posted on Tue, 26 May 2020 22:52:17 -0700 by bubblybabs

C#Open Bluetooth Setup Interface

Bluetooth settings related interface, the following are several ways to open through C#to record Bluetooth Setup Interface 1. Control panel commandsBthprops.cpl You can use Control Panel Control+Bthprops.cplOr directlyBthprops.cpl.For more commands see: All Run Command Instructions,CMD & CPL: Shortcut System Commands and Control Panel Comma ...

Posted on Tue, 26 May 2020 11:06:42 -0700 by lamurio

GO uses Webhook to automate github deployment

Usually most of your development is submitted by local git push, and git pull is updated manually on the server.Git can be deployed automatically using a webhook.A webhook is a hook event for a warehouse platform that listens for code and calls back notifications (the notification address is the webhook address you fill out in each git warehous ...

Posted on Sun, 24 May 2020 09:52:58 -0700 by Joost

kickstart common errors [notes]

Question: new value non-existent xfs filesystem is not valid as a default fs type analysis During installation, enter shell (CTL +F2) modprobe xfs ; lsmod | grep xfs Unable to find xfs module It seems to be wen in pxeboot in iso terms of settlement Download vmlinuz again initrd.img , do not use files provided ...

Posted on Fri, 22 May 2020 09:00:53 -0700 by yaatra

scrapy configuration parameters (settings.py)

Import Configuration How do I gracefully import settings.py configuration parameters from scrapy?You can't always use from scrapy import settings or from scrapy.settings import XXX.It doesn't look like anything. scrapy provides a way to import settings: from_crawler @classmethod def from_crawler(cls, crawler): server = crawler.settings.get('S ...

Posted on Mon, 18 May 2020 10:03:15 -0700 by rgriffin3838