Tag:code snippet

  • From the start of app

    Time:2020-10-14

    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

    Time:2020-9-30

    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

    Time:2020-9-21

    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

    Time:2020-9-10

    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

    Time:2020-7-30

    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

    Time:2020-7-9

    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

    Time:2020-6-27

    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 […]

  • PM2 starts Python application

    Time:2020-6-7

    PM2 start Python application – instance server.py Code snippet modification server.py Path / data / source / ProjectName_ env/src import os,sys from ailayout import settings src_dir = os.path.dirname(os.path.realpath(__file__)) settings.WORKDIR = os.path.dirname(src_dir) ########################Add port1 variable#################### try: port1 = sys.argv[1] except IndexError: port1 = False ############Set port1 to: false when port1 is empty############### from ailayout.server import app […]

  • Translation of atom Flight Manual: 2.7 ~ 2.10

    Time:2020-6-3

    Automatic completion If you still want to save some typing time, atom comes with a simple auto completion feature. through the use ofctrl-space, the autocomplete tool allows you to see and insert optional complete words. Usually, the autocomplete tool will browse the entire document that is currently open to find a match for the word […]

  • task scheduling

    Time:2020-5-30

    >>Return to C ා concurrent programming 1. Schedule to thread pool 2. Task scheduler 2.1. Default scheduler 2.2. Capture current synchronization context scheduler 2.3. Concurrentexclusiveschedulerpair scheduler 3. Scheduling parallel code 4. Synchronization of data flow with scheduler 1. Schedule to thread pool Task task = Task.Run(() => { Thread.Sleep(TimeSpan.FromSeconds(2)); }); Task.RunIt can also return results […]

  • Translation of atom Flight Manual: 2.6 code segment

    Time:2020-5-29

    Code snippet Code snippet is a very effective tool, which can quickly generate common code syntax from a shortcut. That is to say, you can type something similar tohabtmAnd then press enter, and he will expand tohas_and_belongs_to_many。 Many packages come with their own code snippets with specific patterns. For example, HTML syntax highlighting and syntaxlanguage-htmlThe […]

  • Translation of atom Flight Manual: 2.12 writing in atom

    Time:2020-5-27

    Writing in atom Although atom is often used to write software code, it can also be used to write articles efficiently. This is usually done in some markup languages, such as markdown and ASCII doc (the format used in the English manual). We’ll take a quick look at some of the tools atom provides you […]