dsh 定时发送插件
上一篇《dsh 延时任务》里,躲峰时靠的是一段约束提示词。
现在做成了插件,代码在 GitHub,包发了 npm。
Nginx 的日志分两类:access_log 记录每个请求,error_log 记录 Nginx 自身的错误。默认 nginx.conf 里那段 log_format main 加 access_log,就是最常用的起点。
1 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' |
这段配置只做了两件事:先用 log_format 定义一个名叫 main 的格式,再用 access_log 指定把日志写到 logs/access.log,并采用 main 格式。
包饺子这事,人分四档。
在线书籍:
https://sourceacademy.org/sicpjs/foreword02
实体书(JavaScript版本)有中文版:
https://book.douban.com/subject/36787585/
课后习题答案(中文):
https://sicp.readthedocs.io/en/latest/index.html
官方github:
系统中嵌入了iframe,设置了100%高度,但是iframe中还是出现了滚动条。
查询资料发现,iframe是内联元素,默认与baseline对齐。在iframe后有一个行内空白节点,空白节点始终占据着高度,导致外部容器被撑开,出现滚动条。
解决方法:设置iframe的vertical-align:top;