Tag:Realization

  • Implementation skills of Web Music in Web Design

    Time:2022-5-2

    When inserting music into the web page, write different codes according to different suffixes! The following is the detailed use code of various format files.Note:“Music file and address” – the file name of the file to be played, preceded by the absolute path or the relative path of the site. width_ Num — specify a number […]

  • Keepalive to achieve high availability of nginx

    Time:2022-3-17

    Keepalive to achieve high availability of nginx Experimental background: two CentOS 7 servers are installed with nginx respectively. Nginx sets up the reverse proxy Apache Web. nginx1 ip:10.2.7.204, nginx2: 10.2.7.205, vip: 10.2.7.210 Nginx1, nginx2 download and install keepalived yum install -y keepalived Nginx1 and nginx2 add check to check whether nginx runs files_ nginx. sh […]

  • XHTML CSS write regular blog

    Time:2022-3-16

    The full name of blog should be web log, which means “network log” in Chinese. Later, it is abbreviated as blog, and blogger is the person who writes blog. In terms of understanding, blog is “a publishing method that expresses personal thoughts, network links and content, arranged in chronological order and updated constantly”. In short, […]

  • Simple ajax implementation (Hello Ajax)

    Time:2021-12-16

    Client part: Copy codeThe code is as follows: <html> <head> <meta http-equiv=”Content-Type” content=”text/html”/> <script language=”javascript”> var ajax; function createAjax() { if(window.ActiveXObject) { try { return new ActiveXObject(“Msxm12.XMLHTTP”); } catch(e) { try { return new ActiveXObject(“Microsoft.XMLHTTP”); } catch(e2) { return null; } } } else if(window.XMLHttpRequest) { return new XMLHttpRequest(); } else { return null; } […]

  • C + + vector simulation implementation code

    Time:2021-11-10

    Introduction to vector 1. Vector is a sequence container that represents a variable size array.2. Like arrays, vectors use continuous storage space to store elements. This means that you can use subscripts to access the elements of a vector, which is as efficient as an array. But unlike an array, its size can be changed […]

  • Implementation code example of Java Web paging

    Time:2021-4-7

    This article mainly introduces the implementation of Java Web paging code examples, this article through the example code is very detailed, for everyone’s study or work has a certain reference learning value, need friends can refer to Classification of Pagination Pagination is divided into true pagination and false pagination. 1. True paging (physical paging) Implementation […]

  • Analysis of two shell for loop corresponding implementation methods

    Time:2021-1-29

    preface: Application scenarios in the production environment: create different number of directories under the root directory, mount different hard disks, and correspond to / data2 – / datan in the order of SDB SDN, which needs for loop nesting to solve, such as for I in 123, for J in ab c. 1a, 2b, 3C, […]

  • Wechat applet to achieve a simple swiper code example

    Time:2021-1-5

    This article mainly introduces the wechat small program to achieve a simple swiper code example. The example code is introduced in great detail, which has a certain reference learning value for everyone’s study or work. Friends in need can refer to it Don’t say much, just take a picture HTML <swiper previous-margin=”70rpx” next-margin=”70rpx” current=”0″ autoplay=”true” […]

  • Using VBS to realize the code of CMD function

    Time:2020-12-29

    Using VBS to realize the function of CMDon error resume next  do while d<>”520″  D = InputBox (“please input command, multiple commands are connected by & link. Close the VB window command (520 “)set q=createobject(“scripting.filesystemobject”)  set a=WScript.CreateObject(“WScript.Shell”)  a.run “%Comspec% /c”&d  loop In general programs, it’s better not to add on error resume next, unless you know very well that the methods of some objects […]

  • Using VBScript for command to realize timing shutdown

    Time:2020-12-20

    The following statement implements the shutdown at a specified time on each day of the weekIf you want to change to a few days of the month, change the letters to numbers and separate them with commasThere are no error detection statements in the following code, so you must input the time in the specified […]

  • Analysis of bash command process through Java

    Time:2020-8-9

    This article mainly introduces the implementation of bash command process analysis through Java. The example code is introduced in detail, which has a certain reference learning value for everyone’s study or work. Friends in need can refer to it 1. Introduction to bash command Bash, a UNIX shell, was written by Brian Fox for the […]

  • Three implementation methods of distributed lock and their comparison

    Time:2020-5-15

    There are three implementation methods of distributed lock: 1. Realize distributed lock based on database; 2. Implement distributed lock based on cache (redis, etc.); 3. Implement distributed lock based on zookeeper; 1、 Implementation of distributed lock based on Database 1. Pessimistic lock Using select where … Exclusive lock for update Note: other additional functions are […]