Tag:mode

  • Game environment configuration: react native development environment configuration for Android

    Time:2021-8-2

    React native is an open source project of Facebook. Facebook hopes to write native app by writing web app. It allows us to develop applications with JS and react. With react native, we can take all Android, IOS and the web. We can create our applications with only a copy of business logic code. originReact […]

  • There is a large amount of data and paging query is very slow. What is the optimization scheme?

    Time:2021-8-2

    Read by little hub: When the number of pages is large, the query efficiency drops sharply. Is there any way to optimize it? Finish reading this article! Author: youyou I Source: cnblogs.com/youi/p/7851007.html preparation General paging query Use subquery optimization Use ID qualification optimization Use temporary table optimization ID description of data table * When there […]

  • Docker builds PHP environment

    Time:2021-8-2

    Version introduction cliCommand line version apacheApache version fpmReverse proxy version alpineCompact version buster & stretchFor Debian distribution Mode of use Method 1: build based on dockerfile vim Dockerfile FROM php:7.3-fpm RUN mv “$PHP_INI_DIR/php.ini-production” “$PHP_INI_DIR/php.ini” COPY . /usr/src/myapp WORKDIR /usr/src/myapp CMD [ “php”, “./your-script.php” ] $ docker build -t my-php-app . $ docker run -it –rm […]

  • Dependency injection container — PHP version of the Phalcon container

    Time:2021-8-2

    The PHP version of Phalcon relies on the injection container Environmental requirements php7.0+ install composer require fanqingxuan/di If you want to install the PHP extension container, please refer todi-extThe usage is as like as two peas. Basic Usage require_once ‘vendor/autoload.php’; use JsonDi\Di; class Test { } $di = new Di; //Injection mode $di->set(‘test’, ‘Test’); $di->set(“test2”, […]

  • Libp2p RS version 0.3.0 introduction

    Time:2021-7-31

    V0.3.0 released on 4.23, usingAsyncRead & AsyncWriteTo replace ourReadEx & WriteEx & SplitEx; SimplifiedKad/DHTImplementation logic. modify ReadEx & WriteEx & SplitEx: At first we tried to useasync-traitTo define their own IO operationsTraitFor more pure useasync/awaitTo write code. withReadExFor example, it is roughly as follows: #[async_trait] pub trait ReadEx { async fn read(&mut self, buf: &mut […]

  • Using promise + CO / yield in PHP

    Time:2021-7-31

    Absrtact: we know that since the generation of JavaScript, there have been various collaborations based on generator encapsulation. Promise and collaboration library encapsulated in Hprose realize the same functions as async / await of es2016, and are more flexible. We also know that since 5.5, PHP has also introduced generator, and there are also various […]

  • Problems encountered in NPM distribution package

    Time:2021-7-31

    Introduction Although I have published packages, I haven’t published my own package, so I refer to itnpm developer guideI tried and got the following harvest. Origin My GitHub 403 Forbidden Follow the steps in the document. After registering and logging in, prepare the library, and then executenpm publish, the following error is reported: Error: 403 […]

  • On angular error handling

    Time:2021-7-31

    Error handling is a requirement that we often encounter and must deal with when writing code. Most of the time, the logic to deal with exceptions is to avoid program crash《Implementation scheme of front-end anomaly monitoring platform》Exception tracking has been introduced, which will be briefly introduced in this paperAngularHow to handle exceptions. What is angular […]

  • [graffiti Internet of things footprint] mainstream communication mode of Internet of things

    Time:2021-7-30

    _ Preface series _ > > >[\ [[graffiti Internet of things footprint] Introduction to Internet of things \]](https://segmentfault.com/a/11…[\ [[graffiti Internet of things footprint] panoramic introduction to graffiti cloud platform \]](https://segmentfault.com/a/11…Our series of articles will focus on how to complete the development of an intelligent “space kissing machine”. I hope it can help the lovers of […]

  • Ruffian Heng embedded: startup of NXP i.MX rtxxx Series MCU (6. B) – complete flexspi nor connection mode (RT500)

    Time:2021-7-30

    Hello, I’m ruffian Heng, a serious technical ruffian. What ruffian Heng introduced to you today isFlexspi nor start connection mode of NXP i.MX RT500。 In this series of articles on i.mxrt flexspi nor startup connection mode, ruffian Heng wrote four articles a year ago, including all i.mxrt models (rt600 / 1010 / 1015 / 1020 […]

  • Spring boot using JPA practice

    Time:2021-7-29

    At the beginning, JPA and mybatis gernertor are two ways to automatically generate entity classes. Today, I will introduce the first way to use JPA Automatically generate entity classes Add JPA to project 1. Add JPA under the project, click file – > project structure – > modules, and click the plus sign in the […]

  • How to use asynchronous flow in c# 8

    Time:2021-7-29

    Asynchronous programming has been popular for many years. The async and await keywords introduced by. Net make asynchronous programming more readable. However, it is a pity that asynchronous data flow cannot be processed before c# 8 until c# 8IAsyncEnumerable<T>To solve this problem. Speaking ofIAsyncEnumerable<T>, I have to say it firstIEnumerable<T>, as we all know, it […]