code logs -> 2007 -> Fri, 18 May 2007< code.20070517.log - code.20070519.log >
--- Log opened Fri May 18 00:00:18 2007
01:19 ToxicFrog|W`rkn is now known as ToxicFrog
--- Log closed Fri May 18 02:00:26 2007
--- Log opened Fri May 18 02:00:31 2007
02:00 TheWatcher[zZzZ] [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code
02:00 Irssi: #code: Total of 17 nicks [9 ops, 0 halfops, 0 voices, 8 normal]
02:00 Irssi: Join to #code was synced in 29 secs
02:01
<@Chalcedon>
its all highly higglety pigglety
02:02
<@Vornicus>
There should be a line iterator in C#.
02:02
<@Chalcedon>
yeah... if I could find the damn thing
02:02
<@Chalcedon>
currently :
02:02
<@Chalcedon>
int working = 0;
02:02
<@Chalcedon>
foreach (char character in wordListFile)
02:02
<@Chalcedon>
{
02:02
<@Chalcedon>
string line = "";
02:02
<@Chalcedon>
if (character == '\n')
02:02
<@Chalcedon>
{
02:03
<@Chalcedon>
working++;
02:03
<@Chalcedon>
}
02:03
<@Chalcedon>
}
02:03
<@Chalcedon>
richTextBox2.Text = Convert.ToString(working);
02:03
<@Chalcedon>
returns 0
02:03
<@Chalcedon>
there are 6 \n characters
02:03
<@Chalcedon>
oh, sorry, superfluous line
02:04
<@Chalcedon>
the help file is only useful if you know /exactly/ what you're looking for.
02:04
<@Chalcedon>
'line iterator' probably won't show anything up unless that's what it's actually called.
02:04 * Chalcedon will check however.
02:06 * Vornicus hunts.
02:07
<@Chalcedon>
I think I've found a way to read a line.
02:07
<@Chalcedon>
The examples always seem to be overly complex.
02:11
<@Chalcedon>
we have progress
02:11 * Vornicus determines that MSDN blows goats.
02:12 * Chalcedon quite agrees
02:13
<@Chalcedon>
I think what's bugging me the most is I could do this fairly easily in python.
02:13 * Chalcedon hunts for foodings
02:13
<@Chalcedon>
(sorry, thinking on an empty stomach really doesn't work for me)
02:14
<@Vornicus>
len([line for line in file])
02:14
<@Vornicus>
It's a one liner in Python.
02:14
<@Vornicus>
Well, okay, you really shouldn't do it that way though
02:16
<@Chalcedon>
yes, but even doing it properly is considerably easier
02:18
<@Vornicus>
sum((1 for line in file(foo)))
02:20
<@Vornicus>
actually you don't even need that many parens. sum(1 for line in file(foo))
02:21
< ToxicFrog>
Similar in Lua. In bash it's just wc -l < foo.
02:33
<@Chalcedon>
are all characters in single quotes?
02:34
<@Chalcedon>
or just newline/tab type characters?
02:35
<@Chalcedon>
never mind, I found it.
02:37
< ToxicFrog>
All characters.
02:56 * Chalcedon eyes
02:56
<@Chalcedon>
there has /got/ to be a better way of doing that
03:04 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Quit: Z?]
03:07 * Chalcedon finds a better way
03:08 ReivZzz is now known as ReivClass
03:09 * Chalcedon EYES VisualStudio
03:09
<@Chalcedon>
great.
03:09
<@Chalcedon>
the IDE is unstable. Wonderful.
03:14
<@Raif>
That'll teach you to try and program things.
03:27
<@Chalcedon>
well, it'll certainly teach me to try and program things in C#
03:54 Thaqui [~Thaqui@Nightstar-25913.jetstream.xtra.co.nz] has joined #code
03:54 mode/#code [+o Thaqui] by ChanServ
04:06 Derakon [~Derakon@Nightstar-12737.sea2.cablespeed.com] has joined #code
04:06 mode/#code [+o Derakon] by ChanServ
04:06 * Derakon considers the case for AABB dynamic objects and convex polygon static objects.
04:07
<@Derakon>
I.e. anything that moves, I get lazy with. But I need to be able to sensically collide with oddly-shaped terrain.
04:20
<@Pi>
!wtfis AABB
04:20
<@Derakon>
Axis-aligned bounding box.
04:20
<@Pi>
oic.
04:25
<@Derakon>
The main annoying thing about this is that now I have to associate polygons with certain frames of animation.
04:26
<@Derakon>
It's just a bunch of extra bookkeeping. >.<
04:26
<@Vornicus>
That or you could try a vaguely skeletal model.
04:27
<@Derakon>
What're you trying to do, kill me?
04:27
<@Vornicus>
Point
05:03 * Derakon finds himself tempted to assign to the this pointer.
05:10
<@Vornicus>
Don't do it, man
05:19 * Derakon stands in low water, jumps, does a wall jump, and rapidly goes to morph ball to fit into a slot. Whee!
05:19
<@Derakon>
All for a missile pack and energy tank that I could have trivially retrieved after getting the Gravity suit.
05:23
<@Vornicus>
heh
05:23
<@Vornicus>
where are you?
05:23
<@Vornicus>
Or is this a mod?
05:23
<@Derakon>
Metroid Legacy.
05:24
<@Vornicus>
ah. I got like 70% on my first and only run through that
05:25
<@Derakon>
It's the only one of the mods I've found that I can stand to play.
05:25
<@Derakon>
As the others all appear to assume that you're willing to use savestates every half-second.
06:28
<@Derakon>
Okay, I've re-inserted polygon code into the engine. It *should* now load polygons, associate them with frames of animation, and then utterly ignore them when it comes time to do collision detection.
06:29
<@Derakon>
Sadly, instead it appears to do a bus error. *sigh*
06:29
<@Derakon>
Oh. Right, silly me.
06:46 ReivClass is now known as Reiver
06:52 Derakon is now known as Derakon[AFK]
06:55 * Chalcedon eyes
06:55
<@Chalcedon>
now I have a /different/ problem with my random number generator.
06:56
<@Chalcedon>
it consistently returns /4 different/ numbers. When the range is 1-6 inclusive, it should regularly have two numbers the same of four.
06:59
<@Vornicus>
!dice 6P4
06:59
< KarmaBot>
[Vornicus] 6P4 = 6.
06:59
<@Vornicus>
...you're not who I was expecting.
06:59 Schlock [~schlock@Nightstar-6875.hsd1.wa.comcast.net] has joined #code
06:59 mode/#code [+v Schlock] by ChanServ
06:59
<@Vornicus>
!dice 6P4
06:59
<+Schlock>
Dice Rolled For Vornicus: 6P4 = 360
06:59
<@Vornicus>
That's the number I was looking for.
06:59
<@Vornicus>
!dice 6**4
06:59
<+Schlock>
Dice Rolled For Vornicus: 6**4 = 1296
07:00
<@Vornicus>
you're right, it should return doubles more often.
07:07 MahalGone is now known as Mahal
07:10
< Reiver>
Vorn: KarmaBot tends to be summoned when Schlock isn't handy.
07:10
< Reiver>
!roll 2d6
07:10
<+Schlock>
Dice Rolled For Reiver: 2d6 (2d6: 4 2 = 6) = 6
07:11
< Reiver>
The nicest thing about it is that it plays nice, though - it unsteals !roll whenever Schlock is sharing a channel.
07:11
< Reiver>
!2d6
07:11
< KarmaBot>
[Reiver] rolled 2d6: ((4+4)) = 8.
07:11
< Reiver>
While keeping it's other functions. :)
07:11 mode/#code [+oooooo EvilDarkLord GS|Sleeps jerith MyCatVerbs Reiver TheWatcher[zZzZ]] by Reiver
07:11
<@Vornicus>
Yeah, I just commented to Anno that I was impressed with that.
07:11 mode/#code [+o ToxicFrog] by Reiver
07:11
<@Reiver>
in PM?
07:11
<@Vornicus>
No, in #dnd
07:12
<@AnnoDomini>
I recall that Reiver was the one who commissioned that function.
07:12
<@Reiver>
With the threat of large sticks. :)
07:12
<@AnnoDomini>
:D
07:13
<@Vornicus>
!1296/360
07:13
< KarmaBot>
[Vornicus] 1296/360 = 3.6.
07:23
<@MyCatVerbs>
Bwuh. When'd Schlock arrive?
07:24
<@Vornicus>
Just now.
07:26 McMartin [~mcmartin@Nightstar-8724.dsl.pltn13.sbcglobal.net] has joined #code
07:26 mode/#code [+o McMartin] by ChanServ
07:40 Derakon[AFK] [~Derakon@Nightstar-12737.sea2.cablespeed.com] has quit [Connection reset by peer]
07:55 Forjadon [~Forjadon@Nightstar-1216.ue.woosh.co.nz] has joined #code
07:55 mode/#code [+o Forjadon] by ChanServ
08:02 You're now known as TheWatcher
08:15 Forjehdon [~Forjadon@Nightstar-1216.ue.woosh.co.nz] has joined #code
08:15 Forjadon [~Forjadon@Nightstar-1216.ue.woosh.co.nz] has quit [Connection reset by peer]
08:16 Forjehdon is now known as Forjadon
08:24 mode/#code [+o Forjadon] by Reiver
08:24 mode/#code [+v KarmaBot] by Reiver
08:24 mode/#code [+o KarmaBot] by Reiver
08:24 mode/#code [-o KarmaBot] by Reiver
08:38 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code
08:38 mode/#code [+o gnolam] by ChanServ
08:48 Chalcedon [~Chalcedon@Nightstar-1216.ue.woosh.co.nz] has quit [Quit: Gone]
08:52 KBot [~karma.bot@Nightstar-29119.neoplus.adsl.tpnet.pl] has joined #Code
08:52 AnnoDomini [~farkoff@Nightstar-29036.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
08:53 KarmaBot [~karma.bot@Nightstar-29036.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
08:53 KBot is now known as KarmaBot
08:59 AnnoDomini [~farkoff@Nightstar-29119.neoplus.adsl.tpnet.pl] has joined #Code
08:59 mode/#code [+o AnnoDomini] by ChanServ
09:01 Vornicus is now known as Vornicus-Latens
09:43
<@Reiver>
<kimos> You seem (in my (humble) opinion (which doesn't mean much)) to be (or possibly could be) more of a Lisp programmer (but I could be (and probably am) wrong).
09:52 Mahal [~Mahal@Nightstar-12512.worldnet.co.nz] has quit [Connection reset by peer]
09:54 Mahal [~Mahal@Nightstar-12512.worldnet.co.nz] has joined #Code
09:54 mode/#code [+o Mahal] by ChanServ
10:20
<@GS|Sleeps>
Reiver: hilarious.
10:21 GS|Sleeps is now known as GeekSoldier
10:21
<@Reiver>
Sarcasm?
10:25
<@GeekSoldier>
no, serious.
10:25
<@Reiver>
Ha. :p
10:26
<@GeekSoldier>
I enjoy scheme, and moreover scheme-related humour.
10:31
<@MyCatVerbs>
http://www.folklore.org/StoryView.py?project=Macintosh&story=Close_Encounters_of _the_Steve_Kind.txt
10:31
<@MyCatVerbs>
Bwahahahahhahahahahhah.
10:31
<@GeekSoldier>
hehehe.
10:51 Forjadon [~Forjadon@Nightstar-1216.ue.woosh.co.nz] has quit [Quit: Leaving]
11:06 Mahal is now known as MahalBEDD
11:19 Forjadon [~Forjadon@Nightstar-1216.ue.woosh.co.nz] has joined #code
11:19 mode/#code [+o Forjadon] by ChanServ
11:19 Forjadon is now known as Chalcedon
11:38 GeekSoldier_ [~Rob@Nightstar-3942.pools.arcor-ip.net] has joined #code
11:39 GeekSoldier [~Rob@Nightstar-4666.pools.arcor-ip.net] has quit [Ping Timeout]
12:17 Chalcedon [~Forjadon@Nightstar-1216.ue.woosh.co.nz] has quit [Quit: Leaving]
12:34 Thaqui [~Thaqui@Nightstar-25913.jetstream.xtra.co.nz] has left #code [Leaving]
13:41 AnnoDomini [~farkoff@Nightstar-29119.neoplus.adsl.tpnet.pl] has quit [Quit: If nothing we do matters, all that matters is that we do.]
13:45 AnnoDomini [~farkoff@Nightstar-29119.neoplus.adsl.tpnet.pl] has joined #Code
13:45 mode/#code [+o AnnoDomini] by ChanServ
13:50 AnnoDomini [~farkoff@Nightstar-29119.neoplus.adsl.tpnet.pl] has quit [Quit: Don't trust the skull.]
13:53 AnnoDomini [~farkoff@Nightstar-29119.neoplus.adsl.tpnet.pl] has joined #Code
13:53 mode/#code [+o AnnoDomini] by ChanServ
14:16 Pi [~sysop@Nightstar-6875.hsd1.wa.comcast.net] has quit [Ping Timeout]
14:17 Schlock [~schlock@Nightstar-6875.hsd1.wa.comcast.net] has quit [Ping Timeout]
15:23 Pi [~sysop@Nightstar-6875.hsd1.wa.comcast.net] has joined #code
15:23 mode/#code [+o Pi] by ChanServ
15:23 Schlock [~schlock@Nightstar-6875.hsd1.wa.comcast.net] has joined #code
15:24 mode/#code [+v Schlock] by ChanServ
15:53 Reiver is now known as ReivZzz
16:21 You're now known as TheWatcher[afk]
16:32 You're now known as TheWatcher
17:18 You're now known as TheWatcher[afk]
19:02 You're now known as TheWatcher
19:06 AnnoDomini is now known as Lerhir
19:35 GeekSoldier_ is now known as GeekSoldier
19:36 MahalBEDD is now known as Mahal
19:46 Vornicus-Latens is now known as Vornicus
20:09 Mahal is now known as MahalGone
20:09 MahalGone [~Mahal@Nightstar-12512.worldnet.co.nz] has quit [Quit: work]
--- Log closed Fri May 18 20:59:32 2007
--- Log opened Fri May 18 20:59:43 2007
20:59 TheWatcher [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code
20:59 Irssi: #code: Total of 17 nicks [13 ops, 0 halfops, 1 voices, 3 normal]
20:59 mode/#code [+o TheWatcher] by ChanServ
21:00 Irssi: Join to #code was synced in 37 secs
21:24 Schlock [~schlock@Nightstar-6875.hsd1.wa.comcast.net] has left #code []
21:26 Chalcedon [~Chalcedon@Nightstar-1216.ue.woosh.co.nz] has joined #code
21:26 mode/#code [+o Chalcedon] by ChanServ
23:05 Lerhir [~farkoff@Nightstar-29119.neoplus.adsl.tpnet.pl] has quit [Quit: Some people find sanity a little confining.]
23:06 AnnoDomini [~farkoff@Nightstar-29119.neoplus.adsl.tpnet.pl] has joined #Code
23:06 mode/#code [+o AnnoDomini] by ChanServ
23:07 You're now known as TheWatcher[T-2]
23:07 AnnoDomini is now known as Lerhir
23:15 You're now known as TheWatcher[zZzZ]
23:36 GeekSoldier is now known as GS|Bed
23:45 Lerhir is now known as AnnoDomini
--- Log closed Sat May 19 00:00:32 2007
code logs -> 2007 -> Fri, 18 May 2007< code.20070517.log - code.20070519.log >