Applet deployment

First of all, wechat users need to log in automatically to check the session. If the session expires, log in again wx.checkSession({ success: function (res) { }, fail: function (res) { console.log("Need to sign in again"); wx.login({ success(res) { if (res.code) { ...

Posted by longhorn14 on Mon, 18 Nov 2019 08:38:32 -0800

About the use of verticaltablelayout

Now many Android mobile terminals will use the combination of TabLayout+ViewPager. The native only has horizontal layout design. Here is a vertical tablayout control.I use AS, just introduce compile 'q.rorbin: verticaltablelayout: 1.2.5' into gradle Find this class q.rorbin.verticaltablayout.VerticalTabLayout setTabHeight set TAB heightSet ind ...

Posted by Tyrant on Mon, 18 Nov 2019 07:54:13 -0800

Precautions for spring boot 1.x up 2.x

Record some errors during upgrade. This upgrade is 1.5.x upgrade to 2.1.4 ---------------------------------------------- If java version is lower than 8, please do not upgrade. spring boot 2.0 requires at least java 8. ---------------------------------------------- One: WebMvcConfigurerAdapter has been abandoned @Configuration public cl ...

Posted by flying_circus on Mon, 18 Nov 2019 00:57:01 -0800

Picture Loading Frame Picture Loading Frame Selection Mid-story

Ali P7 Mobile Internet Architect Advanced Video (Updated Daily) Free Learning Click: https://space.bilibili.com/474380680This article will use Glide to illustrate the Picture Loading Frame selection: First, add dependencies implementation 'com.github.bumptech.glide:glide:4.5.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.5.0' The ...

Posted by Fearsoldier on Sun, 17 Nov 2019 18:40:31 -0800

Basic course of Xamarin chart Development -- OxyPlot framework

Basic tutorial of Xamarin chart development (8) OxyPlot framework [example OxyPlotFormsDemo] display the line graph in Xamarin.Forms. (1) open the Xamarin.Forms project. (2) add the OxyPlot.Xamarin.Forms component to the introduction of each subproject. (3) open the MainActivity.cs file of the subproject OxyPlotFormsDemo.Android, and initia ...

Posted by OnePlus on Sat, 16 Nov 2019 06:40:02 -0800

The mobile terminal h5 determines whether to scroll to the bottom and pull down to load

How to judge whether the scroll reaches the bottom? The first knowledge to understand: scrollHeight,clientHeight,scrollTop scrollHeight Read only property, height includes all contents, including inner margin, but not including horizontal scroll bar, border and outer margin. clientHeight It is also a read-only attribute. The element without ...

Posted by fahrvergnuugen on Fri, 15 Nov 2019 06:33:34 -0800

Spring security spring boot + spring security SMS confirmation

Now there are three main login methods: account password login, SMS verification code login and third-party authorized login. The previous section Spring security (3) -- authentication process We have analyzed the spring security account password mode login. Now let's analyze the spring security SMS mode authentication login.   &emsp ...

Posted by aissa on Thu, 14 Nov 2019 20:19:01 -0800

Handler Messaging Mechanism Analysis

Use and usage of Handler Most people who have written Android programs will encounter ANR (Application Not Responding).If the program does not respond for a period of time, a dialog box will pop up to let the user choose whether to continue waiting or force the application to close.To avoid ANR, we need to put time-consuming logic into a backg ...

Posted by big_c147 on Thu, 14 Nov 2019 12:38:52 -0800

An example of Java simulating ordered linked list data structure

Ordered list: Sort by key. When the chain head is deleted, the minimum (/ maximum) value is deleted. When inserting, the insertion position is searched. When inserting, you need to compare O(N), average O(N/2), and delete the minimum (/ maximum) data in the chain head with an efficiency of O(1), If an application needs frequent access to (ins ...

Posted by jeffshead on Thu, 14 Nov 2019 06:51:59 -0800

SpringBoot+Poller Long Connection Implements Scavenging Logon Function Demo-Postman Simulated Scavenging Request

Scavenging Logon Function Demo-Postman Simulated Scavenging Request Scavenging Logon Function - Polling or Long Connection WebSocket - Zxing Generate 2D Code Scavenging login is actually a login request, but the information is stored on the user's mobile phone. It also needs two-dimensional code to verify whether the matching method can be used ...

Posted by Rob2005 on Wed, 13 Nov 2019 23:15:23 -0800