Smart file name sorting

Default sorting problem windows sorting In the resource management of Windows, the intelligent sorting function of file names is provided, which can identify the numbers in file names (the number of digits is different), and then compare the number sizes for sorting, as shown in the following figure: Code default sort But in the list sort ...

Posted by lizzardnub on Wed, 23 Oct 2019 10:20:39 -0700

Java implement a simple java Web container

Instance - implement a simple java Web container Latest updates Technology stack java.net.Socket java.net.ServerSocket Execution process Create a ServerSocket object; Call the accept method of the ServerSocket object and wait for the connection. If the connection succeeds, a Socket object will be returned. Otherwise, the wait will be block ...

Posted by Ice on Wed, 23 Oct 2019 09:11:45 -0700

Summary of comparison methods of validate in httprunner

1. Whether the actual result is equal to the expected result: equals or eq or = = or is # Meaning: check_value == expect_value "validate": [ {"check":"check_value", "comparator": "eq", "expect": "expect_value"} ] 2. The actual result is less than the expected result: less than or lt # Meaning: check value ...

Posted by feelay on Wed, 23 Oct 2019 07:33:49 -0700

The solution of input box input amount processing

Recently, there is a problem in deleting the input input amount of the projects that have been launched. All kinds of searches on the Internet have not found what they want. Today, I will take the react framework as an example for code dedication, and I will write out the requirements and solutions, hoping to be useful to my friends. If there ...

Posted by cupboy on Tue, 22 Oct 2019 13:44:17 -0700

STP spanning tree experiment

Experimental topology Experimental requirement All devices are running STP Change blocking port Experimental steps 1. All devices run STP, and observe the state after convergence [SW1]stp mode stp [SW2]stp mode stp [SW3]stp mode stp 2. Check STP status in SW1 and find that SW1 becomes root bridge Analysis: the principle of spanning tree con ...

Posted by krox on Tue, 22 Oct 2019 12:45:18 -0700

find of STL algorithm

Definition template <class InputIterator, class T> InputIterator find (InputIterator first, InputIterator last, const T& val); Effect Find the first element equal to val between the ranges [first, last]. Find the iterator that returns the first matching element, otherwise return the last iterator. This function uses operator = = to co ...

Posted by ionik on Tue, 22 Oct 2019 12:02:08 -0700

NOIP 2012 P1081 driving trip

multiplication The most difficult part of this problem is preprocessing. First, set is used to preprocess the maximum and the next maximum of the absolute value of the altitude difference of each point from the back to the front. Because the subscript of the current city can only be larger, for point i, find the subscript that is closest to ...

Posted by sandrine2411 on Tue, 22 Oct 2019 10:43:56 -0700

Wechat sharing in vue hash mode for parameter transfer

background In the hash mode of vue project, wechat sharing is needed. Support to pass multi parameter, no parameter, specify jump page, configurable Implementation ideas Due to the existence of hash mode symbol, there will be compatibility problems in different platforms. The shared page cannot jump to the specified page. So the idea is to s ...

Posted by jimbo_head on Tue, 22 Oct 2019 10:23:30 -0700

html+js implementation of markdown editor

The official website of markdown's Editor.md plug-in: https://pandao.github.io/edit... One: Download Editor.md 1: download directly on the official website github download address: https://github.com/pandao/edi... 2: Download with npm npm install editor.md The downloaded file structure is as follows:2. Simple use of Editor.md 1: premise: Introd ...

Posted by brucensal on Tue, 22 Oct 2019 07:43:29 -0700

Using Ghidra to analyze the back door of phpStudy

Author: lu4nx @ know Chuangyu 404 active defense laboratory Author blog: Using Ghidra to analyze the back door of phpStudy Original link: https://paper.seebug.org/1058/   Several days have passed since this incident, and all those who responded have responded. Although many manufacturers and organizations have published analysis articles on ...

Posted by Dimensional on Tue, 22 Oct 2019 04:56:08 -0700