Tag:code

  • Comparison of extending nodejs based on C + + and rust

    Time:2021-10-27

    C + + mode npm install node-gyp -g mkdir demo && cd Demo && npm init Create fib.cc Create binding.gyp node-gyp configure build Create test index.js file node-gyp https://github.com/nodejs/nod… In order to test the performance comparison, the algorithm uses Fibonacci’s recursive implementation.fib.cc: // addon.cc #include <node.h> namespace demo { using v8::Exception; using v8::FunctionCallbackInfo; using v8::Isolate; […]

  • [hero post] freeredis invites you to optimize the project together.

    Time:2021-10-27

    well! Hello, everyone!   FromFreeRedisSince the opening of the warehouse, many people have used it in the production environment. It is stable and maintained by Lao Ye.   On the other hand, we are optimizing the functional modules of freeredis. Please note that this information does not mean that there is a problem with the current […]

  • Update the version number using the NPM command line

    Time:2021-10-27

    background Version number is a set of public rules for the gradual evolution of software and between its users. Semantic versioning semantic version number is a set of public conventions on how to specify the version number. In our daily software production process, we not only produce the software itself, but also produce some reusable […]

  • Libp2p RS version 0.2.1 & 0.2.2 introduction

    Time:2021-10-27

    V0.2.1 was released on 1.26, adding support for async STD and Tokio libraries. 0.2.2 was released on 3.1. Most of the problems in this version are found during the migration of trust IPFs. At present, the migration has been completed. The project address is https://github.com/netwarps/r… , the main update is to upgrade and optimize the […]

  • A brief history of webpack construction and development

    Time:2021-10-26

    preface In the last decade, with the rapid popularization of mobile phones, mobile tablets and wearable devices, the development of Web front-end has also developed from traditional PC web page development to multi terminal development. Therefore, we need to take into account the development of web pages with different resolutions such as PC H5 at […]

  • Reload go application in real time

    Time:2021-10-26

    brief introduction 1. You can implement live reload of go code2. Based onfreshNo maintenance, no developmentair characteristic Colorful log output Customize build or binary command Support excluding subdirectories Allow watching new directories after Air started Better building process install go get -u github.com/cosmtrek/air use air Output: 1. Because MySQL service is not enabled locally, there […]

  • Use of asp.net core middleware (II): use of dependency injection

    Time:2021-10-26

    Write in front In the last article, you have learned about the use of. Net core middleware:Use of ASP. Net core middleware (I): building a static file server / accessing specified files, Many core objects in the. Net core framework are provided through dependency injection. What is dependency injection? This is also an old question. […]

  • Redis actual combat: geo helps me meet nearby goddesses

    Time:2021-10-26

    Yard old wet, read your bookSkillfully using data types to realize 100 million level data statisticsAfter that, I learned how to use different data types with ease(String、Hash、List、Set、Sorted Set、HyperLogLog、Bitmap)To solve the statistical problems of different scenarios. The product manager said that he has an idea to provide the majority of boys and girls with an opportunity […]

  • Customize a kaniko image

    Time:2021-10-26

    Tools and Resource Center Help developers work more efficiently and provide tools and resources around the whole life cycle of developers developer.aliyun.com/tool/?spm=a1z… background Kaniko is a tool that facilitates us to build docker containers from k8s. In the past, we used docker in docker technology in the CI process. The main defect of this technology […]

  • Front end webpack

    Time:2021-10-26

    Reference video article: http://www.woc12138.com/article/45 https://segmentfault.com/a/1190000006178770 https://mp.weixin.qq.com/s?__… https://www.jianshu.com/nb/45770544 webpack brief introduction Webpack is a front-end resource building tool, a static module bundler. In the view of webpack, all resource files (JS / JSON / CSS / img / less /…) of the front end will be processed as modules. It will perform static analysis according to […]

  • 3、 How to browse prism sample code from GitHub to get started with the 08-12 example of prism MVVM under WPF

    Time:2021-10-26

    After learning the first two articles on the associated view of the region manager and loading the module samples in different ways, this chapter starts to enter the MVVM. Starting with example 08, we enter the MVVM section. Learn the MVVM idea under prism from the 08 example catalogue Learn the MVVM idea under prism […]

  • What about the blue screen prompt error code 0x0000006b when the computer starts up?

    Time:2021-10-26

    How to repair the computer blue screen code display 0x0000006b? I believe that the children have encountered some computer error problems more or less in the process of using the computer, and the most troublesome problem is the computer blue screen error code. Many children don’t know how to solve it when they encounter it. […]