Tag:End

  • [animation notes] binary search (half search)

    Time:2021-12-29

    Since entering sophomore year, I have kept learning data structures and algorithms in my heart,After all, there are too many broken things in college,I can’t help it lately. Pick up the algorithm diagram, combined with the summary on the network, and prepare for the step-by-step introduction of data structure and algorithm At present, I use […]

  • Base64 coding principle

    Time:2021-12-21

    1、 Background In the company’s business, calling interface needs to be transformed through gateway. Some rules in the gateway cause problems in the process of transmission, so the decision to use Base64 to do encoding processing is necessary. During use, it is found that the gateway also handles’ = ‘, resulting in the loss of […]

  • How to modularize jQuery when using seajs

    Time:2021-11-28

    I recently took over an old project and used itseajsandjquery。 problem But it’s upgradingjqueryDuring the process of (jquery1.9 — > jquery2.2.4), the following problems were encountered: var $ = require(‘jquery’); // Error: $is null reason The loading path of jQuery is correct, but $is always null. There are two ways to call require in seajs: […]

  • Python crawler must learn: regular expression explanation

    Time:2021-11-14

    The text and pictures of this article come from the network, only for learning and communication, and do not have any commercial purpose. If you have any questions, please contact us in time for handling. The following article is an introduction to level 1 AI, written by little brother Wu Novices and Xiaobai who have […]

  • Manual golang basic data structure and algorithm heap

    Time:2021-11-2

    Manual golang basic data structure and algorithm heap origin Recently read < < my first algorithm book > > ([Japan] Ishida Baohui; Miyazaki Xiuyi)This series of notes is intended to use golang exercises heap Heap is a tree structure of graph, It is used to implement priority queues. Priority queue is a data structure, You […]

  • CentOS modify MariaDB database file storage path

    Time:2021-10-28

    Modify MariaDB database file storage path mysqlIt is also a similar configuration.MariaDBThe default data storage directory is/var/lib/mysql, ready to change to/data/mysql。 Out of Service systemctl stop mariadb data migration mv /var/lib/mysql /data/mysql Modify configuration vim /etc/my.cnf #Add in [client server] socket=/data/mysql/mysql.sock #Add in [mysqld], the end must be/ datadir=/data/mysql/ Full configuration # # This group […]

  • Installing java development tools under CentOS (1) — JDK

    Time:2021-10-26

    1. Preparation downloadjdk 2. Upload files to the virtual machine Refer to my other articleTransferring files from hyper in windows to Linux virtual machine 3. Start installation -New folder – mkdir /usr/local/src/java -Unzip the JDK file – tar -xvf jdk-10.0.1_linux-x64_bin.tar.gz -Move the extracted files to the newly created folder – mv jdk-10.0.1 /usr/local/src/java -Configure environment […]

  • Font bold and line feed in latex syntax block

    Time:2021-10-1

    Font bold problem Use “\ mathbf {}” to bold the font in “{}”, as shown in the figure: Line feed problem Add “\ \” at the end of the line, as shown in the figure: y = x + 1\\adfca Latex blogging skills This work adoptsCC agreement, reprint must indicate the author and the link […]

  • Leetcode interview question 59 – II. Maximum value of queue

    Time:2021-9-27

    Interview question 59 – II. Maximum value of queue Title Source: https://leetcode-cn.com/problems/dui-lie-de-zui-da-zhi-lcof subject Please define a queue and implement the function max_ Value gets the maximum value in the queue and requires the function max_ value、push_ Back and pop_ The average sharing time complexity of front is O (1). If the queue is empty, pop_ […]

  • Implementation of AC automata with PHP code

    Time:2021-9-1

    If you can match strings efficiently, the specific principle will not be changed. Here is the implementation code of PHP: root = $this->createNode(); foreach ($keywords as $keyword) { $this->addKeyword($keyword); } $this->buildFailIndex(); } /** *Create node * @param string $value * @return stdClass */ private function createNode($value = “”) { $node = new stdClass(); $node->value = […]

  • Sublime changes multiple lines into a string array

    Time:2021-8-27

    sublimeThe feature shows how the second one is knocked up. The shortcut keys used arectrl+shift+l,ctrl+j,ctrl+l,End,HomeIn the last or the first place, when adding parentheses, you can’t write the back parentheses, but write the front parentheses, so as to match the parentheses at the end (or at the beginning of the line) to the front

  • Docker installation LNMP Ubuntu 18.04 + nginx1.14 + mysql5.7 + php7.3

    Time:2021-8-15

    Docker image preparation Pull Ubuntu 18.04 image docker pull ubuntu18.04 Start the Ubuntu container docker run -it –name=”php7.3″ –privileged=true ubuntu:18.04 /bin/bash Ubuntu replacing alicloud source Backup source mv /etc/apt/sources.list /etc/apt/sources.list.bak Replace source echo -e “deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe \n deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse \n deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe […]