Tag:Blank line

  • Linux file view command

    Time:2020-10-18

    File view command     1. Cat: displays the contents of the file from the first line Usage: cat file or file path For example: cat ifcfg-eth0 or cat / etc / sysconfig / network scripts / ifcfg-eth0 Parameters: -A: The integration option equivalent to – vt can list some special characters instead of blanks; […]

  • Introduction to sed command

    Time:2020-7-26

    In sed processing, there are two buffers: [pattern space] and [hold space] Sed execution process: First read a line, remove the trailing newline character, store it in [pattern space], and execute the edit command. After processing, unless the – n parameter is added, the current [pattern space] will be printed out, and the line breaks […]

  • Original | how do I solve the oom problem of POI parsing excel?

    Time:2020-5-25

    background Before, I took over a project to parse excel, which was parsed by the POI component in Java, but oom often appeared during parsing. Later, I optimized it from the following aspects and solved 99% of the problems. Yes, you are right, only 99% of them are solved. Solution 1. Adjust the heap memory […]

  • Linux operation and maintenance – 03. Create a trove-mysql5.7 image

    Time:2020-5-2

    Install MySQL yum install http://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm yum remove mariadb-libs yum install mysql-community-server 2. Configure MySQL mkdir -p /etc/mysql/conf.d/ vim /etc/my.cnf ….. #There are blank lines here !includedir /etc/mysql/conf.d/ chown -R mysql:mysql /etc/mysql/ 3. Install percona xtrabackup innobackupex yum install https://www.percona.com/redir/downloads/percona-release/redhat/percona-release-0.1-4.noarch.rpm yum install percona-xtrabackup-24 The following problems occurred: Transaction check error: file /etc/my.cnf from install of Percona-Server-shared-56-5.6.44-rel86.0.el7.x86_64 […]

  • Relearn web backend development-002-hello, world

    Time:2020-4-22

    UNIX is very simple, it just needs a genius to understand its simplicity. —— Dennis M.Ritchie When the author started to learn programming, he learned C language. The first example of getting started is to print a sentence “Hello, world” on the console. Later, I came into contact with PHP, Java, python, go and other […]

  • Installation and parameter configuration of csscomb and elimination of blank lines

    Time:2020-4-3

    CSScomb It is a super cool front-end CSS attribute sorting tool, used to rule CSS, make your code more beautiful Introduction to sublime plug-in csscomb The official website only has an introduction to the function of plug-inMake your code beautiful。 Use it to help you reorder the properties defined in CSS and generate new CSS […]

  • The method of removing blank lines in JSP programming

    Time:2020-3-29

    In this paper, an example of JSP programming to remove blank lines. To share with you for your reference, as follows: Due to the introduction of package commands and other processing in JSP, the rendered page source code has many line breaks. There used to be many ways to solve it, such as 1. In […]

  • C notes common shortcut keys

    Time:2020-1-31

    1. Part I CTRL + up / down moves the text up and down in the center of the cursor’s behavior; CTRL + left / right to skip a word or symbol; CTRL + end jumps to the end of the text; CTRL + delete delete the word or symbol after the cursor; CTRL + […]

  • Golang detects Linux server port occupation

    Time:2020-1-2

    code implementation func CheckPort(port int) error { checkStatement := fmt.Sprintf(`netstat -anp | grep -q %d ; echo $?`, port) output, err := exec.Command(“sh”, “-c”, checkStatement).CombinedOutput() if err != nil { return err } //Log. Println (output, string (output)) = > [48 10] 0 or [49 10] 1 result, err := strconv.Atoi(strings.TrimSuffix(string(output), “\n”)) if err != […]

  • VIM technique: delete the blank characters at the beginning and end of the line, and delete the blank line

    Time:2019-12-26

    This article introduces some skills of vim: Remove white space characters (spaces and tab characters) at the beginning and end of a line Delete blank lines Delete an empty line with only one line break Delete blank lines that contain blank characters, but do not delete blank lines that have only one line break Delete […]

  • Fast code sorting (C × 3)

    Time:2019-12-25

    Today, I found that some lines of code are uneven, many lines are empty, and sorting looks ugly. So I searched the Internet for shortcuts to code sorting for records   It’s a mess before it’s sorted out Step 1: Ctrl + a (select all codes) Step 2: Ctrl + K + F (organize code) […]

  • [stylecop] stylecop rule summary

    Time:2019-11-24

    Translation of all rules (based on version 4.7.44.0): Document rules 1. Sa1600: the elementsmustbedocumented element must be annotated 2. Sa1601: members decorated by partialelementsmustbedocumented must be annotated 3. Sa1602: enumeration itemsmustbedocumented enumeration must be annotated 4. Sa1603: documentationmustcontainvalidxml comments must be legal (the keywords in the comments cannot have errors) 5. Sa1604: the element documentationmusthavesummary […]