3.21更新

This commit is contained in:
zhangsan 2025-03-21 13:56:48 +08:00
parent 9a29bcbbdb
commit c34b41dd9d
4 changed files with 77 additions and 18 deletions

View File

@ -918,8 +918,6 @@ docker-compose rm
docker-compose rm flask_app docker-compose rm flask_app
``` ```
asdf
**停止运行的容器** **停止运行的容器**
``` ```

View File

@ -900,10 +900,15 @@ py脚本3将本地图片上传到easyimage图床并将链接返回替换md文
[【好玩儿的Docker项目】10分钟搭建一个Typecho博客太破口念念不忘必有回响-我不是咕咕鸽](https://blog.laoda.de/archives/docker-compose-install-typecho) [【好玩儿的Docker项目】10分钟搭建一个Typecho博客太破口念念不忘必有回响-我不是咕咕鸽](https://blog.laoda.de/archives/docker-compose-install-typecho)
``` 注意nginx一定要对typecho目录有操作权限
zy123@hcss-ecs-588d:~/typecho$ cat docker-compose.yml
version: "3"
```
sudo chmod 755 -R ./typecho
```
```
services: services:
nginx: nginx:
image: nginx image: nginx
@ -986,16 +991,73 @@ rm -rf /root/data/docker_data/typecho # 完全删除映射到本地的数据
markdown编辑器插件https://xiamp.net/archives/aaeditor-is-another-typecho-editor-plugin.html markdown编辑器插件https://xiamp.net/archives/aaeditor-is-another-typecho-editor-plugin.html
- 关闭'开启公式显示'将公式渲染交给typecho-markdown
markdown解析器插件[mrgeneralgoo/typecho-markdown: A markdown parse plugin for typecho.](https://github.com/mrgeneralgoo/typecho-markdown)
修改文章详情页的上方信息:
`typecho/usr/themes/Joe/module/single/batten.php`
```php
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) {
http_response_code(404);
exit;
}
?>
<h1 class="joe_detail__title"><?php $this->title() ?></h1>
<div class="joe_detail__count">
<div class="joe_detail__count-information">
<a href="<?php $this->author->permalink(); ?>">
<img width="38" height="38" class="avatar lazyload" src="<?php joe\getAvatarLazyload(); ?>" data-src="<?php joe\getAvatarByMail($this->author->mail) ?>" alt="<?php $this->author(); ?>" />
</a>
<div class="meta ml10">
<div class="author">
<a class="link" href="<?php $this->author->permalink(); ?>" title="<?php $this->author(); ?>"><?php $this->author(); ?></a>
</div>
<div class="item">
<span class="text">
<?php echo $this->date('Y-m-d'); ?> /&nbsp;
<?php $this->commentsNum('%d'); ?> 评论 /&nbsp;
<?php echo joe\getAgree($this); ?> 点赞 /&nbsp;
<?php echo joe\getViews($this); ?> 阅读 /&nbsp;
<?php echo art_count($this->cid); ?>
</span>
</div>
</div>
</div>
</div>
<div class="relative" style="padding-right: 40px;">
<i class="line-form-line"></i>
<!-- 新增最近修改日期显示 -->
<div style="font-size: 1.0em; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);">
最后更新于 <?php echo date('m-d', $this->modified); ?>
</div>
<div class="flex ac single-metabox abs-right">
<div class="post-metas">
<!-- 原图标及其他冗余信息已删除 -->
</div>
<div class="clearfix ml6">
<!-- 编辑文章/页面链接已删除 -->
</div>
</div>
</div>
```
slug为页面缩略名在新增文章时可以传入默认是index数字。
![image-20250320185818633](https://pic.bitday.top/i/2025/03/20/uqbaps-0.png)
### **Markdown文件自动发布** ### **Markdown文件自动发布**
## qBittorrent ## qBittorrent
[【好玩的Docker项目】10分钟搭建你专属的下载神器——qbittorrent-我不是咕咕鸽](https://blog.laoda.de/archives/docker-install-qbittorrent) [【好玩的Docker项目】10分钟搭建你专属的下载神器——qbittorrent-我不是咕咕鸽](https://blog.laoda.de/archives/docker-install-qbittorrent)

View File

@ -25,15 +25,15 @@
`Collections` 类本身没有直接提供类似 `Arrays.equals` 的方法来比较两个集合的内容是否相等。不过Java 中的集合类(如 `List``Set``Map`)已经实现了 `equals` 方法 `Collections` 类本身没有直接提供类似 `Arrays.equals` 的方法来比较两个集合的内容是否相等。不过Java 中的集合类(如 `List``Set``Map`)已经实现了 `equals` 方法
``` - ```
List<Integer> list1 = Arrays.asList(1, 2, 3); List<Integer> list1 = Arrays.asList(1, 2, 3);
List<Integer> list2 = Arrays.asList(1, 2, 3); List<Integer> list2 = Arrays.asList(1, 2, 3);
List<Integer> list3 = Arrays.asList(3, 2, 1); List<Integer> list3 = Arrays.asList(3, 2, 1);
System.out.println(list1.equals(list2)); // true System.out.println(list1.equals(list2)); // true
System.out.println(list1.equals(list3)); // false顺序不同 System.out.println(list1.equals(list3)); // false顺序不同
``` ```
要实现接口自定义排序,必须实现 `Comparator<T>` 接口的 `compare(T o1, T o2)` 方法。 要实现接口自定义排序,必须实现 `Comparator<T>` 接口的 `compare(T o1, T o2)` 方法。

View File

@ -52,7 +52,6 @@ $$
$$ $$
**注意**:由于约束要求 $x=z$,实际问题等价于 **注意**:由于约束要求 $x=z$,实际问题等价于
$$ $$
\min_{x} (x-1)^2 + (x-2)^2, \min_{x} (x-1)^2 + (x-2)^2,
$$ $$