#Frihost Viewing logs for 29th February 2008
[01:00:52] <Rvec> New stats available for #frihost! Check out the stats at http://www.bierkip.nl/frih
[01:23:51] Hammy (~AltF4@host213-123-214-169.in-addr.btopenworld.com) quit - Quit: 12( Ouch.. )
[03:13:13] <Rvec> anyone awake?
[06:29:39] Tobias (~blahasfaf@219-90-177-28.ip.adam.com.au) joined #frihost
[07:29:24] Netsplit: Tobias (~blahasfaf@219-90-177-28.ip.adam.com.au)
[07:29:25] Netsplit: Vrythramax (~vrythrama@pool-71-184-51-123.bstnma.east.verizon.net)
TODO: REJOIN
TODO: REJOIN
[07:30:33] sets mode #frihost +o Vrythramax
[07:31:06] Netsplit: Vrythramax (~vrythrama@pool-71-184-51-123.bstnma.east.verizon.net)
[07:31:06] Netsplit: Tobias (~blahasfaf@219-90-177-28.ip.adam.com.au)
TODO: REJOIN
TODO: REJOIN
[07:32:09] sets mode #frihost +o Vrythramax
[10:34:57] Tobias (~blahasfaf@219-90-177-28.ip.adam.com.au) quit - Quit:
[10:54:59] Tobias (~blahasfaf@219-90-177-28.ip.adam.com.au) joined #frihost
[11:14:46] Tobias (~blahasfaf@219-90-177-28.ip.adam.com.au) quit - Quit:
[12:19:50] Hellios (~helios@bzq-84-108-118-251.cablep.bezeqint.net) joined #frihost
[12:19:50] ChanServ sets mode #frihost +o Hellios
[13:01:42] Hellios (~helios@bzq-84-108-118-251.cablep.bezeqint.net) quit - Quit: So long, suckers!
[18:04:29] this-alex (~alex@gate42.plus.com) joined #frihost
[18:04:33] <this-alex> Hey this-alex :)
[18:04:41] <Rvec> hey alex
[18:04:45] this-alex (~alex@gate42.plus.com) is now known as This-Alex
[18:04:47] <This-Alex> Hey Yaron
[18:04:51] <Rvec> I am working on the bf2 stats :)
[18:04:55] <This-Alex> :)
[18:05:00] <Rvec> added something nice
[18:05:36] <This-Alex> woh
[18:05:38] <This-Alex> very nice
[18:05:40] <Rvec> :)
[18:05:47] <This-Alex> vec will get past mathiaus89 in 431 hours
[18:05:47] <This-Alex> H3adSh0tpwnz will get past rvec in 80 hours
[18:05:47] <This-Alex> H3adSh0tpwnz will get past mathiaus89 in 969 hours
[18:05:52] <This-Alex> :o
[18:06:01] <This-Alex> 969 hours?
[18:06:07] <This-Alex> how many points an hour?
[18:06:20] <Rvec> one sec I'll check your spm
[18:06:43] <Rvec> 0,777821660042 points per min for you
[18:06:52] <This-Alex> lol
[18:07:07] <Rvec> i should let that round up instead of just round
[18:07:18] <This-Alex> ceil it
[18:07:23] <Rvec> yeah
[18:07:39] <Rvec> I also added a function in it :P
[18:07:49] <This-Alex> :o
[18:07:52] <This-Alex> :)
[18:07:59] <This-Alex> lol, this site is stilen from...
[18:08:06] <This-Alex> *stolen
[18:08:09] <Rvec> :P
[18:08:24] <Rvec> well it is
[18:19:59] <Rvec> this function I made has only an echo in it
[18:20:13] <Rvec> echo "... $text ....";
[18:20:22] <This-Alex> really?
[18:20:42] <Rvec> but it's a lot easier than copying it every time
[18:20:54] <This-Alex> considered using a variable?
[18:21:34] <Rvec> the dots represent about a line of html code
[18:22:02] <Rvec> How do I use a var there?
[18:22:11] <This-Alex> !google php sprintf
[18:24:01] <Rvec> almost the same as my function :P
[18:24:07] <This-Alex> lol
[18:24:56] <Rvec> what do you think is faster?
[18:25:03] <This-Alex> sprintf
[18:25:07] <Rvec> why?
[18:25:16] <Rvec> my function is just an echo
[18:25:37] <This-Alex> custom function Vs. sprintf
[18:25:40] <This-Alex> whoops
[18:25:49] <This-Alex> !google custom function Vs. sprintf
[18:25:58] <This-Alex> !google custom function against sprintf
[19:42:23] <This-Alex> hmm
[19:42:29] <This-Alex> 2 days 4 hours to go :-/
[19:43:02] <Rvec> to what?
[19:43:26] <This-Alex> till I've finished downloading something
[19:43:36] <Rvec> lol
[19:43:48] <This-Alex> my up speed is greater than my down speed atm :-0
[19:43:58] <Rvec> :P
[19:44:01] <This-Alex> 100% faster O_O
[19:44:21] <This-Alex> That's a first
[19:44:27] <Rvec> mine are the same now
[19:44:35] <Rvec> both near 30
[20:06:26] <Rvec> alex you there?
[20:06:36] <Rvec> I have a bit of code I don't understand
[20:06:43] <This-Alex> no I'm away
[20:06:44] <This-Alex> :p
[20:08:46] <This-Alex> shhot
[20:08:59] <Rvec> pasting it
[20:10:39] <Rvec> http://rvec.pastebin.com/m5b4c9836
[20:11:33] <Rvec> why doesn't the when do you get them part work if I remove spm from the first array_multisort?
[20:13:49] <This-Alex> where does $id come from?
[20:14:12] <This-Alex> what is spm?
[20:14:13] <Rvec> while ($row = mysql_fetch_array( $result )) {
[20:14:13] <Rvec> $id = $row[ID];
[20:14:13] <Rvec> $nick[$id] = $row['NICK'];
[20:14:14] <This-Alex> :s
[20:14:27] <Rvec> spm is an array just like nick
[20:14:42] <This-Alex> so this is all within that loop?
[20:15:20] <Rvec> the thing on pastebin is not within another loop
[20:15:31] <Rvec> i'll paste it all
[20:16:12] <Rvec> this is the main script: http://rvec.pastebin.com/m6ae8ec1b
[20:16:30] <This-Alex> ai ge wah wah
[20:16:49] <Rvec> and this is how I get all the info: http://rvec.pastebin.com/m28d99d8a
[20:18:08] <Rvec> i didn't get the time to comment it all so some parts might still need comments :P
[20:18:23] <This-Alex> *sigh*
[20:19:11] <Rvec> oh wait I did comment
[20:19:32] <Rvec> I think it should all be commented fine
[20:20:00] <This-Alex> what is the point of $id in array.php?
[20:20:22] <Rvec> just a bit shorter and looked a bit easier to me
[20:20:40] <This-Alex> oh i see
[20:20:46] <This-Alex> didn't read the next bit
[20:21:02] <This-Alex> you know you can just do :
[20:21:14] <This-Alex> oh god
[20:21:18] <Rvec> lol
[20:21:22] <This-Alex> I've just realised what you're doing
[20:21:23] <Rvec> will that help?
[20:23:39] <Rvec> lol never took this long for you to understand my scrip
[20:23:43] <Rvec> is it that bad?
[20:23:47] <This-Alex> well
[20:23:54] <This-Alex> I suppose it's not too bad
[20:24:03] <This-Alex> just hard to jump into
[20:24:08] <This-Alex> I'm starting at the top ;)
[20:24:14] <This-Alex> seeing how you're doing it all :p
[20:24:27] <This-Alex> personally, I'd have made one big array
[20:24:44] <This-Alex> as would pretty much any other sane person ;)
[20:24:45] <This-Alex> j/k
[20:24:59] <Rvec> like $stats[$id] ?
[20:25:05] <This-Alex> no
[20:25:09] <This-Alex> like:
[20:25:15] <Rvec> $stats[$id] = $row;
[20:25:29] <This-Alex> foreach($player as $id => $data){
[20:25:44] <This-Alex> $data['lastrank']
[20:25:46] <This-Alex> etc.
[20:26:14] <Rvec> makes it a bit harder to sort it on score and weekscore
[20:26:23] <This-Alex> It's much easier to understand with your comments though :)
[20:26:30] <Rvec> :)
[20:30:06] <This-Alex> oh god
[20:30:13] <Rvec> not good?
[20:30:27] <This-Alex> I'm exaggerating ;)
[20:30:31] <This-Alex> I like doing it :p
[20:30:34] <Rvec> :P
[20:30:39] <This-Alex> It's not bad
[20:30:57] <This-Alex> just you're doing stuff like making a variable at the begining, and not using it till the end :-/
[20:31:08] <This-Alex> Then you're also doing some baaaad stuff in the array.php
[20:31:44] <Rvec> the connect or the loop?
[20:31:55] <This-Alex> $id = $row[ID];
[20:32:02] <This-Alex> $filename[$id] = $row[FILENAME];
[20:32:05] <Rvec> that is bad?
[20:32:13] <This-Alex> need the ' in the key
[20:32:20] <This-Alex> else it treats it as a constant
[20:32:27] <Rvec> ah ok
[20:32:41] <Rvec> forgot that once
[20:32:48] <This-Alex> :p
[20:32:51] <Rvec> twice :P
[20:34:16] <This-Alex> What's the problem again
[20:34:24] <This-Alex> because apart from some bad coding standards
[20:34:30] <This-Alex> I can't really see anything too wrong
[20:34:33] <This-Alex> well
[20:34:39] <This-Alex> not glaringly wrong
[20:34:40] <Rvec> why can't I remove teh $spm from the first array_multisort
[20:37:33] <Rvec> brb
[20:44:13] <This-Alex> right
[20:44:20] <This-Alex> I'm gonna have to go soon
[20:48:09] <This-Alex> I've managed to condense your while loop in array.php to ~ 4-5 lines
[20:48:40] <This-Alex> http://rvec.pastebin.com/d14d050d2
[20:48:53] <This-Alex> I suggest you rewrite the script, using the multidimensional array
[20:49:02] <This-Alex> It'll be easier in the long run
[20:49:05] <This-Alex> seriously
[20:51:05] <This-Alex> God Yaron
[20:51:21] <This-Alex> Your function can be reduced loads by using css classes :p
[20:52:09] <This-Alex> oh
[20:52:21] <This-Alex> I see what you mean about calculating weekly score...
[20:52:22] <This-Alex> well
[20:52:26] <This-Alex> scores in general
[20:52:30] <This-Alex> eurgh
[20:52:40] <This-Alex> so messy but apparently nessacery
[20:55:10] <This-Alex> g2g
[20:55:12] <This-Alex> bye
[20:55:29] <This-Alex> forget about the multi dim thing for the time being
[21:21:16] This-Alex (~alex@gate42.plus.com) quit - Ping timeout
[21:46:29] This-Alex (~alex@gate42.plus.com) joined #frihost
[21:46:31] <This-Alex> Hey This-Alex :)
[21:47:09] <This-Alex> hey all
[22:02:27] Smokey4life (spaminator@adsl-99-147-217-236.dsl.chcgil.sbcglobal.net) quit - Quit: Oops Wrong Button
[22:15:26] <Rvec> lol
[22:15:30] <Rvec> hi alex
[22:15:42] <Rvec> was just reading your suggestions :P
[22:16:39] Smokey4life (Smokey4lif@adsl-99-147-217-236.dsl.chcgil.sbcglobal.net) joined #frihost
[22:18:07] This-Alex (~alex@gate42.plus.com) quit - Ping timeout
[23:15:23] <Rvec> !lastspoke Vrythramax
[23:15:32] <Rvec> long time Vrythramax ;)
[23:44:39] samitheb1rber (~stb@hoas-fe13dd00-25.dhcp.inet.fi) quit - Client closed connection
[23:51:50] Tobias (~blahasfaf@219-90-177-28.ip.adam.com.au) joined #frihost
[23:52:18] <Tobias> Hi ^^
Script by Daniel15