• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

F@H stats in your sig: not just for Linux anymore!

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.
I think it does funny things in wordpad. Wedo advises against using anything other than notepad to edit the client.cfg file.

But hey, I notice you got a sig. Good job. :) Is it yours?

Edit: just saw your next post. As long as your folding for team 32, it's all good. Make sure you're folding for 32.
 
i had a sig before but that was with the one click which i guess becasue of wordpad kept reverting to anonymore cause the blank clientfile or something....so that was 3 wasted wu's over a 1 1/2 day period....team 32 nor i got the points....uber gay....

with uberbuzzards one click hopefully that wont happen as i didnt have to edit the client file manually....

only time will tell though.....but im most def folding for 32....im here arnt i....
 
Wow I'm really new to all this and my head hurts just reading all this stuff. I so far got to the point of getting the script right but when I double click on the lizard the DOS window opens and then its gone so I can't answer the questions as the directions state. Sorry for being such a newbie... wish I could go back to the days as a kid at the Boys Club where i learned to program in Basic lol. Man a lot of stuff has changed and I sure didn't keep up on it.
 
BlckToyBx said:
Wow I'm really new to all this and my head hurts just reading all this stuff. I so far got to the point of getting the script right but when I double click on the lizard the DOS window opens and then its gone so I can't answer the questions as the directions state. Sorry for being such a newbie... wish I could go back to the days as a kid at the Boys Club where i learned to program in Basic lol. Man a lot of stuff has changed and I sure didn't keep up on it.

Try using the commandline...

Start > Run > type "cmd"

then if you're following Christoph's instructions...

Code:
cd c:\mksig
perl mksig.pl

and that should show you what's going on.
 
Hmmm. I thought I covered that. I'll put it in the public domain, meaning you can do anything at all with it. The first post has been updated. Thanks for bringing it up.

edit: Looking back at this, I'm really glad I did all that documentation. If I ever need to change something, it will make life much nicer.
 
the link on the first page doesn't work. The mksig link says that I don't have access
Forbidden

You don't have permission to access /~cotto1/ochosting/mksig.txt on this server.

Apache/2.0.54 (Unix) Server at gladstone.uoregon.edu Port 80

Does anyone else have a link to it?
 
BenF said:
the link on the first page doesn't work. The mksig link says that I don't have access

Does anyone else have a link to it?

Im sure someone around here has a copy of it. I dont have an original copy, and I did a lot of messing around with mine, so I cant help you. Sorry.
 
I'm just about to head off for camping for most of the week, but I'd be happy to look into this when I get back.
 
Sweet!!

I tried to make one, but I couldn't figure out how to get the variables out of the web pages. This is how I started, it's very crude, it's mostly just copy and pastes.

PHP:
#!/usr/bin/perl
use LWP::UserAgent;

#------------------------
# get stats from Free-DC
#------------------------
@time = localtime;
$time[5] += 1900;
$time[4]++;

$dimes_cache = "dimes.html";

#only download stanford's page every 3 hours ( = 60*60*3 seconds)
#(stat($file))[9] is the time since file was last modified, in seconds

if ( (! -e $dimes_cache) || (time - (stat($dimes_cache))[9] > (60*60*3)) ) {

  $ua = LWP::UserAgent->new();
  $dimes_page = $ua->get(
    "http://stats.free-dc.org/new/userstats.php?proj=dimes&name=jiggamanjb");
  
  if (! $dimes_page->is_success) {
    die "Couldn't download Stanford's page.";
  }

  open dimes_CACHE, ">$dimes_cache";
  print dimes_CACHE $dimes_page->content;
  close dimes_CACHE;

  $s_content = $dimes_page->content;

} else {

  open dimes_CACHE, "$dimes_cache";
  while(<dimes_CACHE>) {
    $s_content .= $_;
  }
  close dimes_CACHE;

}

#------------------------
# get stats from DIMES
#------------------------
@time = localtime;
$time[5] += 1900;
$time[4]++;

$dimes1_cache = "dimes1.html";

#only download stanford's page every 3 hours ( = 60*60*3 seconds)
#(stat($file))[9] is the time since file was last modified, in seconds

if ( (! -e $dimes1_cache) || (time - (stat($dimes1_cache))[9] > (60*60*3)) ) {

  $ua = LWP::UserAgent->new();
  $dimes1_page = $ua->get(
    "http://www.netdimes.org/data.php?team=802");
  
  if (! $dimes1_page->is_success) {
    die "Couldn't download Stanford's page.";
  }

  open dimes1_CACHE, ">$dimes1_cache";
  print dimes1_CACHE $dimes1_page->content;
  close dimes1_CACHE;

  $s_content = $dimes1_page->content;

} else {

  open dimes1_CACHE, "$dimes1_cache";
  while(<dimes1_CACHE>) {
    $s_content .= $_;
  }
  close dimes1_CACHE;

}

#------------------------
# get stats from DIMES
#------------------------
@time = localtime;
$time[5] += 1900;
$time[4]++;

$dimes2_cache = "dimes2.html";

#only download stanford's page every 3 hours ( = 60*60*3 seconds)
#(stat($file))[9] is the time since file was last modified, in seconds

if ( (! -e $dimes2_cache) || (time - (stat($dimes2_cache))[9] > (60*60*3)) ) {

  $ua = LWP::UserAgent->new();
  $dimes2_page = $ua->get(
    "http://stats.free-dc.org/new/teamstats.php?proj=dimes&team=www.OCForums.com");
  
  if (! $dimes2_page->is_success) {
    die "Couldn't download Stanford's page.";
  }

  open dimes2_CACHE, ">$dimes2_cache";
  print dimes2_CACHE $dimes2_page->content;
  close dimes2_CACHE;

  $s_content = $dimes2_page->content;

} else {

  open dimes2_CACHE, "$dimes2_cache";
  while(<dimes2_CACHE>) {
    $s_content .= $_;
  }
  close dimes2_CACHE;

}

$test = $s_content;

for ($c07) {
  s/[\n\r]//g;		#chop new lines and return chars
  s/\#.{6}//g;		#chop all colors like #000fff (kills digits)
  s/=(\d*)//g;		#chop all numbers like size=3
  s/.*jiggamanjb//;	#chop before & including "7 days"
  s/\D*//;		#chop all non-digits
  s/(\d*).*/$1/;	#store stat in variable, kill rest
}

print $test
 
Lemme play with this for a couple days, then when Christoph gets back from sleeping with the bears, he can skool us. :) I'm assuming that you can format the output as long as you have access to the variables?

Another question: I'm not familiar with DIMES, especially in the Linux environment (which I'm currently in.) I'll do some research, but could you fill me in on any local files on your hard drive that has any information regarding what each agent is doing?
 
Actually each agent is tracked online! As shown here. I have all the links in my crappy code I posted before. I can get it to pull down the pages and edit the variables, but pruning the pages to get the variables out of them is way over my head.
 
Here's a hack from the netdimes.org XML feed (sig_gen.pl attached):

Folding.on.a.DIME(S).for.www.ocforums.com!!!
My DIMES Stats:___________Agent Information:
Name:_______jiggamanjb____optional_agent_info
Team:_www.OCForums.com____optional_agent_info
Score:___________99903____optional_agent_info
Week Score:______99903____optional_agent_info
Agents:______________7____optional_agent_info
Team Rank:________rank____


I'll pull the team rank from the netdimes.org team list since the netdimes.org XML feed doesn't include rank information. Do you know of any DIMES trackers that use XML?
 

Attachments

  • sig_gen.txt
    16.5 KB · Views: 97
Awsome!! That looks like I can work that into my sig just fine.

The only 2 DIMES trackers that I know of are netdimes.org and free-dc.org
 
K, this should do it. Got the team rank in the stats from netdimes.org. It shouldn't save pages locally anymore. Just rename the attached sig_gen-dimes02.txt to sig_gen.pl and you'll be good to go.
 

Attachments

  • sig_gen-dimes02.txt
    17 KB · Views: 101
Back