code logs -> 2012 -> Thu, 26 Jan 2012< code.20120125.log - code.20120127.log >
--- Log opened Thu Jan 26 00:00:57 2012
00:43
<@Rhamphoryncus>
Yay. My math is all right.. except it's backwards. I'm counting up to 1.0, with the last one having the most offset, rather than the first.
00:54 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Connection closed]
00:59 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
01:02 Derakon[AFK] is now known as Derakon
02:17 Alek [omegaboot@Nightstar-efc8dc53.il.comcast.net] has quit [Client closed the connection]
02:20 Alek [omegaboot@Nightstar-efc8dc53.il.comcast.net] has joined #code
02:20 mode/#code [+o Alek] by ChanServ
02:32 Derakon is now known as Derakon[AC2]
02:37 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
02:41 Attilla [Obsolete@Nightstar-d968f105.as43234.net] has quit [Ping timeout: 122 seconds]
03:02 Vash [Vash@Nightstar-8697fea9.wlfrct.sbcglobal.net] has quit [[NS] Quit: I <3craft Vorn!]
03:04 eckse [eckse@Nightstar-bea5396a.dsl.sentex.ca] has joined #code
03:10 eckse [eckse@Nightstar-bea5396a.dsl.sentex.ca] has quit [Client closed the connection]
03:10 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Z?]
03:11 eckse [eckse@Nightstar-bea5396a.dsl.sentex.ca] has joined #code
03:14 Derakon[AC2] is now known as Derakon
03:22
< celticminstrel>
Why do these media program thingies not let you change the metadata. >_<
03:22
< celticminstrel>
It's not just iTunes; VLC does it too.
03:52 Kindamoody[zZz] is now known as Kindamoody
04:05
< maoranma>
for video files?
04:22 eckse_ [eckse@Nightstar-b714938a.dsl.sentex.ca] has joined #code
04:25
< celticminstrel>
Audio files.
04:25 eckse [eckse@Nightstar-bea5396a.dsl.sentex.ca] has quit [Ping timeout: 121 seconds]
04:25
< celticminstrel>
I can change the metadata, but as soon as I tell it to play the file it reverts to whatever is stored in the file.
04:26
< celticminstrel>
Presumably it could apply to video as well, but I'm seeing it with audio.
04:37 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
04:44 eckse_ is now known as eckse
04:54
< maoranma>
Not sure on that, seems like I had that issue with itunes and I did something to fix it, but I can't remember what
04:56 Kindamoody [Kindamoody@Nightstar-5507a6b5.tbcn.telia.com] has quit [[NS] Quit: See you later]
04:57
< maoranma>
I think Winamp does it fine
04:57
< maoranma>
But it might be internal metadata, I'm not sure
04:58
< maoranma>
I generally just use ID3 on MP3, and whatever standard other formats use
05:37 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
05:38 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
05:38 eckse [eckse@Nightstar-b714938a.dsl.sentex.ca] has quit [Client closed the connection]
05:39 Syloqs_AFH is now known as Syloqs-AFH
05:39 KiMo [Kindamoody@Nightstar-3bce3a2a.cust.tele2.se] has joined #code
05:39 mode/#code [+o Syloqs-AFH] by ChanServ
05:39 KiMo is now known as Kindamoody
05:41 mode/#code [+o Kindamoody] by ChanServ
05:44 maoranma [maoranma@Nightstar-85c29d67.pools.spcsdns.net] has quit [Ping timeout: 121 seconds]
06:16 simon_ [simon@Nightstar-883ecc1d.brahmaserver.dk] has joined #code
06:16
< simon_>
anyone awake? I'm dealing with some PCRE issues.
06:16
< simon_>
I'm matching E-numbers in foods
06:17
< simon_>
I'm doing that fine: E[- ]?(\d+(?:\([a-z]+\))?)
06:17
< simon_>
(e.g. E440(ii))
06:18
< simon_>
whoops
06:18
< simon_>
right
06:19
< simon_>
so I'm in PHP doing a preg_replace('!...!', '...', $foo) and I'd like to turn E440(ii) into: <a class="enumber e440ii" href="...?q=E440(ii)">...</a>
06:21
< simon_>
the challenge is to match it so that I have the pattern grouped twice, once with the entire pattern and once where the \d+ and [a-z]+ are matched individually so I can generate the CSS class.
06:22
< simon_>
woot!
06:22
< simon_>
E[ -]?((\d+)(?:\(([a-z]+)\))?)
06:22
< simon_>
I don't know why nested grouping didn't work before.
06:23
< simon_>
maybe it was only the \b assertion that acted up because of the literal parens.
06:23 froztbyte [froztbyte@Nightstar-dc394964.za.net] has quit [Operation timed out]
06:24 froztbyte [froztbyte@Nightstar-dc394964.za.net] has joined #code
06:24 Netsplit *.net <-> *.split quits: @Vornicus, @ShellNinja, @EvilDarkLord, @Syloqs-AFH, @iospace, @McMartin, @ToxicFrog
06:24 Netsplit over, joins: @ToxicFrog, ~Vornicus, @ShellNinja, @EvilDarkLord, &McMartin, @Syloqs-AFH, @iospace
06:29 Derakon is now known as Derakon[AFK]
07:17 Kindamoody [Kindamoody@Nightstar-3bce3a2a.cust.tele2.se] has quit [Ping timeout: 121 seconds]
07:26 maoranma [maoranma@Nightstar-85c29d67.pools.spcsdns.net] has joined #code
07:30 Kindamoody [Kindamoody@Nightstar-5e68310c.cust.tele2.se] has joined #code
07:30 mode/#code [+o Kindamoody] by ChanServ
07:41 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:52 Kindamoody [Kindamoody@Nightstar-5e68310c.cust.tele2.se] has quit [Ping timeout: 121 seconds]
08:26 You're now known as TheWatcher
08:51 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Client exited]
09:29 Attilla [Obsolete@Nightstar-d968f105.as43234.net] has joined #code
12:20
<@ShellNinja>
How do I stop a sound from playing, with SDL_mixer?
12:20
<@ShellNinja>
Like, one that hasn't finished yet.
12:45
<@ShellNinja>
Nevermind. I figured it out.
12:45
<@ShellNinja>
Funky that Mix_HaltMusic() does nothing, but Mix_HaltChannel() does what I want.
12:49 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
13:25 himi-cat [himi-yaaic@Nightstar-5d05bada.internode.on.net] has joined #code
13:26 himi-cat [himi-yaaic@Nightstar-5d05bada.internode.on.net] has quit [[NS] Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
13:36 Kindamoody|out [Kindamoody@Nightstar-afa9c476.cust.tele2.se] has joined #code
13:36 mode/#code [+o Kindamoody|out] by ChanServ
13:36 KiMo [Kindamoody@Nightstar-afa9c476.cust.tele2.se] has joined #code
13:38 KiMo [Kindamoody@Nightstar-afa9c476.cust.tele2.se] has quit [[NS] Quit: One of me is enough!]
13:52 Kindamoody|out [Kindamoody@Nightstar-afa9c476.cust.tele2.se] has quit [Ping timeout: 121 seconds]
13:59
<@ToxicFrog>
ShellNinja: Mix_HaltMusic is specifically for stopping the playback of music started with Mix_(Play|FadeIn)Music.
14:49 ShellNinja [abudhabi@Nightstar-d2500f5c.elitter.net] has quit [Ping timeout: 121 seconds]
15:01 ShellNinja [abudhabi@Nightstar-c9072dad.adsl.inetia.pl] has joined #code
15:22 Vash [Vash@Nightstar-8697fea9.wlfrct.sbcglobal.net] has joined #code
15:22 mode/#code [+o Vash] by ChanServ
15:24 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [Operation timed out]
15:26 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code
15:26 mode/#code [+o ToxicFrog] by ChanServ
15:27 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
15:48 Kindamoody|out [Kindamoody@Nightstar-64289cba.cust.tele2.se] has joined #code
15:48 mode/#code [+o Kindamoody|out] by ChanServ
15:48 Kindamoody|out is now known as Kindamoody
15:50 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Client exited]
16:12 Kindamoody [Kindamoody@Nightstar-64289cba.cust.tele2.se] has quit [Ping timeout: 121 seconds]
17:02 Kindamoody|out [Kindamoody@Nightstar-4c4305be.cust.tele2.se] has joined #code
17:02 mode/#code [+o Kindamoody|out] by ChanServ
17:02 Kindamoody|out is now known as Kindamoody
17:07 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [Operation timed out]
17:08 Kindamoody [Kindamoody@Nightstar-4c4305be.cust.tele2.se] has quit [Ping timeout: 121 seconds]
17:09 Kindamoody [Kindamoody@Nightstar-0a7b4b4b.cust.tele2.se] has joined #code
17:09 mode/#code [+o Kindamoody] by ChanServ
17:11 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code
17:11 mode/#code [+o ToxicFrog] by ChanServ
17:17 Kindamoody [Kindamoody@Nightstar-0a7b4b4b.cust.tele2.se] has quit [Ping timeout: 121 seconds]
17:33 Kindamoody|out [Kindamoody@Nightstar-c6e7350c.cust.tele2.se] has joined #code
17:33 mode/#code [+o Kindamoody|out] by ChanServ
18:00 ShellNinja is now known as Number3
18:00 Tarinaky is now known as Lowpass
18:10 Kindamoody|out [Kindamoody@Nightstar-c6e7350c.cust.tele2.se] has quit [Client exited]
18:20 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Z-Lined: Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect.]
18:25 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
18:25 mode/#code [+o PinkFreud] by ChanServ
18:26<&McMartin> Argh, I have the extremely repetitive departure-for-space music from Gradius III stuck in my head. The one that's only like three notes long.
18:27
< Number3>
COUNTERMEASURES: http://www.youtube.com/watch?v=1wnE4vF9CQ4
18:28 * McMartin actually deploys Tornado Man as a countermeasure
18:33 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Z-Lined: Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect.]
18:38 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
18:38 mode/#code [+o PinkFreud] by ChanServ
19:22 Kindamoody|out [Kindamoody@Nightstar-5507a6b5.tbcn.telia.com] has joined #code
19:22 mode/#code [+o Kindamoody|out] by ChanServ
19:22 Kindamoody|out is now known as Kindamoody
19:42
< maoranma>
Okay, so I want to write a glovepie script so that the left stick of a xinput controller places the cursor in the center one of nine quadrants of an evenly devided screen
19:42
< maoranma>
And the right stick moves the cursor fully within that 9th of the screen
19:43 Attilla [Obsolete@Nightstar-d968f105.as43234.net] has quit [Client closed the connection]
19:43 Attilla [Obsolete@Nightstar-d968f105.as43234.net] has joined #code
19:46 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
20:24
< maoranma>
Blah, I forgot that at diagonals, the xbox can't reach (-1,-1) through (1,1)
20:25
< maoranma>
It can get to about 80% at either diagonal
21:12 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [Ping timeout: 121 seconds]
21:14 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
21:21 Kindamoody is now known as Kindamoody[zZz]
21:31 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
22:09 maoranma [maoranma@Nightstar-85c29d67.pools.spcsdns.net] has quit [[NS] Quit: ]
23:14 maoranma [maoranma@Nightstar-85c29d67.pools.spcsdns.net] has joined #code
23:21
< maoranma>
Uhg, connection speed is especially slow today
23:29
< maoranma>
And chrome keeps crazying, wtf
23:29
< maoranma>
Oh, it was flash locking up
23:39<~Vornicus> Maoranma: usually what you'll want to do is actually clamp your stuff at about 75%
23:39
< maoranma>
Yea, that's what I figured I'd do
23:42 * McMartin wishes XInput and DirectInput would play nice together
23:42 * McMartin finds whoever was responsible for the rendering of the X360's shoulder triggers in DirectInput, beats them severely with All The Cheeses.
23:43
< maoranma>
I mean, if they had their own axis, it wouldn't be so bad
23:43<&McMartin> If they each had their own axis, it would work fine
23:44<&McMartin> But for some godforsaken reason they decided to render it in DirectInput as "Left Trigger value is subtracted from Right Trigger value, this is reported as a single axis"
23:44<&McMartin> Among other things, this means pushing both is indistinguishable from pressing neither
23:44
< maoranma>
Yea, it's really dumb
23:44<&McMartin> The stated reason is "neutral should be zero"
23:44<&McMartin> NEUTRAL STILL GETS TO BE ZERO, YOU JUST DON'T HAVE NEGATIVE VALUES FOR THE AXIS YARGHBARGLEARGHBORGLE
23:46
< maoranma>
So bo, ie, go 0-512, but together it goes to 1024?
23:48
< maoranma>
Of course, then you can't tell which trigger was hit
23:48
<@ToxicFrog>
to be fair, most axes have a range of [-x,+x]
23:48
<@ToxicFrog>
However, most axes also can't be pulled in both directions at once
23:48
< maoranma>
Right, an issue I had finding an adapter for a DDR pad
23:48<&McMartin> maoranma: Two buttons, two axes.
23:49<&McMartin> Each of which only move from 0 to +MAX.
23:49<&McMartin> This is not rocket surgery
23:49
< maoranma>
McMartin: Well, obviously
23:50
<@Alek>
you CAN put them on just one positive axis. just assign them different values. >_>
23:50
<@Alek>
say, 256 and 512.
23:50
<@ToxicFrog>
Er, what?
23:50
< maoranma>
The PS2 controllers buttons were pressure sensitive, so it was like each had an axis of their own
23:50
< maoranma>
MS is just lazy
23:50<&McMartin> Well, no, because... right
23:50
<@ToxicFrog>
Each one is an analogue control
23:50
< maoranma>
Or dumb, or bot
23:50<&McMartin> You have to have the full level, you can't use flags
23:50
<@Alek>
unless analog, ok.
23:50<&McMartin> Because RT and LT are in fact analog.
23:50<&McMartin> This is the problem they solved in the WORST WAY POSSIBLE
23:50
<@Alek>
in which case, go ahead and give them all separate axes. D:
23:50<&McMartin> Right.
23:50 You're now known as TheWatcher[t-2]
23:51<&McMartin> That is what XInput does and DirectInput does not do, for some godforsaken reason
23:51
< maoranma>
Yup
23:51
<@ToxicFrog>
"so that people are encouraged to use XInput and thus not support anything but the 360 controller"
23:52
< maoranma>
It's funny, the calibration control panel used direct input, so Z is the triggers
23:52
<@ToxicFrog>
Basically, if you want the Games for Windows sticker, you need to support the 360 controller. If you want your support for it to not suck, you need to use XInput. At that point it's really tempting to not want to implement and test two complete input systems for gamepads.
23:52<&McMartin> TF: The fact that the XInput API is polling based and thus 950x cleaner shoudl do that on its own.
23:52
<@ToxicFrog>
Yeah, there's also the fact that XInput is orders of magnitude less painful to use~
23:53
< maoranma>
And built into XNA studio
23:54<&McMartin> Given that XNA is designed for cross-platform XBox/Windows development, it's less surprising that XNA has an X360 accent, though
23:58
< maoranma>
Microsoft's vareity of hardware isn't as good as it used to be
23:58
< maoranma>
I miss some of the old sidewinder equipment
23:58 You're now known as TheWatcher[zZzZ]
23:58<&McMartin> The old MS mice were leeging indestructible
23:59
< maoranma>
I still have my old sidewinder gamepad in a box somewhere. MIDI interface port on the top to daisy chain
23:59 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [[NS] Quit: Kablammo! Celticminstrel is now unavailable for comment.]
23:59
< maoranma>
Not that I have a way of connecting it now, lol
--- Log closed Fri Jan 27 00:00:15 2012
code logs -> 2012 -> Thu, 26 Jan 2012< code.20120125.log - code.20120127.log >

[ Latest log file ]