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-33332

Anthony Kong's questions

Martin Hope
Anthony Kong
Asked: 2020-01-15 23:20:11 +0800 CST

如何将svg结果转换为png?

  • 6

我正在使用这个包来生成序列图

https://github.com/francoislaberge/diagrams

这是一个非常简单的序列图文件:

  Alice->Bob:Hello

我运行了这个命令

 diagrams sequence test.sequence test.svg

该diagrams实用程序会生成一个 svg 文件

在此处输入图像描述

然后我想把它转换成png格式

convert a.svg a.png

但是它会发出此错误消息:

转换:不合格的绘图图元定义`,'@error/draw.c/RenderMVGContent/4430。

它是png文件

在此处输入图像描述

无论如何我可以解决这个问题吗?

这是一些版本信息:

$ convert -version
Version: ImageMagick 7.0.9-16 Q16 x86_64 2020-01-12 https://imagemagick.org
Copyright: © 1999-2020 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(3.1)
Delegates (built-in): bzlib freetype heic jng jp2 jpeg lcms ltdl lzma openexr png tiff webp xml zlib

操作系统是 MacOS Mojave

编辑:

根据@harrymc 的评论,我尝试将 svg 文件添加到问题中。但是,图像托管服务不接受 svg 文件。我将这里的 xml 直接粘贴到 svg 文件中:

<svg height="174" version="1.1" width="176.796875" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="overflow: hidden; position: relative;"><desc style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Created with Raphaël 2.1.4</desc><defs style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path><marker id="raphael-marker-endblock55-obj19" markerHeight="5" markerWidth="5" orient="auto" refX="2.5" refY="2.5" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><use xlink:href="#raphael-marker-block" transform="rotate(180 2.5 2.5) scale(1,1)" stroke-width="1.0000" fill="#000000" stroke="none" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></use></marker></defs><rect x="10" y="20" width="68" height="38" rx="0" ry="0" fill="#ffffff" stroke="#000000" stroke-width="2" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></rect><text x="20" y="39" text-anchor="start" font-family="Andale Mono, monospace" font-size="16px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: &quot;Andale Mono&quot;, monospace; font-size: 16px;"><tspan dy="6" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Alice</tspan></text><rect x="10" y="116" width="68" height="38" rx="0" ry="0" fill="#ffffff" stroke="#000000" stroke-width="2" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></rect><text x="20" y="135" text-anchor="start" font-family="Andale Mono, monospace" font-size="16px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: &quot;Andale Mono&quot;, monospace; font-size: 16px;"><tspan dy="6" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Alice</tspan></text><path fill="none" stroke="#000000" d="M44,58L44,116" stroke-width="2" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path><rect x="98" y="20" width="48.796875" height="38" rx="0" ry="0" fill="#ffffff" stroke="#000000" stroke-width="2" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></rect><text x="107.9921875" y="39" text-anchor="start" font-family="Andale Mono, monospace" font-size="16px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: &quot;Andale Mono&quot;, monospace; font-size: 16px;"><tspan dy="6" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Bob</tspan></text><rect x="98" y="116" width="48.796875" height="38" rx="0" ry="0" fill="#ffffff" stroke="#000000" stroke-width="2" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></rect><text x="107.9921875" y="135" text-anchor="start" font-family="Andale Mono, monospace" font-size="16px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: &quot;Andale Mono&quot;, monospace; font-size: 16px;"><tspan dy="6" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Bob</tspan></text><path fill="none" stroke="#000000" d="M122.3984375,58L122.3984375,116" stroke-width="2" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path><text x="59.19921875" y="83" text-anchor="start" font-family="Andale Mono, monospace" font-size="16px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: &quot;Andale Mono&quot;, monospace; font-size: 16px;"><tspan dy="6" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Hello</tspan></text><path fill="none" stroke="#000000" d="M44,96C44,96,100.13640903495252,96,117.4049332986342,96" stroke-width="2" marker-end="url(#raphael-marker-endblock55-obj19)" stroke-dasharray="none" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path></svg>
png svg
  • 1 个回答
  • 1053 Views
Martin Hope
Anthony Kong
Asked: 2020-01-12 06:57:38 +0800 CST

如何为通过 NetComm NF18ACV 的 2.4 MHz 热点连接的设备分配静态 IP?

  • 5

我想为通过 2.4 MHz Wi-Fi 热点连接的设备的 MAC 地址分配静态 IP 地址。

在此处输入图像描述

当我按“应用/保存”时,我收到以下消息:

DHCP 静态 IP 租用错误

宽带路由器无法添加新的静态 IP 租约,因为 Mac 地址或 IP 地址与之前的规则冲突。
单击“返回”按钮尝试另一个静态 IP 配置。

(手动转录;见图)

这是我的 LAN DHCP 设置:

在此处输入图像描述

我也试过这些:

  1. 使用 IP192.168.20.21
  2. 在地址中使用破折号9F-FF-FF-FF-AB-D9

但他们都给出了上面相同的错误信息。

为什么我收到此错误消息?我该如何解决这个问题?

networking wireless-networking
  • 2 个回答
  • 937 Views
Martin Hope
Anthony Kong
Asked: 2019-06-30 20:56:26 +0800 CST

找不到 windowdefender 来修改我的 Windows 防火墙设置

  • 5

这是我的Win 10 Pro中的网络设置页面

在此处输入图像描述

当我点击“Windows 防火墙”时,我得到:

在此处输入图像描述

但是如果我点击 MS 商店的按钮,我会得到这个:

在此处输入图像描述

商店里没有这样的应用程序。

我现在能做什么?

windows-10 firewall
  • 1 个回答
  • 46 Views
Martin Hope
Anthony Kong
Asked: 2019-06-18 21:19:14 +0800 CST

git 能理解这个 {path1,path2,...} 语法吗?

  • 5

我可以ls -l ../lib/boto/{route53,ec2,beanstalk,mturk}在 Bash 中做,它会产生预期的结果。

但是如果我这样做

$ git rm -r ../lib/boto/{route53,ec2,beanstalk,mturk}

我得到

fatal: pathspec '../lib/boto/ec2' did not match any files

git理解这个路径语法吗?

git bash
  • 1 个回答
  • 25 Views
Martin Hope
Anthony Kong
Asked: 2019-06-07 14:40:39 +0800 CST

标签中的“^{}”是什么意思?

  • 5

当我运行时git ls-remote --tags,我看到一些像这样的输出:

97dd8d7ed4760538f58f5cdeeb32602764545966    refs/tags/3.9.17
fd6fe7a28624ea5a5420f8541279226d66733588    refs/tags/3.9.17^{}
1cb660eb7c5d7c738be52fb4be5daf8427bde37e    refs/tags/3.9.18
a04aa914c37663109773aec75dbf8e89c5048242    refs/tags/3.9.18^{}

上面的输出是什么^{}意思?

git
  • 1 个回答
  • 39 Views
Martin Hope
Anthony Kong
Asked: 2019-05-22 19:34:02 +0800 CST

无法通过 Homebrew 安装特定版本的 VirtualBox:“Brew:找到了一个名为‘[email protected]’的木桶”

  • 7

我想通过以下方式在我的 MacBook Pro 上安装特定版本的 VirtualBox,即 5.2.22brew

这是我从

$ brew install [email protected]
Updating Homebrew...
Error: No available formula with the name "[email protected]"
Found a cask named "[email protected]" instead.

那么在这种情况下我该如何安装这个版本呢?

macos homebrew
  • 3 个回答
  • 4791 Views
Martin Hope
Anthony Kong
Asked: 2019-05-15 17:42:25 +0800 CST

如何停用 OSX 中的 NixOS 组件?

  • 5

我在 OSX 中使用 gcc 时遇到问题。

我想要 XCode 自带的 gcc ( Apple LLVM version 10.0.1 (clang-1001.0.46.4))。然而,在我的 PATH 中,这个 gcc ( gcc (GCC) 7.4.0) 是先例。

$ which gcc
/Users/antkong/.nix-profile/bin/gcc

无论如何我可以关闭/停用这个特定的包吗?我已经检查了文档,但诸如 等主要命令nix-env不nix-store提供任何逃生舱口。

我尝试了以下

$ nix-env -u gcc
warning: name collision in input Nix expressions, skipping '/Users/antkong/.nix-defexpr/channels_root/nixpkgs'

但gcc仍然指向我的 nix 配置文件下的那个。

macos nixos
  • 1 个回答
  • 61 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