Skip to content

Commit 342d3ae

Browse files
committed
提交博客
1 parent 7862626 commit 342d3ae

35 files changed

+18045
-19
lines changed

_config.redefine.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,18 @@ global:
5353
# Chinese fonts
5454
chinese:
5555
enable: true # Whether to enable custom chinese fonts
56-
family: # Font family
57-
url: # Font URL to CSS file
56+
family: Ma+Shan+Zheng # Font family
57+
url: https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng:wght@400;500;700&display=swap # Font URL to CSS file
5858
# English fonts
5959
english:
60-
enable: false # Whether to enable custom english fonts
61-
family: # Font family
62-
url: # Font URL to CSS file
60+
enable: true # Whether to enable custom english fonts
61+
family: Ma+Shan+Zheng # Font family
62+
url: https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng:wght@400;500;700&display=swap # Font URL to CSS file
6363
# Custom title fonts (navbar, sidebar)
6464
title:
65-
enable: false # Whether to enable custom title fonts
66-
family: # Font family
67-
url: # Font URL to CSS file
65+
enable: true # Whether to enable custom title fonts
66+
family: Ma+Shan+Zheng # Font family
67+
url: https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng:wght@400;500;700&display=swap # Font URL to CSS file
6868
# Content max width
6969
content_max_width: 1000px
7070
# Sidebar width
@@ -89,7 +89,7 @@ global:
8989
# Whether to enable Preloader.
9090
preloader:
9191
enable: true
92-
custom_message: # Custom message. If empty, the site title will be displayed
92+
custom_message: 坐好了准备起飞了!!! # Custom message. If empty, the site title will be displayed
9393
# Whether to enable open graph
9494
open_graph:
9595
enable: true
@@ -131,7 +131,7 @@ home_banner:
131131
title: 废话少说上号
132132
# Home banner subtitle
133133
subtitle:
134-
text: ["要么忙着活,要么忙着死"] # subtitle text, array
134+
text: [ "要么忙着活,要么忙着死" ] # subtitle text, array
135135
hitokoto: # 一言配置
136136
enable: true # Whether to enable hitokoto
137137
show_author: true # Whether to show author
@@ -157,11 +157,11 @@ home_banner:
157157
# Home banner custom font
158158
custom_font:
159159
# Whether to enable custom font
160-
enable: false
160+
enable: true
161161
# Font family
162162
family:
163163
# URL to font CSS file
164-
url:
164+
url: https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng:wght@400;500;700&display=swap
165165
# Home banner social links
166166
social_links:
167167
# Whether to enable
@@ -204,7 +204,7 @@ navbar:
204204
icon: fa-regular fa-house # can be empty
205205
咖啡:
206206
path: /java
207-
icon: fa-brands fa-java
207+
icon: fa-brands fa-java fa-beat
208208
都是好东西:
209209
path: /bookmarks/
210210
icon: fa-solid fa-bookmark
@@ -369,7 +369,7 @@ comment:
369369
clientSecret: d0f1f46730eed4a55a5b59f7d2df3da6bd093618 # GitHub Application Client Secret
370370
repo: hackerHiJu.GiTalk # GitHub repository
371371
owner: hackerHiJu # GitHub repository owner
372-
proxy: https://netnr-proxy.cloudno.de/ # GitHub repository proxy
372+
proxy: https://netnr-proxy.cloudno.de/https://github.com/login/oauth/access_token # GitHub repository proxy
373373
# Twikoo comment system. See https://twikoo.js.org/
374374
twikoo:
375375
version: 1.6.10 # Twikoo version, do not modify if you dont know what it is
@@ -399,7 +399,7 @@ footer:
399399
# Icon in footer, write fontawesome icon code here
400400
icon: '<i class="fa-solid fa-heart fa-beat" style="--fa-animation-duration: 0.5s; color: #f54545"></i>'
401401
# The start time of the website, format: YYYY/MM/DD HH:mm:ss
402-
start: 2022/8/17 11:45:14
402+
start: 2025/03/24 18:00:00
403403
# Site statistics
404404
statistics: true # show site statistics or not (total articles, total words)
405405
# Footer message
@@ -451,7 +451,7 @@ plugins:
451451
# .... you can add more audios here
452452
# Mermaid JS. Requires hexo-filter-mermaid-diagrams (npm i hexo-filter-mermaid-diagrams). See https://mermaid.js.org/
453453
mermaid:
454-
enable: false # enable mermaid or not
454+
enable: true # enable mermaid or not
455455
version: "11.4.1" # default v11.4.1
456456
# PLUGINS <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< end
457457

@@ -473,7 +473,7 @@ cdn:
473473
# Whether to enable CDN
474474
enable: false
475475
# CDN Provider
476-
provider: npmmirror # npmmirror, zstatic, cdnjs, jsdelivr, unpkg, custom
476+
provider: jsdelivr # npmmirror, zstatic, cdnjs, jsdelivr, unpkg, custom
477477
# Custom CDN URL
478478
# format example: https://cdn.custom.com/hexo-theme-redefine/${version}/source/${path}
479479
# The ${path} must leads to the root of the "source" folder of the theme

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,5 @@ theme: redefine
103103
## Docs: https://hexo.io/docs/one-command-deployment
104104
deploy:
105105
type: ''
106+
107+
all_minifier: true

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
},
1414
"dependencies": {
1515
"hexo": "^7.3.0",
16+
"hexo-all-minifier": "^0.5.7",
1617
"hexo-browsersync": "^0.3.0",
18+
"hexo-filter-mermaid-diagrams": "^1.0.5",
1719
"hexo-generator-archive": "^2.0.0",
1820
"hexo-generator-category": "^2.0.0",
1921
"hexo-generator-index": "^4.0.0",

source/_posts/stable_diffusion/1.StableDiffusion笔记记录.md renamed to source/_posts/ai/StableDiffusion笔记记录.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ updated: 2024-12-30 19:07:05
55
tags: ["SD", "AI"]
66
comments: true
77
categories: ["AI"]
8-
thumbnail: "https://evan.beee.top/img/208184324-f2640ade-587a-4f46-8ad1-7b4c1b31394f.png"
8+
thumbnail: "/images/天空.png"
99
---
1010

1111
# 1. 部署SD
@@ -479,7 +479,7 @@ Tag的格式:
479479

480480
右边会出现一些图片的一些提示词和反向提示
481481

482-
![image-20240317113239780](images/image-20240317113239780.png)
482+
![image-20240317113239780](https://cdn.jsdelivr.net/gh/hackerHiJu/note-picture@main/note-picture/image-20240317113239780.png)
483483

484484

485485

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
---
2+
title: Camunda工作流基础入门(一)
3+
date: 2024-11-30 19:07:05
4+
updated: 2024-11-30 19:07:05
5+
tags: ["分布式", "Java", "BPMN2.0"]
6+
comments: true
7+
categories: ["分布式", "Camounda"]
8+
thumbnail: "/images/天空.png"
9+
---
10+
11+
# Camunda工作流
12+
13+
## 一、下载安装
14+
15+
通过 docker 来直接运行,默认账号密码 demo,demo
16+
17+
> docker run -d --name camunda -p 8080:8080 camunda/camunda-bpm-platform:latest
18+
19+
> http://localhost:8080/camunda-welcome/index.html
20+
21+
安装[camunda modeler](https://camunda.com/download/modeler/) 下载直接解压,启动 **exe** 文件
22+
23+
![image-20230728103140448](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728103140448.png)
24+
25+
## 二、BPMN
26+
27+
BPMN 指业务流程建模与标记,BPMN定义业务流程图,其基于流程图技术,创建
28+
29+
![在这里插入图片描述](https://img-blog.csdnimg.cn/c3cc2d69732a4db6a4177d1927e15ceb.png)
30+
31+
- 活动:就是指具体的任务
32+
- 会话标识
33+
- 编排:整个流程的参与者有哪些
34+
- 泳道:跟编排差不多,例如:每个项目里面有多个流程,每一个项目就是一个泳道
35+
- 事件:发起的一些额外处理
36+
- 数据:起一个标识作用
37+
- 逻辑门:就是网关
38+
39+
## 三、任务
40+
41+
### 1. 用户任务
42+
43+
需要人工处理后才能继续执行的任务。例如:请假流程,zhangsan请假,需要wanghao用户审批后才能继续执行;
44+
45+
![image-20230728103334120](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728103334120.png)
46+
47+
#### 1.1 流程模型
48+
49+
![image-20230728101720071](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728101720071.png)
50+
51+
定义好启动变量 **starter**,这个变量表示谁启动它就指代的谁
52+
53+
![image-20230728101736063](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728101736063.png)
54+
55+
通过 EL 表达式可以获取到 **${starter}** 变量获取到发起审批的人是谁,就是这个任务由谁来发起;用户发起节点定义一个任务的表单,包含三个字段 **name、number、reason**,分别表示名字、天数、原因
56+
57+
![image-20230728101836788](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728101836788.png)
58+
59+
60+
61+
审批的节点定义好需要哪个用户来进行审批,然后审批节点又需要定义一个表单标识审核是否通过;真正流程是需要关联外部设计好的表单的
62+
63+
![image-20230728101944352](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728101944352.png)
64+
65+
66+
67+
#### 1.2 部署流程
68+
69+
我这是通过运行的 camunda的 **Camunda Modeler** 来直接部署到运行的 **Camunda Platform**
70+
71+
![image-20230728102105515](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728102105515.png)
72+
73+
#### 1.3 创建用户
74+
75+
现在需要创建一个 **wanghao 和 zhangsan** 用户,并且都需要添加到对应的用户组里面,否则没有权限操作
76+
77+
![image-20230728102422150](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728102422150.png)
78+
79+
![image-20230728102443687](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728102443687.png)
80+
81+
#### 1.4 启动任务
82+
83+
通过 **zhangsan** 用户启动一个流程,找到定义好的流程名字,输入对应的数据
84+
85+
![image-20230728102619702](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728102619702.png)
86+
87+
然后切换到 **wanghao** 账号的任务列表中就可以看到待办的任务了
88+
89+
![image-20230728102727413](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728102727413.png)
90+
91+
### 2. 业务任务
92+
93+
业务任务通常是用来调用业务系统,camunda中可以调用java代码或者rest api调用
94+
95+
![image-20230728103426296](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728103426296.png)
96+
97+
目前camunda中,业务任务实现方式有5种
98+
99+
- Java class
100+
- Expression
101+
- Delegate expression:需要实现camunda提供的接口 **JavaDelegate**
102+
- External
103+
- Connector
104+
105+
#### 2.1 流程模型
106+
107+
预约家电维修的流程定义
108+
109+
![image-20230728105343358](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728105343358.png)
110+
111+
##### Class Java
112+
113+
预约修理家电使用的是 Java class来进行处理
114+
115+
![image-20230728105934207](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728105934207.png)
116+
117+
![image-20230728105859319](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728105859319.png)
118+
119+
##### Delegation
120+
121+
师傅上门维修使用 Delegation Expression来使用,需要实现提供的接口 JavaDelegate,并且使用java spring service的注解指定bean的名称
122+
123+
![image-20230728104604763](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728104604763.png)
124+
125+
![image-20230728104638184](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728104638184.png)
126+
127+
##### Expression
128+
129+
公司电话回访使用的 Expression 实现业务任务,使用EL表达式接受 **bean.callMethod(参数)** 的方式执行,也可以是一行普通的表达式;相比于 Delegate expression,此种方式实现任务的Bean无须实现JavaDelegate接口,可以是任意方法,参数,需要用到流程执行的参数,可以直接传入execution
130+
131+
![image-20230728104934708](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728104934708.png)
132+
133+
![image-20230728110258717](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728110258717.png)
134+
135+
查看分数也使用 Execution 来实现
136+
137+
![image-20230728105324986](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/image-20230728105324986.png)
138+
139+
#### 2.2 部署流程
140+
141+
142+
143+
### 3. 外部任务
144+
145+
**External Task**:是属于业务任务的一个分支,外部任务需要实现方明确告知其 **complete** 任务了才会继续流传任务;外部任务的执行大体分三步
146+
147+
- Process Engine:创建一个外部任务实例
148+
- External Worker:拉取并且锁定外部任务(根据订阅的topic)
149+
- External Worker & Process Engine:完成外部任务实例,这一步如果上报异常给引擎,如果上报异常时,在异常没有消失前会永远卡在这里
150+
151+
#### 3.1 长轮询
152+
153+
camunda采用的是长轮询的模式拉去任务,如果没有外部任务可用,请求会被 **服务器** 挂起并加锁;在长时间轮询的帮助下,如果没有外部任务,服务器会暂停请求。一旦有新的外部任务出现,请求就会重新被激活,并执行响应。暂停的时间可以通过 timeout 配置
154+
155+
![img](https://cdn.jsdelivr.net/gh/hackerhaiJu/note-picture@main/note-picture/external-task-long-polling.png)
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: ElasticSearch基础入门(一)
3+
date: 2024-11-30 19:07:05
4+
updated: 2024-11-30 19:07:05
5+
tags: ["分布式", "Java", "ES"]
6+
comments: true
7+
categories: ["分布式", "ES"]
8+
thumbnail: "/images/天空.png"
9+
published: false
10+
---
11+
12+
13+
# ElasticSearch基础入门
14+
15+
## 1、单机ES搭建
16+
17+
- 解压jar包:tar -zxvf elasticsearch-7.12.0-linux-x86_64.tar.gz
18+
- 修改conf/elasticsearch.yml文件
19+
20+
```
21+
#集群名称
22+
cluster.name: my-es
23+
#节点名称
24+
node.name: node-1
25+
# 存放数据位置,自定义
26+
path.data: /usr/local/software/elasticsearch-7.12.0/data
27+
# 日志存放位置
28+
path.logs: /usr/local/software/elasticsearch-7.12.0/logs
29+
# 对外提供服务地址
30+
network.host: 192.168.60.46
31+
http.port: 9200
32+
# 单机节点就只有node-1
33+
cluster.initial_master_nodes: ["node-1"]
34+
```
35+
36+
- 添加es用户进行运行,安全问题,es不能使用root服务运行
37+
- groupadd es
38+
- useradd es
39+
- 给当前用户赋予es安装目录下的所有权限 chown -R es:es /es
40+
- 错误异常信息:
41+
- **错误信息:**max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
42+
- 修改vim /etc/sysctl.conf
43+
- 在文件末尾追加:vm.max_map_count=655360
44+
- 配置生效sysctl -p
45+
- **错误信息:** [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
46+
- 修改 vim /etc/security/limits.conf (如果没有 就追加)
47+
- \* soft nofile 65536
48+
- \* hard nofile 65536
49+
- \* soft nproc 4096
50+
- \* hard nproc 4096
51+
- **错误信息:**system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
52+
- 修改 vim elasticsearch.yml
53+
- bootstrap.memory_lock: false # 释放出来
54+
- bootstrap.system_call_filter: false # 追加
55+
- 启动:nohup ./bin/elasticsearch > /logs & 以后台方式启动
56+

0 commit comments

Comments
 (0)