commons-lang3 tool class learning (2)

From http://commons.apache.org/proper/commons-lang/javadocs/api-release/org/apache/commons/lang3/ Official documents to organize and remember for yourself 3. BooleanUtils Boolean Tool Class and(boolean...array) logic and BooleanUtils.and(true, true) = true BooleanUtils.and(false, false) = false ...

Posted by Aliz on Fri, 17 Jul 2020 08:53:21 -0700

Dynamically set the width and height of the imageview in HorizontalScrollView

The demand is as follows: There are two kinds of pictures to display, one is 640*640 and the other is 1920*1080. If it is a 1920 picture, you need to double-click to switch the display mode. By default, the middle part of 1920 is displayed by 640*640, which allows you to swipe left and right to view the entire picture ...

Posted by greenie__ on Fri, 17 Jul 2020 08:38:57 -0700

Dynamically set the width and height of the imageview in HorizontalScrollView

The demand is as follows: There are two kinds of pictures to display, one is 640*640 and the other is 1920*1080. If it is a 1920 picture, you need to double-click to switch the display mode. By default, the middle part of 1920 is displayed by 640*640, which allows you to swipe left and right to view the entire picture ...

Posted by ranam on Fri, 17 Jul 2020 08:39:10 -0700

docker creates lnmp image

Docker is a lightweight virtualization technology, and lnmp is a powerful, open-source web running environment, so here's a demonstration of using Docker to build an lnmp image. PS: To maintain lightweight and scalable performance, Docker encourages us to "one process per person"Container"means don't integrate too many functions ...

Posted by webweever on Fri, 17 Jul 2020 07:56:18 -0700

docker creates lnmp image

Docker is a lightweight virtualization technology, and lnmp is a powerful, open-source web running environment, so here's a demonstration of using Docker to build an lnmp image. PS: To maintain lightweight and scalable performance, Docker encourages us to "one process per person"Container"means don't integrate too many functions ...

Posted by darkninja_com on Fri, 17 Jul 2020 07:58:04 -0700

Running multiple mysql instances on one machine

Installation instructions: A mysql program file, a configuration file, running multiple mysql instances (each with its own distinct data directory).For the convenience of the test, only two examples are used in this experiment. MySQL program installation directory: /usr/local/mysql_5.6.38 Data directories for MySQL i ...

Posted by mega_hurtz on Thu, 16 Jul 2020 09:08:28 -0700

Running multiple mysql instances on one machine

Installation instructions: A mysql program file, a configuration file, running multiple mysql instances (each with its own distinct data directory).For the convenience of the test, only two examples are used in this experiment. MySQL program installation directory: /usr/local/mysql_5.6.38 Data directories for MySQL i ...

Posted by mrinfin1ty on Thu, 16 Jul 2020 09:07:05 -0700

web Front End Case-Developing 3D Dragging Photo Wall

This code is 136 lines, written in css3 and javascript. Now the albums on the network are mostly tiled. If there are many photos, they look very tired. Of course, this is my personal point of view, so this time I made a 3D album dragging effect, which looks beautiful and not tired to watch. Knowledge points: CSS33D effect, CSS3 excessi ...

Posted by navarre on Thu, 16 Jul 2020 08:51:27 -0700

CSS message bubble implementation

Message bubble styles are often required in front-end page development, such as: In fact, the above two effects are not complicated, so let's fight for them. 1. Build message boxes The body of the message box is simple, a div, set the background color, border-radius, and so on: .message1,.message2 { width: 2 ...

Posted by CircularStopSign on Thu, 16 Jul 2020 08:34:27 -0700

express Learning (3) - cookie s and session s

express Learning (3) - cookie s and session s Cookies exist in the browser and can only store up to 4K of data, which is not safe Session exists in the server and cannot be independent (read cookie s before session), which is more secure cookie tool Send cookie s: Write the basics first: const express = require('express'); var server=expre ...

Posted by Jedi Legend on Thu, 16 Jul 2020 08:18:30 -0700