Click to See Complete Forum and Search --> : My new no tables layout


Jupac
11-22-2003, 12:24 AM
I just finsh the layout i still need better picturs tho but
the html validate and css except for the ones i just put in need to adjust those

Any way i could im prove

thx

http://jlz.vze.com


It looks boring now too

PeOfEo
11-22-2003, 01:09 AM
Yea it needs some content :) Good job though. Its fluid and valid.

pyro
11-22-2003, 10:26 AM
I'd wonder about this part:

Copyright © 2000-2003 John's Lakers Zone™ or JLZ™
All parts of this website are property of John Tran® but can be used with permission. (so just ask!)
All rights Reserved.
Why do I doubt that John Tran is a registered mark? Oh yes, because the United States Patent and Trademark Office has no record of it...

From http://www.uspto.gov/web/offices/tac/doc/basic/register.htm
When can I use the trademark symbols TM, SM and ®?

Any time you claim rights in a mark, you may use the "TM" (trademark) or "SM" (service mark) designation to alert the public to your claim, regardless of whether you have filed an application with the USPTO. However, you may use the federal registration symbol "®" only after the USPTO actually registers a mark, and not while an application is pending. Also, you may use the registration symbol with the mark only on or in connection with the goods and/or services listed in the federal trademark registration.

PeOfEo
11-22-2003, 10:44 AM
Its not like a copy write or trade mark ever keeps people from stealing your code anyway :P

Jupac
11-22-2003, 10:47 AM
lol i just made that up only newb will listen to that :)

pyro
11-22-2003, 11:48 AM
But since it is not legal, you might want to get rid of it... :rolleyes:

Jupac
11-22-2003, 11:52 AM
umm ok any thing else

PeOfEo
11-22-2003, 11:53 AM
How did you do that page processing time? Is that asp.net? Is it just two now fuctions before the code and after the code and a difference?
Edit: Page loaded 0.320 in seconds
also how come you have the server status of about 5 or 6 major hosts? Its not good etiquite to tie in that many servers, hosts tend to get pissy about stuff like that. I only use 2 servers, one if my wmh server and then my file server that I pay for (comes w/ my cable internet) for all of my big files

Jupac
11-22-2003, 12:16 PM
/*
* The HiPerfTimer class was made by Daniel Strigl
* http://www.codeproject.com/csharp/highperformancetimercshar.asp
*/

using System;
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.Threading;

namespace yaf.classes {
internal class HiPerfTimer {
[DllImport("Kernel32.dll")]
private static extern bool QueryPerformanceCounter(out long lpPerformanceCount);

[DllImport("Kernel32.dll")]
private static extern bool QueryPerformanceFrequency(out long lpFrequency);

private long startTime, stopTime;
private long freq;

// Constructor
public HiPerfTimer(bool bStart) {
startTime = 0;
stopTime = 0;

if (QueryPerformanceFrequency(out freq) == false) {
// high-performance counter not supported
throw new Win32Exception();
}

if(bStart) Start();
}

// Start the timer
public void Start() {
// lets do the waiting threads there work
Thread.Sleep(0);

QueryPerformanceCounter(out startTime);
}

// Stop the timer
public void Stop() {
QueryPerformanceCounter(out stopTime);
}

// Returns the duration of the timer (in seconds)
public double Duration {
get {
return (double)(stopTime - startTime) / (double) freq;
}
}
}
}


the site is here http://www.codeproject.com/csharp/highperformancetimercshar.asp just play aroud with it

PeOfEo
11-22-2003, 12:20 PM
I prefer not to use c# :P. But that is doing basically what I thought it did. It takes the time before execution of some code, then after the execution and subtracts them

Jupac
11-22-2003, 12:23 PM
yea but i dont relly get vb yet

pyro
11-22-2003, 12:46 PM
Hey Peo... Out of curiosity, could that code be shortened down a lot? In PHP it wouldn't be half that long (it'd probably be a couple of lines...), so I was curious if it was just the way it was written, or if that much code was really needed.

Jupac
11-22-2003, 12:49 PM
yes it can

PeOfEo
11-22-2003, 12:55 PM
Originally posted by pyro
Hey Peo... Out of curiosity, could that code be shortened down a lot? In PHP it wouldn't be half that long (it'd probably be a couple of lines...), so I was curious if it was just the way it was written, or if that much code was really needed. yes it can lol a whole lot, here is the equiv in vb

Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
dim starttime, endtime as date
starttime = now()
some block of code to be executed here
endtime = now()
response.write(DateDiff(DateInterval.Second,starttime,endtime))
end sub

I need to look into this a little more though because it just shows 0, because it is just the seconds, I need to get the mili secs, Ill probably have to convirt the values to a numeric form and subtract them the old way to get something accurate. I want to see how long it takes my server to process pages out of curiousity. So maybe sometime Ill work on it. On my server I have a thing that shows the server uptime, the peak memory useage, the start time, and some other awesome stuff.

pyro
11-22-2003, 02:30 PM
Ok, I thought it could be so... ;)

Here it is in PHP, if anyone cares:

<?PHP
$starttime = microtime();

##code below here

for ($i=0; $i<1000000; $i++); #loop to a million to take some time

## code above here

$endtime = microtime();
echo $endtime-$starttime;
?>

DanUK
11-25-2003, 08:35 AM
Wonderful pyro, thanks.
exactly what i wanted :)

Some weird "-" before the actual generaration time, but I can live with that ;)

Regards,