Tag:usage

  • 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”, […]

  • I found a special man Linux tool!!!

    Time:2021-7-29

    I don’t need to say more about Linux commands. Who doesn’t know a few? But a command may have dozens of uses, the simplest and most commonly usedlsFor example, it has nearly 20 options usages such as ls -a: all files and their hidden files ls -t: sort by creation time ls -h: real file […]

  • Unable to detach database solution

    Time:2021-7-28

    use master go create proc killspid (@dbname varchar(20)) as begin declare @sql nvarchar(500),@temp varchar(1000) declare @spid int set @sql=’declare getspid cursor for select spid from sysprocesses where dbid=db_id(”’[email protected]+”’)’ exec (@sql) open getspid fetch next from getspid into @spid while @@fetch_status<>-1 begin set @temp=’kill ‘+rtrim(@spid) exec(@temp) fetch next from getspid into @spid end close getspid deallocate […]

  • Differences between internal connection and external connection in MySQL

    Time:2021-7-25

    To face a new beginning, one must have a dream, hope and vision for the future. Without these, it is not called a new beginning, but escape. The following figure shows 7 usages related to left join, right join, inner join and outer join.The specific decomposition is as follows: 1. Inner join SELECT <select_list> FROM […]

  • Listwheelscrollview of flitter widgets

    Time:2021-7-22

    Note: without special instructions, the version of flutter and dart are as follows: Flutter version: 1.12.13 + hotfix. 5 Dart version: 2.7.0 Basic usage When displaying a large amount of data, we will first think of using listview. If you think listview is relatively simple and boring, you can use listwheelscrollview. Listwheelscrollview and listview share […]

  • Angularjs API docs – Global APIs – finishing

    Time:2021-7-22

    AngularJS API Docs – Global APIs API reference for this articleVersion 1.4.7. Angular.foreach: iterative function Usage:angular.forEach(obj, iterator, [context]) Explanation: Obj is an iterative object. It can be an object or an array. According to the type of obj, the parameters of iterator are slightly different (see the example for details). The optional parameter of context […]

  • How many ways can middleware be implemented?

    Time:2021-7-20

    Welcome to my official account.Rui talk, get my latest articles: 1、 Preface Middleware is a general and independent system software service program which is located on the operating system of the server and manages the computing resources and network communication. Distributed application software uses this software to share resources among different technologies. In the field […]

  • SnackBar of flutter widgets

    Time:2021-7-18

    Note: without special instructions, the version of flutter and dart are as follows: Flutter version: 1.12.13 + hotfix. 5 Dart version: 2.7.0 Basic usage Applications sometimes need to pop up messages to prompt users, such as “network connection failed”, “download successful” and so on, just like AndroidUse the snackBar component in the flutter as follows: […]

  • Principle and common methods of Java StringBuilder class

    Time:2021-7-15

    This article mainly introduces the principle and common methods of Java StringBuilder class. The example code is introduced in great detail, which has a certain reference learning value for everyone’s study or work. If you need a friend, you can refer to it The origin of StringBuilder class Because the object content of string class […]

  • Flyer widgets dialog – dialog

    Time:2021-7-13

    Note: without special instructions, the version of flutter and dart are as follows: Flutter version: 1.12.13 + hotfix. 5 Dart version: 2.7.0 When an application carries out important operations, it often needs the user to confirm twice to avoid the user’s misoperation. For example, when deleting a file, a prompt “do you want to delete […]

  • Flutter datatable this is enough

    Time:2021-7-12

    Note: without special instructions, the version of flutter and dart are as follows: Flutter version: 1.12.13 + hotfix. 5 Dart version: 2.7.0 DataTable Datatable control displays table data. Datatable needs to set rows and columns. The usage is as follows: DataTable( columns: [ DataColumn (label: text (‘name ‘), Data column (label: text (‘age ‘), ], […]

  • There are several ways to implement Middleware in large front-end domain

    Time:2021-7-7

    preface Middleware is a general and independent system software service program which is located on the operating system of the server and manages the computing resources and network communication. Distributed application software uses this software to share resources among different technologies. In the field of large front-end, the meaning of middleware is much simpler, which […]