Tag:method

  • Details of Django Middleware

    Time:2020-6-2

    Django advanced practical programming Video tutorial sharing address: https://study.163.com/course/introduction/1209407824.htm?share=2&shareId=400000000535031 Use the link address above to enter Intron Middleware is a hook framework used by Django to handle requests and responses. It is a lightweight, low-level “plug-in” system, used to control the input or output of Django globally, which can be understood as a built-in app […]

  • A small topic leads to the discussion of JavaScript support regular expression related methods

    Time:2020-6-2

    This article is published on my blog, a small topic leads to the discussion of JavaScript support regular expression related methodsLicense agreement: signature – non-commercial use – deduction prohibited 4.0 international reprint please keep the original link and author. In the past, I was very afraid of regularity because I couldn’t understand and learn. But […]

  • Electron sends a message to iframe in WebView

    Time:2020-6-2

    Electronic’s renderer and webivew internal page communication can be realized by loading preload in the WebView page. The official document also gives an example code: //On the renderer page const webview = document.querySelector(‘webview’) webview.addEventListener(‘ipc-message’, (event) => { console.log(event.channel) // Prints “pong” }) webview.send(‘ping’) //In preview in WebView const { ipcRenderer } = require(‘electron’) ipcRenderer.on(‘ping’, () […]

  • Talk about the scalarfunction of the Flink table

    Time:2020-6-2

    order This paper focuses on the scalarfunction of the Flink table example public class HashCode extends ScalarFunction { private int factor = 0; @Override public void open(FunctionContext context) throws Exception { // access “hashcode_factor” parameter // “12” would be the default value if parameter does not exist factor = Integer.valueOf(context.getJobParameter(“hashcode_factor”, “12”)); } public int eval(String […]

  • [Android development art exploration] working process of four components

    Time:2020-6-2

    Personal blog http://www.milovetingting.cn Working process of four major components Four components: activity, service, broadcastreceiver, ContentProvider Operation status of four major components In addition to the broadcastreceiver, the other three components of Android must be registered in the Android manifest. For broadcastreceiver, you can register either in Android manifest or through code. In terms of calling […]

  • Learn Vue incident handling together

    Time:2020-6-2

    In the front-end development of Vue, event monitoring is an essential function. In this paper, through a simple small example, the simple use of v-on is briefly described. It is only for learning and sharing. If there are any shortcomings, please correct them. Listening events You can use the v-on instruction to listen for DOM […]

  • Revisit the core of OO

    Time:2020-6-2

    The core of case interpretation is object-oriented. All cases are based on C ා, involving the most frequently concerned issues in our practice: 1. Encapsulation, inheritance and polymorphism; 2. Abstract class and interface; 3. Delegation, event. 1、 Three characteristics of object-oriented: encapsulation, inheritance and polymorphism Each object contains all the information it can operate on […]

  • Encapsulation, polymorphism

    Time:2020-6-2

    preface: Three features of Python: inheritance, encapsulation and polymorphism. 1. Package:Encapsulate a lot of data into ⼀ objects. Encapsulate fixed function code into ⼀ code blocks, functions, objects, Package into modules. This belongs to the idea of encapsulation. For example, if you write a very B function, this can also be called encapsulation. In the […]

  • ⚠️ Review summary of IOS interview in 2019 ⚠️ — ⚠️ Constantly updating ⚠️

    Time:2020-5-31

    In the summer of 2019, the weather in Chengdu is particularly sultry. Because of the company’s reasons, I have to consider interviewing a stable and mature large company. From the beginning, I have always dreamed of entering a company that can get a broad platform for development, and one day I can be the technical […]

  • Thread sharing and collaboration in concurrent programming (1)

    Time:2020-5-31

    For more advanced video learning of Android architecture, please click: https://space.bilibili.com/47…This article will discuss thread sharing and collaboration from the following aspects: [interpretation of CPU core number, thread number and time slice rotation mechanism of basic concepts][sharing between threads][collaboration between threads] 1、 Basic concepts Number of CPU cores and threadsThe relationship between the two: the […]

  • Paging’s application in recyclerview, this one is enough

    Time:2020-5-31

    preface AAC is a very good set of framework components. If you haven’t understood it, I recommend you to read my previous series of articles: Android Architecture Components Part1:Room Android Architecture Components Part2:LiveData Android Architecture Components Part3:Lifecycle Android Architecture Components Part4:ViewModel After a year of development, AAC has launched a series of new components to […]

  • Decomposition: the application of PHP magic method in laravel

    Time:2020-5-31

    Original link: https://learnku.com/laravel/t… For discussion, please go to the professional laravel Developer Forum: https://learnku.com/Laravel Laravel takes PHP to a whole new level, providing you with a great development experience (DX) for your next project. Therefore, some people call it “magic“. Today, I’m going to show you one of laravel’s tricks,Magic Methods 。 What is magic? […]