C ා deserialization of dynamic entity set (dynamic JSON deserialization)
1, Use scenario
When we deserialize the JSON entity set, if the field is fixed, then we can simply serialize the entity set written by the corresponding field. For example:
{
"data":[
{
"houseid": "210166268",
"city": "Tangshan",
"pv": "1"
} ...
Posted by Mastodont on Thu, 30 Apr 2020 02:07:58 -0700
Zhihu daily client -- look at the section every day
After reading this article, you should learn how to show the photo wall and save the pictures to the local place. design sketch:
The last one is about: The realization of Zhihu daily
Knowledge points of this article include: Okhttp, Picasso, CardView, dynamic request permission, create file, folder, save picture.
Layout first:
Material ...
Posted by adrafa on Thu, 30 Apr 2020 00:46:42 -0700
Deployment of Kubernetes cluster ETCD
kubernetes cluster deployment
Three official deployment methods1.minikubeminikube is a tool that can run a single point of kubernetes quickly locally, only for testing K8S or daily developmentDeployment address: https://kubernetes.io/docs/setup/minkube/2.kubeadmKubeadm is also a tool that provides kubeadm init and kubeadm join for rapid deploy ...
Posted by project18726 on Wed, 29 Apr 2020 08:36:10 -0700
Configuration and use of webpack dev server
Continue with the previous one https://www.cnblogs.com/chenyingying0/p/12797474.html
Install webpack dev server
cnpm i sebpack-dev-server
Modify package.json
Because the syntax of configuring environment variables on different platforms (such as windows and mac) is different, in order to write in a way compatible with multiple platform ...
Posted by hadeosdin on Wed, 29 Apr 2020 07:06:48 -0700
Source code series -- OkHttp
OkHttp official website address: https://square.github.io/okhttp/
We talked about get request earlier. Let's take a look at post request
package okhttp3.guide;
import java.io.IOException;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
public class PostEx ...
Posted by md7dani on Tue, 28 Apr 2020 20:00:40 -0700
pyecharts map visualization
pyecharts: Official documents
Here we use the pyecharts module for drawing.
The pyecharts project contains a series of geographic map data. These data are either built-in or need additional installation and loading. We need to download the following six packages.
Choose the installation you need
pip install echarts-countries-pypkg
pip ins ...
Posted by Matth_S on Tue, 28 Apr 2020 09:03:41 -0700
pyecharts map visualization
pyecharts: Official documents
Here we use the pyecharts module for drawing.
The pyecharts project contains a series of geographic map data. These data are either built-in or need additional installation and loading. We need to download the following six packages.
Choose the installation you need
pip install echarts-countries-pypkg
pip ins ...
Posted by Alex-B on Tue, 28 Apr 2020 08:44:36 -0700
Basic knowledge of Flask
Introduction:
Flask is based on python and relies on jinjia2 and werkzeug WSGI services as a micro framework
Werkzeug is essentially a Socket server, which is used to receive http requests and preprocess them, then trigger the Flask framework,
Developers process the request based on the functions provided by the Flask framework and return it to ...
Posted by lessthanthree on Tue, 28 Apr 2020 01:53:50 -0700
Wechat applet learning - global configuration
Global configuration
1.app.js
Define global data and global functions
Definition explanation:
onLanuch when the initialization of the applet is completed, onLaunch will be triggered (only once in the global)
onShow when the applet starts or enters the foreground display from the background, onShow will be triggered
onHide when an appl ...
Posted by hypuk on Mon, 27 Apr 2020 22:56:35 -0700
Detailed steps to use Alibaba big fish Java
Summary
Alibaba greater (formerly Alibaba big fish) is a product of Alibaba communication, which integrates the communication capabilities of three major operators.
Aligreater provides personalized services including SMS, voice, direct charging of traffic, private special line, shop mobile number, etc.
Open SMS service
Step 1:
Step 2:
...
Posted by Agtronic on Mon, 27 Apr 2020 09:42:33 -0700