Django Channel real time push and chat

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

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 on Wed, 29 Apr 2020 08:35:02 -0700 by gauss

Some knowledge points of ES6

1. Define variables / constants 1) . let defining variables 1. Function: *Similar to var, it is used to declare a variable 2. Features: *Valid in block scope *Cannot repeat declaration *No preprocessing, no promotion 3. Application: *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

Style beautification of blog Garden

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

JQuery EasyuidataGrid control to get pageSize,pageNumber, etc.

1. Get the current page number and number of page records for the datagrid by: First Writing 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; ; and Get page records ...

Posted on Tue, 28 Apr 2020 09:34:31 -0700 by sylesia

Open source task scheduling framework under. NET Core

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

A simple API for creating a production environment with Flask - Zhihu

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

BuildUserVars and BuildNameDescriptionSetter plug-ins for jenkins plug-in learning

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

Classified navigation content slide of wechat applet practice [wechat]

1. First, let's configure the index.json file { "component": true, "usingComponents": {}, "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

Correct posture of eating melon, Python draws cloud map of Luo Zhixiang's words

Preface 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