[00:00] webr3: open q: any recommendations for a good IDE for writing server side js and pref running in ide (or even debugging)
[00:00] webr3: ACTION uses eclipse for other lang's
[00:08] blackdog: where does fs.writeSync be returning the # of bytes written, i don't see a return statement
[00:09] blackdog: where does fs.writeSync return the # of bytes written, i don't see a return statement
[00:10] softdrink has joined the channel
[00:13] creationix has joined the channel
[00:14] murz: is there a better way to debug node or am I stuck with using sys.puts
[00:14] creationix: murz: you can use the debugger protocl
[00:14] jesusabdullah: There's a debugger protocol? :o
[00:14] creationix: the wiki has instructions on how to hook it to eclipse
[00:14] satori_: http://wiki.github.com/ry/node/using-eclipse-as-node-applications-debugger
[00:15] creationix: personally I prefer puts
[00:15] creationix: but maybe that's just because I hate eclipse
[00:15] micheil has joined the channel
[00:15] satori_: heh. yeah me too
[00:15] creationix: though someone could make a web based debugger with websockets and a node proxy
[00:15] creationix: that would be cool
[00:15] jesusabdullah: Never used it! :S
[00:15] satori_: now that would be cool
[00:16] jesusabdullah: creationix: DO IT
[00:16] JimBastard has joined the channel
[00:16] creationix: jesusabdullah: it's on my horizon, but I already have a big list of things to do
[00:16] webr3: wish to hell i could just run js within eclipse
[00:18] jesusabdullah: creationix: I know :( You're quite prolific! Which is pretty awesome.
[00:23] kevm_ has joined the channel
[00:23] Tim_Smart has joined the channel
[00:24] byrongibson has joined the channel
[00:24] byrongibson has left the channel
[00:24] byrongibson has joined the channel
[00:32] stepheneb has joined the channel
[00:35] webr3 has joined the channel
[00:36] joshbuddy has joined the channel
[00:38] CrabDude has joined the channel
[00:44] dgathright__ has joined the channel
[00:47] huyhong has left the channel
[00:54] mjr_: Sigh. I can't npm publish today. npm is sad with me.
[00:56] mape: What does it say?
[00:56] mjr_: http://gist.github.com/479128
[00:57] mjr_: it looks like it works, but ends with "npm not ok" and it doesn't actually work.
[00:57] mape: Hmm k
[01:00] mjr_: Anyway, now http_trace can decode WebSocket packets. Take a look at what it does for your wargamez site: http://github.com/mranney/node_pcap
[01:02] mikeal has joined the channel
[01:04] piratepenguin has left the channel
[01:07] [[zz]] has joined the channel
[01:07] mape: Wouldn't that be used for debugging?
[01:07] mscdex: blargh. my photoshop-fu is failing me
[01:08] softdrink has joined the channel
[01:08] Buzzedword has joined the channel
[01:10] JimBastard: mscdex: >.<
[01:10] JimBastard: fotoshop-fu
[01:10] mscdex: trying to come up with a neat logo for a project is hard
[01:11] mscdex: i think i finally have something though
[01:14] piratepenguin has joined the channel
[01:14] mape: mscdex: what is the project about?
[01:14] mscdex: it's for grappler :->
[01:14] mscdex: "comet" server
[01:15] mscdex: here's what i have right now: http://mscdex.net/grappler/grappler.png
[01:15] mscdex: :S
[01:15] mape: what does grappler do?
[01:15] jesusabdullah: grabs shit
[01:15] jesusabdullah: but more seriously: I am also curious!
[01:16] mscdex: kinda like socket.io, except it doesn't force any data format
[01:16] mscdex: and it accepts plain tcp connections on the same port
[01:16] jesusabdullah: hmm
[01:17] mscdex: right now i've tested websockets and long polling and those work fine. need to test multipart and server-sent events yet though
[01:17] mscdex: and plain tcp too
[01:18] jesusabdullah: hmm
[01:18] franksalim: mscdex, how can you tell the difference between 'plain' tcp that looks like http and http
[01:18] JimBastard: mscdex: why is that black guy stealing the internet cable
[01:18] JimBastard: ;-O
[01:19] mscdex: franksalim: right now i'm simply using a configurable timeout to distinguish between the two
[01:19] mscdex: franksalim: i'm making the assumptions that http clients will send http headers right away after connection
[01:20] franksalim: so you are making the assumption that the protocols you will carry will not look like http
[01:21] kodisha has joined the channel
[01:21] mscdex: franksalim: it shouldn't matter once they're connected
[01:21] mscdex: and the timeout has determined the type of connection
[01:22] mscdex: after that you can pretty much have whatever type of protocol you want....
[01:22] franksalim: as long as it doesn't start with something you determine to be an http request :-)
[01:22] mscdex: franksalim: if the http parser finds what looks like an http request after the timeout, that's too bad
[01:23] mscdex: it's considered a tcp connection at that point
[01:23] mscdex: and like i said the timeout is configurable, but it's just a neat little feature i came up with
[01:23] franksalim: that's ok. the tricker case is if you have a 'tcp' connection that starts with an http request
[01:23] franksalim: like you pipe a file to netcat and that file starts with http traffic
[01:24] mscdex: franksalim: true, in that case you'd just need to delay 1ms or whatever above your timeout. not that big of a deal imho
[01:24] franksalim: ok
[01:25] Yuffster has joined the channel
[01:27] Tim_Smart1 has joined the channel
[01:33] franksalim: mscdex, i think it's a bad idea. i won't press it, though
[01:35] mscdex: it's just an idea :-)
[01:39] zapnap has joined the channel
[01:40] mape: Hmm having some issues doing regex on html.. (I know) but is there any way of doing a global match for multiline script blocks?
[01:40] mape: t.match(//gmi); doesn't seem to work for multiline
[01:40] jesusabdullah: You can't use an html parser?
[01:40] jesusabdullah: Oh wait
[01:41] jesusabdullah: weren't you the one that needed ultra-fast parsing in pure js?
[01:41] jesusabdullah: hmm
[01:41] mape: No, I'm using a man in the middle html proxy
[01:41] jesusabdullah: hmm?
[01:41] mape: modifiying content I'm viewing in the browser
[01:41] jesusabdullah: Ah
[01:41] dnolen has joined the channel
[01:41] jesusabdullah: Still: Can't use a parser?
[01:41] jesusabdullah: even a pure js one?
[01:42] mape: seems like overkill, if only I could regex them out
[01:42] jesusabdullah: maybe
[01:42] jesusabdullah: I can't really help with regexps because I suck at them hard core
[01:42] jesusabdullah: If I could, I would
[01:42] jesusabdullah: tbh though I would just find an html parser
[01:42] jesusabdullah: It might be easier!
[01:43] SubStack: < mape> seems like overkill, if only I could regex them out js to modify -> I just want to match all
[01:47] mape: And I know there are edge cases, I don't really care if it breaks, just want to know if it can be done
[01:47] pkrumins: for one time hack regex is ok.
[01:47] jesusabdullah: I know from experience that substack feels very strongly on this issue.
[01:48] jesusabdullah: Anyways: Do you guys know how to make that regexp work for multilines? :S
[01:48] jesusabdullah: Even if it's a bad idea?
[01:49] joshbuddy has joined the channel
[01:49] joshbuddy has joined the channel
[01:49] SubStack: //s in perl
[01:50] jesusabdullah: I kinda wanna play with a personal proxy like that
[01:50] jesusabdullah: could be fun!
[01:50] SubStack: node.js doesn't like /s
[01:50] mape: jesusabdullah: nm, I just stripped all newlines instead and now it works fine
[01:50] jesusabdullah: gg
[01:50] mape: Yeah doesn't seem like js has s
[01:51] SubStack: you could do [\S\s] instead of .
[01:51] SubStack: or any character class along with its negation
[01:51] pkrumins: ACTION sneaks
[01:51] sh1mmer has joined the channel
[01:52] mape: pkrumins: Don't really care if it isn't the right tool :) Works for the tiny usecase I have, which is only to be used by me personally in my own browser.
[01:52] pkrumins: alright!
[01:53] pkrumins: it's always ok to use it for hacks. :)
[01:53] pkrumins: anything can be used for hacks
[01:53] pkrumins: if something is discussed whether it was ok to be used for a hack, then there is a problem!
[01:53] mape: What I'm doing is trying to fix http://www.giantbomb.com/
[01:54] mape: they have like 30 script includes so I'm using glimmerblocker to parse the html before it is shown in the browser, to move them to the bottom so the rendering doesn't get blocked
[01:54] mape: Seems they wrote the js dependant on being in head so doesn't really work
[01:54] jesusabdullah: Is your computer teh slowzorz?
[01:54] jesusabdullah: Mine seemed to deal with their javascripts no sweat
[01:54] jesusabdullah: and it's only a P4
[01:54] jesusabdullah: :S
[01:54] mape: jesusabdullah: Nope an i7 iMac, and I have 100Mbit
[01:55] mape: Still don't like slow websites
[01:55] jesusabdullah: ACTION didn't even notice
[01:55] mape: Then perhaps you don't care as much
[01:56] jesusabdullah: Well, probably not
[01:56] jesusabdullah: but even I notice a laggy web site
[01:56] mape: Or you are used to slow sites
[01:56] jesusabdullah: *shrug*
[01:56] mscdex: it also depends on the browser
[01:56] jesusabdullah: _>
[01:58] mscdex: netstat?
[01:58] mscdex: node_pcap? :-)
[01:59] micheil: not automatic ;P
[01:59] mscdex: heh
[02:00] micheil: do you think I can safely rename a connection state variable?
[02:00] micheil: conn._state
[02:00] mscdex: rename it?
[02:00] kersny has joined the channel
[02:01] micheil: yeah, currently a value of 5 == closed, it should've == closing
[02:01] mscdex: oh
[02:01] mscdex: i would say it'd be safe...
[02:01] micheil: yeah, true, it's a partial private anyway
[02:05] CIA-76: node: 03Ryan Dahl 07master * r458bbb4 10/ (lib/fs.js test/simple/test-fs-write-sync.js): fs.writeSync should return bytes written - http://bit.ly/cfy169
[02:09] micheil: wtf. now it's double closing.
[02:11] ThePub has joined the channel
[02:18] avalanche123 has joined the channel
[02:18] avalanche123: hey, can anyone help me compile node for cygwin?
[02:21] ThePub has joined the channel
[02:26] micheil: fark. I hate it when I write a patch off my dev branch.
[02:28] avalanche123: anyone?
[02:28] avalanche123: help me compile node for cygwin
[02:28] micheil: probably not
[02:28] avalanche123: weird python time.dll exception
[02:28] micheil: most people would be working under a *nix type environment
[02:29] micheil: and cygwin last I knew wasn't officially supported
[02:29] avalanche123: yes, but the docs say it can be compiled under cygwin]
[02:29] micheil: oh?
[02:29] avalanche123: http://nodejs.org/#build
[02:29] micheil: well, at any rate, I know I can't help you there; can't speak for anyone else though
[02:29] dnolen has joined the channel
[02:29] avalanche123: Node is tested on Linux, Macintosh, and Solaris. It also runs on Windows/Cygwin, FreeBSD, and OpenBSD. The build system requires Python 2.4 or better. V8, on which Node is built, supports only IA-32, x64, and ARM processors. V8 is included in the Node distribution. To use TLS, OpenSSL is required. There are no other dependencies.
[02:29] avalanche123: ok, thanks for replying though
[02:30] avalanche123: :)
[02:30] avalanche123: please pm me if you know how to help me
[02:30] avalanche123: thanks in advance
[02:31] jesusabdullah: avalanche123: http://wiki.github.com/ry/node/building-node-on-windowscygwin ?
[02:33] jesusabdullah: avalanche123: Also, could the issue be with python, not with node?
[02:35] [[zz]] has joined the channel
[02:37] mscdex: maybe the version of python you have installed in cygwin isn't new enough?
[02:38] micheil: hmm.. that's ever so odd.
[02:38] micheil: I have one port on my websocket server that gets opened when the browser loads the connection, but then hangs around before closingh
[02:39] micheil: duh. favicon was set to keep-alive.
[02:40] mscdex: micheil: yep hehe i noticed that happening too when i was working on grappler last night
[02:41] micheil: so. damn. annoying.
[02:41] mscdex: ACTION shakes a fist at favicon.ico
[02:48] sudoer has joined the channel
[02:50] micheil: man... this dev would be so much faster if my brother hadn't blown the download limit..
[02:50] mjr_ has joined the channel
[02:50] micheil: (which is actually 40-80GB's)
[02:50] saikat has joined the channel
[02:52] pquerna: rate limited after using too much bw?
[02:54] tmpvar has joined the channel
[02:54] wioota has joined the channel
[02:55] micheil: yeah, cut back to dailup speed.
[02:55] micheil: from 8 Mbits.
[02:57] sudoer has joined the channel
[02:59] jamescarr_ has joined the channel
[02:59] jamescarr_: man
[02:59] jamescarr_: everything changes so much
[02:59] jamescarr_: :)
[03:02] mscdex: yeah, yesterday it was raining and today it was hot and muggy all day
[03:02] mscdex: :-(
[03:05] ditesh|cassini has joined the channel
[03:06] jamescarr_: how do you intersperse a variable in haml?
[03:06] jamescarr_: like include item.id inside an href????
[03:07] jamescarr_: I'm sure no one will know
[03:07] mscdex: then why did you ask? ;-)
[03:08] jesusabdullah: jamescarr_: #haml is that way -->
[03:08] jesusabdullah: jamescarr_: I actually don't know if there's a #haml