sinisterchipmunk / jax

Framework for creating rich WebGL-enabled applications using JavaScript and Ruby
http://jaxgl.com
MIT License
96 stars 16 forks source link

mimic functionality of the project "gltail" #9

Closed brownman closed 13 years ago

brownman commented 13 years ago

how easy will it be to make rendering of text info such as rails log files ? i've yet to encounter a web application that do a nice visualization.

i want to create a self-explaining application, one that expose its own memory usage .. something like a debugger interface that make u laugh :))

please show me the big money!

sinisterchipmunk commented 13 years ago

This isn't really a Jax issue, but....

To read the log file is as simple as @lines = File.open(...) { ... } in the controller, and rendering @lines in the view. Beware of exactly how you read it, though, because the log file can get quite large and Ruby will often attempt to read the whole thing at once. Check the Ruby docs for more info on File.

If you mean rendering the text via WebGL using Jax, then that's a little more on-topic...