--- Log opened Thu Oct 14 00:00:19 2010 |
00:07 | | Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has quit [[NS] Quit: Leaving] |
00:10 | | You're now known as TheWatcher[T-2] |
00:15 | | You're now known as TheWatcher[zZzZ] |
00:19 | <@ToxicFrog> | Gneeeeeeer |
00:19 | | Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection closed] |
00:19 | <@ToxicFrog> | I don't think I can put off the serialization stuff any longer |
00:24 | | Attilla [Some.Dude@Nightstar-e13da695.threembb.co.uk] has quit [[NS] Quit: ] |
00:32 | | cpux is now known as cpux[dreammaster] |
00:32 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?] |
02:40 | | Derakon[AFK] is now known as Derakon |
02:50 | | Orthia [orthianz@Nightstar-39e1b845.xnet.co.nz] has quit [[NS] Quit: Going dooooown...] |
03:02 | | Reiv [NSwebIRC@Nightstar-1055e8af.waikato.ac.nz] has joined #code |
03:14 | | cpux[dreammaster] is now known as cpux |
03:32 | | McMartin_ [mcmartin@Nightstar-90cb9c75.pltn13.sbcglobal.net] has joined #code |
03:32 | | McMartin [mcmartin@Nightstar-3c18b210.pltn13.sbcglobal.net] has quit [Connection reset by peer] |
03:47 | | McMartin_ is now known as McMartin |
04:03 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code |
05:10 | | Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds] |
05:22 | | Reiv [NSwebIRC@Nightstar-1055e8af.waikato.ac.nz] has quit [Ping timeout: 121 seconds] |
05:39 | | Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code |
05:43 | | Orthia [orthianz@Nightstar-39e1b845.xnet.co.nz] has joined #code |
06:23 | | Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has quit [Client exited] |
06:34 | | Derakon is now known as Derakon[AFK] |
06:49 | | Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code |
06:51 | | Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds] |
06:57 | | Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds] |
07:26 | | kwsn [kwsn@31356A.5FD175.2259B6.DFACD4] has joined #code |
07:43 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code |
08:11 | | Anno[Laptop] [annodomini@Nightstar-79025f5e.adsl.tpnet.pl] has joined #code |
08:19 | | cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has quit [Client closed the connection] |
08:41 | <@Kazriko> | i think that's not the problem, because the psycopg2 library isn't picking up the changes either... |
08:42 | <@Kazriko> | so it seems like it's not writing them out at all. |
09:01 | | kwsn is now known as kwsn\t-2 |
09:08 | | kwsn\t-2 [kwsn@31356A.5FD175.2259B6.DFACD4] has quit [[NS] Quit: ] |
09:24 | | You're now known as TheWatcher |
10:04 | | Anno[Laptop] [annodomini@Nightstar-79025f5e.adsl.tpnet.pl] has quit [[NS] Quit: I must go. My Uni needs me.] |
10:16 | | Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code |
10:21 | | Orthia [orthianz@Nightstar-39e1b845.xnet.co.nz] has quit [Ping timeout: 121 seconds] |
10:51 | | Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code |
11:21 | | Anno[Laptop] [annodomini@F67919.F326B3.98D923.BDA7B6] has joined #code |
11:48 | | Orthia [orthianz@Nightstar-f5e48f98.xnet.co.nz] has joined #code |
12:05 | | froztbyte [froztbyte@Nightstar-dc394964.za.net] has joined #code |
12:16 | | Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds] |
12:22 | | celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code |
12:38 | | Anno[Laptop] [annodomini@F67919.F326B3.98D923.BDA7B6] has quit [[NS] Quit: leaving] |
13:02 | | cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has joined #code |
13:02 | | cpux is now known as cpux[barf] |
13:33 | | Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code |
13:34 | | Anno[Laptop] [annodomini@Nightstar-79025f5e.adsl.tpnet.pl] has joined #code |
14:22 | | celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
15:12 | | Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has joined #code |
15:43 | | * gnolam has come to the conclusion that SQL really stands for "Spiteful Query Language". |
15:46 | < Anno[Laptop]> | Only now? |
16:57 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Client closed the connection] |
17:25 | <@jerith> | Yay for VM bugs! :-( |
17:26 | <@jerith> | The Dalvik people forgot to implement arrays of primitive types in annotations. |
17:28 | < Tarinaky> | So. I find that most my python files seem to start and end with the same thing. Any suggestions on how to automagically set the head and tail of a text document? |
17:28 | <@jerith> | So now I get to use Strings and parseInt(). :-/ |
17:28 | <@jerith> | Tarinaky: What's the boilerplate? |
17:29 | <@jerith> | You can probably make your editor give you a template, but I seldom bother. |
17:29 | < Tarinaky> | Mostly just imports and then a couple of lines to run a test() function if the file is loaded as main. |
17:30 | < Tarinaky> | Or whatever the term was... if __name__=='__main__': test() anyway. |
17:30 | <@jerith> | Tarinaky: Why not use unit tests? |
17:30 | < Tarinaky> | I don't know what those are. |
17:31 | <@jerith> | http://docs.python.org/library/unittest.html |
17:35 | < Tarinaky> | I think Unit Test is more gun than I need to the point of blowing my own leg off. |
17:35 | < Tarinaky> | My 'test' usually involves drawing stuff to the screen and me looking to see if it looks right. |
17:35 | <@jerith> | Ah. |
17:36 | <@jerith> | That's the kind of thing I use the commandline or ipython for. |
17:37 | <@jerith> | python -c "import foo; foo.something('magic', 9001)" |
17:38 | <@jerith> | Or, in ipython: reload(foo); foo.something('magic', 9001) |
17:51 | < Rhamphoryncus> | There's ways to do automated testing of graphics, but it's harder |
17:53 | < Rhamphoryncus> | But if you can break it down into component parts, so that it's not overly sensitive to changes, it's generally worth it |
18:58 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [Operation timed out] |
19:00 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code |
19:05 | | Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code |
19:05 | | mode/#code [+o Vornicus] by Reiver |
19:15 | | Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection closed] |
19:54 | | NSJavaGuest-0585 [nsJChat@D67F99.6F373B.E88B12.721B8F] has joined #code |
20:01 | | NSJavaGuest-0585 [nsJChat@D67F99.6F373B.E88B12.721B8F] has quit [Ping timeout: 121 seconds] |
20:23 | | Zed [Zed@Nightstar-556ea8b5.or.comcast.net] has joined #code |
20:24 | | Zed [Zed@Nightstar-556ea8b5.or.comcast.net] has quit [[NS] Quit: Leaving] |
20:39 | | aoanla [AndChat@Nightstar-0d399029.range217-42.btcentralplus.com] has joined #code |
20:48 | | aoanla [AndChat@Nightstar-0d399029.range217-42.btcentralplus.com] has quit [[NS] Quit: ] |
21:13 | | You're now known as TheWatcher[afk] |
22:17 | | RichardBarrell [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code |
22:31 | | Attilla [Some.Dude@Nightstar-56ccd18a.threembb.co.uk] has joined #code |
22:31 | | mode/#code [+o Attilla] by Reiver |
22:49 | < simon_> | hrm |
22:49 | | PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Connection closed] |
22:49 | < simon_> | I'm trying to prove that two expressions in Computation Tree Logic (CTL) are equivalent. |
22:50 | < simon_> | EF p = p v EX EF p |
22:51 | <@ToxicFrog> | Not familiar with EF or EX |
22:51 | < simon_> | my approach is through expanding the expressions into their semantic definitions. |
22:51 | < simon_> | ok |
22:51 | <@ToxicFrog> | But expansion sounds like a plausible approach |
22:52 | < simon_> | (M,s |= EF p) means "there exists a path from the state s in which p will be true." |
22:53 | < simon_> | so E kind of works like the existential quantifier, but explicitly on paths from s. |
22:53 | < simon_> | (M,s |= EX p) means "there exists a path from the state s in which p is true in the next state." |
22:55 | < RichardBarrell> | Efentually an EXpediently, p will be true :D |
22:55 | < RichardBarrell> | *and |
22:55 | < simon_> | so intuitively p v (EX EF p) means "either p is true in s, or there is a path, beginning in some next state from s, in which p will be true" ... which is just an expansion of EF p. |
22:56 | < RichardBarrell> | By v I assume you mean ||, right? :P |
22:56 | < simon_> | like p v (EX p) v (EX EX EF p) is yet another expansion |
22:56 | < simon_> | RichardBarrell, yup. |
22:56 | < simon_> | anyways |
22:57 | <@ToxicFrog> | RichardBarrell: ? ? are AND and OR respectively. |
22:57 | < RichardBarrell> | Otherwise I'm going to have to throw a Unicode ? or ? at you. |
22:57 | < RichardBarrell> | Oh wait, I just gave the set theory UNION and INTERSECTION. |
22:58 | <@ToxicFrog> | Yeah, and/or are 2227 and 2228. |
22:58 | < simon_> | thanks |
22:58 | | NSJavaGuest-0585 [nsJChat@83BF1D.D1B1BC.945C80.50A791] has joined #code |
22:58 | | NSJavaGuest-0585 [nsJChat@83BF1D.D1B1BC.945C80.50A791] has quit [[NS] Quit: Nightstar's Java Chat http://www.nightstar.net] |
22:58 | < RichardBarrell> | simon_: I ask because it's going to get really unclear once you attempt to express a conjunction using only ASCII :P |
23:00 | < simon_> | I've got these semantics encoded as: (M,s |= EF p) <=> ?(path ? in paths from s): ?i>=0: M,?[i] |= p) |
23:00 | < simon_> | (I can't do subscripts here, so a bit of text seems better, hehe) |
23:00 | < RichardBarrell> | Hahahah. You show simon_ one character, he remembers the whole of Unicode. ;) |
23:01 | < simon_> | I hardly remember any Unicode. :) I go to Wikipedia and copy-paste symbols. |
23:02 | < simon_> | (also, I don't think my GNOME supports any shortcuts for printing unicode symbols based on their number. maybe.) |
23:02 | < simon_> | so I got a definition similar to that one for EX EF p, and they look somewhat similar but not quite. |
23:03 | < simon_> | so when I've got these, I'm sort of stuck. I had one assignment previous where expanding these definitions would give the exact same LHS and RHS, so it was trivial. |
23:03 | <@ToxicFrog> | ctrl-shift-U might work in gnome. |
23:03 | < simon_> | now I'm not sure if I should add induction. |
23:03 | < simon_> | cool!!! |
23:03 | <@ToxicFrog> | I can't test that anymore because SCIM took that over when I installed it. |
23:03 | < simon_> | thanks. |
23:03 | < simon_> | hehe. |
23:03 | < simon_> | it does work. |
23:04 | | * simon_ starts a bad habit of remembering unicode symbol numbers now. |
23:04 | < RichardBarrell> | GNOME let you type in unicode escape codes by banging control-shift-u. |
23:05 | < RichardBarrell> | Fail, replying to stale messages. |
23:05 | < simon_> | yeah, that's awesome. |
23:05 | < simon_> | (the unicode fact, not replying late :P) |
23:05 | < RichardBarrell> | Emacs has M-x ucs-insert, which totally has tab completion for unicode character names, and hence is even better ;) |
23:06 | < simon_> | my vim has ctrl+shift+u because my terminal has. ;P |
23:07 | < simon_> | I suck at being an editor zealot. a mathematician today asked me which editor he should start using and that he had looked into vim. I told him to try emacs, too. |
23:07 | < RichardBarrell> | I just discovered that M-x shell mode is actually really nice if you turn off colours in most of the programs that you use. ^_^ |
23:07 | < simon_> | for having shells in split windows? |
23:08 | < simon_> | if viper-mode was better, I'd use it. |
23:09 | < RichardBarrell> | Having real Emacs for line-editing rather than libreadline's inevitably incomplete implementation. |
23:09 | < simon_> | ah. yes. |
23:09 | < RichardBarrell> | Plus it has a bunch of nifty things, such as a keyboard shortcut that discards the output from the previously-run command. |
23:11 | < RichardBarrell> | The downside is that you end up with a TERM=dumb, but the upside is that it feels more natural to have it inside the editor because the shell cedes more control to Emacs that way |
23:12 | < RichardBarrell> | I still use vi regularly. I think I'd still recommend most Unix newbies to learn vi first. That way, you're never stranded on a foreign server; /usr/bin/vi is *always* there. (If it isn't, find the sysadmin and force them to commit hara-kiri). |
23:12 | < McMartin> | Yeah |
23:13 | < McMartin> | I wouldn't play nethack in emacs. |
23:13 | < RichardBarrell> | I was finding myself using vi inside M-x ansi-term, at one point. ?_? |
23:14 | < simon_> | hahaha |
23:14 | < simon_> | I haven't heard that one before. |
23:17 | < simon_> | *shrug* |
23:18 | < simon_> | the satisfying with proofs in this logic course has been that all deductions take baby steps because the non-derived axioms are so elementary. |
23:19 | < simon_> | and then it's a little confusing, but very cool when the same logic system is applied to proofs about the system itself. |
23:23 | < simon_> | I have to somehow show that ?(path ? in paths from s): ?i>=0: M,?[i] |= p) <=> (M,s |= p) ? (?(path ? in paths from s): M,?[1+i] |= p) |
23:23 | < simon_> | it seems very clear. |
23:23 | < simon_> | but I'm not writing any deductions. :P |
23:25 | < simon_> | I got one idea though, brb. |
23:28 | | celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code |
23:33 | | Anno[Laptop] is now known as Anno[Sleep] |
23:45 | | You're now known as TheWatcher |
23:46 | < simon_> | I've got two identical measuring cups, made by the same company, in which 100 grams of flour is apparently the same as 150 grams of flour. |
23:46 | < simon_> | (they're identical in size, clearly not in labelling) |
23:47 | <@TheWatcher> | Packing difference, I'd suspect |
23:49 | < simon_> | but that must mean that the measuring cup company decided to change their standards quite considerably about how compact flour is packed. |
23:50 | < celticminstrel> | ...why would you use measuring cups for measuring flower in grammes? Shouldn't you use a scale for that? |
23:51 | < simon_> | flour? |
23:51 | < simon_> | I haven't got a scale. |
23:51 | < simon_> | also, I might be in space. |
23:51 | < simon_> | ;P |
23:52 | < celticminstrel> | Yeah, I meant flour. |
23:54 | < simon_> | ah, found a weight. this cake won't be a lie! |
--- Log closed Fri Oct 15 00:00:21 2010 |