AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-984414

Lance's questions

Martin Hope
Lance
Asked: 2024-02-05 18:03:23 +0800 CST

为什么这个 PNG 在 imagemagick 中转换为黑色 JPG?

  • 5

我发誓这张图片已正确转换为带有黑色线条艺术的白色背景 JPG。这是原始 PNG(以防 SE 在您上传时更改它)。它看起来是这样的:

但这是我在执行此操作时看到的 JPG convert fire.png fire.jpg:

再次,我在某个时候成功地将这个透明 PNG 转换为白色背景 JPG,使用这个精确的 PNG 输入图像。但现在不行了。我能想到的唯一改变是我将其保存在 GitHub 分支中,创建了一个新的 GitHub 分支,将文件移动到新文件夹中,提交并合并回主分支。那么也许 Git 中的二进制图像以某种奇怪的方式发生变化?

另一件事是,它是否与图像所在的文件夹或它们所在的文件路径有关?

convert ../external-directory/fire.png ./local-directory/fire.jpg
convert /absolute/path/fire.png ./local-directory/fire.jpg
convert "/absolute/path/fire.png" "./local-directory/fire.jpg"

我在不同的文件路径中尝试了几个带/不带引号的组合,但没有任何变化。

知道出了什么问题以及如何解决吗?也许我失去了理智,因为图像是透明的,这就是造成问题的原因。但我发誓这之前已经成功转换了。

我使用的是装有 ImageMagick 7.1.1-27 的 Mac M3。

imagemagick
  • 2 个回答
  • 39 Views
Martin Hope
Lance
Asked: 2023-06-06 12:15:24 +0800 CST

有几个网站重启本地路由器也进不去?

  • 5

我无法在我的计算机上访问网站https://expo.dev(最近还有另一个网站,每个人都在 StackOverflow 上使用短 URL 链接到 TypeScript 游乐场)。

在此处输入图像描述

我刚刚重新启动了我的路由器。我该如何调试为什么它对我不起作用?据我所知,我没有任何特殊设置,比如防火墙或类似的东西。我只有默认的 AT&T 互联网。

我还尝试从我的 iPhone 连接为个人热点(当未连接到手机上的 wifi 时),但该网站仍然无法正常工作。

嗯,我在 Chrome 设置中取消选择了“使用您当前的服务提供商”(我从未更改过任何 Chrome 设置)并选择了“自定义”,现在可以使用了,这是安全/正确的方法吗?

在此处输入图像描述

networking
  • 1 个回答
  • 22 Views
Martin Hope
Lance
Asked: 2022-09-22 17:49:39 +0800 CST

iTerm2 在安装多年后突然开始要求我重新安装 git?

  • 8

突然之间,我的 Macbook Air(OS 12.5.1 Monterey)刚开始git在我输入git status终端(iTerm2)时要求我安装......

如果我说“不,我不想安装 git”,则会出现以下错误消息:

$ git status
2022-09-21 18:44:57.936 xcodebuild[827:8036] [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-21 18:44:58.157 xcodebuild[827:8036] [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: 0x600000c70460>
Method:   -loadAssertingOnError:error:
Thread:   <_NSMainThread: 0x600002824140>{number = 1, name = main}
Hints:

Backtrace:
  0  0x000000010c315f81
  1  0x000000010c3154b5
  2  0x000000010c3156c1
  3  0x000000010c18c3ba
  4  0x000000010c147c73
  5  0x000000010c145a1f
  6  0x00007ff81e2a0317
  7  0x00007ff81e2ad7ee
  8  0x000000010c3645a1
  9  0x000000010c33a0d8
10  0x000000010c1458a3
11  0x000000010c145af5
12  0x000000010d22af66
13  0x000000010d22a526
14  0x000000010d229919
15  0x000000010abb29a4
16  0x000000010a93520a
sh: line 1:   848 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.

PS,我刚刚说“是”安装git,大约花了30分钟,现在它要求重新安装它!我只是重新启动计算机以防万一,但如果我说不,它仍然会抛出相同的消息和错误。

下面是两张截图:

在此处输入图像描述 在此处输入图像描述

为什么这突然随机开始发生,以及如何解决它的任何想法?我已经有一段时间没有下载任何东西了,而且我很确定操作系统今天没有自动更新。也许 iTerm2 更新了或其他什么...不,我尝试git status在实用程序 > 终端应用程序中运行,同样的处理...

澄清一下,我已经在我的 Macbook Air 上git status工作了多年,而且我最近没有改变任何东西。所以奇怪的事情正在发生。我的硬盘上还有 85GB 的空间,所以我不认为这不是空间问题......

macos terminal
  • 1 个回答
  • 469 Views
Martin Hope
Lance
Asked: 2021-08-31 23:52:26 +0800 CST

如何通过终端连接到 Synology NAS

  • 5

我发现我用于 NAS 的外置硬盘不受支持,所以我得到了一个受支持的硬盘,它可以工作!

现在我在这里:

在此处输入图像描述

我如何才能开始将其他硬盘驱动器中的数据上传cd /Volumes/MyNAS到NAS,并开始使用数据?什么是正确的工作流程和配置?ssh MyNAS/Volumes/MyPassport 1

我尝试ssh <ip>使用我刚刚在设置期间定义的密码访问浏览器窗口中显示的 IP 地址,但它显示权限被拒绝。(如果重要的话,我将密码粘贴到 SSH 中,而不是输入)。

在此处输入图像描述

我在哪里可以找到我应该 ssh 进入的 IP?或者有没有办法直接CD进去?我要启用 FTP SSH 或 rsync 或类似的东西吗?

目标是像在笔记本电脑上一样使用文件:我想流式传输一些当前压缩的 JSON 来解析它(wikidump,90+GB)。

ssh hard-drive
  • 1 个回答
  • 261 Views
Martin Hope
Lance
Asked: 2021-08-24 10:11:57 +0800 CST

使用 Synology 安装 DiskStation Manager (DSM) 时出错,转发端口 23

  • 5

尝试在本地网络上安装新的 Synology DS920+ 时出现此错误:

安装过程中发生错误。Synology NAS 的 telnet 服务已开启以进行错误判断。请配置您的路由器以将端口 23 转发到 Synology NAS,然后联系 Synology 在线支持。

如何配置我的 (AT&T) 路由器以允许将端口 23 转发到 Synology NAS?除了设法通过它上网外,我对如何使用路由器一无所知,所以要温柔。

还有一个选项可以手动安装 DS920+ 软件,也许我可以这样做。

在此处输入图像描述

networking wireless-networking
  • 1 个回答
  • 437 Views
Martin Hope
Lance
Asked: 2021-03-20 18:13:19 +0800 CST

如何在 Chrome 中搜索确切的 Unicode 字符?

  • 7

我正在寻找一种模式,例如aṣṭi,但谷歌浏览器会找到所有模式,asti包括那些没有变音符号的模式。如何让Cmd+F只找到完全匹配?

在此处输入图像描述

google-chrome search
  • 1 个回答
  • 347 Views
Martin Hope
Lance
Asked: 2021-02-15 10:27:07 +0800 CST

我从 Pubchem 下载了大型 gzip 压缩的 xml 文件,但我的电脑显示它们已损坏

  • 8

我已经尝试过两次从PubChem FTP 服务器下载大型 gzipped xml 文件,一次通过 wget,一次通过 chrome,但两次都导致文件损坏。例如,第一个和它的 MD5 哈希文件在这里:

Compound_000000001_000500000.xml.gz
Compound_000000001_000500000.xml.gz.md5 

打开 MD5 文件,我看到:

be9a076090e9b263611c1fc7acf139a6  Compound_000000001_000500000.xml.gz

但是在 xml.gz 文件上运行命令我看到了这个:

$ md5 Compound_000000001_000500000.xml.gz
MD5 (Compound_000000001_000500000.xml.gz) = 6eb5713212c085a1af89b0e31f09f9b9
$  gunzip -tv Compound_000000001_000500000.xml.gz
gunzip: data stream error
gunzip: Compound_000000001_000500000.xml.gz: uncompress failed
Compound_000000001_000500000.xml.gz:  NOT OK

所以MD5哈希似乎不匹配......

如果我尝试使用内置的 Mac 功能/应用程序解压缩文件,它会显示错误,它已损坏。我在下载过程中没有错误。

怎么了?我联系了 PubChem 的某个人,他说他们很好,并且 MD5 检测正确。是否有一些我不知道的浏览器设置或阻碍了路由器设置?如何解决此问题,以免文件损坏?

我可以通过 gunzipper 使用 Node.js 流式传输 gzipped 文件,并且我看到了 XML,因此它至少部分正确。但它也会在解析文件时引发 10 秒左右的错误。

会不会有什么奇怪的事情发生?

google-chrome ftp
  • 1 个回答
  • 357 Views
Martin Hope
Lance
Asked: 2020-12-25 05:13:13 +0800 CST

如何在ffmpeg中连接mp3文件而没有任何间隙?

  • 5

我正在尝试使用 ffmpeg 连接 mp3 文件,但运气不佳。我有 100 个非常短的 0.05-2 秒 mp3 样本(发音字母),我想将它们合并到一个文件中,然后我可以跳转到特定位置以播放特定声音,而不是为每个样本设置单独的文件。当我按照这些说明进行连接时,声音之间似乎存在细微的间隙,因为我走得越远,它出现的距离就越远。

例如,我获取了每个单独的 mp3 文件,并使用this计算了它的持续时间。从那里我可以创建偏移量来开始播放,以及偏移量来停止播放,整个单个 mp3 文件中的每个样本。但是当我这样做时,更多的轨道会越来越多,告诉我每个轨道之间都有一个间隙。我怎样才能使这个过程准确?也就是说,我怎样才能毫无间隙地连接 100 首 mp3,这样我就可以准确计算出我应该开始和停止播放的曲目的哪个位置?

作为参考,我尝试了audio-joiner.com,曲目之间的间隙更大。

ffmpeg audio
  • 1 个回答
  • 1179 Views
Martin Hope
Lance
Asked: 2020-07-24 17:28:24 +0800 CST

如何在 Linux 上使用 ffmpeg 向视频添加音频?

  • 5

我可以在 Mac 和 Windows 上很好地执行此操作,但在 Linux 上似乎出现错误:

Command Failed: ffmpeg -y -loglevel warning -hide_banner -nostats -strict -2 -i "/home/runner/work/stone/stone/build/mount.quiet.mp4" -i "/home/runner/work/stone/stone/build/crow.wav" -shortest -c:v copy -c:a aac "/home/runner/work/stone/stone/build/mount.crow.mp4"
Guessed Channel Layout for  Input Stream #1.0 : stereo
[aac @ 0xdfa9a0] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.

我应该使用什么编码器来让它工作?

linux audio
  • 1 个回答
  • 50 Views
Martin Hope
Lance
Asked: 2020-07-24 16:24:16 +0800 CST

如何在 GitHub Actions/CI 上使用 Chocolately 获取 ImageMagick 的安装路径?

  • 8

所以我有这个错误:Getting "Invalid Parameter - -fuzz" on ImageMagick convert command on Windows 10,因为 ImageMagick 在 Windows 上的路径中不正确。

现在的问题是,我如何以编程方式获取已安装的可执行路径以便可以直接运行它?事实证明,chocolatey 需要PAID SUBSCRIPTION才能启用此功能,la脚。那么我还能如何做到这一点呢?

我正在使用 GitHub CI / Actions 执行此操作,因此我无法直观地查看和配置它,需要完全以编程方式找到和使用它。我怎样才能做到这一点?

windows binary-files
  • 2 个回答
  • 484 Views
Martin Hope
Lance
Asked: 2020-07-24 14:41:02 +0800 CST

在 Windows 10 上的 ImageMagick 转换命令上获取“无效参数 - -fuzz”

  • 5

在最新版本的 Windows 上获取此信息(通过 GitHub Actions):

Command failed: convert.exe "D:\a\stone\stone\build\image.jpg" -fuzz 20% -fill ""#111111"" opaque ""#cc9aff"" "D:\a\stone\stone\build\image.new.jpg"
Invalid Parameter - -fuzz

什么是交易?我尝试使用convert而不是,convert.exe但这是同样的问题。我用choco install imagemagick. 日志的结尾如下所示:

Download of ImageMagick-7.0.10-19-Q16-x64-dll.exe (32.51 MB) completed.
Hashes match.
Installing imagemagick.app...
imagemagick.app has been installed.
  imagemagick.app can be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
 The install of imagemagick.app was successful.
  Software installed to 'C:\Program Files\ImageMagick-7.0.10-Q16\'

imagemagick v7.0.10.19 [Approved]
imagemagick package files install completed. Performing other installation steps.
 The install of imagemagick was successful.
  Software install location not explicitly set, could be in package or
  default install location if installer.

Chocolatey installed 3/3 packages. 
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

任何想法如何让这个工作?

windows imagemagick
  • 2 个回答
  • 636 Views
Martin Hope
Lance
Asked: 2019-07-14 16:46:57 +0800 CST

如何自动将密码加载到浏览器/MacOS/iOS 钥匙串中

  • 6

我正在尝试找出共享家庭密码的方案(例如 Amazon、Netflix 等)。基本上,我们都可以使用的每项服务都有 1 个密码。但是,为了最大限度地提高安全性,我正在考虑做一些ejson 事情(那里还有更多东西要学)。基本上,可以共享加密的 JSON 文件中的一堆密码。

然后有人下载了 JSON 文件,用他们在 Mac 上的计算机对其进行解密。我知道怎么做那么多。我不知道您如何在 iPhone 上安全地执行此操作。这是问题的一部分。

我想象的是这样的。您解密 ejson 密码。然后,您可以通过命令行(或某些 Swift 库)以某种方式将它们加载到您的 Mac钥匙串中。同样,您将 iPhone 插入 Mac,并且可以以某种方式将钥匙串信息注入 iPhone。现在很简单,当你访问 Netflix 时,浏览器(iOS Safari 或 Chrome)会提示你输入该服务的预先存在的密码,然后你甚至不必记住密码,也不必使用像 LastPass 这样的密码管理器。通过将解密的 ejson 文件加载到钥匙串中,您可以免费获得其他所有内容。

注意:我不想使用像 LastPass 或其他任何密码管理器。

我想知道的是 (a)这样的事情是否有可能,以及 (b) 大致是我需要解决的问题才能使它正常工作。我不需要关于如何让它工作的分步说明,也不需要命令行上的命令(尽管这将是一个有用的开始)。我基本上只需要知道如何在这种系统中共享密码的一般方法,并让浏览器自动填充它们,而不需要任何人在 Netflix 等中输入任何密码。

mac security
  • 1 个回答
  • 221 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve