V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  kayue  ›  全部回复第 1 页 / 共 8 页
回复总数  147
1  2  3  4  5  6  7  8  
2014-08-19 12:13:07 +08:00
回复了 kayue 创建的主题 Amazon Web Services 如何让 EC2 在中国速度变快?
@dcoder 不过我目前的难题在于,我这个 cluster 有些 instance 在美国,有些在中国。这已经不是一般的 cluster 了。
2014-08-18 23:56:48 +08:00
回复了 kayue 创建的主题 Amazon Web Services 如何让 EC2 在中国速度变快?
谢谢,我先试试 CloudFront dynamic content。
2014-08-18 15:13:22 +08:00
回复了 kayue 创建的主题 Amazon Web Services 如何让 EC2 在中国速度变快?
@mengzhuo CDN 只能用在 static content,对我们来说并不足够。

@openroc @dcoder 我们想所有 database / code base 都放在一起,所以暂不考虑另设 instance。

@kingwkb 可以介绍一下吗?你的解决方法最接近我的想法,但我不熟悉这方面的。请指教。

如果可以的话我们想尽量靠提升 connection 速度来解决这个问题,因为目前貌似慢的不止一点点。我人在香港也没办法很好地找出问题所在。
2011-04-23 23:46:50 +08:00
回复了 Livid 创建的主题 设计师 Premium Pixels
i love this thing!!!
nice game.
2011-04-19 23:21:33 +08:00
回复了 kayue 创建的主题 分享发现 Experimental fork of GitX
I think the L version is not as easy to use as Brotherbrad's version.
2011-04-18 04:10:32 +08:00
回复了 julia 创建的主题 程序员 何谓编程思想?
@dbfox front end(web ui) 比较少需要面向对像,一般都是事件导向。

所以光写fornt end 进步有限 。
2011-04-17 22:05:30 +08:00
回复了 Livid 创建的主题 问与答 经常在英文社区里看到的 FTW 是什么意思呢?
for the win.
2011-04-17 20:44:27 +08:00
回复了 darktiny 创建的主题 分享发现 浏览IT资讯的网站
hacker news
2011-04-15 00:22:38 +08:00
回复了 Livid 创建的主题 问与答 当我们在反对抄袭时
@fanzeyi 阿里吧吧 是 b2b, ebay is c2c
2011-04-14 21:17:56 +08:00
回复了 Livid 创建的主题 问与答 当我们在反对抄袭时
阿里吧吧
2011-04-13 15:23:19 +08:00
回复了 Livid 创建的主题 站长 V2EX 上的站长们
popbee.com ~10,000 PV per day
hypebeast.com ~170,000 PV per day
@nikejaycn my mistake.
而楼主的

document.images.bg.src="+ imgs[currIndex] +";

这句跟本就有 syntax 错误。

element.src = "somewhere";

是相等于

var theSrc = "somewhere";
element.src = theSrc;
Math.round() * 3 的最大值是 2.999
用 Math.floor(向下取其整数)的话即使 2.999 也只会传回 2。
正解也。
@nikejaycn 的解法有可能令 current index 得出负值 (0 会变成 -1)
currIndex 会出现 0...3 的原因是 Math.round()

例如当 Math.random() = 2.7 的时候,round 后就成了 3
用 Math.floor 代替即可。
document.images.bg.src = imgs[currIndex];
1  2  3  4  5  6  7  8  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5138 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 39ms · UTC 09:31 · PVG 17:31 · LAX 02:31 · JFK 05:31
Developed with CodeLauncher
♥ Do have faith in what you're doing.