Live data from Hacker News

The Colour Clock

thecolourclock.co.uk

21–30 of 95 posts

Re: The Colour Clock

#23
post #22
post #15

Awesome idea. I took some time to rewrite in HTML5: http://brisy.info/colors/ Though the colours I'm getting are different. I wonder why.

Haha, I just did the same thing: http://nerdlife.net/colorclock.html

Great minds and all. If you replace the html file in the screensaver bundle you can use yours (or mine) instead of the flash one.

Re: The Colour Clock

#25
post #15

Awesome idea. I took some time to rewrite in HTML5: http://brisy.info/colors/ Though the colours I'm getting are different. I wonder why.

I'm on a P4 3Ghz at the moment, whereby I can hear my CPU buzzing away when its under load. On the .co.uk site the buzzing is audible, its taking >70% of the CPU, whereas on your site its nice and quiet taking just 6% of the CPU.

Re: The Colour Clock

#28
post #25
post #15

Awesome idea. I took some time to rewrite in HTML5: http://brisy.info/colors/ Though the colours I'm getting are different. I wonder why.

I'm on a P4 3Ghz at the moment, whereby I can hear my CPU buzzing away when its under load. On the .co.uk site the buzzing is audible, its taking >70% of the CPU, whereas on your site its nice and quiet taking just 6% of the CPU.

I can not figure out how such a simple program can manage to take up 100% of my CPU, and despite that not be in sync with my actual clock (it's a random fraction of a second off).

Has he not heard of sleep(1) ? Saying "it's flash" is no excuse, flash is perfectly capable of sleeping.

Re: The Colour Clock

#29
post #15

Awesome idea. I took some time to rewrite in HTML5: http://brisy.info/colors/ Though the colours I'm getting are different. I wonder why.

Honest question - what is the HTML5 part in here (as opposed to I rewrote it in HTML+CSS+JS)?

Re: The Colour Clock

#30
post #23
post #22

Earlier quoted context omitted.

Haha, I just did the same thing: http://nerdlife.net/colorclock.html

Great minds and all. If you replace the html file in the screensaver bundle you can use yours (or mine) instead of the flash one.

Instead of:

  window.setInterval(frame, 1000);
Do:

  window.setTimeout('window.setInterval(frame, 1000)', 999-(new Date()).getMilliseconds());
That way the seconds will be properly synchronized.
Post reply on HN