code logs -> 2014 -> Wed, 23 Apr 2014< code.20140422.log - code.20140424.log >
--- Log opened Wed Apr 23 00:00:04 2014
00:08 Orthia [orthianz@Nightstar-3tp.juj.184.203.IP] has joined #code
00:08 mode/#code [+o Orthia] by ChanServ
00:12 You're now known as TheWatcher[T-2]
00:28 You're now known as TheWatcher[zZzZ]
00:42 gnolam [lenin@Nightstar-lgrapr.tbcn.telia.com] has quit [[NS] Quit: Z?]
00:58 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
01:21 Vornicus [Vorn@Nightstar-28h42k.sd.cox.net] has joined #code
01:21 mode/#code [+qo Vornicus Vornicus] by ChanServ
01:21 * McMartin lifts an eyebrow at http://chocolatey.org/
01:57 Tarinaky [tarinaky@Nightstar-e99cts.net] has quit [Ping timeout: 121 seconds]
02:15 Tarinaky [tarinaky@Nightstar-e99cts.net] has joined #code
02:15 mode/#code [+o Tarinaky] by ChanServ
02:37 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection closed]
02:41 himi [fow035@Nightstar-q9amk4.ffp.csiro.au] has joined #code
02:41 mode/#code [+o himi] by ChanServ
03:02 Vornicus [Vorn@Nightstar-28h42k.sd.cox.net] has quit [Connection closed]
03:35 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
03:35 mode/#code [+qo Vornicus Vornicus] by ChanServ
04:12 Kindamoody[zZz] is now known as Kindamoody
04:46 himi [fow035@Nightstar-q9amk4.ffp.csiro.au] has quit [Connection closed]
04:55 Derakon is now known as Derakon[AFK2]
05:08 JackKnife [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
05:14 himi [fow035@Nightstar-q9amk4.ffp.csiro.au] has joined #code
05:14 mode/#code [+o himi] by ChanServ
05:47 Azash [ap@Nightstar-25v57p.net] has quit [Operation timed out]
05:51 RchrdB [RichardB@Nightstar-c6u.vd5.170.83.IP] has quit [[NS] Quit: Gone.]
05:55 RchrdB [RichardB@Nightstar-c6u.vd5.170.83.IP] has joined #code
05:55 macdjord|wurk is now known as macdjord|slep
06:01 Azash [ap@Nightstar-25v57p.net] has joined #code
06:01 mode/#code [+o Azash] by ChanServ
06:39 Turaiel is now known as Turaiel[Offline]
06:45 Kindamoody is now known as Kindamoody|afk
07:25 HotShot [fake@Nightstar-l2nbvd.sfldmi.sbcglobal.net] has quit [[NS] Quit: Trespassers will be shot, Survivers will be shot again! [Time wasted on Mirc 1day 1hr 16mins 21secs]]
07:26 HotShot [fake@Nightstar-l2nbvd.sfldmi.sbcglobal.net] has joined #code
07:41 Orthia [orthianz@Nightstar-3tp.juj.184.203.IP] has quit [Ping timeout: 121 seconds]
07:43 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has quit [Operation timed out]
07:46 Orthia [orthianz@Nightstar-3tp.juj.184.203.IP] has joined #code
07:46 mode/#code [+o Orthia] by ChanServ
08:01 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code
08:01 mode/#code [+ao McMartin McMartin] by ChanServ
08:24 macdjord [macdjord@Nightstar-7rac1r.mc.videotron.ca] has joined #code
08:24 mode/#code [+o macdjord] by ChanServ
08:26 macdjord|slep [macdjord@Nightstar-7rac1r.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
08:31 mac [macdjord@Nightstar-7rac1r.mc.videotron.ca] has joined #code
08:31 mode/#code [+o mac] by ChanServ
08:32 Orthia [orthianz@Nightstar-3tp.juj.184.203.IP] has quit [Ping timeout: 121 seconds]
08:32 macdjord [macdjord@Nightstar-7rac1r.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
08:35 Orthia [orthianz@Nightstar-3tp.juj.184.203.IP] has joined #code
08:35 mode/#code [+o Orthia] by ChanServ
08:37 AverageJoe [evil1@Nightstar-fb1kt4.ph.cox.net] has joined #code
08:42 HotShot [fake@Nightstar-l2nbvd.sfldmi.sbcglobal.net] has quit [Ping timeout: 121 seconds]
09:11 You're now known as TheWatcher
09:13 celticminstrel [celticminst@Nightstar-57p13c.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
09:16 thalass [thalass@Nightstar-v2r.lht.108.58.IP] has joined #code
09:16 mode/#code [+o thalass] by ChanServ
09:20 JackKnife [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
09:20 mode/#code [+o JackKnife] by ChanServ
09:23 AverageJoe [evil1@Nightstar-fb1kt4.ph.cox.net] has quit [[NS] Quit: Leaving]
09:24 himi [fow035@Nightstar-q9amk4.ffp.csiro.au] has quit [Ping timeout: 121 seconds]
09:48 thalass [thalass@Nightstar-v2r.lht.108.58.IP] has quit [[NS] Quit: augh aeroplanes]
--- Log closed Wed Apr 23 10:38:04 2014
--- Log opened Wed Apr 23 10:40:32 2014
10:40 TheWatcher [chris@Nightstar-ksqup0.co.uk] has joined #code
10:40 Irssi: #code: Total of 31 nicks [16 ops, 0 halfops, 0 voices, 15 normal]
10:40 mode/#code [+o TheWatcher] by ChanServ
10:41 Irssi: Join to #code was synced in 41 secs
10:41 Reiver [quassel@Nightstar-ksqup0.co.uk] has joined #code
10:41 mode/#code [+ao Reiver Reiver] by ChanServ
11:30 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
11:56 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
11:56 mode/#code [+o himi] by ChanServ
12:19 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
12:58 Syka [the@Nightstar-0ee.m21.151.1.IP] has joined #code
12:59 Syka is now known as NSGuest61207
13:17 NSGuest61207 is now known as Syk
13:59 mac is now known as macdjord|wurk
14:38 Syk [the@Nightstar-0ee.m21.151.1.IP] has quit [Connection closed]
15:19 Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
15:22 Syloq [Syloq@Nightstar-mbk.c3p.254.173.IP] has joined #code
15:22 mode/#code [+o Syloq] by ChanServ
16:15 HotShot [fake@Nightstar-jb9sum.sfldmi.ameritech.net] has joined #code
16:56 celticminstrel [celticminst@Nightstar-57p13c.dsl.bell.ca] has joined #code
16:56 mode/#code [+o celticminstrel] by ChanServ
18:17 HotShot [fake@Nightstar-jb9sum.sfldmi.ameritech.net] has quit [Ping timeout: 121 seconds]
18:27 HotShot [fake@Nightstar-bbtt83.sfldmi.sbcglobal.net] has joined #code
19:08 Turaiel[Offline] is now known as Turaiel
19:23 Kindamoody|afk is now known as Kindamoody
19:33 gnolam [lenin@Nightstar-lgrapr.tbcn.telia.com] has joined #code
19:33 mode/#code [+o gnolam] by ChanServ
19:56 Turaiel is now known as Turaiel[Offline]
20:13 Kindamoody is now known as Kindamoody[zZz]
20:33 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
20:33 mode/#code [+qo Vornicus Vornicus] by ChanServ
20:56
<@celticminstrel>
Whoa, "difference" mode in GIMP seems to work nicely for subtracting one image from another.
20:56
<@celticminstrel>
Identical pixels become black and can be selected with the wand.
20:57
<@celticminstrel>
...dunno if it'll work for the case where I want alpha in the result, though...
21:07 Turaiel[Offline] is now known as Turaiel
21:28 macdjord|wurk [macdjord@Nightstar-7rac1r.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
21:31
<@celticminstrel>
...yeah, I'm not sure how I'd get what I want here.
21:32 macdjord|wurk [macdjord@Nightstar-7rac1r.mc.videotron.ca] has joined #code
21:32 mode/#code [+o macdjord|wurk] by ChanServ
21:33
<@celticminstrel>
I basically want to invert alpha blending.
21:36 Turaiel is now known as Turaiel[Offline]
21:44
<@celticminstrel>
Which from the sounds of it is super-easy, mathematically speaking.
21:44
<@celticminstrel>
So the question is how to get GIMP or ImageMagick to do it.
21:46 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection reset by peer]
21:47
<@ErikMesoy>
This sounds like one of those problems where I could help you if you described what you wanted in more detail, but if you could do that then you would already have solved it. >_> nevertheless, I have some experience with GIMP. What can I suggest?
21:47
<@celticminstrel>
Basically, I have image A and image B.
21:48
<@celticminstrel>
A is a background image. B is the same background image with an additional image superimposed on top.
21:48 mode/#code [+o RchrdB] by ChanServ
21:48
<@celticminstrel>
I want to obtain image C such that superimposing C onto A gives B.
21:48
<@ErikMesoy>
Try the Subtract layer filter.
21:48
<@celticminstrel>
And I want C to have an alpha channel.
21:48
<@celticminstrel>
The subtract filter would work nicely, but for that last requirement.
21:49
<@celticminstrel>
(Or wait, it was the difference filter. Still.)
21:49
<@ErikMesoy>
close enough
21:49
<@ErikMesoy>
GIMP had alpha channel last I looked, though
21:49
<@celticminstrel>
Yes, it does. That's not the issue.
21:50
<@celticminstrel>
I can use the difference filter to produce an image C that, when superimposed on A, gives B; but that image C doesn't have an alpha channel and thus still contains bits of the colour of A.
21:51
<@celticminstrel>
From googling, it seems that what I want can be obtained by simply rearranging the alpha blending formula, but getting GIMP/ImageMagick to do that is the issue.
21:51
<@ErikMesoy>
Why doesn't image C have alpha channel?
21:51
<@ErikMesoy>
Do A and B have that in the first place?
21:51
<@ErikMesoy>
How are you producing C?
21:52
<@ErikMesoy>
When I test Difference Mode here I get something with alpha channel.
21:52
<@celticminstrel>
Okay, technically that way of producing C does give an alpha channel, but the alpha is either 0 or 1.
21:52
<@celticminstrel>
0 or 255, rather.
21:53
<@celticminstrel>
Image B contains shadows and lighting, and I want to express that as alpha in the resulting C.
21:53
<@celticminstrel>
(Producing C: use the wand with "Sample Merged" checked, click the black area, and delete it.)
21:54
<@ErikMesoy>
Try bopping the two images into being layers of one image.
21:54
<@ErikMesoy>
Then use either Difference or Subtract filter on the topmost layer and Merge Down.
21:54
<@celticminstrel>
Uh, they already are.
21:54
<@celticminstrel>
Merge down won't give me what I want; the colours of B aren't correct.
21:54
<@ErikMesoy>
Layer merging should preserve interaction to a larger degree than select-delete
21:56
<@celticminstrel>
(Because they have A being subtracted from them. Or are being subtracted from A, depending on the ordering of the layers, but the result is the same; I checked.)
21:59
<@ErikMesoy>
Poke the Layer->Transparency menu a bit.
21:59
<@ErikMesoy>
I'm out of ideas.
22:09
<@celticminstrel>
...I just realized, this might be harder than I thought.
22:10
<@celticminstrel>
There's a degree of freedom.
22:10
<@celticminstrel>
The equation contains four variables, and I only know two of them.
22:11
<@celticminstrel>
It might be sufficient to set the "new" colour to neutral grey, not sure.
22:12
<@celticminstrel>
Also... there are parts of the image that should definitely be opaque.
22:13
<@celticminstrel>
Bleh. Maybe later I'll write some sort of tool to do it.
22:16
<@celticminstrel>
I'm pretty sure I could do it pretty easily with some C++/SFML code
22:38
<@Tarinaky>
It always seems like a good idea to drink a fuckton of caffiene and pull an all-nighter to get some work done until I suddenly remember that large doses of caffiene gives me digestive problems and I don't have a working toilet.
22:39
<@Tarinaky>
MLIA
22:41
<@Alek>
I'd call that more of a FML.
22:41
<@Tarinaky>
I guess the MLIA is "I haven't started my dissertation. It needs to be due in a week"
22:44
<@Alek>
that's pretty A, indeed.
22:52
<@Tarinaky>
On a related note. I have two angles corresponding to location on a unit sphere. How do I convert these into x/y coordinates so I can meaure a distance?
22:53
<@Tarinaky>
Do I even need to?
23:05 Turaiel[Offline] is now known as Turaiel
23:09
<&ToxicFrog>
Tarinaky: how do the angles correspond to location?
23:14
<&ToxicFrog>
I mean, if it's a unit sphere, then by definition the distance from origin to any point on the sphere is 1
23:19
<@Tarinaky>
ToxicFrog: They're GPS coordinates.
23:19
<@Tarinaky>
ToxicFrog: But I'm ignoring the altitude reading
23:20
<@Tarinaky>
ToxicFrog: I want the shortest distance between the two points on the surface of the sphere... not the distance to the origin
23:20
<&ToxicFrog>
Shortest distance, or shortest distance along the surface of the sphere?
23:21
<@Tarinaky>
Also, after much cursing and inserting redundant assertions into my Python I determine the cause of the error is a lack of a return statement. Sometimes I wish Python made the damn things mandatory.
23:21
<@Tarinaky>
ToxicFrog: I don't think it matters by much, they're small distances.
23:22
<@Tarinaky>
But oestensibly distances along the surface.
23:23 Turaiel is now known as Tur[Meeting]
23:25 * Tarinaky thinks she's done something wrong to get a silly-large number
23:26
<&ToxicFrog>
Ok, so, it seems like it should be a straightforward application of trig to turn (bearing, azimuth) into (x, y, z)
23:27
<&ToxicFrog>
Actually, here you go: http://en.wikipedia.org/wiki/Spherical_coordinate_system#Coordinate_system_conve rsions
23:30 Orthia [orthianz@Nightstar-3tp.juj.184.203.IP] has quit [Ping timeout: 121 seconds]
23:31 Orthia [orthianz@Nightstar-3tp.juj.184.203.IP] has joined #code
23:31 mode/#code [+o Orthia] by ChanServ
23:34
<@Tarinaky>
Ah wait.
23:34 * Tarinaky herps.
23:34
<@Tarinaky>
The small angle approximation thingie only works for radians.
23:34
<@Tarinaky>
Right.
23:39 gnolam [lenin@Nightstar-lgrapr.tbcn.telia.com] has quit [[NS] Quit: Z?]
23:40
<@Tarinaky>
Well, that gives me an even /bigger/ number :/
23:43 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
23:46
<@Tarinaky>
ToxicFrog: Am I possibly missing any gotchas here? I'm getting a speed in thousands of kilometers for a small foam UAV.
23:46
<@Tarinaky>
*groundspeed
23:46
<@Tarinaky>
I mean. This isn't Kerbal SPace Program :/
23:48
<@Tarinaky>
Oh, hang on a tick... hmm.
23:49
<@Tarinaky>
Well, that gets me a slightly less Kerbalish speed of 270km/s
23:49
<@Tarinaky>
Which still seems obscene.
23:52
<&ToxicFrog>
Getting it from what?
23:52
<&ToxicFrog>
Without context I have no idea if those numbers are all reasonable.
23:53
<&ToxicFrog>
Also, 270km/s, 270m/s, or 270km/h?
23:53
<@Tarinaky>
Log files from a small foam fixed-wing UAV driven by an electric propeller motor.
23:53
<@Tarinaky>
270 km/s unless I've stuffed a unit translation
23:54
<&ToxicFrog>
So
23:54
<&ToxicFrog>
At 270km/s, your UAV is well past solar escape velocity
23:54
<@Tarinaky>
This is why I describe it as only slightly less Kerbalish
23:55
<&ToxicFrog>
In Kerbal terms that's well past the point where The Kraken disassembles your rocket.
23:55
<&ToxicFrog>
IOW, you are doing it wrong somewhere~
23:55
<@Tarinaky>
That much is obvious
23:58
<@Tarinaky>
I wish I had an easy way to pastebin from vim :/
23:58
<@Tarinaky>
inb4 emacs
--- Log closed Thu Apr 24 00:00:35 2014
code logs -> 2014 -> Wed, 23 Apr 2014< code.20140422.log - code.20140424.log >

[ Latest log file ]