[04:29] nodelog has joined the channel [04:29] nodelog has joined the channel [04:30] tshpaper has joined the channel [09:10] nodelog has joined the channel [09:13] Ori_p has joined the channel [09:13] andrewfff has joined the channel [09:14] incon has joined the channel [09:14] nmtmason has joined the channel [09:14] Gruni has joined the channel [09:15] mhausenblas has joined the channel [09:17] skm has joined the channel [09:18] unomi has joined the channel [09:19] andersfardigh has joined the channel [09:19] zpao has joined the channel [09:19] adambeynon has joined the channel [09:19] atiti has joined the channel [09:20] xla has joined the channel [09:22] andersfardigh has left the channel [09:24] jimt_ has joined the channel [09:27] abracsi has joined the channel [09:29] jankoprowski has joined the channel [09:29] matyr has joined the channel [09:30] tshpaper has joined the channel [09:31] altamic has joined the channel [09:31] altamic has joined the channel [09:33] rjrodger_ has joined the channel [09:33] jimt has joined the channel [09:35] tanepiper has joined the channel [09:36] tanepipe1 has joined the channel [09:37] msyea has joined the channel [09:38] AnimaSana has joined the channel [09:38] Gruni has joined the channel [09:43] slaskis: what does a ENOEXEC error mean? [09:43] incon has joined the channel [09:43] Nomon has joined the channel [09:43] liquidproof has joined the channel [09:43] dominictarr has joined the channel [09:49] jetienne_ has joined the channel [09:50] gozala has joined the channel [09:51] pdelgallego has joined the channel [09:51] void_ has joined the channel [09:53] dominic_ has joined the channel [09:56] teemow has joined the channel [09:59] mytrile has joined the channel [09:59] bzinger has joined the channel [09:59] seutje has joined the channel [10:02] matyr has joined the channel [10:02] nook has joined the channel [10:04] msyea has joined the channel [10:05] DrStrange has joined the channel [10:06] DrStrange: hello there! [10:06] matyr_ has joined the channel [10:06] Calli has joined the channel [10:06] Calli has left the channel [10:06] DrStrange: what's the accepted way of serializing a jsdom document? [10:07] DrStrange: in otherwords, how do I get my html *out*? [10:07] CalliNodi has joined the channel [10:08] asabil has joined the channel [10:08] MikhX has joined the channel [10:08] nmtmason has joined the channel [10:09] CalliNodi: Hi guys, I want to use http://learnboost.github.com/cluster/ on my server, but with the demo code on github, I get this error message: "Error: ENOTSUP, Operation not supported" Why? Node version v0.4.2. [10:10] Ond: I haven't been following the discussion here... is it understood why I might be receiving a "failed to parse json" error while trying to install an npm module [10:11] Ond: If so... how can I fix the module to make it accord to whatever changes have been done to npm [10:11] markwubben has joined the channel [10:12] Ond: (couldn't read package.json) [10:12] tbassetto has joined the channel [10:15] FireFly has joined the channel [10:17] herbySk has joined the channel [10:17] cognominal has joined the channel [10:22] SamuraiJack has joined the channel [10:23] unomi has joined the channel [10:25] Utkarsh has joined the channel [10:29] DrStrange: fairly inactive in here! [10:29] DJazz has joined the channel [10:29] saikat_ has joined the channel [10:30] samcday: It's offpeak in Node-land [10:30] charlenopires has joined the channel [10:31] mscdex: 5:34am EST [10:31] DrStrange: samcday: ah! I must be on the wrong side of the Atlantic. When is best time to ask questions? [10:31] mscdex: PST [10:31] mscdex: ;-) [10:31] samcday: ^ [10:32] stagas: just ask [10:32] Utkarsh_ has joined the channel [10:32] bx2 has joined the channel [10:32] DrStrange: I did! Just wondering when most people aren't asleep ;-) [10:32] hwinkel has joined the channel [10:33] stagas: use jquery, $('body').html() [10:33] DrStrange: really? [10:34] stagas: dunno if there's a native jsdom method for it [10:34] eventi has joined the channel [10:35] DrStrange: I'm just trying it now [10:38] andrewfff has joined the channel [10:39] mscdex: https://github.com/tmpvar/jsdom/blob/master/lib/jsdom/browser/domtohtml.js [10:39] mscdex: may be of some help [10:40] mscdex: there's domToHtml() [10:41] darkredandyellow has joined the channel [10:46] DrStrange: thanks mscdex, that looks interesting [10:47] mjr_ has joined the channel [10:47] nornagon_ has joined the channel [10:47] mhausenblas has joined the channel [10:50] saikat has joined the channel [10:50] CalliNodi has joined the channel [10:51] bastilian has joined the channel [10:52] DrStrange: mscdex: thanks! that's exactly what I need! [10:52] andrewfff has joined the channel [10:55] dingomanatee has joined the channel [10:56] mike5w3c has joined the channel [10:57] Utkarsh has joined the channel [10:59] Utkarsh has joined the channel [11:00] Sorella has joined the channel [11:02] Utkarsh_ has joined the channel [11:03] hellp has joined the channel [11:07] pascalopitz has joined the channel [11:11] matyr has joined the channel [11:12] Emmanuel__ has joined the channel [11:15] msyea has joined the channel [11:15] msch has joined the channel [11:16] hipe: i'm looking for something like a static site generator. diving into petrify. found some issues already. also looking for something like a documentation generator [11:16] xla has joined the channel [11:17] keyvan- has joined the channel [11:19] mischief has joined the channel [11:20] thalll has joined the channel [11:20] tahu has joined the channel [11:21] pascalopitz: hipe: static site generator ... as opposed to static file server? [11:21] mischievious has joined the channel [11:21] pascalopitz: as for generated docs, I quite like docco [11:21] Utkarsh__ has joined the channel [11:22] piscisaureus has joined the channel [11:22] Utkarsh has joined the channel [11:24] Utkarsh__ has joined the channel [11:27] Utkarsh has joined the channel [11:30] kristsk has joined the channel [11:30] matyr has joined the channel [11:33] fly-away has joined the channel [11:35] matyr_ has joined the channel [11:38] bergie has joined the channel [11:38] DJazz: anyone built smth cool with Node.js? [11:40] kristsk: cool like what? [11:41] Ori_p has joined the channel [11:43] pascalopitz: cool like what? [11:43] pascalopitz: haven't built a fridge yet [11:44] jetienne_: pascalopitz: humour :) [11:45] DJazz: im building a bot for a game [11:46] pascalopitz: a cool bot? [11:46] pascalopitz: what game? [11:47] Lorentz: colobot! [11:48] DJazz: Jazz Jackrabbit 2 [11:48] jetienne_: DJazz: url ? [11:48] Guest3853 has joined the channel [11:48] DJazz: to? [11:49] fermion has joined the channel [11:50] d0k has joined the channel [11:50] gaYak: Anyone got recommandations for real good JavaScript book? Not any framework related, but instead the language concepts, how callbacks are implemented etc. stuff [11:50] dyer has joined the channel [11:51] froak has joined the channel [11:51] DJazz: jetienne_: what url? [11:51] daveluke has joined the channel [11:52] kristsk: to the rabbit. [11:52] jetienne_: DJazz: to your bot and/or the game [11:52] sveimac has joined the channel [11:52] fly-away: gaYak, Pro_JavaScript_.rar [11:52] fly-away: =) [11:53] CalliNodi has joined the channel [11:54] fly-away: Apress "Pro JavaScript Design Patterns" I mean [11:54] nivoc has joined the channel [11:55] DJazz: jetienne_: I cant give the source, ppl would make all kinds of hacks then, the game's stie is http://jazz2online.com [11:55] jetienne_: fly-away: seems like an interesting book [11:55] hipe: pascalopitz: sure a static site generator. like jekyll or nanoc in ruby. docco i will check out thx ! [11:57] gaYak: fly-away: Yeah, I think I can buy one book ;) [11:58] fly-away: gaYak, you can even download it ) [11:59] pandeiro has joined the channel [11:59] pascalopitz: hipe: don't know about that. did you check the wiki list of modules? [11:59] gaYak: fly-away: I prefer reading a book in paper mode, haven't tried Kindle though [12:00] gaYak: (although it's difficult to search stuff) [12:00] fly-away: ok [12:00] pascalopitz: hipe: http://search.npmjs.org/#/boxer [12:05] eee_c has joined the channel [12:05] msyea has joined the channel [12:05] mhausenblas has joined the channel [12:07] bwinton has joined the channel [12:07] wvl has joined the channel [12:07] tcurdt has joined the channel [12:08] unomi has joined the channel [12:09] pascalopitz: mhh, boxer seems to be broken [12:11] venom00ut has joined the channel [12:12] cognominal: how come I can't configure node.js using --with-dtrace ? [12:12] tcurdt has left the channel [12:19] pascalopitz: on what platform? [12:19] pascalopitz: does it throw an error? [12:21] sveimac has joined the channel [12:21] cognominal: oops, forgot to say on Mac 10.6.6 [12:22] cognominal: /Users/stef/git/node/wscript:252: error: DTrace support only currently available on Solaris [12:22] cognominal: I am curious to know why support not available on macs [12:22] floby has joined the channel [12:23] bastilian_ has joined the channel [12:30] ivan has joined the channel [12:30] xandrews has joined the channel [12:30] hellp has joined the channel [12:30] mnot has joined the channel [12:31] cilantro has joined the channel [12:32] pascalopitz: no idea [12:32] mdl has joined the channel [12:32] mdl has left the channel [12:32] fairwinds has joined the channel [12:33] pascalopitz: hipe: now I want a static site generator ... grmpff .... might have to write my own :( [12:33] kristsk: thats horrible! [12:33] pascalopitz: yep ... it is ... [12:34] redmind has joined the channel [12:34] pascalopitz: well, I am chruning out templates at the moment and they're all the bloody same [12:34] pascalopitz: so a tool like that would make a difference [12:34] pascalopitz: :/ [12:34] hellp has joined the channel [12:36] mlncn has joined the channel [12:38] hipe: pascalopitz: i just added a patch to this so the example works: https://github.com/caolan/petrify [12:42] pascalopitz: cool, lemme check if I can use that [12:43] ivan has joined the channel [12:43] davglass has joined the channel [12:43] dewey_ has joined the channel [12:44] dewey_: guys, is it easy to get a certain part of an image, which is on the local disk, and get the rgba pixel by pixel? [12:44] muk_mb has joined the channel [12:44] dewey_: I know how I would do it in actionscript, not sure how I would achieve it in node [12:45] SubStack: what type of image? [12:45] dewey_: jpg [12:45] dnolen has joined the channel [12:45] pngl has joined the channel [12:45] pascalopitz: hipe: what did you patch? [12:45] hipe: pascalopitz: i opened an issue, i made a pull request. i patched about 4 lines in examples/ change "meta" -> "metadata" [12:45] hipe: in two files [12:45] mjr_ has joined the channel [12:46] SubStack: node-canvas /might/ have some image loading code all up in it [12:46] hipe: dewey_: i've done it w/ "motion", i'm quite certain it's psosible in imagemagik. so maybe look for node / imagemagick bindings [12:47] pascalopitz: ah, I C [12:50] dewey_: SubStack hipe what I want to do is get a certain part of an image and compare that to another image that I have [12:50] dewey_: will check both of you suggestions [12:50] hipe: pascalopitz: " as for generated docs, I quite like docco" <-- can we use docco to generate docs for plain old (node.js) javascript as opposed to coffeescript? [12:50] pascalopitz: yep [12:50] mape: Anyone had issues with Connect and Caught exception: TypeError: Cannot read property 'Content-Type' of undefined [12:50] mape: ? [12:50] pascalopitz: just normal // will do [12:51] kwik101 has joined the channel [12:51] pascalopitz: it'll leave /* */ in the source [12:51] pascalopitz: have a look at https://github.com/pascalopitz/nodestalker [12:51] pascalopitz: that's where I used it ... quite neat [12:52] pdelgallego has joined the channel [12:52] hipe: dewey_: when you say certain part, what do you mean? a pre-determined rectangle of the the imae with a certain x,y,width, height? [12:52] dewey_: hipe: yes [12:53] unomi has joined the channel [12:53] hipe: dewey_: image magic has a crop which will get you close, you can proably just write the crop to a buffer and etc. i hope it lets u iterate thru pixel by pixel, https://github.com/rsms/node-imagemagick [12:55] dewey_: hipe: thinking of cropping the image and then use http://www.imagemagick.org/script/compare.php [12:55] hipe: that's probably what i'd try first, too ;) [12:56] dyer has joined the channel [13:00] aphelion has joined the channel [13:01] mape: the hm module for node is really nice [13:01] mape: *gm [13:01] mape: ch [13:01] mape: http://aheckmann.github.com/gm/ [13:01] mape: has some neat chaining [13:01] boaz has joined the channel [13:02] zzak: hipe?! [13:03] hipe: zzak: is it u !!?? haha [13:03] lukegalea has joined the channel [13:05] mlncn has joined the channel [13:06] zzak: hipe: haha sup bro :) [13:11] jashkenas has joined the channel [13:12] unomi has joined the channel [13:15] matschaffer has joined the channel [13:15] eee_c has joined the channel [13:18] Poetro has joined the channel [13:22] keyvan_ has joined the channel [13:22] CalliNodi has joined the channel [13:23] altamic has joined the channel [13:23] altamic has joined the channel [13:23] paulrobinson has joined the channel [13:25] daveluke has joined the channel [13:26] DTrejo has joined the channel [13:26] mrlase has joined the channel [13:27] Ori_p has joined the channel [13:27] dominic_ has joined the channel [13:28] heavysixer has joined the channel [13:31] pascalopitz: grmpf ... just trying node-coffee and -w doesn't work properly [13:31] pascalopitz: :( [13:33] thalll has joined the channel [13:34] winning: pascalopitz: getting port already in use? [13:34] jtsnow has joined the channel [13:34] pascalopitz: winning: what is getting port? [13:35] pascalopitz: is it not just "coffe -w /pathto/file" [13:35] winning: are you getting an error on the console about the port being in use when you change the source? [13:35] pascalopitz: well, it just outputs some stuff [13:35] pascalopitz: that in the script is a console.log [13:36] winning: oh so it doesn't start? [13:36] pascalopitz: well, it does [13:36] pascalopitz: my last block: [13:36] pascalopitz: if args["-d"] [13:36] pascalopitz: parseDir args["-d"] [13:36] pascalopitz: else [13:36] pascalopitz: console.log "Usage: genstatic.js - /path/to.dir" [13:36] pascalopitz: ^Cmbp:genstatic pascalopitz$ coffee -w lib/genstatic.coffee [13:36] pascalopitz: Usage: genstatic.js - /path/to.dir [13:36] pascalopitz: ???? [13:37] pascalopitz: when I do -c it compiles it alright [13:37] winning: nothing wrong with that - that's what your logic says to do [13:38] pascalopitz: ? it's meant to watch the file and do equiv of -c, no? [13:38] pascalopitz: when I change the .coffee file? [13:38] drudge: bah, what is up with npm [13:38] pascalopitz: or am I completely misunderstanding what it should do? [13:39] drudge: npm@0.3.14 not compatible with your version of node / Requires: node@0.4 || 0.5 / You have: node@v0.4.2 [13:39] winning: pascalopitz: i think you're not - what does it do without -w? [13:40] pascalopitz: well, if I do coffee -c file it compiles it alright [13:40] pascalopitz: if I do coffee -w file it just spits out messages when I change the file, but doesn't change the compiled file [13:40] pascalopitz: grmpf [13:40] winning: no -c - no -w just 'coffee filepath' [13:41] ximo has joined the channel [13:42] pascalopitz: ah, lemme try [13:42] winning: ok -w doesn't recompile, just re-interpret [13:42] pascalopitz: spits out that message [13:42] winning: that would be nice for debugging... [13:42] pascalopitz: ahhhhh [13:42] winning: you're misunderstanding the arguments... also try #coffeescript [13:42] pascalopitz: I have to do -w -c\ [13:43] pascalopitz: thanks, I was being thick [13:43] winning: :) [13:43] pascalopitz: great pointer, thanks [13:45] msucan has joined the channel [13:46] jpstrikesback has joined the channel [13:48] bradleymeck has joined the channel [13:49] winning: http://pastie.org/1632479 [13:49] eee_c has joined the channel [13:50] winning: getting "GET /test route requires a callback [13:50] mscdex: node.js rules! [13:50] winning: weird - i've not used 'route middleware' but it's almost straight from the examples [13:52] jlecker has joined the channel [13:53] paulrobinson has left the channel [13:53] miketaylr has joined the channel [13:54] nivoc has joined the channel [13:55] eee_c1 has joined the channel [13:55] jetienne_: where is v8 bot ? [13:56] Ond: Dunno is spidermonkey bot still around [13:56] mscdex: gbot2 is still here [13:57] floby: what does gbot2 do ? [13:57] mscdex: spidermonkey js evaluator [13:57] Ond: Oh sorry I thought this was #javascript, where js (spidermonkey bot) resides [13:57] mscdex: i think [13:57] Ond: Dunno if it hangs out in here [13:57] jetienne_: gbot2: {a: 7, get b() {return this.a + 1;}, set c(x) {this.a = x / 2}}; [13:57] floby: yeah it's here [13:57] mikegerwitz: js: 'foo' [13:57] gbot2: mikegerwitz: "foo" [13:57] floby: must be AFK :p [13:57] floby: oh [13:57] jetienne_: js: {a: 7, get b() {return this.a + 1;}, set c(x) {this.a = x / 2}}; [13:57] mscdex: ;) [13:57] gbot2: jetienne_: Error: SyntaxError: missing ; before statement: {a: 7, get b() {return this.a + 1;}, set c(x) {this.a = x / 2}}; ...........^ [13:58] floby: gbot2: var hi = 'coucou'; [13:58] jetienne_: js: var b = {a: 7, get b() {return this.a + 1;}, set c(x) {this.a = x / 2}}; [13:58] gbot2: jetienne_: undefined [13:58] jmar777 has joined the channel [13:58] rfay has joined the channel [13:58] jetienne_: floby: it isnt too well config. one need to use js: prefix [13:59] floby: jetienne: stoopid bot [13:59] jetienne_: getter/stter syntax puzzle me [13:59] floby: jetienne: the mozilla specifig one or the standard one ? [13:59] floby: gbot2: js: var hi = 'coucou'; print(hi); [14:00] jiveB_ has joined the channel [14:00] jetienne_: floby: the , get b() in {a: 7, get b() {return this.a + 1;}, set c(x) {this.a = x / 2}}; [14:00] jetienne_: js: console.log("hi"); [14:00] gbot2: jetienne_: Error: ReferenceError: console is not defined [14:00] floby: jetienne: I think this one is spidermonkey specific [14:00] jetienne_: floby: what is the official syntax [14:00] SamuraiJack has joined the channel [14:00] floby: jetienne: __defineSetter__ ? [14:01] mikegerwitz: jetienne_: you had it right [14:01] jetienne_: floby: o [14:02] mikegerwitz: floby: __defineSetter__ is the same as { set foo() ... }. But you need to use it if you're defining a setter outside of the intiial object declaration [14:02] mikegerwitz: floby: Or assigning a prop name from a var :) [14:02] fumanchu182 has joined the channel [14:03] floby: mikegerwitz: I know. I'm looking at mozilla doc to see if the other one is mozilla specific [14:03] mikegerwitz: floby: Oh. Nope, works in v8 [14:03] jetienne_: floby: get b(){} in a hash... is yuk [14:03] jetienne_: like i change the syntax [14:04] wdperson has joined the channel [14:04] jetienne_: i dont like change :) [14:04] Remoun has joined the channel [14:05] floby: mikegerwitz: how about that. I never used it. always use the __defineGetter__ one. [14:05] davglass has left the channel [14:05] mikegerwitz: floby: I generally have to do the same, since it blows up older browsers [14:05] aabt has joined the channel [14:06] floby: mikegerwitz: maybe because of that. I was so used to avoid it that I classified it as non-standard in my head [14:06] mikegerwitz: floby: And IE8 only supports getters/setters on DOM objects ._. [14:06] davidsklar has joined the channel [14:06] floby: jetienne: I also find the syntax disgusting [14:06] mikegerwitz: floby: It's standardized in ECMAScript 5 [14:06] bradleymeck: mikegerwitz, object.defineproperty works [14:07] floby: bradleymeck: oh Yeah, forgot that one too [14:07] mikegerwitz: bradleymeck: for getters/setters in IE8 on non-DOM objects? [14:07] mikegerwitz: bradleymeck: or just in general? heh [14:07] strmpnk has joined the channel [14:07] eee_c has joined the channel [14:07] bradleymeck: mikegerwitz, ive used it on random normal objects in ie8 so i would presume it works all the time on non-dom [14:08] mikegerwitz: http://blogs.msdn.com/b/ie/archive/2009/01/13/responding-to-change-updated-getter-setter-syntax-in-ie8-rc-1.aspx [14:09] mikegerwitz: I'm unsure if it's changed since then. I haven't tried defineProperty in IE8 for getters/setters though..I'll give that a shot.. [14:09] mikegerwitz: partial support is more annoying to handle than no support [14:09] winning: jetienne_: is it possible to define a getter or setter for foo[x]? [14:09] mikegerwitz: winning: foo[x].__defineGetter__() :) [14:09] winning: so it does quux(x) for example? [14:09] mikegerwitz: Oh. [14:11] mikegerwitz: winning: nvm now I'm confused what you asked. [14:11] winning: lol [14:11] sveimac has joined the channel [14:12] tanepiper: Anyone using socket.io over SSL? [14:12] dewey_: could someone explain me the child_process exec? The childprocess is outputting an message which I would like to read [14:12] marcello3d: weird, my convo from last night isn't on debuggable [14:12] dewey_: but I'm getting a part of it @ stout and a part @ stderr [14:12] floby: tanepiper: I was going to say yes, but not quite. I was using stunnel [14:12] seivan has joined the channel [14:12] dewey_: but it's not an error [14:13] EyePulp has joined the channel [14:13] doup has joined the channel [14:13] floby: dewey_: Are you sure that nothing gets to the stderr ? try running the command from bash and redirect streams to 2 different files [14:13] incon has joined the channel [14:13] winning: mikegerwitz: want to say z = foo[x] and have quux(x) {return frobnicate(x)} ... sry typing one hand with squirming baby [14:14] marcello3d: if anyone is curious, I mashed up npm with github last night: top packages: https://gist.github.com/854199 keyword deathmatch: https://gist.github.com/854219 the source: https://gist.github.com/854229 [14:14] dewey_: floby: no not sure, the normal command just give me an output so I thought that wasn't an error (it's the correct output) [14:15] bradleymeck: winning, look into es harmony proxies, couple implementations are lying about [14:15] marcello3d: keyword deathmatch is probably the most interesting bit [14:15] floby: dewey_: maybe but in a standard shell both stdout and stderr get printed to the terminal. You can redirect the streams with > out.stdout 2> out.stderr [14:15] marcello3d: oh and here is the raw data, if you don't want to wait through github's slow 60 calls/minute: https://gist.github.com/854171 [14:16] bradleymeck: mikegerwitz, seems it only works in IE8 strict + standard + non-compat mode [14:16] dewey_: floby: you were right, it's the same output [14:17] dewey_: floby: it's imagemagick, and the returned output isn't an error.. so that's imagemagick error right [14:17] boaz has joined the channel [14:17] eee_c1 has joined the channel [14:17] floby: dewey_: I guess. I never used it. But one of them ought to be your useful output [14:18] bradleymeck: ACTION cant wait to support all of the modes of IE9 [14:19] mikegerwitz: bradleymeck: Because the software vendor of one of the systems here at work is completely incompetant, preventing us from upgrading to IE8, we'er stuck supporting all the way back to IE6 ._. [14:19] floby: dewey_: what is your output? is one of them your image? [14:19] wdperson has joined the channel [14:19] eyesUnclouded has joined the channel [14:19] dewey_: floby: no, a summary of the channel distortion of a compare action [14:20] bradleymeck: miketgerwitz have you looked into aspect oriented js stuff? its a bit slower but makes life easier for some things [14:20] dewey_: floby: it's not a problem, will do a regex on the output to find out if it's the correct one.. just curious what went "wrong" [14:20] floby: dewey_: ok. [14:22] matschaffer has joined the channel [14:22] eee_c has joined the channel [14:22] floby: Question ! [14:23] mikegerwitz: bradleymeck: I haven't read into it much, no [14:23] floby: Is the best way to know if I have the rights to read a file to open() it ? Or is there another way ? [14:23] kenbolton has joined the channel [14:24] ivan has joined the channel [14:24] doup has left the channel [14:24] trotter has joined the channel [14:25] strmpnk has joined the channel [14:25] unomi has joined the channel [14:29] nonnikcam has joined the channel [14:30] eee_c has joined the channel [14:30] strmpnk has joined the channel [14:31] mikegerwitz: bradleymeck: Ah, after looking at aspects, it seems similar to what I accomplish with Observer, Strategy or Decorator patterns in OO. Thanks for pointing that out though..I'll read into it further. [14:34] marcello3d: any thoughts? :) [14:34] kenbolton has joined the channel [14:35] jdalton has joined the channel [14:36] DJazz has joined the channel [14:38] thecarlhall has joined the channel [14:38] eyesUnclouded has joined the channel [14:38] darren_ has joined the channel [14:39] willwhite has joined the channel [14:39] saschagehlich has joined the channel [14:42] amacleod has joined the channel [14:45] kriszyp has joined the channel [14:45] bradleymeck: marcello3d its interesting :) [14:48] msch has joined the channel [14:49] mike5w3c has joined the channel [14:50] sotovoce has joined the channel [14:50] stagas: poll: what methods do you think are missing from core? [14:50] Epeli: cookie-node killed node-twitter: "This library has been deprecated. Please use `npm install cookies` instead." [14:52] luke` has joined the channel [14:52] floby: stagas: the ability to read from streams line by line [14:52] floby: stagas: as I did in my module `npm install lines` [14:53] GriffenJBS has joined the channel [14:55] GriffenJBS: Do these preform the same? dgram.bind(2100); dgram.bind(2100, '0.0.0.0');? [14:55] GriffenJBS: s/pre/per/ [14:56] NuckingFuts has joined the channel [14:56] mscdex: GriffenJBS: i believe so [14:57] GriffenJBS: ... I have a bug somewhere I know the packets are hitting the box, one util recieves them, the new one doesn't (it's not a firewall issue) [14:57] GriffenJBS: recieves?! wtf is up with my typing [14:58] stagas: floby: nice one [14:58] willwhite has joined the channel [14:58] tfe_ has joined the channel [14:58] floby: stagas: thanks [14:59] pngl has joined the channel [14:59] GriffenJBS: ... problem fixed, the udp socket was listening for an event called 'messge', too bad it took me two days to find that error [14:59] stagas: floby: basically I wanted to make a few examples for my x module https://github.com/stagas/x [15:00] GriffenJBS: mscdex: thanks for your time [15:00] mikegerwitz: stagas: On the lines of what floby mentioned (for which I completely agree) - I'd just implement more higher-level APIs. I know some I've spoken to have been hesitant to get into node simply because of how much effort it takes to get POST vars (in PHP it's just $_POST, in node you have to listen on 'data', etc) [15:00] mikegerwitz: stagas: Don't get me wrong, I loev the flexibility when I want it :) [15:00] mikegerwitz: love* [15:01] eee_c has joined the channel [15:01] mikegerwitz: more high-level* [15:01] kristsk: write a wrapper around formidable or somthint then. [15:02] floby: mikegerwitz: I use my lines module on EVERY SINGLE PROJECT. I mean, it's really intuitive to separate your data in a file by new lines [15:02] mikegerwitz: floby: Yeah, I do a lot of shell scripting so line-by-line parsing is very common for me as well [15:03] floby: I did once propose a patch to the core with this. but I had been told that it should go in userland [15:03] mikegerwitz: kristsk: If node wants to take the approach of developing only a low-level library, that's fine. But I've noticed some convenient interfaces popping up that makes life easier. I do not want a simple projec tot have 500 dependencies [15:04] seivan has joined the channel [15:04] floby: mikegerwitz: most of the dependencies are transitive dependencies. Basically you explicitly install express, [15:04] AAA_awright_ has joined the channel [15:04] floby: mikegerwitz: and express takes care of its dependencies [15:04] mikegerwitz: kristsk: Also, by introducing a dependency, you rely on the maintainer to actually keep it up to date. If they stop, and it no longer works with new versions of node, suddenly you're screwed. [15:05] tanepiper: "Added server-side usage support for ExtJS4: hammerJS and nodeJS tested" [15:05] tanepiper: from the release notes, woop! [15:05] ajashton has joined the channel [15:06] floby: mikegerwitz: true. But less true with a stable core project. This problem happens a lot with the current evolution of node. but it will get better with non-beta version I guess [15:06] mikegerwitz: floby: Oh, yeah I'm aware :) I didn't mean it like that. I meant if I need a library to process HTTP requests, another for reading lines, another for sprintf (please add sprintf to the core), etc..that's a lot. [15:06] malkomalko has joined the channel [15:06] malkomalko: brianc: https://github.com/didit-tech/FastLegS [15:06] floby: sprintf ? meh, why not [15:06] malkomalko: released our basic Postgres ORM [15:06] malkomalko: still very young at 0.0.2, but have a looksee [15:07] floby: wow, that was a massive disconnect [15:07] floby: thinking of it, sprintf is pretty useful, and all the printf family. works great with localization [15:08] mikegerwitz: floby: Yep, time will tell :) Once I see an author keeps up a module for years, and that it has a solid user base, then it's safe to say that even if they no longer support it, someone will fork it. Especially if I'm using node at work, my employer can't afford to have me maintain a library on top of the existing projects. [15:08] Niet has joined the channel [15:08] stagas: mikegerwitz: I prefer having node low level so people can innovate rather than rely on a standard set of functions [15:08] mikegerwitz: stagas: Fair enough. What about sprintf, then? ;) [15:08] kawaz_work has joined the channel [15:08] brianc: malkomalko: hot [15:08] floby: stagas++ [15:08] floby: I miss v8bot é_è [15:09] mattikus has joined the channel [15:09] floby: mikegerwitz: yeah, there are a few teams that are quite trustworthy, like senchalabs and learnboost. They use node for their own business most the time [15:10] springmeyer has joined the channel [15:10] mlncn has joined the channel [15:10] pascalopitz: grmpf ... reg exp [15:10] stagas: mikegerwitz: I've never had the need to use something like sprintf in my projects [15:10] pascalopitz: does multiline not work in node.js? [15:10] floby: stagas: l8n ! [15:11] floby: pascalopitz: not implemented by node.js. It's v8 job. try the /m flag [15:11] brianc: malkomalko: how come you no use parameterized queries? [15:11] pascalopitz: I did ... [15:11] pascalopitz: reg = new RegExp "(config\:\ \{.+\})", "m" [15:11] floby: pascalopitz: then something's might be wrong. [15:11] pascalopitz: works in Reggy ... grmpfff [15:12] marcello3d: pascalopitz: double escape \ [15:12] marcello3d: if you're using ""s [15:12] pascalopitz: doh ... of course [15:12] marcello3d: or do /(config\:\ \{.+\})/m [15:12] wao has joined the channel [15:13] floby: gbot: js: var re = /config:\\{.+\}/m ; [15:13] marcello3d: does : need to be escaped? [15:13] marcello3d: and space? [15:13] floby: ':' doesn't need escaping [15:13] TheEmpath2 has joined the channel [15:13] mikegerwitz: stagas: part of my frustration with the lack of sprintf is that console.log() supports printf-style output. [15:13] mikegerwitz: stagas: but nothing else does : / [15:14] mikegerwitz: stagas: it's like it's taunting me! heh [15:15] brianc: malkomalko: it looks nice! [15:15] springmeyer has left the channel [15:15] floby: mikegerwitz: that's because console is copying the firebug console. and they implemented prtinf-style formatting. They added %o for object inspection though which is not in node.js [15:15] GriffenJBS: mike: have you looked at how console.log handles it? [15:15] huuggee has joined the channel [15:15] ncb000gt has joined the channel [15:15] xandrews has joined the channel [15:15] malkomalko: Thanks brianc :) [15:15] malkomalko: still very young [15:15] mikegerwitz: GriffenJBS: I have not. But it doesn't handle it well, because it doesn't support the standard printf-style [15:15] malkomalko: we'll have some more interesting stuff coming out, but there's a lot of tests, and it works pretty well [15:15] olegp has joined the channel [15:16] GriffenJBS: I wanted printf for something, found it in console.log, ripped the guts out and turned it into sprintf [15:16] floby: GriffenJBS: published it in npm? =) [15:16] hornairs has joined the channel [15:16] Aikar_ has joined the channel [15:16] V1 has joined the channel [15:16] mikegerwitz: GriffenJBS: heh, that's an option. :) I'm just saying it shouldn't be necessary for something as popular and standard as sprintf [15:16] GriffenJBS: careful, if you can't be bothered to read the code, or the manual, I can't be bothered to talk and write your code for you [15:16] V1: oh, The ChanServ notice is out of date [15:17] cnu has joined the channel [15:17] floby: >< [15:17] brianc: malkomalko: I been working on libpq bindings. They're getting pretty close to an alpha state. They'll be in the same package and you can use pure javascript with "require('pg')" or try out the native with "require('pg/native')"...same API [15:17] GriffenJBS: floby, nah, I needed it for a once off, never used it agaain [15:17] V1: ryah: ^ ChanServ: [#node.js] Visit the wiki page https://github.com/ry/node/wiki <-- Shouldn't it be updated to /joyent/node/wiki ? [15:17] justis has joined the channel [15:17] pascalopitz: marcello3d: dull ... withough " still broken [15:18] pascalopitz: reg = /(config\:\s\{.+\})/m [15:18] mikegerwitz: GriffenJBS: i use http://phpjs.org/functions/sprintf:522 [15:18] floby: pascaloptiz: are you sur that ':' needs escaping ? [15:18] mikegerwitz: floby, rather [15:18] comster1 has joined the channel [15:19] janne- has joined the channel [15:19] mavinf has joined the channel [15:19] tg has joined the channel [15:19] pekim_ has joined the channel [15:19] tmm1- has joined the channel [15:20] floby: mikegerwitz: if it's not on npm yet, it should be! Don't want to rip off the code from the author though [15:20] marcello3d: pascalopitz: what string are you testing on? [15:20] tmzt_ has joined the channel [15:20] marcello3d: there's 3 sprintf npms [15:20] marcello3d: sprintf, printf, format [15:20] marcello3d: just grabbed sprintf myself last night [15:20] marcello3d: to use on the npm-github mashup [15:21] rjbs- has joined the channel [15:21] pascalopitz: marcello3d: https://gist.github.com/5eb3fb1b08dadeb32df1 [15:21] hobs_ has joined the channel [15:21] floby: marcello3d: what is this mashup ? [15:21] borgling has joined the channel [15:21] sverrejj has joined the channel [15:21] floby: mikegerwitz: nice. I'll keep it for later [15:21] marcello3d: pascalopitz: and what results are you getting? [15:22] papyroma1cer has joined the channel [15:22] KrooniX_ has joined the channel [15:22] marcello3d: floby: https://gist.github.com/854199 https://gist.github.com/854219 https://gist.github.com/854229 https://gist.github.com/854171 [15:22] pascalopitz: ACTION is normally not useless with reg exps [15:23] mnbvasd has joined the channel [15:23] GriffenJBS: mikegerwitz: look at the source tree ./lib/console.js, function format(f), and usage in console.log [15:23] aphelion has joined the channel [15:23] aphelion has joined the channel [15:23] marcello3d: console.log supports printf? [15:23] GriffenJBS: marcello3d: a basic form [15:23] floby: marcello:3d: printf formatting yes [15:24] floby: I prefer the one on phpjs [15:24] marcello3d: oh [15:24] mikegerwitz: GriffenJBS: Yeah I took a look, but it's very primitive [15:24] marcello3d: super super lame printf [15:24] marcello3d: var formatRegExp = /%[sdj]/g; [15:24] marcello3d: hah [15:24] marcello3d: not even worth pretending with that [15:24] floby: pascalopitz: I don't understand what you're trying to do [15:24] GriffenJBS: mikegerwitz: yes, almost useless, but saves you from null and undefined, lol [15:24] mikegerwitz: doesn'ts upport all the standard ones, like [15:24] marcello3d: what makes printf great is the alignment stuff [15:25] marcello3d: and number formats [15:25] mikegerwitz: marcello3d: yes those were going to by my examples :) [15:25] GriffenJBS: mikegerwitz: so did you ever look at the 3 examples in npm? [15:25] mikegerwitz: If you have to do that without sprintf, it's a mess [15:25] pascalopitz: floby: grab an embedded config block out of a file [15:25] jakob has joined the channel [15:26] GriffenJBS: mikegerwitz: that is true, but html, and many other things don't care about whitespace or alignment [15:26] GriffenJBS: doesn't help with the binary buffers I'm doing [15:26] marcello3d: bummer none of the printf modules show up on https://gist.github.com/854219 [15:26] themcgru` has joined the channel [15:26] herenowc1der has joined the channel [15:26] Gregor` has joined the channel [15:26] nilyt_ has joined the channel [15:26] MikeW_ has joined the channel [15:26] mape_ has joined the channel [15:26] sigue has joined the channel [15:26] tbassetto has joined the channel [15:26] mikegerwitz: GriffenJBS: My argument was that it shouldn't need to be a dependency. sprintf is a core library function in languages like C. [15:26] Atm0z has joined the channel [15:26] jspiros has joined the channel [15:26] jesusabd1llah has joined the channel [15:26] lianj_ has joined the channel [15:26] throughnothing_ has joined the channel [15:26] mikegerwitz: GriffenJBS: For logging, CLI, etc [15:26] geoffeg has joined the channel [15:26] kwargs_ has joined the channel [15:26] shajith_ has joined the channel [15:26] jimmyz2 has joined the channel [15:26] zaiste has joined the channel [15:26] mcroydon has joined the channel [15:26] DrStrange has joined the channel [15:26] superdug has joined the channel [15:26] spaceinv1der has joined the channel [15:26] gormer has joined the channel [15:26] disq has joined the channel [15:26] disq has joined the channel [15:26] floby: pascalopitz: is this always a single lever JSON object ? if it's not, you can hardly do it wiith regexes, and if it is, you can do it without [15:26] GriffenJBS: :-) I'm using js on the NDS and node for the server [15:26] pzich_ has joined the channel [15:26] rbranson has joined the channel [15:26] Poetro has joined the channel [15:26] jstritar has joined the channel [15:26] rphillips_ has joined the channel [15:26] Yuffster has joined the channel [15:26] mape_ has joined the channel [15:27] pastak has joined the channel [15:27] kawaz_home has joined the channel [15:27] zzak: freenodeeeeeeeee [15:27] Promethet has joined the channel [15:27] stynx__ has joined the channel [15:27] floby: mikegerwitz++ [15:27] GriffenJBS: no it should not be in core, you've never worked on embeded devices [15:27] halfhalo_ has joined the channel [15:27] pascalopitz: it's always config: { } on top of the file [15:27] sstreza has joined the channel [15:27] MaSch has joined the channel [15:27] yhahn has joined the channel [15:27] aways|bnc: ACTION bye all good week end [15:27] GriffenJBS: only what is required (ironic?) should be in core, import everything else [15:28] devinus has joined the channel [15:28] floby: pascalopitz: if the config block is always in first position you can str.indexOf('}') the position of the closing bracket [15:28] marcello3d: griffen: then should console.log not support printf at all? [15:28] mikegerwitz: GriffenJBS: node doesn't take that approach, though ;) [15:28] GriffenJBS: there is a log in node core I'd like to see removed [15:28] mikegerwitz: GriffenJBS: if it did, the http module shouldn't exist [15:28] rudebwoy has joined the channel [15:28] GriffenJBS: s/log/lot/ [15:28] GriffenJBS: I agree [15:28] webben has joined the channel [15:28] pascalopitz: yes, but I want to know why the reg exp isn't working .... mind over matter here, no? [15:28] GriffenJBS: well shouldn't exist in core [15:29] marcello3d: pascalopitz: are you testing your regexp on a REPL [15:29] floby: pascalopitz: oh, sure =) [15:29] tswicegood_ has joined the channel [15:29] pascalopitz: I usally use Reggy [15:29] mikegerwitz: GriffenJBS: And I'm honestly alright with that approach if node decided to take that. But I'm not comfortable using random modules, not knowing if they'll be maintained 5 months from now, in projects for my employer. Is my point :) [15:29] marcello3d: your problem likely is that . doesn't match newlines, right? [15:29] floby: pascalopitz: importing it in the REPL; things just got real [15:29] GriffenJBS: I've got to get back to work, mikegerwitz take care [15:29] c4milo has joined the channel [15:29] mikegerwitz: GriffenJBS: see ya [15:29] GriffenJBS has left the channel [15:30] pandeiro has joined the channel [15:30] themiddleman_ has joined the channel [15:30] benatkin has joined the channel [15:30] pascalopitz: I think that'll be it ... but I tried [.\n\r]+ ... not working either [15:30] floby: mikegerwitz: I can assume that sprintf won't have to be maintained anytime soon =) but it sure should be in core [15:30] incon has joined the channel [15:30] mikegerwitz: floby: heh, yes I agree :) in that case [15:31] ncb000gt: mikegerwitz: you should use the tools for the job, if that requires maintaining something then why not, it usually isn't that big a task to fix something up [15:31] marcello3d: pascalopitz: sign off irc and just go at it. ;D [15:31] marcello3d: you'll figure it out eventually [15:31] cha0s has joined the channel [15:31] cha0s has joined the channel [15:31] pascalopitz: hehe, sure [15:31] marcello3d: wonder if anyone's ever made a regexp debugger [15:31] pcardune has joined the channel [15:31] samsonjs has joined the channel [15:32] dispalt has joined the channel [15:32] pascalopitz: not signiung [15:32] pascalopitz: [15:32] ncb000gt: mikegerwitz: I'm pretty sure we all have a lot of projects at work but that shouldn't be a reason to stop you from using something [15:32] pascalopitz: not signing off though [15:32] pascalopitz: ] [15:32] ajashton has joined the channel [15:32] pascalopitz: keys stuck :/ [15:32] mikegerwitz: ncb000gt: Well for something like sprintf, that's fine, yes. But take a web framework for example. Let's say you base your entire project off of it. Then it's no longer maintained. A new version of node breaks it. Suddenly you can't upgrade to new versions of node and you haven't the time to maintain both projects. If it's a personal project, that's an optioon. But you're at the mercy of your employer. [15:32] ncb000gt: And, if it turns out that something isn't right or doesn't fit your project anymore, it shouldn't be hard to change out [15:32] mikegerwitz: ncb000gt: depends on what you're using. If it can be abstracted reasonably well, then you are correct [15:33] floby: mikegerwitz: that's just opensource issues [15:33] CIA-34 has joined the channel [15:33] ncb000gt: mikegerwitz: i understand your point but you could use the same argument about refactoring, "I can't do it because I'm too busy". If it's necessary, just do it [15:33] MaSch has joined the channel [15:34] daveluke has joined the channel [15:34] ncb000gt: and if you communicate things correctly to your boss they shouldn't be surprised if you have to update something. [15:34] Slashbunny has joined the channel [15:34] danielrmz has joined the channel [15:35] mjijackson has joined the channel [15:35] poppiez has joined the channel [15:35] ncb000gt: mikegerwitz: "We used because it offered us This, That, Other thing but it turns out it's no longer a good fit or would require us to spend two weeks rewriting it... the alternative takes 1 week to implement, what would you like to do?" [15:35] brainproxy_ has joined the channel [15:36] mikegerwitz: ncb000gt: Yeah refactoring or a fix is fine. But we can't foresee how much fixing a project may potentially need if it breraks. We're not familiar with the code. We are familiar with our code base. So it is a gamble [15:36] zemanel has joined the channel [15:36] ncb000gt: mikegerwitz: You can't foresee how much fixing a project is going to need when the site breaks because a user did something you didn't expect. [15:36] pascalopitz: Oh my god [15:36] pascalopitz: (config: \{[\w\d\s\r\n\,: '\.]*\n\}) [15:36] ncb000gt: should you not make the app? [15:36] floby: pascalopitz: I get the same result when I test() it [15:37] colinsullivan has joined the channel [15:37] darrend1 has joined the channel [15:37] marcello3d: pascalopitz: are you on windows? [15:37] marcello3d: you could try [\s\S]* [15:37] Venom_X has joined the channel [15:37] softdrink has joined the channel [15:38] ncb000gt: I'm just arguing that you'll likely be making the same arguments in 6 months because you're still paranoid about depending on other peoples modules. Thus, you'll reinvent the wheel to avoid it and end up maintaining the same codebase. [15:38] marcello3d: hmm, maybe that doesn't work [15:38] mikegerwitz: ncb000gt: we've had to maintain 3rd party libraries in the past. Sometimes it works, yeah :) Other times it doesn't. So we use our best judgement. [15:38] colinsullivan has joined the channel [15:38] pascalopitz: no, OSX [15:38] pascalopitz: above works [15:38] ncb000gt: mikegerwitz: that's fine, i was under the impression that you were against all third party libs due to dependencies [15:38] mikegerwitz: ncb000gt: which is why we're often forced to use modules - so we don't reinvent the wheel. Don't have time fo rthat. So I'm not saying we don't use modules. I'm just mentioning why it's nice to have some things int he core :) [15:38] ncb000gt: which seemed a little off to me [15:39] pascalopitz: you just can't use . [15:39] ncb000gt: especially with tools like github or bitbucket [15:39] ncb000gt: just fork the shiz :) [15:39] marcello3d: possibly inside [], . means . [15:39] mikegerwitz: ncb000gt: Oh, not at all. I'm a free software developer and highly supportive of whomever wants to spend the time to create the modules :) [15:39] marcello3d: yea [15:39] hoodow has joined the channel [15:39] hoodow has joined the channel [15:40] marcello3d: false: /[.]/.test("a") [15:40] marcello3d: true: /./.test("a") [15:40] marcello3d: true: /[.]/.test(".") [15:41] ncb000gt: mikegerwitz: yea, I go back and forth between whether things should be in core or not. I don't want probably even 5% if what is in npm to be in core. But I'm not exactly sure what should and is why I trust ryah and others to figure that out for me. :) [15:42] mikegerwitz: ncb000gt: Oh I agree. My problem isn't necessarily that some things aren't in the core. It's more that the things in the core are sure to be maintained. [15:42] mikegerwitz: ncb000gt: vs some modules may be created for fun, or to satisfy an itch, and go stale [15:42] marcello3d: that's why you have to look at who wrote the module, why, and what their track record is [15:42] mikegerwitz: ncb000gt: So as long as the module is maintained, that's fine by me. I don't want the core bloated. [15:42] ncb000gt: mikegerwitz: right, but at the same time, we should put a bunch of things into core just because they'll be maintained [15:42] floby: pascalopitz: works -> /config: \{(.|\n|\r)*\}/m.test(str); [15:42] ncb000gt: mikegerwitz: yep [15:43] marcello3d: floby: grody! [15:43] mikegerwitz: ncb000gt: Yep, didn't mean to suggest that. Sorry, working and typing at the same time here. ;) [15:43] pascalopitz: nicer [15:43] floby: I really thought that new lines where included in . [15:43] marcello3d: they should be with /m but maybe not? [15:43] ncb000gt: mikegerwitz: all good, i likely misread it anyway, 4 hours of sleep... :) [15:44] floby: haha [15:44] metamind has joined the channel [15:44] floby: you actually don't need the m flag on this one [15:44] mikegerwitz: ncb000gt: I was in "employee" mode for part of the convo anyway, or playing devil's advocate [15:44] marcello3d: this works: /[\s\S]*/m.exec("test\ntest") [15:44] marcello3d: returns ["test\ntest"] [15:44] floby: So I guess it's a bad implementation of /m [15:44] marcello3d: no, you're right, . doesn't include newlines [15:44] marcello3d: even with /m [15:45] marcello3d: if you don't include m, my example returns ["test"] [15:45] ncb000gt: mikegerwitz: sure. I have to deal with people that want to reinvent the wheel for everything so I get heated on that topic- hence my response. [15:45] floby: so new lines are in \S ? [15:45] marcello3d: I think they're in \s ? [15:45] losing has joined the channel [15:46] marcello3d: \S is everything that's not in \s [15:46] marcello3d: yea, it's in \s [15:46] bergie has joined the channel [15:46] floby: marcello3d: yeah, that should cover it [15:46] marcello3d: -> /[\s]*/m.exec("\n") [15:46] floby: what is \s supposed to be ? [15:47] dguttman has joined the channel [15:47] marcello3d: whitespace? [15:47] floby: oh [15:47] mikegerwitz: ncb000gt: Yeah I don't encourage reinventing the wheel either unless there's a solid reason to. Better to pool the effort into a single project [15:47] floby: silly me [15:47] marcello3d: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp [15:47] marcello3d: they're all listed there [15:47] marcello3d: [\t\n\v\f\r \u00a0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000] [15:47] floby: so /config: \{(.|\s)*\}/m.test(str); works too [15:47] marcello3d: is what it matches :) [15:47] dve has joined the channel [15:48] marcello3d: floby: but which is faster? :) [15:48] marcello3d: I would imagine [] is faster than | [15:48] marcello3d: but hopefully it optimizes to the same thing in this case [15:48] zzak: why is jade escaping my view :( [15:49] floby: marcello3d: yeah think so. although, if it's for config, it must happen once in a program lifetime so, no big deal [15:49] marcello3d: oh yea, they even suggest [\s\S] on that page: . (The decimal point) matches any single character except the newline characters: \n \r \u2028 or \u2029. ([\s\S] can be used to match any character including newlines.) [15:49] davidwalsh has joined the channel [15:49] ceej has joined the channel [15:49] floby: marcello3d: good. so what is the use of /m ? [15:49] mscdex: zzak: maybe it's really sneaky? [15:49] mscdex: :p [15:49] floby: oh [15:50] floby: my bad, it just influence the behavior of ^$ [15:50] marcello3d: it's for matching the whole string as one entity vs multiple [15:50] floby: zzak: because jade is protecting you. I think the unescape thingy is != [15:50] robotarmy has joined the channel [15:51] kriszyp has joined the channel [15:51] Utkarsh has joined the channel [15:53] warz has joined the channel [15:53] marcello3d: I'm out. [15:53] zzak: floby: yup, that was it, thanks! [15:54] floby: zzak: really? I was buffling [15:54] ajashton has joined the channel [15:54] floby: zzak: ^^ It's a vague memory from when I read the doc [15:54] zzak: haha [15:54] zzak: yah it worked [15:54] floby: zzak good [15:55] FriiSource has joined the channel [15:56] ineation has joined the channel [15:58] davidascher has joined the channel [15:58] sleeplessinc has joined the channel [15:59] incon has joined the channel [15:59] samsonjs has joined the channel [16:00] DTrejo has joined the channel [16:00] dominic_ has joined the channel [16:01] floby: out too [16:01] DJazz has joined the channel [16:02] DJazz: node.js experiment: http://djazz.mine.nu:10040/ :P [16:02] anno^da has joined the channel [16:03] gkatsev: DJazz: nifty [16:03] gkatsev: that's a big table. [16:03] DJazz: just tried to make a simple http://yourworldoftext.com/ [16:03] mhausenblas has joined the channel [16:03] jpstrikesback1 has joined the channel [16:04] colinclark has joined the channel [16:05] seivan has joined the channel [16:07] sleeplessinc_ has joined the channel [16:08] dwww has joined the channel [16:08] jpstrikesback has joined the channel [16:08] mlncn has joined the channel [16:09] dyer has joined the channel [16:10] mattikus has joined the channel [16:11] dthompson has joined the channel [16:12] davidwalsh has joined the channel [16:12] peol_ has joined the channel [16:12] lstoll_ has joined the channel [16:12] barodeur_ has joined the channel [16:12] jdub_ has joined the channel [16:13] Epelii has joined the channel [16:13] mediacod1r has joined the channel [16:13] kei_ has joined the channel [16:13] sth_ has joined the channel [16:13] zined_ has joined the channel [16:13] mlangenb1rg has joined the channel [16:13] ybit_ has joined the channel [16:14] tmpvar has joined the channel [16:15] akl_ has joined the channel [16:15] akl_ has joined the channel [16:16] mauritslamers_ has joined the channel [16:17] bwinton` has joined the channel [16:17] ngs_ has joined the channel [16:17] c4milo1 has joined the channel [16:17] Gregor has joined the channel [16:18] kawaz_h has joined the channel [16:18] colinclark has joined the channel [16:18] ceej has joined the channel [16:18] dispalt has joined the channel [16:18] sstreza has joined the channel [16:18] disq has joined the channel [16:18] jesusabd1llah has joined the channel [16:18] Atm0z has joined the channel [16:18] huuggee has joined the channel [16:18] pngl has joined the channel [16:18] ivan has joined the channel [16:18] miketaylr has joined the channel [16:18] froak has joined the channel [16:18] bzinger has joined the channel [16:18] Stan____ has joined the channel [16:18] zubairov has joined the channel [16:18] arkx has joined the channel [16:18] jb55_ has joined the channel [16:18] sugyan has joined the channel [16:18] gredman has joined the channel [16:18] fmarceau- has joined the channel [16:18] jtrally has joined the channel [16:18] votz has joined the channel [16:18] phiggins has joined the channel [16:18] btipling has joined the channel [16:18] caligula_ has joined the channel [16:18] Bonuspunkt has joined the channel [16:18] xSmurf has joined the channel [16:18] vilhonen has joined the channel [16:18] ikarosdaedalos has joined the channel [16:18] skohorn has joined the channel [16:18] jakeskik has joined the channel [16:18] Venom_X has joined the channel [16:18] Evet has joined the channel [16:18] strimpel_ has joined the channel [16:18] Evet has joined the channel [16:19] MikhX has joined the channel [16:19] tmpvar_ has joined the channel [16:19] sirkitree has joined the channel [16:19] Aikar has joined the channel [16:19] Aikar has joined the channel [16:19] franck34_ has joined the channel [16:19] AphelionZ1 has joined the channel [16:20] gormer has joined the channel [16:20] RushPL_ has joined the channel [16:20] eb4890 has joined the channel [16:20] viirya_ has joined the channel [16:20] incon has joined the channel [16:20] Soopaman has joined the channel [16:20] tsyd_ has joined the channel [16:21] jetienne__ has joined the channel [16:21] benatkin_ has joined the channel [16:22] mape has joined the channel [16:22] adelcambre has joined the channel [16:22] tc77 has joined the channel [16:23] kordless_ has joined the channel [16:23] arnorhs_ has joined the channel [16:23] tim_smart has joined the channel [16:23] freeformz has joined the channel [16:23] teemow has joined the channel [16:23] ncb000gt has joined the channel [16:23] beawesomeinstead has joined the channel [16:24] mjijackson has joined the channel [16:24] cloudhea1 has joined the channel [16:24] mbrochh]2 has joined the channel [16:24] dans_ has joined the channel [16:24] ryan[WIN] has joined the channel [16:24] nefD has joined the channel [16:24] hellp has joined the channel [16:24] rfay has joined the channel [16:24] ncb000gt: ryah: might want to change the wiki page in the channel description/comments. [16:25] daniellindsley has joined the channel [16:25] themiddleman has joined the channel [16:25] ncb000gt: hmm, i guess it just redirects tho [16:25] Sorella has joined the channel [16:25] eresair has joined the channel [16:25] dantaliz1ng has joined the channel [16:26] peterbraden has joined the channel [16:26] webben has joined the channel [16:26] unfo-ninja has joined the channel [16:26] samsonjs has joined the channel [16:27] mediacoder has joined the channel [16:27] jimmyz2 has joined the channel [16:27] nonnikca1 has joined the channel [16:27] kevinliu_ has joined the channel [16:28] MikeW has joined the channel [16:28] pdelgallego_ has joined the channel [16:28] emattias_ has joined the channel [16:28] losing has joined the channel [16:29] nmtmason_ has joined the channel [16:29] jan____ has joined the channel [16:29] jakehow has joined the channel [16:29] JojoTheBoss has joined the channel [16:29] malkomalko has joined the channel [16:29] davidsklar has joined the channel [16:29] shajith has joined the channel [16:29] _sri has joined the channel [16:29] orospakr has joined the channel [16:29] kloeri has joined the channel [16:29] incon has joined the channel [16:29] gormer has joined the channel [16:29] AphelionZ1 has joined the channel [16:29] ikarosdaedalos has joined the channel [16:29] kawaz_h has joined the channel [16:29] colinclark has joined the channel [16:29] ceej has joined the channel [16:29] dispalt has joined the channel [16:29] sstreza has joined the channel [16:29] disq has joined the channel [16:29] jesusabd1llah has joined the channel [16:29] Atm0z has joined the channel [16:29] huuggee has joined the channel [16:29] pngl has joined the channel [16:29] ivan has joined the channel [16:29] miketaylr has joined the channel [16:29] froak has joined the channel [16:29] bzinger has joined the channel [16:29] Stan____ has joined the channel [16:29] zubairov has joined the channel [16:29] arkx has joined the channel [16:29] jb55_ has joined the channel [16:29] sugyan has joined the channel [16:29] gredman has joined the channel [16:29] fmarceau- has joined the channel [16:29] jtrally has joined the channel [16:29] votz has joined the channel [16:29] phiggins has joined the channel [16:29] btipling has joined the channel [16:29] caligula_ has joined the channel [16:29] Bonuspunkt has joined the channel [16:29] xSmurf has joined the channel [16:29] vilhonen has joined the channel [16:29] jeromegn has joined the channel [16:29] matschaffer1 has joined the channel [16:29] sth_ has joined the channel [16:30] AlBabyJets has left the channel [16:30] Poetro1 has joined the channel [16:30] ajashton1 has joined the channel [16:30] jetienne__: https://github.com/Sage/streamlinejs/blob/master/examples/diskUsage2.js nice concept but the output looks hard to undestand in a browser [16:30] tanepiper has joined the channel [16:30] peol has joined the channel [16:30] mlins has joined the channel [16:31] jacobolu_ has joined the channel [16:31] sstephenson has joined the channel [16:31] mrkurt has joined the channel [16:31] bradleymeck has joined the channel [16:31] msch has joined the channel [16:31] [ADTurbo] has joined the channel [16:31] slickplaid has joined the channel [16:31] joshthecoder_ has joined the channel [16:32] paulrollo has joined the channel [16:32] zaiste_ has joined the channel [16:32] tc771 has joined the channel [16:32] ajashton1 has left the channel [16:33] kal-EL__ has joined the channel [16:33] throughnothing_ has joined the channel [16:33] bradleymeck: anyone have a good .wav file writer lying about? [16:33] Vertice has joined the channel [16:33] guid has joined the channel [16:33] boaz_ has joined the channel [16:33] rwaldron has joined the channel [16:34] mscdex: bradleymeck: what about piping to sox? [16:35] Shrink has joined the channel [16:35] kordless has joined the channel [16:35] Shrink has joined the channel [16:35] anno^da: Hello. Does someone know a nicely working scraping library for node? (including jquery for selection) At the momen I have tried node.io and node-scraper. Both don't work that well and produce a lot of errors. [16:35] nivoc1 has joined the channel [16:35] jan___ has joined the channel [16:36] jetienne__: anno^da: stagas published one recently [16:36] rtomayko has joined the channel [16:36] hdon has joined the channel [16:36] xandrews has joined the channel [16:36] fly-away has joined the channel [16:36] broofa has joined the channel [16:36] tjholowaychuk has joined the channel [16:36] geoffeg_ has joined the channel [16:36] Adman65 has joined the channel [16:36] jetienne__: https://github.com/stagas/jjw this one [16:37] anno^da: https://github.com/stagas/jjw [16:37] anno^da: ahh fine :) [16:37] anno^da: I am looking at it [16:37] anno^da: Thank you very much. [16:38] Vertice has joined the channel [16:38] peterbraden has joined the channel [16:38] mikegerwitz: Anyone know of any projects that permit V8 debugging from within vim? [16:38] darkredandyellow has joined the channel [16:38] mikegerwitz: sorta like xdebug with PHP [16:38] mikegerwitz: (I use alternatives atm, but would be convenient to have it happen in vim :)) [16:39] jtsnow has joined the channel [16:39] muhqu has joined the channel [16:40] bradleymeck: mscdex i guess i could, but i was hoping for something high level :/ [16:40] harth has joined the channel [16:40] jan____ has joined the channel [16:40] ntelford has joined the channel [16:40] aheckmann has joined the channel [16:40] wilmoore has joined the channel [16:40] peterbraden has joined the channel [16:40] sprout has joined the channel [16:41] figital has joined the channel [16:42] Venom_X_ has joined the channel [16:42] jeff_horton has joined the channel [16:42] daveluke has joined the channel [16:43] yhahn has joined the channel [16:43] maru_cc__ has joined the channel [16:43] Me1000 has joined the channel [16:45] tim_smart: ryah: Is there a configure flag for enabling / disabling crankshaft? [16:46] gmci has joined the channel [16:46] Utkarsh_ has joined the channel [16:46] jwcooper_ has joined the channel [16:46] msucan has joined the channel [16:47] rjack has joined the channel [16:47] jdalton has left the channel [16:47] Guest24624 has left the channel [16:47] peol has joined the channel [16:48] peol has joined the channel [16:48] hobs has joined the channel [16:49] kei: node is pretty damn awesome :D [16:49] jmar777 has joined the channel [16:49] termie has joined the channel [16:49] polyrhythmic has joined the channel [16:49] termie has joined the channel [16:49] daveluke has joined the channel [16:50] kawaz_air has joined the channel [16:50] MikhX has joined the channel [16:51] gmci_ has joined the channel [16:51] BillyBreen has joined the channel [16:51] SamuraiJack has joined the channel [16:51] brianloveswords has joined the channel [16:51] willwhite has joined the channel [16:51] [[zz]] has joined the channel [16:51] sveimac_ has joined the channel [16:51] halfhalo_ has joined the channel [16:51] Gregor has joined the channel [16:51] springmeyer has joined the channel [16:52] chapel has joined the channel [16:52] adambeynon has joined the channel [16:52] Venom_X has joined the channel [16:52] skohorn has joined the channel [16:52] gozala has joined the channel [16:53] ryanfitz has joined the channel [16:53] anno^da: hmpf it seems to me that the scraping libs aren't that mature till now :-). But in a few months it will be a lot of fun :) [16:53] samsonjs has joined the channel [16:53] rtomayko has joined the channel [16:53] bradleymeck: their installation is a bit wonky but once installed i havent seen any problems [16:53] daniellindsley has joined the channel [16:54] ruxpin has joined the channel [16:54] stynx_ has joined the channel [16:54] kwargs has joined the channel [16:55] wvl has joined the channel [16:55] piscisaureus_ has joined the channel [16:55] anno^da: hmm which is yout favorite ? [16:55] themcgruff has joined the channel [16:55] cilantro has joined the channel [16:56] sechrist_ has joined the channel [16:56] bradleymeck: custom, but its basically just a jsdom wrapper for me to have a headless thing [16:56] Apes has joined the channel [16:56] bradleymeck: ive uses jqueryify fine [16:56] bradleymeck: ive used* [16:58] erabuj has joined the channel [16:58] dve has joined the channel [16:58] tjholowaychuk: i thought debug() was parsed out? [16:59] bradleymeck: i thought it was runtime? [16:59] tjholowaychuk: if not node should use the comment hack I came up with, less wasteful [16:59] sstylz has joined the channel [16:59] eee_c has joined the channel [16:59] tjholowaychuk: bradleymeck: some if the files have a conditional and then debug = function() { }; [16:59] jlecker has joined the channel [16:59] throughnothing_ has joined the channel [17:00] darrend1 has joined the channel [17:00] andoma has joined the channel [17:00] fermion has joined the channel [17:01] L_star has joined the channel [17:01] arnorhs_ has joined the channel [17:01] mmso has joined the channel [17:02] mmso has joined the channel [17:02] MikhX has joined the channel [17:02] snearch has joined the channel [17:02] dwww has joined the channel [17:02] warz has joined the channel [17:03] Niet has joined the channel [17:03] anno^da: bradleymeck: Hmm yeah. My experience with the wrappers around jsdom had been that jQuery selections that work perfectly in the browser don't work in the wrappers using jQuery. [17:03] Croms has joined the channel [17:04] anno^da: One example had been the "first-child" selector which is just getting ignored [17:04] bradleymeck: anno^da odd [17:05] sivy has joined the channel [17:05] Minos has joined the channel [17:06] trotter has joined the channel [17:07] amerine has joined the channel [17:07] abraham has joined the channel [17:09] linkmauve has joined the channel [17:09] msch has joined the channel [17:09] themiddleman_itv has joined the channel [17:12] kawaz_air has joined the channel [17:13] iFire has joined the channel [17:14] lstoll_ has joined the channel [17:14] jmar777: tjholowaychuk: you there? [17:14] tjholowaychuk: yup [17:14] jmar777: tjholowaychuk: i'm getting a "Error: Cannot find module 'qs'" from the Connect bodyParser middleware [17:14] tjholowaychuk: jmar777: npm install qs [17:14] jmar777: tjholowaychuk: i've done a git submodule init and git submodule update [17:14] tjholowaychuk: ah [17:14] jmar777: tjholowaychuk: right - is there a way to make it work without using npm? [17:14] tjholowaychuk: well ./support is only for testing [17:14] tjholowaychuk: so [17:14] tjholowaychuk: you need visionmedia/node-querystring [17:15] jwm has joined the channel [17:15] dewey_ has joined the channel [17:16] sechrist has joined the channel [17:16] jmar777: tjholowaychuk: are there any good ways for handling external dependencies that don't involve using npm? [17:16] winston has joined the channel [17:16] tjholowaychuk: jmar777: not really [17:17] atiti has joined the channel [17:17] bradleymeck: whats wrong with npm [17:17] jmar777: heh - honest [17:17] tjholowaychuk: just cat the package.json [17:17] zilt has joined the channel [17:18] jmar777: nothing really wrong with npm. just trying to maintain a source repository that is "all inclusive", and doesn't require other devs to install npm + moduleX + moduleY, etc. [17:18] bwlang has joined the channel [17:19] briznad has joined the channel [17:19] jmar777: tjholowaychuk: would it be possible to convince you that dependencies should go in support (or a node_modules folder)? :) [17:19] tjholowaychuk: bradleymeck: its not quite ideal for deployment yet [17:19] tjholowaychuk: but getting there [17:19] bradleymeck: for deploy yea [17:19] tjholowaychuk: jmar777: no [17:19] tjholowaychuk: jmar777: they are in ./support but for tests only [17:20] jmar777: tjholowaychuk: ahh, so i should basically undo all the git submodule crap i did? [17:20] tjholowaychuk: jmar777: you can do whatever you want lol its fine to use submods, but you have to know what the deps are [17:20] tjholowaychuk: which is not hard [17:20] tjholowaychuk: I just dont want to include them in the repo [17:22] tracker1 has joined the channel [17:22] jmar777: tjholowaychuk: fair enough. i guess for now i'll just add deps to a node_modules folder so that i don't have to tweak the connect require('...') statements [17:22] tjholowaychuk: jmar777: you wouldnt have to, you would just have to unshift so that they are within require.paths [17:22] tjholowaychuk: but ya node_modules will work [17:22] jmar777: tjholowaychuk: i thought that was frowned upon now [17:23] luke` has joined the channel [17:23] broofa has joined the channel [17:23] pcardune has joined the channel [17:23] jmar777: tjholowaychuk: anyway, i can understand wanting to keep deps out of the distribution. if i submitted some steps for a sans-npm setup, think that could get into the docs? [17:24] tjholowaychuk: jmar777: yeah sure, would not hurt to list them, but its easy to see them in the package.json too [17:24] hij1nx has joined the channel [17:24] jmar777: tjholowaychuk: cool - i'll go off of that. thanks [17:26] pcardune has joined the channel [17:27] seivan has joined the channel [17:29] jpstrikesback has joined the channel [17:30] jamesarosen has joined the channel [17:31] zpao has joined the channel [17:32] wadey has joined the channel [17:32] sechrist has joined the channel [17:34] rwaldron has left the channel [17:35] Soopaman has joined the channel [17:36] doubletap has joined the channel [17:36] dve: whats the best to get a files size synchronously? [17:36] doubletap has left the channel [17:37] dve: i need to compare to files (js and coffee) and re-compile if the js is out of date [17:37] hornairs has joined the channel [17:38] sleeplessinc has joined the channel [17:38] sprout has joined the channel [17:39] ximo has joined the channel [17:39] RusAlex has joined the channel [17:39] sprout has joined the channel [17:39] RusAlex: hi guys is there any channel for expressjs framework ? [17:40] tjholowaychuk: RusAlex: nope, feel free to ask me or post on the mailing list [17:40] SwiftLayer has joined the channel [17:41] rasmus_jensen has joined the channel [17:41] ossareh has joined the channel [17:41] RusAlex: i m trying to implement tutorial for building simple blog with expressjs [17:41] dve_ has joined the channel [17:41] anno^da: bradleymeck: Have you had problems with invalid characters while scraping? [17:42] RusAlex: and i have error when im including css. 500 TypeError: Object # has no method 'compile' . its just simple app. i can poste it to pastebin [17:43] tjholowaychuk: RusAlex: which template engine are you using? [17:43] RusAlex: sass [17:43] jbpros has joined the channel [17:43] tjholowaychuk: ah [17:43] bradleymeck: anno^da when the server sends improper stuff? on occasion [17:43] tjholowaychuk: well [17:43] blueadept has joined the channel [17:43] tjholowaychuk: RusAlex: sass does not need to be rendered via res.render() [17:43] tjholowaychuk: RusAlex: its not really a template engine [17:44] tjholowaychuk: RusAlex: check out connect's "compiler" middleware, or http://learnboost.github.com/stylus [17:44] RusAlex: yes it uses res.render. [17:44] tjholowaychuk: stylus.middleware [17:44] tjholowaychuk: ah, yeah dont do that [17:44] RusAlex: styles equals sass [17:44] RusAlex: ? [17:45] Benn has joined the channel [17:45] tjholowaychuk: stylus is like sass but better :) [17:47] aabt has joined the channel [17:47] jlewis has joined the channel [17:47] rasmus_jensen has joined the channel [17:50] bradleymeck: tj if only we could integrate it with client side for some fanciness [17:51] tjholowaychuk: bradleymeck: stylus? [17:51] winston has joined the channel [17:51] bradleymeck: yea, i would love to have screen/viewport width shimmed in :( [17:52] tjholowaychuk: :s [17:52] tjholowaychuk: im not convinced rendering css on the client is ever useful, a side from little demos [17:53] t1 has joined the channel [17:53] bradleymeck: i dont really think rendering would be useful, more if you could hook in styles and js [17:54] bradleymeck: something for calculations being passed about from js functions, anywho [17:55] tjholowaychuk: it wouldnt be dynamic anyway [17:55] tjholowaychuk: so that would be pretty limited [17:55] bradleymeck: i guess i just want dynamic styling to be available... [17:56] tjholowaychuk: use js lol [17:56] dewey__ has joined the channel [17:56] davidascher has joined the channel [17:57] bradleymeck: js clashes with css if you use it for many things like sizing ugg [17:58] gmci_ has left the channel [17:58] bradleymeck: plus the whole defaulting styles failure of IE [17:59] piscisaureus has joined the channel [17:59] jmar777: so if a package.json has a dependency on "log", there should be a npm module by that name? [17:59] tjholowaychuk: jmar777: yeah [18:00] tjholowaychuk: jmar777 visionmedia/log.js [18:00] zzak: tjholowaychuk: = in jade will escape views, got bit by this earlier today. had to use !=, not sure if thats documented [18:00] jmar777: tjholowaychuk: should've known to just look there lol. couldn't find it by searching here: http://search.npmjs.org/ [18:00] tjholowaychuk: zzak: yeah it is [18:00] tjholowaychuk: zzak: its intended.. security :) [18:00] jmar777: tjholowaychuk: thanks [18:00] tim_smart has joined the channel [18:00] zzak: oh it's nice to default escaping for sure [18:01] zzak: but i hadn't seen != documented, someone on here pointed it out to me [18:01] tjholowaychuk: ah [18:02] davidascher has joined the channel [18:02] dve: anyone else using a no.de smartmachine? [18:02] zzak: ahh, it is burried in the readme after all [18:03] tjholowaychuk: dve: I have some [18:03] dve: have you been able to ssh in? [18:03] tjholowaychuk: dve: yeah, ssh node@subdomain.no.de [18:03] rasmus_jensen has left the channel [18:04] tjholowaychuk: dve: you need your public key in their settings tho [18:04] brianc has joined the channel [18:04] dve: hmm, yea ive added it on the website [18:04] dve: still getting a permission denied though [18:04] fisted has joined the channel [18:04] jtsnow has joined the channel [18:05] lukus has joined the channel [18:05] dve: thanks, just checking it was just me! [18:05] zylo has joined the channel [18:05] pyrony has joined the channel [18:06] jiveB has joined the channel [18:06] liar has joined the channel [18:06] gf3 has joined the channel [18:07] dve: tjholowaychuk: does the name field attached to your ssh key on the joyent site have any other affect other than just as a label [18:08] harth has joined the channel [18:08] jmar777: is there a good online site for searching the npm registry? [18:08] langworthy has joined the channel [18:09] jmar777: ACTION ducks for asking ANOTHER npm question [18:09] stephank has joined the channel [18:10] dve: jmar777: can you not do it from the npm site? [18:10] Evet_ has joined the channel [18:11] jmar777: dve there is a search feature, but it doesn't seem to work very well [18:11] jmar777: dve: e.g., if i see a dependency for "log", i'd expect to be able to search the site for "log" and see it. that didn't work, neither has qs or mime [18:11] Evet has joined the channel [18:11] rasmuserik has joined the channel [18:12] dve: jmar777: npm search log [18:12] dve: ?? [18:12] jmar777: dve: i'm not using npm though [18:12] markc has joined the channel [18:12] dguttman has joined the channel [18:13] jmar777: dve: i should probably just cave and install it, but i'm trying to have our team's source code zero-dependency (other than node itself). that way we can label a tag across everything, and know that all environments are 100% in sync [18:13] dve: jmar777: npm is fun! [18:13] tjholowaychuk: jmar777: I know how you feel :) [18:13] tjholowaychuk: npm bundle is fucking me over for our app right now, i cant work on it [18:14] patcito has joined the channel [18:14] altamic has joined the channel [18:14] tjholowaychuk: submods were slow, but they worked [18:14] dve: close your eyes run 'npm update' and then spend hours fixing everything [18:14] altamic has joined the channel [18:14] Stan____ has left the channel [18:14] tjholowaychuk: npm will get there [18:14] mjijackson has joined the channel [18:15] pcardune has joined the channel [18:16] jmar777: tjholowaychuk: ya - just from looking it over i got a feeling that I would never ever know what version everyone was running of anything (something like that) [18:16] miketaylr has joined the channel [18:16] abraham has joined the channel [18:16] davglass has joined the channel [18:16] davglass has left the channel [18:17] jmar777: tjholowaychuk: but ya, it's got enough support and momentum i have no doubt it'll get there as well [18:17] tjholowaychuk: I use ndistro for some deployments [18:17] tjholowaychuk: just works with GH repos [18:17] tjholowaychuk: but I will update it to work with node_modules some time [18:17] jmar777: tjholowaychuk: so far that's everything for us. i might check it out [18:18] gaYak has joined the channel [18:19] Shrink has joined the channel [18:19] Shrink has joined the channel [18:19] mattikus has joined the channel [18:22] brapse has joined the channel [18:22] rasmuserik has left the channel [18:24] yyamano has joined the channel [18:24] dyer has joined the channel [18:24] daveluke has joined the channel [18:26] eee_c has joined the channel [18:26] mjr_ has joined the channel [18:26] markwubben has joined the channel [18:28] Determinist has joined the channel [18:28] ph^ has joined the channel [18:28] sprout has joined the channel [18:32] losing has joined the channel [18:32] MikhX has joined the channel [18:33] darshanshankar has joined the channel [18:34] darshanshankar has left the channel [18:34] darshanshankar has joined the channel [18:35] darshanshankar has left the channel [18:36] dve: whats the deal with connect? [18:36] nivoc has joined the channel [18:36] dve: nothing above 0.5.10 seems to work [18:36] tjholowaychuk: dve: > 0.5.10 is for 0.4.x [18:36] tjholowaychuk: well >= 1.0 [18:37] dve: im on 0.4.1 [18:37] tim_smart has joined the channel [18:37] robotarmy has joined the channel [18:37] davidascher has joined the channel [18:37] heavysixer has joined the channel [18:37] davidwalsh has joined the channel [18:37] joshpeek has joined the channel [18:37] Gigawatt has joined the channel [18:37] dve: if i have the latest version of connect active, express shits a brick [18:37] Gigawatt: Heya [18:37] dve: and no version of express seem to work with it [18:38] tjholowaychuk: dve: express 2.0beta [18:38] dve: oooooh [18:38] eee_c has joined the channel [18:38] dyer has joined the channel [18:38] mattikus has joined the channel [18:38] gf3 has joined the channel [18:38] briznad has joined the channel [18:38] darrend1 has joined the channel [18:38] wvl has joined the channel [18:38] gozala has joined the channel [18:38] aheckmann has joined the channel [18:38] kordless has joined the channel [18:38] slickplaid has joined the channel [18:38] jeromegn has joined the channel [18:38] davidsklar has joined the channel [18:38] shajith has joined the channel [18:38] _sri has joined the channel [18:38] orospakr has joined the channel [18:38] kloeri has joined the channel [18:38] gormer has joined the channel [18:38] ikarosdaedalos has joined the channel [18:38] kawaz_h has joined the channel [18:38] ceej has joined the channel [18:38] dispalt has joined the channel [18:38] sstreza has joined the channel [18:38] disq has joined the channel [18:38] jesusabd1llah has joined the channel [18:38] Atm0z has joined the channel [18:38] ivan has joined the channel [18:38] froak has joined the channel [18:38] zubairov has joined the channel [18:38] arkx has joined the channel [18:38] jb55_ has joined the channel [18:38] sugyan has joined the channel [18:38] gredman has joined the channel [18:38] fmarceau has joined the channel [18:38] jtrally has joined the channel [18:38] phiggins has joined the channel [18:38] btipling has joined the channel [18:38] caligula_ has joined the channel [18:38] Bonuspunkt has joined the channel [18:38] xSmurf has joined the channel [18:38] vilhonen has joined the channel [18:38] yozgrahame has joined the channel [18:38] aguynamedben has joined the channel [18:39] dve: tjholowaychuk: thanks ;0 [18:40] dve: tjholowaychuk: also... what has the staticProvider method changed to? / is there a release notes doc, so I dont keep bugging you!? [18:41] tjholowaychuk: dve: yeah the connect readme / http://expressjs.com/migrate.html [18:41] piscisaureus_ has joined the channel [18:41] dve: cool [18:42] mikeal has joined the channel [18:43] tfe_ has joined the channel [18:45] RusAlex: tjholowaychuk: Error: ENOENT, No such file or directory '/node/stylus/public/main.css' it's when i use example from stylus repo [18:45] RusAlex: from expressjs repo [18:45] tjholowaychuk: RusAlex: hmm ill check it out [18:45] RusAlex: it doesnt write to a public folder [18:46] RusAlex: public folder 777 permissions [18:47] tjholowaychuk: works fine for me [18:47] RusAlex: it must write main.css into ./public ? [18:47] brianm has joined the channel [18:47] brianm has joined the channel [18:48] tjholowaychuk: RusAlex yeah it takes views/main.styl and writes to public/main.css [18:49] RusAlex: i don't know why it wont write for me. maybe because today is friday and my pc want some beer [18:49] tjholowaychuk: haha :D [18:49] tjholowaychuk: i thought maybe i didnt have .gitignore so the public dir was not there [18:49] tjholowaychuk: but it is [18:50] RusAlex: ok. will go to store, and will get some dir [18:50] RusAlex: beer [18:50] RusAlex: =) [18:51] perlmonkey2 has joined the channel [18:52] creationix_ has joined the channel [18:52] dve: tjholowaychuk: is there any info on how sessions have changed? [18:53] asimismo has joined the channel [18:54] amacleod has joined the channel [18:54] creationix_: mikeal: can I have the code to the oak.js reservation system? [18:54] thalll has joined the channel [18:54] drudge: is it awesome in here or is it just tjholowaychuk [18:54] tjholowaychuk: hahahaha [18:54] tjholowaychuk: wtf [18:56] asimismo: Need a hand with a route for Express. Would like to do something like this: /:appSlug/*/tree [18:56] asimismo: ...where the * could match 0 or more path segments. Doesn't seem to be matching, though. [18:57] creationix_: does express still support vanilla regular expressions for advanced stuff? [18:57] tjholowaychuk: yup [18:57] piscisaureus has joined the channel [18:57] asimismo: I think so, but I'm lousy with regular expressions. [18:57] tjholowaychuk: asimismo: let me try that out [18:57] asimismo: Someone tried to help me, but their option doesn't seem to be working either. [18:57] asimismo: tjholowaychuk: Great--thanks! [18:58] konobi: "Stand back! I know regular expressions!" [18:58] dve: haha [18:58] malkomalko: did res.partial change tjholowaychuk in 0.4.0? dynamicHelpers don't seem to work anymore as an option I'm getting some weird Can't Pass Headers stuff going on... [18:59] drudge: the paths changed [18:59] drudge: they are now relative to the calling view [18:59] drudge: there is no partials folder anymore [18:59] astralab_ has joined the channel [19:00] tjholowaychuk: asimismo: works for me /:slug/*/tree gives [ 'bar/baz', slug: 'foo' ] [19:00] tjholowaychuk: for GET /foo/bar/baz/tree [19:00] tjholowaychuk: malkomalko: check the docs for res.partial(), it has the same interface as partial() in a view now [19:01] asimismo: tjholowaychuk: Hmmm. Curious. Maybe I'm using the debugger incorrectly, then. Thanks for checking... [19:01] tilgovi has joined the channel [19:02] tjholowaychuk: asimismo: you can name that splat too if you want, :foo(*) so req.params.foo [19:02] tjholowaychuk: instead of req.params[0] [19:02] skm has joined the channel [19:03] losing has joined the channel [19:03] tjholowaychuk: malkomalko: I think I see what you mean, one sec [19:04] asimismo: tjholowaychuk: Oh, nice! I was looking for something like that. [19:06] mlins has joined the channel [19:08] asimismo: tjholowaychuk: Here's a twist. I also need to match the path without /tree to be handled by a different function. So, /:appSlug/:nodePath(*)/tree and /:appSlug/:nodePath(*) should be handled differently. [19:08] asimismo: The problem is that the route without /tree is catching my request. [19:09] tjholowaychuk: yeah, if you have the second one there defined first it will consume /tree [19:09] tjholowaychuk: try moving it under [19:09] clarkfischer has joined the channel [19:10] jmar777: tjholowaychuk: which mime module is connect using? [19:11] tjholowaychuk: jmar777: whatever is in npm [19:11] tjholowaychuk: node-mime somewhere on GH i think [19:11] tjholowaychuk: cat .gitmodules in connect [19:12] AnimaSana has joined the channel [19:12] BrianTheCoder has joined the channel [19:13] jmar777: tjholowaychuk: k - i tried installing that one. i was just noticing that you use a method here: https://github.com/visionmedia/express/blob/1.0.8/lib/express/response.js#L203 that doesn't seem to be in that module [19:13] jmar777: tjholowaychuk: also just noticed i'm looking at an express file... [19:13] springmeyer_ has joined the channel [19:13] diggersf has joined the channel [19:14] jmar777: tjholowaychuk: although it seems to use the same mime module [19:14] tjholowaychuk: connect used to have its own mime mod [19:14] tjholowaychuk: < 1.0 [19:15] jmar777: tjholowaychuk: is that mime.type() call defunct now then? [19:15] tjholowaychuk: not if you are using 1.x [19:15] tjholowaychuk: (express) [19:15] mikeal: ryah: how are you getting down to that meetup on tuesday? [19:16] FriiSource: anyone? [19:16] FriiSource: http://stackoverflow.com/questions/5135145/node-js-connect-auth-app-example-user-registration-user-session-management [19:21] mauritslamers has joined the channel [19:22] zilt has joined the channel [19:22] mavin has joined the channel [19:22] ximo has joined the channel [19:22] Twelve-60` has joined the channel [19:22] creationix_ has left the channel [19:22] malkomalko: yah tjholowaychuk, just look at your examples, some of res.partial still has locals, and dynamicHelpers as opts for res.partial, but the examples don't seem to work [19:22] heavysixer has joined the channel [19:22] chapel has joined the channel [19:22] ajpiano has joined the channel [19:22] tjholowaychuk: malkomalko: forgot to update that one example [19:22] perlmonkey2: sweet, npm installs express 2-beta [19:22] tjholowaychuk: malkomalko: the flash one [19:22] Epeli has joined the channel [19:22] tswicegood has joined the channel [19:22] barodeur has joined the channel [19:22] tsyd has joined the channel [19:22] randallagordon_ has joined the channel [19:22] perlmonkey2: tjholowaychuk: thanks for the new docs and looks like some new examples. [19:22] tjholowaychuk: np [19:22] superdug has joined the channel [19:22] aho has joined the channel [19:22] lstoll has joined the channel [19:22] TheCowboy has joined the channel [19:22] ryanfitz has joined the channel [19:22] eresair has joined the channel [19:22] piscisaureus has joined the channel [19:22] Wizek has joined the channel [19:22] pyrony has joined the channel [19:22] maru_cc__ has joined the channel [19:23] insin has joined the channel [19:23] perezd has joined the channel [19:23] wilmoore has joined the channel [19:24] killfill has joined the channel [19:24] sr has joined the channel [19:24] raidfive has joined the channel [19:35] thecarlhall has joined the channel [19:35] jetienne has joined the channel [19:37] m3nt0r^aw has joined the channel [19:38] colinclark has joined the channel [19:43] m3nt0r^aw has joined the channel [19:50] ximo_ has joined the channel [19:50] m3nt0r^aw has joined the channel