--- Log opened Wed Jun 25 00:00:40 2008 |
00:01 | <@ToxicFrog> | Oh, and height control |
--- Log closed Wed Jun 25 00:19:38 2008 |
--- Log opened Wed Jun 25 00:32:23 2008 |
00:32 | | TheWatcher[zZzZ] [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code |
00:32 | | Irssi: #code: Total of 17 nicks [8 ops, 0 halfops, 0 voices, 9 normal] |
00:32 | <@ToxicFrog> | Designed, pretty much, to emulate with networked computers the capabilities of a pile of arbitrary cards, a table, and your hands. |
00:33 | | Irssi: Join to #code was synced in 46 secs |
00:33 | <@ToxicFrog> | Because Matt and I want to play MtG while he's in europe, but MtGO is too expensive, Planeswalkers is too outdated, and writing a program that actually understands the game is too much like work. |
00:33 | <@McMartin> | Aha |
00:34 | <@McMartin> | ... What about Apprentice? |
00:40 | < Vornicus> | that was the name of it. |
00:42 | <@McMartin> | "it"? |
00:42 | < Vornicus> | the application I was trying to think of. |
00:42 | < Vornicus> | apprentice. |
00:44 | <@ToxicFrog> | Never heard of it. |
00:44 | | mode/#code [+oooooo Attilla jerith Raif Shoukanjuu TheWatcher[zZzZ] Vornicus] by Vornicus |
00:44 | <@Vornicus> | http://www.magic-league.com/download/apprentice.php |
00:46 | <@ToxicFrog> | Hmm |
00:46 | <@Vornicus> | Apprentice: a networked MtG client. Last I knew it didn't actually execute the rules. |
00:46 | <@ToxicFrog> | That might work |
00:46 | <@Vornicus> | but that was several years ago. |
00:51 | <@ToxicFrog> | Has it been updated? |
00:51 | <@ToxicFrog> | We have Mirrodin/10th/Shadowmoor/Future Sight draft decks to test. |
00:51 | <@ToxicFrog> | Aah, so it has |
00:51 | <@McMartin> | I *think* you can make custom cards in it |
00:51 | <@McMartin> | Even if it hasn't |
--- Log closed Wed Jun 25 01:34:25 2008 |
--- Log opened Wed Jun 25 01:34:30 2008 |
01:34 | | TheWatcher[zZzZ] [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code |
01:34 | | Irssi: #code: Total of 17 nicks [13 ops, 0 halfops, 0 voices, 4 normal] |
01:35 | | Irssi: Join to #code was synced in 47 secs |
02:47 | | gnolam [lenin@Nightstar-19083.NA.cust.bahnhof.se] has quit [Quit: Z? (with emphasis on the '?')] |
04:45 | | * Vornicus does battle with OpenOffice, trying to find a particular function. |
04:46 | <@Vornicus> | I have some text htat I want to look up in a table, and I want to get data from the row that it's in.... which is normally a job for VLOOKUP, but in this case I need to do a COUNTIF on the row. So what I need is, given some text and an array, get the row number of the location of the text in the array. |
05:01 | | * Vornicus found it: match. |
05:29 | | * Raif blames vorn for all of the world's spreadsheet problems. |
05:30 | <@Raif> | Oh, btw, I was wrong about that pivot table thing not being fixed. What you wanted was implemented in 2004 or 2008. |
05:51 | | Attilla [~The.Attil@92.9.59.ns-21252] has quit [Ping Timeout] |
07:17 | | You're now known as TheWatcher |
07:55 | | UndeadAnno [AnnoDomini@Nightstar-29713.neoplus.adsl.tpnet.pl] has joined #Code |
07:55 | | mode/#code [+o UndeadAnno] by ChanServ |
08:00 | <@Vornicus> | Speaking of spreadsheet problems, I need to update the openoffice on that computer over there; it's got a wacky insert/overwrite bug. |
08:02 | <@Vornicus> | (the two places where it shows the formula in calc are in different modes as regards that, and the canonical one defaults to overwrite... |
08:04 | <@Vornicus> | (and is the one on the sheet instead of in the formula bar, which is v. offputting) |
08:08 | | You're now known as TheWatcher[afk] |
08:38 | | Vornicus is now known as Vornicus-Latens |
09:45 | | You're now known as TheWatcher |
11:07 | | Attilla [~The.Attil@92.9.59.ns-21252] has joined #code |
11:07 | | mode/#code [+o Attilla] by ChanServ |
14:58 | | mode/#code [+o TheWatcher] by ChanServ |
15:06 | | You're now known as TheWatcher[afk] |
15:33 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out] |
15:35 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
15:35 | | mode/#code [+o ToxicFrog] by ChanServ |
15:42 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out] |
15:46 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
15:46 | | mode/#code [+o ToxicFrog] by ChanServ |
16:01 | | Reiver [~reaverta@Admin.Nightstar.Net] has quit [Quit: ...okay, lightning is strong enough to be flash*BOOM*, and is rattling my floorboards. I'm shutting this thing down, because I don't trust murphy.] |
16:07 | | DiceBot [~Reiver@Nightstar-24540.xdsl.xnet.co.nz] has quit [Quit: DiceBot: based on AnnoDomini's KarmaBot.] |
16:12 | | gnolam [lenin@Nightstar-19083.NA.cust.bahnhof.se] has joined #Code |
16:12 | | mode/#code [+o gnolam] by ChanServ |
18:07 | | UndeadAnno is now known as Pete |
19:19 | | Vornicus-Latens is now known as Vornicus |
19:30 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out] |
19:33 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
19:33 | | mode/#code [+o ToxicFrog] by ChanServ |
19:50 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Client exited] |
19:51 | | You're now known as TheWatcher] |
19:51 | | You're now known as TheWatcher |
19:51 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
19:51 | | mode/#code [+o ToxicFrog] by ChanServ |
20:52 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Client exited] |
20:54 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
20:54 | | mode/#code [+o ToxicFrog] by ChanServ |
20:59 | <@ToxicFrog> | python question! |
20:59 | <@ToxicFrog> | How do I get the length of a string, and break a string into substrings? |
20:59 | <@Vornicus> | Python answer! |
20:59 | <@Vornicus> | len(s) gets the length of the string |
20:59 | <@ToxicFrog> | In particular, I have a string, and if it's > 400 characters or so, I want to split it into 400-character substrings. |
21:00 | <@ToxicFrog> | And then iterate over those. |
21:01 | <@Vornicus> | while s: |
21:01 | <@Vornicus> | a, s = s[:400],s[400:] |
21:02 | <@Vornicus> | do_stuff(a) |
21:02 | <@ToxicFrog> | Sweet. Thanks. |
21:07 | <@ToxicFrog> | Hmmm |
21:07 | <@ToxicFrog> | Can I split long lines with indentation? |
21:07 | <@ToxicFrog> | Eg, can I go: |
21:07 | <@ToxicFrog> | foo = bar + baz + moby |
21:08 | <@ToxicFrog> | - quux - sqeem |
21:08 | <@Vornicus> | Yes and no; you can split using \(newline), or anywhere within a paren/bracket/brace pair. |
21:08 | <@ToxicFrog> | Aah. |
21:09 | <@Vornicus> | Otherwise it assumes the line has ended,and will evaluate but not do anything with "- quux - sqeem" |
21:11 | <@Vornicus> | You can make multi-line strings by opening and closing with """ or '''; both can use ' and " without escapes. |
21:25 | <@ToxicFrog> | "foo %s %s %s" % ("bar", "baz", "moby") ? |
21:25 | <@Vornicus> | Yep |
21:41 | <@ToxicFrog> | ...hmm |
21:42 | <@ToxicFrog> | Lexical scoping has failed me |
21:42 | <@ToxicFrog> | foo = True |
21:42 | <@ToxicFrog> | def bar(): |
21:42 | <@ToxicFrog> | if foo: # do stuff |
21:42 | <@ToxicFrog> | foo = False |
21:42 | <@ToxicFrog> | --> attempt to use local variable foo before assignment |
21:42 | <@jerith> | Better to use parens to multiline. |
21:43 | <@jerith> | foo = (bar + bax + moby |
21:43 | <@jerith> | - quux - sqeem) |
21:44 | <@jerith> | You can only use global variables explicitly. |
21:44 | <@jerith> | foo = True |
21:44 | <@jerith> | def bar(): |
21:44 | <@Vornicus> | TF: if you want to do that, say "global foo" before you get to if foo: |
21:44 | <@jerith> | global foo |
21:44 | <@jerith> | if foo: #... |
21:45 | <@jerith> | You can use variables in an enclosing scope to make closures and such. |
21:46 | <@jerith> | The \newline line continuation is a bit dangerous, because a bit of stray whitespace after the \ can break it. |
21:46 | <@jerith> | Invisibly. |
22:10 | <@MyCatVerbs> | jerith: ! Not if your text editor is sane enough to highlight that. |
22:10 | <@MyCatVerbs> | jerith: BTW, hack your text editor to highlight \\n. |
22:10 | <@MyCatVerbs> | Er, \\\n, even. |
23:43 | | Pete is now known as UndeadAnno |
--- Log closed Thu Jun 26 00:00:45 2008 |