/images/avatar.png

Welcome

RandomAccessFile读写UTF8文件

RandomAccessFile默认的编码为ISO-8859-1 randomFile.writeBytes(new String(content.getBytes("utf8"), "ISO-8859-1")); public static void main(String[] args) throws IOException { RandomAccessFile raf = new RandomAccessFile(new File("MyFile.txt"), "r"); String line = raf.readLine(); String utf8 = new String(line.getBytes("ISO-8859-1"), "UTF-8"); System.out.println("Line: " + line); System.out.println("UTF8: " + utf8); }

Stable Diffusion AI作图

参考链接 Stable Diffusion2.1+WebUI的安装与使用(极详细) - 哔哩哔哩 (bilibili.com) stabilityai (Stability AI) (huggingface.co) 深入浅出完整解析Stable Diffusion(SD

Hogo配置

修改启动时绑定的IP和端口号 hugo server --bind="0.0.0.0" -p 1234 添加分类和标签 hugo.toml中添加: [taxonomies] tag = "tags" category = "categories"

Hogo安装部署

Hogo 搭建 环境 Hugo 二进制安装 Releases · gohugoio/hugo (github.com) 官方建议安装扩展版 Git 创建site hugo new site myblog cd myblog git init git submodule add https://github.com/dillonzq/LoveIt.git themes/LoveIt echo "theme = 'LoveIt'" >> hugo.toml hugo server 添加content hugo new content posts/my-first-post.md hugo server -D 推送