Tag:code snippet

  • Protection mode_ 1_ Segment register_ Segment descriptor_ Segment selector


    Segment 1 register Structure of segment 1-1 register Illustration: Structure representation: struct SegMent { WORD Selector; WORD Attribute; DWORD Base; DWORD Limit; } Attribute detection of segment 1-2 registers It can be read and written through MOV instruction (except LDTR and TR) Introduction to segment register members Detect whether attribute exists int var=0; int main() […]

  • NVM common commands


    Install & update NVM Run one of the following commands to install & update NVM, or download the install file to update curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash NVM will be installed in~/.nvmDirectory, and the following code snippet will be appended to the new profile file(~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc) export […]

  • Operating system — privilege level switch


    There are four levels of privilege level, from high to low: level 0, level 1, level 2 and level 3. Switching privilege level refers to transferring from level 0 to level 1, or from level 1 to level 3. In short, it refers to the transfer from one privilege level to another different privilege level. […]

  • How to use c# to build your own task scheduler


    Translation link:https://www.infoworld.com/art… TPL (Task Parallel Library) is one of the most interesting new features in the latest version of. Net framework, which was introduced in. Net framework 4.0. To use TPL, you need to reference the system. Threading. Tasks namespace. What are task schedulers? Why do you need them? If I want to ask, how […]

  • Six great ways to show code


    Most of the time, developers need to show code snippets, which may be used for demos, blogs or summaries. So what are the code tools? 1. Polacode https://github.com/octref/pol… If you like vs code, then this one suits you!PolacodeIs a vs code extension, can be directly from theVSCodeGet a nice screen capture of the code. 2. […]

  • From the start of app


    The process of APP startup in IOS is a little complicated. Today, let’s explore the process of APP startup step by step. First of all, the user clicks on the icon of an app in the iPhone, and the kernel kernel will start to initialize the space and create a process, and then call exec_ […]

  • Address space randomization for app vulnerability scanning


    preface In the previous “app vulnerability scanner local denial of service detection details”, we learned that aliju security vulnerability scanner has a static analysis and dynamic fuzzy test method to detect the function, and introduced in detail its detection method for local denial of service. At the same time,Aligather vulnerability scanner has a detection item […]

  • Analysis of block closure


    Analysis of block closure In short, block is an object that encapsulates the function and its context. It can be regarded as an anonymous function in C + + or a block. Block type writing method: Return value + (^ block name) + (parameter) = ^ (parameter) {content} As follows: int (^myBlock)(int a, int b) […]

  • Write 5g network speed and delayed loading lazyloading in page speed up


    Recently, more attention has been paid to the network speed. Whether it is the 5g of the new infrastructure or the 5g WiFi in the home router, including the upcoming purchase of new 5g mobile phones After that, I think it’s necessary to write an article on the IPv4 / 5G hot network mode. Although […]

  • Vs code plug in for improving front end development efficiency


    Auto Close Tag Automatically add HTML / XML closing tag, same as visual studio ide or sublime text When you type the closing bracket for the start label, the end tag is automatically inserted. Auto Rename Tag Automatically rename paired HTML / XML tags Beautify Beautify vs Code Select the code to be beautified and […]

  • Atom flight manual translation: 2.12 writing in atom


    Writing in atom Although atom is often used to code software, it can also be used to write articles efficiently. This is usually done in markup languages, such as markdown and asciidoc (the format used in English manuals). Here’s a quick look at some of the tools atom provides you with for writing articles. Spelling […]

  • Email with authorization code and email with email user name and password only


    The project will encounter the need to use public mailbox to send mail to other mailboxes. In this demand, there are two different scenarios for sending email.1. The authorization code of the public email can be obtained. [the authorization code is applied in the personal settings of the public email, as shown in the figure […]