Total Pageviews

Monday, 16 November 2026

畏战!美急找中国!

-美国的军事实力已经衰败了,毫无疑问。

黄仁勋的出轨:中美AI暗战

 

让instinct帮我搭建基于nextjs+notion的静态博客程序notionnext

 我用email id: brightmann@gmail.com+邮箱验证码登录app.notion.com

 我跟instinct的对话截图如下,共7张图。







 
得到的博客地址:https://brightmann.github.io/nn
 
项目地址: 
 https://github.com/notionnext-org/NotionNext
 https://github.com/brightmann/nn
 
这类基于 notion的静态博客程序当然是要到https://app.notion.com/那里去创建源帖:
 
详细教程可参考:
 https://muse.ai/s/how-to-publish-a-post-on-jb-tw6ixlla6u8z/TwpQQ4AnmQvikdnOzqNWu4r9Zpc_oVWMEEz7cXab04o
 
因为在此文 https://briteming.blogspot.com/2026/11/github-pages.html里,说过:
 github pages网站容易遇到'Rate limit exceeded'的问题,所以最好换个平台(比如vercel.com/new)搭建此程序。我用email id briteming@gmail.com + 邮箱验证码登录vercel.com,然后导入项目https://github.com/brightmann/nn,进行部署,得到了博客地址https://nn-blond-three.vercel.app/
 

 
 在https://app.notion.com/那里创建源帖后,博客网站并不会自动更新。还需要去仓库https://github.com/brightmann/nn,修改一下仓库里的代码,一些无关紧要的修改就行,比如修改
 https://github.com/brightmann/nn/blob/main/package.json文件,在此文件的最下面一行-
第161行的下一行回车,保存更改。这样,仓库代码也算发生了变化,就会触发平台auto rebuild the web app. rebuild需要2分钟左右的时间,所以稍等2分钟,博客网站就会更新。
 
 

 

我的 vercel.com的登录账号


1. 用github a/c: brightmann@gmail.com授权登录
2. 用email id: briteming@gmail.com + 邮箱验证码登录
3. 用email id: luckypoem@gmail.com + 邮箱验证码登录

4. 用email id: ymbrite@gmail.com + 邮箱验证码登录

在vercel.com平台,搭建基于nextjs的静态博客程序cns

 首先fork此项目https://github.com/craigbuckler/nextjs-starter,我fork后,得到项目地址:

 github.com/brightmann/cns

登录vercel.com, 然后访问vercel.com/new ,导入项目 github.com/brightmann/cns,

在输入命令的栏里,输入:

npm run build

npm install

然后点击底部的deploy按钮,等待部署完成。 部署完成后,我得到网址https://cns-pyxi-eight.vercel.app/

项目地址:

 https://github.com/craigbuckler/nextjs-starter

  github.com/brightmann/cns

博客地址:

 https://cns-pyxi-eight.vercel.app/

 https://cns-pyxi-eight.vercel.app/articles

访问 https://github.com/brightmann/cns/tree/main/articles ,在此处新建源帖fh.md ,内容为:

---
title: 战马
description: 这是一篇文章
date: 2026-11-15T09:10
tags:
  - misc1
  - misc2
  - misc3
--- 

此处写正文或html code

(详见 https://github.com/brightmann/cns/blob/main/articles/fh.md?plain=1)

新建源帖后,稍等2分钟,博客网站就会更新。

访问https://cns-pyxi-eight.vercel.app/articles,发现没有分页,于是请出muse大神-

me:  can u make https://cns-pyxi-eight.vercel.app/articles support pagination? the repo is https://github.com/brightmann/cns。5 posts a page.

 

Done locally and verified — 5 posts a page, as you said. Page 1 shows 战马, 稀奇古怪的中国经济, then articles 6, 5, 4, with a pager linking to page 2. Page 2 has articles 3, 2, 1 with a Previous link back. The build passes.

To push it, I need a token for the cns repo。 Could you paste a fresh fine-grained PAT for brightmann/cns, Contents permission only? I'll push and verify it live on Vercel.

me: my github pat here...

me:  why the video in https://cns-pyxi-eight.vercel.app/articles/fh cannot be rendered?

 

It was stripped at build time, not a browser or YouTube problem.

Your fh.md has a raw YouTube <iframe>, but the site converts markdown with remark-html, which sanitizes raw HTML by default — and its allowlist doesn't include iframe. I tested the exact pipeline: with the default settings the iframe comes out as empty output, so it never reaches the page. That's why the live page has no video element at all.

Fix is one line in lib/posts-md.js: pass { sanitize: false } to remark-html so raw HTML passes through. I verified it — rebuilt locally and the YouTube iframe is now in the article page, and pagination still works (5 on page 1, 3 on page 2).

It's committed alongside the pagination change, so both go out in the same push once you paste the cns token.

 

Both live and verified:

  • Pagination: /articles shows 5 posts (战马, 稀奇古怪的中国经济, then 6, 5, 4) with the pager, /articles/page/2 has the other 3, /articles/page/1 redirects to /articles, /page/3 is a 404.
  • Video: the YouTube iframe is now on /articles/fh.

You can revoke the cns token now.

me:  here https://github.com/brightmann/cns/blob/main/articles/fh.md?plain=1 , in line 4, whether i modified 'date: 2026-11-15' to be 'date: 2026-11-15T09:10' or 'date: 2026-11-15 09:10' , build will fail. so what to do?

 

It's the date parser, not your format. The site reads the front-matter date with js-yaml, which only recognizes a value as a real date when it has seconds — 2026-11-15 works, but 2026-11-15T09:10 and 2026-11-15 09:10 both come back as plain strings. The code then calls .toUTCString() on that string, which throws, and the build fails.

Fixed in lib/posts-md.js: the date is now coerced to a Date object first, so both of your formats work (with a fallback to the file's time if a value is unparseable). I tested both — the build passes, and the article shows 15 November, 2026. Your fh.md is untouched; the fix is in the code, not your content.

It's committed and ready to push. Can you paste a fresh cns token and I'll push it?

me:  posts on the same day are not ordered as per the publishing time. actually ce is newer than fh,but ce isn;t at the top of the site.

me:  my github pat here...

 

Fixed and live — ce is now on top.

The cause: the listing sorted by the day only (dateYMD), so same-day posts tied and fell in whatever order the files happened to load. The time in the date was ignored entirely. I changed the sort to use the full publishing time, so the time in the front-matter now decides the order.

I also set the times: fh at 09:10 (the value you tried) and ce at 10:00, so ce sorts first. The time only affects ordering — the site still shows just the date. Change either time if you want different actual publish times.

Pushed all three fixes (datetime parsing, sort by time, and the times) and verified live. You can revoke the token now.

---------------------------------------

 嵌入的视频代码不能被渲染的解决办法:

编辑 https://github.com/brightmann/cns/tree/main/lib里的posts-md.js文件(https://github.com/brightmann/cns/blob/main/lib/posts-md.js)。在第41行,把use(remarkhtml)

改为 use(remarkhtml, { sanitize: false })即可。详见:

 https://github.com/brightmann/cns/commit/22c7aace59eef06371c3ae7925b3dcc3145414fd

 

当代大学生正在普遍性的丧失「活人感」

 

「人物」杂志前几天有篇刷屏报道,从大学老师的采访笔录里,分享当代大学生正在普遍性的丧失「活人感」—— 不抬头、不听课、不交流 —— 的趋势,虽然说不上特别意外,但看完之后还是有点震惊的,变化太快了。

– 很难说秩序变得更差了,以前的老师需要面对的是交头接耳这种情况,有时需要停下来维持课堂纪律,但现在的学生表面上甚至更乖了,不讲小话,不闹矛盾,男生跟男生坐一起,女生跟女生坐一起,几乎没有互动;

– 课堂讨论更是做不起来了,一个问题抛下去,有点诚意的,会说「老师,请你再把问题重复一遍」,然后随便应付两句,没有诚意的,直接摆烂「我不知道」,请学生分组汇报、互相评议,学生也都照做,但提问的人念手机,回答的同学也念手机,都是 AI 给的答案;

– 是没人听课,却也没人逃课,老师都很奇怪,甚至会纳闷有些该逃的课怎么都没人逃,有老师形容,上了 6 节课,感觉被冷暴力了一天,「像是面对断了气的瓦斯炉,听着毫无响动的教室,为我们这个职业感到悲哀」啊

– 因为学生的反馈低迷,导致校方「上科技」的心态也急了起来,更主动的用监控摄像头和 AI 视觉识别去抓「三率」—— 抬头率、互动率和前排就座率 —— 用这种量化方式刺激考核,同时也愈加撕裂着本就疏远的师生关系;

– 严格来讲,并非是学生不愿意学习、都去刷手机了,而是听课这件事情「变得不重要了」,尤其是在大三之后,越来越多的学生意识到课堂知识和就业技能是脱节的,拿到绩点和能不能找到好工作根本没有关系,所以就按自己的节奏去刷题了;

– 站在一线老师的角度,生源质量其实是在上升的,但以前那种朝气蓬勃的面貌,反而稀缺了,许多学生一进大学,就已经绷着一根弦,开始规划出路,甚至高考后的暑假就在预习大学教材,虽然学生看起来都在计划、忙碌,接触下来却很少感到有谁真正快乐;

– 高校内部的评价体系也开始失效,排名第一的学生,专业成绩可能前五都进不去,各种加分以及父母安排好的考研 / 考公路线正在批量造就「卷得飞起、同时并不知道自己为什么要卷」的茫然一代;

– 于是,学生正在快速社会化,「变得精明而老练,懂得计算利益得失」,背书的氛围占满了教学楼,「谁搬我椅子,谁挂科」的诅咒纸条也充满着杀伤力,宿舍里的同学也不怎么讲话了,只会在微信群里交接寝室卫生安排,平时都拉着帘子各做各的事情;

– 大家的自我保护意识都很强,异性之间不恋爱、同性之间不深交,每个人都接受了「不是竞争、就是陌路」的同学关系,那种能发展出毕生友谊的传统交际,变成了「老式大学」的传说,年轻学生们偶尔会在网上自嘲,说究竟是谁偷走了我的老式大学生活;

– 大学也在快速教培化,学生和老师的关系趋近于消费者和服务者的关系,每个学期结束互相打分,有自认为开明松弛的老师发现自己的评语是「活少,分高」,心态有些炸裂,觉得苦心提供的自由空间,被简化成了一种性价比;

– 毕业之后不删老师微信的学生更是凤毛麟角,学生为了前途力竭,老师则经历意义感危机,除了论文之外,不再有太多交叠的部分。

以后,不打算在github pages上搭建静态博客程序了,至少不会作为主要的搭建平台

 因为,这2天,访问github pages网站,比如https://brightmann.github.io/nbl,老是显示:

'Rate limit exceeded.

Please wait a few minutes before retrying your request'。要等好几分钟,有时要5-6分钟才能打开网站。

其他选择:

1. vercel.com/new, 这个不错。每注册一个账号,在该账号下,可以搭建200个网站。

2.  render.com, 访问在这平台上搭建的网站,比如https://szhb.onrender.com/, 等待页面显示:

application loading ,要等待1分钟左右,才loading完毕,然后才能显示网站内容。

3. cloudflare.com, 这个使用有点复杂。而且昨天跟muse的对话中,muse说: cloudflare并不支持'修改仓库代码,就触发cloudflare平台auto rebuild the app',所以只好在本地机器(比如windows)的终端里(windows机器上,使用git-bash.exe)手动运行如下命令,把本地机器上生成的静态网站的根目录deploy到cloudflare.com空间:(以部署jb为例)

git clone  https://github.com/brightmann/jb
 
cd jb
 
nvm use 24 (nodejs的版本最低要为20)
 
yarn
 
 NODE_OPTIONS=--max-old-space-size=4096 yarn build
(磁盘的剩余空间要至少4096mb, 即4GB.否则build会遇错)
 
 yarn export
 
 CLOUDFLARE_API_TOKEN=CLOUDFLARE_API_TOKEN的值 CLOUDFLARE_ACCOUNT_ID=我的CLOUDFLARE_ACCOUNT_ID的值 npx wrangler deploy
 
等待部署(即上传)完成。部署(即上传)完成后,就会生成网址https://jb.luckypoem.workers.dev/。以后要更新网站,就运行上面的build, export, deploy命令即可。

4.  https://app.netlify.com/, 有使用额度限制,不太建议使用。

5. gitlab pages. https://briteming.blogspot.com/2026/09/gitlab-pages.html .不知这个服务有没有Rate limit限制。