code logs -> 2010 -> Sun, 21 Nov 2010< code.20101120.log - code.20101122.log >
--- Log opened Sun Nov 21 00:00:21 2010
00:03 You're now known as TheWatcher[T-2]
00:06 You're now known as TheWatcher[zZzZ]
00:13 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
00:23 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
00:37 Anno[Laptop] [annodomini@Nightstar-af382ebb.adsl.tpnet.pl] has quit [[NS] Quit: Sleep.]
00:44 Zed__ [Zed@Nightstar-556ea8b5.or.comcast.net] has quit [Ping timeout: 121 seconds]
00:45 Zed [Zed@Nightstar-556ea8b5.or.comcast.net] has joined #code
01:19 Attilla [Some.Dude@Nightstar-d25f0291.threembb.co.uk] has quit [[NS] Quit: ]
01:25 shade_of_cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
01:40 shade_of_cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has joined #code
02:12 Zed [Zed@Nightstar-556ea8b5.or.comcast.net] has quit [Ping timeout: 121 seconds]
02:30 Zed [Zed@Nightstar-bd80d4f6.or.comcast.net] has joined #code
03:35 Vornicus-Latens is now known as Vornicus
03:37 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
03:49 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection closed]
04:11 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
04:33 Netsplit *.net <-> *.split quits: Orthia, kwsn, PinkFreud, kazrikna, @Kazriko, @McMartin, EvilDarkLord, Stalker, Zed, shade_of_cpux, (+2 more, use /NETSPLIT to show all of them)
04:33 Netsplit over, joins: Stalker
04:35 * Vornicus tries to figure out how to create a random spherical starfield.
04:40
< Stalker>
Generate two sets of degrees and a length, the first set of degrees determines how the second set intersect the a plane.
04:40
< Stalker>
You could also just generate a random cubical starfield and prune everything outside your circle.
04:42 kwsn [kwsn@Nightstar-ca9721ae.dyn.centurytel.net] has joined #code
04:42
<@Vornicus>
"two sets of degrees"?
04:42
< Stalker>
Circular degrees?
04:42
< Stalker>
0 to 360?
04:42
<@Vornicus>
Right, but, how do you mean by that.
04:42
<@Vornicus>
Or rather ,why two sets of them, and how do you get them together so you don't have a strong pole bias.
04:42
< celticminstrel>
Solid angle.
04:43
< celticminstrel>
For spherical coordinates; r, ?, ?.
04:43
< Stalker>
First you generate a horizontal angle, then you generate a vertical angle..
04:43
<@Vornicus>
And get around the pole bias... how?
04:43
< Stalker>
Pole bias?
04:44
< celticminstrel>
Hm.
04:44
< Stalker>
Why would there be pole bias?
04:44
<@Vornicus>
Pole bias. by choosing latitude randomly, stars are twice as dense at 60degrees north than at the equator.
04:45
< celticminstrel>
...wait, what? How?
04:45
<@Vornicus>
There's only half as much room.
04:45 EvilDarkLord [jjlehto3@Nightstar-f1ccbb45.hut.fi] has joined #code
04:45
< Stalker>
I don't get it.
04:46
<@Vornicus>
If you walk around the equator, it takes you 24,000-ish miles. If you walk around the world along the 60th parallel, you walk 12,000-ish miles.
04:46
< Stalker>
Yeah, how is that pertinent?
04:46 McMartin [mcmartin@Nightstar-fc63ab0e.pltn13.sbcglobal.net] has joined #code
04:46 kazrikna [kazrikna@Nightstar-843a343b.arkaic.com] has joined #code
04:46 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has joined #code
04:46 Orthia [orthianz@Nightstar-ecf56764.xnet.co.nz] has joined #code
04:46 Namegduf [namegduf@Nightstar-5c10d129.beshir.org] has joined #code
04:46 Zed [Zed@Nightstar-bd80d4f6.or.comcast.net] has joined #code
04:46 shade_of_cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has joined #code
04:46 ServerMode/#code [+o Kazriko] by *.Nightstar.Net
04:47 mode/#code [+o McMartin] by Reiver
04:47
< Stalker>
Two numbers between 0 and 360 and one between 0 and 100 shouldn't be too hard.
04:47
< Stalker>
I don't see why it would bias any pole in particular, mostly because it's two circles.
04:48
<@Vornicus>
Because the second circle always goes through the poles.
04:48
<@Vornicus>
It would bias both poles.
04:48
< Stalker>
Ah.
04:48
<@Vornicus>
toward both poles, that is, and away from teh equator.
04:48 SmithKurosaki [smith@Nightstar-8ff23d84.dsl.teksavvy.com] has joined #code
04:49
< celticminstrel>
Are spherical coordinates precisely the same as altitude/latitude/longitude?
04:49
< Stalker>
I suppose you could generate a third number and yaw the second axis that much.
04:49
<@Vornicus>
celticminstrel: usually that's what you use, yes, but the problem with doing it that way is that as latitude increases, longitude does less work.
04:49
<@Vornicus>
...hm...
04:50
<@Vornicus>
...the sand reckoner.
04:50
< celticminstrel>
You could just generate cubical coordinates and discard those that don't fit in the sphere...
04:50
< celticminstrel>
Or cylindrical.
04:51
< Stalker>
I suggested that too.
04:51
< celticminstrel>
I know.
04:51
<@Vornicus>
Actually I don't care about distance, is the thing.
04:51
<@Vornicus>
Which means... oh, this is cool.
04:52
< Stalker>
Ignoring the gyro in the middle, this is what I'm trying to explain: http://ismashphone.typepad.com/.a/6a00e55225079e8834013486224972970c-500wi
04:52
<@Vornicus>
Two variables: 0..2pi, -1..1. Draw the point on a cylinder, then project it straight toward the axis.
04:53
<@Vornicus>
Onto the surface of the sphere.
04:54
< Stalker>
What do you need a spherical starfield for?
04:54
<@Vornicus>
Curiosity, mostly.
05:01 kwsn is now known as kwsn\t-2
05:04 kwsn\t-2 [kwsn@Nightstar-ca9721ae.dyn.centurytel.net] has quit [[NS] Quit: BEEP BEEP IMMA JEEP]
05:34
<@Vornicus>
...another alternative, normal distribution in three directions and normalize. Madness.
05:36 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
06:05 Stalker [Stalker@2C3C9C.B2A300.F245DE.859909] has quit [Ping timeout: 121 seconds]
06:18 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:31 shade_of_cpux is now known as cpux
06:47 Stalker [Stalker@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
07:40 Stalker [Stalker@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
08:17 Anno[Laptop] [annodomini@Nightstar-26e6c2ca.adsl.tpnet.pl] has joined #code
08:49 Zed [Zed@Nightstar-bd80d4f6.or.comcast.net] has quit [Client closed the connection]
10:05 Vornicus is now known as Vornicus-Latens
10:09 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Client closed the connection]
11:05 You're now known as TheWatcher
11:44 Attilla [Some.Dude@Nightstar-33004ab0.threembb.co.uk] has joined #code
11:44 mode/#code [+o Attilla] by Reiver
12:38 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
13:24 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
16:07 Stalker [Stalker@26ECB6.A4B64C.298B52.D80DA0] has joined #code
17:03 kwsn [kwsn@Nightstar-ca9721ae.dyn.centurytel.net] has joined #code
17:09 Stalker [Stalker@26ECB6.A4B64C.298B52.D80DA0] has quit [Client closed the connection]
17:09 Stalker [Stalker@26ECB6.A4B64C.298B52.D80DA0] has joined #code
18:05 kwsn is now known as kwsn\packers
18:16 cpux is now known as shade_of_cpux
18:18 You're now known as TheWatcher[afk]
18:18 celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has joined #code
18:20 Anno[Laptop] is now known as EdSimmons
18:21
< celticminstrel>
Okay, so I'd like to have a generator that basically does the same thing as calling set(...) - that is, it iterates through an iterable, and filters out duplicates.
18:21
< celticminstrel>
(Python)
18:21 Tarinaky is now known as Caeldir
18:22
< celticminstrel>
Am I correct in supposing that there's no way to do this with itertools and generator syntax?
18:22
< celticminstrel>
The only way I can think of is writing a generator function that keeps a list of objects already returned.
18:22
< celticminstrel>
Which sounds horribly inefficient.
18:26
<@jerith>
Keep a set of objects?
18:27
< celticminstrel>
Hm?
18:27
<@jerith>
Sets have O(1) lookup.
18:27
< celticminstrel>
...well, that's somewhat better than O(n) for lists, true.
18:29
< celticminstrel>
I suppose that requires the elements to be hashable.
18:29
<@jerith>
It does.
18:29
< celticminstrel>
Which shouldn't be a problem; just make sure they're tuples, not lists.
18:52 shade_of_cpux is now known as cpux
19:46 Vornicus-Latens is now known as Vornicus
20:54 Attilla_ [Some.Dude@Nightstar-6e67444d.threembb.co.uk] has joined #code
20:57 Attilla [Some.Dude@Nightstar-33004ab0.threembb.co.uk] has quit [Ping timeout: 121 seconds]
21:00 kwsn\packers is now known as kwsn
21:08 You're now known as TheWatcher
21:08 Stalker [Stalker@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
21:43 Attilla_ is now known as Attilla
21:49 Stalker [Stalker@2C3C9C.B2A300.F245DE.859909] has joined #code
21:52 Vornicus is now known as Finerty
22:02 Serah [Stalker@2C3C9C.B2A300.F245DE.859909] has joined #code
22:04 Stalker [Stalker@2C3C9C.B2A300.F245DE.859909] has quit [Client closed the connection]
22:09 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
22:10 EdSimmons is now known as AnnoDomini
22:10 Caeldir is now known as Tarinaky
22:13 Serah [Stalker@2C3C9C.B2A300.F245DE.859909] has quit [Ping timeout: 121 seconds]
22:18
< gnolam>
Bah. There doesn't appear to be any Acrobat alternatives that support 3D.
22:27 Stalker [Stalker@2C3C9C.B2A300.F245DE.859909] has joined #code
22:31 Stalker [Stalker@2C3C9C.B2A300.F245DE.859909] has quit [Ping timeout: 121 seconds]
22:41 Stalker [Stalker@2C3C9C.B2A300.F245DE.859909] has joined #code
22:46
<@McMartin>
I didn't realize Acrobat did too.
23:08 Finerty is now known as Vornicus
23:10
< gnolam>
Neither did I until today, when I encountered my first 3D PDF.
23:11
<@McMartin>
Huh
23:24
< gnolam>
But then again, I wouldn't be surprised to find an /actual/ kitchen sink in the latest PDF specs.
23:41 Stalker [Stalker@2C3C9C.B2A300.F245DE.859909] has quit [Ping timeout: 121 seconds]
23:58
<@TheWatcher>
gnolam: and a patent on it claimed by adobe.
23:58
<@TheWatcher>
despite the prior art from, say, Mozilla~
--- Log closed Mon Nov 22 00:00:22 2010
code logs -> 2010 -> Sun, 21 Nov 2010< code.20101120.log - code.20101122.log >