code logs -> 2007 -> Wed, 02 May 2007< code.20070501.log - code.20070503.log >
--- Log opened Wed May 02 00:00:03 2007
00:55 AnnoDomini is now known as Shell
00:55 BlueTiger [BlueTiger@Nightstar-1362.natsoe.res.rr.com] has quit [Quit: ]
01:13 Mahal is now known as MahalOut
02:11 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Quit: Z?]
02:17 Shell is now known as AnnoDomini
02:28 Vornicus is now known as IanMusgrave
02:43 IanMusgrave is now known as Vornicus
03:02 MahalOut is now known as Mahal
03:26 BlueTiger [BlueTiger@Nightstar-1362.natsoe.res.rr.com] has joined #code
03:27
< BlueTiger>
Hey, could anyone help me with a Ruby on Rails problem?
03:28
<@Vornicus>
I haven't much touched config.
03:29
< BlueTiger>
well, I'm not sure if it has to do with my config or not
03:29
< BlueTiger>
Every time I try to set up the scaffold it tells me "Before updating scaffolding from a new DB schema, try creating a table for your model"
03:30
< BlueTiger>
I've verified all the table names and that they are there, etc.
03:30
<@Vornicus>
What is the table name?
03:30
< BlueTiger>
sandbox
03:30
<@Vornicus>
ah
03:31
<@Vornicus>
Unless you specifically tell it that you want to use a table named "sandbox", the Sandbox model will assume you want a table called sandboxes
03:31
< BlueTiger>
ok
03:32
<@ToxicFrog>
...what if you have a class for which the plural is not ..s?
03:32
<@Vornicus>
It knows a large number of exceptions.
03:32
< BlueTiger>
aaand that did it. THanks
03:33
<@Vornicus>
Also, you can specifically name the table differently.
03:34
<@Vornicus>
and the pluralization. Let me see if I can find its list of exceptions
03:58 Vornicus is now known as IanMusgrave
04:07 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has quit [Connection reset by peer]
04:30 BlueTiger [BlueTiger@Nightstar-1362.natsoe.res.rr.com] has quit [Quit: ]
05:00 ReivSLEP is now known as ReivClass
06:04 IanMusgrave is now known as Vornicus
06:15 ReivClass is now known as Reiver
06:50 * Reiver attempts to find if there isn't a context-menu editor. His mp3 menu is getting frankly rediculous.
06:54
<@Vornicus>
A context menu editor for what?
06:54 Pi [~sysop@Nightstar-6875.hsd1.wa.comcast.net] has quit [Ping Timeout]
06:54
<@Vornicus>
And which mp3 menu?
06:56
< Reiver>
Oh
06:56 Pi [~sysop@Nightstar-6875.hsd1.wa.comcast.net] has joined #code
06:56 mode/#code [+o Pi] by ChanServ
06:56
< Reiver>
For XP.
06:57
< Reiver>
AKA when going through folders and things, when you right-click you get a context menu of your various options.
06:57
< Reiver>
I have 'helpful' additions from no less than three media players on this menu. ¬¬
07:10
<@Vornicus>
Ah
07:11
<@Vornicus>
Yeah, there's a way to fiddle with that
07:11
<@Vornicus>
Last time I tried was Win2k though, so this may be wrong: Settings -> Folder Options -> File Types
07:12
<@Vornicus>
And somewhere in there should be a way of seeing and editing the options that show up when you right click a file of a particular type.
07:14
< Reiver>
Oooh
07:14 * Reiver investigates.
07:18
< Reiver>
Works!
07:18
< Reiver>
Thanks.
07:19
<@Vornicus>
That's among the more powerful sections of shell that you can get to in there.
07:19 * Reiver nods.
07:19
<@Vornicus>
YOu can create new custom commands to open programs with particular flags; you can change the default action on double click...
07:19
< Reiver>
Still a number of things I haven't removed - it only brings up Winamp-related options when you click it. But it'll do
07:19
< Reiver>
... -.^
07:21
<@Vornicus>
Lots, and lots of cool things to do in there.
07:23 * Reiver can't see /that/ much shinies, but ok
07:24 Chalcedon is now known as Forj
07:25 Forj is now known as NSGuest-1628
07:26 NSGuest-1628 is now known as Forj
07:33 Forj is now known as Chalcedon
07:54 Chalcedon is now known as ChalcyDinner
08:07 Forjadon [~Forjadon@Nightstar-2310.ue.woosh.co.nz] has joined #code
08:07 mode/#code [+o Forjadon] by ChanServ
08:15 Forjadon [~Forjadon@Nightstar-2310.ue.woosh.co.nz] has quit [Quit: bbiab]
08:18 ChalcyDinner [~Chalcedon@Nightstar-2310.ue.woosh.co.nz] has quit [Ping Timeout]
08:21 Forj [~Forj@Nightstar-2310.ue.woosh.co.nz] has joined #code
08:24 Forjadon [~Forjadon@Nightstar-2310.ue.woosh.co.nz] has joined #code
08:24 mode/#code [+o Forjadon] by ChanServ
08:25 Forjadon is now known as Chalcedon
08:28 Mahal [~Mahal@Nightstar-12512.worldnet.co.nz] has quit [Quit: reboot]
08:28 Forj [~Forj@Nightstar-2310.ue.woosh.co.nz] has quit [Quit: Gone]
08:29 Serah is now known as Ev3
08:34 Mahal [~Mahal@Nightstar-12512.worldnet.co.nz] has joined #Code
08:34 mode/#code [+o Mahal] by ChanServ
09:14 You're now known as TheWatcher
09:32 Raif [~corvusign@Admin.Nightstar.Net] has quit [Killed (NickServ (GHOST command used by Raif_))]
09:32 Raif_ [~corvusign@Nightstar-22484.hsd1.ca.comcast.net] has joined #Code
09:32 Raif_ is now known as Raif
10:29 Chalcedon [~Forjadon@Nightstar-2310.ue.woosh.co.nz] has quit [Quit: Leaving]
10:32 Mahal is now known as MahalBedd
10:35 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code
10:35 mode/#code [+o gnolam] by ChanServ
11:01 Vornicus is now known as Vornicus-Latens
11:05 * gnolam ponders blurred lines in OpenGL.
11:07
<@Vornicus-Latens>
There's multi-pass blur filters, you'll want to turn on AA on the lines though.
11:07
<@Vornicus-Latens>
And have a very small blur aperture, or you'll just get a mess
11:13
<@gnolam>
Line AA as in GL_LINE_SMOOTH?
11:13
<@Vornicus-Latens>
iirc, something like that, yes
11:13
<@Vornicus-Latens>
Sleptime
11:15
<@gnolam>
Because that... does not produce the effect I want.
11:15
<@gnolam>
In fact, it doesn't seem to do /anything/.
11:15
<@gnolam>
Or hmm... I may have forgotten glHint().
11:16
<@gnolam>
No, I hadn't. Damn.
11:21
<@gnolam>
Ahh! You had to enable blending.
11:36
<@gnolam>
Now I just have to get the segment melding working...
11:42
<@McMartin>
Use line strips instead of individual lines?
11:44
<@gnolam>
I already am, to the extent the map info allows me.
11:44
<@gnolam>
But I believe it can be taken further.
11:46
<@gnolam>
(It's the segment switching that kills performance)
11:46
<@McMartin>
Hm.
11:46 * McMartin mostly used filled polys in OpenGL, so.
12:28
< MyCatVerbs>
http://www.simple-talk.com/opinion/opinion-pieces/fired-with-enthusiasm/ <-- anyone else read this? Strikes me as the besht department manager ever.
13:20 Thaqui [~Thaqui@Nightstar-27154.jetstream.xtra.co.nz] has left #code [Leaving]
14:38 EvilDarkLord is now known as Jo}{n
15:01 GeekSoldier [~Rob@Nightstar-6055.pools.arcor-ip.net] has joined #code
15:11 MahalBedd [~Mahal@Nightstar-12512.worldnet.co.nz] has quit [Ping Timeout]
15:21 Jo}{n is now known as EvilDarkLord
15:23 Mahal [~Mahal@Nightstar-12512.worldnet.co.nz] has joined #Code
15:23 mode/#code [+o Mahal] by ChanServ
15:32
<@gnolam>
Voodoo: If you make a doll, you can control anyone who looks like your doll.
15:32
<@gnolam>
IP: If you make a doll, you can control anyone whose doll looks like your doll.
15:33
<@AnnoDomini>
What.
15:33
<@gnolam>
Humor. Laugh.
15:33
<@AnnoDomini>
Haha.
16:13 Reiver is now known as ReivZzz
17:11 You're now known as TheWatcher[afk]
17:24 * ToxicFrog ponders
17:24
<@ToxicFrog>
So, I'm working on shark, but I no longer remember what I needed it for.
17:24
<@ToxicFrog>
Except that it was something related to Septerra Core.
17:24
<@ToxicFrog>
Oh, right! Finding the card array.
17:31
<@gnolam>
http://www.joystiq.com/2007/05/02/student-arrested-for-making-a-map-of-his-schoo l/
17:45 * ToxicFrog blinkblinks at Opera 9.20's "View Source" command
17:46
<@ToxicFrog>
It's a syntax-hilighting HTML editor that lets you apply the changes you make to the page-as-loaded.
17:55 GeekSoldier_ [~Rob@Nightstar-4283.pools.arcor-ip.net] has joined #code
17:56 GeekSoldier [~Rob@Nightstar-6055.pools.arcor-ip.net] has quit [Ping Timeout]
18:09 Serah [~Z@87.72.36.ns-26407] has joined #Code
18:09 mode/#code [+o Serah] by ChanServ
18:09 Ev3 [~Z@87.72.36.ns-26407] has quit [Ping Timeout]
18:28 You're now known as TheWatcher
19:32 KBot [~karma.bot@Nightstar-28983.neoplus.adsl.tpnet.pl] has joined #Code
19:32 KarmaBot [~karma.bot@Nightstar-29696.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
19:32 AnnoDomini [~farkoff@Nightstar-29696.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
19:33 KBot is now known as KarmaBot
19:39 AnnoDomini [~farkoff@Nightstar-28983.neoplus.adsl.tpnet.pl] has joined #Code
19:39 mode/#code [+o AnnoDomini] by ChanServ
19:50 Mahal is now known as MahalGone
19:53 GeekSoldier_ is now known as GeekSoldier
20:21 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has joined #Code
20:41 GeekSoldier [~Rob@Nightstar-4283.pools.arcor-ip.net] has left #code []
20:44
< Janus>
Finally come up with a way to determine if a line is connecting with a sphere! (I think.)
20:45
<@Vornicus-Latens>
"connecting with"?
20:45
<@Vornicus-Latens>
The usual way is to get point-line distance, which is a simple-ish formula
20:46
< Janus>
Yeah, going through it. (Don't tell me the answer yet! I wanna see if I got it right first~)
20:47
<@Vornicus-Latens>
heh
20:50
< Janus>
See if either ends of the line are inside of the sphere by compare the distance from the center, then check to see if "line_length* tan(theta/2) <= sp_radius" Where theta is the angle from one point of the line to the other from the sphere.
20:51 * Vornicus-Latens ponders
20:52
<@Vornicus-Latens>
I don't think that actually works.
20:52
<@Vornicus-Latens>
No, it doesn't
20:52
< Janus>
Er... "if((length/radius) <= tan(theta/2))"?
20:53
<@Vornicus-Latens>
No, see, the thing is
20:53 * AnnoDomini is trying to grok that. What do you mean by 'connecting with'?
20:53
<@Vornicus-Latens>
the right measure is along a perpendicular to the line, not along the bisector of the angle
20:53
<@AnnoDomini>
Like a wossname... tangent?
20:54
< Janus>
Well... I divided the theta by 2, because it's undefined at 90 degrees, and one at 45.
20:54
<@Vornicus-Latens>
http://mathworld.wolfram.com/Point-LineDistance3-Dimensional.html <--- down at the bottom.
20:59
< Janus>
I figured... with a unit circle radius 1, and a line unit long, "(1/1) <= tan(90/2)" worked out graphically, as it was a line that clipped the outer edge of the sphere. I should have tested it with other angles first...
21:01
< Janus>
... wait.
21:02
<@AnnoDomini>
Hm. So taking that formula (for d), it would be... if d == 0 for X and d != 0 for X+epsilon and X-epsilon, where epsilon is a small positive, then the line would connect with the sphere.
21:03
<@AnnoDomini>
Or something.
21:03
<@AnnoDomini>
Actually, substitute 0 for R, the radius.
21:06
< Janus>
Such high math. Or, at least, math with funny words sprinkled about. (The line's length needed to be doubled, now that I look at it. Though, that shouldn't matter too much)
21:06
< EvilDarkLord>
Hello, peoples. Would someone know the formula for getting the angles of a triangle on a sphere, given the latitude and longitude of each point?
21:07
<@Vornicus-Latens>
http://mathworld.wolfram.com/SphericalTrigonometry.html <--- have fun.
21:08
< EvilDarkLord>
Cheers, I think.
21:08
< Janus>
Haha, I hope they have something useful for cylinder/line collisions in there, somewhere~
21:09
<@Vornicus-Latens>
http://mathworld.wolfram.com/Line-LineDistance.html
21:09
< Janus>
Hot gravy, I'm set then!
21:10 * AnnoDomini notes that in his interpretation of the line problem, X is a point along the line.
21:13 Chalcedon [~Chalcedon@Nightstar-2310.ue.woosh.co.nz] has joined #code
21:13 mode/#code [+o Chalcedon] by ChanServ
21:44 You're now known as TheWatcher[afk]
21:45 AnnoDomini [~farkoff@Nightstar-28983.neoplus.adsl.tpnet.pl] has quit [Quit: What can change the nature of a man?]
21:51 AnnoDomini [~farkoff@Nightstar-28983.neoplus.adsl.tpnet.pl] has joined #Code
21:51 mode/#code [+o AnnoDomini] by ChanServ
22:07 You're now known as TheWatcher
22:18 Chalcy [~Chalcedon@Nightstar-2310.ue.woosh.co.nz] has joined #code
22:18 mode/#code [+o Chalcy] by ChanServ
22:18 Chalcedon [~Chalcedon@Nightstar-2310.ue.woosh.co.nz] has quit [Killed (NickServ (GHOST command used by Chalcy))]
22:18 Chalcy is now known as Chalcedon
22:29 You're now known as TheWatcher[T-2]
22:34 You're now known as TheWatcher[zZzZ]
23:18 Thaqui [~Thaqui@Nightstar-12299.jetstream.xtra.co.nz] has joined #code
23:18 mode/#code [+o Thaqui] by ChanServ
23:19 Vornicus-Latens is now known as Vornicus
--- Log closed Thu May 03 00:00:03 2007
code logs -> 2007 -> Wed, 02 May 2007< code.20070501.log - code.20070503.log >