Wechat has stopped visiting the webpage to share solutions

background Due to the strict restrictions on wechat, domain names are inadvertently determined to be induced to share. Therefore, the company decided to investigate a set of stable, fast and high accuracy wechat domain name interception detection query interface. The development team tried Google search for a while and found that they rarely sh ...

Posted by jmack159 on Mon, 02 Dec 2019 23:52:30 -0800

Solution to select all and get value value value of the iCheck plug-in

When we use the jQuery iCheck plug-in, we encounter a problem, that is, when we use the normal js select all function, it is invalid. $("#checkall").click( function(){ if(this.checked){ $("input[name='checkname']").each(function(){this.checked=true;}); }else{ $("i ...

Posted by showman on Mon, 02 Dec 2019 05:49:54 -0800

Multi file upload and download: transfer as hexadecimal string

1. Preface Recently, we are maintaining an old Web project, which uses DWR 2.0 (a remote communication framework that can call Java methods in js). Now we need to use this framework to upload files to and download files from the server. However, DWR 2.0 used in this project only supports calling Java methods with basic data types, String, List, ...

Posted by Fakcon on Mon, 02 Dec 2019 05:36:35 -0800

spring boot cross domain problem

Cross domain refers to mutual access between different domain names. Cross domain means that the browser cannot execute scripts of other websites. It is caused by the browser's homology policy, and it is the browser's security restrictions on JavaScript. That is to say, if we want to use Ajax to get specific content in site B in site A, if site ...

Posted by andrewmay67 on Mon, 02 Dec 2019 01:27:24 -0800

Simple use of VirtualAPK

Steps to introduce VirtualApk: I. Introduction of virtual APK to host application 1. Add dependency in the build.gradle file of the project: dependencies { classpath 'com.didi.virtualapk:gradle:0.9.8.6' } The complete gradle file is as follows: // Top-level build file where you can add configuration options common to all sub-projects/module ...

Posted by darksniperx on Sun, 01 Dec 2019 14:38:17 -0800

C + + connect and use MySQL database

1. C onnect MySQL database with C + + First, create a new C + + project in VS, right-click the project name, and select properties. Select platform selection Select configuration manager Choose new Select X64 from the drop-down menu. OK Select C / C + + > General - > attach the include directory, and add C:\Program Files\M ...

Posted by markl999 on Sun, 01 Dec 2019 06:18:48 -0800

beego orm many to many query

First, correct the documentation of beego rel_tableSet the name of the automatically generated m2m relation tablerel_throughIf you want to use a custom m2m relationship table in an m2m relationshipSet its name in the format of pkg.path.ModelName through thiseg: app.models.PostTagRelPostTagRel table needs to have a relationship to Post and Tag ...

Posted by iii on Sat, 30 Nov 2019 20:18:16 -0800

Detailed explanation of the principle of Google Authenticator TOTP (take Python as an example)

Xiaosheng blog: http://xsboke.blog.51cto.com If in doubt, please Click here The author will reply in time (or comment directly in the current article). -------Thank you for your reference. If you have any questions, welcome to exchange I. detailed explanation of the principle (click and zoom in the picture) II. Verific ...

Posted by aurigus on Sat, 30 Nov 2019 10:23:35 -0800

Using gRPC client in PHP

Because the work needs to use gRPC, I use windows 10, but the operation flow of linux is basically the same. Go directly to the topic, divided into several parts 1. Download Protoc Download address: https://github.com/google/protobuf/releases Select the corresponding platform and download the binary file used herehttps://github.com/protocol ...

Posted by jexx on Fri, 29 Nov 2019 01:01:08 -0800

Basic knowledge of function

1. Definition of function The format of Go language function definition is as follows: func function_name( parameter list ) return_types { //Function body } Function parameter Function if you use an argument, the variable can be called a parameter of the function. Formal parameters are like local variables defined in a function body. To c ...

Posted by KingOfHeart on Wed, 27 Nov 2019 06:20:45 -0800