In a network application written in Qt, if you want to get all IP addresses on the host machine, you can use QNetworkInterface::allAddresses(). But please bear in mind that this function only returns the addresses of interfaces whose link are UP, as stated in Qt Docs:

This convenience function returns…


About half a year ago, I set up a GitHub Actions to deploy Hugo blog to self-hosted VPS. It had been working pretty well so far.

Recently, I reviewed the application running on my VPS and found there’re only a WireGuard proxy and a MTProxy except this blog. Those two…


Weston is the reference implementation of a Wayland compositor. As part of my current job, I have the opportunity to dive into the source code of weston and fix some issues when customizing it in our product.

As my own experience, weston is much more suitable for embedded and mobile…


在《 新西兰银蕨二期签证及配偶工签申请记录 》中提到,我目前持有的银蕨二期签证与雇主绑定,在「签证条件」中会额外规定雇主、职位和工作地点:

The holder may only work as TITLE in LOCATION for COMPANY.

假如在此签证有效期内需要换工作,那么就需要申请变更限制条件(variation of co …


This is a quick note about how to search device nodes in Qt.

TLDR

Add QDir::System explicitly in the filter of a QDir object to include device nodes.

Long story

The provides access to directory structures and their contents. …


Caddy is an open source web server written in Go. It integrates automatic HTTPS and is extensible by adding plugins.

Last time I set up Caddy web server on my VPS, Caddy was still v0.11.0, which was almost 3 years ago:

$ caddy -version Caddy 0.11.0 (non-commercial use only)

Now…


2020 年对全人类来说都是特殊的一年,COVID-19 从 2019 年底出现,2020 年逐渐漫延到全世界,2021 年还在继续肆虐。尽管各国在逐步接种疫苗,但新的变种让疫情看不到尽头,持续时间远超 2003 年的 SARS 疫情。

2020 年,奥克兰经历了两次 lockdown,Level 2 以上的日子共计 93.5 天,也就是说超过四 …


In our project, we use tcpdump to capture frames on CAN bus. In the core library used by tcpdump, libpcap used SocketCAN as the data link type previously.

In commit 93ca5ff, SocketCAN was removed. Instead, it handled all CAN captures in general cooked mode on Linux, which will have an…


银蕨实践经验工签(Silver Fern Practical Experience Work Visa)是 银蕨求职工签的后续签证,在找到满足薪资要求的技能性工作后可申请,因此常被称为「银蕨二期签证」,相应地,银蕨求职工签则被称为「银蕨一期签证」 。由于银蕨一期签证已 永久关闭 ,随着目前尚存的一期签证持有者的签证转换,二期签证也将成为绝唱。

银蕨二 …


工作流

GitHub Actions 提供了直接在 GitHub 仓库中创建软件生命周期工作流(workflow)的功能,极大地方便了持续集成、持续部署的实现。

本文将使用 GitHub Actions 实现 Hugo 博客自动部署到自建 VPS。基本思路是在每次 push 到 GitHub 之后触发 Actions 将最新代码 checkout 到其虚 …

Philip Ye

@yestyle

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store