令人无语bug,你猜得没错是编码问题我的编码是utf8mb4_unicode_ci,这是laravel的默认编码啊,解决办法是使用 utf8mb4_bin 即可。。。。
分类目录归档:未分类
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.
Cisco 1260系统升级[tar & tftp]
先进入#模式
# archive download-sw /overwrite tftp://192.168.1.5/ap3g1-k9w7-tar.153-3.JE.tar
Content-Type:text/html; charset=UTF-8
php5.6以上会自动加 Content-Type:text/html; charset=UTF-8
PHP里 “/”没转义导致正则匹配出错
configure: error: Cannot find OpenSSL’s
/sbin/ldconfig: libraries libpng.so and libpng12.so.0.10.0 in directory /usr/lib have same soname but different type.
iconv(): Wrong charset, conversion from `unicode’ to `utf-8′ is not allowed
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: | http , server , location |
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