code logs -> 2010 -> Wed, 01 Sep 2010< code.20100831.log - code.20100902.log >
--- Log opened Wed Sep 01 00:00:43 2010
00:04 shade_of_cpux is now known as cpux
00:06 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has quit [[NS] Quit: Leaving]
00:10 Reiv [orthianz@Nightstar-fe7d0278.xnet.co.nz] has joined #code
00:13
< McMartin>
It's hard to laugh because it is entirely too accurate.
00:15
< McMartin>
That said, sometimes you really *shouldn't* be doing X.
00:15
< McMartin>
"I'm trying to learn to program, so I think I'll take on six problems that have been unsolved for 50 years all at once"
00:20 * Alek shiftyeyes.
00:20
< Alek>
how about just taking on several problems that have been only partially solved in the past 5 years?
00:21
< Alek>
and that not very successfully?
00:26 Anno[Laptop] [annodomini@Nightstar-43c3b20c.adsl.tpnet.pl] has quit [[NS] Quit: leaving]
00:37 Derakon [Derakon@Nightstar-cfae48c3.ca.comcast.net] has joined #code
00:37 mode/#code [+o Derakon] by Reiver
00:38 You're now known as TheWatcher[T-2]
00:41 You're now known as TheWatcher[zZzZ]
02:05 Derakon is now known as Derakon[CIV]
02:19 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
02:39 McMartin [mcmartin@Nightstar-dd07698f.pltn13.sbcglobal.net] has quit [[NS] Quit: Plausibly extended absence]
02:58 Reiv [orthianz@Nightstar-fe7d0278.xnet.co.nz] has quit [Connection reset by peer]
03:05 Reiv [orthianz@Nightstar-fe7d0278.xnet.co.nz] has joined #code
03:15 Reiv [orthianz@Nightstar-fe7d0278.xnet.co.nz] has quit [Connection reset by peer]
03:23 Reiv [orthianz@Nightstar-fe7d0278.xnet.co.nz] has joined #code
03:23 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has quit [Ping timeout: 121 seconds]
03:24 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has joined #code
03:24 mode/#code [+o Kazriko] by Reiver
03:51 Derakon[CIV] is now known as Derakon
03:55 Reiv [orthianz@Nightstar-fe7d0278.xnet.co.nz] has quit [Client closed the connection]
04:07 Reiv [orthianz@Nightstar-fe7d0278.xnet.co.nz] has joined #code
04:44 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
05:21
<@Derakon>
1036-node triangulation done in 9.103s (last night was 10.43s).
05:21
<@Derakon>
The improvement came from tracking down how I was getting those weird edges: redundant entries in the edge queue.
05:54
<@Derakon>
Oh, interesting.
05:55
<@Derakon>
Apparently most of my runtime is spent in preparing the edge queue.
05:55
<@Derakon>
...
05:55
<@Derakon>
Yeah, there we go.
05:58 * Derakon cuts his runtime by a factor of 8.
05:59
< Vornicus>
Preparing the edge queue. Was killing your runtime.
05:59
< Vornicus>
wtf?
05:59
<@Derakon>
Yeah.
05:59
<@Derakon>
I was doing a check to make certain I didn't add redundant edges to the queue.
06:00
<@Derakon>
That meant n^2 edge-edge comparisons.
06:00
<@Derakon>
Just replace that with a hash lookup and now it's n*log(n)!
06:00
<@Derakon>
(Er, that's not a factorial...)
06:01 * Derakon triangulates 4015 nodes in 5.407s.
06:01
<@Derakon>
I think that's adequate for my purposes.
06:02 Ortiha [orthianz@Nightstar-070c1cf9.xnet.co.nz] has joined #code
06:04 Reiv [orthianz@Nightstar-fe7d0278.xnet.co.nz] has quit [Ping timeout: 121 seconds]
06:15
<@Derakon>
And a further .4s off of that test as well, on realizing that I don't actually need the queue to be ordered, and thus edgeQueue and queueSet are redundant. :)
06:21
<@Derakon>
Hm, my circumcircle code is buggy, causing me to choose an incorrect starting hull: http://derakon.dyndns.org/~chriswei/temp2/badhull.png
06:21
<@Derakon>
I don't care what pair of those three nodes you start with, the third node is not the one that makes the smallest inscribed circumcircle.
06:24
< Vornicus>
Yeah no.
06:25 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [Ping timeout: 121 seconds]
06:38 Derakon is now known as Derakon[AFK]
06:47
< Vornicus>
Mmm, problem with that pair is that it picked top and bottom first.
06:48
< Vornicus>
Then, trying to find a "smallest" it failed miserably because they all have that point within them.
08:03 Ortiha [orthianz@Nightstar-070c1cf9.xnet.co.nz] has quit [Client closed the connection]
08:10 Reiv [orthianz@Nightstar-070c1cf9.xnet.co.nz] has joined #code
08:20 Reiv [orthianz@Nightstar-070c1cf9.xnet.co.nz] has quit [Connection reset by peer]
08:34 Reiv [orthianz@Nightstar-070c1cf9.xnet.co.nz] has joined #code
08:36 Reiv [orthianz@Nightstar-070c1cf9.xnet.co.nz] has quit [Client closed the connection]
08:43 Reiv [orthianz@Nightstar-070c1cf9.xnet.co.nz] has joined #code
08:44 Vornicus is now known as Vornicus-Latens
08:45 Reiv [orthianz@Nightstar-070c1cf9.xnet.co.nz] has quit [Connection reset by peer]
09:10 Reiv [orthianz@Nightstar-070c1cf9.xnet.co.nz] has joined #code
09:10 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
09:16 Reiv [orthianz@Nightstar-070c1cf9.xnet.co.nz] has quit [Client closed the connection]
09:24 Anno[Laptop] [annodomini@Nightstar-43c3b20c.adsl.tpnet.pl] has joined #code
09:26 Reiv [orthianz@Nightstar-4795c947.xnet.co.nz] has joined #code
09:32 You're now known as TheWatcher
11:08 Reiv [orthianz@Nightstar-4795c947.xnet.co.nz] has quit [Connection reset by peer]
11:11 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
11:16 Reiv [orthianz@Nightstar-4795c947.xnet.co.nz] has joined #code
11:27 Reiv [orthianz@Nightstar-4795c947.xnet.co.nz] has quit [Client closed the connection]
11:35 Reiv [orthianz@Nightstar-4795c947.xnet.co.nz] has joined #code
11:35 Reiv [orthianz@Nightstar-4795c947.xnet.co.nz] has quit [Client closed the connection]
11:43 Reiv [orthianz@Nightstar-4795c947.xnet.co.nz] has joined #code
12:26 cpux is now known as shade_of_cpux
12:32 * gnolam dons the +1 Lab Coat of Working.
12:58 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
13:03 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
13:20
< gnolam>
#define FL_OBJECT (1<<25) // Terrible name. This is an object that NPCs should see. Missiles, for example.
13:46
< gnolam>
Mrh.
13:46 * gnolam flails at Source's client/server separation.
13:51 Rhamphoryncus [rhamph@Nightstar-bbc709c4.abhsia.telus.net] has quit [Client exited]
14:46 Reiv [orthianz@Nightstar-4795c947.xnet.co.nz] has quit [[NS] Quit: routerreboot]
14:47 Reiv [orthianz@Nightstar-6d8a14fd.xnet.co.nz] has joined #code
15:09 celticminstrel is now known as celmin|busy
15:32 * Derakon[AFK] stops in for a bit.
15:32
<@Derakon[AFK]>
I fixed my inscribed circumcircle bug.
15:32
<@Derakon[AFK]>
The code from Wikipedia has D' = 2 * (B'_x * C'_y - B'_y * C'_x).
15:32
<@Derakon[AFK]>
I had B'_y - C'_x instead...
15:33
<@Derakon[AFK]>
* is not -, you doof
15:33
<@Derakon[AFK]>
Anyway, off to work.
15:37
<@TheWatcher>
Woops
15:42 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
16:11 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
16:53 celmin|busy is now known as celticminstrel
17:32 shade_of_cpux_ [chatzilla@Nightstar-20a84089.dyn.optonline.net] has joined #code
17:35 shade_of_cpux [chatzilla@Nightstar-20a84089.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
17:35 shade_of_cpux_ is now known as shade_of_cpux
19:20 Abu[Laptop] [annodomini@Nightstar-e61fab43.adsl.tpnet.pl] has joined #code
19:22 Anno[Laptop] [annodomini@Nightstar-43c3b20c.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
20:12 TarinakyKai [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
20:16 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Ping timeout: 121 seconds]
20:55 * gnolam stabs the GIMP with something nasty and painful.
20:55 * Abu[Laptop] sneak attacks it with a poisoned dagger. The poison on it is also poisoned.
21:07
< gnolam>
"Yo dawg, I put some poison in your poison so you can die while you die"?
21:07
< celticminstrel>
Why do you stab the GIMP?
21:09
< simon_>
I'd stab it.
21:10
< simon_>
I even got an alias gimp=pinta in my .bashrc
21:31
< gnolam>
celticminstrel: because it's awful.
21:32
< gnolam>
For example, it keeps trying to create windows larger than my desktop.
21:32
< Abu[Laptop]>
Paint is more user-friendly.
21:40 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
21:43
< gnolam>
More? The user interface is a nightmare of window hunting (its window management is just awful in general), its icon set is confusing and unintuitive (I know exactly what tools are available, and I /still/ have problems finding the tool I'm after), important tools are missing *cough*lines*cough*, existing tools are poorly designed (perspective correction, I'm looking at you), etc etc
21:45
<@TheWatcher>
While I agree that GIMP lacks important primative tools, you do know about shift and lines, yes?
21:46
< gnolam>
Not the same thing.
21:46
<@TheWatcher>
Howso?
21:47
< gnolam>
Antialiasing/transparency.
21:48
< gnolam>
Also: JESUS H CHRIST IT'S SLOW
21:48
<@TheWatcher>
If you want antialiased lines, use the brush tool+shift, if you don't use the pencil tool+shift?
21:48
<@TheWatcher>
Well, why not just use photoshop rather than complaining about it?
21:49
<@TheWatcher>
(which addresses some - but, I note, not all - of GIMP's deficiencies, and adds regular random crashes!)
21:50
< Abu[Laptop]>
WINE things up and load up MS Paint.
21:51
< gnolam>
Transparency stacks.
21:51
< gnolam>
Which means that you get ugly blots at the end of lines.
21:51
< gnolam>
Which is why you should have a goddamned line tool to begin with.
21:52
< gnolam>
(That, and its mode of interaction is better in many cases. Shift lines should still be in there, but a lot of the times, the standard-for-everyone-except-the-GIMP line tool is better suited.)
21:53
< gnolam>
And I can't be arsed to pirate Photoshop. :P
22:09 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has joined #code
22:09 mode/#code [+o Derakon] by Reiver
22:09 * Derakon eyes the wx-users mailing list.
22:10
<@Derakon>
Apparently I've been trying to get WX's ScrolledWindow class to do something it's not meant to do.
22:10
<@Derakon>
It is intended for use as a scrollable canvas, not as a container for generic UI widgets.
22:10 * Derakon mutters.
22:14
< celticminstrel>
Well, that's not terribly useful, is it?
22:15
< celticminstrel>
(Though it'll be sufficient for me when I get there.)
22:15
<@Derakon>
The ironic thing here is that I actually want to use them to limit the size of displayed images...but those images are themselves interactive UI widgets and I'm not about to try to rewrite their code to work in a different context.
22:16 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
22:17
<@jerith>
Our pyweek game got a comment from the guy who wrote the widget library we're using.
22:17
<@jerith>
"Awesome! I have a user!"
22:17 * Derakon snerks.
22:18
<@jerith>
Despite having to rewrite a bunch of stuff, it actually saved us a lot of time and effort.
22:19
<@Derakon>
Same goes for me and the in-game console I'm using.
22:58 Rhamphoryncus [rhamph@Nightstar-bbc709c4.abhsia.telus.net] has joined #code
23:07
<@Derakon>
For lack of motivation to do anything more meaningful, I've started to clean up some legacy code...
23:08
<@Derakon>
I discovered class GLViewer, which inherits from GLViewerCommon. GLViewer sets a parameter self.originLeftBottom to 1, but does not otherwise use it. Of course, as soon as I remove that parameter, the program breaks.
23:08 Netsplit *.net <-> *.split quits: Namegduf, gnolam, @Kazriko, Abu[Laptop], TarinakyKai, celticminstrel, Stalker, @jerith, Reiv, PinkFreud, (+1 more, use /NETSPLIT to show all of them)
23:09
<@Derakon>
Investigating further, GLViewerCommon accepts originLeftBottom as a constructor parameter, and in other parts of its code checks the value of self.originLeftBottom...but it never sets self.originLeftBottom itself.
23:09 Netsplit over, joins: @jerith, @Kazriko, Reiv, PinkFreud, @Derakon[AFK], Stalker, celticminstrel, Namegduf, TarinakyKai, Abu[Laptop] (+1 more)
23:09
<@Derakon>
I think my anecdote got fractured...
23:09
<@Derakon>
I discovered class GLViewer, which inherits from GLViewerCommon. GLViewer sets a parameter self.originLeftBottom to 1, but does not otherwise use it. Of course, as soon as I remove that parameter, the program breaks.
23:09
<@Derakon>
Investigating further, GLViewerCommon accepts originLeftBottom as a constructor parameter, and in other parts of its code checks the value of self.originLeftBottom...but it never sets self.originLeftBottom itself.
23:20 Netsplit *.net <-> *.split quits: Abu[Laptop], Namegduf, @Kazriko, @jerith, @Derakon[AFK]
23:21 Netsplit over, joins: @jerith, @Kazriko, @Derakon[AFK], Abu[Laptop], Namegduf
23:24 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
23:33 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
23:50 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
--- Log closed Thu Sep 02 00:00:44 2010
code logs -> 2010 -> Wed, 01 Sep 2010< code.20100831.log - code.20100902.log >