code logs -> 2010 -> Thu, 08 Apr 2010< code.20100407.log - code.20100409.log >
--- Log opened Thu Apr 08 00:00:50 2010
00:28 You're now known as TheWatcher[T-2]
00:32 You're now known as TheWatcher[zZzZ]
00:34 Derakon[AFK] is now known as Derakon
00:47 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
00:49 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has joined #code
00:53 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has quit [Ping timeout: 121 seconds]
01:25 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [Client closed the connection]
01:25 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
01:29 * Derakon tries to figure out if there's a way to get VirtualBox to treat the VM as being behind a router which is run by the host computer.
01:29
<@Derakon>
So that I can get it to assign an internal IP address in the 192.168.* range instead of trying to get one from my ISP (which will, of course, fail).
01:30
<@McMartin>
Derakon: NAT mode is kind of like that
01:31
<@McMartin>
However, VirtualBox's NAT sucks a lot
01:31
<@Derakon>
Hrm. Secondary issue: VirtualBox crashed when I exited the VM, and doesn't seem to want to come back up. Damnation.
01:34
<@McMartin>
Mac host?
01:34
<@Derakon>
Yeah.
01:34
<@McMartin>
Mac VBox is flaky as fuck
01:34
<@McMartin>
Check for zombie VBoxSVC processes
01:34
<@Derakon>
Will do.
01:36
<@Derakon>
That's got it. Thanks.
01:37
<@Derakon>
Ahh, network access achieved.
01:41
<@Derakon>
...damn, Worms Armageddon segfaulted when run. >.<
01:43
<@Derakon>
Ooh, but it seems to run in compatibility mode!
01:51
<@Derakon>
Okay, now I need to disable mouse integration, since it's causing the mouse to behave wonkily...
01:53 * Vornicus fiddles with the pentagonal trapezohedron (d10), trying to place pips on its face.
01:56 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has joined #code
02:09 RichardBarrell [user@Nightstar-58acb782.cable.virginmedia.com] has joined #code
02:27 Attilla [Attilla@FBC920.482E2D.971EED.6317D6] has quit [[NS] Quit: ]
02:47 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has quit [Ping timeout: 121 seconds]
02:52 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
02:57 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code
03:00 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [[NS] Quit: Leaving]
03:11 PinkFreud is now known as NeuPinkFreud
03:21 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
04:07 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [[NS] Quit: This computer has gone to sleep]
04:27 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!]
04:28 NeuPinkFreud is now known as PinkFreud
05:34 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has joined #code
06:13 Derakon is now known as Derakon[AFK]
07:11 AnnoDomini [annodomini@Nightstar-3d40d848.adsl.tpnet.pl] has joined #code
07:11 mode/#code [+o AnnoDomini] by Reiver
07:47 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
08:43 RichardBarrell [user@Nightstar-58acb782.cable.virginmedia.com] has quit [Operation timed out]
09:23 AnnoDomini [annodomini@Nightstar-3d40d848.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
09:24 cpux- [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code
09:25 AnnoDomini [annodomini@Nightstar-232c0cdd.adsl.tpnet.pl] has joined #code
09:25 mode/#code [+o AnnoDomini] by Reiver
09:26 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
09:26 cpux- is now known as cpux
09:34 You're now known as TheWatcher
09:36 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Connection closed]
09:46 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has quit [Client closed the connection]
09:46 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has joined #code
09:59 Attilla [Attilla@FBC920.482E2D.971EED.6317D6] has joined #code
09:59 mode/#code [+o Attilla] by Reiver
10:10 RichardBarrell [user@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
10:10 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
10:12 RichardBarrell [user@Nightstar-3b2c2db2.bethere.co.uk] has quit [Connection closed]
10:12 RichardBarrell [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
10:14 RichardBarrell [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [Client closed the connection]
11:43 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
13:29 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has quit [Client exited]
13:44 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
14:45 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!]
15:16 celticminstrel [celticminstre@1AB00B.855209.A256BB.B16D09] has joined #code
16:00 celticminstrel [celticminstre@1AB00B.855209.A256BB.B16D09] has quit [Ping timeout: 121 seconds]
16:00 celticminstrel [celticminstre@1AB00B.855209.A256BB.B16D09] has joined #code
--- Log closed Thu Apr 08 16:00:58 2010
--- Log opened Thu Apr 08 16:01:23 2010
16:01 TheWatcher [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
16:01 Irssi: #code: Total of 8 nicks [3 ops, 0 halfops, 0 voices, 5 normal]
16:02 Irssi: Join to #code was synced in 51 secs
16:03 DiceBot [Reiver@Nightstar-54389b51.xnet.co.nz] has joined #code
16:03 Derakon[AFK] [Derakon@Nightstar-5abd3ac9.ca.comcast.net] has joined #code
16:03 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
16:03 Reiver [reaverta@ServerAdministrator.Nightstar.Net] has joined #code
16:03 McMartin [mcmartin@Nightstar-3c130f1a.pltn13.sbcglobal.net] has joined #code
16:03 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
16:03 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
16:03 Attilla [Attilla@FBC920.482E2D.971EED.6317D6] has joined #code
16:03 Orth [orthianz@Nightstar-e0c520d6.xnet.co.nz] has joined #code
16:03 AgentIchiro [Smith@Nightstar-85fffd27.dsl.teksavvy.com] has joined #code
16:03 JBeshir [namegduf@Nightstar-5c10d129.beshir.org] has joined #code
16:03 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has joined #code
16:03 ServerMode/#code [+ooqooo Derakon[AFK] Reiver Reiver McMartin Vornicus Attilla] by *.Nightstar.Net
16:03 mode/#code [+o TheWatcher] by Reiver
16:03 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code
16:03 mode/#code [+o ToxicFrog] by Reiver
16:03 Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
16:04 Syloq is now known as Syloqs-AFH
16:07 celticminstrel [celticminstre@1AB00B.855209.A256BB.B16D09] has joined #code
16:46 AgentIchiro is now known as SmithKurosaki
17:17 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
17:20 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has quit [Ping timeout: 121 seconds]
17:41 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
18:04 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has joined #code
18:04 mode/#code [+o Derakon] by Reiver
18:05 * Derakon ponders system monitoring in Python.
18:05
<@Derakon>
Windows has a commandline utility, typeperf, that works similarly to 'top' on *nix.
18:05
<@Derakon>
It's a bit more versatile in that it can be used to collect data on remote machines as well, though.
18:06
<@Derakon>
So I'm trying to work out an elegant way to capture its output from within another program, for display in a GUI.
18:07
<@Derakon>
So far I have a thread that uses subprocess to run the command, sending its output to a file, and then waiting for a signal to end the thread. Then the main program instantiates the thread, opens its own filehandle on the output file, and occasionally reads up to the last line. It can then display the result.
18:07
<@Derakon>
This seems like it will work fine, except that it involves creating a file on the disk that doesn't really serve any useful purpose except as a staging area, and that grows linearly with process runtime.
18:08
<@Derakon>
Given I have hundreds of gigabytes of storage to play with, I don't anticipate problems, but it's inelegant.
18:09
<@Derakon>
Annoyingly, subprocess doesn't allow output to be sent to anything except file objects or subprocess.PIPE...and while it has a 'communicate' function that would be perfect for using the latter, calling it involves waiting for the subprocess to exit, which is no good for a non-terminating program like typeperf/top.
18:14
<@ToxicFrog>
Doesn't python have popen2()?
18:15
<@Derakon>
It does, but it's deprecated in favor of subprocess.
18:16
<@Derakon>
But if it does what I want, then screw deprecation.
18:19
<@ToxicFrog>
(also, windows has named pipes, which are actually string-identified sockets, which might duck-type as files once created and thus be something you can connect subprocess to.)
18:19
<@ToxicFrog>
(don't quote me on that, though)
18:20
< JBeshir>
Hmm.
18:20
< JBeshir>
Windows is an odd beast.
18:20
< JBeshir>
Sole trivia I know there is that sockets are at least different in that they're the only thing you can use the Windows API polling stuff on.
18:21
< JBeshir>
But I don't know what that implies for named pipes and duck-typing as files.
18:21
<@ToxicFrog>
JBeshir: well, what I mean here is
18:21
<@ToxicFrog>
It has things that it calls "named pipes"
18:21
< JBeshir>
Yeah.
18:21
<@ToxicFrog>
However, they have no presence in the filesystem, cannot be accessed using normal file IO, and work across the network
18:21
< JBeshir>
Ah.
18:21
<@ToxicFrog>
So they're really more like sockets that are indentified by a name rather than a port number.
18:22
<@ToxicFrog>
Once -created-, though, you might* be able to use them in places that expect a file handle, in much the same way you can create a socket in *nix using socket() and then pass the resulting fd to whatever.
18:23
<@ToxicFrog>
*might because it's been a long time since I looked at this API and can't remember if they're file-like once created, or a completely different type
18:24 * Derakon ponders http://pastebin.starforge.co.uk/244
18:25
<@Derakon>
I expect to get about ten numbers printed, but I only get one.
18:25
<@Derakon>
Clearly, I'm doing something wrong.
18:28
<@ToxicFrog>
Er
18:28
<@Vornicus>
Der: you can use your popen object's stdout and stdin objects (if you give them PIPE when you create) as files.
18:28
<@ToxicFrog>
Lines 10-12 loop, reading lines and doing nothing with them, until there is no more input
18:29
<@Derakon>
TF: I had assumed that stdout.readline() would return nothing rather than block on additional input.
18:29
<@Vornicus>
(in subprocess)
18:29
<@ToxicFrog>
No.
18:29
<@ToxicFrog>
It blocks.
18:29
<@Derakon>
Curses.
18:29
<@ToxicFrog>
There may be an option to set it nonblocking, but if so I don't know how.
18:30
<@Derakon>
Vorn: okay, I'll give that a shot, once I figure out how to do "read the most recent line of output" without blocking.
18:31 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
18:33
<@Derakon>
I suppose actually I can deal with blocking output.
18:33
<@Derakon>
Er, blocking reading.
18:33
<@Derakon>
I'll just shunt the UI update into the thread.
18:33 Orth [orthianz@Nightstar-e0c520d6.xnet.co.nz] has quit [Client closed the connection]
18:38
<@Derakon>
Okay, this looks like it should work: http://pastebin.starforge.co.uk/245
18:38
<@Derakon>
Thanks for the help, guys.
18:40 * Vornicus fiddles with Postscript, trying to determine the rotate and translate values for this.
18:41 Orthia [orthianz@Nightstar-e0c520d6.xnet.co.nz] has joined #code
18:50
<@Vornicus>
there's the right rotation...
18:51 * Vornicus arglfargs at translation though.
18:52
<@jerith>
Three rights make a left.
18:53
<@Derakon>
Ahh, I do so love array slices.
18:54
<@Derakon>
entries = [str[1:-1] for str in line.split(',')]
18:54
<@Vornicus>
...because apparently the translate is always getting applied before the rotate, no matter what order I put it in?
18:54
<@Derakon>
That there strips the entries out of a CSV where every entry is surrounded by quotation marks.
18:55
<@Derakon>
(Note that doing line.split('","') wouldn't work because the first and last quotation marks would remain)
18:55
<@Vornicus>
um, there is a csv module.
18:55
<@Derakon>
Bah!
18:55
<@Vornicus>
It handles all the crazy format shit
18:55
<@Derakon>
Bah!
18:55
<@Vornicus>
including, among other things, commas within fields.
18:56
<@Derakon>
Array slices are still awesome.
18:56 * Derakon goes to look up the CSV module.
19:10
<@Vornicus>
okay, translations and rotations figured out.
19:10 * Vornicus now tries to remember how to convince bash to loop through numbers.
19:14
<@ToxicFrog>
for i in {1..10} do
19:15
<@ToxicFrog>
Alternately, for (( i=1; i <= 10; ++i )); do
19:16
<@Vornicus>
and then I can use that as $i ? perfect
19:16 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has joined #code
20:18 * Vornicus tries to figure out how to get imagemagick to build a gif.
20:23 * AnnoDomini can't figure this out. What's in memory in real mode and what's in protected mode?
20:24
<@AnnoDomini>
I have a map that has stuff like interrupt table, drivers and resident programs, ROM BIOS, kernel and whatnot.
20:24
<@AnnoDomini>
This would be real mode?
20:24
<@McMartin>
IIRC, real mode is the form where the TLB and friends no longer exist
20:24
<@McMartin>
But I literally haven't looked at this since PC-AT stopped being the standard
20:52
<@Derakon>
Vorn: I have a script that builds GIFs for me.
20:53
<@Derakon>
I made it back when I was working on animations in Blender.
20:54
<@Derakon>
It's in Perl, but I'm sure you can figure it out. The command it generates is probably overly verbose, but enh. http://pastebin.starforge.co.uk/246
20:56
<@Derakon>
Basically, 'convert -delay N1 filename1 -delay N2 filename2 -delay N3 filename3 ... -loop 0 outputname.gif'
21:04
<@ToxicFrog>
AnnoDomini: the contents of memory don't change; the way you access them, and the behaviour of the CPU, does.
21:53 AnnoDomini [annodomini@Nightstar-232c0cdd.adsl.tpnet.pl] has quit [[NS] Quit: I accidentally the endboss.]
21:58 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection closed]
22:19 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has joined #code
22:29 atkeni [MapAkn@Nightstar-45235759.lodz.mm.pl] has joined #code
22:34 Orthia [orthianz@Nightstar-e0c520d6.xnet.co.nz] has quit [Ping timeout: 121 seconds]
23:00 You're now known as TheWatcher[T-2]
23:04 You're now known as TheWatcher[zZzZ]
23:17 celticminstrel [celticminstre@1AB00B.855209.A256BB.B16D09] has quit [Client exited]
23:17 atkeni [MapAkn@Nightstar-45235759.lodz.mm.pl] has quit [[NS] Quit: leaving]
23:32 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has quit [[NS] Quit: Leaving]
23:36 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
23:43 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code
23:58 Derakon[AFK] is now known as Derakon
--- Log closed Fri Apr 09 00:00:51 2010
code logs -> 2010 -> Thu, 08 Apr 2010< code.20100407.log - code.20100409.log >