--- Log opened Tue Jul 12 00:00:02 2011 |
--- Day changed Tue Jul 12 2011 |
00:00 | < Vornicus> | (there are as far as I can tell precisely 0 persistent ones) |
00:01 | | * gnolam laughs out loud at McMartin's "UNIX twats" line. |
00:11 | | kwsn [t1gg@31356A.5FD175.47BC3A.7D9E06] has joined #code |
00:18 | < Vornicus> | with the art built in hand-written postscript. Which was a fun time. |
00:18 | < Vornicus> | and then I have a rakefile that does the generation for me because I could figure out how to get it to produce all the outputs I needed. |
00:25 | | shade_of_cpux is now known as cpux |
00:39 | | Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has quit [Ping timeout: 121 seconds] |
00:42 | | Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has joined #code |
01:01 | < Vornicus> | Though now I look back and I'm not... really all that pleased with some of the art -- specifically, the trophies are shit, I want to rejigger the aspect ratio which means rejiggering the regions some, and some other minor things. |
01:21 | < Derakon> | So guess what my boss's first instinct is when, after experiencing a fault with a special PCI card we use in the microscope, we get the same fault with a fresh card? |
01:22 | < Derakon> | "Maybe there was an error in copying the program over. Try copying it again." |
01:22 | < Derakon> | I.e. cosmic rays flipped a bit on the hard drive. |
01:31 | < Derakon> | He also tried to pull the "I have years of experience" thing by mentioning magnetic tape. |
01:32 | < Derakon> | My years of experience are a bit more recent than his years. ?.? |
01:43 | | gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Z?] |
02:07 | | AnnoDomini [annodomini@Nightstar-707f80fe.adsl.tpnet.pl] has quit [[NS] Quit: leaving] |
02:32 | | Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds] |
03:05 | | Kindamoody [Kindamoody@Nightstar-1cf96749.tbcn.telia.com] has quit [Connection closed] |
03:05 | | Kindamoody|out [Kindamoody@Nightstar-1cf96749.tbcn.telia.com] has joined #code |
03:06 | | Kindamoody|out is now known as Kindamoody |
03:44 | | cpux is now known as shade_of_cpux |
04:12 | | Kindamoody is now known as Kindamoody[zZz] |
04:43 | | Vash [Vash@Nightstar-f03c5637.sd.cox.net] has joined #code |
04:44 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code |
05:24 | < Derakon> | Man, why is it so hard to tell git "forget about what's in my local repository and just overwrite it from master"? |
05:30 | < Derakon> | Had to go into the history, find the last change from before I somehow branched from master, copy/paste the change blob (it'd be nice if these were a tad more succinct; mercurial can use simple revision numbers so why can't git?), revert back to that version, discard the modifications thereby created, and then pull. |
05:30 | < celticminstrel> | --force? |
05:31 | < celticminstrel> | Or delete and re-clone. |
05:31 | < Derakon> | ...might also work, didn't see it in my Googling or the docs. |
05:31 | < Derakon> | Delete and re-clone is the obvious brute-force solution, but I have trouble believing that it's the recommended one. |
05:31 | < celticminstrel> | Well, --force works for telling the remote repository to be overwritten. |
05:31 | < celticminstrel> | No idea if it works for the reverse. |
05:32 | < celticminstrel> | Oh, rebase? |
05:32 | < celticminstrel> | The "change blobs" are a bit annoying, I agree. |
05:33 | | * Derakon shrugs. |
05:33 | < celticminstrel> | Though I think I can see why simple revision numbers wouldn't really work. |
05:34 | < Derakon> | As I said, Mercurial manages somehow. |
05:34 | < celticminstrel> | Mercurial I haven't used. |
05:35 | < Derakon> | Looks like it uses simple incrementing numbers for local work and blobs for distributed work, I guess. |
05:35 | < Derakon> | Judging from http://code.google.com/p/jetblade/source/list anyway. |
05:42 | < kwsn> | so tday, i ended up security locking a total of 5 drives today Dx |
06:02 | < McMartin> | Git and Mercurial don't have "proper" revision numbers because that implies a central repository, an architecture neither wants to be bound to. |
06:05 | | Derakon is now known as Derakon[AFK] |
06:19 | | celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Client closed the connection] |
06:20 | | celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code |
06:28 | | Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
06:34 | | Taki^ [Taki@Nightstar-0d4dd6d5.consolidated.net] has joined #code |
06:44 | | kwsn is now known as kw\t-2 |
06:46 | | * kw\t-2 heads to bed, night all |
06:49 | | kw\t-2 [t1gg@31356A.5FD175.47BC3A.7D9E06] has quit [[NS] Quit: moo] |
07:11 | | Taki^ [Taki@Nightstar-0d4dd6d5.consolidated.net] has quit [Ping timeout: 121 seconds] |
07:22 | | AnnoDomini [annodomini@Nightstar-707f80fe.adsl.tpnet.pl] has joined #code |
07:29 | | Alek [omegaboot@Nightstar-7734d29f.emhril.sbcglobal.net] has quit [[NS] Quit: ] |
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:40 | | shade_of_cpux_ [chatzilla@Nightstar-c5874a39.dyn.optonline.net] has joined #code |
07:42 | | shade_of_cpux [chatzilla@Nightstar-c5874a39.dyn.optonline.net] has quit [Ping timeout: 121 seconds] |
07:42 | | shade_of_cpux_ is now known as shade_of_cpux |
07:59 | | Taki^ [Taki@Nightstar-0d4dd6d5.consolidated.net] has joined #code |
08:04 | | You're now known as TheWatcher |
08:28 | | Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has joined #code |
08:35 | | Taki^ [Taki@Nightstar-0d4dd6d5.consolidated.net] has quit [Ping timeout: 121 seconds] |
08:56 | | gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code |
09:28 | | Kindamoody[zZz] is now known as Kindamoody |
09:36 | | Vash [Vash@Nightstar-f03c5637.sd.cox.net] has quit [[NS] Quit: Spaaaaaaaaaaaaaaaaace sleeeeeeeeeeeeeeeep!] |
10:43 | | Kindamoody is now known as Kindamoody|out |
12:06 | | Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code |
12:53 | | Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has quit [[NS] Quit: ] |
13:35 | | Reiver [orthianz@9C034E.E649EA.3194C7.8381A3] has quit [Client closed the connection] |
13:37 | | Reiver [orthianz@9C034E.E649EA.3194C7.8381A3] has joined #code |
13:49 | <@froztbyte> | <Vhata> p = subprocess.Popen(["scp", "-P24", src, dest]).communicate()[0] |
13:49 | <@froztbyte> | <Vhata> *weep* |
13:50 | < AnnoDomini> | That looks involved. |
13:50 | <@froztbyte> | it's a helluva hack, too |
13:51 | <@froztbyte> | the code invokves scp with the parameters that follow it, .communicate() opens up the input and output pipes, and then [0] is stdout |
13:51 | <@froztbyte> | iirc |
13:52 | <@froztbyte> | whereas the person could have just used the lib for the scp implementation instead of using subprocess to wrap an external application |
14:27 | < gnolam> | Speaking of subprocess.Popen... |
14:27 | | * gnolam stabs Python. |
14:28 | < gnolam> | Reading a subprocess's stdout /before/ it terminates. Is that really so goddamned much to ask? |
14:37 | | * gnolam stabs Python again, for good measure. |
14:39 | <@froztbyte> | gnolam: ah yes, that was extremely annoying for me as well |
14:39 | <@froztbyte> | I think I found a way around it, but can't recall |
14:59 | < gnolam> | Pain. In. The. Ass. |
15:02 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed] |
16:47 | | celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code |
16:52 | | AnnoDomini [annodomini@Nightstar-707f80fe.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds] |
16:55 | | AnnoDomini [annodomini@Nightstar-2c989cd7.adsl.tpnet.pl] has joined #code |
18:29 | | celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Client closed the connection] |
18:29 | | celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code |
18:31 | | celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Client closed the connection] |
18:33 | | celticminstrel [celticminstre@Nightstar-5d22ab1d.cable.rogers.com] has joined #code |
18:38 | | Vash [Vash@Nightstar-f03c5637.sd.cox.net] has joined #code |
19:40 | | shade_of_cpux [chatzilla@Nightstar-c5874a39.dyn.optonline.net] has quit [Ping timeout: 121 seconds] |
19:42 | | shade_of_cpux [chatzilla@Nightstar-c5874a39.dyn.optonline.net] has joined #code |
19:55 | | shade_of_cpux [chatzilla@Nightstar-c5874a39.dyn.optonline.net] has quit [Ping timeout: 121 seconds] |
19:57 | | shade_of_cpux [chatzilla@Nightstar-c5874a39.dyn.optonline.net] has joined #code |
20:33 | | Vashicus [Vash@Nightstar-f03c5637.sd.cox.net] has joined #code |
20:35 | < Vornicus> | Heh. "projects using git: git" |
20:35 | | Kindamoody|out is now known as Kindamoody |
20:35 | < Vornicus> | I would, um. |
20:35 | | Vash [Vash@Nightstar-f03c5637.sd.cox.net] has quit [Ping timeout: 121 seconds] |
20:35 | < Vornicus> | Hope so! |
21:24 | | Derakon [chriswei@Nightstar-c826c088.ca.comcast.net] has joined #code |
21:25 | < Derakon> | So I have a set of "interface panels" that each provides a form the user fills out to control running some process. |
21:25 | < Derakon> | I want to make the program remember how the user had each form set up. |
21:25 | < Derakon> | Each panel is its own subclass of a main InterfacePanel class. |
21:26 | < Derakon> | If I were to do this as a one-off, it'd be by manually getting the contents of each control, serializing the lot, deserializing later, and manually setting the values of the controls. |
21:26 | < Derakon> | But I have 9 of these already and some of them are quite lengthy. |
21:27 | < Derakon> | I could write a function that examines the class's member variables, identifies the ones that are WX form inputs, and then gets/sets their values as appropriate... |
21:27 | < Derakon> | But Sebastian's code has made me very leery of mucking around in __dict__ and so on. >.< |
21:27 | < Derakon> | Any suggestions for alternate approaches? |
21:30 | < Derakon> | (The automatic method would look something like "for key, value in self.__dict__.iteritems(): if value is WX control: value.SetValue(read value from config for key)" |
21:30 | < Derakon> | ) |
21:31 | < gnolam> | Well, I'm doing it manually. But not all of my controls should be saved/loaded. |
21:32 | < Derakon> | Yeah, I'd have an exemptions list that I could add individual controls to manually. |
21:35 | < gnolam> | Also: working probability definitions and output analysis. \o/ |
21:38 | | * Derakon finds himself wanting to make a dict variable named "nameToValueMap". |
21:38 | < Derakon> | That's very helpful, Derakon. |
21:39 | < gnolam> | (All the simulation results you get are per primary particle - so transforming the deposited energy values (MeV/primary particle for each volume) you get to a dose rate (e.g. Gy/day) is not entirely trivial... but the method we've reasoned out apparently works \o/) |
22:14 | | Vashicus [Vash@Nightstar-f03c5637.sd.cox.net] has quit [[NS] Quit: Spaaaaaaaaaaaaaaaaace sleeeeeeeeeeeeeeeep!] |
22:14 | | celticminstrel [celticminstre@Nightstar-5d22ab1d.cable.rogers.com] has quit [Operation timed out] |
22:15 | | celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code |
22:26 | | Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has joined #code |
22:53 | < McMartin> | What's the "y" unit there? |
22:53 | < McMartin> | Other than Pretty Small, I Guess, given it's in G. |
22:54 | < Derakon> | Grays, Gy. |
22:54 | < Derakon> | Equal to 100 rads. |
22:54 | < Derakon> | So I guess GGy is gigagreys. |
22:55 | < McMartin> | Well |
22:55 | < McMartin> | It's Greys Per Day. |
22:55 | < McMartin> | Not Giga-yonks. |
22:56 | | celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Client closed the connection] |
22:58 | | celticminstrel [celticminstre@Nightstar-5d22ab1d.cable.rogers.com] has joined #code |
23:03 | < Derakon> | Anyone know offhand if Python has special code for writing to/reading from ~/Library for OSX users? |
23:03 | < gnolam> | Gigagrays would be... bad. |
23:03 | < Derakon> | Or should I just roll my own? |
23:03 | < McMartin> | Is there an environment variable that knows where "Library" is? |
23:03 | < McMartin> | Like Windows's %APPDATA%? |
23:04 | < Derakon> | I'm pretty sure it's always $HOME/Library. |
23:04 | <@froztbyte> | I'd search for a mac-compatibility lib for python |
23:04 | <@froztbyte> | there should probably be one around |
23:04 | < Derakon> | Unfortunately, searching for "Library" isn't especially helpful. |
23:04 | <@froztbyte> | http://docs.python.org/library/mac.html |
23:05 | <@froztbyte> | 36.3 and 36.4 might be applicable? |
23:05 | <@froztbyte> | I'm not intimately familiar with OSX, so I'm not sure how those things tie together |
23:05 | < Derakon> | Not so much, unfortunately. |
23:06 | <@froztbyte> | elsewise McMartin's suggestions would be my next avenue to check |
23:06 | <@froztbyte> | type `export` and `set` in a terminal session, see if there's anything that jumps out |
23:08 | < Derakon> | Yeah, nothing in my environment that holds anything pertaining to Library, beyond $HOME. |
23:11 | < McMartin> | Go for "$HOME/Library/Application Support/zomg" then if on OSX and "$HOME/.zomgrc" for Linux. |
23:11 | < gnolam> | ... and LibreOffice 3.4 inspires confidence: "It is safely for production need by most users" |
23:11 | < Derakon> | Roger. |
23:12 | < Namegduf> | gnolam: I think that's an accurate summary, myself. |
23:12 | | celticminstrel is now known as celmin|away |
23:13 | < McMartin> | To take and put the earth wire may cause a large occurrence |
23:14 | < Derakon> | That sounds vaguely like a double entendre. |
23:27 | < Derakon> | ...dang, I forgot about that. |
23:27 | < Derakon> | Most of the controls for these interface panels are themselves stored in lists. |
23:28 | < Derakon> | Which makes accessing them a bit more irritating. |
23:28 | < Derakon> | What I really need is a way to serialize and deserialize WX widgets. |
23:33 | | celmin|away [celticminstre@Nightstar-5d22ab1d.cable.rogers.com] has quit [Connection reset by peer] |
23:34 | | celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code |
23:47 | | AnnoDomini [annodomini@Nightstar-2c989cd7.adsl.tpnet.pl] has quit [[NS] Quit: Zzz.] |
23:47 | | Derakon [chriswei@Nightstar-c826c088.ca.comcast.net] has quit [[NS] Quit: leaving] |
23:53 | | celticminstrel is now known as celmin|away |
23:56 | | You're now known as TheWatcher[T-2] |
23:58 | | You're now known as TheWatcher[zZzZ] |
--- Log closed Wed Jul 13 00:00:46 2011 |