News for hackers. Stuff that matters.
Re:Turn any page into Katamari Damacy by axylone on Saturday March 12, 2011 @09:45PM (#2318143)
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?

Re:Turn any page into Katamari Damacy by troutwine on Saturday March 12, 2011 @10:26PM (#2318206)
Unless you have a very specific need, consider switching to a web server more explicitly designed for static content. Nginx takes minutes to install and configure.
Re:Turn any page into Katamari Damacy by risotto on Saturday March 12, 2011 @10:21PM (#2318197)
If it's static, serve it directly from S3, and turn on cloudfront for even better delivery.
Re:Turn any page into Katamari Damacy by axylone on Saturday March 12, 2011 @11:53PM (#2318366)
ok, I think we managed to switch http://www.kathack.com over to S3. Thanks for the tip!
Re:Turn any page into Katamari Damacy by risotto on Sunday March 13, 2011 @01:41AM (#2318538)
No problem. Love the script.
Re:Turn any page into Katamari Damacy by dustingetz on Sunday March 13, 2011 @01:04AM (#2318502)
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 by seancron on Saturday March 12, 2011 @10:27PM (#2318212)
I hope you don't mind, but I just mirrored it on Github (https://github.com/seancron/kathack). You can use the following javascript to load it from the mirror.

    javascript:var i,s,ss=['https://github.com/seancron/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);
P.S. If you do mind, just let me know and I'll take it down.
Re:Turn any page into Katamari Damacy by axylone on Sunday March 13, 2011 @12:08AM (#2318394)
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 by _b8r0 on Sunday March 13, 2011 @06:13AM (#2318872)
To quote the King of all Cosmos: "We are moved to tears by the size of this thing."

Really well done, I love it. The only shame was that the music didn't work on Safari, but maybe it's just how I roll.

Re:Turn any page into Katamari Damacy by Esseb on Sunday March 13, 2011 @10:11AM (#2319201)
This will work in Opera too if you add -o- to the POSSIBLE_TRANSFORM_PREFIXES array.