Category:Program Language

  • DK7 switch’s support for string

    Time:2021-3-7

    Before JDK7, switch can only support byte, short, char, int or their corresponding encapsulation classes and enum types. After JDK7, switch supports string type. In the switch statement, the value of the expression cannot be null, otherwise NullPointerException will be thrown at runtime. Null cannot be used in the case clause, otherwise compilation errors will […]

  • Trust learning — define modules to control scope and privacy

    Time:2021-3-7

    Modules allow us to divide the code in the crates into groups to improve readability and reusability. The module also controls the privacy of the project, that is, whether the project can be used by external code (public) or internal implementation details but not for external use (private). For example, let’s write a library box […]

  • Talk about developer career planning 2

    Time:2021-3-7

    A series of articles: Let’s talk about the career planning of developers Talk about developer career planning 2 Talk about the choice of developer career planning industry and good company Talk about the team, position and income of developer career planning Talk about 520 special of developer career planning How to consider career development From […]

  • Socket completes simple communication

    Time:2021-3-7

    Introduction of socket Socket, also known as “socket”, will send data through UDP / TCP protocol to realize simple communication between two machines. Note: if you want to use socket to realize simple communication between two machines, please make sure that the two machines are connected to the same local area network. Of course, socket […]

  • Linux miscellany root file system

    Time:2021-3-7

    A series of articles: Notes on Linux 1 Linux miscellany root file system Linux miscellany 2 /Boot system boot related, kernel, initrd, grub, boot loader This work adoptsCC agreementReprint must indicate the author and the link of this article The wind in June

  • Pyppeter for slider in iframe

    Time:2021-3-7

    import asyncio import time import numpy, random import pyppeteer async def main(): IP = “xxxxx” ා proxy IP Port =? XXX? Proxy port browser = await pyppeteer.launch({‘headless’: False, ‘args’: [ ‘–window-size={1300},{600}’ ‘–disable-extensions’, ‘–hide-scrollbars’, ‘–disable-bundled-ppapi-flash’, ‘–mute-audio’, ‘–no-sandbox’, ‘–disable-setuid-sandbox’, ‘–disable-gpu’, ‘–disable-infobars’ f’–proxy-server={ip}:{port}’ ], ‘dumpio’: True }) page = await browser.newPage Open a new page await page.goto (‘url […]

  • Analysis of implementation examples of springboot Date Converter

    Time:2021-3-7

    This article mainly introduces the spring boot Date Converter implementation example analysis, the article through the example code is very detailed, for everyone’s study or work has a certain reference learning value, need friends can refer to Note: this function is not unique to springboot, spring MVC also has 1、 How to use it Create […]

  • Example code of binding form data by using custom structure

    Time:2021-3-7

    The following example uses a custom structure type StructA struct { FieldA string `form:”field_a”` } type StructB struct { NestedStruct StructA FieldB string `form:”field_b”` } type StructC struct { NestedStructPointer *StructA FieldC string `form:”field_c”` } type StructD struct { NestedAnonyStruct struct { FieldX string `form:”field_x”` } FieldD string `form:”field_d”` } func GetDataB(c *gin.Context) { var […]

  • Detailed steps of installing Python 3.6.5 on Ubuntu 16.04

    Time:2021-3-7

    Download python3.6.5 installation package 1. Upload the installation package. Open the terminal, use the command CD to enter the file folder [email protected]:~/workspace$pwd /home/python/workspace 2. Unzip the file tar xfzPython-3.6.5.tgz Note: the XFZ command is used here, but the – xvzf command is not recommended, because the released folder needs root permission to be changed or […]

  • Interpretation of functions and usage examples of classes and objects in PHP

    Time:2021-3-7

    This paper introduces the functions and usage of classes and objects in PHP. The details are as follows: 1. Class and object Class is the basic concept of object-oriented programming. It is the structure description of a kind of things and an abstract concept. Object is a concrete instance of a kind of things and […]

  • Trust learning — path of project in reference module tree

    Time:2021-3-6

    To show rust where to find the project in the module tree, we use the same path as when browsing the file system. If you want to call a function, you need to know its path. Paths can take two forms:The absolute path starts at the root of the crate by using a create name […]

  • Next generation rust OS: zcore officially released

    Time:2021-3-6

    A series of articles: awesome rust Mongodb officially released mongodb rust driver Rust organization on GitHub Learn rust through examples Rust implementation of common algorithms Lightweight Windows GUI tool library based on Rust Chinese English comparison of rust language terms Official weekly diary of rust Small and fast rust asynchronous runtime SMOL Microsoft open source […]