<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Love98&#39;s Blog</title>
    <link>https://blog.love98.net/</link>
    <description>Recent content on Love98&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Mon, 12 Jan 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.love98.net/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>群晖 AME 移除 HEVC 后的 Photos HEIC 预览踩坑</title>
      <link>https://blog.love98.net/archives/synology-ame-hevc-removed-photos-heic-preview/</link>
      <pubDate>Mon, 12 Jan 2026 00:00:00 +0000</pubDate>
      <guid>https://blog.love98.net/archives/synology-ame-hevc-removed-photos-heic-preview/</guid>
      <description>&lt;p&gt;一切头疼的起源是群晖对于 AME 的一次 &lt;a href=&#34;https://www.synology.com/en-global/releaseNote/CodecPack&#34;&gt;更新&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20260112104001818.webp&#34; alt=&#34;image.png&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;如描述中所述移除了 HEVC 的编解码，这意味着基于此的 HEIC 的封装也无法正常编解码，并导致在 Photos 组件中无法正常预览 iOS 常用的 HEIC 格式照片&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;HEIF can store images encoded with multiple coding formats, for example both &lt;a href=&#34;https://en.wikipedia.org/wiki/Standard-dynamic-range_video&#34; title=&#34;Standard-dynamic-range video&#34;&gt;SDR&lt;/a&gt; and &lt;a href=&#34;https://en.wikipedia.org/wiki/High-dynamic-range_video&#34; title=&#34;High-dynamic-range video&#34;&gt;HDR&lt;/a&gt; images. &lt;a href=&#34;https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding&#34; title=&#34;High Efficiency Video Coding&#34;&gt;HEVC&lt;/a&gt; is an image and video encoding format and the default image &lt;a href=&#34;https://en.wikipedia.org/wiki/Codec&#34; title=&#34;Codec&#34;&gt;codec&lt;/a&gt; used with HEIF. HEIF files containing HEVC-encoded images are also known as &lt;strong&gt;HEIC&lt;/strong&gt; files and often use the &lt;code&gt;.heic&lt;/code&gt; &lt;a href=&#34;https://en.wikipedia.org/wiki/Filename_extension&#34; title=&#34;Filename extension&#34;&gt;filename extension&lt;/a&gt;. Such files require less storage space than the equivalent quality &lt;a href=&#34;https://en.wikipedia.org/wiki/JPEG&#34; title=&#34;JPEG&#34;&gt;JPEG&lt;/a&gt;.&#xA;——WIKIPEDIA&lt;/p&gt;</description>
    </item>
    <item>
      <title>博客迁移 Halo -&gt; Hugo</title>
      <link>https://blog.love98.net/archives/blog-migration-from-halo-to-hugo/</link>
      <pubDate>Thu, 25 Dec 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.love98.net/archives/blog-migration-from-halo-to-hugo/</guid>
      <description>&lt;p&gt;当你看到这篇博文的时候，我的博客方案已经从 &lt;a href=&#34;https://www.halo.run/&#34;&gt;Halo&lt;/a&gt; 换到了 &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt;，接下来我将介绍我迁移的完整心路历程，希望对你有所帮助&lt;/p&gt;&#xA;&lt;h2 id=&#34;关于-halo&#34;&gt;关于 Halo&lt;/h2&gt;&#xA;&lt;h3 id=&#34;简介&#34;&gt;简介&lt;/h3&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Halo&lt;/strong&gt; [ˈheɪloʊ]，强大易用的开源建站工具。&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;这是一个基于 Java 的建站工具，在 2.x 版本上使用的技术栈为 &lt;code&gt;Spring Boot + Netty + Thymeleaf&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;对于我来说，这是我当时选择它的理由，也是我现在放弃它的原因&lt;/p&gt;&#xA;&lt;h3 id=&#34;数年前选择-halo&#34;&gt;数年前选择 Halo&lt;/h3&gt;&#xA;&lt;p&gt;我在22年10月建站的时候，主要还是参考网上的教程和建议，便基于 WordPress 搭建了我的第一个博客网站，但是由于服务器性能比较孱弱（2C4G），后台极其卡顿，仅仅更新了两篇文章后就让我忍无可忍，于是直接换上了更加现代的 Halo&lt;/p&gt;&#xA;&lt;p&gt;当时应该是 Halo 2.x 刚刚 release，各个主题都还没来得及做适配，尤其是我当时相中的主题 &lt;a href=&#34;https://github.com/LIlGG/halo-theme-sakura&#34;&gt;Sakura&lt;/a&gt;，直到 22年12月才发布 beta 版本支持，同时还有很多功能无法使用，因此我还是选择了 Halo 1.x&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251224161849848.webp&#34; alt=&#34;image.png&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;当时跟着 Halo 的使用文档，我第一次安装了 Docker 环境，第一次搭建了 Nginx 反代，第一次使用 Docker Compose 部署了服务，是真的受益良多，同时更换上 Halo 之后，网站的前后台响应速度均有了很大的提升，同时样式也更加美观&lt;/p&gt;&#xA;&lt;p&gt;在 &lt;code&gt;Sakura&lt;/code&gt; 主题正式适配 Halo 2.x 后，我便将 Halo 1.x 升级到了 Halo 2.x 并沿用至今&lt;/p&gt;&#xA;&lt;h2 id=&#34;为什么我要换方案&#34;&gt;为什么我要换方案&lt;/h2&gt;&#xA;&lt;p&gt;我必须要说，Halo 是一个非常出色的系统，它有着优秀的架构设计、出色的性能表现和丰富的拓展能力，而且它这几年的变化是翻天覆地的&lt;/p&gt;&#xA;&lt;p&gt;但随着使用的深入和时间的推移，我愈发觉得现在的它和现在的我存在严重的分歧&lt;/p&gt;&#xA;&lt;h3 id=&#34;痛点一系统层面的重&#34;&gt;痛点一：系统层面的重&lt;/h3&gt;&#xA;&lt;p&gt;如前文所说，这是一个基于 Spring Boot 的项目，同时还需要维护一个 MySQL 实例（当然也可以是 PostgreSQL），它们对于内存的占用都非常高，虽然官网描述最低需要 1G，但就我个人的使用体验来说 2G 是才是使用的门槛，这对于我孱弱的 VPS 来说有点太重了&lt;/p&gt;</description>
    </item>
    <item>
      <title>和 LLM 一起的 CoreML 尝试</title>
      <link>https://blog.love98.net/archives/try-coreml-with-llm/</link>
      <pubDate>Tue, 14 Oct 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.love98.net/archives/try-coreml-with-llm/</guid>
      <description>&lt;p&gt;由于本人的 2060 显卡运损，我之前运行的一系列本地 AI 工具尽数不可用，不得不临时使用我的 MacBook 运行它们，所幸他们大部分使用的是 PyTorch 框架，简单修改 &lt;code&gt;device=mps&lt;/code&gt; 即可成功运行&lt;/p&gt;&#xA;&lt;p&gt;不过在后续的使用过程中，发现它的效率远不如之前的 2060，同时会导致我的 MacBook 发热严重（没有主动散热的 Air 版本），系统卡顿，我不得不另寻他法&lt;/p&gt;&#xA;&lt;h2 id=&#34;发现-mlx&#34;&gt;发现 MLX&lt;/h2&gt;&#xA;&lt;p&gt;在查阅 &lt;a href=&#34;https://github.com/jianfch/stable-ts?tab=readme-ov-file#transcribe&#34;&gt;stable-ts&lt;/a&gt; 项目的文档时，意外发现它已有 &lt;a href=&#34;https://github.com/ml-explore/mlx&#34;&gt;MLX (Apple Machine Learning Exploration)&lt;/a&gt; 框架的支持&lt;/p&gt;&#xA;&lt;p&gt;为了利用这一性能优势，我根据文档修改了模型加载函数。然而，在实际运行我本地下载的 &lt;a href=&#34;https://huggingface.co/kotoba-tech/kotoba-whisper-v2.0&#34;&gt;Hugging Face&lt;/a&gt; 模型 &lt;code&gt;kotoba-whisper-v2.0&lt;/code&gt; 时，程序却抛出了一个错误：&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;ModelDimensions&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;fm&#34;&gt;__init__&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;got&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;an&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;unexpected&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;keyword&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;argument&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;_name_or_path&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;意思是 PyTorch 的模型，其内部参数结构（如 &lt;code&gt;_name_or_path&lt;/code&gt;）与 MLX 框架的模型定义并不直接兼容&lt;/p&gt;&#xA;&lt;h3 id=&#34;从-pytorch-到-mlx&#34;&gt;从 PyTorch 到 MLX&lt;/h3&gt;&#xA;&lt;p&gt;解决这个问题的&lt;strong&gt;核心步骤&lt;/strong&gt;是将现有的 Whisper 模型权重转换为 MLX 框架能够识别和加载的格式，幸运的是 MLX 社区提供的转换脚本：&lt;a href=&#34;https://github.com/ml-explore/mlx-examples/blob/main/whisper/convert.py&#34;&gt;convert.py&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;这个脚本负责解析原始 Whisper 模型的权重文件，并将其重新保存为 MLX 特定的格式，确保所有张量和配置项都能被 MLX 库正确加载和初始化。By the way，如果使用的是 OpenAI 官方开源的 Whisper 模型，MLX 包内已预先提供了一些转换好的模型地址，可以直接使用，省去了手动转换的麻烦&lt;/p&gt;&#xA;&lt;h3 id=&#34;性能飞跃&#34;&gt;性能飞跃&lt;/h3&gt;&#xA;&lt;p&gt;完成模型转换并成功运行后，MLX 相较于 &lt;code&gt;whisper.cpp&lt;/code&gt; 实现效率&lt;strong&gt;提升了 2 到 5 倍&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>小红书全栈开发 11月-1月 实习小结</title>
      <link>https://blog.love98.net/archives/red-note-full-stack-dev-nov-jan-work-summary/</link>
      <pubDate>Mon, 03 Feb 2025 00:23:03 +0000</pubDate>
      <guid>https://blog.love98.net/archives/red-note-full-stack-dev-nov-jan-work-summary/</guid>
      <description>&lt;h2 id=&#34;前言&#34;&gt;前言&lt;/h2&gt;&#xA;&lt;p&gt;2024 年 10 月底，我正在和协会里的同学一起准备实习的事情，适时我已经通过了 AutoMQ 和深信服的二轮面试，不过就在同一个星期，小红书存储数据库平台的负责人（也就是我现在的 mentor）通过短信联系到我，然后我在一天的时间内通过三轮面试，拿到这个岗位的实习资格。&lt;/p&gt;&#xA;&lt;h2 id=&#34;工作&#34;&gt;工作&lt;/h2&gt;&#xA;&lt;p&gt;小红书的工作强度还是比较高的，我目前的基本上是早10晚9大小周，偶尔几次晚9点半，当然对于实习生而已，不同组的工作量差异比较大，我旁边的实习生早10晚8，也有的同学早10晚6。平时要做什么一般是 mentor 安排的，也有一些是组内的群里面收到 bug 反馈，自己主动处理的。此外我们组还会有日会和周会同步进度，周会额外需要简单整理个人周报。&lt;/p&gt;&#xA;&lt;h3 id=&#34;生产工具&#34;&gt;生产工具&lt;/h3&gt;&#xA;&lt;p&gt;生产工具的配置还是不错的&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Macbook Pro 14&#39; M3 18G + 512G&lt;/li&gt;&#xA;&lt;li&gt;27&#39; 4K 显示器 * 2&lt;/li&gt;&#xA;&lt;li&gt;罗技办公鼠标（我习惯用触摸板，没要）&lt;/li&gt;&#xA;&lt;li&gt;GitHub Copilot&lt;/li&gt;&#xA;&lt;li&gt;Navicat Premium&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;技术栈&#34;&gt;技术栈&lt;/h3&gt;&#xA;&lt;p&gt;后端：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Python3.11&lt;/li&gt;&#xA;&lt;li&gt;Golang1.22 &amp;amp; 1.23&lt;/li&gt;&#xA;&lt;li&gt;MySQL 5 &amp;amp; MySQL 8&lt;/li&gt;&#xA;&lt;li&gt;ClickHouse (内部版)&lt;/li&gt;&#xA;&lt;li&gt;Kafka&lt;/li&gt;&#xA;&lt;li&gt;Airflow&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;前端：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Vue3&lt;/li&gt;&#xA;&lt;li&gt;Webpack&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;运维：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Docker&lt;/li&gt;&#xA;&lt;li&gt;K8s&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;工作内容&#34;&gt;工作内容&lt;/h3&gt;&#xA;&lt;p&gt;现在的服务基本上都是微服务架构，所以个人主要是负责模块或者包的开发和维护，我在组内主要负责 DMS (Data Management Service) 和 DAS (Database Autonomy Service) 的开发和维护。&lt;/p&gt;&#xA;&lt;h4 id=&#34;airflow-日志&#34;&gt;Airflow 日志&lt;/h4&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://airflow.apache.org/&#34;&gt;Apache Airflow&lt;/a&gt; 是平台的核心之一，负责平台各类任务调度和运行，在这个模块中，我主要负责将 Airflow 的日志和平台打通，使得用户可以在现有平台查看自己有权限访问的任务日志，而不同额外获取权限访问 Airflow。&lt;/p&gt;</description>
    </item>
    <item>
      <title>OSPP 记录---CasWAF 开发经历</title>
      <link>https://blog.love98.net/archives/ospp-record---caswaf-dev-exp/</link>
      <pubDate>Wed, 09 Oct 2024 16:00:34 +0000</pubDate>
      <guid>https://blog.love98.net/archives/ospp-record---caswaf-dev-exp/</guid>
      <description>&lt;p&gt;经过两年的沉淀，我第一次尝试在 OSPP 上联系导师、投递简历，并成功地参与进知名开源社区 Casbin 的开发工作中。&lt;/p&gt;&#xA;&lt;h2 id=&#34;项目介绍&#34;&gt;项目介绍&lt;/h2&gt;&#xA;&lt;p&gt;我参与的项目 CasWAF 是一款开源的应用层网关防火墙。它可以有效地保护您的网络服务免受各种攻击，包括SQL注入、跨站脚本攻击等。该WAF支持IP限流、爬虫检测等高级特性。&lt;/p&gt;&#xA;&lt;p&gt;我们希望在CasWAF上：&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;进一步优化和增强防护规则，使其可以应对更多种类的网络攻击；&lt;/li&gt;&#xA;&lt;li&gt;提升CasWAF在处理大流量请求时的性能和稳定性。这两个目标对于提升CasWAF的核心竞争力及其在防火墙领域的地位至关重要。&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;其主要特点包括：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;全部Web UI图形化操作，无需编写复杂的配置文件。&lt;/li&gt;&#xA;&lt;li&gt;支持反向代理功能（类似Nginx），支持强制跳转HTTPS。&lt;/li&gt;&#xA;&lt;li&gt;支持一键自动配置Let&#39;s Encrypt SSL证书，支持自动更新。&lt;/li&gt;&#xA;&lt;li&gt;支持基于ModSecurity的防火墙规则匹配（即WAF核心功能）。&lt;/li&gt;&#xA;&lt;li&gt;支持基于用户代理字符串、IP、IP子网等维度的限流、支持黑白名单。&lt;/li&gt;&#xA;&lt;li&gt;支持数据统计大屏，方便管理员查看，实现态势感知。&lt;/li&gt;&#xA;&lt;li&gt;所有操作均记录在审计日志中，方便管理和审计。&lt;/li&gt;&#xA;&lt;li&gt;用户界面支持中文、英文等多国语言。&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;开发需求&#34;&gt;开发需求&lt;/h2&gt;&#xA;&lt;p&gt;在这个项目中，我的主要工作是：&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;实现基于 &lt;code&gt;User-Agent&lt;/code&gt;, &lt;code&gt;IP &amp;amp; CIDR&lt;/code&gt; 和 &lt;code&gt;IP Frequency&lt;/code&gt; 等多个维度的多种匹配方式。&lt;/li&gt;&#xA;&lt;li&gt;提供多种 &lt;code&gt;Action&lt;/code&gt; 以供用户选择，如 &lt;code&gt;Block&lt;/code&gt;, &lt;code&gt;CAPTCHA&lt;/code&gt;, &lt;code&gt;Drop&lt;/code&gt; 和 &lt;code&gt;Allow&lt;/code&gt; 等。&lt;/li&gt;&#xA;&lt;li&gt;实现数据统计大屏，方便管理员查看，实现态势感知。&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;timeline&#34;&gt;Timeline&lt;/h2&gt;&#xA;&lt;p&gt;接下来我将按照我的 Git History 来记录我的开发经历。&lt;/p&gt;&#xA;&lt;h3 id=&#34;first-pr&#34;&gt;First PR&lt;/h3&gt;&#xA;&lt;p&gt;我在5月份开始了解项目并联系导师，并在5月底向 CasWAF 仓库提交了第一个 PR (&lt;a href=&#34;https://github.com/casbin/caswaf/pull/28&#34;&gt;feat: add dashboard page&lt;/a&gt;)。&lt;/p&gt;&#xA;&lt;p&gt;在这个 PR 中，我添加了一个 Dashboard 页面，用于展示数据统计大屏。为了减少后端接口的复杂程度，我仅创建了两个新的 API，用于查询 &lt;code&gt;Record&lt;/code&gt; 表中的数据，一个用于提供不同时间粒度的时间线查询，一个用于统计数据查询，并在前端页面中展示。&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/blog/202410091557386.png&#34; alt=&#34;Dashboard&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;在数据库层面，这个项目使用的是 &lt;code&gt;XORM&lt;/code&gt; 框架，我之前在 Golang 的项目中使用过 &lt;code&gt;GORM&lt;/code&gt; 和 &lt;code&gt;ent&lt;/code&gt; 两个框架，也有手写 SQL 的基础，所以对 &lt;code&gt;XORM&lt;/code&gt; 的使用并不难理解。同时，我参考了开源网站数据分析工具 &lt;a href=&#34;https://github.com/umami-software/umami&#34;&gt;Umami&lt;/a&gt; 的 API 设计和数据库实现，实现了以下两个相对灵活的查询函数：&lt;/p&gt;</description>
    </item>
    <item>
      <title>My First Mobile App - SAST-EVENTO-MOBILE</title>
      <link>https://blog.love98.net/archives/my-first-mobile-app---sast-evento-mobile/</link>
      <pubDate>Tue, 19 Dec 2023 15:50:56 +0000</pubDate>
      <guid>https://blog.love98.net/archives/my-first-mobile-app---sast-evento-mobile/</guid>
      <description>&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/NJUPT-SAST/sast-evento-mobile/&#34;&gt;SAST-EVENTO-MOBILE&lt;/a&gt; is a cross-platform mobile application for our association: &lt;strong&gt;Student Association of Science and Technology&lt;/strong&gt; (SAST). It is a events management and distribution application, based on &lt;a href=&#34;https://www.npmjs.com/package/@ionic/react&#34;&gt;Ionic/React&lt;/a&gt; and &lt;a href=&#34;https://capacitorjs.com&#34;&gt;Capacitor&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;At a very previous stage, I have to make a choice between Hybrid and Mini-Program. It was a very hard decision. I finally chose Hybrid because of the following reasons:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;On Mini-Program, we have to face a very strict censor of the carriers platform like WeChat. Not only for the content, but also for the data and permissions we ask for, for example, the student ID and the notifications.&lt;/li&gt;&#xA;&lt;li&gt;In China, the Mini-Program also acquires a ICP license to run like a website and a real application. For more information, please visit &lt;a href=&#34;https://www.gov.cn/zhengce/zhengceku/202308/content_6897341.htm&#34;&gt;工业和信息化部关于开展移动互联网应用程序备案工作的通知&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;The Mini-Program is not a real application, and it has different standards from different carriers. Although some cross-platform Mini-Program frameworks, like uni-app, are very mature, they still have many terrible bugs and most of them are unavoidable. Besides, most carriers have a strict limit on the Mini-Programs, like the package size, the resources from the Internet, etc.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Then, I need to choose a framework for the Hybrid application. I have considered &lt;a href=&#34;https://reactnative.dev/&#34;&gt;React Native&lt;/a&gt;, &lt;a href=&#34;https://flutter.dev/&#34;&gt;Flutter&lt;/a&gt; and &lt;a href=&#34;https://ionicframework.com/&#34;&gt;Ionic&lt;/a&gt;. Each of them are excellent and powerful, but I finally chose Ionic because of the following reasons:&lt;/p&gt;</description>
    </item>
    <item>
      <title>VPS体验报告 (持续更新)</title>
      <link>https://blog.love98.net/archives/vps-experience-report-continually-updating/</link>
      <pubDate>Sat, 28 Oct 2023 13:50:21 +0000</pubDate>
      <guid>https://blog.love98.net/archives/vps-experience-report-continually-updating/</guid>
      <description>&lt;p&gt;作为一名Web开发者，有一台自己的服务器或者VPS是一件很重要的事情，它可以部署自己的博客、自己的项目或者一些服务。写这篇博客的目的是记录和分析我购买VPS的经历和体验，由于我也是一个相关领域的新手，所以这篇博客可能会有很多错误，如有谬误，欢迎指正。&lt;/p&gt;&#xA;&lt;h2 id=&#34;阿里云-ecs&#34;&gt;阿里云 ECS&lt;/h2&gt;&#xA;&lt;p&gt;官方网站：&lt;a href=&#34;https://www.aliyun.com/product/ecs&#34;&gt;https://www.aliyun.com/product/ecs&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;这是我的第一台VPS，是阿里云免费的学生机，但是只有三个月的体验时间，而且没有记录太多的内容，现在只能简单回忆一下。&lt;/p&gt;&#xA;&lt;p&gt;1C1G1M（1 CPU Core, 1G MEM, 1M Bandwidth）的配置，性能非常差，当时搭建了FRP内网穿透，而且只用来做内网穿透，不能做其他的事情，比如建站，因为性能太差了。即便是内网穿透，也因为带宽太小废弃了。&lt;/p&gt;&#xA;&lt;h2 id=&#34;腾讯云-cvm&#34;&gt;腾讯云 CVM&lt;/h2&gt;&#xA;&lt;p&gt;官方网站：&lt;a href=&#34;https://cloud.tencent.com/product/cvm&#34;&gt;https://cloud.tencent.com/product/cvm&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;腾讯云的学生优惠，折扣比较低，花了300多买了一年的CVM，配置是2C4G3M，机房是上海的。搭建一个自己的博客，在国内访问还是足够的。由于不想浪费宝贵的国内VPS带宽，我还是搭建了一个FRP服务，虽然仍然是小水管，但已经比阿里云的好多了。&lt;/p&gt;&#xA;&lt;p&gt;这里附上一张腾讯云国内CVM服务器的Ping测试结果：&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222170729019.png&#34; alt=&#34;tencent_vps_ping_test_by_ping.pe&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;一开始使用的WordPress搭建的博客，但是对于一台2C4G的小服务器来说，WordPress还是太笨重了，在上面更新了两篇博博客之后就停更了。后面换了Halo，无论是前台还是后台，体验都好了很多，但那就是后话了，也与VPS关系不大，这里只是告诉读者，2C4G的机器搭建WordPress博客是比较吃力的，谨慎尝试。&lt;/p&gt;&#xA;&lt;p&gt;腾讯云有一个非常大的优点（在有些情况下也可能是缺点），它是一站式的。确切的说，它不仅仅是一个VPS提供商，而是一个云服务提供商，它集成了包括域名服务（注册、DNS）、网站备案、COS、CDN等等建站服务，还有很多面向企业的流媒体、直播、验证等等服务。这些服务都是可以直接在腾讯云控制台上使用的，而且还有很多优惠活动，这些都是我后面使用其他VPS提供商时所没有的。&lt;/p&gt;&#xA;&lt;p&gt;腾讯云的一个槽点，也是我个人非常不喜欢的一个点，它每次登录控制台都需要使用手机微信扫码，这是一件非常头疼的事情，我现在属于是双手不离键盘的用户，连鼠标都不想使用（效率太低了），然而腾讯云却要我每次登录都要拿起手机扫码，这是我非常不能接受的。&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222170732727.webp&#34; alt=&#34;tencent_cloud_login&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;再加上学生优惠结束之后极其昂贵的续费费用，后来我就不打算续费了。&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222170735797.webp&#34; alt=&#34;tencent_cloud_price&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;h2 id=&#34;azure-vm&#34;&gt;Azure VM&lt;/h2&gt;&#xA;&lt;p&gt;官方网站：&lt;a href=&#34;https://azure.microsoft.com/zh-cn/products/virtual-machines/&#34;&gt;https://azure.microsoft.com/zh-cn/products/virtual-machines/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;我手里的是Azure学生认证免费VPS，配置是1C1G，G口流量计费。目前挂载了两个非常轻量的&lt;code&gt;node.js&lt;/code&gt;服务，但是也吃了700多M的内存。&lt;/p&gt;&#xA;&lt;p&gt;Ping Test 如下：&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222170740191.webp&#34; alt=&#34;Azure_VM_pine_test&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;我没有跑系统基准测试，但是感觉性能比较差，有时候甚至SSH都很慢。&lt;/p&gt;&#xA;&lt;h2 id=&#34;dogyun-vps-jp&#34;&gt;DogYun VPS JP&lt;/h2&gt;&#xA;&lt;p&gt;官方网站：&lt;a href=&#34;https://www.dogyun.com/&#34;&gt;https://www.dogyun.com/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;尝试小厂 VPS，我买的配置是1C2G200M，机房在日本，cmi的线路，目前没有遇到任何问题（如停机、IP污染等）。晚高峰期间会有比较严重的丢包，但是其他时间段延迟和丢包都很好。&lt;/p&gt;&#xA;&lt;p&gt;Ping Test 如下：&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222170746306.webp&#34; alt=&#34;DogYun_VPS_ping_test&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;晚高峰时期，受QoS影响，丢包比较严重，但是经过实测，博客访问影响不大，图片加载速度也很快。虽然机房在境外，不过个人不建议用这个机房扶墙，一方面是晚高峰丢包严重，另一方面，这家服务商是国内厂商，要求实名。&lt;/p&gt;&#xA;&lt;p&gt;有一说一，从境内VPS换成境外VPS最大的体验就是速度，上下行都是200M的带宽，体验真的比国内的小水管好不知道多少倍。同时还对境外搜索引擎和访问更加友好。&lt;/p&gt;&#xA;&lt;p&gt;我现在是把博客和其他几个小服务挂载在这台服务器上面，目前个人体验不错。&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;2023年11月&lt;/p&gt;&#xA;&lt;p&gt;换线路了，不推荐了&lt;/p&gt;&#xA;&lt;h2 id=&#34;dogyun-vps-hk-epyc&#34;&gt;DogYun VPS HK EPYC&lt;/h2&gt;&#xA;&lt;p&gt;官方网站：&lt;a href=&#34;https://www.dogyun.com/&#34;&gt;https://www.dogyun.com/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;2023年11月1日0点新上机型，1C1G100M，BGP线路，24RMB/mouth（原价30RMB/month，新品8折）。按照狗云的说法是海外线路，对境内有优化。经过实测，江苏移动走CMI，江苏电信走CN2，浙江联通走169。&lt;/p&gt;&#xA;&lt;h2 id=&#34;buyvm-las-vegas&#34;&gt;BuyVM Las Vegas&lt;/h2&gt;&#xA;&lt;p&gt;官方网站：&lt;a href=&#34;https://buyvm.net/las-vegas-datacenter/&#34;&gt;https://buyvm.net/las-vegas-datacenter/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;2010年的老厂了，机器数量非常有限，特色是可以随便加硬盘和不限流量。&lt;/p&gt;&#xA;&lt;p&gt;我选择的是1C1G的机型，这个机器有点抢手，我等了一周才搞到手（由于时区问题，这个机器在东八区需要早起抢购）。&lt;/p&gt;&#xA;&lt;p&gt;他们家的机房有 &lt;code&gt;Las Vegas&lt;/code&gt;, &lt;code&gt;New York&lt;/code&gt;, &lt;code&gt;Miami&lt;/code&gt;和&lt;code&gt;Luxembourg&lt;/code&gt;，我自己买过&lt;code&gt;New York&lt;/code&gt;和&lt;code&gt;Las Vegas&lt;/code&gt;，实测&lt;code&gt;New York&lt;/code&gt;任何时间在中国大陆的访问都很不稳定，而&lt;code&gt;Las Vegas&lt;/code&gt;全天体验都不错。据说&lt;code&gt;Luxembourg&lt;/code&gt;抗投诉。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Spring Boot Scheduled Tasks - Quartz</title>
      <link>https://blog.love98.net/archives/spring-boot-scheduled-tasks---quartz/</link>
      <pubDate>Wed, 27 Sep 2023 20:47:45 +0000</pubDate>
      <guid>https://blog.love98.net/archives/spring-boot-scheduled-tasks---quartz/</guid>
      <description>&lt;h2 id=&#34;introduce-about-scheduled-tasks&#34;&gt;Introduce about Scheduled Tasks&lt;/h2&gt;&#xA;&lt;p&gt;In the world of Spring Boot, scheduling tasks is an essential part of managing various background processes. Quartz is a powerful library that simplifies task scheduling in Spring Boot applications. In this blog, we will explore the use of Quartz for scheduling tasks.&lt;/p&gt;&#xA;&lt;h3 id=&#34;why-we-need-scheduled-tasks&#34;&gt;Why We Need Scheduled Tasks&lt;/h3&gt;&#xA;&lt;p&gt;Scheduled tasks play a crucial role in modern software applications. Here&#39;s why they are indispensable:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Automation&lt;/strong&gt;: Scheduled tasks automate routine processes, reducing manual intervention and the risk of human error.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Efficiency&lt;/strong&gt;: They enable efficient resource utilization by running tasks at non-peak hours or during idle periods.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Notification&lt;/strong&gt;: Scheduled tasks can trigger notifications, alerts, and reports, keeping stakeholders informed.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Maintenance&lt;/strong&gt;: They aid in system maintenance, such as database cleanup, log rotation, and backups.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Foe example, imagine you have an e-commerce application, and you want to cancel those orders which are not paid in 15 minutes. You can&#39;t ask consumers to use your API on time after 15 minutes. To achieve this, you can schedule a &lt;code&gt;Job&lt;/code&gt; which will start on time and cancel the order.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Windows Remote Control - Several methods I used to Control Windows PC through iPad</title>
      <link>https://blog.love98.net/archives/windows-remote-control---several-methods-i-used-to-control-windows-pc-through-ipad/</link>
      <pubDate>Thu, 07 Sep 2023 22:45:38 +0000</pubDate>
      <guid>https://blog.love98.net/archives/windows-remote-control---several-methods-i-used-to-control-windows-pc-through-ipad/</guid>
      <description>&lt;p&gt;In this blog, I will talk about several methods I have used to achieve the remote control. It is not a serious horizontal comparison about them, but just my messing around diary.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-do-i-need-the-remote-control&#34;&gt;Why do I need the remote control&lt;/h2&gt;&#xA;&lt;p&gt;You may have a question about why not use a laptop, and my answer is very personal and subjective: I have high-performance requirements for my computer and sometimes I have to use the computer outside, but the powerful laptops are too heavy, while the light laptops are not powerful enough. Therefore, a high-performance PC, combined with remote control capabilities, has become my top choice. Of course, I can use a light laptop as the terminal, but an iPad can be cheaper, lighter, and more portable.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CFW 预处理与 Clash 配置文件的使用</title>
      <link>https://blog.love98.net/archives/cfw-yu-chu-li-yu-clash-pei-zhi-wen-jian-de-shi-yong/</link>
      <pubDate>Sun, 30 Jul 2023 18:53:15 +0000</pubDate>
      <guid>https://blog.love98.net/archives/cfw-yu-chu-li-yu-clash-pei-zhi-wen-jian-de-shi-yong/</guid>
      <description>&lt;p&gt;本文需要读者对 Clash 配置文件有基本的了解，知道 &lt;code&gt;proxy&lt;/code&gt;, &lt;code&gt;proxy-group&lt;/code&gt;, &lt;code&gt;rule&lt;/code&gt; 和 &lt;code&gt;订阅&lt;/code&gt; 的概念。&lt;/p&gt;&#xA;&lt;h2 id=&#34;cfw-预处理&#34;&gt;CFW 预处理&lt;/h2&gt;&#xA;&lt;h3 id=&#34;起因&#34;&gt;起因&lt;/h3&gt;&#xA;&lt;p&gt;我经常需要使用 ChatGPT 解决问题，但是由于 ChatGPT 的 Web 服务使用了 Cloudflare 服务拦截了所有大陆地区的访问和全球各地很多的代理节点，我的节点提供商提供了一批可以访问 ChatGPT 的节点，并在它们的名字中添加了 &lt;code&gt;chatGPT&lt;/code&gt; 字段，如 &lt;code&gt;【I】日本  VIP 4 - chatGPT&lt;/code&gt;。这让我可以在想要使用 ChatGPT 的时候，通过更换节点的方式访问，进而避免被 Cloudflare 拦截。&lt;/p&gt;&#xA;&lt;p&gt;不过，这是一件非常麻烦的事情。首先，每次想要使用 ChatGPT，我都必须记得切换节点，否则会被 ChatGPT 警告：“所在地区不提供服务”、“违反规定使用代理访问” 等等，出现这种警告过后还需要清理浏览器缓存。其次，如果我在使用完 ChatGPT 的使用忘记切换回原本的节点，这会让我后续所有网络连接延迟增加。此外，我在使用 ChatGPT 的时候，所有节点的流量均从 &lt;code&gt;chatGPT&lt;/code&gt; 节点流出，这对我当时其他 Web 服务的使用产生了影响。&lt;/p&gt;&#xA;&lt;p&gt;其实，要想解决这个问题是非常简单的，只需要节点提供商在提供的配置文件中将这些节点整理到一个策略组，再让所有有关 &lt;code&gt;openai.com&lt;/code&gt; 的流量从这个策略组走就解决了，不过它并没有这么做。既然节点提供商没有写这个策略组，那我就自己写。&lt;/p&gt;&#xA;&lt;h3 id=&#34;需求分析&#34;&gt;需求分析&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;将所有包含 &lt;code&gt;chatGPT&lt;/code&gt; 字段的节点整理在一个叫 &lt;code&gt;OpenAI&lt;/code&gt; 的策略组中&lt;/li&gt;&#xA;&lt;li&gt;将所有与 &lt;code&gt;openai.com&lt;/code&gt; 的流量导向 &lt;code&gt;OpenAI&lt;/code&gt; 策略组&lt;/li&gt;&#xA;&lt;li&gt;在节点提供商的配置文件更新时，&lt;code&gt;OpenAI&lt;/code&gt; 策略组也需要更新&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;使用--parsers&#34;&gt;使用  Parsers&lt;/h3&gt;&#xA;&lt;p&gt;CFW 提供了一个处理 &lt;code&gt;Profile&lt;/code&gt; 的工具 —— Parsers&lt;/p&gt;</description>
    </item>
    <item>
      <title>正方教务系统油猴插件的使用和开发</title>
      <link>https://blog.love98.net/archives/zfjw-system-you-hou-cha-jian-de-shi-yong-he-kai-fa/</link>
      <pubDate>Mon, 03 Jul 2023 14:09:58 +0000</pubDate>
      <guid>https://blog.love98.net/archives/zfjw-system-you-hou-cha-jian-de-shi-yong-he-kai-fa/</guid>
      <description>&lt;p&gt;虽然时间上是先开发后使用的，但是我想对于大部分读者而言如何使用比如何开发更加简单，有浅入深总归不是一件坏事。&lt;/p&gt;&#xA;&lt;h2 id=&#34;插件的使用&#34;&gt;插件的使用&lt;/h2&gt;&#xA;&lt;h3 id=&#34;油猴&#34;&gt;油猴&lt;/h3&gt;&#xA;&lt;p&gt;如果你已经会用油猴了，那么可以直接跳过这一小节。&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://www.tampermonkey.net/?locale=zh&#34;&gt;Tampermonkey 官网&lt;/a&gt; 是这样描述自己的：&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Tampermonkey 允许用户自定义并&lt;strong&gt;增强您最喜爱的网页的功能&lt;/strong&gt;。用户脚本是小型 JavaScript 程序，可用于向网页添加新功能或修改现有功能。使用篡改猴，您可以轻松在任何网站上创建、管理和运行这些用户脚本。此外，篡改猴 &lt;strong&gt;使您轻松找到并安装其他用户创建的用户脚本&lt;/strong&gt;。这意味着您可以快速轻松地访问为您喜爱的网页定制的广泛库，而无需花费数小时编写自己的代码。&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;简单来说，它是一个管理脚本的工具，它存在的目的就是优化浏览网页的体验。&lt;/p&gt;&#xA;&lt;p&gt;除了 &lt;a href=&#34;https://www.tampermonkey.net/&#34;&gt;Tampermonkey&lt;/a&gt; 之外，还有 &lt;a href=&#34;https://violentmonkey.github.io/get-it/&#34;&gt;Violentmonkey&lt;/a&gt;, &lt;a href=&#34;https://docs.scriptcat.org/docs/use/&#34;&gt;Script Cat&lt;/a&gt; 等等管理工具。&lt;/p&gt;&#xA;&lt;p&gt;只需要在你的浏览器插件商店中下载并安装，就可以准备安装各种各样的油猴插件了。&lt;/p&gt;&#xA;&lt;h3 id=&#34;正方教务系统油猴插件&#34;&gt;正方教务系统油猴插件&lt;/h3&gt;&#xA;&lt;p&gt;插件仓库：https://github.com/love98ooo/ZhengFangJiaoWuSystemTampermonkeyScript&lt;/p&gt;&#xA;&lt;p&gt;很多插件都发布在 &lt;a href=&#34;https://greasyfork.org/&#34;&gt;Greasy Fork&lt;/a&gt; 上面，但是这个插件本就小众，只面向南邮的同学，所以为了更方便地开发和维护，这个插件就只在 GitHub 上面发布了。&lt;/p&gt;&#xA;&lt;p&gt;在插件仓库的说明页面点击安装链接，&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171649618.png&#34; alt=&#34;2023-07-02_190716&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;如果油猴是正常的，就会进入如下页面，点击安装（Install）即可。&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171652218.png&#34; alt=&#34;2023-07-02_083838&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;来到正方教务系统的成绩查询页面，这里多了一个按钮&lt;code&gt;查询考试详细分数&lt;/code&gt;，先不用管它，正常选择&lt;code&gt;学年&lt;/code&gt;和&lt;code&gt;学期&lt;/code&gt;，点击&lt;code&gt;按学期查询&lt;/code&gt;或&lt;code&gt;按学年查询&lt;/code&gt;，&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171654619.webp&#34; alt=&#34;2023-07-02_084320&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;你会和往常一样看到成绩表，&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171657368.png&#34; alt=&#34;2023-07-02_084657&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;再点击按钮&lt;code&gt;查询考试详细分数&lt;/code&gt;，屏幕中间会出现这样的窗口，包括&lt;code&gt;平时分&lt;/code&gt;、&lt;code&gt;卷面分&lt;/code&gt;、&lt;code&gt;期末 : 平时&lt;/code&gt;这些原本成绩表上面没有的数据。&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171700005.webp&#34; alt=&#34;2023-07-02_085616&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;如果发现有 Bug 或者可以改进的地方，点击下方的&lt;code&gt;反馈 Bug&lt;/code&gt;按钮，你的将跳转到项目 GitHub 仓库的 Issues 页面，在这里你可以提交 Issues。&lt;/p&gt;&#xA;&lt;p&gt;如果这个插件对你有帮助，欢迎 Star &amp;#x2b50; ，这能让作者开心很久。&lt;/p&gt;&#xA;&lt;h2 id=&#34;插件的开发&#34;&gt;插件的开发&lt;/h2&gt;&#xA;&lt;h3 id=&#34;起因&#34;&gt;起因&lt;/h3&gt;&#xA;&lt;p&gt;最早的时候是学长在群里面分享了一段运行在控制台（console）的代码，&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171703305.png&#34; alt=&#34;2023-07-02_190855&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;但是每次使用都需要找到这个文件，复制这段代码到控制台，非常繁琐。而且输出既不易读，又容易抽风，&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171708470.png&#34; alt=&#34;2023-07-02_191427&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;所有我就想能不能让这段代码在我查分的时候自动执行，于是我想到了油猴，我可以把这段代码放在油猴里面，而且还可以使用表格展示。&lt;/p&gt;&#xA;&lt;h3 id=&#34;起步&#34;&gt;起步&lt;/h3&gt;&#xA;&lt;p&gt;虽然这是我第一次开发油猴插件，不过之前写过一些前端的东西，看看别人的插件怎么写的、问问New Bing，很快就能上手。&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171711678.png&#34; alt=&#34;2023-07-02_194935&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;我在页面上添加了一个&lt;code&gt;查分&lt;/code&gt;按钮，点击之后会以表格的形式展示所有的内容。&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171714756.webp&#34; alt=&#34;2023-07-02_195025&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;此时基本解决了最初的痛点，可以只需要在正常查分的基础上，鼠标额外点击一下&lt;code&gt;查分&lt;/code&gt;按钮就可以执行相关查分代码，同时清晰地展示&lt;code&gt;平时分&lt;/code&gt;和&lt;code&gt;卷面分&lt;/code&gt;。&lt;/p&gt;&#xA;&lt;h3 id=&#34;优化&#34;&gt;优化&lt;/h3&gt;&#xA;&lt;h4 id=&#34;数据&#34;&gt;数据&lt;/h4&gt;&#xA;&lt;p&gt;但是数据容易抽风的问题还是没有得到解决，比如&lt;code&gt;物理实验 （上）&lt;/code&gt;会被识别为&lt;code&gt;物理&lt;/code&gt;，还会有如上图所示的乱码&lt;code&gt;�$&lt;/code&gt;。这里非常感谢 &lt;a href=&#34;https://github.com/FishZe&#34;&gt;FishZe&lt;/a&gt; 同学（算法大佬），&lt;a href=&#34;https://github.com/love98ooo/ZhengFangJiaoWuSystemTampermonkeyScript/pull/1&#34;&gt;他的PR&lt;/a&gt;解决了数据匹配异常的问题。&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171720418.png&#34; alt=&#34;2023-07-02_224755&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;</description>
    </item>
    <item>
      <title>My Stable-Diffusion workflow</title>
      <link>https://blog.love98.net/archives/my-stable-diffusion-workflow/</link>
      <pubDate>Sat, 27 May 2023 21:12:54 +0000</pubDate>
      <guid>https://blog.love98.net/archives/my-stable-diffusion-workflow/</guid>
      <description>&lt;h2 id=&#34;what-is-stable-diffusion&#34;&gt;What is Stable-Diffusion&lt;/h2&gt;&#xA;&lt;p&gt;Here is the description on &lt;a href=&#34;https://github.com/CompVis/stable-diffusion&#34;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/CompVis/stable-diffusion#stable-diffusion-v1&#34;&gt;Stable Diffusion&lt;/a&gt; is a latent text-to-image diffusion model. Thanks to a generous compute donation from &lt;a href=&#34;https://stability.ai/&#34;&gt;Stability AI&lt;/a&gt; and support from &lt;a href=&#34;https://laion.ai/&#34;&gt;LAION&lt;/a&gt;, we were able to train a Latent Diffusion Model on 512x512 images from a subset of the &lt;a href=&#34;https://laion.ai/blog/laion-5b/&#34;&gt;LAION-5B&lt;/a&gt; database.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;In a word, it is a tool to generate images.&lt;/p&gt;&#xA;&lt;h2 id=&#34;quick-start&#34;&gt;Quick start&lt;/h2&gt;&#xA;&lt;p&gt;As an exceptional open-source project, numerous developers actively contribute and share their usage approaches. In this regard, I will present three methods for utilizing it. However, if you are a beginner, I highly advise skipping the first method and opting for the second method instead.&lt;/p&gt;</description>
    </item>
    <item>
      <title>规则引擎的设计与实现</title>
      <link>https://blog.love98.net/archives/design-and-implementation-of-rule-engine/</link>
      <pubDate>Wed, 17 May 2023 18:35:50 +0000</pubDate>
      <guid>https://blog.love98.net/archives/design-and-implementation-of-rule-engine/</guid>
      <description>&lt;h2 id=&#34;认识规则引擎&#34;&gt;认识规则引擎&lt;/h2&gt;&#xA;&lt;h3 id=&#34;定义&#34;&gt;定义&lt;/h3&gt;&#xA;&lt;p&gt;规则引擎是一种嵌入在应用程序中的组件，实现了将业务决策从应用程序代码中分离出来，并使用预定义的语义模块编写业务决策。接受数据输入，解释业务规则，并根据业务规则做出业务决策&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222164935274.webp&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222164939733.webp&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h3 id=&#34;优点&#34;&gt;优点&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;解决了开发人员重复编码的问题&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;业务决策与服务本身解耦，提高了服务的可维护性&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;缩短开发路径，提高效率&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;组成部分&#34;&gt;组成部分&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;数据输入&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;支持接受使用预定义的语义编写的规则作为决策集&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;比如：“price &amp;gt; 500”&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;接受业务的数据作为执行过程中的参数&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;比如价格、标签等&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;规则理解&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;能够按预先定义的词法、语法、优先级、运算符等正确理解业务规则所表达的语义&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;规则执行&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;根据执行时输入的参数对策略集中的规则进行正确的解释和执行&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;对规则执行过程中的数据类型进行检查，确保执行结果的正确性&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;应用场景&#34;&gt;应用场景&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;风控对抗&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;活动策略运营&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;数据分析和清洗&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;编译原理基本概念&#34;&gt;编译原理基本概念&lt;/h2&gt;&#xA;&lt;h3 id=&#34;编译原理&#34;&gt;编译原理&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;理解&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;执行&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;输入输出&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;词法分析-lexical-analysis&#34;&gt;词法分析 Lexical Analysis&lt;/h3&gt;&#xA;&lt;h4 id=&#34;概念&#34;&gt;概念&lt;/h4&gt;&#xA;&lt;p&gt;将源代码字符串转化为词法单元 (Token) 的过程&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222164944066.webp&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;h4 id=&#34;有限自动机finite-state-automaton&#34;&gt;有限自动机（Finite-State Automaton）&lt;/h4&gt;&#xA;&lt;p&gt;有限自动机就是一个状态机，它的状态数量是有限的。该状态机在任何一个状态，基于输入的字符，都能做出一个正确的转换&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222164948392.webp&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;也就是一个多对一的转换&lt;/p&gt;&#xA;&lt;h3 id=&#34;语法分析-syntax-analysis&#34;&gt;语法分析 Syntax Analysis&lt;/h3&gt;&#xA;&lt;h4 id=&#34;概念-1&#34;&gt;概念&lt;/h4&gt;&#xA;&lt;p&gt;在词法分析的基础上识别表达式的语法结构&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222164952656.webp&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;h4 id=&#34;抽象语法树-abstract-syntax-tree&#34;&gt;抽象语法树 Abstract Syntax Tree&lt;/h4&gt;&#xA;&lt;h5 id=&#34;树的结构&#34;&gt;树的结构&lt;/h5&gt;&#xA;&lt;p&gt;表达式的语法结构可以用树来表示，其每个节点（字数）是一个语法单元，这个单元的构成规则就叫 “语法”。每个节点还可以有下级节点。&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222164957036.webp&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;h5 id=&#34;上下文无关语法-context-free-grammar&#34;&gt;上下文无关语法 Context-Free Grammar&lt;/h5&gt;&#xA;&lt;p&gt;语言句子无需考虑上下文，就可以判断正确性。&lt;/p&gt;&#xA;&lt;p&gt;举个栗子：&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-go&#34; data-lang=&#34;go&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;err&#34;&gt;······&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;r&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:=&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;b&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;//Context-Free Grammar&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;err&#34;&gt;······&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h6 id=&#34;产生式一个表达式可以由另外已知类型的表达式或者符号推导产生&#34;&gt;产生式：一个表达式可以由另外已知类型的表达式或者符号推导产生&lt;/h6&gt;&#xA;&lt;p&gt;上下文无关语法可以使用巴科斯范式 (BNF) 来表示&lt;/p&gt;</description>
    </item>
    <item>
      <title>微服务框架</title>
      <link>https://blog.love98.net/archives/microservice-architecture/</link>
      <pubDate>Wed, 19 Apr 2023 21:22:30 +0000</pubDate>
      <guid>https://blog.love98.net/archives/microservice-architecture/</guid>
      <description>&lt;h2 id=&#34;微服务框架原理与治理实现&#34;&gt;微服务框架原理与治理实现&lt;/h2&gt;&#xA;&lt;h3 id=&#34;微服务架构介绍&#34;&gt;微服务架构介绍&lt;/h3&gt;&#xA;&lt;h4 id=&#34;系统架构的演进历史&#34;&gt;系统架构的演进历史&lt;/h4&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;单体架构&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222170248246.webp&#34; alt=&#34;allinone.png&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;All in one process&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;优势&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;性能最高&lt;/li&gt;&#xA;&lt;li&gt;冗余小&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;劣势&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;debug 困难&lt;/li&gt;&#xA;&lt;li&gt;模块相互影响&lt;/li&gt;&#xA;&lt;li&gt;模块分工、开发流程&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;垂直应用架构&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222170251908.webp&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;按照业务线垂直划分&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;优势&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;业务独立开发维护&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;劣势&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;每个业务存在冗余&lt;/li&gt;&#xA;&lt;li&gt;每个业务都还是单体&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;分布式架构&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222170255748.webp&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;抽出与业务无关的公共模块&lt;/li&gt;&#xA;&lt;li&gt;优势&#xA;&lt;ul&gt;&#xA;&lt;li&gt;业务无关的独立服务&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;劣势&#xA;&lt;ul&gt;&#xA;&lt;li&gt;服务模块 bug 会导致全站崩溃&lt;/li&gt;&#xA;&lt;li&gt;调用关系复杂&lt;/li&gt;&#xA;&lt;li&gt;不同服务荣誉&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;SOA架构&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222170259602.webp&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;面向服务&lt;/li&gt;&#xA;&lt;li&gt;优势&#xA;&lt;ul&gt;&#xA;&lt;li&gt;服务注册&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;劣势&#xA;&lt;ul&gt;&#xA;&lt;li&gt;整个系统设计必须是中心化的&lt;/li&gt;&#xA;&lt;li&gt;需要自上而下设计&lt;/li&gt;&#xA;&lt;li&gt;重构困难&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;微服务架构&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;彻底的服务化&lt;/li&gt;&#xA;&lt;li&gt;优势&#xA;&lt;ul&gt;&#xA;&lt;li&gt;开发效率&lt;/li&gt;&#xA;&lt;li&gt;业务独立设计&lt;/li&gt;&#xA;&lt;li&gt;自下而上&lt;/li&gt;&#xA;&lt;li&gt;故障隔离&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;劣势&#xA;&lt;ul&gt;&#xA;&lt;li&gt;治理、运维难度&lt;/li&gt;&#xA;&lt;li&gt;观测困难&lt;/li&gt;&#xA;&lt;li&gt;安全性较弱&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;其他架构&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;例如 Servier Mesh&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h4 id=&#34;微服务架构概览&#34;&gt;微服务架构概览&lt;/h4&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222170303375.webp&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;网关&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;处理流量&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;连接核心组件&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;服务配置和治理&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;链路追踪和监控&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;使用一个单独的平台进行追踪&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h4 id=&#34;微服务架构的三大要素&#34;&gt;微服务架构的三大要素&lt;/h4&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;服务治理&lt;/p&gt;</description>
    </item>
    <item>
      <title>Go语言工程实践之测试</title>
      <link>https://blog.love98.net/archives/go-into-go-programming-language-basic/</link>
      <pubDate>Tue, 21 Mar 2023 19:32:52 +0000</pubDate>
      <guid>https://blog.love98.net/archives/go-into-go-programming-language-basic/</guid>
      <description>&lt;h2 id=&#34;basic-grammar&#34;&gt;Basic Grammar&lt;/h2&gt;&#xA;&lt;h3 id=&#34;variables&#34;&gt;Variables&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Golang is a strongly typed language.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Type &lt;code&gt;string&lt;/code&gt; is a built-in type. It can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;=&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Explicitly declare Var&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;:= type(name)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;var&lt;/code&gt; name type&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;const&lt;/code&gt; (the same meaning as other languages)&lt;code&gt;var&lt;/code&gt; does not have a specified type when it is declared, since it will be set automatedly according to the context when the &lt;code&gt;var&lt;/code&gt; is used.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;if-else&#34;&gt;if-else&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;In Golang, if-else has a similar grammar as other languages.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CFW Ads Patch Record</title>
      <link>https://blog.love98.net/archives/what-i-did-to-block-ads-in-cfw/</link>
      <pubDate>Thu, 23 Feb 2023 23:28:43 +0000</pubDate>
      <guid>https://blog.love98.net/archives/what-i-did-to-block-ads-in-cfw/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://github.com/love98ooo/Clash_Ad_Patch&#34;&gt;GitHub - love98ooo/Clash_Ad_Patch: Remove auto-update and ads in Clash for Windows&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-is-it&#34;&gt;What is it&lt;/h2&gt;&#xA;&lt;h3 id=&#34;cfw&#34;&gt;CFW&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;CFW (Clash for Windows) is a Windows/macOS/Linux GUI based on Clash and Electron.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;It is often used as a proxy tool in China.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;patch&#34;&gt;Patch&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;CFW is a very efficient tool. However, it still has some functions that I do not want, like advertisements and the function of auto-updating.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;I understand that those ads are income for the release author, so I will only remove the display of ads but still get ads images from the ads website. Hope that will help users and protect the author.&lt;/p&gt;</description>
    </item>
    <item>
      <title>FFmpeg-CUDA</title>
      <link>https://blog.love98.net/archives/ffmpeg-cuda/</link>
      <pubDate>Fri, 03 Feb 2023 21:52:48 +0000</pubDate>
      <guid>https://blog.love98.net/archives/ffmpeg-cuda/</guid>
      <description>&lt;h2 id=&#34;forward&#34;&gt;Forward&lt;/h2&gt;&#xA;&lt;p&gt;If transcoding a video with a high bit rate and a long duration, the transcoding suppression will take a long time and take up a lot of CPU resources. Therefore, it is particularly important to use GPU acceleration.&lt;/p&gt;&#xA;&lt;h3 id=&#34;what-is-soft--hard-codec&#34;&gt;What is Soft &amp;amp; Hard codec&lt;/h3&gt;&#xA;&lt;p&gt;Generally, the soft codec uses the CPU which is easy to use while the hard codec uses dedicated chips like GPU which is faster.&lt;/p&gt;&#xA;&lt;p&gt;In the past two years, Apple has repeatedly emphasized the codec capabilities of their M-series chips.&lt;/p&gt;</description>
    </item>
    <item>
      <title>前后端交互——CORS</title>
      <link>https://blog.love98.net/archives/front-back-interaction----cors/</link>
      <pubDate>Fri, 03 Feb 2023 20:53:33 +0000</pubDate>
      <guid>https://blog.love98.net/archives/front-back-interaction----cors/</guid>
      <description>&lt;h2 id=&#34;起因&#34;&gt;起因&lt;/h2&gt;&#xA;&lt;p&gt;今天（即2022年11月26日），本人第一次尝试让自己写的前端去访问自己写的后端，不再通过 Apifox 的方法&lt;/p&gt;&#xA;&lt;h2 id=&#34;发展&#34;&gt;发展&lt;/h2&gt;&#xA;&lt;p&gt;从下午2：30开始，本人正在学习使用 axios，但是查阅资料后发现，大多数的教程使用的都是&lt;code&gt;json-server&lt;/code&gt;这个库，考虑到本人的项目是一个前后端分离的项目（一个人承受了所有），本人在简单通过&lt;code&gt;json-server&lt;/code&gt;了解了 axios 的使用之后，觉得开始使用自己的 Java 后端。&lt;/p&gt;&#xA;&lt;p&gt;简单修改 url 之后发送请求，果然不出意外的出意外了：浏览器报错&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-jsx&#34; data-lang=&#34;jsx&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;No&lt;/span&gt; &lt;span class=&#34;err&#34;&gt;‘&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;Access&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;Control&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;Allow&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;Origin&lt;/span&gt;&lt;span class=&#34;err&#34;&gt;‘&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;header&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;is&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;present&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;on&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;the&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;requested&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;resource&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;意思是没有 ACAO 这个 header&lt;/p&gt;&#xA;&lt;p&gt;此时来到了下午四点&lt;/p&gt;&#xA;&lt;p&gt;通过 Google，本人了解到这是 CORS 的问题，CORS 本身是一个浏览器的保护机制&lt;/p&gt;&#xA;&lt;h2 id=&#34;cors&#34;&gt;CORS&lt;/h2&gt;&#xA;&lt;p&gt;全名是 &lt;strong&gt;Cross-Origin Resource Sharing&lt;/strong&gt;，是一个基于 HTTP-header 的机制，它通过允许服务器标示除了它自己以外的其它源（域、协议和端口），使得浏览器允许这些 origin 访问加载自己的资源。&lt;/p&gt;&#xA;&lt;p&gt;说人话就是确保浏览器向服务器传递过去的东西浏览器会收，浏览器传递回来的东西会是对的；同时也会确认浏览器访问的 url 和服务器同源（如果不是同源就有可能会是网络攻击者的信息）&lt;/p&gt;&#xA;&lt;p&gt;本人的浏览器和服务器的端口是不一样的，所以会被 CORS 拦截，毕竟安全第一&lt;/p&gt;&#xA;&lt;p&gt;由于浏览器的 CORS 是浏览器自己自动进行的，所以解决问题的关键在于让后端服务器实现 CORS 接口。只要服务器实现了CORS接口，就可以跨源通信&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;而出现这个问题，是后端在返回数据的时候，headers 栏没有添加 ACAO 这个 header。&lt;/p&gt;&#xA;&lt;p&gt;继续网上冲浪，在B站找到了3种解决办法：JSONP, 修改 SpringBoot 配置文件，Nginx 反向代理&lt;/p&gt;&#xA;&lt;p&gt;其中 JSONP 技术已经过时&lt;/p&gt;&#xA;&lt;p&gt;而修改 SpringBoot 配置文件是本人非常不乐意的事情，本人对于 SpringBoot 只处于一个会用的阶段，如果因为配置文件出现 Bug，本人是无能为力的&lt;/p&gt;&#xA;&lt;p&gt;最后，本人选择了非常成熟且应用广泛的 Nginx 反向代理&lt;/p&gt;&#xA;&lt;h2 id=&#34;nginx反向代理解决问题的原理&#34;&gt;Nginx反向代理解决问题的原理&lt;/h2&gt;&#xA;&lt;p&gt;作为一个中间件，我们的所有 Request 和 Respond 都会经过 Nginx 服务端，这就意味着，我们可以把缺失的 header 在 Nginx 中补上再发给浏览器&lt;/p&gt;</description>
    </item>
    <item>
      <title>anime.js 简单体验和使用感受</title>
      <link>https://blog.love98.net/archives/anime.js_simple_experience_and_use_feeling/</link>
      <pubDate>Wed, 26 Oct 2022 08:56:00 +0000</pubDate>
      <guid>https://blog.love98.net/archives/anime.js_simple_experience_and_use_feeling/</guid>
      <description>&lt;h2 id=&#34;引入&#34;&gt;引入&lt;/h2&gt;&#xA;&lt;p&gt;前段时间同学拉我参加一个文创比赛，经过小组讨论，我们最终决定模仿米哈游《光绘xx》做一个小游戏。这个游戏最主要的载体就是H5的动画。进过一段时间的网上冲浪，我找到了两个动画库，分别是&lt;code&gt;movy.js&lt;/code&gt;和&lt;code&gt;anime.js&lt;/code&gt;。选择&lt;code&gt;anime.js&lt;/code&gt;的主要原因是它的案例比较多（主要集中在油管，而且质量很高）。&lt;/p&gt;&#xA;&lt;h2 id=&#34;animejs-简介&#34;&gt;anime.js 简介&lt;/h2&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;em&gt;Anime.js&lt;/em&gt; (&lt;code&gt;/ˈæn.ə.meɪ/&lt;/code&gt;) is a lightweight JavaScript animation library with a simple, yet powerful API.&lt;br&gt;&#xA;It works with CSS properties, SVG, DOM attributes and JavaScript Objects.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;这是&lt;code&gt;anime.js&lt;/code&gt;在它的&lt;a href=&#34;https://animejs.com/&#34;&gt;官网&lt;/a&gt;上的简介，很常规，又很有格调。&lt;/p&gt;&#xA;&lt;p&gt;它在&lt;a href=&#34;https://github.com/juliangarnier/anime/&#34;&gt;Github&lt;/a&gt;有着43.5k个&amp;#x2b50;，虽然已经两年没有更新了&amp;#x1f622;。&lt;/p&gt;&#xA;&lt;h2 id=&#34;读文档&#34;&gt;读文档&lt;/h2&gt;&#xA;&lt;p&gt;作为一个前端领域的初学者，看前端的文档让我觉得后端的文档是真的又长又臭非常详细（无意冒犯，&amp;#x1f436;保命）。&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222170957984.webp&#34; alt=&#34;Easy Syntax&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;文档的前半部分都是用CSS可以很轻易实现的，但后面属实让我越来越兴奋。&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171001756.webp&#34; alt=&#34;Exp Grid&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;这里，它只用了几行代码代码就实现了一个涟漪的动画，这要是放在CSS里不直接暴毙。&lt;/p&gt;&#xA;&lt;p&gt;这段代码中&lt;code&gt;easing&lt;/code&gt;这个参数引起了我的注意，顺着文档，发现了新大陆。&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171005700.webp&#34; alt=&#34;EASE&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&#xA;&lt;img src=&#34;https://store.love98.net/20251222171009638.webp&#34; alt=&#34;Ease Lib&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Crazy，太crazy了&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;除了这个巨大的库，它还支持自己画曲线，也可以通过输入几个参数获得一个弹簧的曲线，要知道曲线在AE做的很复杂的动画里都是一个大学问，这里却只需要几个简单的字符，就可以得到一个相当舒服的曲线了。&lt;/p&gt;&#xA;&lt;p&gt;当然这个库能够做的事情远远不止这些，看了油管上的大佬作品，我满怀期待地开始了。&lt;/p&gt;&#xA;&lt;h2 id=&#34;遇到的第一个问题&#34;&gt;遇到的第一个问题&lt;/h2&gt;&#xA;&lt;p&gt;在写第一个动画的时候遇到了一个非常令人费解的事情，明明是照着文档写的，但是放在网页上的正方形怎么也动不起来。在Debug模式下，我发现函数传的参数全部都是null，我猜测应该是函数没有找到对象，在仔细对照官方文档和我的代码之后发现：&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-javascript&#34; data-lang=&#34;javascript&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;anime&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;({&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;targets&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;css-selector-demo .el&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;translateX&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;250&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;});&lt;/span&gt; &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;//这是官方的&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-javascript&#34; data-lang=&#34;javascript&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;anime&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;({&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;target&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;.square&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;translateX&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;250&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;});&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;//这是我写的&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;发现了吗，官方文档里是 &lt;code&gt;targets&lt;/code&gt;，而我写的是&lt;code&gt;target&lt;/code&gt;，因为我用的是WebStorm这款IDE，有亿点点依赖它的提示，一开始还想我为什么会把“s”删掉，后来开始写下一个动画的时候突然发现，WS的第一个提示就是“target”，第二个提示才是“targets”，而且第二个提示的出处标记正是anime.js。绝了，发现的时候我真的哭笑不得，反正舍友是已经笑死了。&lt;/p&gt;&#xA;&lt;p&gt;最终的成品如下：&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171018946.gif&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;h2 id=&#34;贴合主题的第一个简易动画&#34;&gt;贴合主题的第一个简易动画&lt;/h2&gt;&#xA;&lt;p&gt;我在米哈游的动画里顺了几张（嗯，就几张，一定没有全部拿走）图片。&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171023993.webp&#34; alt=&#34;BaiPiaoMHY&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;这是一个结果：&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://store.love98.net/20251222171056714.webp&#34;&#xA;  loading=&#34;lazy&#34;&#xA;  decoding=&#34;async&#34;&#xA;&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;以下是JS代码：&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-javascript&#34; data-lang=&#34;javascript&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;kd&#34;&gt;function&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;cloudAnimate&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nx&#34;&gt;anime&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;({&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;targets&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;.back_div&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;translateX&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;2500&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;duration&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;3000&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;delay&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;500&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;easing&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;easeInOutExpo&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;})&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nx&#34;&gt;anime&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;({&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;targets&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;.cloud&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;translateX&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;1000&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;duration&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;4000&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;delay&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;500&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;easing&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;easeInBack&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;})&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-javascript&#34; data-lang=&#34;javascript&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;kd&#34;&gt;function&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;flicker&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;kd&#34;&gt;let&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;animation&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;anime&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;({&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;targets&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;#flicker&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;duration&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;800&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;opacity&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;mf&#34;&gt;1.0&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;mf&#34;&gt;0.4&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;mf&#34;&gt;1.0&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;easing&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;cubicBezier(0.225, 0.550, 0.775, 0.450)&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;loop&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;});&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nx&#34;&gt;animation&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;play&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;();&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nb&#34;&gt;document&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;getElementById&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;flicker&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;).&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;onclick&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;()=&amp;gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;animation&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;pause&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;();&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;anime&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;({&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nx&#34;&gt;targets&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;#flicker&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nx&#34;&gt;opacity&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mf&#34;&gt;1.0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;p&#34;&gt;})&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;c1&#34;&gt;//执行下一个动画&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nx&#34;&gt;cloudAnimate&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;()&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;flicker&lt;/code&gt;函数实现了闪烁的功能，这里使用曲线函数纯属是想玩一下，其实用线性的就够了，然后名字叫flicker的元素在接受到鼠标点击后就会停止闪烁，回归正常的透明的，并且开始执行下一个动画（感觉这个地方写的不太好，不应该在一个函数的结尾去找另一个函数，总觉得很奇怪）。&lt;/p&gt;</description>
    </item>
    <item>
      <title>关于</title>
      <link>https://blog.love98.net/about/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://blog.love98.net/about/</guid>
      <description>&lt;h2 id=&#34;关于本站&#34;&gt;关于本站&lt;/h2&gt;&#xA;&lt;p&gt;这是 Love98 的个人博客，使用 Hugo 搭建，使用参考 Sakura 主题的自制主题&lt;/p&gt;&#xA;&lt;p&gt;This is Love98&#39;s personal blog, built with Hugo, using a custom theme based on the Sakura theme for reference.&lt;/p&gt;&#xA;&lt;h2 id=&#34;关于我&#34;&gt;关于我&lt;/h2&gt;&#xA;&lt;p&gt;一个全栈开发者；日常工作是 MySQL 生态开发，休息时候开发一些 “小农” 项目&lt;/p&gt;&#xA;&lt;p&gt;Full-stack dev. MySQL by day; small-farmer-style side projects by night.&lt;/p&gt;</description>
    </item>
    <item>
      <title>搜索</title>
      <link>https://blog.love98.net/search/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://blog.love98.net/search/</guid>
      <description></description>
    </item>
    <item>
      <title>友链</title>
      <link>https://blog.love98.net/friends/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://blog.love98.net/friends/</guid>
      <description>&lt;h2 id=&#34;本站信息&#34;&gt;本站信息&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Name：Love98&#39;s Blog&lt;/li&gt;&#xA;&lt;li&gt;Author：Love98&lt;/li&gt;&#xA;&lt;li&gt;Description：一个全栈开发者的碎碎念&lt;/li&gt;&#xA;&lt;li&gt;URL：https://blog.love98.net&lt;/li&gt;&#xA;&lt;li&gt;Avatar：https://blog.love98.net/favicon.png&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;申请方法&#34;&gt;申请方法&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;添加本站后，给我&lt;a href=&#34;mailto:me@love98.net&#34;&gt;发送邮件&lt;/a&gt;，邮件标题为「友链申请」，内容格式如下&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-yml&#34; data-lang=&#34;yml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;- &lt;span class=&#34;nt&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;#[您的名字]&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;url&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;#[您的网址]&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;desc&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;#[简短描述]&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;avatar&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;#[图片链接]&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
