Create a Self-Signed Certificate for NGINX on macOS

In order to develop better, sometimes we need to configure https in our own local environment. This ...
Jul 18, 2020 Nginx Comments 0

In React Native 0.62, after building a signed apk, index.android.bundle is a binary file

IssueBefore building a signed apk, I run the below command to bundle my android application project....
Jul 16, 2020 React Native Comments 0

Insert string at specified position with PHP

Use PHP's substr_replace() method to insert a string into an existing string.  Refer to substr_repla...
Jul 15, 2020 PHP Comments 0

Generator random string with PHP

Two ways to generate random strings using PHP.1. With rand methodfunction generateRandomString($leng...
Jul 13, 2020 PHP Comments 0

How to migrate a Git repository

IssueWhen the ip of the server is changes, or we use a new server. We will have to migrate our git r...
Jul 11, 2020 Git Comments 0

java.lang.NoClassDefFoundError: Landroidx/localbroadcastmanager/content/LocalBroadcastManager

IssueIn the androidx project, I write these code as bellow.LocalBroadcastManager mgr = LocalBroadcas...
Jul 08, 2020 Android Comments 0

Include OpenSSL support of php 5 in Mac OS

IssueUsing the openssl_encrypt() method in Mac OS, something went wrong.Call to undefined function o...
Jul 07, 2020 PHP Comments 0

Enable php_mbstring in PHP

IssueIn the PHP code, using the mb_strlen method, an error outputs as bellow.Call to undefined funct...
Jul 06, 2020 PHP Comments 0

Linux make php 5 error: dereferencing pointer to incomplete type ‘X509_EXTENSION’

IssueWhen compiling PHP 5 version in Linux, enable openssl extension. Run the following commands.$ ....
Jul 05, 2020 PHP Comments 0

Check if folder is empty or not php

Because PHP's rmdir method can only delete empty folders, you need to determine whether the folder i...
Jul 03, 2020 PHP Comments 0