V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  tsanie  ›  全部回复第 4 页 / 共 18 页
回复总数  357
1  2  3  4  5  6  7  8  9  10 ... 18  
213 天前
回复了 wt0210 创建的主题 NAS 黑裙怎么让电源键失效(防猫)
物理防,我家猫踩灭过 ups ,害我在公司紧张了一上午不知道发生啥事了
213 天前
回复了 hez2010 创建的主题 程序员 WSL2 今天史诗级更新
@worldquant #178 我是 22H2 正式版 22621.2361 ,然后安装了个 23H2 启用包 KB5027397 ,版本号更新为 22631.2361

启用包就 180K ,安装后更新通道还是在正式版,没有加入 insider program

https://z1.ax1x.com/2023/10/10/pPxICtg.png
213 天前
回复了 hez2010 创建的主题 程序员 WSL2 今天史诗级更新
@well775397252 #168 我试了下可以,我在 docker 里跑了个 iperf3 server ,用局域网另外一个设备连接可以跑通,不过 windows 要设置下防火墙,打开 5201 端口。

[ 5] local 10.0.10.100 port 55670 connected to 10.0.10.20 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 283 MBytes 2.37 Gbits/sec 0 3.15 MBytes
[ 5] 1.00-2.00 sec 280 MBytes 2.35 Gbits/sec 0 3.15 MBytes
...


Accepted connection from 10.0.10.100, port 35084
[ 5] local 10.0.10.20 port 5201 connected to 10.0.10.100 port 55670
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 273 MBytes 2.29 Gbits/sec
[ 5] 1.00-2.00 sec 281 MBytes 2.35 Gbits/sec
...

系统版本是 23H2 22631.2361 ,wsl 是 2.0.4.0
213 天前
回复了 wxd21020 创建的主题 NAS 黑群辉 6.2 升级 7.2
7.1 之后 hevc 解码好像需要安装 AME 了,且要漂白,所以我停在了 7.0.1
213 天前
回复了 886133 创建的主题 Linux 执行指令 CHMOD 777 /ETC/SSH -R 不能 SSH 登录
没记错的话 ssh host key 需要限制 600 的权限
215 天前
回复了 kid1412621 创建的主题 Windows 你们的 Windows 除了 gaming 用来干嘛
用来给微软当小白鼠 /doge
225 天前
回复了 cusuanan 创建的主题 Windows Win11 史诗级更新,状态栏窗口不再合并
@JimmyChan1506 可能是我 vivetool /enable /id:44776738 了一下,你下个 vivetool 试试
225 天前
回复了 cusuanan 创建的主题 Windows Win11 史诗级更新,状态栏窗口不再合并
@JimmyChan1506 功能已经内置了,这个正式版还没启用,22631 似乎才有设置,或者另外安装一个启用包。
目前我是用 microsoft-edge:///?ux=copilot&tcp=1&source=taskbar 打开的
225 天前
回复了 MajestySolor 创建的主题 Windows win11 的 copilot 怎么走代理?
@Apol1oBelvedere 我也是这样,不过我是本地账户,是不是只有登录 windows 账户才能使用 copilot 啊……
edge 倒是登录了账户的,区域也设置的是 US
装完系统第一步就是干掉 OneDrive
225 天前
回复了 WhoCanBeRich 创建的主题 C++ 为什么我那么喜欢 C++??
win11 canary 频道前段时间也推了 rust 重写的部分内核
226 天前
回复了 cusuanan 创建的主题 Windows Win11 史诗级更新,状态栏窗口不再合并
然而有个挺大的 bug ,现在这个 bar 的宽度是动态的,资源管理器进入一个很短名字的目录,bar 会缩小,返回到长名字的目录,bar 宽度不变,显示文字被截断了。

https://s2.loli.net/2023/09/27/qbD5GvILEjriZ2Q.png
dart 和 js 的受欢迎程度也不是一个等级的
摆烂、躺平才是王道
233 天前
回复了 fregie 创建的主题 NAS 咨询搭建了 2.5G 家庭网络的一个问题
smb 读写大量碎文件的体验是灾难
不过回到例子中来,op 这里应该把 B 与 Obj.BB 设置为 nullable int
如果必须前端传回 price ,且值可以为 int 或 null 的话就定义成这样,未传入 price 会抛出异常 'JSON deserialization for type 'Test.JsonTest' was missing required properties, including the following: price'

record JsonTest
{
[JsonPropertyName("price")]
public required int? Price { get; set; }
}
而如果允许这个 price 传入 null 的话可以定义为 record JsonTest(int? price);
我说个对比你们就明白 op 的疑问了,.net 中的 System.Text.Json ,碰到这种情况会在反序列化 json 的时候抛出异常 "Cannot get the value of a token type 'Null' as a number."

record JsonTest(int price);

JsonSerializer.Deserialize<JsonTest>("{\"price\":null}");

==============

System.Text.Json.JsonException: 'The JSON value could not be converted to Test.JsonTest. Path: $.price | LineNumber: 0 | BytePositionInLine: 13.'

InvalidOperationException: Cannot get the value of a token type 'Null' as a number.
234 天前
回复了 hez2010 创建的主题 程序员 WSL2 今天史诗级更新
这两个月应该就发 23H2 正式版了,不想再进 insider 了
1  2  3  4  5  6  7  8  9  10 ... 18  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1453 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms · UTC 17:22 · PVG 01:22 · LAX 10:22 · JFK 13:22
Developed with CodeLauncher
♥ Do have faith in what you're doing.