Get the countdown function of verification code

The countdown of obtaining verification code is very common in current apps. Its main function point is to set a click event for TextView. However, when the countdown occurs after clicking, clicking cannot trigger the click event. The click event can be triggered again when the countdown is over and the verification co ...

Posted by tsabar on Tue, 31 Mar 2020 21:54:26 +0200

Android editing information interface, package of composite control

Github address (full Demo, welcome to download) https://github.com/ganchuanpu/ItemGroup Design sketch   attrs.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <resources> 3 <declare-styleable name="ItemGroup"> 4 <! -- text of title -- > 5 <attr name="title" format="string" /> 6 <! -- font size ...

Posted by astoller on Tue, 31 Mar 2020 16:50:26 +0200

vue customize the touch event of mobile terminal, click, slide and long press event

Usage: **HTML** <div id="app" class="box" v-tap="vuetouch" //The vuetouch is the function name. If there is no parameter, you can write the function name directly v-longtap="{fn:vuetouch,name:'Long press'}" //If any parameter is passed as an object, fn is the function name v-swipeleft="{fn:vuetouch,name: ...

Posted by panic! on Tue, 31 Mar 2020 11:57:46 +0200

10 Minutes Send Mail Service

Sending e-mail should be one of the essential extensions to the website, such as registering for verification, forgetting your password, or sending marketing information to users. 1. Mail Agreement In the process of sending and receiving mail, related agreements need to be complied with, including: Protocol for sending e-mail: SMTP; Protocol f ...

Posted by NoDoze on Mon, 30 Mar 2020 04:57:42 +0200

Customize your own dynamic application authority Library

Why to customize your own dynamic application authority Library After Android 6.0, Android system requires dynamic application for sensitive permissions. This user brings great convenience, but also brings greater challenges to developers. The official API is provided for developers to use, but it's a bit cumbersome to use. There are also many ...

Posted by run2web on Sun, 29 Mar 2020 17:54:24 +0200

Restful API Interface Security Design

1.API Interface Design Specification https://github.com/mishe/blog/issues/129 2. Security Design a. Whitelist restrictions Accept only the request response from a specific system, the caller's IP address needs to be reported in the system, otherwise it cannot be invoked b. Validation of legitimate identity Basic Authentication: This ...

Posted by OM2 on Sat, 28 Mar 2020 09:05:09 +0100

Free deployment of JSProxy services using CloudFlare Worker

This tutorial is only for learning to communicate Cloudflare Workers Official Introduction: Running code on the edge provides strong Web scalability Enhance security by applying custom security rules and filtering logic to edges to detect malicious Bots viruses and prevent them from consuming resources. Incorporate more personalization and int ...

Posted by Toshiba23 on Fri, 27 Mar 2020 09:31:31 +0100

opencv calls Nu book / zxing CPP to identify QR code

Environment installation: 1. The source code of zxing CPP and the lib generated after the source code compilation. My version is V1.0.8. The compilation method is as follows: https://www.cnblogs.com/zhenjin-huaxiazongdai/p/12545959.html . Zxing CPP project path: https://github.com/nu-book/zxing-cpp 2. Visual Studio 2017 installation https://vi ...

Posted by AnarchistX on Thu, 26 Mar 2020 05:15:22 +0100

Spring Boot integrates Redis and JavaMailSender to realize mailbox registration

Opening chapter Today's websites basically have the function of email registration. After all, they can send users some spam recommendations on a regular basis It is very important. To get back to the point, first of all, we need to make a few points clear ==What information do you need for email registration? = = Basic: email address, passwo ...

Posted by N-Bomb(Nerd) on Wed, 25 Mar 2020 17:59:45 +0100

Sharing and downloading functions of applet JAVA in action (69)

We can't share the circle of friends on the applet, we can only spread it by sending the designated users and the designated user group. It's very important to master the sharing function! Source code: https://github.com/limingios/wxProgram.git No.15 and springboot in Official introduction https://developers.weixin.qq.com/miniprogram/dev/frame ...

Posted by ok on Mon, 23 Mar 2020 11:52:07 +0100