Tag:mode

  • Save the screenshot to a file

    Time:2021-5-7

    Screen capture in trust GDI mode GDI screenshot speed is relatively slow, if you want to do screen recording, remote control, etc., please use the librarycaptrsIt is very, very fast because it takes a screenshot in DXGI mode, but XP and win7 are not supported by default. Cargo.toml [package] name = “demo” version = “0.1.0” […]

  • Basic use of mybatis

    Time:2021-5-7

    Welcome to the community markdown editor! Mybatis is a semi ORM persistence layer framework. Its advantage is that it can write native SQL statements in mapper. The effect is obvious. Developers can easily control the execution of SQL. They can write logical SQL through dynamic SQL tags. The writing of SQL is flexible and the […]

  • Designing an RPC framework is not easy

    Time:2021-5-7

    RPC is the abbreviation of remote procedure call, which is a communication technology used by programs and processes running between multitasking operating systems or networked computers. opening Anyone who wants to write code should know that the most commonly used way of communication between systems in modern programming is HTTP call and RPC call. For […]

  • Differences between http1 and http2

    Time:2021-5-7

    Differences between HTTP1.1 and HTTP2 preface When I was asked about the difference between HTTP1.1 and http2 in an interview, I casually answered some contents related to keep alive and upgrade. I realized from the eyes of the interviewer that my answer should be far from good. I checked the following information and summarized as […]

  • React high order components (3) high order components of inheritance mode

    Time:2021-5-4

    High order component of inheritance mode If the passed in parameter component is wrappedcomponent, the returned component will inherit from the passed in parameter component if it is wrappedcomponent. The difference between agent mode and high-level component High level component of proxy mode High order component of inheritance mode As can be seen from the […]

  • JavaScript graphic example: Hilbert curve

    Time:2021-5-4

    In 1891, German mathematician David Hilbert constructed a kind of curve. First, he divided a square into four small squares, starting from the center of the square in the northwest corner, going south to the center of the square in the southwest, then east to the center of the square in the southeast corner, and […]

  • . net send HTTP request

    Time:2021-5-3

    string postData = “appKey=” + appKey;// parameter postData += (“&appSecret=” + appSecret); var request = (HttpWebRequest)WebRequest.Create(url); request.Method = “POST”;// Request method request.ContentType = “application/x-www-form-urlencoded”;// Request content type var data = Encoding.UTF8.GetBytes(postData);// Get length request.ContentLength = data.Length; Stream newStream = request.GetRequestStream(); //send newStream.Write(data, 0, data.Length); newStream.Close(); //get WebResponse response = request.GetResponse(); newStream = response.GetResponseStream(); StreamReader reader […]

  • Share two recently encountered MySQL database bug cases

    Time:2021-5-3

    In the past month, when dealing with historical data problems, I encountered two MySQL bugs in a row. I’d like to share them with you, and you are welcome to point out if there is any problem. BUG1: Database version:  MySQL5.7.25 – 28 Operating system:CentOS 7.7 (not important) Database architecture: master slave cascade slave Database […]

  • Summary of common coding types of Ajax form submission

    Time:2021-5-2

    Previous article(Detailed explanation of code type enctype in form submission)Describes the form propertiesenctypeToday, let’s talk about the common coding types when submitting forms in Ajax. Submit the form in Ajax mode, and it is the request header that determines the coding typeContent-TypeDifferent values correspond to different submission and callback processing methods. Moreover, in the project, […]

  • Mongodb uses domestic source to accelerate installation

    Time:2021-5-1

    Mongodb is a very famous document database. According to the installation method described in the official documents, for some reasons, we will be very slow in the installation. Since I use the alicloud server, I happen to see mongodb in the alicloud image source. After configuring it according to the document, I can’t download and […]

  • On the understanding and thinking of IOC and di

    Time:2021-5-1

    1、 Preface In the actual development process, we often encounter such a situation. When debugging and analyzing problems, we often need to record log information. At this time, we can use output to the console. Therefore, we usually define a log class to implement the output log. Define a logical processing method for generating validation, […]

  • 1.3.0-alpha04 Fragment result api

    Time:2021-4-30

    On April 29, 2020, the  androidx. fragment:fragment : version 1.3.0-alpha 04, the modified version discards the previous fragment data transmission mode and adds a new API, as shown in the figure below   In the past, fragments should have been used to transfer data. There are many ways to obtain fragment instances, arguments, callbacks, and […]