code logs -> 2007 -> Wed, 17 Jan 2007< code.20070116.log - code.20070118.log >
--- Log opened Wed Jan 17 00:00:50 2007
00:51 Derakon[AFK] is now known as Derakon
04:06 EvilDarkLord [althalas@Nightstar-15301.a88-115-211-62.elisa-laajakaista.fi] has quit [Operation timed out]
04:06 EvilDarkLord [althalas@Nightstar-15301.a88-115-211-62.elisa-laajakaista.fi] has joined #code
04:46 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
04:46 mode/#code [+o Chalcy] by ChanServ
04:47 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
04:55 ReivZzz is now known as Reiver
05:09 McMartin [~mcmartin@Nightstar-10827.dsl.pltn13.pacbell.net] has quit [Quit: brb]
05:14 MyCatSleeps is now known as MyCatVerbs
05:36 Vornicus-Latens is now known as Vornicus
05:38 ChalcyGone [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
05:39 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
06:16 AnnoDomini [~farkoff@Nightstar-29223.neoplus.adsl.tpnet.pl] has joined #Code
06:20 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
06:20 mode/#code [+o Chalcy] by ChanServ
06:21 ChalcyGone [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
06:27 MahalWORK is now known as Mahal
07:00 Derakon is now known as Derakon[AFK]
07:34 Reiver is now known as ReivOut
07:38 ChalcyGone [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
07:39 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
07:42 ChalcyGone is now known as Chalcedon
08:51 ReivOut is now known as Reiver
09:07 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Quit: ]
09:31 MyCatVerbs is now known as MyCatDoesStuff
09:41 jerith [~jerith@IRCop.Nightstar.Net] has joined #code
09:41 mode/#code [+o jerith] by ChanServ
10:25 You're now known as TheWatcher[wr0k]
10:53 Reiver is now known as ReivZzz
11:08
< ReivZzz>
You open one of the 998 boxes on this floor and find...
11:08
< ReivZzz>
A book titled "Programming in Human" which, when read, formats and rewrites the reader's mind.
12:02 Vornicus [~vorn@ServicesOp.Nightstar.Net] has quit [Ping Timeout]
12:02 Vornicus [~vorn@67.50.40.ns-3674] has joined #code
13:02 You're now known as TheWatcher[afk]
13:09 MyCatDoesStuff is now known as MyCatVerbs
13:16 MyCatVerbs [~mycatownz@Nightstar-379.dsl.in-addr.zen.co.uk] has quit [Quit: I need to close IRC, as I have too little willpower to ignore it and get on with my damn work.]
13:31 You're now known as TheWatcher[wr0k]
14:38 GeekSoldier [IceChat7@Nightstar-4104.pools.arcor-ip.net] has joined #code
14:38 Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: EvilDarkLord, Mahal
14:48 Mahal [~Mahal@Nightstar-12986.worldnet.co.nz] has joined #code
14:48 EvilDarkLord [althalas@Nightstar-15301.a88-115-211-62.elisa-laajakaista.fi] has joined #code
14:48 mode/#code [+o Mahal] by ChanServ
15:10 Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: EvilDarkLord, @Mahal
15:12 Netsplit over, joins: Mahal, EvilDarkLord
15:12 mode/#code [+o Mahal] by ChanServ
15:15 sexy_kitty [~greshrt@Nightstar-3906.sunderland.ac.uk] has joined #Code
15:15
< sexy_kitty>
Check this out ----- > http://s1.bitefight.gr/c.php?uid=16568
15:15 sexy_kitty [~greshrt@Nightstar-3906.sunderland.ac.uk] has left #Code []
15:20 Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: EvilDarkLord, @Mahal
15:21 Netsplit over, joins: Mahal, EvilDarkLord
15:21 mode/#code [+o Mahal] by ChanServ
15:44 MyCatVerbs [~mycatownz@Nightstar-379.dsl.in-addr.zen.co.uk] has joined #code
16:04 Netsplit Troika.TX.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: EvilDarkLord, @Mahal
16:10 You're now known as TheWatcher
16:16 MyCatVerbs [~mycatownz@Nightstar-379.dsl.in-addr.zen.co.uk] has quit [Quit: I have five copies of my work. One's the working code, laid out in my home directory. Three are tarballs, lying on the hard disks of various scattered boxen. The last, I carry around in my skull.]
16:23 mode/#code [+o Mahal] by ChanServ
16:23 Netsplit over, joins: Mahal, EvilDarkLord
17:17 You're now known as TheWatcher[afk]
17:26 AnnoDomini [~farkoff@Nightstar-29223.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
17:32 AnnoDomini [~farkoff@Nightstar-29794.neoplus.adsl.tpnet.pl] has joined #Code
17:40 ReivZzz is now known as Reiver
17:51 Reiver is now known as ReivWork
18:07 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
18:07 mode/#code [+o Chalcedon] by ChanServ
18:16
< AnnoDomini>
Hmm... Does anyone know how to make a text output center on a point, in Visual C++?
18:16
< Vornicus>
Depends on your library.
18:17
< AnnoDomini>
Um... I'm trying to do it using Device Contex.
18:17
< AnnoDomini>
*Context
18:17
< Vornicus>
However, if you don't have a direct center-align button, you usually do it by measuring the extents of your text and using that to locate the corner you /can/ choose the location of.
18:19
< AnnoDomini>
Ah.
18:19
<@ToxicFrog>
(also kind of depends whether we're talking curses, UI, or framebuffer here)
18:20
< Vornicus>
Device Context generally means framebuffer.
18:20
< Vornicus>
I think.
18:20
< AnnoDomini>
The thing that's CDC* in MS Visual C++.
18:21
< Vornicus>
Or, essentially framebuffer. Device Context is a drawing panel.
18:21
< AnnoDomini>
That's about the only thing I know more or less how to use.
18:21
< AnnoDomini>
Not that the bloody farker TA bothered to teach us that.
18:22
< Vornicus>
Really you should look into using the more high-level stuff, rich text controls, etc.
18:33 You're now known as TheWatcher
19:08
< AnnoDomini>
Okay, how did I screw this one up? http://pastie.caboo.se/33803 <- quantity is a positive integer, howmuch initially equals quantity, howmany is the counter of iterations.
19:08
< AnnoDomini>
For some reason, it infinite loops often.
19:09
< GeekSoldier>
what values does quantity get fed?
19:10
< AnnoDomini>
1 to MAXINT.
19:10
< GeekSoldier>
it seems that nothing change in this loop.
19:10
< GeekSoldier>
when is quantity modified?
19:10
< AnnoDomini>
Not in this loop.
19:11
< AnnoDomini>
It's a semi-global value, defining a lot of things.
19:11
< Vornicus>
That explains it then.
19:11
< Vornicus>
You keep reinitializing howmuch from quantity.
19:11
< GeekSoldier>
howmuch will end up being the same througdout the loop, then.
19:11
< Vornicus>
Yep.
19:11
< AnnoDomini>
What? But how?
19:12
< Vornicus>
let's say quantity = 1000
19:12
< AnnoDomini>
Oh.
19:12
< AnnoDomini>
WAIT.
19:12
< Vornicus>
what's quantity / 10?
19:12 * AnnoDomini facepalms.
19:12
< AnnoDomini>
That's supposed to be howmuch /10.
19:12 * GeekSoldier sees the lightbulb pop over AnnoDomini's head.
19:12 * AnnoDomini eats it, in anger at own lack of observation skills.
19:12
< GeekSoldier>
it's ok.
19:12
< GeekSoldier>
we've all been there.
19:13
< Vornicus>
I believe there are existing functions for exactly this job though.
19:14
< AnnoDomini>
Well, I don't know of any, so I'm improvising.
19:15 * AnnoDomini just wants to know how many digits the number has, BTW.
19:15
< Vornicus>
oh, well.
19:15
< Vornicus>
(int)log10(num)
19:15
< Vornicus>
it's not as cheap, but it's short.
19:16
< GeekSoldier>
hmm. interesting, vorn. I've never seen that.
19:16
< AnnoDomini>
Er... That would be the floor of the logarithm?
19:16 * jerith nods.
19:16
< Vornicus>
...bah, got it wrong anyway.
19:17
< Vornicus>
(int)log10(num) + 1
19:17
< Vornicus>
that's right.
19:17 Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: EvilDarkLord, @Chalcedon, @Mahal
19:17
< AnnoDomini>
Well, thanks, guys!
19:19
< GeekSoldier>
You are quite welcome.
19:19
< GeekSoldier>
glad I could help! (been a while)
19:22 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
19:22 mode/#code [+o Chalcedon] by ChanServ
19:47 Mahal [~Mahal@Nightstar-12986.worldnet.co.nz] has joined #code
19:47 EvilDarkLord [althalas@Nightstar-15301.a88-115-211-62.elisa-laajakaista.fi] has joined #code
20:24 GeekSoldier [IceChat7@Nightstar-4104.pools.arcor-ip.net] has left #code []
20:28 EvilDarkLord [althalas@Nightstar-15301.a88-115-211-62.elisa-laajakaista.fi] has quit [Ping Timeout]
20:35 Ev3 [~Shemhazai@Nightstar-28403.proxy2.balk.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.]
20:37 EvilDarkLord [althalas@Nightstar-15301.a88-115-211-62.elisa-laajakaista.fi] has joined #code
20:40 EvilDarkLord [althalas@Nightstar-15301.a88-115-211-62.elisa-laajakaista.fi] has quit [Ping Timeout]
20:42 EvilDarkLord [althalas@Nightstar-15301.a88-115-211-62.elisa-laajakaista.fi] has joined #code
21:00 You're now known as TheWatcher[afk]
21:17 You're now known as TheWatcher[
21:17 You're now known as TheWatcher
21:31 You're now known as TheWatcher[T-2]
21:34 You're now known as TheWatcher[zZzZ]
22:05 EvilDarkLord [althalas@Nightstar-15301.a88-115-211-62.elisa-laajakaista.fi] has quit [Ping Timeout]
22:06 EvilDarkLord [althalas@Nightstar-15301.a88-115-211-62.elisa-laajakaista.fi] has joined #code
22:14 DarkV [~poetinpai@Nightstar-4512.woh.res.rr.com] has joined #Code
22:14
< DarkV>
O_o
22:15 DarkV [~poetinpai@Nightstar-4512.woh.res.rr.com] has quit [Quit: I may not believe in what you say, but I will die for your right to do so. (Voltaire)]
22:31 AnnoDomini [~farkoff@Nightstar-29794.neoplus.adsl.tpnet.pl] has quit [Quit: Nnnnnggggaaaahhhhh!!!!!! It is *dancing*!!!!]
22:43 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
22:43 mode/#code [+o Chalcy] by ChanServ
22:44 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
22:47 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
23:11 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
23:11 mode/#code [+o Chalcy] by ChanServ
23:12 Chalcy is now known as Chalcedon
23:14 MyCatVerbs [~mycatownz@Nightstar-379.dsl.in-addr.zen.co.uk] has joined #code
23:54 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has joined #Code
--- Log closed Thu Jan 18 00:00:50 2007
code logs -> 2007 -> Wed, 17 Jan 2007< code.20070116.log - code.20070118.log >