[00:02] abiraja has joined the channel
[00:02] shajith_ has joined the channel
[00:02] marshall_law_ has joined the channel
[00:03] codysoyland has joined the channel
[00:04] _announcer: Twitter: "Geddy is pretty cool rails-like framework for node.js http://geddyjs.org/" -- Justin Chen. http://twitter.com/jc22/status/24236730560
[00:04] marshall_law_ has joined the channel
[00:05] konobi: orlandov: heap profiling can be done via node, by passing along v8 args
[00:05] konobi: (--v8-args)
[00:06] _announcer: Twitter: "geddyjs, a web framework for node.js: http://geddyjs.org/" -- Pablo A. Costesich. http://twitter.com/pcostesi/status/24236849178
[00:07] konobi: `node --prof --log --log_gc`
[00:07] siong1987 has joined the channel
[00:08] konobi: there's then a tool within the v8 code base that allows you to take that log and get information out of it
[00:08] konobi: if you install ghc, you can use hp2ps to generate a heap profile graph
[00:10] danielzilla has joined the channel
[00:12] codysoyland has joined the channel
[00:16] HAITI: konobi: does the v8.log nned to be manipulated before hp2ps? or does it come out the same as ghc -h?
[00:16] HAITI: need
[00:18] ako has joined the channel
[00:20] freeall has joined the channel
[00:23] trotter has joined the channel
[00:26] atourino has joined the channel
[00:27] codelotus has joined the channel
[00:29] FuzzYspo0N has left the channel
[00:32] ehaas has joined the channel
[00:32] davidwalsh has joined the channel
[00:32] HAITI: ahh
[00:35] KungFuHamster_ has joined the channel
[00:35] _announcer: Twitter: "Great article talking about what it's like to code with node: http://journal.paul.querna.org/articles/2010/06/12/node-js/" -- Ben Mills. http://twitter.com/benemills/status/24238728813
[00:38] _announcer: Twitter: "Packing my stuff for a week in Sunnyvale. Ping me if you wanna hang out while I am there or you just want to see my wicked NodeJS stuff." -- Dav Glass. http://twitter.com/davglass/status/24238921326
[00:38] killfill has joined the channel
[00:38] killfill: hey guys.. what alternatives do i have to make template on nodejs?.. (im new to this..:)
[00:39] killfill: like "my html tags "
[00:39] SubStack: html template engines?
[00:39] SubStack: http://github.com/ry/node/wiki/modules#templating
[00:39] killfill: oh
[00:42] killfill: thanks :)
[00:42] SubStack: I like ejs
[00:43] SubStack: just went through all the templating engines last night to compare them
[00:44] killfill: greate
[00:44] boaz has joined the channel
[00:45] _announcer: Twitter: "node.js web framework: An Introduction to Geddy - How To Node http://t.co/TLbeezH" [ja] -- Masatomo Nakano. http://twitter.com/masatomon/status/24239399382
[00:46] tav has joined the channel
[00:47] _announcer: Twitter: "@davglass I want to see your wicked NodeJS stuff :)" -- M van Hylckama Vlieg. http://twitter.com/TheMarco/status/24239499527
[00:47] _announcer: Twitter: "NodeJS game, wpilot http://ow.ly/2CRPc jondalb @ # nodejs" [pl] -- newsicare. http://twitter.com/newsicare/status/24239539176
[00:53] eisd has joined the channel
[00:54] [[zz]] has joined the channel
[00:56] paulwe_ has joined the channel
[00:56] jchris has joined the channel
[00:57] _announcer: Twitter: "Installation on Mac and several examples including a LIVE STREAMER TWITTER: http://bit.ly/daLfvs # NODEJS" [pt] -- Druma Kina. http://twitter.com/drumakina/status/24240154442
[00:57] c4milo has joined the channel
[00:57] c4milo has left the channel
[00:59] nroot7 has joined the channel
[01:00] Aria: Yarr. I keep screwing myself up trying to pass a context object to runInNewContext. If I set up a context like c = { }; c.c = c; (so the global scope is also accessible by a name), is there a problem with that?
[01:01] Yuffster has joined the channel
[01:04] nroot7: What is the correct way to send json response from a node program. I am using this http://pastebin.com/Fq0QjnhX
[01:05] Kung_Fu_Hamster has joined the channel
[01:09] c4milo has joined the channel
[01:11] MikhX has joined the channel
[01:16] c4milo has left the channel
[01:20] boaz has joined the channel
[01:20] _announcer: Twitter: "NNNN (notWindows, NginX, NoSQL, Node.js) In addition to the NUM (Node.js, Unix based OS and MongoDB) because there seems> next LAMP http://ow.ly/2CS8i" [ja] -- koichik. http://twitter.com/koichik/status/24241717031
[01:21] Yuffster has joined the channel
[01:21] c4milo has joined the channel
[01:24] eisd has left the channel
[01:25] konobi: HAITI: there's some python tools in the v8 tree that will let you get access to the heap profile
[01:27] c4milo has left the channel
[01:28] _announcer: Twitter: "http://jsperf.com/njs-parser -- an easier, better and 50% faster version of my njs-parser (node.js)" -- Aurel H.. http://twitter.com/dipser/status/24242200158
[01:28] saikat has joined the channel
[01:35] HAITI: konobi: I was interested in the visuals =) thanks
[01:36] saikat_ has joined the channel
[01:42] _announcer: Twitter: "@ims you mean with tweets.js? You could just inject the first node." -- Jacob Bijani. http://twitter.com/jacobbijani/status/24243179813
[01:44] _announcer: Twitter: "Considering switching to #coffeescript for my #node.js app and starting to wonder why I didn't just use event machine." -- Thomas Dimson. http://twitter.com/cosbynator/status/24243295549
[01:48] mikew3c_ has joined the channel
[01:55] cosbynator has joined the channel
[01:55] _announcer: Twitter: "「Node.js and MongoDB」「An Introduction to Geddy」「Debugging with node-inspector」「Introduction to npm」他2本記事が増えてる http://ow.ly/2CSpa #nodejs_jp" -- koichik. http://twitter.com/koichik/status/24244085446
[01:59] jgautier has joined the channel
[01:59] jgautier: hello?
[02:00] ryah: jgautier: hi
[02:00] jgautier: hey im looking for some socket.io help?
[02:00] ryah: jgautier: i think you're in the right place
[02:00] _announcer: Twitter: "Palm's webOS2.0: Java VM with changed from Node.js - Client-side scripting with Web Standards http://t.co/E5ScrWL" [ja] -- hiroming. http://twitter.com/rezexp/status/24244427132
[02:00] dipser_ has joined the channel
[02:00] jgautier: sweet...i just cant get it to server the client js files
[02:01] jgautier: any ideas where to start?
[02:01] ryah: jgautier: i think you need to combine with connect (http://github.com/senchalabs/connect) to server static files
[02:02] SubStack: connect.createServer(connect.staticProvider(__dirname + '/static/'))
[02:02] jgautier: oh ok...i just wrote my own simple file server since this is my first app
[02:02] jgautier: i guess ill just install that
[02:03] jgautier: ill let you know how it goes
[02:04] ryah: does anyone know how Process.detach() works in ruby?
[02:05] Aria: setsid, fork, setsid?
[02:05] Aria: er... fork, setsid, fork ?
[02:05] konobi: you also need to close common file descriptors
[02:05] Aria: Oh. No. That's something else. It sets up a thread that calls waitpid(thepidofthechild)
[02:06] ryah: the process has already forked - how do you detach it as the child?
[02:06] ryah: reparent it.
[02:06] Aria: That's the child's job. The parent can't do that.
[02:06] ryah: somehow in ruby it can
[02:06] prettyrobots has joined the channel
[02:06] Aria: Nah, Process.detach isn't that sophisticated. It doesn't detach it so much as auto-reap
[02:06] jgautier: after i install connect via npm how do i get it to server up the socket.io client files?
[02:07] ryah: Aria: it just don't wait for the children to finish -
[02:07] ryah: hm
[02:10] cosbynator: Is there a way to get access to a module's scope/closure through requiring it? I want to unit test some "private" functions
[02:10] ryah: maybe you just call waitpid on the child
[02:11] ryah: and if you die they can keep living
[02:11] ryah: oh unix.
[02:11] ooooPsss: why not use faye instead of socket.io?
[02:11] ryah: cosbynator: no
[02:11] konobi: ryah: what do you want to achieve?
[02:11] cosbynator: sucks :)
[02:11] ryah: cosbynator: yep.
[02:12] ryah: konobi: ChildProcess#detach method
[02:12] Aria: Yeah, no. If you die, they'll get a HUP
[02:12] konobi: that's an implementation, what's the actual problem?
[02:12] dannycoates has joined the channel
[02:12] konobi: dannycoates: ah ha!
[02:12] ryah: Aria: even if i waitpid on them?
[02:12] dannycoates: konobi: hi!
[02:13] Aria: Yeah. waitpid only makes sure they don't zombie.
[02:13] ryah: that seems to be what ruby is doing
[02:13] konobi: dannycoates: was wondering if you had looked at the chrome developer tools in terms of node-inspector?
[02:14] dannycoates: konobi: do you mean the java api?
[02:14] konobi: nope, i mean the developer tools in the chrome browser
[02:14] konobi: including the cpu profile, heap profiler, etc.
[02:14] konobi: ryah: ah... i see
[02:14] Astro: $ cat /proc/sys/kernel/hostname
[02:14] Astro: catbert
[02:15] Astro: node> require('fs').readFileSync("/proc/sys/kernel/hostname",'ascii');
[02:15] Astro: ''
[02:15] Astro: :(
[02:15] Astro: /proc is a pseudo filesystem
[02:16] konobi: ryah: so on spawn you want to add a thread to do waitpid on the child?
[02:16] ryah: Astro: what about without 'ascii' ?
[02:17] scoates has joined the channel
[02:17] scoates: hi
[02:17] quirkey has joined the channel
[02:17] dannycoates: konobi: ok, yes. im experimenting with heap profiler right now
[02:17] konobi: dannycoates: AWESOME
[02:17] jgautier: cool i got it working but i just downloaded the client file and placed it in the folder with my other js
[02:18] ryah: Astro: jst tried, also not working...
[02:18] scoates: anyone know why this doesn't ever unblock? (the callback is never called...) http://paste.roguecoders.com/p/e69ee22004e082e2deecf33d2f587499.txt
[02:18] konobi: dannycoates: I'd be very interested in keeping in touch with you about that
[02:18] scoates: dannycoates: nice surname (-:
[02:18] dannycoates: konobi: but its tricky for a couple reasons...
[02:19] dannycoates: scoates: ditto :)
[02:19] x_or has joined the channel
[02:20] konobi: dannycoates: how so?
[02:20] mattikus has joined the channel
[02:20] dannycoates: ryah: what do you think about a --js-flags flag for v8 flags, like chrome does
[02:20] matschaffer has joined the channel
[02:21] konobi: dannycoates: --v8-options ?
[02:21] ryah: dannycoates: sure
[02:22] mikeal has joined the channel
[02:22] dannycoates: konobi: doesn't --v8-options only show, i mean setting
[02:22] konobi: dannycoates: just use them on the command line
[02:23] konobi: node will pass them through to v8
[02:23] polotek has joined the channel
[02:23] Anti-X: scoates, your while loop goes on forever
[02:23] konobi: http://github.com/ry/node/blob/master/src/node.cc#L1808
[02:23] devinus_ has joined the channel
[02:23] Anti-X: it never lets the event loop progress
[02:23] devinus_: ryah: interesting project http://botan.randombit.net/
[02:23] SubStack: ryah: SIG_IGN @ earlier
[02:24] Anti-X: scoates, add 'Done' to the callback instead
[02:25] scoates: Anti-X: ah. indeed. I didn't know I could block the event loop like that.
[02:25] SubStack: ryah: also man 2 signal
[02:25] konobi: dannycoates: if that makes sense =0)
[02:25] scoates: is it possible to do exec in a synchronous way? (I need the info back from tput)
[02:25] SubStack: scoates: you can use step
[02:26] SubStack: to write async stuff in a more synchronous way
[02:26] scoates: that sounds interesting. Can you point me at some docs?
[02:26] Blink7 has joined the channel
[02:26] ryah: Astro: http://gist.github.com/575772
[02:26] ryah: Astro: looks strange to me
[02:26] ryah: Astro: two fd 6
[02:27] SubStack: sonnym: http://github.com/creationix/step
[02:27] SubStack: er
[02:27] SubStack: scoates: http://github.com/creationix/step
[02:27] scoates: thanks SubStack.
[02:27] Aria: It gets closed, so it should be 6 there, ryah
[02:27] Aria: Close on 8, open again on 16.
[02:27] ryah: Astro: oh right, missed that
[02:28] ryah: it's closing before it trys to read() from it...
[02:28] konobi: dannycoates: just kicked up node-inspector... really nice
[02:28] Aria: The st_size=0, eh?
[02:28] ryah: oh -it gets size=0 from stat()
[02:28] Astro: yeah, pseudo fs
[02:28] Aria: yeah.
[02:29] Aria: A little optimization biting there?
[02:29] ryah: Aria: output of cat too: http://gist.github.com/575772
[02:29] dannycoates: konobi: makes sense, but not all v8 flags will work with how node parses args like: --logfile *
[02:30] Aria: Yes, but does it /use/ the info from stat?
[02:30] ryah: -2- ryan@li62-72:~% ls -l /proc/sys/kernel/hostname
[02:30] ryah: -rw-r--r-- 1 root 0 Sep 11 22:30 /proc/sys/kernel/hostname
[02:30] ryah: :)
[02:30] Aria: It liiies
[02:31] ryah: so - question is, how do you know if the file actually has size..
[02:31] dannycoates: konobi: did you install with npm?
[02:31] Aria: You read and see if it tells you EOF
[02:31] ryah: Aria: also stat: http://gist.github.com/575772
[02:31] ryah: Aria: i guess
[02:31] ryah: Aria: why is cat stating it?
[02:31] konobi: dannycoates: nope, just from source
[02:31] Aria: Good question. To see if it's a file, perhaps?
[02:32] ryah: nod
[02:32] HAITI has joined the channel
[02:32] ryah: okay. so readFile() is fucked
[02:32] Aria: Yea?
[02:32] ryah: it uses stat()
[02:32] Aria: Doh. Yeah. It shouldn't.
[02:32] dannycoates: konobi: ok, the npm package is new, just curious if anyone has used it
[02:32] Aria: File could be written to after stat and before read anyway.
[02:34] dannycoates: npm is pretty awesome! it makes using node-inspector much easier
[02:35] Anti-X: i just made love to npm
[02:36] ryah: what's a good way to test that...
[02:36] Anti-X: .. not REALLY! stop giving me nasty looks
[02:36] Aria: Also: stat /dev/sda -- 0. But read() will give you plenty.
[02:36] SubStack: Anti-X: robosexual!
[02:41] _announcer: Twitter: "@davglass so when are we getting yeti to run yui tests on nodejs w/ jsdom? :)" -- Sidnei da Silva. http://twitter.com/sidneidasilva/status/24247289374
[02:43] rtomayko has joined the channel
[02:44] KungFuHamster_ has joined the channel
[02:45] codelotus has joined the channel
[02:48] dtzWill has joined the channel
[02:48] KungFuHamster_ has joined the channel
[02:59] softdrink has joined the channel
[03:00] cosbynator has joined the channel
[03:01] matt_c has joined the channel
[03:08] polotek has left the channel
[03:08] siong1987 has joined the channel
[03:08] _announcer: Twitter: "The addition of UDP to node.js is really a killer feature." -- karlseguin. http://twitter.com/karlseguin/status/24249156206
[03:09] Eber has joined the channel
[03:10] Eber: Hey guys... Is there any data validation module to use with Express for instance?
[03:10] Eber: I'm using Mongoose, and it promises data validation, but I guess the docs aren't updated...
[03:12] aaronbloho_afk: Eber: it has validations, but it doesnt ship those to the client (yet.) I mentioned this to the learnboost guys last night and they seemed intrigues
[03:12] aaronbloho_afk: *intrigued
[03:12] PyroPeter has joined the channel
[03:13] saikat: sometimes in the repl i end up in a state where i can't exit with ctrl-D
[03:13] saikat: i remember someone, i think creationix1 , giving a tip about how to get out of this state
[03:14] noahcampbell has joined the channel
[03:14] saikat: oh, .break is what i want
[03:15] Eber has joined the channel
[03:20] googol has joined the channel
[03:24] c4milo has joined the channel
[03:24] _announcer: Twitter: "URL parsing has changed in nodejs 0.2.1, but only for odd URLs: http://bit.ly/cu6atK #mychain" -- Chris Strom. http://twitter.com/eee_c/status/24250248672
[03:25] bpot has joined the channel
[03:33] gthb has joined the channel
[03:36] sanemat has joined the channel
[03:38] Anti-X: console.log(require('url').name); => 'My name is URL'
[03:38] Anti-X: make it happen.
[03:39] Anti-X: easter egg
[03:41] ysinopsys1 has joined the channel
[03:42] ooooPsss: is there any register/login lib?
[03:43] Anti-X: http://wiki.github.com/ry/node/modules
[03:43] ooooPsss: Anti-X: can't find anything
[03:44] ooooPsss: at least by what I'm looking for
[03:44] Anti-X: npm lists a few auth things
[03:44] Anti-X: not sure they have registration though
[03:44] c4milo has left the channel
[03:45] ooooPsss: don't think so
[03:45] ooooPsss: ok thanks
[03:45] c4milo has joined the channel
[03:47] ooooPsss: Anti-X: can you explain me why socket.io is preferred over Faye?
[03:47] Anti-X: nope
[03:47] Anti-X: havent used either one
[03:48] ooooPsss: what do you use for websocketS?
[03:48] Anti-X: nothing yet
[03:48] ooooPsss: ok
[03:48] ooooPsss: thanks
[03:48] nroot7 has joined the channel
[03:49] mikeal has joined the channel
[03:52] aaronblohowiak: how would you performance test a node library?
[03:53] Anti-X: run stuff 1000 times?
[03:53] Anti-X: and time it?
[03:53] aaronblohowiak: Anti-X: *1000 maybe
[03:53] aaronblohowiak: :-)
[03:53] Anti-X: depends what it does really
[03:54] Anti-X: if the function takes 1 sec to execute, then running it 1 million times might not be a good idea?
[03:55] overra_ has left the channel
[03:55] KungFuHamster_ has joined the channel
[03:56] Aria: Run it enough times to get a reasonable sample. Take note of the deviation in times to see if you're getting enough.
[03:56] Aria: And beat yourself with http://www.zedshaw.com/essays/programmer_stats.html if you haven't already.
[03:56] Aria: Since you said *1000, you need to.
[03:57] Me1000 has joined the channel
[03:58] prettyrobots has left the channel
[04:00] overra has joined the channel
[04:00] Anti-X: i think that amount is just so you don't have to deal with timings in the millisecond range
[04:00] Anti-X: if it is that fast
[04:00] Anti-X: not that it matters if it is, unless it's actually going to be called 1000 times during a request
[04:01] Aria: No, it's so you can determine the proper power of the experiment.
[04:01] SvenDowideit_ has joined the channel
[04:01] Aria: So you have any idea what your statistical reliability is.
[04:01] konobi: dannycoates: I'm pretty sure that we'd like to work with you on getting heap profiling and other fun stuff into node-profiler
[04:02] Atmoz has joined the channel
[04:02] szaboat_ has joined the channel
[04:02] endor_ has joined the channel
[04:03] elliottc1ble has joined the channel
[04:03] _announcer: Twitter: "node.js-like async server toolkit for OCaml http://github.com/mathgladiator/node.ocaml" -- Joe Williams. http://twitter.com/williamsjoe/status/24252908840
[04:03] dannycoates: konobi: this one? http://github.com/bnoordhuis/node-profiler
[04:05] dannycoates: konobi: or did you mean node-inspector?
[04:06] sztanphet has joined the channel
[04:07] digitals1aghetti has joined the channel
[04:07] jakehow: anyone know where npm puts libraries if I used homebrew to install node and npm?
[04:08] googol_ has joined the channel
[04:08] aaronblohowiak: jakehow: did you check $HOME/.node_libraries
[04:09] jakehow: aaronblohowiak: thats empty
[04:10] aaronblohowiak: neat
[04:10] aaronblohowiak: idk then
[04:11] jakehow: aaronblohowiak: hmm maybe its just i tried to install packages that are somehow broken?
[04:11] jakehow: i just installed express and it seemed to work, other two I tried to install were postgres and geddy
[04:11] aaronblohowiak: jakehow: if it worked, then npm is somewhere else
[04:12] Aria: tmpvar: You about this late?
[04:12] aaronblohowiak: jakehow: " npm config ls"
[04:12] jakehow: aaronblohowiak: no I mean installing express put the binary where I expect it /usr/local/share/npm/bin
[04:12] aaronblohowiak: then look at root
[04:12] aaronblohowiak: npm config ls | grep root
[04:13] jakehow: installing postgress and geddy does not put anything in there but the command still reports OK
[04:13] aaronblohowiak: jakehow: those may not have binaries
[04:13] aaronblohowiak: jakehow: they may be pure-js
[04:14] Anti-X: Aria, thanks for the link, it's interesting
[04:14] jakehow: aaronblohowiak: i could see that for pg, geddy has geddy-gen though according to their docs
[04:14] Aria: Hehe. Take it to heart. Print it on stone. Not that the words are that good, but if you do, you'll have a heavy object to hit the next person you hear saying "* 1000" with.
[04:15] aaronblohowiak: jakehow: look in their package.json, does it specify a bin?
[04:15] aaronblohowiak: Aria: oh noes
[04:15] MikhX_ has joined the channel
[04:16] aaronblohowiak: ACTION has lost the will to think about stats since college
[04:16] Aria: Like most things math, it's taught terribly.
[04:17] aaronblohowiak: Aria: especially to psych majors
[04:17] brainproxy_ has joined the channel
[04:17] Aria: Oh god. Don't even let me start there.
[04:17] Aria: That's like the beginning of all that is wrong with psych.
[04:17] aaronblohowiak: Aria: :)
[04:22] _announcer: Twitter: "WSH had let it be shortened to maybe Node.js time move faster if there is more wrong with that move - Late Menheru ken: http://j.mp/dw0qbi # miteru" [ja] -- @hinatter. http://twitter.com/hinatter/status/24254158160
[04:22] googol_ has joined the channel
[04:22] tmpvar: Aria, yeah, whats up?
[04:22] Aria: Oh, just API frustration with jsdom.
[04:23] Aria: I like createWindow -- though I'm having a chicken and egg problem trying to set up an environment including my parser.
[04:23] tmpvar: yeah, I hear that
[04:24] Aria: And the code is a twisty maze of passageways, all different.
[04:24] tmpvar: I've been leaning towards passing in *HTML methods that are hooked up to a parser.. beyond that it's overly complicated :/
[04:24] Aria: 'cept when you compare to jquery.
[04:24] Aria: Hrm.
[04:25] tmpvar: you are talking about the browser/window stuff?
[04:25] Aria: Yeah.
[04:25] Aria: And needing to set up the parser before a document is created.
[04:25] Aria: (so that the parser can be involved in that process!)
[04:25] tmpvar: right
[04:26] Anti-X: well, first you need two eggs, then you get them to have sex, and suddenly you get a chicken... er...
[04:26] Aria: Anti-X: My feelings exactly.
[04:27] Aria: My gut feeling after reading that DOMImplementation existed was that that was where this stuff belonged.
[04:28] KungFuHamster_ has joined the channel
[04:28] zomgbie has joined the channel
[04:30] Kung_Fu_Hamster has joined the channel
[04:30] tmpvar: Aria, you sure?
[04:30] Aria: Oh, heck no. But it was a gut feeling. It's where createDocument() lives in Webkit at least.
[04:31] cjc has joined the channel
[04:32] _announcer: Twitter: "@karlseguin how is the error handling support in node.js?" -- ayende. http://twitter.com/ayende/status/24254833966
[04:32] cjc: Could I ask a potentially silly question re: npm and sudo?
[04:33] cjc: I've been using "sudo npm install blah", but the latest version warns against running npm as root. Is the solution-du-jour for that some kind of group with write perms on /user/local/lib/node ?
[04:36] tmpvar: Aria, thanks.. I think I can fix this now
[04:36] Aria: Ooh!
[04:36] Aria: Do tell.
[04:36] tmpvar: I believe you can pass the Document already, as of yesterday :X
[04:36] pydroid_ has joined the channel
[04:36] wink_ has joined the channel
[04:36] tmpvar: jsdom({document: .. })
[04:36] Aria: Hm. To where?
[04:36] Aria: Ah, okay.
[04:37] jan____ has joined the channel
[04:37] aaronblohowiak: cjc: not sure, ask the mailing list
[04:37] Aria: And that'd be a string, or a DOM?
[04:37] tmpvar: DOM
[04:37] tmpvar: there is a problem that I just realized though
[04:37] Aria: Heh. Which leaves the chicken and egg still going ;-)
[04:37] tmpvar: it will use the default parser
[04:37] Aria: Yeah. Exactly.
[04:37] cjc: aaronblohowiak: Will do, ta
[04:38] aaronblohowiak: :)
[04:38] tmpvar: so, what do you think of passing in a parser { setInnerHTML : function(str) { .. } ..) as part of the options?
[04:38] mdg has joined the channel
[04:38] Aria: That'd work. It's not pretty, and it doesn't make me feel like I can get ahold of the pieces and they fit together nicely.
[04:38] Aria: But it'd solve this particular problem.
[04:38] tmpvar: and we could simply put a bunch of those parser options in a dir, and make it take a string as well :P
[04:39] Aria: Heh.
[04:39] Aria: Also, setInnerHTML isn't how I want to do this: I have a streaming parser for a reason!
[04:39] tmpvar: no, it is
[04:40] Aria: Yeah?
[04:40] Kung_Fu_Hamster has joined the channel
[04:40] c4milo has joined the channel
[04:40] tmpvar: er.. perhaps not for initial creation
[04:40] Aria: Yeah. . . And I want to start empty.
[04:40] Aria: No , definitely no

[04:40] aaronblohowiak: ACTION wishes he had TDD'd this. "it will be faster just to spike some code"
[04:41] _announcer: Twitter: "It's stuff like this / node.js http://htn.to/su5b6B" [ja] -- watanabekouji. http://twitter.com/kjwtnb/status/24255420548
[04:42] Aria: (the parser is supposed to be able to deal with all sorts of pathological cases there)
[04:42] tmpvar: Aria, I'm open to suggestions hehe
[04:42] c4milo has joined the channel
[04:43] tmpvar: you want to run the parser on a windowless/browserless Document, right?
[04:43] Aria: Well, yes. But right now specifically I DO want window.
[04:43] Aria: I can create a Document plain. But I'm trying to make jquery play nice now.
[04:44] Aria: It seems like one would want to be able to make a Window, add a DOM to it with a blank (and I mean BLANK!) document, and then start up the parser and parse into it.
[04:45] ajpiano has joined the channel
[04:46] tmpvar: hrm
[04:46] jchris has joined the channel
[04:46] Aria: And then in this case, throw jquery in at the foot to do whatever crazy. I'd also love to figure out a way to run jQuery somewhat isolated from the document, but that's much more complicated and involves the scoping soup that is jQuery.
[04:49] _announcer: Twitter: "Node.js great. I was going to finish some experiments mania. RT @ lanius "webOS2.0: Java VM from Node.js changed with" Ah! ! Node.js great. http://ow.ly/2CP7F" [ja] -- 樫本直弘. http://twitter.com/oO_cassini_Oo/status/24255728482
[04:50] Aria: (It seems like in browsers, DOMImplementation and window.navigator are the two things that persist (or at least are consistent) between pages.)
[04:51] tmpvar: you wont be able to run jQuery with just those 2 methods though
[04:51] _announcer: Twitter: "coffiescript node.js too ignorant or nothing about." [ja] -- ゆーけー/赤松 祐希. http://twitter.com/ukstudio/status/24255777535
[04:51] tmpvar: you need all sorts of dom crazyness
[04:51] tmpvar: bom rather
[04:58] Aria: Oh, yeah.
[04:58] _announcer: Twitter: "node.js but pay attention, do not understand at all." [ja] -- えむ。. http://twitter.com/takkanm/status/24255852355
[04:58] Aria: I'm okay adding that. Just stuck in the middle of a "how do I make a window"
[04:58] Aria: "without ending up with half a document already loaded"
[04:58] tmpvar: ah
[04:58] Anti-X: it's jappy hour on twitter
[05:00] keeran_ has joined the channel
[05:00] justis_ has joined the channel
[05:00] wereHams1er has joined the channel
[05:00] Astro- has joined the channel
[05:00] webr3: why do you want to create a window?
[05:00] donnex_ has joined the channel
[05:00] webr3: ACTION knows the dom v well
[05:00] tmpvar: so something like jsdom({document: new (jsdom...Document)()}).createWindow() without all of the populating of the time
[05:00] russell_1 has joined the channel
[05:01] tmpvar: s/time/dom
[05:01] Aria: Yeah.
[05:01] Aria: window = jsdom.createWindow()
[05:01] tmpvar: you still need to handle .innerHTML and such
[05:01] Aria: Oh, yeah. That part is EASY
[05:01] tmpvar: i suppose you could just add them onto the dom at your leisure
[05:01] webr3: Window always exists in browsers, it's the main context you run under (i.e. it augments the ECMAScript global context to add on more properties and methods)
[05:01] Aria: Yeah. I'd love to be able to cleanly get at the parts.
[05:01] webr3: so if you don't natively have that context you need to have a createWindow() method like you said, where the returned instance of Window has an "emtpy" document
[05:01] Aria: "first, make me a window. Now add the DOM I choose to it. Now start a document."
[05:01] tmpvar: window first, and document last?
[05:01] tmpvar: or vice versa/
[05:01] tmpvar: ?
[05:01] webr3: window first, window is global context
[05:01] tmpvar: no its not
[05:01] Aria: Could wrap a document in a new window, but it seems backward.
[05:01] tmpvar: not in node
[05:01] _announcer: Twitter: "With the node.js Palm webOS 2.0. Browser (WebKit) out of the new foundation of the OS. Now it makes sense. http://bit.ly/dlXGIm" [ja] -- A1ZU. http://twitter.com/A12u/status/24256206198
[05:01] creationix has joined the channel
[05:01] webr3: not in node, but when you implement the dom that's the way you have to do it
[05:01] tmpvar: window.document = myShinyDocument
[05:01] pufuwozu has joined the channel
[05:01] jetienne has joined the channel
[05:01] Aria: webr3: Only from the point of view of the interior -- we have Script.runInNewContext(windowobject) for that.
[05:01] tmpvar: webr3, im not aware of any browser that lets you pick a parser or a dom level
[05:01] Aria: tmpvar: And that'll set document.parentWindow?
[05:01] Aria: (Also, have you ever found a use case for not loading all the levels, other than "it loads a little faster"?)
[05:01] tmpvar: if it doesnt, it should.
[05:01] sechrist_alt has joined the channel
[05:01] Aria: Ah, okay.
[05:01] pzich_ has joined the channel
[05:01] Aria: Hm.
[05:01] Aria: It still feels backward.
[05:01] okuryu has joined the channel
[05:01] webr3: tmpvar, indeed - document is an interface anyways not a class, a dynamic interface with many prototyped functions that are added and exposed based on the document type
[05:01] tmpvar: to an extent
[05:01] Aria: The parser feels so separate. And yet jsdom needs at least some intimate knowledge of it.
[05:01] x_or has joined the channel
[05:01] tmpvar: I feel the opposite, for ease of use reasons
[05:01] tmpvar: not completely though, I want swappable parsers.. but maybe easier to use.
[05:01] benoitc_ has joined the channel
[05:01] tmpvar: the dom is horrible to bootstrap as we're discovering hah
[05:01] webr3: you could always do parser -> ast -> dom
[05:01] webr3: extra layer but it'd give the abstraction needed
[05:01] tmpvar: how?
[05:01] Aria: How?
[05:01] Aria: The DOM is an AST.
[05:01] webr3: lol so it is - I'm gonna wade back out of this one, too late and head in ocaml apologies!
[05:01] Aria: ACTION laughs. Have fun.
[05:01] pufuwozu has joined the channel
[05:01] tmpvar: so: jsdom.createWindow(), document = new Document(), .. how does the document get onto the window?
[05:01] Aria: Well, the window.document = seemed so nice when you said it ;-)
[05:01] tmpvar: heh, ok
[05:01] Aria: Though I really don't need a documentless window. Just a contentless document.
[05:01] _announcer: Twitter: "http://wp.me/paIdo-5Q Creating a simple blog with node.js, express and mongodb" -- Éber F. Dias. http://twitter.com/eber_freitas/status/24256642506
[05:01] Aria: Something where I can set up some initial parameters before anything goes in there. My parser expects to be passed an empty document.
[05:02] beawesomeinstead has joined the channel
[05:02] [[zz]] has joined the channel
[05:02] wao has joined the channel
[05:03] Aria: (Oh, as a side note: when you add a script tag, pass the value of the src attribute to the runInNewContext. Makes things a lot easier to debug)
[05:04] amerine has joined the channel
[05:07] pufuwozu has joined the channel
[15:07] frigg: VERSION
[15:07] nodelog has joined the channel
[15:07] c4milo has joined the channel
[15:10] zapnap has joined the channel
[15:11] _announcer: Twitter: "Only tomorrow, node.js do actively. Absolutely! Absolutely! Naa ... after all - work from crushed." [ja] -- fu_su. http://twitter.com/fu_satou/status/24290972720
[15:11] _announcer: Twitter: "ー not one week during the day = node.js / night = Xcode it." [ja] -- fu_su. http://twitter.com/fu_satou/status/24291021470
[15:12] q_no: can someone point me please to a node.js+mysql site/tutorial?
[15:15] bradleymeck: what module are you using for mysql, felix's?
[15:15] q_no: none yet, have no idea what's best
[15:16] q_no: just want to store read/save some highscores, nothing fancy
[15:16] dabreaka: you probably want mongodb ;)
[15:16] bradleymeck: if its a stupid simple one, nstore doesnt require any external deps
[15:16] bpadalino: is mongoose the preferred method for using mongodb ?
[15:16] Anti-X: nobody should want mongodb
[15:17] bpadalino: what is the preferred datastore? couchdb? mongodb?
[15:17] q_no: hmm.. nstore?
[15:17] Me1000 has joined the channel
[15:17] q_no: I don't care much about the datastore, as long as I can save some values and read them ordered by a certain field
[15:18] bradleymeck: then thats not nstore for sure hahaha
[15:18] chewbranca_ has joined the channel
[15:18] dabreaka: Anti-X, why not?
[15:19] ooooPsss: node.js server is no good to serve static files?
[15:19] bpadalino: paperboy!
[15:19] bpadalino: http://github.com/felixge/node-paperboy
[15:19] bradleymeck: ooooPsss, its fine to serve static files
[15:19] ooooPsss: bradleymeck: what's the need of node-static module (for example)?
[15:20] Anti-X: q_no, what about sqlite?
[15:20] q_no: http://github.com/felixge/node-mysql for mysql?
[15:20] Anti-X: for storing a simple list with simple ordering, sqlite is just fine
[15:20] Anti-X: also fine for more complex stuff, but with its own drawbacks
[15:20] bradleymeck: ooooPsss, on its own, node only provides lowest level it can apis, so if you want to take advantage of http 304, in memory cache, etc you want to build ontop of node
[15:21] rvanrooy: thanks anti-x, solved my session issue, had to do with using different modules in a connect app
[15:21] ooooPsss: bradleymeck: ok thank you!
[15:21] brainfck` has joined the channel
[15:21] q_no: Anti-X, SQLlite would also to the trick.. just need a link to the module+docs ;)
[15:22] Anti-X: http://github.com/orlandov/node-sqlite
[15:23] q_no: ah, thanks! :) gonna use that one
[15:25] ChrisPartridge has joined the channel
[15:25] bpadalino: neato
[15:27] jakehow has joined the channel
[15:28] _announcer: Twitter: "Trying to see if we have a use for Node.js at @unilincoln but I'm struggling to find one. But then who needs a reason to play?" -- Alex Bilbie. http://twitter.com/alexbilbie/status/24292354237
[15:29] rcy has joined the channel
[15:31] _announcer: Twitter: "Incredibly, the same night I had a nightmare with the teacher who told me Node.js was something "dangerous." That day was traumatic." [pt] -- Nerdson. http://twitter.com/nerdson/status/24292592174
[15:36] m64253_ has joined the channel
[15:43] matschaffer has joined the channel
[15:44] benoitc_ has joined the channel
[15:45] c4milo has joined the channel
[15:48] mirko_ has joined the channel
[15:49] x_or has joined the channel
[15:53] zk has joined the channel
[15:53] x_or1 has joined the channel
[15:58] mirko_ has joined the channel
[15:59] voxpelli has joined the channel
[16:03] mape: Aria: Any plans on adding html5 to npm?
[16:03] V1 has joined the channel
[16:06] hdon: proposal: Node for Chrome!
[16:07] jacobolu_ has joined the channel
[16:08] Me1000 has joined the channel
[16:09] bpadalino: does not compute .. what do you mean "node for chrome" ?
[16:09] KungFuHamster_ has joined the channel
[16:11] Eber has joined the channel
[16:11] softdrink has joined the channel
[16:16] gf3 has joined the channel
[16:16] altamic has joined the channel
[16:17] daglees has joined the channel
[16:20] altamic_ has joined the channel
[16:26] mirko_ has joined the channel
[16:29] mu-hannibal has joined the channel
[16:32] c4milo has left the channel
[16:38] _announcer: Twitter: "Interesting slides: Running YUI3 on node.js http://slidesha.re/bFJjqG" -- Mario Volke. http://twitter.com/webholics/status/24297844760
[16:38] jashkenas has left the channel
[16:47] Validatorian has joined the channel
[16:47] mjr_ has joined the channel
[16:50] Validatorian: a non-techie friend of mine wants to create a blog using node, but for his uses, using a git repo to house the articles isn't going to work -- does anyone know of another blog engine that has permissions set up to use a gui for posting new articles?
[16:50] mikeal: creationix1: you around?
[16:51] Eber has joined the channel
[16:51] ooooPsss: Validatorian: hi, try http://github.com/creationix/wheat
[16:51] ooooPsss: ha, "isnt going to work", didnt read that :p
[16:51] mikeal: howtonode is down :(
[16:51] Validatorian: ;)
[16:51] ooooPsss: mikeal: not to me
[16:51] Validatorian: mikeal: not for me
[16:52] mikeal: it's just loading forever for me
[16:52] Tasser has joined the channel
[16:53] q_no: anymore familar with socket.io? it seems to use multipartXHR in FF and I wonder if flash is perhaps the more responsive alternative
[16:53] mape: mikeal: seems like a common issue nowadays
[16:54] rcy: q_no: flash is, yeah, which is why its preferred to xhr in the transports list
[16:54] q_no: rcy: my FF isn't using flash.. I suppose I forgot something then
[16:55] mikeal: FF 4 has websockets
[16:55] mikeal: but it's a newer version of the spec so their might be issues
[16:55] q_no: mikeal: yeah, but it's not yet available afaik (public release)
[16:55] mikeal: the beta is
[16:56] mikeal: i mean, it's at Beta4
[16:56] mikeal: RC1 is probably around the corner
[16:56] q_no: normal users can't even spell beta ;)
[16:56] mikeal: oh come on
[16:56] mikeal: Gmail was beta until like last week
[16:56] Validatorian: woah, can I get a gmail invite now, then? ;)
[16:57] q_no: yeah... but with Gmail you can't decide to whether or not use a beta version
[16:57] q_no: if FF wouldn't prompt for an automatic update, normal users would never upgrade
[16:57] Validatorian: q_no: techinally, you can... there's an option in gmail to add the 'beta' tag bag to the logo
[16:57] q_no: but I'm glad to hear RC1 is not far away :)
[16:57] mikeal: FF beta's get over 100K users
[16:57] Validatorian: :-D
[16:58] mikeal: don't know the exact numbers now but when I was at Mozilla that's how many we had
[16:58] mikew3c has joined the channel
[16:59] berset has joined the channel
[16:59] q_no: however, back to my intial question... if FF is not using flash, did I miss a configuration option for socket.io?
[16:59] berset: Hello boys and girls!
[16:59] berset: Is is possible to force the http.Client to use HTTP/1.0 ?
[16:59] rationalOgre has joined the channel
[17:00] rcy: q_no: you need to start your node instance as root to open the privileged port the flash transport needs
[17:00] rcy: q_no: you should see the big warning about that if you start as a user
[17:01] rationalOgre has left the channel
[17:02] webr3 has joined the channel
[17:03] rcy: and you need to call io.Setpath('/whatever') on the client so FF can find /lib/vendor/web-socket-js/WebSocketMain.swf
[17:06] voxpelli has joined the channel
[17:07] jchris has joined the channel
[17:07] sonnym has joined the channel
[17:10] quirkey has joined the channel
[17:12] zapnap has joined the channel
[17:12] LFabien has joined the channel
[17:12] _announcer: Twitter: "oh.. websockets.. and node.js :) \m/" -- Rishav Rastogi. http://twitter.com/rishavrastogi/status/24300474956
[17:13] jonevans has joined the channel
[17:15] jonevans: I'm having a problem with Buffer#utf8Write()
[17:15] dgathright has joined the channel
[17:15] jonevans: can someone take a look at this gist please? http://gist.github.com/576246
[17:16] bpadalino: done and done
[17:17] jonevans: the code in question is called from redis-client
[17:17] jonevans: I've just extracted the failing part into a gist
[17:21] timemachine3030 has joined the channel
[17:25] zemanel has joined the channel
[17:25] _announcer: Twitter: "Is it time to drink the Node.js Kool-Aid? http://bit.ly/d5NBd5" -- jonasbeckman. http://twitter.com/jonasbeckman/status/24301433888
[17:25] pengwynn has joined the channel
[17:25] V1 has left the channel
[17:25] digitals1aghetti: YES
[17:26] digitals1aghetti: the kool-aid has already been drunk here :p
[17:26] gwynddyllyd has joined the channel
[17:27] gwynddyllyd: hello, i'm having some problems using node's REPL with js-comint.el under Emacs. Namely, even by setting NODE_NO_READLINE=1 node continues issuing tty characters inside my inferior-javascript buffer.
[17:27] zum: to us non-americans, "kool-aid" is a mysterious substance that probably can't be found on this earth, similar to spice in Dune
[17:27] boaz has joined the channel
[17:28] gwynddyllyd: js-comint.el calls a bash script that sets NODE_NO_READLINE to 1, updates the PATH and then executes node
[17:28] gwynddyllyd: Any clues?
[17:28] zum: gwynddyllyd: as I recall, someone just encountered that problem today
[17:28] boaz_ has joined the channel
[17:28] zum: let's see
[17:28] _announcer: Twitter: "enjoying @cramforce 's real-time twitter client - http://streamie.org #nodejs" -- Marc Harter. http://twitter.com/wavded/status/24301662469
[17:29] gwynddyllyd: (on lib/readline.js there's a check for NODE_NO_READLINE on line 30 that sets this._tty = false if NODE_NO_READLINE is set)
[17:30] rcy: gwynddyllyd: is that environment variable being exported?
[17:30] rcy: gwynddyllyd: look at process.env in your node buffer and double check
[17:30] gwynddyllyd: rcy: it wasn't! it's working now!
[17:31] gwynddyllyd: rcy: i completely overlook this.
[17:31] gwynddyllyd: many thanks!
[17:31] zum: :)
[17:32] gwynddyllyd: all is well now.
[17:32] jb55 has left the channel
[17:33] cloudhead has joined the channel
[17:36] dilvie has joined the channel
[17:36] altamic has joined the channel
[17:38] mirko_ has joined the channel
[17:39] _announcer: Twitter: "Taking a look at node.js and jQuery today." -- Ryan Rosario. http://twitter.com/DataJunkie/status/24302466509
[17:43] edw has joined the channel
[17:44] mr_daniel has joined the channel
[17:45] digitals1aghetti: zum: i'm non-american too, but i've been to Canada :)
[17:46] trotter has joined the channel
[17:47] edw has joined the channel
[17:47] _announcer: Twitter: "Please stop everything you're doing right now and read this; http://journal.paul.querna.org/articles/2010/06/12/node-js/" -- psvensson. http://twitter.com/psvensson/status/24303033428
[17:50] _announcer: Twitter: "[soon] @64cubes is a new company for web consultancy. Follow @64cubes now :) #ruby #mongodb #nodejs #rails #israel #nablus #palestine" -- Amr Numan Tamimi. http://twitter.com/amrnt/status/24303238586
[17:50] jakehow has joined the channel
[17:51] _announcer: Twitter: "made things so cool and totally useless with NodeJS and WebSocket \ o /" [fr] -- Hadrien Lanneau. http://twitter.com/hadrienl/status/24303314016
[17:52] c4milo1 has joined the channel
[17:56] MrTopf has joined the channel
[17:57] mirko_ has joined the channel
[17:57] edw has joined the channel
[18:01] matschaffer has joined the channel
[18:01] gryzzly has joined the channel
[18:02] gryzzly: hey, anyone knows good way of implementing sessions with expressjs?
[18:02] brainfck` has joined the channel
[18:03] mape: use connect-sessions?
[18:04] jashkenas has joined the channel
[18:05] gryzzly: mape: couldn't google it up! thanks
[18:06] tav has joined the channel
[18:07] mirko_ has joined the channel
[18:09] saikat has joined the channel
[18:09] saikat: creationix1: http://downforeveryoneorjustme.com/howtonode.com
[18:10] saikat: sorry if you already knew =)
[18:10] jashkenas: saikat: howtonode.org ... ?
[18:10] saikat: oh really
[18:10] ooooPsss: it's down as well
[18:10] saikat: yeah
[18:11] saikat: i was actually checking .org myself, put in the wrong address on downforeveryoneorjustme
[18:11] jashkenas: it's up for me ... that's strange.
[18:11] saikat: http://downforeveryoneorjustme.com/howtonode.org
[18:11] jashkenas: yeah, but I can see it.
[18:11] saikat: hm, DNS issue?
[18:11] jashkenas: let's see.
[18:11] lianj: jashkenas: its here too
[18:11] jashkenas: saikat: try this: 205.186.160.54
[18:11] hornbeck has joined the channel
[18:12] saikat: jashkenas: times out too
[18:12] maushu: Uh oh, node broke.
[18:12] jashkenas: dunno then: http://cl.ly/5860b29b93273ef7cfc1
[18:13] saikat: yeah i believe you
[18:13] saikat: weird
[18:13] saikat: http://gist.github.com/576297 is what i get
[18:14] codelotus has left the channel
[18:16] jashkenas: saikat: here's my traceroute if you want to investigate further: http://gist.github.com/576301
[18:16] jackish has joined the channel
[18:18] matt_c has joined the channel
[18:18] saikat: hm, i'm on some cafe's wifi, and traceroute doesn't seem to be working here... that's odd
[18:18] saikat: though i can ping just fine
[18:20] Aria: Many ISPs block traceroute sized packets.
[18:20] Aria: Since there was a worm that spread that way years back
[18:20] Aria: If you bump the packet size, often it works
[18:20] zk has joined the channel
[18:20] ehaas has joined the channel
[18:21] _announcer: Twitter: "Nodejs.com is not the solution to my problem, but it is interesting subject ... so we will not have to learn perl or python only jscript: P" [es] -- Pablo Mendoza. http://twitter.com/pablomz/status/24305487721
[18:21] saikat: hm, tried bumping it to 1024, still seems to be dying on google.com
[18:21] dug_ has joined the channel
[18:22] Aria: nuts!
[18:22] [[zz]] has joined the channel
[18:22] zk has joined the channel
[18:22] saikat: but yeah, might be something to do with that
[18:22] mtodd has joined the channel
[18:27] indexzero has joined the channel
[18:28] indexzero: must not sleep, must continually restart connect server
[18:28] indexzero: >.<
[18:28] c4milo has joined the channel
[18:29] c4milo1 has joined the channel
[18:30] dilvie has joined the channel
[18:30] V1 has joined the channel
[18:30] indexzero: anyone make heads or tails of this?
[18:31] indexzero: events:12 throw arguments[1];
[18:31] indexzero: Error: Parse Error at Client.ondata (http:899:22)
[18:31] indexzero: I can't seem to find anywhere the ondata method is attached to an event
[18:33] jashkenas: indexzero: but it's a ParseError, no? So it doesn't have to be attached to anything to break. want to gist the code?
[18:33] indexzero: it's node-http-proxy I think
[18:34] indexzero: http://github.com/nodejitsu/node-http-proxy
[18:34] jashkenas: are you eval'ing something?
[18:34] mikeal has joined the channel
[18:34] indexzero: no
[18:34] indexzero: sup mikeal
[18:34] mikeal: hiya
[18:34] indexzero: how was couch camp?
[18:35] indexzero: jashkenas: I don't know what's up, but I have my suspicions about node-http-proxy 0.3.0. I'm so close to having this thing battle ready
[18:35] indexzero: mikeal: speaking of, I moved away from the proxypool implementation after I couldn't figure out why it becomes unresponsive when spammed with requests
[18:36] jashkenas: ha, then perhaps you should change the docs to "almost-battle-hardened node.js http proxy" ;)
[18:36] indexzero: heh
[18:36] mikeal: there is a max clients
[18:36] mikeal: so if you exceed it it'll wait for one to be freed
[18:36] indexzero: maybe it has something to do with all those clients hanging or something, because it would never respond
[18:36] mikeal: if you make requests to content that don't finish you'll exhaust the pool size
[18:36] indexzero: I gave it hours to free itself up
[18:36] mikeal: yup
[18:37] mikeal: maybe tooling some timeout
[18:37] indexzero: perhaps, but the thing is
[18:37] indexzero: in 0.3.0 I'm still using pool
[18:37] indexzero: and not seeing this behavior
[18:38] femtoo has joined the channel
[18:38] indexzero: mikeal: I had to make some pretty serious changes from proxypool anyway because people needed to use node-http-proxy inside connect
[18:38] indexzero: so just creating a web server wasn't enough
[18:38] indexzero: but I'm not doing any of that crazy collision stuff anymore
[18:38] mikeal: hrm....
[18:38] indexzero: turns out object creation was really cheap
[18:39] mikeal: ok, so you're using pool and it works fine but proxypool has this bug
[18:39] mikeal: interesting
[18:39] indexzero: yeah, 0.3.0 is now the 'master' branch
[18:39] mikeal: totally, object creation is super cheap
[18:39] cloudhead: what's the easiest way to pass binary data from c++ to js?
[18:39] indexzero: cloudhead: stdio?
[18:39] cloudhead: indexzero: no like, it's a module
[18:39] mikeal: hrm....
[18:39] indexzero: oh
[18:39] tmpvar: cloudhead, I'd guess buffers
[18:39] mikeal: i wonder what it could be
[18:40] mikeal: maybe something is going on with that buffer code that misses an end event
[18:40] cloudhead: tmpvar: yea, thought so, but they look a little complex, you have to write() to them etc
[18:40] AAA_awright: I can't figure out how to get npm to run, how do you call it?
[18:40] indexzero: mikeal: yeah, that or something with sys.pump, I'm no longer using sys.pump in 0.3.0
[18:41] indexzero: AAA_awright: curl http://npmjs.org/install.sh | sudo sh
[18:41] cloudhead: tmpvar: seems like the best solution though... unless I convert ot base64, but I gotta convert back to a buffer anyway
[18:41] mikeal: there have been some additions since i checked last
[18:41] AAA_awright: indexzero: I'm not trying to install it
[18:41] tmpvar: cloudhead, yeah. so there is no way to just throw a char * at it? haha
[18:41] bpadalino: cloudhead: what are you doing with the binary data when you've got it ?
[18:41] indexzero: AAA_awright: Ah, then 'npm '
[18:41] AAA_awright: And I'm absolutely not piping anything from curl through sh in any event
[18:41] mikeal: so maybe sys.pump got fucked in core
[18:41] cloudhead: tmpvar: heh nope, I tried.. cause there's \0s in it
[18:42] indexzero: mikeal: Yeah, I went off on my own for a bit, didn't want to ruin your couch camp ;)
[18:42] mikeal: i really dont' like the error handler that got added
[18:42] cloudhead: bpadalino: it's in an array in c++
[18:42] AAA_awright: indexzero: It's not installed, I just want to run it in place
[18:42] bpadalino: oh, i ran into a similar problem with an array of doubles ..
[18:42] indexzero: mikeal: I need to suppress those errors or it will just end the process
[18:42] V1: Dear god, going client side JS for a few days really makes me crawl back to node.js where I only have to fight with one engine.. We are blessed <3!
[18:42] bpadalino: i just had to iterate through - there was no other way around it from what i could tell :(
[18:43] cloudhead: bpadalino: iterate, and escape them?
[18:43] mikeal: right, so add handlers to the streams
[18:43] mikeal: sys.pump adding an error handler just means that some of them you won't see
[18:43] cloudhead: bpadalino: I'm going to try with buffers first
[18:43] indexzero: mikeal: You re-emit those events yourself in pool
[18:43] bpadalino: cloudhead: i just needed doubles ..
[18:43] bpadalino: so i didn't require escapes
[18:43] cloudhead: bpadalino: ahh, you needed actual doubles
[18:43] cloudhead: hm
[18:43] indexzero: mikeal: http://github.com/mikeal/node-utils/blob/master/pool/main.js#L57
[18:43] bpadalino: yeah, so NumberValue() or whatever it is ..
[18:43] bpadalino: that seemed to be fine
[18:43] indexzero: if I don't handle them, the process will exit
[18:44] bpadalino: but if you are doing binary stuff, Uint32 should be fine for you, right ?
[18:44] indexzero: AAA_awright: You have to install npm to use it, lol
[18:44] AAA_awright: What does that give me but the ability to use it system-wide?
[18:44] AAA_awright: This is a local install
[18:44] bpadalino: array->Get(i)->NumberValue() is what i used
[18:45] indexzero: AAA_awright: Don't know what to tell you, that's how I use it (and probably everyone else)
[18:45] q_no: Thanks for the help guys, my beta of http://nettank.nrg-media.de/ is now ready to share :) Post it on FB, Twitter, whatever... Node.JS rocks! :)
[18:48] bpadalino: unfortunately there was no way to quickly take an Array type and grab all the data from it into a char * or double *
[18:48] AAA_awright: ah got it, cli.js needs --root=
[18:48] Yuffster has joined the channel
[18:49] AAA_awright: No that just emits an error even earlier than the one I'm getting now
[18:52] jashkenas: q_no: check out what stephank is working on: http://stephank.github.com/orona/
[18:53] mirko_ has joined the channel
[18:53] stephank: woah, free advertising
[18:53] jashkenas: stephank: is that link still the up-to-date source, or do you have it hosted elsewhere?
[18:53] charlenopires has joined the channel
[18:53] cce has joined the channel
[18:53] _announcer: Twitter: "Been playing around with node.js today. Loving it! Also had a brief look at Ruby for the 1st time. Need to get a web server for home soon!!" -- Peter Barclay. http://twitter.com/webSurgeon/status/24307681620
[18:54] q_no: wow, nice :)
[18:54] stephank: jashkenas: there's a newer version with multiplayer at http://wadna-ramet.no.de/ , but most gameplay elements are still missing. (ie.: you still can't shoot eachother)
[18:55] jashkenas: q_no: the source is especially nice ;) http://github.com/stephank/orona/tree/master/src/
[18:55] q_no: stephank, in my game it's the opposite.. shooting works, everything else is missing ;)
[18:56] mikew3c_ has joined the channel
[18:56] stephank: q_no: Hah, well perhaps that's the right order of doing things. Yours is already a bit a fun. :)
[18:57] jashkenas: stephank: you notice the bit of jerkiness that comes in when there are multiple players in there? I wonder what the correct way to fix that is with a multiplayer game? ... wait for the server to agree on positions before updating the client ui?
[18:57] q_no: yeah, fun is pure motivation! other way round it's hard to get something done
[18:57] _announcer: Twitter: "Are there any libraries for dealing with datatypes in the Buffer object in nodejs? E.g. getLong() or getShort() etc" -- Lee Treveil. http://twitter.com/leetreveil/status/24307914529
[18:57] jashkenas: or perhaps the client is always right, and the server just gets to reconcile conflicts...
[18:57] _announcer: Twitter: "Node.js and MongoDB - http://su.pr/1Sfgjo" -- eBot. http://twitter.com/kicauan/status/24307941633
[18:58] q_no: in my case the client is always right ;) and the server broadcasts the x/y/angle to everyone else
[18:58] tmpvar: oh wow
[18:58] tmpvar: gets stupid slow when you bring another player
[18:58] MikhX has joined the channel
[18:58] stephank: jashkenas: I'm not sure, I haven't noticed that yet.
[18:59] jashkenas: stephank: do you see it at the moment, with all of us in there?
[18:59] Eber: Is there any data validation module for node that I could use with express?
[18:59] stephank: jashkenas: no, it's running smooth for me
[19:00] jashkenas: hmm, might be a latency thing -- I'm on distant wifi.
[19:00] tmpvar: oh, i was in the grass
[19:03] mirko_ has joined the channel
[19:03] codysoyland has joined the channel
[19:04] stephank: q_no: did you have an existing game as a reference?
[19:04] jackish has joined the channel
[19:04] jashkenas: stephank: it's totally awesome that it's just canvas and drawImage()
[19:04] stephank: jashkenas: is it smooth for you? I've only gotten smooth performance out of chromium so far, but I'm on a low end laptop.
[19:04] stephank: (there's also a webgl renderer)
[19:05] jashkenas: stephank: it's not slow single-player, but when there's multiple people in the room it gets all jumpy with the server updating my tank's position, I think.
[19:06] stephank: I do notice heavy latency, probably because I'm in NL and no.de is somewhere in the USA. But I haven't noticed jumpiness. I'll have to with my laptop on wifi sometime.
[19:07] stephank: *have to try
[19:11] bradleymeck has joined the channel
[19:16] _announcer: Twitter: "Enough with the node.js, mongodb posts please. For the love of God, please." -- Curt Micol. http://twitter.com/asenchi/status/24309166621
[19:18] bradleymeck: !tweet @asenchi, /cry i want mongodbbot, my love!
[19:18] bradleymeck has left the channel
[19:18] bradleymeck has joined the channel
[19:19] gbot2 has joined the channel
[19:23] CorporalMaxSterl has joined the channel
[19:25] jacobolus has joined the channel
[19:26] _announcer: Twitter: "Finalizing the first draft of the # direct API and an initial version of the servers based on # # direct node.js" [it] -- Benjamin Erb. http://twitter.com/b_erb/status/24309823730
[19:28] mikew3c has joined the channel
[19:29] overra has joined the channel
[19:29] Gruni has joined the channel
[19:30] _announcer: Twitter: "http://tinyurl.com/ylbx7f5 Video: Node.js by Ryan Dahl - JSConf.eu - 2009" -- dog_race. http://twitter.com/dog_race/status/24310115282
[19:30] c4milo has joined the channel
[19:31] jacobolus has joined the channel
[19:33] huyhong has joined the channel
[19:34] jackish has joined the channel
[19:37] LFabien_ has joined the channel
[19:40] edw has joined the channel
[19:40] _announcer: Twitter: "@sanand0 Does it need node.js .... looked like from the docs ... but didn't read completely :)" -- Ravi Ranjan. http://twitter.com/raviranjan1202/status/24310798147
[19:44] jackish has joined the channel
[19:46] jacobolu_ has joined the channel
[19:48] MikhX has joined the channel
[19:48] Nohryb: v8 arguments
[19:48] v8bot: Nohryb: ReferenceError: arguments is not defined
[19:49] Nohryb: v8 typeof arguments
[19:49] v8bot: Nohryb: undefined
[19:52] Nohryb: v8 anonymous
[19:52] v8bot: Nohryb: ReferenceError: anonymous is not defined
[19:54] _announcer: Twitter: "Node.js and MongoDB: http://howtonode.org/ac1872f596600b7b8493658da9b19c9b7e0b3f34/node-and-mongo" -- James Dennis. http://twitter.com/j2labs/status/24311670010
[19:54] JimBastard has joined the channel
[19:54] Nohryb: v8 setTimeout(function(){return "foo"},500)
[19:54] v8bot: Nohryb: ReferenceError: setTimeout is not defined
[19:54] jdevesa has joined the channel
[19:55] JimBastard: creationix1: still no luck tracing that error. ive exposed our application servers to the internet, so the next time the blog application stops responding, i can hit it directly without going through the proxy, maybe that will make a diff
[19:56] JimBastard: isolate it a bit
[20:00] isaacs has joined the channel
[20:03] _announcer: Twitter: "node.js theme night in Dresden: http://bit.ly/aOr1iV # c3d2" [de] -- Frank Becker. http://twitter.com/41i3n8/status/24312290402
[20:04] mbrochh has joined the channel
[20:04] mbrochh has joined the channel
[20:06] MikhX_ has joined the channel
[20:06] joshbuddy has joined the channel
[20:07] mikew3c has joined the channel
[20:08] ThePub has joined the channel
[20:13] jchris has joined the channel
[20:16] DoNaLd`: hi all, there i have found script irc announcer for twitter .. http://gist.github.com/433101 but in include files is also this: Irc = require('./vendor/IRC/lib/irc'); .. so my question is, where can i locate this lib ?
[20:16] bradleymeck: npm install irc
[20:16] bradleymeck: its using node-irc
[20:16] DoNaLd`: thnx
[20:19] bradleymeck: why must objectwrap.ref be protected /shakes fist
[20:20] c4milo1 has joined the channel
[20:22] jchris has joined the channel
[20:25] John9e9 has joined the channel
[20:27] digitals1aghetti: whats the best way to create a directory with node?
[20:27] brainfck` has joined the channel
[20:28] Aria: fs.mkdir?
[20:28] Aria: Is there another way?
[20:29] figital has joined the channel
[20:30] gthb has joined the channel
[20:30] DoNaLd`: Aria: call child_process ? :)
[20:30] digitals1aghetti: probably not, i'm just checking
[20:30] Aria: Heh. I suppose one could do that ;-)
[20:31] kriszyp_ has joined the channel
[20:31] digitals1aghetti: probably not, i'm just checking
[20:31] digitals1aghetti: whoops :)
[20:32] programble has joined the channel
[20:33] confoocious has joined the channel
[20:37] mikew3c has joined the channel
[20:37] KungFuHamster_ has joined the channel
[20:38] bradleymeck: can anyone tell me why http://gist.github.com/576432 , segfaults?
[20:39] bradleymeck: c++ btw
[20:41] huyhong has left the channel
[20:41] _announcer: Twitter: "Thanks to @DamZ for helping me with PyQT / JS. Posted http://drupal4hu.com/node/266 Google search with QWebKit + QWebElement." -- chx1975. http://twitter.com/chx1975/status/24314847284
[20:42] bpadalino: bradleymeck: what does gdb tell you ?
[20:43] bradleymeck: dunno how to invoke the gdb on a running node honestly
[20:43] bpadalino: you can have gdb attach to a pid i believe, or just run node inside of gdb
[20:44] altamic has joined the channel
[20:44] bpadalino: gdb --args node blah.js i think
[20:45] bradleymeck: v8::internal::Builtin_HandleApiCall(v8::internal::(anonymous namespace)::BuiltinArguments) (), then it looks like corrupt stack
[20:45] v8bot: bradleymeck: SyntaxError: Unexpected token :
[20:45] _announcer: Twitter: "Yay! Used #opschef to deploy a node.js app that uses mongo. Will try to blog it soon." -- Trotter Cashion. http://twitter.com/cashion/status/24315105375
[20:46] bpadalino: hrm ..
[20:46] zemanel has joined the channel
[20:47] bpadalino: what's interesting is you never this->Unref() ;
[20:47] bradleymeck: yea, but it never gets past ref as i was testing
[20:48] bvleur has joined the channel
[20:48] bpadalino: i never use this for a Ref() .. i always use an unwrapped object ..
[20:49] bpadalino: http://github.com/bpadalino/node_fftw/blob/master/fftw3.cc - that is what i did for interfacing with FFTW
[20:50] bradleymeck: well i dont really have a args.This() since its a separate event loop XD
[20:52] bpadalino: so that's where i figured that baton nomenclature came from ..
[20:52] bpadalino: everything that the event loop needs (callbacks, etc) goes into the baton that you pass around ..
[20:54] bradleymeck: still unsure why im sef faulting on constructor
[20:55] edw has joined the channel
[20:56] bpadalino: do you segfault when you remove the Ref() in the constructor ?
[20:56] scoates: I'm doing a bunch of hacking on readline (by extending it); mostly to help with multiline… Think it's worth contributing back to master?
[20:57] bradleymeck: bpadalino nope
[20:57] jashkenas: scoates: what's your general strategy for that?
[20:58] scoates: jashkenas: which part?
[20:58] jashkenas: handling multiline expressions?
[20:58] scoates: ah.. this is for handling lines that are wider than the terminal in REPL
[20:58] scoates: normall, the stock readline doesn't handle this very well
[20:59] scoates: *normally
[21:00] edw_ has joined the channel
[21:00] jashkenas: scoates: ah, gotcha.
[21:00] bpadalino: bradleymeck: move it outside of the constructor?
[21:01] bpadalino: there is a specific note about not calling Unref() in a destructor
[21:01] bpadalino: maybe Ref() is similar for the constructor ?
[21:02] bradleymeck: maybe but i cant really find a place to put it outside the constructor since its protected and doesnt provide any methods
[21:02] codysoyland has joined the channel
[21:02] bradleymeck: ref is protected*
[21:02] gthb has joined the channel
[21:03] bpadalino: i call it when i actually want to perform the execution ..
[21:03] joshbuddy has joined the channel
[21:03] bpadalino: usually you create the object, then you want to perform some action asynchronously
[21:04] bradleymeck: yea, but the c++ object im handling is just an event emitter for a gui, so its not as if i do some action
[21:04] rwaldron has joined the channel
[21:06] bpadalino: hrm .. well, place a breakpoint at your call to this->Ref() and step through it ?
[21:07] bpadalino: btw, i'm new here .. so .. find some big grains of salt with everything i say :(
[21:07] KungFuHamster_ has joined the channel
[21:08] bradleymeck: yea, im looking at object_wrap right now to figure this out
[21:08] jchris has joined the channel
[21:10] bradleymeck: ooooh
[21:11] gf3 has joined the channel
[21:11] robotarmy has joined the channel
[21:11] bpadalino: an epiphany!
[21:12] dantalizing_ has joined the channel
[21:14] bradleymeck: forgot to use Wrap before ref...
[21:14] matschaffer has joined the channel
[21:15] bpadalino: that'll do it
[21:18] edw_ has left the channel
[21:25] Tim_Smart has joined the channel
[21:27] amerine has joined the channel
[21:29] JohnnyL has joined the channel
[21:31] AAA_awright: Who is doing any optimizing with bloom filters? Is there a best way to do that with Javascript?
[21:31] pengwynn has joined the channel
[21:31] dug_ has joined the channel
[21:32] rwaldron has joined the channel
[21:34] matthewford has joined the channel
[21:35] Nohryb has joined the channel
[21:35] jesusabdullah: What are bloom filters?
[21:36] rtomayko has joined the channel
[21:37] aaronblohowiak: jesusabdullah: a way of caching the presence of an object in a set
[21:37] aaronblohowiak: jesusabdullah: ie: is this word in the dictionary? or is this file on this computer? --very memor-compact representation, but it may have a false positive. never has a false negative
[21:38] ysinopsys has joined the channel
[21:39] AAA_awright: With a small chance of a false positive
[21:43] scoates: jashkenas: FWIW http://github.com/fictivekin/webshell/blob/envjs/wsreadline.js
[21:43] _announcer: Twitter: "Got my base64 problems in #nodejs solved once and for all - it turned out to be easier than I never had hoped http://gist.github.com/576480" -- Andris Reinman. http://twitter.com/andris9/status/24318741438
[21:44] scoates: _refreshLine is the biggest change to support long lines
[21:45] mikew3c has joined the channel
[21:48] HerrTopf has joined the channel
[21:49] njero has joined the channel
[21:51] freeall has joined the channel
[21:52] JohnnyL: is node.js more effecient than a typical c++ server app?
[21:52] ashb: run benchmarks and find out
[21:52] jashkenas: not in general.
[21:52] ooooPsss has joined the channel
[21:52] ashb: a 'typical' benchmark is useless
[21:53] SubStack: the question you should be asking is 'is node.js efficient enough?'
[21:53] SubStack: for some particular purpose
[21:53] scoates: or "is the convenience of node greater than the efficiency penalty?"
[21:53] JimBastard: i dont think i can write 1500 lines of application code in C++ in one day
[21:53] SubStack: also that
[21:54] SubStack: JimBastard: 1500 lines of c++ is enough to what, concatenate a few strings too?
[21:54] SubStack: c++ is so error-prone
[21:54] JimBastard: i kinda stopped writing c++ in 2002
[21:54] JimBastard: :-\
[21:54] SubStack: although I did wish I could do something like type inference in node
[21:55] SubStack: s/did/do/
[21:55] gf3 has joined the channel
[21:56] scoates: actionscript, which is ECMA-ish does type inference.. and seems to do it surprisingly well (haven't touched it in 3 years, though)
[21:56] jesusabdullah: I took like one class in C(++)
[21:57] bradleymeck: c++ is killing me as i try to debug seg faults
[21:57] jesusabdullah: and it was like, "can you understand a for loop?" "no :( "
[21:57] jesusabdullah: Y'know? THOSE programming classes?
[21:57] saikat has joined the channel
[21:58] c4milo1: bradleymeck: valgrind and node (./configure —debug) is your friend
[21:59] bradleymeck: the fact that i need to use stuff like that is :(
[21:59] saikat: bradleymeck: not sure what your question was, but i havea hunch that you might also want http://github.com/saikat/LittleBird
[21:59] saikat: er
[21:59] saikat: http://github.com/bnoordhuis/node-profiler
[21:59] saikat: sorry
[21:59] tyfighter has joined the channel
[21:59] bradleymeck: plus sometimes the erros occur from perfectly legit operations in other situations
[21:59] bradleymeck: errors*
[22:02] JohnnyL: well I'd like to know if Node's event model handles lots of little loads better than c++.
[22:02] jashkenas: JohnnyL: Node's event model is written in C++.
[22:03] _announcer: Twitter: "Been thinking about #nodejs, package management and django-admin" -- Tane Piper. http://twitter.com/tanepiper/status/24319971869
[22:03] SubStack: better than c++?
[22:03] SubStack: c++ has no event model
[22:03] jesusabdullah: saikat: What is LittleBird? twitter-related?
[22:03] bradleymeck: c++ has riia /shudder
[22:03] SubStack: comparisons are completely spurious
[22:04] saikat: jesusabdullah: no, socket-io related
[22:04] jesusabdullah: ah
[22:04] saikat: trying to make a real-time server dashboard
[22:04] SubStack: bradleymeck: yes but those are specific
[22:04] saikat: that uses socket-logger
[22:04] jesusabdullah: Oh, nice
[22:04] saikat: so your legs just ship to a client of your choosing that can graph info that you want about your socket messages
[22:04] saikat: your logs*
[22:04] SubStack: more socket io experiments?
[22:05] jesusabdullah: Whoa, your actual name is saikat?
[22:05] saikat: well, this one will be getting used for a production environment
[22:05] saikat: so hopefully more than just an experiment
[22:05] jesusabdullah: Crazylegs
[22:05] saikat: heh yes
[22:06] dabreaka has left the channel
[22:12] lakin has joined the channel
[22:12] mikeal has joined the channel
[22:15] _announcer: Twitter: "nodejs & mongodb http://howtonode.org/node-and-mongo # # nodejs mongodb" [pl] -- Régis Gaidot. http://twitter.com/rgaidot/status/24320790912
[22:16] austinfromboston has joined the channel
[22:17] creationix has joined the channel
[22:19] _announcer: Twitter: "Just made a bunch of changes to Node.js's readline (for use in Webshell). Check wsreadline.js if you use Node's default http://j.mp/webshell" -- Sean Coates. http://twitter.com/coates/status/24320998264
[22:19] scoates: that search stream API is pretty impressive (-:
[22:20] _announcer: Twitter: "good intro to geddy http://howtonode.org/introduction-to-geddy #framework #geddy #nodejs" -- Régis Gaidot. http://twitter.com/rgaidot/status/24321076542
[22:20] hassox has joined the channel
[22:21] _announcer: Twitter: "On that note, if anyone knows how to get the *current* terminal width without shelling out to `tput`, please let me know. #nodejs #ansi" -- Sean Coates. http://twitter.com/coates/status/24321181293
[22:24] JimBastard: !tweet @coates does http://github.com/mscdex/node-ncurses count?
[22:24] _announcer: Twitter: "@coates You'll need an ioctl binding -- ioctl(fd, TIOCGWINSZ, &struct); -- there's none in the stock #nodejs library." -- Aria Stewart. http://twitter.com/aredridel/status/24321355430
[22:25] scoates: JimBastard: I think I'd like to avoid a ncurses requirement *just* for this (tput works, it's just not ideal… lots of shelling, and no Windows (not that I really care about the latter))
[22:26] Aria: A binding for (well, for that specific) ioctl wouldn't be hard to write.
[22:27] Aria: A generic one is hell, but any specific one is easy.
[22:27] scoates: that sounds above my pay grade /-:
[22:28] Aria: Hehe.
[22:29] ryah: scoates: process.binding('stdio').getColumns()
[22:29] _announcer: Twitter: "The #nodejs Daily is out! http://bit.ly/aOxf1J ▸ top story : Learning Server-Side JavaScript with Node.js" -- Samuel Morello. http://twitter.com/ouvanous/status/24321681824
[22:29] scoates: wow. really?
[22:30] scoates: huh. cool (-:
[22:30] scoates: thanks ryah!
[22:30] Tim_Smart: scoates: http://github.com/ry/node/blob/master/src/node_stdio.cc#L81
[22:31] _announcer: Twitter: "Nice! Found process.binding('stdio').getColumns() thanks to @ryah. #nodejs" -- Sean Coates. http://twitter.com/coates/status/24321842044
[22:33] scoates: ryah: do any of those other readline (long line) changes interest you? If so, please feel free to grab them, or I guess I can sign the CLI and send a patch if that's better.
[22:33] ryah: scoates: did you email me? i don't remember - but yes, i want long line changes
[22:33] ryah: i have to leave right now. sorry.
[22:33] ryah: ACTION away
[22:34] LFabien_ has joined the channel
[22:34] scoates: no worries.
[22:35] benburkert has joined the channel
[22:39] Eber has joined the channel
[22:41] Eber: guys, isn't there someone that makes some kind of e-magazine about javascript? it costs little... and seems to have very good articles... I forgot where I saw that!
[22:42] bpot has joined the channel
[22:42] Tim_Smart: howtonode is free and probably has the better articles...
[22:42] marshall_law_ has joined the channel
[22:43] Eber: Tim_Smart: I'm following them... I just wish I could remember where this ebook/magazine is from... darn!
[22:46] mjr_: Eber: I think you mean http://www.jsmag.com/
[22:46] mjr_: Which I've not read yet, but looks good.
[22:46] Eber: mjr_: it isn't, but i didn't know this :) thanks for sharing!
[22:46] Eber: What I'm looking for only has one issue :P
[22:48] scoates: ryah: I sent you a message on github. Thanks.
[22:49] _announcer: Twitter: "j:just put a return; me:i don't think node.js works like that; j:& u chose node.js just cause ur a showoff? me:yeah :) j:at least ur honest." -- Matt Di Pasquale. http://twitter.com/mattdipasquale/status/24323019340
[22:50] _announcer: Twitter: "Learning more about node.js. I think I'm going to dive in, it's just too compelling." -- Mark Nutter. http://twitter.com/marknutter/status/24323084093
[22:51] jesusabdullah: Anybody here know about getting JSON client-side?
[22:51] digitals1aghetti: what library are you using?
[22:51] _announcer: Twitter: "Created a web server with node.js today that shows tweets for arbitrary term. Simple sure & only POC, but node.js is powerful stuff. #nodejs" -- Geordie Henderson. http://twitter.com/geordie_h/status/24323177935
[22:52] benburkert has joined the channel
[22:52] jesusabdullah: Library? Do you mean jquery?
[22:52] digitals1aghetti: yea
[22:52] jesusabdullah: Other than that, nothing so far
[22:52] jesusabdullah: well
[22:52] jesusabdullah: jquery and raphael
[22:52] jesusabdullah: but yeah
[22:52] digitals1aghetti: jQuery reads data as native JSON
[22:52] digitals1aghetti: so just output a page with mimetype of application/json
[22:52] ooooPsss has joined the channel
[22:53] digitals1aghetti: and JSON.stringify(object)
[22:53] jesusabdullah: output a page?
[22:53] jacobolus has joined the channel
[22:53] mikekelly has joined the channel
[22:53] jesusabdullah: http://api.jquery.com/jQuery.getJSON/ looks like it could work!
[22:53] _announcer: Twitter: "@brankgnol I'd love to see some geo processing build with GeoCouch and node.js+geos bindings. Please get started :)" -- Volker Mische. http://twitter.com/vmische/status/24323306550
[22:54] digitals1aghetti: oh yea, there is that
[22:54] jesusabdullah: \o/ Cool :)
[22:54] pgriess has joined the channel
[22:55] jesusabdullah: Hmm
[22:56] jesusabdullah: Looks like I'll have to actually serve these files if I want to do that though :(
[22:56] altamic_ has joined the channel
[22:57] Sami_ZzZ has joined the channel
[22:57] saikat_ has joined the channel
[22:57] digitals1aghetti: yea, just do a reponse then like this: *hang on
[22:59] jacobolus has joined the channel
[23:00] digitals1aghetti: http://javascript.pastebin.com/XbFSdCbU
[23:00] ooooPsss: is there any example in github dealing with user management? (registration and login)
[23:01] jesusabdullah: Laptop doesn't have node on it :( Space is at too much of a premium
[23:01] digitals1aghetti: maybe connect-auth?
[23:01] jesusabdullah: but thank you!
[23:01] killfill: hi guys
[23:02] killfill: with this http://pastebin.ca/1939157 should i be able to see http://127.0.0.1:8080/socket.io/socket.io.js ?
[23:02] jacobolus has joined the channel
[23:03] austinfromboston has joined the channel
[23:03] bpadalino: no
[23:04] bpadalino: do you ?
[23:04] killfill: nope..
[23:04] killfill: why would that not work?
[23:04] bpadalino: ah, excellent .. i like when i do well on quizzes
[23:04] Aria: scoates: I think I have a wrapper mostly working. I'll let you know in a bit.
[23:04] killfill: heh
[23:04] bpadalino: killfill: you never actually open that requested file .. and serve it out ..
[23:05] bpadalino: you only ever write to the response Hi!...
[23:05] bpadalino: and the content type
[23:05] killfill: but, socket.io server should server the client json, isnit?
[23:05] ooooPsss: digitals1aghetti: doesn't seem like it
[23:06] bpadalino: killfill: i don't get it .. :(
[23:06] killfill: hm...
[23:06] killfill: ACTION lost
[23:06] bpadalino: yeah i am lost too
[23:07] Egbert9e9 has joined the channel
[23:11] eggsby has joined the channel
[23:11] eggsby: anyone here have experience installing node.js on a shared solaris env? (specifically joyent)
[23:11] ChrisPart has joined the channel
[23:11] paulwe_ has joined the channel
[23:12] eggsby: I'm running into this on make: http://pastie.org/1154659 ... is that just caused by the limitations of my env? i.e. am I sol? :p
[23:14] zapnap has joined the channel
[23:17] Aria: Oh, neat. Oh, well. Guess I'm just learning how to write addons now ;-)
[23:18] bpadalino: eggsby: looks like make is using up all your memory on your machine
[23:19] jackish has joined the channel
[23:20] eggsby: world's saddest :(
[23:20] bpadalino: Aria: do you find it somewhat easy to understand your the addon writing stuff ?
[23:20] Aria: Aside from not knowing much C++, not knowing the v8 API.. yes.
[23:21] zith_: i dont think anyone knows *much* c++
[23:21] Aria: I write little and read less ;-)
[23:21] zemanel has joined the channel
[23:22] mjr_: eggsby: are you on a VPS with limited RAM but plenty of CPU?
[23:22] zith_: Aria: that sounds very wise :)
[23:22] _announcer: Twitter: "@benno37 GHC does a decent job - user level threads w/ a select/epoll/kqueue loop under the covers. Felix too. Was bitching about node.js" -- Mark Wotton. http://twitter.com/mwotton/status/24325245842
[23:22] eggsby: I think so mjr_
[23:22] mjr_: eggsby: try this: JOBS=1 make
[23:22] eggsby: I was thinking maybe I could use binaries or package installer or something but
[23:22] eggsby: no luck in either of those
[23:23] eggsby: aaaahhh progress...... thanks mjr_ :D :D :D
[23:23] m64253 has joined the channel
[23:23] Aria: make -j1 ?
[23:23] mjr_: eggsby: by default the node builder will spawn a make job for every CPU it thinks you have. If it think you have 8 CPUs, which it looks like it does, then that can easily exhaust your memory if you only have like 256MB.
[23:23] Aria: Oh, node's.. oy.
[23:24] Aria: That's scons, not make.
[23:24] Aria: Building V8
[23:24] eggsby: typing JOBS=1 make seems to be working though
[23:24] eggsby: yup, finished successfully
[23:24] mjr_: g++ * 8 === all memory
[23:24] eggsby: so now JOBS=1 make configure? :p
[23:25] eggsby: make install*
[23:25] lianj: make -j 1
[23:25] mjr_: make install is probably fine
[23:25] mjr_: Its just that 8 copies of g++ is not workable.
[23:25] eggsby: ahh
[23:25] mjr_: Thank your admins that you don't have swap configured, because you'd be deep down a swap-lock hole right now.
[23:26] m64253_ has joined the channel
[23:27] eggsby: that did the trick, thanks bundles mjr_
[23:32] bpadalino: some people know c++ very well ..
[23:32] Aria: zith_, bpadalino: http://github.com/aredridel/node-ioctl
[23:32] zith_: my point was just that c++ is huge and confusing
[23:33] zith_: i'd rather use either c or a language more high level than c++
[23:33] mjr_: zith_: word
[23:33] zith_: but i'm not going to argue any more :=
[23:33] zith_: :)
[23:33] Aria: Ditto. But it's what V8 gives us.
[23:33] mjr_: I wonder why V8 chose to go the C++ route.
[23:33] rcy: q_no: thats pretty cool!
[23:34] Tim_Smart: mjr_: Speed. And try implementing ecmascript with c :p
[23:34] zith_: i got a little sad in my heart when i saw parts of node was written in c++, but when i skimmed a small portion of the code it looked like it was mostly c style
[23:34] Alystair has joined the channel
[23:35] Aria: Yeah, Ryah (and actually, to a degree, V8) is sane.
[23:35] q_no: hehehe
[23:35] Aria: V8 at least did away with the heavy class libraries.
[23:35] mjr_: V8 is certainly the nicest C++ I've worked with.
[23:35] Aria: Though I haven't yet seen an untemplated type ;-)
[23:35] zith_: i dont mind "c with classes" much
[23:35] q_no: rcy: that was fun :)
[23:36] rcy: itd definitly be better with more players
[23:36] q_no: yeah, but it's the first day online
[23:36] q_no: need some people to spread the word on the web ;)
[23:37] q_no: hope I can implement highscores tomorrow or the day after tomorrow
[23:37] zith_: Aria: cool, re the link
[23:37] rcy: q_no: im impressed what you did in 12 hours
[23:38] q_no: I spent most of the time with the client... the server part has about 90 lines now
[23:39] pengwynn has joined the channel
[23:39] jacobolus has joined the channel
[23:40] zith_: :)
[23:40] zith_: cool q_no
[23:40] q_no: zith_: you were lagging a bit here
[23:40] q_no: was my movement smooth?
[23:40] zith_: it looked pretty smooth, but there seemed to be some hits that registered with the server that i didnt see
[23:40] zith_: that is, you lost some health without me seeing you getting hit, once
[23:41] q_no: yeah...that's caused by the lags... have to investigate it a bit more
[23:41] q_no: where are you located?
[23:41] q_no: I'm from germany
[23:41] zith_: sweden
[23:41] q_no: ok...network latency shouldn't be an issue then
[23:41] zith_: i'm on firefox 3.6.8, so not a recommended one
[23:41] q_no: no, firefox lags due to flash
[23:42] q_no: I wonder how it will be against some ppl from the states
[23:42] zith_: due to flash?
[23:42] q_no: no, due to the network latency
[23:42] zith_: no i mean, why would firefox lag due to flash?
[23:42] zith_: are you using flash on that page?
[23:43] q_no: i'm using socket.io
[23:43] q_no: and since FF lacks of HTML5 sockets it falls back to flash
[23:43] zith_: i see
[23:43] q_no: the chrome it's perfectly smooth
[23:43] zith_: i wonder if browsers will start letting javascript disable keys to scroll the window
[23:43] q_no: and as I've been told in Safari too
[23:44] q_no: yeah...it sucks in FF
[23:44] zith_: kind of annoying to have the page jumping up and down all the time when using the arrow keys
[23:44] q_no: for some reason the screen bumps up&down
[23:44] q_no: will have to review my css tomorrow
[23:45] q_no: however, time to get some sleep.. otherwise my boss is gonna be mad tomorrow ;)
[23:46] zith_: sleep well
[23:46] q_no: wish I could spend the night adding some more features, hehe
[23:47] q_no: node.js is really fun these purposes
[23:47] JimBastard: interesting, connect is stil up if you hit it directly
[23:48] q_no: so long... I'll be back! ;)
[23:48] q_no: bye
[23:48] sudoer has joined the channel
[23:48] m64253_ has joined the channel
[23:50] fictorial has joined the channel
[23:50] jacobolus has joined the channel
[23:50] benburkert has joined the channel
[23:50] trotter has joined the channel
[23:51] abiraja has joined the channel
[23:51] _announcer: Twitter: "WAN party in 15. Topics: Freelance Burnout, Concept Camp 2010, Node.js....more..." -- Sara Chipps. http://twitter.com/SaraJChipps/status/24327265741
[23:52] njero has joined the channel
[23:58] bpot has joined the channel