[00:00] socketio\test\17 has joined the channel [00:01] eboyjr has joined the channel [00:01] Xeon06_ has joined the channel [00:02] socketio\test\09 has joined the channel [00:03] Wa has joined the channel [00:04] cloudheadX has joined the channel [00:05] admc has joined the channel [00:06] fr0stbyte has joined the channel [00:06] cpojer has joined the channel [00:07] cpojer has left the channel [00:08] kriszyp has joined the channel [00:08] dherman has joined the channel [00:11] zanes has joined the channel [00:12] dshaw_ has joined the channel [00:12] _jgr has joined the channel [00:14] Remoun has joined the channel [00:16] Xeon06_ has joined the channel [00:18] zeade1 has joined the channel [00:19] brianseeders has joined the channel [00:19] gerad has joined the channel [00:19] tayy has joined the channel [00:19] CIA-94: node: 03isaacs 07v0.4 * rbf08024 10/ doc/api/modules.markdown : [00:19] CIA-94: node: Note that require.paths is gone in 0.5 [00:19] CIA-94: node: Rather than say it "may disappear", let's just be clear that it *has* [00:19] CIA-94: node: disappeared, and exactly how long it'll be supported for. - https://github.com/joyent/node/commit/bf0802402d52f0ca78885f579b91014a859939d5 [00:20] pNstK has joined the channel [00:20] eboyjr: meh [00:20] eboyjr: Some people are complaining about that [00:20] eboyjr: They don't like relative paths [00:22] brainproxy: seems to be in the spirit of moving away from globalized dependencies, in general [00:22] loveshine has left the channel [00:22] Navarr has joined the channel [00:23] thepatr1ck: eboyjr/CIA-94 that has just hit us too [00:23] te-brian has joined the channel [00:23] brainproxy: don't use global namespaces -- use dependency injection; don't use a "global" require-paths approach to load modules in your app; rather install what you need "next to" your app in node_modules [00:24] rhdoenges has joined the channel [00:24] brainproxy: and in turn the stuff in node_modules won't look to a global warehouse of modules for their deps, but will look in their own node_modules [00:25] thepatr1ck: we weren't using it requiring installable modules, but to simplify paths for internal (to the "app") modules [00:25] zanes: brainproxy: Are there good DI frameworks for V8 javascript? [00:25] thepatr1ck: and the docs for v0.5.2: http://nodejs.org/docs/v0.5.2/api/globals.html#require.paths [00:25] brainproxy: zanes: it seems to develop naturally if you pass around functions, which are objects in js [00:26] brainproxy: check out the server+router+handler example in the Node Beginner Book .. fairly inspiring actually :) [00:26] zanes: I will do that. [00:26] brainproxy: http://www.nodebeginner.org/ [00:26] tayy_ has joined the channel [00:26] NickABusey has joined the channel [00:29] brainproxy: thepatr1ck: sure, I here ya, JooseX.Namespace.Depended does something like that too [00:29] brainproxy: but us joose folks are trying to rethink that, actually, to go in the direction the larger js/node community seems to be going [00:30] brainproxy: i.e. away from global namespaces and other "global" things, like require.paths [00:32] skm has joined the channel [00:33] MarkMenard has joined the channel [00:34] dpritchett has joined the channel [00:34] zanes: brainproxy: This seems quite a bit less powerful than the DI provided by things like Guice. [00:34] tayy has joined the channel [00:36] Xeon06_ has joined the channel [00:36] mike5w3c has joined the channel [00:39] jacobolus has joined the channel [00:39] cccaldas has joined the channel [00:40] unlink has joined the channel [00:40] unlink has joined the channel [00:41] tayy has joined the channel [00:42] Anton_ has joined the channel [00:42] shanebo has joined the channel [00:42] mehtryx has joined the channel [00:46] Xeon06_ has joined the channel [00:47] [[zz]] has joined the channel [00:49] corytheboyd has joined the channel [00:49] corytheboyd has left the channel [00:50] eboyjr has left the channel [00:52] Xano has joined the channel [00:52] cloudhead1 has joined the channel [00:52] eboyjr has joined the channel [00:53] cloudhead1 has joined the channel [00:53] tayy has joined the channel [00:54] iFire has joined the channel [00:55] eboyjr: So how 'bout them Lakers? [00:55] necrodearia has joined the channel [00:56] shanebo: Mavs. [00:56] cloudhead2 has joined the channel [00:57] eboyjr: Hey has anyone used Dnode? [00:57] eboyjr: i've heard about it, but i want to know what you can use it for [00:58] Swizec has joined the channel [00:58] ggg has joined the channel [00:58] rook2pawn: eboyjr: rpc, you can use emitters across the line [00:58] cloudhead3 has joined the channel [00:59] mike5w3c_ has joined the channel [00:59] eboyjr: rook2pawn: Okay so its that simple? [00:59] eboyjr: it looks like its asyncronous, so that's a plus [01:00] rook2pawn: eboyjr: its a very symmetric design, and of course, only functions asynchronously [01:01] cloudhead4 has joined the channel [01:01] eboyjr: ah, neat [01:02] rook2pawn: eboyjr: dnode({wrapper}).listen(ip:port,application) where wrapper is either an object of rpc offerings or a function that takes an implicit remote object and connection emitter [01:02] shanebo: hey guys, is there a way to use connect for static assets but route paths to controllers, actions, and views without using express? [01:02] k1ttty has joined the channel [01:02] rook2pawn: go through the chatroom example in the package and also read substack's article on pubsub with dnode on his blog [01:02] k1ttty has joined the channel [01:02] shanebo: I'd rather roll my own router just to get a handle on how node works [01:03] eboyjr: node.js on a router :S [01:03] SubStack: Hurreman: yep, just var server = connect.createServer(); server.use(connect.static(__dirname + '/static')) [01:03] MarkMenard has joined the channel [01:03] SubStack: *shanebo [01:03] eboyjr: rook2pawn: thanks [01:03] SubStack: or connect.createServer(connect.static(__dirname + '/static')) does the same thing [01:03] cloudhead5 has joined the channel [01:03] SubStack: then connect has a router you can use as middleware too [01:04] SubStack: server.use(connect.router(function (app) { ... })) [01:05] bwinton has joined the channel [01:05] shanebo: SubStack, something like this? and put my router code in the anon func? [01:05] shanebo: https://github.com/senchalabs/connect/blob/master/examples/static.js [01:06] cloudhead6 has joined the channel [01:06] SubStack: shanebo: I prefer explicitly calling .use() but that works too [01:06] SubStack: middlewares are just function (req, res, next) {} [01:07] SubStack: calling next() causes the next middleware in the stack to fire [01:07] tshpaper has joined the channel [01:08] shanebo: so if there was another few functions in there, I'd pass next into it and call it at the end of the function? [01:08] cpetzold has joined the channel [01:08] cloudhead7 has joined the channel [01:09] tayy_ has joined the channel [01:09] sephr has joined the channel [01:11] cloudhead8 has joined the channel [01:13] eboyjr: shanebo: yeah [01:13] cloudhead9 has joined the channel [01:14] jtsnow has joined the channel [01:15] othiym23 has joined the channel [01:15] seivan has joined the channel [01:15] mapleman has joined the channel [01:15] eboyjr: sephr: do you use node.js regularly? [01:16] sephr: all the time, eboyjr [01:16] cloudhead10 has joined the channel [01:16] CIA-94: node: 03isaacs 07master * rc050d0f 10/ (doc/node.1 lib/repl.js src/node.cc): [01:16] CIA-94: node: Finish removing require.paths [01:16] CIA-94: node: Fix require() completion bug in repl, and correct man output - https://github.com/joyent/node/commit/c050d0fa19a2dbb34e1e99403b597a5e8e51b6e5 [01:16] sephr: I used to use cobol for my webapps [01:16] sephr: but then I switched to node.js [01:16] jesusabdullah: I want cobol on cogs to be real :( [01:16] sephr: can't really tell a difference [01:16] ej2 has joined the channel [01:16] jesusabdullah: liar [01:17] sephr: I mean from cobol and node.js [01:17] abraxas has joined the channel [01:17] tayy has joined the channel [01:17] sephr: I guess it looks worse [01:17] sephr: node.js that is [01:17] eboyjr: yeah i was using C and cgi scripting, but node.js is definitely a lot easier [01:17] isaacs: sephr: there's a git push deploy PaaS for cobol, have you heard of it? [01:17] sephr: yeah [01:17] isaacs: it's fer srsly. not a joke. [01:17] eboyjr: especially a lot better when I did all my web apps in assembler [01:18] eboyjr: better than* [01:18] cloudhead11 has joined the channel [01:18] jesusabdullah: I think I *did* hear about it [01:18] sephr: eboyjr: I made a social network in cobol and ported it to node.js [01:19] sephr: node.js shaved away 50 lines [01:19] Wa has joined the channel [01:19] jesusabdullah: sephr: show me. [01:19] jesusabdullah: sephr: The cognitive dissonance is giving me a fever, and the only cure [01:19] jesusabdullah: is not cowbel [01:19] sephr: sorry, jesusabdullah, but it's a private social network [01:19] jonaslund: isaacs: there ? [01:19] jesusabdullah: l [01:19] jesusabdullah: it's source code [01:19] eboyjr: sephr: you used to work for myspace, right? [01:19] sephr: shhh [01:19] isaacs: jonaslund: sort of. what's up? [01:19] jesusabdullah: *anything* you've written in cobol [01:19] Nexxy: jesusabdullah, prescription* [01:19] jonaslund: isaacs: what os do you use mostly ? [01:20] isaacs: jonaslund: os x snow leopard and SmartOS [01:20] sephr: eboyjr: how goes that node.js OS you've been working on? [01:20] jesusabdullah: Nexxy's right, you know! I need an Rx of example cobol stat! [01:20] jesusabdullah: Nexxy: Good call. :) [01:20] jonaslund: isaacs: ok. used any chm based manuals ? [01:20] isaacs: ? [01:20] isaacs: dunno what that is [01:20] jonaslund: or got a viewer [01:20] sephr: I ran some 3d games on node.jsOS wine port [01:20] isaacs: what's chm? [01:20] rhdoenges: isn't that like the windows help format? [01:20] eboyjr: sephr: ah its' pretty good! me and my team are finished with the task scheduling! so almost done with the kernel [01:20] sephr: only getting 100fps [01:20] jonaslund: chm is compiled html.. used by microsoft for programming manuals [01:20] sephr: I expected better [01:20] rhdoenges: knew it [01:20] jonaslund: one compressed file [01:20] sephr: like at least 120fps [01:20] isaacs: jonaslund: oh, no, i haven't. [01:20] jonaslund: with a toc and index [01:21] Nexxy: is anyone here speaking @ OSCon? [01:21] Nexxy: if so, I have a bucket for you [01:21] jonaslund: isaacs: anyhow, i made a markdown -> chm conversion tool on saturday [01:21] isaacs: neato [01:21] sephr: Nexxy: do you have any questions? [01:21] cloudhead12 has joined the channel [01:21] sephr: I'm speaking there [01:21] Nexxy: no just trying to figure out how I can get on the guest list or something ;3 [01:21] jonaslund: isaacs: it's pretty good apart from that i noticed that the manual headings have a bit "funny" levels (i saw your manual checkins so i thought you had some idea about the manual) [01:21] sephr: heh [01:21] eboyjr: sephr: also the memory management is hard to do with v8 :/ but with some external asm-v8 bindings it makes it nicer [01:22] boehm has joined the channel [01:22] sephr: upgrade to v9 [01:22] sephr: it's the plan9 of v8 [01:22] jonaslund: isaacs: f.ex. the main "File System" heading is h2 (##) , then the fs. functions are h3 [01:22] rhdoenges: a V9 would be terribly imbalanced and throw your car around funny [01:22] rhdoenges: how about V12 [01:22] jonaslund: isaacs: but then the fs.ReadStream and fs.WriteStream "classes" are h2 again [01:22] isaacs: jonaslund: yeah, i just follow what's there. [01:22] eboyjr: sephr: never heard of it. [01:22] sephr: my car's microprocessors all use v9, rhdoenges [01:23] isaacs: jonaslund: didnt' design that [01:23] eboyjr: my car is a rhino [01:23] sephr: they forced me into only 5 accidents so far [01:23] jonaslund: isaacs: so the topic structure becomes kinda weird (you can spot the same problem in the single page html) [01:23] eboyjr: its a lot easier than driving a spider-monkey half-breed [01:23] jonaslund: isaacs: k, ryan ? [01:23] rhdoenges: my car's microprocessors run jagermonkey, sephr [01:23] cloudhead13 has joined the channel [01:23] isaacs: jonaslund: if you have some ideas for making the docs better, please email the nodejs-dev list. [01:24] rhdoenges: is the readline module still mostly undocumented? [01:24] sephr: elliottcable: so on your node.js dissertation; how did it go? [01:24] jonaslund: isaacs: well, i wouldn't necessarily (in a sense it's good that the "classes" have a higher level) [01:24] elliottcable: sephr: hm? [01:24] sephr: eboyjr said you doing something funny here [01:24] sephr: ACTION needs to know [01:24] rhdoenges: I told myself I would write docs last week but oh well [01:25] jonaslund: isaacs: change the thing, MS own manuals f.ex. often has similarly grouped items divded into a "functions" and "classes" subheadings.. it's just that the markdown has no distinction about those things (apart from heading levels) [01:25] jonaslund: isaacs: but then there's other non class/function topics in the manual aswell [01:25] brettgoulder has joined the channel [01:25] eboyjr: sephr: yeah my node.js kernel is a joke :( [01:26] eboyjr: can't get past the bootloader :( [01:26] jonaslund: isaacs: just wanted to pick someones head about it before i went in and made some weird heuretics about that [01:26] zackattack has joined the channel [01:26] isaacs: jonaslund: yeah, the format is sort of an emergent property of herd-development [01:26] cloudhead14 has joined the channel [01:26] isaacs: jonaslund: there's no hard-and-fast style guide [01:27] thepatr1ck has left the channel [01:28] thepatr1ck has joined the channel [01:28] ggg: anyone has experience with everyauth and express? is it a good match? [01:28] cloudhead15 has joined the channel [01:29] tbranyen: ggg: ... [01:29] jonaslund: isaacs: one way would be to prefix the markdown headings and either remove them for html (or do some proper formatting) and allow for category groups [01:29] tbranyen: node.js auth package (password, facebook, & more) for Connect and EXPRESS apps [01:29] Prometheus: match made in heaven [01:29] Prometheus: =) [01:29] Destos has joined the channel [01:30] terrance has joined the channel [01:30] jonaslund: isaacs: f.ex. the "File system" html could have "functions" "classes" and then flatten out other topics [01:30] eboyjr: terrance: hey, you know anything about node? [01:30] isaacs: jonaslund: i really have no opinion. [01:30] jonaslund: (microsoft DX docs has that structure and it works very well) [01:30] isaacs: :) [01:30] Nexxy: jonaslund, are you from academia? [01:30] Nexxy: you seem *way* too obsessed with the format of the documentation [01:31] eboyjr: is there anything as good as apache for node.js in terms of customizability? [01:31] tbranyen: fwiw the node.js documentation as it currently stands has been the most pleasant i've ever used [01:31] cloudhead16 has joined the channel [01:31] elliottcable: tbranyen: #truth [01:31] elliottcable: well [01:31] jonaslund: I'm not propsing changes [01:31] elliottcable: the Scheme R6RS specification is pretty amazingly well done [01:31] jonaslund: but the docs are made in a way that allows us to generate it into different formats [01:31] jonaslund: and i personally love using chm manuals [01:32] jonaslund: and i'm pretty sure i'm not the only one [01:32] eboyjr: lol chm? that's windows right? [01:32] Nexxy: lol chm [01:32] tbranyen: there are chm readers in Linux as well [01:32] eboyjr: l.o.l. [01:32] jonaslund: there are 2-3 chm readers for osX [01:32] tbranyen: chm is actually pretty great [01:32] Nexxy: I remember the chm exploit days! [01:32] tbranyen: jonaslund: you could probably generate your own [01:32] jonaslund: tbranyen: i already generated a CHM for the node docs [01:33] tbranyen: beautiful [01:33] jonaslund: tbranyen: the structure isn't that pretty yet sadly [01:33] tbranyen: which version? [01:33] ggg: tbranyen, has much I find node.js interesting, its hard to focus somewhere, there is so many duplicates of effort, its difficult to choose the best option, in the hope of developing something that works well, and that the source code wont change every 5 days [01:33] jonaslund: tbranyen: 0.5.2 [01:33] cloudhead has joined the channel [01:33] tbranyen: jonaslund: mind sharing? [01:33] admc has joined the channel [01:33] tbranyen: i'd like an offline copy [01:33] jonaslund: tbranyen: but i made a script that generates it automatically from the markdown files [01:33] tbranyen: oh slick [01:33] eboyjr: Is CHM a binary format?? [01:33] jonaslund: tbranyen: that's the general idea [01:33] tbranyen: its a zip file iirc [01:33] cloudhead17 has joined the channel [01:33] terrance: eboyjr: http://i.imgur.com/DDMBW.gif [01:34] eboyjr: terrance: haha is that a yes? [01:34] jonaslund: http://www.jlim.se/test.chm [01:34] jonaslund: (If you download the file in win7 you need to open file properties and "unblock" it since they apperantly get security flagged) [01:34] tbranyen: thx [01:34] tbranyen: I use linux [01:35] jonaslund: I was downloading an old file of mine and couldn't figure out why it didn't work any more until i re-generated the file from data and it worked again [01:35] sephr: tbranyen: have you seen eboyjr's os? [01:35] sephr: node.jOS [01:35] tbranyen: nope [01:35] sephr: I'm running it on an arduino right no [01:35] sephr: it's so efficient [01:35] sephr: and lightweight [01:35] tbranyen: thats surprising [01:35] eboyjr: its not as slow as a turtle as some people might have led you to believe [01:35] elliottcable: Node.jOS-Whedon [01:36] jonaslund: tbranyen: i'm not certain yet about if i should keep big sections or let each heading become it's own small topic [01:36] elliottcable: Fox is gonna cancel it in a season though [01:36] elliottcable: so don’t get too excited [01:36] cloudhead18 has joined the channel [01:36] tbranyen: no they gotta wait till they start getting a following [01:36] tbranyen: then cancel [01:36] jonaslund: and i shortened prefixed things [01:36] jonaslund: so "fs.writeFileSync" becomes writeFileSync in the index [01:36] tbranyen: oh [01:36] eboyjr: tbranyen: yeah i have multithreading with process.nextTick, its surprisingly fast [01:37] jonaslund: (not yet sure if it's a good idea though) [01:37] tbranyen: yeah i don't think that is a good idea [01:37] tbranyen: jonaslund: since you arent' creating an instance of fs [01:37] tbranyen: its just an object [01:37] zanes has joined the channel [01:37] tbranyen: var fs = require('fs'); not var fs = require('fs').fs; var myFs = new fs(); [01:38] sephr: eboyjr: my arduino running node.jOS is slow at running a webgl simulation. why? [01:38] sephr: this should be able to run google earth at 60fps on a vaccuum [01:38] jonaslund: tbranyen: yeah exactly.. the function name seemed more important than the "context" [01:38] jonaslund: tbranyen: then again if there's clashes it might be troublesome [01:38] eboyjr: sephr: well, i can push the algorithms as far as they go.. [01:38] cloudhead19 has joined the channel [01:38] jtsnow has joined the channel [01:38] sephr: how many humans have you killed? [01:39] eboyjr: sephr: it's probably the node.jOS firefox port hogging up the system resources [01:39] sephr: to analyze the genetic algorithms used in node.jOS [01:39] sephr: from the human brain [01:39] jonaslund: tbranyen: right now f.ex. write only points to buffer.write eventhough there's stream.write [01:39] tbranyen: hmmm [01:39] jonaslund: tbranyen: gotta see if you can have multi-entry indexes (i know MSDN has those) [01:40] jonaslund: this was just a few hours hack so well.. :) [01:40] jonaslund: and typing fs.writeFileSync would give more context (since you'd see all the FS entries at the same time) [01:40] jonaslund: however then you could just go for the contents instead of looking at the index [01:41] cloudhead20 has joined the channel [01:41] jonaslund: I'll look at this more tomorrow i guess and throw up a link to the files and the scripts involved [01:41] tbranyen: yea [01:41] tbranyen: what markdown parser did you use? [01:41] jonaslund: the one used by doctool [01:41] tbranyen: i know sundown generates a table of contents which may save you some time [01:41] oftn-bot has joined the channel [01:42] Pickley has joined the channel [01:42] jonaslund: I just parsed the headings myself and then let the markdown parser do the rest [01:42] tbranyen: makes sense [01:42] tbranyen: not exactly hard to do it by hand [01:42] jonaslund: (doctool does exactly the same :D ) [01:43] jonaslund: D:\prg\node\node-v0.5.2\tools\doctool>wc -l chmtool.js [01:43] jonaslund: summary, lines:91 words:159 chars:2384 [01:43] PatF has joined the channel [01:43] cloudhead21 has joined the channel [01:44] jonaslund: reads all.markdown to figure out what files to process and then reads all those files and outputs it [01:44] alexgordon has joined the channel [01:45] azeroth___ has joined the channel [01:46] devyn has joined the channel [01:46] cloudhead22 has joined the channel [01:46] jonaslund: anyhow [01:46] jonaslund: bedtime [01:47] Anton_ has joined the channel [01:48] cloudhead has left the channel [01:48] cloudhead23 has joined the channel [01:51] jakehow has joined the channel [01:51] cloudhead24 has joined the channel [01:51] jtsnow has joined the channel [01:53] cloudhead25 has joined the channel [01:54] tayy has joined the channel [01:54] c4milo has joined the channel [01:54] cccaldas has joined the channel [01:54] sephr: hey guys how do I output a number? [01:55] cccaldas has joined the channel [01:55] eboyjr: sephr: you can use the process.stdout.write() function to write to stdout [01:55] perezd has joined the channel [01:55] sephr: yeah but how do I output a number????? [01:55] sephr: you're not helping [01:56] eboyjr: it should typecast what you put in and convert to a stirng to its human readable [01:56] cloudhead26 has joined the channel [01:56] sephr: yeah but I have a number and that doesn't really matter [01:56] sephr: like how come there's no dollar sign before it? [01:56] sephr: and way too many decimal places eboyjr [01:56] eboyjr: due to ecma's complex rules, anything you pass to process.stdout.write is first checked if it has a toString method applied [01:56] elliottcable: sephr: Are you using jQuery? [01:56] sephr: yeah [01:57] eboyjr: sephr: do you know how to make a toString method? [01:57] elliottcable: sephr: the dollar sign is a jQuery thing. This channel can’t help you with dollar signs, try #jQuery [01:57] sephr: how would I give a number a method? [01:57] sephr: elliottcable: I only use jquery for the math [01:57] sephr: I need to fix this right now [01:57] eboyjr: sephr: well if it is a instance of the number object (constructed with new Number) then you can do it [01:57] elliottcable: sephr: try the standard Math module. [01:58] sephr: my boss will kill me if tha banking site is down any more [01:58] eboyjr: … [01:58] sephr: how do I import the standard module? [01:58] elliottcable: ACTION is disturbed that this guy is running a banking site [01:58] sephr: do I import std.math? [01:58] sephr: elliottcable: no it's safe [01:58] sephr: we have 2 pin numbers [01:58] sephr: one is your account pin number [01:58] sephr: the other is your password pin number [01:58] eboyjr: sephr: ecma script defines the standard Math object that is built in to all conforming implementations [01:58] sephr: secure [01:58] cloudhead27 has joined the channel [01:58] sephr: I verify it with java scripts [01:58] elliottcable: sephr: is your banking website’s JavaScript implementation conformant? [01:58] sephr: on the web page [01:59] sephr: yeah I checked it myself [01:59] eboyjr: sephr: what's your node.js version? [01:59] sephr: updated it yesterday [01:59] eboyjr: to what? [01:59] sephr: 0.4.10 [01:59] elliottcable: okay, you need to update to 5.2 [01:59] eboyjr: that should* have the proper Math object, but I cannot cofirm [02:00] eboyjr: I don't have 0.4.10 available for testing [02:00] shanebo: is 5.2 stable? [02:00] tmzt_: sephr: you can find code to print a number as fixed decimals pretty easily, usually in some hacky way that's cross broser [02:00] elliottcable: if you can’t do it with the Math object, you could write a custom C extension to do it [02:00] eboyjr: elliottcable: are you sure he should be running a banking site with unstable software? [02:00] eboyjr: Oh yeah! good idea [02:00] elliottcable: I’ve never written a Node plugin though :x [02:00] MarkMenard has joined the channel [02:00] elliottcable: sephr: are you familiar with C++? [02:01] eboyjr: sephr: you can use the node plugin C++ api [02:01] mehtryx has joined the channel [02:01] elliottcable: sephr: go play with the V8 APIs [02:01] eboyjr: that will give you maximum flexibility with printing numbers [02:01] cloudhead28 has joined the channel [02:01] tmzt_: ?? [02:02] sephr: elliottcable: ok back [02:02] eboyjr: sephr: if you want to do it the was tmzt_ is suggesting, there are the common Number.prototype.toFixed methods that you will find handy [02:02] sephr: I updated to 0.5.2 [02:02] eboyjr: sephr: no. no.no. [02:02] sephr: tmzt_: I can't use browser javascript for that [02:02] sephr: it's too late to document.write :( [02:02] eboyjr: sephr: you need to use the stable version [02:02] sephr: so I need to do it from node.js [02:02] eboyjr: sephr: uninstall and reinstall 0.4.9 [02:03] tmzt_: like this http://stackoverflow.com/questions/149055/how-can-i-format-numbers-as-money-in-javascript/149099#149099 [02:03] eboyjr: i mean 0.4.10 [02:03] tmzt_: just take out the $ if you don't need it [02:03] sephr: ok I keep one backup that I delete every day [02:03] sephr: reverted to backup [02:03] eboyjr: tmzt_: ah, good link [02:03] sephr: we don't use version control software [02:03] eboyjr: sephr: O_o [02:03] Aria has joined the channel [02:03] cloudhead29 has joined the channel [02:03] sephr: eboyjr: it's a /backup/ folder [02:04] sephr: on our website so the cto can access it we put it on a public folder [02:04] eboyjr: you really should be using something like RAID [02:04] sephr: so you just go to /important/backup.zip [02:04] elliottcable: a RAID? [02:04] eboyjr: hm.. [02:04] elliottcable: sephr: dude, git [02:04] agnat_ has joined the channel [02:04] tmzt_: what if you want two versions? [02:04] tmzt_: or more [02:04] sephr: test changes in production [02:04] sephr: then ctrl+z [02:04] elliottcable: tmzt_: oh gods don’t ask that, he might answer it [02:04] tmzt_: per file? [02:05] sephr: no we use notepad so it has tons of ctrl+zing [02:05] sephr: it's safe [02:05] sephr: please help me with my problem though [02:05] sephr: I can't output the numbers [02:05] tmzt_: few versions of notepad even have an undo queue [02:05] tmzt_: I did [02:05] elliottcable: I don’t even remember what your actual problem was … [02:05] sephr: also I guess I should mention they need to be in sortable tables [02:05] tmzt_: that code works on node.js as well as the browser [02:05] elliottcable: you want to do the sorting serverside, in Node? [02:06] eboyjr: tmzt_: well you can only undo 3 times in notepad :/ [02:06] sephr: elliottcable: yeah please tell me how to do it [02:06] eboyjr: er that's mspaint [02:06] fuzzyone has joined the channel [02:06] sephr: and how to do all of the code [02:06] cloudhead30 has joined the channel [02:06] sephr: I'm not really good with code so it'd be nice if you gave me an example done [02:06] sephr: I'll give you the password to our banking site's ftp [02:06] sephr: ok I pmed you it [02:06] eboyjr: sephr: okay do you have the number in a variable? if so, what is the variable name? [02:07] sephr: it's nums [02:07] sephr: I used an advanced technology [02:07] tmzt_: dump it to json and read it with jqgrid [02:07] sephr: where I can push numbers onto an array [02:07] tmzt_: only ryan has @ right? [02:07] sephr: which I am told is like a list of variables [02:07] eboyjr: sephr: Try process.stdout.write("$"+nums.toFixed(2)) [02:07] brownies has joined the channel [02:07] eboyjr: sephr: what do you get? [02:07] sephr: eboyjr: error nums doesn't have that method [02:07] elliottcable: tmzt_: ryah and konobi, whoever that is [02:07] sephr: arrays can't have methods silly [02:07] sephr: even I know that [02:08] tbranyen: banhammer [02:08] tmzt_: no, but prototypes can [02:08] tbranyen: bring it on [02:08] eboyjr: sephr: O_O it's an array? [02:08] eboyjr: sephr: i thought you said it was a number :( [02:08] sephr: yeah I learned about arrays a week ago in school [02:08] sephr: it's like a phone book [02:08] sephr: according to the teacher [02:08] sephr: it makes no sense [02:08] sephr: I just copied some code from a forum [02:08] cloudhead31 has joined the channel [02:08] eboyjr: i think a phone book was a poor choice of words... [02:09] tmzt_: Node.js, author a web server in three lines of code [02:09] tmzt_: ;wi 5 [02:09] sephr: eboyjr: anyways ok so I just pmed you the website ftp [02:10] eboyjr: sephr: alright ill just fix it for you [02:10] sephr: my username is root [02:10] sephr: password is bankpro1 [02:10] elliottcable: pro indeed. [02:10] sephr: thanks a bunch [02:10] eboyjr: anytime ;) [02:10] tbranyen: might as well just start pasting in space jam lyrics [02:11] sephr: oh btw eboyjr there are like policys that banks have to follow I think [02:11] cloudhead32 has joined the channel [02:11] fuzzyone: Everybody get up, it's time to slam now [02:11] sephr: so try not to break them [02:11] eboyjr: fuzzyone: please.. no [02:11] sephr: like we might get inspected [02:12] eboyjr: sephr: okay I see your hidden .accounts folder, I won't touch that [02:12] markmarkoh has joined the channel [02:12] sephr: yeah don't [02:13] sephr: I had my friend who's good with linux make it hidden [02:13] sephr: still don't know how he did it [02:13] sephr: it's easy to edit [02:13] sephr: it's a text file [02:13] eboyjr: yeah its all in json format [02:13] sephr: yeah we're high-tech [02:13] sephr: oh yeah please don't steal bank account info [02:13] sephr: I'll get in trouble [02:13] cloudhead33 has joined the channel [02:13] nightshift has joined the channel [02:14] eboyjr: sephr: you have my word [02:14] sephr: thanks I trust you internet guy [02:15] elliottcable: anybody here used Erlang? [02:15] elliottcable: thoughts? [02:15] elliottcable: ditto Rust, actually. [02:15] elliottcable: both look quite interesting (for different things, of course) [02:15] eboyjr: elliottcable: i've looked at erlang, and it sounds kind of old-fashioned [02:15] elliottcable: eboyjr: old-fashioned? you mean rut/vert? [02:16] eboyjr: huh? [02:16] eboyjr: what do you mean rut/ [02:16] eboyjr: vert [02:16] cloudhead34 has joined the channel [02:16] elliottcable: … what do *you* mean old-fashioned [02:16] elliottcable: don’t be sephr [02:16] inimino: elliottcable ⋱ Don't be troll fodder. [02:16] sephr: wrong channel idiot [02:17] sephr: you just ruined it [02:17] elliottcable: sephr: shaddup [02:17] elliottcable: inimino: hi! [02:17] inimino: hi elliottcable [02:17] tbranyen: well this channel has effectively turned into ##javascript [02:17] elliottcable: inimino: → ##Paws, m’friend? [02:17] sephr: eboyjr: can I trust this inimino guy? [02:17] elliottcable: sephr: oh shut up [02:17] eboyjr: sephr: no. [02:17] sephr: lol [02:17] rhdoenges: /ignore sephr [02:18] elliottcable: incidentally, no; but shut up. [02:18] eboyjr: rhdoenges: good idea [02:18] cloudhead35 has joined the channel [02:19] sephr: eboyjr: ok thanks the site works fine [02:20] sephr: but how come my logs say you downloaded .accounts? [02:20] sephr: is that just a mess up in my system? [02:20] sephr: can you put it back? [02:20] eboyjr: yes. [02:20] eboyjr: no. [02:21] cloudhead36 has joined the channel [02:22] _jgr has joined the channel [02:23] elliottcable: man, someone kick sephr [02:23] elliottcable: anyway [02:23] sephr: why? [02:23] elliottcable: nobody wants to talk to me about languages? [02:23] sephr: my problem was resolved [02:23] sephr: eboyjr was really helpful [02:23] sephr: this channel is very trustworthy [02:23] cloudhead37 has joined the channel [02:23] eboyjr: sephr: oh i also withdrew $5,000 from customer#235882735829929 [02:24] Anton_ has joined the channel [02:24] sephr: no you're kidding? [02:24] sephr: I'm going to be fired [02:24] eboyjr: haha just kidding [02:24] eboyjr: ACTION had to [02:24] elliottcable: |= [02:25] zanes has joined the channel [02:26] cloudhead38 has joined the channel [02:26] Sorella has joined the channel [02:26] Xeon06_ has joined the channel [02:28] cloudhead39 has joined the channel [02:30] rurufufuss has joined the channel [02:31] eboyjr: So am I required to use npm to package my modules? [02:31] eboyjr: how do i register a module with npm? [02:31] cloudhead40 has joined the channel [02:31] isaacs: eboyjr: you're not required to do anything you don't want to do :) [02:31] isaacs: eboyjr: to publish a module, you can use the `npm publish` command. [02:31] isaacs: but you don't *have* to publish anything [02:31] isaacs: it just makes it easier to install that same program on other systems. [02:32] eboyjr: isaacs: i head that in the node.js license you had to [02:32] eboyjr: okay i'll look at npm publish, i want to publish it anyway [02:32] isaacs: eboyjr: no, if you want to use "node" in the name of your module, and distribute it, then you have to publish it with npm, so that it's clear that it doesnt' come from joyent. [02:33] elliottcable: … that seems, er, odd [02:33] elliottcable: isaacs: why would it seem to come from joyent if that werent the case? [02:33] SubStack: because joyent would /never/ publish anything to npm! [02:33] elliottcable: don’t mistake me for being a dick, I’m genuinely curious [02:33] eboyjr: yeah that's god to know [02:33] cloudhead41 has joined the channel [02:33] eboyjr: good* [02:33] SubStack: joyent has their OWN npm I bet [02:33] isaacs: elliottcable: compared with the fact that you simply may not use "apache" or "php" in the name of a program you distribute without explicit written permission, it's actually quite [02:34] isaacs: *quite open [02:34] elliottcable: isaacs: I mean, oh, I’m completely okay with it [02:34] elliottcable: i not *complaining*, just trying to figure out the logic. [02:34] isaacs: SubStack: joyent has published a few things. we even have a client lib just to talk to smart datacenter apis :) npm install smartdc [02:34] tbranyen: isaacs: didn't your mother ever tell you not to bait the troll? [02:34] isaacs: elliottcable: it has to do with the retardness of trademark law. [02:35] nightshift_ has joined the channel [02:35] elliottcable: tbranyen: I’m not a fucking troll. [02:35] elliottcable: tbranyen: wrap yourself in a cock blanket and suck your thumb. [02:35] elliottcable: ↑ trolling [02:35] elliottcable: ↓ not trolling [02:35] zanes has joined the channel [02:35] elliottcable: isaacs: so it boils down to painful legalities? [02:35] isaacs: elliottcable: sorta. [02:35] elliottcable: isaacs: and :O you work for Joyent now? (or, er, did you always?) [02:35] elliottcable: ACTION has been out of the Node game for a long time [02:36] elliottcable: ACTION busy with his own language etc [02:36] eboyjr: show-off [02:36] eboyjr: :] [02:36] cloudhead42 has joined the channel [02:36] elliottcable: eboyjr’s doing all the acutal work [02:36] Nexxy: wow [02:36] elliottcable: (there, have your pound of flesh) [02:36] tmzt_: elliottcable: language? [02:36] Nexxy: it's like *everyone* is working on their own language these days [02:36] elliottcable: Nexxy: pretty much. [02:36] SubStack: not me! [02:36] elliottcable: Nexxy: though I was doing it before everyone else ;D [02:36] eboyjr: SubStack: join the bandwagon! [02:36] isaacs: elliottcable: joyent wants to protect the trademark on "Node.js". if joyent allows just anyone to distribute just anything under that name, then anyone can show up and say "Well, you let that dude use it, so i should be able to use "node.js" to advertise my program that has nothing to do with your node.js thing." [02:37] markmarkoh has joined the channel [02:37] Nexxy: elliottcable, such a hipster [02:37] isaacs: ACTION has worked for Joyent since Sept 2010 [02:37] elliottcable: isaacs: So, having *some* restrictions, *any* restrictions on it, makes it legal-ish? [02:37] elliottcable: isaacs: heh, that’s way after my time, as you probably remember [02:37] elliottcable: Nexxy: ikr [02:37] elliottcable: Nexxy: my language is also, of course, more innovative. [02:37] tmzt_: there are other entities that have similar restrictions but don't require you to publish something [02:37] elliottcable: Nexxy: not Just Another Ripoff of Ruby™ [02:37] Nexxy: elliottcable, so you're calling it JARR? [02:37] elliottcable: Nexxy: Feel free to /join #Paws.Nucleus if you wish [02:37] tmzt_: are you referring to a trademark license, since node.js is under MIT [02:38] mscdex: JARR is too close to JAR [02:38] yhahn has joined the channel [02:38] mscdex: is it Java-based? [02:38] isaacs: elliottcable: well, more like, having some restrictions that make it clear what comes directly from joyent as part of the project, and what is not directly affiliated with the project, makes it enforceable. [02:38] markmarkoh has joined the channel [02:38] elliottcable: … it’s neither named JARR nor in any way related to Java. *shudders* [02:38] elliottcable: isaacs: makes sense [02:38] cloudhead43 has joined the channel [02:38] elliottcable: isaacs: you did a remarkably good job of explaining some retarded legalities to an engineer. Colour me impressed-mauve. [02:39] isaacs: :D [02:39] Pickley has left the channel [02:39] isaacs: most foundations and companies do not play nearly as fast and loose as joyent does with the "node.js" mark. [02:39] elliottcable: I wonder how that’ll play out in the long run. [02:39] elliottcable: I hope well :x [02:39] elliottcable: I don’t want to see any of that, er, what was it … [02:39] elliottcable: the Sun product that split off and re-named themselves … [02:39] elliottcable: … with Node. )= [02:40] tmzt_: elliottcable: what product is that? [02:41] gkatsev: openoffice [02:41] elliottcable: nah [02:41] elliottcable: it was some continuous-integration server or something [02:41] cloudhead44 has joined the channel [02:41] gkatsev: ah, jenkins [02:41] elliottcable: or bug-suite or something? [02:41] elliottcable: THAT [02:41] gkatsev: but openoffice was also affected, though, by oracle and under some different circumstances [02:41] eboyjr: Jenkins? [02:42] gkatsev: continuous-intergration server [02:42] gkatsev: as elliottcable said [02:42] tmzt_: but those went to apache? [02:42] gkatsev: it was originally called hudson [02:42] elliottcable: was it actually a CI server? :O [02:42] elliottcable: oh my! I remembered something! [02:42] isaacs: elliottcable: well, forking and renaming is sort of a nuclear option for an open source project. but yes, if ryan and felix and me and mikeal and everybody else (but mostly ryan) were really all in agreement that something terrible was being done to the mark, Joyent would have more to lose than we would, and we could fork and rename. but while companies do sometimes turn evil, Joyent's not dumb. [02:43] gkatsev: elliottcable: yes [02:43] elliottcable: tremendous day! [02:43] elliottcable: isaacs: didn’t really mean Joyent-turning-into-Sun [02:43] elliottcable: isaacs: just meant Trademark-bullshit-in-genera [02:43] elliottcable: … general* [02:43] gkatsev: elliottcable: well, sun is still no oracle [02:43] jamescarr: lol... was about to say the same [02:43] cloudhead45 has joined the channel [02:43] isaacs: elliottcable: what's more risky is that some asshat decides to use "node.js" for something non-nodey [02:43] jamescarr: Sun had a lot of tallented people [02:44] jamescarr: *talented [02:44] elliottcable: asshat lol [02:44] elliottcable: er, to be clear: [02:44] jtsnow has joined the channel [02:44] tmzt_: isaacs: just a theory question here, how is having the trademark, the github project, etc. under one provider good for the long term project and adoption? [02:44] elliottcable: not that I would listen *anyway*, but I want to know how likely I am to get banned: [02:44] isaacs: elliottcable: and, due to the retarded laws around the issue, we (that is, joyent + rest of node community) then are less empowered to stop them, because the name was already widely used. [02:44] elliottcable: is this channel, now that it’s all Big and Important, supposed to be “family friendly?” /= [02:44] SubStack: fuck that [02:44] eboyjr: haha [02:45] eboyjr: my eyes! [02:45] elliottcable: SubStack: thank god™ [02:45] Nexxy: I hope so [02:45] Nexxy: it's been getting pretty raucous in here lately [02:45] EyePulp has joined the channel [02:45] Nexxy: and at times a bit offensive [02:46] isaacs: elliottcable: we're pretty strict about being friendly, but cursing is ok [02:46] gkatsev: Nexxy: you should keep it down in front of eboyjr . he's still pure. [02:46] Nexxy: oOo [02:46] Nexxy: ACTION adds eboyjr to the list [02:46] cloudhead46 has joined the channel [02:46] SubStack: http://substack.net/images/dnode-slides/fuck_yeah.png [02:46] eboyjr: lol [02:46] elliottcable: isaacs: strict about being fridnly? [02:46] elliottcable: but, but [02:46] elliottcable: I’m a hate-filled maniac )= [02:46] gkatsev: elliottcable: yes, you need to be friendly, just you don't need to do so to family. Or something. [02:46] eboyjr: SubStack: haha [02:46] elliottcable: I even have a quote here somewhere … [02:46] eboyjr: SubStack: Do you hand draw those? [02:46] elliottcable: eboyjr: go find that quote about me being hate-filled [02:46] SubStack: eboyjr: affirmative [02:47] eboyjr: SubStack: On paper or a computer? [02:47] elliottcable: SubStack: holy crap you’re good [02:47] SubStack: computer [02:47] elliottcable: SubStack: draw me draw me draw me! [02:47] elliottcable: SubStack: http://d.pr/qyy6 [02:47] tmzt_: so SubStack will do all the planet.node.js hackergotchiis? [02:48] tmzt_: er, s/\.js/js\.org/ [02:48] cloudhead47 has joined the channel [02:50] sw8sw8 has joined the channel [02:50] Wa has joined the channel [02:51] jameson has joined the channel [02:51] cloudhead48 has joined the channel [02:51] elliottcable: oh my god I hope he’s drawing me [02:51] elliottcable: ACTION is so excited [02:51] eboyjr: haha i don't think so [02:52] elliottcable: )= [02:53] elliottcable: SubStack <3 elliottcable ← #truth [02:53] cloudhead49 has joined the channel [02:55] elliottcable: I think I’m off to bed. Frickin’ exhausted. [02:55] eboyjr: elliottcable: aw you're going to bed for real? [02:55] elliottcable: Nice seeing everyone again etcetcetc. Protip, /ignore sephr, it makes life easier. #alsotruth [02:55] brianloveswords has joined the channel [02:56] sephr: elliottcable: but you're the one who asked for me to troll anyways... [02:56] cloudhead50 has joined the channel [02:56] brownies has joined the channel [02:56] sephr: I should just tell everyone right now [02:57] dexter_e has joined the channel [02:57] eboyjr: sephr: that you are trolling everyone on purpose? [02:58] sephr: ! [02:58] sephr: but you fixed my webapp [02:58] sephr: you know it was real [02:58] eboyjr: lol [02:58] jamescarr: any backbone.js users here? [02:59] tbranyen: jamescarr: yea [02:59] pNstK has joined the channel [02:59] jamescarr: tbranyen, is there something special you need to do to fetch json from another site? [02:59] ryah: inimino: op powers? [02:59] elliottcable: I looked at “j…escarr” and “yea” and somehow combined them into “yarr.‚ [03:00] elliottcable: tbranyen gets the “subliminal pirate award” [03:00] tbranyen: ryah: well it helps to have more than a single op in a channel this large :) [03:00] sooli has joined the channel [03:00] tbranyen: jamescarr: ummm JSONP yeah... [03:00] tbranyen: jamescarr: pretty sure backbone doesn't do anything like that out of the box, you'll need to write your own Sync method [03:00] tbranyen: its in the docs [03:00] tbranyen: ryah: no not me ... [03:00] tbranyen: lol [03:01] tbranyen: i know my limitations and giving me power is def one of them [03:01] eboyjr: tbranyen: why? [03:01] ryah: :P [03:01] inimino: ryah ⋱ sure [03:01] elliottcable: ryah: I’ll op! [03:01] elliottcable: … badly [03:01] elliottcable: … and probably unfairly [03:01] elliottcable: !^_^ [03:01] oftn-bot: elliottcable: ^^_^_^__^_^_^^ [03:01] eboyjr: its easy being an op, just kick people who are not being approproate and responsing to people with issues [03:01] ryah: ACTION goes back to his stuff [03:01] elliottcable: he obviously knows what to do [03:02] elliottcable: okay, I have to know: [03:02] ryah: https://github.com/ry/d3bench/raw/master/screenshot.png [03:02] tbranyen: d3 rules [03:02] eboyjr: elliottcable: what? [03:03] isaacs: hahahah [03:03] tbranyen: ah man totally missed my "don't tempt me frodo" chance [03:04] eboyjr: ryah: Do you think the topic should be a little more specific? [03:04] gkatsev: eboyjr: nah [03:04] gkatsev: it's clear enough [03:04] gkatsev: no? [03:04] eboyjr: I mean descriptive [03:04] ryah: oh right [03:04] gkatsev: eboyjr: it describes this channel perfectly, no? [03:04] gkatsev: well, the previous topic [03:04] Aria: What's that comparing? [03:05] maushu: Huh, how about walk backwards? [03:05] maushu: Less work. [03:05] tbranyen: moonwalk.js [03:05] ryah: (node's official motto / great song) [03:05] Anton_ has joined the channel [03:05] tbranyen: isn't that push it to the limit? [03:05] elliottcable: !topic revert [03:05] oftn-bot: elliottcable: Error: No topic to revert to. [03:05] elliottcable: oh. [03:05] Nexxy: "yes, we have a CLA and a new logo." [03:05] Nexxy: ^ my vote for the official node motto [03:05] eboyjr: I was thinking: #node.js: Evented I/O for V8 JavaScript. | Ask your question directly. | Let's Push Things Forward. [03:05] Nexxy: oh wait, then add "... deal with it." [03:06] elliottcable: "Too busy making Node awesome to have a motto" [03:06] eboyjr: ryah: ^ [03:06] elliottcable: ↑ my vote for the new node motto [03:06] eboyjr: "I'm a Turtle" [03:06] ryah: eboyjr: sure [03:06] Aria: "Yes, we have a CLA and a new logo. Also, the bikeshed will be green." [03:06] eboyjr: ryah: node.js: Evented I/O for V8 JavaScript. | Ask your question directly. | Let's Push Things Forward. | I'm a turtle: [03:06] tbranyen: Aria: but i like blue... [03:07] elliottcable: Aria: hah! [03:07] maushu: Is javascript the turtle? [03:08] eboyjr: maushu: no that's the rocket [03:08] eboyjr: maushu: the turtle is a turtle [03:08] maushu: All way down? [03:08] eboyjr: The rocket is V8 [03:09] eboyjr: elliottcable: DO IT [03:09] jamescarr: am I missing somehing? I thought jquery getJSON handled jsonp out of the box [03:09] tmzt_: it's supposed to, but only if you have a function name parameter I think [03:09] jamescarr: wtf [03:09] tmzt_: or use getScript [03:09] tbranyen: jamescarr: it does, but thats not what backbone uses under the hood [03:10] jamescarr: hahahah [03:10] jamescarr: goodby cloudhead [03:10] jamescarr: goodbye [03:10] tbranyen: he tried so hard and got so far [03:10] eboyjr: LOL [03:10] jamescarr: no... the docs are clear [03:10] jamescarr: if you include callback=? jquery does jsonp for you [03:11] jamescarr: so I dont get it [03:11] jamescarr: http://search.twitter.com/search.json?q=#crap&callback=?' [03:11] StepanKuzmin has joined the channel [03:11] dexter_e has joined the channel [03:11] kaww has joined the channel [03:11] tbranyen: jamescarr: ... the docs are clear, your mind is not [03:11] tbranyen: if you're still talking about backbone.js [03:11] tbranyen: it does NOT use getJSON [03:12] tmzt_: what percentage of the node.js codebase is v8/js/c++ ? [03:12] tmzt_: is that documented anywhere [03:12] tbranyen: if YOU use getJSON and supply callback=? it will utilize JSONP if the server supports it [03:12] tbranyen: tmzt_: you can check on github [03:12] jamescarr: ah [03:12] tbranyen: tmzt_: https://github.com/joyent/node/graphs/languages [03:12] hippich has joined the channel [03:12] tmzt_: thanks [03:12] tbranyen: np [03:13] tbranyen: eboyjr: http://www.youtube.com/watch?v=gyNOUL0eXNY << this is u [03:13] jamescarr: tbranyen, oh, it was the # [03:13] jamescarr: it didnt like the # [03:13] tmzt_: it wouldn't reverse them [03:13] tmzt_: &callback=#crap [03:14] tbranyen: jamescarr: heh why were you using a # in the first place? [03:14] jamescarr: searching for a tag [03:14] jamescarr: ;) [03:14] tmzt_: might want to excape that [03:14] jamescarr: yeah [03:14] jamescarr: that was the problem [03:15] rhdoenges: tbranyen: what am I waaatching augh [03:15] tbranyen: rhdoenges: eboyjr rapping [03:15] eboyjr: huh [03:16] eboyjr: lol [03:16] eboyjr: ACTION is not black [03:16] tbranyen: that's just what a black furry rapper would say [03:16] StepanKuzmin has joined the channel [03:16] rhdoenges: :O [03:17] elliottcable: … what the fuck, eboyjr [03:17] eboyjr: elliottcable: what? [03:17] eboyjr: oh [03:17] Nexxy: oh so now you have to be black to rap! [03:18] eboyjr: yeah, i would rather that not have been on youtube [03:18] eboyjr: they lied to me [03:18] elliottcable: no ops for furries. [03:18] tbranyen: Nexxy: unless your name is RJD2 or M&M yes [03:18] Nexxy: you mean EMINEM!? [03:18] materialdesigner has joined the channel [03:18] eboyjr: elliottcable: look whos talking... [03:18] tbranyen: no i mean the thing that is black on the inside [03:18] tbranyen: woah [03:18] tbranyen: is that how he got his name??? [03:18] eboyjr: elliottcable: your programming language is called Paws. P.A.W.S. Paws [03:18] halfhalo: LOL [03:18] elliottcable: you talkin’ ’bout my dildo collection? [03:19] elliottcable: … oh, or that. Shit. [03:19] tmzt_: tbranyen: no, it's a corruption of his first and last name [03:20] eboyjr: m&m lol [03:20] tbranyen: thats less mind blowing [03:20] elliottcable: lololololol [03:20] _jgr has joined the channel [03:20] neoesque has joined the channel [03:20] jamescarr: tbranyen, I'm still a little clueless... can you glance at this and try it out? [03:20] jamescarr: it actually does call the url, it just cant bind the event [03:21] jamescarr: Uncaught TypeError: Object function (){return a.apply(this,arguments)} has no method 'bind' [03:21] jamescarr: :( [03:21] tbranyen: jamescarr: what file? [03:21] jamescarr: oh sorry, thought I pasted the gist [03:21] jamescarr: https://gist.github.com/1103504 [03:21] othiym23 has joined the channel [03:22] jamescarr: nvm... I think it was the typo [03:22] tbranyen: your model is a bit weird [03:23] jamescarr: yeah yeah [03:23] jamescarr: that was the "typo" [03:23] tbranyen: oh [03:23] tbranyen: ha [03:24] jamescarr: missing extend({}) ;) [03:24] tbranyen: yeah i think you neede the () right [03:24] tbranyen: yeah [03:24] tbranyen: yea yea yea yea [03:24] tbranyen: i'm bono irl [03:24] jamescarr: granted I'll never do the bind('refresh") in the real world [03:24] jamescarr: but it never gets triggered... a console.log in parse tells me that does get called [03:24] cloudhead has joined the channel [03:24] jamescarr: with the results [03:25] StepanKuzmin has joined the channel [03:25] willwhite has joined the channel [03:26] caiges has joined the channel [03:28] StepanKuzmin has joined the channel [03:29] jshaw has joined the channel [03:31] gazumps has joined the channel [03:36] Wa has joined the channel [03:36] kaww has joined the channel [03:38] cpetzold has joined the channel [03:40] CStumph has joined the channel [03:42] softdrink has joined the channel [03:43] domo has joined the channel [03:43] brimster has joined the channel [03:43] domo: hey.. what is the most popular mysql-connector for node? I've googled and came across a list of 3-5 options [03:44] domo: the reason I care is because I'd rather use something that will be supported and that is popular so I can receive help with it when needed [03:44] Xano has joined the channel [03:44] isaacs: domo: felixge's one. "npm install mysql" [03:45] domo: ok, is there a website for that? [03:45] domo: thats why I current have installed [03:45] isaacs: domo: https://github.com/felixge/node-mysql [03:46] gqlewis has joined the channel [03:46] dgathright has joined the channel [03:46] domo: so this is written in JS? [03:46] domo: wouldn't using one written in C as a module for node be faster? [03:46] domo: and I'm not challenging you, just curious :) [03:46] eboyjr: faster and better [03:47] eboyjr: imo [03:47] domo: felixge's is? [03:47] Nexxy: you're using mysql and you're concerned with speed? ;3 [03:47] brimster has left the channel [03:47] isaacs: domo: i dont' actually do any mysql wiht node. [03:47] domo: no no, I'm not concerned about anything [03:47] tayy has joined the channel [03:47] eboyjr: couchdb: is that what people use [03:47] isaacs: domo: but compiled addons are always a little bit painful :) [03:47] isaacs: eboyjr: i use it. <3 it. [03:47] domo: I see [03:47] Nexxy: my guess is that the difference in performance between a js and a C module would be negligent unless you're doing some *very* intensive stuff [03:48] domo: alrighty [03:48] domo: cool [03:48] gkatsev: eboyjr: no, mongo [03:48] Nexxy: emphasis on guess [03:48] domo: may I ask what you guys use for mongo? [03:48] Nexxy: s/mongo/riak/ [03:48] tmzt_: like printing numbers? [03:48] Nexxy: domo, mongoose is neat! [03:48] Nexxy: if you like schemas [03:48] isaacs: Nexxy: well, my guess (also *guess*) is that the diff would probably show up if you were doing something where the DB itself wasn't the bottleneck. [03:48] Nexxy: since you're using mysql you might find that handy [03:48] domo: well I've used mongo plenty [03:48] tmzt_: Nexxy: you can use mongoose and ignore the schemes too, just use User.collection. [03:48] domo: I just turned to mysql since this project has a lot of relation data [03:48] domo: relational * [03:49] gkatsev: Nexxy: s/riak/redis/ ? [03:49] gkatsev: lol [03:49] Nexxy: b-but relations belong in the application logic!! [03:49] domo: haha yes [03:49] Nexxy: ACTION starts a flamewar [03:49] domo: :) [03:49] domo: Nexxy I like you [03:49] domo: you sound like me [03:49] Nexxy: domo, join the club [03:49] domo: haha [03:49] Nexxy: registration is $15 [03:49] Nexxy: $4.99 monthly [03:49] domo: so yeah, do you recommend mongoose since it's *easy* or do you recommend it because it's really that good [03:50] Nexxy: honestly I've barely used it [03:50] Nexxy: ACTION is rolling with riak [03:50] caolanm has joined the channel [03:52] SubStack: Nexxy: what are you building with it? [03:52] brianseeders has joined the channel [03:52] brianseeders has joined the channel [03:54] tayy has joined the channel [03:54] domo: so I don't understand, with all of these node.js + it seems you need to wrap your code in the database's callback for when the connection is ready [03:55] SubStack: domo: that's how async io works [03:55] eboyjr: yup, its called asyncronosity [03:55] domo: so the answer is yes [03:55] eboyjr: so you can do something else before it connects [03:55] domo: there's no way I can halt until the connnection is ready? [03:55] domo: no no I understand [03:55] domo: but what if I don't want to do anything before it connects [03:55] domo: if the app I'm writing requires a connection? [03:57] Sami_ZzZ_ has joined the channel [03:59] strcK has joined the channel [03:59] tmzt_: halt? [03:59] tmzt_: first of all, mongoose can handle the connection not being avaiable, it will actually perform the operations when it is [03:59] eboyjr: he doesn't to use callbacks [03:59] eboyjr: doesn't want* [03:59] domo: interesting [03:59] domo: I didn't know that [03:59] domo: but db specific aside [04:00] domo: I want the application to fail if the connection is available [04:00] domo: er exit * [04:00] tmzt_: the point of the callback is the code doesn't run if it doesn't become avaiable [04:00] tmzt_: you can use a setTimeout [04:00] tmzt_: and just exit the process with an error [04:00] domo: ok that's what I had in mind [04:01] eboyjr: domo: http://substack.net/images/dnode-slides/fuck_yeah.png [04:01] domo: lol [04:02] domo: no prob with cb's my man just wondering if there was another way besides wrapping a ton of code around a connectionReady({ [04:02] domo: or rather nesting [04:02] domo: sorry, that didn't make sense.. nesting my code inside of * ^ [04:04] devyn has left the channel [04:04] dherman has joined the channel [04:06] Xeon06_ has joined the channel [04:06] unlink has joined the channel [04:07] Aaron_ has joined the channel [04:08] liar has joined the channel [04:09] gazumps856 has joined the channel [04:10] cjm has joined the channel [04:10] hij1nx has joined the channel [04:10] Nexxy: SubStack, with what? [04:10] Nexxy: riak? [04:12] fuzzyone: http://www.youtube.com/watch?v=rv6PGOnsC5M [04:13] azeroth_ has joined the channel [04:15] domo has left the channel [04:16] Xeon06_ has joined the channel [04:17] caiges has joined the channel [04:18] Nuck: I want a bot which posts all of hipsterhacker's tweets to chat. [04:19] eboyjr: Nuck: Twitter has apis for that [04:19] eboyjr: Nuck: and oftn-bot has a good base for making IRC bots [04:19] eboyjr: better than the others [04:21] Xeon06_ has joined the channel [04:21] dgathright has joined the channel [04:21] eastender has joined the channel [04:22] irrumator_ has joined the channel [04:22] irrumator_: hi, i get this error on trying to build the latest node.js i git cloned from github: [04:24] irrumator_: http://tinypaste.com/16b431 [04:25] eboyjr: irrumator_: I can't see it, there are ads in the way [04:25] eboyjr: irrumator_: Try pastie.org [04:25] irrumator_: ok, sorry about that [04:26] gartenstuhl has joined the channel [04:26] eboyjr: irrumator_: its okay, i can see it now [04:26] eboyjr: irrumator_: Are you connected to the internet? [04:26] isaacs: irrumator_: cygwin? [04:26] irrumator_: http://pastebin.com/NNZHBfjf [04:26] irrumator_: no ubuntu 10.04 zsh isaacs [04:27] irrumator_: brb [04:27] sambao21 has joined the channel [04:27] sambao21 has left the channel [04:30] sephr has left the channel [04:31] Xeon06_ has joined the channel [04:32] raidfive has joined the channel [04:32] irrumator: and back [04:32] irrumator: sorry about that [04:36] Xeon06_ has joined the channel [04:40] xeodox has joined the channel [04:45] bartt has joined the channel [04:46] gqlewis has joined the channel [04:47] dexter_e has joined the channel [04:48] battlecollie has joined the channel [04:48] battlecollie has left the channel [04:51] elitheeli has joined the channel [04:54] caiges has joined the channel [04:55] Nuck: I'm debating buying Colloquy Mobile for the sake of not having to use my laptop to get on IRC constantly. I'm not sure if it's worth $2, what do you say? [04:55] isaacs: Nuck: i think there's a free irc program for android [04:55] softdrink has joined the channel [04:55] isaacs: Nuck: or do you have a fancy phone with the i in it? [04:55] Nuck: WEll fuck Android [04:56] Nuck: iPhone 4 32GB [04:56] halfhalo: webOS ftw [04:56] Nuck: LOL WebOS is a piece of shit [04:56] rhdoenges: chill. [04:56] halfhalo: psh. I bid you good day sir. [04:57] rhdoenges: also is there any sort of minecraft bot/server/butler built in node.js yet? [04:57] rhdoenges: because I am about to get on that. [04:57] bartt has joined the channel [04:58] Nuck: rhdoenges: Make me an SMB server in Node and I will love you forever. [04:58] slifty_corsair has joined the channel [04:58] pyro1 has joined the channel [04:59] pyro1: we're making an API doc tool that uses coffeescript as the syntax [04:59] pyro1: need a good name [04:59] pyro1: $5 to the winner [04:59] pyro1: GO! [04:59] pyro1: in BTC [04:59] eboyjr: cocoadocs [05:00] eboyjr: Docoa [05:00] ryah: "$5" [05:00] ryah: as a name [05:00] mnaser: fivedolla [05:00] mnaser: fivedoca [05:00] mnaser: docoffee [05:00] mnaser: i suck at names hurhurhur [05:01] zanes has joined the channel [05:01] Lorentz: chailatte [05:01] eboyjr: Docoa is perfect, imo [05:01] pyro1: what do you guys think of däkyəmenˈtāSHən [05:01] rhdoenges: Nuck: maybe not THAT much work -- but I at least want to make a bot. [05:01] pyro1: of course you think it's perfect, you just want the $5BTC [05:01] rhdoenges: servers are hard, let's write clients [05:01] jacobolus has joined the channel [05:03] eboyjr: pyro1: No I just want a good name for a däkyəmenˈtāSHən generatr [05:03] pyro1: haha [05:03] pyro1: aight well that is actually winning [05:03] pyro1: so if nobody beats it [05:03] pyro1: ill get your BTC address tonight [05:04] battlecollie has joined the channel [05:04] battlecollie has left the channel [05:04] eboyjr: =] I don't want BTC's [05:04] eboyjr: I don't use bitcoins [05:05] brianloveswords has joined the channel [05:07] battlecollie has joined the channel [05:07] vipaca has joined the channel [05:07] vipaca has joined the channel [05:11] escii has joined the channel [05:11] Nuck: eboyjr: Then cash out at Mt. Gox :P [05:11] escii: hi nodes [05:11] Nuck: hi nigs [05:11] eboyjr: escii: NO U [05:12] escii: wha? [05:12] rook2pawn has joined the channel [05:12] escii: what did I do this time? :p [05:12] eboyjr: You are a node [05:13] escii: u not? [05:13] escii: didn't get it, maybe it's to early in the morning :] [05:14] eboyjr: You should be careful before calling people nodes [05:14] admc has joined the channel [05:16] michaelhartau has joined the channel [05:16] zackattack has joined the channel [05:16] escii: well it wasn't meant negative... [05:16] eboyjr: I'm kidding [05:16] escii: *slap* :P [05:17] mikedeboer has joined the channel [05:20] zer0- has joined the channel [05:23] kmiyashiro: if I want to create a database for stats, relational db probably don't make sense, right? [05:24] kmiyashiro: like, analytics [05:25] dshaw_ has joined the channel [05:25] Nuck: kmiyashiro: I personally think Mongo is the solution for all use cases, but some people disagree [05:25] kmiyashiro: but how would that even work? [05:26] Bonuspunk: when u only got a hammer everything looks like a nail ? ^^ [05:26] Nuck: one document per event? [05:26] jstroem has joined the channel [05:26] Xeon06_ has joined the channel [05:26] Nuck: Bonuspunk: I have a hammer and another hammer and a penis. Hammer = mongo, other hammer = MySQL, and penis = SQLite [05:27] Nuck: The thing that doesn't fit in with the rest [05:27] Nuck: Then I have a screwdriver, called Redis [05:27] eboyjr: please don't use your penis to drive nails into the wall [05:27] kmiyashiro: one doc per event? [05:28] kmiyashiro: isn't that going to be inefficient when querying for stats for a month/year? [05:28] materialdesigner: http://i.imgur.com/pnXmi.png [05:29] Nuck: kmiyashiro: Index by months and years? [05:29] kmiyashiro: oh [05:30] rook2pawn has joined the channel [05:30] kmiyashiro: what about for billions of data points? [05:32] slifty_corsair: night night everyone! [05:33] tuhoojabotti: materialdesigner: good one. :P [05:33] materialdesigner: it cracks me up every time [05:34] tuhoojabotti: "It's funny because it's true" [05:35] mikeal has joined the channel [05:35] adam_ has joined the channel [05:37] Spion_ has joined the channel [05:40] irrumator_ has joined the channel [05:40] irrumator_ has joined the channel [05:40] irrumator_ has joined the channel [05:40] irrumator_ has joined the channel [05:41] Xeon06_ has joined the channel [05:41] michaelh_ has joined the channel [05:41] vns has joined the channel [05:44] seivan has joined the channel [05:45] greg has joined the channel [05:46] Xeon06_ has joined the channel [05:48] guidocalvano has joined the channel [05:48] andree has joined the channel [05:50] Stythys has joined the channel [05:51] Xeon06_ has joined the channel [05:54] cpetzold has joined the channel [05:56] Xeon06_ has joined the channel [05:57] stephank has joined the channel [06:02] jimt has joined the channel [06:02] Anton_ has joined the channel [06:03] balupton has joined the channel [06:04] cpetzold has joined the channel [06:05] meso_ has joined the channel [06:05] chjj has joined the channel [06:06] tmzt_: uh, you can use $inc in mongo and increment a counter on a type of event [06:06] tmzt_: you can do the same with redis [06:06] tmzt_: or if you're using mysql for other things, look into handlersocket, which gives you sql-free access to the data store [06:10] stisti has joined the channel [06:11] Xeon06_ has joined the channel [06:11] thepatr1ck: I too have just gone with using node + mongo [06:11] thepatr1ck: (for stats) [06:13] thepatr1ck: and am most using a $inc to essentially create my reports on the fly, and benchmarking shows I can do ~1,000 recorded page views/second (with mongo & node on the same machine) [06:15] andree has joined the channel [06:18] CStumph has joined the channel [06:19] svenlito has joined the channel [06:20] a has joined the channel [06:20] NetRoY has joined the channel [06:21] fangel has joined the channel [06:22] hassox has joined the channel [06:23] gartenst_ has joined the channel [06:24] Ancarius has joined the channel [06:24] SamuraiJack has joined the channel [06:25] guidocalvano has joined the channel [06:26] Ancarius has joined the channel [06:26] Ancarius: hey guys [06:27] Ancarius: can anybody help with a bit of info on setting up Node on windows? [06:27] tbranyen: double click the exe [06:28] Ancarius: tried that and ended up with a command prompt with nothing in it and no commands would work [06:28] Ancarius: am i doing something wrong? [06:28] Ancarius: i'm on a x64 Win7 btw [06:29] rhdoenges has joined the channel [06:29] Nexxy has joined the channel [06:29] Nexxy has joined the channel [06:30] rhdoenges: I got a node KO spot woohoo [06:31] Ancarius: I've ben trying to install on Cygwin but i'm not sure how i should set up namespaces and assign the server in windows "hosts" file [06:32] jesusabdullah: rhdoenges: word son [06:32] Ancarius: and overall how i should set it up as a web server [06:34] mscdex: Ancarius: the node.exe is the mingw build, not cygwin [06:35] mikeal has joined the channel [06:36] irrumator_ has joined the channel [06:36] irrumator_ has joined the channel [06:36] rhdoenges: I just have NO IDEA what I will make [06:36] rhdoenges: probably some kind of game [06:37] rhdoenges: probably top-gun themed [06:37] rhdoenges has joined the channel [06:38] jborst has joined the channel [06:39] Ancarius: never used mingw and I already have cygwin installed as part of a software package so it seemed like the logical choice [06:40] tmzt_: Ancarius: cygwin is good for the shell, mingw is a compiler/library for building close to win32 applications without emulation (like cygwin uses) [06:40] rhdoenges: mingw is very different [06:40] Ancarius: i see :) [06:40] rhdoenges: tmzt_'s got it [06:41] tmzt_: I wonder if fastcgi woudl help with these things as it would make chaining from IIS easier [06:41] tmzt_: but it would nee a modified fastcgi I think [06:41] loob2 has joined the channel [06:41] fille has joined the channel [06:41] Ancarius: so...how do i then proceed to make mode accessible through localhost? [06:41] Ancarius: *node [06:42] rhdoenges: what seems to be the issue? [06:42] rhdoenges: does the hello world run? [06:43] Ancarius: haven [06:43] Ancarius: haven't done a hello world yet. i was curious about how i get it up and running as a web server [06:43] felixge has joined the channel [06:44] e6nian has joined the channel [06:44] dexter_e: What is different when NODE_ENV = production ? [06:45] Nexxy: whatever you want! [06:45] Nexxy: typically things like caching [06:45] Ancarius: dexter_e: i'm guessing it's the error handling [06:45] Nexxy: or resource locations? [06:46] tmzt_: Ancarius: you're node program you write is a web server [06:46] tmzt_: that's it [06:46] dexter_e: Are there default out of the box differences between Node in prod vs. dev ? [06:46] tmzt_: then it's listening for requests [06:46] mikey_p: typicall node stops goofing off and gets ready for SRS BIZNESS [06:46] rhdoenges: Ancarius: it just gets up and runs! [06:46] stagas: dexter_e: no afaik [06:46] dexter_e: what about for Express ? [06:46] stagas: dexter_e: yes [06:46] dexter_e: error reporting and caching ? [06:47] mikey_p: express generally caches views and switches error reporting around, but it's really up to your app [06:47] Ancarius: so i can just run it on apache? [06:47] mikey_p: the error reporting is just what it does if you scaffold an app using the generator, you can override it [06:47] dexter_e: I se [06:47] dexter_e: so its just caching stuff ? [06:47] stagas: Ancarius: no, you type 'node yourapp.js' and it runs solo [06:48] Ancarius: so how do i integerate it on say apache? [06:48] stagas: Ancarius: you need some kind of proxy, as not both can run on the same port on the same ip [06:48] Ancarius: or redirect localhost on my browser to it? [06:49] rhdoenges: Ancarius: you don't. [06:49] stagas: Ancarius: but better is to run it on a free ip [06:49] topaxi has joined the channel [06:49] mikey_p: Ancarius: for local development its better to just run node on some port other than 80 [06:49] rhdoenges: Ancarius: node is designed to serve directly to clients. If you put a big fat apache instance between it and the web you ruin it. [06:49] mikey_p: express defaults to 3000 for example [06:50] rhdoenges: 8080 or 3000 or whatever [06:50] rhdoenges: just try the hello world http server and it will all make sense [06:50] Ancarius: ok..i might have misspoken. i was curious as to how i go about deploying a node driven http server [06:51] tmzt_: Ancarius: usually with a lightweight server proxy in front of it, like nginx [06:51] Fandekasp has joined the channel [06:51] stagas: Ancarius: if you have a vps w/ cpanel you can do this https://gist.github.com/754303 or you can use one of the node hosting providers like no.de or nodejitsu [06:52] irrumator_: /wc [06:52] irrumator_ has left the channel [06:52] rhdoenges: ehh nginx is a little bit overkill [06:52] muhqu has joined the channel [06:52] hassox has joined the channel [06:53] brainproxy: how about haproxy? [06:53] Ancarius: so what would be a good option on a sandbox? [06:54] irrumator_ has joined the channel [06:54] irrumator_: hi, i am trying to install docpad via npm and i get this error: [06:54] irrumator_: npm ERR! Not compatible with your version of node/npm: express@2.4.3 [06:54] irrumator_: npm ERR! Required: {"node":">= 0.4.1 < 0.5.0"} [06:54] irrumator_: npm ERR! Actual: {"npm":"1.0.22","node":"v0.5.3-pre"} [06:54] rhdoenges: irrumator_: what's node -v say? [06:54] irrumator_: i just got npm via the install.sh script on the site, but got node from a ppa [06:55] irrumator_: v0.5.3-pre [06:55] hwinkel has joined the channel [06:55] te-brian2 has joined the channel [06:55] rhdoenges: yeah, you shouldn't be running 0.5 [06:55] rhdoenges: it's unstable [06:55] stagas: irrumator_: I think you can do --force to install anyway [06:55] irrumator_: stagas: it's coming up with other errors so i'm not sure that's alright.. [06:55] rhdoenges: go find 0.4.10 somewhere and keep running that. [06:55] irrumator_: is 0.5 latest? [06:56] Ancarius: well ...this all seems a bit more complicated than i anticipated :) still...persistence i guess [06:56] Ancarius: thanks for your help guys. i think i get the basic idea now [06:56] rhdoenges: irrumator_: odd minor versions are unstable [06:56] rhdoenges: it is latest [06:56] Ancarius: have a nice day everyone [06:56] rhdoenges: but 0.4 is still receiving patches etc [06:56] rhdoenges: later, Ancarius! [06:57] rhdoenges: because 0.4 is stable and good. 0.5 will kidnap your app and sell it for drugs if you aren't careful [06:58] rhdoenges: but it can do that on windows! [06:58] langworthy has joined the channel [06:59] hassox_ has joined the channel [06:59] groom has joined the channel [07:00] dgathright has joined the channel [07:02] dexter_e: Ubuntu Upstart anyone? Will .bashrc be ignored ? [07:03] dexter_e: for NODE_ENV [07:03] irrumator_ has joined the channel [07:03] irrumator_ has joined the channel [07:04] tmzt_: dexter_e: .bashrc in a system user home directory? [07:04] irrumator_: am back. sorry about intermittent connection guys. question i had before: is my version (0.5.3pre) the latest in node? [07:04] unlink has joined the channel [07:04] unlink has joined the channel [07:04] tmzt_: it would only run if bash runs interactively I belive [07:04] dexter_e: tmzt_: yeah [07:04] rhdoenges: irrumator_: yes it is, but it's unstable [07:04] irrumator_: where can i find say 0.4 version of node for ubuntu 10.04 to install then? [07:04] rhdoenges: irrumator_: 0.4 is still being updated and is the stable version [07:04] rhdoenges: I dunno... [07:05] emattias has joined the channel [07:05] dexter_e: so Upstart will still look at .bashrc ? [07:05] irrumator_: nvm, i'll see if have luck with the tar.gz on nodejs.org [07:05] irrumator_: had problems earlier so that's why installed from the ppa instead [07:06] rhdoenges: irrumator_: I can help w/ compilation problems better than I can help with ppa problems :P [07:07] rachelderp: Are there any examples of SSL/TLS servers and clients? [07:07] rachelderp: There's an example of a TLS server in the documentation... [07:07] rachelderp: http://nodejs.org/docs/v0.5.2/api/tls.html [07:07] rachelderp: But then says to test it, run some other command [07:08] tmzt_: dexter_e: I don't think so, which is why many upstart scripts invoke a shell and source a defaults file [07:08] `3rdEden has joined the channel [07:09] irrumator_: rhdoenges: yeah, i'm going to try the build procedure on the github page...dunno how i missed that before. was trying to build it myself and having issues with g++ i remember. let's see how it goes now. it looks like the ppa i was using was getting the latest dev builds always, so that was the issue. [07:10] irrumator_: just waiting for my shitty connection to dl all the files at 125 kibs/sec [07:10] ivanfi has joined the channel [07:11] djcoin has joined the channel [07:12] anubhaw has joined the channel [07:16] irrumator_: it is recommended to run 'make install' as root, yes? [07:16] irrumator_: and just 'make' as normal user, yes? [07:17] rhdoenges: yep! [07:17] irrumator_: thx rhdoenges [07:18] AAA_awright: v8bot_: if([0]) 1; else 0; [07:19] irrumator_: alright, now installing docpad with npm. will this cause issue, since i successfully installed coffee-script (a docpad dependency) before with latest version of node? [07:19] AAA_awright: v8: 1; [07:19] v8bot_: AAA_awright: 1 [07:19] AAA_awright: hmm [07:19] AAA_awright: v8: if([0]) 1; else 0; [07:19] v8bot_: AAA_awright: 1 [07:19] AAA_awright: v8: if([0]==true) 1; else 0; [07:19] v8bot_: AAA_awright: 0 [07:19] AAA_awright: wtfjs [07:19] tuhoojabotti: welcome to finland! [07:19] tuhoojabotti: oo [07:20] tuhoojabotti: v8bot_: You're back! [07:20] irrumator_: whoa, is v8bot running commands from irc? [07:20] irrumator_: for nodejs?! [07:20] Pickley_ has joined the channel [07:20] AAA_awright: No, just v8 [07:20] tuhoojabotti: irrumator_: obviously [07:20] tuhoojabotti: also catb0t [07:20] tuhoojabotti: .. 'lol' [07:20] catb0t: 03'lol' [07:20] AAA_awright: v8: require; [07:20] v8bot_: AAA_awright: ReferenceError: require is not defined [07:20] mrtrosen has joined the channel [07:21] Pickley_ has left the channel [07:21] irrumator_: !help v8bot_ [07:21] irrumator_: man v8bot_ [07:21] AAA_awright: v8: escape; [07:21] v8bot_: AAA_awright: function escape() { [native code] } [07:21] irrumator_: v8: alert('test') [07:21] v8bot_: irrumator_: ReferenceError: alert is not defined [07:21] irrumator_: strange [07:21] irrumator_: i must read up on this v8bot [07:21] tuhoojabotti: lol [07:21] AAA_awright: It's just the core ECMAScript spec [07:21] tuhoojabotti: Yeah [07:21] AAA_awright: v8: console; [07:21] v8bot_: AAA_awright: {"output": [], "log": function (){ Array.prototype.push.apply(sandbox.console.output, Array.prototype.slice.call(arguments, 0)) }} [07:22] AAA_awright: Oh wait nvm [07:22] rhdoenges: v8bot is back, yay! [07:22] AAA_awright: hmm [07:22] AAA_awright: v8: this; [07:22] tuhoojabotti: sandboxed node [07:22] v8bot_: AAA_awright: {} [07:22] rhdoenges: .. require [07:22] catb0t: ReferenceError: require is not defined [07:22] rhdoenges: yeah well [07:22] rhdoenges: that's that [07:23] irrumator_: v8: print("testing this crazy v8bot"); "@" + "irrumator_"; [07:23] v8bot_: irrumator_: CONSOLE: ["testing this crazy v8bot"], OUTPUT: "@irrumator_" [07:23] AAA_awright: v8: ([0])?true:false === ([0]==true)?true:false; [07:23] v8bot_: AAA_awright: true [07:23] AAA_awright: v8: ([1])?true:false === ([1]==true)?true:false; [07:23] v8bot_: AAA_awright: true [07:24] AAA_awright: v8: if([1]) true; else false; [07:24] v8bot_: AAA_awright: true [07:24] AAA_awright: v8: if([1]==true) true; else false; [07:24] v8bot_: AAA_awright: true [07:24] tuhoojabotti: AAA_awright: It also works in query. [07:24] AAA_awright: I'm taking my wtfjs out on the channel [07:24] rachelderp: Are there any simple chat examples in node, not browser based? [07:24] rachelderp: Like you run two node terminals [07:25] AAA_awright: Like: [07:26] AAA_awright: v8: if(!!([false])) true; else false; [07:26] v8bot_: AAA_awright: true [07:26] AAA_awright: BUT [07:26] AAA_awright: v8: if(([false])==true) true; else false; [07:26] v8bot_: AAA_awright: false [07:26] irrumator_: is it normal for 'sudo npm -g install $packgname' to take a long time with no messages on progress? [07:26] lot49 has joined the channel [07:27] irrumator_: like % completed, ETA on completion etc [07:27] hybsch has joined the channel [07:28] saurabhverma has joined the channel [07:28] groom has joined the channel [07:30] CStumph has joined the channel [07:31] jonaslund: AAA_awright: the first is a type conversion (objects eval to true) while the second is a comparasion with the true atom [07:31] [AD]Turbo has joined the channel [07:31] herbySk has joined the channel [07:32] tuhoojabotti: irrumator_: Yeah [07:32] tuhoojabotti: :D [07:32] jonaslund: v8bot_: [!!{},{}==true,{valueOf:function() {return true}}==true] [07:32] tuhoojabotti: v8:* [07:32] v8bot_: tuhoojabotti: SyntaxError: Unexpected token * [07:32] jonaslund: v8: [!!{},{}==true,{valueOf:function() {return true}}==true] [07:32] v8bot_: jonaslund: [true, false, true] [07:32] AAA_awright: jonaslund: I'm not aware the spec makes !! an operator itself [07:32] jonaslund: AAA_awright: it's just the ! operator applied twice [07:32] [AD]Turbo: yo all [07:32] AAA_awright: Right [07:33] __tosh has joined the channel [07:33] tuhoojabotti: I'm not not good. [07:33] AAA_awright: Oh hm. [07:33] tuhoojabotti: I'm not not at work -> I'm at work [07:33] tuhoojabotti: :P [07:33] TurboAWAY has joined the channel [07:33] tuhoojabotti: double negation<3 [07:33] jonaslund: AAA_awright: notice the v8 i just evaled.. the valueOf operator decides what an object becomes when used as a value [07:33] AAA_awright: v8: [ ![false] , [false]==false, [false]!=true ] [07:33] v8bot_: AAA_awright: [false, false, true] [07:34] Vertice has joined the channel [07:35] jellosea_ has joined the channel [07:36] versicolor has joined the channel [07:36] jellosea_: i'm using a db-oracle a node binding for oracle. the wscript is looking for a header file, and I have pointed it in the right direction.. but it keeps complaining that it can't find the file. does anybody have an idea why it can't find / see the file? [07:38] caiges has joined the channel [07:38] markdaws has joined the channel [07:39] svenlito has joined the channel [07:39] irrumator_: wow, just read wiki on what v8 is. sounds very impressive. i am learning js and asm concurrently with C++ so this should be fun to work with [07:40] gqlewis has joined the channel [07:40] Anton_ has joined the channel [07:42] dgathright has joined the channel [07:43] rhdoenges: v8 is a beast [07:43] rhdoenges: also, take a look at the node source sometime [07:43] rhdoenges: the v8 api looks so painless (relatively) [07:43] gavin_huang has joined the channel [07:44] rhdoenges: it almost makes you want to go to google and give the v8 team a big hug. [07:44] jbpros has joined the channel [07:44] rachelderp: rhdoenges: Almost? [07:45] rhdoenges: almost but then I realize I could just order them pizza [07:45] tuhoojabotti: :) [07:46] Xeon06_ has joined the channel [07:47] steffkes has joined the channel [07:48] Druide_ has joined the channel [07:50] mosen has joined the channel [07:50] bergie has joined the channel [07:52] uchuff has joined the channel [07:53] hassox has joined the channel [07:55] booo has joined the channel [07:56] ccare has joined the channel [07:56] jellosea_: i'm using a db-oracle a node binding for oracle. the wscript is looking for a header file, and I have pointed it in the right direction.. but it keeps complaining that it can't find the file. does anybody have an idea why it can't find / see the file? [08:01] Xeon06_ has joined the channel [08:01] radiodario has joined the channel [08:03] Esteb has joined the channel [08:03] tayy has joined the channel [08:03] hassox has joined the channel [08:04] apalmer has joined the channel [08:04] apalmer has left the channel [08:04] apalmer has joined the channel [08:05] metamind has joined the channel [08:06] luke` has joined the channel [08:09] guidocalvano has joined the channel [08:15] iaincarsberg has joined the channel [08:16] markwubben has joined the channel [08:17] hassox has joined the channel [08:19] tbassetto has joined the channel [08:20] Polysics has joined the channel [08:20] Polysics: hello [08:20] mikedeboer has joined the channel [08:20] Polysics: i have installed express, yet my script throws a lot of errors [08:20] Polysics: TypeError: Object # has no method 'bodyDecoder' [08:20] Polysics: i would say node is not finding the files [08:22] hassox_ has joined the channel [08:24] fangel has joined the channel [08:24] jbpros has joined the channel [08:24] Sebastien-L has joined the channel [08:24] Nexxy: Polysics, what versions? [08:24] Nexxy: of node and express [08:25] Polysics: node is v. 0.5.0pre [08:27] lot49 has left the channel [08:27] Nexxy: Polysics, although I've never experienced this issue, a cursory google search of your exact error reveals this thread from the express mailing list; http://groups.google.com/group/express-js/browse_thread/thread/8246c202155ec1bb [08:27] lot49 has joined the channel [08:28] akiva has joined the channel [08:28] akiva: Hello all. [08:28] sylvinus has joined the channel [08:28] kulor-uk has joined the channel [08:29] Nexxy: Polysics, also, 0.5.0pre was very buggy if I remember correctly... you're probably better off with 0.4.10 [08:29] hassox has joined the channel [08:29] akiva: Can anyone recommend a good (and simple) Twitter module that will allow me to retrieve/stream the X most recent tweets by either a user or mentioning a user? [08:29] Nexxy: akiva, https://github.com/polotek/evented-twitter [08:30] tuhoojabotti: Nexxy: I'm using 0.5.0pre :D [08:30] Nexxy: tuhoojabotti, why? [08:30] eldios has joined the channel [08:30] tuhoojabotti: Because I'm too busy to update it :E [08:30] Nexxy: are you doing stuff with libev or something? [08:30] akiva: Nexxy: Thanks. Most of the ones I am coming across are too complex (clients) [08:30] akiva: Jeez, it's pretty old [08:30] Nexxy: akiva, I had that one up and running and bolted to an IRC bot in liek 5 minutes [08:30] tuhoojabotti: Nexxy: No, I'm just running an http server [08:31] akiva: Okay [08:31] Nexxy: akiva, but there may very well be newer/moar maintained/better libs out there [08:31] Xeon06_ has joined the channel [08:31] Pickley_ has joined the channel [08:31] akiva: Thanks, Nexxy [08:31] Nexxy: akiva, you may look into whatever kohai is using for its twitter feeds [08:31] Nexxy: I know that is in active development [08:31] Pickley has left the channel [08:32] Nexxy: https://github.com/nodejitsu/kohai/blob/master/node_modules/twitter/package.json [08:32] Nexxy: I guess they are just using the "twitter" package [08:33] robhawkes has joined the channel [08:38] mytrile has joined the channel [08:38] isaqual has joined the channel [08:40] kmox83 has joined the channel [08:41] TomY_ has joined the channel [08:44] StepanKuzmin has joined the channel [08:44] ambroff has joined the channel [08:45] StepanKuzmin has joined the channel [08:45] hellp has joined the channel [08:45] StepanKuzmin has joined the channel [08:48] michaelhartau has joined the channel [08:49] temp01 has joined the channel [08:50] pgte has joined the channel [08:51] akiva: Nexxy: yeah, and a lot of them are more client based--bloated. [08:51] akiva: Nexxy: I am lost, how do I get http://stream.twitter.com/1/statuses/filter.json to follow my accounts of interest if they require userID only and not username? [08:51] akiva: Via Follow param [08:52] Nexxy: good question! [08:52] blup has joined the channel [08:52] Nexxy: I only really used it to stream tweets on various keywords [08:52] Nexxy: never followed anyone with it [08:54] akiva: Bleh [08:54] springify has joined the channel [08:55] freewil has joined the channel [08:55] freewil has joined the channel [08:58] AAA_awright: I'm a turtle What is this I don't even [09:00] fdenbow has joined the channel [09:00] Anton_ has joined the channel [09:01] guybrush: AAA_awright: turtles are to nodejs like camels are to perl :D [09:02] AAA_awright: guybrush: We're still waiting on the O'Reilly book to settle that I think [09:02] guybrush: hehe [09:03] markwubben has joined the channel [09:03] meso_ has joined the channel [09:05] bzinger has joined the channel [09:06] mytrile1 has joined the channel [09:09] pen has joined the channel [09:11] Xeon06_ has joined the channel [09:12] necrodearia has joined the channel [09:14] andrewfff has joined the channel [09:14] cystbear has joined the channel [09:15] cystbear: hello guys, I am start working with mongoose, could you hint me how to create reference in my model? [09:15] thalll has joined the channel [09:16] jellosea_ has left the channel [09:16] SubStack: they had better! [09:17] SubStack: with respect to the turtles [09:17] cystbear: SubStack: sorry, do not get you [09:18] blup has joined the channel [09:18] SubStack: turtles, cystbear. turtles. [09:20] cystbear: heh, what are you taking about? [09:20] Lorentz: http://substack.net/images/node_turtle.png [09:21] hassox has joined the channel [09:22] TheJH_ has joined the channel [09:22] emattias has joined the channel [09:23] CStumph has joined the channel [09:24] cystbear: Lorentz: nice pic bro [09:27] mosen: Lorentz, we meet again.. [09:27] Lorentz: Indeed [09:28] Lorentz: How's life? [09:29] mosen: Lorentz, more nodey [09:29] Lorentz: I'm still stuck doing php at my work work, at least it's zf-based now [09:29] Lorentz: I might introduce them to nodejs when time is good [09:30] Lorentz: They like it when I show off new things to help the company along in any way. [09:30] mosen: Lorentz, at least you have zf :) [09:32] cystbear: mosen: are you on plain php? [09:33] aliem has joined the channel [09:33] escii: there's somewhere a blog post around about: "will nodejs replace php" ..or something like that :] [09:35] muhqu has joined the channel [09:35] sourcode has joined the channel [09:36] Polysics: a language is a language [09:36] Polysics: but PHP is a crap language :-D [09:36] Polysics: ok, back with my problem [09:36] Polysics: TypeError: Object # has no method 'bodyDecoder' [09:36] guidocalvano has joined the channel [09:37] Polysics: node is v. 0.5.0pre, express is 2.4.3 [09:37] Polysics: i probably messed up permissions or somethng [09:38] rcda has joined the channel [09:38] Polysics: any ideas, please? [09:39] mosen: cystbear, always using a framework [09:39] dexter_e: Polyphysics: I had that too [09:39] dexter_e: I changed it to bodyParser [09:39] pyro1 has joined the channel [09:39] Polysics: npm ls comes up empty [09:39] dexter_e: I guess the method name changed [09:40] rcda: Hi, how can i easily read contents of uploaded txt file (without saving it). with node & express? req.data only gives me a file name.. [09:41] dexter_e: Polysics: try .bodyParser(); instead; [09:41] jomoho has joined the channel [09:42] Polysics: dexter_e, it was that [09:42] Polysics: thansk [09:42] Polysics: did the startup message for a node app change? i just see "socket.io started" [09:42] cystbear: mosen: what framework? just interesting... [09:43] booo has joined the channel [09:44] StepanKuzmin has joined the channel [09:44] Polysics: i probably don't get how npm works, but why does it install packages where i type the command? [09:44] Polysics: isn't there supposed to be a centralized dir? [09:45] agnat has joined the channel [09:45] metamind: hi, [09:46] metamind: just installing and setting up a new machine. [09:46] metamind: installed node ('v0.4.11-pre') OK [09:46] metamind: trying to install npm. [09:47] __doc__ has joined the channel [09:47] tg has joined the channel [09:47] metamind: using curl http://npmjs.org/install.sh | sh [09:47] metamind: but keep getting things like: [09:48] metamind: npm ERR! Could not create /home/ed/local/node/lib/node_modules/___npm.npm [09:48] metamind: npm ERR! Please use 'sudo' or log in as root to run this command. [09:48] metamind: however, in http://howtonode.org/introduction-to-npm [09:48] metamind: it says: [09:49] Nexxy: metamind, just do "sudo -i" first [09:49] metamind: I strongly encourage you not to do package management with sudo! [09:49] Nexxy: then run that ;3 [09:49] christophsturm has joined the channel [09:49] Nexxy: just make sure you exit after you're done being root [09:50] Nexxy: metamind, also; that article was written in 2010. using npm w/ sudo is now preferred [09:51] Nexxy: (AFAIK, at least for installing things) [09:51] christophsturm has joined the channel [09:52] zilch_ has joined the channel [09:53] zilch_: I want to server my express bases service with a revers proxy ... what would be the best way to do it ? [09:54] metamind: hmm. now i get "npm cannot be installed without nodejs." [09:54] metamind: when I type "node" at the command line I get: [09:54] metamind: The program 'node' can be found in the following packages: [09:54] metamind: * node [09:54] metamind: * nodejs [09:55] Polysics: shouldn't scripts daemonize automatically? [09:55] confoocious has joined the channel [09:57] Polysics: my socket.io script isn't working any mode [09:57] Polysics: *more [09:59] skm has joined the channel [10:00] fermion has joined the channel [10:01] Xeon06_ has joined the channel [10:03] liquidproof has joined the channel [10:05] dsirijus has joined the channel [10:06] jetienne has joined the channel [10:07] tg` has joined the channel [10:09] skm has joined the channel [10:11] AAA_awright: Well there's my problem. Node.js doesn't compile with python3.1. Which is what I had enabled. [10:12] AAA_awright: Master branch here I come [10:12] pgte has joined the channel [10:16] whitman has joined the channel [10:16] seivan has joined the channel [10:16] jensn has joined the channel [10:20] clockwize has joined the channel [10:20] clockwize has left the channel [10:20] fangel has joined the channel [10:21] lot49 has joined the channel [10:23] micheil has joined the channel [10:26] micheil has joined the channel [10:26] micheil has joined the channel [10:31] fraserkillip has joined the channel [10:32] gausby has joined the channel [10:33] seivan has joined the channel [10:37] fermion has joined the channel [10:39] FireFly has joined the channel [10:40] NetRoY has joined the channel [10:40] Pickley_ has joined the channel [10:40] Pickley_ has left the channel [10:42] NetRoY has joined the channel [10:46] zilch_ has joined the channel [10:46] Xeon06_ has joined the channel [10:49] heavysixer has joined the channel [10:53] NetRoY has joined the channel [10:53] akiva: What would be the preferable way to make a 3rd party REST request? I am trying to retrieve JSON via Twitter [10:54] skm has joined the channel [10:55] akiva: n/m, got it : http://nodejs.org/docs/latest/api/http.html#http.request [10:56] Xeon06_ has joined the channel [10:56] __tosh has joined the channel [10:57] xerox: akiva: for the twitter api there also are node modules already written that are quite good [10:57] threecreepio has joined the channel [10:57] akiva: xerox: Yeah, I know. most are bloated beyond my needs. I just want to show my latest X number of tweets [10:58] xerox: : ) [10:59] willuk has joined the channel [10:59] NetRoY has joined the channel [11:00] H4ns``` has joined the channel [11:02] skm has joined the channel [11:02] sfoster has joined the channel [11:02] pgte has joined the channel [11:04] gozala has joined the channel [11:04] adrianmg has joined the channel [11:05] medice: is there any documentation on socket io's rooms somewhere [11:05] zilch_: with node-http-proxy supports x-forward-for header injection in https->https scenario ? [11:05] Rob_ has joined the channel [11:09] jacobolus has joined the channel [11:10] `3rdEden: medice did you read the readme https://github.com/LearnBoost/Socket.IO [11:11] Xeon06_ has joined the channel [11:12] bnoordhuis has joined the channel [11:12] ambroff has joined the channel [11:12] zer0-: If anybody here is in the need of VPS, stay away from Cirtex/HostV.. I just found out that week ago they formatted our VPS, changed the root password at the process and didn't even bother to email us. [11:13] djcoin: Who's making a living out of nodejs here ? Or is it 'hacking on your free time' ? [11:13] tuhoojabotti: djcoin: ryah :D [11:13] tuhoojabotti: The guy making Node. ;) [11:13] djcoin: ;] [11:13] djcoin: Maybe not ! [11:14] jacobolus has joined the channel [11:14] Hurreman: zer0-: ouch [11:15] zer0-: Hurreman: luckily we did have our own backup script running but we just lost our dev git repos and some website stuff [11:16] Hurreman: Wouldn't make me less pissed though :) [11:16] zer0-: It seems that either you colohost yourself or you risk of being fucked, or you pay big bucks for some guarantees [11:17] tuhoojabotti: http://regexr.com?2ua7m Anyone wanna make this work in PuTTY Tray? :P [11:17] zer0-: Hurreman: But either way, it's pretty unbelievable fucked up business practice to not inform the customer. [11:17] gxblast has joined the channel [11:17] Lorentz: zer0-: That's pretty fucked up [11:18] Hurreman: zer0-: Yeah, unless you're hosting somewhere local where you know the guys running the business. Still no guarantees, but.. [11:18] fermion has joined the channel [11:18] Metapony has joined the channel [11:19] zer0-: And the reason they formatted the VPS was that "a filesystem check gone wrong on the main hardware node and hence the data for all vps's pn the server got mixed up and missing and we did restore most of the vps 's back to working state and this incident was atleast a week ago." … but didn't think it was needed to email us .. jeez [11:19] zer0-: But anyway, just a friendly heads up for everybody that stay away from HostV/Cirtex [11:19] Hurreman: That's the way to get repeat business, not [11:19] framlin: djcoin: I use node to do things (among other client-JS-stuff) that earn my money [11:20] skm has joined the channel [11:20] djcoin: framlin: thanks for answering [11:20] djcoin: Im currently doing both Python and JavaScript in a small company in France, its okay [11:21] djcoin: But I tested node.js, and now I want to build some personal stuff with it. [11:21] Polysics: djcoin, do you have an opening for a good Rubyist with 10 years of experience and a degree? i have always wanted to move to France [11:22] Polysics: i also know PHP well, all Unix OSes and some Node :-D [11:22] djcoin: Polysics: :), well we dont have ruby here, we make some drupal btw [11:22] Polysics: i do not speak a word of french though :-D [11:22] djcoin: And some teams in the company use some node.js to make some GIS stuff [11:22] djcoin: Its called Makina Corpus [11:23] Hurreman: zer0-: The CFO of the host I've got a few projects running on called me a while back asking if there was anything I needed, since I had made a few calls to their tech dudes the week before. Now that's service :) [11:23] aklt has joined the channel [11:23] djcoin: But maybe there is a way to create a "Ruby" pole [11:23] djcoin: Check #makinacorpus Polysics [11:23] djcoin: If you want any info [11:26] zilch_: are people surveying if one can make money on node.js ? [11:27] djcoin: It would be great to see the trends of node.js jobs [11:27] otaku_coder has joined the channel [11:28] okuryu has joined the channel [11:28] jetienne: djcoin: http://jobs.nodejs.org/a/jobs/find-jobs is a place for that [11:28] djcoin: My point is that: I want to make personal projects that will probably make me good "enought" with node. One of my expectation is to find a job next. [11:28] djcoin: But whatever happens :b [11:28] otaku_coder: Hi. I upgraded to Lion, and installed the new Xcode. Node is working fine, but when trying to install the bcrypt npm module I keep getting 'error: could not configure a cxx compiler'. Any ideas whats causing this? [11:29] djcoin: jetienne: thanks for the pointer, already checked it :) [11:29] StepanKuzmin has joined the channel [11:31] jetienne: djcoin: github got something similar but not specific to node. i dunno if it is possible to get only node.js related one [11:32] djcoin: jetienne: your name sounds french, do you actually code in node.js in France ? [11:32] jetienne: djcoin: yep. but i do it on my own (coding my own games for profit, hopefully profit, i mean :) [11:32] djcoin: :) [11:33] djcoin: One of my project is to code a game too [11:33] jetienne: djcoin: several companies are looking for people skilled in js on paris tho [11:33] jetienne: djcoin: joshfire, zenexity are the ones coming to my mind [11:33] djcoin: Yeah, the problem is i dont like much Paris, Im in Nantes [11:33] piscisaureus has joined the channel [11:34] jetienne: djcoin: i got your point :) so you know that a LOT of business happen in paris :) [11:34] djcoin: Nice, a french network ;) [11:34] jetienne: djcoin: zenexity got office in the south too i think [11:34] djcoin: Yep [11:34] djcoin: Are you in Paris yourself ? [11:35] emattias_ has joined the channel [11:35] jetienne: http://www.express-board.fr/offre-d-emploi/dc738ebc310616d4013147e69e7e001b [11:36] jetienne: djcoin: the offer i was thinkging about. yep im in paris. i help organize parisjs everymonth [11:36] mnaser_ has joined the channel [11:36] djcoin: Oh [11:36] jetienne: next one is next wednesday [11:36] djcoin: I missed it a few weeks ago [11:37] pNstK has joined the channel [11:37] djcoin: You may know Samori aka shinuza [11:37] boehm has joined the channel [11:37] framlin: by readig about paris ... are there any german noders? (Berlin or Munic) [11:37] gausby has joined the channel [11:37] bergie has joined the channel [11:37] jetienne: http://twitter.com/#!/mikiane/status/94468888296820736 yet another offer in paris [11:37] CIA-94: node: 03Alexander Uvarov 07master * r14b75a1 10/ (3 files in 2 dirs): Add Socket::bytesRead, Socket::bytesWritten - https://github.com/joyent/node/commit/14b75a126f27286fea12bf1f918b8beb7abf01dd [11:37] CIA-94: node: 03Alexander Uvarov 07master * r216829e 10/ doc/api/net.markdown : Docs for Socket::bytesRead, Socket::bytesWritten - https://github.com/joyent/node/commit/216829e7520a56ef0bede9fc8387c2de9683e4c0 [11:38] jetienne: framlin: berlinjs is strong [11:38] jetienne: djcoin: nope but im wellknown for my bad memory on names :( [11:38] djcoin: ok, he worked at W3C, its a black cool guy :) [11:39] jetienne: cool :) [11:39] ringomanatee has joined the channel [11:39] jetienne: https://twitter.com/#!/berlinjs framlin it may be of interest [11:40] Wizek has joined the channel [11:40] djcoin: jetienne: thanks for the pointers, its great :) [11:40] djcoin: I may candidate then [11:40] djcoin: But I wonder if there is any chance I worked from Nantes [11:40] jetienne: you can ask... [11:41] djcoin: jetienne: here is my linkedin if its of any help http://fr.linkedin.com/pub/simon-thepot/11/58b/168 [11:42] jetienne: djcoin: you can ask jolicloud too. they do node [11:43] djcoin: k [11:43] zilch_: we are using node.js to put all our iOS based apps on cloud [11:43] djcoin: From the cv you can tell im more in python than in js, but I actually made non trivial app [11:43] djcoin: in js [11:43] zilch_: i.e. the data stored locally on iOS devices is also synced back to mongodb ... and node.js is used to provide this service as API [11:44] djcoin: And im definitly motivate to move further in html5 + js [11:44] jetienne: zilch_: we = ? [11:44] djcoin: thanks for all the links anyway jetienne [11:44] zilch_: yup I am employed in a company [11:44] jetienne: zilch_: a company with no name ? :) [11:44] zilch_: oh it is junesoftware.com [11:44] jetienne: zilch_: ok :) [11:44] zilch_: aka TapTolearn [11:45] zilch_: Watch us participate on TechCrunch 13 Sep ;) [11:45] jetienne: will do :à) [11:46] zilch_: we are big on js ... though so far we have been an iOS/ apple company [11:46] zilch_: as much as we have five Javascript good parts :) for 10 devs :) [11:46] zilch_: DC will be proud of us !!! [11:46] jetienne: hehe [11:47] djcoin: :] [11:47] zilch_: we are a gaming company and you can check our apps on iTune store [11:47] tbassetto: djcoin: I think this guy from Nantes gave a presentation about Node.js in latest Paris Web conference => http://www.linkedin.com/in/waxzce [11:48] zilch_: the high scores and player avatars are all synced back to mongodb with help of node.js layer [11:49] __tosh has joined the channel [11:49] fermion has joined the channel [11:49] jetienne: zilch_: cool! more gamedevs on node :) [11:50] temp01 has joined the channel [11:50] akshatj_ has joined the channel [11:50] escii: any idea if its possible to spoof a UDP port without pcap? with node [11:50] djcoin: tbassetto: yeah I heard of him, there are "funny" video of him, he is really in the "cloud" trend stuff, a bit too much maybe :) [11:51] akshatj_ has joined the channel [11:51] zilch_: jetienne, what all kinda games you develop ? [11:51] hellp has joined the channel [11:52] zilch_: we are a cross between a game company and education [11:53] zilch_: anybody using node-http-proxy ? [11:53] jetienne: zilch_: did one in webgl http://pacmaze.com the ones im doing now are simple casual games with inapp sell [11:53] fraserkillip has joined the channel [11:54] Croms has joined the channel [11:54] jetienne: zilch_: i will do more webgl soon. but not in games. webgl isnt widely deployed enougth to be profitable [11:55] escii: planed to use http-proxy but not yet [11:55] jetienne: zilch_: ie10 saying "no webgl" will slow down adoption too. [11:55] djcoin: jetienne: lol nice [11:55] djcoin: pacman 3D [11:55] djcoin: :) [11:55] jetienne: thanks :) [11:56] escii: did anyone use node to spoof or proxy non http traffic? [11:56] jetienne: ACTION going back to learning mongoose and model definition [11:56] ts___ has joined the channel [11:58] akiva: If I make a call to a 3rd party API to retrieve some HTML, what is the best way to handle updating the browser to include said results (html) [11:58] zilch_: nice app [11:59] zilch_: node running on Chromium on my Ubuntu , thought [11:59] zilch_: working fine on my Safari on macbook [11:59] akiva: So, if I make a call to retrieve a list of my friends, how should I handle the results? How would I take this list of friends and inject it into my document that was already served? [11:59] zilch_: escii, https is considered non http ? [12:00] saurabhverma has joined the channel [12:02] dherman has joined the channel [12:05] mehtryx has joined the channel [12:07] brianseeders has joined the channel [12:08] igl: IE wont have WebGL until they absolutly have to support it [12:08] igl: maybe when they ditch silverlight [12:10] carmony has joined the channel [12:10] DetroitBoy has joined the channel [12:11] escii: nah zilch_ raw tcp :) [12:12] kriszyp has joined the channel [12:12] escii: want to spoof the traffic of a minecraft server to gather more information about the players (position) without modifiying the minecraft server code [12:14] zilch_: escii, ok [12:15] igl1 has joined the channel [12:15] zilch_: jetienne, why you would learn mongoose, ... just using node-mongo-native is good enough ... from mongo to node the ORM mapping is not required [12:15] zilch_: akiva, try jQuery dom manupilation [12:16] skazhy has joined the channel [12:16] gartenstuhl has joined the channel [12:16] jetienne: zilch_: euhh no particular reason. i am not big on nosql stuff, i took the ffirst which seemed easy and worked [12:16] akiva: zilch_: thanks [12:16] jetienne: zilch_: any known issue with mongoose ? [12:16] zilch_: jetienne, cool !! [12:17] jetienne: zilch_: i mean beside doing unnecessary mapping [12:17] traph has joined the channel [12:17] cccaldas has joined the channel [12:17] Badababuba has joined the channel [12:17] jetienne: my current issue is more on designing good schema than anything else [12:18] zilch_: jetienne, nope really mongoose don't have any issues .. It just one more layer of indirection IMHO [12:18] escii has joined the channel [12:18] escii: back [12:18] zilch_: since mongo driver server and takes JS objects ... there is not ORM required [12:18] zokko has left the channel [12:19] zilch_: mongoose is pretty strong and well built [12:19] bnoordhuis: so is my girlfriend [12:19] tuhoojabotti: :D [12:19] tuhoojabotti: bnoordhuis: Pic or didn't happen. [12:19] zilch_: bnoordhuis, :) [12:19] jetienne: zilch_: cool. and if perf becomes an issue i can always go pure mongodb [12:19] zilch_: jetienne, yeah [12:20] zilch_: but you need to do data validation/sanity check your selft [12:20] zilch_: I do it using json-schemas [12:20] zilch_: JSV module [12:20] jetienne: zilch_: looking [12:21] framlin: jetienne: thanks! [12:21] jetienne: https://github.com/garycourt/JSV [12:21] guidocalvano has joined the channel [12:22] zilch_: there are other modules... but I found this to be a li'l ahead of others ... [12:23] R4md4c has joined the channel [12:23] jetienne: zilch_: noted for future use :) [12:26] bradleymeck has joined the channel [12:29] booo has joined the channel [12:30] blup_ has joined the channel [12:31] blup has joined the channel [12:32] shapeshed has joined the channel [12:34] anubhaw has joined the channel [12:35] jonaslund has joined the channel [12:35] craigbarnes has joined the channel [12:38] sledge has joined the channel [12:38] anubhaw: shouldn't "error" event be triggered for 401 (Unauthorized ) http status code? [12:38] mike5w3c has joined the channel [12:39] anubhaw: for http.request method [12:40] eldios: guys I need a videotutorial (series?) about web design, mainly aobut how to graphiccaly create appealing sites with new techs like HTML5 and CSS3.. d'you know if such a FREE tutorial exists? [12:40] eldios: I mean I know both of those technology.. I simply can't sum it up to make a complete site nice-looking site [12:41] shapeshed: have you considered taking a design class if you know the technologies? [12:42] jshaw has joined the channel [12:44] bnoordhuis: anubhaw: no, 'error' is for transport layer errors [12:44] bnoordhuis: anubhaw: think connection refused, connection reset, etc. [12:44] aheckmann has joined the channel [12:44] kmox83 has joined the channel [12:45] anubhaw: bnoordhuis: thanks so much . whats the best place to handle other errors ? in "end" event ?? [12:45] akiva: Anyone here use the express asset module? [12:46] akiva: I am wondering if it minimizes and concatenates all JS files [12:46] Metal3d has joined the channel [12:47] bnoordhuis: anubhaw: http error codes? 'response' probably [12:48] bnoordhuis: s/probably// [12:48] anubhaw: bnoordhuis: Ya, :) thanks [12:50] pickels has joined the channel [12:52] AaronMT has joined the channel [12:53] CrypticSwarm has joined the channel [12:53] battlecollie has joined the channel [12:53] battlecollie has left the channel [12:54] saschagehlich has joined the channel [12:55] broofa has joined the channel [12:57] fumanchu182 has joined the channel [12:58] mnaser has joined the channel [12:59] mnaser has joined the channel [12:59] pastak has joined the channel [13:01] boaz has joined the channel [13:02] jasong_at_apache has joined the channel [13:04] pen_ has joined the channel [13:04] kofno has joined the channel [13:05] bwinton` has joined the channel [13:06] ngs has joined the channel [13:07] tayy has joined the channel [13:09] chjj: anyone here use lubuntu? [13:11] chjj: lxinput is seg faulting on me for some reason [13:11] pgte has joined the channel [13:13] __tosh has joined the channel [13:16] kmiyashiro has joined the channel [13:17] unomi has joined the channel [13:18] ceej has joined the channel [13:20] Nican has joined the channel [13:20] craigbarnes has left the channel [13:21] malkomalko has joined the channel [13:22] Xano has joined the channel [13:23] malkomalko: .';l';l'lf,sd;lfas [13:24] mnaser: lolwut [13:26] thomblake has joined the channel [13:27] yhahn has joined the channel [13:27] havenn has joined the channel [13:27] gozala has joined the channel [13:27] te-brian has joined the channel [13:28] ksheurs has joined the channel [13:30] __tosh has joined the channel [13:30] thomblake has left the channel [13:30] tuhoojabotti: *insert lolwut pear here* [13:31] broofa has joined the channel [13:32] sfoster has joined the channel [13:32] pNstK: Which is the best mongodb driver for node.js? [13:34] c_t has joined the channel [13:34] c4milo has joined the channel [13:38] DarylM has joined the channel [13:38] MarkMenard has joined the channel [13:40] kofno has joined the channel [13:41] bshumate has joined the channel [13:41] bshumate has joined the channel [13:41] jtsnow has joined the channel [13:41] davemo has joined the channel [13:41] eldios: pNstK, lot's of ppl like mongoose [13:42] eldios: shapeshed, that's exactly what I was thinking.. only problem is I need something to follow online.. or maybe a book.. or something like that [13:43] oftn-bot has joined the channel [13:44] tuhoojabotti: oftn-bot :O [13:44] Bonuspunkt has joined the channel [13:44] tuhoojabotti: What is that? [13:44] CIA-94: node: 03Ben Noordhuis 07v0.4 * rdeb100f 10/ deps/libeio/eio.h : [13:44] CIA-94: node: eio: remove trailing comma from enumerations [13:44] CIA-94: node: Fixes compile-time error in strict mode. Fixes #567. - https://github.com/joyent/node/commit/deb100fb176a40d59d4b961be7aef90ef7361b52 [13:44] elliottcable: !i love this bot [13:44] oftn-bot: elliottcable: thank you. ^‿^ [13:44] broofa has joined the channel [13:44] Poetro has joined the channel [13:44] tuhoojabotti: !halp [13:44] oftn-bot: tuhoojabotti: Hey smart people, HALP! elliottcable, battlecollie, micahjohnston, incomprehensibly [13:45] tuhoojabotti: Hmm [13:45] tuhoojabotti: !help [13:45] oftn-bot: tuhoojabotti: Use the `>>` command for the SpiderMonkey interpreter, and the `>>>` command for the V8 interpreter. [13:45] tuhoojabotti: :u [13:45] tuhoojabotti: asd [13:45] tuhoojabotti: Now thejh's bot is spamming me in the query. [13:45] __tosh has joined the channel [13:46] xerox: anybody got a link that explains how javascript is parsed? not interested about the text parsing, just the timing, it is clearly not linear as in you can do module.exports = someFunction and define it "afterwards", I wonder what are the rules though [13:46] gartenstuhl has joined the channel [13:46] elliottcable: xerox: I don’t have a handy link to a generalized article about the topic, but the specific feature you mention is “variable hoisting.” [13:47] zmbmartin has joined the channel [13:47] jacobolus has joined the channel [13:47] elliottcable: xerox: An easy way to conceptualize it is “Imagine if you put a `var var1, var2, var3, … varN;` statement at the *start of every block*, that declared-as-undefined each variable you name *within* that block, anywhere. [13:47] elliottcable: oh, wait, I mis-read. [13:48] elliottcable: Sorry, what *you* mention is named-functions, which are specically accessible anywhere within the scope in which they are named [13:48] zilch_: pNstK, the mongoose is layer on top of node-mongo-native ... that is the most active driver for mongo for node.js [13:48] zilch_: node-mongo-native by cristv !!! [13:49] Isaiah has joined the channel [13:49] zmbmartin has joined the channel [13:49] rfay has joined the channel [13:49] elliottcable: xerox: a quick google yields this. Not sure how great a resource it is, but at quick scrutiny, it seems to cover all the bases: http://elegantcode.com/2011/03/24/basic-javascript-part-12-function-hoisting/ [13:50] Corren has joined the channel [13:51] xerox: elliottcable: kudos [13:52] jvduf has joined the channel [13:53] zilch_ has joined the channel [13:53] tahu has joined the channel [13:54] RORgasm has joined the channel [13:54] RORgasm has joined the channel [13:54] level09 has joined the channel [13:54] jtrudeau has joined the channel [13:55] fraserkillip has joined the channel [13:55] diegoviola has joined the channel [13:56] apoc has joined the channel [13:58] kmiyashiro has joined the channel [14:00] akiva: Can anyone tell me (who has express.js experience) how I can get the current route for the page I am on? I am trying to find a way to mark my navigation menu with an active or current class [14:00] jacobolus has joined the channel [14:01] mnaser: akiva, run a console.log(request) and you'll find some interesting things [14:01] mnaser: request being req or whatever you called it in your fucnton [14:01] smtlaissezfaire has joined the channel [14:01] sandropadin has joined the channel [14:02] ivanfi has left the channel [14:02] matbee has joined the channel [14:04] Throlkim has joined the channel [14:05] _jhs has joined the channel [14:05] sooli has joined the channel [14:06] brianc has joined the channel [14:06] azeroth_ has joined the channel [14:06] diegoviola has joined the channel [14:07] Dreamer3 has joined the channel [14:08] KimSchneider has joined the channel [14:08] DarylM has left the channel [14:08] ale_ has joined the channel [14:08] KimSchneider: hi @ all [14:08] ale_: join /socketio [14:08] digitaltoad has joined the channel [14:08] ale_: how's that channel? [14:08] KimSchneider: Did anyone try to use a wildcard ssl cert with nodejs? [14:09] digitaltoad has joined the channel [14:09] mnaser: KimSchneider: nodejs shouldn't really care much afaik [14:09] markmarkoh has joined the channel [14:09] mnaser: you give it a certificate, and it'll send it and use it for SSL encryption [14:10] mnaser: the client is the one that says "okay, legitimate ssl certificate" [14:10] KimSchneider: yes, but I would really love to know it for sure. Paying 350€ for a wildcard cert and it doesn't work would suck :) [14:10] bnoordhuis: KimSchneider: it should work [14:11] bnoordhuis: KimSchneider: but you can generate a test wildcart cert with openssl if you want to be sure [14:11] mnaser: KimSchneider: is there a reason why you're getting an expensive one? [14:11] mnaser: (besides the fancy badge?) [14:11] KimSchneider: @bnoordhuis: good idea! [14:12] KimSchneider: @mnaser: it is an enterprise application, so we would use a thawte [14:12] ale_: Hello everyone, when I make node server.js I get this error: SCannot find module 'Socket.io-node' [14:12] mnaser: they're all just as secure as each other [14:13] mnaser: IMHO unless you want the fancy "logo", it's not worth paying for. but that's your decision :) [14:13] CrisO has joined the channel [14:13] KimSchneider: I know, but it is the fancy badge that says "I am secure" ;) [14:13] __tosh has joined the channel [14:13] KimSchneider: what's the offer you would suggest? [14:13] unlink has joined the channel [14:13] unlink has joined the channel [14:13] hij1nx has joined the channel [14:14] fdenbow has joined the channel [14:14] mnaser: there's other companies that offer a logo and still as secure [14:14] mnaser: we have tons of servers so we use it for that [14:14] kaww has joined the channel [14:14] KimSchneider: Feel free to send me a name of a cheaper service :) [14:15] azeroth_ has joined the channel [14:16] bnoordhuis: KimSchneider: recovering enterprise programmer here, we always went with thawte too [14:16] tayy_ has joined the channel [14:16] bnoordhuis: KimSchneider: ev certificates are something of a rip-off imo [14:16] bnoordhuis: KimSchneider: but at least thawte is cheaper than verisign [14:17] mnaser: the process to acquire EV [14:17] mnaser: really stupid [14:17] mnaser: it costs so much more than the actual price of it because of everything else they want you to do [14:17] mnaser: https://www.thesslstore.com/rapidssl/rapidssl-wildcard.aspx [14:17] brolin has joined the channel [14:17] mnaser: 150 a year for unlimited and full validations across ie/ff/etc [14:18] mnaser: about 10k users in total never a ticket about ssl invalidity [14:18] rccc has joined the channel [14:18] rccc: hello [14:18] pifantastic has joined the channel [14:18] KimSchneider: Alright, thanks for your help. We will try nodejs with an self-generated wildcard cert and check out your link [14:18] mnaser: np. [14:19] tbassetto has joined the channel [14:20] willwhite has joined the channel [14:20] rccc: I wonder if it would be better to use a python feed parser like universal feed parser in nodejs, or would be better to use a javascipt feed parser written with nodejs ? [14:21] bnoordhuis: ale_: you need to install socket.io [14:21] mapleman has joined the channel [14:22] ale_: bnoordhuis: I already did that...I made npm install socket.io [14:22] elliottcable: EV is a definite fucking no-no [14:22] TheFuzzball has joined the channel [14:23] `3rdEden: ale_ see #socket.io [14:23] slifty has joined the channel [14:23] mnaser: elliottcable: but zomg green bar = its liek so secur [14:23] Sami_ZzZ_ has joined the channel [14:23] sw8sw8 has joined the channel [14:23] elliottcable: mnaser: I know *you’re* being sarcastic, but it’s scary how many people think that. [14:23] elliottcable: Browsers screwed the fuckin’ pooch on this one. [14:24] mnaser: yeah, i like chrome, it still gives you some green for https [14:24] tuhoojabotti: :P [14:24] tuhoojabotti: Chrome<3 [14:24] mnaser: and chrome gives you v8 [14:24] mnaser: chrome is your new god [14:24] tuhoojabotti: Yeah [14:24] elliottcable: ACTION is a Safari nut. [14:24] tuhoojabotti: Chrome also has less Chrome. [14:24] tuhoojabotti: The beta at least [14:24] tuhoojabotti: Only tabs<3 [14:25] elliottcable: Man, I had *such* a great rant saved, some blog post on extended validation. [14:25] mnaser: i do use safari too, but no good extensions [14:25] elliottcable: It laid out all the points really well, and *really* tore into this EV scam [14:25] elliottcable: but, I can’t find it now )= [14:25] mnaser: whenever chrome does the mac gestures [14:25] mnaser: i'll switch over [14:25] mnaser: but the flick back and forth for back/forward is too cool to drop safari for (in lion) [14:26] elliottcable: I broke out my Magic Touchpad again for exactly that reason [14:26] elliottcable: the gesture support is to widespread to avoid / ignore [14:26] elliottcable: ACTION pumps up the Grieg while cleaning-house [14:26] mnaser: same! the minute i installed the first lion preview, i went out and got one [14:27] tuhoojabotti: I do all kinds of funny faces to my computer, but it never does anything. :< [14:27] mnaser: haven't regretted it, still as productive [14:27] tuhoojabotti: Need a webcam app [14:27] tuhoojabotti: When I smile, it shares my current tab to facebook -> I see trouble ahead. [14:31] idefine has joined the channel [14:32] jacobolus has joined the channel [14:32] softdrink has joined the channel [14:32] jetienne has joined the channel [14:33] elliottcable: http://open.spotify.com/album/4wt1HXkSW5Pg5LL6EWcis7 [14:33] elliottcable: If you’ve got it, click it. [14:33] elliottcable: ACTION hums along [14:33] bnoordhuis: any greeks around? [14:33] softdrink: i has no spotify :( [14:34] mnaser: not in canada yet [14:34] mnaser: and i bet even if it gets here [14:34] mnaser: it'll suck (hi netflix) [14:34] xerox: netflix sucks in canada? [14:34] softdrink: i *just* got on google music :T [14:34] mnaser: there are a LOT of missing titles, xerox [14:34] mnaser: because of stupid canadian laws that prevent them. but they're getting better [14:35] jtsnow has joined the channel [14:35] seivan has joined the channel [14:35] tjholowaychuk has joined the channel [14:35] xerox: "canadians can't watch all movies." [14:35] xerox: oops wrong window [14:36] tuhoojabotti: Grooveshark is kinda nice. :P [14:36] jacobolus has joined the channel [14:36] tuhoojabotti: I want google music though. [14:36] xerox: a guy was complaining about netflix in canada, I didn't know they had a limited selection because of some law [14:36] mnaser: Grooveshark si awesome! [14:36] mnaser: s/si/is/ [14:36] mnaser: s/si/is/ [14:37] xerox: grooveshark doesn't run on my fresh lion install 'cos I don't have flash ha ha [14:37] xerox: I miss it a bit [14:37] matbee: xerox, yeah, netflix in canada is lame [14:38] EyePulp has joined the channel [14:38] fly-away has joined the channel [14:38] Know1edge has joined the channel [14:39] Know1edge has left the channel [14:39] pifantastic_ has joined the channel [14:39] tuhoojabotti: I watched a movie on voddler [14:39] tuhoojabotti: successfully :P [14:39] mscdex: canadian address: www.netflix.eh [14:40] tuhoojabotti: eh :D [14:40] xtianw has joined the channel [14:41] bnoordhuis: mscdex++ [14:41] v8bot_: bnoordhuis has given a beer to mscdex. mscdex now has 2 beers. [14:41] catb0t: mscdex now has 2 beers [14:43] tuhoojabotti: v8bot_: Why don't you get rid of that stupid underscore in your nick? [14:43] vipaca has joined the channel [14:43] JJMalina has joined the channel [14:44] ceej has joined the channel [14:44] xicubed has joined the channel [14:45] jakehow has joined the channel [14:46] Wizek has joined the channel [14:47] eee_c has joined the channel [14:47] Tidwell has joined the channel [14:48] bnoordhuis: tuhoojabotti: that underscore is consistent with google's code style [14:48] tuhoojabotti: bnoordhuis: I know. [14:49] jacobolus has joined the channel [14:49] tuhoojabotti: But this ain't no code, this is IRC. :E [14:49] caiges has joined the channel [14:50] astrax has joined the channel [14:50] BillyBreen has joined the channel [14:50] pjacobs has joined the channel [14:50] Evanlec has joined the channel [14:51] Wizek has joined the channel [14:52] dgathright has joined the channel [14:53] astrax: hi, is there some limitation with dgram module in the pre-compiled windows build v0.5.1, I get an error when trying to require that? [14:53] baught has joined the channel [14:53] tjholowaychuk has joined the channel [14:54] bnoordhuis: astrax: yes, only tcp works right now [14:54] astrax: bnoordhuis. ok, thanks! [14:55] mikl has joined the channel [14:55] mikl has joined the channel [14:55] objectiveous has joined the channel [14:56] mobius_: hey there, could one use async.js to emulate and endless loop? [14:56] mehtryx has joined the channel [14:57] mnaser: why would you need to do that? [14:57] mobius_: i am trying to implement an algorithm [14:57] mobius_: that needs to be in an endless loop and break on match. [14:58] __tosh has joined the channel [14:59] pickels has joined the channel [14:59] sylvinus has joined the channel [14:59] Nexxy has joined the channel [14:59] Nexxy has joined the channel [15:00] mobius_: noone? [15:01] devuo has joined the channel [15:01] chapel: mobius_: you can break out of loops [15:01] chapel: why endless? [15:01] kevwil has joined the channel [15:02] clifton has joined the channel [15:02] mobius_: chapel: cause i cannot predict in the for/while argument when to finish. I need to finished when the code in the loop says I should finish [15:02] geetarista has joined the channel [15:03] chapel: well the best way to do that is with a recursive call [15:03] sethetter has joined the channel [15:03] chapel: ie, if you need the loop to continue, call the function, otherwise don't and it will continue on [15:03] mobius_: hm [15:03] mobius_: didn't though of that [15:03] chapel: the benefit of using it that way, you can still keep going through the rest of the program [15:03] confoocious has joined the channel [15:03] confoocious has joined the channel [15:04] mobius_: let me try crafting something up [15:04] mobius_: thanks chapel [15:04] chapel: http://www.c-point.com/javascript_tutorial/recursion.htm [15:06] hybsch has joined the channel [15:07] shapeshe1 has joined the channel [15:07] jakehow has joined the channel [15:09] eresair has joined the channel [15:09] slifty has joined the channel [15:09] gazumps has joined the channel [15:11] Anton_ has joined the channel [15:11] geetarista has joined the channel [15:11] bradleymeck has joined the channel [15:11] CIA-94: node: 03koichik 07v0.4 * rd32971a 10/ (doc/api/crypto.markdown lib/crypto.js): [15:11] CIA-94: node: Doc improvements and change argument name. [15:11] CIA-94: node: Fixes #1318. - https://github.com/joyent/node/commit/d32971a8cbc0ac6ab7a044e25ff400587bc1294f [15:11] CrisO has joined the channel [15:15] wookiehangover has joined the channel [15:16] tar_ has joined the channel [15:17] zanes has joined the channel [15:17] samBiotic has joined the channel [15:18] spasquali has joined the channel [15:18] eresair has joined the channel [15:19] tyrone has joined the channel [15:19] nibblebot has joined the channel [15:20] sivy has joined the channel [15:22] tmcw has joined the channel [15:22] blueadept: anyone here using coffeescript on a regular basis? [15:22] objectiveous has left the channel [15:23] dreamdust has joined the channel [15:23] tyrone: hello, I am having trouble installing node.js -- can any one please provide a good resource on how to install on ubuntu 10.04 [15:24] blueadept: what's the issue? [15:24] zemanel has joined the channel [15:25] blueadept: should be pretty straight forward, ./configure; make; make install [15:25] isaacs has joined the channel [15:25] blueadept: though i'm using ubuntu 10.10 [15:25] tahu has joined the channel [15:25] bshumate has joined the channel [15:25] bshumate has joined the channel [15:26] tyrone: I am following this guide: https://github.com/joyent/node/wiki/Installation [15:27] bnoordhuis: tyrone: what exactly is the problem? [15:27] spasquali has left the channel [15:28] llrcombs has joined the channel [15:28] Aikar: tyrone: sudo apt-get install build-essential libssl-dev && ./configure && make && sudo make install [15:30] tyrone: how can i confirm that node.js has been successfully installeD? [15:30] hippich has joined the channel [15:30] jetienne: tyrone: node -v [15:30] tyrone: i am showing: v0.5.3-pre [15:30] jetienne: tyrone: i got .deb for 10.10 and 11.04 [15:30] addisonj has joined the channel [15:31] jetienne: tyrone: so you got the unstable version installed [15:31] tyrone: is there a way to overwrite that with a stable version? [15:31] jetienne: tyrone: uninstall this one via "make uninstall" [15:32] jetienne: tyrone: and do 'git checkout v0.4.9' in the source tree, then reinstalll [15:32] synkro has joined the channel [15:33] kevwil has joined the channel [15:33] xtianw: 0.4.10 is the latest stable [15:33] nerdfiles has joined the channel [15:34] markmarkoh has joined the channel [15:34] Tidwell: I've got an API wrapper I've been working on, and originally I was throwing errors when invalid params were passed to some of the API methods. I've switched that to pass an error argument to the callback, but in the cases of the constructor for the module, I'm still throwing an error if something like an invalid API key is passed in - does this make sense, or is there a better way to handle that? [15:35] chrisdickinson: blueadept: I've been using coffeescript for a bit now [15:35] tj has joined the channel [15:36] samBiotic has joined the channel [15:37] kevwil_ has joined the channel [15:38] tjholowaychuk has joined the channel [15:39] jzacsh has joined the channel [15:39] odie5533 has joined the channel [15:39] jtsnow has joined the channel [15:39] voodootikigod has joined the channel [15:40] odie5533: When I use npm to install something, where does it install? [15:41] xtianw: In the current folder [15:41] xtianw: Unless you -g [15:41] adelgado has left the channel [15:41] odie5533: so the installed npm are only usable for nodejs projects in the same folder? [15:41] xtianw: Which is for executables [15:42] xtianw: Yeah modules are installed locally for each project [15:42] robhawkes has joined the channel [15:42] markmarkoh: should npm install the dependencies automatically? [15:42] xtianw: Yes [15:42] wookiehangover has joined the channel [15:42] isaacs: odie5533: npm help folders [15:42] isaacs: very informative ^ [15:43] markmarkoh: what does it mean when I "npm install [package]" and it downloads the folder, but just prints out the dependency to the terminal and quit [15:43] Corren has joined the channel [15:45] xtianw: Nothing in node_modules? [15:45] markmarkoh: just the folder of the module i specified [15:45] markmarkoh: not any of the depends. [15:45] xtianw: But inside that folder [15:45] jetienne: tyrone: git checkout v0.4.10 will download the 0.4.10 source [15:45] nibblebot: how do folks handle dependent libraries that need to be compiled during when deploying? [15:45] tjholowaychuk has joined the channel [15:45] jetienne: tyrone: so when you do "make install" it will insta&ll the 0.4.10 [15:46] markmarkoh: ah, I'm seeing it in there. with npm 0.x the verbiage was really descriptive [15:46] jstroem has joined the channel [15:46] bradleymeck: nibblebot, scripts property of package.json [15:47] amerine has joined the channel [15:47] slaskis_: tjholowaychuk: have you ever tested using 'n' on no.de? [15:47] mike5w3c has joined the channel [15:47] tjholowaychuk: slaskis_ nope [15:48] slaskis_: tjholowaychuk: ah, ok. because it doesn't seem to care about me setting the PREFIX or N_PREFIX [15:48] nerdfiles1 has joined the channel [15:49] figital has joined the channel [15:49] fangel has joined the channel [15:49] stephank has joined the channel [15:49] slaskis_: i get messages like: /home/node/local/bin/n[112]: local: not found [No such file or directory] [15:50] saschagehlich: tjholowaychuk: what was the syntax for unescaped string interpolation? [15:50] slaskis_: if i call: PREFIX=/home/node/local/nodejs N_PREFIX=/home/node/local/n n [15:50] saschagehlich: eeehm in jade [15:50] caiges has joined the channel [15:50] exa: how can i check if a file contains only ascii chars to prevent reading pictures, executables etc. ? :( [15:51] colinclark has joined the channel [15:51] kosei has joined the channel [15:51] odie5533: xtianw: so what is the point of nave or nvm or nodeenv? [15:52] Poetro has joined the channel [15:52] fcambus has joined the channel [15:52] bzinger_ has joined the channel [15:53] saschagehlich: tjholowaychuk: got it, nvm [15:53] chjj: exa: why? [15:53] humanerror has joined the channel [15:53] eee_c has joined the channel [15:53] caolanm has joined the channel [15:53] joshthecoder has joined the channel [15:53] dtan has joined the channel [15:53] xtianw: odie5533: If you have a project you developed using an older version of node and want to run it alongside a newer version [15:54] odie5533: ah [15:54] blueadept: chrisdickinson: so how you like it? hows the debugging? [15:54] xtianw: Or if you want to mess with an unstable branch [15:54] Spion_ has joined the channel [15:54] xtianw: i.e. 0.5.x [15:54] chrisdickinson: blueadept: i like it a lot, personally. [15:54] exa: chjj: i'm using a form to upload files, if this file contains text, i want to display it :) [15:55] chrisdickinson: it really speeds up development. the hardest problems to debug usually sprung from not really knowing coffeescript front-to-back when i started. [15:55] chjj: exa: thers a few ways you could do it, the slowest most expensive way would be to read every byte until you hit a non-ascii one, the fastest way would be to check file extensions, and another way would be to read the first few bytes to check for a png or jpeg header or something, sniff the content type out [15:55] blueadept: chrisdikson: interesting [15:56] chrisdickinson: blueadept: it's a relatively big project, an orm -- though now i'm switching from "write the API" to "thoroughly test and fix bugs" [15:56] jerrysv has joined the channel [15:56] chjj: i wonder if somebody has written a content type sniffing module [15:56] chjj: maybe [15:56] chrisdickinson: coffeescript really speeds up the first half of that equation, and the second half... well, at worst it has no net loss over what i'd be doing if i were writing and debugging using JS. [15:57] chrisdickinson: really, the hardest part is that some of the libraries i'm depending on have bugs that didn't show up until i started testing in-depth. [15:57] chrisdickinson: (which is really unrelated to coffeescript) [15:57] jetienne: chrisdickinson: +1 on dependancies bug [15:58] edude03 has joined the channel [15:58] davidsklar has joined the channel [15:58] chrisdickinson: biggest gripe is that some operators are shared between cs and js but do different things -- the `in` operator acts like python's in CS, while in JS it's a key check. [15:58] tjholowaychuk has joined the channel [15:58] jetienne: even if i dont share your opinion on cs [16:00] chrisdickinson: jetienne: yeah, finding bugs in other libraries is a big pain, doubly so with the callback-passing style. [16:00] sandropadin has left the channel [16:00] mapleman has joined the channel [16:00] msilverman2 has joined the channel [16:00] chrisdickinson: there's nothing more lovely than watching your test suite intermittently hang because some 3rd party library forgets to call your callback. [16:00] jetienne: chrisdickinson: i advocate for a node-libs project in order to limit that a LOT [16:01] chrisdickinson: jetienne: what form would that take? [16:01] jetienne: node-libs would be official libs, extensive testing, very well documented [16:01] jetienne: all other server langauges got it. python/ruby/perl/php etc... [16:02] chjj: were not all the other server languages [16:02] chjj: which is a good thing [16:02] chrisdickinson: something like http://pypants.org/? or http://djangopackages.com/? [16:02] chjj: saying we need to be more like php and ruby isnt really an argument [16:02] jetienne: chrisdickinson: no, more like python library, ruby library, php library [16:02] chrisdickinson: (i'm +1 on the second idea, i'd love a "community rated npm package" site) [16:02] Swizec has joined the channel [16:02] jetienne: chjj: their lib and doc are WAY better than ours [16:02] tjholowaychuk: we dont really need a "stdlib" [16:03] tjholowaychuk: like that at least, node isn't a language [16:03] cccaldas has joined the channel [16:03] jetienne: i need libraries, tested, maintained and documented [16:03] tjholowaychuk: sure [16:03] chjj: those exist last time i checked [16:03] tjholowaychuk: that's different than shoving tons of libs into one repo [16:03] chrisdickinson: yeah, it's less an issue of having a stdlib, and more an issue of setting up something that enables the community to self-police [16:04] jetienne: tjholowaychuk: clearly maybe i wasnt clear explaining it [16:04] tjholowaychuk: i just kinda glanced [16:04] tjholowaychuk: i agree though, some kind of rating would be nice [16:04] markmarkoh has joined the channel [16:05] jetienne: some way to know "how safe it is to depends on this lib" [16:05] jetienne: will my code go wrong tomorrow ? [16:05] dherman has joined the channel [16:05] chapel: maybe someone can come up with a spec, that libraries have to meet to get a kind of certification [16:05] jetienne: no certification, just code + doc [16:05] Cromulent has joined the channel [16:05] chapel: well, I meant that loosely [16:06] jetienne: i like the "show me the code" principle :) [16:06] sethetter has joined the channel [16:06] chapel: ? [16:06] chrisdickinson: chapel: i'd settle for being able to describe similar packages in terms of feature grids, with [16:06] alexgordon has joined the channel [16:06] svenlito has joined the channel [16:06] chrisdickinson: * with "I'm using this repo!" maybe authenticated via the npm registry. [16:06] chapel: someone could easily create a site like that [16:06] chrisdickinson: definitely. [16:07] chapel: Im sure it would be popular [16:07] jetienne: here is a good project :) [16:07] chrisdickinson: also, maybe sort of an "automatic guessed score" based on running "npm test" against the library with code coverage + presence / absence of docs dir. [16:07] jetienne: linked with github authentication to avoid duplication [16:07] sambasiva has joined the channel [16:07] isaacs: chrisdickinson: that is all planned, but someone has to build it [16:07] sonnym has joined the channel [16:08] jetienne: chrisdickinson: to provide hints on how to improve library doc or other would be nice [16:08] chapel: jetienne: yeah, definitely github authentication, and links back to github [16:08] sambasiva: Hi, how can we dump the outgoing message of https? [16:08] jetienne: sambasiva: ? same as in http [16:08] tjholowaychuk: chrisdickinson docs dont always live in the repo though [16:08] chrisdickinson: isaacs: would it be better as a part of npmjs.org instead of a standalone site? or vice versa. [16:09] isaacs: tjholowaychuk: fine, docs outside the repo = lower score [16:09] tjholowaychuk: that's kinda lame [16:09] isaacs: tjholowaychuk: it's better for docs to be with the cod [16:09] isaacs: *code [16:09] chjj: yeah it might not be good to create a schism between npm and some other site [16:09] isaacs: preferrably in a folder called "doc" or "docs" [16:09] tjholowaychuk: that's all opinions though [16:09] isaacs: tjholowaychuk: it's patterns. [16:09] tjholowaychuk: IMO it's better to have docs IN the code [16:09] tjholowaychuk: but node doesn't etc [16:09] chapel: chjj: problem is someone has to build it [16:09] jetienne: this is why i dont want spec :) [16:09] chrisdickinson: tjholowaychuk: in that case, providing a "build docs" command works. [16:09] jetienne: people will argue for years on details. i prefere to see running code [16:10] dexter_e has joined the channel [16:10] chapel: I do agree that its more important that the code works, than where your docs are [16:10] tjholowaychuk: yeah you can have an awesome site [16:10] tjholowaychuk: but get a low score [16:10] sambasiva: Hi all, how can we dump the outgoing http/https request including header/body? [16:10] tjholowaychuk: from not having it in the repo [16:10] chrisdickinson: there's also the case of people keeping the docs with the repo in the form of a detached branch. [16:10] tjholowaychuk: cluttering your source [16:10] chapel: the fact you have docs is a + in my book [16:10] chapel: as long as you can find them [16:11] dgathright has joined the channel [16:12] bzinger has joined the channel [16:12] tyrone: I am getting permission denied warnings when running, 'sudo make install' as my final command to install node.js [16:12] isaacs: tjholowaychuk: the score is not a measure of "how objectively good is this package". it's a measure of "is this package probably good, based on various heuristics" [16:12] igl has joined the channel [16:12] tjholowaychuk: isaacs sure [16:12] tjholowaychuk: it just doesn't make a whole ton of sense to me [16:12] xerox: is there in javascript a \w for regexp more unicode-friendly? [16:12] isaacs: all things being equal, i'd bet on the package with the "doc" folder [16:12] tjholowaychuk: it's still super opinionated [16:13] tjholowaychuk: i'd bet on the one with inline docs [16:13] isaacs: it's not opinionated. it's bayesian. [16:13] chrisdickinson: i like the fact that it's opinionated. [16:13] seivan has joined the channel [16:13] jetienne: 'provide the tool, not the policy' [16:13] tjholowaychuk: one could argue node is sloppy [16:13] _bat has joined the channel [16:13] isaacs: tjholowaychuk: packages by tj have inline docs. other packages don't. some 50-60% of packages have a "doc" folder. [16:13] jetienne: i could :) [16:13] chrisdickinson: it shouldn't be hard to find docs -- and if we adjust the heuristics to favor libraries that put it in one well known place, i think everybody wins. [16:13] kjeldahl has joined the channel [16:13] chjj: xerox: you could do something like, [\w\u00ff-\uffff] [16:13] isaacs: tjholowaychuk: doc folders are easier to detect and validate. [16:14] chjj: not pretty [16:14] chjj: but it should work [16:14] isaacs: (either it exists, or it doesn't) [16:14] xerox: chjj: cool I don't care about prettiness :D [16:14] tjholowaychuk: easy enough to sniff the source and see if it's documented [16:14] dherman: if I do stream.on("drain", cb) will cb only receive the *next* drain event, or all subsequent drain events? [16:14] isaacs: tjholowaychuk: no, it's not as easy. [16:14] chrisdickinson: tjholowaychuk: that's difficult, though -- what distinguishes a comment intended for devs from a comment meant as documentation? [16:14] chapel: is there a docs field for package.json? [16:14] isaacs: tjholowaychuk: nor is it as worthwhile, since almost no one does it. [16:14] xerox: works like a charm chjj I owe you a beer [16:15] tjholowaychuk: chrisdickinson doesn't matter really, it shows intent [16:15] chapel: isaacs? [16:15] tjholowaychuk: doesn't matter if it's public docs [16:15] xerox: chjj: how did you find the exact range? [16:15] chjj: xerox: roger [16:15] chapel: if not, why not just allow them to enter a docs url [16:15] chapel: and if they have it, its a + [16:15] chrisdickinson: tjholowaychuk: good documentation should address the general problem that's being solved, then the specifics bit by by, possibly with a walkthrough preceeding. [16:15] chapel: otherwise doesn't count [16:15] isaacs: tjholowaychuk: we could also add something that sniffs for code comments, or for the length of module files, or any other heuristic. [16:15] stehoyer has joined the channel [16:15] chjj: xerox: oh thats not an exact range, it could be revised probably, it just grabs all non-ascii bytes a long with the word characters [16:15] isaacs: tjholowaychuk: but "does it have a doc folder, does it have a test command, does the test pass" is probably the first set of things i'd do. [16:15] stehoyer: hi [16:15] chapel: then cases like tjholowaychuk's where the docs are not apart of the repo, still are considered [16:15] tyrone: Getting this error on 'sudo make install' -- any pointers -- make: stat: makefile: Permission denied [16:16] isaacs: chapel: ? [16:16] chapel: ad a docs field to package.json [16:16] chjj: xerox: i think i had a better one written down somewhere, let me check [16:16] chapel: add [16:16] tjholowaychuk: chapel yeah something like that [16:16] xerox: chjj: so, say, symbols like japanese full-width exclamation mark gets matched, whereas ! doesn't by \w [16:16] tjholowaychuk: a lot of mine have ./docs [16:16] tjholowaychuk: with markdown [16:16] xerox: chjj: ok thanks much [16:16] chrisdickinson: "having documentation" does not equal "having good documentation", but since that's qualitative, i'd rather gear things towards "are there docs? are they easy to find?" [16:16] tjholowaychuk: but not the built docs [16:16] tjholowaychuk: i'd prefer to remove it all together [16:16] sambasiva: Hi all, how can we dump the outgoing http/https request including header/body? [16:16] chapel: then, it makes it easy to also link to docs [16:16] tjholowaychuk: seeing a "build docs" commit is really lame [16:17] chrisdickinson: tjholowaychuk: it's actually kind of a nice prereq to contributions to a big project -- all new features must have tests + documentation. [16:17] chapel: I don't think it should be a prereq to be on npm [16:18] chrisdickinson: chapel: oh no, not a prereq [16:18] TooTallNate has joined the channel [16:18] chapel: then people will cheat and put bare minimum stuff, and then its just worthless [16:18] tjholowaychuk: it's just kinda overkill, you should review a lib before using it [16:18] tjholowaychuk: regardless if it's auto-scored [16:18] sylvinus has joined the channel [16:18] chrisdickinson: and this is sort of separate -- sort of a "i'm looking for a library that does X. N libraries do X." [16:18] isaacs: chapel: { "directories": { "doc" : "./my-documentation" }} [16:18] isaacs: i'd be ok with specifying a "build the docs" command, too [16:18] chapel: isaacs: well the key here is that not all docs are a directory [16:19] igl: npm should have a guide [16:19] chjj: xerox: yeah, i dunno, i guess i lost it, it would probably be better to start where ascii ends and utf begins exactly [16:19] chrisdickinson: "library A has these features, there are 6 devs using it, and has easy-to-find documentation (here's a link) and it has these features [16:19] chjj: xerox: http://en.wikipedia.org/wiki/UTF-8 [16:19] isaacs: tjholowaychuk: then you could just say something like "scripts": { "doc" : "dox lib/*.js" } or somethign [16:19] igl: and if a module follows it really well, give it a star [16:19] igl: call it AAA module [16:19] tjholowaychuk: chapel yeah exactly [16:19] tjholowaychuk: could be a wiki wtc [16:19] tjholowaychuk: etc* [16:19] isaacs: igl: it does [16:19] mgt__ has joined the channel [16:19] isaacs: igl: npm help [16:19] chjj: xerox: so something like [\w\u00c2-\uffff] would probably be better [16:19] isaacs: tjholowaychuk: there's a value in "rewarding" the patterns that most node programs use, even if it's not 100% complete. [16:19] jetienne: ok lets doc an URL for the doc. [16:19] chjj: xerox: because valid utf characters "begin" around that range [16:19] isaacs: tjholowaychuk: peple will LOOK for a doc folder, and expect markdown in it. [16:20] isaacs: because almost all node programs do it that way. [16:20] tjholowaychuk: isaacs: yeah i dont 100% disagree [16:20] xerox: chjj: pm [16:20] tjholowaychuk: i dont think it should really be part of a score but a nice flag just saying if they "have" docs or not [16:20] jetienne: let push the tool, not the policy [16:20] chrisdickinson: tjholowaychuk: i wouldn't be opposed to that. [16:20] isaacs: tjholowaychuk: if you want to do docs differently, that's fine, but the score will then suffer for your deviation from the norm. [16:20] jetienne: else we enter in "who will control the policy" [16:20] isaacs: tjholowaychuk: but it's a heuristic. [16:20] isaacs: not a value judgement :) [16:20] chapel: isaacs: I think it is an easy fix, docs: { directory: './docs' } or docs: { url: 'http://blah.com' } [16:20] tjholowaychuk: that's lame [16:20] tjholowaychuk: haha [16:20] eastender has joined the channel [16:20] tjholowaychuk: just because it's common doens't mean it's right [16:20] jetienne: isaacs: ok so *I* do the heuristic ? no ? who does it ? [16:21] isaacs: jetienne: it's an emergent property of all our behavior [16:21] jetienne: isaacs: who write it ? [16:21] dannycoates has joined the channel [16:21] jetienne: isaacs: this is a serious question [16:21] isaacs: jetienne: there is no single authority [16:21] chapel: who would evaluate it [16:21] jetienne: isaacs: WHO [16:21] kofno has joined the channel [16:21] isaacs: jetienne: see above. [16:21] chrisdickinson: i'd rather sort by "number of devs who are using this library", then either a calculated heuristic (per isaacs) or a simple boolean ("has docs/"). [16:21] jetienne: isaacs: and you did answer [16:21] isaacs: jetienne: WHO = "all of us" [16:21] chapel: what if you look at all the available node projects, and find that docs folders aren't the norm? [16:21] isaacs: jetienne: i have answered twice now. [16:21] jetienne: isaacs: ok so if i dont agree the policy will never appear ? [16:22] jetienne: isaacs: what im trying to say if such policy cant be written [16:22] chrisdickinson: so docs wouldn't be the deciding factor, but they'd be a contributing factor. [16:22] jetienne: isaacs: it can only be dictated [16:22] isaacs: the question is "which of these three libs for XYZ are better?" and that's a guess, not a mandate [16:22] isaacs: better for who? for what? [16:22] isaacs: on what system? [16:22] jetienne: isaacs: and my question is who gonna be the dictator of this policy [16:22] smolyn has joined the channel [16:22] isaacs: what question are you really answering? [16:22] isaacs: *asking [16:22] chapel: if you are going to have something like that, I personally think it should be separate from npm [16:22] isaacs: the goal should be to make the system expose information in a way that is likely to be correct, and is also easy to consume. [16:23] jetienne: i prefer to push the tool not the policy [16:23] jetienne: policy implies dictator [16:23] isaacs: it's not simple. there is no simple answer. no one is goin gto be the king of which packages are good or bad. this MUST be done algorithmically, and depend on community behavior. [16:23] unlink has joined the channel [16:23] unlink has joined the channel [16:23] isaacs: jetienne: as far as what gets published on npmjs.org or goes into the npm package, i'm the dictator. [16:23] tjholowaychuk: community != right [16:23] sylvinus has joined the channel [16:23] tjholowaychuk: community == full of ruby ppl [16:23] isaacs: tjholowaychuk: no, but the community is the one asking. [16:23] jetienne: isaacs: who will write it [16:23] isaacs: jetienne: are you volunteering? [16:24] isaacs: currently, no one :) [16:24] chapel: but the problem comes down to who controls the algorithm, they ultimately control what goes in [16:24] isaacs: or maybe me, eventually [16:24] isaacs: you're al talking like we're controlling something important here. [16:24] jetienne: isaacs: no im not volunteering for being dictator [16:24] isaacs: like there's nukes on the line. [16:24] chrisdickinson: isaacs: i'd love to take a stab at it, either as a part of npmjs.org or separate. [16:24] chapel: haha [16:24] jakehow has joined the channel [16:24] isaacs: have you seen how cpan does kwalitee? [16:24] isaacs: there's no single dictator of that. [16:24] jetienne: isaacs: but we can do such a tool without imposing stuff on the code. being documented isnt policy, it is widely admited [16:24] brianm has joined the channel [16:24] brianm has joined the channel [16:24] isaacs: it's based on dependencies, test coverage, the results of cpants, documentation existence, and user input. [16:24] jetienne: isaacs: being tested is the same [16:25] isaacs: jetienne: nothing wil stop you from using a package with a low score. [16:25] jetienne: isaacs: "what other are thinking abou tthis lib" [16:25] mAritz has joined the channel [16:25] jetienne: isaacs: ? who will be dictator [16:25] tjholowaychuk: use our tools or you will have bad score! [16:25] jetienne: isaacs: if you plan for score you need a dictator [16:26] chrisdickinson: jetienne: an example of what I'd like to see: http://djangopackages.com/grids/g/caching/ [16:26] benmonty has joined the channel [16:26] jetienne: it is possible to say "im using this module" for example [16:26] chrisdickinson: jetienne: i'd like it to be, yes. [16:26] jetienne: no policy or dictator to have for that [16:26] fostah has joined the channel [16:27] rurufufuss: is installing npm from github the recommended way? [16:27] chrisdickinson: jetienne: having a "guessed quality" is not a dictatorship :\ [16:27] guidocalvano_ has joined the channel [16:27] jetienne: chrisdickinson: who is doing the guess :) [16:27] chrisdickinson: jetienne: heuristics. [16:27] geetarista has joined the channel [16:27] jetienne: chrisdickinson: "im ok IFF im the one guessing" :) [16:27] jerrysv: isaacs: how about exposing the readme on search.npmjs.org ? [16:27] tyrone: I am now showing, v0.4.10, when i node -v [16:27] isaacs: jetienne: ratings can be somewhat based on vote. [16:28] Nican has joined the channel [16:28] isaacs: jetienne: if there's a meaningful vote, it's not a dictatorship, even if a dictator has the ability to take away the democracy. [16:28] chrisdickinson: and it wouldn't be the only data available -- it's just one more piece of information that might help one make an informed decision about which library to use. [16:28] isaacs: it still IS a democracy. [16:28] isaacs: then it's more like an officiator [16:28] tjholowaychuk: i think the rating / comment system would be much more valuable [16:28] Aikar: put 2 modules in a folder, play russian roulette (write a script to randomly delete 1), the survivor is the better of the modules [16:28] chapel: I think for things like documents, since there are various ways to handle it, exposing them through a docs field in package.json is probably the easiest way to handle it [16:28] tjholowaychuk: "couldn't get the tests to run" "it's awesome" blah blah [16:28] towski has joined the channel [16:28] jetienne: isaacs: so no policy. only vote from actual user [16:28] tyrone: is this the appropriate command to install npm when using v0.4.10 : curl http://npmjs.org/install.sh | sh ? [16:29] jetienne: isaacs: nobody claiming "i am the one to know for all of you" [16:29] zanes has joined the channel [16:29] chrisdickinson: tjholowaychuk: i think rating + i'm using this, and the ability to compare similar modules based on features (as added by users of the library). [16:29] omni5cience has joined the channel [16:29] chapel: chrisdickinson: I second that [16:29] Tidwell: rurufufuss: http://npmjs.org/ shows the one-line install with curl piping to sh [16:29] tjholowaychuk: chrisdickinson yeah something like that [16:29] igl: nodetube.com :F rate comment subscribe [16:29] chapel: could also, have a working with x version of node [16:29] hebz0rl has joined the channel [16:29] mehtryx has left the channel [16:29] chapel: since a module might not be updated to a new release of node [16:29] isaacs: jetienne: policy + vote [16:29] chrisdickinson: I'd like to have a "guessed rating", but if it's too contentious it'd be better to get something that's at least useful out there. [16:29] tjholowaychuk: i think word of mouth + install counts shows a lot of that [16:29] isaacs: tyrone: yes [16:30] jetienne: isaacs: ok only if i am the one doing the policy :) [16:30] isaacs: jetienne: our dictator will be a robot :) [16:30] chapel: someone has to write the robot [16:30] jetienne: isaacs: ok so i write the robots :) [16:30] tyrone: should the installation of npm be done inside of the same node directory or does that not matter? [16:30] dherman: I, for one, welcome our new robot overlords [16:30] isaacs: jetienne: and the robot will be written to guess our utility function to the best of our ability to tell it [16:30] softdrink: what's everyone using for unit testing right now? [16:31] brianm_ has joined the channel [16:31] chapel: dherman: http://vimeo.com/channels/181611 [16:31] Cromulent has joined the channel [16:31] jetienne: isaacs: as long as *I* am the dictator, im ok to have a dictator :) [16:31] isaacs: jetienne: run your own registry, then [16:31] jetienne: ok i stop [16:31] isaacs: and fork npm :) [16:31] jetienne: isaacs: hehe :) [16:31] isaacs: seriously, you CAN do this. people do. [16:31] brianm has joined the channel [16:31] xicubed has joined the channel [16:31] isaacs: there are several npm registries. [16:31] jetienne: i do github it works ok [16:31] isaacs: i own npmjs.org, so i run that one [16:32] isaacs: it's a lot of little dictatorships, and free travel between them. [16:32] isaacs: peaceful anarchy :) [16:32] andersonfreitas has joined the channel [16:32] dherman: chapel: no time to watch, but from the title I'm guessing it's NSFW anyway... [16:32] chapel: naw [16:32] stehoyer: hi all, any mongoose-experts out there? i wrote a validator for a slug field which evaluates uniqueness of the field. For this i request the db, if there is an entry with the same slug. That fails if i update an object but did not change the slug, the validator fails but shouldn't. To fix this, i need the actual object within the validator to filter by id of the object so i not get the object itself if i search for 'another' object wit [16:32] chapel: well, it has some violence, but barely [16:32] chapel: its not porn [16:32] dherman: btw, didn't get a reply earlier: if I do stream.on("drain", cb) will cb only receive the *next* drain event, or all subsequent drain events? [16:33] isaacs: dherman: all subsequent [16:33] isaacs: dherman: try stream.once("drain", cb) [16:33] dherman: ah, ok [16:33] dherman: thx [16:33] isaacs: dherman: that'll be just called once [16:33] isaacs: np [16:33] materialdesigner has joined the channel [16:33] chrisdickinson: ACTION types up a summation [16:34] dherman: hee hee, cute API design -- just add "ce" [16:34] rurufufuss: Tidwell: thanks [16:34] malkomalko has joined the channel [16:34] zeade has joined the channel [16:34] markdaws has joined the channel [16:35] perezd has joined the channel [16:35] stehoyer: does anyone understood this? :) [16:35] saurabhverma has joined the channel [16:35] dherman: isaacs: is there not some simple stream.puts(str, encoding, cb)? [16:35] stehoyer: sorry i mean: did anyone understand this? [16:36] dherman: I mean, using write followed by once("drain", cb) is not bad, but feels like I might not be doing the idiomatic thing [16:36] tjholowaychuk: isaacs if you did the doc thing would a url be fine in package.json? I'm getting rid of dox and building a server that will work in conjunction with github post-receive hooks to auto-build from source [16:36] tjholowaychuk: getting tough to manage at the repo level [16:37] cjroebuck has joined the channel [16:38] chrisdickinson: tjholowaychuk: jetienne: isaacs: chapel: does this feature list look right? feel free to fork / comment / tell me I'm off in left field: https://gist.github.com/1104529 [16:38] malkomalko: anyone using the node-mongodb-native driver notice hanging open sockets to the db? [16:38] tjholowaychuk: chrisdickinson the only problem i see with ratings / comments [16:39] tjholowaychuk: is that they will become stale pretty quickly [16:39] tjholowaychuk: with how fast things move in node-land [16:39] chrisdickinson: tjholowaychuk: good catch. maybe ratings are a sparkline across versions? [16:39] chrisdickinson: sort of a "perceived quality based on votes over time"? [16:39] raidfive has joined the channel [16:39] tjholowaychuk: and like having / not having features, that will change all the time too [16:39] tjholowaychuk: or people might just be stupid and dont know those features exist etc [16:39] tjholowaychuk: or not read docs [16:39] Drake_ has joined the channel [16:39] tjholowaychuk: happens all the time [16:40] markmarkoh has joined the channel [16:40] jetienne: chrisdickinson: some are already in package.json [16:40] margle has joined the channel [16:40] akshatj_ has joined the channel [16:40] chrisdickinson: tjholowaychuk: true, but if a package owner takes an interest in the site he or she could easily take ten seconds and say "yes it has this feature / no it does not have this feature". [16:40] tjholowaychuk: people still wont read it [16:41] jetienne: chrisdickinson: "Ability to add "features" to a tag " this one is a normal tag, no need to add complexity [16:41] eastender has joined the channel [16:41] jetienne: chrisdickinson: ability to comment on a package. discuss may do that easily [16:41] chrisdickinson: jetienne: a trite example of tag/features: that comes in with "i want to see all routing libraries". "routing libraries" would be the tag. "supports regex" would be a feature for the tag. [16:42] jetienne: Ability to categorize/tag a package ("routing", "express middleware", etc) chrisdickinson this one is alrady in package.json [16:42] chrisdickinson: jetienne: cool -- then we pick things up based on the package.json tag. [16:42] Venom_X_ has joined the channel [16:42] jetienne: chrisdickinson: and i do apreciate the lack of policy :) [16:42] dshaw_ has joined the channel [16:42] chapel: I also think comments are a double edged sword [16:42] tjholowaychuk: yeah [16:42] jetienne: chrisdickinson: end of my feedback [16:42] jetienne: chapel: what do you mean [16:43] chapel: I think if there is a way to integrate issues or something, that might work [16:43] jacobolus has joined the channel [16:43] chrisdickinson: chapel: that wouldn't be too difficult using the github api. [16:43] chapel: well if it becomes popular, people will start to post issues there [16:43] jetienne: chapel: the point is ability for user to comment on a library or not. allowed or not [16:43] chapel: instead of using github [16:43] tjholowaychuk: chapel even then, popular projects will have lots of issues for features/bugs etc [16:43] tjholowaychuk: unpopular will have none [16:43] chrisdickinson: N issues outstanding / M issues closed [16:43] tjholowaychuk: so they will seem better [16:43] tjholowaychuk: haha [16:43] jetienne: chapel: i dont assume people are doing thing badly [16:43] nerdfiles1 has left the channel [16:44] chapel: I just think it could bring situations where module owners dont know about the site, users do and use it to complain, or report issues [16:44] chrisdickinson: tjholowaychuk: having a note that says "look to see that there are resolved issues. a large number of outstanding issues is a good indicator of community interest. having no solved issues is a sign that someone may be asleep at the wheel." [16:44] jetienne: tjholowaychuk: :) onthe other hand popular will get 1000+ users and 0 for unpopular :) [16:44] stehoyer has joined the channel [16:44] springmeyer has joined the channel [16:44] stehoyer1 has joined the channel [16:44] chapel: so then the module, even though it might be actively developed and supported, would look bad, because the owner doesn't know about the site [16:44] tjholowaychuk: i dont think we are really solving much of a problem with these things, we just need the community to not write 8 smtp modules using sendmail [16:45] tjholowaychuk: that are almost identical [16:45] chapel: heh [16:45] jetienne: chapel: it looks bad only if people are writing bad thing about it [16:45] chapel: jetienne: as tjholowaychuk said, people dont read docs before complaining [16:45] chrisdickinson: tjholowaychuk: but the problem is that there's... not really a good place to look to see that it exists -- and even less of a way to tell if the package is useful to them. [16:45] chapel: should know that being in here [16:45] sethetter has joined the channel [16:45] jetienne: chapel: if you assume people are stupid, you will get stupid users [16:45] dc has joined the channel [16:45] jetienne: chapel: fix what is fixable where it is fixable [16:46] tjholowaychuk: if we really wanted quality, we would review before allowing in npm [16:46] paulwe has joined the channel [16:46] fr0stbyte has joined the channel [16:46] tjholowaychuk: or a different class of npm [16:46] tjholowaychuk: but that's kinda lame too [16:46] chapel: yeah [16:46] chrisdickinson: tjholowaychuk: -1. [16:46] escii: but its their fault if they dont google around and cooperate with other projects [16:46] necrodearia has joined the channel [16:46] escii: how was it, together we are strong? [16:47] chrisdickinson: the problem is that so many projects are entirely undocumented or are based on old versions of node [16:47] tjholowaychuk: i just dont see the issue, look at the module list, review a few, pick what you want [16:47] tjholowaychuk: done [16:47] jerrysv: introducing the new Amazon NPM Store ... [16:47] jetienne: tjholowaychuk: how to review a few... how long to do so. how to estimate the level of bugs after deeper usages [16:47] chrisdickinson: tjholowaychuk: that almost always turns into a 30 minute to hour long vetting session. i'd like to see something speed the process. [16:48] jetienne: at least this is the issue i hit on a day to day basis [16:48] chrisdickinson: and "continue as things are" doesn't seem like a good solution to "there are too many duplicate projects" to me, at least. [16:48] escii: well yeah lot of outdated code out there, but what would you like to do against... if the projects was good, someone will fix it to work with never versions.. [16:48] chapel: chrisdickinson jetienne I think comments would be fine if there was a disclaimer it wasn't for issues, just for reviews [16:48] tjholowaychuk: doesn't really matter, it's an important step [16:48] tjholowaychuk: you shouldnt just blindly go using some lib anyway [16:48] tjholowaychuk: if i found one that didnt escape shell args [16:48] tjholowaychuk: and comment [16:48] tjholowaychuk: then they fix my comment would be stale [16:48] tjholowaychuk: i dont want to manage a list of npm comments [16:49] chrisdickinson: tjholowaychuk: that's fair. [16:49] jetienne: chapel: im all for being clear with what is presented. [16:49] jetienne: tjholowaychuk: in most langauge people does go blindly [16:49] chrisdickinson: so maybe nix the commenting? just go for per-version rating, plus an "i'm using this"? [16:49] matomesc has joined the channel [16:49] isaacs: i'm very <3 to see you all discussing this problem :) [16:49] jetienne: tjholowaychuk: nobody wonder if ruby lib is buggy because it is ssuper rare [16:49] tjholowaychuk: haha just dont use ruby's stdlib [16:50] tjholowaychuk: and you're golden [16:50] jetienne: isaacs: im doing it for almost 10month now :) [16:50] chrisdickinson: ACTION is updating that gist as we go [16:50] chapel: ACTION has thought about this problem for a while as well [16:50] escii: ACTION got in love with nodejs.. can't hold back.. sry [16:50] tjholowaychuk: jetienne that's the thing though, if you hang out with the community for a while you start to see which projects are mentioned lots [16:50] tjholowaychuk: and you just get the general feel for what people use [16:50] sethetter: isaacs: yes, this is a very educational trolling session for me. :) [16:50] andersonfreitas has joined the channel [16:51] jetienne: tjholowaychuk: yep but the timeline involved is terrible and is against new comers [16:51] tjholowaychuk: so [16:51] tjholowaychuk: they should be reviewing code like anyone else [16:51] jetienne: so good adoption is about welcoming new comers :) [16:51] chapel: I guess there is the dichotomy of supporting new comers, and getting them to follow good practices [16:52] jetienne: chrisdickinson: btw i would personally love a checkbox "work on browser too" [16:52] chapel: jetienne: browserify [16:52] chapel: :) [16:52] tjholowaychuk: a good example is express-csrf, I was recommending it to people because I had heard it was working fine, then I looked at the code and it has a huge race-condition [16:52] meandi2 has joined the channel [16:52] jetienne: chapel: good practices is a matter of policy, so dictatorship. so the question remains, who will it be [16:52] tjholowaychuk: sure if it had reviews or comments someone might seethat. then the guy fixes it, and all the npm comments / ratings [16:52] tjholowaychuk: are invalid [16:52] chapel: jetienne: ryah [16:52] chapel: :) [16:53] chrisdickinson: jetienne: cool, yeah [16:53] dnolen has joined the channel [16:53] isaacs: comments and ratings are also pretty full of unintended consequences, btw. [16:53] chrisdickinson: though i might put that under the "tag / feature" system -- only some libraries make sense as "cross compatible" libraries. [16:53] isaacs: qv python [16:53] jetienne: tjholowaychuk: i dont understand what you meanb [16:53] dnolen: is Handlebars.js pub'ed as npm module? [16:53] c_t has joined the channel [16:53] isaacs: i've been very hesitant to do that, for thatv very reason [16:53] chapel: isaacs: yes, as I mentioned before, not the least of which is trolling [16:53] tjholowaychuk: if it was per-version rating that might make a bit more sense [16:53] tjholowaychuk: but [16:53] tjholowaychuk: still [16:54] isaacs: chapel: even unintentional trolling. post a 1-star review, and then the bug gets fixed, and you never change it. [16:54] isaacs: or reviews that say "it doesn't work" [16:54] chrisdickinson: isaacs: opinion on displaying stats from github, like: "number of issues open / number of issues total" [16:54] jetienne: if you assume you user are stupid, you will get stupid users [16:54] jetienne: i dont like to think people using my work are stupid [16:54] chapel: isaacs: yeah, though that could be handled by rolling out older reviews as issues are fixed and new versions are introduced [16:54] guidocalvano has joined the channel [16:55] chapel: jetienne: its the internet, its inevitable, but I don't assume everyone is stupid, just that its gonna happen [16:55] matthewford has joined the channel [16:55] chrisdickinson: chapel: i like that -- the rolling out older reviews bit. [16:55] slajax has joined the channel [16:55] jetienne: chapel: ? well up to now, i dont think people using my work are stupid [16:55] AvianFlu has joined the channel [16:56] jetienne: chapel: and i plan to stay this way :) [16:56] chapel: anyone that uses my work is awesome in my book [16:56] chapel: but I only have one actual usable npm package :P [16:56] matbee has left the channel [16:56] rhaen has joined the channel [16:56] jetienne: chapel: :) [16:56] escii: lol [16:56] chrisdickinson: chapel: if we're authenticating using github, how would you feel about an optional "submit this issue to github issues" on github-hosted repositories? [16:57] jbpros has joined the channel [16:57] tjholowaychuk: i think a simple downloads count would help a lot [16:57] chrisdickinson: and, additionally, if it is associated with an issue, displaying the status of the issue above the comment? [16:57] rhaen: good evening [16:57] joshontheweb has joined the channel [16:57] tjholowaychuk: if you see 6 sendmail mods, and one has 2x the downloads [16:57] jameson has joined the channel [16:57] matthewford has left the channel [16:57] chapel: well, chrisdickinson I think pushing people to submit issues is more important [16:57] chapel: than integrating issues [16:58] jetienne: wait i got an example :) [16:58] chapel: maybe other users could report comments that aren't comments [16:58] guidocalvano has joined the channel [16:58] chrisdickinson: true [16:58] gxblast has left the channel [16:58] chrisdickinson: yeah, i like either of those as solution. [16:58] chrisdickinson: *as a. [16:58] jetienne: http://www.symfony-project.org/plugins/developer/jerome-etienne this is a old list of plugin i did on symfony (rails like but in php) [16:59] jetienne: which one are actually used ? :) [16:59] jetienne: 3-4 and the top used is a LOT more used than other with 57 users [17:00] jetienne: symfony pluging is the same issue we are currently trying to solve. they got only the "i use this lib" vote [17:00] chrisdickinson: slightly evil: would it be a good idea to add a settings page for package owners to enable / disable email notification? [17:00] chrisdickinson: (disabled by default, of course.) [17:00] jetienne: http://www.symfony-project.org/plugins/sfDateTime2Plugin and this is actually the most usefull and maintained (at the time) so a good metric [17:00] jetienne: only my personnal experience on the matter [17:00] tomgallacher has joined the channel [17:01] jetienne: chrisdickinson: point on the issues. no need to overengineer it [17:01] jetienne: chrisdickinson: github issue will email you if you wish it [17:01] Throlkim has joined the channel [17:01] chrisdickinson: jetienne: true. [17:01] chapel: yeah [17:01] japj has joined the channel [17:01] chapel: again I think its a matter of education, and trust [17:01] chapel: you could try and deal with every edge case before it happens [17:02] escii: r you guys from the core dev team of node? [17:02] chapel: but ultimately, there are more than you could ever conceive [17:02] chapel: escii: no [17:02] chapel: Im not at least [17:02] jetienne: chrisdickinson: you got coding skill + availability ? [17:02] chrisdickinson: i'm certainly thinking of taking a stab at this over the next week or so [17:02] jetienne: escii: almost nobody is here [17:02] kofno has joined the channel [17:02] jetienne: chrisdickinson: excelent +1 [17:04] mnaser: tjholowaychuk: take back my express.js seems big claims. it's fast, and fast to get things up with. [17:04] mnaser: thanks! [17:04] chrisdickinson: and one last time, i've got sort of a janky feature list of the above discussion at https://gist.github.com/1104529. if i do get time to work on it, i'll be working from this list, so feel free to fork/comment [17:04] tjholowaychuk: mnaser: told ya! :p [17:04] tbassetto has joined the channel [17:04] mnaser: express-resource is even more steroids to add to it [17:05] dnolen has left the channel [17:05] stehoyer has joined the channel [17:05] Stythys has joined the channel [17:05] dipser has joined the channel [17:06] mnaser: one small iffy, if the URL has a dot in it, it breaks and think it's the format (maybe have a list of formats that it can pick of, if it doesn't, then go to default) [17:07] japj: bnoordhuis: ping [17:07] tjholowaychuk: mnaser with express-resource? [17:07] donald_cook has joined the channel [17:07] tjholowaychuk: mnaser yeah, "format" extension things suck [17:07] tjholowaychuk: Accept is the way to go [17:08] tjholowaychuk: I dont think I finished that yet, not sure [17:08] mnaser: yeah, so I have "format: 'json'" so it's all json, but i have a request where it's like "get ..../targets/iqn.1234.iscsi..." [17:08] mnaser: instead of format checking if it's .json or .xml from a list of choices, it tries .1234.iscsi.. and fallsback to default [17:08] mnaser: even if default format is json [17:08] mnaser: (if that makes sense) [17:08] tjholowaychuk: yeah you would have to whitelist and attach it back on after the regexp [17:09] tjholowaychuk: i wouldnt mind removing the format thing all together to be honest [17:09] eee_c has joined the channel [17:09] mnaser: yeah.. but i guess a bunch of people depend on it [17:09] nibblebo_ has joined the channel [17:10] tjholowaychuk: it's just more convenient than Accept [17:10] mnaser: if it had a small check to include json/xml/html and then fallback, it'd be better than using whatever is after the dot for the format [17:10] markmarkoh has joined the channel [17:10] mnaser: and if someone wants to do ".myweirdformat" then they'd have to somehow do a change, i gues [17:11] `3rdEden has joined the channel [17:13] bzinger_ has joined the channel [17:13] sweetd has joined the channel [17:14] GlynnR has joined the channel [17:15] thalll has joined the channel [17:16] tomtomaso has joined the channel [17:16] digitaltoad has joined the channel [17:18] booo has joined the channel [17:19] stehoyer has joined the channel [17:19] seivan has joined the channel [17:19] springmeyer_ has joined the channel [17:20] nadirvardar has joined the channel [17:20] gozala has joined the channel [17:20] jetienne: chrisdickinson: make it as close as github as possible. they already handle a lot. and most of us are using it [17:20] jetienne: chrisdickinson: suggestinos [17:20] chrisdickinson: jetienne: cool. I plan to lean on them wherever possible. [17:21] chapel: close to (as in using and not duplicating github) [17:22] chrisdickinson: chapel: yep. [17:22] CrabDude has joined the channel [17:23] mnaser_ has joined the channel [17:23] rhaen has joined the channel [17:24] versicolor has joined the channel [17:25] nibblebot has joined the channel [17:25] nerdfiles has joined the channel [17:26] GlynnR has joined the channel [17:27] nerdfiles1 has joined the channel [17:27] Marak has joined the channel [17:27] Marak: CrabDude: in #nodejitsu [17:27] nerdfiles2 has joined the channel [17:27] mnaser has joined the channel [17:27] ryanj has joined the channel [17:28] te-brian has joined the channel [17:28] othiym23 has joined the channel [17:28] nerdfiles2 has left the channel [17:32] kaffesump has joined the channel [17:32] WrErase has joined the channel [17:32] CIA-94: libuv: 03Igor Zinkovsky 07master * r252da78 10/ (6 files in 4 dirs): uv_std_handle + uv_listen on stdin - https://github.com/joyent/libuv/commit/252da78830c1b6618161227b206e6079a2f4ddd8 [17:34] tjholowaychuk has joined the channel [17:37] thalll has joined the channel [17:38] cjm has joined the channel [17:40] luke` has joined the channel [17:40] markmarkoh has joined the channel [17:40] kaffesump: Hi, I followed this tutorial: http://www.jblotus.com/2011/06/09/building-your-first-node-js-app-%E2%80%93-part-3-view-controller-pattern-w-mustache/ and ended up getting an error "Cannot find module 'Mustache'", npm was installed without error and it seems like Mustache was too, anyone has any idea? [sry for noobish question] [17:40] _skmp has joined the channel [17:41] luke`_ has joined the channel [17:42] harthur has joined the channel [17:42] admc has joined the channel [17:43] nerdfiles has joined the channel [17:43] context: kaffesump: try require('mustache') [17:44] nerdfiles has left the channel [17:46] idefine has joined the channel [17:47] tar_ has joined the channel [17:47] madzak has joined the channel [17:47] herbySk has joined the channel [17:48] apardo has joined the channel [17:48] dguttman has joined the channel [17:49] whitequark has joined the channel [17:50] kaffesump: context: It's already in the code, I tried to put it into my server.js, first line (the file I run to start the webserver) and I get the same error, that it cannot find it, is it possible I have installed into an incorrect place? [17:50] cloudhead has joined the channel [17:50] whitequark: hello. i'm trying to install recent npm for half a hour. it says that it wants to clean 0.x stuff, and then in hangs [17:50] kaffesump: context: btw. thx for trying to help me! [17:50] cloudhead has joined the channel [17:52] context: kaffesump: m not M [17:52] context: there is a HUGE difference between the two [17:52] context: and did you install mustache into the project ? [17:52] herbySk74 has joined the channel [17:53] TheJH has joined the channel [17:54] kaffesump: context: I tried both m and M - I think that might be the problem, I followed the instructions (according to the tut it's supposed to put into the proper folders) but Mustache is atm. located inside the npm folder, located right in my [17:54] kaffesump: usr folder (my win7 username, using cygwin) [17:55] kaffesump: it currently looks like this: C:\cygwin\home\XXXXX\.npm\mustache [17:55] Country has joined the channel [17:55] kaffesump: and my project is located in: C:\cygwin\home\XXXXX\sites\todos [17:55] jshaw_ has joined the channel [17:56] kofno has joined the channel [17:56] weezle has joined the channel [17:57] c_t has joined the channel [17:57] isaacs has joined the channel [17:59] context: kaffesump: yeah wrong place. [17:59] context: kaffesump: go to your project [17:59] context: and npm install mustache [17:59] context: it should be in project_dir/node_modules/ [17:59] kaffesump: okay [18:00] cloudhead has joined the channel [18:00] CIA-94: libuv: 03Ryan Dahl 07spawn * r29b2bbb 10/ (5 files in 3 dirs): WIP - https://github.com/joyent/libuv/commit/29b2bbb3466527cd909f8f9233896f759e2ab1a1 [18:00] CIA-94: libuv: 03Ryan Dahl 07spawn * r8ec964a 10/ (4 files in 2 dirs): WIP2 - https://github.com/joyent/libuv/commit/8ec964a6a09503a9725adde867e7986ae74a17f1 [18:01] harthur has joined the channel [18:01] bradleymeck has joined the channel [18:01] Ginlock has joined the channel [18:02] kaffesump: context: thx for help! Stumbled onto another error but at least on my way! =) [18:03] jhurliman has joined the channel [18:03] mendel_ has joined the channel [18:04] gozala has joined the channel [18:04] nibblebo_ has joined the channel [18:05] slaskis_: how do i override http response writeHead in later node versions? my connect middlewares now complains about TypeError: Object # has no method '_storeHeader' from http.js [18:06] geetarista has joined the channel [18:06] slaskis_: when i call writeHead [18:06] tjholowaychuk: slaskis_ are you using master? [18:07] blueadept: what is a way I can get a node.js app to exit? [18:07] samBiotic has joined the channel [18:07] tjholowaychuk: blueadept process.exit() [18:07] slaskis_: tjholowaychuk: nope, 0.4.10 [18:07] bnoordhuis: blueadept: process.exit(42); [18:07] blueadept: ah, cool, ty [18:07] tjholowaychuk: slaskis_ hmm... [18:07] tjholowaychuk: slaskis_ sorry i meant connect's master [18:07] slaskis_: it's complaining about http.js line 865 [18:07] blueadept: bnoordhuis: what is 42 mean? [18:07] bnoordhuis: blueadept: your app's exit code [18:08] blueadept: cool [18:08] TheJH: !git context joyent/node lib/http.js 865 [18:08] jhbot: 864 } [18:08] jhbot: 865 [18:08] slaskis_: oh, well 1.6.0 [18:08] jhbot: 866 this._storeHeader(statusLine, headers); [18:08] TheJH: :( [18:08] tjholowaychuk: slaskis_ i have to proxy some core node stuff to make connect useful [18:08] tjholowaychuk: so it's mostly likely from connect [18:08] hecticjeff has joined the channel [18:09] slaskis_: aah, would that be in the patch.js [18:09] tjholowaychuk: slaskis_ yup. you can check the changelog too and maybe see if something else changed [18:09] zackattack has joined the channel [18:10] markmarkoh has joined the channel [18:11] mcluskydodallas has joined the channel [18:11] fangel has joined the channel [18:11] brolin has joined the channel [18:11] mcluskydodallas has joined the channel [18:13] jshaw has joined the channel [18:14] japj: bnoordhuis: I think the following might be a 'support' issue aswell https://github.com/joyent/node/issues/1154 [18:14] FIQ has joined the channel [18:14] slaskis_: tjholowaychuk: nope, can't see anything that might be related in connect [18:14] slaskis_: i used 1.5.2 before [18:14] tjholowaychuk: slaskis_ hmm, i'd revert just to make sure [18:17] jonaslund has joined the channel [18:17] AvianFlu_ has joined the channel [18:17] japj: bnoordhuis: and https://github.com/joyent/node/issues/1065 should have a child_process label (those were the last 2 current issues without a label) [18:18] mendel_: is there a way to do mysql sync? [18:18] mnaser: tjholowaychuk: how come express-resource is not listed in the readme on github? [18:18] jshaw has joined the channel [18:18] Cleer has joined the channel [18:18] mendel_: I have to check for the existence of a key, but because it's async it doesn't exist yet in my loop [18:18] tjholowaychuk: mnaser in the express readme? [18:18] Tobsn has joined the channel [18:19] mnaser: yes [18:19] dherman has joined the channel [18:19] tjholowaychuk: ACTION adds it [18:19] mnaser: (Y) [18:20] dherman: isaacs: sax.js question: would you consider exposing source location information to SaxStream, as it is with SaxParser? [18:20] loob2 has joined the channel [18:20] dherman: isaacs: I can get to it via saxStream._parser but you probably intended that to be private [18:20] Swimming_bird has joined the channel [18:21] mnaser: tjholowaychuk: is it possible / should i bother trying to use namespace with resource? [18:21] tjholowaychuk: mnaser yeah you can combine whatever you want [18:22] mnaser: woo, thanks. [18:22] galaxywatcher has joined the channel [18:22] tjholowaychuk: i dont think i have express-resource checking the namespace though [18:22] tjholowaychuk: but you they can be used throughout the same app, maybe not necessarily "together" right now [18:23] mnaser: not sure, i just want to namespace a set of a resources [18:23] jbpros has joined the channel [18:23] mnaser: i could just be really cheap and have it a a nested resource i guess [18:23] mnaser: :p [18:23] tjholowaychuk: haha [18:23] mnaser: actually nevermind. lol. [18:23] jshaw has joined the channel [18:23] tjholowaychuk: yeah im not that lazy, i prefer vanilla routes [18:23] tjholowaychuk: explicit > * [18:24] thinkt4nk has joined the channel [18:24] _skmp: ///quit [18:24] mnaser: heh, i guess, /me is lazy [18:24] Murvin has joined the channel [18:25] tetsuharu has joined the channel [18:25] mendel_: array.foreach(function(item) { checkExistence(item); }); var checkExistence = function(item) { //queryCount, if == 0 then create } [18:25] tetsuharu: can I use a git url as a package source in my package.json? [18:25] cloudhead has joined the channel [18:25] kulor-uk has joined the channel [18:26] mendel_: ^^ because the loop is faster/count is faster then the creating it always returns 0 for the same item [18:26] mendel_: how do you guys handle such a situation? is there a way to do it sync? [18:26] adambeynon has joined the channel [18:28] wadey has joined the channel [18:29] Pickley has joined the channel [18:29] Pickley has left the channel [18:30] harthur has joined the channel [18:31] cloudhead has left the channel [18:31] fly-away has joined the channel [18:32] crodas has joined the channel [18:32] markmarkoh has joined the channel [18:33] brownies has joined the channel [18:34] level09 has joined the channel [18:35] dherman has joined the channel [18:35] guidocalvano has joined the channel [18:35] guidocalvano: anyone have experience getting cocoa to run in node? [18:35] ap3mantus has joined the channel [18:36] sirdancealot has joined the channel [18:36] ap3mantus has joined the channel [18:36] context: cocoa doesn't run in node ? [18:36] jarek has joined the channel [18:36] jarek has joined the channel [18:37] bethpr has joined the channel [18:37] guidocalvano: nope [18:37] guidocalvano: UI gets messed up [18:37] guidocalvano: cocoa doesn't run in a dynamic library [18:37] context: english. [18:38] jonaslund: try coffee ? [18:39] guidocalvano: I want to wrap ogre3d in javascript and then offer that as a node module [18:39] dpritchett` has joined the channel [18:39] thoolihan has joined the channel [18:40] context: guidocalvano: i imagine you'd have to do that in C++ for node and not js [18:40] sethetter has joined the channel [18:41] jacobolus has joined the channel [18:41] cl0udy has joined the channel [18:41] captain_morgan has joined the channel [18:42] sooli has joined the channel [18:42] liar has joined the channel [18:42] thriple has joined the channel [18:46] aheckmann has joined the channel [18:47] zmbmartin: what is best to test a express webapp/website routes and response? [18:47] rhaen: voila - another pkg for MacOS X is built and ready for download. [18:47] zmbmartin: I was messing with expresso [18:48] zmbmartin: I have never done much testing which is bad on my part. [18:48] stehoyer has joined the channel [18:49] jhurliman has joined the channel [18:50] MarkMenard has joined the channel [18:54] madsleejensen has joined the channel [18:55] svenlito has joined the channel [18:56] kadiks has joined the channel [18:58] pifantastic_ has joined the channel [19:00] zmbmartin: tjholowaychuk: can I use the routes from my main app in expresso or do I have to add them to the test file? I was getting a Cannot Get / unless I add it to the test file? [19:00] tjholowaychuk: you just need the server running [19:01] tjholowaychuk: but if you use assert.response() yeah just require() the app in [19:01] devuo has joined the channel [19:01] nibblebot has joined the channel [19:01] weezle has joined the channel [19:02] tdegrunt has joined the channel [19:03] markmarkoh1 has joined the channel [19:03] liar has joined the channel [19:06] zmbmartin: tjholowaychuk: ok now I am getting TypeError: Cannot read property 'fd' of undefined [19:07] baudehlo has joined the channel [19:08] augustl: isaacs: yo, filed an issue about the npm link dependency bug https://github.com/isaacs/npm/issues/1182 [19:08] sethetter has joined the channel [19:09] guidocalvano: rhaen: do you happen to have experience with gettin cocoa code to run from a dylib? [19:09] blueadept: would this be the correct way to catch an error if one were occur: http://pastie.org/private/ewbtrka6bfildkhibuoqwq [19:09] malkomalko has joined the channel [19:09] BJ_ has joined the channel [19:09] NickABusey has joined the channel [19:11] BJ_: using window 7, Error when ./configure with line 2 : $'\n' : command not found and line 22 : syntax error : unexpected end of file [19:13] mscdex: BJ_: cygwin or mingw? [19:13] cjm has joined the channel [19:14] BJ_: cygwin [19:14] rhdoenges has joined the channel [19:15] keeto has joined the channel [19:15] rhaen: guidocalvano: no unfortunately not :( [19:15] copyboy has joined the channel [19:16] clifton has joined the channel [19:17] brainproxy: zanes: hey, sorry, i was scrolled up in my chat log for some reason; didn't see your reply re: dependency injection, guice until today [19:17] brainproxy: :/ [19:17] copyboy: hey everyone, i have a few beginner problems with Node and wondered if you could help me or direct me somewhere i can find what solves those problems [19:17] brainproxy: was curious if you could gist and idea of what you're wanting to do [19:18] mscdex: copyboy: just ask here [19:18] rhdoenges: ask away [19:18] copyboy: i'll make it quick: how am i supposed to run a Node script? [19:18] mscdex: copyboy: node foo.js [19:18] AvianFlu: node myscript.js [19:18] rhdoenges: are you familiar with command lines? [19:18] AvianFlu: pretend it's perl or python or ruby in that regard [19:18] copyboy: somewhat, so i know what it means [19:18] kadiks: hi, is there some way to access the stack trace in node.js ? I would like to follow my code and which function call what [19:18] rhdoenges: because yeah, just `node script.js` at the command line [19:19] AvianFlu: kadiks: console.trace() will print a stack trace [19:19] AvianFlu: or, new Error() [19:19] mscdex: kadiks: console.trace() or (new Error()).stack [19:19] copyboy: it's just that the program seems to run in a new console window (win xp here) and then close [19:19] themiddleman has joined the channel [19:19] mscdex: kadiks: the latter gives you a string [19:19] AvianFlu: copyboy: common windows problem: you need to do start -> run, and then type cmd [19:19] kadiks: yes I saw that, but can I take control of it like getting an API from it ? [19:19] rhdoenges: copyboy: start from a cmd.exe [19:19] AvianFlu: bring up the shell in its own window, or it will close when it's done :-P [19:19] copyboy: so a .bat file doesn't do it? dang [19:19] rhdoenges: or if you're really cool use PowerShell [19:20] AvianFlu: copyboy: it runs, it just doesn't keep the shell open [19:20] brainproxy: copyboy: yes, you could use a bat, but if it's not a long running process [19:20] AAA_awright: Not if you want to examine output [19:20] mscdex: kadiks: i'm not sure what you mean [19:20] slifty has joined the channel [19:20] brainproxy: then the console will appear to open then close very quickly [19:20] copyboy: ah, i see [19:20] rhdoenges: copyboy: the shell only stays open while the program is running [19:20] rhdoenges: yeah [19:20] AAA_awright: ... Since when was Windows support added? Does that count as a bug? [19:20] brainproxy: for example, if you put this in your program, the console. window would stay open for 10 seconds [19:20] AvianFlu: classic mistake: type `ipconfig` into the run box, say 'shit', type 'cmd' instead [19:21] copyboy: thanks :) [19:21] mscdex: kadiks: you can only get a string containing the preformatted stack trace [19:21] brainproxy: setTimeout(function () {}, 10000) [19:21] kadiks: mscdex, let's say I want to follow every call coming from a defined function and only there, I will log the stack trace [19:21] mnaser: tjholowaychuk: aw dawg namespaces work but not with nested resources [19:21] kadiks: I see, that was what I wanted to know. Thanks [19:21] AvianFlu: kadiks: talk to SubStack, maybe look at node-burrito or node-detective [19:22] brainproxy: yeah, i was thinking of node-burrito [19:22] brainproxy: couldn't think of the name [19:22] AvianFlu: kadiks: your concers have entered userland :-P [19:22] maushu has joined the channel [19:22] kadiks: ah ok [19:22] kadiks: what is userland ? [19:22] mscdex: node-tacobell [19:22] brainproxy: kadiks: https://github.com/micmath/node-burrito [19:22] rhdoenges: quick, the turtle-light! [19:22] AAA_awright: copyboy: Or just add "pause" to the end of your .bat file [19:22] AvianFlu: core is core, userland is stuff regular people write [19:22] mscdex: userland is anything outside of core [19:22] brainproxy: node-badgas [19:22] rhdoenges: summon SubStack! [19:22] AAA_awright: And it'll wait for you to hit Enter before closing. [19:22] kadiks: thanks guys, I'm taking note [19:22] webben has joined the channel [19:22] AvianFlu: there's a post on the node core repo about what userland is [19:23] rhdoenges: userland goes into npm modules [19:23] rhdoenges: node core is bundled with node [19:23] kadiks: ah so you mean I shouldn't ask that here ? Sorry about that [19:23] rhdoenges: no, no [19:23] kadiks: anyway, thanks [19:23] rhdoenges: it's fine [19:23] copyboy: AAA_awright: nah, it opens another console window, which then closes, so that doesn't do it [19:23] AvianFlu: kadiks: this is the place for general-purpose questions, don't feel bad [19:23] AAA_awright: Hmm [19:23] realazthat has joined the channel [19:23] AndyDaws1n has joined the channel [19:24] isaacs: rhdoenges, AvianFlu, kadiks: https://github.com/joyent/node/wiki/node-core-vs-userland [19:24] NickABusey has left the channel [19:24] AvianFlu: thanks for the link isaacs [19:24] copyboy: well, i was using the start command to run node, i'm not sure if that was the right one [19:24] AvianFlu: copyboy: use the start command to run "cmd" [19:24] brainproxy: copyboy: better to invoke node w/in the command line environment [19:24] NickABusey has joined the channel [19:24] tayy has joined the channel [19:24] NickABusey has left the channel [19:24] brainproxy: that way cmd.exe won't close out [19:24] copyboy: yeah, got that sorted out now :) [19:25] kadiks: understood :-) [19:25] rhdoenges: but if you intend to do anything serious with node linux is the best option right now. [19:25] rhdoenges: windows is getting much much better [19:25] brainproxy: copyboy: if you want to work w/ node in a linux environment, try installing virtual box and set up an ubuntu server virtual machine [19:26] AvianFlu: windows won't be stable till 0.6.0 [19:26] rhdoenges: archlinux is teh best [19:26] copyboy: brainproxy: i have that, but i don't feel like using that atm [19:26] realazthat: ahoy [19:26] rhdoenges: arrrr matey [19:26] guidocalvano: rhaen: if you are trying to, I've found a lot of info to bring us closer [19:26] realazthat: what is the best way to write a v8 binding and node.js library at the same time? [19:26] realazthat: ie. what conventions should I follow [19:27] rhaen: guidocalvano: do you try to write GUI applications with node.js? [19:27] Poetro has joined the channel [19:28] guidocalvano: rhaen: trying to link a 3D engine that needs a cocoa window [19:28] guidocalvano: rhaen: my goal is to wrap the engine in js, and then use node for communication [19:28] augustl: nom, arch [19:29] TheJH has joined the channel [19:29] TheJH has joined the channel [19:29] rhaen: guidocalvano: Ah! :) That's some crazy stuff you are trying to accomplish. :) I've just started with node and built the MacOS X package for it. [19:29] rhaen: guidocalvano: as it might be easier for some people to get started. [19:30] rhaen: guidocalvano: once when my JavaScript isn't that rusty anymore I'll catch up! :) [19:30] guidocalvano: rhaen: I need access to the the main app [19:31] guidocalvano: rhaen: what I think is happening is that my code gets its own global variables [19:31] AvianFlu has joined the channel [19:31] edude03 has joined the channel [19:31] springify has joined the channel [19:32] lot49 has joined the channel [19:32] bradleymeck has joined the channel [19:32] guidocalvano: rhaen: NSApp is global, and the dylib has a different global var from node itself [19:32] admc has joined the channel [19:33] guidocalvano: rhaen: could you drop a link to your project? [19:33] rhaen: guidocalvano: http://node.pkgbox.de [19:33] markmarkoh has joined the channel [19:33] rhaen: guidocalvano: the goal would be to create a painless installer without the full toolchain like Developer tools, etc. [19:34] guidocalvano: nice [19:34] sridatta has joined the channel [19:34] _bat has joined the channel [19:35] harth has joined the channel [19:35] rhaen: guidocalvano: I think none is interested in reading about everything and how to build node.js. Why not a simple installer and you can start right away. Maybe a short documentation around. Let's see. [19:35] lmao25 has joined the channel [19:35] jameson has joined the channel [19:35] guidocalvano: rhaen: hope they'll put it on the site (: [19:36] mikedeboer has joined the channel [19:36] hydrozen has joined the channel [19:36] rhaen: guidocalvano: oh, I'll ask them in a nice and polite way - it's that easy :) [19:36] lmao25 has left the channel [19:37] guidocalvano: mikedeboer: hey man, alles goed? [19:38] davidsklar has joined the channel [19:39] luke` has joined the channel [19:40] rhdoenges: wouldn't that just be the same as a distro package? [19:41] rhdoenges: i.e. a .deb or .rpm [19:41] mscdex: i thought someone already had an osx package? [19:41] rhaen: rhdoenges: sure, for MacOS X, however [19:41] mscdex: that was maintained [19:41] CrabDude has joined the channel [19:41] rhdoenges: what about homebrew or ports or whatever? [19:42] rhaen: mscdex: I found several information about brew, MacPorts and fink. [19:42] context: homebrew ! [19:42] rhaen: However you have to install everything to get that running. [19:42] mscdex: no, this was a separate package [19:42] rhaen: context: everyone blamed homebrew due to its symlinks which might break npm [19:42] rhdoenges: oh yeah [19:42] mscdex: https://sites.google.com/site/nodejsmacosx/ [19:42] mscdex: ^ [19:43] rhaen: mscdex: haha - then I can remove my package :) [19:43] mscdex: the guy who owns that posts regularly to the mailing list with new packages as they come out [19:43] rhdoenges: and that, gentlemen, is why you code on linux [19:43] context: rhaen: npm works perfectly fine for me [19:43] rhdoenges: *and ladies [19:43] rhaen: ah, I didn't look in the older archives :( [19:44] context: but i installed npm through sh < (curl ...) whatever [19:44] Guest8939 has joined the channel [19:44] gazumps has joined the channel [19:44] rhaen: my fault. [19:44] dreamdust has joined the channel [19:45] rhaen: hm, can't even reply another time to myself on the ML. [19:45] rhaen: Why isn't that package listed on the wiki page, then. [19:45] rhaen: hmpf! [19:45] mscdex: i dunno [19:45] cjm has joined the channel [19:45] rhdoenges: go edit it then [19:45] mscdex: but he's been uploading those packages for quite awhile now [19:46] MarkMenard has joined the channel [19:46] jstroem has joined the channel [19:46] rhaen: mscdex: it's awesome if someone cares for stuff like this. However I dived into wiki, couldn't find a pre made package and decided to make one on my own. [19:46] mscdex: yeah [19:47] sylvinus has joined the channel [19:47] defeated has joined the channel [19:47] rhaen: mscdex: you'll find millions of gists about installing node - but not a single mention of the package. [19:47] rhaen: I joined the ML later just to announce ..... [19:47] mscdex: it's never too late to add it to the wiki :-D [19:47] pt_tr has joined the channel [19:48] rhdoenges: that's what they're for after all [19:48] rhaen: uh, oh - it that the next "trap" I am about to fall in? [19:48] rhaen: :) [19:49] Darrow has joined the channel [19:49] rhdoenges: node.js: WTFM [19:50] rhdoenges: Write The Fantastic Manual [19:50] halfhalo-work has joined the channel [19:51] te-brian has joined the channel [19:52] markwubben has joined the channel [19:52] stehoyer has joined the channel [19:52] kofno has joined the channel [19:53] else- has joined the channel [19:53] unlink has joined the channel [19:53] alexgordon has joined the channel [19:53] CrisO has joined the channel [19:54] Darrow: Quick question: would it be possible to create a http and dgram server in the same node program, and share variables between the two? [19:54] Darrow: Or is it better to have two separate programs running the two? [19:55] fwg: you can certainly do both in one process [19:55] rhaen: rhdoenges: hm, what about changing the wiki? Is that considered "ok" in the node project? [19:56] rhdoenges: rhaen: I think it is [19:56] rhdoenges: go for it [19:56] AvianFlu has joined the channel [19:56] Darrow: fwg: awesome, thanks [19:56] else-: i have a nodejs program that writes some data into a file. currently i'm reading from the file using several other nodejs program to learn about some events. this is more like a workaround i guess ;)... how would you normally do it? how can i broadcast data to several receivers without combining those programs? [19:56] nibblebo_ has joined the channel [19:57] patcito has joined the channel [19:57] weezle has joined the channel [19:58] namelessnotion has joined the channel [19:58] agnat has joined the channel [20:03] rhdoenges: else-: EventEmitters do just what you want [20:03] CrabDude has joined the channel [20:03] hecticjeff has left the channel [20:03] markmarkoh has joined the channel [20:03] tjholowaychuk has joined the channel [20:03] Arenstar has joined the channel [20:04] avalanche123 has joined the channel [20:05] MarkMenard has joined the channel [20:06] cjroebuck has joined the channel [20:06] else-: rhdoenges: thanks. but this is designed to be used within one process only, right? [20:06] else-: or is it useable for communication between several nodejs instances? [20:07] rhdoenges: else-: yeah, it only works within one process [20:08] samBiotic: else-, take a look at socket.io or zeromq or something [20:08] else-: ok [20:08] rhdoenges: socket.io works very well for IPC [20:08] reid has joined the channel [20:08] else-: i thought socket.io was only for web-based apps [20:09] rhdoenges: it works through FIFOs I believe [20:09] xerox: rhdoenges: does it? [20:09] rhdoenges: hang on [20:09] xerox: I thought you needed to go dnode for inter process [20:09] rhdoenges: I'm getting them mixed [20:09] xerox: which uses socket.io, but only when a browser is involved [20:10] xerox: it uses the net module when only node processes are involved (either via tcp or unix sockets) [20:10] samBiotic: zeromq i also very good and has node bindings [20:10] bartt has joined the channel [20:11] kaww has joined the channel [20:11] slajax has joined the channel [20:11] guillermo has joined the channel [20:12] BJ_ has joined the channel [20:13] BJ_: as windows user, what I need to do for this session is just installing MinGW ? [20:13] Arenstar has joined the channel [20:14] rhdoenges: if you are building it yourself, yes [20:14] DTrejo has joined the channel [20:15] DTrejo: mark them as spam (NSFW): https://twitter.com/#!/DongIlluminatus/status/95582392424734720 [20:15] Drake_ has joined the channel [20:16] gkmngrgn has joined the channel [20:16] sylvinus has joined the channel [20:16] gkmngrgn has joined the channel [20:19] newy_ has joined the channel [20:19] CIA-94: libuv: 03Ryan Dahl 07master * r92bc7b4 10/ (6 files in 3 dirs): [20:19] CIA-94: libuv: Start uv_spawn() [20:19] CIA-94: libuv: Unix only at the moment. Lacks test for stdio - https://github.com/joyent/libuv/commit/92bc7b4959dfc81b66830f8da3e403e7806b0094 [20:21] mape: ryah: around? [20:21] pandeiro has joined the channel [20:23] ryah: mape: yes [20:23] mape: ryah: mind if I pm? [20:23] ryah: no [20:23] zeade has joined the channel [20:24] madzak has joined the channel [20:26] chiliburger has joined the channel [20:27] digitaltoad has joined the channel [20:30] MarkMenard has joined the channel [20:30] rhdoenges has joined the channel [20:30] devuo has joined the channel [20:31] Pickley has joined the channel [20:32] Pickley has left the channel [20:32] weezle has joined the channel [20:33] CrisO has joined the channel [20:33] abang has joined the channel [20:33] markmarkoh has joined the channel [20:34] abang has left the channel [20:36] devuo has joined the channel [20:36] jakehow has joined the channel [20:38] amerine has joined the channel [20:38] tomtomaso has joined the channel [20:39] akiva: Do any other Mac users find that certain NPM commands highjack BASH into no longer showing future commands (as in, you only see the PS1) [20:41] qbert_ has joined the channel [20:41] qbert_: I'd really love to see ratings in NPM [20:41] qbert_: O [20:42] isaacs: akiva: type `reset` if that happens [20:42] qbert_: I'm searching for an email wrapper and theres a dozen of them, even a simple +1 system would really help [20:42] isaacs: akiva: what terminal you use? i've been seeing this recently with iterm2 when i ^C out of node programs [20:42] akiva: isaacs: hey, thanks! [20:43] tdegrunt_ has joined the channel [20:43] akiva: No, it does not happen when I exit NPM at all, it happened just now after issuing an `npm ls` [20:43] isaacs: akiva: what terminal? [20:43] cafesofie has joined the channel [20:43] jscheel has joined the channel [20:43] akiva: Plain ol' Version 2.1.2 (273.1) [20:44] akiva: Never done me no wrong yet [20:44] akshatj has joined the channel [20:44] bartt1 has joined the channel [20:45] brian_ has joined the channel [20:46] AvianFlu has joined the channel [20:46] Wa has joined the channel [20:46] Epeli has joined the channel [20:47] Cromulent has joined the channel [20:47] davidsklar has joined the channel [20:48] hellp has joined the channel [20:50] supster has joined the channel [20:50] brownies has joined the channel [20:51] eee_c has joined the channel [20:52] insin has joined the channel [20:52] gde33 has joined the channel [20:54] blup has joined the channel [20:54] jscheel: tjholowaychuk: hey man, I'm trying to keep cluster up with monit, is that how you normally keep it running? [20:54] tilgovi has joined the channel [20:54] tilgovi has joined the channel [20:55] tjholowaychuk: jscheel yeah. I have an issue open to move all the reporting etc to a separate child process [20:55] tjholowaychuk: to help prevent any breakage [20:55] jscheel: tjholowaychuk: I had everything working, but now monit won't start my server anymore [20:55] tjholowaychuk: hmm [20:56] corytheboyd has joined the channel [20:57] jscheel: tjholowaychuk: well, monit's been pretty janky for me altogether, but that's another story :) [20:57] yozgrahame has joined the channel [20:57] insin: is lookup of non-prefixed arguments to require always relative to the current module? Is it possible to configure a child process which is going to run node with a particular directory it should use as the basis of looking for node_modules? [20:57] jscheel: tjholowaychuk: can you take a look at this monit script and tell me if I'm doing it wrong: http://pastie.org/2270465 [20:57] gozala has joined the channel [20:58] jscheel: sorry, can you *please* [20:58] jscheel: :) [20:58] tjholowaychuk: jscheel you might want killlall -9 instead [20:58] tjholowaychuk: hopefully i'll have time soonish to separate that stuff out so the master process will be more solid [20:59] jscheel: tjholowaychuk: oh, yep, but it still won't even start when I run "monit start myprocess" [20:59] pt_tr has joined the channel [20:59] yozgrahame: rodion rotaru [20:59] apoc has joined the channel [20:59] yozgrahame: GAAH wrong window, 'suce me [20:59] apoc has joined the channel [20:59] tjholowaychuk: jscheel oh hmm that's odd, looks fine [21:00] BillyBreen has joined the channel [21:00] nibblebot has joined the channel [21:01] bshumate has left the channel [21:01] jscheel: tjholowaychuk: especially crazy when I copy/paste the start command and it works fine [21:01] tjholowaychuk: ahaha good times [21:01] tjholowaychuk: jscheel: oh!! wait [21:01] tjholowaychuk: are [21:01] tjholowaychuk: you using the latest cluster? [21:01] tjholowaychuk: because I had a similar issue [21:02] tjholowaychuk: node's errors are so bad I had to whip out strace though [21:02] sylvinus has joined the channel [21:02] tjholowaychuk: jscheel https://gist.github.com/1098286 [21:02] jscheel: tjholowaychuk: yeah, using the latest version [21:02] tjholowaychuk: if you cat your nohup.out [21:02] tjholowaychuk: and see that [21:02] tjholowaychuk: let me know, I need to fix that just haven't had time yet, exact same issue though by the sounds of things [21:04] markmarkoh has joined the channel [21:04] jscheel: tjholowaychuk: hmm, it's not even getting that far anymore [21:05] tjholowaychuk: I had to set a timeout before starting cluster so i had time to strace -p haha [21:05] tjholowaychuk: good times [21:05] jscheel: well, one sec, lemme specify exactly where it should create to nohup.out [21:05] meandi has joined the channel [21:06] weezle has joined the channel [21:07] colinclark has joined the channel [21:08] jscheel: tjholowaychuk: how did you create a timeout? [21:08] tjholowaychuk: setTimeout [21:08] reid has joined the channel [21:09] jscheel: tjholowaychuk: when I tail -f my master.log, I see WARNING sent kill(SIGKILL) to all workers immediately when I do monit start myprocess [21:09] cjm has joined the channel [21:09] tjholowaychuk: jscheel nohup.out should be in the CWD [21:11] radicality has joined the channel [21:12] radicality: hi. could anyone point me as to how I could use jquery inside Jade templates ? [21:12] dherman_ has joined the channel [21:12] jscheel: tjholowaychuk: when I run the start program command myself (in the cli) I don't get any errors [21:12] tjholowaychuk: jscheel yeah same [21:12] jscheel: when I run monit start myprocess I don't see a nohup.out created anywhere [21:12] tjholowaychuk: use nohup in the term [21:12] tjholowaychuk: you'll get it that way too [21:13] softdrink: how reliable is zombie.js? [21:13] cccaldas has joined the channel [21:13] jscheel: tjholowaychuk: oh, you mean nohup monit start myprocess & ? [21:14] tjholowaychuk: nohup node app & [21:14] jscheel: tjholowaychuk: oh, but that's what I'm saying, I don't get the error when I do it that way [21:14] tjholowaychuk: hmm i did [21:14] AvianFlu has joined the channel [21:14] jscheel: tjholowaychuk: odd [21:14] tjholowaychuk: i didn't when it was $ node app, but with $ nohup node app I got it [21:16] jscheel: tjholowaychuk: nope, but it just refuses to start with monit [21:16] jscheel: monit starts my other stuff up fine [21:16] jscheel: (redis and a custom init.d script for some mono stuff) [21:16] CStumph has joined the channel [21:16] Tidwell has joined the channel [21:17] tjholowaychuk: jscheel the manpage says it will use HOME for the nohup.out [21:17] tjholowaychuk: when not associated with a tty [21:17] jscheel: tjholowaychuk: nothing :P [21:17] Fandekasp_ has joined the channel [21:18] tjholowaychuk: what user is monit running as? [21:18] jscheel: tjholowaychuk: root [21:18] tjholowaychuk: hm [21:18] tjholowaychuk: i swear you have the same issue i had [21:19] jscheel: it's weird, I removed the kill lines from my monit script, ran monit reload, but when I do a start, the first thing cluster reports is that a sigkill was sent [21:19] materialdesigner has joined the channel [21:20] tjholowaychuk: yeah if you look at my strace output that's what mine was doing too [21:20] tjholowaychuk: same thing [21:20] xtianw has joined the channel [21:20] tjholowaychuk: node just gives you that super vague error [21:20] jscheel: tjholowaychuk: I;m gonna try and rollback to cluster 0.6.8 then [21:20] tjholowaychuk: try 0.6.4 [21:20] tjholowaychuk: until i can fix that [21:20] jscheel: tjholowaychuk: hehe, vagueness is always so helpful when debugging :) [21:20] tjholowaychuk: totally [21:22] jscheel: tjholowaychuk: ok, rolling back and re-deploying, one sec [21:25] elijah has joined the channel [21:25] jscheel: tjholowaychuk: hrmf, still not working for me [21:25] kim_ has joined the channel [21:25] tjholowaychuk: damn :( [21:25] jscheel: not getting anything in my master.log [21:26] softdrink: ACTION prods npm [21:27] tjholowaychuk: jscheel i think nohup's stderr ends up in nohup.out can't remember [21:27] isaacs: what's not working? [21:27] isaacs: npm-wise? [21:27] bnoordhuis: screen > nohup [21:27] softdrink: wait there it goes… it was just sitting there for a bit [21:27] softdrink: isaacs ftw [21:27] isaacs: great! [21:28] softdrink: had to upgrade to get zombie to install… thought i borked something [21:28] Remoun has joined the channel [21:29] sethetter has joined the channel [21:29] caolanm has joined the channel [21:30] yozgrahame has joined the channel [21:30] jscheel: tjholowaychuk: aha [21:30] dreamdust has joined the channel [21:31] jscheel: tjholowaychuk: http://pastie.org/2270606 [21:31] tjholowaychuk: what's events.js? [21:32] jscheel: tjholowaychuk: hehe, good question [21:32] tjholowaychuk: node's? [21:32] bnoordhuis: tjholowaychuk: node core [21:32] jscheel: tjholowaychuk: I'm guessing [21:32] bnoordhuis: contains EventEmitter [21:32] tjholowaychuk: yeah i know [21:33] tjholowaychuk: oh haha didn't see the // Unhandled 'error' comment there [21:34] jscheel: tjholowaychuk: hmm, must be some kinda environment issue (Error: ENOENT, No such file or directory) [21:34] tjholowaychuk: would be nice if it showed the path [21:34] markmarkoh1 has joined the channel [21:36] michaelhartau has joined the channel [21:37] te-brian has joined the channel [21:38] Charuru has joined the channel [21:38] materialdesigner has joined the channel [21:38] darshanshankar has joined the channel [21:39] DTrejo has joined the channel [21:39] losing has joined the channel [21:39] akiva: So when you start to get errors that are vague like: SyntaxError: Unexpected identifier, what is the best route to take in order to solve them? My app.js is fine and checks well under jshint [21:40] rhdoenges: check the lines preceding the error's line [21:40] rhdoenges: you forgot to close something [21:41] Swizec: akiva open emacs, ctrl+a, tab [21:41] Swizec: it will try to indent everything perfeclty [21:42] Swizec: and make a mistake where you didn't close something [21:42] gozala has joined the channel [21:42] Poetro1 has joined the channel [21:42] akiva: Swizec: I use vim ;) and like I said, there are no errors found in any JSHint or Lint, but I will review my code again. Thanks. [21:43] insin: is the function which walks from the start directory up, searching for node_modules, available for use? [21:44] ap3mantus has joined the channel [21:45] Guest44646 has joined the channel [21:45] EvRide has joined the channel [21:46] jscheel: tjholowaychuk: interesting [21:46] jscheel: tjholowaychuk: here's my server init: http://pastie.org/2270681 [21:46] jscheel: tjholowaychuk: it's saying, that I'm passing nothing into listen [21:47] tjholowaychuk: i see [21:47] sonnym has joined the channel [21:47] jscheel: tjholowaychuk: which makes me think that require is not pulling my settings, since I'm using ./ [21:47] tjholowaychuk: that would explain it [21:48] jscheel: tjholowaychuk: hmm, though, the only way that would fail is if PWD was not being set, right? [21:48] tjholowaychuk: you shouldnt do ./ for the tmp/pids [21:48] tjholowaychuk: __dirname [21:48] sub_pop has joined the channel [21:48] versicolor has joined the channel [21:48] jscheel: tjholowaychuk: really? didn't know that! [21:49] jscheel: thanks [21:49] tjholowaychuk: yeah [21:49] tjholowaychuk: require is special [21:49] Guest44646 has joined the channel [21:50] sethetter has joined the channel [21:50] jscheel: tjholowaychuk: require should just look from the directory that the calling script is in, though, right? [21:50] weezle has joined the channel [21:51] tjholowaychuk: require does [21:51] context: http://seattletimes.nwsource.com/html/businesstechnology/2015720742_brier25.html [21:51] tjholowaychuk: relative fs stuff is relative to the CWD, but it looks like you want relative to the script's dir [21:51] eastender has joined the channel [21:52] jscheel: tjholowaychuk: also, my settings.js is a symbolic link [21:52] jscheel: ls [21:52] jscheel: oops [21:52] gartenstuhl has joined the channel [21:53] wookiehangover has joined the channel [21:53] __tosh has joined the channel [21:54] samBiotic: is there more cpu efficient way of passing and retrieving an object from a buffer other than JSON.stringify() and JSON.parse() ? [21:54] Guest44646 has joined the channel [21:56] ryanj: I think there is an optional C-based parser that you can use to speed things up [21:56] sirdancealot has joined the channel [21:57] mike5w3c has joined the channel [21:58] samBiotic: ryanj, do you have more info please? [21:58] jscheel: tjholowaychuk: ok, trying something really blunt [21:58] jscheel: cd :) [22:00] chjj: samBiotic: msgpack is supposed to be faster than JSON.parse, but i'm told v8 has improved its json parser now [22:00] itsphil has joined the channel [22:01] samBiotic: chjj, thanks, I take it that's coming in v5? [22:01] AvianFlu has joined the channel [22:01] chjj: huh? no, i think it was a while ago v8 improved it [22:01] itsphil: Hi, may i borrow someone(s) to help me with a couple of node.js questions? [22:01] cognominal_ has joined the channel [22:02] tbranyen: itsphil: just ask [22:02] CIA-94: node: 03Ben Noordhuis 07master * rdf3a8fc 10/ (3 files in 2 dirs): [22:02] CIA-94: node: cli: don't print result of --eval [22:02] CIA-94: node: Fixes #572. - https://github.com/joyent/node/commit/df3a8fcb62e44fa1b1c592f04a872648d26ec08c [22:02] itsphil: Well i have installed node and its dependancies correctly (i think) [22:02] Poetro has joined the channel [22:02] itsphil: But i just dont understand how to do the basic 'Hello World' [22:02] jscheel: tjholowaychuk: hah, and like magic, it works :) [22:02] jscheel: tjholowaychuk: thanks for your help [22:02] chjj: itsphil: what dont you understand about it exactly? [22:03] itsphil: Well im running putty connected as root to my web server [22:03] tar_ has joined the channel [22:03] unlink has joined the channel [22:03] unlink has joined the channel [22:03] chiliburger has left the channel [22:03] itsphil: I created the example.js file and uploaded via FTP to my web server [22:03] itsphil: and typed node example.js in the SSH but it does nothing [22:04] chjj: nothing? [22:04] chjj: need to be more specific, does the terminal hang, is there a process up? [22:04] samBiotic: node -v ? [22:04] chjj: do you see node in ps -A? [22:04] markmarkoh has joined the channel [22:05] itsphil: well when i login if i do 'node anything' it says unknown command [22:05] Poetro: and also, what was in example.js :P [22:05] Poetro: so u dont have node installed [22:05] chjj: sounds like wherever you installed it is not in your PATH [22:05] Poetro: or not in path [22:05] chjj: where did you install it? [22:05] itsphil: so i went into some bin folder or something [22:06] itsphil: and when i do 'node' it takees me to [22:06] itsphil: > [22:06] chjj: yeah thats the repl [22:06] Poetro: great, so u have node [22:06] chjj: what is the path you installed it to? [22:06] chjj: thats a good thing yeah, it means you installed it properly [22:06] Poetro: now remember the path of the node executable [22:06] Poetro: and in the folder where example.js is, type `/path/to/node example.js` [22:07] itsphil: local/node [22:07] itsphil: so im in node now [22:08] chjj: did you install it in ~/local/node? [22:08] chjj: in your home directory? [22:08] itsphil: yeah [22:08] Poetro: then `~/local/node example.js` [22:08] itsphil: i followed this https://github.com/joyent/node/wiki/Installation [22:09] chjj: well you can either open your ~/.profile and add it to your path, or do what that says and do: echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.profile [22:10] chjj: did you do that? [22:10] itsphil: when i installed yeah [22:10] chjj: did you do source ~/.profile? [22:10] itsphil: ye [22:11] Poetro: what is .profile? i dont have it on my linux [22:11] konobi: `hash -r` [22:11] gbot2: Woosta's implementation of a hash (dictionary, associative array, ...) object for JS: http://rick.measham.id.au/javascript/hash.htm provides methods such as keys, values, and slice [22:11] AvianFlu_ has joined the channel [22:11] Poetro: i have .bash_profile [22:11] inimino: gbot2: forget hash [22:11] gbot2: inimino: forgot hash [22:13] CStumph has joined the channel [22:13] chjj has joined the channel [22:14] itsphil: sorry just playing around tryin to navigate to the folder that took me to repl [22:14] itsphil: or that '>' thing [22:14] samBiotic: itsphil, ctrl+c gets you out of that [22:15] clifton has joined the channel [22:16] chjj: itsphil, you can for sure try the hello world script now by just doing "~/local/node hello_world.js" [22:17] itsphil: -bash: /root/local/node: is a directory [22:17] itsphil: is what it says [22:17] itsphil: when i do that [22:17] chjj: oh, maybe ~/local/node/bin/node? [22:18] itsphil: node.js:134 throw e; // process.nextTick error, or 'error' event on first tick [22:18] itsphil: error came up [22:18] itsphil: Error: Cannot find module '/example.js' [22:18] chjj: that means youre in the wrong directory [22:18] itsphil: ok this is what confuses me where should i have placed 'example.js' [22:18] chjj: need to change your working directory [22:18] chjj: or give an absolute path [22:19] chjj: anywhere you want, somewhere in your home directory [22:19] chjj: ~/hello_world if you want [22:19] AvianFlu_ has joined the channel [22:19] itsphil: how do i place it there in the console? [22:19] raidfive has joined the channel [22:19] michaelhartau has joined the channel [22:20] chjj: /mov /wherever/hello_world ~/hello_world.js [22:20] chjj: it doesnt matter where it is, you put it however you want to organize your home dir [22:20] chjj: node doesnt care where it is [22:20] __tosh has joined the channel [22:20] baudehlo has joined the channel [22:21] itsphil: can i do this via ftp? [22:21] colinclark has joined the channel [22:21] chjj: ftp isnt usually the best option [22:21] BillyBreen has joined the channel [22:22] chjj: if you want to upload files to your server, theres always scp or rsync [22:22] itsphil: ok but i dont get how i put the example.js from my desktop/ftp into the home folder [22:22] itsphil: (sorry im sounding so thick) [22:22] CStumph has joined the channel [22:22] chjj: what do you mean desktop/ftp? [22:22] itsphil: well i have the example.js that it says to create on my desktop [22:22] chjj: ok [22:23] chjj: you can do `scp hello_world.js root@yourhost:~/hello_world.js` [22:23] chjj: if you have scp, does putty have scp? [22:23] chjj: ive never used [22:24] jellosea: is there a way to get the uname of the host in node.js? [22:24] reid has joined the channel [22:24] chjj: im not sure what youre working with there [22:24] itsphil: il give it a whirl [22:24] context: jellosea: most of it: http://nodejs.org/docs/v0.4.10/api/os.html [22:25] jellosea: thanks context [22:25] __tosh has joined the channel [22:27] bnoordhuis: so does anyone know a good way to make `git log` always use --abbrev-commit? [22:27] bnoordhuis: without defining aliases, that is [22:27] remysharp has joined the channel [22:28] itsphil: chjj do i need to put th full path to the desktop file? [22:28] itsphil: it comes back as 'ssh: c: Name or service unknown' [22:28] chjj: it depends on what your working dir is [22:28] chjj: it depends on where you are in the directory structure [22:29] meandi2 has joined the channel [22:29] itsphil: well im trying to put 'C:\Users\username\Desktop\example.js' [22:29] itsphil: as the file location [22:30] jzacsh has joined the channel [22:30] chjj: itsphil, i have no idea how putty works, ive never used it, but you want to run scp locally, if putty has it [22:30] MarkMenard has joined the channel [22:30] chjj: dont run it from the remote terminal [22:31] chjj: just type "scp [22:31] chjj: " [22:31] chjj: see if it has it [22:31] guest_288 has joined the channel [22:31] seb_m has joined the channel [22:31] bnoordhuis: itsphil: google for 'windows sshfs', there are a number of apps that let you mount a remote server as a drive [22:32] bnoordhuis: itsphil: or use ftp if all else fails [22:33] nicoreed has joined the channel [22:33] jellosea: in node how do i export a whole class? so the class and all its member functions [22:33] jellosea: with one export call [22:34] nibblebo_ has joined the channel [22:34] chjj: im not sure about the terminology there, but you probably want `module.exports = MyConstructor;` [22:34] Murvin has joined the channel [22:34] markmarkoh has joined the channel [22:35] AvianFlu: and then MyConstructor.prototype.myMethodOne = function () {} [22:35] wadey: jellosea: http://nodejs.org/docs/v0.4.10/api/modules.html#module.exports [22:35] AvianFlu: to define your methods / other exports [22:35] davidsklar1 has joined the channel [22:35] chjj: good to note though, exports is just a property on the module object [22:35] cha0s has joined the channel [22:35] benmonty has joined the channel [22:36] hassox has joined the channel [22:38] iammerrick has joined the channel [22:38] jellosea: right, thakns :) [22:38] nicoreed: I'm seeing some inconsistent behavior in the path module, is this expected? : https://gist.github.com/1105433 [22:40] battlecollie has joined the channel [22:42] Drakonite has joined the channel [22:47] Arenstar84 has joined the channel [22:47] brian has joined the channel [22:48] jonaslund: ryah: Are there rules for the headings in the node docs or is it mostly accidental ? [22:49] jonaslund: ryah: many "?old?" modules (fs,http,etc) seem to have the main heading as "h2/##", then functions as "h3/###" and then "types" as "h2" again.. but now i noticed that the TLS part has it's tls.Server as "h3" aswell [22:50] bnoordhuis: jonaslund: the docs aren't always consistent :-/ [22:50] ryah: jonaslund: mm.. they should be the same [22:50] jonaslund: ryah: I'm asking this since i'm making a generator to CHM docs from the markdown (compiled html, win32 help file) and i'm not sure how to get the contents into a sane structure [22:51] jonaslund: ryah: if you look at the topic structure in all.html you'll see the same thing (since fs.WriteStream is h2 it gets to the same "level" as "File System" before it and "Path" after it) [22:53] jonaslund: It just becomes far more visible since the structure is collapsed in the CHM :) [22:53] davve: how do i teach my cat to roll joints? [22:54] technoweenie has joined the channel [22:54] technoweenie has joined the channel [22:55] escii: Is she shaved? [22:55] escii: :> [22:55] nibblebot has joined the channel [22:55] nicoreed has joined the channel [22:55] Cleer has left the channel [22:56] escii: otherwise it's not recommended ;) [22:56] jonaslund: ryah: http://www.jlim.se/test.chm for the doc (or http://www.jlim.se/chm.jpg for a peek at how the structure looks) [22:56] eee_c has joined the channel [22:56] jonaslund: win32 has a built in chm viewer, there's open source variants for *nix os's [22:57] raidfive has joined the channel [22:57] ekryski has joined the channel [22:57] burg has joined the channel [22:58] sweetd_ has joined the channel [22:58] jonaslund: (Just updated the jpg slightly) [22:58] ryah: jonaslund: what's chm? [22:59] ryah: jonaslund: fixes welcome... [22:59] jonaslund: ryah: a single compressed archive containing a toc, index and a bunch of html [22:59] jonaslund: it was originally used by msvc for documentation afaik.. and windows help was based on it earlier [23:00] isaacs: jonaslund: OH! [23:00] isaacs: jonaslund: THAT's chm? [23:01] isaacs: yeah, i've worked with that. bringing back scary bad memories actually [23:01] isaacs: my first "web job" was doing that kind of stuff [23:01] tomtomaso has joined the channel [23:01] jonaslund: microsoft help compiler is the MS tool but you can do it with opensource tools [23:02] tomtomaso has joined the channel [23:03] escii: are code changes needed when porting a unix nodejs app to windows? [23:03] jonaslund: isaacs: it's not really super-fun to work with ms-help compiler actually, the MSDN documentation however was always pleasant to read in that format (imho) [23:03] isaacs: yeah [23:03] jonaslund: escii: depends on what you do [23:03] isaacs: *reading* it is nice. [23:03] isaacs: it's all clickingnow. yes, +1 on getting something like this for windows users. [23:04] escii: hmm.. just rerouting some traffic, tcp, http and some websockets [23:04] dgathright has joined the channel [23:05] bnoordhuis: escii: 'no' once 0.5.x goes stable [23:05] markmarkoh has joined the channel [23:05] escii: oh you implemented oneclick(); ? kewl; *click* nah just wondering... [23:05] escii: thx for the info :] and sry for disturbing [23:05] descipher_ has joined the channel [23:05] bnoordhuis: escii: np, my pleasure [23:06] AvianFlu has joined the channel [23:08] Determinist has joined the channel [23:08] softdrink: is anyone using vows in combination with selenium? [23:10] Xano has joined the channel [23:11] brianseeders has joined the channel [23:12] Nuck has joined the channel [23:13] geetarista has left the channel [23:14] jonaslund: ryah: isaacs: anyhow for the docs, the structure today (where followed and albeit weird in some ways) kinda makes sense for reading as a html manual but works a tad less well when trying to automatically generate a sane structure (especially since it'd be easier to navigate the "structure" by grouping functions / classes separately).. [23:14] jonaslund: ryah: isaacs: i don't wanna run off making big changes just for my own benefit that doesn't help the rest so to say :) [23:14] isaacs: ryah: in my experience (many ages ago) making your documentation fit into chm sanely also makes it just better documentatino. [23:15] isaacs: i'm +1 on this. [23:15] isaacs: jonaslund: maybe bring it up on the mailing list, but my vote is yes. [23:15] isaacs: nodejs-dev [23:15] jonaslund: i guess i should subscribe [23:18] Sorella has joined the channel [23:19] kdng-saleem3 has joined the channel [23:19] [[zz]] has joined the channel [23:19] brainproxy: reference for chm? [23:19] else- has joined the channel [23:20] cyraxx has joined the channel [23:21] kdng-saleem3 has left the channel [23:21] jonaslund: brainproxy: I'm a tad tired here, how do you mean ? [23:22] http402 has joined the channel [23:22] jonaslund: brainproxy: I'm making a CHM generator from the node documentation markdown [23:22] jonaslund: It works but the output isn't ideal [23:23] jakehow has joined the channel [23:23] qbert_: jonaslund, can I see it [23:23] jonaslund: http://www.jlim.se/test.chm for the doc (or http://www.jlim.se/chm.jpg for a peek at how the structure looks if you don't have a CHM viewer) [23:24] jonaslund: if you download CHM files just make sure to toggle "unblock" from the file properties in win7 [23:25] jonaslund: (it thinks files from the net are inherently unsafe.. no idea how much privilegies CHM scripts have) [23:25] nibblebo_ has joined the channel [23:25] jonaslund: might need to take a peek at converting to MS-Help 2 later on [23:25] cjm has joined the channel [23:26] AvianFlu has joined the channel [23:27] jesusabdullah: Hey nodies! What are some of your favorite places to look for node.js support, tools, etc., etc? [23:27] jesusabdullah: Besides here, obviously! [23:28] qbert_: jonaslund, downloading chm viewer [23:28] bnoordhuis: jesusabdullah: google? [23:28] qbert_: jesusabdullah, npm [23:28] qbert_: itll be really awesome when they get ratings for modules, isaccs [23:29] Nuck: jesusabdullah: #RubyOnRails and ##Ruby [23:29] isaacs: ACTION nudges qbert_ back [23:29] isaacs: qbert_: build it! [23:29] isaacs: ;P [23:29] qbert_: ok :D [23:30] catb0t has joined the channel [23:30] radicality: in jade, how can i check whether an element exists in an array. like whether 1 is in [1,2,3] [23:31] qbert_: jonaslund, not working with chmsee on linux, but that might be the clients fault ive never used this before [23:31] jesusabdullah: qbert_: npmtop? ;) [23:31] jonaslund: qbert_: w8 [23:31] iammerrick has joined the channel [23:32] jesusabdullah: qbert_: I think isaacs actually had some rationale for not including ratings. I don't remember what it was though, if there was one. [23:32] jonaslund: qbert_: try http://www.jlim.se/r5rs.chm , it's made by microsofts official tool [23:32] iammerrick: What is the quickest way to store persistent updated tabular data in Node.JS? [23:32] iammerrick: a flat file? [23:32] isaacs: jesusabdullah, qbert_: yeah, no ratings. [23:32] iammerrick: Redis? [23:32] isaacs: certainly, no anonymous ratings, and no negative ratings. [23:32] isaacs: just "I use this" [23:32] isaacs: that's all. [23:32] rhdoenges: sounds reasonable [23:33] isaacs: with some kind of link from the package to teh user, or vice versa [23:33] jonaslund: qbert_: i "reversed" the generation of a binary file partically from that r5rs file, the direct X docs and the open source chmc tool so it has gaps for sure [23:33] isaacs: not sure of the best way to do that in couch [23:33] qbert_: yes thats what I was thinking [23:33] iammerrick: isaacs: I referring to npm packages? [23:33] isaacs: qbert_: ^ [23:33] jesusabdullah: The *quickest* way? probably a flat file. If the sqlite bindings were better I'd suggest that too. [23:33] iammerrick: jesusabdullah: thank you. [23:33] qbert_: jonaslund, that file works with chmsee [23:33] thriple: issacs: aren't there already 'most depended on?', that's pretty much a rating [23:33] qbert_: oh thats true [23:33] rhdoenges: not really [23:34] jonaslund: qbert_: hmh ok, i guess i'll have to download chmsee and it's deps to see how it interprets that binary file [23:34] rhdoenges: what about packages that are commandline tools [23:34] jonaslund: qbert_: did it give any particular errors ? [23:34] qbert_: ill check it out on windows [23:34] rhdoenges: or whatever [23:34] malkomalko has joined the channel [23:34] qbert_: jonaslund, no :( [23:34] thriple: rhdoenges: true [23:34] qbert_: yeah [23:35] jonaslund: hmmm [23:35] qbert_: I was thinking just a +1 type of thing [23:35] jonaslund: actually i was thinking one thing earlier [23:35] qbert_: "I use this" [23:35] jonaslund: i'll try removing all magic chunks and just put in the stuff i know makes sense [23:35] rhdoenges: "I use this" sounds good [23:36] qbert_: http://groups.google.com/group/npm-/browse_thread/thread/aecc4caba09f2e7 , <-- some thoughts on it [23:36] isaacs: qbert_: yeah, i commented on it :) [23:37] qbert_: so I guess figure out the best way to do this in couch ? [23:39] jonaslund: qbert_: http://www.jlim.se/test2.chm [23:39] seb_m has joined the channel [23:39] jonaslund: i removed the chunks in the binary i didn't recgonize [23:39] mikegerwitz has joined the channel [23:39] mikegerwitz has joined the channel [23:40] qbert_: chmsee test2.chm -> Floating point exception [23:40] jameson: regression buggggg in node v0.4.10 [23:40] jameson: weeeeeeeeeeeeeeeeeeeeeeee [23:40] jameson: or in daemon [23:40] newy_ has joined the channel [23:40] jameson: ~_~ [23:40] jonaslund: qbert_: I guess the viewer depended on some stuff being in there [23:40] minimalist has joined the channel [23:40] softdrink: ACTION punches selenium in the head [23:40] jonaslund: qbert_: i'll generate 2 others with different sections [23:42] jonaslund: qbert_: http://www.jlim.se/testidx.chm http://www.jlim.se/testinfo.chm [23:45] zivester has joined the channel [23:45] Draggor has joined the channel [23:45] nuclearsandwich has joined the channel [23:49] dgathright has joined the channel [23:49] kdng-saleem3 has joined the channel [23:50] xerox: has anybody experience hangs using mongoose? [23:50] xerox: *experienced [23:51] xerox: more often than not, my queries just hang [23:51] softdrink: ok seriously, automated browser testing is still abysmal. [23:52] svenlito has joined the channel [23:52] catb0t has joined the channel [23:53] neorab has joined the channel [23:56] eee_c has joined the channel [23:56] _sorensen_: xerox: i have yet to have that problem [23:57] MrNibbles2 has joined the channel [23:57] anaio has joined the channel [23:58] jakehow has joined the channel [23:59] xerox: _sorensen_: *all* the time I write something new, it's really upsetting