code logs -> 2006 -> Wed, 06 Sep 2006< code.20060905.log - code.20060907.log >
--- Log opened Wed Sep 06 00:00:16 2006
00:00
<@Chalcedon>
I needed to blank two things
00:52 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
00:52 mode/#code [+o Chalcy] by ChanServ
00:53 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
01:03 himi is now known as himi-heading-to-work
01:13 ReivZzz is now known as ReivWork
01:13 Vornicus [~vorn@Nightstar-18307.slkc.qwest.net] has quit [Quit: ]
01:43 Reivlin [~reiver@Nightstar-28747.ubs-dsl.xnet.co.nz] has quit [Connection reset by peer]
01:43 ReivWork [~reaverta@IRCop.Nightstar.Net] has quit [Connection reset by peer]
02:01 Vornicus-Latens is now known as Vornicus
02:02 Reivlin [~reiver@Nightstar-28747.ubs-dsl.xnet.co.nz] has joined #Code
02:10 GeoTube [~Someone@Nightstar-2676.cable.ubr01.dund.blueyonder.co.uk] has quit [Killed (NickServ (GHOST command used by COL_GeoTube))]
02:10 COL_GeoTube [~Someone@82.41.82.ns-26866] has joined #code
02:10 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
02:10 mode/#code [+o Chalcedon] by ChanServ
02:12 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
02:55
<@Chalcedon>
how would I get a file writer to append rows rather than overwrite what's existing in the file (its a csv)
02:57
<@Mahal>
there's usually an append flag
02:58
< Vornicus>
the second parameter to the file open command should have "a" in it
02:59
<@Chalcedon>
ah ha
02:59
<@Chalcedon>
I knew I'd seen it somewhere, but couldn't find it
02:59
<@Chalcedon>
thanks :)
03:04
<@Chalcedon>
doesn't appear to be working
03:04 * Chalcedon frown
03:07
<@Chalcedon>
it /is/ working, I just have something in the wrong place
03:10
< Vornicus>
heh
03:42
<@Chalcedon>
ok... why aren't you working...
03:42
<@Chalcedon>
this time it /is/ overwriting.
03:43 ReivWork [~reaverta@IRCop.Nightstar.Net] has joined #Code
03:44
<@Chalcedon>
hello Reivy
03:44
<@Chalcedon>
thats really weird
03:44
<@Chalcedon>
it appears to be fussy about where the 'a' goes.
03:44
<@Chalcedon>
I have w and b in there as well.
03:45
<@Chalcedon>
if I put the a first, it skips the top line and puts everything on double spacing. If I put a in the middle all the lines are there but it's in double spacing. And if I put a on the end spacing is normal but I'm missing the top line...
03:46
< Vornicus>
the w doesn't belong if you're using a.
03:46
<@Chalcedon>
aaaaah
03:46 * Chalcedon doh
03:46
< Vornicus>
you need to have exactly one of {a w b} in there.
03:46 * Chalcedon hrm
03:46
< Vornicus>
oops
03:46
< Vornicus>
{a w r}
03:46
<@Chalcedon>
I thought you could have both w and r?
03:47
< Vornicus>
...you might, actually
03:47
<@Chalcedon>
to read and write
03:47 * Chalcedon grin
03:47
<@Chalcedon>
it now works perfectly thank you :)
03:49 * Chalcedon yays
03:51
< Vornicus>
But you rarely see it used that way.
03:51
<@Chalcedon>
ok
03:51 * Chalcedon will keep this in mind
04:15
<@ToxicFrog>
Vornicus: why not?
04:15
<@ToxicFrog>
"rw" is more readable than "r+"
04:16 * Chalcedon gives everyone 4x2s and invites them to help her beat PRESENCE
04:16 * Vornicus points out that he has never, ever, seen either rw or r+ in anything other than a reference manual.
04:16
<@ToxicFrog>
I've used r+.
04:16
<@ToxicFrog>
Although not a+ or w+
04:17
<@ToxicFrog>
And the answer appears to be 'because "rw" is not actually a valid mode"
04:17
<@ToxicFrog>
Valid modes are (r|w|a)\+?b?
04:45 Vornicus is now known as Vornicus-Latens
05:08 Reivlin [~reiver@Nightstar-28747.ubs-dsl.xnet.co.nz] has quit [Connection reset by peer]
05:09 ReivWork [~reaverta@IRCop.Nightstar.Net] has quit [Ping Timeout]
05:25 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
05:26 mode/#code [+o Chalcy] by ChanServ
05:26 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
05:34 Reivlin [~reiver@Nightstar-28747.ubs-dsl.xnet.co.nz] has joined #Code
05:39 Reivles [~reaverta@IRCop.Nightstar.Net] has joined #Code
05:40 Reivles is now known as Reiver
05:40 Reivlin [~reiver@Nightstar-28747.ubs-dsl.xnet.co.nz] has quit [Ping Timeout]
05:41 Reivlin [~reiver@Nightstar-291.ubs-dsl.xnet.co.nz] has joined #Code
06:22 Chalc [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
06:23 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
06:47 Chalc is now known as Chalcedon
07:25 Shemhazai [~Shemhazai@Nightstar-8502.ds1-ba.adsl.cybercity.dk] has quit [Quit: Connection reset by evil CHILD EATING MONSTERS!]
07:34 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
07:41 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
07:41 mode/#code [+o Chalcedon] by ChanServ
08:00 COL_GeoTube is now known as GeoTube
08:11 Mahal [~Mahal@Nightstar-13918.worldnet.co.nz] has quit [Quit: It's hard to be mad at someone who misses you while you're asleep. ]
08:12 Mahal [~Mahal@Nightstar-13918.worldnet.co.nz] has joined #code
08:12 mode/#code [+o Mahal] by ChanServ
09:17 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
09:29 EvilDarkLord is now known as EvilNromLord
09:53 EvilNromLord is now known as EvilDarkLord
10:30 Mahal [~Mahal@Nightstar-13918.worldnet.co.nz] has quit [Quit: The computer, she is snoring now.]
10:58 You're now known as TheWatcher
11:06 himi-heading-to-work is now known as himi
11:58 fhtagncaps [~scs105@Nightstar-20994.york.ac.uk] has quit [Quit: leaving]
12:14 You're now known as TheWatcher[afk]
13:54 Reiver is now known as ReivZzz
14:13 You're now known as TheWatcher
14:35 aoanla [~scs105@Nightstar-20994.york.ac.uk] has joined #code
14:36 aoanla is now known as fhtagncaps
16:26 EvilDarkLord is now known as EvilNromLord
17:08 Vornicus [~vorn@Nightstar-18307.slkc.qwest.net] has joined #code
17:11 You're now known as TheWatcher[afk]
18:28 EvilNromLord is now known as EvilDarkLord
18:34 You're now known as TheWatcher
20:03
< Vornicus>
gnar. Okay, this is a new one.
20:03
< Vornicus>
SOmetimes, a file has logs in it, and the logs are demarcated by --------- --------- -------- at the end.
20:04
< Vornicus>
And I need to get the stuff after the logs. THis I've already got.
20:04
< Vornicus>
Sometimes, however, a file has /no/ logs, and there are no dashes.
20:05 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
20:05 mode/#code [+o Chalcedon] by ChanServ
20:05
<@ToxicFrog>
And thus you need to get everything in the file.
20:05
<@ToxicFrog>
Herm.
20:05
< Vornicus>
Right.
20:06
< Vornicus>
can I drop a return code from another program into awk?
20:07
< Vornicus>
...er, wait, I have it now. One moment...
20:32 Shemhazai [~Shemhazai@Nightstar-8502.ds1-ba.adsl.cybercity.dk] has joined #Code
20:34 * Vornicus gets that to work.
20:41 Mahal [~Mahal@Nightstar-13918.worldnet.co.nz] has joined #code
20:41 mode/#code [+o Mahal] by ChanServ
20:51 MahalWork [~Mahal@Nightstar-13918.worldnet.co.nz] has quit [Quit: brb]
20:52 MahalWork [~Mahal@Nightstar-13918.worldnet.co.nz] has joined #Code
20:52 mode/#code [+o MahalWork] by ChanServ
22:31 Mahal is now known as MahalAfk
23:07 You're now known as TheWatcher[T-2]
23:12 You're now known as TheWatcher[afk]
23:27 MahalAfk is now known as Mahal
--- Log closed Thu Sep 07 00:00:16 2006
code logs -> 2006 -> Wed, 06 Sep 2006< code.20060905.log - code.20060907.log >