分类目录归档:未分类

stuck key XX

今天维修公司笔记本,开机显示

stuck key XX

上网查询到是键盘某个键处于按下状态,无法弹起

XX就是坏掉的键的编码

键盘码参考

http://flint.cs.yale.edu/cs422/doc/art-of-asm/pdf/APNDXC.PDF

PHP Fatal error: Can’t use function return value in write context

empty

(PHP 4, PHP 5, PHP 7)
empty — 检查一个变量是否为空

说明 ¶

bool empty ( mixed $var )
判断一个变量是否被认为是空的。当一个变量并不存在,或者它的值等同于FALSE,那么它会被认为不存在。如果变量不存在的话,empty()并不会产生警告。

Note:
在 PHP 5.5 之前,empty() 仅支持变量;任何其他东西将会导致一个解析错误。换言之,下列代码不会生效: empty(trim($name))。 作为替代,应该使用trim($name) == false.

413 Request Entity Too Large

http://blog.csdn.net/fdipzone/article/details/45544497

Syntax: client_max_body_size size;
Default:
client_max_body_size 1m;
Context: httpserverlocation

Sets the maximum allowed size of the client request body, specified in the “Content-Length” request header field. If the size in a request exceeds the configured value, the 413 (Request Entity Too Large) error is returned to the client. Please be aware that browsers cannot correctly display this error. Setting size to 0 disables checking of client request body size.

Failed to prepare TableSyncChunk plugin: Cannot chunk table `xxx`.`xxx` using the character column skey, most likely because all values start with the same character.

Failed to prepare TableSyncChunk plugin: Cannot chunk table `doufu`.`user_login` using the character column skey, most likely because all values start with the same character. This table must be synced separately by specifying a list of –algorithms without the Chunk algorithm at /usr/bin/pt-table-sync line 4088. while doing doufu.user_login on web3


pt-table-sync --print --execute --databases xxx h=master,u=repl,p=xxx,D=xxx,t=xxx h=slave --no-check-slave --lock=1 --charset=utf8mb4 --algorithms=Nibble,GroupBy,Stream

加参数 –algorithms=Nibble,GroupBy,Stream