Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Project Dolphin - Team Broken Machine
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 23

Jeepaholic
Average Member

USA
697 Posts

Posted - 25 September 2002 :  02:08:29  Show Profile  Visit Jeepaholic's Homepage
Thanks Dayve...here's the updated one. You're right, QUITE fast! (except when there's a "load panic" like right now!)

Al Bsharah
Aholics.com

Jeepaholics Anonymous
Broncoholics Anonymous
Network Insight
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 25 September 2002 :  02:09:49  Show Profile  Visit dayve's Homepage
I was just about to report this message:

Loadave panic! short-circuiting CGI

LOL...

Go to Top of Page

Jeepaholic
Average Member

USA
697 Posts

Posted - 25 September 2002 :  02:10:35  Show Profile  Visit Jeepaholic's Homepage
I think we've single-handedly brought it to it's knees. <grin>

Al Bsharah
Aholics.com

Jeepaholics Anonymous
Broncoholics Anonymous
Network Insight
Go to Top of Page

Jeepaholic
Average Member

USA
697 Posts

Posted - 25 September 2002 :  02:16:43  Show Profile  Visit Jeepaholic's Homepage
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
Go to Top of Page

Jeepaholic
Average Member

USA
697 Posts

Posted - 25 September 2002 :  02:23:52  Show Profile  Visit Jeepaholic's Homepage
Also, good idea might be to eventually cache the output of these images so that our own servers don't take a beating (along with the PD servers). It's quite easy...all you need is to add a directive along the lines of this:

<%@ OutputCache Duration="300" VaryByParam="*" %>

This will cache the page at the server for 5 minutes.

Some good info on it here:
http://aspalliance.com/aspxtreme/aspnet/syntax/outputcache.aspx

Al Bsharah
Aholics.com

Jeepaholics Anonymous
Broncoholics Anonymous
Network Insight

Edited by - Jeepaholic on 25 September 2002 02:31:05
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 25 September 2002 :  05:49:21  Show Profile  Visit Gremlin's Homepage
Nice tip on the caching Jeepaholic, I was just thinking about how to handle that this afternoon :)

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 25 September 2002 :  11:56:39  Show Profile  Send pdrg a Yahoo! Message
Hi Jeepaholic - just wondering what Jeepahol is?
Go to Top of Page

Jeepaholic
Average Member

USA
697 Posts

Posted - 25 September 2002 :  15:06:31  Show Profile  Visit Jeepaholic's Homepage
Jeepahol? Not sure I follow?

Al Bsharah
Aholics.com

Jeepaholics Anonymous
Broncoholics Anonymous
Network Insight
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 25 September 2002 :  15:50:26  Show Profile  Visit dayve's Homepage
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.

Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 25 September 2002 :  15:58:12  Show Profile
We just passed the 3,000,000 key counts when I pulsed another 17,000+ counts
Go to Top of Page

Jeepaholic
Average Member

USA
697 Posts

Posted - 25 September 2002 :  20:13:12  Show Profile  Visit Jeepaholic's Homepage
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
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 25 September 2002 :  20:48:01  Show Profile  Visit Gremlin's Homepage
Thanks, I've already applied it to my own scipts and it seems to work as you described :)

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 25 September 2002 :  21:10:06  Show Profile

Not much typing today
Go to Top of Page

eggyfarts
Junior Member

New Zealand
200 Posts

Posted - 25 September 2002 :  21:13:59  Show Profile
Hey Richard, why don't you join my team, "The MWP Project"

WeeVaa
http://digismooth.meatsocks.com


Cheers,
WeeVaa.

Go to Top of Page

Kenno
Average Member

Cambodia
846 Posts

Posted - 25 September 2002 :  21:24:18  Show Profile  Visit Kenno's Homepage
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
Go to Top of Page
Page: of 23 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07