• Rust disable lint warning by property


    The compiler provides dead_ Code lint, which will warn unused functions and can be disabled with an attribute.example: fn func1() { println!(“func1”); } #[allow(dead_code)] fn func2() { println!(“func2”); } fn func3() { println!(“func3”); } fn main() { func1(); println!(“Hello, world!”); } Note: there will be a warning if func3 is not used, but there will […]

  • What are the new features of PHP 8 to look forward to


    The new major version of PHP, php8, is expected to be released by the end of 2020.It’s in very active development right now, so in the next few months, the development speed and development process may change a lot. In this article, I’ll list some of the changes that will happen in php8: new features, […]

  • The development of webpack source map


    When webpack packages the source code, it may be difficult to trace the original location of errors and warnings in the source code. For example, if three source files(a.js, b.jsandc.js)Package into a bundle(bundle.js)If one of the source files contains an error, the stack trace simply points to thebundle.js. This doesn’t usually help much, because you […]

  • Using build analyzer in Android studio to improve build performance


    As a member of the Android Developer Tools team, my team members and I make various tools with the idea of making Android the best Mobile Developer Platform every day. This means that we will build some tools to help you develop your application, so that you can focus on writing your application. We know […]

  • npm ERR! The solution of taro error reporting in code integrity installation


    When using taro to install dependency packages, it often appearsnpm ERR! code EINTEGRITYThe problem should be caused by the local cache of NPM. Delete the package.lock.json file (if you don’t want to change this file, you can restore it after loading) NPM cache clean — force (there will be a warning prompt, just ignore it) […]

  • PHP + spool + redis source code compilation and installation


    1. Download PHP source packagehttp://php.net/get/php-7.2.4…. tar -zxvf php-7.2.4.tar.gz cd php-7.2.4 ./configure –prefix=/usr/local/php make && make install 2. Download swoole source package git clone https://gitee.com/swoole/swoole.git cd swoole /usr/local/php/bin/phpize ./configure –with-php-config=/usr/local/php/bin/php-config make && make install Finally, add extension = spool to php.ini, PHP – M view the extension, and if spool appears, the installation is successful 3. […]

  • Webpack 4L 5L


    transfer 1. Webpack 5 requires at least Node.js 10.13.0 (LTS)。 2. Upgrade webpack 4 to the latest available version 3. Upgrade webpack cli to the latest available version (when used) 4. Upgrade all used plugins and loaders to the latest available version Plugins and loaders that have been adapted to webpack 5 must be used. […]

  • Python exception handling


    Distinguish exception from syntax error When writing Python programs, errors are often reported. There are usually two kinds of errors: Syntax error:Some grammatical errors are exceptions Exception syntax error Syntax error, also known as parsing error, is one of the most common errors In [1]: while True print(‘Hello!’) File “<ipython-input-1-5c66e4fd0ae9>”, line 1 while True print(‘Hello!’) […]

  • Implementation of warning message box in Windows Form


    Warning message box is mainly used to show users such as warning, exception, completion and prompt messages. The general effect is to pop up from the lower right corner of the system window, and then add some simple display and disappear animation. Create a warning box window First, we create a warning box window (form), […]

  • Turn off win10 security warning “you want to allow this app from an unknown publisher to make changes to your device”


    problem Win10 pop up security warning when installing softwareDo you want to allow this app from an unknown publisher to make changes to your device?: solve stayThis computerRight click to selectattribute: choiceSafety and maintenance: choiceChange user account control settings: Pull the small blue piece on the left to the bottomNever notify, clickdetermine: choiceyesTo turn off […]

  • Warning not scoped to the top level: root element appears when swiper is introduced


    After introducing swiper into the project, we found that many warnings similar to the following appeared in the console warning in ./node_modules/swiper/css/swiper.css Module Warning (from ./node_modules/postcss-loader/src/index.js): Warning (429:3) Custom property ignored: not scoped to the top-level :root element (.swiper-lazy-preloader-black { … –swiper-preloader-color: … }) @ ./node_modules/swiper/css/swiper.css 4:14-135 14:3-18:5 15:22-143 @ ./node_modules/cache-loader/dist/cjs.js??ref–12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/payment/pay.vue?vue&type=script&lang=js& @ ./src/views/payment/pay.vue?vue&type=script&lang=js& @ ./src/views/payment/pay.vue […]

  • From the need for a custom sharing page


    Thoughts on a custom sharing page introduction I believe that most people have used or are using Umeng to share, but often the sharing style provided by Umeng can not meet our needs. For example, we want to add some additional buttons (copy link, report, etc.).At the beginning of the project we are doing is […]