Mobile page adaptive solution -- rem layout

If the UI gives us a design size of 750 * 1340. Combined with the dynamic font size attribute, design draft size and collaboration process between the front end and design on the html element of the home page of Netease and Taobao mobile terminal, they are generally divided into the following two types: 1. Netease practice: ...

Posted by RobOgden on Fri, 27 Dec 2019 09:04:11 -0800

[beginner to Daniel Road 11] port management optimization of switch background management

Project requirements Project 10 uses port1,port2,port3,port4,prot5, and set  port1, set  port2, set  port3, set  port4, set  port5 to manage five ports. The code is bloated and repetitive, which is not easy to maintain. Solution:Use an array of structs. Project realization Modification: //Five port variables are defined //struct port por ...

Posted by Morbius on Thu, 26 Dec 2019 23:35:34 -0800

Java Serial 65-A Preliminary Study of Custom Manual Throwing Exceptions, Exception Ranges of Subclasses, Arrays

1. Manually throw an exception 1. Custom invalid name exception: (1) Compile-time exceptions, inheriting Exception directly (2) Runtime exceptions, inheriting RuntimeException directly Example: Note: throws throws an exception up, if it runs to the top, that is, to the main main method, don't throw it anymore, use try...catch.... To print it ou ...

Posted by sethi_kapil on Wed, 25 Dec 2019 11:03:50 -0800

Parameters of 07-02 function

[TOC] Introduction of Participating Arguments in One Form Illustration: Fig. 05 The parameters of a function are divided into formal and actual parameters, referred to as formal and actual parameters: A formal parameter is a parameter declared in parentheses when a function is defined.A formal parameter is essentially a variable name that rece ...

Posted by pug on Tue, 24 Dec 2019 13:16:56 -0800

Android audio and video (2): collect microphone PCM with AudioRecord and save it to file

1. First understand the recording process 1. Define AudioRecord recording related parameters, such as audio acquisition source, audio sampling rate, channel, data format, and minimum recording cache //Audio acquisition source private static final int mAudioSource = MediaRecorder.AudioSource.MIC; //Microphone //Audio ...

Posted by mrjap1 on Tue, 24 Dec 2019 07:33:01 -0800

Talk about rocketmq's ScheduleMessageService

order This paper mainly studies the schedule message service of rocketmq ScheduleMessageService rocketmq-all-4.6.0-source-release/store/src/main/java/org/apache/rocketmq/store/schedule/ScheduleMessageService.java public class ScheduleMessageService extends ConfigManager { private static final InternalLogger log = InternalLoggerFactory.getLo ...

Posted by stephfox on Mon, 23 Dec 2019 11:02:02 -0800

pm2 file configuration details

brief introduction PM2 is a process management of Node application with load balancing function! Built in load balancing (using Node cluster cluster module) Can run in the background It can shut down and reload in 0 seconds. (it can be understood that there is no need to shut down and restart, and we have updated the program w ...

Posted by igor berger on Mon, 23 Dec 2019 09:59:10 -0800

css3 -- achieve click ripple effect

Pure css for ripple effectNote: use pseudo element: after to define the ripple effect. At the beginning, opacity is 0, which is invisible to the user. Click and enter the active state. Opacity becomes 0.3, which is not zoomed. transition: 0s. After exiting the active state, it will display again naturally: after the style in t ...

Posted by lpxxfaintxx on Sat, 21 Dec 2019 07:33:13 -0800

How can YiluPHP directly use all classes without configuration or injection?

Friends who have used YiluPHP have found that no matter model class, logical class, auxiliary class or tool class, you do not need to set load or injection in the configuration file or use include or require or use in the page when you use all classes. Just use $app - > class name - > method name (). This mechanism is so convenient that e ...

Posted by mxdan on Fri, 20 Dec 2019 03:56:07 -0800

Partitioning tables with online redefinition -- Based on rowid

RDBMS 11.2.0.4  Before, the table was redefined online. The primary key mode is mainly used. This time, because there is no primary key on the table, it is done through rowid. The following is a simple example, which does not involve indexes, etc. (in fact, the index is also very simple, just set it to the tmp table and take i ...

Posted by dubt2nv on Thu, 19 Dec 2019 11:58:13 -0800