code logs -> 2006 -> Mon, 04 Dec 2006< code.20061203.log - code.20061205.log >
--- Log opened Mon Dec 04 00:00:22 2006
00:14 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has joined #code
00:58 McMartin [~mcmartin@Nightstar-9740.dsl.pltn13.pacbell.net] has quit [Quit: brb]
02:00 Serah [~Shemhazai@Nightstar-8901.ds1-ba.adsl.cybercity.dk] has quit [Connection reset by peer]
02:00 Serah [~Shemhazai@Nightstar-8901.ds1-ba.adsl.cybercity.dk] has joined #Code
02:23 * Janus made his first, fully operation, deployable, enjoyable program!
02:27
<@Vornicus-Latens>
Congratulations.
02:27
<@Vornicus-Latens>
What's it do?
02:27
< MyCatOwnz>
Compute tea.
02:32
< Janus>
On top of that, it also reads a few .txt files with some survey results, and outputs their results in a new .txt file. It takes only 4 commands as well.
02:36 * Janus learned many things while doing this. Namely, memset() doesn't work on integer arrays, '/n' is used quite frequently, and fprintf() was made by God, right after he created the kittens and ice-cream.
02:41 MyCatOwnz is now known as MyCatBreaksHisComputer
02:44 * Vornicus-Latens is learning Ruby database bindings and web services.
02:49
<@ToxicFrog>
...memset() does so work on integer arrays.
02:49
<@ToxicFrog>
And it's \n
02:49
<@ToxicFrog>
Not /n
02:51
< Janus>
Alright, I typoed the '\n', but I'll fight you to the death over memset(). D:
02:52
<@ToxicFrog>
Look, I've used it. A lot. It works on integer arrays.
02:53
<@ToxicFrog>
If it's not working, than either you aren't using it correctly, the implementation your system provides doesn't work (and I don't know of any systems where this is the case; even windows has a working memset()), or it is working but not in the way you expect it to.
02:54
< Janus>
All I'm wary is that where I used it, works only when replaced with a simple for(...){that[n] = 0;} And the way it was utilized was "memset(that, 0, 256);"
02:55
<@ToxicFrog>
This is an array of int?
02:55
< Janus>
Yes.
02:55
<@ToxicFrog>
You need memset(that, 0, sizeof(int)*256)
02:55
<@ToxicFrog>
The size argument is in bytes, not in array elements.
02:56
< Janus>
...
02:56
< Janus>
Oh.
02:56
<@ToxicFrog>
If your array elements are larger than one byte - and ints, on modern systems, are 4 bytes each - you need to multiply the number of array elements by the size of the type in order to get the number of bytes.
02:56
<@ToxicFrog>
"The memset() function fills the first n bytes of the memory area pointed to by s with the constant byte c."
02:57 * Janus is dragged from the arena, battered and bruised.
03:00
< Janus>
My apoligies then, I should have read the description more carefully, that that would explain why the first fourth of the array was initialized while the rest wasn't.
03:08 Serah [~Shemhazai@Nightstar-8901.ds1-ba.adsl.cybercity.dk] has quit [Quit: Don't try to read the quit message, that is impossible. Instead only realize the thruth; "there is no quit message" and you will see it is not you who read the quit message but the quit message who reads you.]
03:12 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has quit [Quit: sdfadfasdf]
03:50 MyCatBreaksHisComputer [~mycatownz@Nightstar-379.dsl.in-addr.zen.co.uk] has quit [Quit: Lost terminal]
04:10 * Vornicus-Latens tries to figure out the schema for trades
04:13
<@Vornicus-Latens>
an individual trade targets many players, and many resources.
04:15
<@Vornicus-Latens>
The resources of a trade can be considered as positive and negative numbers for each resource - the initiator of a trade gets the numbers added to his resources, the other gets them subtracted
04:28
<@Vornicus-Latens>
An individual trade can be: accepted, rejected, withdrawn, failed because of lack of resources, or accepted by a different offeree.
04:31
<@Vornicus-Latens>
rejection or failure of a trade offer with an individual offeree does not affect the state of the trade with others; withdrawal of a trade offer makes it so no offeree can accept it; accepting an offer makes the offer be withdrawn from other offerees.
04:33
<@Vornicus-Latens>
...this appears to be actually the most complicated part of the whole trade thing.
04:34
<@Vornicus-Latens>
or, rather, of the whole schema
04:38 * Vornicus-Latens fiddles
04:43 ReivWork is now known as Reiver
04:56
<@Vornicus-Latens>
okay, that looks almost right.
05:41
<@Vornicus-Latens>
almost.
05:47
<@Vornicus-Latens>
gnar.
06:04 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
06:04 mode/#code [+o Chalcedon] by ChanServ
06:09 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
06:09 mode/#code [+o Chalcy] by ChanServ
06:10 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
06:16 AnnoDomini [~fark.off@Nightstar-29042.neoplus.adsl.tpnet.pl] has joined #Code
06:59 Ev3 [~-@87.72.36.ns-26407] has quit [Connection reset by peer]
07:00 Ev3 [~-@87.72.36.ns-26407] has joined #Code
07:44 * Reiver frowns at math.
07:44
<@Reiver>
I have an image of 45.1 x 297.2 cm; 17.8 x 117.0 inches.
07:45
<@Reiver>
If one were to scale it so it's X axis were equivalent to an A4 page in portrait, how many pages would it take up vertically?
07:45
<@Reiver>
I think I keep getting my scaling wrong.
07:46
<@Vornicus-Latens>
4.6
07:46
<@Reiver>
07:46
<@Reiver>
I got 7.2.
07:46
<@Reiver>
I did something wrong didn't I?
07:46
<@Reiver>
>.>
07:47
<@Vornicus-Latens>
yep
07:47
<@Reiver>
Right.
07:47
<@Reiver>
Thanks!
07:47
<@Vornicus-Latens>
anyway, an A-ratio'd page k inches wide is k*sqrt(2) inches tall
07:48
<@Reiver>
...I did not know that.
07:48
<@Reiver>
This is good to know. Thankye!
07:48
<@Vornicus-Latens>
Same is true of B-ratio and C-ratio.
07:48
<@Reiver>
(This is why two A-ratio pages side by side are the same size as one A-ratio page one size bigger?
07:48
<@Vornicus-Latens>
Yep
07:49
<@Reiver>
This was done, perchance, on purpose?
07:49
<@Vornicus-Latens>
Yep.
07:49
<@Vornicus-Latens>
An paper has area 1/(2**n) square meters
07:49
<@Reiver>
To facilitate ease of making books etc, via the simple application of folding one-size-large in half after stapling in the middle?
07:49
<@Reiver>
...OK
07:51
<@Vornicus-Latens>
And Bn paper has short side length 1/(sqrt(2)**n)
07:52
<@Vornicus-Latens>
And Cn paper is just wacky, it's the geometric mean of An and Bn of the same size.
07:53
<@Reiver>
What, exactly, made them leap up into the air wild-eyed, and decide suddenly to base the size of paper on mathematical concepts and formula?
07:53
<@Vornicus-Latens>
...dude, have you /seen/ american paper sizes?
07:54
<@Reiver>
I take it the american ones don't follow any useful standard?
07:55
<@Vornicus-Latens>
There are /three/ paper sizes that are /approximately/ A4.
07:55
<@Vornicus-Latens>
...correction, /four/
07:55
<@Reiver>
So they decided to set a standard.
07:56
<@Vornicus-Latens>
Let us praise the inventors of A-series paper for being /sane/!
07:56
<@Reiver>
And if they were gonna make a standard, they may as well make it based off the beauty of mathematical formulae, applied to an arbitary metric unit, yes? :)
07:56
<@Vornicus-Latens>
Yes.
07:57
<@Reiver>
Clearly a mathematician proposed it.
07:57
<@Vornicus-Latens>
You don't need to know much math to do this.
07:57
<@Reiver>
No-one else would think to use 1/$number for such things, and would likely have taken something far more sane like "1.5x the height of the width". >.>
07:58
<@Vornicus-Latens>
Plenty of people would. You ever had to blow up a photo?
07:59
<@Reiver>
No.
07:59
<@Reiver>
But go on.
08:00
<@Vornicus-Latens>
The point of all the sizes being like this is that this way they're all the same ratio, and you don't have to think to change the size.
08:00
<@Reiver>
Wouldn't, say, 1:1.5 also maintain a similar ratio as it scaled up?
08:01
<@Vornicus-Latens>
If you try to blow up an 8.5x11 picture onto an 11x17 thing, you stretch it by about 20%.
08:01
<@Vornicus-Latens>
If you try to blow up an A4 picture onto an A3, you don't stretch it.
08:01
<@Reiver>
2x3 does not scale to a 4x6?
08:02
<@Vornicus-Latens>
/and/ two A4s fit neatly onto an A3.
08:02
<@Vornicus-Latens>
2x3 /does/ scale to 4x6, it does /not/ scale to 3x4
08:02
<@Reiver>
...Why would you expect it to scale to 3x4?
08:02
<@Reiver>
That seems an odd size to scale things up by?
08:03
<@Vornicus-Latens>
Because that is what A-series allows you to do - to double the area of a page without changing the ratio.
08:03
<@Vornicus-Latens>
or halve it.
08:03
<@Reiver>
Ah, double the area.
08:03
<@Reiver>
OK.
08:05 Vornicus-Latens is now known as Vornicus
08:16
<@Vornicus>
http://www.boingboing.net/2006/12/03/jewelry_for_geek_gir.html <--- more awesome earrings.
08:16
<@Vornicus>
(and, yes, it is apropos to this channel.)
08:19
<@Reiver>
...Yes. Yes it is.
08:19 * Reiver approve!
09:08 Vornicus is now known as Vornicus-Latens
09:23 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
09:28 Reiver is now known as ReivZzz
10:00 You're now known as TheWacher[wr0k]
10:35 You're now known as TheWatcher
11:58 AnnoDomini [~fark.off@Nightstar-29042.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
12:04 AnnoDomini [~fark.off@Nightstar-29756.neoplus.adsl.tpnet.pl] has joined #Code
12:28 Thaqui [~Thaqui@Nightstar-18234.jetstream.xtra.co.nz] has quit [Client exited]
12:58 MyCatOwnz [~mycatownz@Nightstar-379.dsl.in-addr.zen.co.uk] has joined #code
14:34 Fish [~Shemhazai@Nightstar-8901.ds1-ba.adsl.cybercity.dk] has joined #Code
14:35
< Fish>
HILFE HILFE!
14:38 * MyCatOwnz throws Fish inna bucket of water.
15:01 EvilDarkLord is now known as David
15:30 MyCatOwnz [~mycatownz@Nightstar-379.dsl.in-addr.zen.co.uk] has quit [Quit: No ducks here.]
15:36
< Fish>
I need help configurating apache for subdomains.
15:37
<@David>
You've tried Google? http://content.websitegear.com/article/subdomain_setup.htm
17:11 David is now known as EvilDarkLord
17:19 You're now known as TheWatcher[afk]
17:33 ReivZzz is now known as Reiver
17:34 Reiver is now known as ReivWork
17:34 ReivWork is now known as Reiver
17:36 Fish [~Shemhazai@Nightstar-8901.ds1-ba.adsl.cybercity.dk] has quit [Quit: Don't try to read the quit message, that is impossible. Instead only realize the thruth; "there is no quit message" and you will see it is not you who read the quit message but the quit message who reads you.]
17:50 Reiver is now known as ReivWork
18:11 Vornicus [~vorn@Nightstar-18307.slkc.qwest.net] has joined #code
18:11 mode/#code [+o Vornicus] by ChanServ
18:31 You're now known as TheWatcher
19:40 AnnoDomini is now known as Rudy
20:14
<@Vornicus>
...well that's kinda random.
20:14
<@Vornicus>
adduser goes "blarg", and says that it failed and so forth...
20:14
<@Vornicus>
but the user it failed to create now exists.
20:31 You're now known as TheWatcher[afk]
20:34 Safyra_Away [Safyra@Nightstar-25904.ok.ok.cox.net] has joined #code
20:36 Stephenie [Safyra@Nightstar-25904.ok.ok.cox.net] has quit [Ping Timeout]
20:53 You're now known as TheWatcher
21:18 You're now known as TheWatcher[T-2]
21:21 You're now known as TheWatcher[zZzZ]
21:23 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has joined #Code
21:37 Thaqui [~Thaqui@Nightstar-18234.jetstream.xtra.co.nz] has joined #code
21:39 Vornicus [~vorn@Nightstar-18307.slkc.qwest.net] has quit [Quit: ]
22:05 * Janus has balanced the farm entirely on the positive vibes between a New Yorkian and a Chicago Cubs Fan.
22:06
< Janus>
I'll edit and debug using Visual Studio... and compile using Dev-Cpp, which are now seated snuggly together in the same directory~
22:31 Janus is now known as Jan[dinner]
22:32 Rudy is now known as AnnoDomini
22:32 AnnoDomini [~fark.off@Nightstar-29756.neoplus.adsl.tpnet.pl] has quit [Quit: Some people find sanity a little confining.]
22:46 ReivWork [~reaverta@IRCop.Nightstar.Net] has quit [Ping Timeout]
23:38 Jan[dinner] is now known as Janus
23:57
< Janus>
Um... may I ask a small .exe question, please?
23:58
< Janus>
The game, when I go to execute it, it works hunky-dorry the way through. However, when I attempt to shut it down (e.g. cut out of the game loop), it strangely... restartes from the very beginning again.
--- Log closed Tue Dec 05 00:00:22 2006
code logs -> 2006 -> Mon, 04 Dec 2006< code.20061203.log - code.20061205.log >