249. Responsive layout of bootstrap (grid system)

Responsive layout# I. purpose: the same set of pages can be compatible with devices of different resolutions. 2. Implementation mode: using grid system to achieve: A row is divided into 12 squares. You can set an element to occupy several squares according to the size of the screen. III. steps: Step ...

Posted by antonello on Tue, 25 Feb 2020 20:06:38 -0800

The usage and source code analysis of three java thread Synchronizers

Functions of three Synchronizers This paper mainly introduces three thread synchronizers, their functions are as follows: CountDownLatch: make sure that all sub threads are summarized after execution. There is a counter inside. After execution of a sub thread, count down and return; CyclicBarrier: a ...

Posted by biocyberman on Mon, 24 Feb 2020 06:10:07 -0800

JavaScript to achieve magnifier effect (including throttling)

requirement analysis It is required to make a magnifying glass as shown in the figure, with mouse following, turning on and off when right clicking, including transition animation. The general idea is to bind mouse events and dynamically modify the background position. The difficulty lies in that the ...

Posted by myharshdesigner on Tue, 18 Feb 2020 04:56:57 -0800

JS regular expression creation, matching string, escape, character class, repetition and common characters

Regular expressions operate on strings Function: search, replace and validate data   There are two ways to create regular expressions: // Literal measure /js/ // Constructor method regular expression new RegExp() Common characters: alphanumeric characters blank;, @ (no special meaning symbol)   Two ways to match: test, find and return true ...

Posted by Invincible on Sat, 15 Feb 2020 05:59:10 -0800

On the bug of GZIPInputStream

http://cin-ie.iteye.com/blog/859822 As for the bug of GZIPInputStream, this problem has not been solved in the latest version of jdk. Note when using gzip:   http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4691425   Problem Description:   When using GZIPInputStream to read the gizp file, us ...

Posted by roomyz on Thu, 13 Feb 2020 06:58:13 -0800

Use of timers

Objective: to solve the problem of inaccurate software delay by using timer.Several methods to realize timing function: 1. Software timing: software timing does not take up hardware resources, but takes up CPU time, reducing CPU utilization. 2. Time base circuit timing: for example, 555 circuit. 3. Usin ...

Posted by rstrik on Tue, 11 Feb 2020 01:28:45 -0800

Leave back to hell and enter the Promise Era

brief introduction In the JavaScript world, all code is executed by a single thread. As a result of this "defect", all network operations and browser events of JavaScript must be executed asynchronously, so the expected results are often different. Because of JS flexibility, callback callbac ...

Posted by goatboy on Tue, 11 Feb 2020 00:36:09 -0800

The hottest front-end layout at present

1. rem Foundation rem unit rem (root em) is a relative unit, similar to em. EM is the font size of the parent element, and the benchmark of rem is the font size of the html element. For example, if the root element (html) is set to font size = 12px and the non root element is set to width:2rem, then ...

Posted by esconsult1 on Mon, 10 Feb 2020 04:18:18 -0800

Linux storage IO stack -- an overview of SCSI subsystem

Summary Hierarchical architecture of Linux SCSI subsystem: Low level: it represents the actual driver of the physical interface with SCSI, such as the driver developed by each manufacturer for its spe ...

Posted by networkguy on Sun, 09 Feb 2020 20:20:54 -0800

spring boot+layui paging practice

The project uses layui to make a simple book search page and share it. Like friends give a little like!!!   Realization effect   Development steps 1. Front page and JS <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> <head> ...

Posted by woobarb on Fri, 07 Feb 2020 07:02:38 -0800