Author |
Topic  |
Jeepaholic
Average Member
  
USA
697 Posts |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 25 September 2002 : 02:09:49
|
I was just about to report this message:
Loadave panic! short-circuiting CGI
LOL... |
|
 |
|
Jeepaholic
Average Member
  
USA
697 Posts |
|
Jeepaholic
Average Member
  
USA
697 Posts |
Posted - 25 September 2002 : 02:16:43
|
I think this code might help with the erros...the system isn't on error now so I haven't really tested it yet:
If strAllTeamStats = "<h3>Loadave panic! short-circuiting CGI</h3>" Then
strAllTeamStats = "Error"
Else
i = InStr(strAllTeamStats, "<i>Total</i>")
If i > 0 Then strAllTeamStats = Mid(strAllTeamStats, i + 27)
i = InStr(strAllTeamStats, "</b>")
If i > 0 Then strAllTeamStats = Left(strAllTeamStats, i - 1)
strAllTeamStats = (Replace(strAllTeamStats, "<b>", ""))
strAllTeamStats = (Replace(strAllTeamStats, """", ""))
strAllTeamStats = (Replace(strAllTeamStats, "<td align=center>", ""))
strAllTeamStats = (Replace(strAllTeamStats, ",", ""))
End If
|
Al Bsharah Aholics.com
Jeepaholics Anonymous Broncoholics Anonymous Network Insight
|
Edited by - Jeepaholic on 25 September 2002 02:17:13 |
 |
|
Jeepaholic
Average Member
  
USA
697 Posts |
|
Gremlin
General Help Moderator
    
New Zealand
7528 Posts |
Posted - 25 September 2002 : 05:49:21
|
Nice tip on the caching Jeepaholic, I was just thinking about how to handle that this afternoon :) |
Kiwihosting.Net - The Forum Hosting Specialists
|
 |
|
pdrg
Support Moderator
    
United Kingdom
2897 Posts |
Posted - 25 September 2002 : 11:56:39
|
Hi Jeepaholic - just wondering what Jeepahol is?  |
 |
|
Jeepaholic
Average Member
  
USA
697 Posts |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 25 September 2002 : 15:50:26
|
BWJM, just thought of 1 more stat ;) how many members on a team, I know how to handle that one, just thought you'd be interested with that thought. |
|
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 25 September 2002 : 15:58:12
|
We just passed the 3,000,000 key counts when I pulsed another 17,000+ counts  |
 |
|
Jeepaholic
Average Member
  
USA
697 Posts |
Posted - 25 September 2002 : 20:13:12
|
quote: Originally posted by Gremlin
Nice tip on the caching Jeepaholic, I was just thinking about how to handle that this afternoon :)
You can see it in action here: http://www.jeepaholics.com/pd.htm
If they're not already cached, you'll see how long they'll take to load. After they load...refresh it. They'll pop right up like regular images do. 5 minutes later, it starts all over. BTW, the "*" in the VaryByParam field allows each querystring to be cached separately (allowing for each users image to be cached on its own, separate from all the others) |
Al Bsharah Aholics.com
Jeepaholics Anonymous Broncoholics Anonymous Network Insight
|
 |
|
Gremlin
General Help Moderator
    
New Zealand
7528 Posts |
Posted - 25 September 2002 : 20:48:01
|
Thanks, I've already applied it to my own scipts and it seems to work as you described :) |
Kiwihosting.Net - The Forum Hosting Specialists
|
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 25 September 2002 : 21:10:06
|
 Not much typing today  |
 |
|
eggyfarts
Junior Member
 
New Zealand
200 Posts |
|
Kenno
Average Member
  
Cambodia
846 Posts |
Posted - 25 September 2002 : 21:24:18
|
quote: Originally posted by dayve
okay, but it looks really ugly ;) I'm sure you'll find a better way BWJM 
http://dayve.d2g.com/projectdolphin_detail.txt
keep in mind that this is NOT an edit of the last code you sent me with all the parameters. I probably should have edited that one instead, but I was so focussed on getting the team totals another way that I realized later I was editing an earlier version. ;)
Dayve, I found a small bug in your code. When the user register for the first day, intNumDays = 0 therefore, when you find the average keystroke per day will give you error. Here's a fix, around line 123, I add:
if intNumDays = 0 then intNumDays = 1 By the way, thanks for sharing the code. |
If you don't want to be addicted to Linux, Never ever try using it. ~/home/kenno |
 |
|
Topic  |
|