geelaw 最近的时间轴更新
geelaw's repos on GitHub
PowerShell · 91 人关注
PowerShellThingies
My PowerShell thingies.
TeX · 84 人关注
ahbtr
An “open-thoughts” research — Ad Hoc Broadcast, Trace, and Revoke.
JavaScript · 23 人关注
bio-site
Yet another academic homepage builder.
C# · 15 人关注
PreviewHost
An example `IPreviewHandlerFrame` implementation using WPF.
JavaScript · 12 人关注
SinaWeiboFansRemover
Sina Weibo 粉丝删除器,一个 Microsoft Edge 扩展。
Smalltalk · 11 人关注
Dock-PS
Archived in favour of PowerShellThingies.
TeX · 10 人关注
laomian
老面 (sourdough, lit. "old dough") is used as the starter for fermenting dough. This repository contains my digital 老面.
C# · 10 人关注
Use-RawPipeline
Archived in favour of PowerShellThingies.
PowerShell · 7 人关注
newsstand
A list of email addresses of newsletter / social update. One can build their own email categoriser with this list.
C# · 6 人关注
AcademicdataBaseChain
Academic dataBase Chain.
TypeScript · 6 人关注
bibtex-ts
General-purpose format-preserving BibTeX parser in TypeScript (JavaScript).
PowerShell · 5 人关注
psguy.me
Archived in favour of PowerShellThingies.
JavaScript · 3 人关注
strcmp.cc
An online line-based file comparator.
C# · 2 人关注
bibtex.net
BibTeX.NET is a .NET library for working with BibTeX files.
2 人关注
daily-restore-point
Creating a restore point every day is a good habit.
C++ · 2 人关注
onenote-object-model
Unofficial documentation of the component object model API of OneNote.
JavaScript · 2 人关注
RemoteShutdown
Remotely shut Windows down in case your Welcome Screen crashes.
Shell · 1 人关注
haoel-github-io
Mirror of haoel/haoel.github.io.
HTML · 1 人关注
ReproduceLiveTileIssue
PowerShell · 0 人关注
1drv-layout
OneDrive layout and file mover. Built for sorting photos. Born in the removal of On-Demand Sync for OneDrive.
SMT · 0 人关注
cse507-boolector
Forked from https://github.com/Boolector/boolector
0 人关注
fork-heshijun_v_360
见 saved 分支
Python · 0 人关注
i7h
【i18nglish】自动i18n!
TypeScript · 0 人关注
immersive-translate-backup
Backup of https://github.com/immersive-translate/immersive-translate.
C++ · 0 人关注
mem-layouts-binary-search
Forked from https://github.com/rlunding/alg_eng
Assembly · 0 人关注
microsoft-MD-DOS
Mirror of https://github.com/microsoft/MS-DOS
0 人关注
mirror-clash-verge
A Clash GUI based on tauri. Supports Windows, macOS and Linux.
JavaScript · 0 人关注
page-archivist.js
固定化保存互联网上的文章的小工具
0 人关注
ShiArthur03
geelaw

geelaw

🏢  UW / 博士生
V2EX 第 202505 号会员,加入于 2016-11-22 23:09:06 +08:00
今日活跃度排名 2108
Clubhouse 真的很像不久以前我测试过的一个 app
分享发现  •  geelaw  •  2021-06-25 16:12:06 PM  •  最后回复来自 nullcoder
9
C# 泛型、duck typing、高效枚举
C#  •  geelaw  •  2020-09-28 04:59:01 AM  •  最后回复来自 good1uck
1
HTML 里的“词边界”
分享发现  •  geelaw  •  2020-02-25 05:22:00 AM  •  最后回复来自 geelaw
3
如何自动化“固定到任务栏”
分享创造  •  geelaw  •  2020-02-14 19:00:25 PM  •  最后回复来自 ysc3839
4
谨慎安装 Edge (Chromium) 稳定版
分享发现  •  geelaw  •  2020-02-21 22:00:12 PM  •  最后回复来自 ericguo
13
在 Windows 上轻量地隔离 app:以百度云管家为例
  •  1   
    分享创造  •  geelaw  •  2022-11-23 15:35:11 PM  •  最后回复来自 723X
    26
    刚刚 rm -rf ~ 了
    程序员  •  geelaw  •  2019-12-30 11:19:02 AM  •  最后回复来自 doveyoung
    8
    geelaw 最近回复了
    1 天前
    回复了 bojackhorseman 创建的主题 分享发现 由汉字造词讨论想到
    想要编码新的字并不困难,了解一下 Unicode 表意文字描述字符。

    𤭢 = ⿰卒瓦
    我的建议是 CEO 赶紧使用“拒绝做出可能令自己有罪的供述”之权利拒绝听证( doge
    如果你是说 annual paid monthly 受害者的情况,实操可能是可以的(效果上 Adobe 没有继续收钱并在月末停止了服务,即使年度合同还没到期),但是支付失败不会消灭合同,理论上 Adobe 可以催收。

    简单的做法是和客服谈心。
    >公司就让我帮忙用我的美国信用卡来刷。

    你没有义务借钱给公司。

    >但是我这么做的话,会导致我的 ITIN 掉 credit 。

    不一定会,单纯 dispute 只是会导致商户账户被银行取回资金,不会影响信用报告。当然,dispute 并取回资金这一行为并不会消灭商户和客户之间的债务关系,商户可能会把此债委托给催收公司,并把催收信息提交给信报机构,这是可能会影响信用的——我不确定商户会提交到付款卡主人的信报上还是公司的商务信报(当然,这对于你公司可能就是不存在的)上。

    >我应该怎么做,才能拒绝公司的这一请求,保住信用分,还能拿到报销款而不用自己承担经济和信用分损失?

    你和公司或许从未约定过你有义务配合公司 dispute ,或者你需要为公司提供 dispute 服务,的条款。这个问题到现在可以简单理解为公司要求你代为付款,那么结果当然是公司欠你钱,应该支付。

    如果公司不听劝,建议找律师。
    2 天前
    回复了 a2233 创建的主题 发音 大家是如何读 CLI 的?
    “老外”不止是说英语的……英语读 see-elleye ,法语读 cé-elle-i ,汉语读 cê-êl-yi 。
    @hez2010 #9 现象和规范是两码事,单纯做一个实验就认为 Windows 支持超长变量无异于依赖于 C++ undefined behavior 编程。

    应该注意 Win32 环境变量有两个存在的形式:在注册表里存储的系统/用户级变量、在每个进程里存储的进程级变量。

    考虑下面的每个实验,每个实验开始之前都不存在名字叫做 verylong 的系统、用户、进程级环境变量。

    ————

    实验 1:在 PowerShell 里运行

    [System.Environment]::SetEnvironmentVariable('verylong', '1'*40000, 'User')

    然后通过 explorer 打开一个新的 PowerShell ,并在新的 PowerShell 里运行

    $env:verylong.Length

    在 Windows 10 (build 19045.4651) x64 里得到的结果是 4095 ,这说明 explorer.exe 把 %verylong% 截断为 4095 个字符了。

    ————

    实验 2:在 PowerShell 里运行

    [System.Environment]::SetEnvironmentVariable('verylong', '1'*40000, 'User')
    $cred = Get-Credential
    Start-Process powershell -cred $cred -arg '-Command start powershell'

    输入当前用户的用户名和密码,然后等待新的 PowerShell 启动(注意这里需要两次跳转,似乎有不知名的 bug 导致单纯打开一次 PowerShell 无法输入),在新的 PowerShell 里面运行

    $env:verylong.Length

    得到 40000 ,这说明“什么都不做”似乎是可以自动读取超长环境变量,然而……

    ————

    实验 3:在 PowerShell 里运行

    [System.Environment]::SetEnvironmentVariable('verylong', '1'*40000) # 默认的范围是进程

    会得到

    Exception calling "SetEnvironmentVariable" with "2" argument(s): "Environment
    variable name or value is too long."

    查阅 PowerShell 的源代码,发现这个异常是从 Win32 API SetEnvironmentVariable https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setenvironmentvariable 来的(而不是 PowerShell 自己检查的),文档明确指出超过 32767 个字符是不支持的,实际调用也会返回 FALSE 并用 GetLastError 指示变量过长。

    ————

    实验 2 、3 表明实际上超过 32767 个字符的环境变量是不支持的,因为用于访问之的 Win32 API 拒绝设置超长变量。至于“什么都不做”的时候可以读到超长环境变量,单纯是 Windows 从注册表读取的时候、通过 GetEnvironmentVariable 返回的时候,忘记验证了。

    考虑不变式

    LPCTSTR name = T("verylong");
    TCHAR value[40001];
    DWORD size = 40001;
    DWORD actualSize = GetEnvironmentVariable(name, value, size);
    BOOL couldSet = SetEnvironmentVariable(name, value);

    自然期待单线程环境下 actualSize > 0 && actualSize < size (这表明获取名字是 verylong 的环境变量成功了)蕴涵着 couldSet (这表示可以做无意义且无害的赋值),但这个不变式因为 Windows 的实现很不小心所以不一定成立。

    然后,在做了上面的实验之后,我会认为日常使用的时候应该避免变量内容超过 4095 个字符,因为 Windows 最常见的 shell 即 explorer.exe 不支持超长的变量。
    @hez2010 #6 我对英语的解读和你的不同,原文

    > The maximum size of a user-defined environment variable is 32,767 characters. There is no technical limitation on the size of the environment block. However, there are practical limits depending on the mechanism used to access the block. For example, a batch file cannot set a variable that is longer than the maximum command line length.

    说的是

    1. 一个环境变量不能超过 32767 个字符。
    2. 环境块没有限制。注意每个环境块是多个环境变量赋值的双空结尾字符串,这里说的是可以有任意多个环境变量。
    3. 访问环境块的方法会带来其他限制,
    4. 比如批处理文件不能设置环境变量的值为超过单行最大字符数长度的字符串。这个数是几千。

    待会儿我到电脑附近的时候可以试试。
    @hez2010 #3 然而这和文档说的相反,根据

    https://learn.microsoft.com/en-us/windows/win32/procthread/environment-variables

    环境变量的长度不能超过 32767 个字符。
    @FengMubai #1 那个是去掉一些 API 里面路径长度的限制,和环境变量长度是两码事。

    这个问题比较无解,因为 PATH 是知名变量,如果希望 PATH 里面有所需要的路径,但需要的路径太多,则必然会超过长度限制。所谓回到 PATH 内,是指进程里面的 PATH 变长,还是用户级别的 PATH 变长,还是系统级别的 PATH 变长?第一种解决方法是时不时从一个干净的根进程重启其他进程;第二种、第三种要找出来是谁(哪个进程)在随意修改环境变量。
    代码的书写方向就是代码所用字符的书写方向,如果是 Latin 字母的代码,那就是从左到右。

    在 RTL 环境里插入一段 LTR 文字,LTR 文字本身是从左到右书写的,比如

    .言语的写书左到右从 is a 文伯拉阿

    然而如果 LTR 文字本身需要超过一行,我想应该是每一行都要按 RTL 环境插入 LTR 文字书写,比如

    is written from 文伯拉阿
    .惯习太不会以所 right to left

    最近翻看 Wikipedia 知道的:阿拉伯文本里面书写西阿拉伯数字,是从右到左书写的,但低位在前,所以看起来和中午里的阿拉伯数字是一样的,比如

    .3.1415926 字文语伯拉阿些一有里这装假
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2354 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 10:58 · PVG 18:58 · LAX 03:58 · JFK 06:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.