V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ysc3839  ›  全部回复第 342 页 / 共 583 页
回复总数  11658
1 ... 338  339  340  341  342  343  344  345  346  347 ... 583  
2021-01-13 22:03:16 +08:00
回复了 zhoudaiyu 创建的主题 问与答 UNIX 域套接字的主要应用场景是什么?
主要应用场景是跨进程通信
@amiwrong123 那可能是 xml 库不支持?印象中设置成 ascii 编码,就会把非 ascii 字符都转义输出的。
@amiwrong123 你设置了 encoding=utf-8,这个字符能在 utf-8 中表示,所以就不用转义了。
如果一定要转义的话,用 ascii 编码。
2021-01-13 17:33:52 +08:00
回复了 zyb201314 创建的主题 Python open()读取文件问题(假设思考题).
不能,因为 f.read() 就会把整个文件读到内存。
2021-01-13 17:21:48 +08:00
回复了 maogang39 创建的主题 问与答 sha1hash="D12ubp40KnpC//7AVrQR+1sqWuU=" 有这种 hash 吗
@maogang39 只是编码方式不同吧,sha1 的结果是 raw data,你说的是十六进制文本编码。
2021-01-13 17:07:49 +08:00
回复了 maogang39 创建的主题 问与答 sha1hash="D12ubp40KnpC//7AVrQR+1sqWuU=" 有这种 hash 吗
不是写了 sha1 吗?
2021-01-13 10:56:09 +08:00
回复了 AmrtaShiva 创建的主题 Linux Linux 系统如何获取 像 Windows 系统下所谓的机器码?
@AmrtaShiva 随手搜到了一篇文章 https://blog.csdn.net/qq_29542611/article/details/88321102
按照这里面的方法:
1. 猜测对应的是 /sys/class/dmi/id/product_uuid
2. 帮你找到了这个 property 的 description:
The ProcessorId property contains processor-specific information that describes the processor's features. For x86 class CPUs, the field's format depends on the processor's support of the CPUID instruction. If the instruction is supported, the ProcessorId property contains two DWORD-formatted values. The first (offsets 08h-0Bh) is the EAX value returned by a CPUID instruction with input EAX set to 1. The second (offsets 0Ch-0Fh) is the EDX value returned by that instruction. Only the first two bytes of the ProcessorID property are significant (all others are set to 0) and contain (in WORD-format) the contents of the DX register at CPU reset.
3. 猜测对应的是 /sys/class/dmi/id/board_serial
4. https://unix.stackexchange.com/questions/121757/harddisk-serial-number-from-terminal https://unix.stackexchange.com/questions/364456/getting-hard-disk-drive-serial-number-at-the-terminal-not-the-wwn 参考对应工具的源代码
5. 参考 iproute2 的源代码
2021-01-13 10:09:08 +08:00
回复了 lzk50136 创建的主题 Windows 有轻量一点的 win10 吗?现在 8G 的机器 20H2 开机内存占用 2.5G
个人认为瓶颈不在内存。我用过 Surface Pro 3,4GB 内存看网页都不卡,但是运行 VS 就开始卡了,明显是 CPU 瓶颈。
2021-01-13 10:06:03 +08:00
回复了 AmrtaShiva 创建的主题 Linux Linux 系统如何获取 像 Windows 系统下所谓的机器码?
那 Windows 下是如何实现的呢?
2021-01-13 10:04:36 +08:00
回复了 Rainyf 创建的主题 问与答 大家有发现今天 FlashHelperService.exe 突然报毒吗?
@luzemin 中国大陆地区正常安装的 Flash 是有这个的,没有的反而是非正常安装。
你是如何得知函数运行时间的?
2021-01-12 20:45:41 +08:00
回复了 Gr4zy 创建的主题 问与答 Chrome for Android 如何导出收藏夹
@Gr4zy 我估计收藏夹不太可能是 html 格式的,大概率是 SQLite 。
Android 没有“相册”权限……
2021-01-12 19:06:26 +08:00
回复了 otato 创建的主题 Node.js node 的 process.env 有缓存吗?
> 试过 powershell 和 git-bash,里面都有

你是怎么启动这些程序的呢?
2021-01-12 18:46:10 +08:00
回复了 okface 创建的主题 问与答 为啥国外的人开发的项目端口默认也喜欢设置成 8888?
@ysc3839 打错字了,“只是随手按的”
2021-01-12 18:45:43 +08:00
回复了 okface 创建的主题 问与答 为啥国外的人开发的项目端口默认也喜欢设置成 8888?
可能并没有什么意义……只是随身按的。
2021-01-12 18:41:49 +08:00
回复了 veDone 创建的主题 问与答 怎么做个能远程操控的门铃?需要什么软件和硬件吗?
5 楼的话无线估计不太靠谱,至少也得拉条线吧,先考虑一下愿不愿意拉线,不愿意的话还是放弃吧。
2021-01-12 17:32:05 +08:00
回复了 douleL 创建的主题 Java Java 小数转 36 进制
去找一些嵌入式的很简单的 js 引擎,看 toString 的实现吧。
2021-01-12 17:05:41 +08:00
回复了 bypain 创建的主题 问与答 网友称被拼多多 APP 远程删除照片
@kop1989 Android 的动态授权也是一次性授权的,初次运行授权后以后都有效了。更何况很多国产软件是不授权就不给用,对于普通用户来说,你用不用?
这错误信息没什么价值,至少需要一个 memory dump 才能分析。
有能力的话用 x64dbg 等调试器看看吧。
1 ... 338  339  340  341  342  343  344  345  346  347 ... 583  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5647 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 75ms · UTC 01:50 · PVG 09:50 · LAX 17:50 · JFK 20:50
Developed with CodeLauncher
♥ Do have faith in what you're doing.