Tag:head

  • Leetcode 415. String addition | Python

    Time:2020-11-26

    415. String addition Source: leetcode https://leetcode-cn.com/problems/add-strings subject Given two non negative string integers num1 and num2, calculate the sum of them. be careful: The length of num1 and num2 is less than 5100 Num1 and num2 contain only numbers 0-9 Neither num1 nor num2 contains any leading zeros. You can’t use any of the built-in […]

  • Linked list and stack

    Time:2020-11-23

    Linked list Summary:1. The time complexity of adding, deleting and searching elements in the head of the linked list is O (1). If it is in other positions, the time complexity of the above operations is O (n).2. The efficient operation of the head element of the linked list meets the requirements of stack construction.

  • Python crawler – Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0x8b in position 1: invalid start byte

    Time:2020-11-8

    The errors are as follows: UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x8b in position 1: invalid start byte Crawled web page check: Content-Encoding: gzip You need to decompress gzip request = urllib.request.Request(url = url, headers = request_headers) reponse = urllib.request.urlopen(request,timeout = timeout) data = reponse.read() buff = BytesIO(data) f = gzip.GzipFile(fileobj=buff) res = f.read().decode(‘utf-8’) print(res) […]

  • What is the MRR of MySQL?

    Time:2020-11-8

    introduce MRR, full name of “multi range read optimization”. In short:MRR improves the performance of index query by converting “random disk read” to “sequential disk read”. as for: Why convert random reading to sequential reading? How is it transformed? Why can sequential reading improve read performance? Perform a range query: mysql > explain select * […]

  • On the algorithm of animation: LinkedList

    Time:2020-11-1

    brief introduction LinkedList should be a very, very simple data structure. Nodes are connected one by one to form a linked list. Today we use animation to see how LinkedList is inserted and deleted. Construction of LinkedList LinkedList is composed of nodes one by one. Each node only needs to store the data to be […]

  • Go | gin solves cross domain problems and cross domain configuration

    Time:2020-10-30

    <h1>Go | gin solves cross domain problems and cross domain configuration</h1> preface In the project of separating front end and back end, we often encounter cross domain problems. How to solve the problems?! 1、 About cross domain solutions Most of the cross domain solutions can be divided into two types Nginx reverse proxy solves cross […]

  • A network request process under Browser

    Time:2020-10-23

    A network request process under Browser To input http://github.com/appleguardu… Web request is essentially a host to another host to obtain the corresponding resources 1. Process switching When the navigation bar enters http://github.com/appleguardu… The browser process gives the URL to the network process to process and give me to go to this host to get resources; […]

  • Full screen adaptation of flutter

    Time:2020-10-17

    The author in this articleReactnative full screen (Android) adaptationWhen it comes to the issue of full screen, not only Android platform, but also IOS platform, gives me the feeling that mobile phones are getting longer and longer.The aspect ratio of mobile phones is not as 16:9 as before. For example, the aspect ratio of iPhone […]

  • What you should know about JWT

    Time:2020-10-2

    What is JWT? The full name of JWT is JSON web token, which is a very lightweight specification. This specification allows us to use JWT to deliver secure and reliable information between users and servers. JWT usage scenarios jwtExtensive use of pictures, such asto grant authorization、authentication Etc. To be more specific, if a user a […]

  • Initial configuration of mobile terminal, compatible with rendering kernel of different browsers

    Time:2020-9-18

    This is the initial header style of mobile terminal layout, which can solve the compatibility problem of different browsers  

  • HTML + CSS + jQuery to realize left sliding and stretching navigation menu bar

    Time:2020-9-9

    PC terminal Mobile terminal code <!DOCTYPE html> <html> <head> < title > left navigation <meta charset=”utf-8″> <script></script> <meta name=”viewport” content=”width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover”> <style> *{ margin:0; padding:0; } #header{ width: 100%; height: 60px; background: #fff; position: fixed; top: 0; } #header .dh_btn{ width: 60px; height: 60px; background: #f00; float: left; cursor: pointer; line-height: 60px; text-align: center; } #header […]

  • HTML syntax

    Time:2020-8-28

    “Gazing at the short lifeline in the palm and talking to herself whether there is a destiny, the silent wife just takes a pen to extend him to the wrist and keep HTML in captivity. “——Good morning, Emily Chen! code annotation Explain to the browser “this is the type of HTML document, parsed according to […]