java calls https interface

Difference between http and https https protocol needs to apply for certificate from ca, generally there are few free certificates, so it needs a certain fee. http is hypertext transmission protocol, information is plaintext transmission, and https is ssl encrypted transmission protocol with security. ...

Posted by LearningKid on Fri, 01 Nov 2019 15:38:23 -0700

Data hijacking and data broker

Data hijacking Data hijacking uses Object.defineProperty() to implement the two-way binding of vue. Let's see how it works. let obj = {}, txt = '' Object.defineProperty(obj,'txt',{ set(val) { console.log('set ....') txt = val || ''; }, get() { //get callback will be triggered when getting obj.txt. ...

Posted by flashbot on Fri, 01 Nov 2019 14:51:46 -0700

Three ways to read the properties file in the resources directory

In the development process, it is often necessary to read the configuration files under the resources directory. Most of them are automatically read by the framework. If we read them manually, how can we read them? Here are three ways to read the properties file that I summarized: Read configuration file based on InputStreamGet it through the P ...

Posted by nariman on Fri, 01 Nov 2019 14:46:15 -0700

PHP public number is developed to give users a micro message reminder function.

A recent project needs to send a wechat message prompt to users when they have funds received or members changed. In view of this, we started to use template messages, but the newly registered public numbers applied for message templates took several days to apply. In the absence of time, we chose to use customer servic ...

Posted by wiggly81 on Fri, 01 Nov 2019 14:39:12 -0700

Simulate nginx hot deployment

Hot deployment is to upgrade the software while the application is running without restarting the application. First, simulate an online environment where Nginx needs to be upgraded. Assuming that the old version is nginx-1.0.15, it needs to be upgraded to nginx-1.16.0. Configure older versions # Download nginx-1.0.15 wget http://nginx.org/down ...

Posted by fatmikey on Fri, 01 Nov 2019 14:26:35 -0700

jzoj3379 query [chairman tree]

Topic The main idea of the topic In this paper, we give an ordered set AAA, define Al, RA {l, R} Al, R} to represent the number in the range of l ∼ rl\sim rl ∼ r in the set. Define addition A+BA+BA+B to represent all elements in two sets (without de duplication). Now, every time I ask ki,pi ...

Posted by szcieder on Fri, 01 Nov 2019 13:54:40 -0700

The use of ffmpeg in video conversion

1. Create a Java project In this project, three folders ffmpeg, input and output are created to store the converter ffmpeg.exe, the video files to be converted and the converted video files. The format that ffmpeg can parse: (asx, asf, mpg, wmv, 3gp, mp4, mov, avi, flv, etc.). The file format ...

Posted by locell on Fri, 01 Nov 2019 13:35:37 -0700

C + + primer (Fifth Edition) 14.8.2 -- 14.9.1 exercises

14.42  #include <iostream> #include <vector> #include <algorithm> #include <functional> using namespace std; using namespace std::placeholders; bool divByAll(const vector<int> &ivec, int dividend) { return !count_if(ivec.begin(), ivec.end(), bind(modulus<int>(), _1, dividend)) ...

Posted by stylusrose on Fri, 01 Nov 2019 13:25:19 -0700

Python crawler, using beautifulsop to parse page results

Python crawler, you can easily parse the page results by using beautiful soup. Here is the position information of the boss page using this method: including position name, salary, location, company name, company financing and other information. With this example, you can easily see how to use beautifulsop. import requests from bs4 import Beau ...

Posted by dibyajyotig on Fri, 01 Nov 2019 13:19:46 -0700

[Web] JavaScript (No.39) data type conversion

Operator You need to click the picture to contact me or send me a private message or comment. Arithmetic operator + - * / % Unary operator Unary operator: an operator with only one operand Operator binary operator of 5 + 6 operands ++Self plus 1 – self minus 1 Prefix + + var num ...

Posted by Chiaki on Fri, 01 Nov 2019 12:58:53 -0700