Total Pageviews

Wednesday, 26 August 2026

中/加/伊同步打美

 

-川普政府越来越像个神经病。

得道多助,失道寡助。

静态网站服务器www.shipstatic.com

 https://www.shipstatic.com/ (我是通过google a/c: briteming@gmail.com登录的。)
https://my.shipstatic.com/
https://my.shipstatic.com/new  (可以上传多个静态网站的根目录。免费计划只能绑定1个shipstatic.com的子域名(比如qd-blog.shipstatic.com)到所上传的静态网站的根目录而得到的域名(比如dreamy-pulse-456nehu.shipstatic.com)
https://dreamy-pulse-456nehu.shipstatic.com/。
https://my.shipstatic.com/deployments/upload里面说:
“Can I update a deployment?
    Deployments are immutable. To update, upload a new deployment and link it to your domain.“
这个link的概念很有创意。访问https://github.com/brightmann/igi-source-code/tree/main/src/blog ,我在此新建了一个源帖2026-08-26-advice.qd 。然后在windows的git-bash程序窗口里:
cd ~/igi-source-code-by-brightmann
git pull
(就把仓库igi-source-code的内容更新到了本地机器。因为仓库里新建了源帖,这样就相当于把新建的源帖下载到了本地。你当然可以在本地机器直接新建源帖。)
然后build网站:
cd ~/igi-source-code-by-brightmann/src
quarkdown c main.qd
cd ~/igi-source-code-by-brightmann/src/quarkdown-output/Giorgio-Garofalo-iamgio/
可以发现静态网站的根目录更新了,出现了目录2026-08-26-advice/。

然后在https://my.shipstatic.com/deployments,点击upload deployment,页面会跳到
https://my.shipstatic.com/deployments/upload,
(就是'上传所生成的静态网站的根目录'的意思)
在资源管理器中,定位到所生成的静态网站的根目录。然后点击页面里的Upload Deployment,我得到一个新网址:
https://inverted-glow-4tp6kww.shipstatic.com/
然后访问https://my.shipstatic.com/domains,然后访问https://my.shipstatic.com/domains/set,选择shipstatic domain,
然后点击continue,就把域名qd-blog.shipstatic.com绑定到了新的域名inverted-glow-4tp6kww.shipstatic.com上。
qd-blog.shipstatic.com之前显示的内容是https://dreamy-pulse-456nehu.shipstatic.com/的内容,现在显示的内容是https://inverted-glow-4tp6kww.shipstatic.com/的内容。这样
域名qd-blog.shipstatic.com所代表的网站就得到了更新。

相关帖子: https://briteming.blogspot.com/2026/08/windowsquarkdown.html

Monday, 24 August 2026

clink

 

Bash's powerful command line editing in cmd.exe


Overview

Clink combines the native Windows shell cmd.exe with the powerful command line editing features of the GNU Readline library, which provides rich completion, history, and line-editing capabilities. Readline is best known for its use in the Unix shell Bash, the standard shell for many Linux distributions.

For details, refer to the Clink documentation.

Note

Starting Clink injects it into a cmd.exe process, where it intercepts a handful of Windows API functions so that it can replace the prompt and input line editing with its own Readline-powered enhancements.

Download

Downloads are available from the releases page.

See the issues page for known issues or to file new issues.

Feature Highlights

  • Auto-Suggestions; Clink offers suggestions as you type based on history, files, and completions.
  • Completions; Clink can complete words when you press Tab or Ctrl-Space (interactive completion list).
  • Persistent History; Clink stores persistent history between sessions.
  • Scriptable Prompt; You can customize the prompt dynamically with Lua scripts -- like in other shells -- but never before possible in cmd.exe!
  • Colored Input Line; Your input is colored by context sensitive completion scripts.
  • Command Line Editing Improvements; Clink supercharges the command line with new input editing commands and configurable key bindings.
  • Auto-answering of the "Terminate batch job?" prompt.
  • and much more!

Installation

You can install Clink by running the setup EXE file from the releases page.

Or by using winget and running winget install --id chrisant996.Clink -e.

Or by using scoop and running scoop install clink.

Or by downloading the ZIP file from releases page, and extracting the files to a directory of your choosing.

Usage

Once installed, there are several ways to start Clink.

  1. If Clink is configured for autorun, just start cmd.exe and Clink is automatically injected and ready to use.

    The setup EXE has an option "Autorun when cmd.exe starts". If you didn't use the setup EXE, or if you want to enable or disable autorun later, you can run clink autorun install or clink autorun uninstall to change the autorun configuration. Run clink autorun --help for more info.

  2. To manually start, run the Clink shortcut from the Start menu (or the clink.bat located in the install directory).

  3. To establish Clink to an existing cmd.exe process, use clink inject.

    If the Clink install directory isn't in the PATH, then use install_dir\clink in place of clink to run Clink commands. Once Clink is injected into a cmd.exe process, then it automatically sets an alias so that you can simply use clink.

You can use Clink right away without configuring anything:

  • Searchable command history will be saved between sessions.
  • Tab and Ctrl-Space will do match completion two different ways.
  • Press Alt-h to see a list of the current key bindings.
  • Press Alt-Shift-/ followed by another key to see what command is bound to the key.

See Getting Started for information on how to get started with using Clink.

Upgrading from Clink v0.4.9

The new Clink tries to be as backward compatible with Clink v0.4.9 as possible. However, in some cases upgrading may require a little bit of configuration work. More details can be found in the Clink documentation.

Extending Clink

Clink can be extended through its Lua API which allows easy creation of context sensitive match generators, prompt filtering, and more. More details can be found in the Clink documentation.

Building Clink

Clink uses Premake to generate Visual Studio solutions or makefiles for MinGW. Note that Premake >= 5.0.0-beta4 is required.

  1. Cd to your clone of Clink.
  2. Run premake5.exe toolchain (where toolchain is one of Premake's actions - see premake5.exe --help)
  3. Build scripts will be generated in .build\toolchain. For example .build\vs2022\clink.sln.
  4. Call your toolchain of choice (VS, mingw32-make.exe, msbuild.exe, etc). GNU makefiles (Premake's gmake target) have a help target for more info.

Note

Only the VS toolset is supported. If you want to try using MinGW, then make sure to use the msvcrt version because setjmp doesn't link in the URT version of MinGW.

Building Documentation

  1. Make sure npm and python are installed.
  2. Run npm install -g marked@2.0.1 to install the marked markdown library (version 2.0.1).
  3. Run pip install fonttools brotli lxml to install the pyftsubset font optimizer tool and the lxml parser.
  4. Run premake5.exe docs.

Important

Clink documentation uses marked@2.0.1. Newer versions of marked have introduced breaking changes, and I haven't yet rewritten how Clink builds the documentation to accommodate the breaking changes. The security fixes in newer versions aren't relevant since marked is only used at build time with known inputs (the marked library is no longer embedded in the documentation as of commit d5b39ca in Oct 2020).

The python dependencies are needed in order to make a subset of the Caskaydia Cove nerd font (based on Cascadia Code) to display the prompts. This optimization reduces the size (in woff2) from ~1220 kB to ~12 kB allowing it to be bundled with the clink.html file.

from  https://github.com/chrisant996/clink

用Cloudflare Zero Trust 搭建个人专属翻墙节点

 Cloudflare  提供的 Zero Trust 服务(原名 WARP/Cloudflare One)凭借其全球化的网络节点和企业级的安全架构,成为了目前最受推崇的方案之一。今天,我们将手把手教你如何通过几个简单的步骤,利用Cloudflare 的强大功能搭建属于自己的网络加速环境。

 

什么是 Cloudflare Zero Trust?(背后的原理)

在传统的网络中,我们通常靠“防火墙”来保护内部网络,就像给房子装个大门,进了门就是安全的。但这种方式很容易被攻破。

Cloudflare Zero Trust(零信任) 的逻辑不同:它默认不信任任何人和任何设备。

隧道原理(Tunneling):它在你的电脑/手机和 Cloudflare 的全球服务器之间建立一条专属的、加密的“私人隧道”。

身份验证:每次连接时,它都要检查你的身份(比如你的邮箱)。

全球加速:由于 Cloudflare 在全球(包括离中国大陆很近的地区)都有大量高性能服务器,你的请求会通过这些“高速路”传输,从而实现稳定、快速的科学上网。

Cloudflare 是谁?靠谱吗?

身份背景:Cloudflare 是美国上市公司(NYSE: NET),是全球互联网的基础设施提供商之一,。不是那种随时可能跑路的小型加速器。全球约 20% 的网页流量都经过他们的设备。这意味着他们的服务器节点多、抗干扰能力强。Cloudflare对于个人和小团队,他们提供了大量顶级企业才用得起的免费工具,是我们的“网络大善人”。

稳定性:由于它使用的是企业级的网络协议,相比于普通方案,它更难被识别和阻断,连接非常稳定。

隐私保护:它有严格的隐私政策,不会像不知名的“免费 VPN”那样售卖你的上网轨迹。

一句话建议: 如果你追求长期稳定、安全、免费且不介意初期花 10 分钟配置一下,Cloudflare Zero Trust 是目前最顶级的方案。


直接操作

点击官网注册

第一阶段:开启 Zero Trust 之门

分步指南及操作目的详解

第一步:开启零信任控制面板

操作: 登录 Cloudflare,点击左侧菜单的 "Zero Trust",然后点击 "Get Started"。 为什么要这样做? 这是在激活你的“企业级”管理后台。虽然你是个人用户,但通过这个入口,你实际上是在创建一个微型的虚拟私有网络环境。

第二步:设置团队名称 (Team Name)

操作: 输入一个唯一的名称,比如 my-private-net。 为什么要这样做? 这个名字是你隧道的“唯一门牌号”。当你以后在手机或电脑的客户端登录时,你需要输入这个名字来告诉软件:“我要连接到我自己的那个私人隧道里去”。

第三步:选择免费计划并绑定支付方式

操作: 选择 "Free" 计划,并输入信用卡信息。 为什么要这样做?

免费计划:Cloudflare 对 50 人以下的用户免费,对个人来说绰绰有余。

信用卡验证:这是为了防止机器人恶意大量注册。放心,只要你选的是 Free 计划,它不会扣除订阅费(可能会有 0 或 1 美元的预授权验证,随后会退还)。

第四步:设置“谁能进这个大门” (Device Enrollment)

操作: 在 Settings -> WARP Client -> Device enrollment 中点击 Manage,添加一条规则:允许以你自己的邮箱后缀(如 @gmail.com)结尾的人登录。 为什么要这样做? 这是最关键的安全步骤。如果你不设防,任何人知道你的 Team Name 都能蹭你的隧道。设置后,只有你能通过邮箱验证码登录。

第五步:下载并连接客户端

操作: 下载 Cloudflare WARP 客户端。在设置里找到 Account -> Login with Cloudflare Zero Trust,输入你的 Team Name,通过邮箱验证后点击连接。 为什么要这样做? 客户端就像是隧道的入口开关。一旦连接成功,你电脑上所有的流量都会被“打包”送入加密隧道,绕过复杂的干扰,直接通过 Cloudflare 的高速骨干网访问全球互联网。

手机客户端下载地址:

IOS下载】(需要美区或其他支持 Cloudflare的地区账号

安卓下载

总结

通过 Cloudflare Zero Trust,你不仅获得了一个稳定的网络连接工具,更是在设备与互联网之间建立了一道企业级的防火墙。相比于传统的方案,它更加合规、稳定,且得益于 Cloudflare 的 CDN 节点分布,延迟表现也非常出色。

加拿大向中国开门

 

卡尼时代的加拿大,如果只听外交辞令,很容易听糊涂。一方面说美国仍是最重要盟友,一方面强调加拿大必须减少对美国依赖;一方面承认中国存在安全风险,另一方面又重新向中国扩大贸易。

其实不必听那么多。国家真正的选择,不在记者会,在行动

过去一年,加拿大出现了两个同时发生的趋势:对美国,强调自主、增加距离;对中国,则降低部分壁垒、恢复贸易。两条线单独看,都有理由;放在一起看,方向已经相当清楚。

最新的美加贸易谈判尤其如此。双方在最后阶段破裂,美国对约200亿美元加拿大商品加征50%关税,加拿大宣布“dollar for dollar”反制。加拿大认为美国最后提出的条件侵犯其贸易自主,因此宁愿承受经济代价,也不接受。

这当然是加拿大的权利。

加拿大不是美国第五十一个州,卡尼也不是白宫任命的省长。一个主权国家认为过度依赖美国是一种危险,希望扩大欧洲、亚洲市场,完全讲得通

而且事情已经不能简单归结为卡尼个人。加拿大目前相当一部分民意支持政府对美国采取强硬态度。既然加拿大选民愿意尝试这条道路,美国反而应该认真一点:不要再把它当作渥太华一时闹脾气,更不必一厢情愿等待加拿大“恢复正常”。

尊重加拿大,首先就是相信加拿大人知道自己在选择什么。

有趣的是另一边。

加拿大努力降低对美国依赖的同时,却在降低与中国的部分经济壁垒卡尼访华后,加拿大同意每年给予最多4.9万辆中国电动车6.1%的关税待遇大幅松动此前100%的附加关税;作为交换,中国降低加拿大油菜籽等农产品面对的贸易壁垒。

一边减少对美国的依赖,一边向中国重新开门。加拿大完全有权如此

加拿大七成以上货物出口进入美国,两国汽车工业早已连成一片;边境对人员和车辆又高度开放。一个加拿大居民开自己的汽车去纽约、底特律度假,平常得像从广东开车去广西。

这种特殊关系能够存在,并不仅因为两国人民感情好,而是因为双方长期处于一个高度整合、风险标准相近的北美经济与安全空间。

中国电动车恰好说明,当这个前提发生变化,问题会怎样出现。

美国正在限制中国联网汽车进入本国市场,理由不只有产业保护,也包括数据和国家安全。现代汽车装有摄像头、定位系统、通信模块、软件更新系统和大量传感器。美国当然不能证明每一辆中国汽车都会搜集敏感信息,更不能证明北京明天会遥控哪一辆汽车;但国家安全本来就不是等事故发生以后才开始研究。

加拿大却可以作出不同判断。

加拿大说,这是我的市场,我愿意承担这个风险。

完全正确

但如果一辆在安大略合法购买、合法注册的中国电动车,可以按照加拿大车辆原有的便利驶入美国,那么加拿大的政策选择就产生了跨境外部性。

美国也完全可以回答:风险留在加拿大,是你的主权;风险跟着汽车进入美国,就不再只是你的事情。

这不是惩罚加拿大。

更长远的问题甚至不是这4.9万辆汽车。今天是中国的整车出口到加拿大,明天加拿大可能出现维修体系、零部件供应链,后天可能中国汽车企业投资加拿大生产。到了那一步,美国面对的就不再是几辆挂安大略车牌的汽车,而是中国汽车产业能否通过加拿大逐渐接入北美产业体系。

加拿大当然可以认为,这是经济机会。

美国也可以认为,这是安全风险。

加拿大可以说:我有权决定与中国做什么生意,美国无权替我决定

美国完全应该同意。

然后补上一句:美国也有权决定,加拿大商品、资本和车辆以什么条件进入美国。

这两句话并不矛盾。

现在加拿大社会本身相当支持减少对美国的依赖,美国更没有必要苦口婆心把加拿大往回拉。

卡尼的路线如果成功,加拿大找到了更多市场,减少对美国的依赖,又从中国和欧洲获得新的市场机会,那说明加拿大选对了

美国不必替加拿大作决定,更不必替加拿大承担选择的成本。

所以美国尤其不必发脾气。

加拿大人可以买本国货,可以抵制美国商品,可以少去佛罗里达,可以投票支持任何他们喜欢的政府。美国若因为加拿大人不喜欢川普而报复,反而显得小气。

美国真正应该做的,只是把自己的门重新量一次尺寸。

过去门开得特别宽,是因为门外站着一个几乎共享同一套经济、安全和产业规则的加拿大。今天加拿大决定改变自己的道路,美国自然可以重新考虑,这扇门还应该开多宽。

加拿大要减少对美国的依赖,这是加拿大的权利;要向中国开门,也是加拿大的权利

加拿大选自己的路,美国也选自己的。

剛升空就墜毀

 

-韩国的等级制度森严。下属即使发现了机长的错误,也不敢立即大声要求机长纠正错误,这样就耽搁了宝贵的自救时机。所以韩国的班机最好别坐。

Sunday, 23 August 2026

在windows上,如何升级nodejs

 在 Windows 上升级 Node.js 最简单的方法是直接去 Node.js 官网下载最新的 .msi 安装包覆盖安装。

  • 访问 Node.js 官网下载最新的 LTS(长期支持)版 .msi 安装包:
  •    https://nodejs.org/dist/v24.19.0/node-v24.19.0-x64.msi
  • 双击运行安装程序,一路点击 "Next"。
  • 关键点:安装路径要和您电脑上旧版本的安装路径保持一致(通常在 C:\Program Files\nodejs\)。安装程序会自动覆盖旧版本。
  • 打开命令提示符(CMD)输入 node -v 检查版本是否更新成功。