我想总是拉一个特定的版本,而不仅仅是最新版本.
一个随机的例子:https://registry.hub.docker.com/u/aespinosa/jenkins/builds_history/9511/
我这样做是因为我只想部署我审核过的版本.这目前可能吗?还是我被迫分叉他们自己做?
我的程序总是卡住30秒
[DEBUG] SingleClientConnManager - Get connection for route HttpRoute[{}->http://foobar.com]
Run Code Online (Sandbox Code Playgroud)
进一步调查显示这是由于ipv4后备.无论如何强制ipcl4在httpclient上解决问题?
PS我认为这是一个IPv4问题,因为它curl -L04 http://foobar.com是一个即时下载,同时curl -L06 http://foobar.com产生curl: (6) Couldn't resolve host 'foobar.com'
我正在做项目euler Q14.
哪个起始编号低于一百万,产生最长的collatz链?
看到有人能在0.7秒内获得成绩,我感到非常惊讶.当我看到它只是一个天真的蛮力解决方案时更加惊讶.
我怀疑是因为我花了很多时间来优化我的python版本,将运行时间降低到大约一分钟.所以我自己运行代码...... OP没有说谎.
我将相同的代码翻译成Python,5分钟后无法终止.
是什么赋予了?
C版:http://codepad.org/VD9QJDkt
#include <stdio.h>
#include <time.h>
int main(int argc, char **argv)
{
int longest = 0;
int terms = 0;
int i;
unsigned long j;
clock_t begin, end;
double time_spent;
begin = clock();
for (i = 1; i <= 1000000; i++)
{
j = i;
int this_terms = 1;
while (j != 1)
{
this_terms++;
if (this_terms > terms)
{
terms = this_terms;
longest = i;
}
if (j % …Run Code Online (Sandbox Code Playgroud)