geelaw's recent timeline updates
geelaw's repos on GitHub
PowerShell · 94 watchers
PowerShellThingies
My PowerShell thingies.
TeX · 87 watchers
ahbtr
An “open-thoughts” research — Ad Hoc Broadcast, Trace, and Revoke.
JavaScript · 26 watchers
bio-site
Yet another academic homepage builder.
C# · 17 watchers
PreviewHost
An example `IPreviewHandlerFrame` implementation using WPF.
JavaScript · 15 watchers
SinaWeiboFansRemover
Sina Weibo 粉丝删除器,一个 Microsoft Edge 扩展。
TeX · 12 watchers
laomian
老面 (sourdough, lit. "old dough") is used as the starter for fermenting dough. This repository contains my digital 老面.
C++ · 11 watchers
DisableRoundCorners
A utility to disable round corners of Windows 11 without hacks.
Smalltalk · 11 watchers
Dock-PS
Archived in favour of PowerShellThingies.
C# · 10 watchers
Use-RawPipeline
Archived in favour of PowerShellThingies.
PowerShell · 7 watchers
newsstand
A list of email addresses of newsletter / social update. One can build their own email categoriser with this list.
C# · 6 watchers
AcademicdataBaseChain
Academic dataBase Chain.
TypeScript · 6 watchers
bibtex-ts
General-purpose format-preserving BibTeX parser in TypeScript (JavaScript).
PowerShell · 5 watchers
psguy.me
Archived in favour of PowerShellThingies.
3 watchers
daily-restore-point
Creating a restore point every day is a good habit.
JavaScript · 3 watchers
strcmp.cc
An online line-based file comparator.
C# · 2 watchers
bibtex.net
BibTeX.NET is a .NET library for working with BibTeX files.
C++ · 2 watchers
onenote-object-model
Unofficial documentation of the component object model API of OneNote.
JavaScript · 2 watchers
RemoteShutdown
Remotely shut Windows down in case your Welcome Screen crashes.
JavaScript · 1 watchers
page-archivist.js
固定化保存互联网上的文章的小工具
HTML · 1 watchers
ReproduceLiveTileIssue
PowerShell · 0 watchers
1drv-layout
OneDrive layout and file mover. Built for sorting photos. Born in the removal of On-Demand Sync for OneDrive.
SMT · 0 watchers
cse507-boolector
Forked from https://github.com/Boolector/boolector
Python · 0 watchers
i7h
【i18nglish】自动i18n!
C++ · 0 watchers
mem-layouts-binary-search
Forked from https://github.com/rlunding/alg_eng
0 watchers
PowerShell-HelpFile-Bug
For reporting a bug in PowerShell updatable help files produced on 2025-09-08.
0 watchers
ShiArthur03
C++ · 0 watchers
vecole-redux
Constructs OLE from vector-OLE. See http://eprint.iacr.org/2017/617/20170627:191617
geelaw

geelaw

🏢  UW / 博士生
V2EX member #202505, joined on 2016-11-22 23:09:06 +08:00
Today's activity rank 13322
求指导 .cn 域名的使用方法
站长  •  geelaw  •  Jan 3, 2025  •  Lastly replied by fenglangjuxu
10
Clubhouse 真的很像不久以前我测试过的一个 app
分享发现  •  geelaw  •  Jun 25, 2021  •  Lastly replied by nullcoder
9
C# 泛型、duck typing、高效枚举
C#  •  geelaw  •  Sep 28, 2020  •  Lastly replied by good1uck
1
geelaw's recent replies
Ctrl+Shift+V 是 cooked input 粘贴,特点是程序在输入完一行后才会看到这一行的输入,程序看到了 n 次输入,每次一行,程序决定每行结束后做什么。例子:

PowerShell 里面 Ctrl+Shift+V 粘贴

write-host 1;
write-host 2;<# 此处没有换行 #>

会导致 PowerShell 执行第一行并停在第二行末尾。而 C+S+V 粘贴

&{write-host 1;
write-host 2;}<# 此处没有换行 #>

会导致停在第二行末尾。而粘贴

&{write-host 1;
write-host 2;}
write-host 3;<# 此处没有换行 #>

会导致 1 、2 运行,停在第三行末尾——即使第一行是一次性输入的,PowerShell 也不会执行,因为累积的输入不构成语句。

————

要诊断楼主的问题,可以从观察以下几点入手:文本是用 CR 还是 LF 还是 CR LF 换行?程序采用 raw input 的时候粘贴(通常这类程序会识别 Ctrl+V ),是什么效果?硬回车的位置是否有其他特征,例如字数、累积内容的语义? A 篇手敲进去的时候,是否在 1 、2 行末尾程序会继续等待输入,并在第 3 行末尾开始处理?
@geelaw #10 “滚动纹理” => “滚轮纹理”,滚轮的纹理见此图:

https://www.reddit.com/r/MouseReview/comments/qg80b9/looking_for_a_lightweight_mouse_with_leftright/
我认为正确的方向:

1. 触控拖动内容的时候,手向方向 n 移动导致 -n 方向的内容进入视野。(“拽纸”模型)
2. 触控拖动滚动条、滚动条指示器的时候,手的移动导致滚动位置的移动,向 n 方向移动导致 n 方向的内容进入视野。(“拽指示器”模型)
3. 万向滚轮,滚轮的移动方向是滚动条、滚动条指示器的移动方向。(“转动眼球”模型)
4. 滑动滚轮,滚轮向远离人的方向旋转,则滚动条向 **阅读开始的方向** 移动。(在上下滚动的内容里,同于“拽指示器”模型)

请注意第 4 条的含义:

- 对于纵向滚动内容,向远离自己的方向旋转滚轮时,更上方的内容进入视野;
- 对于横向滚动的内容,远离自己的方向可以代表左或者右,取决于内容是 LTR 还是 RTL 。

目前已知的是 Windows 在 LTR 模式下符合这四条规则,我没有测试过 RTL 。另外 iOS 的触控符合前两条。

至于为什么第 4 个是正确的,实际上你可以发现传统 UI 里面“滚动条指示器”的样式是矩形 + 中间有条纹装饰,见

https://www.reddit.com/r/coolguides/comments/joszyg/evolution_of_a_scroll_bar/

例如 System 7, Mac OS 8, Windows XP/Vista (在 NeXTSTEP 里面则是中间有个点),这里面的“条纹装饰”实际上是滚动纹理的拟物表现,说明滚动条指示器指示的是滚轮的位置。如果把滚轮想象成“平铺”的状态,那么向远离自己的方向滚动,会导致手挪动到更前面,因此应当对应指示器靠上的位置。
5 days ago
Replied to a topic by gokoulee › 问与答 › onIine.com 域名, 适合拿来做什么?
能把 L 的小写误打成 i 的大写我只见过两个地方……

一是百度贴吧数学吧里有些帖子把 ln (自然对数) 写成 In ,这是至少 10 年前看见过的。

二是有人把 lgbt 打成 Igbt ,这是今天在 Twitter 上看见的。
你看到的第二个工具叫做“资源监视器”,“资源管理器”是指 explorer.exe 的窗口 UI 。

资源监视器:
正在使用 = 工作集(进程经常访问的内存,存在于实体内存中,“完全”占用)
已修改 = 脏冷页面(距离上次进程访问已经很久,但自从上次写入页面文件后修改过,因此必须先重新写入才能挪作他用,算“半占用半不占用”实体内存)

任务管理器:
使用中 = 工作集 + 脏冷页面

至于为什么要这么设计,这得问微软,但我的想法是任务管理器是初级工具,资源监视器是高级工具,因此前者没有那么细分。
对 .lnk 的解析错误,其图标和指向的文件没有任何关系,正确的做法是 IShellLink(A/W)::GetIconLocation 。此外 .lnk 当然不一定指向文件,比如上传“控制面板”的快捷方式会提示无法解析绝对路径。有趣的是,即使上传的是“命令提示符”的快捷方式,也会出现无法解析,怀疑可能是不支持环境变量展开。
@Need4more #9 任何以 Win32 为受支持目标的应该都可以,试了一下 mingw-w64 gcc 15.2.0 (Compiler Explorer / Godbolt) 的 SDK 比较旧,把 EVENT_OBJECT_UNCLOAKED 替换为 0x8018 之后是可以的编译成功的。
@loading #6 “不是直角”的原因单纯是 AI 写出来的是乱七八糟的:

- EVENT_OBJECT_SHOW 是 0x8002 ,而 0x8003 是 _HIDE
- EVENT_OBJECT_UNCLOAKED 是 0x8018
- DWMWCP_DONOTROUND 是 1 ,而 3 是 DWMWCP_ROUNDSMALL
- DWMWCP_ROUNDDEFAULT 不存在,正确的名字是 DWMWCP_DEFAULT ,这个数是 0
- 处理所有当前窗口的回调里面过滤莫名其妙,尤其是取消设置的时候,无论窗口是否最小化都应该重设
- if not hooks 语义错误,因为 hooks 是列表,只要安装了一个就会认为成功
- 取消设置的逻辑错误,一般地,没有办法取消,因为每个进程自己也可能调用 DSWA 来控制自己的窗口要怎么圆角
@loading #1 是不会注入其他进程的钩子,而且只监听很少的事件、反应很快,测试没有发现性能问题。

@chutsetien #2 我知道那个方案的存在,但是那个方案需要管理员权限且会修改系统文件,这很可能导致自动更新挂掉,然后你会发现 DWM 起不来可能导致超时后蓝屏等等一系列问题……
Aug 8
Replied to a topic by hez2010 › C# › .NET 11 的 async 性能改进过于逆天
很强,但是看了截图的表格数据之后:是快了 18.6 、11 、6 、2.2 、6.4 倍,或者速度变成原来的……倍,这些数还没大到 -1 可以忽略,表头的 speedup 也是误导性的陈述。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5937 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms · UTC 06:13 · PVG 14:13 · LAX 23:13 · JFK 02:13
♥ Do have faith in what you're doing.