- 博客(8)
- 收藏
- 关注
原创 RustRover 编辑器 卡顿
最近在 做 tauri 开发时,发现 jetbrain 的 RustRover,不合常理的卡顿,变量属性联想特别慢。
2024-04-03 19:46:13
849
原创 Downloading pre-built shared indexes 很慢
jetbrain 系列产品 idea,pycharm 为了降低生成索引所带来的 cpu 消耗,所以提供了下载索引,但是。而开发的电脑通常能承受这点 cpu 消耗。所以我们关闭这项功能即可。
2023-04-14 20:56:36
5717
原创 java edi 解析与生成 最佳实践
ERP 系统中有一种常见信息交换格式为 EDI,常见的 X12 标准里也会有 EDI 身影。实战解析和生成,两个 demo 带你学会 EDI
2023-02-11 00:04:51
2529
原创 pytorch mnist vgg16 错误记录
torch mnist vggRuntimeError: Given groups=1, weight of size [64, 3, 3, 3], expected input[64, 1, 28, 28] to have 3 channels, but got 1 channels insteadRuntimeError: Given input size: (512x1x1). Calculated output size: (512x0x0). Output size is too small
2022-05-06 20:01:16
4599
2
原创 threejs react fiber 最佳实践
threejs 在 react 中的最佳实践。在使用相当一段时间的 threejs 和 react-three-fiber 后,在中文资料环境极其匮乏的情况下,做个极简·笔记式的分享。目标是能让大家在 最快 的速度上手,且 半·精通installnpm install three @react-three/fiber 官方文档Demo1 - 全局概览这是一个短小精悍的 demo1,对着下面代码看解析物体 盒子:new BoxGeometry() 球:new SphereGeometry(.
2022-03-16 17:34:09
4180
11
原创 hugo + github action 免费个人博客【2022版】
免费个人博客 的教程非常的 多,但 大多落后 或者 不着重点,本文整合目前已知最好的方式,最优雅的方式白嫖一个博客。- git commit 提交- 触发 github action `.github/workflows/my-pipeline.yml` 并满足设置中的 `on` 条件- 触发 pipeline 中的 steps - checkout:相当与 git clone,并且后续操作具有 github 完整权限,可以通过 permissions 设置 - setup hugo:准备构建要
2022-02-11 17:44:26
2370
原创 python 使用 reportlab 生成 pdf
生成文件: 先 SimpleDocTemplate(‘xxx.pdf’),然后 build流文件:先 io.BytesIO() 生成句柄,然后同理曲线图 LinePlot饼图 Pie文字 ParagraphfontSize 字体大小 推荐 14加粗 <b>xxx</b> 使用的是 html 的方式,字体自动实现firstLineIndent 首行缩进 推荐 2 * fontSizeleading 行间距 推荐 1.5 * fontSizefontName 中文不友好下载 .ttf 文件
2022-02-08 22:03:52
3604
原创 python log format 实现 logfmt格式
现在很多主流日志系统推崇 logfmt 格式,但是 python 中配套的不多,这边给个参考日志大概长这样time="2022-01-28T17:00:52+0800" type=default level=info method="a.py:82" msg="haha"time="2022-01-28T17:00:52+0800" type=default level=warning method="a.py:83" msg="no access"Codeimport loggin......
2022-01-28 17:06:40
1772
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人