Nginx 出现这个报错的原因通常是 client_max_body_size 的配置问题。

该配置项默认值仅为 1M,所以在上传大于 1M 的文件时报错。

需要在对应的站点 server 里修改此项配置,如下:

server {
    # ... 其他配置
    client_max_body_size 10M;
    # ... 其他配置
}

2024-02-29T10:30:34.png

Adobe 最近搞了个面向未来的播客录音/剪辑工具 Podcast。官方的介绍是:

AI-powered audio recording and editing, all on the web An audio tool for people with stories to tell

翻译过来就是:

人工智能驱动的音频录制和编辑,全部通过 Web 实现为有故事的人提供的音频工具

Podcast 的出现彻底改变了播客的生产流程,因为再也不用像以前一样剪辑音频了,新的方式是直接根据文本来处理。

- 阅读剩余部分 -

今天线上出了一个 bug,看日志是空指针异常:

java.lang.NullPointerException: null

但日志里只有这么多,没有详细的栈信息,也就是说,看起来像是人为抛了一个空的 NullPointerException,但看代码确实没有问题,确实打印了详细信息。

搜了一下,原因如下:

JVM 虚拟机会对异常信息进行优化,当相同异常出现很多次,会认为它是热点异常,忽略掉异常堆栈信息;
通过增加 JVM 参数:-XX:-OmitStackTraceInFastThrow 可解决。

于是搜索所有的这个异常的信息,找到第一条,终于发现了详细的栈信息。

顺利定位到了代码位置,修复了问题。

由于需要测试一个很老的软件,需要在 macOS 上的 /home 目录下创建一个目录,结果报错 Operation not supported。

2024-02-29T10:36:17.png

其实这是 macOS 的安全模块限制的。

解决方案就是关闭这个限制,方法如下:

编辑 /etc/auto_master 文件,将下面这行注释掉:

2024-02-29T10:36:34.png

然后执行 sudo automount 命令重载一下配置即可。


2024-02-29T10:36:51.png

EPS File Viewer 是一款免费的 eps 文件的查看器,官网地址是 http://www.epsfileviewer.com/

官方介绍:

EPS File Viewer is a free viewer for EPS files, simple and fast, no need to install any other program, this standalone software can quickly open a EPS file (file extension: *.eps) and display file image. "How to open eps file?", this software is the answer. It supports Zoom-in and Zoom-out feature, users can zoom in to get a close-up view or zoom out to see more details at a reduced size. In addition, this software supports "Save as JPG" function, this feature can convert EPS format file to JPG image, that means users can use this software as a EPS converter.

中文翻译:

- 阅读剩余部分 -