News for hackers. Stuff that matters.
Re:StarWars + Git logs = StarLogs by tterrace on Friday April 12, 2013 @09:42AM (#5538379)
This is very cool. I also just noticed a neat quirk - if you switch tabs (I'm on chrome) the animations pause but the timer to show the text keeps ticking. So all the text bunches up at the bottom until you switch back at which point the text blob starts to fade out all together.

The page visibility api: http://www.w3.org/TR/2011/WD-page-visibility-20110602/ might be able to help with that.

Re:StarWars + Git logs = StarLogs by kpreid on Sunday April 14, 2013 @07:30PM (#5548856)
Not a bad idea to respond to visibility, but to solve the blob problem it would be better to explicitly synchronize text creation and text position. This is basic in game/simulation programming: you don't want the rules of the game to change depending on the performance of the computer — it may be slower, but it should be internally consistent.

For example, have a single, explicit 'scroll position' or 'time' variable (they're equivalent in this case), increment it on a timer, and insert new text when (time mod N) rolls over.

Re:StarWars + Git logs = StarLogs by artemave on Friday April 12, 2013 @09:49AM (#5538430)
Nice one. Thanks!