[00:00] dominic_: yeah, i was about to write one, but realised i could just start another node process, pass the glob, json the args and log them, then in the main process, parse them back.... and then one day. reimplement it with the same API... [00:04] perezd: does spark2 have a way that it can be initialized from within a node file? (deploying on joyent and I want server.js to start up spark2) [00:07] perlmonkey2 has joined the channel [00:08] marcosvm: When decoding a string from base64 and the string isn't a valid base64 string the only way to know is by checking the buffer.toString().length == 0? [00:08] nilyt has joined the channel [00:08] GriffenJBS: Gigawatt: I'm back, looking at it now [00:09] zylo has joined the channel [00:09] Gigawatt: it might be a bug, ill try replicate it! [00:10] paulrollo has joined the channel [00:10] JusticeFries_ has joined the channel [00:12] fisted has joined the channel [00:12] Utkarsh_ has joined the channel [00:13] GriffenJBS: Gigawatt: break it into small steps and check them like http://pastebin.com/hRRYp3zR [00:13] alek_br has joined the channel [00:13] jamesarosen has joined the channel [00:15] Utkarsh has joined the channel [00:16] Gigawatt: my workaround at the moment is to move the requires outside the object scope! [00:18] arpegius has joined the channel [00:19] eee_c has joined the channel [00:20] pz_f: Is JSON.stringify() browser independant [00:20] matschaffer has joined the channel [00:21] jesusabdullah: I don't think all browsers have it, if that's what you're asking. [00:21] GriffenJBS: pz_f: for all that support it ;-) [00:21] AAA_awright: The JSON RFC has a simple function that can emulate it [00:21] pz_f: Well how would I send an object or a json literal over socket.io [00:22] pz_f: Like this? : http://www.thomasfrank.se/downloadableJS/jsonStringify.js [00:25] softdrink: any recommendations for doing TDD with C? [00:25] eb4890 has joined the channel [00:25] GriffenJBS: TDD? [00:25] softdrink: test-driven development [00:26] Evet has joined the channel [00:26] GriffenJBS: :-( too much alphabet soup in the world today [00:26] softdrink: agreed [00:26] mikeal has joined the channel [00:27] brianmario has joined the channel [00:28] pz_f: Php in action is a good book, there's a chapter on test driver programming [00:30] timmywil has joined the channel [00:31] sub_pop has joined the channel [00:31] admc has joined the channel [00:33] johans_ has joined the channel [00:33] Gigawatt: can someone sum up middleware in one sentance for me ? [00:34] ryah: Gigawatt: software that transparently adds some functionality to a web server - like gzip compression [00:34] BobFunk has joined the channel [00:34] Me1000: ryah: I know many people pointed you to my app for GitHub issues, if you have any special requests for it let me know and I'll be happy to see what I can do :) [00:34] ryah: at least that's what it means in this context - i guess [00:36] Gigawatt: ryan: so why is this classes as middleware ? [00:36] Gigawatt: http://expressjs.com/guide.html#Route-Middleware [00:38] arpegius has joined the channel [00:38] CIA-75: node: 03Ryan Dahl 07v0.4 * r55048cd 10/ (385 files in 35 dirs): Update copyright headers - http://bit.ly/gWsBax [00:40] gazumps has joined the channel [00:42] alek_br has joined the channel [00:43] shiawuentan has joined the channel [00:43] redmind has joined the channel [00:44] javaanse_jongens has joined the channel [00:44] MikhX has joined the channel [00:44] javaanse_jongens: good evening. [00:45] javaanse_jongens: how to get home dir, anyone? [00:46] dominic_ has joined the channel [00:46] techwraith: javaanse_jongens: What do you mean? [00:47] javaanse_jongens: the ~ of the user node is running under [00:47] javaanse_jongens: /home/me [00:47] techwraith: javaanse_jongens: not entirely sure, "~/ [00:48] techwraith: "~/" doesn't work? [00:48] javaanse_jongens: path.existsSync "~" says no [00:48] hober: use the HOME envvar [00:49] techwraith: javaanse_jongens ^ sounds like the best plan [00:49] javaanse_jongens: hober, ill look into it, thanks guys [00:49] hober: tilde-espansion is a shell feature, not a feature of the underlying posix api [00:49] hober: *expansion [00:49] techwraith: hober, yeah, I figured that was the case [00:51] javaanse_jongens: yeah. got it. thanks [00:51] BillyBreen has joined the channel [01:01] postwait has joined the channel [01:03] paulrobinson has joined the channel [01:04] SetupLy has joined the channel [01:07] soulofpeace has joined the channel [01:07] msch has left the channel [01:07] Utkarsh_ has joined the channel [01:08] wasabista has joined the channel [01:10] zentoooo has joined the channel [01:14] sub_pop has joined the channel [01:14] FunkyFortune has joined the channel [01:17] JojoTheBoss: is Spark built into Connect or Express and if so how would you use it in connection with either of them? [01:20] dominic_ has joined the channel [01:21] charlenopires has joined the channel [01:23] tempples has joined the channel [01:25] CIA-75: node: 03Ryan Dahl 07master * rab190d3 10/ lib/buffer.js : Fix buffer.toString('hex') (+20 more commits...) - http://bit.ly/i6h6ZL [01:26] gazumps has joined the channel [01:26] Ond has joined the channel [01:28] guybrush: wow npm has 1k watchers now [01:28] marcosvm has joined the channel [01:32] robotarmy has joined the channel [01:32] bartek has joined the channel [01:33] bartek: Hi there. Has anyone had trouble building node.js on OSX? I get an error it seems when I try to build v8: http://dpaste.com/501611/ [01:33] bartek: If I try to build v8 by its lonesome, I also get error output, this might be a v8 issue more than anything, actually :-/ [01:33] eee_c has joined the channel [01:34] boaz has joined the channel [01:35] zachsmith: bartek: what parameters did you run it with? [01:35] jacobolus has joined the channel [01:36] bartek: I'm using homebrew to install nodejs, here's the formula: https://github.com/mxcl/homebrew/blob/master/Library/Formula/node.rb [01:38] f1lt3r has joined the channel [01:38] zachsmith: huh, snowleopard? [01:39] bartek: zachsmith: What about it? [01:39] dominic_ has joined the channel [01:39] zachsmith: are you using it? [01:39] bartek: Yes [01:39] zachsmith: ok, huh [01:39] zachsmith: me too [01:39] monokrome: Hmm... Does jade work as a client-side library? [01:39] zachsmith: I guess I didn't have any problem [01:40] zachsmith: monokrome: I'm pretty sure there's is a fork that does [01:40] bartek: Ya, I do enjoy the 400 blog posts on how to compile node.js on OSX with a simple 3 lines of configure, make, make install ;-) [01:40] bartek: As I sift through obscure errors [01:40] monokrome: Because that'd be neat. [01:42] zachsmith: bartek: someone posted your error... on a "how to build on windows" https://github.com/joyent/node/wiki/Building-node.js-on-Cygwin-(Windows) search for task failed (err #2) [01:42] bartek: Ugh, if I build v8 under sudo it works, looks like it's a bug: http://code.google.com/p/v8/issues/detail?id=631#c6 [01:42] zachsmith: oh [01:42] bartek: I'll check your link too, thanks [01:43] zachsmith: nah, no need probably, it's probably not applicable [01:43] jtsnow has joined the channel [01:43] robotarmy has joined the channel [01:43] Gmcneill has joined the channel [01:48] jacobolus has joined the channel [01:49] aakour has joined the channel [01:50] arpegius has joined the channel [01:53] vnguyen has joined the channel [01:55] pz_f: What's the most efficient way to remove a specific value from an array [01:55] pz_f: Or should I create a hash table in c++ as a module [01:58] monokrome: filter? [01:58] monokrome: or indexOf? [01:58] monokrome: filter if there might be multiple instances needing removal [01:59] pz_f: I found arr.splice(arr.indexOf('specific'), 1); [01:59] monokrome: Otherwise, just get the index of your value with indexO [01:59] monokrome: f [01:59] monokrome: Yep. [01:59] pz_f: Though I need to declare it for ie... stupid dumb s.... [01:59] monokrome: There can't be two instances of the value needing removed, right? [01:59] pz_f: Unique values thankfully :) [02:00] pz_f: Although I'd like to create a linked list with pointers in c++ and see if I can use it in js [02:00] jesusabdullah: That could be interesting, if you could create a useful linked list implementation [02:01] andrewfff has joined the channel [02:03] pz__ has joined the channel [02:03] pz__: Ish wireless dropped :< [02:04] zzak: anyone want a duostack invite? [02:04] mscdex: pz__: splice can be slow on very large arrays [02:04] mscdex: pz__: you can also do linked lists in js [02:04] mscdex: easily [02:04] pz__: Yes but will they be as fast [02:05] mscdex: why not? [02:05] pz__: I don't know, primitives are passed by value? [02:05] autotron has joined the channel [02:05] mscdex: objects are passed by ref [02:05] pz__: Their might be an implementation passing objects [02:05] pz__: Yeah [02:06] pz__: But I'm not aware of it, I havent really checked it [02:06] pz__: Would be it possible to template it? [02:06] pz__: Like make it contain w/e I want? [02:06] mscdex: var node = function(data) { this.next = null; this.data = data; } [02:07] mscdex: then create new instances of node and assign .next as necessary [02:07] pz__: Intersting, I'm new to js I will try to create my own implementation [02:08] pz__: Right now I need to get an overall functional app haha... then I will focus on optimizing it [02:08] mscdex: :) [02:09] mscdex: i've found b+trees work very well too [02:09] mscdex: and there's a javascript implementation for that [02:10] Vertice has joined the channel [02:11] mikegerwitz: I need to monitor the memory usage of a specific object. Any recommendations? I know this topic has been brought up a few times, but I don't recall a conclusive answer. Unless node-inspector is the best I'm going to get. [02:12] sivy_ has joined the channel [02:14] pz__: mscdex: I've seen it being suggested to me too, b-tree might be overkill for the moment [02:15] pz__: Def something to consider if I ever manipulate more than 1000 values [02:16] Yuffster_work has joined the channel [02:17] kawaz_air has joined the channel [02:18] sivy has joined the channel [02:19] mscdex: yeah, they provide great performance and can do lookups as fast as objects, but without having to use `delete` which makes v8 go slow [02:19] mscdex: well, slow-er [02:19] soulofpeace has joined the channel [02:19] pz__: I see [02:19] mscdex: they're good at ranged searches too [02:20] mickyjimbo has joined the channel [02:20] mscdex: i've been looking at using them for keeping track of connected clients for a tcp/websocket server [02:21] pcardune has joined the channel [02:21] autron has joined the channel [02:22] jacobolus has joined the channel [02:24] yinzen has joined the channel [02:24] malkomalko has joined the channel [02:25] dnolen has joined the channel [02:25] pcardune_ has joined the channel [02:25] marcosvm has joined the channel [02:27] unlink has joined the channel [02:27] bentruyman has joined the channel [02:27] mscdex has joined the channel [02:29] pz__: mscdex: Like keeping a list of connected clients? [02:29] mscdex: yeah [02:30] pz__: mscdex: What socket are you using? [02:30] pz__: mscdex: Any module or pure node? [02:30] mscdex: it's pure javascript [02:30] mscdex: it's a node module like socket.io [02:30] pz__: Ok but it isn't socket.io? [02:31] mscdex: no [02:31] marcosvm has joined the channel [02:31] pz__: And why not use socket.io? [02:32] mscdex: for at least a couple reasons. one of them being i didn't care for the reliance on the url to determine the transport [02:32] statik has joined the channel [02:32] mscdex: another one was the transport reliability [02:32] mscdex: but that may have improved since i initially wrote the module [02:32] mscdex: i dunno [02:33] JusticeFries has joined the channel [02:33] pz__: Well I dunno, I feel like it's a lot of work to do something socket does for free :P [02:33] mscdex: another difference was i thought about adding support for plain tcp clients [02:33] pz__: Well seems you have very specific needs [02:34] mscdex: perhaps [02:34] mscdex: there's also some design differences too :) [02:35] pz__: Well I find it convenient, just send objects from one side to the other [02:35] SubStack: convenience! [02:35] pz__: Encodes and decodes without me needing to step in [02:36] SubStack: objects are cool, but you know what's cooler? functions [02:36] pz__: They are objects [02:38] sh1mmer has joined the channel [02:39] viewsrc has joined the channel [02:40] BobFunk has joined the channel [02:42] mikeal has joined the channel [02:42] steph021_h has joined the channel [02:42] luke` has joined the channel [02:43] steph021_h has joined the channel [02:44] luke` has joined the channel [02:45] steph021_h has joined the channel [02:45] sliver5555 has joined the channel [02:45] luke`_ has joined the channel [02:47] harth has joined the channel [02:48] eyesUnclouded has joined the channel [02:49] zorzar has joined the channel [02:50] langworthy has joined the channel [02:51] CIA-75: node: 03Ryan Dahl 07v0.4 * r61fdfcb 10/ src/node_provider.d : Fix comment in node_provider.d - http://bit.ly/gqurKZ [02:52] rpflo has joined the channel [02:54] elimisteve has joined the channel [02:54] ron_frown has joined the channel [02:54] ron_frown has left the channel [02:55] CIA-75: node: 03Ryan Dahl 07v0.4 * r566c67b 10/ src/node_version.h : Working on v0.4.3-pre - oops - http://bit.ly/gv0zWs [02:55] ron_frown has joined the channel [02:55] ron_frown: ladies [02:56] ron_frown: any news on node native on win32/64? [02:57] noahcampbell has joined the channel [02:57] steph021_h has joined the channel [02:57] ryah: ron_frown: it's being worked on [02:57] ryah: sponsored even [02:57] Insanity5902 has joined the channel [02:58] ron_frown: nice! [02:58] ron_frown: I know a few months ago a guy her was helping out there [02:58] ryah: that said - we're going for a very good port - it will take some months [02:58] ryah: (very good = uses IOCP backend) [02:58] ron_frown: that a good thing [02:58] ron_frown: I can wait for quality [02:58] Yuffster has joined the channel [02:58] ryah: piscisaureus is the dude leading the charge [02:58] ron_frown: yep [02:59] ryah: so, hopefully by the end of summer we're going to be a well supported platform there. [02:59] luke`__ has joined the channel [02:59] sh1mmer: ryah: iocp like this? http://en.wikipedia.org/wiki/Input/output_completion_port [02:59] ryah: i want to even have .exe downloads on the nodejs.org site [02:59] ron_frown: are there any packages to kinda handle abuse attempts? [02:59] masahiroh has joined the channel [02:59] ryah: sh1mmer: yes [02:59] ron_frown: eg, I got my stuff working and have it handling basic exceptions [03:00] ron_frown: but would like to put in more abuse prevention [03:00] ron_frown: eg, automatic anti-ddos et [03:00] sh1mmer: ryah: so iocp manages all of the concurrency in the kernel? [03:00] ryah: sh1mmer: it's an i/o api [03:00] ryah: http://msdn.microsoft.com/en-us/library/ms687028(v=vs.85).aspx [03:00] ryah: ^-- real docs start here [03:00] sh1mmer: weird it's in windows and solaris [03:01] sh1mmer: seems kinda random [03:01] ryah: i don't know if it's actusally in solaris [03:01] ryah: ACTION looks [03:01] sh1mmer: http://developers.sun.com/solaris/articles/event_completion.html [03:02] JianMeng has joined the channel [03:02] ryah: ACTION was grepping /usr/include - i guess i should have googled [03:02] ryah: yeah, it's not the same API [03:02] boaz has joined the channel [03:02] ryah: i kind of want to port it to unix :) [03:03] ryah: (port to libev - would be more accurate) [03:03] perlmonkey2 has left the channel [03:03] sh1mmer: I had a really nice time in sweden [03:03] sh1mmer: I met interesting erlang people [03:03] ryah: oh yeah - you went there this weekend. [03:03] ryah: hah [03:04] sh1mmer: dyncon was actually really rad [03:04] ryah: mr jetset [03:04] sh1mmer: we had some 3-way clojure/erlang/node discussions [03:04] ryah: sounds fun [03:04] sh1mmer: although the guy that invented erlang totally didn't get teh event loop at all [03:04] ryah: i would have liked to particpate in that [03:04] ryah: joe armstrong? [03:05] sh1mmer: yeah [03:05] chilts: I guess there were lots of Nokia people there then? [03:05] ryah: i find that hard to believe [03:05] steph021_h has joined the channel [03:05] sh1mmer: he was insisting that it was impossible to deal with multiple async actions in javascript [03:05] sh1mmer: when it's really a very simple pattern [03:05] kawaz_ai_ has joined the channel [03:05] sh1mmer: he just didn't seem to understand callbacks [03:05] ryah: hm [03:05] adamvandenhoven has joined the channel [03:05] sh1mmer: he couldn't understand it to do it without continuations [03:06] sh1mmer: but he also seemed very impatient [03:06] sh1mmer: so I'll send him some code [03:07] ryah: i think he must know very much about this in order to build erlang. probably the topic was lost in translation. [03:07] sh1mmer: perhaps. [03:07] sh1mmer: his english was excellent [03:08] ryah: (not to say he doesn't know english well - just that sometimes it's difficult to speak of technical things - sometimes people have special words for things that don't exist in other programming communities) [03:08] ryah: s/[()]//g [03:08] pquerna: hmm? event ports isn't iocompletion is it really? [03:09] pquerna: i spent all weekend at pycon.. where there were lots of callback hating [03:09] MarkMenard has joined the channel [03:09] pquerna: go go coroutintes and eventlet/gevent etc [03:10] ryah: people just don't see the light yet. soon. [03:10] ryah: i think we have some more work to do. [03:10] ryah: but it's not far off. [03:10] tmzt_: anybody know how to have an objectid, eitehr a small integer or real (encoded) object id in child objects in mongo? [03:10] ryah: they don't understand the process thing. [03:10] ryah: that we expect them to use many. [03:11] pquerna: well, much of that assumes an easy to use message passing system [03:11] pquerna: at least for a certain class of apps [03:11] davidascher has joined the channel [03:11] ryah: pquerna: IOCP API on libev? [03:11] ngs has joined the channel [03:11] ryah: i.e. on epoll [03:11] ryah: would be awesome, i think. [03:11] pquerna: +1 [03:12] ryah: then node can just target that. [03:12] pquerna: i meant event ports in solaris doens't do that really [03:12] pquerna: its somewhere like kqueue.. but.. special. [03:13] JJMalina has joined the channel [03:13] adamvandenhoven: I have a question about node&express if someone has a moment. TJ Holowaychuk pointed me at express's configuration but I can't figure out how to reference the configuration in a separate file that will be require'd in the app.js. can anyone point me in the right direction? [03:13] mikegerwitz: ryah et. al.: Does v8 provide any sort of API for tracking memory usage of individual objects that could be exposed to node, that you are aware of? [03:15] ryah: mikegerwitz: yes - look at ObjectWrap in node_object.h [03:16] ryah: mikegerwitz: if you subclass that you can get a destructor [03:16] mikegerwitz: ryah: Excellent, thanks :) Was just looking for a starting point [03:16] elimisteve has left the channel [03:16] Juske has joined the channel [03:19] brainless has joined the channel [03:22] p0ns_ has joined the channel [03:23] shiawuentan has joined the channel [03:25] meso_ has joined the channel [03:25] softdrink has joined the channel [03:25] thorsteinsson has joined the channel [03:25] throughnothing has joined the channel [03:26] eirikur has joined the channel [03:28] pcardune has joined the channel [03:29] yinkei_ has joined the channel [03:30] steph021_h has joined the channel [03:30] skiz has joined the channel [03:30] jtsnow has joined the channel [03:36] darshanshankar has joined the channel [03:36] wilmoore has joined the channel [03:36] timv has joined the channel [03:38] nilyt has joined the channel [03:39] timv: hey guys, i've a question about socket.io [03:41] timv: using the server.js example in the git repo, i want to call io.broadcast() from within the 'server' object request handler. is that possible? [03:42] timv: when i try it i get what appears to be an infinite loop (request never completes) [03:42] eirikur has joined the channel [03:43] timv: not sure what i'm doing wrong, but i couldn't find any examples of doing this (calling Listener.broadcast() from outside of a Listener event handler) [03:46] Utkarsh has joined the channel [03:47] dominictarr has joined the channel [03:50] rvaj has joined the channel [03:50] mbrochh has joined the channel [03:50] mbrochh has joined the channel [03:51] dominictarr has joined the channel [03:51] malkomalko: has anyone had problems with formidable/connect-form with express 2? [03:51] dominictarr has joined the channel [03:52] possibilities has joined the channel [03:55] sourcode has joined the channel [03:59] bentruyman has joined the channel [04:00] m14t has joined the channel [04:01] bentruyman_ has joined the channel [04:01] trotter has joined the channel [04:02] raidfive has joined the channel [04:02] jetienne has joined the channel [04:04] themiddleman_itv has joined the channel [04:05] kriszyp has joined the channel [04:08] muk_mb has joined the channel [04:10] colinsullivan has joined the channel [04:11] alek_br has joined the channel [04:12] dominictarr has joined the channel [04:13] zeqeiroz has joined the channel [04:13] ezmobius_ has joined the channel [04:17] matschaffer has joined the channel [04:17] softdrink has joined the channel [04:17] matschaffer has joined the channel [04:20] dominictarr has joined the channel [04:23] noahcampbell has joined the channel [04:28] siculars has joined the channel [04:30] dominictarr has joined the channel [04:32] brianmario has joined the channel [04:35] mlncn has joined the channel [04:35] herenowcoder has joined the channel [04:36] malkomalko has joined the channel [04:41] adamvandenhoven has joined the channel [04:41] unomi has joined the channel [04:42] unlink has joined the channel [04:42] unlink has joined the channel [04:42] dominictarr has joined the channel [04:45] Know1edge has joined the channel [04:50] skm has joined the channel [04:51] makuchaku has joined the channel [04:52] BobFunk has joined the channel [04:58] brianc_home has joined the channel [05:02] harth has joined the channel [05:02] dominictarr has joined the channel [05:03] AphelionZ has joined the channel [05:04] davidascher has joined the channel [05:05] brianc_home has left the channel [05:06] BrianTheCoder has joined the channel [05:06] brianc_home has joined the channel [05:06] brianc_home has left the channel [05:06] jgautier has joined the channel [05:07] Viriix has joined the channel [05:07] jgautier: anybody have experience with node-serialport? i tried to set the buffersize to 1 but the buffer i receive as the 'data' is more then one byte [05:08] sirkitree has joined the channel [05:08] sleeplessinc has joined the channel [05:10] jgautier: voodootikigod you around? [05:11] andrewfff has joined the channel [05:12] Gmcneill has joined the channel [05:13] Qbix has joined the channel [05:13] Qbix: hey guys [05:15] broofa has joined the channel [05:16] dominictarr has joined the channel [05:18] mlncn has joined the channel [05:19] ron_frown has joined the channel [05:20] fusspawn has joined the channel [05:20] sivy_ has joined the channel [05:20] tilgovi has joined the channel [05:23] makuchaku has joined the channel [05:24] themiddleman has joined the channel [05:25] sivy has joined the channel [05:28] marcosvm has joined the channel [05:33] muk_mb has joined the channel [05:36] sivy_ has joined the channel [05:37] tprice has joined the channel [05:37] ryanfitz has joined the channel [05:38] isaacs has joined the channel [05:38] abraham has joined the channel [05:38] sivy has joined the channel [05:38] fusspawn: anyone like spaceships and got 30 seconds to help test something? [05:39] Croms has joined the channel [05:40] makuchaku has joined the channel [05:41] matschaffer has joined the channel [05:43] adamvandenhoven has joined the channel [05:43] ParadoxQuine has joined the channel [05:44] ParadoxQuine: anyone at learnboost here? [05:44] jgautier: anyone her eused EventEmitter? [05:45] cainus has joined the channel [05:47] tonymilne has joined the channel [05:47] davidascher has joined the channel [05:48] diegoviola has joined the channel [05:49] zeqeiroz has joined the channel [05:49] razvandimescu has joined the channel [05:52] dominictarr has joined the channel [05:52] tonymilne: Has anyone else been getting "Can't use mutable header APIs after sent" with Express 2 rc? [05:52] ParadoxQuine: nope but i was only developing with it for about an hour today [05:52] matschaffer has joined the channel [05:54] jetienne: anyone not asking anything ? :) [05:54] tonymilne: OK. *boggles* [05:54] tonymilne: It's working now, and the only thing I think i did was drop my mongodb collection. [05:56] ParadoxQuine: weird issue [05:57] tonymilne: (turns out, it wasn't fixed... i commented it out and was returning something simpler) :S [05:58] ParadoxQuine: ahh [05:59] tonymilne: But, i think I narrowed it down to a badly formed mongodb condition [06:01] dominictarr has joined the channel [06:03] luke` has joined the channel [06:03] ewj has joined the channel [06:04] saikat has joined the channel [06:04] marcosvm has joined the channel [06:05] ParadoxQuine: if anyone from learnboost / tj comes on, the stylus docs are down [06:19] Nomon has joined the channel [06:21] ben has joined the channel [06:21] meso_ has joined the channel [06:21] jdalton has joined the channel [06:21] jdalton has left the channel [06:22] ben has left the channel [06:25] ezmobius has joined the channel [06:27] gozala has joined the channel [06:29] seivan has joined the channel [06:30] abraham has joined the channel [06:30] disq has joined the channel [06:30] disq has joined the channel [06:30] tshpaper has joined the channel [06:34] shiawuentan_ has joined the channel [06:36] liquidproof has joined the channel [06:37] froak has joined the channel [06:39] fangel has joined the channel [06:42] brianmario has joined the channel [06:42] piscisaureus: ACTION Good mornin' (back on eu time) [06:43] snearch has joined the channel [06:45] yozgrahame has joined the channel [06:46] zentoooo has joined the channel [06:46] breccan has joined the channel [06:48] unlink has joined the channel [06:49] disq has joined the channel [06:49] disq has joined the channel [06:50] zentoooo has joined the channel [06:56] mikeal has joined the channel [06:56] GriffenJBS: jgautier: still playing with serial? [06:57] GriffenJBS: jgautier: I'm trying to figure out why you want to read one byte at a time, if you don't want it all right now, store the buffer for later [06:58] zachsmith has joined the channel [07:00] andrewfff has joined the channel [07:08] SamuraiJack has joined the channel [07:10] astropirate has joined the channel [07:15] AAA_awright_ has joined the channel [07:16] rudolfrck: Anyone know if a git client for node exists? [07:17] jspiros has joined the channel [07:18] neshaug has joined the channel [07:18] mavin|gone has joined the channel [07:18] gredman has joined the channel [07:18] tshpaper has joined the channel [07:18] cnu has joined the channel [07:19] russell_h has joined the channel [07:19] shift__ has joined the channel [07:19] Aikar has joined the channel [07:19] Aikar has joined the channel [07:20] ryanj has joined the channel [07:21] pascalopitz has joined the channel [07:21] AAA_awright: rudolfrck: Yeah, google libgit2 [07:22] razvandimescu has joined the channel [07:23] FireFly has joined the channel [07:24] rudolfrck: AAA_awright: Thanks. Wasn't quite what I hoped for, but still. Have you used C bindings in node.js before? [07:24] charlenoqueirozp has joined the channel [07:24] AAA_awright: rudolfrck: They're not uncommon, or even hard to compile [07:25] broofa has joined the channel [07:25] AAA_awright: So yeah [07:25] AAA_awright: I use 3-4 [07:25] muhqu has joined the channel [07:26] heavysixer has joined the channel [07:27] ivan has joined the channel [07:27] zemanel has joined the channel [07:27] m3nt0r^aw has joined the channel [07:28] alek_br has joined the channel [07:28] hobodave has joined the channel [07:28] zemanel has joined the channel [07:28] rudolfrck: AAA_awright: got any pointers to get me started on it? [07:29] AAA_awright: rudolfrck: What exactly [07:29] AAA_awright: Read the README [07:30] rudolfrck: I was thinking more in general about C bindings [07:30] ewj has joined the channel [07:30] AAA_awright: rudolfrck: It should be something like `node-waf configure; node-waf` to compile the ./module.node binary module [07:30] zemanel has left the channel [07:30] AAA_awright: rudolfrck: If you're looking to write a binary module, good luck, it's woefully underdocumented [07:31] rudolfrck: AAA_awright: so you're saying I can compile it and use it directly in node.js without much effort? [07:31] zemanel has joined the channel [07:31] Utkarsh has joined the channel [07:31] rudolfrck: https://github.com/libgit2/node-gitteh [07:32] AAA_awright: Yeah that's it [07:32] skohorn has joined the channel [07:32] zemanel has joined the channel [07:32] AAA_awright: I'm planning on using that but I haven't yet [07:32] AAA_awright: rudolfrck: Do you have the .node module? [07:33] rudolfrck: gitteh you mean? Not yet. [07:34] AAA_awright: rudolfrck: How long is the compile taking? [07:34] AAA_awright: It shouldn't be more than a second or two [07:35] rudolfrck: I'll try to compile it right now [07:36] razvandimescu has joined the channel [07:37] cognominal has joined the channel [07:37] rudolfrck: AAA_awright: that seemed to work quite well [07:37] AAA_awright: kk [07:37] diegoviola has left the channel [07:37] rudolfrck: thanks! [07:38] zilt has joined the channel [07:38] ph^ has joined the channel [07:39] maru_cc has joined the channel [07:39] skiz has joined the channel [07:39] atiti has joined the channel [07:47] V1 has joined the channel [07:49] dominictarr has joined the channel [07:50] __tosh has joined the channel [07:51] jspiros has joined the channel [07:52] fangel has joined the channel [07:52] tc77 has joined the channel [07:53] meso__ has joined the channel [07:56] bergie has joined the channel [07:57] aways|bnc: ACTION Hi all [07:57] muhqu has joined the channel [07:58] nyholt has joined the channel [07:59] rtomayko has joined the channel [07:59] meso_ has joined the channel [08:01] NinjaFox has joined the channel [08:02] jimt_ has joined the channel [08:03] davidcoallier has joined the channel [08:04] admc has joined the channel [08:05] dominictarr has joined the channel [08:05] ossareh has joined the channel [08:06] TomY has joined the channel [08:06] TomY_ has joined the channel [08:08] troessner has joined the channel [08:09] skm has joined the channel [08:10] ph^ has joined the channel [08:11] russell_h has joined the channel [08:11] dominictarr has joined the channel [08:12] ph^ has joined the channel [08:13] matjas has joined the channel [08:15] ph^ has joined the channel [08:16] ryanfitz has joined the channel [08:17] ph^ has joined the channel [08:18] hobodave has joined the channel [08:18] TomY_ has left the channel [08:18] TomY has left the channel [08:19] isaqual has joined the channel [08:19] hobodave has joined the channel [08:20] darshanshankar has joined the channel [08:21] case__ has joined the channel [08:21] aabt has joined the channel [08:23] mAritz has joined the channel [08:23] zentoooo has joined the channel [08:25] dve has joined the channel [08:26] herbySk has joined the channel [08:28] muhqu has joined the channel [08:30] Zero_Dogg has joined the channel [08:30] emattias has joined the channel [08:31] Zero_Dogg: Hi, is there any way to have node just run in a main loop and not exit at all until process.exit() is called? I'm doing some jsdom stuff, but it appears to exit before I'm done (two pages, one linking to the other, first works, but it appears to exit during the second) [08:31] mischief has joined the channel [08:31] muhqu has joined the channel [08:32] adambeynon has joined the channel [08:32] andrewfff has joined the channel [08:33] piscisaureus: Zero_Dog: just do setInterval(function(){}, 1000000) [08:33] SubStack: Zero_Dogg: node only exits when there is no more stuff to do [08:33] piscisaureus: ^- not a recommended practive [08:33] SubStack: if node is exiting then nothing else is going to happen [08:33] muhqu has joined the channel [08:33] msucan has joined the channel [08:33] SubStack: unless you're trying to register events with process.on('exit', fn) or some edge-case like that [08:34] piscisaureus: +1 for listening to SubStack :-) [08:35] Zero_Dogg: SubStack: that's odd, as I have a method that gets called whenever one jsdom finishes processing, but it doesn't get called. Guess there's a bug somewhere then, I'll poke around. Thanks [08:35] pdelgallego_ has joined the channel [08:35] pdelgallego has joined the channel [08:36] Zero_Dogg: duh, it was. facepalm. Thanks [08:38] andrewfff has joined the channel [08:39] dominictarr has joined the channel [08:40] alessio_alex: hello guys [08:42] bergie has joined the channel [08:47] mhausenblas has joined the channel [08:47] [AD]Turbo has joined the channel [08:47] [AD]Turbo: hi there [08:48] wilmoore has joined the channel [08:49] jbpros has joined the channel [08:50] dominictarr has joined the channel [08:50] wilmoore_ has joined the channel [08:51] alessio_alex: I'm having trouble with installing Node.js on cygwin (on windows) [08:51] alessio_alex: could somebody help me with this? [08:52] teemow has joined the channel [08:54] Zero_Dogg has left the channel [08:55] slip has joined the channel [08:55] slip has joined the channel [08:55] meso__ has joined the channel [08:56] xla has joined the channel [08:58] andrewfff has joined the channel [08:59] aphelion has joined the channel [08:59] aphelion has joined the channel [08:59] dominictarr has joined the channel [08:59] JojoTheBoss: allessio_alex: whats the problem? [08:59] alessio_alex: cygwin is really pissing me off [09:00] alessio_alex: I try to install it with wget but I can't [09:00] alessio_alex: I've installed Node.js on linux perfectly and not I want to install it on windows also [09:00] alessio_alex: It's driving me a little crazy [09:00] JojoTheBoss: hrmmm [09:00] alessio_alex: I've installed and reinstalled cygwin 3-4 times now [09:01] JojoTheBoss: following the wiki I assume? [09:01] alessio_alex: sure.. [09:01] JojoTheBoss: https://github.com/joyent/node/wiki/Building-node.js-on-Cygwin-%28Windows%29 [09:02] alessio_alex: already have that link [09:02] alessio_alex: couldn't install [09:02] JojoTheBoss: at what point do you get the wget error? [09:03] meso_ has joined the channel [09:03] saschagehlich has joined the channel [09:03] alessio_alex: well actually I just wanted to get it so I can install stuff like on Linux [09:05] Druid_ has joined the channel [09:05] gozala has joined the channel [09:05] JojoTheBoss: just a moment. gonna try to update my cygwin and see if I have any trouble [09:05] alessio_alex: ok [09:06] JojoBoss has joined the channel [09:06] JojoTheBoss: ohhh [09:06] JojoTheBoss: hehe [09:06] JojoTheBoss: I'm already running v0.5.0-pre [09:06] eaton has joined the channel [09:06] eaton has joined the channel [09:06] JojoTheBoss: didnt think I updated it recently [09:07] schonyo has joined the channel [09:07] andrewfff has joined the channel [09:08] aklt has joined the channel [09:08] kal-EL_ has joined the channel [09:08] dominictarr has joined the channel [09:09] dgathright has joined the channel [09:12] blowery has joined the channel [09:15] cloudhead has joined the channel [09:15] Evet has joined the channel [09:19] MikhX has joined the channel [09:22] jimt has joined the channel [09:22] Stan____ has joined the channel [09:22] TomY_ has joined the channel [09:26] jasondavies has joined the channel [09:26] atiti has joined the channel [09:26] alek_br has joined the channel [09:26] jasondavies: anyone come across a "no input files" error when running ./configure? [09:27] jasondavies: I've installed g++ etc. but it says it can't configure a cxx compiler [09:27] piscisaureus: JojoTheBoss: you should be using the v0.4 branch, v0.5 is actually behind that [09:28] jasondavies: I'm running RHEL 4 [09:29] Spion_ has joined the channel [09:29] andrewfff has joined the channel [09:29] jimt_ has joined the channel [09:29] piscisaureus: jasondavies: I don't know much about Linux, and forget about RHEL [09:29] piscisaureus: jasondavies: But you should look at build/config.log [09:30] Evet: piscisaureus: what is your os? [09:30] NinjaFox: whats the best db to use with node? is mysql worth using or should i look at couch or mongo? [09:31] piscisaureus: Evet: windows [09:31] tbassetto has joined the channel [09:31] jasondavies: piscisaureus: thanks, here's the log but nothing interesting in it: http://friendpaste.com/1QdL1NdsTBu5kMCab0syXu [09:31] piscisaureus: jasondavies: so it is looking for icpc [09:31] zhware has joined the channel [09:31] jasondavies: here's the output from ./configure: http://friendpaste.com/4p8DS7fQ4eMOB7b3BfTc8X [09:32] jasondavies: piscisaureus: aha... [09:32] Evet: piscisaureus: did you compile nodejs with cygwin? [09:32] piscisaureus: Evet: yes, also. [09:32] Evet: NinjaFox: did you try with mingw and clang too? [09:33] NinjaFox: have not evet, im php/mysql usually so looking for some incite into whats available [09:33] Evet: sorry [09:33] Evet: piscisaureus: did you try with mingw and clang too? [09:33] Evet: NinjaFox: redis and mongodb is okay [09:33] NinjaFox: cheers [09:34] piscisaureus: Evat: mingw, yes, I'm working on that [09:34] eevin has joined the channel [09:34] piscisaureus: Evet, clang, what's that? [09:34] Evet: NinjaFox: i prefer redis since its BSDish [09:34] Evet: piscisaureus: llvm [09:34] piscisaureus has left the channel [09:34] piscisaureus has joined the channel [09:35] Evet: piscisaureus: how is mingw performance? [09:35] Evet: *with nodejs [09:35] piscisaureus: Evet: heh. Performance of what exactly ? [09:35] piscisaureus: :-) [09:35] piscisaureus: Evet: sockets seem to be better than with cygwin [09:35] Evet: piscisaureus: socket io [09:36] Evet: hmm [09:36] piscisaureus: Evet: but I'm trying to switch to iocp that should make it a whole lot better [09:36] piscisaureus: Evet: but you shouldn't really be using mingw right now [09:36] jasondavies: piscisaureus: icpc is not a requirement, it's only searching for that because the cxx search fails [09:36] Evet: piscisaureus: what is iocp, libev equivalent? [09:38] piscisaureus: Evet: iocp is the windows async io framework [09:38] piscisaureus: jasondavies: well if you ask me, it does detect g++. But sorry I can't help you. [09:39] muhqu_ has joined the channel [09:39] Evet: piscisaureus: sounds great [09:40] X-windowsUSR has joined the channel [09:40] jasondavies: g++ version 3.4.6, I wonder if node.js requires a better version, hmm [09:40] Utkarsh has joined the channel [09:40] piscisaureus: no 3.4.6 should be ok [09:41] jelveh has joined the channel [09:41] jetienne: è [09:41] astropirate has joined the channel [09:43] hassox has joined the channel [09:44] piscisaureus: ryah: ping [09:44] rawroland has joined the channel [09:45] MrTopf has joined the channel [09:45] franck34 has joined the channel [09:45] piscisaureus: nvm. tweet. [09:45] tbassetto has joined the channel [09:46] benvds has joined the channel [09:46] benvds has left the channel [09:47] mikl has joined the channel [09:48] FireFly|n900 has joined the channel [09:54] markwubben has joined the channel [09:54] riven has joined the channel [09:54] riven has joined the channel [09:56] pomodoro has joined the channel [09:57] bzinger has joined the channel [09:57] razvandimescu has joined the channel [09:58] Utkarsh_ has joined the channel [09:59] dubbe has joined the channel [10:00] skohorn has joined the channel [10:03] __tosh has joined the channel [10:05] sveimac has joined the channel [10:06] adamt has joined the channel [10:11] floby has joined the channel [10:13] vilhonen_: what's the best library combo for web scraping currently? [10:14] vilhonen_: I tried with jsdom & jquery as described here http://blog.nodejitsu.com/jsdom-jquery-in-5-lines-on-nodejs but my jsdom.jQueryify's callback gets never called [10:14] alek_br has joined the channel [10:14] vilhonen_: using node 0.4.2 and latest stable versions of request and jsdom [10:15] kawaz_air has joined the channel [10:15] JimBastard has joined the channel [10:15] JimBastard: npm install colors [10:15] JimBastard: console.log('he comes...'.zalgo.rainbow); [10:15] JimBastard: ftw [10:17] zemanel: JimBastard: yo hows it going [10:17] JimBastard: slow and steady zemanel [10:17] JimBastard: :-D [10:17] V1: oh nice typo JimBastard ;) [10:17] kawaz_air has joined the channel [10:17] zemanel: like a boss [10:17] JimBastard: V1: hrmmm? [10:17] V1: o [10:17] V1: nvm [10:17] razvandimescu has joined the channel [10:17] JimBastard: you cant defeat rainbow zalgo [10:18] JimBastard: you guys seen http://githits.met [10:18] JimBastard: errr [10:18] JimBastard: you guys seen http://githits.me [10:18] JimBastard: someone finally built github rankings site around that data [10:18] JimBastard: its still a little buggy, but patch tomorrow should get nodejitsu listed :-D [10:19] markwubben has joined the channel [10:23] unlink has joined the channel [10:23] unlink has joined the channel [10:25] jimt has joined the channel [10:27] [AD]Turbo has joined the channel [10:27] masahiroh has joined the channel [10:28] jetienne has joined the channel [10:29] zemanel: JimBastard: is it yours? [10:30] JimBastard: zemanel: githits? no [10:30] zemanel: ah [10:30] JimBastard: but ive been talking with the author a little, getting it fixed [10:31] zemanel: what have you been working on [10:31] makuchaku has joined the channel [10:32] atiti has joined the channel [10:33] mischief has joined the channel [10:35] mischief has joined the channel [10:35] saschagehlich: what is the biggest project running on node.js? [10:35] JojoBoss has joined the channel [10:36] saschagehlich: like the biggest website [10:36] sveimac has joined the channel [10:38] zemanel: http://nodejitsu.com/ [10:38] zemanel: :P [10:38] sveimac has joined the channel [10:38] V1: pobably github with it's nodeload / download server [10:38] floby: isn't learnboos fully nodejs ? [10:39] floby: learnboost * [10:39] V1: ithink github > learnboost in node.js deployment [10:40] floby: I read about this, what do they do with node at github exactly? [10:40] V1: But than again, the bigger project running node.js would probably be HP which deploys Node.js in the WebOS platform. Or Joyent with the No.De hosting [10:41] V1: When you download tars / zips on github, all of that is handled by node.js floby [10:41] floby: V1: right I remember now. thanks. [10:41] zemanel: didnt scrab.ly wo the nodeko? [10:41] Wizek has joined the channel [10:42] zemanel: http://scrabb.ly/ [10:43] V1: sure they won, but it's not big [10:44] Adman65 has joined the channel [10:44] d0k has joined the channel [10:46] piscisaureus: saschagehlich: cloud9ide.com maybe? [10:47] saschagehlich: hmm [10:47] saschagehlich: never heard of cloud9ide [10:47] jimt_ has joined the channel [10:48] piscisaureus: pretty awesome, it lets you code & debug in your browser. works very well with node [10:48] maf: I just got my cloud9ide account [10:48] maf: I've not used it yet. [10:48] maf: I didn't know that piscisaureus - that you can code and debug in your browser [10:49] maf: I better start using it ! [10:49] gaYak: Does it have autocomplete? ;) [10:49] gaYak: (does any IDE for javascript..?) [10:50] floby: gaYak: Eclipse does, but I think eclipse is a pain. [10:50] maf: funny how such a simple innovation 'autocomplete' can influence civilization so profoundly. [10:50] gaYak: floby: Eclipse is always pain ;) [10:50] maf: I'm back to notepad++ myself. no autocomplete though. [10:50] gaYak: maf: It makes bad coders effective! ;) [10:50] floby: gaYak: thanks for agreeing :D I use vim with snipmate, sometimes the built-in word completion [10:51] gaYak: snipmate? [10:51] maf: gay- naw ! There ARE occasions where autocomplete picks something I didn't want. [10:51] gaYak: (I've used vim as well for all my javascripts for now) [10:51] maf: is it vim ? that is forever in the war with emacs ? [10:51] gaYak: maf: Of course, but it's often handy when there's new library. [10:51] maf: er, wait, that's vi or something. [10:51] gaYak: maf: vim = vi.. just a clone [10:52] floby: gaYak: an equivalent to snippets in textmate. you type a keyword, say 'req' and then TAB. then it expands it to var $name = require('$name'); and ask you to fill in the holes [10:52] V1: gaYak: Dreamweaver does :) [10:52] BobFunk has joined the channel [10:52] maf: I used to use this 'lse' on a vax- I don't use vi/m or emacs, but boy oh boy- people love those tools - again, something so SIMPLE as an editor can influence civilization so profoundly as to productivity. [10:53] floby: gaYak: not quite true: vim > vi > ... >emacs [10:53] gaYak: floby: Never used textmate.. [10:53] gaYak: floby: And I kinda like emacs.. k�h.. oops ;) [10:53] maf: too bad humans don't have 'editors' for their mind. "Oh no, I hit select ALL and delete and then it crashed, can I get it back ?" [10:53] floby: gaYak: neither have I but this feature is cool. check out snipmate on vim.org and enjoy. [10:53] gaYak: maf: Yeah, or undo feature.. ;) [10:54] gaYak: floby: Yeah, will do, looks promising [10:54] piscisaureus: yes yes (emacs ^^ node) &~ vim + emacs > (windows - linux * bsd['free']) etc [10:55] gaYak: Awesome, war! ;) [10:55] maf: I'm not using node.js YET - I DID just clear off my pr0n for some space on a separate drive for ubuntu so I could finally use VirtualBox on a sep. drive, figured if I use same drive as parent OS it would be busy busy busy... BUT the reason I LIKE this channel ? node.js is innovative - I love creativity, and for the most part ? some of the smartest people on freenode in my opinion. [10:55] floby: gaYak: well I find the vi/emacs war much more interesting than a Apple/Microsoft war [10:55] maf: seems the hardest core geeks are here, well - then there is the #scheme channel heh [10:55] gaYak: scheme.. it's been a while since I coded scheme last time :( [10:55] squeeks: "hardest core geeks", gee thanks, I went to art school. [10:55] gaYak: Actually, I'm happy it's been ~8 years. [10:56] floby: squeeks: I'm still in art school ! [10:56] gaYak: But then again, maybe it's a language for people who're smarter thanme [10:56] piscisaureus: Yes I am a public policy student. Where are the hardcore geeks? :-) [10:56] maf: I have been sharing this page I read in an introduction recently - DO check it out - I live by this.. I especially keep it in mind anytime I find myself in any corporate setting with foreign technologies and terms -> http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-3.html [10:56] maf: tell me what you think perhaps... [10:57] johndahlstrom has joined the channel [10:57] gaYak: maf: I have that book in covers at home.. [10:57] maf: I find those sentences so refreshing to always remember - keep it fun - and I do like the 'bible salesman' comment - heh, I know people like that - dry- boring - and when they get home ? they probably don't even have a PC even if they are making $150k a year as some project directory in an IT setting. [10:57] gaYak: Don't think I've ever read it though [10:58] mscdex: node.js rules! [10:58] maf: gaYak- you win. I only can afford free version online, it's like $80 or so for the book. [10:58] sth: Except for when it causes a kernel panic like it did earlier :D [10:58] maf: GaYak - watch the course lecture videos - they're great. [10:58] maf: I'll get you a link if you want. [10:58] gaYak: maf: I bought it used when I went to my first Scheme lectures [10:59] floby: sth: kernel panics are fun. you get a cowsay if you look with attention [10:59] maf: http://groups.csail.mit.edu/mac/classes/6.001/abelson-sussman-lectures/ [10:59] maf: the first 10 seconds of lecture 1a is worth it for the music and the cover of the book -lol [10:59] mscdex: oh teh noez! scheme! [11:00] maf: but he writes 'computer science' on the board, then he crosses out 'computer' saying it's not really to much to do with computers, then he crosses out 'science' - [11:00] mscdex: then he sets the board on fire [11:00] maf: gaYak - or, you go to MIT ? or went ? [11:00] saschagehlich has joined the channel [11:02] axfraxfr has joined the channel [11:03] gaYak: maf: Nope, HUT (Helsinki University of Technology) in Finland [11:07] dspree_ has joined the channel [11:08] johndahlstrom: I am trying to get the most optimal input matching for a game I'm working on and would want to know what you think. [11:08] johndahlstrom: Currently I use an event called "command". When someone sends a line to the game, this is emitted and sends with it the whole input line in a callback. In return the listener does a string.match and grabs any necessary matches etc and THEN executes a function if it was a correct match. [11:08] johndahlstrom: What makes this to not be as simple as I'd want, is that commands will most likely have to be matched with a regexp pattern somehow since they might contain things like a name from an online player and sometimes even starting with one. [11:08] johndahlstrom: Anyway, I'd just like to check if there's anyone who have a better solution for this? Be it more elegent code or perhaps somehow enable regexp event listeners. [11:09] SubStack: you could just pass around json objects [11:09] adamt has joined the channel [11:10] met_ has joined the channel [11:10] SubStack: then you can match the command exactly [11:10] viktors has joined the channel [11:11] pastak has joined the channel [11:12] floby: SubStack++ [11:12] v8bot: floby has given a beer to SubStack. SubStack now has 18 beers. [11:13] SubStack: johndahlstrom: also I wrote an rpc system called dnode that does this all for you automatically [11:13] viktors: hi. are there any javascript toolkits which play well with node.js? things like showing a notification when a new record was added to data source of data grid, something like nowjs for form validation, etc. [11:14] viktors: like dojo toolkit but optimized for node.js [11:14] jimt has joined the channel [11:15] johndahlstrom: SubStack: Thanks for the help! I'll look into that. [11:17] Juske has joined the channel [11:21] plainas has joined the channel [11:21] plainas: hey all [11:21] plainas: could anybody explain me why/how is node.js specially suited for cloud applications? [11:22] jetienne: /msg v8bot v8: jetienne++ <- pff this doesnt work :) [11:22] viktors: plainas: because EC2 doesn't have latency guarantees [11:22] jetienne: plainas: it is not. [11:23] jetienne: plainas: it is a fast, low on resource implementation of js. [11:23] mraleph has joined the channel [11:23] plainas: viktors, sorry, I fail to understand where you're going :( [11:25] plainas: jetienne, everybody is bloging about how node.js is the revolution of 'the cloud', the node.js lettering even has a small cloud in it [11:25] viktors: plainas: node.js excels when you need to request a lot of data from multiple sources simultaneously, and some sources have high latency. For example, multiple database requests can be issued at the same time. [11:26] jetienne: plainas: ok, sorry i dunno why they blog that [11:28] mraleph: people use what they like to use. [11:29] mraleph: and don't use what they don't like to use. [11:29] mraleph: I think this is the one and only reason people use node.js [11:31] piscisaureus: mraleph: sometimes I use PHP [11:31] Sorella has joined the channel [11:31] V1: omg [11:31] V1: KB [11:31] xla has joined the channel [11:31] piscisaureus: mraleph: so this people "01don't use what they don't like to use.01" statement ... [11:31] leoric has left the channel [11:31] mraleph: piscisaureus: last time I used PHP was 10 years ago in school. Never going to return to it again :-) [11:32] mraleph: oh I think it is 12 years know [11:32] piscisaureus: mraleph: I envy you. [11:32] mraleph: "12 years without PHP and counting" [11:32] adamt: plainas, well, node does promote a way to seperate things, and make pararellel executions possible, that might be why. [11:32] NinjaFox: whats wrong with php :o [11:32] adamt: NinjaFox, what's not wrong with php? [11:33] mraleph: NinjaFox: http://www.tnx.nl/php.jpg [11:33] NinjaFox: heh [11:33] NinjaFox: php has made me quite a bit of money so i have no hate for it [11:34] rtomayko_ has joined the channel [11:34] adamt: By the same logic COBOL is an awesome language. [11:34] SetupLy has left the channel [11:34] piscisaureus: Yes by the same logic funerals are great [11:34] jetienne: i skipped perl and im proud of it [11:34] jetienne: i didnt skip ruby/python/php and this is a pain [11:34] jetienne: i got node.js now and i can forget them :) [11:34] squeeks: jetienne: proud of not being more knowledgable in something else? [11:35] jetienne: squeeks: oh yeah [11:35] SubStack: perl is pretty worth knowing [11:35] SubStack: it's more influential than you might suppose [11:35] adamt: Everything perl can do, python can do cleaner. :) [11:35] SubStack: false [11:35] jetienne: less clean than perl is like ... what ? maybe lisp [11:36] jetienne: lisp is more cryptic than perl [11:36] SubStack: can't even do lispy functional pipeline style in python [11:36] SubStack: because guido doesn't understand functional programming is why [11:36] jetienne: readability is key, i want to code and forget [11:36] mraleph: holywar incoming :-) [11:36] adamt: jetienne, maybe you're finding lisp weird because you aren't used to dealing with recursing and functional programming? :) [11:36] SubStack: PERHAPS [11:36] jetienne: adamt: no i find it unreadable because crappy syntax [11:37] adamt: python isn't a purely functional language anyways. [11:37] jetienne: python is more readable, but got bogus tabs [11:37] jetienne: and js is like the cleanest ? :) [11:37] mraleph: o_O [11:37] matclayton has joined the channel [11:37] SubStack: adamt: no but python has mutable constructs everywhere and doesn't have a nice way to thread state [11:37] squeeks: at least perl can be somewhat optional with parenthesis. [11:38] adamt: jetienne, the syntax is beatiful, especially if you look at how most compilers are built and recognize the similarities. :P [11:38] piscisaureus: Ok lets update the equation: [11:38] piscisaureus: 01(emacs ^^ node) &~ vim + emacs > (windows - linux * bsd['free'])01 / (perl || python) + python [11:38] adamt: that is, the lisp-syntax. [11:38] SubStack: adamt: in perl or javascript it's not too hard to string together a bunch of list operations, shell-style [11:39] SubStack: but in python you've either got to uglify your code with a bunch of parenthesis noise or save the intermediate state [11:39] SubStack: and I HATE intermediate state [11:39] adamt: SubStack, i'm not saying Python > Perl for all use cases, but Python is a more easily understandable language, and can do what most people expect from a shell-scripting point of view. [11:39] SubStack: removing points makes programs easier to debug since you can take them apart piece by piece and try them out in the repl [11:40] SubStack: whereas with more stateful operations you've got to reconstruct the state in order to test and reason about code [11:40] SubStack: adamt: python definitely gets some things right [11:41] SubStack: most of that overlaps with javascript, incidentally [11:41] adamt: Yeah. But they also do lots of things weirdly. [11:41] Xano has joined the channel [11:41] SubStack: I don't care much for the __noise__ [11:41] SubStack: it is a rather novel way to do operators but it seems half-baked at times [11:42] adamt: when talking about noise, functions named __foo__ :( [11:42] SubStack: if only in python you could do [].len instead of len([]), and likewise for map, filter, reduce [11:42] adamt: def __init__(self,bleh): just isn't pretty [11:42] SubStack: that plus multiline lambdas in python and I would be super content [11:42] adamt: yeah, it's very silly that stuff like len(..) is needed. [11:42] squeeks: I'm sorry, str.join()? [11:43] jetienne: btw tell those language designers... "hey you forgot about destructor" :) [11:43] jetienne: they all do ctor, but no dtor [11:43] jetienne: oriented object ftw [11:43] adamt: jetienne, false [11:43] SubStack: it's sometimes nice to hook onto the GC for cleaning up files and hackish stuff [11:43] jetienne: adamt: which language got dtor ? [11:43] SubStack: especially where foreign interfaces are concerned [11:43] jetienne: adamt: i know of c++ but none else [11:44] squeeks: perl. [11:44] jetienne: arf :) unfair [11:44] SubStack: ACTION has done quite a lot of python and perl programming [11:44] adamt: __del__ in python perhaps, jetienne ? [11:44] piscisaureus: jetienne: java finalize? [11:44] SubStack: ruby, haskell, and javascript round out my top 5 [11:45] jetienne: adamt: piscisaureus: ok i stand corrected [11:45] SubStack: I sometimes miss ruby's grab-bag approach in the core types [11:45] adamt: also, python got something similar to blocks in ruby that in many cases can remove the need for a destructor [11:45] hellp has joined the channel [11:45] SubStack: if only there were a better way to achieve the same ends [11:46] SubStack: adamt: oh? [11:47] SubStack: I recall some wonky new syntax that was highly specific and hard to repurpose for more general programming [11:47] SubStack: that seems to be how most python features turn out [11:47] SubStack: with() or something? [11:47] adamt: can't remember what it's called, but i think it's from 2.6 or so, where you can do stuff like open a file, do voodoo with it, and it'll get closed after the code finishes because it's like a ruby block. but clearly it can't be used for the same as __del__, but good thing __del__ exists then. :P [11:48] adamt: yeah i think that's it [11:48] SubStack: yeah it requires some __voodo__ [11:48] SubStack: on the objects you want to wrap [11:50] suckerpunch has joined the channel [11:50] adamt: clearly offtopic, but do anybody know a quick and dirty way to run a command on a linux box just before the login-shell is shown? [11:51] SubStack: the login shell is configurable [11:52] SvenDowideit has joined the channel [11:55] adamt: SubStack++ [11:55] v8bot: adamt has given a beer to SubStack. SubStack now has 19 beers. [11:55] mlncn has joined the channel [11:55] adamt: laters. [11:55] stephank| has joined the channel [11:59] andy_dawson has joined the channel [11:59] astropirate has joined the channel [12:00] meso_ has joined the channel [12:00] sliver5555 has left the channel [12:02] NinjaFox1 has joined the channel [12:05] eee_c has joined the channel [12:05] xandrews has joined the channel [12:05] okuryu has joined the channel [12:06] stephank|: Has anyone tried to replicate the NPM registry? Futon on isaacs.couchone.com seems to be responsive, but my replication task is dead slow and errors frequently. [12:06] stephank|: Errors like "db_not_found", or "json_encode", or "http_request_failed". [12:10] skm has joined the channel [12:11] lukus has joined the channel [12:12] Utkarsh has joined the channel [12:12] mlncn has joined the channel [12:14] themiddleman has joined the channel [12:18] tiemonster has joined the channel [12:18] eee_c has joined the channel [12:20] shaunau has joined the channel [12:21] aho has joined the channel [12:23] dune has joined the channel [12:23] strmpnk has joined the channel [12:23] V1: stephank|: Maybe dl a backup first, and sync with the master later [12:24] V1: CouchDB replication isn't the best at a full sync [12:26] dnolen has joined the channel [12:29] Caceres has joined the channel [12:30] stephank|: V1: Sounds great! Where do I find a backup of the registry? [12:30] dnolen has joined the channel [12:33] piscisaureus_ has joined the channel [12:36] plainas: ok, my question originate a bit of language zealotery which is the kind of discussion i am not interested in... adam mentioned that node.js "promotes a way to separate things and make paralel executions possible" [12:36] plainas: could anyone explain me this in a bit more detail? [12:39] jetienne: plainas: this is about the async part. let me find the slides [12:40] JianMeng1 has joined the channel [12:40] jetienne: http://pfleidi.github.com/slides-async-nodejs cant find better :( [12:40] plainas: ok, thank you, brb [12:41] fly-away has joined the channel [12:41] adamt has joined the channel [12:42] baudehlo: the nice thing about node.js is everyone is writing async code. [12:42] jetienne: http://nodejs.org/#about plainas in this section, you got the motivation for events io. http://www.kegel.com/c10k.html http://bulk.fefe.de/scalable-networking.pdf [12:42] baudehlo: so it's just generally understood that libraries need to be async. [12:42] jetienne: plainas: and 2 slides deck + video [12:42] baudehlo: this was my problem writing the async version of qpsmtpd - none of the perl libraries really care about being async. [12:44] davidcoallier has joined the channel [12:44] eevin has joined the channel [12:45] asabil has joined the channel [12:45] adamt: yeah, being async from the beginning really must be easier for library developers, compared to rewriting a lot of modules for an already existing language. [12:45] JusticeFries has joined the channel [12:46] ph^ has joined the channel [12:47] dune: plainas: This article provides a couple simple analogy for understanding the benefits of event based i/o http://code.danyork.com/2011/01/25/node-js-doctors-offices-and-fast-food-restaurants-understanding-event-driven-programming/ [12:47] fumanchu182 has joined the channel [12:48] adamt has joined the channel [12:49] raphdg has joined the channel [12:49] arpegius has joined the channel [12:50] SeyZ has joined the channel [12:50] SeyZ: hello world o/ [12:51] Gregor has joined the channel [12:52] fangel has joined the channel [12:52] atiti has joined the channel [12:53] fairwinds has joined the channel [12:54] kal-EL_ has joined the channel [12:55] eee_c has joined the channel [12:56] sonyon has joined the channel [12:57] razvandimescu has joined the channel [12:59] xandrews has joined the channel [13:01] fusspawn: Hello SeyZ o/ [13:01] SeyZ: \o/ [13:04] fusspawn: Anyone got 30 seconds and like gameart/randomly generated spaceships? All you need is a modern webbrowser (websockets/canvas) [13:05] ph^ has joined the channel [13:05] zentoooo has joined the channel [13:07] dune: I like spaceships [13:07] unomi: fusspawn, url? [13:08] jlecker has joined the channel [13:08] jetienne: fusspawn: here [13:08] kriszyp has joined the channel [13:08] fusspawn: one sec, doing last push. [13:11] floby has joined the channel [13:11] fusspawn: http://testing.duostack.net:9980/pages/spacegen.html - Looks like hell i know, the spaceships rendered with a green box have been generated dynamicaly on your browser. the ones without have just been created by someone else. [13:11] j0shua has joined the channel [13:12] fusspawn: I see other spaceships <3 [13:12] shaunau has joined the channel [13:12] MarkMenard has joined the channel [13:12] jetienne: fusspawn: your work is the icon on top ? [13:13] jetienne: The Spaceships below are sent from the server in realtime as you are other web browsers are viewing this page and generating new spaceships. <- i don see anything below.. chrome stable [13:13] jetienne: correction i got them now. needed to relanch browser [13:13] fusspawn: Yup, Limited to 1/sec, there all saved as dataurls in a mongodb instance. intend to use them in a webgame. [13:13] shaunau: url? [13:14] fusspawn: http://testing.duostack.net:9980/pages/spacegen.html [13:14] shaunau: cheers [13:14] Shrink has joined the channel [13:14] Shrink has joined the channel [13:14] fusspawn: np, Gets me more art :P [13:14] jelveh has joined the channel [13:14] amacleod has joined the channel [13:14] malkomalko has joined the channel [13:15] fusspawn: I suck at drawing, And need a large amount of art for a project. I figured this was a good way to do it. [13:15] dune: fusspawn: seems to be working for me in Chrome and Safari. FF 3.6 not so much. Running OS X. [13:15] jetienne: fusspawn: what is the greensquare [13:16] fusspawn: Means its one your browser has created. [13:16] shaunau: sweet [13:16] fusspawn: @dune, Thanks ive only tested in chrome so far. [13:16] dune: Gotcha [13:16] shaunau: runs like a champ on my macbook air - safari [13:17] fusspawn: Neat, Im kinda happy. Im running it here on a netbook with no lag <3 [13:17] shaunau: i think "MY" spaceships look the best ;) [13:17] shaunau: way better than everyone elses.. [13:18] shaunau: good work fusspawn [13:18] joris_ has joined the channel [13:19] fusspawn: I cant take much of the credit, most of the hardwork was done for me. http://www.davebollinger.com/works/pixelspaceships/ "The Spaceship Generator Code" [13:19] eyesUnclouded has joined the channel [13:19] fusspawn: Most of my time was getting it running under processing.js and adding the websockets/backend/bigger window part. [13:20] fusspawn: Also, Processing.js is fast ;o [13:20] floby: runs fine on my EeePC running ubuntu 10.10 [13:20] floby: chromium [13:20] floby: I do get a lag every 5 seconds or so [13:20] shaunau: fusspawn - nothing wrong with that man, we all need to stand on the shoulders of others sometimes :) [13:21] fusspawn: Either way, Im supprised its not crashing. and i need caffine, brb [13:21] fusspawn: Cheers for testing all. [13:21] shaunau: floby - that's just your crappy machine :P [13:21] jmar777 has joined the channel [13:21] floby: shaunau: oh you [13:21] shaunau: heheh [13:21] fusspawn: netbooks can run it, even this horrid win7 one manages it ;p [13:21] shaunau: not to mention ubuntu.. right, ;) [13:21] floby: shaunau: Desmond is the best laptop I ever had, but it has had some problems lately with the Atom processor [13:22] shaunau: fusspawn - i was just takin the piss [13:22] Croms has joined the channel [13:22] floby: shaunau: you forgot to say that chromium is slower than chrome :D [13:23] shaunau: :) [13:23] shaunau: alright, time to go. later y'all :) [13:23] Gmcneill has joined the channel [13:24] futuredarrell has joined the channel [13:24] floby: netbooks can run pretty amazing things [13:24] floby: let me get a hand on the WebGL demo I saw yesterday [13:25] jmar777: not a node.js question per se, but are there any compelling reasons to always include a new line after a json response? i've seen some do it, and some don't. [13:25] floby: there it is http://helloracer.com/webgl/ [13:26] floby: jmar777: I do it. it's because JSON doesn't need newlines. so newlines can be used to separate different JSON objects [13:26] fusspawn: Three.js:242Error creating WebGL context. <3 I Hate winfails crappy intelgma drivers. [13:26] raphdg has joined the channel [13:26] pomodoro has joined the channel [13:28] mscdex: there's not enough room to back up to 88! [13:28] matschaffer has joined the channel [13:28] jmar777: floby: k. i have noticed when streaming multiple json objects to various clients (tested in multiple browsers and curl) that new lines were required for it to actually incrementally print the objects. otherwise it just waits til the connection closes [13:29] jmar777: floby: i was just wondering if there was a similar effect in certain situations with a single object as well [13:29] malkomalko: is there anyway to catch EPIPES? we're finding really randomly our streams are throwing that and I don't know how to catch it [13:30] strmpnk has joined the channel [13:30] GriffenJBS: malkomalko: can you pastebin code? [13:30] matschaffer has joined the channel [13:30] mscdex: jmar777: probably just the way it buffers json [13:31] malkomalko: one minute [13:31] floby: jmar777: it's technically possible to count the '{' and corresponding '}' but it's way easier to just wait for a newline [13:32] floby: fusspawn: awwwh, intel GMA :D [13:33] fusspawn: My othermachine is acient but at least had a nvidia 6800gt in it, but the processor is slower. Its a useless lose/lose situation >.> [13:33] floby: jmar777: not mentionning the possibility of getting incorrect json [13:34] mscdex: i used to have a 6800gt before i upgraded [13:34] floby: fusspawn: when I chose this laptop two of the criteria where, it must have a Atom processor, it must have a Nvidia ION [13:34] davidsklar has joined the channel [13:34] floby: I have a 8600gt on my desktop computer... close enough [13:34] mscdex: yuck, atom! [13:34] mscdex: :P [13:35] floby: mscdex: I was looking for a computer that cost less than 350€ (in France) [13:35] fusspawn: Ions where expensive when i got this. Gma 950 / Atom Something or other. [13:35] fusspawn: were* [13:36] floby: I looked at GMA too because most of the machine with ION were more expensive. But this 12" EeePC was a good deal. 326€ at the time. My only regret is that it only has 1Go of memory [13:37] fusspawn: Now to see if theres a processing runtime for android. Everything needs an android client. I swapped oit the 1gb stick for 2gb. Helped a ton. [13:37] jmar777: floby: ya - i wrote a json.org-compliant streaming json parser for framing an input stream a few months back... and then realized that it was already framed by new lines :\ [13:38] lessthanzero has joined the channel [13:38] jmar777: floby: not that it was a huge under taking, but at the end of the day i couldn't even justify using it cause of the overhead lol [13:39] lukegalea has joined the channel [13:39] shiawuentan has joined the channel [13:39] colinclark has joined the channel [13:40] floby: jmar777: it's pretty hard to stream json. the smallest division is the object, it can't get any smaller [13:40] kawaz_air has joined the channel [13:42] tktiddle has joined the channel [13:43] dans_ has joined the channel [13:44] mikl has joined the channel [13:44] mikl has joined the channel [13:46] dans_: I'm looking at experimenting with node, in particular some kind of flexible framework to build around....but there seems so many choices [13:46] squeeks: express. [13:46] dans_: is there one in particular which is rising above the others in terms of popularity? [13:47] floby: dans_: haha you got your answer before asking the question [13:48] dune: dans_:http://expressjs.com/guide.html [13:49] squeeks: dans_: hi, I can read your mind. Stop thinking about doing that to your co-worker, that's gross. [13:49] MattJ has joined the channel [13:49] dans_: heh [13:50] dans_: express it is :) thanks guys [13:52] eee_c has joined the channel [13:52] sirkitree has joined the channel [13:52] jasong_at_apache has joined the channel [13:52] jscheel has joined the channel [13:53] dans_: squeeks, you wouldnt say that if you'd seen my co-worker [13:53] met_ has joined the channel [13:55] rfay has joined the channel [13:56] matschaffer1 has joined the channel [13:56] dyer has joined the channel [13:56] Ori_P has joined the channel [13:57] floby: dans_: he did mention it was gross [13:58] hobs: heh [13:58] msilverman2 has joined the channel [13:58] davidwalsh has joined the channel [13:58] unlink has joined the channel [13:58] unlink has joined the channel [13:59] V1: Hi joris_ [13:59] luke`_ has joined the channel [13:59] liquidproof has joined the channel [14:00] msilverman2: Good morning all. We are using node 0.2.6 and will be for a little while longer. We're having a problem with request 1.2.0 where it is not letting go of socket connections. Over time, node gets jammed up because of all the open resources. So, I wanted to try going straight to http. Here's a gist: https://gist.github.com/870740 [14:00] joris_: Hallo Arnout :-) [14:00] eee_c1 has joined the channel [14:00] jscheel has left the channel [14:01] jscheel has joined the channel [14:01] msilverman2: It is working from the perspective of not leaking sockets, BUT every now and then we are seeing an "Error: EPIPE, Broken pipe" uncaught exception. [14:01] Hello71 has joined the channel [14:01] Hello71 has joined the channel [14:01] skiz has joined the channel [14:02] msilverman2: Has anyone out there seen anything like this? [14:02] mlncn has joined the channel [14:02] eevin has joined the channel [14:05] dans_: does nvm use any version control? so i dont have to sudo install everything [14:05] paulrobinson has joined the channel [14:05] paulrobinson has left the channel [14:06] gozala has joined the channel [14:06] boaz has joined the channel [14:06] ajashton has joined the channel [14:08] BillyBreen has joined the channel [14:10] ralphholzmann has joined the channel [14:11] ralphholzmann has joined the channel [14:11] petefoth has joined the channel [14:12] vipaca has joined the channel [14:12] vipaca has joined the channel [14:12] timmywil has joined the channel [14:14] Sorella has joined the channel [14:14] rawroland has left the channel [14:15] Croms has joined the channel [14:15] slip has joined the channel [14:15] slip has joined the channel [14:16] spicycode has joined the channel [14:16] hornairs has joined the channel [14:18] shruggar has joined the channel [14:18] riven` has joined the channel [14:18] ncb000gt has joined the channel [14:18] riven has joined the channel [14:19] mlangenberg has joined the channel [14:19] jwm has joined the channel [14:20] davidwalsh has joined the channel [14:20] brianc_home has joined the channel [14:21] ply has joined the channel [14:21] brianc_home has left the channel [14:22] d0k has joined the channel [14:22] mavin|gone has joined the channel [14:23] Know1edge1 has joined the channel [14:23] softdrink has joined the channel [14:25] brianc has left the channel [14:25] piscisaureus_: ACTION beep [14:25] Know1edge1: morning guys [14:25] Know1edge1: Anyone recommend a good book on node? [14:26] petefoth has left the channel [14:26] eee_c has joined the channel [14:27] DoNaLd`: Know1edge1: there no exist book about node .. this is still beta development platform .. so it is not clear defnitive format of version 1.0 [14:27] floby: I think someone is writing one at Joyent though [14:28] mikegerwitz: sh1mmer is writing one..not sure if the draft is available yet [14:28] Horofox has joined the channel [14:28] Epeli has joined the channel [14:29] jtsnow has joined the channel [14:29] Poetro has joined the channel [14:30] nefariousD: can anyone recommend a decent web based project management app/system? preferably open source or something with a free option.. maybe similar to basecamp [14:31] ako has joined the channel [14:31] unomi: assembla.com [14:32] unomi: nefariousD, free for opensource projects etc [14:32] Ori_P has joined the channel [14:33] baudehlo has joined the channel [14:33] Know1edge1: nefariousD: I use projectpier [14:35] jano has joined the channel [14:36] nefariousD: ok cool, thanks guys [14:36] matjas has joined the channel [14:38] skyler_brungardt has joined the channel [14:39] piscisaureus_: Know1edge1: DoNaLd`: http://ofps.oreilly.com/titles/9781449398583/index.html [14:39] mikegerwitz: piscisaureus_: That's the one I was looking for :) thanks [14:39] Know1edge1: thanks piscisaureus_ [14:41] bentruyman has joined the channel