code logs -> 2008 -> Thu, 13 Nov 2008< code.20081112.log - code.20081114.log >
--- Log opened Thu Nov 13 00:00:13 2008
00:07 C_tiger [~c_wyz@Nightstar-8414.hsd1.ca.comcast.net] has quit [Ping Timeout]
00:13 C_tiger [~c_wyz@Nightstar-5282.hsd1.ca.comcast.net] has joined #code
00:13 mode/#code [+o C_tiger] by ChanServ
00:30 Vornicus-Latens is now known as Vornicus
00:57 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has quit [Ping Timeout]
01:20 Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has quit [Quit: <Insert Humorous and/or serious exit message here>]
01:57
< Vornicus>
I was doing a quiz in javascript class this afternoon, and I used currying without thinking about it.
01:57
< Vornicus>
And then I went and said "wait a second, that /works/"?
01:58
< Vornicus>
answer: yes, you can curry in javascript.
01:59
<@Derakon>
Hee.
01:59
< Vornicus>
And then the teacher looked at my work and said "wait a second, that /works/"?
02:02
<@Derakon>
From what I can tell, Javascript seems to get a bad rap just for being involved in all sorts of horrid little things.
02:02
<@Derakon>
Which in turn is just because it's the only programming language available client-side.
02:05
< Vornicus>
Javascript's bad rap comes from 1. security holes and 2. inconsistent implementations across browsers.
02:06
< Vornicus>
It's a nice little language.
02:06
<@Derakon>
I thought it came mainly from being made to assist in all sorts of terrible webpage designs.
02:06
< Vornicus>
Well, that too, but.
02:08 gnolam [lenin@79.136.60.ns-4387] has quit [Quit: Z?]
02:08
< Vornicus>
My only gripe with js /itself/ is not enough batteries included.
02:09
< Vornicus>
But I'm a Python guy, so I'm kind of spoiled
02:09
<@Derakon>
By batteries you mean libraries?
02:10
< Vornicus>
Quite
02:12
<@Derakon>
As long as it has regexes, I'm happy~
02:13
<@Derakon>
(Well, regexes and a deserializer)
02:13 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has joined #code
02:13 mode/#code [+o GeekSoldier] by ChanServ
03:09
<@Derakon>
Heh.
03:09
<@Derakon>
I expected to never see this error message, which is why I suppose it's no surprise that it showed up.
03:10
<@Derakon>
"Tell Derakon he's being silly with waiting for readiness. In the meantime, please rejoin the game. Sorry for the inconvenience."
03:11
<@Derakon>
Oh, wow I should not have been coding last night. To get the count of players in the game, I did "select count(*) as count from Player where game_id = ? and player_name = ?".
03:33
<@Derakon>
Hahahaha~!
03:33
<@Derakon>
It works!
03:34
<@Derakon>
When you join a game now, your state is set to "not ready". When you click the button to say you're ready, you open a connection with the server, that stays open until someone else also hits that they're ready, at which point it responds with a player update.
03:34
<@Derakon>
In this way, you get near-realtime (within the bounds of the server-side loop's sleep time) updates on player readiness.
03:36 * Vornicus is going to need to steal your code.
03:37
<@Derakon>
Well, it's not really written with extensibility in mind, but it should be pretty clean for all that. Server-side's in Perl, though.
03:37 * Vornicus noddles.
03:38
<@Derakon>
The basic concept is straightforward, though: client opens a new XMLHttpRequest to the server; server looks at the request and says "Oh, you're waiting for information. Okay, I'll keep the request open until either it's taken too long or something you care about has happened."; server checks every half-second to see if something interesting happens, and returns a status update when it does, or a timeout if it doesn't.
03:39
<@Derakon>
The timeout is responded to client-side by an immediate refresh of the connection, but that only happens if the client's still there, so I don't have to deal with clients closing the window.
03:39
<@Derakon>
(By "timeout" I mean "successful request with a JSON object that indicates that 15 seconds passed without anything interesting happening")
03:43
<@Derakon>
My only concern with this approach is that it means that every client is keeping a connection open with the server pretty much all the time (barring when the server is waiting for input from the client, anyway). Those connections don't cost me much, but there's a flat limit on how many can be open.
03:44
< Vornicus>
quite.
03:47
<@McMartin>
Get This Up You, Fusion.
03:48
<@Derakon>
"Difficult to say what's most offputting about this chamber. It seems a little olde worlde, even for the Nazis. The walls are rough black slimE, bubb;ing w]Th Kh40htik 3nTr0ppy d3v0`r1~G 3veryth11n0110010101011<<VIRUS WARNING - LATTICE NODE DANGEROUSLY INSECURE (REROUTING)>> _ZzUnG_"
03:48
<@McMartin>
Ee-yep.
03:48 * McMartin fires up the cross-platform build script. Reality soils itself.
03:49
<@McMartin>
> USE SHIM ON API. USE SHIV ON EXPOSED BACK
03:50 * ToxicFrog is currently working on > DISTILL LIBSDL
03:56 * McMartin is getting noticably less work done on side projects now that he's regularly working 10-hour days in addition to his thesis work.
04:04
<@McMartin>
Whoops. Fail.
04:05
< Vornicus>
fail :(
04:05 * McMartin makes it so that it doesn't die horribly from uncaught exceptions, rebuilds.
04:58
<@McMartin>
YAY WIN
04:58
<@McMartin>
Goddamn Alien VMWare.
04:58
< Vornicus>
YAY WIN
04:58
<@Derakon>
Wootence!
04:58 * McMartin fixes upstream bugs without access to the source code.
04:59
< Vornicus>
okay, Name This Cable.
05:00
< Vornicus>
on one end is a standard 4-pin PC internal power plug; on the other end is a 16-pin inline enclosed thing, looks kind of like half of an NESoid cart connector.
05:02
< jerith>
Is the molex side male or female?
05:02
< jerith>
16 pins may be a bit much for this guess, but could it be a SATA power adapter?
05:03
< Vornicus>
molex being the power connector? Honestly I don't know how to tell the difference: is it male because the brass pins stick out, or female because the plastic bit from the other one stuffs into it?
05:03
< Vornicus>
that might be it.
05:04
< Vornicus>
...it is in fact exactly it, thank you.
05:04
<@Derakon>
#code wins again!
05:05 mode/#code [+ooo crem_ jerith Vornicus] by Vornicus
05:05
<@Vornicus>
http://www.qvs.com/images/sata-power.JPG <--- voila
05:07
<@jerith>
Vorn: Male plugs have pins sticking out.
05:08
<@Vornicus>
ok
05:08
<@jerith>
Boys have sticky-out bits, girls have warm places for sticky-out bits to fit into. ;-)
05:09 * Vornicus wasn't sure whether it was the innermost or outermost that counted though
05:09 * jerith nods.
05:09
<@jerith>
That used to get me too.
05:09
<@jerith>
Then I realised it was the actual contact surface that mattered, not the extraneous cuddling-bits around it.
05:10
<@Vornicus>
so, uh, coax?
05:10
<@McMartin>
The one with the needle is male.
05:10
<@jerith>
That's the stick-out bit.
05:10 * Vornicus was just pointing out the weakness in jerith's last statement.
05:10
<@jerith>
The other side has a socket for it to fit into.
05:11
<@jerith>
Hey, extraneous cuddling-bits can be important too.
05:11
<@jerith>
They just don't define gender. :-)
05:14
<@ToxicFrog>
I believe Vorn's point is that in coax, the outer cylinder is also a power contact.
05:14
<@ToxicFrog>
Signal contact, rather.
05:15
<@ToxicFrog>
Coaxial cables are hermaphroditic!
05:16
<@McMartin>
Oh hey, that attempted commercial IF startup has prototypes.
05:16
<@McMartin>
http://chicagodave.wordpress.com/2008/11/11/samples-of-progress/
06:12 AnnoDomini [~farkoff@Nightstar-29452.neoplus.adsl.tpnet.pl] has joined #Code
06:13 mode/#code [+o AnnoDomini] by ChanServ
06:21 Derakon is now known as Derakon[AFK]
06:52 Reiver [~reaverta@Admin.Nightstar.Net] has quit [Quit: I ATENT'T DEAD]
06:53 Reiver [~reaverta@Admin.Nightstar.Net] has joined #Code
06:53 mode/#code [+o Reiver] by ChanServ
06:58
<@Reiver>
* McMartin is getting noticably less work done on side projects now that he's regularly working 10-hour days in addition to his thesis work.
06:58
<@Reiver>
- ... A ten hour day is pretty rough. Full time job?
07:09
<@McMartin>
Not yet.
07:09
<@McMartin>
(Technically, I'm an hourly contractor)
07:36 Vornicus is now known as Vornicus-Latens
07:48
<@Reiver>
Still. 50-hour workweek is pretty tough.
07:58
<@McMartin>
Oh, it's well less than that.
07:58
<@McMartin>
You forget I still have to finish that thesis~
08:12
<@Reiver>
Aaah
08:12
<@Reiver>
10 hour days, but only a couple daysa week?
09:00
<@McMartin>
Yeah. I actually average more like 35-45 hour weeks at the moment
09:01
<@McMartin>
(And today specifically had an interruption because Casino Royale was playing in the break room in honor of its sequel coming out this weekend)
09:02
<@McMartin>
(That part I did not so much bill for, even if much of it did count as a Lightsaber Chair Fight)
09:28 You're now known as TheWatcher
10:11 gnolam [lenin@79.136.60.ns-4387] has joined #Code
10:11 mode/#code [+o gnolam] by ChanServ
11:33 Vornicus-Latens [~vorn@ServicesOp.Nightstar.Net] has quit [Connection reset by peer]
11:34 Vornicus-Latens [~vorn@Admin.Nightstar.Net] has joined #code
--- Log closed Thu Nov 13 15:10:51 2008
--- Log opened Thu Nov 13 15:10:56 2008
15:10 TheWatcher [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code
15:10 Irssi: #code: Total of 16 nicks [14 ops, 0 halfops, 0 voices, 2 normal]
15:10 mode/#code [+o TheWatcher] by ChanServ
15:11 Irssi: Join to #code was synced in 53 secs
15:22 * gnolam fumes.
16:12 * EvilDarkLord applies gnolam to eggs.
16:14
<@gnolam>
This is the kind of fuming where you could apply me to ferric chloride. :P
18:39 Vornicus-Latens is now known as Vornicus
20:16 gnolam [lenin@79.136.60.ns-4387] has quit [Quit: HATE]
21:23 AnnoDomini [~farkoff@Nightstar-29452.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
21:29 AnnoDomini [~farkoff@Nightstar-29232.neoplus.adsl.tpnet.pl] has joined #Code
21:29 mode/#code [+o AnnoDomini] by ChanServ
21:35 AnnoDomini is now known as DoctorAnno
21:39 DoctorAnno is now known as AnnoWriMo
21:48
<@McMartin>
Hmm.
21:48 * McMartin ponders setuid.
21:48
<@McMartin>
Sudo, setuid, exec, and system appear to interact oddly.
21:49
<@AnnoWriMo>
Are you trying to solve sudoku with them?
21:50
<@McMartin>
No.
21:50
<@McMartin>
I was trying to run a separate program with the euid of a setuid program.
21:50
<@McMartin>
And exec worked for this, but system ran it with my real uid privileges.
21:59
<@McMartin>
Hee
21:59 * McMartin gets a Big No from his compiler
21:59
<@McMartin>
"NNoo ssuucchh ffiillee oorr ddirreeccttoorryy"
21:59
<@ToxicFrog>
Pfft
22:00
<@McMartin>
My best guess for what caused this is stdout and stderr stomping on each other, but it's oddly regular
22:03
< Vornicus>
I don't think I've ever seen two streams merge to exactly that.
23:01 You're now known as TheWatcher[T-2]
23:05 You're now known as TheWatcher[zZzZ]
23:58 AnnoWriMo [~farkoff@Nightstar-29232.neoplus.adsl.tpnet.pl] has quit [Quit: I got forehead-vagina raped, Mom. There's no counseling for that shit!]
--- Log closed Fri Nov 14 00:00:55 2008
code logs -> 2008 -> Thu, 13 Nov 2008< code.20081112.log - code.20081114.log >