News for hackers. Stuff that matters.
Re:Real-time heatmap example with Javascript and HTMLCanvas by Concours on Thursday October 21, 2010 @09:19AM (#1815243)
Re:Real-time heatmap example with Javascript and HTMLCanvas by revorad on Thursday October 21, 2010 @11:36AM (#1815889)
I've emailed Patrick, so let's hope he can bring it back up soon.

It's a shame sites can't handle HN-level traffic automatically. My own site got borked when I put it on here without knowing much about web server configurations. Are there some standard practices which one should know?

Re:Real-time heatmap example with Javascript and HTMLCanvas by rarestblog on Thursday October 21, 2010 @11:50AM (#1815967)
Basic VPS (on stable provider) + nginx + php-fpm + eaccelerator, barely noticing any kind of traffic spikes (handled SlashDot, HN, HabraHabr, Reddit, Delicious, many others).

Of course it depends on how intensive your app is, but for moderately loaded site - this combination is more than enough. For ex. I've tested Wordpress with this configuration - it can handle nearly 70 mil. hits per day (including into this number hits to images, so probably around 10 mil. actual visitors).

Wouldn't recommend for real-time upgrade (during spike). For real-time go for this: http://gist.github.com/638751 (if load average > 5 - sorry, exit). Crude, cruel, but helped me survive being unexpectedly TechCrunch'd on Apache (didn't know about nginx at the time), then you can finally edit your files, go for caching of nearly everything.

Re:Real-time heatmap example with Javascript and HTMLCanvas by jlongster on Thursday October 21, 2010 @12:37PM (#1816215)
Is HN traffic really that heavy? Last summer I made #5 on one post and #1 on another one. Here are the stats for those two posts:

http://jlongster.com/media/static/stats.png

It's only a couple thousand. Maybe this link got passed around a lot more, but it's not too hard to scale up to several thousand.

Re:Real-time heatmap example with Javascript and HTMLCanvas by jayliew on Thursday October 21, 2010 @02:13PM (#1816747)
It works for me here in San Diego - took a little while to load but it works. Just open in another tab and come back later
Re:Real-time heatmap example with Javascript and HTMLCanvas by NewHighScore on Thursday October 21, 2010 @01:56PM (#1816649)
This is a really neat idea, but it seems to track how fast the mouse moves over the canvas instead of the amount of time the mouse is over parts of the canvas.
Re:Real-time heatmap example with Javascript and HTMLCanvas by pa7 on Thursday October 21, 2010 @09:06PM (#1818154)
hey guys its up again, I didn't know that my webserver wouldn't be able to handle such an amount of traffic. I reconfigured the webserver, now it should be ok. I'm going to add iPhone/iPad touchmove support for the canvas heatmap example in the next days. cheers, Patrick
Re:Real-time heatmap example with Javascript and HTMLCanvas by micky_25 on Thursday October 21, 2010 @06:36PM (#1817740)
if anyones interested these guys created something similar for the node knockout competition.

http://paularmstrong.github.com/nko-jackalope-promo

Re:Real-time heatmap example with Javascript and HTMLCanvas by VMG on Thursday October 21, 2010 @09:43AM (#1815305)
hackernewsed
Re:Real-time heatmap example with Javascript and HTMLCanvas by 9ec4c12949a4f3 on Thursday October 21, 2010 @10:21AM (#1815462)
Upvoted anyway!
Re:Real-time heatmap example with Javascript and HTMLCanvas by RDDavies on Thursday October 21, 2010 @11:09AM (#1815730)
Why upvote a dead story?
Re:Real-time heatmap example with Javascript and HTMLCanvas by 9ec4c12949a4f3 on Thursday October 21, 2010 @02:18PM (#1816768)
Re:Real-time heatmap example with Javascript and HTMLCanvas by 9ec4c12949a4f3 on Thursday October 21, 2010 @09:07AM (#1815203)
It's not just you! http://www.patrick-wied.at looks down from here.
Re:Real-time heatmap example with Javascript and HTMLCanvas by araneae on Thursday October 21, 2010 @10:24AM (#1815481)