小编pel*_*gos的帖子

youtube-dl - 错误后继续下载

我正在使用youtube-dl从Lynda下载视频(我有一个帐户).

在列表中的大约第40个视频后,我收到此错误:

错误:无法下载JSON元数据:HTTP错误403:禁止

有没有办法'重新启动'下载,所以我不必再从第一个文件开始?说只是告诉它从文件41或其他什么开始?

这是我用来下载的命令:

./youtube-dl --cookies cookies.txt --username <myusername> --password <mypassword> --sleep-interval 200 -o "%(autonumber)s - %(title)s.%(ext)s” http://www.lynda.com/C-tutorials/C-Essential-Training/188207-2.html
Run Code Online (Sandbox Code Playgroud)

谢谢你的建议

youtube resume youtube-dl

16
推荐指数
4
解决办法
2万
查看次数

Eclipse上的Glassfish 4 - 超时 - java.util.concurrent.TimeoutException

我很难让Glassfish服务器实际启动并继续运行Eclipse(luna)安装.

我让Glassfish在Netbeans中运行良好.

我在Eclipse中创建了服务器,我可以启动它,但进度条大约达到69%然后停止并最终给我一个错误:

无法按时启动服务器.java.util.concurrent.TimeoutException

奇怪的是,当我等待错误出现时,我可以去localhost:8080并且服务器正在运行,我也可以去管理控制台.

我也增加了超时(开始是240秒),但同样的事情发生了.

我在Eclipse中删除并重新创建了服务器.

我已经从其他帖子中建议删除了domain1/osgi-cache中的缓存文件

我已经设置了第二个域(domain2)并尝试连接到该域但得到相同的错误.

任何意见,将不胜感激.

如果这有所不同,我也在OSX 10.9.5上.

编辑 - 添加日志输出

2015-03-26T17:00:58.880+1000|Info: Running GlassFish Version: GlassFish Server Open Source Edition  4.1  (build 13)
2015-03-26T17:00:58.883+1000|Info: Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
2015-03-26T17:00:59.034+1000|Info: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
2015-03-26T17:00:59.145+1000|Info: Authorization Service has successfully initialized.
2015-03-26T17:00:59.200+1000|Info: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
2015-03-26T17:00:59.202+1000|Info: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
2015-03-26T17:00:59.209+1000|Info: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
2015-03-26T17:00:59.541+1000|Info: Grizzly Framework 2.3.15 started …
Run Code Online (Sandbox Code Playgroud)

java eclipse glassfish timeoutexception

8
推荐指数
1
解决办法
1万
查看次数

C++ - 派生类 - 错误:'int'之前的预期主表达式

第一篇帖子对我很温柔......

我正在尝试实现派生类,并且遇到问题,无论我尝试编译错误.我确信这是一个简单的我错过了,但我很新,我的所有研究都没有给我任何帮助(或者我错过了它因为我不知道我在做什么!).

这是我的头文件:

#ifndef WEEKDAY_H 
#define WEEKDAY_H 

#include <iostream>
#include <string>
#include <ctime>

using namespace std;

    class DateTime{
        public:
            DateTime(int y, int m, int d, int h = 0, int min = 0, int s = 0);
            void display();
        protected:
            string get_string_component(char option, tm* dateStruct);
            int get_year_days(tm* dateStruct);
            struct tm DTstruct;
        private:
            bool validate_data( int y, int m, int d, int h, int min, int s);
    };

    class WeekDay : public DateTime{
        public:
            WeekDay(int y, int m, int d, int …
Run Code Online (Sandbox Code Playgroud)

c++ inheritance class

0
推荐指数
1
解决办法
9216
查看次数