RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / user-240902

deevroman's questions

Martin Hope
deevroman
Asked: 2020-09-18 05:13:22 +0000 UTC

从另一个目录旁加载时 jar 不启动

  • 0
.
└── src
    ├── META-INF
    │   └── MANIFEST.MF
    └── com
        └── company
            └── Main.java

主.java:

package com.company;
  
public class Main {

    public static void main(String[] args) {
            System.out.println("Hello");
    }
}

清单.MF:

Manifest-Version: 1.0
Main-Class: com.company.Main

从 src 文件夹执行

javac com/company/Main.java 
jar -cvfm out.jar META-INF/MANIFEST.MF com/company/*.class
java -jar out.jar 

一切都好

但是如果从上面的级别:

javac src/com/company/Main.java 
jar -cvfm out.jar src/META-INF/MANIFEST.MF src/com/company/*.class
java -jar out.jar 

我得到:

Error: Could not find or load main class com.company.Main
Caused by: java.lang.ClassNotFoundException: com.company.Main

为什么会这样?

java
  • 1 个回答
  • 10 Views
Martin Hope
deevroman
Asked: 2020-09-12 17:32:33 +0000 UTC

使用head输出没有最后一行的文件

  • 3

我正在尝试这样做:

head -n -1 file

但我收到一个错误:

head: illegal line count -- -1

head 似乎支持否定论点。问题是什么?

linux
  • 3 个回答
  • 10 Views
Martin Hope
deevroman
Asked: 2020-05-20 03:15:55 +0000 UTC

Nginx + Let's encrypt 配置错误

  • 0

我用 certbot 生成证书,在 nginx 配置中注册它们

server {
        listen 80 default_server;
        listen [::]:80 default_server;

        server_name NAME

        # SSL configuration
        #
        listen 443 ssl default_server;
        listen [::]:443 ssl default_server;

        ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
        ssl_trusted_certificate /etc/letsencrypt/live/example.com/chain.pem;


        ssl_stapling on;
        ssl_stapling_verify on;
        resolver 127.0.0.1 8.8.8.8;

        root /home/rd/www/web;

        # Add index.php to the list if you are using PHP
        index index.html index.htm index.nginx-debian.html;

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ =404;
        }

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
        #
        #       # With php-fpm (or other unix sockets):
                fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
        #       # With php-cgi (or other tcp sockets):
        #       fastcgi_pass 127.0.0.1:9000;
        }

        location ~ /\.ht {
                deny all;
        }

}

但是当nginx -t我收到

nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/example.com/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/example.com/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

但是,文件(更准确地说,符号链接)是

linux
  • 1 个回答
  • 10 Views
Martin Hope
deevroman
Asked: 2020-02-25 21:47:10 +0000 UTC

发送电报机器人 InlineQueryResultPhoto 的问题

  • 0
[
'type' => "photo",
'id' => $id,
'title' => $title,
'photo_url' => "https://example.com/1.jpg",
'thumb_url' => "https://example.com/1_small.jpg"
]

我发送这样的 InlineQueryResultPhoto。Telegram 说一切正常,但没有向用户显示任何内容。怎么了?

telegram-bot
  • 1 个回答
  • 10 Views
Martin Hope
deevroman
Asked: 2020-12-21 04:31:52 +0000 UTC

如何找出使用特征工具接收到的特征类型

  • 0

在 featuretools 中生成特征之前,您可以指定现有特征的类型(数字、分类等)。是否有可能找出它生成的特征类型?

python
  • 1 个回答
  • 10 Views
Martin Hope
deevroman
Asked: 2020-12-15 16:09:22 +0000 UTC

两个 pandas.DataFrame 是否相等?

  • 1

如何检查两个 pandas.DataFrame 中的数据是否相同?

python
  • 2 个回答
  • 10 Views
Martin Hope
deevroman
Asked: 2020-11-08 05:23:48 +0000 UTC

获取图像的 YCbCr 通道

  • 1

许多关于 JPEG 的文章说,对于编码,RGB 的图像被转换为​​ YCbCr。通常以风景图片为例,在此处输入图像描述如果亮度通道一切都清楚,那么色差就不清楚如何获得它们的图像。我想获得一种简单的方法(最好是在 Python 中)从图片中获取所有三个 YCbCr 通道,以便以颜色显示颜色差异。

python
  • 1 个回答
  • 10 Views
Martin Hope
deevroman
Asked: 2020-10-30 03:08:13 +0000 UTC

将音频文件拆分成块并转换为另一种格式[关闭]

  • 0
关闭。这个问题需要澄清或补充细节。目前不接受回复。

你想改进这个问题吗?通过编辑此帖子添加更多详细信息并澄清问题。

2年前关闭。

改进问题

如何使用 ffmpeg 将音频文件拆分为不超过 20 秒的片段并将其转换为另一种格式?

аудио
  • 1 个回答
  • 10 Views
Martin Hope
deevroman
Asked: 2020-10-05 01:01:48 +0000 UTC

在 Sublime Text 3 中键入片段时的最终光标位置

  • 0

指定最后一个关键点后,光标跳转到代码片段后面的行。是否可以让光标停留在最后一个关键点的位置?

sublime-text
  • 1 个回答
  • 10 Views
Martin Hope
deevroman
Asked: 2020-08-23 18:57:29 +0000 UTC

如何使用 JSON Schema 来检查一个对象是否至少有一个字段?

  • 0

如何使用 JSON Schema 来检查一个对象是否至少有一个字段?过滤掉没有字段的空对象 {'field' : 48}——好的 {}——失败

json
  • 1 个回答
  • 10 Views
Martin Hope
deevroman
Asked: 2020-07-17 06:53:08 +0000 UTC

使用 curl php 为 YandexSpeechKit 部分发送文件

  • 0

如何使用 php 为 YandexSpeechKit 部分上传文件?

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
$new = str_split(file_get_contents(realpath("$file_name")), 1000);
$data = "";
foreach ($new as $now){
         $data .= dechex(strlen($now))."\r\n".$now."\r\n";
}
$data .= "0\r\n\r\n";
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: audio/x-pcm;bit=16;rate=16000', "Transfer-Encoding: chunked"));
curl_setopt($curl, CURLOPT_VERBOSE, true);
$response = curl_exec($curl);

我试图用上面的代码来做,但是没有用。

php
  • 1 个回答
  • 10 Views

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    我看不懂措辞

    • 1 个回答
  • Marko Smith

    请求的模块“del”不提供名为“default”的导出

    • 3 个回答
  • Marko Smith

    "!+tab" 在 HTML 的 vs 代码中不起作用

    • 5 个回答
  • Marko Smith

    我正在尝试解决“猜词”的问题。Python

    • 2 个回答
  • Marko Smith

    可以使用哪些命令将当前指针移动到指定的提交而不更改工作目录中的文件?

    • 1 个回答
  • Marko Smith

    Python解析野莓

    • 1 个回答
  • Marko Smith

    问题:“警告:检查最新版本的 pip 时出错。”

    • 2 个回答
  • Marko Smith

    帮助编写一个用值填充变量的循环。解决这个问题

    • 2 个回答
  • Marko Smith

    尽管依赖数组为空,但在渲染上调用了 2 次 useEffect

    • 2 个回答
  • Marko Smith

    数据不通过 Telegram.WebApp.sendData 发送

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

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

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5