[00:00] crackns_ has joined the channel [00:00] SteveDekorte: anyone get node-tokyocabinet compiled with latest node on OSX 10.7.2? [00:00] context: wow. [00:00] justmoon: SteveDekorte, try my fork: https://github.com/justmoon/node-tokyocabinet/tree/buildfix [00:00] justmoon: note that it's branch buildfix [00:00] justmoon: not master [00:01] jGoods has joined the channel [00:01] SteveDekorte: "From https://github.com/justmoon/node-tokyocabinet [00:01] SteveDekorte: * branch HEAD -> FETCH_HEAD [00:01] SteveDekorte: Already up-to-date" [00:01] justmoon: branch buildfix [00:01] context: ACTION tries for fun [00:02] liar has joined the channel [00:02] context: npm ERR! 404 'node-tokyocabinet' is not in the npm registry. [00:02] context: considering it doesnt exist no. [00:02] gtramontina has joined the channel [00:02] tanepiper: hrmm https://twitter.com/#!/__DavidFlanagan/status/139130984317718528 [00:02] rchavik has joined the channel [00:02] tanepiper: did 0.5 use a canary branch of v8? [00:02] SteveDekorte: justmoon: same error [00:03] justmoon: can you post the whole error in a pastebin? [00:03] context: stevedekorte: that hasnt been touched since 2010. im surprrised if it works with 0.6 at all. [00:03] ritch has joined the channel [00:03] hubba has joined the channel [00:03] justmoon: context, I ran the examples successfully with 0.6 [00:04] context: i see Kyoto Cabinet libs [00:04] ritch has left the channel [00:04] context: honestly i kind of figured tokyo cabinet was dead :/ [00:04] jbrokc_ has joined the channel [00:04] SteveDekorte: context: do they work? [00:05] context: i dont know [00:05] stantona has joined the channel [00:05] justmoon: SteveDekorte, tested them too, they are worse than the ones for tokyocabinet [00:05] context: kyoto-client , toji, kyoto [00:05] context: BUT you see they are actually in npm [00:05] justmoon: I ended up using leveldb [00:05] context: with release version #'s [00:05] context: not abandoned [00:05] Carter has joined the channel [00:05] justmoon: had to fix tons of segfaults in that too [00:05] lightcap has joined the channel [00:05] justmoon: https://github.com/justmoon/node-leveldb/commits/fix_n_update [00:06] SteveDekorte: context: this project is starting to feel like building a kit car with random untested components :) [00:07] context: id ask why you chose tokyo cabinet [00:08] SteveDekorte: context: was the only working BDB style binding I could find at the time [00:08] justmoon: ACTION feels ignored [00:08] SteveDekorte: context: has that changed? [00:08] context: hardly a reason to pick something :/ [00:08] squeeks has joined the channel [00:08] bartt has joined the channel [00:09] context: and thats not what i asked [00:09] colinclark_ has joined the channel [00:09] SteveDekorte: context: ah, did you mean which buzzword it was compliant with? ;) [00:09] squeeks: okay, var buf = new Buffer(yadda); typeof buf ends up returning 'object' ... soo... uhh... how do I find out whatever arg passed to me is actually a buffer without some eval or exception handling? [00:09] harthur has joined the channel [00:09] justmoon: SteveDekorte, can you post the whole error you're getting when compiling my branch on your system? [00:10] context: i mean why tokyo cabinet, did you start this project with node 0.1 or something [00:10] justmoon: they stuff you posted is just waf bailing out , the actual errors should be right before that [00:10] SteveDekorte: context: my project requires a minimal persistent btree API with transactions and cursor support [00:10] context: tokyo cabinet hasn't been touched in over a year, and there are plenty better options im sure [00:10] context: sqlite? [00:10] justmoon: SteveDekorte, then use LevelDB [00:10] context: or level [00:10] squeeks: kyoto cabinet? [00:11] mandric has joined the channel [00:11] justmoon: SteveDekorte, do you need binary safe or just strings [00:11] SteveDekorte: justmoon: binary safe values (but not keys), does it support cursors? transactions? [00:12] SteveDekorte: also, it must be a direct binding API, not networked based [00:12] justmoon: SteveDekorte, yes, leveldb supports both [00:12] context: do i wanna know what this is for :x [00:12] Lingerance: squeeks: buff instanceof Buffer [00:12] squeeks: ta [00:12] SteveDekorte: I really don't want to rewrite all my code right now [00:12] squeeks: also Buffer.isBuffer() etc etc [00:13] squeeks: SteveDekorte: unrelated, thanks for io. [00:13] SteveDekorte: my only reason to update node was to get RSA support [00:13] squeeks has left the channel [00:13] SteveDekorte: squeeks: you're welcome :) [00:14] DrHeiter23 has joined the channel [00:14] jbrokc_ has joined the channel [00:14] SteveDekorte: justmoon: have you tested leveldb and the node binding for it with the latest node on OSX 10.7.2? [00:15] stantona has joined the channel [00:15] justmoon: leveldb works on mac - if the binding doesn't work, file a bug and I'll fix it [00:15] chrixian has joined the channel [00:16] DrHeiter23: If I set a error handler on http.request call: req.on('error',function(e) { } ); How do I handle/suppress the error so that it doesn't crash my app? In this case it's a ParseError [00:16] justmoon: SteveDekorte, the node-tokyocabinet problem you're having would be fixed by now, if you'd posted the error you're getting >.> [00:17] zackattack has joined the channel [00:18] SteveDekorte: huh, so I ran "sudo make uninstall" but node 0.6.2 is still installed (also ran "sudo port uninstall node") [00:18] ekryski has joined the channel [00:19] shanebo has joined the channel [00:19] ryah: SteveDekorte: still working on that segfault? [00:19] SteveDekorte: and "whereis node" on osx doesn't work :) [00:19] ryah: SteveDekorte: you need to recomile the binding [00:19] jxson has joined the channel [00:19] gregpascale has joined the channel [00:20] SteveDekorte: ryah: yeah, that produced an error too [00:20] ryah: `which node` [00:20] ryah: what error? [00:20] SteveDekorte: ryah: I posted it [00:20] dilvie: hi ryah [00:21] diogogmt has joined the channel [00:21] SteveDekorte: ryah: then a few folks said not to use tokyocabinet but they couldn't say if the alternatives actually worked either :) [00:21] ryah: mjr_: regarding binary version mismatch - we should do that eventually [00:22] ryah: SteveDekorte: can you do "node-waf build -v" [00:22] dilvie: I'm writing a book on JavaScript application development for O'Reilly. I'm going to discuss developing RESTful API's with Node. Any suggestions on frameworks or best practices I should mention? [00:23] SteveDekorte: ryah: where? [00:23] tjholowaychuk: dilvie there's pretty much "request" and https://github.com/visionmedia/superagent [00:24] ryah: SteveDekorte: in the tokyocabinet folder [00:24] tjholowaychuk: as well as node's core http api of course [00:24] brion_ has joined the channel [00:24] mehlah has joined the channel [00:25] jbrokc_ has joined the channel [00:25] jrmiller has joined the channel [00:25] dilvie: yeah. =) [00:26] SteveDekorte: ryah: I'm reverting to node 0.2.x (or whatever mac ports has) [00:26] DrHeiter23: if a request made with "request" module emits an error, how can my project listen for it? The callback to request(url,function(err,response,body){}); isn't enough if there's an error still crashes the thread :/ [00:26] dilvie: that ferret on the superagent page is freaking me out a little. Not gonna lie. [00:27] hotch has joined the channel [00:27] tjholowaychuk: dilvie haha that's my ferret ewald [00:28] SteveDekorte: nice marmot [00:28] CIA-109: node: 03Ryan Dahl 07npm-msi * r451d61c 10/ (4 files in 2 dirs): WIP. Support installing npm in the .msi - http://git.io/QeJJHg [00:28] CarterL has joined the channel [00:29] hotch: hey guys, our nyc funded startup is looking to hire a few good developers. i'm obviously not a recruiter if you've seen me here. i've just noted that job boards aren't the type of spot to grab a node dev. msg me - [00:30] chrislorenz has joined the channel [00:30] dilvie: tjholowaychuk ewald is cool. =) [00:30] tjholowaychuk: :D [00:30] dilvie: tjholowaychuk: and the superagent API is a big improvement over jQuery's AJAX API. [00:30] dilvie: Nice work. [00:31] tjholowaychuk: still needs some love with test cov & finishing up the api but it's getting there [00:31] gavin_huang has joined the channel [00:31] SteveDekorte: justmoon: btw "Waf: Leaving directory `/Users/steve/github/node-leveldb/build' Build failed: -> task failed (err #1): {task: cxx DB.cc -> DB_1.o} -> task failed (err #1): {task: cxx Iterator.cc -> Iterator_1.o}" [00:31] dilvie: I think I'll build a rest abstraction on top of that, which will automatically match up REST actions with the corresponding correct verbs (lots of devs get confused about which verbs to use for which actions). [00:32] eignerchris has joined the channel [00:33] shedinja has joined the channel [00:34] jbrokc_ has joined the channel [00:41] hotch: I have a nice REST abstraction, but yeah inflection is "tricky" at best [00:41] AvianFlu has joined the channel [00:42] dilvie: tjholowaychuk: what are the holes in the superagent api? [00:42] tjholowaychuk: some of the node parts are not complete [00:43] tjholowaychuk: multipart etc isnt 100% done [00:43] tjholowaychuk: i cant decide on the (err, res) vs (res) signature either. on the client it would be nicer to have (res) [00:43] k1ttty has joined the channel [00:44] kmiyashiro has joined the channel [00:44] jbrokc_ has joined the channel [00:45] kmiyashiro: WTF [00:45] kmiyashiro: are RegExp's supposed to alternate their results if you re-use them? [00:45] tjholowaychuk: with /g yeah [00:45] catshirt has joined the channel [00:46] kmiyashiro: dammit [00:46] tjholowaychuk: you can reset re.lastIndex to 0 [00:46] dilvie: hotch: what's your REST abstraction? is it on github? [00:46] JaKWaC has joined the channel [00:47] hotch: https://github.com/ingklabs/blueprint/blob/master/lib/controllers.js [00:47] postwait has joined the channel [00:47] hotch: it works over mongoose data models, it isn't "in-use" but is nice, just trying to figure out how to use it on a non-api-server-type-setup and arbitrarily add in middleware auth [00:48] stantona has joined the channel [00:49] crackns has joined the channel [00:49] devongovett has joined the channel [00:50] satyr has joined the channel [00:50] dilvie: how tightly coupled is it to the data store? Would it be easy to use it from the client side, or swap out the data store? [00:51] hotch: totally easy. [00:52] hotch: right now it was just a test. the framework is just coupled (semi tightly) to my current startups app. decoupling in 5.. 4…3.. :P [00:52] hotch: if you're interested i'd love a pull request, hah! [00:52] hotch: Solidifying the api with a few others, then building our scaffolding. [00:54] dilvie: Hotch: String.prototype.routify? =) [00:54] SubStack: my apps barely have data stores usually [00:54] hotch: haha [00:54] hotch: dilvie: isn't it funny though? [00:55] redsofa has joined the channel [00:55] jbrokc_ has joined the channel [00:55] dilvie: hotch: it's gangster. [00:55] hotch: see node is awesome, SubStack , tjholowaychuk have both contributed super dope items - [00:55] dilvie: SubStack: Lots of apps store data. I wish I could think of a way to build every app without a datastore, but I'm not that brilliant. =) [00:55] hotch: but i just spent 3 months building out our first app. i know the use cases for node and this was one of them, but frameworks! [00:56] SubStack: dilvie: I like to shove off the data store problem to dnode services or couch [00:56] dilvie: oh yeah, totally.. I didn't mean you should try to implement a datastore in your app! =) [00:56] seebees has joined the channel [00:56] dilvie: just *USE* one. =) [00:57] SubStack: yes but I mean models or whatever [00:57] SubStack: I don't like those in the main app [00:58] dilvie: SubStack: I could see that. =) [00:58] SubStack: easier to have those live in a separate service stitched together with rest or dnode [00:58] dilvie: SubStack: certainly a legitimate approach. [00:58] hotch: SubStack: total dnode plug :P [00:59] hotch: SubStack++ [00:59] catb0t: SubStack now has 1 beer [00:59] jryans has joined the channel [00:59] secoif has joined the channel [00:59] SubStack: hotch: or a couchdb plug, since that's how it works too [00:59] JakeyChan has joined the channel [01:00] hotch: SubStack: i was just talking about couch with maxogden earlier / i love mongoose but couch seems (dare i admit it?) superior [01:01] Juan77 has joined the channel [01:01] SubStack: hotch: I haven't messed with mongo but couch is nice for some things [01:02] hotch: it seems so - [01:02] SubStack: like if I have a stream of documents and just want to save them for later [01:02] SubStack: I can just request.put() them to couch [01:02] SteveDekorte has joined the channel [01:02] SteveDekorte has left the channel [01:02] zivester has joined the channel [01:03] hotch: yeah, seems nicd [01:03] hotch: nice* [01:03] lyte has joined the channel [01:04] SteveDekorte has joined the channel [01:04] SteveDekorte: hm, so now ports has node 0.6.2 and nothing works :) [01:04] tommyvyo has joined the channel [01:05] jsurfer has joined the channel [01:06] gtramontina has joined the channel [01:06] SteveDekorte: ryah: guess I need to try to get that tokyocabinet binding working with node0.6.2 - what was your suggestion? [01:06] dexter_e has joined the channel [01:06] ryah: SteveDekorte: need to see the compilation error - then i'll tell you [01:06] SteveDekorte: ryah: http://www.iolanguage.com/paste/p/05fdf0ecd.html [01:08] ryah: SteveDekorte: somewhere you're calling eio_custom and the function pointer your giving it in the second to last argument had its signature changed [01:08] lzskiss has left the channel [01:08] ryah: (apparently) [01:08] enmand has joined the channel [01:08] tjholowaychuk: SteveDekorte https://github.com/LearnBoost/node-canvas/blob/master/src/Canvas.cc#L132 [01:08] ryah: er [01:08] ryah: argumetn 1 [01:08] ryah: return value needs to be int [01:08] Me1000 has joined the channel [01:09] SteveDekorte: ryah: I'm just running $ node-waf configure build [01:11] ryah: SteveDekorte: https://github.com/edvakf/node-tokyocabinet/blob/bcff730e6cc0d05bd88e80da32033b534643eb91/src/tokyocabinet.cc#L124 [01:11] ryah: SteveDekorte: change int to void there? [01:11] TooTallNate: tjholowaychuk: we're gonna wanna update that once we wanna add windows support to node-canvas [01:11] TooTallNate: i have a shim [01:11] TooTallNate: https://gist.github.com/1368935 [01:12] tjholowaychuk: boo windows [01:12] TooTallNate: SteveDekorte: you could use this too, if you dared ^ [01:12] Wa has joined the channel [01:13] SteveDekorte: ryah: http://www.iolanguage.com/paste/p/ea7f8f514.html [01:13] TooTallNate: SteveDekorte: you have to remove the return value [01:13] TooTallNate: since it now returns void [01:13] TooTallNate: (the shim handles that for you) [01:13] CIA-109: node: 03isaacs 07v0.6 * r3ab15cd 10/ (139 files in 50 dirs): Update npm to 1.1.0-alpha-2 - http://git.io/QR-RwA [01:14] SteveDekorte: TooTallNate: that worked (for the build) [01:15] TooTallNate: ;) [01:15] interrupt has joined the channel [01:16] SteveDekorte: cool - vertex seems to run on node 0.6.2 now, just getting the warning "The "sys" module is now called "util". It should have a similar interface." [01:17] SteveDekorte: thanks guys [01:17] chrislorenz has joined the channel [01:17] ryah: SteveDekorte: cool - that wasn't so bad [01:17] ryah: i wonder why eio changed the sig of that function... [01:17] SteveDekorte: ryah: now to see if the rsa stuff works :) [01:18] zorzar_ has joined the channel [01:19] TooTallNate: ryah: i wonder that too [01:19] Tricky_ has joined the channel [01:20] hydrozen has joined the channel [01:20] SteveDekorte: node-crypto : Unknown cipher rsa :[ [01:22] SteveDekorte: was RSA support only added for signatures? [01:26] SteveDekorte: anyone here gotten node-nacl to work? [01:28] ryan_stevens has left the channel [01:28] shanebo has joined the channel [01:28] brianseeders has joined the channel [01:31] ditesh|cassini has joined the channel [01:31] diogogmt has joined the channel [01:31] Emmanuel has joined the channel [01:31] aheckmann has joined the channel [01:35] josephg has joined the channel [01:36] sdwrage has joined the channel [01:36] davida has joined the channel [01:37] sancas has joined the channel [01:37] bwinton has joined the channel [01:37] scottschecter has joined the channel [01:38] trotter has joined the channel [01:39] franksalim has joined the channel [01:39] harthur has joined the channel [01:40] ryanfitz has joined the channel [01:40] luoluoluo has joined the channel [01:43] jbrokc_ has joined the channel [01:43] raincole has joined the channel [01:45] CIA-109: node: 03Ryan Dahl 07npm-msi * r46cbe6e 10/ (4 files in 2 dirs): WIP. Support installing npm in the .msi - http://git.io/2fgBmw [01:45] CIA-109: node: 03Ryan Dahl 07npm-msi * r4e9372d 10/ (tools/msvs/msi/nodemsi.wixproj vcbuild.bat): Correctly replace NPMSourceDir - http://git.io/0BHsXA [01:48] Croms has joined the channel [01:49] binaryjohn has joined the channel [01:50] sir_tyrion has left the channel [01:52] diogogmt has joined the channel [01:53] jbrokc_ has joined the channel [01:53] josephg: maxogden: you pop up everywhere [01:54] josephg: you were just mentioned in a blog post linked on hackernews [01:54] xeodox: Can someone help me with Node-supervisor (who has used it before?) [01:54] jtsnow has joined the channel [01:54] meso has joined the channel [01:56] davidbanham has joined the channel [01:57] lyte_ has joined the channel [01:57] meso has joined the channel [01:57] davidbanham: Given a date at the start of a month eg: Date.parse("1 nov, 2011"); is there a neat way to get the date at the end of that month? Date.parse("1 nov, 2011 + 1 month"); in an ideal world? [01:57] harthur has joined the channel [01:58] xerox: you could add days until getMonth changes [01:58] xerox: or add 28 of them and then one by one :) [01:59] mjr_: I just wrote that the other day, all I could figure out was to keep adding a day and convert that back into a date, then wait until getMonth rolled over [01:59] yuwang has joined the channel [01:59] mjr_: seemed really ugly [02:00] CIA-109: node: 03Ryan Dahl 07v0.6 * re5cf3f9 10/ (4 files in 2 dirs): Fixes #2083. Support installing npm in the .msi - http://git.io/Bnq70Q [02:00] josephg: can't you just setMonth(date.getMonth() + 1) ? [02:00] davidbanham: Yeah, not super pretty but probably nicer than my first idea of just { jan: 31, feb, 31 } etc. [02:01] icewhite has joined the channel [02:01] josephg: you'd have to test what happens in december… [02:01] saikat has joined the channel [02:01] mjr_: I wonder if you can do a negative day [02:01] mjr_: oh, you can [02:01] neurodrone has joined the channel [02:02] zivester has joined the channel [02:03] Kunda has joined the channel [02:03] lwille has joined the channel [02:03] konobi: there's some libraries around that let you do sane-ish ways of doing a lot of that sort of stuff [02:03] jbrokc_ has joined the channel [02:03] hydrozen has joined the channel [02:04] idl3 has joined the channel [02:06] davidbanham: mjr_: December + 1 seems to be handled just fine, cheers. [02:07] jocafa has joined the channel [02:07] JakeyChan has joined the channel [02:07] BillyBreen has joined the channel [02:07] mjr_: nice [02:08] JakeyChan_ has joined the channel [02:08] lyte has joined the channel [02:11] rchavik has joined the channel [02:12] diogogmt has joined the channel [02:13] neoesque has joined the channel [02:14] jbrokc_ has joined the channel [02:15] yuwang has joined the channel [02:17] codygray has joined the channel [02:17] CIA-109: node: 03Ryan Dahl 07v0.6 * r055a933 10/ vcbuild.bat : Add exe and msi signing to vcbuild.bat - http://git.io/FR7lzA [02:19] zackattack: Any tutors around? [02:21] mandric_ has joined the channel [02:22] mjr_: never know until you ask your question [02:23] yuwang_ has joined the channel [02:24] jbrokc_ has joined the channel [02:24] torm3nt has joined the channel [02:25] Croms has joined the channel [02:26] jesster7 has joined the channel [02:26] interrupt has joined the channel [02:27] xeodox_ has joined the channel [02:27] jesster7 has left the channel [02:28] JakeyChan has joined the channel [02:29] yogurt_truck has joined the channel [02:29] Carter has joined the channel [02:29] xeodox__ has joined the channel [02:31] diogogmt has joined the channel [02:32] Murvin has joined the channel [02:32] mandric has joined the channel [02:33] jwill has joined the channel [02:34] jbrokc_ has joined the channel [02:34] zackattack: i'm looking for someone to walk me through an app and get me up to speed on it. it's kind of complicated, so i'd like someone to help me break it down [02:34] jwill: i have forked child process where i want to pass a mongo db connection from the parent. what is the best approach? [02:34] jrogers_ has joined the channel [02:35] Murvin: I am facing a problem with Http.request with POST method. I have a node Program that send a POST request to a NOde.js Server. and I write data in the request, e.g. request.write('mydata\n'); However, in my Node.js Server, I don't see the data "mydata" in my req.body. [02:35] Murvin: req.body is empty..and nowhere in teh req object has "mydata". hmmm [02:36] deoxxa: Murvin: http connections aren't buffered in node [02:36] Murvin: deoxxa: what do u mean by that? [02:37] deoxxa: Murvin: you'll want to use something like `request.on("data", function(chunk) { do_something_with_data(chunk); });' - or use something like express that can take care of that for you [02:37] Murvin: yes.. i m using that. [02:37] Murvin: i m using express. [02:38] Murvin: ok..let's put it this way.. my node program send out POST or GET requests without any problem. [02:38] deoxxa: ah, ok. you didn't mention that at first. [02:38] Murvin: oh...:D [02:38] deoxxa: are you using express.bodyParser or anything like that? [02:38] Murvin: so.. eay.. so,. If I put my data in the url query, e.g. subject=ABCDE in both GET and POST, it works. [02:39] dgathright has joined the channel [02:39] Murvin: but if I want to put the data in the POST body, I use the http.clientRequest .write('mydata\n'); and it doesn't seems to work. [02:39] Murvin: yes.. i m using express.bodyParser. [02:39] harthur has joined the channel [02:39] deoxxa: ok, bodyParser will take over req.body [02:40] Murvin: weird thing is.. i have another call., which send out XML data, and no problem... [02:40] deoxxa: so you have to choose one or the other [02:40] deoxxa: you either want the body to be parsed, or you don't [02:40] adwong has joined the channel [02:40] deoxxa: or you can use it per-url by putting it before your callback [02:40] Murvin: Hmmm in my POST, i would like to send out the data like that: http.clientRequest .write('subject=TEST&message=123131321'); [02:41] deoxxa: i.e. app.post("/something", express.bodyParser, function(req, res) { ... }); [02:41] Murvin: hmm i have tested it already.. I don't see any data in body.. :( [02:41] Murvin: I even search for the req boject.. [02:43] davidascher has joined the channel [02:43] jbrokc_ has joined the channel [02:44] SteveDekorte has left the channel [02:44] interrupt has joined the channel [02:44] Murvin: hmm. i m trying explicitly putting express.bodyParser.. hmm [02:44] JakeyChan_ has joined the channel [02:44] diogogmt has joined the channel [02:45] baudehlo has joined the channel [02:45] jwill: any thoughts around passing a mongodb connection to a child process? [02:46] deoxxa: jwill: it doesn't really work that way [02:46] deoxxa: jwill: why not pass the connection details to the process and let it connect on its own? how are you communication between them already? [02:46] deoxxa: erm [02:47] deoxxa: s/communication/communicating/ [02:47] jwill: new to mongodb thought there was no connection pooling [02:47] jwill: i forked the process using messages [02:48] Murvin: deoxxa: putting express.bodyParser fail the call [02:49] Murvin: by the wya, is it the right way to send POST body? [02:49] Murvin: clientRequest.write('my body \n'); [02:53] igl has joined the channel [02:54] mcluskydodallas has joined the channel [02:54] satyr has joined the channel [02:55] jGoods has joined the channel [02:56] jtsnow has joined the channel [02:56] lyte_ has joined the channel [02:58] sdwrage has joined the channel [03:05] diogogmt has joined the channel [03:09] MUILTFN has joined the channel [03:09] storrgie has joined the channel [03:10] amigojapan has joined the channel [03:10] codygray has joined the channel [03:12] stantona has joined the channel [03:13] fairwinds: mde: ping [03:13] incon_ has joined the channel [03:13] bingomanatee_ has joined the channel [03:13] zivester has joined the channel [03:13] jbrokc_ has joined the channel [03:14] Destos has joined the channel [03:16] mnutt has joined the channel [03:21] xeodox: How do I create an md5 hash ? crypto.createHash('md5', 'stufffff'); [03:21] xeodox: That doesn't work ? ^ [03:22] AAA_awright: xeodox: http://nodejs.org/docs/latest/api/all.html#crypto.createHash [03:22] mike5w3c_ has joined the channel [03:23] co_dh has joined the channel [03:23] AAA_awright: And the next two headers hash.update() and hash.digest(encoding) [03:23] co_dh: wow, there are more people here than javascript, lol [03:23] k1ttty has joined the channel [03:23] devaholic has joined the channel [03:23] AAA_awright: xeodox: You can call hash.update as many times as necessary to append data, you can only call hash.digest once [03:24] jbrokc_ has joined the channel [03:24] xeodox: oh [03:24] CIA-109: node: 03Ryan Dahl 07v0.6 * rb906e85 10/ (3 files in 2 dirs): Fixes #2076. Add logos to MSI - http://git.io/AICQWw [03:25] xeodox: AAA_awright: if I want the md5 of a string….is it hex, binary, or base64? [03:26] mandric has joined the channel [03:26] bulatshakirzyano has joined the channel [03:27] dr0id has joined the channel [03:28] tomlion has joined the channel [03:28] ryah: For windows users who want to try out the latest: http://nodejs.org/dist/v0.6.3/node-v0.6.3-rc2.msi [03:28] ryah: ^-- unofficial release [03:29] ryah: the real release will come on friday [03:29] MatthewS has joined the channel [03:30] gregpascale has joined the channel [03:31] AAA_awright: xeodox: You're providing a Buffer object or what (new Buffer).toString() would output [03:31] SteveDekorte has joined the channel [03:31] AAA_awright: It's not any serialization [03:32] xeodox_ has joined the channel [03:33] jbrokc_ has joined the channel [03:34] seebees has left the channel [03:34] xeodox has joined the channel [03:35] MattZTexasu has joined the channel [03:36] interrupt has joined the channel [03:36] MattZTexasu has left the channel [03:36] creationix has joined the channel [03:38] DSHAW_ has joined the channel [03:39] Swimming_Bird has joined the channel [03:40] githogori has joined the channel [03:41] SteveDekorte has joined the channel [03:44] jbrokc_ has joined the channel [03:44] Murvin: deoxxa: find out the problem.. content-type... application/x-www-form-urlencoded in order to parse.. [03:46] nicholasf has joined the channel [03:48] jerrysv has joined the channel [03:48] secoif has joined the channel [03:50] bulatshakirzyano has joined the channel [03:52] tommyvyo has joined the channel [03:53] blaenk has joined the channel [03:53] blaenk has joined the channel [03:54] slajax has joined the channel [03:54] MatthewS has joined the channel [03:55] jaequery has joined the channel [03:55] jbrokc_ has joined the channel [03:56] torm3nt has joined the channel [03:56] davidedwardclark has joined the channel [03:57] kmiyashiro has joined the channel [03:57] davidedwardclark has joined the channel [03:59] lyte has joined the channel [04:00] davidedwardclark: Flatiron ftw [04:01] buttface has joined the channel [04:04] k1ttty has joined the channel [04:04] eephillip has joined the channel [04:05] jbrokc_ has joined the channel [04:07] lightcap has joined the channel [04:10] diogogmt has joined the channel [04:13] luke`_ has joined the channel [04:15] MatthewS has joined the channel [04:16] perezd_ has joined the channel [04:16] jtsnow has joined the channel [04:16] jacobolus has joined the channel [04:17] baudehlo has joined the channel [04:18] meso has joined the channel [04:19] yuwang has joined the channel [04:21] dshaw_ has joined the channel [04:21] creationix has joined the channel [04:22] jbrokc_ has joined the channel [04:23] brokenjames has joined the channel [04:23] racar has joined the channel [04:23] tomlion has joined the channel [04:26] harth has joined the channel [04:26] JakeyChan has joined the channel [04:26] dexter_e has joined the channel [04:26] skunkape has joined the channel [04:28] descipher has joined the channel [04:28] ryanfitz has joined the channel [04:29] caffine has joined the channel [04:31] _baton_ has joined the channel [04:31] VooDooNOFX has joined the channel [04:32] xeodox: Does anyone here use node-mysql on a regular basis? [04:33] dingomanatee: ping tjholowaychuk [04:34] scttnlsn has joined the channel [04:34] xeodox: dingomanatee: i asked him. he says he doesn't use it at all [04:34] dingomanatee: i want him for my own purposes [04:36] ruzu: recognizing that node has it's perks, how much would you say that the language itself is a benefit? would it have been as popular if it was largely feature-identical but used a different language? [04:36] diogogmt has joined the channel [04:36] mjr_: there have been evented IO frameworks in most other languages. [04:36] JaKWaC has joined the channel [04:37] ruzu: i.e., if it had been node.lua for example [04:37] wojohowitz has joined the channel [04:37] ChrisPartridge: xeodox: whats the issue? [04:37] SubStack: ruzu: javascript programmers are already sort of used to event-driven programming so that's handy [04:37] mjr_: there are probably people who want the lua + node [04:37] xeodox: hey ChrisPartridge , have you ever used node-mysql's "escape"? [04:37] SubStack: and there's not much synchronous legacy code and libraries that get in the way [04:38] ChrisPartridge: xeodox: indirectly used, yep [04:39] xeodox: ChrisPartridge: OK, 1 sec. Let me show u the problem [04:40] secoif has joined the channel [04:40] marcello3d has joined the channel [04:40] JakeyChan_ has joined the channel [04:40] xeodox: ChrisPartridge: http://pastebin.com/iaNkNBQp …is this the correct way to escape something? [04:42] ChrisPartridge: xeodox: Looks OK to me [04:43] xeodox: ChrisPartridge: that would eliminate any potential SQL Injection attacks, right? [04:43] Destos has joined the channel [04:43] marcello3d has joined the channel [04:44] ChrisPartridge: xeodox: I can't guarantee anything, but according to the lib - yes [04:44] briancray has joined the channel [04:45] cha0s has joined the channel [04:45] cha0s has joined the channel [04:45] xeodox: ChrisPartridge: ahh ok thanks! It just looks a little too easy or something [04:45] pixel13 has joined the channel [04:46] pixel13 has left the channel [04:46] co_dh has joined the channel [04:47] xeodox: ChrisPartridge: do you know about the question mark problem? [04:47] akihito_s has joined the channel [04:52] Aria has joined the channel [04:54] Typo has joined the channel [04:54] ChrisPartridge: xeodox: Question mark problem? [04:57] lyte has joined the channel [04:57] lyte has joined the channel [05:00] richardr has joined the channel [05:00] yuwang has joined the channel [05:01] richardr: As a boilerplate/application framework, are their any better alternatives to expressling that are actively developed and have minimal dependencies? [05:04] xeodox: ChrisPartridge: in node-mysql, when you have a "?" , it acts as a substitute for the data…but what if the data itself has a question mark in it? [05:04] xeodox: do u know what i mean? [05:06] gabaug has joined the channel [05:07] ryan[WIN] has joined the channel [05:10] ChrisPartridge: xeodox: That should not be an issue [05:10] shanebo has joined the channel [05:11] xeodox: why? [05:11] xeodox: what about this? https://github.com/felixge/node-mysql/issues/118 [05:11] JmZ_ has joined the channel [05:13] ChrisPartridge: xeodox: In that example, it can be remedied by making the 'wtf?' text in the query a parameter [05:13] xeodox: var data = ['wtf?'] … like that? [05:14] ChrisPartridge: mysql.query("SELECT * FROM ponies WHERE emotion = ? AND id = ?", ['wtf?', 1]) [05:15] xeodox: hmmm interesting [05:16] xeodox: what about 'SELECT * FROM ponies WHERE emotion = ' + the_string [05:16] richardr: specifically, something with locale support ;) [05:16] k1ttty has joined the channel [05:16] xeodox: would a concatenation break it? [05:16] ChrisPartridge: Most likely [05:16] xeodox: ahh i see. [05:16] jtsnow has joined the channel [05:17] adwong has joined the channel [05:19] xeodox: thanks Chris! [05:19] ChrisPartridge: xeodox: If it was really giving you trouble, it would be quite easy to change it to something more defined - m.query('SELECT * FROM test WHERE field=[param]', {param: 'a'}) for example [05:19] dnjaramba has joined the channel [05:19] Aria: Is there a problem with quoted placeholders? [05:20] rauchg has joined the channel [05:21] selljamhere has joined the channel [05:21] natebeck has joined the channel [05:21] natebeck has left the channel [05:22] junaid has joined the channel [05:22] selljamhere: Hey all. Has anyone tried installing node on CentOS lately? When using yum, a 404 error sticks, saying "Cannot find a valid baseurl for repo: nodejs-stable". Any thoughts? [05:23] ChrisPartridge: selljamhere: build it from source [05:23] codygray has joined the channel [05:25] tahu has joined the channel [05:26] koo4 has joined the channel [05:27] jaequery has joined the channel [05:27] CiRlE has joined the channel [05:27] davidascher has joined the channel [05:28] sreeix has joined the channel [05:30] richardr: What is the best way at the moment to handle translations/localization in express/node.js ? [05:31] richardr: With minimal dependencies and abstraction, but a fast data store (memory, mongodb ?) [05:33] hi has joined the channel [05:33] hi: hi [05:33] hi: anybody in here? [05:33] Guest25498: hi [05:33] Guest25498: anybody in here? [05:34] dr0id: hi [05:34] dr0id: anybody in here? [05:34] dr0id: :P [05:34] joshgillies: nope [05:34] Aria: Yep. [05:34] joshgillies: yep [05:35] dr0id: nope [05:35] joshgillies: :P [05:35] Lorentz: yep [05:35] dr0id: yepnope [05:35] towski has joined the channel [05:38] AvianFlu has joined the channel [05:42] Croms_ has joined the channel [05:44] meso has joined the channel [05:46] tomlion has joined the channel [05:47] dexter_e has joined the channel [05:50] garrensmith has joined the channel [05:51] maxogden: .js [05:54] isaacs has joined the channel [05:55] cjm has joined the channel [05:55] isaacs: ryah: nice twitter-baiting [05:57] JaKWaC has joined the channel [05:57] blueadept: quick question: what happens if you hash a hash to the nth power? [05:58] blueadept: in mathematical terms... [05:58] maxogden: logarithmic diminishing returns [05:58] blueadept: hm, i see [05:58] zivester has joined the channel [05:59] isaacs: blueadept: what do you mean "to the nth power"? [05:59] isaacs: like, hash it n times? [05:59] blueadept: well, hash, then hash that hash plus epoch time (perhaps), rinse repeat [06:00] blueadept: thats a pretty good random number generator, no? [06:00] isaacs: if you add the epoch time (and you don't save that) then your one-way hash has become a zero-way hash. [06:00] blueadept: damnit [06:00] pquerna: mikeal, jebus [06:00] isaacs: but, if it's a good distributed hash (like, say, sha1 or sha256) then all youve done is created a new hash, which is equivalent, but with increased the computational cost of [06:00] isaacs: computing it. [06:01] blueadept: right [06:01] isaacs: if it's *not* well distributed (such as md5) then you've created a likely less-distributed hash, which is also more expensive. [06:01] jbraffoul has joined the channel [06:01] localhost has joined the channel [06:02] isaacs: however, that's effectively how bcrypt works. by arbitrarily setting the computational cost of a hash, you can *force* it to take a certain amount of time, to thwart attacks. [06:03] Aria: Specifically a brute force attack, especially checking for likely-known plaintexts, in the case of bcrypt. [06:03] kmiyashiro has joined the channel [06:03] pquerna: well, the other 'nice' thing about bcrypt, is you basicaly store the 'how difficult' part of it like the salt [06:03] pquerna: so its stored inline with it [06:03] Lorentz: is it really random if you hash from a known seed? [06:03] Lorentz: no matter how many times you hash it [06:04] pquerna: making it easy for it to be incrementally updated [06:04] jbrokc_ has joined the channel [06:04] Aria: Yeah. 'tunable' [06:04] Lorentz: If you wanted to add a random variable to number of times you hash, wouldn't it be easier to just use that random variable. [06:04] maxogden: tunable? i dont even like fish! [06:04] Aria: Lorentz: It's not random, that's the thing. It's deep. [06:04] pquerna: Lorentz: actually, thats.. hash chaining, its what S/Key is built on [06:04] blueadept: Loretz: well, presumably [06:04] blueadept: but if you have epoch + miliseconds [06:05] blueadept: you have to be exact as hell to try to compromise that [06:05] pquerna: http://en.wikipedia.org/wiki/Hash_chain [06:05] skm has joined the channel [06:06] simenbrekken has joined the channel [06:06] blueadept: actually i like the num+alphabet random() sequence [06:07] Lorentz: blueadept: I wouldn't, even still [06:07] fangel has joined the channel [06:07] Lorentz: Maybe with nanoseconds [06:07] Lorentz: but even so [06:07] lmorchard has joined the channel [06:07] blueadept: i'm just brainstorming for something right now, i dont even know what yet [06:08] chrislorenz has joined the channel [06:08] blueadept: was just looking at AWS filenames, they have these insane 25 character filenames [06:08] blueadept: like, 705f94763d3614162165b6665a731e48 [06:09] blueadept: num sequence, random letter, num sequence, random letter... [06:09] blueadept: er 33 characters even [06:09] Aria: Those aren't random letters. It's hexadecimal. [06:09] blueadept: oh shiz [06:09] Lorentz: Typical hash. [06:09] blueadept: Aria: damn i feel dumb [06:09] Aria: 32-characters, that's 16-byte, or 128-bit. [06:09] blueadept: you're right [06:10] Aria: Which leads me to think that's probably MD5. [06:10] wolftankk has joined the channel [06:10] Aria: Of what, you can't know unless they tell you, but yeah. [06:12] blueadept: actually i use sha512 plus salt for all my password storage [06:12] Marko has joined the channel [06:12] Aria: Interesting. Why SHA512? [06:12] blueadept: the salt is farily cryptic too, i compute it [06:12] blueadept: hehe i dont know [06:12] blueadept: its longer [06:13] blueadept: its more intimidating perhaps [06:13] pquerna: use bcrypt. its not. [06:13] Aria: That's not actually the feature you want in a password hash. [06:13] blueadept: that way if someone breaks in they'll be like "?man fuck this shit" [06:13] Aria: You want it to be expensive to compute. [06:13] pquerna: no, they won't, infact your strategy was one that Jira did. [06:13] Aria: SHA is actually a really FAST hash. [06:13] jbrokc_ has joined the channel [06:14] pquerna: and it didn't work out too well for atlasian and their jira. [06:14] SteveDekorte: I keep running across node packages with no makefile or configure file and nothing in the README on how to compile/install - is there some standard way to do this in the node world? [06:14] pquerna: node-waf [06:14] pquerna: for compiled extensions [06:14] codygray has joined the channel [06:14] pquerna: otherwise, NPM [06:14] pquerna: look at the package.json [06:15] SteveDekorte: node-waf did it - thanks :) [06:15] blueadept: Aria: what's a good way of encrypting the pass then? [06:15] Aria: bcrypt. [06:15] blueadept: ahok [06:15] Aria: Instead of lengthening the hash, you do more rounds -- more rounds means more computation time. [06:15] blueadept: ahh [06:15] Aria: Which means more resources to brute-force. [06:15] blueadept: ok that makes more sense then [06:15] Aria: Yeah. [06:15] blueadept: exponential cryptography [06:16] Aria: You salt simply -- that just has to be random enough to perturb the hash so you can't use a rainbow table. [06:16] Aria: Stronger salt buys you little. [06:17] blueadept: isaacs: hey btw saw your google+ post [06:18] dilvie has joined the channel [06:18] blueadept: something about err throwing [06:18] blueadept: fairly good points [06:18] Lorentz: Randomness is interesting through [06:18] Lorentz: How to get real random cheaply [06:19] blueadept: i read a good theory on getting hashes of cloud pictures [06:19] blueadept: makes a lot of sense [06:19] blueadept: of*from [06:19] blueadept: just take a random picture of the sky, hash. profit [06:20] Aria: Problem is how to make sure the random picture of the sky is random ;-) [06:20] blueadept: oh sna [06:21] thepatr1ck has joined the channel [06:21] yuwang has joined the channel [06:22] OmidRaha has joined the channel [06:23] perezd has joined the channel [06:23] mikeal has joined the channel [06:23] matbee has joined the channel [06:23] dreamdust has joined the channel [06:24] Lorentz: Speaking of random clouds, I should learn how to do image comparisons [06:24] Lorentz: As in, finding similarities between iamges [06:24] blueadept: thats a fairly non-trivial application [06:24] blueadept: OpenCV should be some help [06:24] tomlion has joined the channel [06:25] Lorentz: I'll take a look [06:25] Lorentz: Basically wanted a neat tool to eliminate duplicated images, and organise ones that are slightly altered between each other and group together [06:25] blueadept: there are new algorithms always being published [06:26] Lorentz: regardless of image size or cropping (to a point) [06:26] blueadept: some you need .edu email address to get access to [06:26] Aria: Man, I really need to get ahold of not.edu [06:28] amigojapan has joined the channel [06:29] luke` has joined the channel [06:30] richardr: Anyone know of good boilerplate / application frameworks for Node.js that are built around Express, for example Expressling alternatives? Preferably something with localization/translations [06:31] garrensmith has joined the channel [06:32] blueadept: richardr: if you know or are aware of coffeescript, zappa is an option [06:32] garrensmith: morning [06:32] HT has joined the channel [06:32] blueadept: not sure about the translation/localization parts, but zappa is a DSL for express/socketio [06:33] koo3 has joined the channel [06:33] dreamdust: I can't stand how the HTML5 boilerplates call themselves "Rock-solid" when it's anything but. [06:33] richardr: blueadept: Localization with minimal dependencies and abstraction, using memory storage (mongo, local memory) is something im really looking for. [06:33] zeade has joined the channel [06:34] blueadept: well if you need memory storage just hookup redis [06:34] TheCode has joined the channel [06:34] dreamdust: Express is built on Connect. To me that is a boilerplate. You already have auth and caching modules for connect and express. [06:34] blueadept: in fact i think redis is now the defacto standard [06:34] TheCode: anyone tried railwayjs? [06:34] dreamdust: yea [06:35] koo3 has joined the channel [06:35] TheCode: defactor standard for what? [06:35] TheCode: defacto* [06:35] ecin has joined the channel [06:35] dreamdust: Memory storage. [06:35] blueadept: well just in memory storage [06:35] TheCode: memory storage? [06:35] SteveDekorte has joined the channel [06:35] blueadept: lists, sets, sorted sets, hashes [06:35] braoru has joined the channel [06:36] codygray has joined the channel [06:36] TheCode: hmm ok [06:36] blueadept: that kind of thing [06:36] TheCode: I think Redis is best for one-dimensional data [06:36] richardr: blueadept: yeah I know about Redis. Have you used 'dialect' before? [06:36] blueadept: actually no [06:36] blueadept: TheCode: well, its all in the use case, as the saying goes [06:36] richardr: it might be what i'm looking for. [06:39] mnutt_ has joined the channel [06:40] stantona has joined the channel [06:43] evxd has joined the channel [06:43] shedinja_ has joined the channel [06:43] jbrokc_ has joined the channel [06:44] isaacs: ugh [06:44] isaacs: apple failed to tell fedex to redirect my laptop in time. now it's at my office, forcing me to either go there tomorrow, or wait until after the holiday to play with the new toy [06:45] blueadept: what did you get? [06:45] blueadept: i have a new macbook waiting for me as well [06:45] blueadept: i'll pick it up next week [06:45] blueadept: when i get to santa monica [06:45] Aria: Mrf! [06:46] AAA_awright: Man why can't we use . in function names [06:46] AAA_awright: func.prototype.method = function(){} <==> function func.prototype.method(){} [06:47] Aria: Yeah, I wish that worked too. [06:47] ecin_ has joined the channel [06:47] bogomips2__ has joined the channel [06:48] buu has joined the channel [06:48] madhums has joined the channel [06:49] smgt has joined the channel [06:50] SamuraiJack has joined the channel [06:50] dnyy has joined the channel [06:51] copongcopong has joined the channel [06:52] isaacs: blueadept: macbook pro [06:52] ekryski has joined the channel [06:52] isaacs: AAA_awright: because that would confound the name portion of the named function declaration [06:53] isaacs: AAA_awright: what would this be? (function a.b.c () {}).name [06:53] Aria: c! [06:53] isaacs: AAA_awright: "a.b.c"? or just "c"? [06:53] isaacs: that's confusing [06:53] jbrokc_ has joined the channel [06:53] isaacs: desugared to a.b.c = function c (){} then? [06:53] isaacs: would it be hoisted? [06:53] AAA_awright: It must be undefined any other way, so leave it undefined if nothing else [06:54] isaacs: what about this? a.b.c.prototype = {...}; function a.b.c () {} [06:54] isaacs: if it's hoisted, would it be hoisted above the definition of a.b? [06:55] isaacs: dots in function names would be handy in a few trivial cases, but too hard, i think [06:55] AAA_awright: You have the same problem without the syntax in question... a.b.c.prototype = {...}; a.b.c = function () {} [06:55] AAA_awright: a.b.c.prototype is clobbered [06:55] isaacs: AAA_awright: right [06:55] isaacs: AAA_awright: but you don't with named function declarations [06:55] isaacs: a.b.c = c; c.prototype = { ... }; function c () {} [06:56] AAA_awright: The issue is named functions come into scope even before they're executed, then [06:56] AAA_awright: How would that be handled? Good point [06:56] isaacs: so, you'd have to desugar it to a function expression and assignment, not a function declaration [06:56] isaacs: function declarations are like var statements: they're hoisted to the top of scope [06:56] AAA_awright: s/executed/read-or-whatever/ [06:57] richardr: woah, the dialect module for Node.js is pretty awesome [06:57] isaacs: which is a bit of a misnomer. i believe the spec describes it as a two-phase parse, where the first phase parses var and decls only [06:57] p1d has joined the channel [06:58] AAA_awright: Hoisted to the top of the scope? [06:58] Marko: so i have maid all my changes to master all the time, but fork host told to merge changes to the other branch. i just dont know how to do it. i cant see any commands from web ui or mac client [06:58] AAA_awright: Functions you can use before they're declared in the same scope, var you can't [07:00] ph^ has joined the channel [07:00] JakeyChan has joined the channel [07:01] jacobolus has joined the channel [07:03] stonebranch has joined the channel [07:03] jbrokc_ has joined the channel [07:03] isaacs: AAA_awright: you can. their value is "undefined", but they're not undefined [07:04] AAA_awright: isaacs: Ah right [07:04] isaacs: .. a; var a [07:04] satyr has joined the channel [07:04] AAA_awright: Yeah [07:04] AD7six has joined the channel [07:04] k1ttty has joined the channel [07:04] isaacs: .. "hello?" [07:04] catb0t: "hello?" [07:04] isaacs: there we go [07:04] monokrome has joined the channel [07:05] isaacs: .. a; var a; "" + a [07:05] catb0t: "undefined" [07:05] isaacs: .. a [07:05] isaacs: that should throw [07:05] TheCode: richardr, what does dialect do? [07:05] isaacs: but catb0t is not throwing [07:05] catb0t: throwing in the settimeout show me the demo of how it will be pulled it, but idk when the next release will be [07:08] jtsnow has joined the channel [07:12] richardr: TheCode: helps with translations. :) [07:12] richardr: TheCode: can use any store, including memory stores like mongo, etc [07:12] JaKWaC has joined the channel [07:13] jbrokc_ has joined the channel [07:14] dshaw_ has joined the channel [07:17] ayaz has joined the channel [07:18] richardr: I'm trying to install a Node module, I guess one of its dependencies is SQLite, I'm getting similar errors to these: http://pastebin.com/ZeMurGuH any ideas? [07:19] davidbanham: richardr: It looks like the package you've downloaded doesn't include all the build deps. Not sure what it is you're installing, but can you install it through npm rather than downloading the source yourself? [07:19] gut4 has joined the channel [07:19] evxd: richardr: You might just need to install the sqlite libraries. Try `apt-get install libsqlite3-dev` if you're on Ubuntu. [07:19] richardr: davidbanham: I am using npm, npm install dialect ... and that's the sqlite error I get [07:20] richardr: evxd: using archlinux, I've got sqlite3 installed, not -dev tho [07:20] JumpMast3r has joined the channel [07:20] isaacs: davidascher: that's not an issue with installing from non-npm [07:20] maligree has joined the channel [07:20] isaacs: davidascher: is an issue with not having sqlite3.h [07:20] bogomips2_ has joined the channel [07:20] isaacs: RichardBronosky: looks like you installed the binary package, butnot the source [07:20] davidbanham: Cool, I'll bow out. [07:20] luoluoluo has joined the channel [07:20] davidascher: isaacs: not me =) [07:20] isaacs: davidascher: nono, it's cool. i appreciate the help :) [07:20] richardr: evxd: yup all sqlite3 packages are in our core/ it's installed [07:20] isaacs: oh, sorry, wrong david [07:21] isaacs: alphabet, you strike again!! [07:21] davidbanham: There's a few of us around :p [07:22] richardr: node-waf configure build failure , hmm [07:23] jbrokc_ has joined the channel [07:28] davidascher has joined the channel [07:29] TheCode: res.render('myview.ejs', { layout: true }); <-- what does layout do? [07:32] aesptux has joined the channel [07:33] jbpros has joined the channel [07:34] satyr has joined the channel [07:35] beevits has joined the channel [07:36] fangel has joined the channel [07:38] lebinh has joined the channel [07:38] emattias has joined the channel [07:38] robotmay has joined the channel [07:43] skm has joined the channel [07:44] amigojapan has joined the channel [07:44] jbrokc_ has joined the channel [07:46] tvw has joined the channel [07:47] simenbrekken has joined the channel [07:48] svenlito has joined the channel [07:48] benvie: V8 3.7.x has Map and Set [07:48] groom has joined the channel [07:50] `3rdEden has joined the channel [07:51] dgathright has joined the channel [07:53] garrensmith: TheCode: layout is to include a default layout for your webpage. Usually used to store generic design and then myview.ejs will be embedded inside [07:54] daglees has joined the channel [07:57] lemonad has joined the channel [07:59] jbraffoul has joined the channel [08:01] natebeck has joined the channel [08:01] natebeck has left the channel [08:02] Morkel has joined the channel [08:02] criswell has joined the channel [08:03] natebeck has joined the channel [08:03] natebeck has left the channel [08:03] jbrokc_ has joined the channel [08:04] npa has joined the channel [08:04] natebeck has joined the channel [08:04] natebeck has left the channel [08:07] arcanis has joined the channel [08:07] luke` has joined the channel [08:10] richardr: What is the best way to expose variables (say dialect = require('dialect')) in middleware, say I wanted to access dialect var. [08:10] richardr: Pass it in as a param? [08:10] richardr: Or is this bad practice [08:10] raphdg has joined the channel [08:11] richardr: e.g. examples i'm looking at creates a 'server' global var, and passes that everywhere [08:13] NetRoY has joined the channel [08:13] ianl` has joined the channel [08:14] madhums has joined the channel [08:14] bosphorus has joined the channel [08:15] Margle has joined the channel [08:15] mikedeboer has joined the channel [08:20] mehlah has joined the channel [08:20] akihito_s has joined the channel [08:21] luke`_ has joined the channel [08:21] dingomanatee: i have a question - the loading from node_modules doesn't seem to kick in for my unit tests - what do I need to do to get them to kick in? [08:22] djcoin has joined the channel [08:23] dingomanatee: global vars are bad practice - a lot of the newer optimizations ryans tossing in don't like them. [08:23] skm has joined the channel [08:23] shinuza has joined the channel [08:24] mikedeboer has joined the channel [08:24] jbrokc_ has joined the channel [08:25] svenlito has joined the channel [08:25] aaronmcadam has joined the channel [08:26] nephics has joined the channel [08:30] munichlinux has joined the channel [08:31] Gonzih has joined the channel [08:35] k1ttty has joined the channel [08:35] jbrokc_ has joined the channel [08:35] kuebk has joined the channel [08:39] skm has joined the channel [08:41] [AD]Turbo has joined the channel [08:41] secoif has joined the channel [08:41] svenlito has joined the channel [08:41] [AD]Turbo: hola [08:42] Emmanuel` has joined the channel [08:42] cosmincx has joined the channel [08:43] ablomen has joined the channel [08:44] jbrokc_ has joined the channel [08:45] markwubben has joined the channel [08:48] burningdog has joined the channel [08:49] sstephenson_ has joined the channel [08:51] AAA_awright_ has joined the channel [08:51] gut4 has joined the channel [08:51] junaid1 has joined the channel [08:54] jbrokc_ has joined the channel [08:55] mpavel has joined the channel [08:56] mpavel has left the channel [08:57] ccare has joined the channel [08:57] luoluoluo has joined the channel [08:57] whitman has joined the channel [08:59] Druid_ has joined the channel [08:59] adrake_ has joined the channel [09:01] zackattack has joined the channel [09:01] boltR has joined the channel [09:03] mikedeboer has joined the channel [09:06] hipsterslapfight has joined the channel [09:07] robotmay has joined the channel [09:07] blup has joined the channel [09:07] bergie has joined the channel [09:08] nils_r has joined the channel [09:08] JakeyChan_ has joined the channel [09:08] torsd has joined the channel [09:13] vvo has joined the channel [09:14] jbpros has joined the channel [09:14] kilnaar has joined the channel [09:18] TomY has joined the channel [09:18] booyaa has joined the channel [09:19] booyaa: good morning people of the internets! [09:20] JaKWaC has joined the channel [09:20] sfoster has joined the channel [09:21] emattias_ has joined the channel [09:21] dannyamey has joined the channel [09:22] mike5w3c_ has joined the channel [09:23] _dc has joined the channel [09:26] blup has joined the channel [09:27] qFox has joined the channel [09:29] sylvinus has joined the channel [09:30] eldios has joined the channel [09:30] richardr: In Express, how do I create static view helpers? [09:31] richardr: Want to expose these functions to the view. [09:33] akihito_s has joined the channel [09:35] hipsterslapfight has joined the channel [09:36] adambeynon has joined the channel [09:39] Blorb has joined the channel [09:41] tomlion has joined the channel [09:42] pickels_ has joined the channel [09:42] toopay has joined the channel [09:43] lzskiss has joined the channel [09:43] lzskiss: yo [09:44] jbrokc_ has joined the channel [09:46] mange has joined the channel [09:46] torsd: sup [09:47] hackband has joined the channel [09:48] tomlion has joined the channel [09:48] JaKWaC has joined the channel [09:49] lwille has joined the channel [09:49] __doc__ has joined the channel [09:50] jxie has joined the channel [09:50] dubenstein has joined the channel [09:51] lwille has joined the channel [09:51] Neil_ has joined the channel [09:51] adrianmg has joined the channel [09:53] arcanis has joined the channel [09:53] leonhardtwille has joined the channel [09:54] ivanfi has joined the channel [09:55] uchuff has joined the channel [09:57] fly-away has joined the channel [09:58] adrianmg has left the channel [09:58] pgte has joined the channel [10:00] cha0s has joined the channel [10:00] cha0s has joined the channel [10:02] afrogrizzly has joined the channel [10:04] jbrokc_ has joined the channel [10:06] daithi44 has joined the channel [10:07] jldbasa has joined the channel [10:07] aliem has joined the channel [10:08] marcello3d has joined the channel [10:10] ryan_stevens has joined the channel [10:11] jimmysparkle has joined the channel [10:11] EvRide has joined the channel [10:14] jbrokc_ has joined the channel [10:14] jimmyspark has joined the channel [10:15] socketio\test\89 has joined the channel [10:16] tomlion_ has joined the channel [10:17] JakeSays: hey any of you guys use cloud9 w/ node locally? [10:18] Lingerance: I use cloud9 on my own servers, but I don't do it locally. [10:18] SoulRaven has joined the channel [10:18] JakeSays: Lingerance: yeah thats what i mean - you're running your own cloud9? [10:18] josh-k has joined the channel [10:18] Lingerance: Yes [10:18] dannyamey has joined the channel [10:18] JakeSays: how is it? [10:19] Lingerance: Doesn't work with 0.6, and I had to edit a few lines to get it started, but other than that it's nice. [10:20] JakeSays: you just use the node it ships with? [10:20] tomlion has joined the channel [10:21] ninjatux2k has joined the channel [10:21] Lingerance: I didn't even know it ships with its own node [10:21] JakeSays: yeah .2 [10:21] JakeSays: oooold [10:23] klaustsen has joined the channel [10:24] jbrokc_ has joined the channel [10:24] Lingerance: Lame, doesn't work on my machines [10:24] Lingerance: ACTION sticks to running it on the one server he hasn't bothered updating [10:25] bwinton has joined the channel [10:25] SamuraiJack_ has joined the channel [10:25] markwubben has joined the channel [10:27] SamuraiJack has joined the channel [10:27] jimmyrocket has joined the channel [10:29] Net_RoY has joined the channel [10:29] jimmyspark has joined the channel [10:29] dexter_e has joined the channel [10:30] d0k has joined the channel [10:30] mike321312 has joined the channel [10:31] mike321312: hey guys, if i want to checkout v0.6, after i clone .. this doesnt work git checkout v0.6 [10:31] mike321312: heeerp please [10:32] Lingerance: Try v0.6.2 [10:32] mike321312: no :/ [10:33] JakeSays: damn. it uses cygwin. [10:33] JakeSays: Lingerance: what sorts of issues were you having with v.6? [10:33] Lingerance: It uses require.paths.unshift() [10:34] jbrokc_ has joined the channel [10:34] JakeSays: and thats not supported in v.6? [10:34] Lingerance: Nope [10:35] jimmyrocket has joined the channel [10:35] JakeSays: does it have a replacement? [10:35] Lingerance: Yeah, drop stuff into ./node_modules [10:36] __tosh has joined the channel [10:36] JakeSays: ah [10:38] JakeSays: well i'm gonna see if i can get it working on .6 [10:38] JakeSays: i really dont want to mess with cygwin [10:38] shedinja_ has joined the channel [10:38] Lingerance: If you fork it and get it working that'd be awesome [10:38] Garo_: I'm running 0.4.11 and stracing a running program which has gone somehow wild and its consuming cpu due to some bug. strace reports extensive amount of calls to gettimeofday syscall (about 4500 per second). What could this indicate? [10:39] Garo_: does node eventloop call gettimeofday on each tick or something? [10:41] madhums has joined the channel [10:42] tim_smart|away has joined the channel [10:43] copongcopong1 has joined the channel [10:44] jbrokc_ has joined the channel [10:46] jomoho has joined the channel [10:47] adrianF has joined the channel [10:48] JakeSays: Lingerance: i get "EQ was unexpected at this time." when in run under .6 [10:48] Lingerance: Can I get the full error please? [10:49] kaarlo has joined the channel [10:49] matjas has joined the channel [10:49] matjas has joined the channel [10:49] matjas has joined the channel [10:50] JakeSays: lol that was the full error. [10:50] JakeSays: but turns out it was the wrapper .bat file [10:51] Lingerance: Ah, yeah: "node bin/cloud9" is how I run it [10:51] JakeSays: Lingerance: here's a real error: http://pastie.org/2908120 [10:52] JakeSays: thats the paths error you were talking about? [10:52] Lingerance: Yes [10:53] aabt has joined the channel [10:53] vguerra has joined the channel [10:54] jbrokc_ has joined the channel [10:54] JanLi has joined the channel [10:55] ryanfitz has joined the channel [10:55] torsd: is nodejs fit for ad content serving? [10:56] lwille has joined the channel [10:56] stephank has joined the channel [10:56] no-gooder has joined the channel [10:56] no-gooder: hey guys [10:57] Lingerance: torsd: If you're server static files I'd go with nginx or some other httpd. [10:59] nicholasf has joined the channel [11:00] fangel has joined the channel [11:00] JakeSays: hmm. i can see this is going to require some caffeine. [11:02] lwille has joined the channel [11:05] animorten has joined the channel [11:06] Wizek has joined the channel [11:07] torsd: Lingerance: oh ok.. thanks for the input [11:08] Neil_: How do I fix this error with 'underscore' http://pastie.org/2908176 ? [11:08] torsd: ls [11:08] torsd: oops [11:08] zomg: Neil_: well do you actually have underscore module installed? [11:09] lwille has joined the channel [11:10] Neil_: zomg: I'm guessing I don't [11:11] herbySk has joined the channel [11:12] Neil_: zomg: I haven't used Node before. Is there a command for npm that installs a list of required modules for this specific app or do I need to install it manually? [11:13] Lingerance: npm install (while in said project's directory) [11:13] zomg: I think it still requires the project to have the configuration file though [11:13] zomg: Or does it try to guess from require calls? [11:14] Lingerance: No [11:14] Lingerance: It needs the package.json file [11:14] Neil_: Lingerance: Thanks. Now: npm ERR! Requires: node@>= 0.4.1 < 0.7.0 [11:14] zomg: Yeah so if you didn't bother to write one it isn't very helpful [11:14] zomg: =) [11:16] cosmincx has joined the channel [11:17] buttface has joined the channel [11:19] icebox has joined the channel [11:19] animorten has joined the channel [11:22] spurge has joined the channel [11:22] Renegade001 has joined the channel [11:25] rio{ has joined the channel [11:29] bnoordhuis has joined the channel [11:29] SoulRaven has joined the channel [11:30] Xano has joined the channel [11:32] ixti has joined the channel [11:35] booyaa has joined the channel [11:36] broofa has joined the channel [11:39] JakeSays: any idea what module qs is? [11:40] mehlah has joined the channel [11:40] icebox: JakeSays: http://search.npmjs.org/#/qs [11:41] JakeSays: icebox: thanks [11:41] booyaa has joined the channel [11:41] martin_sunset has joined the channel [11:42] sgronblo has left the channel [11:44] hotch has joined the channel [11:44] mehlah has joined the channel [11:44] JakeSays: holy shit this is an endless circle of dependencies [11:45] CarterL has joined the channel [11:46] thalll has joined the channel [11:46] cosmincx has joined the channel [11:46] jomoho has joined the channel [11:47] marcostoledo has joined the channel [11:49] Neil_: How can I find out if I installed Node manually or using Macports? [11:49] jomoho2 has joined the channel [11:50] mytrile has joined the channel [11:52] tommyvyo has joined the channel [11:52] jomoho has joined the channel [11:53] lzskiss has joined the channel [11:53] lzskiss: yo [11:53] Neil_: lzskiss: yo yo yo [11:55] aglenday has joined the channel [11:55] JakeSays: why would this fail: var MemoryStore = require("connect/middleware/session/memory"); [11:55] eric357 has joined the channel [11:55] JakeSays: if connect/middleware/session/memory is in node_modules? [11:56] marcello3d has joined the channel [11:56] CIA-109: node: 03Ben Noordhuis 07v0.6 * rce3ccc8 10/ Makefile : build: fix circular dependency in doc target - http://git.io/KVu88Q [11:56] CIA-109: node: 03Ben Noordhuis 07v0.6 * r16889e2 10/ doc/api/dgram.markdown : docs: fix dgram markdown - http://git.io/7c6kig [11:58] eric357: quick question: compiling node from source - make install replies: make: Nothing to be done for `install'. Why? [11:59] N0va` has joined the channel [11:59] dr0id has joined the channel [12:03] thimothoeye has joined the channel [12:05] bnoordhuis: eric357: are you compiling master? [12:05] fairwinds_ has joined the channel [12:07] tim_smart|away has joined the channel [12:07] DennisRasmussen has joined the channel [12:10] garrensmith has joined the channel [12:10] eric357: bnoordhuis: yes - used git pull to update the source from 0.5.9-pre (or something like that) [12:10] bnoordhuis: eric357: we're switching build systems and `make install` hasn't been implemented yet [12:11] eric357: bnoordhuis: ah! [12:11] eric357: bnoordhuis: that explains it :-) [12:12] alessioalex has joined the channel [12:13] adrianmg has joined the channel [12:13] Neil_: I've updated Node.js using Macports but it still lists the old version. How do I update my NODE_PATH? [12:13] lwille has joined the channel [12:13] adrianmg has left the channel [12:14] piscisaureus__ has joined the channel [12:15] eric357: bnoordhuis: I'm currently running v0.5.9-pre so should I just use that or is there a more recent version that will 'make install'? [12:15] lwille has joined the channel [12:16] bnoordhuis: eric357: yes, `git checkout v0.6` or `git checkout v0.6.2` [12:17] eric357: bnoordhuis: Thanks, will try that. [12:17] stonebranch has joined the channel [12:18] JakeSays: Lingerance: i give up on v.6 - looks like cygwin it is [12:18] Lingerance: JakeSays: how far did you get? [12:18] JakeSays: to the point where it was looking for o3 shared libs [12:19] Lingerance: :/ [12:19] JakeSays: and i'm *not* in the mood to tackle that mess right now [12:19] Lingerance: Alright, I'll see what I can do this weekend. [12:21] co_dh has joined the channel [12:22] rchavik has joined the channel [12:23] munichlinux has left the channel [12:23] eric357: bnoordhuis: Well, I got v0.6.1 to install so I'm happy. Thanks. [12:23] burningdog has left the channel [12:23] bnoordhuis: eric357: np, my pleasure [12:23] conntrack has joined the channel [12:25] conntrack has joined the channel [12:25] phiggins has joined the channel [12:25] aesptux has joined the channel [12:25] JakeyChan has joined the channel [12:25] gut4 has joined the channel [12:26] JakeSays: Lingerance: eh, looks like half of the deps didnt get pulled [12:27] impatientspoon has joined the channel [12:27] yobi: Does anyone here have a Chromebook? [12:27] yobi: I would like to know if node.js work on Chromebook .. can you even fire up a shell? [12:27] dnjaramba has joined the channel [12:28] CIA-109: node: 03Ben Noordhuis 07master * r1db9a2a 10/ Makefile : build: print "not yet implemented" warning on `make install` - http://git.io/L1caYQ [12:29] _unary has joined the channel [12:29] secoif has joined the channel [12:31] fermion has joined the channel [12:31] jrmiller has joined the channel [12:32] Juan77 has joined the channel [12:35] tiagobutzke has joined the channel [12:37] Kunda has joined the channel [12:38] satyr has joined the channel [12:39] shinuza has joined the channel [12:40] xy has joined the channel [12:42] Poetro has joined the channel [12:42] Poetro has joined the channel [12:43] mandric has joined the channel [12:43] hoofed has joined the channel [12:44] mehtryx has joined the channel [12:45] creationix has joined the channel [12:46] jimmyrocket has joined the channel [12:47] koo5 has joined the channel [12:52] aglenday has joined the channel [12:54] louissmit has joined the channel [12:56] aglenday has joined the channel [12:57] adwong has joined the channel [12:58] subbyyy has joined the channel [13:00] dnjaramba has joined the channel [13:01] scott_gonzalez has joined the channel [13:01] thimothoeye has left the channel [13:02] Ned_ has joined the channel [13:03] gtramontina has joined the channel [13:04] lmatteis: yobi: not sure... ask the chromebook people :) [13:04] lmatteis: which would be #google [13:04] pgherveou has joined the channel [13:06] brianseeders has joined the channel [13:07] koo3 has joined the channel [13:07] dnjaramba has joined the channel [13:08] neurodrone has joined the channel [13:08] yobi: lmatteis: aight [13:09] emattias has joined the channel [13:10] joeytwiddle has joined the channel [13:12] ditesh|cassini has joined the channel [13:15] dnjaramba has joined the channel [13:15] JakeyChan_ has joined the channel [13:17] Shrink has joined the channel [13:19] kriszyp3 has joined the channel [13:19] trose has joined the channel [13:21] pandeiro has joined the channel [13:21] pHcF has joined the channel [13:21] Esteb has joined the channel [13:24] deadman87 has joined the channel [13:24] erichynds has joined the channel [13:25] cjm has joined the channel [13:27] jmar777 has joined the channel [13:28] leonhardtwille has joined the channel [13:29] interrupt has joined the channel [13:32] mehtryx has joined the channel [13:32] CrisO has joined the channel [13:33] koo3 has joined the channel [13:33] fmeyer has joined the channel [13:34] mehtryx has left the channel [13:37] dgathright has joined the channel [13:37] vdemedes has joined the channel [13:37] vdemedes: Hello! [13:39] josh-k has joined the channel [13:39] dr0id has joined the channel [13:40] mandric has joined the channel [13:42] Shrink has joined the channel [13:43] blup has joined the channel [13:44] rsterner has joined the channel [13:44] marcello3d has joined the channel [13:45] ryanfitz has joined the channel [13:47] vkareh has joined the channel [13:47] fermion has joined the channel [13:49] Xano has joined the channel [13:49] atourino has joined the channel [13:50] lduros has joined the channel [13:54] xetorthio has joined the channel [13:54] svenlito has joined the channel [13:56] bogomips2__ has joined the channel [13:57] fly-away has joined the channel [13:58] AaronMT has joined the channel [13:59] gut4 has joined the channel [13:59] marcello3d has joined the channel [13:59] dnjaramba has joined the channel [13:59] pongwon has joined the channel [14:01] bogomips has joined the channel [14:01] fmeyer has joined the channel [14:04] EriksLV has joined the channel [14:04] heavysixer has joined the channel [14:08] hlobil has joined the channel [14:09] dthompso99 has joined the channel [14:10] plutoniix has joined the channel [14:10] mandric has joined the channel [14:11] riven has joined the channel [14:11] riven has joined the channel [14:12] riven has joined the channel [14:12] riven has joined the channel [14:14] joshsmith has joined the channel [14:14] hotch_ has joined the channel [14:14] joshsmith: is there an IRC room for mongoose? [14:15] lyte_ has joined the channel [14:16] braoru has joined the channel [14:19] dnjaramba has joined the channel [14:19] Wizek has joined the channel [14:24] dnjaramba has joined the channel [14:26] marcello3d has joined the channel [14:28] fumanchu182 has joined the channel [14:28] jonaslund has joined the channel [14:30] josh-k has joined the channel [14:30] jbrokc_ has joined the channel [14:30] thomblake has joined the channel [14:31] devaholic has joined the channel [14:31] heavysixer has joined the channel [14:31] N0va has joined the channel [14:32] briancray has joined the channel [14:32] postwait has joined the channel [14:33] arcanis has joined the channel [14:36] augustl: joshsmith: this is probably a good candidate [14:37] jscheel has joined the channel [14:37] jscheel has joined the channel [14:37] joshsmith: does anyone know of a good tutorial outside of Alex Young's tut on DailyJS [14:38] joshsmith: it's kind of a pain because of all the API changes to mongoose et al [14:39] ph^ has joined the channel [14:42] ceej_ has joined the channel [14:45] pickels_ has joined the channel [14:45] jgornick has joined the channel [14:46] augustl: joshsmith: http://mongoosejs.com/ seems pretty nice :) [14:47] joshsmith: augustl: I mean for building a full-functional application [14:47] augustl: it shows installation, connecting and operations, what more do you need? [14:47] ceej has joined the channel [14:47] augustl: sounds like all you need for an application [14:48] joshsmith: I'm looking for something that shows how to structure an app in Node, not just CRUD for mongoose [14:48] augustl: not sure what exactly you're after though [14:48] dexter_e has joined the channel [14:49] augustl: joshsmith: like, which folders to put the models in? [14:49] augustl: sounds like you could use a framework that makes all these decisions [14:49] jsurfer has joined the channel [14:49] joshsmith: well, I'm using Express [14:50] joshsmith: but I only have the vaguest sense of its workings [14:50] augustl: so you're basically looking for http://railscasts.com/ but for express? :) [14:50] joshsmith: if these tuts were updated they'd be fantastic, but as it stands I'm having to spend a lot of time debugging just to get basic stuff working [14:51] joshsmith: yeah, basically [14:51] augustl: sounds like spending time to get basic stuff working is great training ;) [14:51] augustl: if nothing else [14:51] joshsmith: haha yeah, I know, I know [14:51] joshsmith: at this point I'm probably just going to hack around and screw up [14:52] joshsmith: I'd just prefer I had some best practices to follow [14:52] augustl: not knowing what you want to do is a boring situation to be in.. [14:52] augustl: want/need [14:53] joshsmith: ugh, the commits here for the tutorials are also completely different from the code in the tutorials themselves [14:53] ceej has joined the channel [14:54] joshsmith: it's no wonder it breaks [14:54] jbpros has joined the channel [14:54] tiagobutzke has left the channel [14:55] dnjaramba has joined the channel [14:56] bwinton has left the channel [14:56] mandric has joined the channel [14:57] a11235 has joined the channel [14:57] a11235 has joined the channel [14:57] a11235 has joined the channel [14:58] a11235 has joined the channel [14:58] BillyBreen has joined the channel [14:58] a11235 has joined the channel [14:58] a11235 has joined the channel [14:59] tiagobutzke has joined the channel [15:00] mandric has joined the channel [15:00] Xano has joined the channel [15:02] joshsmith: alright yeah, it's time to just read the docs directly and go from there [15:02] augustl: it's also good to ask specific questions [15:02] kaarlo has joined the channel [15:03] augustl: since apparently nobody here knows of any tutorials [15:03] joshsmith: for larger applications, should you be inheriting from app.js somehow? [15:03] augustl: I wouldn't be using node for large webapps, so don't ask me ;) [15:04] joshsmith: it seems like things could get messy putting a ton of routes into the app.js file [15:04] eldios: is fs.watch on a dir recursive? [15:04] thomblake has left the channel [15:04] joshsmith: man, is everyone on vacation already? [15:04] CrisO: joshsmith: https://github.com/visionmedia/express-resource [15:05] CrisO: https://github.com/visionmedia/express/tree/master/examples [15:05] CrisO: tons of stuff regarding structure [15:05] CrisO: don't put everything in app.js [15:05] joshsmith: CrisO: oh, cool! [15:05] CrisO: https://github.com/visionmedia/express/tree/master/examples/route-loading [15:05] colinclark has joined the channel [15:05] CrisO: https://github.com/visionmedia/express/tree/master/examples/route-separation [15:06] colinclark has joined the channel [15:07] joshsmith: thanks for those [15:07] impatientspoon has joined the channel [15:08] CrisO: np [15:09] lemonad has joined the channel [15:09] CrisO: joshsmith: regarding mongoose - their tests have better info than the 'examples' folder https://github.com/LearnBoost/mongoose/blob/master/test/model.querying.test.js [15:09] jstash has joined the channel [15:10] SyntressR has joined the channel [15:12] FIQ has joined the channel [15:12] lyte has joined the channel [15:12] lyte has joined the channel [15:12] SyntressR has left the channel [15:13] emattias has joined the channel [15:15] stantona has joined the channel [15:15] heavysixer has joined the channel [15:15] Wizek has joined the channel [15:16] broofa has joined the channel [15:18] DTrejo has joined the channel [15:19] Cromulent has joined the channel [15:22] aelien27 has joined the channel [15:22] [Justice] has joined the channel [15:23] appinsanity-mike has joined the channel [15:24] deedubs has joined the channel [15:26] brianc has joined the channel [15:27] deedubs: in the new cluster when a child dies(or is killed) does it get new code or the code the master is running? [15:27] gtramontina has joined the channel [15:27] jameshowe has joined the channel [15:28] jameshowe: any node-inspector users about? [15:28] binaryjohn has joined the channel [15:29] Destos has joined the channel [15:31] jameshowe: anyone else seeing https://github.com/dannycoates/node-inspector/issues/73 ? [15:32] mike5w3c has joined the channel [15:32] stantona has joined the channel [15:33] ceej has joined the channel [15:33] scttnlsn has joined the channel [15:34] Wizek has joined the channel [15:34] stantona has joined the channel [15:35] rachet has joined the channel [15:36] stantona has joined the channel [15:36] rachet: anyone have a few moments to help me through a GridFS issue? [15:37] torsd has joined the channel [15:37] rachet: whenever I use gridstore.writeFile() it throws an error "cannot read md5 of null" [15:38] CarterL has joined the channel [15:40] marcello3d: rachet: what driver are you using? [15:40] JumpMast3r has joined the channel [15:41] davidascher has joined the channel [15:41] garrensmith has joined the channel [15:41] rachet: marcello3d: node-mongodb-native [15:41] cgray has joined the channel [15:42] c4milo has joined the channel [15:42] marcello3d: rachet: I would file a bug on their github. (and try mongolian ;D) [15:43] rachet: I'm trying to avoid annoying the developer(s) if I can [15:43] jbrokc__ has joined the channel [15:44] rachet: and I already have mongoose, and I need connect-mongo for MongoStore [15:44] rachet: express sessions [15:44] TheJH has joined the channel [15:45] context: why do people still want to store sessions on the server [15:45] afters has joined the channel [15:45] aconbere has joined the channel [15:46] aliem has joined the channel [15:46] jameshowe: so they persist with failover/routing in a distributed system? [15:46] rachet: context: because I intend to have multiple instances of my code running [15:46] context: ok? [15:47] context: what does that have to do with cookies [15:47] context: err sessions [15:47] context: well, both [15:47] yobi_ has joined the channel [15:48] rachet: regardless of the sessions - gridfs, anyone? [15:49] Industrial has joined the channel [15:49] ddubs has joined the channel [15:49] rachet has left the channel [15:49] thax has joined the channel [15:49] Industrial: Anyone using Mongoose? I'm trying to save a document and getting back an error 'Cast to number failed for value "NaN"'. There must be a NaN value in my object but just console.log'ing it won't show it. All the Number values are 0 or higher. How do I find out which key/value this is? [15:50] codygray has joined the channel [15:50] davidascher has joined the channel [15:50] josh-k has joined the channel [15:50] ddubs: hey all, trying to build node.js and im getting an error with ./configure, line 149 [15:50] jarek has joined the channel [15:50] jarek has joined the channel [15:50] ddubs: o['variables']['node_debug'] = 'true' if options.debug else 'false' [15:51] ddubs: saying invalid syntax on that first if [15:51] ehedenst has joined the channel [15:51] context: it looks invalid to me [15:51] ddubs: i just cloned 0.6.2 from git [15:51] ddubs: and its giving me that [15:51] context: so [15:51] context: you said "it dont work" and we are suppose to know why? [15:52] bnoordhuis: ddubs: what does `python -V` say? [15:52] ddubs: bnoordhuis: ok so i have 2.4.3 [15:52] ddubs: but i also have 2.6 now [15:52] ddubs: using epel repos [15:52] bnoordhuis: ddubs: we officially only support python 2.5 and up [15:52] lduros has joined the channel [15:52] ddubs: perhaps i need to mod the ./configure to use python2.6 instead of straight up python [15:53] jbpros has joined the channel [15:53] yobi has joined the channel [15:53] bnoordhuis: ddubs: try changing the offending line to this: o['variables']['node_debug'] = options.debug and 'true' or 'false' [15:53] jbrokc_ has joined the channel [15:54] jameshowe: so, nobody know anything about node-inspector then? [15:54] codygray has joined the channel [15:55] yobi has joined the channel [15:55] dgathright has joined the channel [15:56] heavysixer has joined the channel [15:56] johnnywengluu_ip has joined the channel [15:56] ding has joined the channel [15:56] shanebo has joined the channel [15:57] afters has left the channel [15:57] mandric has joined the channel [15:57] jtsnow has joined the channel [15:57] ddubs: bnoordhuis: awesome, i modded configure:1 to python2.6 and tools/gyp_node:1 to the same [15:57] ddubs: configure finishes and looks like it *might* build [15:57] johnnywengluu_ has joined the channel [15:57] harthur has joined the channel [15:58] Destos has joined the channel [15:59] Destos has joined the channel [16:00] stantona has joined the channel [16:01] OmidRaha has left the channel [16:03] johnnywengluu_ has joined the channel [16:03] jocafa has joined the channel [16:03] EyePulp has joined the channel [16:03] Advant has joined the channel [16:03] Advant has joined the channel [16:05] CrisO has joined the channel [16:05] JasonJS has joined the channel [16:07] Glenjamin has joined the channel [16:07] kuebk has left the channel [16:09] jtsnow has joined the channel [16:10] MatthewS has joined the channel [16:10] EyePulp: yo ho ho. [16:11] EyePulp: what's the proper way to get a list of all the NPM versions of modules currently in use in a project (and even better, in a format I can plug into my package.json) [16:11] marcello3d: npm ls ? [16:11] marcello3d: or do you mean to actually scan for require() commands? [16:11] TheJH: EyePulp, "npm ls" shows the currently installed modules [16:12] TheJH: EyePulp, "require-analyzer" analyzed what your code actually require()s [16:12] TheJH: *analyzes [16:12] rauchg has joined the channel [16:12] mansoor-s has joined the channel [16:13] EyePulp: ls will do it. I just want to stop using "latest" when it's going to break my code at some point. freeze things now. [16:13] rauchg has joined the channel [16:13] ritch has joined the channel [16:14] adrianmg has joined the channel [16:14] adrianmg has left the channel [16:14] ritch has left the channel [16:15] no-gooder has joined the channel [16:15] jtsnow has joined the channel [16:16] dexter_e_ has joined the channel [16:16] Renegade001 has joined the channel [16:16] jarek__ has joined the channel [16:17] jbrokc_ has joined the channel [16:18] lazyshot has joined the channel [16:19] trotter has joined the channel [16:20] marcello3d has joined the channel [16:21] gsmcwhirter has joined the channel [16:21] grampajoe has joined the channel [16:22] jaequery has joined the channel [16:23] mandric has joined the channel [16:25] Wizek has joined the channel [16:26] tjholowaychuk has joined the channel [16:26] goibhniu1 has joined the channel [16:26] tjholowaychuk has joined the channel [16:27] johnnywengluu_ has joined the channel [16:28] uchuff has joined the channel [16:30] CIA-109: libuv: 03Ben Noordhuis 07master * rb52b8c7 10/ (8 files in 5 dirs): util: add uv_strlcpy() and uv_strlcat() functions - http://git.io/JrjUSg [16:31] thax_ has joined the channel [16:31] DennisRasmussen has joined the channel [16:32] booyaa: do you guys tend to do npm install -g on your dev box? [16:32] booyaa: or do you install modules individual per project? [16:33] booyaa: dev box <-- i mean the laptop you write software on [16:33] booyaa: not he server [16:33] bradleymeck has joined the channel [16:33] cjm has joined the channel [16:33] george__ has joined the channel [16:34] fangel has joined the channel [16:34] johnnywengluu_: booyaa: If you are not going to change the sour he code, yes [16:34] jocafa: damnit tjholowaychuk, how do you find the time to write such a large number of solid libs? [16:34] jocafa: [16:34] joshsmith_ has joined the channel [16:34] booyaa: jocafa: tjholowaychuk is actually a collective [16:34] booyaa: just like shakespear [16:34] joshsmith_ has joined the channel [16:35] jocafa: that's what i'm starting to think [16:35] jocafa: possibly a robot as well [16:35] booyaa: terminator [16:35] brianc: definitely an artist [16:35] booyaa: he will not stop until he find you... [16:35] jocafa: ohsnap… tj = borg [16:35] jocafa: ACTION runs [16:35] lamp_ has joined the channel [16:35] booyaa: sarah connor? [16:35] marcello3d: booyaa: I install per project then add to package.json, or if I know what I want, package.json first [16:35] buttface has joined the channel [16:35] marcello3d: keeps things consistent and repeatable [16:36] booyaa: marcello3d: i guess the benefit of that way is that you can run different versions of the modules for those projects? [16:36] brianc: booyaa: I have no global packages except supervisor and npm [16:37] lamp_: i am trying to connect to a mongodb inside a forked child process and i get a host unreachable error. i can connect in the parent node process. any ideas? [16:37] marcello3d: booyaa: I guess. are global packages even accessible by node by default? [16:37] brianc: marcello3d: yes. require eventually traverses up into the global package install directory; local packages have precedent [16:37] cfq has joined the channel [16:38] brianc: booyaa: there are a lot of reasons not to use global packages. i like to keep them all local to the app so the app is entirely contained. step 1: clone git repo. step 2: npm install. step 3: start app. step 4: profit. [16:39] johnnywengluu_: Oh I thought global packages were only for executables not require() [16:40] brianc: johnnywengluu_: http://nodejs.org/docs/v0.6.2/api/modules.html#loading_from_the_global_folders [16:40] adwong has joined the channel [16:41] k1ttty has joined the channel [16:41] johnnywengluu_: Oh a new feature that explais whynit didnt work for me [16:41] cfq: anyone in London going to the node.js meet up today evening? [16:43] booyaa: brianc: re: step 2 - how do i get npm to install using cloned repo? [16:43] booyaa: sorry being lazy [16:43] booyaa: cfq: is this the digital pond one? [16:43] cfq: booyaa: let me check [16:43] marcello3d: booyaa: you just type `npm install` and it installs everything listed in package.json [16:43] brianc: booyaa: i don't understand the question exactly [16:43] jbrokc_: anyone here have expierence with d3.js? [16:43] cfq: http://lanyrd.com/2011/lnug-november/ [16:44] enmand has joined the channel [16:44] lamp_: any ideas on why a forked child process cannot connect to a mongdb? [16:44] brianc: booyaa: cd into the cloned repo directory, type `npm install` and all the deps in package.json are installed into /node_modules [16:44] booyaa: brianc: sounds like you're cloning the modules you want and then using npm to install them locally instead of fetchnig from the interwebs [16:44] alvaro_o has joined the channel [16:44] wolftankk has joined the channel [16:44] cfq: booyaa: it's in this place called http://forwardtechnology.co.uk/ in Camden [16:44] jesster7 has joined the channel [16:44] brianc: booyaa: no, i mean clone your project, not the modules, sorry [16:44] jesster7 has left the channel [16:44] madhums has joined the channel [16:45] marcello3d: lamp: is there an error? [16:45] booyaa: brianc: ah, see that's the one thing i don't like about installing module locally. gotta fetch everything from web each time. [16:45] booyaa: sometimes all i got is my crapping iphone tether connection [16:45] booyaa: <-- prolly doing it wrong [16:45] tiagobutzke has joined the channel [16:45] booyaa: cfq: damn, can't believe i'm missing this. [16:45] booyaa: may see if i can still sign up [16:45] jarek__ has joined the channel [16:45] TheJH: booyaa, replicate the registry :P [16:46] cfq: booyaa: I bet you can! [16:46] brianc: booyaa: each time you clone the repo, yeah? but how many times do you clone the repo onto a fresh computer? [16:46] brianc: booyaa: and `npm install` takes no longer than 10 seconds usually [16:46] pixel13 has joined the channel [16:46] cfq: booyaa: there are 7 more tickets. click here --> http://lnugnovember11.eventbrite.co.uk/ [16:47] simenbrekken has joined the channel [16:47] booyaa: oo ooo let see if i can get a booze pass then [16:47] davidwalsh has joined the channel [16:48] pixel13 has left the channel [16:48] caolanm has joined the channel [16:50] maletor has joined the channel [16:50] cgfuh has joined the channel [16:51] idl3 has joined the channel [16:51] cfq: booyaa: i'll see you there if you can make it then [16:51] chrislorenz has joined the channel [16:54] booyaa: achievement unlocked: booze pass acquired! [16:54] booyaa: cfq *hi5* [16:54] booyaa: nice spot [16:54] cfq: hah no worries :-) I'll see you there then [16:55] booyaa: cool! i'll be the one wearing the pink carnation... no srsly i'll prolly be the only suit there with light blue gingham shirt [16:55] johnnywengluu_ has joined the channel [16:55] sh1mmer has joined the channel [16:55] jtsnow has joined the channel [16:57] tiagobutzke has joined the channel [16:59] ecin_ has joined the channel [17:00] mmalecki: btw, there's an awesome game at google.com :D [17:00] gigonaut has joined the channel [17:00] isaacs has joined the channel [17:02] dgathright has joined the channel [17:02] booyaa: heheh [17:03] mikeal has joined the channel [17:03] bodisiw has joined the channel [17:05] Swizec has joined the channel [17:05] blitzMN has joined the channel [17:06] pizthewiz has joined the channel [17:07] aconbere has joined the channel [17:09] _dc has joined the channel [17:11] mehtryx1 has joined the channel [17:11] jstash: tjholowaychuk: i know it's early, but want to meet for coffee? contractors are messing around at inhub getting ready to boot the current occupant (me) [17:11] EyePulp: dcc me some coffeee [17:11] EyePulp: *coffee [17:11] jstash: dcc connection failed, sorry. [17:11] jstash: check your firewall [17:12] jstash: might not support BoIP [17:12] MatthewS has joined the channel [17:13] davidascher has joined the channel [17:13] EyePulp: Beverage oIP ? [17:13] EyePulp: or Beans ? [17:13] jstash: Beverage-over-IP [17:13] eldios: anyone has a link of an udp server tutorial? with how to answer to clients in it :P [17:14] EyePulp: jstash: Stupid ufw settings. [17:14] EhevuTov has joined the channel [17:15] jstash: EyePulp: you should upgrade. BoIP brings a whole new meaning to "steaming^Wstreaming content" [17:15] dilvie has joined the channel [17:15] jstash: ;) [17:15] EyePulp: heh [17:15] sfoster has joined the channel [17:15] jstash: eldios: are the examples in the node docs not sufficient? [17:15] vkandy has joined the channel [17:16] Xano has joined the channel [17:16] jstash: eldios: http://nodejs.org/docs/v0.6.2/api/dgram.html#dgram.bind [17:16] jimmysparkle has joined the channel [17:16] shedinja: how can I pause a download/upload? is there some headers I can send that tell a server what part of a file to send? [17:16] ryanfitz has joined the channel [17:17] synkro has joined the channel [17:17] eldios: jstash, I can send udp dgams [17:17] eldios: I can listen to udp dgrams [17:17] zeade has joined the channel [17:17] eldios: but I cannot answer back to a client which is contacting the server [17:17] eldios: but I suppose I'm missing something about how UDP works :P [17:17] jstash: maybe you don't understand how UDP works... there is no reply in UDP [17:17] jstash: you just send to the address that sent to you [17:18] TheJH: shedinja, in HTTP? [17:18] TheJH: shedinja, yes, there are "range" headers or so, but only works if the server supports it [17:18] jstash: eldios: take the address out of that "rinfo" struct that the "message" event gets and use that to client.send [17:19] eldios: not working [17:19] eldios: let me pastebin it [17:19] afrogrizzly has joined the channel [17:20] jstash: oh, you might want to bind() to the port you received on (so server.send(...)) [17:20] jstash: have done UDP in other languages, just not node [17:20] eldios: http://pastebin.com/ETd1ypDz [17:20] Kudos has joined the channel [17:21] eldios: yes I'm exactly doing that [17:21] eldios: in fact it was supposed to work in my mind [17:21] eldios: still it is not working [17:21] jstash: for client_ans use server instead [17:21] Kudos: I'm getting the following error when running make on Lion; "Build failed: -> task failed (err #2):{task: uv uv.h -> uv.a}" [17:21] Kudos: anyone recognise it? [17:21] jstash: and don't close() it [17:23] topaxi: Kudos: had the same problem on ubuntu 10.10, symlinking /usr/bin/gcc to /usr/local/bin/gcc fixed the problem (no idea how to fix it properly ^^) [17:23] Kudos: some googling tells me openssl might be to blame [17:23] eldios: tnx jstash it's working [17:23] Kudos: make [17:24] jstash: woo! [17:24] mattpardee_ has joined the channel [17:24] eldios: ^_^ [17:24] eldios: so creating a new stream was not a good idea [17:24] gut4 has joined the channel [17:25] eldios: I wonder why.. since from the "client" side this shouldn't matter aint' it? [17:25] shedinja: TheJH: ah, thanks [17:25] johnnywengluu_ has joined the channel [17:26] jstash: well, if the client is listening for messages *from* a particular port it may matter [17:26] mattpardee has left the channel [17:26] eldios: mm [17:26] eldios: right [17:26] eldios: thanks a gain [17:26] eldios: =) [17:26] eldios: o/ [17:26] jstash: \o [17:27] lmatteis: node should've been written for lisp! [17:27] lmatteis: D: [17:27] afrogrizzly has joined the channel [17:27] joshthecoder has joined the channel [17:27] jstash: lmatteis: make a libuv binding for lisp ;) [17:27] johnnywengluu_: Would java fit? [17:28] johnnywengluu_: Jnode [17:28] jamescarr has joined the channel [17:31] chababa has joined the channel [17:33] JanLi has joined the channel [17:36] bradleymeck: johnnywengluu_ unfortunately JNI bindings are a pain to maintain... but it would be doable... [17:37] jarek has joined the channel [17:37] jarek has joined the channel [17:37] colinclark_ has joined the channel [17:38] mmalecki: it can be simplified to "Java is a pain to maintain" [17:39] richardr: http://pastie.org/private/ctei7flgrewlw0v5epp6g I've added this (app.helpers) to my settings.js where app.dynamicHelpers are defined and are working. However app.helpers aren't working. [17:39] richardr: When I define these as app.dynamicHelpers, they are executed in the views but the arguments arent passed through. If I define them as app.helpers they aren't executed in the view [17:39] richardr: Any help is appreciated - thanks [17:40] tjholowaychuk: richardr you're just wanting to do _(foo) in the view? [17:40] bulatshakirzyano has joined the channel [17:40] tjholowaychuk: .helpers() for 2.x would be correct for that [17:40] hlobil has joined the channel [17:40] richardr: tjholowaychuk: yup but its not working :/ [17:41] richardr: tjholowaychuk: v0.6.1 node.js, latest express from npm [17:41] k1ttty has joined the channel [17:41] tjholowaychuk: which template engine? maybe it's using _ interally or something [17:41] tjholowaychuk: any errors? [17:41] richardr: tjholowaychuk: I added that right under app.dynamicHelpers, it doesn't execute those in the views. the dynamicHelpers work [17:41] richardr: jade, no errors [17:41] tjholowaychuk: jump in #express [17:42] saesh has joined the channel [17:42] booyaa: right time to be getting ready for this nodejs event woohoo! [17:42] joaquin_win_ has joined the channel [17:42] appinsanity-mi-1 has joined the channel [17:43] dshaw_ has joined the channel [17:43] devongovett has joined the channel [17:45] pongwon has left the channel [17:45] dingomanatee: tjholowaychuk: when I run my unit tests, node_modules doesn't seem to "kick in" - can I fix this? [17:45] zivester has joined the channel [17:45] ecin_ has joined the channel [17:45] dilvie: what event? [17:46] tjholowaychuk: dingomanatee kick in? did you install your deps? [17:46] tjholowaychuk: $ npm install [17:46] dingomanatee: they are installed in /[project]/node_modules [17:46] rendar has joined the channel [17:46] dingomanatee: not globally [17:47] ryan_stevens has joined the channel [17:47] dingomanatee: and my tests are in /[project]/tests [17:50] johnnywengluu_: mmalecki: I thought Java's main goal was to make it simpler [17:50] Neil_ has joined the channel [17:50] chrislorenz has joined the channel [17:51] EhevuTov has joined the channel [17:51] TheJH: johnnywengluu, WHAT? LOL ROFL ROTFL [17:51] blup has joined the channel [17:51] dshaw_ has joined the channel [17:52] eldios: how do I print the binary data inside a buffer? [17:52] eldios: sprtinf? [17:52] TheJH: eldios, as what do you want to print it? [17:52] TheJH: eldios, hex dump? raw? [17:52] TooTallNate has joined the channel [17:53] kickingvegas has joined the channel [17:53] eldios: hey TJ.. yes one of the two.. binary or hex [17:53] dingomanatee: here is the environment -- http://pastebin.com/LRxEKQkh [17:53] smgt has joined the channel [17:54] dingomanatee: shouldn't /node_modules/foo.js be loaded if process.cwd() == [project]? [17:54] zivester has joined the channel [17:54] eldios: maybe hex is better O_o [17:54] Kudos has left the channel [17:56] context: dingomanatee: no. [17:57] context: dingomanatee: thats not how modules work. its not just a single file in a dir [17:57] test has joined the channel [17:57] jarek has joined the channel [17:57] eldios: TheJH* [17:57] eldios: I read it wrong :P [17:57] piscisaureus_ has joined the channel [17:57] brion has joined the channel [17:58] TheJH: eldios, console.log(buf.toString('hex')) [17:58] eldios: m [17:58] eldios: k tnx :) [17:58] TheJH: eldios, should work on node 0.5.x or newer [17:58] eldios: yes I'm on 6.0.2 [17:58] TheJH: eldios, :) [17:59] dingomanatee: context: if in project/index.js I put var foo = require('foo');console.log(foo(2)); it works just fine. [17:59] context: :/ [17:59] chmoder has joined the channel [17:59] context: did you play with the include path [17:59] ekryski has joined the channel [18:00] Carter has joined the channel [18:00] chmoder: hi! I have been looking around for quite a while about this 1GB memory issue. Can someone here explain how to "--max-old-space-size" on node? [18:00] towski has joined the channel [18:01] aconbere has joined the channel [18:01] test has left the channel [18:01] springmeyer has joined the channel [18:01] socialhack has joined the channel [18:01] context: mm that does work :x [18:01] context: dingomanatee: not sure how you'd get around that, i imagine most/a lot of test suites make this easier [18:02] chmoder: I have compiled with --dest-cpu=x64 and var buf0 = new Buffer(1024*1024*1024); [18:03] fbartho has joined the channel [18:03] hipsterslapfight has joined the channel [18:04] _dc has joined the channel [18:05] michielbdejong has joined the channel [18:08] pitlimit has joined the channel [18:08] CIA-109: libuv: 03seebees 07master * r59f9a73 10/ (test/test-list.h test/test-spawn.c): test: process should not wait for stdio before terminating - http://git.io/hC_LiQ [18:08] CIA-109: libuv: 03Ben Noordhuis 07master * r96c2303 10/ src/unix/internal.h : linux: fix build when compiling with -std=c89 -pedantic - http://git.io/Y3OG1g [18:08] CIA-109: libuv: 03Ben Noordhuis 07master * ref811b1 10/ src/unix/internal.h : Merge branch 'v0.6' - http://git.io/r1JhRA [18:08] CIA-109: libuv: 03Ben Noordhuis 07v0.6 * r96c2303 10/ src/unix/internal.h : linux: fix build when compiling with -std=c89 -pedantic - http://git.io/Y3OG1g [18:08] pitlimit: I'm trying to run a server over https... when I don't run it as root, I cannot start, but I don't want to run my server as root... is there a workaround? [18:09] lightcap has joined the channel [18:10] mehtryx has joined the channel [18:10] johnnywengluu: TheJH: At least I like their goal =) [18:10] johnnywengluu: and some java stuff like Lucene and Neo4j [18:11] MatthewS has joined the channel [18:11] bnoordhuis: chmoder: here is how you use it: `node --max_old_space_size=1500 script.js` [18:11] TheJH: johnnywengluu, javas signal-to-noise-ratio is just... bad, I think. All those lines with curlies only... and all that unnecessary stuff you need for iteration-function-like stuff... bah [18:12] gripir has joined the channel [18:12] johnnywengluu: TheJH: http://www.youtube.com/watch?v=Cui78xrrhFI [18:12] johnnywengluu: haven't watched it yet .. we can watch it together=) [18:12] TheJH: plus, nearly every time you write a type, java could just determine it itself [18:12] mehtryx has left the channel [18:13] johnnywengluu: TheJH: C++ is much better? [18:13] colinclark has joined the channel [18:14] TheJH: johnnywengluu, coco is much better :) [18:14] lightcap has joined the channel [18:14] johnnywengluu: TheJH: what is coco? [18:15] chia has joined the channel [18:15] TheJH: johnnywengluu, a coffeescript fork [18:15] johnnywengluu: Ah [18:15] TheJH: !coco compile import defaults <<< options [18:15] jhbot: __import(__import(this, defaults), options); function __import(obj, src){ var own = {}.hasOwnProperty; for (var key in src) if (own.call(src, key)) obj[key] = src[key]; return obj; } [18:15] gr-eg has joined the channel [18:16] TheJH: johnnywengluu, ^ is the code for overriding defaults with options and then copying the whole thing on `this` [18:16] johnnywengluu: but i love ruby =) [18:17] johnnywengluu: kinda nice syntax at some places [18:18] joaquin_win_ has joined the channel [18:19] johnnywengluu: TheJH: you should have solid documentation like CS .. and a live compiler [18:19] johnnywengluu: it would be more simple to use it [18:19] TheJH: johnnywengluu, satyr is its maintainer. and there is a webshell, http://satyr.github.com/cup/ [18:19] marcello3d: chmoder: on a side note I don't believe the v8 size limit affects Buffer objects [18:19] johnnywengluu: TheJH: ah thought you were Satyr [18:20] johnnywengluu: I always think you are someone else [18:20] TheJH: :D [18:20] johnnywengluu: CoffeeScript author and now Coco author [18:20] johnnywengluu: what is wrong with you [18:20] marcello3d: woo coffeescript [18:20] TheJH: ACTION is TheJH or thejh or Jann Horn, nobody else :D [18:21] stantona has joined the channel [18:22] context: hi nobody else [18:22] patcito has joined the channel [18:23] johnnywengluu: TheJH: I hope it will catch on .. I sure like different options [18:23] johnnywengluu: and it handles the array syntax better [18:23] TheJH: foo.2 :) [18:24] gregsmith has joined the channel [18:24] gregsmith: anyone know the proper way to get a npm module's directory? to make this path relative: https://github.com/incompl/updoc/blob/master/bin/updoc#L18 [18:26] marcello3d: __dirname? [18:26] francisl has joined the channel [18:26] marcello3d: http://nodejs.org/docs/v0.3.1/api/globals.html#__dirname [18:26] marcello3d: woah old docs [18:26] marcello3d: go google [18:27] gregsmith: yeah pretty new to this but have found googling node stuff can be rough [18:27] marcello3d: anyway [18:27] lyte has joined the channel [18:27] lyte has joined the channel [18:27] marcello3d: that hasn't changed: http://nodejs.org/docs/v0.6.2/api/globals.html#__dirname [18:27] gregsmith: trying that out [18:27] marcello3d: if you're trying to find the path of an external module, you can use require.resolve (on the same page) [18:28] marcello3d: but it's probably bad practice to stick your fingers into an external module's directory structure [18:28] gregsmith: nod, just trying to get my own module's path. require.resolve didn't seem to work, presumably because it isn't defined yet while running [18:29] gregsmith: or something along those lines [18:29] marcello3d: yea [18:29] marcello3d: just use __dirname + "/../etc" [18:31] bingomanatee_: when I run node from unit test command line (mocha) , node_modules/ loaded modules don't seem to kick in. should I expect them to, or is there a way to make them recognize content in the node_modules folder? [18:31] franciscallo has joined the channel [18:31] gregsmith: this does the trick thanksa ton [18:31] jhurliman: ? [18:32] ovaillancourt has joined the channel [18:32] creationix has joined the channel [18:32] gripir has left the channel [18:32] jxson has joined the channel [18:33] kitt has joined the channel [18:33] Margle has joined the channel [18:34] FireBomb has joined the channel [18:34] jgornick has joined the channel [18:34] binaryjohn has joined the channel [18:36] vguerra has joined the channel [18:38] dreamdust has left the channel [18:38] jrogers has joined the channel [18:38] thalll has joined the channel [18:38] no-gooder has joined the channel [18:39] Lingerance: I'm trying to install npm on windows, but it's giving an error about certificates when I try to do "git submodule update" in the npm directory. [18:40] ryanfitz has joined the channel [18:40] hotch has joined the channel [18:41] Lingerance: http://npmjs.org/doc/README.html <-- following this [18:41] bodisiw has joined the channel [18:41] kickingvegas: ACTION rediscovering the joy of editing node code remotely with emacs and tramp [18:42] ryanrolds_w has joined the channel [18:42] hotch: hey does anyone know (off topic but I'm working on a node related proj) if rails scaffolds are generated via template files, directly from source or...? [18:42] hotch: kickingvegas: tramp? [18:42] kickingvegas: hotch: if you used ange-ftp, tramp is the ssh aware rewrite of it [18:43] arcanis has joined the channel [18:43] hotch: ahh ok [18:43] kickingvegas: hotch: if not, then if you have emacs locally, you can have it edit remote files [18:43] hotch: yeah I've used emacs :P [18:43] kickingvegas: using tramp [18:43] Nss has joined the channel [18:43] sdwrage has joined the channel [18:43] Nss: hi guys [18:44] micheil has joined the channel [18:44] kickingvegas: hotch: pleasantly surprised that invoking a shell when in a tramp buffer will remote ssh into the server automagically; 3> [18:44] hotch: haha awesome [18:45] bingomanatee_: Does anyone have any insight into http://stackoverflow.com/questions/8247453/how-can-i-get-my-node-js-unit-tests-to-recognize-node-modules? [18:47] jerrysv has joined the channel [18:47] tjbell has joined the channel [18:47] hotch: bingomanatee_: didn't look over all of the details, but i use vows and a typical module of mine would have /lib and /test, and a test say test/foo.test.js would have var myModule = require("../lib/moyModule"); [18:48] blup has joined the channel [18:48] kickingvegas: bingomanatee_: Without too much thought (also I'm relatively new to Node.js), I've taken the big hammer approach of symlinking node-modules to either the current or parent directory of whatever I'm working in [18:49] diogogmt has joined the channel [18:49] bingomanatee_: hmm - that is interesting. [18:49] mange has joined the channel [18:49] akiva has joined the channel [18:51] tjholowaychuk: bingomanatee_ node's lookup has changed so many times i dont even think about it anymore [18:51] tjholowaychuk: haha [18:51] tjholowaychuk: but yeah i typically just do relative requires now too [18:51] bingomanatee_: hum - back to the bad old days... [18:52] pyrony has joined the channel [18:52] robotmay has joined the channel [18:54] colinclark has joined the channel [18:54] marcello3d: bingo: is the test part of the the library you're testing? or are you requiring a third party library as part of the test? [18:55] marcello3d: for the former case, I do a relative require (since technically the module hasn't been installed/packaged yet) [18:55] colinclark has joined the channel [18:55] kickingvegas: yep, my impression is that importing is half-baked in Node.js. Or is this a JavaScript thing? [18:55] marcello3d: for the latter case, it /should/ work... [18:55] liar has joined the channel [18:55] marcello3d: javascript doesn't specify importing [18:55] wojohowitz has joined the channel [18:56] skenqbx has joined the channel [18:56] kickingvegas: marcello3d: ah. doesn't make the import problem any easier then. [18:56] marcello3d: yea, I think node actually does a pretty good job. it's very very simple and no-frills [18:57] tjholowaychuk: require()ing is nice and explicit [18:57] zivester has joined the channel [18:57] marcello3d: yea [18:57] JanLi has joined the channel [18:58] heavysixer has joined the channel [18:58] marcello3d: client side module support/importing tends to be much more complicated due to the asynchronous nature of browsers [18:58] pHcF_ has joined the channel [18:59] marcello3d: in node you're rarely loading modules on the fly [18:59] CarterL has joined the channel [18:59] jldbasa has joined the channel [19:00] tvw has joined the channel [19:02] jamescarr: doozerd is overhyped [19:02] skenqbx has joined the channel [19:03] DrHeiter23 has joined the channel [19:03] Swizec has joined the channel [19:03] ph^_ has joined the channel [19:04] perezd has joined the channel [19:04] Raynos: If I installed npm "wrong" on windows and want to reinstall it [19:04] DrHeiter23: If http.request(options,callback) returns a ClientRequest object but the request is started before the ClientRequest object is returned by http.request and it emits an error before you have time to setup an error handler..what do you do? [19:05] socialhack has joined the channel [19:05] Raynos: Is there anything I should run to clean up the previous install? [19:06] adrianmg has joined the channel [19:06] EhevuTov has joined the channel [19:07] marcello3d: DrHeiter23: it shouldn't start until nextTick [19:07] eventualbuddha has joined the channel [19:07] marcello3d: so if you bind event listeners immediately after that line of code (not in an asynchronous callback), they'll be there before the error [19:07] DrHeiter23: marcello3d: hmm [19:08] DrHeiter23: yeah that's what you'd expect. Some reason it appears that it's not happening. Im probably just misinterpreting what's really going on [19:08] marcello3d: well if it's not working that way, there's a bug [19:09] vicapow has joined the channel [19:09] mikeal has joined the channel [19:09] DrHeiter23: yeah https://github.com/joyent/node/issues/1956 is the issue I'm referring to [19:09] DrHeiter23: except no one seems to be sure why it's happening, just my guess [19:09] adrianmg has left the channel [19:09] Margle has joined the channel [19:10] michielbdejong has left the channel [19:10] npa has joined the channel [19:10] marcello3d: also throwing an exception is very different from an emitted error event [19:10] vkandy has joined the channel [19:13] DrHeiter23: true [19:13] saesh has joined the channel [19:13] marcello3d: though it'll throw the error event if there are no error listeners [19:14] Raynos: What happpened to node.exe ? [19:15] DrHeiter23: that's what I think is happening then. If you go to the socket.onData in http.js you'll see it checks if the return is an error and then calls socket.destroy() with the error object which emits it [19:15] p1d has joined the channel [19:15] TheJH: Raynos, you mean, the one you can download on nodejs.org? [19:16] bodisiw has joined the channel [19:16] TheJH: Raynos, "Other release files (like .exe and .pdb)" [19:16] flexd: Does anyone have experience using coffeescript with node/using zappa? (Zappa is a coffeescript interface to express/socket.io) [19:16] TheJH: Raynos, http://nodejs.org/dist/v0.6.2/node.exe [19:16] flexd: It's being.. retarded [19:16] flexd: That's about how I would describe it, idiotic error messages I cannot figure out why I am causing. :-/ [19:17] fmeyer has joined the channel [19:17] Raynos: TheJH: awesome o/ [19:18] Raynos: wonder whether I can get npm working (3rd time lucky) [19:18] marcello3d: DrHeiter23: don't know :( [19:18] sdwrage has joined the channel [19:19] isaiah_ has joined the channel [19:19] paq has joined the channel [19:20] VooDooNOFX has joined the channel [19:20] neilk_ has joined the channel [19:21] Raynos: Oh wow, npm works o/ [19:21] Raynos: isaacs++ [19:21] towski has joined the channel [19:21] ryan_stevens has left the channel [19:21] sridatta has joined the channel [19:22] maushu has joined the channel [19:23] luoluoluo has joined the channel [19:26] EhevuTov_ has joined the channel [19:26] colinclark_ has joined the channel [19:26] whitman has joined the channel [19:27] richardr has joined the channel [19:28] r1ngzer0 has joined the channel [19:30] chmoder has joined the channel [19:31] Isaiah has joined the channel [19:31] chmoder: so using max-old-space does not work. Does anyone know why I get, " FATAL ERROR: v8::Object::SetIndexedPropertiesToExternalArrayData() length exceeds max acceptable value " when trying to allocate 1024 MB of memory in a buffer object? [19:32] socialhack has joined the channel [19:33] mehlah has joined the channel [19:33] nephics1 has joined the channel [19:34] Dreamer3 has joined the channel [19:34] brianc1 has joined the channel [19:36] pitlimit has joined the channel [19:36] pitlimit has joined the channel [19:36] bartt has joined the channel [19:36] garrensmith has joined the channel [19:37] bnoordhuis: chmoder: it's a hard-coded limit in v8 [19:37] airhorns has joined the channel [19:38] chmoder: so i just need to check the source and alter it? [19:38] shapeshed has joined the channel [19:38] bradleymeck: a 1GB buffer... [19:38] EhevuTov has joined the channel [19:39] chmoder: There actually is no problem yet. Im doing load testing. Funny thing is i can allocate an array with more than 1024 1 mb buffers [19:41] bnoordhuis: chmoder: try `new Buffer(1024*1024*1024 - 1)` [19:41] bnoordhuis: v8 doesn't allow external arrays (what a buffer is) larger than that [19:41] Drakonite has joined the channel [19:42] jesusabdullah: Buffers are nice. I learned yesterday that python uses unicode strings instead of a buffer datatype and that made me :C [19:43] bnoordhuis: jesusabdullah: python 3, i take it? [19:45] chmoder: bnoordhuis: this works [19:45] gtramontina has joined the channel [19:45] svnlto has joined the channel [19:46] Xano has joined the channel [19:46] chmoder: i guess I can live with this. have to talk to other ppl to see if we will ever actually need a buffer larger than 1GB [19:46] Draco_ has joined the channel [19:48] franksalim: jesusabdullah: python3 has separate types for strings and bytes. why does that make you sad? [19:48] snowinferno has joined the channel [19:49] snowinferno: Hi all, I have an object that I'm building out in 0.6.2 that I want to be able to attach events to, is there a way to do that? [19:50] shedinja_ has joined the channel [19:50] brianseeders has joined the channel [19:52] Jarda has joined the channel [19:52] Jarda: http://pastie.org/2910621 [19:52] bosphorus has joined the channel [19:53] Jarda: any ideas? [19:53] FMJaggy has joined the channel [19:53] shapeshed: Permissions [19:54] shanez has joined the channel [19:54] arcatan: Jarda: http://stackoverflow.com/questions/7705110/error-trying-to-install-npm-for-node-js [19:54] dnjaramba has joined the channel [19:55] shapeshed: Either fix the permissions or install with sudo [19:55] tiagobutzke has joined the channel [19:55] Jarda: ok [19:55] context: try running as root [19:56] jbpros has joined the channel [19:56] context: yeah what shapeshed said [19:56] CoverSlide: or do like me: `echo $HOME>>~/.npmrc;export PATH="$HOME/bin:$PATH";curl http://npmjs.org/install.sh | sh` [19:56] jesusabdullah: bnoordhuis, franksalim, this was 2.7 actually [19:56] jesusabdullah: meaning, no separate type [19:56] Jarda: I thought it was my problem [19:56] marcello3d has joined the channel [19:56] CoverSlide: sorry that's `echo prefix=$HOME>>~/.npmrc;export PATH="$HOME/bin:$PATH";curl http://npmjs.org/install.sh | sh` [19:56] jesusabdullah: It works, but I like the mental model of buffers [19:56] Jarda: as my node modules go to ~/node_modules instead of to the current directory [19:56] lyte_ has joined the channel [19:57] CoverSlide: only if they're installed with npm -g [19:57] CoverSlide: or you're using 0.3.x [19:57] stantona has joined the channel [19:58] felixge has joined the channel [19:59] marcello3d has joined the channel [19:59] brianc has joined the channel [19:59] jbrokc_ has joined the channel [20:00] phiggins has joined the channel [20:00] shanez_ has joined the channel [20:00] pgte has joined the channel [20:00] marcello3d has joined the channel [20:01] whotemp has joined the channel [20:01] whotemp has left the channel [20:02] snowinferno: This is what I'm trying to do in code for a module of my node application: http://pastie.org/2910697 [20:02] TooTallNate has joined the channel [20:02] snowinferno: but it doesn't seem to work at all, I get the message that Object has no method 'on' [20:03] Jarda: CoverSlide: I had upgraded to 1.x [20:03] Jarda: but still they went to my home directory [20:03] stantona has joined the channel [20:03] Morkel has joined the channel [20:03] Jarda: I just cleaned everything npm-related from my computer [20:03] Jarda: and everything started to work [20:04] context: whats the point of lines 8 and 11 [20:04] context: and .... what is newSocket [20:05] CoverSlide: seems you need to learn javascript first [20:06] snowinferno: newSocket is a fresh TCP socket connection, when I try this = new events.EventEmitter() I get the message invalid left hand side [20:06] whotemp has joined the channel [20:06] CoverSlide: yeah because `this` is read-only [20:06] chababa has joined the channel [20:06] context: snowinferno: what he said about learning js... you should do that [20:07] snowinferno: I'm pretty familiar with js [20:07] snowinferno: just new to node [20:07] context: then why are you doing this= [20:07] context: and why are lines 8 and 11 even there [20:07] ryanfitz_ has joined the channel [20:07] lzskiss has joined the channel [20:07] context: considering 14 renders them both moot [20:08] context: blah= doesnt "add" things to said object [20:08] context: what you are familiar with is not js. i dont know of any language that would work like that [20:09] snowinferno: obviously I had the wrong idea of how this and new work in js [20:10] Raynos: fs.watch doesn't appear to watch child folders [20:10] context: new probably works how you expect [20:10] Raynos: is there a flag to make it do that? [20:10] context: you dont know how = works [20:10] bnoordhuis: Raynos: no [20:12] lzskiss: yo [20:12] snowinferno: you know, instead of belittling me for being mistaken in what I was trying to do, how about you answer the question I initially asked: How do I make a custom object accept event listeners? [20:12] shapeshed: here here [20:13] ddubs: context is your token irc goon [20:13] ddubs: you learn to ignore them [20:13] bnoordhuis: snowinferno: look at util.inherits() [20:13] CoverSlide: snowinferno: http://nodejs.org/docs/v0.6.2/api/util.html#util.inherits << this shows you how in the example [20:14] felix___ has joined the channel [20:14] snowinferno: thanks bnoordhuis and CoverSlide, checking that out now [20:14] shinuza has joined the channel [20:16] francisl: is there someone who use webworker/websocket-client with node 0.6.+? [20:16] `3rdEden has joined the channel [20:17] jgornick has joined the channel [20:18] stagas has joined the channel [20:19] towski has joined the channel [20:20] wao: hey hou [20:21] hackband has joined the channel [20:21] wao: does someone solved logging of nodejs application to some database? which database choose for logs? [20:24] colinclark has joined the channel [20:25] colinclark has joined the channel [20:26] chababa: i'm having some trouble with browserify and relative requires [20:26] chababa: can anyone see whats wrong with this? http://pastie.org/2910809 [20:26] chilts: wao: if you use winston for logging, you can choose between a number of options including lots of DBs [20:26] chilts: !npm search winston [20:26] jhbot: packages (short format): node-logentries, winston-syslog, winston-riak, winston-mongodb, winston-redis, winston-amqp, nodejs-intro, cliff, winston-zmq, winston-simpledb, winston [20:27] wao: chilts: actually I googled for that, http://thechangelog.com/post/2844869169/winston-a-multi-transport-async-logging-library-for-node [20:27] wao: chilts: and which db do you reccomend for logging? [20:27] chababa: here's the error it throws http://pastie.org/2910810 [20:28] EhevuTov has joined the channel [20:28] chilts: wao: I wrote winston-simpledb so I'm biased [20:28] chilts: but I figure I'd otherwise go with a non-db solution ... can't say since I haven't used them all [20:28] chilts: I'm also more used to mongodb so I'd go for that ... or whatever you're already more familiar with [20:29] chilts: if your needs aren't great, then your final solution probably doesn't matter so much [20:29] chrisvwebdev has joined the channel [20:29] chrisvwebdev has left the channel [20:29] wao: chilts: right, we're bit familiar with couchdb for now [20:30] wao: but we also considering about mongo :) [20:30] chilts: pick one of those two :) [20:30] fmeyer_ has joined the channel [20:31] shapeshed: what kind of analysis are you doing on the logs? [20:31] mmalecki: mongo may be better for logs [20:31] mmalecki: you're doing more writes than reads, usually [20:31] shapeshed: text files and logrotate are old but gold [20:32] whotemp has left the channel [20:33] ryanfitz has joined the channel [20:34] snowinferno: Is it generally considered poor form to add an eventlistener to an object from within another event listner for the same event? For example, I want one set of logic to occur the first time the data event for a socket fires but a different set of logic for each subsequent time unless circumstances dictate it should repeat the first-time logic (such as a bad password). [20:34] DrHeiter23: just keep state [20:35] DrHeiter23: if(self._isFirstTime || self._isBadPassword) { do this } else { do that } [20:35] MooGoo: seems like having different callbacks is keeping state [20:36] MooGoo: there's nothing wrong with it really...but it helps to have a .once function [20:36] uchuff has joined the channel [20:36] chilts: that's a good idea: _.firstDoThisThenSubsequentlyThis(firstTimeFunction, theRestFunction) :) [20:37] chilts: ACTION would need a better name :) [20:37] chilts: that's be awesome in Underscore ... I'll do a pull request later today [20:37] CoverSlide: haha [20:37] CoverSlide: verbosity++ [20:38] snowinferno: heh that's what I thought, the issue I'm encountering is I'm inheriting from event emitter to a custom object, I can add the first listener with once but when i try to add the next one with once, I get an error that the object doesn't have a method 'once'. I'm looking again to make sure I'm really acting on my custom object instead of the raw socket but both of them should have the once method [20:38] DrHeiter23: MooGoo: well not really, "unless circumstances dictate it should repeat the first-time logic " [20:38] chilts: CoverSlide: _.initially(fn, thenFn); // how does that sound? :) [20:38] chilts: (with an optional 'count'?) [20:40] magnetik has joined the channel [20:40] magnetik: Hi [20:41] darrylhebbes has joined the channel [20:41] magnetik: Is it possible to have multiple "main" in a package.json ? [20:41] snowinferno: ahhh I think I just found the error [20:42] snowinferno: hmm nope [20:45] shapeshed: what do you need multiple mains for? [20:45] snowinferno: Does node support multiple inheritance? [20:46] Lingerance: No [20:47] Lingerance: You have to use mixins for that [20:47] pyrony has joined the channel [20:48] isaacs has joined the channel [20:49] dnyy has joined the channel [20:49] boltR has joined the channel [20:50] VooDooNOFX has joined the channel [20:50] broofa has joined the channel [20:51] CIA-109: node: 03Ben Noordhuis 07isolates * r8ebe08a 10/ (4 files): isolates: add atexit() functionality for isolates - http://git.io/XP4rdw [20:51] CIA-109: node: 03Ben Noordhuis 07isolates * r67077b0 10/ (18 files in 2 dirs): isolates: isolate-ify the main loop - http://git.io/GcdroQ [20:51] CIA-109: node: 03Ben Noordhuis 07isolates * r2b0bdc8 10/ (src/node.cc src/node_isolate.cc): isolates: add _newIsolate() and _joinIsolate() to process object - http://git.io/LhcUMA [20:51] CIA-109: node: 03Ben Noordhuis 07isolates * r4b86c0c 10/ (21 files in 7 dirs): uv: upgrade to ef811b1 - http://git.io/aTbxNw [20:52] rio{ has joined the channel [20:52] Lingerance: Can't get git to download the submodules for npm on Windows. Following directions in http://npmjs.org/doc/README.html [20:52] Lingerance: Getting a certificate error [20:53] VooDooNOFX has joined the channel [20:54] joeytwiddle has joined the channel [20:57] VooDooNOFX has joined the channel [20:57] piscisaureus has joined the channel [20:58] Lingerance: https://gist.github.com/1389897 [21:00] p1d has joined the channel [21:01] ccare has joined the channel [21:02] scttnlsn has joined the channel [21:03] scttnlsn: why wouldn't the up arrow retrieve past lines entered into the repl? i'm on os x using Terminal.app. [21:03] stagas has joined the channel [21:04] Lingerance: Have you written anything that session? [21:04] futini has joined the channel [21:04] futini: j express [21:05] scttnlsn: Lingerance: no, does node not "remember" lines entered in previous sessions? [21:05] Lingerance: That is correct. [21:05] scttnlsn: Lingerance: bummer [21:06] jarek has joined the channel [21:06] jarek has joined the channel [21:06] mikeric has joined the channel [21:07] wankdanker has joined the channel [21:07] thepatr1ck_ has joined the channel [21:07] CiRlE has joined the channel [21:08] monokrome has joined the channel [21:09] tiagobutzke has left the channel [21:10] zeade has joined the channel [21:13] pgte has joined the channel [21:13] springmeyer has joined the channel [21:14] EhevuTov_ has joined the channel [21:17] deedubs: wonder how hard it would be to get nodes running inside Xcode so you could use it to execute tests against phonegap apps [21:19] chrisvwebdev has joined the channel [21:19] chrisvwebdev has left the channel [21:20] enmand has joined the channel [21:20] vkandy: guys not sure where else to ask. in 0.6.2, what's the right to start express in each worker? [21:20] martin_sunset has joined the channel [21:20] vkandy: right way [21:21] Lingerance: https://gist.github.com/1389956 <-- npm install on Windows now getting a missing module error, anyone know what module that is? [21:22] izs: Lingerance: try this zip instead: http://npmjs.org/dist/ [21:22] izs: Lingerance: just unpack it wherever node lives. [21:22] izs: and you should be good [21:22] Lingerance: <3 [21:22] pgte has joined the channel [21:22] arcatan has left the channel [21:22] mike5w3c_ has joined the channel [21:25] Sorella has joined the channel [21:26] cjm has joined the channel [21:27] jocafa: tjholowaychuk: around? [21:27] stantona has joined the channel [21:27] skm has joined the channel [21:28] shapeshed has joined the channel [21:28] stantona has joined the channel [21:29] stantona has joined the channel [21:29] socialhack has joined the channel [21:31] hornairs has joined the channel [21:32] bengrue has joined the channel [21:33] jbrokc_ has joined the channel [21:34] torm3nt has joined the channel [21:35] Isaiah has left the channel [21:36] rauchg has joined the channel [21:38] jbrokc_ has joined the channel [21:38] fly-away has joined the channel [21:38] brianseeders has joined the channel [21:41] rauchg has joined the channel [21:41] gsmcwhirter has joined the channel [21:41] hoofed has joined the channel [21:43] jbrokc__ has joined the channel [21:48] fattytuna has joined the channel [21:51] ChrisPartridge has joined the channel [21:53] russell_h: what is the latest way to reload a module once it has been cached? [21:53] russell_h: require.cache ? [21:54] joshgillies has joined the channel [21:54] hipsterslapfight has joined the channel [21:56] tttthet has joined the channel [21:56] jarek has joined the channel [21:57] TheJH: russell_h, what do you mean with "reload"? [21:58] TheJH: russell_h, do you really want it to be loaded and parsed again? or do you just want to have the same instance of the module again? [21:58] jmar777 has joined the channel [21:58] russell_h: TheJH: read the code, compile it to a module [21:58] russell_h: need it parsed again [21:58] devdazed has joined the channel [21:58] TheJH: russell_h, I think messing with require.cache is the best way [21:59] russell_h: seems like it [22:02] asdfzxc4 has joined the channel [22:02] parshap has joined the channel [22:02] Squeese has joined the channel [22:02] kkszysiu has joined the channel [22:03] jbrokc has joined the channel [22:03] blup has joined the channel [22:06] Draco_ has joined the channel [22:07] Kadmos has joined the channel [22:09] Kadmos: Hello, I'm trying to understand how to handle user access and security for a web application, can node.js be used for that? [22:09] shanebo has joined the channel [22:10] thepumpkin has joined the channel [22:10] c4milo: Kadmos: you can use expressjs [22:11] c4milo: Kadmos: it's a framework to build webapps [22:11] rio{ has joined the channel [22:11] Kadmos: I'll read about it, thanks [22:11] daithi44 has joined the channel [22:12] Kadmos: any other frameworks i should look into? [22:12] perezd_ has joined the channel [22:13] jbrokc_ has joined the channel [22:15] augustl: Kadmos: express is the most used one [22:15] augustl: not sure if there are any alternatives for building larger web applications [22:16] augustl: node apps are typically not web applications though [22:18] pHcF has joined the channel [22:18] ceej has joined the channel [22:19] sdwrage has joined the channel [22:19] cha0s has joined the channel [22:21] SteveDekorte has joined the channel [22:21] lmorchard has joined the channel [22:22] SteveDekorte: could a kind soul with a spare moment give me some advice on getting a particular node package working? :) [22:23] Industrial: SteveDekorte: don't ask to ask [22:23] piscisaureus_ has joined the channel [22:24] SteveDekorte: I've compiled and installed https://github.com/thejh/node-nacl but the test doesn't work and I'm wondering if it's a node version issue [22:24] mange has joined the channel [22:25] context: finally bought secrets of a javascript ninja [22:25] uchuff has joined the channel [22:25] aelien27 has joined the channel [22:25] devdazed: anyone know about a memory leak in console.log in v0.6.2? [22:26] npa has joined the channel [22:27] mehtryx has joined the channel [22:27] skmpy has joined the channel [22:27] creationix has joined the channel [22:27] dave has joined the channel [22:27] EhevuTov has joined the channel [22:29] TheJH: SteveDekorte, did you read my reply on the issue you posted? [22:29] TheJH: SteveDekorte, https://github.com/thejh/node-nacl/issues/1 [22:30] SteveDekorte: TheJH: yeah [22:30] xetorthio: What could cause a "Error: getaddrinfo ENOENT" when doing an http request? [22:30] EhevuTov has joined the channel [22:30] TheJH: SteveDekorte, so, did you update node? [22:30] SteveDekorte: TheJH: I upgraded to node 0.6.2 and now it compiles but the test doesn't run [22:30] TheJH: xetorthio, I'd say not existing hostname [22:30] SteveDekorte: I've emailed the author but I guess I should post an issue as well [22:31] TheJH: SteveDekorte, the author of node-nacl? [22:31] xetorthio: TheJH, it is weird. it started to happen after moving to node 0.6.2, code hasn't changed, so I guess host is not the cause [22:31] SteveDekorte: TheJH: yeah [22:32] jldbasa has joined the channel [22:32] TheJH: SteveDekorte, that's me :D [22:32] TheJH: SteveDekorte, didn't see your mail [22:32] SteveDekorte: TheJH: oh, you got my email? :) [22:32] Guest9657: At the risk of sounding like the noob that I am what's the deal with make install on 0.6.2? [22:32] SteveDekorte: oh, sorry, I mixed up the url - I meant node-rsa :) [22:32] devdazed: anyone have any idea about this? https://github.com/joyent/node/issues/2175 [22:32] SteveDekorte: I can't get node-nacl to compile at all [22:33] TheJH: SteveDekorte, what's the error? [22:33] SteveDekorte: no message - it just compiles forever at 100% cpu [22:33] TheJH: SteveDekorte, not forever [22:33] SteveDekorte: I think I let it run for 30 minutes [22:34] TheJH: SteveDekorte, from the readme: "This takes some time because there's a long benchmark that takes place after the actual C++ library got compiled. Didn't measure the time, but it's more than a few minutes." [22:34] SteveDekorte: no messages or output but my laptop was getting pretty hot [22:34] TheJH: SteveDekorte, hmm, 30min is long [22:34] TheJH: SteveDekorte, yes, it doesn't do any output [22:34] SteveDekorte: ok, I'm trying to compile it again now - it's 2:34pm PST - let's see what happens :) [22:35] TheJH: SteveDekorte, the author of nacl decided to put a big benchmark into the build process to choose optimal implementations [22:35] jmar777 has joined the channel [22:35] TheJH: SteveDekorte, I just wrote bindings and didn't want to mess around with their build process [22:36] xetorthio: TheJH, yes, just checked and the Host is OK. actually I just curled with the same info and it works. [22:36] xetorthio: TheJH, but it doesn't happen always. only sometimes. can it have something to do with the new global http agent? [22:36] TheJH: xetorthio, what are the contents of /etc/resolv.conf? [22:36] TheJH: xetorthio, what OS/distro are you using? [22:37] xetorthio: TheJH, nameserver 8.8.8.8 [22:37] marcostoledo has joined the channel [22:37] TheJH: xetorthio, mhm, sounds good [22:37] xetorthio: TheJH, Ubuntu [22:37] TheJH: xetorthio, does nslookup on the hostname work? [22:37] creationix has joined the channel [22:38] xetorthio: TheJH, sure nslookup sqs.us-east-1.amazonaws.com works just fine. also doing a curl works fine. it is just that sometimes node.js, under heavy load, throws this error [22:38] SteveDekorte: TheJH: do you know of any other RSA packages for node that you can recommend? [22:38] johnnywengluu: tjholowaychuk: OMG you did it again! [22:38] SteveDekorte: TheJH: I'd really like a pure Javascript one that works on node and in the browser [22:39] johnnywengluu: http://visionmedia.github.com/mocha/ [22:39] johnnywengluu: tjholowaychuk: does this mean that expresso is deprecated? [22:39] tjholowaychuk: johnnywengluu nope, but if you do want to use mocha you can use the exports interface [22:39] tjholowaychuk: it's pretty much identical [22:39] tjholowaychuk: just not a sloppy hack like expresso [22:40] cha0s has joined the channel [22:40] cha0s has joined the channel [22:40] TheJH: SteveDekorte, I think node 0.6.2 got RSA in core [22:40] johnnywengluu: could you say expresso = tdd and mocha = bdd [22:40] TheJH: SteveDekorte, but I don't know any pure JS implementations [22:40] tjholowaychuk: johnnywengluu: ex: https://github.com/LearnBoost/tobi/commit/00896798c5c27301763851f00471fe8c6366d39d [22:41] SteveDekorte: TheJH: the node 0.6.2 doesn't appear to support RSA key gen or encryption, just signing AFAICT [22:41] TheJH: SteveDekorte, ah, ok, didn't really read much about it [22:41] markwubben has joined the channel [22:42] jonaslund has joined the channel [22:42] SteveDekorte: TheJH: I hope I'm wrong though - are there any new docs? [22:43] tttthet has joined the channel [22:43] springmeyer: I'm running into a linker error working on compiling a c++ addon on windows that uses v8 Accessor's to get/set properties. Pasting details here in case anyone has ideas: https://github.com/mapnik/node-mapnik/issues/74 [22:44] igl has joined the channel [22:45] johnnywengluu: tjholowaychuk: awesome [22:46] johnnywengluu: tjholowaychuk: do you just come up with ideas and code them or is it work related? [22:46] johnnywengluu: like commander .. i really love it [22:46] tjholowaychuk: just build stuff i want mostly [22:47] tjholowaychuk: expresso was a quick hack to scratch an itch when i was working on connect/express [22:47] tjholowaychuk: and it works fine for stuff like that but for testing larger apps it's a bit of a PITA [22:47] johnnywengluu: this one reminds me about Jasmine [22:47] johnnywengluu: but more elegant [22:48] johnnywengluu: no more nagging at Vowsjs to make it browserable [22:48] johnnywengluu: :) [22:48] booyaa: oh yeah using panic's prompt (ios ssh app) [22:48] booyaa: work nicely after the initial refresh of irsii on screen [22:48] TheJH: SteveDekorte, no idea [22:48] SteveDekorte: TheJH: hey, it finished - only took 20mins, guess I over estimated it before :) [22:48] stantona has joined the channel [22:49] SteveDekorte: TheJH: but now the install is hanging :) [22:49] SteveDekorte: actually: 'build' finished successfully (12m9.493s) [22:49] booyaa: tonights london node user group meetup was awesome they had yhe guy who runs dailyjs, peeps from [22:49] nils_r has joined the channel [22:49] booyaa: pusherapp, rabbitmq and mint digital [22:50] TheJH: SteveDekorte, the install is hanging? Never saw that before, I think [22:51] SteveDekorte: TheJH: yeah [22:51] SteveDekorte: TheJH: does node-waf install attempt to rebuild? [22:51] TheJH: SteveDekorte, I'm not sure. What does "top" or so say? [22:51] booyaa: damn theres no backtick on the ipad keyboard? [22:52] SteveDekorte: TheJH: there's a process called "try" that's eating 100% cpu [22:53] mikeal has joined the channel [22:53] kickingvegas: booyaa: do yourself a favor and get a bluetooth keyboardl; makes Prompt and other ssh clients actually usable [22:54] sh1mmer has joined the channel [22:55] johnnywengluu: tjholowaychuk: do you have any plan to make https://github.com/visionmedia/superagent working on node.js? [22:55] Raynos: Does anyone know clux's IRC handle? [22:55] tjholowaychuk: johnnywengluu yup, it does but I need to finish the tests and fix a few things [22:55] johnnywengluu: tjholowaychuk: awesome [22:55] johnnywengluu: in that way i dont have to remember different APIs https://github.com/mikeal/request [22:55] francisl: should webworker/websocket-client works on node 0.6.x? [22:55] davidasc_ has joined the channel [23:00] SteveDekorte: TheJH: there we go: 'install' finished successfully (12m14.842s) [23:00] TheJH: SteveDekorte, :) [23:00] arlolra has joined the channel [23:00] TheJH: ACTION has to go to bed now, good night [23:01] dgathright has joined the channel [23:02] monokrom_ has joined the channel [23:02] SteveDekorte: TheJH: are there any docs for the JS node-nacl API or JS test code? [23:04] marcostoledo has joined the channel [23:05] Pritchard: Gah. Can I ask about installing npm in here? [23:05] Pritchard: I'm getting Cannot find module 'graceful-fs' when I run "node cli.js install npm -gf" [23:07] eephillip has joined the channel [23:08] arlolra: Pritchard: do you have these submodules? https://github.com/isaacs/npm/tree/master/node_modules [23:09] Pritchard: arlolra: Nope! I thought it was supposed to come bundled with npm. [23:09] cha0s has joined the channel [23:09] cha0s has joined the channel [23:09] Pritchard: But I just fetched and merged npm from github and my folder graceful-fs is empty. [23:10] arlolra: git submodule init [23:10] arlolra: git submodule update [23:10] arlolra: something like that [23:10] Pritchard: Hahah that looks 100% right from my console output :) [23:10] Pritchard: Thanks. [23:10] arlolra: np [23:13] ovaillancourt: I know it might be a bit random for a question, but is there any known problem with node concerning base64 encoding? I'm using emailjs which encodes html mails in base64 (using toString) but the encoding seems to break at some point and decoding only returns garbage. [23:14] neilk_ has joined the channel [23:14] bogomips has joined the channel [23:17] dmojoryder has joined the channel [23:17] arlolra: ovaillancourt: i'm pretty sure the only thing base64 encoded is the password [23:17] ovaillancourt: arlolra: hang on, gonna recheck that (you're talking about emailjs' code right?) [23:18] arlolra: maybe i'm completely wrong [23:18] dmojoryder has joined the channel [23:19] ovaillancourt: https://github.com/eleith/emailjs/blob/master/smtp/message.js [23:19] ovaillancourt: if you look around line 207, the message itself is being encoded [23:19] torm3nt has joined the channel [23:20] arlolra: that's the alternative, right [23:20] arlolra: the html [23:20] ovaillancourt: yeah exactly [23:21] ovaillancourt: right now my html message renders like garbe mid-way through html rendering in all the mail clients I tested, I think there's something with encoding or decoding but it's hard to tell... [23:21] Aria has joined the channel [23:21] ovaillancourt: *garbage [23:21] piscisaureus__ has joined the channel [23:22] arlolra: which version of node? [23:22] adrianmg has joined the channel [23:23] ovaillancourt: hm 0.6.1-pre [23:25] dgathright has joined the channel [23:25] adrianmg has left the channel [23:26] brianseeders has joined the channel [23:26] Pritchard: NPM doesn't seem to like installing on windows. [23:26] Pritchard: Guess I have to make it work manually... [23:26] chilts: CoverSlide: I asked underscore to pull my _.initially() but it's not generic enough : https://github.com/documentcloud/underscore/pull/378 [23:26] chilts: good fun doing it though :) [23:28] Draco_ has joined the channel [23:29] arlolra: ovaillancourt: which email clients did you test? [23:29] arlolra: Pritchard: i don't think npm works on windows yet [23:31] quackquack has joined the channel [23:31] davidbanham has joined the channel [23:31] Bonuspunk: yes it does [23:32] ovaillancourt: checked mac mail, roundcube (web client) and gmail (web client) [23:32] sechrist has joined the channel [23:33] rauchggg has joined the channel [23:33] Squeese has joined the channel [23:33] arlolra: i stand corrected [23:34] stagas_ has joined the channel [23:34] johnnywengluu: tjholowaychuk: you should try out node-shell. it has a cool repl too [23:35] Draco_ has joined the channel [23:35] dilvie has joined the channel [23:35] Bonuspunk: Pritchard check http://npmjs.org/dist/ - extract it to the folder where your node.exe is placed [23:36] tdubellz_ has joined the channel [23:38] co_dh has joined the channel [23:39] arlolra has left the channel [23:39] jamescarr has joined the channel [23:39] Nuck has joined the channel [23:40] kickingvegas has left the channel [23:40] aspix has joined the channel [23:41] gtramontina has joined the channel [23:43] hellp has joined the channel [23:44] gigonaut has joined the channel [23:48] felix___ has joined the channel [23:48] davidban_ has joined the channel [23:49] svnlto has joined the channel [23:49] seanbeausoleil has joined the channel [23:50] vkandy: dgram.addMembership() throws an error like "not implemented yet" on 0.6.2 ... [23:50] vkandy: does anyone suggest a fix? [23:50] k1ttty has joined the channel [23:50] vkandy: i mean can someone suggest a fix .. [23:51] davidban_ has joined the channel [23:52] hotch has joined the channel [23:53] bnoordhuis: vkandy: https://github.com/joyent/node/pull/2163 [23:56] Guest18062 has joined the channel [23:56] sdwrage has left the channel [23:56] volts has joined the channel [23:56] vkandy: bnoordhuis: thanks. thats a big change .. is this going into 0.6.3? [23:57] bnoordhuis: vkandy: no but maybe 0.6.4 or 0.6.5 [23:57] ryan_stevens has joined the channel [23:57] koo3 has joined the channel [23:57] vkandy: damn :( i'll have to work around the problem for now. anyway thank you [23:58] jbraffoul has joined the channel [23:58] Swizec has joined the channel [23:59] bnoordhuis: vkandy: my pleasure [23:59] jamescarr has joined the channel