经常在部署的时常才看到缺少某个php扩展,这里记录一下一般常用的php扩展;apt-get install php-bcmath php-bz2 php-cgi php-cli php-common php-curl php-dba php-enchant php-gd php-gmp php-imap php-interbase php-intl 
源码:
<?php
$html = file_get_contents('http://blog.jues.org.cn');
$matches = array();
preg_match('/<title(.*)>(.*)<\/title>/i', $html, $matches);
// var_dump($matches);
echo $matches[2];
今天重装了系统,使用原版安装的Windows10(64位)专业版本,安装好后发现在桌面上单击右键选择“显示设置”,然后打开“显示设置”的窗口,但马上卡死,播放的歌曲也一卡一卡或直接停了;
卡死的持续时间大概会有5分钟左右,然后再次再打时又会同样;
解决前操作:
使用360驱动大师安装的驱动(不知道是否与此有关系);
执行以下命令安装face_recognition:pip3 install face_recognition出现错误:Collecting face_recognition
Using cached https://files.pythonhosted.org/packages/1e/95/f6c9330f54ab07bfa032bf3715c12455a381083125d8880c43cbe76bb3d0/face_
安装cmake:
pip3 install cmake
错误:
Collecting cmake
Downloading https://files.pythonhosted.org/packages/a5/7c/6525cadf99abbabbcb29676f53de0441e8d2f8d0114ab52aae2b31223a3b/cmake-3.16.3.tar.gz
Complete output
本来想在ubuntu下安装个pip3,发现没有这个包:$ pip3
Command 'pip3' not found, but can be installed with:
sudo apt install python3-pip
$ sudo apt-get install python3-pip
Reading
备份/etc/apt/sources.list替换/etc/apt/sources.list内容如下(以下中阿里云的):deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main 
源码:
package test;
public class test {
public static void main(String[] args) {
String text = "这是<code>Java</code>代码测试<code>hello.</code>!";
CustomMatcher.parse(text, "<code>", "
安装Drupal 8.8.4时提示以下错误:Requirements review
Warnings found
PHP OPCODE CACHING
Not enabled
PHP OPcode caching can improve your site's performance considerably. It is 
Microsoft Edge默认是没有“加载扩展”这个选项,需要先打开:1. 打开开发者人员扩展功能:在地址栏输入 about:flags 然后回车,勾选“启用开发者人员扩展功能”;2. 加载扩展:在菜单中找到“扩展”,单击打开,再找到“加载扩展”,再单击选择需要加载的插件就可以了;