--- Log opened Wed Apr 28 00:00:06 2010 |
--- Day changed Wed Apr 28 2010 |
00:00 | < Rhamphoryncus> | I'll probably switch to hg eventually though. Dunno where I'll get hosted then |
00:00 | <@TheWatcher[T-2]> | Just randomly, if you're after a bug/feature/request/whatever tracker, I'd recommend looking at Flyspray |
00:00 | <@TheWatcher[T-2]> | I've been using it in work, and unlike Bugzilla, it isn't actually painful to use. |
00:01 | < Tarinaky> | Well, if google code works I see no reason not to use it. |
00:01 | | * Derakon must head off. |
00:01 | | Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has quit [[NS] Quit: Leaving] |
00:01 | < Tarinaky> | For our purpose anyway. |
00:01 | <@McMartin> | Well, don't forget to check the TOS |
00:01 | <@McMartin> | I guess if you are going with git you can also look at github? |
00:01 | | * McMartin has never used github |
00:02 | < Tarinaky> | I've actually got a github account and used. It's quite good. |
00:02 | < Tarinaky> | Although the fact that google code gives stuff like wikis and stuff ontop is better,. |
00:03 | | You're now known as TheWatcher[zZzZ] |
00:04 | < Rhamphoryncus> | Launchpad's lack of a wiki is a major drawback |
00:22 | <@ToxicFrog> | github is fantastic as a code hosting mechanism. As a full project thing it's kind of lacking in the areas of, for example, issue tracking. |
00:23 | <@ToxicFrog> | I've had success using it for collaboration on small projects, tho. |
01:20 | < Rhamphoryncus> | Ugh. Again I chase down a bug that's actually doing the correct thing |
01:33 | | Derakon [Derakon@Nightstar-5213d778.ca.comcast.net] has joined #code |
01:33 | | mode/#code [+o Derakon] by Reiver |
01:46 | < Rhamphoryncus> | awesome. I defined __eq__ but not __ne__, so != continued to use the default behaviour. Stupid python |
02:15 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code |
02:23 | | cpux- [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code |
02:26 | | cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Ping timeout: 121 seconds] |
02:26 | | cpux- is now known as cpux |
03:49 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?] |
04:08 | | Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds] |
04:30 | | Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code |
05:12 | | mode/#code [-o jerith] by ChanServ |
05:32 | | Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [[NS] Quit: ] |
06:23 | | AnnoDomini [annodomini@Nightstar-bbbe50d9.adsl.tpnet.pl] has joined #code |
06:23 | | mode/#code [+o AnnoDomini] by Reiver |
06:53 | | Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code |
06:57 | | Derakon is now known as Derakon[AFK] |
07:00 | | Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [[NS] Quit: brb. fricking updates.] |
07:02 | | Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code |
07:03 | | You're now known as TheWatcher |
08:13 | | Taki^ [jwjw@Nightstar-9b459f81.consolidated.net] has quit [Ping timeout: 121 seconds] |
08:18 | | You're now known as TheWatcher[afk] |
08:19 | | Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds] |
08:41 | | Vornicus is now known as Vornicus-Latens |
08:42 | | Taki^ [jwjw@Nightstar-9b459f81.consolidated.net] has joined #code |
09:26 | | AnnoDomini [annodomini@Nightstar-bbbe50d9.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds] |
09:28 | | AnnoDomini [annodomini@Nightstar-09fe7c04.adsl.tpnet.pl] has joined #code |
09:28 | | mode/#code [+o AnnoDomini] by Reiver |
09:45 | | Attilla [Attilla@FBC920.398CA6.FC4697.2D0785] has joined #code |
09:45 | | mode/#code [+o Attilla] by Reiver |
09:52 | | You're now known as TheWatcher |
10:15 | | Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has quit [Client exited] |
10:40 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code |
12:29 | | cpux is now known as shade_of_cpux |
13:07 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Reboot] |
13:11 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code |
13:41 | | celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code |
14:23 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Ping timeout: 121 seconds] |
14:23 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code |
14:39 | | You're now known as TheWatcher[afk] |
15:31 | | Tarinaky [Tarinaky@Nightstar-83f5e5c6.adsl.virginmedia.net] has quit [Client closed the connection] |
15:41 | | cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code |
15:42 | | shade_of_cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Ping timeout: 121 seconds] |
15:42 | | cpux is now known as shade_of_cpux |
16:10 | | Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code |
16:41 | | You're now known as TheWatcher |
17:42 | | AnnoDomini [annodomini@Nightstar-09fe7c04.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds] |
18:12 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed] |
18:35 | | Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has joined #code |
18:35 | | mode/#code [+o Derakon] by Reiver |
18:35 | | * Derakon sighs at his Python program, which just threw a bus error. |
18:36 | <@ToxicFrog> | Neat trick. |
18:38 | <@Derakon> | I blame wx, because I'm happier doing that than blaming SciPy. |
18:43 | <@Derakon> | Also, because it was working fine until I tried to add a status dialog to give the users something to look at for the ~2 minutes it takes to run the Simplex algorithm. |
18:45 | <@Derakon> | ...the STAY_ON_TOP wx style causes the window to stay on top of all windows, not just windows in the current app. WTF. |
18:48 | <@ToxicFrog> | ...to be honest, that's what I'd expect it to do. |
18:49 | <@Derakon> | Mph. |
18:50 | <@Derakon> | I've never liked apps that felt they were free to obscure the app I'm currently using. |
18:50 | <@Derakon> | I don't mind apps that feel free to obscure themselves though. |
18:51 | <@ToxicFrog> | That may be, but my interpretation of STAY_ON_TOP is that it corresponds to the WM's "always on top" flag. |
18:51 | | Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds] |
19:14 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code |
19:18 | | Tarinaky [Tarinaky@Nightstar-83f5e5c6.adsl.virginmedia.net] has joined #code |
19:35 | | Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code |
19:39 | | Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has joined #code |
19:50 | < celticminstrel> | ...how the kumquat does Python get a bus error? |
19:56 | < PinkFreud> | hardware problem? |
20:08 | <@Derakon> | Going out to a library that's written in C? |
20:10 | < celticminstrel> | Does it throw a Python exception or just exit to shell? |
20:11 | <@Derakon> | zsh: bus error /usr/local/bin/python2.5 auidemo.py ../../aligner/testfiles/1.mrc |
21:08 | | * Derakon mutters at vim, which insists on indenting for him when he comments out the first line in a given block. |
21:08 | <@Derakon> | This is almost never what I want. |
21:10 | <@Derakon> | ...okay, WTF. I've overridden the mouse event handler on this object, so it never gets called ordinarily. Now if I call it from within my overriding mouse handler, it gets called twice. |
21:12 | <@TheWatcher> | ... |
21:12 | <@McMartin> | One for mouse down, one for mouse up? |
21:12 | <@Derakon> | (That is, it gets the call that I make explicitly, and it gets a call from wx, somehow) |
21:13 | <@Derakon> | McM: no, can't be, because when I invoke it, I'm passing a special argument. |
21:13 | <@Derakon> | I'm seeing two calls: one with the special argument set, one with it not. |
21:14 | <@ToxicFrog> | Are you meant to be telling wx "don't propagate this event, I'll handle that myself" or similar? |
21:14 | <@Derakon> | Basically, yeah. |
21:14 | <@Derakon> | What I have is a viewer that includes a cropbox that can be dragged around. |
21:14 | <@Derakon> | What I want is for mouse events that aren't manipulating the cropbox to manipulate the viewer instead. |
21:15 | <@Derakon> | (Specifically, I want right-clicks to rotate the viewer, instead of popping up a context menu, which is what they'd ordinarily do) |
21:15 | <@Derakon> | So I call its OnMouse function, and tell it "Look, just handle the cropbox". |
21:15 | <@ToxicFrog> | (why are you using wx, incidentally?) |
21:15 | <@Derakon> | (Hysterical^WHistorical reasons) |
21:15 | <@Derakon> | s/reasons/raisins/^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H |
21:16 | <@Derakon> | But what I'm seeing is that it's getting my call, and it's getting a normal "Just process events as normal" call. |
21:17 | | mode/#code [-o Derakon] by ChanServ |
21:17 | | * Derakon eyes ChanServ. |
21:18 | <@ToxicFrog> | Derakon: yes, what I'm wondering is if what you're saying is "do this in addition to normal event handling", and you need to do something differently to tell it to do it instead of, either in the event handler itself or when you register it. |
21:19 | < Derakon> | The normal behavior on viewers is for left-click to manipulate cropboxes and right-click to pop up a context menu. |
21:19 | < Derakon> | I have a specific viewer where I need to change that to "left click drags the viewer around and right click rotates it", in a context higher than the viewer operates. Except of course I still need the cropbox to function. I don't care about the context menu. |
21:21 | <@ToxicFrog> | So, wait |
21:22 | <@ToxicFrog> | My understanding was, you have a cropbox, you have a thing containing the cropbox |
21:22 | <@ToxicFrog> | You override the right click handler for the thing to call the cropbox's right click handler. |
21:22 | <@ToxicFrog> | When you right click, the cropbox's handler gets called twice. |
21:23 | < Derakon> | Something like that, yeah. |
21:23 | < Derakon> | I have a working system now. It just involved telling the viewer, at the time of instantiation, "Okay, you, never make a popup menu." |
21:24 | < Derakon> | So now I can pass it all mouse events and not worry about it. |
21:24 | < Derakon> | The whole thing's a big hack. |
21:24 | < Derakon> | Basically what happens when someone writes some code that's useful for purpose A and someone else does the minimal amount of work needed to use it for purpose B. |
21:24 | < Derakon> | Fortunately it's normally not very intrusive. |
21:24 | <@ToxicFrog> | Ok. |
21:25 | <@ToxicFrog> | My speculation is/was that the event handler for the container was telling wx "continue propagating this event normally" (or not telling it to stop). |
21:25 | <@ToxicFrog> | So, you right click, the container's event handler gets called, then it keeps working its way down the widget heirarchy and calls the cropbox's handler. |
21:26 | < Derakon> | No, I thought of that, but when I turned off my manual propagation, a print statement in the viewer's event handler never triggered. |
21:26 | < Derakon> | So basically, by turning on manual propagation I went from zero calls to two calls per event. |
21:43 | < gnolam> | You are asked to draft a letter for a client. It is to be sent to them by e-mail, whereafter they can print it out and sign it and send it to its intended recipient. Do you |
21:43 | < gnolam> | 1) Type it up in your favorite word processor, export it to PDF and send it, or |
21:43 | < gnolam> | 2) Type it up in your favorite word processor, print it out, scan it back in as a raster PDF and send it? |
21:43 | < Derakon> | ...the former. |
21:44 | < Namegduf> | The latter, but then I print it out and take a photo of it on a wooden table. |
21:44 | < Namegduf> | And send them that. |
21:44 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed] |
21:46 | < gnolam> | (As you might have guessed, these guys chose #2) |
21:49 | < gnolam> | The Chernobyl tour agency did the same with its invoice, but behavior like that is sort of expected from the Ukraine. And it at least had some amusing Eastern Bloc-y stamps on it. |
21:49 | < gnolam> | But this is from a proper consultant. :P |
22:40 | <@ToxicFrog> | (3) Write it in LaTeX, render to PDF, email~ |
22:43 | | * Vornicus-Latens has a bunch of points in R+^3 |
22:43 | | * Derakon puts Vorn up on the highscore list. |
22:43 | | * Vornicus-Latens needs to find the "smallest" plane that contains them all when you also include the axial planes. |
22:44 | | Vornicus-Latens is now known as Vornicus |
22:44 | < Derakon> | I don't understand the question. |
22:44 | < Derakon> | Are you making a hull out of the points and then trying to find the 2D slice of that hull with the smallest area? |
22:44 | < Vornicus> | I've got a bunch of points in the all-positive octant. |
22:45 | < Derakon> | (My supposition can't be right because you'd just slice through right next to one of the points and get an infinitesimally small slice) |
22:45 | < Vornicus> | I need to find the smallest tetrahedron such that all the points are in (or on the face of) the tetrahedron, and that three of those faces are the axial planes. |
22:45 | < Derakon> | Hm. |
22:46 | < Derakon> | Okay, so you have points (x_0, 0, 0), (0, y_0, 0), (0, 0, z_0), and (x_1, y_1, z_1) |
22:47 | < Vornicus> | Well, no |
22:47 | < Vornicus> | I have the first three points and (0,0,0) |
22:47 | < Derakon> | Oh, right right. |
22:48 | < Derakon> | Hrm. Gut-instinct: find the point in your set that is furthest from the origin, make your slice be perpendicular to the line from the origin through that point? |
22:48 | < Derakon> | ...no, that can't be right...say you have a very flat set, for example. |
22:49 | < Vornicus> | I was thinking "get the three furthest points" but that has a bit of an issue if your three furthest points are near those first three points and then the fourth kind of bows out. |
22:50 | < Derakon> | Intuitively, it seems like whatever slice you make should include the point furthest from the origin. |
22:51 | < Vornicus> | I'm not sure about that. |
22:51 | | PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds] |
22:51 | < Derakon> | I'm having trouble thinking of a counterexample. |
22:51 | < Derakon> | (If that is true, then you have a slice with two degrees of freedom that you can try to minimize) |
22:53 | < Vornicus> | Given six points - three very near the axes and three ones that are closer to the origin but further than the plane normal generated by the other three (they have to be closer to the "center") |
22:54 | < Derakon> | ...does that geometry work out? |
22:54 | < Derakon> | Lets say our axial points are at distance 10 from the origin each. |
22:55 | < Derakon> | ...argh, I can't remember the 3D math needed for this. |
22:55 | < Derakon> | How tall is a regular tetrahedron with edge length xL |
22:55 | < Derakon> | s/L/? |
22:56 | < Derakon> | Hmm...seems that it does. |
22:57 | <@McMartin> | Oops |
22:57 | | * McMartin attempts to start 'emacks'. |
22:57 | <@McMartin> | The text editor for pretentious Goths! |
22:59 | < Vornicus> | or possibly wannabe players. |
23:02 | | * McMartin grabs the latest Fedora beta. |
23:03 | < Derakon> | Use the set of 3 points that are most extreme in each axis. |
23:03 | < Derakon> | In the event of duplication, take the second-most-extreme (or third-most-extreme in triplication). |
23:03 | < Derakon> | Does that work? |
23:04 | < Vornicus> | No, same problem |
23:04 | < Derakon> | Oh, duh. |
23:04 | < Derakon> | Sorry, brainfart. |
23:05 | < Vornicus> | take the points 0.75 * {x, y, z}; then take 0.6 * {x + y, x + z, y + z} |
23:05 | | Derakon[AFK] [Derakon@Nightstar-5213d778.ca.comcast.net] has quit [Ping timeout: 121 seconds] |
23:06 | < Vornicus> | and then if you wanna get /really/ mean, 0.5 * {x + y + z} |
23:06 | < Derakon> | ...so much for my other half. |
23:07 | < Vornicus> | radii for those: 0.75, 0.848, and 0.866) |
23:08 | < Derakon> | Yeah, I guess my problem is that I keep thinking of this as a bounding-sphere problem, which is much easier. |
23:09 | < Vornicus> | I know. |
23:24 | | * Vornicus actualyl tries to figure out what he /really/ wants here. |
23:27 | < Derakon> | A linear-time fluid simulation. |
23:28 | < Vornicus> | AHA |
23:30 | < Vornicus> | what I /really/ want is a projection from 3d to 2d, such that I get an equilateral triangle where each corner is the minimum in two coordinates and the maximum in the third. |
23:41 | < Vornicus> | ...not hard at all, in fact. |
23:51 | | You're now known as TheWatcher[T-2] |
23:53 | | You're now known as TheWatcher[zZzZ] |
--- Log closed Thu Apr 29 00:00:22 2010 |