Tag:Result

  • Application of HTTP response – 302304 code

    Time:2021-5-11

    Basic structure     Description of status code     302     Results of packet capture   If the cache is not clear, visit a.php for the second time, and the result is as follows     302 status code can also jump to the Internet   304 tells the browser that the resource […]

  • Read JDK source code: asynchronous task futuretask

    Time:2021-5-11

    In Java, the runnable interface represents a task that does not return a result, while the callable interface represents a task that returns a result.In concurrent programming, executing tasks asynchronously and obtaining task results can improve the throughput of the system. Future interface emerges as the times require. It represents the execution results of asynchronous […]

  • NoSQL 1: memcached

    Time:2021-5-10

    1、 Introduction to NoSQL NoSQL is not no SQL, but not only SQL. NoSQL is not used to replace relational database, but in some scenarios where relational database is not suitable, NoSQL database can be used for optimization, while relational database is still used for main and conventional data in the system.The commonly used NoSQL […]

  • HTTP response — Disable cache settings

    Time:2021-5-10

    A detailed HTTP response       Demonstrate how to control the browser to jump at a certain interval through HTTP response     Demonstrates how to control page caching through HTTP response   The result of packet capture is 200 every time without cache  

  • Operators of [Java basics]

    Time:2021-5-9

    Operator concept A symbol for operations between constants and variables Classification of operators Arithmetic operator assignment operator relational operator (comparison operator) logical operator bitwise operator ternary operator Arithmetic operator +There are many meanings in Java 1. As a positive number + 5, monocular operator a + + binocular operator a + B, ternary operator a? […]

  • New features of php8

    Time:2021-5-9

    Detailed description and code are on GitHub, welcomestarandfork Brief description of php8.0.0 PHP 8.0.0 alpha 1 will be released on June 25, 2020, and GA 8.0.0 will be released on November 26, 2020. Click view. PHP 8.0.0 alpha 1 cannot be used in production environments. Click to view the details PHP 8.0.0 alpha 1 download […]

  • How does git compare the differences of different branches

    Time:2021-5-7

    Two days ago, Liang Xu encountered a trouble when doing integration. The thing is, a colleague of Liangxu accidentally merges a wrong dev branch to the master branch, which leads to the compilation failure of Liangxu. Therefore, we need to return the version to the state before merge. It’s easy to deal with the following […]

  • Tear JS by hand (may be updated continuously)

    Time:2021-5-7

       some common ways to implement JS are frequently asked questions in the interview, and may be at a loss at the beginning. Knowing and understanding the principles can be more like a duck to water in daily development, and it is not a problem to face an interview. In addition, learn to take the […]

  • Flexible use of ORM query in Sqlalchemy

    Time:2021-5-7

    Before doing the query, I always thought it was convenient to spell SQL directly. After using Sqlalchemy’s ORM query, I found that it was OK and the readability was improved. This article mainly talks about the ORM query method commonly used by Sqlalchemy, which is more practical. After reading it, I think it can meet […]

  • Flag pager_ Non analysis of pages

    Time:2021-5-6

    Database information: Code program: if __name__ == “__main__”: user=User.query.paginate(1,2) for i in user.iter_pages(): print(i,end=” “) Output information: 1 2 3 4 5 none 8 9 Today, I have a look at the source code to analyze it def iter_pages(self, left_edge=2, left_current=2, right_current=5, right_edge=2): last = 0 for num in xrange(1, self.pages + 1): if num […]

  • ES6 points north [7] – from callback hell to promise and async / await

    Time:2021-5-6

    1 synchronous and asynchronous 1.1 JS can only do one thing at a time First, we need to understand that JS is a single threaded language,You can only do one thing at a time。 We can go through itJS executionandDOM renderingShare one threadTo understand this principle: When JS modifies the DOM, the browser will not […]

  • Four methods of clear floating

    Time:2021-5-6

    Four methods of clear floating Case explanation code .container { width: 500px; background-color: black; } .left { width: 200px; height: 300px; background-color: red; float: left; } .right { width: 200px; height: 200px; background-color: green; float: left; } .footer { width: 600px; height: 50px; background-color: blue; } <div class=”container”> <!– black –> < div class = […]