<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>瞎搞开发 on Zirnc's Blog</title><link>https://blog.chungzh.cn/categories/%E7%9E%8E%E6%90%9E%E5%BC%80%E5%8F%91/</link><description>Recent content in 瞎搞开发 on Zirnc's Blog</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><lastBuildDate>Mon, 25 Jul 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.chungzh.cn/categories/%E7%9E%8E%E6%90%9E%E5%BC%80%E5%8F%91/index.xml" rel="self" type="application/rss+xml"/><item><title>第一次做主题：hugo-klay</title><link>https://blog.chungzh.cn/oi-history/hugo-klay/</link><pubDate>Mon, 25 Jul 2022 00:00:00 +0000</pubDate><guid>https://blog.chungzh.cn/oi-history/hugo-klay/</guid><description>上一次折腾博客已经是不知道什么时候的事情了。。
Hugo 这个框架很不错，不想更换，那就尝试做一个主题吧。
Hugo-klay 这个名字取自我最喜欢的 NBA 球员 Klay Thompson，不久前他随金州勇士队夺得了 2021-2022 赛季的 NBA 总冠军。
实话说，我的前端是零基础水平，JS 完全不会写。感谢非常容易上手的 tailwindcss 框架，同时还借（抄）鉴（袭）了很多 hugo-tania、hugo-theme-stack 和 hugo-tailwindcss-starter-theme 的代码。
就像前面说的那样，这个主题的代码质量比较差，而且主要也是自己使用，所以暂时不会单独为这个主题开一个 repo。如果你想参考，也可以到 ChungZH.github.io 这里寻找源码。有时间 的话，我会整理一下代码，再考虑单独分成一个项目。
自我感觉还是挺漂亮的，哈哈哈。</description></item><item><title>Hello Hugo!</title><link>https://blog.chungzh.cn/oi-history/hello-hugo/</link><pubDate>Fri, 16 Jul 2021 00:00:00 +0000</pubDate><guid>https://blog.chungzh.cn/oi-history/hello-hugo/</guid><description>暑假来了，顺便把博客更新一下。
从以前的 Vuepress 变成了 Hugo，速度真的快了很多，不愧是 &amp;ldquo;The world’s fastest&amp;rdquo;。用的主题是 Tania，很简洁、漂亮。Hugo 非常易用，不到半天就完整迁移过来了。我可以很肯定地说这一次博客迁移是有史以来最快的一次。
CI 用的是 GitHub Actions:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 name: github pages on: push: branches: - hugo # Set a branch to deploy pull_request: jobs: deploy: runs-on: ubuntu-20.</description></item><item><title>Notepanda 开发小结</title><link>https://blog.chungzh.cn/oi-history/notepanda/</link><pubDate>Sat, 16 May 2020 10:45:00 +0000</pubDate><guid>https://blog.chungzh.cn/oi-history/notepanda/</guid><description>前言 最近开始学习 Qt，然后就挖坑了一个小玩具 Notepanda，顺便看看能不能替代诸如 notepad、gedit 之类的软件。顺便锻炼一下自己。
GitHub repo
Feature 基本的文本编辑操作（没想到吧这也是 feature 了哈哈哈哈哈哈） 行号显示 语法高亮 从命令行启动。（如 notepanda 或者 notepanda CMakeLists.txt） 除此之外还实现了自定义字体、字号、Qt 主题和 Status Bar 等一些小功能。
以后的目标是实现多标签页，并对 Markdown 做一点优化（比如预览），如果有可能还会加进去一个 terminal。计划在 GitHub Projects。
目前还是很弱的一个东西，不过等查找、替换等 feature 实现之后，基本上可以替代 Windows 的 notepad 了。
Screenshots 实现 这部分大概讲讲思路吧。
布局 编辑控件 使用了 Qt 提供的 QPlainTextEdit 类，适合纯文本编辑。刚开始还用的是 QTextEdit，想想自己真是傻了，又不是要编辑富文本哈哈哈。
不过 QPlainTextEdit 似乎有点点慢，我也没能力造轮子，于是就将就着用吧。
语法高亮 刚开始想实现的时候看见了 Qt 官方的 Syntax Highlighter Example，很棒对吧。但是我可不想花精力去写一堆语言的规则呢！
然后就找到了 KDE Framework 里的 KSyntaxHighlighting。KDE Framework 是真的烦人，刚开始怎么也 build 不出来。等到了 GitHub Actions 上，整整用了四天时间才搞定，还是在某 Packman 的帮助下才完成的。。。当时看到绿绿的 Actions，我差点没开心得疯掉。。</description></item><item><title>Windows 中 C++ 测量时间的 N 种方法</title><link>https://blog.chungzh.cn/oi-history/cpp-get-time/</link><pubDate>Sun, 29 Mar 2020 13:13:00 +0000</pubDate><guid>https://blog.chungzh.cn/oi-history/cpp-get-time/</guid><description>测量可测量之物，将不可测量之物变为可测量。——伽利略</description></item><item><title>优雅地使用 C++ 制作表格：tabulate</title><link>https://blog.chungzh.cn/oi-history/tabulate/</link><pubDate>Fri, 21 Feb 2020 11:45:00 +0000</pubDate><guid>https://blog.chungzh.cn/oi-history/tabulate/</guid><description>优雅地用 C++ 做表格！</description></item></channel></rss>