LMLPHP后院

Kafka 快速入门官方教程

sumer.sh --bootstrap-server localhost:9092 --topic connect-test --from-beginning {"schema":{"type":"string","optional":false},"payload":"foo"} {"schema":{"type":"string","optional":false},"payload":"bar"} 此...

Fatal Error:imagecreatefromstring(): gd-png: fatal libpng error: CgBI: unhandled critical chunk in

处理图片经常会遇到各种错误,处理这些错误似乎没有什么好的方法,记录一下:https://bbsmax.ikafan.com/static/L3Byb3h5L2h0dHBzL2ltYWdlczAuY25ibG9ncy5jb20vYmxvZzIwMTUvNzU1MTYxLzIwMTUwOC8wODIxMjMxNDA2NTEzMzQucG5n.jpg [1998668.388722] ieee80211 phy0:...

PHP编码转换减号(连接符)无法转换问题

RANSLIT', "Žluťoučký kůň\n"); // Zlutoucky kun 解决方法二: That will strip invalid characters from UTF-8 strings (so that you can insert it into a database, etc.). Instead of "none" you can also use the value 32...

LMLPHP Fatal Error:Array and string offset access syntax with curly braces is deprecated

PHP7.4 不允许使用花括号来访问字符串偏移。报错原因是: PHP7.4 不再能够使用花括号来访问数组或者字符串的偏移 解决办法:将 {} 改成 [] 新浪 SAE 报错的代码: if( in_array($parameter, array('pic', 'image')) && $value{0} == '@' ) { 这代码风格真的很像我刚开始的时候: 我最初习惯 if( in_array() ) { ...

Nginx SSL 代理设置完整示例

s/ca-cert.pem; ssl_verify_client optional; location / { try_files $uri $uri/ /index.php/$uri?$query_string; } location ~ ^\/index\.php { #rewrite ^/(.*) /index.php/$1 break; fastcgi_param SCRIPT_FILENAME $d...

HTML5 history API改变浏览器地址无需hash和刷新加载页面

— Firefox currently ignores this parameter, although it may use it in the future. Passing the empty string here should be safe against future changes to the method. Alternatively, you could pass a short tit...

VIM编辑器学习精简教程

择的所有行的行首都加上了注释了。这个操作对配置文件的编辑或者代码的编辑非常有用。A 到达行尾,可以在后面添加。vim 删除包含指定字符串的行在命令模式中,使用如下指令删除包含指定字符串的行: : g/string/d。例如,想要删除日志文件中含有字符串 “exif_read_data” 的行。注意:在这个命令中,某些字符可能需要转义,比如[、] :g/exif_read_data/d ...

spring boot jpa 多个数据源配置

onfigure.SpringBootApplication; @SpringBootApplication public class Start { public static void main(String[] args) throws Exception { SpringApplication.run(Start.class, args); } }我一开始折腾好久一直没有配置成功,看了好多资料,官方...

在 PHP 中打印 trace 信息

间啊,也许很多人都意识到了这个不好用的问题,于是有了下面的解决方案:$e = new Exception(); echo str_replace('/path', '', $e->getTraceAsString()); 是不是超级爽,欠操的应该是 PHP 啊。...

发现一段变态的代码

jsemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}c...
2024-03-29 06:49:14 1711666154 0.007870