Tag:End

  • How to view the number of online users of Apache

    Time:2022-4-14

    # netstat -n | awk ‘/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}’

  • APC, a tool to improve PHP performance under Linux operating system

    Time:2022-4-3

    apc installThe latest apc-3.0.18 Tgz, unzip and enter the directory   APC download address http://pecl.php.net/package/APC   /Usr / local / PHP / bin / phpize (production configure file)   ./configure –enable-apc –enable-apc-mmap –with-php-config=/usr/local/bin/php-config   Make make.Install   cp /usr/local/lib/php/extensions/no-debug-zts-20060613/apc.so /usr/local/lib/php/extensions/apc.so   chmod 755 /usr/local/lib/php/extensions/apc.so   Configure / etc / PHP Add at the end of […]

  • HTML tutorial: collect common HTML tags (4)

    Time:2022-3-29

    These introduced HTML tags do not necessarily fully conform to the XHTML specification. You should make choices in the actual layout, such as B tag and font tag, which do not comply with XHTML specification.Related articles:Beginners contact HTML to understand some HTML tags (3) These introduced HTML tags do not necessarily fully conform to the […]

  • leetcode-Day2

    Time:2022-3-25

    Topic 1: Given an array of integers, move element 0 to the end of the array and keep the order of non-0 elements Conclusion: Use the double pointer to traverse in turn, move the non-0 element forward, and then set the number of the corresponding position to 0 code go func moveZeroes(nums []int){ lens := […]

  • VBScript monitors and ends the code for the specified process

    Time:2022-3-22

    Operation effect diagram: Code (monprocess. VBS):   Copy codeThe code is as follows: On Error Resume Next   strComputer = “.” arrTargetProcs = Array(“calc.exe”, “notepad.exe”, “other.exe”)‘array is the name of the process to be monitored Set SINK = WScript.CreateObject(“WbemScripting.SWbemSink”,”SINK_”) Set objWMIService = GetObject(“winmgmts:” & _  “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”) objWMIService.ExecNotificationQueryAsync SINK, _  “SELECT * […]

  • Beginners contact HTML to understand some HTML tags (1)

    Time:2022-3-18

    Beginners contact HTML to understand some HTML tags and introduce them one after another. They can help beginners learn HTML, or friends who have already started can be used as a reference!Beginners contact HTML to understand some HTML tags and introduce them one after another. They can help beginners learn HTML, or friends who have […]

  • Use go language to solve the problem of scan space end input

    Time:2022-3-1

    problem Input of go languageScan, whether it’sScanf, orScanlnOr others, all of which end with spaces. But our input may be blank.such asFan One 666 Scan var msg string _,_ =fmt.Scan(&msg) fmt.Printf(msg) Scanf var msg string _,_ =fmt.Scanf(“%s”,&msg) fmt.Printf(msg) Scanln var msg string _,_ =fmt.Scanln(&msg) fmt.Printf(msg) You can see that all three are like this, and […]

  • MSSQL · where filters strings with spaces

    Time:2022-2-18

    Reading time |0.28 minutes word count |456.8 characters primary coverage |1. Introduction & background “MSSQL · where filter pits containing white space strings” Author | SCscHero Writing time | 2022/1/18 PM8:14 Article type |Series Degree of completion |Completed motto Every great cause has a trivial beginning. 1、 Introduction & backgroundDegree of completion: 100% a) Dealing […]

  • 2. Data structure (implemented in PHP) — stack with array

    Time:2022-2-11

    Note: This article uses array to realize stack, so it will mainly do logical operation on array (the logical operation of array is mentioned above)https://segmentfault.com/a/11…) 1. Implementation logic <?php /** *Content: implementation of array stack * create: 2020-10-20 */ namespace StackBundle; use ArrayBundleBaseArray; class BaseArrayStack { /** *Array class * @var BaseArray */ protected $baseArray; […]

  • 3. Data structure (implemented in PHP) — queue is implemented with array

    Time:2022-2-9

    Note: This article uses arrays to implement queues, so it will mainly do logical operations on arrays (the logical operations of arrays are mentioned above)https://segmentfault.com/a/11…) 1. Implementation logic <?php /** *Content: implementation of array queue * create: 2020-10-21 */ namespace QueueBundle; use StackBundleBaseArrayStack; class BaseArrayQueue extends BaseArrayStack { /** *Insert data from front * @return […]

  • Solve the problem that bash on Ubuntu on window installation Zsh is invalid. Installation instructions are attached

    Time:2022-2-8

    preface ZshIt is a great shell. People who use Linux and MAC systems basically know the existence of Zsh. problem After installationZshAfter, Zsh can be used, but after restart, it returns to the default bash.After I install it, I use the commandchsh -s /bin/zshSwitch the default shell.Then, output$SHELLThe variables are as follows: [email protected] ~ # […]

  • Detailed explanation of [combined ordered linked list] of data structure and algorithm

    Time:2022-1-12

    Title Description There are the following ordered linked lists N1 and N2: 1 -> 5 -> 9 1 -> 3 -> 6 -> 10 It is required to merge the linked list. The merged new linked list is still in order: 1 -> 1 -> 3 -> 5 -> 6 -> 9 -> 10 Topic […]