创建letsencrypt证书
sudo certbot --nginx -d domain.ml -d www.domain.ml
许多控制台应用程序都有很酷的元素,例如加载栏、可点击按钮等。找到了一个图书馆pyinquirer
,但需要更灵活的东西。里面是怎么安排的?还有其他的吗?不一定在python中
我想导入这个。build.sbt文件的内容
name := "abdesante"
version := "0.1"
scalaVersion := "2.13.3"
libraryDependencies += "com.bot4s" %% "telegram-core" % "4.4.0-RC2"
这是 sbt 的输出:
[info] welcome to sbt 1.3.13 (Oracle Corporation Java 11.0.1)
[info] loading project definition from /Users/islamshaykhiev/Workspace/bots/telegram/abdesante/project
[info] loading settings for project abdesante from build.sbt ...
[info] set current project to abdesante (in build file:/Users/islamshaykhiev/Workspace/bots/telegram/abdesante/)
[info] sbt server started at local:///Users/islamshaykhiev/.sbt/1.0/server/4bd9919fadde7fbdbd5e/sock
sbt:abdesante>
[info] Defining Global / sbtStructureOptions, Global / sbtStructureOutputFile and 1 others.
[info] The new values will be used by cleanKeepGlobs
[info] Run `last` for details.
[info] Reapplying settings...
[info] set current project to abdesante (in build file:/Users/islamshaykhiev/Workspace/bots/telegram/abdesante/)
[info] Applying State transformations org.jetbrains.sbt.CreateTasks from /Users/islamshaykhiev/Library/Application Support/JetBrains/IntelliJIdea2020.2/plugins/Scala/repo/org.jetbrains/sbt-structure-extractor/scala_2.12/sbt_1.0/2018.2.1+4-88400d3f/jars/sbt-structure-extractor.jar
[info] Reapplying settings...
[info] set current project to abdesante (in build file:/Users/islamshaykhiev/Workspace/bots/telegram/abdesante/)
[warn]
[warn] Note: Unresolved dependencies path:
[error] stack trace is suppressed; run 'last update' for the full output
[error] stack trace is suppressed; run 'last ssExtractDependencies' for the full output
[error] (update) sbt.librarymanagement.ResolveException: Error downloading com.bot4s:telegram-core_2.13:4.4.0-RC2
[error] Not found
[error] Not found
[error] not found: /Users/islamshaykhiev/.ivy2/local/com.bot4s/telegram-core_2.13/4.4.0-RC2/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/bot4s/telegram-core_2.13/4.4.0-RC2/telegram-core_2.13-4.4.0-RC2.pom
[error] (ssExtractDependencies) sbt.librarymanagement.ResolveException: Error downloading com.bot4s:telegram-core_2.13:4.4.0-RC2
[error] Not found
[error] Not found
[error] not found: /Users/islamshaykhiev/.ivy2/local/com.bot4s/telegram-core_2.13/4.4.0-RC2/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/bot4s/telegram-core_2.13/4.4.0-RC2/telegram-core_2.13-4.4.0-RC2.pom
[error] Total time: 1 s, completed 26 авг. 2020 г., 23:07:47
[info] shutting down sbt server
我究竟做错了什么?除了写台词libaryDependencies
,什么都没做。这可能是因为它是 2.12 的,但它的成本是 2.13?
如果Camera进入了物体,那么就需要让物体透明,这个怎么实现呢?
执行命令
execution = subprocess.run(to_run, input=test, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
encoding="utf-8", timeout=timelimit)
按照这个顺序
['g++', '/Users/islamshaykhiev/Downloads/main.cpp', '-o', '3solve.out']
['chmod', '+x', '3solve.out']
['./', '3solve.out']
最后一个命令期间发生错误
PermissionError: [Errno 13] Permission denied: './'
问题是什么?
main.cpp 代码本身
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define all(v) v.begin(), v.end()
#define trace(x) cout << #x "=" << x << endl
#define int128 __int128
#define int long long
const int mod = 1e9 + 7;
const int maxn = 5e5 + 10;
signed main() {
cin.tie();
ios_base::sync_with_stdio(false);
int x1, y1, r1, d1, x2, y2, r2, d2;
cin >> x1 >> y1 >> r1 >> d1 >> x2 >> y2 >> r2 >> d2;
double dist = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)) - r1 - r2;
cout << dist / (d1 + d2) << "\n";
}
每次更改选定的小部件时,我都QListWidget
需要更改其他小部件。
怎么做?
我有一个 C++ 程序,它提出问题并需要回答。如何响应来自 bash 脚本的请求?该程序从标准输入读取并输出到标准输出。问题的本质是程序看到请求以及如何去做。答案取决于问题,您需要立即回答。我知道如何生成响应。问题是如何将它们提供给程序。
#define trace(x) cout << "x=" << x;
我想打电话
int a = 5;
trace(a)
结论是a=5
。如何实施?
如何在 Tkinter 中设置整个窗口的背景图像?使所有按钮都在顶部
我想在heroku上创建一个数据库,但是如何使用python连接到它?
我有一个比较两个文件的脚本。
#!/bin/bash
for ((t = 1; t <= $1; t++))
do
./test
./correct
./main
diff output1 output2
echo $t
done
我怎样才能做到这一点,如果文件有差异,那么脚本就会结束?
我有一个 Java/Kotlin 代码,它从 String[] args 获取参数,我需要让它从控制台中的任何地方运行,并且不需要 Java 命令。这样我就可以写下名称,然后列出参数。我该怎么做?