V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  mingl0280  ›  全部回复第 21 页 / 共 78 页
回复总数  1550
1 ... 17  18  19  20  21  22  23  24  25  26 ... 78  
2022-06-24 00:25:00 +08:00
回复了 Natumsol 创建的主题 硬件 想攒一台新电脑,大伙有推荐的配置单吗?
@jeeyong 我是一开 IOMMU 就死机,开机都开不了,不知道啥毛病。内存带宽卡在几十个 G 的样子,IO 一大就抽风……还是个完整版(不是 QS 或者 ES )的 7501 。
2022-06-22 14:51:02 +08:00
回复了 blankmiss 创建的主题 问与答 我该如何组建一台 Nas(已经有部分硬件了)
@blankmiss 你直接买个盘柜插 R730 上就完事了……
2022-06-22 14:46:40 +08:00
回复了 NipGeihou 创建的主题 程序员 开源项目如何做到不泄露配置文件中的密码信息?
.gitignore:
config.txt
只保存 default_config.txt
2022-06-22 14:45:32 +08:00
回复了 Natumsol 创建的主题 硬件 想攒一台新电脑,大伙有推荐的配置单吗?
给你个建议……显卡无论如何千万别买 AMD ,如果要跑虚拟化千万别买 AMD 的 U ,如果要加 PCIe 设备(例如多个显卡或者要加采集卡 /USB 卡)请直接考虑 HEDT 平台千万别买桌面 U 。
2022-06-22 14:36:06 +08:00
回复了 CCCTS 创建的主题 程序员 要求大家脑洞大开,解决一个关于图像的问题
@CCCTS 贴个玻璃的事情要啥动手能力?你是不是以为这是啥高精尖技术了?
2022-06-22 08:30:43 +08:00
回复了 xxxCasperxxx 创建的主题 NAS 用主 PC 做 NAS 有哪些坏处?
我的 NAS 是拼的服务器,EPYC 7501+WinServer ,容量 80T (其中一半是备份)
2022-06-22 07:55:52 +08:00
回复了 Chaconne 创建的主题 分享发现 无语得 windows10 自带安全软件把 FRP 当作病毒。。。
@mgrddsj Riskware 就是没毒
2022-06-21 23:54:59 +08:00
回复了 CCCTS 创建的主题 程序员 要求大家脑洞大开,解决一个关于图像的问题
最要命的,我特么给摄像头上面上个窄带滤镜,就抓你显示的那个频段的信号就完了。
2022-06-21 23:54:08 +08:00
回复了 CCCTS 创建的主题 程序员 要求大家脑洞大开,解决一个关于图像的问题
没有办法。别想了。
这个讨论区里面所有的“想法”基本上都属于对摄像头不了解的。
1. 摩尔纹可以通过低通滤镜消除
2. 红外可以通过红外滤镜消除
3. 屏闪同理,降低光圈增加曝光时间就完了。
4. 偏光膜人家说眼镜掉了……
5. 最绝的:我特么在 HDMI 输出上挂一个采集卡……声音视频信号都有了,你上哪去找?设备都不在本机了。
2022-06-21 15:26:02 +08:00
回复了 mingl0280 创建的主题 Cloudflare Cloudflare 刚刚这波挂得挺惨的
@sjklong0318 错误报告还没出来,现在不清楚啥原因,就知道除了部分节点,其它地区的 CF 全挂了
2022-06-21 15:23:31 +08:00
回复了 mingl0280 创建的主题 Cloudflare Cloudflare 刚刚这波挂得挺惨的
@limitrinno 大概 UTC 6:34 的样子,Cloudflare 全世界大部分地区访问任何套了 CF 的网站都显示 500 ,包括 V 站和 Steam 都炸了……
2022-06-19 12:11:40 +08:00
回复了 kgdb00 创建的主题 Linux gcc 为什么连这种代码都能编译通过?
@geelaw 我回去重新想了下这里问题出在哪。我之前那个说法应该是错误的。
现在我还有一个比较坑爹的说法。
argc[argv-1] = *((argc) + *((argv) - (1)))
此处 argv 地址为 0x00000000
那么第一次运算的 ptr 指向 0x0-4 = FFFC ,此时 ptr 能否解引用?应该是可以的吧。
第二次运算的 ptr 为 FFFC + argc ,又回来了。(因为 argc 至少为 1 )
*((argc) + argv) 的地址就不会越过 0 ,这个结果就是合法的。
这是另一个想法。
2022-06-19 05:42:01 +08:00
回复了 kgdb00 创建的主题 Linux gcc 为什么连这种代码都能编译通过?
@xfriday 这其实是标准那边应该是想把 a[N] 同等于 N[a]搞出来的交换律,数学上加法和乘法符合交换律,除法和减法不符合交换律,一样的道理。
2022-06-19 05:32:51 +08:00
回复了 kgdb00 创建的主题 Linux gcc 为什么连这种代码都能编译通过?
@geelaw 我节选的段落里面已经非常清楚地表述了求值顺序:先使用 N+(P)(同样地,N-(P)或(P)-N )求得 i+(n-th)或 i-(n-th)个元素,然后判断操作数和结果指针是否越界,如果其中**一个**没有越界,则结果**不**应该溢出;否则,结果未定义。
根据这个手册的内容,首先,P 是 argv ,N 是-1 ,先求得 argv-1 的指针,该指针没有越过 argv 的最后一个项,因此值合法且指向数组最后一项;然后,argc[...]等价于(...)[argc],该顺序下不存在未定义行为,不存在代码错误。
现在你告诉我,18 楼理解哪里正确了?
你截取的部分只能证明你连这段话都没看懂。
2022-06-18 23:46:31 +08:00
回复了 kgdb00 创建的主题 Linux gcc 为什么连这种代码都能编译通过?
@kgdb00 C 标准就这么规定的,不是什么“不符合 C 语言的语法规范”
2022-06-18 23:45:46 +08:00
回复了 kgdb00 创建的主题 Linux gcc 为什么连这种代码都能编译通过?
因为这就是标准定义:
When an expression that has integer type is added to or subtracted from a pointer, the result has the type of the pointer operand. If the pointer operand points to an element of an array object, and the array is large enough, the result points to an element offset from the original element such that the difference of the subscripts of the resulting and original array elements equals the integer expression. In other words, if the expression P points to the i-th element of an array object, the expressions (P)+N (equivalently, N+(P)) and (P)-N (where N has the value n) point to, respectively, the i+n-th and i−n-th elements of the array object, provided they exist. Moreover, if the expression P points to the last element of an array object, the expression (P)+1 points one past the last element of the array object, and if the expression Q points one past the last element of an array object, the expression (Q)-1 points to the last element of the array object. If both the pointer operand and the result point to elements of the same array object, or one past the last element of the array object, the evaluation shall not produce an overflow; otherwise, the behavior is undefined. If the result points one past the last element of the array object, it shall not be used as the operand of a unary * operator that is evaluated.
注意 18 楼的理解是错误的。
2022-06-18 23:42:08 +08:00
回复了 kgdb00 创建的主题 Linux gcc 为什么连这种代码都能编译通过?
@geelaw 你这个理解是错误的,C99 6.5.6 (8):When an expression that has integer type is added to or subtracted from a pointer, the result has the type of the pointer operand. In other words, if the expression P points to
the i-th element of an array object, the expressions (P)+N (equivalently, N+(P)) and (P)-N (where N has the value n) point to, respectively, the i+n-th and i−n-th elements of the array object, provided they exist.
2022-06-18 01:34:33 +08:00
回复了 serafin 创建的主题 NAS NAS 通常多久更换硬盘
第一次换可以短一点,3-4 年;以后差不多就是 5 年。这样可以错开损坏周期……
2022-06-18 01:22:14 +08:00
回复了 bear2000 创建的主题 职场话题 工作时间?
8:00-17:00 ,中午吃饭多久随你,别太过分就行
人在美国,上次最高领导跑来开会也不是一样的吃饭,这有啥尴尬的……
1 ... 17  18  19  20  21  22  23  24  25  26 ... 78  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1153 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms · UTC 18:39 · PVG 02:39 · LAX 11:39 · JFK 14:39
Developed with CodeLauncher
♥ Do have faith in what you're doing.