V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  codehz  ›  全部回复第 123 页 / 共 127 页
回复总数  2523
1 ... 115  116  117  118  119  120  121  122  123  124 ... 127  
@ryd994 看前面的楼层,我已经测试了--depth 1 的拉取,效果并不是很明显——我这里网络环境并不能一次性下载 500MB 以上的内容,无论有没有梯子都这样,可能采取一些奇怪的措施能够加强稳定性吧。--depth 1 仍然不能中断
@ryd994 build 完删除并不代表不会占用存储空间—— docker 机制保证了每一个 RUN 命令都会创建一个独立的镜像, PULL 时,即使完全删除,也要拉取一遍
利用 docker 的服务下载开发用到的源码,完全合理合法;用来下载电影,当然不合法,所以我发送的节点是程序员节点。。有些人就是逆向 XXXX :外国人这么用就合理的;中国人用就是不合适,不恰当的。
你说我举得例子不恰当,那我就举几个具体的例子:
runmymind/docker-android-sdk :内容就是自动下载一堆 android sdk ,大小 5.4G
opengenomics/nci-downloader: 下载一个大文件,解压
qlik/gradle: 直接下载 gradle 的包——并不能直接跑
topfdrummer/minecraft: 直接下载 minecraft 服务端
部分镜像的拉取量超过 10M+,如果有问题,官方早就处理了
如果你认为下载过程不恰当,那么请问那些镜像是准备放着不拉取的吗?
显然我觉得不恰当的地方恐怕是这个标题了——如果说用 docker 来搭建开发环境,估计就没这么多反对——然而,仔细想想,对于程序员而言,排除了违法内容后,这两者有什么区别吗?
@Miy4mori 坑爹的是 download zip 也是不支持断点续传的——甚至连 HEAD 请求查询大小都不行。。。
@ryd994 你准备怎么定义恰当?还是贴完整一点的吧,上面只是顶部一小部分
3.3 You agree that you are responsible for your own conduct while accessing or using the Service and for any consequences thereof. You agree to use the Service only for purposes that are legal, proper and in accordance with these Terms and any applicable laws or regulations. By way of example, and not as a limitation, you may not and may not allow any third party to:

a. Send, upload, distribute or disseminate or offer to do the same with respect to any unlawful, defamatory, harassing, abusive, fraudulent, obscene, or otherwise objectionable content;传播违禁内容

b. Distribute viruses, worms, defects, Trojan horses, corrupted files, hoaxes, or any other items of a destructive or deceptive nature;分发危害性内容

c. Impersonate another person (via the use of an email address or otherwise) or otherwise misrepresent yourself or the source of any content;模仿他人或者伪造内容来源

d. Upload, post, transmit or otherwise make available through the Service any content that infringes any patent, trademark, copyright, trade secret or other proprietary right of any party, unless you are the owner of such rights or have the permission of the owner to post such content;侵犯专利权

e. Download any content posted by another user that you know, or reasonably should know, that cannot be legally distributed in such manner;下载不能合法分发的内容

f. Submit content that falsely expresses or implies that such content is sponsored or endorsed by Docker;提交暗示由 docker 赞同的内容

g. Use the Service to violate the legal rights (such as rights of privacy and publicity) of others;使用本服务侵犯他人权利

h. Promote or encourage illegal activity;鼓励非法活动

i. Interfere with other users' enjoyment of the Service;干扰其他用户

j. Exploit the Service for any unauthorized commercial purpose;未经授权的商业利用

k. Modify, adapt, translate, or reverse engineer any portion of the Service;修改或者逆向工程

l. Remove any copyright, trademark or other proprietary rights notices contained in or on the Service or any content posted thereon;移除版权商标等按要求必须保留的内容

m. Reformat or frame any portion of the web pages that are part of the Service's administration display;把服务管理页面重新格式化

n. Use the Service in connection with illegal peer-to-peer file sharing;使用 P2P 文件分享服务

o. Display any content on the Service that contains any hate-related or violent content or contains any other material, products or services that violate or encourage conduct that would violate any criminal laws, any other applicable laws, or any third party rights;显示任何暴力 /仇恨相关的内容

p. Use any robot, spider, site search/retrieval application, or other device to retrieve or index any portion of the Service or the content posted thereon or to collect information about its users for any unauthorized purpose;使用爬虫

q. Create user accounts by automated means or under false or fraudulent pretenses; or 自动化 /虚假方式创建用户

r. Use the Service, or any interfaces provided with the Service, to access any Docker product or service in a manner that violates the Terms or other terms and conditions for use of such Docker product or service.使用本服务或者本服务提供的接口进行违反本条例或者其他 Docker 服务条款的行为

在构建过程中下载其他合法资源,本来就是正常构建过程的一部分, docker 并没有限定镜像的除了违法用途以外的用途(它可没说镜像只能拿来运行,况且 docker 并没有提供运行环境),你一定要说它不恰当,那请给出“恰当”的定义,并且确保这个定义是广泛认可的
@phrack 法无禁止则可为,在 Docker.io 的 ToS 中明确指出了使用 docker.io 的服务是有硬限制和软限制的,超出限制有权终止服务,本文提到的这种方法中并不存在任何试图绕过这些限制的方法,因此使用这个方法是否超出使用范围取决于使用者,你要是觉得这个不合理,你去修改 ToS 就好了
相关 ToS 条款
2.3 You agree not to (a) access (or attempt to access) the administrative interface of the Service by any means other than through the interface that is provided by Docker in connection with the Service, unless you have been specifically allowed to do so in a separate agreement with Docker, or (b) engage in any activity that interferes with or disrupts the Service (or the servers and networks which are connected to the Service).(是否会干扰 Docker.io 提供服务取决于下载内容有无违禁内容)
3.3 You agree that you are responsible for your own conduct while accessing or using the Service and for any consequences thereof. You agree to use the Service only for purposes that are legal, proper and in accordance with these Terms and any applicable laws or regulations. By way of example, and not as a limitation, you may not and may not allow any third party to:(还是违法内容的相关条例,以及禁止 P2P 连接,取决于使用者)
@TJT 用了代理,速度跑满然后中途挂掉了。。。。。一直都是--depth 1 ,但是对于这样规模的项目,该挂的还是挂。。。。。我们这网络一直都不太稳定,即使是国内的大文件下载,如果不支持断点续传,还是有几率会挂。。。。。
2017-04-15 17:37:07 +08:00
回复了 SkyLanD 创建的主题 分享发现 开启 YouTube 自带 Dark Mode
估计是 AB 测试。。。
@imn1 我只是分享思路,不提供服务,按这个思路去做后果自负🙃
@jccg90 这个思路绝对不是我第一个想出来的。。。 docker.io 上好多意义不明(拉取次数个位数,无执行语句,无任何有效软件安装,但是有很多明显不属于项目的大文件)的镜像。。说明这类用法已经玩烂了,只是没人明面说出来而已
@zsj950618 直接走 docker.io 官方的也比 git clone 靠谱,至少可以断点续传。。所以即使国内全部禁用(使用的人多了,必然会这样),这个方法依旧是有效的。。。
2017-04-11 14:33:59 +08:00
回复了 paperseller 创建的主题 Windows Windows 下有类似 Gnome 或 KDE 的热区激活软件吗?
有一款叫做 WinXCorners 的软件,你可以试试看
@paperseller
2017-04-11 11:50:20 +08:00
回复了 paperseller 创建的主题 Windows Windows 下有类似 Gnome 或 KDE 的热区激活软件吗?
自己写一个不就好了。。。
写一个鼠标钩子 SetWindowsHookEx ,检测是否在角落里(同时鼠标还得在移动),然后开个线程先 sleep ,在延时阶段如果检测到鼠标移出范围,就终止线程,否则 sleep 结束就发送一个事件——注意发送事件只能在主线程进行,所以要 PostMessage 。。
我觉得并不是很复杂。。。
2017-04-11 11:28:35 +08:00
回复了 drizzle 创建的主题 Android 撸了一个知乎 Android 端的个人主页实现
知乎这个确实是蜜汁卡顿,不过我 i 这里测试全部都是刚好 60fps 出头,虽然还是一片标红——估计是有谁限制了 fps
2017-04-11 11:21:36 +08:00
回复了 enenaaa 创建的主题 Android android studio 怎么看含有 webview 进程的内存?
应该会有一个 org.chromium.content.app.SandboxedProcessServiceN(N 为数字)的服务。进程名字应该是包名后面跟着:sandboxed_processN 一类的。反正 PS 是可以看到的,设置里也能看到。但是我似乎没有在 AS 中看到过。。。。估计被过滤了
2017-04-03 21:10:30 +08:00
回复了 teemoer 创建的主题 JavaScript datables 服务器模式 求助
手动 JSON.stringify 即可。。。自动的转换有层数限制
2017-03-22 16:32:19 +08:00
回复了 hailongs 创建的主题 C boost::unordered_map 这东西有办法显示析构吗
@hyq 用 placement new 不是更好么。。。手动调用构造函数要写一堆重复的东西
2017-03-20 17:53:37 +08:00
回复了 Siril 创建的主题 程序员 golang 单对多 channel ?
我记得反射就可以了。。。性能应该会比用链式结构的好吧
`reflect.Select`可以接收一个数组
2017-03-07 22:47:31 +08:00
回复了 kuaiabcde 创建的主题 C c/c++ 控制台音乐播放器
[Linux]我之前做过一个,专门用于播放 bilibili 视频外加弹幕支持的终端播放器。(输出到 framebuffer )。由于开发环境的改变,就停止开发了,只能播放本地视频。。。采用的是 ffmpeg 库——你要是想要用这个库的话,可以来我的项目的
https://github.com/codehz/BilibiliConsole
2017-03-03 16:58:33 +08:00
回复了 xyxc0673 创建的主题 Python windows 和 deepin 下图片二值化代码相同,结果却不同。
这样子明显原图都不一样啊。。一个 g 是正的一个是歪的(原图粗细也有可能不同)。。。原图能否展示一下呢。。。
@phoenixlzx 可以了,
1 ... 115  116  117  118  119  120  121  122  123  124 ... 127  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2844 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 44ms · UTC 07:23 · PVG 15:23 · LAX 00:23 · JFK 03:23
Developed with CodeLauncher
♥ Do have faith in what you're doing.