--- Log opened Sat Jan 05 00:00:53 2013 |
00:22 | < ToxicFrog> | And there goes the channel |
00:27 | | * Vornicus explodes TF |
00:34 | | thalass [thalass@Nightstar-724ec5eb.bigpond.net.au] has joined #code |
00:55 | | Derakon[AFK] is now known as Derakon |
00:56 | | You're now known as TheWatcher[T-2] |
01:00 | | You're now known as TheWatcher[zZzZ] |
01:15 | | Derakon is now known as Derakon[AFK] |
01:30 | | Derakon[AFK] is now known as Derakon |
02:06 | < RichyB> | ToxicFrog: I ran out of sensible questions. ;P |
02:18 | | Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Client exited] |
03:21 | | Kindamoody[zZz] is now known as Kindamoody |
03:55 | | RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has quit [Operation timed out] |
03:59 | | RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has joined #code |
04:37 | | Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code |
04:37 | | mode/#code [+ao Derakon Derakon] by ChanServ |
04:57 | | thalass is now known as Thalass|ksp |
05:22 | | VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: night all] |
05:56 | | McMartin_ [mcmartin@Nightstar-9c8eab03.pltn13.sbcglobal.net] has joined #code |
05:57 | | McMartin [mcmartin@Nightstar-479d9015.pltn13.sbcglobal.net] has quit [NickServ (GHOST command used by McMartin_)] |
05:57 | | McMartin_ is now known as McMartin |
05:57 | | mode/#code [+ao McMartin McMartin] by ChanServ |
07:05 | | Derakon is now known as Derakon[AFK] |
07:12 | | RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving] |
07:14 | | ErikMesoy|sleep is now known as ErikMesoy |
07:46 | | Thalass|ksp is now known as Thalass |
07:55 | | Thalass is now known as Thalass|KSP |
08:20 | | celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
08:45 | | Thalass|KSP is now known as Thalass |
08:45 | | Thalass is now known as Thalass|afk |
08:56 | | * Thalass|afk is trying to build up the courage to try and flash CM10 to his phone. >.< |
09:10 | | You're now known as TheWatcher |
09:31 | | thalass [thalass@Nightstar-724ec5eb.bigpond.net.au] has joined #code |
09:34 | | Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has joined #code |
09:34 | | mode/#code [+o Courage] by ChanServ |
09:38 | | Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: ] |
10:59 | | Kindamoody is now known as Kindamoody|out |
11:43 | | thalass [thalass@Nightstar-724ec5eb.bigpond.net.au] has quit [Ping timeout: 121 seconds] |
11:56 | | Syka [the@Nightstar-36aa33a4.iinet.net.au] has joined #code |
12:51 | | Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has quit [[NS] Quit: .] |
12:56 | | Syloq [Syloq@B4EC54.59F324.016BDA.8CB0A3] has joined #code |
12:58 | | mode/#code [+o Syloq] by ChanServ |
13:04 | | VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code |
13:06 | < ErikMesoy> | Python's pickle looks like a powerful complicated thing that I may not want to touch, so for save/load of game state (which is mostly a set of variables) I considered writing a bunch of "playerHP=90" to file and using eval, but that looks potentially unsafe. |
13:06 | < ErikMesoy> | Is it better to wrap a bunch of sanity checks around eval use, or find some third way of doing this? |
13:10 | < ErikMesoy> | sanity checks being things like "only variable assignments" by means of calling split("=") and checking that I get text on the left, = in the middle and numbers on the right |
13:12 | < Syka> | save it in json? |
13:14 | | Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has quit [[NS] Quit: .] |
13:16 | | Syloq [Syloq@B4EC54.59F324.016BDA.8CB0A3] has joined #code |
13:17 | < ErikMesoy> | This sounds like it requires learning something in addition to implementing something. :p |
13:18 | | mode/#code [+o Syloq] by ChanServ |
13:18 | | * ErikMesoy goes to read the python json module |
13:20 | < ErikMesoy> | This looks like I would have to put my variables in objects. Have I understood right? |
13:20 | <@Azash> | Suggestion: Save everything that's used during game into a map (like 'hp' => int, 'name' => string etcetera) |
13:20 | <@Azash> | And write tools to serialize it into JSON and create a map from a JSON |
13:29 | < ErikMesoy> | Also, on consideration, I would have to use exec, not eval. eval throws a SyntaxError when asked to evaluate "spam = 5". |
13:30 | <@Azash> | This is why I suggested using a map |
13:30 | <@Azash> | Then you could parse A=B and tell it that the key identified by A has value B |
13:31 | <@Azash> | No need to start execing |
13:44 | | Thalass|afk [thalass@Nightstar-724ec5eb.bigpond.net.au] has quit [[NS] Quit: brb] |
13:52 | <@gnolam> | ErikMesoy: I second JSONing it. |
13:53 | <@gnolam> | Python's JSON module takes a trivial amount of time to learn, and JSON's hand-edit capability is great to have when debugging. |
13:57 | < Syka> | JSON is also pretty cool |
13:57 | < ErikMesoy> | Yeah, well, exec("playerHP=90") would also have great hand-edit capability. :p |
13:58 | < Syka> | and by hand edit capability |
13:59 | < Syka> | you mean players making their name =exec('rm -rf /') |
13:59 | < Syka> | would certainly make it fun |
13:59 | <@Tamber> | !!fun!! |
13:59 | < Syka> | ~fun~ |
13:59 | < ErikMesoy> | That's where the sanity checks come in. 'rm -rf /' isn't a number. |
14:00 | < Syka> | or, you use JSON |
14:00 | < ErikMesoy> | Yes. |
14:00 | < Syka> | which doesn't have any sort of execute capability anywhere |
14:03 | | thalass [thalass@Nightstar-724ec5eb.bigpond.net.au] has joined #code |
14:11 | <@froztbyte> | https://github.com/fogus/ulithp/blob/master/src/lithp.rb |
15:55 | < ToxicFrog> | ErikMesoy: your variables should be in objects or dictionaries anyways. |
15:57 | < ToxicFrog> | Just use JSON. |
16:13 | < ErikMesoy> | Is there something I should know before I use a generic empty class to make an object of? |
16:22 | <@Tarinaky> | 'generic empty class' you mean object? |
16:22 | <@Tarinaky> | a = object() # iirc |
16:23 | < ErikMesoy> | Oh, so python has built-in empty object support? neat |
16:23 | <@Tarinaky> | Strictly speaking, all object in python inherit from object |
16:23 | <@Tarinaky> | Which is, itself, a sugar for a dict. |
16:24 | <&McMartin> | And there's really astoundingly little daylight between classes, objects, dicts, and modules, yeah |
16:24 | < ErikMesoy> | And its definition is basically "class object: def __init__():" ? |
16:24 | <@Tarinaky> | It's a built in. |
16:24 | < ErikMesoy> | I got that, but does it do anything more than that? |
16:24 | <@Tarinaky> | It doesn't have a definition any more than an integer does. |
16:25 | < ToxicFrog> | Don't be obtuse |
16:25 | <@Tarinaky> | Sorry. |
16:25 | <@Tarinaky> | You don't need the def __init__() anyway. |
16:25 | <@Tarinaky> | Just class object: \n\t pass \n |
16:27 | < ToxicFrog> | ErikMesoy: object does in fact have a bunch of __methods__ (the base definitions of them, AIUI): |
16:27 | < ToxicFrog> | >>> dir(object) |
16:27 | < ToxicFrog> | ['__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__'] |
16:27 | < ToxicFrog> | But that's it. |
16:31 | <&McMartin> | If you invoke hasattr() three times the King in Yellow shows up and devours your soul |
16:32 | <@Tamber> | :D |
16:33 | <&McMartin> | I'd forgotten that it's __getattribute__ but __setattr__ and __delattr__ |
16:34 | | thalass [thalass@Nightstar-724ec5eb.bigpond.net.au] has quit [[NS] Quit: zoom!] |
16:36 | < ErikMesoy> | McMartin: Like three times ever, or three times on the same object? |
16:37 | <&McMartin> | More "in rapid succession", I think. |
16:38 | <&McMartin> | The base reference here is to, well |
16:38 | <&McMartin> | Hastur, the King In Yellow, who tends to do the Beetlejuice thing in Lovecraft fanfic. |
16:39 | <@EvilDarkLord> | from time import sleep # For soul protection |
16:39 | <&McMartin> | Heh |
16:39 | < ErikMesoy> | Your explanation is like a pair of goggles, seeing as I'm more familiar with Lovecraft than Beetlejuice. :p |
16:39 | <&McMartin> | "Comes when called' |
16:40 | | * ErikMesoy explains the goggles. |
16:40 | <&McMartin> | They do nothing, I imagine. |
16:40 | <&McMartin> | Also, I did say "Lovecraft fanfic", not Lovecraft himself; I think he was used mostly by his imitators |
16:41 | <&McMartin> | And Ambrose Bierce, who doesn't count |
16:52 | | * ToxicFrog evicts kitten from my thesis |
16:53 | < ToxicFrog> | Dr. Grewal apparently likes to do everything in hardcopy despite being a CS professor, so I have a huge stack of paper here which, of course, is irresistable to cats. |
16:54 | <&McMartin> | \o/ |
16:58 | < Syka> | man |
16:58 | < Syka> | one day i have to write a paper |
16:58 | < Syka> | because that would be cool |
17:03 | | Kindamoody|out is now known as Kindamoody |
17:10 | | * iospace hugs Syka |
17:11 | | * Syka hugs iospace |
17:11 | < Syka> | i has new houseplacething :3 |
17:11 | <@iospace> | nice |
17:11 | | celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code |
17:11 | | mode/#code [+o celticminstrel] by ChanServ |
17:14 | < ErikMesoy> | http://wiki.wxpython.org/Frequently%20Asked%20Questions#How_do_I_get_out_of_wxSi zerHell_.3F <-- I resemble this remark. |
17:20 | <@gnolam> | And then you realize that you have to go back to sizer hell, because the "proper" sizers are buggy and/or have such poor performance that your entire UI suffers. |
17:24 | <&McMartin> | wx >_< |
17:45 | < ToxicFrog> | Syka: I recommend it, it's fun |
17:46 | < Syka> | ToxicFrog: I dunno what i'd write about though |
17:47 | < ToxicFrog> | Aah |
17:47 | < ToxicFrog> | Yeah you do kind of need a topic you enjoy |
17:47 | < ErikMesoy> | McMartin: Hey, I tried tkinter and it was like "You already know this other thing, right? No? See its docs." |
17:50 | <@gnolam> | Tkinter is just unsuitable, period. |
17:50 | <@gnolam> | wx and Qt. Those are your two choices. |
18:08 | <&McMartin> | Yeah, I've been a Qt4 partisan for some time |
18:08 | <&McMartin> | Though I admit freely that Qt4 is less "widget toolkit" and more "operating system" |
18:11 | < ToxicFrog> | At this point I'm flirting pretty heavily with "fuck GUIs forever, I will develop only for the command line" |
18:11 | | * McMartin tends to give his apps consolitis >_> |
18:14 | | * iospace whaps McMartin upside the head |
18:14 | | * EvilDarkLord eyebrows. A website indexed in Google Scholar is triggering some antiviral thingie in Chrome. |
18:15 | | celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [Client exited] |
18:18 | | celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code |
18:18 | | mode/#code [+o celticminstrel] by ChanServ |
18:29 | <@Azash> | Syka: Conglaturation |
18:30 | < Syka> | :D |
18:31 | <@Tamber> | Conglomerations! |
18:33 | < ErikMesoy> | Conurbations! |
18:34 | < Syka> | ffff |
18:34 | < Syka> | my mobile doesn't work anywhere in here except right at the window -v- |
18:34 | < ToxicFrog> | What are we congratulating? |
18:35 | < Syka> | ToxicFrog: i moved into my new place |
18:35 | < Syka> | my very own place |
18:35 | < Syka> | https://dl.dropbox.com/u/14290114/IMG_20130105_214238.jpg |
18:35 | < Syka> | chaos! |
18:36 | < Syka> | it's somewhat neater now |
18:36 | <&McMartin> | I think you need more clocks |
18:36 | <&McMartin> | And larger ones |
18:36 | <&McMartin> | I'm not sure what time it is in that photo |
18:38 | < Syka> | rofl |
18:39 | <@EvilDarkLord> | Syka: Cool. So does this room double as your office now? |
18:43 | < ToxicFrog> | Syka: sweet! |
18:43 | < ToxicFrog> | Symbol and I just did the same. Still boxes everywhere! |
18:43 | < ToxicFrog> | The cats are super happy about it. |
18:44 | < Syka> | EvilDarkLord: yeah |
18:44 | < Syka> | kinda sorta |
18:44 | < Syka> | home business, whoo |
18:44 | < Syka> | can't wait for my new stuff to get here |
18:44 | <@EvilDarkLord> | Brave decision to put the TV in the same room. |
18:44 | < Syka> | i have a new screen, and the demo equipment for a little storage box i'm gonna sell |
18:45 | < Syka> | EvilDarkLord: I don't have any other rooms >v> |
18:45 | < Syka> | I have this room, which backs off into the kitchen, then my bedroom |
18:45 | < Syka> | and by bedroom, I mean 'hallway' |
18:45 | < Syka> | ...because my bed just fits in it |
18:47 | < ToxicFrog> | Hee |
18:47 | < ToxicFrog> | How big is it? Flat or house? |
18:48 | < Syka> | it's a flat, sort of thing |
18:48 | < Syka> | really, it's a housey bit on the side of some storage units, with a proper house on the other side |
18:48 | < Syka> | i'm in the flat bit, which is part of the same building as the storage |
18:49 | < Syka> | but yeah |
18:49 | < Syka> | ugh, tomorrow I have to go help the parents with some more shit |
18:50 | < Syka> | then I'm basically coming here, and ignoring the shit out of them |
18:50 | < Syka> | because today I spent six hours moving stuff, and I am not made for that in 40C heat :| |
18:51 | <&McMartin> | Yeah, 40C is pretty miserable. |
18:51 | | * McMartin offers a Proper American Lemonade. |
18:51 | <&McMartin> | which is apparently closer to what the Aussies call a lemon squash. |
18:52 | < Syka> | yay lemon squash |
18:52 | | * Syka adds much alcohol to it |
18:52 | | * McMartin also suggests crushed raspberries or strawberries. |
18:52 | <@EvilDarkLord> | Mmm, my deliciousense is tingling. |
18:54 | < Syka> | heh |
18:54 | <&McMartin> | (I have no idea if raspberry lemonade is a Thing elsewhere, but it is here, and, well, yes. It is Good Stuff) |
18:57 | | * Syka is paying for her own power now |
18:57 | | * Syka enables her monitors to turn off >v> |
18:57 | < ToxicFrog> | Snrk |
18:57 | < Syka> | they wouldnt turn off before |
18:58 | < Syka> | and xscreensaver would go nom nom gpu making spinning cubes |
19:07 | < ToxicFrog> | oh god kitten |
19:07 | < ToxicFrog> | she is eating my thesis |
19:08 | < Syka> | blind it with science |
19:08 | <@EvilDarkLord> | At least it's only paper now, it'd be worse if she started going through that pile of hardcovers that you generate at the end. |
19:09 | | Syka is now known as syksleep |
19:09 | <@EvilDarkLord> | You'll have a lot of practice finding places to hide them! |
19:16 | < ToxicFrog> | Books she doesn't really go for, it's just loose papers |
20:15 | | Kindamoody is now known as Kindamoody[zZz] |
21:11 | | Attilla [Obsolete@Nightstar-9e7fa2b2.range86-162.btcentralplus.com] has quit [[NS] Quit: ] |
21:16 | | Attilla [Obsolete@Nightstar-9e7fa2b2.range86-162.btcentralplus.com] has joined #code |
22:05 | | Vornicus [vorn@Nightstar-221158c7.sd.cox.net] has joined #code |
22:05 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
22:07 | | himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds] |
22:08 | | himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code |
22:08 | | mode/#code [+o himi] by ChanServ |
22:29 | | ErikMesoy is now known as ErikMesoy|sleep |
22:42 | | himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Connection closed] |
22:54 | | himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code |
22:54 | | mode/#code [+o himi] by ChanServ |
22:55 | | himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [[NS] Quit: Leaving] |
22:55 | | himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code |
22:55 | | mode/#code [+o himi] by ChanServ |
23:13 | | Derakon[AFK] is now known as Derakon |
23:40 | | You're now known as TheWatcher[T-2] |
23:51 | | mac [mac@Nightstar-fe8a1f12.il.comcast.net] has joined #code |
--- Log closed Sun Jan 06 00:00:08 2013 |