code logs -> 2010 -> Wed, 07 Apr 2010< code.20100406.log - code.20100408.log >
--- Log opened Wed Apr 07 00:00:48 2010
00:05 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Connection closed]
00:05 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
00:08
<@ToxicFrog>
Bear in mind that this is a card game, not a realtime game.
00:08 Orthia [orthianz@Nightstar-d4010c91.xnet.co.nz] has joined #code
00:08
<@ToxicFrog>
The main reason I'm contemplating synchronous is that I need some way of saying "create a new object replicated on all clients, then do stuff with it"
00:20 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code
00:35 atkeni [MapAkn@Nightstar-d16f839e.wroclaw.mm.pl] has joined #code
00:39 Derakon[AFK] is now known as Derakon
00:48 You're now known as TheWatcher[T-2]
00:50 You're now known as TheWatcher[zZzZ]
02:13 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [Connection closed]
02:13 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
02:20 atkeni [MapAkn@Nightstar-d16f839e.wroclaw.mm.pl] has quit [[NS] Quit: leaving]
02:29
<@McMartin>
TF: For a card game, the best reason for synchronous is so that you can tell if someone's pinged out
03:14 * Reiver pokes Vorn
03:14<~Reiver> Did you make any sense of the task?
03:17 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!]
03:30
<@Vornicus>
Vguely.
03:36 * Vornicus bonklifies his brain.
03:40 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
04:24 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
04:58 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
05:39
<@ToxicFrog>
Ok, I think I have this.
05:39
<@ToxicFrog>
new is synchronous. Clients request a new object; the server responds with either an initialization vector or nil.
05:40
<@ToxicFrog>
To avoid deadlock, the client sharing a state with the server bypasses the network and calls the corresponding function in the server directly.
05:40
<@ToxicFrog>
Everything else is asynchronous; the client sends an event to the server and the server responds (or not) with an event broadcast to all connected clients.
05:47 IRaJew [Meh@Nightstar-9b459f81.consolidated.net] has joined #code
05:47 Taki^ [Meh@Nightstar-9b459f81.consolidated.net] has quit [Connection reset by peer]
05:55 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
06:10 Vornicus is now known as Vornicus-Latens
06:21 AnnoDomini [annodomini@Nightstar-dffd9225.adsl.tpnet.pl] has joined #code
06:21 mode/#code [+o AnnoDomini] by Reiver
06:24 Derakon is now known as Derakon[AFK]
08:53 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
09:24 AnnoDomini [annodomini@Nightstar-dffd9225.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
09:26 AnnoDomini [annodomini@Nightstar-3d40d848.adsl.tpnet.pl] has joined #code
09:26 mode/#code [+o AnnoDomini] by Reiver
09:56 Orth [orthianz@Nightstar-e9c7ca59.xnet.co.nz] has joined #code
09:57 Orthia [orthianz@Nightstar-d4010c91.xnet.co.nz] has quit [Ping timeout: 121 seconds]
09:59 Attilla [Attilla@FBC920.482E2D.971EED.6317D6] has joined #code
09:59 mode/#code [+o Attilla] by Reiver
10:06 You're now known as TheWatcher
10:33 Orth [orthianz@Nightstar-e9c7ca59.xnet.co.nz] has quit [Connection reset by peer]
10:36 Orthia [orthianz@Nightstar-2c45fbf5.xnet.co.nz] has joined #code
10:51 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
12:09 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Client closed the connection]
12:34 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
12:34 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
12:44 Zee [ZEE@Nightstar-ab10d060.vodacom.co.za] has joined #code
12:44 Zee [ZEE@Nightstar-ab10d060.vodacom.co.za] has left #code []
13:17 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has quit [Client exited]
13:54 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
14:17 * jerith stabs Tomcat in the FAAAAAAACE!
14:17
<@jerith>
Sometimes it adds a content-length header for me. Other times it doesn't.
14:18
<@jerith>
One would think this would depend on the size of the data being returned, but it apparently is not.
15:04
<@ToxicFrog>
I would have thought that it would depend on whether or not it can determine the length in advance.
15:05
<@TheWatcher>
That'd make entirely too much sense for tomcat >.>
15:05
<@jerith>
The only way for it to determine said length is by having its buffer filled before it actually starts sending data to the client.
15:06
<@jerith>
I /suspect/ it's something to do with a difference between production and non-production.
15:06
<@jerith>
But apparently it's sometimes a problem in productio nas well.
15:07
<@jerith>
I can't paste the code, because it's day-job stuff, but it's basically an HTTP frontend to a variety of storage backends.
15:08
<@jerith>
Current investigations claim that the backend we use in production gives us a Content-Length header, while the one we use in integration environments doesn't.
15:09
<@jerith>
Except the code just gets an InputStream from whichever backend it finds the data in and writes that a chunk at a time into the ServletResponse.
15:29
< gnolam>
Good audio transcoder. Suggestions?
15:29
< gnolam>
(I want to turn a bunch of FLACs into MP3s for my storage-limited EEE PC and mobile phone)
15:37
<@TheWatcher>
Windows or linux? If the latter, I'd use sox.
15:37
<@ToxicFrog>
flac | lame?
15:39
< gnolam>
Either one would work, I guess (my desktop computer runs Windows 7, the EEE runs Xubuntu).
15:48
< PinkFreud>
gnolam: easier to turn them into ogg
15:48
< PinkFreud>
oggenc *.flac
15:48
< PinkFreud>
that'll also transfer all of the metadata, too
15:50
< gnolam>
Unfortunately, ogg is made of fail.
15:51
< gnolam>
And won't work on my phone.
15:51
< PinkFreud>
heh
15:51
< PinkFreud>
(works on mine! *duck*)
15:51 * TheWatcher has yet to understand the latter problem.
15:52
< gnolam>
?
15:53
<@TheWatcher>
Why should any device that provides media playing facilities /not/ include ogg vorbis playback.
15:53
<@TheWatcher>
It makes no sense to me.
15:53
<@jerith>
TheWatcher: Because Apple would rather push its own format?
15:53
<@jerith>
Yay DRM! ;_;
15:54
< PinkFreud>
and thus why you'd never catch me with an iphone/ipod/ipad/itoilet/...
15:54
< gnolam>
MP3 decoding hardware is cheap and ubiquitous.
15:55
< PinkFreud>
s/hardware/software/
15:55
< PinkFreud>
don't kid yourself, gnolam. it's all done in software.
15:56
<@TheWatcher>
gnolam: no, just phone software developers being dicks.
15:57
< gnolam>
PinkFreud: I wouldn't be so sure. On a modern smartphone, sure, but this phone has been around for a few years.
15:57
< PinkFreud>
it's still done in the firmware
15:58
< PinkFreud>
only bit of hardware involved is the processor :)
16:00
< gnolam>
On "battery life is everything" devices, hardware decoders are not uncommon. It's H.264 nowadays, but MP3 decoding features were fairly standard on chipsets from a few years ago.
16:02
< PinkFreud>
heh
16:04 Vornicus-Latens [vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
16:05 Vornicus-Latens [vorn@ServerAdministrator.Nightstar.Net] has joined #code
16:05 mode/#code [+o Vornicus-Latens] by Reiver
16:05
< gnolam>
And even in a pure software environment, OGG was more expensive to decode, last I checked.
16:07
< gnolam>
I'm not even sure there's a reference ARM decoder available.
16:07
< gnolam>
(If not, that's one more thing to license - all for a potential target audience of .nexttonothing%)
16:22
<@TheWatcher>
Tremor, the fixed-point reference implementation has ARM, coldfire, MIPS, TI DSP, and a bunch of other ports, and is New BSD licensed.
16:33
< PinkFreud>
gnolam: that audience includes Android users.
17:18
< gnolam>
Yes? The percentage of users that care about Vorbis is still miniscule.
17:18 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [Client closed the connection]
17:19 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
18:29 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
18:29 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
19:02 Orthia [orthianz@Nightstar-2c45fbf5.xnet.co.nz] has quit [Ping timeout: 121 seconds]
22:32 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has joined #code
22:40 Orthia [orthianz@Nightstar-e0c520d6.xnet.co.nz] has joined #code
23:14 Vornicus-Latens is now known as Vornicus
23:24 AnnoDomini [annodomini@Nightstar-3d40d848.adsl.tpnet.pl] has quit [[NS] Quit: Zzzzzz.]
23:30 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has quit [Ping timeout: 121 seconds]
23:45 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection closed]
--- Log closed Thu Apr 08 00:00:49 2010
code logs -> 2010 -> Wed, 07 Apr 2010< code.20100406.log - code.20100408.log >