Tag:Format

  • Analysis of ffmpeg arbitrary file reading vulnerability

    Time:2020-7-11

    On June 24, hackerone website announced a local file disclosure vulnerability of ffmpeg, which can affect many versions of ffmpeg, including 3.2.2, 3.2.5, 3.1.2, 2.6.8, and so on. Vulnerabilities on hackerone website: https://hackerone.com/reports… 。 Associated with it are several other vulnerability reports on hackerone: https://hackerone.com/reports… , https://hackerone.com/reports… In fact, the vulnerability @ emillerner and @ […]

  • Talking about the process of picture upload and canvas compression

    Time:2020-7-11

    We usually encounter this situation when we upload images. First, the back-end interface limits the size of uploaded images, or even if the back-end does not limit the size, because the image is too large, rendering in the front-end is too slow, resulting in poor page loading experience. Therefore, it is necessary for us to […]

  • response.data is not Array,please check dataKey

    Time:2020-7-11

    When using gridmanager, the following errors sometimes occur: GridManager Error: response.data is not Array,please check dataKey resolventThis error is due to the fact that the returned data is not an array and prompts to check the configuration itemsdataKey。 IfdataKeyIf it does not match the interface return field, then the component passes thedataKeyWhat you get will […]

  • Rethinking prettier and how to engineer it

    Time:2020-7-11

    background When formatting the front-end code, most students have used prettier. For example, installing the prettier plug-in in in vscode can format any file or only the selected part of the file. Prettier’s role is to beautify the code according to a unified style. In the project with large amount of work, it is necessary […]

  • Redis location

    Time:2020-7-10

    The biggest feature added in redis 3.2 is the support for Geo (geographic location) In the current business, the map aspect is to call Gaode API (cloud image), and the request will be delayed. However, redsigeo can find the nearby terminal and measure the linear distance between two points (with error) 1. Geoadd: add the […]

  • Correct string handling in Python

    Time:2020-7-9

    Anyone who has processed the survey data submitted by users can understand what this mess of data is about. In order to get a set of uniform format strings that can be used for analysis, many things need to be done: remove white space, delete various punctuation marks, correct uppercase format, etc. One approach is […]

  • Detailed explanation of optimizing the performance of date format in Vue

    Time:2020-7-9

    In many projects, it is necessary to convert the long integer date format to other date formats. In Vue, we can customize the corresponding filter filter to perform the function of date format. If you directly introduce the method of moment, when using NPM run build — report, you will find that moment.js The file […]

  • Summary of IOS tips, absolutely what you want (continuous update)

    Time:2020-7-9

    Recently, I summarize some tips in IOS development, which can greatly facilitate our development. Group style top blank handling of uitableview //Group list header blank processing UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0.1)]; self.tableView.tableHeaderView = view; In the plain style of uitableview, cancel the stagnation effect of the header – (void)scrollViewDidScroll:(UIScrollView *)scrollView { […]

  • response.totals undefined,please check totalsKey

    Time:2020-7-7

    When using gridmanager, the following errors sometimes occur: GridManager Error: response.totals undefined,please check totalsKey resolventThis error is due to the fact that the total field is not found in the returned data of, and you are prompted to check the configuration itemtotalsKey。 IftotalsKeyIf it does not match the interface return field, then the component passes […]

  • Centos7 using fdisk: creating and maintaining MBR partition tables

    Time:2020-7-6

    1. Select the virtual machine to add a hard disk in VMware and add a hard disk. So there are two hard disks 2. Restart the virtual machine. CD / dev ා dev is the device directory. There are many devices under it, including the hard disk Ll grep | SD ා filter the file […]

  • Format the flag Admin field (column)

    Time:2020-7-5

    In some cases, we need to format an attribute of the model. For example, by default, the date time will be displayed for a long time. In this case, you may need to display only the month and the day. In this case, column formatting will come into play. For example, if you want to […]

  • Specification of GIT commit submission record

    Time:2020-7-4

    Blog original text: xxoo521.com “specification of GIT commit submission record (interactive command line)” With the increase of project volume, more and more students participate in the project. Everyone has their own habit of playing git log: Format 1:Add: add Format 2:[add]: add Format 3:Add In order to form a unified specification and reach a consensus, […]