Category:Program

  • “The embedomicon” study notes

    Time:2022-11-27

    “The embedomicon” study notes Some differences from the original tutorial Chapter 5 was rewritten because!asmand!global_asmHas entered stable, the way the original text is too cumbersome. The original book of Rust Edition adopts 2018, and this article adopts 2021. According to the official statement, the Rust Edition and the Rust version should be independent, and the […]

  • JWT authentication and golang implement JWT demo

    Time:2022-11-27

    JWT=JSON Web Token is currently a popular distributed authentication scheme. Authentication Scheme Generally, the traditional Cookie/Session authentication scheme is commonly used. The authentication process: The user sends username+password to the server; After the server is authenticated, store the user’s login information, such as userId/role/loginTime, etc.; The server returns session_id to the user and writes the […]

  • Requirements Analysis – Microservice Combat in High Concurrency Scenarios (2)

    Time:2022-11-27

    Hello, hello, nice to meet you.In the article “Microservices in High Concurrency Scenarios (1)”, I mentioned that I decided to take a virtual high concurrency scenario microservice system as the main line, and systematically create a high concurrency scenario microservice system from 0 to 1. This high-concurrency business scenario is——Ticket booking system ticket spike。Below I […]

  • How Lua code runs

    Time:2022-11-27

    Previous“How does C code run”In , we learned how the high-level language C language works. Although the C language is also a high-level language, it is a very “old” language after all (almost 50 years old). In comparison, the abstraction level of the C language is not high. From the expressive ability of the C […]

  • Live streaming reservation Lake Warehouse service, the end of Big data? This open source launch is for you!

    Time:2022-11-27

    【Click to sign up now】August 11th, NetEase Shufan will hold “Enterprise-level streaming lake warehouse service Arctic Open Source Conference“, invited Netease Shufan’s big data product line and relevant partners to jointly interpret the thinking on the evolution of data technology and Arctic open source, introduce the progress of the Arctic project, future development and community […]

  • Example of async/await and promise/promise.all

    Time:2022-11-27

    overview promiseprovides for jsconcurrent asynchronousability, havecallback hellThe problem. async/awaitcan make a batchpromiseaccording tosynchronous sequentiallymode to execute (some interface-dependent scenarios have this requirement), and solvecallback hellThe problem. promise.allcan wait for a batchpromiseTaskAll execution completedreturn later, return togetherresult set,Suitable forSubtasks have no interdependencies,butfollow-up tasksdepend onData results of previous subtasksscene. Promise / Promise.all PromiseProvides an asynchronous interface, withresolve/rejectIt […]

  • How to Manually Add Cookies in Chrome Browser

    Time:2022-11-27

    Method 1: Select EditOpen the specified URLhttp://www.fgba.net/developer optionIn the Elements column, click the right arrow to open the ApplicationClick the cookies arrow on the left to find the link where you areAdd key-value pairs of cookies Method 2: command modeFirst of all, you still need to open the specified URLThen enter the command under Consoledocument.cookie=”key=value”Done!

  • Front-end architects break the game skills, NodeJS landing WebSocket practice

    Time:2022-11-27

    The source of this article is the public account:programmer success This article introduces in detail the implementation of WebSocket in Node.js from the perspective of network protocol, technical background, security and production application. outline preview The content introduced in this article includes the following aspects: Network Protocol Evolution Socket.IO? ws module implementation Express integration WebSocket […]

  • JZ-053 – strings representing numeric values

    Time:2022-11-27

    a string representing a value topic description Please implement a function to determine whether a string represents a value (including integers and decimals). For example, the strings “+100”, “5e2”, “-123”, “3.1416” and “-1E-16” all represent numeric values. But “12e”, “1a3.14”, “1.2.3”, “+-5” and “12e+4.3” are not. topic link: a string representing a value the code […]

  • leetcode 303. Range Sum Query – Immutable area and retrieval – array immutable (simple)

    Time:2022-11-27

    1. The main idea of ​​the topic https://leetcode.cn/problems/range-sum-query-immutable Given an integer array nums, handle multiple queries of the following types: Computes the sum of nums elements between indices left and right (inclusive), where left <= rightImplement the NumArray class: NumArray(int[] nums) Initialize the object using the array numsint sumRange(int i, int j) Returns the sum […]

  • EasyNLP open source|Chinese NLP+ large model landing, EasyNLP is all you need

    Time:2022-11-27

    Introduction: How is the technical framework behind EasyNLP designed? What are your plans for the future? Let’s learn more together today. Author | Lin Zai, Cen Ming, Xiong XiSource | Alibaba Developer Official Account A guide As BERT, Megatron, GPT-3 and other pre-training models have achieved remarkable results in the NLP field, more and more […]

  • Taro source code-cli project creation process

    Time:2022-11-27

    Based on Taro3.5.5find createtaroThe entry file of the project (packages/taro-cli/bin/taro) // packages/taro-cli/bin/taro require(‘../dist/util’).printPkgVersion() const CLI = require(‘../dist/cli’).default new CLI().run() Cli packages/taro-cli/src/cli.tsWhat this file does isaccept builtin commands、Breaking down builtins、Register corresponding command plugins for different built-in commands。 Get our project path when initializing // packages/taro-cli/src/cli.ts constructor (appPath) { this.appPath = appPath || process.cwd() } Execute in […]