V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  codehz  ›  全部回复第 122 页 / 共 126 页
回复总数  2515
1 ... 114  115  116  117  118  119  120  121  122  123 ... 126  
2017-04-18 00:27:12 +08:00
回复了 elone 创建的主题 Android android studio 换了 SDK 镜像还是那么慢
Linux 的话可以直接用 docker pull 一份 Android sdk ,这个源更新比较及时, docker 的话有一大波国内镜像
https://hub.docker.com/r/runmymind/docker-android-sdk/~/dockerfile/
@Panic WSL 啊。。。编译内核用 WSL 就可以完成了,何必弄个 Linux 来做呢
@shijingshijing 一加的大部分驱动都是直接在厂商给的内核代码里的,小部分需要自己编译,我运气比较好,一找就找到了,虽然我觉得 xda 上可能有相关帖子。。。
@xdream86 哈哈,不过安卓至少是开源的,折腾的人更多,相关资源也更多( macos 的驱动可没开源
2017-04-16 14:11:41 +08:00
回复了 liaa 创建的主题 程序员 提醒 V 友, 防不胜防的钓鱼网址
@Aquamarine 大概是版本问题, 我用的版本是 60.0.3072.0
PS: Chrome 居然已经把版本号刷到 60 了。。。。
2017-04-16 13:13:42 +08:00
回复了 liaa 创建的主题 程序员 提醒 V 友, 防不胜防的钓鱼网址
为啥我 Chrome 是这个效果,我记得之前还是能支持 punycode 的显示的。。。现在那几个 emoji 域名也全部都是原始字符了。。。。
http://i1.piimg.com/567571/18ea34fc4f28a70a.png
利用工具获取到的链接并不能直接访问,而是需要携带特定的验证信息,对于一般用户而言,具有一定的使用门槛,从这个角度来说,下载地址被普通用户滥用的可能性还是比较低的。。。
@phrack 我本来打算放出的是获取镜像下载地址的工具,而非完全自动化的构造 Dockerfile 自动上传,自动触发构建什么的——获取镜像下载地址并非完全只有为了下载,也可以是在 Windows Subsystem for Linux 上获取特定镜像并运行( WSL 不支持完整 Linux 的各种 namespace , 因此不能运行 docker ,不过我测试大部分镜像都是可以在解压后加一个 chroot 就可以跑的,如果不考虑 overlay 文件系统和各种隔离的问题的话),但是听你这么一说,原本两个看似毫无关系的东西放在一起,就可以造成很大的影响了。。。所以我在考虑是否值得发布这个的工具。。。
2017-04-16 09:06:02 +08:00
回复了 marenight 创建的主题 Android 魅族应用商店更新谷歌应用居然比谷歌 play 更快?
@lazycat 我记得酷安已经不止一次出现把 32 位的和 64 位的弄混的情况了。。。
2017-04-16 09:04:20 +08:00
回复了 klxq15 创建的主题 Python 写程序的时候,需要考虑理论上概率为零的意外情况吗?
这个题目描述大概是有问题的,不过如果按照概率为 0 来理解的话,就是说假定用户都是专业用户,知道什么是未定义行为,输入内容保证符合要求。。。这种情况下,确实不需要考虑了
@amd00 学校的网络,大家都这样。。。。别人用另一个运营商也是这个样子, QoS 应该是在学校那边的,跟学校反应半天也没个下文。。不过大多数地址都可以断点续传,所以一般也感觉不出来。。。而且流量不大的话,长连接也可以保持很久,大概这种情况很难得到有关领导的重视吧。。。。
@linhua 然而我是 windows 党😂, WSL 不支持 iptables ,另外其实 docker 也是不支持的,我是直接开放 api 导出下载地址的。为啥不双系统呢?原因是 windows 是目前 linux 最好的发行版。。。 wsl 编译安卓内核毫无压力,所以我就用了。。。

另外我发现网络不稳定这个东西应该和丢包率有关系,我玩游戏的时候几乎没啥影响,因为流量不大,延迟也不高。然后下载的时候,流量大,持续时间长,这样就出现各种丢包,延迟;届时 PING baidu.com 都会有 50%以上的丢包率,而且当持续流量结束以后,并不是马上就能恢复的。。。检查应该不是路由器的问题(之前路由器出现过被高并发发包打死的情况,后来我买了个贵的就好了),因为直接连接网线我也试过了。。。这意味着单纯丢弃 RST 包并不会有啥效果。。。总感觉我这网络是被 QoS 什么的干掉了。
@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 我只是分享思路,不提供服务,按这个思路去做后果自负🙃
1 ... 114  115  116  117  118  119  120  121  122  123 ... 126  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1158 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms · UTC 18:40 · PVG 02:40 · LAX 11:40 · JFK 14:40
Developed with CodeLauncher
♥ Do have faith in what you're doing.