Home/Posts
Blog Posts

All Posts

Browse all blog articles and posts

Fluent UI Dropdown Not Clickable Inside Radix Dialog/Sheet
> This page is generated by AI "claude-4.5-sonnet"
Fluent-UI-Dropdown-Not-Clickable-Inside-Radix-Dialog-or-Sheet
Netowork Kit throw 2300023 "Failed writing received data to disk/application" error | HarmonyOS | ArkTS
# Netowork Kit throw 2300023 "Failed writing received data to disk/application" error | HarmonyOS | ArkTS ``` {"code":2300023,"message":"Failed writi...
HarmonyOS_2300023_FailedWritingReceivedDataToDiskApplication
Comparison among HTTP/1.1, HTTP/2 and HTTP/2 Server Push
Comparison among HTTP/1.1, HTTP/2 and HTTP/2 Server Push
comparision-among-http11-http2-and-http2-with-server-push
HTTP/1.1, HTTP/2 和 HTTP/2 Server Push 的网页加载速度对比
本文会演示 HTTP/1.1, HTTP/2 和 HTTP/2 Server Push 三种情况下网页的加载速度。
comparision-among-http11-http2-and-http2-with-server-push-zh
创建 Kubernetes Cron 定时任务
创建 Kubernetes Cron 定时任务
create-cronjob-in-kubernetes
dh key too small
Today I encoutered the dh key too small issue when running curl and wget commands.
dh-key-too-small
Docker/Kubernetes 中国镜像
基于众所周知的原因,我们没法顺顺利利连上 Docker 的官方镜像。另外还有部分厂商选择把自家的镜像托管在谷歌镜像服务(gcr.io)和 quay.io 上。
docker-repositories-in-china
Everything 下载
链接: https://pan.baidu.com/s/1EK6nr8POl12tDhH6xCTvKA
download-everything
下载 Windows 10 ISO
链接: https://pan.baidu.com/s/14SmtgAVYH4AVrtj4EQZBDA
download-windows-10
Shall I avoid Exclamation Mark(!) in If-Statement in Java
Today I read a post that we should not use "!" in If statement in order to gain a better Perfermance.
exclamation-mark-in-if-statement-in-java
How to force a program use HTTP proxy in Linux
Download the latest release: https://github.com/rofl0r/proxychains-ng/releases
force-a-program-use-http-proxy-in-linux
格式化字符串攻击(Format String Attack)
格式化字符串攻击(Format String Attack)
format-string-attack
函数注入(Function Injection)
函数注入(Function Injection)
function-injection
Generate robots.txt and sitemap.xml in Next.js
> For the SEO optimization, it’s necessary to support robots.txt and sitemap so that search engineer can know your website easily. Next.js does not support robots.txt and sitemap.xml so that we need to implement by ourselves.
generate-robots-txt-and-sitemap-xml-in-next-js
为 Next.js 应用生成 robots.txt 和 sitemap.xml
> 为了优化 SEO,生成 robots.txt 和 sitemap.xml 是必不可少的功能。
generate-robots-txt-and-sitemap-xml-in-next-js-zh
git rev-parse HEAD alternative command in JGit
JGit does not provide extractly the same interface for what you run in comand line git rev-parse HEAD. Below snippets are what you need:
git-rev-parse-head-in-jgit
Java Stream API 实现详解
自 Java 8 后,Stream API 成为了开发中必不可少的元素。相比于原始的 for-loop 循环,Stream API 拥有更好的可读性和更好的通用性能。但是 Stream API 本身引入了更复杂的抽象结构和更多的类创建开销,使用不当的话,很容易使性能劣化或者导致 BUG。因此开发有必要更深入地理解 Stream API 的原理和实现。本文将从 Stream API 的抽象设计到代码实现,从简单的单线程模型到并行运算,详细地介绍 Stream API。
how-does-stream-work-in-java-1
思源笔记如何复制为 Markdown
1. 点击内容编辑框右上角的更多按钮(三个点的按钮)
how-to-copy-content-as-markdown-in-siyuan
How to serve one jersey resource or jetty servlet for different path
How to serve one jersey resource or jetty servlet for different path
how-to-serve-one-jersey-resource-or-jetty-servlet-for-different-path
HTTP POST
HTTP POST
http-post
Inspect HTTP/2 in Wireshark
This page will demonstrate how to inspect HTTP/2 request in WireShark.
inspect-http2-in-wireshark
用 Wireshark 监控 HTTP/2 流量
相比 HTTP/1.1,HTTP/2 支持多路复用、支持服务端、支持 HTTP Header 压缩等特性极大地优化了网页的性能。
inspect-http2-in-wireshark.zh-cn
Install wiki.js via Kubenetes on macOS
Create wikijs.yml with below content
install-wikijs-via-kubenetes-on-macos
在 macOS 上通过 Kubenetes 安装 wiki.js
> [wiki.js](https://wiki.js.org/) 是一款完全由 JavaScript 技术栈创建的百科应用。前端由 Vue.js 开发,而后台为 Node.js。只要安装好 Node.js ,wiki.js 能很简单地在任何环境下跑起来。wiki.js 内置了登录和搜索功能,拥有良好的自定义和扩展能力。并且支持了大部分常用的数据库软件。
install-wikijs-via-kubenetes-on-macos-zh
kube-proxy
kube-proxy
kube-proxy
Exploring kubelet: Understanding the Core Components
In the realm of Kubernetes, the kubelet plays a pivotal role in managing the lifecycle of pods on individual nodes within a cluster. Understanding its inner workings is crucial for anyone delving into the world of container orchestration. In this technical blog, we will dissect key components of the kubelet and shed light on its functionality.
kubelet
Nginx Permission denied while connecting to upstream 解决办法
今天配置新服务器的时候,发现 Nginx 无法正常代理请求。请求反向代理的地址时页面显示 "504 Bad Gateway"。
nginx-permission-denied-while-connecting-to-upstream
Java 中的软引用(SoftReference)、弱引用(WeakReference)和虚引用(PhantomReference) 解析和实际用例
在一般的 Java GC 中,JVM GC 的过程是对程序员透明的,既不可控又不可知的。
phantom-reference-in-java
Remote Debugging for Java Application
Remote Debugging for Java Application
remote-debugging-for-java-application
How to set environment variable to a Docker container
Use -e parameter:
set-environment-variable-to-docker-container
Set yarn registry to taobao in China
If you're in China and encounted a problem that it's too slow or even unable to connect https://registry.yarnpkg.com,
set-yarn-registry-to-taobao-in-china
在群晖上搭建 Nexus 私有仓库
最近在做的项目不能把包上传到公有仓库,而私有仓库不仅收费,而且类型单一。想到自己的群晖自带了 Docker,自建一个私有仓库似乎是个极好的选择。
setup-nexus-in-synology
The mindflow of software design
The mindflow of software design
software-design-mindflow
How to split string into array in Bash
A snippet to split string into an array. And shows you how to retrieve elements from the array.
split-string-into-array-in-bash
使用 OWASP ZAP 扫描网页/API漏洞
OWASP ZAP 是一款开源、免费和跨平台的网站/API安全漏洞扫描工具。
use-owasp-zap-to-scan-vulnerabilities
Vagrant CentOS 国内镜像
导入镜像
vagrant-registry-in-china
Why we need to disable TRACE method and how to disable TRACE in Embedded Jetty
Why we need to disable TRACE method and how to disable TRACE in Embedded Jetty
why-we-need-to-disable-trace-method-and-how-to-disable-trace-in-embedded-jetty