code logs -> 2007 -> Sun, 20 May 2007< code.20070519.log - code.20070521.log >
--- Log opened Sun May 20 08:22:38 2007
08:22 TheWatcher [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code
08:22 Irssi: #code: Total of 16 nicks [11 ops, 0 halfops, 0 voices, 5 normal]
08:22 mode/#code [+o TheWatcher] by ChanServ
08:23 Irssi: Join to #code was synced in 31 secs
08:53 AnnoDomini [~farkoff@Nightstar-29667.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
08:53 KBot [~karma.bot@Nightstar-29657.neoplus.adsl.tpnet.pl] has joined #Code
08:53 KarmaBot [~karma.bot@Nightstar-29667.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
08:54 KBot is now known as KarmaBot
--- Log closed Sun May 20 08:58:43 2007
--- Log opened Sun May 20 09:06:57 2007
09:06 TheWatcher [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code
09:06 Irssi: #code: Total of 16 nicks [11 ops, 0 halfops, 0 voices, 5 normal]
09:06 mode/#code [+o TheWatcher] by ChanServ
09:07 Irssi: Join to #code was synced in 29 secs
09:32 Thaqui [~Thaqui@Nightstar-25913.jetstream.xtra.co.nz] has left #code [Leaving]
09:34 You're now known as TW[disastering]
09:56 Mahal is now known as MahalGrumpy
10:09 MahalGrumpy is now known as Mahal
11:10 Mahal is now known as Mahal-Zonked
11:27 GS|cleans is now known as GS|codes
11:35
<@jerith>
"Wishful thinking: essential to good engineering. Certainly essential to good computer science." -- G J Sussman.
11:36 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code
11:36 mode/#code [+o gnolam] by ChanServ
11:38
<@jerith>
Aha! Quoting Sussman summons gnolam.
11:38 GeekSoldier_ [~Rob@Nightstar-4528.pools.arcor-ip.net] has joined #code
11:38
<@jerith>
And epiphanies about summoning summons GS. ;-)
11:39
< GeekSoldier_>
hehe.
11:39 GS|codes [~Rob@Nightstar-3770.pools.arcor-ip.net] has quit [Ping Timeout]
11:40 GeekSoldier_ is now known as GS|coding
11:40
<@jerith>
12:35 <@jerith> "Wishful thinking: essential to good engineering. Certainly
11:40
<@jerith>
essential to good computer science." -- G J Sussman.
11:40
<@jerith>
12:36 -!- gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined
11:40
<@jerith>
#Code
11:40
<@jerith>
12:36 -!- mode/#code [+o gnolam] by ChanServ
11:40
<@jerith>
12:38 <@jerith> Aha! Quoting Sussman summons gnolam.
11:40
<@jerith>
12:38 -!- GeekSoldier_ [~Rob@Nightstar-4528.pools.arcor-ip.net] has joined #code
11:40
<@jerith>
1/me grins.
11:40 * jerith grins.
11:40
< GS|coding>
wow. that's awesome!
11:47
<@gnolam>
!
11:48
<@jerith>
I always thought you were a closet Lisper, gnolam.
11:49
< GS|coding>
a closet lisper?
11:49
< GS|coding>
is lisping a bad thing?
11:50
<@jerith>
Nope.
11:51
<@jerith>
Sussman is one of the authors of SICP, which is the seminal CS textbook teaching programming in Lisp.
11:51
<@jerith>
Well, Scheme. But close enough.
11:54
< GS|coding>
Yeah, I was thinking along the lines of Scheme, too.
12:03
<@gnolam>
And you are correct. Closet Schemer anyway.
12:03
<@gnolam>
Common Lisp I don't care much for...
12:07
< GS|coding>
hooray for Scheme!
12:08 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out]
14:21 gnolam is now known as gnolamute
14:28 You're now known as TheWatcher
14:34 Reiver is now known as ReivOut
15:26
< GS|coding>
quick python question:
15:27
< GS|coding>
nevermind.
15:27
<@jerith>
Aww, you can't do that to me. :-(
15:27
<@jerith>
I was all in suspenders and now there's an anticlimax.
15:27
< GS|coding>
well, I may still have it.
15:27
< GS|coding>
I think i figured it out.
15:28
< GS|coding>
I can search within a list of strings for a smaller substring, right?
15:28
<@jerith>
Not directly, I don't think.
15:28
<@jerith>
You'd have to use a list comprehension or something.
15:29
< GS|coding>
ok, thanks.
15:30
< GS|coding>
I've got a list of keys, that are ascdate strings (necessary for the problem), I'm trying tomatch the month.
15:32 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
15:32 mode/#code [+o ToxicFrog] by ChanServ
15:33 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Client exited]
15:37
< GS|coding>
it's ugly, but I suppose it will work.
15:38
< GS|coding>
regular expressions... perhaps that's where I should've gone first.
15:42
<@jerith>
substr()?
15:49
< GS|coding>
ok. I am braindead now.
15:50 * jerith performs a prefrontal lobotomy on GS.
15:50 * GS|coding is now braindeader.
15:50 GS|coding is now known as GeekSoldier
15:52
< GeekSoldier>
I essentially want to grep any key that has a part that equals a varable, and store those into a new list.
15:59
<@jerith>
[key, val for key, val in myDict if key.find(var) > -1]
16:01
<@jerith>
Something like that?
16:01
<@jerith>
find() will return -1 if the substring isn't found.
16:01
< GeekSoldier>
I believe that will work. Thanks.
16:02
< GeekSoldier>
I forgot to do the last 'if key.find(match) > -1' part.
16:02
< GeekSoldier>
that would certainly do it.
16:02 * GeekSoldier stores this in his mental files for future digestion and eventual grokking.
16:07 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
16:07 mode/#code [+o ToxicFrog] by ChanServ
16:43 * gnolamute boggles.
16:44
<@gnolamute>
Explain to me how someone can fail to learn what the / operator does...
16:44 * jerith contemplates bogglage.
16:44
<@jerith>
Heh.
16:44
< GeekSoldier>
it fractions, right?
16:44 * GeekSoldier hides.
16:47
<@ToxicFrog>
Well...yes. It's the division operator.
16:47
<@ToxicFrog>
So, yeah, unless you're completely unacquainted with basic mathematics I don't see how that's possible.
16:50
<@gnolamute>
I can understand missing out on %. But / is just... insanity.
16:51
< GeekSoldier>
is it.... madness?
16:53
<@AnnoDomini>
Madness? This is #Code!!
16:53 GeekSoldier was kicked from #Code by AnnoDomini [into a well.]
16:53
<@AnnoDomini>
<_<
16:54 AnnoDomini was kicked from #code by jerith [That wasn't nice. :-(]
16:54 AnnoDomini [~farkoff@Nightstar-29657.neoplus.adsl.tpnet.pl] has joined #code
16:54 mode/#code [+o AnnoDomini] by ChanServ
16:54 GeekSoldier [~Rob@Nightstar-4528.pools.arcor-ip.net] has joined #code
16:54
<@AnnoDomini>
Sorry. <_<
16:54
< GeekSoldier>
ok. Hi AD.
16:54
< GeekSoldier>
how are you today?
16:55
<@AnnoDomini>
Nasty, apparently.
16:55
< GeekSoldier>
hehe. all is well.
17:00
<@gnolamute>
o_O
17:01
<@gnolamute>
What Anno said:
17:01
<@gnolamute>
<AnnoDomini> Nasty, apparently.
17:01
<@gnolamute>
What I read:
17:01
<@gnolamute>
<AnnoDomini> Tasty, apparently.
17:01
<@AnnoDomini>
Heh.
17:26 You're now known as TheWatcher[afk]
18:50 You're now known as TheWatcher
18:58 Mahal-Zonked is now known as Mahal
19:17 AnnoDomini is now known as Kiers
19:19 Mahal is now known as MahalNap
19:25 Vornicus-Latens is now known as Vornicus
19:37 MahalNap is now known as Mahal
19:52 KarmaBot [~karma.bot@Nightstar-29657.neoplus.adsl.tpnet.pl] has left #code [Banished by SergeantAracGamason.]
19:55 KarmaBot [~karma.bot@Nightstar-29657.neoplus.adsl.tpnet.pl] has joined #Code
19:55 mode/#code [+v KarmaBot] by ChanServ
20:08 Mahal is now known as Mahalnap
20:31 Kiers is now known as The_People
20:31 The_People is now known as AnnoDomini
20:33 GeekSoldier is now known as GS|Sleep
21:45 Mahalnap is now known as Mahal
22:39 Derakon is now known as Derakon[gaming]
22:40 You're now known as TheWatcher[T-2]
22:44 You're now known as TheWatcher[zZzZ]
23:10 Forjadon [~Forjadon@Nightstar-1216.ue.woosh.co.nz] has joined #code
23:10 mode/#code [+o Forjadon] by ChanServ
23:33 ReivOut is now known as Reiver
--- Log closed Mon May 21 00:00:37 2007
code logs -> 2007 -> Sun, 20 May 2007< code.20070519.log - code.20070521.log >