new 和 make 是两个内置函数,主要用来创建并分配类型的内存。在我们定义变量的时候,可能会觉得有点迷惑,不知道应该使用哪个函数来声明变量,其实他们的规则很简单, new 只分配内存, make 只能用于 slice、map 和 channel 的初始化, 下面我们就来具体介绍一下: new 在 ...
分类:
其他好文 时间:
2019-12-09 21:29:21
阅读次数:
93
案发现场 昨天晚上突然短信收到 APM (即 Application Performance Management 的简称),我们内部自己搭建了这样一套系统来对应用的性能、可靠性进行线上的监控和预警的一种机制)大量告警 画外音: 监控是一种非常重要的发现问题的手段,没有的话一定要及时建立哦 紧接着运 ...
分类:
其他好文 时间:
2019-12-09 14:13:50
阅读次数:
110
GMP是GNU MP Bignum Library大数运算库的简称.其原理是用字符串表示大数. 1. 安装GMP大数运算库 ./configure make -j 检查编译 make check 安装 make install 2. 使用实例 ...
分类:
其他好文 时间:
2019-12-09 01:30:14
阅读次数:
96
The last two challenges used the flex-direction property set to row. This property can also create a column by vertically stacking the children of a f ...
分类:
Web程序 时间:
2019-12-08 23:33:55
阅读次数:
130
一、数据迁移三步骤 配置数据库连接 首先在 .env 中配置数据库连接信息,如php连接数据库,需要先选择在那个数据库,然后再进行操作 创建数据库迁移文件 输入如下命令 php artisan make:migration create_post_table 创建文件成功后开始编辑数据内容。 pub ...
分类:
其他好文 时间:
2019-12-08 23:00:05
阅读次数:
124
Adding display: flex to an element turns it into a flex container. This makes it possible to align any children of that element into rows or columns. ...
分类:
Web程序 时间:
2019-12-08 22:45:24
阅读次数:
114
经常在代码中看到依赖的作用域为<scope>test</scope>,它的作用是,只能在test目录(通过右键->Make Directory as->Test Sources Root来标记)下的类中导入(即import xxx)依赖中的内容;否则在main->java目录(Sources Roo ...
分类:
其他好文 时间:
2019-12-08 17:20:48
阅读次数:
89
在用Python Web开发时经常会遇到WSGI,所以WSGI到底是什么呢?本文我们一起来揭开WSGI神秘的面纱! 先来看一下 WSGI的介绍 : 全称Python Web Server Gateway Interface,指定了web服务器和Python web应用或web框架之间的标准接口,以提 ...
分类:
其他好文 时间:
2019-12-08 01:02:22
阅读次数:
123
1.下载源码编译安装nginxwgethttp://nginx.org/download/nginx-1.17.1.tar.gztar-xvfnginx-1.17.1.tar.gzyum-yinstallmakezlibzlib-develgcc-c++libtoolopensslopenssl-devel#安装编译环境./configure#运行内部的配置脚本make&&make
分类:
Web程序 时间:
2019-12-07 23:05:17
阅读次数:
125
python manage.py startproject djotest python manage.py startapp djoapp python manage.py runserver python manage.py runserver 8000 python manage.py run ...
分类:
其他好文 时间:
2019-12-07 21:03:07
阅读次数:
122