code logs -> 2011 -> Thu, 24 Nov 2011< code.20111123.log - code.20111125.log >
--- Log opened Thu Nov 24 00:00:01 2011
00:05 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has joined #code
00:10 You're now known as TheWatcher[T-2]
00:17 You're now known as TheWatcher[zZzZ]
00:57 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Z?]
01:26 Derakon[AFK] is now known as Derakon
02:34 Attilla [Obsolete@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
02:36 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
03:22 * Derakon looks up.
03:22
< Derakon>
grep -E '^.{7}' file
03:23
< Derakon>
^ indicates beginning of line, . matches any character, and {7} means there must be 7 of them.
03:23
< celticminstrel>
So any file with a line of 7 or more characters.
03:24
< Derakon>
Any line that starts with 7 characters, which implies the line must have at least 7 characters in it. :)
03:24
< celticminstrel>
Ah, what AnnoDomini was asking... but he's gone...
03:24
< Derakon>
So he is.
03:24
< Derakon>
Oh well.
03:37 SmithKurosaki [smith@Nightstar-e26015c4.home1.cgocable.net] has joined #code
03:44 Kindamoody[zZz] is now known as Kindamoody
03:46 kwsn [kwsn@Nightstar-635d16fc.org] has quit [Ping timeout: 121 seconds]
03:48 kwsn [kwsn@Nightstar-635d16fc.org] has joined #code
04:27 SmithKurosaki [smith@Nightstar-e26015c4.home1.cgocable.net] has quit [Ping timeout: 121 seconds]
04:28 SmithKurosaki [smith@Nightstar-e26015c4.home1.cgocable.net] has joined #code
04:33 SmithKurosaki [smith@Nightstar-e26015c4.home1.cgocable.net] has quit [Ping timeout: 121 seconds]
05:07 cpux is now known as cpux[OldFart]
05:27 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds]
05:40 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
05:41 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Client exited]
06:00 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Client closed the connection]
06:06 Kindamoody is now known as Kindamoody|out
06:08 ErikMesoy|sleep is now known as ErikMesoy
06:38 Derakon is now known as Derakon[AFK]
07:33 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:39 AnnoDomini [annodomini@Nightstar-7772b630.84-49-12.nextgentel.com] has joined #code
08:13 cpux[OldFart] is now known as cpux
08:40 cpux is now known as cpux_is_a_dork
08:46 cpux_is_a_dork is now known as cpux
08:59 Alek [omegaboot@Nightstar-10752b3e.il.comcast.net] has quit [[NS] Quit: ]
09:03 You're now known as TheWatcher
09:29 cpux|2 [cpux@Nightstar-c5874a39.dyn.optonline.net] has joined #code
09:30 cpux|2 [cpux@Nightstar-c5874a39.dyn.optonline.net] has quit [[NS] Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
11:02 Attilla [Obsolete@Nightstar-f29f718d.cable.virginmedia.com] has joined #code
11:14
< Ling>
RE: ^.{7} and ^.......* you don't need the ^, just .{7}
11:18
< AnnoDomini>
Why don't I need the ^?
11:18
< AnnoDomini>
Is it because grep already reads lines?
11:21
< Ling>
^ doesn't make a regex "read lines"
11:21
< Ling>
grep works on lines regardless though.
11:28 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
11:28
< Ling>
$ python -c 'for i in range(1,10): print(str(i) * i)' | egrep '.{7}'
11:29
< AnnoDomini>
Well, needful or not, I got what I wanted with my inefficient regex. :P
12:47 You're now known as TheWatcher[afk]
12:51 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
13:51 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
14:02
<@jerith>
'^' means "start of line".
14:03 * AnnoDomini knows this.
14:04
<@jerith>
Oh, I missed the earlier bit of the conversation.
14:05
<@jerith>
In that case, you're trying to assert a minimum length, so it doesn't matter.
14:05
<@jerith>
But '^abc' and 'abc' are different.
14:06
<@jerith>
(In Python, there are two regex match functions. re.match() only matches the start of the string, re.search() does the more general match-anywhere thing.)
14:09
< AnnoDomini>
(Heh at the names.)
14:37 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has quit [[NS] Quit: Well, most things get better when I kick them!]
14:47 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
14:49<~Vornicus> If you're looking for a line seven or more characters long, it doesn't matter whether your match happens at the start.
14:49<~Vornicus> It will /anyway/, because regex gives you the first one it finds, but it doesn't matter
14:53 [Tamber] [tamber@86.112.105.67] has joined #code
15:57 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
16:11 Kindamoody|out is now known as Kindamoody
16:12 Noah [maoranma@490720.C448F4.EA970A.EA912C] has quit [Ping timeout: 121 seconds]
16:20 maoranma [maoranma@490720.C448F4.EA970A.EA912C] has joined #code
16:38 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
17:06 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has joined #code
17:10 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has joined #code
17:23 cpux is now known as cpux[Fooooooooooooooooood]
17:42 cpux[Fooooooooooooooooood] [cpux@Nightstar-c5874a39.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
18:39 cpux [cpux[Fooooo@Nightstar-c5874a39.dyn.optonline.net] has joined #code
18:39 cpux is now known as cpux[blargh]
18:43 Kindamoody is now known as Kindamoody[zZz]
19:51 Attilla [Obsolete@Nightstar-f29f718d.cable.virginmedia.com] has quit [[NS] Quit: ]
20:13 Attilla [Obsolete@Nightstar-f29f718d.cable.virginmedia.com] has joined #code
20:30 [Tamber] [tamber@86.112.105.67] has quit [[NS] Quit: Fwee~]
20:51 cpux[blargh] is now known as cpux
21:06 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
22:05 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has quit [Ping timeout: 121 seconds]
22:06 ErikMesoy is now known as ErikMesoy|sleep
22:06 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has joined #code
23:00 cpux [cpux[Fooooo@Nightstar-c5874a39.dyn.optonline.net] has quit [[NS] Quit: Well, most things get better when I kick them!]
23:07
< celticminstrel>
Alright, so I see what topological sort is but not how to apply it to the problem of merging those lists that overlap...
--- Log closed Fri Nov 25 00:00:16 2011
code logs -> 2011 -> Thu, 24 Nov 2011< code.20111123.log - code.20111125.log >

[ Latest log file ]