Let's take a look at the final effect
Start chatting, input message and click send message to start chatting
Click "get back-end data" to start real-time push
Let's take a brief look at Django Channel
Channels is a project that uses Django and extends its functions beyond HTTP to handle WebSocket, chat protocol, IoT protoc ...
Posted on Wed, 29 Apr 2020 17:44:34 -0700 by cdog5000
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 on Wed, 29 Apr 2020 08:35:02 -0700 by gauss
1. Define variables / constants
1) . let defining variables
*Similar to var, it is used to declare a variable
*Valid in block scope
*Cannot repeat declaration
*No preprocessing, no promotion
*Loop traversal plus monitor
*Replacing var with let is the trend
2) . const defin ...
Posted on Wed, 29 Apr 2020 01:00:32 -0700 by deeppak
Now I use markdown for writing, but the style of markdown in blog Garden is not my idea. After some setbacks, I beautify the style by the way. Thank you for allowing custom style in blog Garden~ Several files involved are uploaded to Code cloud , download if necessary.
1: Change the highlighted style of the code
Blog park uses highlight.min ...
Posted on Tue, 28 Apr 2020 21:25:39 -0700 by DeX
1. Get the current page number and number of page records for the datagrid by:
currPageNumber: which page to represent
currPageSize: Number of data bars representing the page of currPageNumber
Get page number: var currPageNumber =
$("#dg" ).datagrid("getPager" ).data("pagination" ).options.pageNumber;
Get page records ...
Posted on Tue, 28 Apr 2020 09:34:31 -0700 by sylesia
Development and use of HangFire
After reading a lot of blogs, Xiaobai wrote a blog for the first time.
Recently, there are always problems with the previous task scheduling framework, so I want to find a replacement. The previous framework used Quartz.Net. The convenience of this framework is to support cron expressions for complex date scena ...
Posted on Mon, 27 Apr 2020 22:02:33 -0700 by knashash
Accessing this api will return a piece of data from the database according to the specified conditions. The conditions (request parameters) include three:
Service type: service type
City ID: City ID
Car type ID
Return content: only one piece of data can be queried from the database according to the above three conditions, includi ...
Posted on Mon, 27 Apr 2020 07:36:25 -0700 by Sassci
The execution order of BuildUserVars and BuildNameDescriptionSetter plug-ins in jenkins plug-in learning
The two plug-ins BuildUserVars and BuildNameDescriptionSetter have been used before,
Through BuildUserVars, you can get who triggered the build. This plug-in will set a similar environment variable BUILD_USER
Then set the environment vari ...
Posted on Sun, 26 Apr 2020 03:00:02 -0700 by kellz
1. First, let's configure the index.json file
"navigationBarTitleText": "Pet Encyclopedia"
2. Then add the style in the index.wxss file (the meaning and class of the style are not explained specifically)
/* pages/baike/index.wxss */
/* 1. Set the background color of the entire page */ ...
Posted on Sat, 25 Apr 2020 07:13:34 -0700 by KindMan
The text and pictures of the article are from the Internet, only for learning and communication, and do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time for handling.
This article introduces the method of drawing word cloud in Python. It's not hard to see tha ...
Posted on Fri, 24 Apr 2020 08:21:14 -0700 by lynosull