Live data from Hacker News

Turn any page into Katamari Damacy

kathack.com

21–30 of 38 posts

Re: Turn any page into Katamari Damacy

#21
post #3

Woo - nice to see this on HN (I'm one of the creators). EDIT: We're serving this off ec2 + apache. It's all static html + js. Any quick tips for speeding things up?

Ok, we switched everything over to S3. Everything should be much faster now.

Looks like we have a ~275MB access.log from before the switch. Over a million requests!

   $ wc -l access.log
   1115447 access.log

Re: Turn any page into Katamari Damacy

#22
This is amazing. I'm definitely going to keep this in my bookmarklets collection! That said, can you give us a way to re-generate the grid data? I want to roll up everything in Google Reader. (Maybe when the bookmarklet is run, if it's already active, re-generate the grid. It currently creates a second Katamari, which is also awesome.)

Re: Turn any page into Katamari Damacy

#24
post #8
post #3

Woo - nice to see this on HN (I'm one of the creators). EDIT: We're serving this off ec2 + apache. It's all static html + js. Any quick tips for speeding things up?

If it's static, serve it directly from S3, and turn on cloudfront for even better delivery.

from my understanding, S3 optimizes throughput but not latency. I'm not surprised that his performance serving from S3 is perfectly fine, but I think the "answer" is to skip straight to CloudFront. CloudFront can mirror directly from your appserver, or from S3, it doesn't matter.

update: did a little googling, and found only anecdotal evidence that latency to S3 is fine but not awesome:

http://www.cloudclimate.com/s3/

http://www.codeswimming.com/blog/2010/04/amazon-s3-and-cloud...

http://www.slideshare.net/ehwinter/using-amazon-cloud-front-...

Re: Turn any page into Katamari Damacy

#25
I thank you from the bottom of my heart for helping me fall into a haze for about 45 minutes. That was remarkably ingenious.

Rolling around on a huge page like the Wikipedia article for World War II (http://en.wikipedia.org/wiki/World_war_II) caused a pretty significant slowdown. Interestingly, once the ball got to the size to pick up larger images, the rest of the ball would clear and there would be a noticeable boost in speed. It was intriguing to observe the dynamics of the ball rolling on different sized pages.

Re: Turn any page into Katamari Damacy

#26
post #20
post #8

Earlier quoted context omitted.

If it's static, serve it directly from S3, and turn on cloudfront for even better delivery.

ok, I think we managed to switch http://www.kathack.com over to S3. Thanks for the tip!

No problem. Love the script.

Re: Turn any page into Katamari Damacy

#28
post #6

Is there any way to play this on a Macbook trackpad without connecting a USB mouse?

A Macbook user here as well. To try it out, I forked seancron's repository and changed the right mouse button to left mouse button. You have to avoid clicking on links, though.

  javascript:var i,s,ss=['https://github.com/anttisykari/kathack/raw/master/kh.js','http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'];for(i=0;i!=ss.length;i++){s=document.createElement('script');s.src=ss[i];document.body.appendChild(s);}void(0);
Post reply on HN