Author |
Topic  |
snaayk
Senior Member
   
USA
1061 Posts |
Posted - 23 September 2002 : 17:34:03
|
quote: Originally posted by dayve
have you seen the top ten snaayk? I would say it's an impossible task.
nah. I for one say that all team members rewrite evey page in the Snitz application: twice. Once with response.writes, once without.
All in favor??  |
 |
|
BWJM
Junior Member
 
Canada
193 Posts |
Posted - 23 September 2002 : 18:18:47
|
quote: Originally posted by snaayk
nah. I for one say that all team members rewrite evey page in the Snitz application: twice. Once with response.writes, once without.
All in favor?? 
Uh, no.  |
 |
 |
|
Gremlin
General Help Moderator
    
New Zealand
7528 Posts |
Posted - 23 September 2002 : 18:26:22
|
quote: Originally posted by BWJM
OK, who's online that knows ASP.net? dayve? I can't seem to include a Function or Sub at the bottom of my script like I used to in regular ASP. dayve, if you're online, hop on AIM and ring me up please
.NET functions look something like this (copied from my stats script)
Private Function GetColorPalette() As ColorPalette
' Make a new Bitmap object to get its Palette.
Dim bitmap As Bitmap = New Bitmap(1, 1, PixelFormat.Format8bppIndexed)
Dim palette As ColorPalette = bitmap.Palette ' Grab the palette
bitmap.Dispose()
Return palette ' Send the palette back
End Function
|
Kiwihosting.Net - The Forum Hosting Specialists
|
 |
|
BWJM
Junior Member
 
Canada
193 Posts |
Posted - 23 September 2002 : 18:52:24
|
I saw that already... I tried just appending that function at the bottom of my script and it bailed because it won't allow functions within a sub or something. I don't have any Subs or Functions in this script already. It just starts with commands right from the top. |
 |
 |
|
BWJM
Junior Member
 
Canada
193 Posts |
Posted - 23 September 2002 : 19:37:21
|
quote: Originally posted by BWJM
Yes, my script is counting total keys, not total keys contributed. The way around this may be very difficult. 
Ah, another insurmountable obstacle overcome! What joy it brings to happily report that my stats report now delivers high quality, real-time information including real team totals, not the total of all keys typed by team members.
Transparency may require a total code rewrite... something I'm not terribly thrilled to attempt to implement so I think I'll stick with the blue on white with a black border.  |
 |
 |
|
BWJM
Junior Member
 
Canada
193 Posts |
Posted - 23 September 2002 : 20:47:16
|
Alright... I'm about to release a stable version! This will be FULLY CUSTOMIZABLE in that all colours, alignment, bold, each line, will be controlled by parameters in the URL. All have defaults (including the UserID) so you can't screw up. I'm just putting the finishing touches on the parameter parsing and should be done within a half hour.
NB: Transparency is not available. Future version. Maybe. |
 |
 |
|
BWJM
Junior Member
 
Canada
193 Posts |
Posted - 23 September 2002 : 21:32:13
|
Project Dolphin Statistics Image Display v0.99 (Beta)
Author: BWJM (bwjm @ intelogic.net)
This file will query a website to obtain statistics about a specified user for the Project Dolphin keypress counting project and output the statistics as a GIF image.
Inputs: (All Optional) - UserID (integer - Project Dolphin UserID) - FontSize (integer - Font Size in Pts) - Bold (boolean - True or False) - Align (string - Left, Center or Right) - TeamName (boolean - Display Team Name Line) - MemberName (boolean - Display Member Name Line) - Since (boolean - Display Since Date Line) - TotalKeys (boolean - Display Total Keys Line) - TeamContribution (boolean - Display Team Contribution) - Average (boolean - Display Average Keys Per Day Line) - Ranks (boolean - Display User and Team Ranks Line) - TeamTotal (boolean - Display Team Total Line) - FontColour (string - Font Colour) - BgColour (string - Background Colour) - EdgeColour (string - Border Colour)
Outputs: - Graphical Image (in GIF format)
Example:
<IMG src="projectdolphin.aspx?Bold=True&UserID=24763&TeamContribution=False&Ranks=False&EdgeColour=DarkBlue&BgColour=White" border="0" alt="Join Team Broken Machine!"> Notes:
Credit goes to dayve for creating the initial version of this script that this version was spawned from. Thanks! |
 |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 23 September 2002 : 21:50:37
|
LOL, you gave us everything but the code ;) |
|
 |
|
BWJM
Junior Member
 
Canada
193 Posts |
Posted - 23 September 2002 : 22:04:56
|
lol - The code is available upon request and will be emailed to those who have already requested it. |
 |
 |
|
redbrad0
Advanced Member
    
USA
3725 Posts |
|
BWJM
Junior Member
 
Canada
193 Posts |
Posted - 23 September 2002 : 23:32:08
|
Just a couple examples here:

 Both stats displays are running from the exact same script but using different parameters. |
 |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 24 September 2002 : 00:43:24
|
quote: Originally posted by BWJM
lol - The code is available upon request and will be emailed to those who have already requested it.
thank you sir, impressive ;) |
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 24 September 2002 : 01:13:16
|
is the latency in displaying the image due to the way it gets the Team Totals? so the bigger the team the longer the Team Total takes? they should really make it easier to get that number. I like your code structure, some pretty impressive code tactics ... thanks. |
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 24 September 2002 : 01:53:46
|
I decided to cheat to get the team totals easier. thought of it after Richard told me about ASPTear but I used the XML object instead. Seems full proof, I have tried it with a bunch of other teams and the results were fast and perfect every time
Broken Machine Grand Total
I am going to see if there is a cleaner way of doing this but for now it works.
This script basically reads the total from this page:
http://project-dolphin.net/cgi-bin/browse.cgi?mode=team-look&step=look-this-team&TeamID=1839
I almost wonder if it would be quicker to use this: InStrRev( ) , that way I can read from the end of the file first where the grand total resides. |
|
Edited by - dayve on 24 September 2002 01:57:39 |
 |
|
redbrad0
Advanced Member
    
USA
3725 Posts |
|
Topic  |
|