Verbose Logging

software development with some really amazing hair

T + G I F R

Einstein@Home Statistics In Wordpress Sidebar

· · Posted in Programming
Tagged with

If, like me, you participate in some sort of grid computing project, it's interesting to see your progress. I take part in Einstein@Home, and I wanted to display my stats in my sidebar (on my other blog). I'll give you two ways to accomplish this. First way is the quick way, which involves including the jQuery Javascript library, and a second which involves writing your own Javascript. The second option results in a smaller file, but the jQuery file is already pretty small. It's up to you. I started with my own script, then moved to jQuery when I realized it could do what was needed in about one line, and I was already including/using jQuery.

For the record, I originally did this a long time ago when jQuery was new and hip. Now it's just a standard.

For both options, create a php file somewhere on your server. I used my blog root directory, so the url is http://www.darkhelmetlive.com/blog/einstein.php

Call it whatever you want, I used einstein.php since I'm getting Einstein@Home stats. Anyway, paste this in: