我在我的项目中使用goczmq,如下所示:
main.go:
package main
import (
_ "github.com/zeromq/goczmq"
)
func main() {
}
Run Code Online (Sandbox Code Playgroud)
而且,我使用 golang 1.12 和 gomod 来管理我的项目。
看接下来,我使用go mod init xxx,并且在构建时,它会自动为我下载 goczmq 并将依赖项添加到go.mod,但其中有incompatible。(但对于其他图书馆,我可能会得到类似的东西github.com/kolo/xmlrpc v0.0.0-20190717152603-07c4ee3fd181)
go.mod:
module pigeon
go 1.12
require (
github.com/zeromq/goczmq v4.1.0+incompatible
)
Run Code Online (Sandbox Code Playgroud)
从一些讨论(对于其他图书馆),例如this,图书馆所有者似乎应该做些什么来支持 golang 1.12?但在我的情况下,一切正常,只是incompatible让我有点担心(我的意思是现在一切都很好,但是有一天当我使用我以前从未使用过的 api 时,那里会有隐藏的炸弹......?)
所以我的问题:
我应该担心这个,还是正如预期的那样?
我需要什么:
我想按某个索引滚动列表,我该怎么做。
我知道的:
scrollToIndex 应该从 n 索引开始,但是我们如何滚动到任何索引?
我有一个全新的Python 3.6 + Selenium安装,现在想安装Clarifai 2.0.21.
以下命令失败:
python -m pip install clarifai==2.0.21
Run Code Online (Sandbox Code Playgroud)
起初它要求VC++ 14.0,但我有14.1(VS2017),所以我安装了VC++ 2015 BuildTools,它有14.0.这部分工作直到创建库.
我接下来得到了新的错误:
生成代码
完成生成代码
LINK:致命错误LNK1158:无法运行'rc.exe'错误:命令'C:\ Program Files(x86)\ Microsoft Visual Studio 14.0\VC\BIN\link.exe'失败,退出状态为1158
不知道我的装置中是否缺少某些东西?谢谢
我想用来vscode.window.showInformationMessage显示一些消息。但我不能在其中换行。
我想要的是:
title:xxx
description:xxx
Run Code Online (Sandbox Code Playgroud)
我实际得到:
title:xxx description:xxx
Run Code Online (Sandbox Code Playgroud)
我的代码:
vscode.window.showInformationMessage("title:xxx\ndescription:xxx");
Run Code Online (Sandbox Code Playgroud)

我在 Macbook 上按照本教程构建示例 Docker 映像,但是当我尝试运行以下命令时:
docker build -t getting-started .
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
[+] Building 3.2s (15/24)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.05kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 34B 0.0s
=> [internal] load metadata for docker.io/library/nginx:alpine 2.7s
=> [internal] load metadata for docker.io/library/python:alpine 2.7s
=> [internal] load metadata for docker.io/library/node:12-alpine 2.7s
=> [internal] load build context 0.0s
=> => transferring context: 7.76kB 0.0s
=> [base 1/4] FROM docker.io/library/python:alpine@sha256:94cfb962c71da780c5f3d34c6e9d1e01702b8be1edd2d450c24aead4774aeefc …Run Code Online (Sandbox Code Playgroud) 我想将我的默认 git 编辑器配置为 Visual Studio Code,但在配置后出现以下错误,然后使用它:
username ~ $ git config --global core.editor "code --wait"
username ~ $ git config --global -e
hint: Waiting for your editor to close the file... code --wait: code: command not found
error: There was a problem with the editor 'code --wait'.
Run Code Online (Sandbox Code Playgroud)
我不知道如何解决它...你知道我该怎么做吗?
谢谢!!
我正在尝试通过以下方式启动服务器docker-compose up
我收到错误:
\n\n2002,“无法通过套接字连接到本地 MySQL 服务器\'/run/mysqld/mysqld.sock\' (2)”
\n\ndocker-compose.yml
\n\nversion: \'3\'\n\nservices:\n db:\n image: mysql:5.7\n environment:\n MYSQL_DATABASE: \'slack_bot1\'\n MYSQL_USER: \'root\'\n MYSQL_PASSWORD: \'\'\n MYSQL_ROOT_PASSWORD: \'****\'\n volumes:\n - /opt/slack_bot/mysql_data:/var/lib/mysql\n redis:\n image: "redis:alpine"\n volumes:\n - /opt/slack_bot/redis_data:/var/lib/redis\n web:\n build: .\n command: python manage.py runserver 0.0.0.0:8001\n ports:\n - "8001:8001"\n depends_on:\n - db\nRun Code Online (Sandbox Code Playgroud)\n\nDockerfile
\n\nFROM python:3.7-alpine\nENV PYTHONUNBUFFERED 1\nWORKDIR /home/slack_bot\nADD requirements.txt /home/slack_bot/\nRUN set -e; \\\n apk add --no-cache --virtual .build-deps \\\n gcc \\\n libc-dev \\\n linux-headers \\\n mariadb-dev \\\n python3-dev \\\n ;\nRUN …Run Code Online (Sandbox Code Playgroud) 使用docker run -idt -v /dev:/dev --privileged --name delete ubuntu:18.04 /bin/bash新的容器,并在容器使用apt-get install -y udev安装的udev。
当启动 udev 时,它报告下一个:
root@0947408dab9b:~# service udev start
* udev does not support containers, not started
Run Code Online (Sandbox Code Playgroud)
然后,我更改了 init 脚本/etc/init.d/udev,评论了接下来的两部分:
1) Comments next:
#if ! ps --no-headers --format args ax | egrep -q '^\['; then
# log_warning_msg "udev does not support containers, not started"
# exit 0
#fi
2) Comments next:
#if [ ! -w /sys ]; then
# log_warning_msg "udev does not …Run Code Online (Sandbox Code Playgroud) 我正在使用下载管理器从互联网下载文件。下载已在Android 6、8.1中成功完成,但在Android 9.0中未成功完成
DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));
request.setDescription("Downloading...");
request.setTitle(nameOfFile);
request.setMimeType("application/pdf");
request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS + "/CPG", nameOfFile);
request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
manager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);
queueId = manager.enqueue(request);
Run Code Online (Sandbox Code Playgroud) 我通过运行测试用例得到以下错误:
测试运行完成后,Jest 一秒钟都没有退出。这通常意味着测试中存在未停止的异步操作。考虑运行 Jest
--detectOpenHandles以解决此问题。
--ForceExit我用以及运行了测试用例--detectOpenHandles。但我没有解决这个错误。
docker ×3
python ×3
android ×1
clarifai ×1
command-line ×1
dart ×1
django ×1
flutter ×1
git ×1
go ×1
go-modules ×1
jestjs ×1
macos ×1
mysql ×1
react-native ×1
reactjs ×1
udev ×1
visual-c++ ×1