In depth analysis of routing -- front end beginners can also develop vue e e-commerce projects
What is the route? Why use routing? What is the function of routing? Can I write the source code of route jump?
After finishing the routing part, the four company strike made me think deeply. Let's learn vue router's wings~
This is an e-commerce project demo based on vue & Axios & mock & t ...
Added by jeny on Sat, 29 Feb 2020 07:10:48 +0200
Gong Service for Smooth Restart Analysis
Smooth restart means that our programs can be restarted without interrupting service, seamlessly linking up old and new processes, and deploying Zero-Downtime.
Smooth restart is based on elegant exit, as described in a previous article: Golang uses the Shutdown feature to gracefully summarize the exit of http services
There are two main strateg ...
Added by justinjkiss on Thu, 27 Feb 2020 04:15:47 +0200
An analysis of the calculation principle of search scoring in elastic search
Several key words of search scoring calculation
TF: token frequency, the number of times a search field appears in the field (the field to be searched) in the document after segmentation
IDF: inverse document frequency, reverse the frequency of a search field in all documents
TFNORM: token frequency normalized
BM25: algorithm: (freq + k ...
Added by millwardt on Fri, 21 Feb 2020 17:53:35 +0200
The realization of a Python intelligent chat robot for Valentine's Day
First package required by the project
import urllib.request
import urllib.parse
from tkinter import *
import time
PS:Many other people are learning Python In the process, I often give up because I can't solve the problem or I don't have a good tutorial. For this reason, I sorted out the basic python Script to web Development, reptile dja ...
Added by sidney on Fri, 14 Feb 2020 18:06:02 +0200
Koa compose source code interpretation
koa
koajs: next generation web framework for node.js.
Koa is the next generation web development framework based on Node.js. It is a simple and easy-to-use web framework based on middleware mechanism, which is elegant, concise, expressive and free. Web applications with specific functions are realiz ...
Added by amarafzal on Sat, 11 Jan 2020 14:33:28 +0200
[20180807] geographic location method: API call of Google map (Chapter 5 of headfirst HTML5)
Location acquisition method of geolocation API
global positioning system
Physical location mapped by location information based on IP address
Cellular telephone triangulation, according to the distance between different cellular base stations to determine the location.
Wi Fi access point completes triangulat ...
Added by arimakidd on Sat, 14 Dec 2019 20:52:41 +0200
About uploading pictures in HTML
About uploading pictures in HTML
It is worth noting that when a form contains this upload element, the enctype of the form must be specified as multipart / form data, and the method must be specified as post, so that the browser can recognize and correctly execute it. But there is another point, the browser only allows users t ...
Added by Pedro Sim on Sat, 14 Dec 2019 20:07:15 +0200
Realization of mind map style with pure css3
Mind mapping is also called brain mapping
He looks like this:
Most of the implementation on the Internet is implemented by d3.js, which is manually implemented by svg. Recently, I am very lazy, wondering if it can be realized by css3?
The answer is yes
html code
<div class="mainBody" id="node1">
<h1>node1 ...
Added by Azzyh on Wed, 11 Dec 2019 16:42:25 +0200
Learn crawler the next day: continue to climb the company's internal address book
import requests
from bs4 import BeautifulSoup
import re
#First, get headers from chrome, including user agent and cookie
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36',
'Cookie': 'tips=1...
}
#Get information about an individual ...
Added by mb81 on Wed, 11 Dec 2019 02:41:13 +0200
JQuery obtains the specified contents of multiple tags at the same time and stores them as an array
In web development, we often encounter the problem of getting the same type of tag, such as the following two cases
When it is necessary to obtain the specified value of the same label in batch, the newcomer will encounter a little trouble
For example, demo with id=problem1
var list1=$("#problem1").children();//Get to problem1 Array of object ...
Added by jdwmk on Sun, 08 Dec 2019 17:13:51 +0200