• Binding of angular template to expression


    We use the followingangularThe version of is1.3.x, the complete code is at the end of the article, an online exampledemoNote that the code example I give below is only a partial interception, and the complete part is at the end of the article。 1First, one of the most commonly used instructions for binding expressions isngBindFor […]

  • Write OS kernel from scratch – lock and multithreading synchronization


    Series catalog Preface preparation BIOS boot to real mode GDT and protection mode On virtual memory Load and enter the kernel Display and print Global descriptor table GDT Interrupt processing Virtual memory perfection Implement heap and malloc First kernel thread Multithreading operation and switching Lock and multithreading synchronization Enter user status Process implementation system call […]

  • Vue basic introductory notes 01: Vue basic code, interpolation expression, v-on, v-bind


    Vue learning notes Differences between Vue and MVVM Vue basic code <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <meta http-equiv=”X-UA-Compatible” content=”ie=edge”> <title>Document</title> <script src=”https://cdn.jsdelivr.net/npm/vue”></script> </head> <body> <div id=”app”> <p>{{msg}}</p> </div> <script> var vm = new Vue({ el :’#app’, data:{ msg :’hello wold’ } }) </script> </body> </html> Interpolation expression Solving the […]

  • Vue basic introductory notes 08: keyboard modifiers, user-defined instructions


    Vue basic introduction notes 08 Keyboard modifier Keyboard enter Custom instruction Focus case <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <meta http-equiv=”X-UA-Compatible” content=”ie=edge”> <title>Document</title> <script src=”https://cdn.jsdelivr.net/npm/vue”></script> <link rel=”stylesheet” href=”https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css” integrity=”sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u” crossorigin=”anonymous”> </head> <body> <div id=”app”> <!– Keyboard modifier — > <input @keyup.f2=’show’ v-model=’name’ type=”text” name=”” id=”input” class=”form-control” value=”” required=”required” pattern=””> <!– […]

  • Link&Compile


    Compile and linkThe compile function is used to convert the template of the instructionLink is used to establish an association between the model and the view, including registering event listeners on elements.The scope is bound to the element only in the link phase, so an error will be reported when operating the scope in the […]

  • Front end angular2 actual combat: ngfor in built-in instructions


    Angular2 has many new built-in instructions, among which ngfor is used to replace the old ng repeat tag. You can view the development progress of angular2Is Angular 2 Ready?, you can view the relevant codes of the authorhere。 The way to display list data in angular1 is as follows: <!– Angular 1.x –> <ul> <li […]

  • Introduction to Linux shell script Basics


    introduce Shell script is an important tool to realize Linux system automation, improve efficiency and avoid repeated work, such as the following scenario 1. Optimization and IP address setting after system installation 2. Establishment of service after system installation 3. Monitoring of system resources and services, etc Learning shell scripts is best based on the […]

  • Let’s find fault: remember a murder case caused by clang’s – OZ option


    Author: byte hopping terminal technology — Liu Xia preface The author comes from the apphealth (client infrastructure – apphealth) team of byte beating terminal technology. In our work, we will maintain and customize the open source llvm and swift tool chain to promote the implementation of various compiler optimizations in the business scenario. As a […]

  • Principle of atomic operation realized by CPU


    The CPU before 586 will passLOCKAtomic operation is realized in the form of lock bus. 686 provides cache coherence at the beginning,   This is the basis of multiprocessing and atomic operation   1. Granularity of storage The organizational form (granularity) of storage is based onCacheLineThe unit is usually 64 bytes or higher (32 bytes […]

  • Vernacular takes you to open the door of the operating system


    The origin of everything Turing machine Turing machine is mainly composed of data storage unit, control unit, operation unit and a read-write head for reading and writing external data.Turing machine needs a paper tape. The paper tape is covered with a grid. Characters can be recorded on the grid. Characters can be divided into data […]

  • Docker (VI): dockerfile build image


    Life is boundless, learning is boundless First, understand the relationship among docker image, container and dockerfile through a diagram. As can be seen from the above figure, use dockerfile to define the image and run the image startup container. Dockerfile concept Docker image is a special file system. In addition to providing the program, library, […]

  • Application of tdengine in Haige intelligent manufacturing


    [introduction to the author]: Da Luo, Haige intelligent manufacturing architect, mainly engaged in cloud native and big data system development, and once participated in the construction of national demonstration industrial Internet system. For industrial Internet or Internet of things systems, the most basic requirement is to display data curves, such as power curves, which are […]