code logs -> 2007 -> Mon, 03 Dec 2007< code.20071202.log - code.20071204.log >
--- Log opened Mon Dec 03 00:00:07 2007
01:39 You're now known as TheWatcher[T-2]
01:43 You're now known as TheWatcher[zZzZ]
01:51 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has quit [Quit: Z? (not bloody likely)]
02:07 Finerty is now known as Vornicus
03:00 Vornicus is now known as Vornicus-Latens
04:20
<@McMartin>
New build of I7 out.
04:21
<@McMartin>
"For any kind of value K, "list of K" is now also a kind of value."
04:34 GeekSoldier|bed is now known as GeekSoldier|work
05:15
<@ToxicFrog>
Yay
06:28
<@Reiver>
Do regexes track whitespace?
06:29
<@McMartin>
Yes.
06:30 Derakon is now known as Derakon[AFK]
06:30
<@Reiver>
What syntax thingy do I want to make it not care how much whitespace there is at a certain point? Would [ ]+ work?
06:31
<@McMartin>
No, that's just spaces
06:31
<@McMartin>
\S*, I believe, is the standard "all whitespace"
06:32 * Reiver is fairly certain that in this case, the whitespace is exclusively spaces.
06:32
<@McMartin>
Just " *" should work in that case.
06:33
<@McMartin>
" +" demands there be at least one space left
06:33
<@McMartin>
And if there's a newline at the end it won't match
06:37
<@Reiver>
Including quotemarks, inside the regex?
06:38
<@McMartin>
No.
06:38
<@McMartin>
That's because it's not obvious that a string starts with a space without them.
06:39
<@Reiver>
right.
07:50
<@Reiver>
re.search('Effect ([0-9]+) Starting Offset ' + axis + ' * := ([.0-9]+)', line):
07:50
<@Reiver>
How am I to get the two trapped values out?
07:51
<@Reiver>
And was that the correct fill-in-the-spaces syntax just after the axis was inserted?
07:58
<@ToxicFrog>
Well, you can replace " * " with " +"
07:59
<@ToxicFrog>
As they both mean "one or more ' '"
07:59
<@ToxicFrog>
(" * " being "zero or more ' ', followed by another ' ')
07:59
<@ToxicFrog>
As for how you get the captured values out - don't know, consult the Python docs
08:00
<@McMartin>
The match object has various methods you call to get them.
08:00
<@McMartin>
I think it's .group(n), or .groups()
08:19
<@Reiver>
Hm. Where can I put the trapped values?
08:20 * Reiver doesn't plan to run the regex in the same line he wants to use the values.
08:28 You're now known as TheWatcher
08:47 Chalcedon [~Chalcedon@Nightstar-10789.ue.woosh.co.nz] has quit [Quit: Gone]
08:59
<@McMartin>
match() will return an object that you can store in a variable, which is a first-class value that you can pass around, store in arrays, etc.
08:59
<@McMartin>
You call groups() on that.
09:04 * Reiver ponders.
09:05
<@Reiver>
I was initially using the regex for an if statement.
09:06 GeekSoldier|work [~Rob@Nightstar-5021.pools.arcor-ip.net] has quit [Ping Timeout]
09:07 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has joined #Code
09:07 mode/#code [+o gnolam] by ChanServ
09:07
<@McMartin>
So, don't do that.
09:08
<@McMartin>
Assign the result to a value and see if it's None or not.
09:08
<@McMartin>
And use match() instead of isMatch()
09:09 Forj [~Forj@203.211.123.ns-22401] has joined #code
09:10 mode/#code [+o Forj] by ChanServ
09:40 Forj [~Forj@203.211.123.ns-22401] has quit [Quit: Gone]
10:07 Thaqui [~Thaqui@219.89.45.ns-12785] has left #code [Leaving]
10:09 GeekSoldier|work [~Rob@84.56.245.ns-12879] has joined #code
10:14 GeekSoldier|work [~Rob@84.56.245.ns-12879] has quit [Ping Timeout]
10:14 GeekSoldier|work [~Rob@Nightstar-4825.pools.arcor-ip.net] has joined #code
11:32 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has quit [Ping Timeout]
11:34 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has joined #Code
11:34 mode/#code [+o gnolam] by ChanServ
11:38 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has quit [Ping Timeout]
11:39 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has joined #Code
11:39 mode/#code [+o gnolam] by ChanServ
12:06 Vornicus-Latens is now known as Vornicus
13:20 Reiver is now known as ReivZzz
14:17 Chalcedon [~Chalcedon@Nightstar-10789.ue.woosh.co.nz] has joined #code
14:17 mode/#code [+o Chalcedon] by ChanServ
14:31 * Vornicus does more battle with setup code.
14:41 Xiphias [Ameroth@82.68.15.ns-4527] has joined #code
14:54
<@gnolam>
Setup code as in..?
14:55
< Vornicus>
i'm making a game. I need to load the data and put it together such that the rest of the computer can use it.
14:55
< Vornicus>
the rest of the program, that is.
15:06
<@gnolam>
Ah.
15:12 * gnolam fiddles with vectors.
15:24
< Xiphias>
Anyone have experience of Java's regex? groupCount() is reporting too many groups.
15:43 Xiphias [Ameroth@82.68.15.ns-4527] has quit [Quit: I was never gone]
16:37 GeekSoldier|work is now known as GeekSoldier
17:08 You're now known as TheWatcher[afk]
17:31 Forj [~Forj@Nightstar-10789.ue.woosh.co.nz] has joined #code
17:31 mode/#code [+o Forj] by ChanServ
17:56 Forj [~Forj@Nightstar-10789.ue.woosh.co.nz] has quit [Quit: Gone]
18:44
< MyCatVerbs>
My head hurts. This is decidedly suboptimal.
18:45
<@jerith>
Indeed.
18:46
<@jerith>
I recommend a poultice of crabs and gangfoon shrubs.
18:50
< MyCatVerbs>
Is that supposed to be a headache remedy?
18:51
< MyCatVerbs>
'Cuz while it'd be welcome, I don't have any of the mentioned widgets on hand.
18:51
<@jerith>
It was a "traditional" remedy I made up on the spot.
18:51
<@jerith>
It is good for headches, rodent infestations and debugging null pointer exceptions.
18:52
< GeekSoldier>
versatile.
18:55
< MyCatVerbs>
Hrmn. Got any crash-course treatments for I-don't-fucking-have-a-clue-about-numerical-analysis?
18:56
<@EvilDarkLord>
Did you try a brick to the head already?
18:57 mode/#code [+ooo MyCatVerbs Vornicus GeekSoldier] by EvilDarkLord
18:57 mode/#code [+o Kyrre] by EvilDarkLord
18:58 You're now known as TheWatcher
19:00
<@MyCatVerbs>
EvilDarkLord: no, but I've tried a keyboard to the head as an 802.11g configuration aid before, out of sheer frustration. Didn't work.
19:15
<@MyCatVerbs>
...it works! <3
19:15
<@MyCatVerbs>
I don't quite understand why, but gift horse dentistry is for suckers!
19:44
<@gnolam>
GNNNNRRRYAGH.
19:45
<@Vornicus>
gnnnnrrryagh?
19:45 * AnnoDomini imagines gnolam and Vornicus with bulging muscles and battle auras.
19:47 * Vornicus is just wondering what gnolam is mad about.
19:48
<@gnolam>
There's something wrong with my billboarding, and I can't figure it out.
19:55
<@gnolam>
Just putting the billboarded vertices in a plane parallel with the camera's "up" and "right" vectors should do it, right?
19:55
<@Vornicus>
have to put them in front of everything, too.
19:56
<@Vornicus>
And inside the view frustrum.
19:56
<@gnolam>
Of course.
19:57
<@gnolam>
But... it doesn't seem to work.
19:57
<@Vornicus>
What's wrong?
19:58
<@gnolam>
They come out... distorted. :P
20:00
<@gnolam>
Meaning either I'm doing the camera vectors all wrong, or this geometry is /Lovecraftian/.
20:00
<@Vornicus>
Screenshot?
20:13 Syloqs-AFH [Syloq@NetAdmin.Nightstar.Net] has quit [Connection reset by peer]
20:28 GeekSoldier is now known as GeekSoldier|bed
20:29
<@gnolam>
Don't think it would help.
20:29 * gnolam gives up for the day.
21:10 AnnoDomini [AnnoDomini@Nightstar-29648.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
21:18 AnnoDomini [AnnoDomini@Nightstar-29783.neoplus.adsl.tpnet.pl] has joined #Code
21:18 mode/#code [+o AnnoDomini] by ChanServ
22:43 chudak [~Miranda@Nightstar-19490.pools.atnet.ru] has joined #Code
22:55 chudak [~Miranda@Nightstar-19490.pools.atnet.ru] has quit [Quit: chudak]
23:29 Doctor_Nick [~nick@Nightstar-23600.hsd1.fl.comcast.net] has joined #code
23:35
< Doctor_Nick>
does anyone know where I can find the POSIX floppy API specs?
23:35
<@McMartin>
... aren't they basically the same as any other mounted drive?
23:36
< Doctor_Nick>
i suppose?
23:36
<@McMartin>
Are you trying to write a floppy driver or read stuff off a floppy disk?
23:36
< Doctor_Nick>
i'm implementing a file system
23:38
< Doctor_Nick>
i need to read information off the disk in sectors and stuff
23:47
< Doctor_Nick>
any ideas or no?
23:51
<@McMartin>
Mmm
23:52
<@McMartin>
Try googling "block device" along with other things like API.
23:53
<@McMartin>
Devices you deal with in terms of sectors operate at the block level in POSIX.
23:53
< Doctor_Nick>
yeah
23:54
<@McMartin>
But most of POSIX will treat it as Just Another File
23:55
< Doctor_Nick>
surely there's system calls for accessing them though
23:55
<@McMartin>
Yes.
23:55
<@McMartin>
But I don't know what they are.
23:55
< Doctor_Nick>
neither do I
23:56
< Doctor_Nick>
this assignment refers to a "POSIX floppy disk drive API" but doesnt give me a link or anything
23:57
<@McMartin>
Pester your TAs.
23:57
<@McMartin>
I don't think they mean http://www.cs.otago.ac.nz/cosc470/linux-documentation-2.6.18/kernel-api/ch22.htm l
23:57
<@McMartin>
They probably just want open(), read(), and write() to work.
23:57
<@McMartin>
So, yeah, pester instructors.
--- Log closed Tue Dec 04 00:00:13 2007
code logs -> 2007 -> Mon, 03 Dec 2007< code.20071202.log - code.20071204.log >