[00:00] Rixius has joined the channel [00:00] PyroPeter has joined the channel [00:01] ryah: aconbere: still haven't got a clean patch of your findModulePath thing [00:01] yozlet: augustl_eee: I doubt it - bear in mind that 0.3.x is considered unstable (is it using the Linux even=stable scheme?) [00:01] Rixius: how do you make a script run differently if it's called as a module? [00:01] Rixius: so there [00:01] Rixius: so there's a direct call functionality [00:01] aconbere: ryah: heh [00:02] aconbere: that latest one still isn't quite right? [00:02] aconbere: ryah: is it worth me just redoing the patch? [00:02] wattz: ryah: i have to say.... i have learned so much about v8 from node. Good clean concise code man, kudos [00:02] aconbere: it's only one function and not hard to just rewrite the changes [00:03] ryah: wattz: thx [00:03] SubStack: Rixius: I usually do if (__filename === process.argv[1]) [00:03] ryah: aconbere: yes [00:03] Rixius: Thanks SubStack [00:03] ryah: aconbere: or learn rebase :) [00:03] aconbere: ryah: haha, apparently I'm hopeless [00:03] devinus: ryah: can you take a look at my pull req i just sent :) [00:04] MrTopf has joined the channel [00:04] wattz: ryah: you ever work with args.Data() (script->SetData(..)) ? [00:04] CIA-54: node: 03Anders Conbere 07master * rc4f8f87 10/ test/simple/test-module-loading.js : (log message trimmed) [00:04] CIA-54: node: adding module tests for .js and bare files [00:04] CIA-54: node: Currently the module tests don't cover the cases for when a user [00:04] CIA-54: node: requires a file with a request that includes the extension, and for a [00:04] dgathright has joined the channel [00:04] ryah: wattz: no [00:06] ryah: devinus: link? [00:06] devinus: ryah: https://github.com/ry/node/pull/492 [00:07] isaacs has joined the channel [00:07] ryah: more colors! [00:07] isaacs: ryah: more colors? [00:07] devinus: more colors! [00:12] mscdex: woohoo! typing notifications work now :-D [00:12] mscdex: thanks to wireshark [00:13] CIA-54: node: 03Devin Torres 07master * r8c6a7b5 10/ lib/util.js : Use more color in the repl, loosely inspired by TextMate's SunBurst theme - http://bit.ly/e7OimP [00:14] mscdex: devinus: please tell me you got rid of blue on black [00:14] cjmFloating has joined the channel [00:14] mscdex: looks like not [00:14] mscdex: :( [00:14] isaacs: fyi: I can't see anything that is "grey" in the termina. [00:14] isaacs: *termina; [00:14] isaacs: it's a huge pita [00:15] isaacs: please specify background for any colors near white or black [00:15] devinus: mscdex: there was too much blue, i agree. but black is sort of your terminal preferences [00:15] devinus: not everyone has black backgrounds [00:15] mscdex: not everyone has white backgrounds lol [00:16] devinus: mscdex: right. [00:16] davida has joined the channel [00:16] mscdex: i wish something like this could be overridden in say an environment variable [00:16] mscdex: somehow [00:17] dgathright has joined the channel [00:17] mizery has joined the channel [00:18] jap09 has joined the channel [00:19] rauchg_ has joined the channel [00:19] devinus: hrm [00:20] isaacs: devinus, mscdex you know, you can specify the background along with the color. [00:20] devinus: anybody know of a bsd licensed GUI lib? [00:20] devinus: freakin everything out there is gpl :( [00:20] isaacs: anything of very high or very low luminosity should be put on black or white, respectively. [00:20] mizery has joined the channel [00:20] isaacs: devinus: just use the ansi code. [00:20] SubStack: devinus: just do a webapp [00:20] mscdex: just do it [00:20] devinus: SubStack: haha...yeah. :( [00:20] mscdex: :-D [00:21] devinus: tired of browsers :( [00:21] devinus: damn [00:21] devinus: bbl [00:21] mscdex: isaacs: yeah, but it'd still be nice to override without changing core code [00:22] SubStack: ACTION interrogates isaacs with uncomfortable lighting [00:22] isaacs: ACTION is comfortable being well-lit [00:22] spyrosl has joined the channel [00:23] dnolen has joined the channel [00:23] isaacs: mscdex: yeah, like a colorscheme var or something. or maybe it could just specify a black or white bg whenever it's a white-ish or black-ish color (yellow, green, blue, and grey are typically the worst offenders) [00:23] svnlto has joined the channel [00:24] mscdex: maybe a comma-separated list env var [00:24] isaacs: it seems like this is on the accepted list, though, in which case, i may stop caring: http://code.google.com/p/iterm2/issues/detail?id=289 [00:24] mscdex: yeah, but for people who don't use iterm2 .... :p [00:25] isaacs: maybe sys.inspect should use vim color schemes. [00:25] isaacs: 256 color ones. [00:26] dgathright_ has joined the channel [00:26] SubStack: hooray my silly persistence experiment using harmony proxies looks like it will work [00:28] mr_daniel has joined the channel [00:29] tswicegood: ya know, it wouldn't be that hard to refactor out util.inspect color schemes to allow injecting them [00:29] tswicegood: was thinking about that the other day -- made a note to come back to it when I had some spare time [00:30] creationix has joined the channel [00:30] dilvie has joined the channel [00:33] mizery has joined the channel [00:33] cketti has joined the channel [00:33] sprout has joined the channel [00:34] cketti: hi. can anyone point me to a resource that explains this construct (line 17): https://github.com/cloudhead/thingler/blob/master/src/todo/todo.js#L17 [00:35] mizery has joined the channel [00:36] dguttman has joined the channel [00:37] isaacs has joined the channel [00:37] EvanDotPro has joined the channel [00:38] mauritslamers has joined the channel [00:39] mauritslamers has joined the channel [00:39] MikhX has joined the channel [00:42] rauchg_ has joined the channel [00:43] abiraja has joined the channel [00:44] _mythz has joined the channel [00:44] ajpiano has joined the channel [00:46] brendang has joined the channel [00:47] meck: cketti: i'm not very well acquainted, but try this http://ejohn.org/blog/javascript-getters-and-setters/ [00:47] aaron has joined the channel [00:49] aaron: anyone ever seen node return a http response (in this case from express) and chrome/firefox not respect/recognize the response as complete? [00:49] rauchg_: aaron: are you using gzip or ssl ? [00:49] aaron: gzip yes [00:49] rauchg_: don't [00:49] rauchg_: it's broken [00:49] aaron: most pages work fine, not this one [00:49] aaron: AHHH [00:49] aaron: TY [00:49] Yuffster has joined the channel [00:49] aaron: I'll disable and see if my experience improves [00:50] meck: cketti: a shorter description of getters: http://ajaxian.com/archives/getters-and-setters-in-javascript [00:51] brendang: isaacs: g'day [00:51] creationix has joined the channel [00:51] wycats has joined the channel [00:52] dgathright has joined the channel [00:52] wycats: I want to run node with the --log-snapshot-position v8 option [00:52] wycats: how can I do this? [00:52] cketti: meck: thanks [00:52] creationix: cketti: it's part of the ES5 version of the language [00:52] meck: np [00:52] creationix: there is a page on the node wiki showing all the new stuff in es5 [00:54] saikat has joined the channel [00:54] mizery has joined the channel [00:55] jakehow has joined the channel [00:55] meck: https://github.com/ry/node/wiki/ECMA-5-Mozilla-Features-Implemented-in-V8 [00:57] luke` has joined the channel [00:58] charlenopires has joined the channel [01:00] jimt_ has joined the channel [01:01] aaron: rauchg_: hmm looks like gzip isn't enabled [01:01] mattcodes has joined the channel [01:01] aaron: used to be, but I must have already removed that [01:01] rauchg_: aaron: what middleware are you using [01:02] aaron: connect 0.4 [01:02] techwraith has left the channel [01:02] rauchg_: but when you go connect.createServer() [01:02] rauchg_: what do you pass to it [01:02] aaron: logger, methodOverride, cookieDecoder, bodyDecoder, session, staticProvider [01:02] creationix has left the channel [01:03] creationix has joined the channel [01:05] wasabist has joined the channel [01:05] aaron: rauchg_: do you know of any good up-to-date reference app? I've been running this site w/ plenty of traffic, and most urls work just fine, just not this one. Ironically, its the most straightforward url I have: just renders a simple ejs file that takes no params [01:07] isaacs_ has joined the channel [01:09] tlrobinson has joined the channel [01:09] tlrobinson_ has joined the channel [01:10] tyfighter has joined the channel [01:10] aaron has left the channel [01:12] softdrink has joined the channel [01:13] hornairs has joined the channel [01:15] rauchg_ has joined the channel [01:17] wasabist_ has joined the channel [01:18] baoist has joined the channel [01:19] spyrosl has joined the channel [01:22] saschagehlich has joined the channel [01:25] mw has joined the channel [01:28] eee_c has joined the channel [01:30] cjmFloating has left the channel [01:31] cjmFloating has joined the channel [01:32] alek_br has joined the channel [01:36] Wes- has joined the channel [01:38] isaacs has joined the channel [01:38] MrTopf has joined the channel [01:39] cjmFloating has joined the channel [01:46] googol has joined the channel [01:48] jchris has joined the channel [01:49] tlrobinson_ has joined the channel [01:52] mike_mayo has joined the channel [01:53] mw has joined the channel [01:54] wilmoore has joined the channel [01:56] mike_mayo has joined the channel [01:58] jbergstroem has joined the channel [01:58] aconbere has joined the channel [02:00] cjmFloating has joined the channel [02:01] tim_smart has joined the channel [02:02] booths has joined the channel [02:06] tlrobinson_ has joined the channel [02:07] erlnoob has joined the channel [02:08] isaacs_ has joined the channel [02:09] dgathright has joined the channel [02:10] JimBastard has joined the channel [02:11] JimBastard: my whole body hurts soo much. i danced way too hard last night for the couchdb rap video [02:11] JimBastard: 6+ hours of filming for a 1 minute video >.< [02:12] cketti has left the channel [02:14] tanepiper: thats not much [02:15] tanepiper: an average 1h 30m movie takes 6-8 weeks of filming [02:15] tanepiper: and that doesn't include post production [02:16] JimBastard: i think we are talking about different scales of production value here [02:16] JimBastard: lol [02:20] SubStack: JimBastard: another couchdb rap, is it? [02:20] jchris has joined the channel [02:21] dguttman_ has joined the channel [02:21] JimBastard: SubStack: same one, we've just been working on it for a while [02:21] JimBastard: right jchris :-) [02:21] rauchg_: do people like your raps ? [02:21] SubStack: neat [02:21] JimBastard: rauchg_: not really [02:21] rauchg_: are they viral ? [02:21] SubStack: I thought the reddit rap was pretty good [02:21] JimBastard: heimer time kinda went viral [02:21] JimBastard: i uploaded it as an mp3 to a random forum, people uploaded it to youtube [02:21] rauchg_: how many viewers [02:22] JimBastard: that was a total joke though [02:22] JimBastard: http://www.youtube.com/watch?v=8aJB7Le2_kU [02:22] JimBastard: we use to do a lot of shows in the pre youtube era [02:22] JimBastard: lots of touring [02:22] SubStack: so there were shows before youtube? [02:22] JimBastard: apparently yeah [02:22] SubStack: crazy [02:22] SubStack: but who watched them [02:22] JimBastard: i even had a viral video before youtube [02:23] JimBastard: kazaa style [02:32] smcq has joined the channel [02:32] ben_alman has joined the channel [02:33] ben_alman has joined the channel [02:34] Wyverald has joined the channel [02:35] Ond has joined the channel [02:37] mike_mayo has joined the channel [02:38] isaacs has joined the channel [02:40] agnat has joined the channel [02:41] dgathright has joined the channel [02:43] Dreamer3 has joined the channel [02:44] mwilliams_ has joined the channel [02:45] jap09 has joined the channel [02:45] c4milo1 has joined the channel [02:45] sechrist has joined the channel [02:47] sechrist: SubStack: I'm not sure I can just implement nextTick in the forever func [02:48] SubStack: I mean just wrap the whole thing in a nextTick in your code and see what happens [02:48] sechrist: forever is all chain [02:48] sechrist: how could I do that? [02:48] SubStack: everything inside forever() [02:48] SubStack: inside like this: [02:49] SubStack: forever(function () { process.nextTick(function () { /* here */ }) }) [02:49] sechrist: ooooh [02:49] SubStack: just for kicks [02:50] smcq has joined the channel [02:55] smcq has joined the channel [02:56] dgathright has joined the channel [02:57] ajpiano has joined the channel [03:00] jap09 has joined the channel [03:00] jap09 has left the channel [03:04] omygawshkenas has joined the channel [03:08] ajpiano has joined the channel [03:09] isaacs_ has joined the channel [03:11] sivy has joined the channel [03:15] smcq has joined the channel [03:15] bartt has joined the channel [03:23] mike_mayo has joined the channel [03:25] smcq has joined the channel [03:27] mscdex: nothing like some groovy amiga music to code to [03:28] amerine has joined the channel [03:31] wycats has joined the channel [03:32] luke` has joined the channel [03:34] smcq has joined the channel [03:35] c4milo1: tim_smart: ! [03:37] technoweenie has joined the channel [03:38] zzo has joined the channel [03:38] chrischris has joined the channel [03:39] isaacs_ has joined the channel [03:40] Spion_ has joined the channel [03:40] c4milo1: hey guys, what are you using to implement PubSubHubBub ? [03:40] c4milo1: with nodejs [03:41] c4milo1: rabbitmq ? redis ? [03:44] smcq has joined the channel [03:47] smcq has joined the channel [03:47] c4milo1: socket.io ? [03:47] fangel has joined the channel [03:47] ryan[WIN] has joined the channel [03:48] erlnoob has joined the channel [03:49] marshall_law has joined the channel [03:51] Aikar: ok im extremely confused, i have express with a static dir setup, and this works fine in firefox http://starlis.com/ui.html but raphael-min.js throws an error on IE8. the EXACT same code works fine on raphaeljs.com so it seems like a transfer problem? [03:55] warz has joined the channel [03:56] booths has joined the channel [03:56] booths: So, I take it ry was talking about http://blog.mysyncpad.com/post/2073441622/node-js-vs-erlang-syncpads-experience earlier? [03:57] booths: are those valid benchmarks, as far as memory [03:57] saikat has joined the channel [03:59] warz: ugh. wish express had a irc channel. heh [04:01] drudge: this is pretty much it [04:01] warz: well, i said that in a moment of frustration, but immedietly solved my problem lol [04:02] chovy has left the channel [04:02] sprout has joined the channel [04:03] amerine has joined the channel [04:06] Dreamer3: what cool stuff are yu all doing with node? [04:08] mscdex: writing an oscar protocol module! [04:08] mscdex: and an imap module! [04:08] mscdex: :> [04:08] warz: trying to force a real time forum into existence [04:08] mscdex: although there are probably cooler things going on [04:08] warz: but these beers arent helpful [04:09] mscdex: someone mentioned putting node + kinect + webgl together [04:09] warz: now thats cool [04:10] isaacs has joined the channel [04:11] saschagehlich has joined the channel [04:12] paulrobinson has joined the channel [04:14] AAA_awright: Anyone putting together an email server? [04:14] Rixius has joined the channel [04:14] mscdex: i think someone started an smtp server somewhere on github [04:15] mscdex: that's about it though [04:16] Dreamer3: email is tough [04:16] mscdex: the server portion is at least [04:16] Rixius: how do you remove something from npm? i accidently published a package with the wrong name [04:17] mscdex: when i did wrote my imap client module, it wasn't that bad really [04:17] mscdex: significantly easier than oscar, that's for sure [04:17] mscdex: Rixius: the unpublish command iirc [04:18] Rixius: Thanks [04:18] mscdex: https://github.com/isaacs/npm/blob/master/doc/unpublish.md [04:18] masahiroh has joined the channel [04:23] megana has joined the channel [04:23] megana: does anyone here use expresso?? [04:24] smcq has joined the channel [04:24] c4milo1: megana: yes [04:25] megana: have you ever used it to make an assertion on an asychronous call? [04:25] megana: I am just trying to write a connect to database test [04:25] megana: expresso kind of just hangs [04:25] HAITI has joined the channel [04:26] amerine has joined the channel [04:28] warz: Does anyone know why this statement isnt producing an unordered list of anchor elements: http://dpaste.com/282917/ [04:28] warz: it's the jade template engine [04:28] warz: with express. so its kind of smaller use caser than nodejs. [04:28] warz: but perhaps somebody uses it. [04:29] AAA_awright: I would just use [04:29] AAA_awright: li a(href:user.email, title:user.name) [04:29] megana: what if users was null [04:29] c4milo1: megana: no unfortunatelly [04:29] AAA_awright: and actually the a needs to be on a new line [04:29] AAA_awright: Otherwise it's text [04:29] whyme has joined the channel [04:29] warz: ah yea, becauses its coming out as plain text [04:29] megana: why do you use jade? it seems kind of confusing [04:30] AAA_awright: Jade is awesome [04:30] warz: its super confusing, haha. [04:30] warz: im just trying new things. [04:30] twoism has joined the channel [04:30] megana: try ejs [04:30] swistak has joined the channel [04:30] warz: eh. im going to make this weekend project using jade. [04:30] warz: gotta give it a legit shot. :P [04:30] megana: what is your weekend project? [04:31] AAA_awright: - each user in users\n li\n a(href:users[user].email, title:users[user].name) [04:31] AAA_awright: I think [04:33] megana: so does anyone know how to write a test with an asynchronous assertion using expresso? [04:33] AAA_awright: I know Vows is it similar? [04:33] whyme: megana: in every callback fn write something like remainFn-- [04:34] smcq has joined the channel [04:34] megana: remainFn--? [04:34] whyme: um, do your own bookkeeping, i mean [04:34] Fenda has joined the channel [04:34] whyme: [self promo] you can try my unit test framework :) [04:34] warz: ah, got it! [04:35] megana: okay [04:35] whyme: [self promo] http://github.com/5long/reut [04:35] warz: ended up being this: http://dpaste.com/282920/ [04:35] megana: whyme, how does your framework do async assertions? [04:36] whyme: test.cb(function(){ /* guaranteed to be called before test ends*/}) [04:36] whyme: test.emits(ee, type) //assert some event fired before test ends [04:36] whyme: test.timeout = 50 // a must for every async test [04:37] cardona507 has joined the channel [04:37] megana: so the test functions aren't just pojf's? [04:38] whyme: they are. [04:39] whyme: API is much like qunit/node-async-test [04:39] megana: oh okay [04:39] whyme: http://github.com/5long/reut/example/all_in_one.js [04:39] whyme: um, sorry [04:39] whyme: http://github.com/5long/reut/blob/master/example/all_in_one.js [04:39] megana: thx :) [04:40] whyme: :) [04:42] AAA_awright: megana: Or just let an async testing framework like Vows do all of the bookkeeping for you [04:43] Blink7 has joined the channel [04:45] davidascher has joined the channel [04:47] whyme: AAA_awright: I used vows a bit and end up with huge object literals [04:48] whyme: also 6 level indent [04:49] Fenda: how can i make sure i have the latest master of node using npm? and socket.io [04:50] Fenda: socket.io using npm * [04:50] Fenda: :D [04:50] megana: master of node? [04:50] SubStack: I like expresso [04:50] c4milo1: SubStack: are you using socket.io in stackvm ? [04:50] SubStack: yes [04:50] SubStack: vicariously through dnode [04:51] whyme: SubStack: I see you're writing setTimeout/clearTimeout in test of Seq [04:52] whyme: which can be simplified in my framework :) [04:52] megana: his framework is neat [04:52] SubStack: oh really? [04:53] paulrobinson has joined the channel [04:53] whyme: yep, assert.timeout = 50 makes it [04:53] whyme: and assert.cb(fn) to assert it called before end [04:54] whyme: there's even stack trace for uncalled function [04:54] megana: tI don't like the naming scheme though [04:54] megana: what is this cb o_O [04:54] whyme: um, short for callback [04:54] megana: cranberry? [04:54] megana: oh [04:54] SubStack: I use cb too [04:54] SubStack: and f and g [04:54] whyme: 6 char less [04:55] megana: so that's what's cool on the street now? [04:55] naturalethic: is the v8 included with node modified in any way? [04:55] whyme: ye, still collecting ideas [04:56] megana: remember that bloody mary drink from the 90s that was supposed to be healthy called v8 splash? [04:56] jakehow has joined the channel [04:59] saschagehlich_ has joined the channel [05:02] isaacs_ has joined the channel [05:04] booths: I don't think there's any merit to that claim of memory issues on that blog post. I'm just parsing large xml packets nonstop back to back and not going about like 20mb usage. [05:05] MattDiPasquale has joined the channel [05:09] smcq has joined the channel [05:09] yozlet has joined the channel [05:11] Rixius: so in thinking about how you can use `gem server` to read the rubyGems documentation I wrote nodeDocs [https://github.com/Rixius/nodeDocs] you can type `nodeDocs [port]` to host the node v0.3.1 docs at localhost [05:12] Rixius: let me know what you think [05:15] erlnoob: hey guys, when using socket.io, do you connect and disconnect as needed or do you just let the connection goes on indefinitely? [05:16] whyme: Rixius: must be cool if integreated with npm [05:16] smcq has joined the channel [05:16] whyme: Rixius: and serves all the docs of packages [05:17] Rixius: unfortunatly it's not that great lie the gem server [05:17] Rixius: right now it's jst node's docs [05:18] gf3 has joined the channel [05:18] whyme: yep we don't have Rdoc in node. [05:18] meck has joined the channel [05:19] whyme: but "doc": {type: "markdown", path:"./docs"} in package.json might be fine [05:19] whyme: Rixius: why not ping isaacs :) [05:21] Rixius: i might... my original plan was just node's core documentation [05:21] smcq has joined the channel [05:28] Rixius: isaacs: you there able to read this? [05:30] sudoer has joined the channel [05:30] kriszyp_ has joined the channel [05:40] MattDiPasquale has joined the channel [05:41] mikew3c has joined the channel [05:45] alexfner has joined the channel [05:46] nooder has joined the channel [05:46] linac has joined the channel [05:48] richcollins has joined the channel [05:51] Twelve-60 has joined the channel [05:51] isaacs_ has joined the channel [05:53] chrischris has joined the channel [05:54] amerine has joined the channel [05:54] MattDiPasquale has joined the channel [05:58] smcq has joined the channel [06:00] richcollins: Any tips on profiling node? My process is pegging the CPU, not sure why [06:01] richcollins: nodeprofile isn't providing anything that I can decipher [06:01] sechrist has joined the channel [06:02] softdrink has joined the channel [06:05] marshall_law has joined the channel [06:06] pin has joined the channel [06:11] smcq has joined the channel [06:13] Wyverald1 has joined the channel [06:15] jchris has joined the channel [06:18] chrischr_ has joined the channel [06:21] yumike has joined the channel [06:21] isaacs has joined the channel [06:25] erlnoob: anyone else having sudden socket.io connection disconnects after a connect-disconnect-connect sequence when using xhr-multipart and xhr-polling? [06:27] naturalethic: anyone build node as a library? [06:30] naturalethic: and what branch is 0.3 in? i see a tag [06:31] Aria: master [06:32] Wyverald has joined the channel [06:33] murz has joined the channel [06:35] skamikaze has joined the channel [06:35] naturalethic: well that makes sense, i was working out of master before but the version reported was 0.1.x [06:36] Aria: might need to make clean [06:36] naturalethic: Aria: you or anyone build node as a library yet? [06:38] Wyverald1 has joined the channel [06:40] naturalethic: version reports good now [06:41] erlnoob has joined the channel [06:46] killfill has joined the channel [06:49] richcollins has joined the channel [06:52] isaacs_ has joined the channel [06:53] Taik has joined the channel [06:53] Taik: hey [06:54] Taik: anyone can give me some hints in regards to this simple script? http://pastebin.ca/2010263 [06:54] Taik: basically deals with tcp clients [06:57] killfill has joined the channel [07:06] iszak has joined the channel [07:06] iszak has joined the channel [07:06] sudoer has joined the channel [07:06] naturalethic: i see that 0.3 has --product-type in the configure -- nice! [07:09] killfill has joined the channel [07:11] naturalethic: hmm it still built an executable [07:12] muk_mb: I finished Eloquent Javascript! [07:15] naturalethic: aha .. make staticlib [07:15] naturalethic: nice [07:15] mcantelon has joined the channel [07:17] sechrist has joined the channel [07:20] GasbaKid has joined the channel [07:21] killfill has joined the channel [07:22] isaacs_ has joined the channel [07:24] fangel has joined the channel [07:25] yumike has joined the channel [07:27] Rixius has joined the channel [07:31] peutetre has joined the channel [07:31] cardona507 has joined the channel [07:33] markt has joined the channel [07:34] okuryu has joined the channel [07:34] d0k has joined the channel [07:38] killfill has joined the channel [07:42] mikeal has joined the channel [07:52] isaacs has joined the channel [07:54] mikeal has joined the channel [07:54] SamuraiJack has joined the channel [07:57] qFox has joined the channel [07:59] RevoOf has joined the channel [08:00] RevoOf: hi. i see node-mysql, another node-mysql, node-mysql-native and node-mysql-libmysqlclient and have no idea which of them i should use. [08:03] jameshome: at least you know what database you want to use! [08:03] SubStack: couchdb ;) [08:03] jameshome: hah [08:03] SubStack: jameshome: I know right? [08:03] jameshome: we are awesomely helpful [08:04] femtoo has joined the channel [08:04] GasbaKid has joined the channel [08:04] dguttman has joined the channel [08:04] tyfighter has joined the channel [08:04] RevoOf: substack: i would really like to use couchdb. yet, i have to interact with an existing application [08:05] SubStack: I know how that is [08:06] sechrist: revolutionary interface for couchdb that does something called "blocking" [08:06] sechrist: threads [08:06] sechrist: welcome to 1993 [08:06] SubStack: sechrist: oh well I haven't actually used it yet [08:06] SubStack: I am actually writing my own persistence lib right now [08:06] SubStack: using harmony proxies [08:06] sechrist: the problem with the infrastructure at my shop is python [08:07] sechrist: doing anything async in python is nearly impossible [08:07] SubStack: so very true [08:07] sechrist: yes there is twisted [08:07] sechrist: yes there is tornado [08:07] sechrist: no, it doesn't matter [08:07] SubStack: without real lambdas you're kinda stuck [08:07] sechrist: "real" being the keyword there [08:08] sechrist: now you can spawn threads in C++ libs w/ ctypes and execute callbacks [08:08] SubStack: actually "lambda" is the keyword ;) [08:08] sechrist: but that's still garbage [08:08] SubStack: processes > threads [08:08] SubStack: for everyday programming [08:09] sechrist: there's people that argue that locking and sharing memory is better than IPC [08:09] SubStack: especially when you've got good message-passing libraries [08:10] SubStack: I suspect that poor RPC systems have bolstered threaded concurrency through a lack of alternatives [08:10] kjeldahl has joined the channel [08:11] sechrist: and the reason I can't rewrite the python-based things that need high efficiency is that the engineering team decided they wanted to stick with the Django ORM for DB calls [08:11] SubStack: sucks! [08:11] sechrist: so when I do a query myself, my team members scream [08:11] SubStack: ORM feels so wrong [08:12] sechrist: it would be fine if we abstracted the orm into something that wasn't stuck in python [08:12] SubStack: the programming model is bending to the storage mechanism [08:12] googol has joined the channel [08:12] sechrist: thrift-based orm for accessing shit [08:12] sechrist: or protobuf [08:12] sechrist: we heavily use protocol buffers [08:12] SubStack: instead of the storage mechanism bending to the programming model [08:13] sechrist: yeah I will likely argue that we should implement the database orm in nodejs, but then we lose things like South [08:13] sechrist: fuck django [08:13] sechrist: but it's infinitely better than walking into a shop on enterprise java [08:14] SubStack: well communism is better than fascism, but... [08:14] sechrist: oh when we start having concurrency issues, which i've already warned them about [08:14] sechrist: they'll be like [08:14] sechrist: alright, we have to stop this bottleneck [08:15] sechrist: basically I have node services that talk to a python service that handles the db calls, but that python service is blocking [08:15] sechrist: it's the single most retarded thing i've ever heard of [08:15] mookai has joined the channel [08:21] jacobolus has joined the channel [08:22] smcq has joined the channel [08:22] MattJ has joined the channel [08:22] cafesofie has joined the channel [08:23] isaacs has joined the channel [08:23] AAA_awright_ has joined the channel [08:24] naturalethic: RevoOf: use this one https://github.com/felixge/node-mysql [08:24] Druid_ has joined the channel [08:26] micheil has joined the channel [08:27] smcq has joined the channel [08:27] RevoOf: naturalethic: ok, thx, seams to be best currently. async, pure js, by felixge [08:29] mscdex: man it's difficult switching from js to php to work on something [08:29] mscdex: i kept using + to concatenate strings and wanted to use [] and push [08:30] mscdex: and typeof [08:30] mscdex: heh [08:30] smcq has joined the channel [08:30] SubStack: so close to this working [08:33] mscdex: how's stackvm coming along? [08:33] SubStack: pretty well I think [08:33] sechrist: mscdex: I did it for awhile [08:33] SubStack: pkrumins has been messing with servers and silly tricks for scaling up [08:33] sechrist: mscdex: I settled on php for webapp/html rendering, shared redis sessions, and nodejs for things that needed longlived connections [08:33] sechrist: better than django imo [08:34] sechrist: scaling php is more straightforward than mod_wsgi and crap [08:34] mscdex: sechrist: oh, i just meant in general [08:34] sechrist: oh the programming style? [08:34] mscdex: yeah [08:35] mscdex: the closest any of my nodejs projects have gotten to PHP is having to regex parse PHP sessions for stuff [08:35] mscdex: heh [08:35] langworthy has joined the channel [08:36] mscdex: mostly i still do php+mysql stuff though [08:36] mscdex: like huge php projects that i have to maintain [08:36] mscdex: as much as i'd love to convert them over to node, it'd take forever [08:37] SubStack: stackvm stack is javascript all the way down [08:37] SubStack: and a little bit of haskell running on the windows instances right now [08:37] SubStack: it's quite nice [08:37] sechrist: and heavy usage of pkill [08:37] mscdex: are there any node-based cms or crm packages yet? [08:39] sechrist: wow so that loading thing is the wallpaper [08:40] SubStack: heh [08:40] sechrist: I see the task bar [08:40] sechrist: why do I see the taskbar [08:40] sechrist: soun dis muted [08:40] SubStack: because the script is broke [08:40] SubStack: that is supposed to hide it [08:40] SubStack: but in windows everything is hard [08:40] sechrist: you do some registry settings to hide the start button? [08:40] mscdex: that's a feature not a bug [08:40] mscdex: ;-) [08:40] sechrist: woah pskill again [08:41] sechrist: killed explorer.exe it looks like [08:41] sechrist: this sounds hard to pull off in windows [08:42] mscdex: why is explorer running? [08:43] sechrist: idk the session hanged [08:43] sechrist: I was able to click the sound icon though [08:44] sechrist: before pskill started freaking out [08:44] sechrist: todo: write a reverse shell that connects and kills pskill [08:44] sechrist: ??? [08:44] sechrist: profit [08:45] mjr_ has joined the channel [08:45] sechrist: so long as the browsers can run exes from temp download i think you has issues [08:45] altamic has joined the channel [08:45] mscdex: seems like maybe writing an addon that interfaces directly with the winapi to control stuff would be better [08:46] mscdex: you could probably control that stuff too [08:46] SubStack: well I don't have the rdesktop access so it'll be broken until pkrumins wakes up [08:46] mscdex: be removing chrome stuff [08:46] mscdex: *by [08:46] mscdex: create new instances of the different renderers and embed that inside a custom window [08:46] SubStack: mscdex: objection: that's hard [08:46] sechrist: so it seems like the framebuffer and input layer between browser and node is solid [08:46] sechrist: but everything else has yet to be implemented strongly [08:47] sechrist: this is so backwards [08:47] mscdex: SubStack: what's the hard part? [08:47] SubStack: sechrist: because we only started rolling this out on real hardware pretty recently [08:48] sechrist: gotta think CLOUD [08:48] SubStack: windows shit is hard [08:48] SubStack: everything else is trivial [08:48] sechrist: render a huge desktop space, 9999x9999 [08:48] sechrist: split it up into squares [08:48] sechrist: assign framebuffer to a square [08:48] sechrist: and spawn a ton of little browsers in the bradybunch [08:48] SubStack: sechrist: can't have multiple cursors [08:48] mscdex: i've done windows programming before, so i guess that's why i was asking [08:48] sechrist: lame [08:48] mscdex: heh [08:49] sechrist: abuse fast user switching [08:49] sechrist: but giving each browser it's own login context sounds ridiculous [08:49] SubStack: well the whole thing is a bit ridiculous [08:49] SubStack: it'll get better this week probably [08:49] sechrist: and for that, RDP would have to be implemented [08:49] sechrist: instead of vnc [08:49] sechrist: unless you spawn a bunch in advance [08:49] SubStack: nope, actually! [08:49] sechrist: and load balance [08:50] SubStack: you can run vnc sessions in multiple sessions simultaneously [08:50] sechrist: noice [08:50] SubStack: there is a trick you can pull with rdesktop to automate this [08:50] sechrist: then, how do you do fair cpu scheduling between user's browsers so if I spawn a js loop I don't kill yo shiz? [08:51] SubStack: sechrist: I have no idea how windows does scheduling, don't ask me :p [08:51] sechrist: xen for browsers [08:52] sechrist: omg [08:52] sechrist: hacker news top [08:52] sechrist: <3 pkrumins [08:52] SubStack: hah he was just complaining about that [08:53] SubStack: people submitting patches and he doesn't care about it anymore [08:53] mscdex: well you can certainly change the priority for a process [08:53] sechrist: linkifying a terminal sounds required [08:53] sechrist: so [08:53] isaacs has joined the channel [08:54] sechrist: SubStack: the stackVM stuff is open source? [08:55] SubStack: the core of it is agplv3 [08:55] sechrist: agpl? lmfao [08:55] SubStack: well I started hacking on it back in january [08:56] SubStack: and wanted to use a keymap from guacamole, which is agpl [08:56] sechrist: the agpl is the worst license ever [08:56] SubStack: now have a node module for that [08:56] sechrist: I think code.google.com banned it [08:56] SubStack: meh [08:56] MikhX has joined the channel [08:56] MattJ has joined the channel [08:57] kawaz_air has joined the channel [08:57] sechrist: o wait you send data over the internet from a proprietary service that links with something from agpl? [08:57] sechrist: gime your IP sourcez plz [08:57] murz has left the channel [08:58] dguttman has joined the channel [08:58] SubStack: we'll fix up the open part of it as soon as we're getting good cashflow from browserling and others [08:59] sechrist: I was joking -- hinting that perhaps stackvm should be closed source [08:59] SubStack: well there are already html5ish vnc viewers [08:59] SubStack: it's not like people aren't already doing stuff like this [09:00] sechrist: ah so it just does api calls to spin up shiz and vnc view? [09:00] SubStack: there are a lot of hacks that make it go [09:00] SubStack: it's such a huge pain in the ass to get this shit running as a service that I'm not worried about competitors [09:01] sechrist: that's pretty much the idea of the company i'm with now [09:01] sechrist: it's so fucked to do what we're doing [09:01] sechrist: we're safe [09:01] sechrist: making skype/facetime/telepresence/polycom/tandberg/lifesize/freeswitch all talk together [09:01] sechrist: in a cloud [09:02] sechrist: all over the world, with low latency and lip sync [09:02] sechrist: is not simple :) [09:03] sechrist: but that's why there's funding [09:03] sechrist: a valley-hacker team with funding could do what browserling wants to do successfully fairly quick [09:03] SubStack: cross-browser testing is yak shaving no matter what you do [09:04] sechrist: now if you tied in selenium-type functionality to where it's selenium in the cloud [09:04] sechrist: that would be sick [09:05] SubStack: sauce labs already does that [09:05] tyfighter has joined the channel [09:05] sechrist: o rly? [09:05] sechrist: our QA team sucks so much that we're going to phase them out and just use selenium [09:05] sechrist: most likely [09:06] sechrist: but I mean on top of the webapp testing we have a whole suite of healthcheck and sanity checks for videoconferencing which is a pain to put together [09:08] sechrist: so like if I could point something like browserling at a dev build running on our cluster internally [09:08] sechrist: that would make it so much easier to do browser testing during development [09:08] SubStack: planning on having a reverse-proxy script for that [09:08] wycats has joined the channel [09:09] sechrist: I'm not going to juggle browsers on windows, mac, and linux while editing templates through VIM on an ubuntu workstation [09:09] SubStack: so you run a script on your end that proxies your web service through our stack [09:09] sechrist: thus browserling becomes amazing [09:09] sechrist: also -- variable resolutions [09:09] sechrist: important [09:09] SubStack: we just figured out how to change the resolution at runtime [09:10] sechrist: high five [09:10] sechrist: once you start getting to where you're suitable for companies to try private beta things [09:10] sechrist: let me know and i'm sure my company would be salivating [09:11] sechrist: I told some of the webapp team about it and they didn't believe it [09:12] sechrist: SubStack: how is flash performance over vnc in the browser? [09:13] sechrist: or anything animated for that matter [09:13] SubStack: depends on the type of animation [09:14] sechrist: I mean like does it go at 1fps, 5fps, 15fps [09:14] sechrist: under most favorable conditions, like you have it running localhost [09:14] SubStack: it is not fps [09:14] SubStack: vnc works on rectangular updates [09:14] sechrist: ah, right [09:15] SubStack: but if you look at video 2 on stackvm.com [09:15] sechrist: I guess my real question is -- how much worse is vnc in html5 over websockets with your implementation vs native vnc [09:15] SubStack: we were using an opengl app between north america and europe [09:15] sechrist: I saw that -- and it looked like clicks took seconds to go through [09:15] sechrist: could be just underwater cable latency but :\ [09:16] SubStack: yeah well my internet in Alaska sucked [09:17] sechrist: echo *? [09:17] sechrist: wat [09:17] chapel: you guys see this? http://blog.mysyncpad.com/post/2073441622/node-js-vs-erlang-syncpads-experience [09:17] SubStack: being silly recalling how my dsl model ran busybox without ls [09:17] SubStack: but had echo * [09:18] sechrist: hackernews old [09:18] sechrist: I am pretty sure everybody in #node.js reads hn daily [09:19] mscdex: not me [09:19] mscdex: i never read it [09:19] mscdex: heh [09:19] chapel: :) [09:19] mscdex: i have better things to do [09:19] mscdex: like read slashdot and engadget [09:19] mscdex: :p [09:21] sechrist: reddit obviously [09:21] sechrist: but hn is like the best of all of the tech blogs [09:21] sechrist: in one location [09:21] SubStack: r/node should be more active [09:21] twoism has joined the channel [09:21] SubStack: everybody uses the mailing list I guess [09:21] MattJ has joined the channel [09:22] SubStack: I hate mailing lists [09:22] sechrist: i went from reading every message [09:22] sechrist: to reading digests [09:22] sechrist: to not reading digests [09:22] sechrist: now I don't know shit that goes on in node [09:22] sechrist: like utils [09:22] mscdex: i use the google groups interface [09:23] sechrist: btw, the node-inspector guy got back to me on that fatal flaw of the profiler [09:23] sechrist: and apparently it's fundamental changes in v8 that's required to really fix it [09:23] sechrist: well v8's profiler anyway [09:23] isaacs has joined the channel [09:23] sechrist: the way it schleps data is pretty lame [09:24] sechrist: entire heap? lets put that in a huge json array and not stream it! [09:25] svnlto has joined the channel [09:25] adambeynon has joined the channel [09:27] sechrist: So does V8 have a 'GIL' in the same sense that other dynamic languages do? [09:27] sechrist: I mean it's completely moot because the whole paradigm is based around processes for concurrency [09:28] sechrist: or does v8 not need that because it doesn't have javascript-exposed threads? [09:29] whyme: it's just threadless [09:30] sechrist: so ryan's implementation of the libev and libeio pretty much just avoided that whole problem all together it seems [09:33] lianj: libev reactor can be seen as a GIL iirc [09:35] yozlet has joined the channel [09:37] pdelgallego has joined the channel [09:41] okuryu has joined the channel [09:45] matjas has joined the channel [09:47] marcostoledo has joined the channel [09:49] aliem has joined the channel [09:50] pietern has joined the channel [09:54] isaacs_ has joined the channel [09:54] davidc_ has joined the channel [09:55] mAritz has joined the channel [09:57] Blink7 has joined the channel [09:57] mAritz has joined the channel [09:59] nsolsen has joined the channel [10:09] vineyard has joined the channel [10:16] mookai has joined the channel [10:23] Blink7_ has joined the channel [10:24] isaacs_ has joined the channel [10:25] V1 has joined the channel [10:26] MikhX has joined the channel [10:27] markwubben has joined the channel [10:29] nooder has joined the channel [10:32] chrischris has joined the channel [10:33] stephank has joined the channel [10:34] Blink7 has joined the channel [10:35] erlnoob has joined the channel [10:39] femtoo has joined the channel [10:42] mr_daniel has joined the channel [10:43] ewdafa has joined the channel [10:44] micheil has joined the channel [10:46] q_no has joined the channel [10:50] tprice has joined the channel [10:55] isaacs_ has joined the channel [10:56] sepehr has joined the channel [11:10] stephank: Ambitious this man is: http://stackoverflow.com/questions/4353107/is-it-possible-to-make-node-js-use-rhino-as-the-javascript-engine [11:11] micheil: the question is: why would you want to? [11:12] stephank: He says he wants to run his existing node.js applications on PPC. [11:13] micheil: hmm, isn't PPC really quite old hardware? [11:14] stephank: I still see a lot of Freescale stuff in embedded platforms. Maybe he wants to build a cluster of Wiis running node.js. :) [11:15] micheil: heh, maybe. [11:15] sechrist: if node's io was applied to a pluggable javascript engine [11:15] sechrist: my god [11:15] micheil: either way, it'd be a massive task; and the other questions are: do libev and libeio run on PPC? [11:16] sechrist: porting v8 would be a better (yet much larger) task [11:16] stephank: I'm just guessing, but I don't think those are tied to a platform per se. [11:16] stephank: More tied to the OS. [11:16] zorzar has joined the channel [11:16] micheil: hmm, okay [11:17] stephank: sechrist: sounds tedious, but there is this: https://wiki.mozilla.org/NPAPI:Pepper [11:17] sechrist: replying that he would be alone in maintaining it would be a stretch [11:17] sechrist: if this implemented straight into java code -- I would see enterprises jumping [11:17] sechrist: however all of that code is blocking so not much point [11:18] stephank: I'm not even sure if pepper is an option, but I think they have a browser independent API for binding JS [11:18] sechrist: when you can implement an async call to the java crap now over a socket faster than rhino could keep up :) [11:19] sechrist: so -- ripping out spidermonkey in favor of v8 inside firefox [11:19] sechrist: doet [11:19] sechrist: then implement inspector [11:19] sechrist: mozillakit [11:20] sechrist: might as well also implement it with squirrelfish [11:20] sechrist: or "nitro" [11:20] stephank: sechrist: Nah, the aim is a new browser plugin API. Hmm.. I'm not sure where I read about javascript stuff, though. It's not on that page [11:21] sechrist: well actually [11:21] sechrist: a ton of the nodejs library is done in JS after the low level IO stuff [11:21] sechrist: it might not be that bad [11:22] sechrist: but still it's libeio and ev to worry about [11:23] mikew3c_ has joined the channel [11:25] linnk has joined the channel [11:27] Gruni has joined the channel [11:27] suhailski has joined the channel [11:27] benburkert has joined the channel [11:28] suhailski has joined the channel [11:28] isaacs has joined the channel [11:34] jetienne_ has joined the channel [11:35] MrTopf has joined the channel [11:38] erlnoob has joined the channel [11:39] naturalethic: whats a good primer on writing an async c++ module? [11:47] stephank: naturalethic: Depends a bit on what you want. Do you have a file descriptor, or just a blocking function you want to wrap? [11:47] naturalethic: i'm tying in a gui [11:47] naturalethic: so looks like i'll need idle events [11:48] naturalethic: i wonder if anyone else has done any gui work with node yet [11:48] femtoo has joined the channel [11:49] stephank: naturalethic: Oompf. Well, I don't know of anyone. So is this a GUI with it's own event loop, and you want to signal the node.js event loop? [11:50] naturalethic: yeah i gotta mix these two loops -- but i need them to be on the same thread as well [11:50] naturalethic: i'd prefer the gui to take priority of course [11:51] naturalethic: actually I might be able to put them on separate threads, i'd have to look into that [11:51] Mulleteer has joined the channel [11:52] micheil: yeah, there's tim_smart, who's been working on gtk bindings [11:52] micheil: there's also rasmus andersson, who's been embedding node in os x apps [11:52] naturalethic: nice, that's what i'm looking at (os x) [11:53] micheil: not sure how much code is available though [11:53] micheil: gtihub.com/rsms [11:53] stephank: naturalethic: I normally try to avoid threads, but mixing event loops sounds even trickier. In any case, node's event loop is just libev: http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod [11:53] micheil: totally miss typed that. [11:53] naturalethic: yep looking at that document now [11:55] micheil: it is possible to make node use another event loop, I just don't know specifics [11:55] naturalethic: micheil: any links to rasmus work? [11:55] micheil: not really. [11:55] micheil: I don't think it's that public; but I did see talk of it on one of the mailing lists [11:56] micheil: back later. [11:56] naturalethic: heh i'm looking at his github, seeing gists with mac os runloop code in them :) [11:58] erlnoob_ has joined the channel [11:58] linac has joined the channel [11:59] isaacs has joined the channel [12:05] erlnoob_ has joined the channel [12:09] isaacs has joined the channel [12:12] stagas has joined the channel [12:18] unomi has joined the channel [12:28] swistak has joined the channel [12:30] omni5cience has left the channel [12:31] paulrobinson has joined the channel [12:37] aconran-office_ has joined the channel [12:37] augustl has joined the channel [12:38] augustl: there's no file globbing in node right? [12:39] isaacs_ has joined the channel [12:40] jetienne_: augustl: if you plan to implement it. becarefulfnmatch is not available on all plateform [12:42] alkavan has joined the channel [12:43] hsuh has joined the channel [12:44] cognominal has joined the channel [12:45] augustl: jetienne_: the match regexp method you mean? [12:46] mies has joined the channel [12:47] jetienne_: augustl: nope the globbing one, the one used in shell pathname extension. it was just a remark because i remember having problems while porting codes of mine [12:48] jetienne_: augustl: thinking about it. it may be a good idea for node... to convert the globbing match into a regexp match... it would be pure js and would take advantage of the regexp speed of v8 [12:49] alkavan_ has joined the channel [12:52] svnlto has joined the channel [12:54] Gruni has joined the channel [13:03] mraleph has joined the channel [13:04] bluegene has joined the channel [13:04] kriszyp has joined the channel [13:06] skamikaze has left the channel [13:09] augustl: perhaps it can be written as some sort of C++ module. I don't know C++, but I guess it has globbing? [13:10] isaacs has joined the channel [13:18] Anti-X has joined the channel [13:19] Gruni has joined the channel [13:20] erlnoob has joined the channel [13:20] linac: why make test always fail at test-securepair-client.js [13:25] fly-away has joined the channel [13:29] gJ|Alex has joined the channel [13:30] ph^ has joined the channel [13:32] jwl: there are no node.js cms like drupal i guess? [13:33] erlnoob: v8> 1+1 [13:33] v8bot: erlnoob: 2 [13:33] erlnoob: v8> Date.now() [13:33] v8bot: erlnoob: 1291469637195 [13:34] Gruni has joined the channel [13:34] V1 has joined the channel [13:40] isaacs_ has joined the channel [13:46] SamuraiJack has joined the channel [13:47] spoobie has joined the channel [13:47] ysynopsis has joined the channel [13:54] jacobolu_ has joined the channel [13:58] jacobolus has joined the channel [14:00] paulrobinson has joined the channel [14:00] _mythz has joined the channel [14:03] cafesofie has joined the channel [14:05] ollie has joined the channel [14:11] isaacs_ has joined the channel [14:13] c4milo1 has joined the channel [14:13] pietern: v8> process.env [14:13] v8bot: pietern: ReferenceError: process is not defined [14:13] pietern: lol [14:14] naturalethic: i think it's just v8 without node [14:14] V1: ^ indeed [14:14] pietern: it would make sense if it was node [14:14] pietern: creating an irc bot seems pretty easy with node [14:15] pietern: but maybe it's sandboxed? [14:17] ysynopsis has joined the channel [14:18] Nohryb has joined the channel [14:18] chapel: it is sandboxed [14:18] MattDiPasquale has joined the channel [14:19] V1: pietern: It could call a childProcess to the V8 commandline [14:19] pietern: V1: makes sense as well [14:22] paulrobinson has joined the channel [14:28] oal has joined the channel [14:29] whyme: v8: typeof global [14:29] v8bot: whyme: "undefined" [14:29] whyme: v8: typeof GLOBAL [14:29] v8bot: whyme: "undefined" [14:30] paulrobinson_ has joined the channel [14:32] MrTopf has joined the channel [14:35] maushu has joined the channel [14:41] V1: Oh, I just broke the node repl [14:41] isaacs has joined the channel [14:41] bluegene has joined the channel [14:41] V1: if you type: function(){ var pewpew = "string", bool=true, array=[], obj = {}, regexp = /g/g; return pewpew}.toString() in the node.js repl odd stuff happens [14:42] micheil has joined the channel [14:42] V1: ( function(){}.toString() also kills it ) [14:46] cognominal has joined the channel [14:48] RevoOf1 has joined the channel [14:48] omygawshkenas has joined the channel [14:49] paulrobinson_ has joined the channel [14:49] ph^ has joined the channel [14:51] dnolen has joined the channel [14:54] ph^ has joined the channel [14:56] slaymer has joined the channel [14:58] GasbaKid has joined the channel [15:01] huehnts has joined the channel [15:08] slaskis has joined the channel [15:10] jamund has joined the channel [15:11] maushu_ has joined the channel [15:12] MrTopf has joined the channel [15:12] isaacs_ has joined the channel [15:12] dgathright has joined the channel [15:13] stagas: is there a markdown module that will do something like: var formatted = markdown(text) [15:15] Ond: How's this look https://github.com/andris9/node-markdown [15:16] stagas: Ond: nice thanks [15:16] Ond: You bet [15:22] RevoOf1 has left the channel [15:25] Alex3000 has joined the channel [15:27] iszak has joined the channel [15:29] unomi has joined the channel [15:30] wasabist has joined the channel [15:33] cagdas has joined the channel [15:35] Aria has joined the channel [15:35] siculars_ has joined the channel [15:37] maushu has joined the channel [15:40] MrTopf has joined the channel [15:42] isaacs has joined the channel [15:47] guybrush: stagas: https://github.com/evilstreak/markdown-js [15:47] guybrush: (works also in browser) [15:50] guybrush: i recommend doing a `npm ls ` besides googling for stuff [15:50] cjmFloating has joined the channel [15:50] stagas: guybrush: cool thanks [15:51] stagas: guybrush: I think I'm gonna use the browser version :) [15:51] stagas: guybrush: you can just degrade to plain text if no js which is ok [15:51] stagas: (in my case) [15:57] vineyard has joined the channel [16:01] trotter has joined the channel [16:05] MrTopf has joined the channel [16:06] Hello71 has joined the channel [16:06] kkaefer: stagas, guybrush: adding "site:github.com" also helps when googling ;) [16:08] stagas: wow this is one of the longest intervals of conversation ever [16:08] Nohryb has joined the channel [16:08] stagas: if that makes sense [16:12] karboh has joined the channel [16:13] isaacs has joined the channel [16:17] cardona507 has joined the channel [16:17] aconbere has joined the channel [16:17] kkaefer: stagas: guess what, we can extend that conversation pretty much infinitely ;) [16:18] wasabist has joined the channel [16:19] mw has joined the channel [16:20] pHcF has joined the channel [16:20] slaskis has joined the channel [16:26] _mythz has joined the channel [16:26] schakko has joined the channel [16:27] schakko: hello everybody [16:27] tj- has joined the channel [16:28] stagas: schakko: hi [16:33] strixv has joined the channel [16:33] maushu_ has joined the channel [16:35] schakko: Are there any plans of an I� driver for node.js? [16:36] Anti-X has joined the channel [16:37] Nohryb has left the channel [16:37] junkee[] has joined the channel [16:37] Nohryb has joined the channel [16:40] junkee[]: i get an error when i require my add-on: undefined symbol: _ZN4ngtk11NodeGObject20constructor_templateE [16:40] junkee[]: no errors/warnings while compiling [16:40] bpadalino: ngtk::NodeGObject::constructor_template ? [16:41] junkee[]: i thing it should be but it's like above [16:41] bpadalino: right, but it mangles the names .. do you not have that symbol defined ? [16:43] junkee[]: static v8::Persistent constructor_template; [16:43] isaacs has joined the channel [16:44] junkee[]: so yes, i have [16:44] bpadalino: have you checked your resulting objects to make sure you get the same symbols being exported ? [16:45] junkee[]: how can i? [16:45] bpadalino: nm will help out .. and you can pipe it through c++filt [16:47] naturalethic: anyone have an example of a simple watcher that will just keep the node process running? [16:47] gf3 has joined the channel [16:47] chapel: naturalethic: check out forever [16:47] _mythz has left the channel [16:48] junkee[]: nm gtk.node | grep _ZN4ngtk11NodeGObject20constructor_templateE [16:48] junkee[]: U _ZN4ngtk11NodeGObject20constructor_templateE [16:48] guybrush: isaacs: <3 `npm explore`, makes tiny changes/tryout on stuff very easy [16:48] naturalethic: lol duh i guess that's what that's for [16:48] _mythz has joined the channel [16:48] naturalethic: been seeing people talk about it [16:48] junkee[]: i thing that means it was exported [16:49] bpadalino: nah, U means it's undefined [16:49] naturalethic: chapel: actually this isn't going to work for my case [16:49] tjholowaychuk: e/clear [16:49] tjholowaychuk: doh [16:50] naturalethic: chapel: i'm embedding node, i just want to put a hook in the ev stuff to keep node from closing it's thread [16:50] junkee[]: why is it in the list if its not defined? [16:50] chapel: yeah I have no idea [16:51] schakko: @junkee[] did you define constant_template in .h __and__ .cc/.cpp file or only in .cpp? [16:51] junkee[]: .h [16:52] schakko: @junkee[] github repo url? i'll try check it. [16:52] Aria has joined the channel [16:53] schakko: @junkee you need to define the constant_template in .h __and__ .cc [16:54] sriley has joined the channel [16:54] junkee[]: Arrg! You're right! [16:54] schakko: @junkee[] in .cpp: Persistent ngtik::NodeGObject::constructor_template and everything is fine [16:56] junkee[]: That's it! thx [16:56] schakko: no problem :-) [16:56] useruseruser has joined the channel [16:59] V1 has joined the channel [16:59] sriley: hi, is there a way to use the parseCookie function from connects utils.js? [17:01] tjholowaychuk: sriley: require('connect').utils.parseCookie [17:03] sriley: cheers [17:06] sriley: with express being built on connect, is it accessible via express somehow? [17:08] tjholowaychuk: sriley: same way [17:08] tjholowaychuk: if you dont want to use the cookieDecoder middleware [17:11] sriley: the cookieDecoder doesnt do the cookies within a socket.io connection, guessing there isnt a way to get it to do those? [17:11] maushu has joined the channel [17:12] tjholowaychuk: no it is strictly for http [17:13] isaacs_ has joined the channel [17:17] bartt has joined the channel [17:18] naturalethic: Anyone? : "_ev_default_loop_ptr", referenced from: _ev_default_loop_uc in Mylib.o Symbol(s) not found [17:19] GasbaKid has joined the channel [17:19] benburkert has joined the channel [17:19] naturalethic: that symbol exists in the node lib, as it runs fine, but when I try to reference from mine its absent [17:20] jakehow has joined the channel [17:22] dgathright has joined the channel [17:22] logik-bomb has joined the channel [17:22] logik-bomb: Hi all [17:23] GasbaKid has joined the channel [17:23] schakko: @naturalethic Did you use "-L -lev" as compile option? [17:23] mikew3c_ has joined the channel [17:23] schakko: @logik-bomb hi [17:23] naturalethic: schakko: it's already compiled statically into libnode [17:23] coobr has joined the channel [17:24] schakko: @naturalethic Hm, but seems not to be so ;-) [17:24] naturalethic: schakko: and i'm linking libnode into my own app -- node itself is running event code fine -- i link to the ev_ function fine too in my app, it's only that particular symbol that is absent [17:25] naturalethic: schakko: i've hacked in a workaround for now [17:25] schakko: @naturalethic ah, okay. [17:29] schakko: @naturalethic I'm not a C/C++ guru, but ev_default_loop_uc is defined as "static inline" and so only available in the ev/libnode module and not in your lib? [17:29] MrTopf has joined the channel [17:30] naturalethic: oh maybe that's why [17:30] naturalethic: heh [17:30] naturalethic: schakko: i'm not either, i'm just stumbling around and making a mess [17:31] jamund has joined the channel [17:31] schakko: @naturalethic bad prerequisites :-) [17:36] luke` has joined the channel [17:36] jetienne has joined the channel [17:37] naturalethic: schakko: i was exaggerating a little -- do you by chance know where signal_watchers are exposed in the javascript context? [17:39] mike_mayo has joined the channel [17:39] Rixius has joined the channel [17:40] schakko: @naturalethic uh... no, sorry. [17:40] jetienne_ has joined the channel [17:43] schakko: @naturalethic as far as I know you use only ev_signal_stop/ev_signal_start for destroy/create signal watchers. But the signals are not exposed to JS context automatically. [17:44] naturalethic: schakko: node_signal_watcher.h/cc defines an object wrapper for that, but I don't know if it's yet being exposed [17:44] isaacs has joined the channel [17:46] karboh has joined the channel [17:46] jashkenas: yo naturalethic ... what sort of thing are you working on? between the coffee, objc, libnode ... it sounds really interesting. [17:46] naturalethic: jashkenas: cocoa<->nodejs (with coffee) [17:46] bartt has joined the channel [17:47] naturalethic: making good progress [17:47] nooder1 has joined the channel [17:48] bartt has joined the channel [17:48] jamescarr_: nice to be done with Rich Web Experience. I think I got some good exposure for node.js ;) [17:48] jashkenas: As in ... write a cocoa app from within a Node process? [17:48] jashkenas: Like a regular desktop app, or some sort of GUI/server thing? [17:49] vineyard has joined the channel [17:50] naturalethic: jashkenas: i started with a module, so you would require it in, and make calls into cocoa -- i've switched to doing an app bundle -- ultimately i'll support both [17:50] schakko: @naturalethic SignalWatcher seems not be exposed to JavaScript context [17:51] naturalethic: schakko: that's fine for now, i just hacked node to not exit on its own [17:52] naturalethic: jashkenas: so ideally for this first stage, you just start a new cocoa project like any other, but write your app code in coffee (or js) instead of objective-c [17:52] svnlto has joined the channel [17:52] schakko: sounds interesting [17:53] naturalethic: basically, macruby, but with node [17:53] jashkenas: naturalethic: Have you looked at their "HotCocoa" compatibility apis? [17:53] bartt has joined the channel [17:54] naturalethic: i've looked at hotcocoa briefly -- [17:54] jchris has joined the channel [17:56] erlnoob has joined the channel [17:56] tapwater has joined the channel [17:57] dguttman has joined the channel [18:00] nsolsen has joined the channel [18:01] aconbere has joined the channel [18:02] Hello71 has joined the channel [18:02] Hello71 has joined the channel [18:03] bartt has joined the channel [18:03] nooder has joined the channel [18:03] luke`_ has joined the channel [18:06] bartt has joined the channel [18:07] bartt has joined the channel [18:08] davidascher has joined the channel [18:09] bingomanatee has joined the channel [18:10] bingomanatee: Question: when node.js reaches the end of a script it should return control to Bash, right? Sometimes it does for my scripts, and sometimes it doesnt. Why would this be?] [18:10] bartt has joined the channel [18:12] nooder has joined the channel [18:12] luke` has joined the channel [18:12] bartt has joined the channel [18:14] nooder has joined the channel [18:14] altamic_ has joined the channel [18:15] paulrobinson has joined the channel [18:16] bartt has joined the channel [18:16] ysynopsis has joined the channel [18:16] bingomanatee: source example: http://pastebin.com/chCCspkN [18:16] langworthy has joined the channel [18:17] nooder1 has joined the channel [18:18] nooder2 has joined the channel [18:19] nooder has joined the channel [18:20] bartt has joined the channel [18:20] mike_mayo has joined the channel [18:20] Locke23rus has joined the channel [18:20] logik-bomb: is there any node.js book ? [18:22] bartt has joined the channel [18:23] bartt1 has joined the channel [18:26] bartt has joined the channel [18:31] tmpvar has joined the channel [18:33] paulrobinson: logik-bomb https://github.com/visionmedia/masteringnode [18:33] logik-bomb: thanks paulrobinson [18:34] paulrobinson: also decent is http://peepcode.com/products/nodejs-i [18:34] cognominal has joined the channel [18:35] logik-bomb: nice thanks [18:36] googol has joined the channel [18:36] naturalethic: bingomanatee: if you have something running in the event loop it won't return [18:37] naturalethic: for example, an open connection to mongo [18:37] bingomanatee__: ah. that explains a lot thanks. [18:41] jchris has joined the channel [18:42] bingomanatee__: is there a way to dump the event loop so I can view it? [18:44] isaacs_ has joined the channel [18:45] bartt has joined the channel [18:47] bartt has joined the channel [18:47] eee_c has joined the channel [18:49] danzajdband has joined the channel [18:49] danzajdband has left the channel [18:50] naturalethic: bingomanatee__ not that i know of [18:50] bingomanatee__: okay process.exit() seems to give me control back -- is there any risk to usinga "forced" exit like this? [18:50] naturalethic: nah [18:51] naturalethic: its cool [18:51] naturalethic: of course you'll want to be sure you are waiting on any db updates, or whatnot [18:52] bingomanatee__: ah. [18:52] naturalethic: *aren't [18:52] bingomanatee__: I noticed that it seems like every module creates its own EventEmitter instance - do they all manage the same event stack or are you creating several independant event stacks every time you instantiate an EventEmitter? [18:53] bingomanatee__: yes I got it. [18:55] omni5cience has joined the channel [18:58] rope has joined the channel [19:02] rauchg_ has joined the channel [19:04] Rixius has joined the channel [19:05] springify has joined the channel [19:05] AAA_awright: bingomanatee__: EventEmitter is just the module that calls registered hooks, it's not the source of the events [19:06] V1 has joined the channel [19:08] jacobolu_ has joined the channel [19:08] bartt has joined the channel [19:09] bartt1 has joined the channel [19:09] hsuh has joined the channel [19:11] warz has joined the channel [19:11] abiraja has joined the channel [19:11] bartt has joined the channel [19:12] peterwmwong has joined the channel [19:13] MikhX has joined the channel [19:14] abiraja has joined the channel [19:15] bartt has joined the channel [19:18] bartt has joined the channel [19:18] bartt1 has joined the channel [19:18] benburkert has joined the channel [19:20] jpld has joined the channel [19:20] jpld has joined the channel [19:20] cafesofie has joined the channel [19:21] logik-bomb: peepcode is a bit expensive :/ [19:21] logik-bomb: does anyone know about some coupons? [19:21] logik-bomb: thanks [19:22] strixv_ has joined the channel [19:22] bartt has joined the channel [19:24] bartt has joined the channel [19:28] faure has joined the channel [19:29] faure: anyone know how to render multiple views on one page using express js? [19:30] tjholowaychuk: faure: partials? [19:30] brianmario has joined the channel [19:30] faure: k, i will try that [19:31] kriszyp has joined the channel [19:33] isaacs_ has joined the channel [19:33] aconbere has joined the channel [19:34] naturalethic: anyone had any luck with ObjectTemplate->SetCallAsFunctionHandler ? [19:34] sonnym has joined the channel [19:37] softdrink has joined the channel [19:37] aconbere: ryah: how clean do you want this patch to be? :) if I just rewrite the changes ontop of the master, it's still not a pretty diff (git interlaces the changes in the file) [19:37] bartt has joined the channel [19:37] aconbere: I'm not sure if there's a way to make that look nicer [19:37] sirevanhaas has joined the channel [19:40] zmack has joined the channel [19:40] zedas has joined the channel [19:40] jameshome has joined the channel [19:43] jameshome_ has joined the channel [19:43] Aikar: its snowing in NC :3 [19:46] jashkenas has joined the channel [19:46] dtrasbo has joined the channel [19:47] bartt has joined the channel [19:49] pt_tr has joined the channel [19:49] nooder1 has joined the channel [19:51] mraleph: naturalethic: what's your problem with ObjectTemplate? [19:52] naturalethic: mraleph: SetCallAsFunctionHandler doesn't seem to be taking [19:52] jamescarr_: "Tools like JavaScript will unleash a new wave of creativity and transform the Internet in ways no one can predict. JavaScript and other developments will demand increased system performance, ideally met by Digital's Alpha systems architecture." [19:52] jamescarr_: lol [19:52] jamescarr_: http://web.archive.org/web/20070916144913/http://wp.netscape.com/newsref/pr/newsrelease67.html [19:53] mraleph: naturalethic: hmm. can you post your code somewhere? it should work. [19:54] naturalethic: mraleph: i got sidetracked, i'll come back to it in a bit here [19:56] wilmoore has joined the channel [19:57] jashkenas: fun with unary. [19:57] jashkenas: v8: +-+-+-+-+-1 [19:57] v8bot: jashkenas: -1 [19:57] jashkenas: v8: +-+-++-+-+-1 [19:57] v8bot: jashkenas: ReferenceError: Invalid left-hand side expression in prefix operation [19:58] ilon_ has joined the channel [19:58] tjholowaychuk: v8: +[]-[]+ [19:58] v8bot: tjholowaychuk: SyntaxError: Unexpected end of input [19:58] tjholowaychuk: v8: +[]-[] [19:58] v8bot: tjholowaychuk: 0 [19:59] tjholowaychuk: v8: []/+-[] [19:59] v8bot: tjholowaychuk: NaN [19:59] tjholowaychuk: looks funny [19:59] omni5cience: lol [19:59] aconbere: can anyone besides ry close issues? [19:59] jashkenas: you should be able to, if you opened it. [19:59] aconbere: I was thinking about doing some triaging with some free time today [20:00] aconbere: jashkenas: sorry, people other than ry and the author, (are there contributors to the githup project is the same question I think) [20:00] bartt has joined the channel [20:02] aconbere: there apear to be a bunch of issues right now that just need someone to verify that a particular patch went in, and to close them [20:03] boaz has joined the channel [20:04] c4milo1 has joined the channel [20:04] Nohryb has joined the channel [20:04] bartt has joined the channel [20:06] GasbaKid has joined the channel [20:06] googol has joined the channel [20:06] jashkenas: you can ask him to make you a collaborator on the repo. [20:08] tmpvar has joined the channel [20:09] isaacs has joined the channel [20:09] Nohryb has joined the channel [20:10] cafesofie has joined the channel [20:11] mikeal has joined the channel [20:12] c4milo1 has joined the channel [20:12] coobr has joined the channel [20:13] Nohryb has joined the channel [20:15] warz has joined the channel [20:15] abiraja has joined the channel [20:15] bartt has joined the channel [20:16] dgathright has joined the channel [20:16] spetrea__ has joined the channel [20:17] bartt has joined the channel [20:20] mike_mayo has joined the channel [20:21] bartt has joined the channel [20:21] tjholowaychuk: looks funny [20:21] tjholowaychuk: whoops [20:21] tjholowaychuk: fuck [20:21] tjholowaychuk: haha [20:21] langworthy has joined the channel [20:21] Nohryb_ has joined the channel [20:24] c4milo1 has joined the channel [20:24] bartt has joined the channel [20:24] Nohryb has joined the channel [20:25] SamuraiJack has joined the channel [20:25] MattDiPasquale has joined the channel [20:26] slaskis has joined the channel [20:26] Nohryb has joined the channel [20:27] cagdas has joined the channel [20:27] bartt has joined the channel [20:29] Nohryb_ has joined the channel [20:30] aconbere: mikeal: ping [20:30] mikeal: hiya [20:30] bartt has joined the channel [20:31] aconbere: taking a look at your issue regarding writing to streams that might be close [20:31] aconbere: d [20:31] aconbere: https://github.com/ry/node/issues#issue/95 [20:31] aconbere: mostly I thought it would be interesting to try to reduce this to a minimal test case [20:31] mikeal: so [20:31] mikeal: ry is removing readyState soon [20:31] aconbere: ah [20:31] aconbere: okay [20:31] aconbere: that being said [20:31] mikeal: and this *should* go away [20:31] aconbere: net.Stream looks like it's just a little broken [20:32] mikeal: steams.Stream is the new stream :) [20:32] aconbere: heh [20:33] aconbere: so maybe you could fix your issue just by making httpClient inherit from stream.Stream [20:33] aconbere: instead of net.stream :P [20:33] aconbere: net.Stream.destroy [20:33] aconbere: removes access to the writeWatcher [20:33] aconbere: before triggering any of your callbacks [20:34] bartt has joined the channel [20:34] mikeal: it's not that simple [20:34] aconbere: (and doesn't protect access to that attribute) [20:34] hucker has joined the channel [20:34] cafesofie has joined the channel [20:34] mikeal: pquerna has an entire branch that does just that [20:34] aconbere: fun [20:34] bartt has joined the channel [20:35] Nohryb_ has joined the channel [20:35] aconbere: out of sheer curiosity why is it so complex? [20:35] c4milo1 has joined the channel [20:35] HAITI has joined the channel [20:35] mikeal: go and look at http.js :) [20:35] Anti-X: do you mean complex or complicated? [20:35] mikeal: it's a little nuts [20:35] aconbere: yes [20:36] aconbere: I've been in there this morning looking at this issue :) [20:36] mikeal: changing out the underlying stream implementation is pretty far reaching [20:36] aconbere: ah [20:36] peterwmwong1 has joined the channel [20:36] mikeal: like, all of those readyState checks would change [20:36] aconbere: I mean I basically looked at http.js long enough to know that your issue was in net.stream [20:36] mikeal: to checking .readable and .writable [20:36] aconbere: well if pquerna has a branch that does this that sounds awesome [20:37] aconbere: otherwise, working on net.stream doesn't sound like fun [20:37] mikeal: so like, writable should be turned to false in a listener on "end" or "close" [20:37] mikeal: not independently [20:37] bartt has joined the channel [20:38] bartt1 has joined the channel [20:38] aconbere: in the short term, if you wanted to make net.stream more robust [20:38] softdrink1 has joined the channel [20:38] bartt has joined the channel [20:38] aconbere: I think you could save yourself some weird edge cases by making a getter [20:39] Nohryb has joined the channel [20:39] isaacs has joined the channel [20:39] aconbere: or checking the existenc of _writeQueue before calling any methods on it [20:39] aconbere: destroy seems like a pretty naughty function on that object [20:40] aconbere: and since you know more than I do about the plans here [20:40] aconbere: do you think you could put some of what you told me in the issue? [20:41] aconbere: then other happless triagers wont have the same issue :) [20:41] bingomanatee__: Okay I am still a little confused why http://pastebin.com/tKk5bteN hangs - if I try to MANUALLY kill the db connection I get an error; if I just kill the EventProvider instance, the application never ends. [20:42] bingomanatee__: How can I get the script to just run through and exit out the other side without forcing an process.exit()? [20:43] revooflordabc has joined the channel [20:43] texodus has joined the channel [20:44] MattDiPasquale has joined the channel [20:44] Druid_ has joined the channel [20:44] paulrobinson has joined the channel [20:45] bartt has joined the channel [20:46] InsDel has joined the channel [20:48] pHcF: http://birdch.at/ in nodejs :D [20:52] c4milo1 has joined the channel [20:53] testtesttest has joined the channel [20:54] RevoOf has joined the channel [20:55] Nohryb_ has joined the channel [20:55] MattDiPasquale has joined the channel [20:58] RevoOf has left the channel [20:58] er1c_ has joined the channel [20:59] bartt has joined the channel [21:00] bingomanatee__: Interesting! [21:01] marshall_law has joined the channel [21:02] c4milo1 has joined the channel [21:02] dannycoates has joined the channel [21:03] bingomanatee__: getting a "bad gateway" error [21:04] pHcF: bingomanatee__: sorry [21:05] pHcF: bingomanatee__: i'm doing some server updates [21:05] paulwe has joined the channel [21:05] bingomanatee__: no problem - I very much like the conceit. [21:05] Nohryb has joined the channel [21:05] bingomanatee__: keep it up. [21:05] pHcF: bingomanatee__: thanks! :) [21:05] bingomanatee__: keep me up with your progress - dave@wonderlandlabs.com [21:05] bartt has joined the channel [21:06] pHcF: i will [21:06] bingomanatee__: You should make it a Facebook app and have the perfect Trifecta ! [21:06] bartt has joined the channel [21:06] texodus has left the channel [21:07] m0rganic has joined the channel [21:08] c4milo1 has joined the channel [21:08] itr8r has joined the channel [21:09] themiddleman has joined the channel [21:09] junkee[] has left the channel [21:09] isaacs_ has joined the channel [21:09] pHcF: bingomanatee__: heheheh [21:10] bartt has joined the channel [21:11] bartt has joined the channel [21:12] bartt1 has joined the channel [21:12] bingomanatee__: So are you just using Twitter as a login mechanic or do you generate twit trails when you use your chat app? [21:16] okuryu has joined the channel [21:17] AAA_awright: Anyone know of a good RDF store that works with Nodejs? [21:18] CIA-54: node: 03Anders Conbere 07master * r6d81a48 10/ src/node.js : [21:18] CIA-54: node: My changes applied to a clean branch from master [21:18] CIA-54: node: Again, this simple reworks the two functions traverser and [21:18] CIA-54: node: findModulePath into a more readable form. This is not the supposed end [21:18] CIA-54: node: of these changes, but a first change that should make future changes [21:21] paulrobinson has joined the channel [21:21] CIA-54: node: 03Anders Conbere 07master * re9c7195 10/ src/node.js : [21:21] CIA-54: node: Reworks the two functions traverser and findModulePath into a more readable form. [21:21] CIA-54: node: This is not the supposed end of these changes, but a first change that [21:21] CIA-54: node: should make future changes easier to reason about. - http://bit.ly/hXeNsp [21:21] ryah: forced push coming. sorry [21:21] bingomanatee__: AAA_awright - I am not too familiar with RDF but you might look at Mongo - you can calcify trees very easily in BSON. [21:22] m0rganic has joined the channel [21:22] jamund has joined the channel [21:22] AAA_awright: bingomanatee__: Possibly, but I need to evaluate SPARQL queries against it [21:22] xonecas has joined the channel [21:23] xonecas: Hey everyone, how can I delete a file (a symlink actually) using node? [21:23] xonecas: (i'm on a linux box, so something like rm?) [21:23] AAA_awright: xonecas: fs.unlink [21:24] jakehow has joined the channel [21:24] AAA_awright: The Poxix command to remove a file (hardlink) or a link (softlink) is unlink() [21:24] bingomanatee__: Can't help you there. http://stackoverflow.com/questions/2063285/usage-of-mongodb-as-a-rdfstore-for-data-objects pushes a user towards neo4j [21:24] xonecas: AAA_awright: Thank you, 'll go read about it in the docs [21:24] bingomanatee__: but I can't speak towards whether there is an adapter for node or you'd have to roll your own. [21:25] AAA_awright: *Posix [21:25] AAA_awright: *POSIX [21:25] MattJ has joined the channel [21:26] creationix has joined the channel [21:27] charlenopires has joined the channel [21:29] cainus__: hey all... anyone know if I can run node.js apps on some cloud-computing platform? [21:30] AAA_awright: cainus__: Why wouldn't you be able to? [21:31] c4milo1 has joined the channel [21:31] cainus__: well GAE seems to be a non-started... needs to be python or jvm-based [21:31] AAA_awright: ...what is "cloud computing" here? [21:31] cainus__: non-starter [21:31] cainus__: easily resizable computing capacity [21:32] creationix has joined the channel [21:32] AAA_awright: A lot of "cloud" platforms are just resizable virtual machines so yeah [21:32] jvolkman: cainus__: surely you can run it on ec2 [21:32] m0rganic has joined the channel [21:33] cainus__: EC2 doesn't have the strictness of GAE? [21:34] tg has joined the channel [21:34] cafesofie has joined the channel [21:35] bartt has joined the channel [21:35] nsolsen has joined the channel [21:36] cainus__: ahh yeah EC2 is just a linux vm [21:36] cainus__: very cool [21:36] cainus__: alright thanks guys [21:36] jherdman has joined the channel [21:38] bartt has joined the channel [21:39] megana has joined the channel [21:39] megana: tjholowaychuk [21:40] isaacs_ has joined the channel [21:40] CIA-54: node: 03Ryan Dahl 07master * r5a21138 10/ src/node.js : fix global leak - http://bit.ly/h3pY73 [21:41] MattDiPasquale has joined the channel [21:41] CIA-54: node: 03Ryan Dahl 07master * rfbdff52 10/ test/simple/test-buffer.js : Fix global leaks in test-buffer.js - http://bit.ly/efHpTk [21:42] Hello71 has joined the channel [21:42] Hello71 has joined the channel [21:45] hornairs has joined the channel [21:47] bartt has joined the channel [21:47] MikhX has joined the channel [21:48] bartt has joined the channel [21:49] bartt1 has joined the channel [21:49] emerleite has joined the channel [21:51] bartt has joined the channel [21:53] mscdex: d'oh, looks like there's some console issues on cygwin [21:54] mscdex: tty stuff anyway [21:54] abiraja has joined the channel [21:54] c4milo1 has joined the channel [21:55] omni5cience_ has joined the channel [21:56] bartt has joined the channel [21:57] bartt has joined the channel [21:58] nsolsen has joined the channel [22:00] davidc_ has joined the channel [22:00] bingomanatee__: I would be very reluctant to work with Node on a windows box unless that was my final deployment platform. [22:00] creationix has joined the channel [22:00] bingomanatee__: Macs are a good sloppty seconds but I'd reccommend an Ubuntu dev environment. [22:01] creationix: ACTION is trying to get an Envy 14 for to use Ubuntu on [22:01] jchris has joined the channel [22:02] creationix has left the channel [22:02] creationix has joined the channel [22:02] isaacs_ has joined the channel [22:05] res99 has joined the channel [22:07] AAA_awright: webr3: Are you using any RDF databases with Node.js? [22:07] twoism has joined the channel [22:08] Nohryb_ has joined the channel [22:09] MrTopf has joined the channel [22:09] bartt has joined the channel [22:10] xonecas: Howdy, I'm getting stuck with throwing a possible error [22:10] isaacs_ has joined the channel [22:11] xonecas: I'm getting a unexpected 'throw' statement error when I try to validade a fs.readdir [22:11] MikhX has joined the channel [22:12] xonecas: I can show the code [22:12] xonecas: :-) [22:12] dtrasbo has joined the channel [22:13] bingomanatee__: pastebin.com is the best way to do this... [22:13] bingomanatee__: (show code) [22:14] bartt has joined the channel [22:15] c4milo1: or gist.github.com :) [22:15] MikhX_ has joined the channel [22:16] eston has joined the channel [22:16] nsolsen has joined the channel [22:17] mscdex: wow i think there is something seriously wrong with node on cygwin :S [22:17] mscdex: can't write files either, i have no idea how so many of the tests are supposedly passing [22:23] sechrist: there's something wrong with cygwin [22:23] sechrist: fixed that for you [22:24] xonecas: bingomanatee__: http://pastebin.com/PLSX58Sn [22:24] mscdex: no, it used to work fine at one point [22:25] EvanDotP1o has joined the channel [22:25] dgathright_ has joined the channel [22:26] xonecas: http://pastebin.com/PLSX58Sn -- gives me unexpected token 'throw' any ideas why ? [22:26] xonecas: or how to fix it? [22:27] abiraja has joined the channel [22:28] mscdex: xonecas: put a space before the : [22:28] mscdex: oh wait [22:29] mscdex: nvm yeah put a space there [22:29] mscdex: :) [22:29] mscdex: it's trying to interpret that as a label i suspect [22:30] maushu_ has joined the channel [22:30] xonecas: nope, still have the error [22:32] xonecas: mscdex: fixed by breaking down the (err)? into regular if statement... [22:33] HerrTopf has joined the channel [22:34] nsolsen has joined the channel [22:35] svnlto has joined the channel [22:35] Rixius: the Ternary operator is a strange thing. you cannot make assignements or throws inside of it [22:36] xonecas: Rixius: Thanks, I was scratching my head clueless on that one... [22:38] aaronblohowiak has joined the channel [22:38] aaronblohowiak: it looks like nvm doesn't exist anymore.. what is the canonical way to manage node versions? [22:38] maushu_: Rixius, technically the ternary operator is a single action. [22:39] maushu_: Lets not go crazy with it. Please. [22:40] Rixius: Maushu_: I like to have fun and write non-production test code >_> [22:40] maushu_: There is fun and then there is "OH MY GOD! THE ZOMBIES ARE ON FIRE!". [22:40] isaacs_ has joined the channel [22:42] svnlto has joined the channel [22:43] Rixius: I like writing lines like `(this.x === true) && (this.y = 123) && this.xzp()` [22:44] alexfner has joined the channel [22:47] maushu__ has joined the channel [22:47] aaronblohowiak: isaacs: are you planning on letting npm also upgrade your node for you? [22:48] aaronblohowiak: isaacs: alternately, what would you think if someone packaged node as an npm package :-) [22:49] Rixius: >_> aaronblohowiak: like with an install script that runs the ./configure make make install script? [22:49] dannycoates has joined the channel [22:50] aaronblohowiak: Rixius: yes =) [22:50] aaronblohowiak: Rixius: 4 commands (including the curl -lO) is just toooo many for my fingers [22:50] pHcF: http://birdch.at/rooms/nodejs :) [22:50] aaronblohowiak: ;) [22:53] nsolsen has joined the channel [22:55] trotter has joined the channel [22:56] mscdex has joined the channel [22:56] mike_mayo: Anyone had any luck with express and socketio together? [22:56] mscdex has joined the channel [22:59] pHcF: mike_mayo: i didn't get it working, so i used faye [22:59] pHcF: instead of socketio [22:59] softdrink has joined the channel [22:59] mike_mayo: pHcF: yeah i've seen a couple guides, one suggested Faye and one Juggernaut [22:59] pHcF: faye is awesome [23:00] pHcF: works on ANY browser [23:00] pHcF: even IE 6 [23:00] pHcF: and iphone, android [23:00] pHcF: etc [23:00] mscdex: where's the info for creating a debug build of node? [23:00] mike_mayo: pHcF: nice, may give that a shot [23:01] pHcF: mike_mayo: if you wanna see faye in action, http://birdch.at/rooms/nodejs [23:01] mike_mayo: cool [23:04] ysynopsis has joined the channel [23:07] davidc_ has joined the channel [23:07] davidc_ has joined the channel [23:08] Rixius has joined the channel [23:09] Dreamer3 has joined the channel [23:09] saikat has joined the channel [23:09] quirkey has joined the channel [23:11] isaacs_ has joined the channel [23:11] Nohryb has joined the channel [23:12] galaxywatcher has joined the channel [23:13] HAITI has joined the channel [23:15] DTrejo has joined the channel [23:15] DTrejo: hey everyone [23:15] HAITI has joined the channel [23:16] aaronblohowiak: DTrejo: hey [23:16] DTrejo: I'm semi-bored, and I wanna code [23:17] HAITI has joined the channel [23:17] HAITI has joined the channel [23:17] rauchg_ has joined the channel [23:18] rauchg__ has joined the channel [23:20] testtesttest has joined the channel [23:21] RevoOf has joined the channel [23:21] RevoOf has left the channel [23:23] HAITI has joined the channel [23:23] HAITI has joined the channel [23:23] mikew3c_ has joined the channel [23:23] mscdex: woot! hooray for debug builds! [23:27] HAITI has joined the channel [23:28] MattDiPasquale has joined the channel [23:29] cagdas has joined the channel [23:32] [[zz]] has joined the channel [23:33] DTrejo: dean.edwards.name is down :| at least for me [23:34] bingomanatee__: For what its worth - here is my "mongo on node" digest. http://wonderlandlabs.com/wll_drupal/os/node/day_three.html [23:35] augustl_eee has joined the channel [23:36] sechrist: substack -- found the problem with binary. solved, and now my memory is stable :) [23:37] HAITI has joined the channel [23:37] HAITI has joined the channel [23:37] nsolsen has joined the channel [23:39] A|i has joined the channel [23:39] aaronblohowiak: bingomanatee__: "By the time you read this it should be obsolete. " lol [23:40] A|i: is it possible to embed node.js in a java web server? is there an implementation of this? [23:40] sechrist: true story [23:40] maushu_ has joined the channel [23:40] sechrist: A|i: you too huh? [23:40] A|i: sechrist: you too? [23:41] sechrist: no, it's not common but people come in here asking for java integration like rhino for enterprise interopability [23:41] halfhalo: that idea makes my head hurt [23:41] doup has joined the channel [23:41] A|i: sechrist: I dont like too much external dependencies, it would be nice to integrate node in the web app [23:41] sechrist: you have a large existing codebase in java? [23:42] A|i: no [23:42] sechrist: then why do you want java compatibility? [23:42] A|i: I explained in the above [23:42] sechrist: no, you didn't, unless you mean you want to put java in front of node [23:42] sechrist: for some stupid reason [23:43] A|i: installing/configuring yet another dependency on the cloud is a pain [23:43] sechrist: haproxy to the node service [23:43] sechrist: haproxy in front of your web servers, and have haproxy route websockets and node-specific urls to node services [23:44] A|i: sechrist: that's what exactly I'm trying to avoid [23:44] aaronblohowiak: sechrist: i dont think you can do that with haproxy, unless they recently changed it [23:44] HAITI has joined the channel [23:44] A|i: syadmining servers is a pain in the neck (or lower) [23:44] sechrist: perhaps not websockets only, but you can damn sure route urls [23:44] aaronblohowiak: sechrist: right =) websockets breaks http [23:45] A|i: sechrist: deploying in java is as easy as uploading a war, I'd like to keep deploying my app that simple [23:45] sechrist: if node can detect websockets vs http on the same fd, why can't haproxy? [23:45] aaronblohowiak: sechrist: because the haproxy maintainer hates the current websockets draft and refuses to implement it [23:45] sechrist: A|i: well you are going to lose all benefits of node if you put something like java in front of it [23:46] A|i: sechrist: there is this implementation of nide in java: http://code.google.com/p/socketio-java/ but I guess it's kind of immature [23:46] sechrist: now, you can do backend communication to node and vice versa [23:46] sechrist: however your java thing will be the bottleneck of performance [23:46] sechrist: depending on the architecture [23:46] halfhalo: wait... I think he's trying to wrap node up in java, not just in front of it... which is even more retarted [23:46] sechrist: yeah which is why I ignored that possibility [23:47] aaronblohowiak: lol [23:47] mscdex: haproxy does not want to start implementing custom exceptions for stuff that is broken http [23:47] A|i: netty is not slower than node [23:47] A|i: it cannot be a bottleneck [23:47] mscdex: draft 75 works just fine because it's actually valid http [23:47] davidc_ has joined the channel [23:47] davidc_ has joined the channel [23:48] mscdex: but that was an error according to the ws protocol author [23:48] aaronblohowiak: mscdex: but which browsers support draft 75 ? [23:48] sechrist: A|i: well then communicate with node from your java service [23:48] mscdex: it's supposed to be invalid http [23:48] sechrist: you need websockets just for event flow right? [23:48] aaronblohowiak: ACTION cries [23:48] sechrist: so push events from netty to a node daemon [23:48] sechrist: that's how my company is using websockets currently [23:48] mscdex: aaronblohowiak: at least chrome 5 iirc [23:48] aaronblohowiak: sechrist: if you are going to use the JVM, just use cometd [23:49] aaronblohowiak: mscdex: right, but later chrome builds do *not* support 75 [23:49] mscdex: correct [23:49] sechrist: A|i: anyway, integrating nodejs into your jvm isn't going to be possible unless you re-invent a wheel [23:49] mscdex: and the only reason node is able to handle draft 76 is because it has a workaround to detect the kind of funky http request that ws draft 76 makes [23:49] A|i: sechrist: netty --[push]--> node --[push]--> browser ? [23:50] sechrist: yes [23:50] sechrist: well push/pull between netty and node [23:50] sechrist: using whatever you want as IPC [23:50] sechrist: so your netty thing can get events [23:50] sechrist: I have to do this with python/django and my node service [23:50] DTrejo has joined the channel [23:51] sechrist: basically use a socketio daemon as just a pipe to your user's browsers [23:52] sechrist: if you want to do it with "embedding" you're better off implementing socketio yourself in java [23:52] sechrist: which there's nothing wrong with -- socketio client isn't tied to nodejs [23:52] mscdex: the day node has rock solid ssl support is the day we'll have a fast draft 76-capable reverse proxy [23:52] mscdex: :> [23:52] sechrist: mscdex: get crackin [23:52] mscdex: i'm no tls/ssl guru [23:53] sechrist: what is fatally broken with ssl daemons in node? [23:53] ryan[WIN]: 383 people in here wtffff [23:53] halfhalo: DUNDUNDUN!!! [23:53] maushu__ has joined the channel [23:54] HAITI has joined the channel [23:54] HAITI has joined the channel [23:55] [[zz]] has joined the channel [23:55] HAITI has joined the channel [23:55] HAITI has joined the channel [23:56] quirkey has joined the channel [23:58] HAITI_ has joined the channel [23:58] HAITI_ has joined the channel [23:59] c4milo1 has left the channel [23:59] augustl_eee: http://npmjs.org/ - are there docs? [23:59] augustl_eee: I didn't look at the github page, perhaps there's something there..