Post List

1k words 1 mins.

# github workflow 设置 yaml 文件 name: Frontend pr workflowon: # 在 develop 分支上触发 PR 的 build pull_request: branches: ["develop"]jobs: build: # 任务名 runs-on: [self-hostsd] steps: # 步骤列表 - uses: actions/checkout@v3 # 步骤使用 actions 组织的 action,切换仓库,版本 v3 - name: Use Node.js 16.xx.x # 使用内部 action...
510 words 1 mins.

# 在转 PDF 中去除 endnotes 使用 Docx4j 将 word 转 pdf 中,endnotes 会自动生成在文件末尾,虽然在 word 原文件中是完全空白的,但是 pdf 依然会生成没有内容的大大的 Endnotes 标题。Java 中可以在 word 中进行预处理去除 endnotes 的部分。 EndnotesPart endnotesPart = wordMLP.getMainDocumentPart().getEndNotesPart(); endnotesPart.remove(); // 测试 MainDocumentPart mainDocumentPart =...
3.9k words 4 mins.

# 前言 因为业务要求,查了下怎么获取进度,但是资料很分散。虽然又被业务搁置了,还是记录下怎么实现的。 # 现有代码 # 前端 React axios 向服务器端通信 async post<T>(url: string, body: any): Promise<T>{ return axios .post(`${this.serverDomain}${url}`), JSON.stringify(body),{ headers:...
643 words 1 mins.

oraclede 安装成功进行下去费了我两天时间 果然中文搜索都不靠谱 按照错误名英文搜索 找到了解决办法。 其他问题 我先总结一下: c 盘没共享 cmd net share c=c 或者计算机管理 新建共享 路径 c:\名字为c, 亦或是 路径用户名为中文 解禁 administrator 账户 安装, 亦或是 HKEY_LOCAL_MACHINE => SYSTEM => CurrentControlSet => Services => LanmanServer => Parameters =>...
314 words 1 mins.

# 错误 can not pull image 检查 mirantis secure registry,tags 为空,重新 run pipeline 来重新部署 image # log 检查到数据库链接失败 首先检查 database url 是否正确,之后检查本地连接,发现无法连接。之后上 do it know 查看是否 database 正常,检查到 database 被关闭。action 重启数据库 # liveness check failed config 中有个 service 占用了 application 使用的 port,导致 application 重启失败,更改端口到...
4.3k words 4 mins.

# 前言 因为业务需求以及网上的解决方案不完整,花了两天时间研究出一行代码,所以写下此文就当 2023 与 2024 之间的承上启下之作了。(代码手打,有错自己改,狗头保命) 之前的解决方案 在网上搜索 java spring 中对于文档的合并输出,解决方案不外乎 使用商业付费 package:Merge Docx java 使用 altchunk,以下代码摘自:https://soaserele.blogspot.com/2011/07/merge-docx-files-in-java-using-docx4j.html public class DocxService...
1.7k words 2 mins.

win11 每天半夜重启死机,查了事件查看器,发现标题错误,解决方案引用 reddit The fix is simple. No need to wait for MS to address this issue. 解决方法很简单。无需等待 MS 解决此问题。 Double click both the Gaminput services and look at their location ("path to executable" it is called). You will see that one is located in your...
3.3k words 3 mins.

小米 5s 垃圾中的垃圾 # adb 卸载应用 bat 脚本 @echo oncmd /c adb shell pm list packagescmd /c adb devices#adb shell pm uninstall --user 0 com.sohu.inputmethod.sogou.xiaomi #小米定制版搜狗输入法(用第三方应用替换 Gboard 等)#adb shell pm uninstall --user 0 com.android.browser #浏览器(用第三方应用替换 chrome 等)cmd /c adb shell pm uninstall --user...
1.3k words 1 mins.

疯了,这几天开机疯狂蓝屏记录一下怎么解决 # 检查系统日志 打开系统工具 - 事件查看器 - windows 日志 - 系统 然后右侧筛选当前日志,事件级别选择关键、警告和错误。 # 10016 事件 典型描述如下: 应用程序-特定 权限设置并未向在应用程序容器 不可用 SID (不可用)中运行的地址 LocalHost (使用 LRPC) 中的用户 DESKTOP-SF1U8RI\machilus SID (S-1-5-21-1608297252-3045228917-1571507988-1001)授予针对 CLSID 为...
1k words 1 mins.

因为没有第二台 ios 就尝试黑苹果定期登录一下苹果小号吧。 # VMWare 安装 版本选择 VMWare 16 pro,因为官网下载需要登录账号,建议搜索下官网下载直链。直接安装的版本没有 macos 选项,需要搜索 unlocker vmware 找到 github 的 depot,但貌似项目已经存档了。。。。但还是可以用的。 # Macos 安装 第一次建立好文件后打开系统直接蓝屏,因为 amd 的 cpu??搜了一下发现要加参数,在自动建立的 vmware 镜像文件中找到 vmx 后缀的文件并在尾部添加以下参数: smc.version =...