Netsuite更新customField, 删除FileCabinet的文件, 高级搜索

//$service = new NetSuiteService(); class CustomRecordSearchAdvancedBuilder{ private static $instance; private $request; private $NSService; private $search; private $pageIn

css动画重置,暂停,监听结束

  • yiqingpeng
  • 2020-12-27
  • 0
  •  
<style> .animation{height:20px;background:green;animation:fancy1 20s} @keyframes fancy1{ 0%{width:0%;} 100%{width:100%;} } @keyframes fancy2{ 0%{width:0%;} 100%{width:100%;} } <

消除阻塞式资源(Eliminate render-blocking resources)

有以下两种URL资源会阻塞渲染: 1,放置在<head>中的<script>脚本引用,并且未设置defer或async属性。 2,<link rel="stylesheet">样式引用,并且未设置disabled或media属性。 处理阻塞式资

Resize images on server side

  • yiqingpeng
  • 2020-12-14
  • 0
  •  
Nodejs使用sharp库: const sharp = require('sharp'); const fs = require('fs'); const directory = './images'; fs.readdirSync(directory).forEach(file => {   sharp(`${directory}/${f

The problems with long running php scripts

  • yiqingpeng
  • 2020-11-04
  • 0
  •  
Writing a daemon in PHP can be a very attractive prospect. You already have your website written, so you have all of this great code already. You just need it to run and keep track of some data or han

Mysql开启日志记录

  • yiqingpeng
  • 2020-11-04
  • 0
  •  
vim /etc/my.conf.d/server.cnf: #lower_case_tables_name = 1 slow_query_log='ON' slow_query_log_file='/mnt/lnx_log/mysql/slow.log' long_query_time=1 general_log='ON' general_log_f

About HTTP chunked AND gzip

  • yiqingpeng
  • 2020-10-31
  • 0
  •  
Chunked transfer encoding allows a server to maintain an HTTP persistent connection for dynamically generated content. In this case the HTTP Content-Length header cannot be used

Mysql中一条sql到底能写多长?

  • yiqingpeng
  • 2020-10-31
  • 0
  •  
先看来https://php.golaravel.com/mysqli.query.html中的一段话: where you pass a statement to mysqli_query() that is longer than max_allowed_packet of the server, the returned er

Buffered and Unbuffered queries

  • yiqingpeng
  • 2020-10-31
  • 0
  •  
使用PHP的mysql API从mysql获取超大数据集,比如几百万行的记录,如果使用默认的配置,往往会因为客户端的内存不足而失败。话不多说,直接抄官方的说明。 Queries are using the buffered mode by de

PHP用户输出缓冲区的理解

  • yiqingpeng
  • 2020-10-29
  • 0
  •  
PHP的用户输出缓冲区,它通过调用ob_start()创建,我们可以创建很多这种缓冲区(至到内存耗尽为止),这些缓冲区组成一个堆栈结构,每个新建缓冲区都会堆叠到之前的缓冲区上,每当它被填满或者溢出,都会执行刷新操作

ffmpeg的一些使用示例

ffmpeg命令格式: ffmpeg [全局选项][输入文件选项] -i [输入文件]...[输出文件选项][输出文件] 主要选项 : -f 指定输入或者输出文件格式,不指定的话会根据文件扩展名进行推测。 -i 输入文件 -y 默认覆盖同

IE11中xmlHttp.setRequestHeader的问题

  • yiqingpeng
  • 2020-06-29
  • 1
  •  
使用XMLHTTP发送请求时,可以设置请求头,即调用setRequestHeader方法。但是在IE11中,发现一个问题,如果header的值是空字符串的话是无法设置成功的。示例如下: var xmlHttp=new ActiveXObject("Microsoft.XMLHT

CentOS6.9安装redis6.x的方法

  • yiqingpeng
  • 2020-05-05
  • 0
  •  
安装redis6最主要的一点是要用GCC5以上,而CentOS6.9的GCC版本为4.8.x, 所以安装之前必须升级GCC(使用命令gcc --version查看版本)。 升级GCC有两个办法:手动编译 和 从源安装。 手动编译会涉

PHP7安装扩展的三种方式

  • yiqingpeng
  • 2020-04-19
  • 0
  •  
PHP7安装完之后,若想添加扩展,有三种方式:pecl安装和phpize安装和yum安装。 第一种: pecl安装。  在php的安装目录下,一般都附带安装了pecl程序,比如php安装目录为/usr/local/php, 那么pecl就在

将php-fpm配置为服务

  • yiqingpeng
  • 2020-04-18
  • 0
  •  
安装好php7之后,php-fpm默认是不会开机启动的,需要做一些工作来配置它。 假设安装目录:/usr/local/php/ 源码目录:~/php-7.4.4/ 步骤一,设置好配置文件: cd   /usr/local/php/etc/  &

Linux里的2>&1究竟是什么

  • yiqingpeng
  • 2020-04-15
  • 0
  •  
我们在Linux下经常会碰到nohup command>/dev/null 2>&1 &这样形式的命令。首先我们把这条命令大概分解下首先就是一个nohup表示当前用户和系统的回话下的进城忽略响应HUP消息。&是把该命令以后台的

php-fpm如何与apache httpd2.4结合

  • yiqingpeng
  • 2020-04-13
  • 0
  •  
https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM

CentOS7注册服务的两种方式

  • yiqingpeng
  • 2020-04-05
  • 0
  •  
向Linuxi注册服务有两种方式: 1、chkconfig 2、systemd chkconfig方式: 在目录/etc/init.d/下建立可执行程序的拷贝或链接, 比如:cp /usr/local/httpd/bin/apachectl  /etc/init.d/httpd 然后执行

CentOS7源码安装httpd

  • yiqingpeng
  • 2020-04-04
  • 0
  •  
先安装一些依赖包:  yum install apr-devel yum install pcre-devel yum install expat-devel yum install zlib-devel yum install openssl-devel 下载源码包:httpd-2.4.41.tar.gz 解压: tar -xzvf

CentOS添加yum源epel和remi

  • yiqingpeng
  • 2020-04-04
  • 0
  •  
安装epel源: yum install epel-release 安装remi源: wget https://rpms.remirepo.net/enterprise/remi-release-7.rpm rpm -Uvh remi-release-7.rpm 安装完之后需要启用它, 打开vim /etc/yum.repos.d/remi