[00:01] Sembiance has joined the channel [00:02] [[zz]] has joined the channel [00:05] context-: anyone get an error with mongoose not finding 'hooks' module [00:05] context-: nm [00:06] context-: its this craptastic package [00:06] skript_ has joined the channel [00:06] Dreamer3 has joined the channel [00:08] tuhoojabotti: Gist<3 [00:09] tuhoojabotti: Helped me find a bug I missed. :P [00:09] Aria has joined the channel [00:09] tuhoojabotti: Gotta love revisions [00:12] Aria has joined the channel [00:14] piscisaureu_ has joined the channel [00:17] Spion has joined the channel [00:19] Twelve-60 has joined the channel [00:20] Aria has joined the channel [00:21] jacobolus has joined the channel [00:21] timhudson has joined the channel [00:22] Aria has joined the channel [00:23] brownies has joined the channel [00:23] jtsnow has joined the channel [00:24] industrial has left the channel [00:24] willwhite has joined the channel [00:24] tsutton has joined the channel [00:26] Aria has joined the channel [00:27] samBiotic has joined the channel [00:29] rauchg has joined the channel [00:30] timhudson has left the channel [00:31] tracker1 has joined the channel [00:32] mikeal has joined the channel [00:32] tayy has joined the channel [00:34] pen has joined the channel [00:35] Chani: darnit. [00:36] Chani: can someone tell me how to make http://paste.kde.org/90523/ work? [00:36] Chani: I'm gettting [00:36] Chani: I'm gettting ReferenceError: fd is not defined at postWrite (/home/chani/Documents/SFU/cmpt431/a2/test2.js:22:5) [00:37] Chani: what's the least ugly way of getting the fd passed along to all the other callbacks? [00:39] Chani: oh! it was simple - but pastebin broke so I can't show you :P [00:40] azend has joined the channel [00:40] Chani: also... why does that code not work if I use var foo = function(... instead of function foo(... [00:41] tuhoojabotti: Chani: I made my mum a Minecraft account yesterday, and taught her how to play, now THAT was tricky. [00:41] tuhoojabotti: Also bunch of pastebins out there. [00:41] tuhoojabotti: I use new one every time I paste ":D" [00:41] Chani: yeah, but I'm lazy :) [00:44] brownies has joined the channel [00:45] chapel: Chani: it's because you aren't passing F=fd [00:45] chapel: fd [00:45] chapel: function postWrite(e) { [00:45] chapel: you just pass e [00:46] _jgr has joined the channel [00:49] k1ttty has joined the channel [00:53] Chani: hmm. do write streams have async methods, or is it all synchronous? [00:55] context-: anyone noticed how mongoose's docs suck [00:56] CIA-110: node: 03Henry Rawas 07master * r56ec4e4 10/ (lib/net_uv.js lib/timers_uv.js): net_uv: fix test-net-connect-timeout.js test - http://bit.ly/lwKB8N [00:56] TooTallNate: context-: how so? [00:56] jmoyers: Chani def not synch [00:56] jmoyers: its a queue, as far as i know [00:56] jmoyers: it emits events telling you whether the queue is full, etc [00:56] context-: TooTallNate: they dont tell you how any of the methods actually work [00:56] jmoyers: look at `drain` and co [00:57] context-: count.. takes a query (which is?) and a callback... and the callback takes? its in the context of? [00:58] context-: there is no actual 'reference' ,... i have to use the browsers search function to find count 8 times on the page. the fifth one is what im looking for. the first words you see are 'counts documents' with the actual code for the function to the left... [00:59] context-: if i wanted to see the code for count id just open the code up [00:59] TooTallNate: well callbacks generally have a (err, returnedValue) payload [00:59] context-: i go to the api reference as a reference of how to actually use said library [00:59] context-: TooTallNate: it still fails to tell you what you give the function. [01:00] jmoyers: patches welcome ;-)? [01:00] jmoyers: though i generally agree [01:00] TooTallNate: context-: indeed, patches are welcome. and that API page is indeed crap... [01:00] context-: TooTallNate: http://screencast.com/t/6o8wSgFl0RO ... from that, how exactly do you call count() and what should i expect in said payload. [01:01] context-: heh [01:01] TooTallNate: but thats because it's auto-generated from the inline comments [01:01] TooTallNate: the guides are a lot more helpful [01:01] context-: yeah [01:01] jmoyers: though, didn't you hear the latest gobbledy gook on twitter!? [01:01] jmoyers: ORM is an antipattern [01:01] brownies has left the channel [01:02] TooTallNate: jmoyers: with mongoose I generally disagree [01:02] Prometheus: out of curiosity, does node.js happen to have any freelancer/gig sites dedicated to it? [01:02] TooTallNate: jmoyers: you can write helper functions with mongoose that void most of the arguments against ORM [01:02] TooTallNate: imo at least [01:07] context-: jmoyers: when it comes to nosql id prolly agree. but this library uses it so im forced to use it [01:07] mwilliams_ has joined the channel [01:08] avalanche123 has joined the channel [01:09] jakehow has joined the channel [01:09] bnoordhuis has joined the channel [01:10] cognominal has joined the channel [01:11] mundanity has joined the channel [01:15] Swimming_bird has joined the channel [01:18] ryan0x2 has joined the channel [01:19] catshirt has joined the channel [01:20] csanz has joined the channel [01:20] csanz: i installed ngist using the latest version of npm, but it doesn't create the command link [01:20] csanz: do i need to pass in a special switch [01:24] chapel: csanz: let me look at it [01:24] csanz: chapel: thanks man [01:24] wookiehangover has joined the channel [01:25] chapel: need to install it with -g flag [01:25] chapel: npm install ngist -g [01:27] philtor has joined the channel [01:32] edude03 has joined the channel [01:35] csanz: chapel: thanks! [01:42] okuryu has joined the channel [01:43] context-: well. if only i knew how this crap was working now [01:43] tmzt: anybody know a process manager like cluster that supports websockets? i"m using nginx proxy_tcp so I don't need it serving from the same port and it doesn't have to be written in node [01:44] MarcinM: what does -g do, anyway [01:45] MarcinM: ah, global mode [01:45] MarcinM: nm [01:45] MarcinM: npm has a man entry. who knew :P [01:45] MarcinM: (other than everyone here, cough) [01:45] tmzt: TooTallNate: are you the mongoose dev? [01:46] TooTallNate: tmzt: no but I work for LearnBoost [01:47] tmzt: hmm, is there a clean way to update an existing record without falling down to mongo-native? [01:47] tmzt: oh, without retieveing it and save() ing [01:48] t|f: Evening all. Anyone have anything to say about nodester, good or bad? Looking for a very cheap hosting for initial deployment of an app and doesn't come cheaper than free. I know you get what you pay for but I have near zip budget. I also know no db, have to use RiakAsYouGo, S3, CouchCloud, or MongoDB cloud (names may off, from memory). [01:48] TooTallNate: tmzt: good question. I'm not entirely sure [01:48] TooTallNate: why wouldn't you be retrieving an instance of it? [01:49] carmony has joined the channel [01:49] tmzt: mostly I use mongoose because I like the User.find* syntax over the db.open() callbacks [01:49] tmzt: for PUT, there's no reason to [01:50] TooTallNate: tmzt: well internally mongoose knows to only send the minimal command needed for the changes [01:50] tmzt: it would still have to cast it to a document though, but I'm mostly taking the PUT data and casting that [01:50] TooTallNate: sorry, what do you mean PUT? [01:50] tmzt: HTTP PUT like a REST pattern [01:51] TooTallNate: so you mean creating a new instance of a document? [01:51] TooTallNate: that's not already in the db? [01:51] tmzt: no, I mean updating an existing document using and identifier or query or _id [01:51] tmzt: like PUT /users/1 would update the user with idx:1 [01:51] TooTallNate: ya i get ya [01:52] tmzt: so it would look more like User.update({idx:1},data) [01:52] TooTallNate: still, I'm not entirely positive on that one [01:52] tmzt: with a callback [01:52] tmzt: okay [01:52] TooTallNate: try opening a github issue and one of the other guys will know [01:52] tmzt: I don't need it for this project, if I ever do my REST to ORM layer for mongoose it will be useful [01:53] tmzt: I just use User.collection.update() but I lose the casting and validation [01:53] Chani: ACTION grumbles about fs not having cp [01:54] mike5w3c has joined the channel [01:54] mikeal has joined the channel [01:56] tmzt: back to my original question, anybody know a unix process manager that works for node processes and websockets? [01:56] TooTallNate: Chani: fs.createReadStream("origFile").pipe(fs.createWriteStream('copiedFile')) [01:57] sub_pop has joined the channel [01:57] skm has joined the channel [02:01] Chani: oh ya, I forgot abut pipe :) thanks [02:02] Chani: and then... um... I get a "drain" event when it's done copying? [02:08] sechrist has joined the channel [02:10] neoesque has joined the channel [02:14] sub_pop has joined the channel [02:15] tayy has joined the channel [02:23] tim_smart has joined the channel [02:23] towski has joined the channel [02:23] Marak has joined the channel [02:24] Marak: To mad science! [02:25] t|f: Anyone have anything to say about nodester, good or bad? Looking for a very cheap hosting for initial deployment of an app and doesn't come cheaper than free. I know you get what you pay for but I have near zip budget. I also know no db, have to use RiakAsYouGo, S3, CouchCloud, or MongoDB cloud (names may off, from memory). [02:31] Chani: anyone know how to fsync a writestream? [02:32] Chani: I might be able to snag the fd and call fsync on that, but, if there was an undocumented method on writestream itself that'd be nicer... [02:32] Chani: but the only method in stream.js is pipe [02:33] AvianFlu: Chani: I hear there's an undocumented fs.fsync [02:34] AvianFlu: try it, I might be confused [02:34] Chani: AvianFlu: yes, there is [02:34] jtsnow has joined the channel [02:34] Chani: AvianFlu: but only for an fd, as far as I've seen... [02:35] Chani: aha, writestream code is in fs.js... [02:35] niftylettuce has joined the channel [02:36] Chani: oh geez, WriteStream.write secretly takes a callback [02:37] vid_ has joined the channel [02:38] edude03 has joined the channel [02:38] Chani: hmm. I wonder if I have access to this.fd [02:38] JasonSmith has joined the channel [02:38] xDROPx has joined the channel [02:38] Chani: looks like I should be able to.. :) [02:40] unvamp has joined the channel [02:42] niftylettuce has joined the channel [02:42] Chani: hmm, I can't remember and can't find anyhting in the docs, but... I have this vague feeling that it is not safe to repeatedly call write() on a WriteStream without checking for something-or-other [02:42] skm has joined the channel [02:42] Chani: oh, n/m [02:42] Chani: "Note that it is unsafe to use fs.write multiple times on the same file without waiting for the callback. For this scenario, fs.createWriteStream is strongly recommende" [02:43] Chani: so it's the opposite :) [02:43] sourcode has joined the channel [02:44] jakehow has joined the channel [02:44] seawise has joined the channel [02:45] AvianFlu: yeah streams ftw [02:47] Chani: crap! I can't get the fd that way [02:47] Chani: and writestream has no fsync method of its own [02:48] Chani: anyone know how to extract a fd from a stream? [02:51] k1ttty has joined the channel [02:52] unlink has joined the channel [02:52] unlink has joined the channel [02:53] chjj: chani: stream.fd [02:53] chjj: you can also set the fd of a write/read stream when creating it [02:54] chjj: e.g. fs.createWriteStream(null, { fd: 1 }) [02:55] Chani: oh bloody fucking hell. it's not the fd that's the problem; fs.fsync was never working for me at all. I forgot to check for errors. [02:55] Chani: this is, um, bad. [02:56] Chani: Error: EBADF, Bad file descriptor [02:56] Chani: why would it think that? [02:57] Chani: ohhhh. [02:57] Chani: once it's closed it stops being valid :P [02:57] Chani: um... hrm. [02:57] Chani: crud. [02:58] Chani: how do I make sure a file is really-really written to disk, *after* it's closed? [02:58] chjj: so dont close it [02:58] chjj: ? [02:58] Chani: hmm. for some of my writes that wuold work [02:58] chjj: if it doesnt throw, im guessing its written to disk [02:58] Chani: but for the pipe, the only way I know it's *finished* is the close... hmm..or... [02:58] tayy has joined the channel [02:59] raynos1 has joined the channel [02:59] raynos1: Does anyone have a stable large scale web application (browser) to use for advertising javascript as a solid development eco system [03:00] raynos1: The google applications don't count (due to infinite resources) and cloud9IDE is too stable [03:01] chjj: what do you mean (browser)? are you trying to sell the clientside to someone? if so, why do googles apps not count? [03:01] gavin_huang has joined the channel [03:01] chjj: im confused as well, js is really the only option there [03:02] Chani: damnit all to hell. why am I never getting "end"? the pipe example uses it... [03:03] raynos1: I would like to convince a C# programmer that there is currently enough potential in js for the small developer to produce applications of a similar size and quality, particularly in terms of robustness [03:04] baoist has joined the channel [03:04] raynos1: Basically can you deploy web applications with similar levels of robustness and speed/ease of development in javascript. [03:04] SubStack: I don't know any small developers [03:05] chjj: well its kind of hard, as soon as someone creates a successful, robust web app, it will get sold to the suits and no longer be the little guy [03:05] chjj: youre asking for a successful web app that is unsuccessful [03:05] raynos1: Well small developer / little guy is the wrong term. [03:06] SubStack: raynos1: http://browserling.com has a solid node backend [03:06] raynos1: SubStack: self promotion \o/ [03:06] Prometheus: they have pretty solid looking UI too =) [03:06] Prometheus: really digging that [03:06] SubStack: yep [03:06] Prometheus: ha [03:06] Chani: ahh, the docs are wrong, pipe just calls close, not end... [03:07] Chani: *but*, the input stream still emits end, and that should be close-enough for flush. [03:07] Chani: I hope. [03:07] hassox has joined the channel [03:08] Chani: hmm. [03:08] raynos1: SubStack: Why does it not match my UK keyboard layout :( [03:08] CIA-110: node: 03Ryan Dahl 07master * r5a2155d 10/ src/node.js : Set process.useUV also on env NODE_USE_UV=1 - http://bit.ly/iFXzo3 [03:09] raynos1: SubStack: I cant type '@' in IE6 :( [03:10] Chani: so.. .I'm doing all this PITA obsessive fsync stuff for my assignment, because the server has to really know for sure that things have been written, so that it can recover properly from failures. but... what about real-world node projects? does anyone out there care? [03:11] nornagon has joined the channel [03:11] Chani: nornagon: hey, ltns :) [03:11] raynos1: But yes, I was looking for a solid non-buggy web application that was done by a small / medium team. [03:11] crmt has joined the channel [03:11] nornagon: Chani: oh hi! [03:12] nornagon: Chani: how go your nodejs adventures? [03:14] Chani: nornagon: fairly well [03:14] sechrist has joined the channel [03:14] Chani: thanks to the TA being really annoying and answering questions in ways that make me have to redo parts of the assignment, I'm getting lots of experience :P [03:14] Chani: see this is why you should never start assignments early... [03:15] SubStack: raynos1: oh the shift thing is messed up [03:15] SubStack: anyhow browserling is just myself and my cofounder [03:15] Emmanuel_ has joined the channel [03:16] Melkor_ has joined the channel [03:17] Prometheus: Chani: what kind of a class lets you use nodejs? [03:17] Prometheus: I'm really in the wrong uni [03:17] Prometheus: or school [03:17] Prometheus: =) [03:17] ceej has joined the channel [03:19] caiges has joined the channel [03:19] gkatsev: SubStack: nice job on nodeup [03:20] SubStack: gkatsev: I didn't have much to say about the core parts though [03:20] SubStack: ACTION keeps to userland for the most part [03:20] gkatsev: it's ok [03:20] mapleman has joined the channel [03:20] gkatsev: it was interesting [03:21] necrodearia has joined the channel [03:21] gkatsev: especially since I've not really been keeping up or using node much lately [03:21] Chani: Prometheus: well actually the teacher changed her mind this year and I wasn't supposed to be using it, but since I was more than halfway through by the time we found out, I got an exception :) [03:21] Prometheus: Chani: very nice [03:21] Prometheus: lucky you =) [03:21] Prometheus: I've been force fed Java :/ [03:21] Chani: yeah. [03:21] Chani: oyy. most people are using that [03:22] Chani: we got confined to "what's on school computers", which is kinda mean, since java's the only language that comes with decent libraries [03:23] Prometheus: Chani: unless you install your own.. =P [03:23] SubStack: java teaches bad habits, like using classes for everything [03:23] Chani: but yeah, I managed to make the course double as a way to learn js :) yay [03:23] SubStack: Chani: I did that in university too except with haskell [03:23] Chani: hehe [03:24] Chani: I wrote a compiler in haskell last year [03:24] SubStack: all my computer graphics and algorithms homework was in haskell [03:24] SubStack: much nicer than using c++ [03:24] Chani: huh, I never thought of using it for that [03:24] Chani: actually, I haven't though of much to use it for besides compilers :) [03:25] Chani: darnit, I'm falling sleep and it's not even 9. I guess I do have to eat dinner after all... [03:25] mapleman has joined the channel [03:28] chjj: sometimes i wish js had goto statements [03:28] horofox has joined the channel [03:28] adrianmg has joined the channel [03:28] xerox: why? [03:28] SubStack: Chani: you can hack those in with stackedy [03:28] SubStack: and burrito [03:28] chjj: nice for writing parsers sometimes [03:29] horofox: I'm using express and I want to store my schemas from mongoose in a different file, I've tried using exports but it didn't work... [03:31] Xano has joined the channel [03:32] pen has joined the channel [03:32] sorensen: im doing that now [03:33] hij1nx has joined the channel [03:33] sorensen: https://github.com/sorensen/aebleskiver/blob/master/lib/schemas.js [03:35] Chani: SubStack: hack what in? [03:36] zeade has joined the channel [03:36] horofox: sorensen: so you are not using exports? how does node get "access" to the schemas? [03:36] sorensen: err sorry got distracted [03:36] Chani: ah crud. I hope there's still somewhere selling food at this hour. [03:36] sorensen: Schemas = require('./schemas') [03:36] sorensen: just require that [03:37] sorensen: im using it in https://github.com/sorensen/aebleskiver/blob/master/lib/backbone-crud.js [03:37] horofox: sorensen: did you write that code? [03:37] Chani: ACTION hasn't had time to stock the apartment with emergency hacked-all-day-forgot-to-eat supplies ;) [03:37] sorensen: i think alot of it came from nodepad [03:37] SubStack: Chani: gotos [03:37] sorensen: er u mean the careless copy pasta i did on top [03:38] sorensen: the schemas anyway [03:38] Chani: SubStack: that was chjj :) [03:38] sorensen: y u ask [03:38] horofox: sorensen: what does module.exports do? [03:38] horofox: lol [03:39] horofox: ACTION is trying to figure out how to do it from scratch [03:39] sorensen: lets you require it for commonJS [03:39] sonnym has joined the channel [03:39] horofox: hm [03:39] sorensen: im sure there are better examples [03:40] sorensen: but as for mongoose schemas [03:40] CStumph has joined the channel [03:40] sorensen: also: https://github.com/alexyoung/nodepad/blob/master/models.js [03:40] horofox: sorensen: ok, i think its alright [03:41] stepheneb has joined the channel [03:42] Emmanuel_ has joined the channel [03:43] Prometheus: sorensen: that nodepad thing is cool [03:43] Prometheus: found http://dailyjs.com/2010/11/01/node-tutorial/ =) [03:43] sorensen: ah nic [03:43] tracker1 has joined the channel [03:44] SubStack: v8: 'doom'.bold() [03:44] v8bot: SubStack: "doom" [03:44] infynyxx has joined the channel [03:46] felipellrocha has joined the channel [03:47] felipellrocha: hey. im new to node.js and i was looking at some templating engines available for node... and i was just wondering if anyone has any good recommendations to get me started... [03:47] temp01 has joined the channel [03:48] devaholic: jade or ejs [03:49] hookio has joined the channel [03:49] Prometheus: whoa, why haven't I subscribed to dailyjs before [03:49] felipellrocha: devaholic: thz. whats the diff between the two? [03:50] devaholic: with ejs you still write html [03:51] devaholic: jade is a bit more minimal [03:52] devaholic: but it comes with a small learning curve [03:52] Aria has joined the channel [03:52] felipellrocha: devaholic: cool. i like that... thz! do you know of any performance benchmark around? [03:54] devaholic: uhh [03:54] devaholic: not really, sorry [03:55] devaholic: if youre new to node.js, this might blow your mind though [03:55] devaholic: https://github.com/dannycoates/node-inspector [03:55] devaholic: (might be what youre looking for) [03:56] felipellrocha: devaholic: thz! :D [03:57] devaholic: Melkor_ is from omaha? the hell [03:58] boehm has joined the channel [03:59] balaa has joined the channel [04:00] brownies has joined the channel [04:02] ngs has joined the channel [04:04] jerrysv has joined the channel [04:09] stepheneb has joined the channel [04:10] kbni has joined the channel [04:12] jerrysv_ has joined the channel [04:12] hookio has joined the channel [04:16] ldopa has joined the channel [04:16] Swizec has joined the channel [04:17] Swizec has joined the channel [04:18] pHcF has joined the channel [04:19] amerine has joined the channel [04:22] necrodearia has joined the channel [04:23] perezd has joined the channel [04:24] Nuck: I'm listening to NodeUp [04:24] Nuck: SubStack: You really are the _why of node. [04:25] Nuck: FUCKING YES BLOODY CHAINSAWS [04:26] Nuck: IT NEEDS TO BE DONE. [04:26] Nuck: isaacs is a fucking genius. [04:26] Nuck: A mad genius. [04:26] Prometheus: NodeUp? [04:27] MikeMakesIt has joined the channel [04:27] Prometheus: yet another thing I'm missing out on? [04:27] Nuck: Prometheus: isaacs, SubStack, and a few others did a podcast. [04:27] Prometheus: ooh [04:27] Prometheus: url? [04:27] MikeMakesIt has left the channel [04:27] Nuck: Prometheus: Check iTunes [04:27] Prometheus: Nuck: alright, thanks [04:27] Nuck: It's called NodeUP and it has a sexy logo [04:28] ryan0x2_ has joined the channel [04:30] MikeMakesIt has joined the channel [04:31] MikeMakesIt has left the channel [04:33] hassox has joined the channel [04:36] ekryski has joined the channel [04:39] fson_ has joined the channel [04:39] kmiyashiro has joined the channel [04:39] electronplusplus has joined the channel [04:39] electronplusplus: hi [04:40] Prometheus: Nuck: found it, thanks for that =) [04:40] electronplusplus: There's a project that allows to create a "TCP" socket in javascript, what's the name? [04:43] tim_smart: electronplusplus: node.js? [04:43] electronplusplus: at client side tim_smart [04:43] tim_smart: electronplusplus: socket.io [04:43] infynyxx has joined the channel [04:43] tim_smart: Or Websockets's [04:44] ceej has joined the channel [04:44] electronplusplus: not websockets [04:44] electronplusplus: a TCP socket [04:44] MikeMakesIt has joined the channel [04:44] electronplusplus: tim_smart: client side and I could use an IP and the remote port [04:45] tim_smart: websockets are the closest you can get [04:45] electronplusplus: and it's not socket.io [04:45] electronplusplus: websockets have a fucking header [04:45] felipellrocha: anyone worked with server side dom for templating? its looking so interesting :) [04:45] electronplusplus: I don't get why they have a header [04:47] seivan has joined the channel [04:47] caiges has joined the channel [04:48] darshanshankar has joined the channel [04:48] sounko has joined the channel [04:53] balaa has joined the channel [05:01] knuthy has joined the channel [05:07] matwill has joined the channel [05:08] kennymeyers has joined the channel [05:09] kennymeyers has left the channel [05:09] kennymeyers has joined the channel [05:09] darshanshankar has joined the channel [05:11] pifantastic has joined the channel [05:13] sreeix has joined the channel [05:19] saikat has joined the channel [05:21] namelessnotion__ has joined the channel [05:21] Swizec has joined the channel [05:24] jakehow has joined the channel [05:30] ezmobius has joined the channel [05:36] Badababuba has joined the channel [05:36] siculars has joined the channel [05:38] CodyGray has joined the channel [05:38] CodyGray has left the channel [05:38] jslatts has joined the channel [05:39] febits has joined the channel [05:42] dexter_e has joined the channel [05:43] dgathright has joined the channel [05:47] brianseeders has joined the channel [05:48] brianseeders has joined the channel [05:52] stagas_ has joined the channel [05:52] nornagon has joined the channel [05:54] bartt has joined the channel [05:59] Skola has joined the channel [06:00] jtsnow has joined the channel [06:01] mikeal has joined the channel [06:05] smtlaissezfaire has joined the channel [06:06] fangel has joined the channel [06:08] sourcode has joined the channel [06:13] jonmaim has joined the channel [06:14] zwittar has joined the channel [06:14] jonmaim: Hello, does anyone know what's the best way to pass data between middleware in express? [06:18] kmiyashiro: ? [06:19] tim_smart: jonmaim: Seems the generally accepted way is to attach is to the response object [06:19] tim_smart: I'm not a fan of that though... [06:19] SubStack: jonmaim: what manner of data? [06:19] tim_smart: attach it* [06:19] SubStack: it's all just javascript [06:19] SubStack: this isn't rails, you can pass around data in the usual ways [06:19] kmiyashiro: attach it to the request [06:19] caiges has joined the channel [06:20] tim_smart: SubStack: With browsify, can I tell it to not inject the path, process etc logic? [06:20] tim_smart: *browserify [06:20] SubStack: path is used internally [06:20] seivan has joined the channel [06:20] thermal has joined the channel [06:20] hassox has joined the channel [06:20] SubStack: tim_smart: you can just minify it :p [06:21] SubStack: > require('browserify')({ filter : require('uglify-js') }).bundle().length [06:21] SubStack: 3638 [06:21] SubStack: ^ tiny [06:21] SubStack: or 8934 bytes uncompressed [06:22] tim_smart: Still a bit much when you just want a simple registry [06:22] jonmaim: SubStack: simple data from database [06:23] tim_smart: jonmaim: Got a code example, we can be more specific then [06:23] SubStack: tim_smart: luckily most connections can tolerate 3k nowadays :p [06:24] tim_smart: SubStack: I might just make a simple packager with the basics [06:24] SubStack: tim_smart: lots of people have done that [06:24] tim_smart: Just to cure the itch [06:24] SubStack: there's brequire [06:24] tim_smart: Ah cool [06:25] _1marc has joined the channel [06:25] nornagon has joined the channel [06:25] _1marc has left the channel [06:25] SubStack: browserify aims at node compliance where possible [06:25] SubStack: and developer convenience [06:28] jonmaim: tim_smart: I will attach the data that need to be passed between middleware to the request object. That's the hint I needed thx :-) [06:29] sub_pop has joined the channel [06:29] namelessnotion has joined the channel [06:31] tayy has joined the channel [06:33] amerine has joined the channel [06:34] steffkes has joined the channel [06:35] Wa has joined the channel [06:37] FireFly|n900 has joined the channel [06:41] gozala has joined the channel [06:44] mediahack has joined the channel [06:51] dexter_e has joined the channel [06:51] temp01 has joined the channel [06:53] charleyd has joined the channel [06:56] Wa has joined the channel [06:57] __doc__ has joined the channel [06:58] zomgbie has joined the channel [07:00] materialdesigner has joined the channel [07:03] sreeix has joined the channel [07:03] ditesh|cassini has joined the channel [07:11] gkmngrgn has joined the channel [07:12] patrikkarlin has joined the channel [07:12] shapeshed has joined the channel [07:13] jameson has joined the channel [07:14] AAA_awright has joined the channel [07:14] yozgrahame has joined the channel [07:21] admc has joined the channel [07:28] mikeal has joined the channel [07:30] marlun has joined the channel [07:30] shapeshed_ has joined the channel [07:31] markwubben has joined the channel [07:31] CIA-110: node: 03Ryan Dahl 07master * ra1e8fcc 10/ (4 files in 2 dirs): Merge branch 'v0.4' - http://bit.ly/lh4QFs [07:31] CIA-110: node: 03Ryan Dahl 07master * r69d20f5 10/ (lib/net_uv.js test/simple/test-net-connect-buffer.js): use_uv: Correct readyState on connecting - http://bit.ly/jKN43S [07:32] SamuraiJack has joined the channel [07:34] Skola: Is the "Dragon book" still the way to go for learning compilers? [07:34] febits has joined the channel [07:36] JasonSmith has joined the channel [07:38] xDROPx has joined the channel [07:38] xDROPx has joined the channel [07:40] xDROPx has joined the channel [07:41] omni5cience_ has joined the channel [07:41] saikat has joined the channel [07:44] mike5w3c_ has joined the channel [07:44] context-: "not websockets, a tcp socket" .... best quote ive read from this channel so far. [07:45] context-: last i checked websockets are over tcp. so you get your tcp socket PLUS ! [07:48] pigmej has joined the channel [07:52] Ramosa has joined the channel [07:52] jetienne: context-: check again [07:54] context-: "WebSocket is a technology providing for bi-directional, full-duplex communications channels, over a single Transmission Control Protocol (TCP) socket." [07:54] context-: there is your tcp socket [07:54] jetienne: you didnt check again, you keep repeating [07:54] hlindset has joined the channel [07:54] hlindset has joined the channel [07:54] jetienne: context-: the point being both are very different [07:55] bx2 has joined the channel [07:55] context-: they are hardly comparable technically. two totally different layers of OSI [07:55] context-: but it IS a tcp socket. [07:55] jetienne: nah [07:55] jetienne: this is why you need to check again :) [07:56] mega_ has joined the channel [07:56] context-: what i said is correct. [07:56] context-: websocket gives you a tcp socket PLUS [07:56] jetienne: hehe [07:56] context-: whether you want the plus or not is not up to you ;) [07:57] jetienne: context-: for next time check again, or you may repeat again and other people will contradict you :) [07:57] indutny: hey, checkout a SPDY demo site: https://spdy.indutny.com/ [07:58] indutny: now with valid SSL cert! [07:58] indutny: :) [07:58] shapeshed has joined the channel [08:02] context-: spdy gives you 'channeled' http connections right? (in a sense) [08:02] indutny: context-: yep [08:02] context-: kk [08:03] context-: i like how they put it in chrome and then are like 'oh yeah, win! implement now. k thnx bye' [08:03] bx2 has left the channel [08:04] indutny: :) [08:06] FireFly|n900 has joined the channel [08:07] shirro has joined the channel [08:07] shirro has joined the channel [08:08] Prism has joined the channel [08:10] sreeix has joined the channel [08:13] mraleph has joined the channel [08:14] baoist has joined the channel [08:16] euforic has joined the channel [08:16] baoist has joined the channel [08:17] robhawkes has joined the channel [08:24] MikeMakesIt has joined the channel [08:26] hassox has joined the channel [08:28] `3rdEden has joined the channel [08:32] charleyd has joined the channel [08:41] hybsch has joined the channel [08:42] fly-away has joined the channel [08:44] uchuff has joined the channel [08:47] thejh has joined the channel [08:48] MikeMakesIt has joined the channel [08:54] saurabhverma has joined the channel [08:54] simenbrekken has joined the channel [08:56] niftylettuce has joined the channel [08:58] liar has joined the channel [09:00] zomgbie_ has joined the channel [09:05] adambeynon has joined the channel [09:09] shapeshed has joined the channel [09:10] jacobolus has joined the channel [09:10] aliem has joined the channel [09:11] ajpiaNOU has joined the channel [09:11] Me1000 has joined the channel [09:11] hwinkel has joined the channel [09:12] Me1000 has joined the channel [09:13] vjvjftft has joined the channel [09:14] jonmaim has joined the channel [09:15] stagas has joined the channel [09:16] stephank has joined the channel [09:20] mendel_ has joined the channel [09:34] admc has joined the channel [09:34] shapeshed has joined the channel [09:34] ajpiaNOU has joined the channel [09:36] ajpiaNOU has joined the channel [09:43] tokumine has joined the channel [09:45] pen has joined the channel [09:47] Yoric has joined the channel [09:50] code2k has joined the channel [09:52] herbySk has joined the channel [09:53] mange has joined the channel [09:55] Emmanuel_ has joined the channel [09:57] ts__ has joined the channel [09:58] caiges has joined the channel [10:09] jonmaim has joined the channel [10:10] jborst has joined the channel [10:12] eirikb has joined the channel [10:13] eirikb: Hello. How can I use search with npm (code)? I tried var npm = requrie('npm'); npm.load({}, function() { npm.search(['jquery'], function() { console.log(arguments); }); }); but it will only throw out all packages [10:15] eirikb: s/npm.search/npm.commands.search [10:16] unlink has joined the channel [10:16] unlink has joined the channel [10:17] JoshC1 has joined the channel [10:20] MattJ has joined the channel [10:22] eirikb: I can always just: npm.commands.ls([], function(err, data) { Object.keys(data).filter(function(key) { return key.match(/jquery/); }); }); [10:23] onr: eirikb: hey :) [10:23] eirikb: onr: Hey :) [10:24] eirikb: Filter works, but I guess it's best with search [10:25] sourcode has joined the channel [10:25] Ramosa has joined the channel [10:26] dexter_e has joined the channel [10:27] Ramosa: does node.js work with SWIG? If I got a c++ library that I would like to access via node.js and would prefer not to write too much c++ myself [10:28] Ramosa: or is the specific c++ module/addon for that purpose? [10:33] etaty has joined the channel [10:39] tokumine has joined the channel [10:42] StephenFalken has joined the channel [10:50] akshatj has joined the channel [10:53] adrianmg has joined the channel [10:53] jomoho has joined the channel [10:56] mikl has joined the channel [10:56] mikl has joined the channel [11:07] pastak_ has joined the channel [11:07] Wizek has joined the channel [11:08] pastak__ has joined the channel [11:12] level09 has joined the channel [11:13] adrianmg has joined the channel [11:13] balaa has joined the channel [11:18] necrodearia has joined the channel [11:19] Mrfloyd has joined the channel [11:19] adrianmg1 has joined the channel [11:25] dexter_e has joined the channel [11:29] ePirat has joined the channel [11:32] blup has joined the channel [11:34] adrianmg has joined the channel [11:35] mc_greeny has joined the channel [11:38] zomgbie has joined the channel [11:39] mxp has joined the channel [11:43] christkv has joined the channel [11:43] deedubs has joined the channel [11:45] xandrews has joined the channel [11:45] caiges has joined the channel [11:45] bbrandon has joined the channel [11:47] Yoric has joined the channel [11:47] Aria has joined the channel [11:50] xDROPx has joined the channel [11:50] [AD]Turbo has joined the channel [11:53] tayy has joined the channel [11:53] sethetter has joined the channel [11:53] aliem has joined the channel [11:56] ePirat: Hello [11:58] asabil has joined the channel [11:58] trepan has joined the channel [12:02] Yoric has joined the channel [12:04] RushPL has joined the channel [12:16] ePirat: I have a question, why the example from the video on node.js website doesnt work? https://gist.github.com/1059975 [12:18] ePirat: ok i found it [12:18] ePirat: i spelled length wrong... [12:19] sethetter has joined the channel [12:25] Ramosa: 575 people can be awfully quiet :p [12:25] shimondoodkin has joined the channel [12:26] dall has joined the channel [12:26] Aiden_ has joined the channel [12:26] dall: hello [12:27] dall: https://github.com/joyent/node/wiki/Installation <---- do i have to install node in this manner or do i have to donwload the tar.gz ? [12:30] dvv has joined the channel [12:31] pigmej: does anyone know how to pass additional parameters to cradle.save , cradle.get etc? [12:33] dall: there arent' differencesif i install node from tar.gz or github ? [12:34] patrikkarlin has joined the channel [12:34] Aria: dall: not if you use the same branch. [12:34] Aria: dall: trunk, however, is unstable, soon to be the 0.5 series. [12:34] shimondoodkin: dall what would you like to do? [12:34] Aria: er. master, not trunk. [12:34] shimondoodkin: dall: is it a server ? [12:34] shimondoodkin: dall: is it a dev? [12:35] shimondoodkin: is it windows / mac? [12:35] shimondoodkin: linux? [12:35] dall: server [12:35] dall: linux [12:35] dall: i want to run my website [12:35] dall: i developed it using express [12:36] dall: now i want to put node on my linux VPS [12:36] mAritz has joined the channel [12:36] shimondoodkin: dall: usually you donwload a tar.gz [12:37] TomY has joined the channel [12:37] TomY_ has joined the channel [12:37] dall: shimondoodkin, ok i will donwload the tar [12:37] dall: i heard that i can install node using NPM....maybe i remember wrong [12:37] shimondoodkin: dall: for production you usualy want to conserve the version, so you can use nave or nvm when you run your script [12:38] code2k has joined the channel [12:38] Aria: no, npm requires node to run ;-) [12:38] dall: Aria, :) ok [12:38] Aria: but you might be thinking of nvm [12:38] dall: hmmm [12:38] dall: maybe [12:38] dall: shimondoodkin, ok but is 2011.06.29 node-v0.4.9.tar.gz the last stable version of node ? [12:39] pigmej: anyone is using craddle? [12:41] rauchg has joined the channel [12:41] shimondoodkin: pigmej:https://github.com/cloudhead/cradle/blob/master/lib/cradle.js#L293 [12:42] eirikb has left the channel [12:42] namelessnotion has joined the channel [12:43] dall: shimondoodkin, i'm going to install this tar.gz [12:43] shimondoodkin: dall: as aria said the 0.5 version is unstable yet, however you can get the unstable version from github. , yes sems like it is the last stable version [12:44] pigmej: shimondoodkin: ? [12:44] pigmej: ah ok but it's commented;D [12:44] dall: shimondoodkin, as far i have understand......github always has the newest version....and the tar is the stable [12:44] pigmej: ah ok got it :) [12:44] dall: right? [12:45] pigmej: hmm butt that's not what I wanted... [12:45] pigmej: because I can't send there additional parmeters... [12:46] rvb has joined the channel [12:46] bentkus: what will make the 0.5 release so special? [12:47] shimondoodkin: dall: yes and look also on the network to see who have the newest modifications, but this is not the case with node js better get the stable version from tar [12:48] dexter_e has joined the channel [12:48] dall: ok [12:48] pigmej: shimondoodkin: the problem it seems taht you you can't add http parameters to cradle things... [12:48] dall: so when they will create 0.5.tar.gz i will download it because it will be stable [12:48] dall: oook [12:49] pigmej: also I have no idea how to for example [12:49] pigmej: include_docs=True [12:49] pigmej: in views... [12:49] pigmej: also start/end keys... [12:49] pigmej: etc [12:51] Nican has joined the channel [12:53] hlindset has joined the channel [12:53] hlindset has joined the channel [12:54] skript_ has joined the channel [12:55] zomgbie has joined the channel [12:57] unvamp has joined the channel [12:58] shimondoodkin has joined the channel [13:01] Xano has joined the channel [13:02] sethetter: I'm trying to run unit tests on an object using mongoose, I think I may be doing the module exports incorrectly though. What do I need to export to be able to return new instances of a mongoose model? [13:03] pen has joined the channel [13:04] k1ttty has joined the channel [13:06] FireFly|n900 has joined the channel [13:06] FireFly|n900 has joined the channel [13:13] zeade has joined the channel [13:14] balaa has joined the channel [13:14] robhawkes has joined the channel [13:18] pkrumins: ACTION breaks silence [13:18] Aria: 'allo [13:20] Skola: sethetter [13:20] sethetter: yes? [13:20] Skola: export an instance of the model [13:20] sethetter: Would exporting a function that returns a new instance of the model work? [13:21] sethetter: That's what I am doing now [13:21] skohorn has joined the channel [13:22] AntelopeSalad has joined the channel [13:22] Skola: mongoose.model('ModelName', ModelName) [13:22] Skola: module.exports = mongoose.model('ModeName') [13:22] Skola: IIRC [13:22] ceej has joined the channel [13:23] Skola: ModelName* [13:23] sethetter: I tried that at one point too, but my expresso test is still saying my instance is undefined [13:24] Skola: well you do require it don't you? [13:24] sethetter: Yes [13:25] shimondoodkin has joined the channel [13:25] sethetter: If it's required like - "var Model = require('../model');" then I should be able to do "var m = new Model();" right? [13:26] piscisaureus has joined the channel [13:26] Skola: you also did YourModel = new Scheme ({ etc }) ? [13:26] sethetter: Yes [13:26] CStumph has joined the channel [13:26] Skola: :S [13:27] shimondoodkin: sethetter: you can do like: module.exports=function to return [13:27] sethetter: to return new instance of Model, right? [13:28] shimondoodkin: sethetter: or object to return [13:29] sethetter: then I use it by doing "var m = Model();"? after it's required? [13:29] bx2 has joined the channel [13:29] shimondoodkin: sethetter: you can, but better don't. because the module is cached and you might get a static variable. better return a function that when called will do new [13:29] shimondoodkin: sethetter: a function that will return a new object [13:30] sethetter: right, that's what i did. i meant in the document it's required into [13:30] sethetter: I can init a new instance of the model by doing "var m = Model();", correct? or is that wrong [13:30] sethetter: That would be calling the function that returns a new instance of the object right? [13:30] shimondoodkin: sorry, i don't know what you are doing [13:31] sethetter: my mongoose model is defined in one file, exported with "module.exports = function() { return new Model(): }" [13:31] pigmej: shimondoodkin: do you know how to pass additional HTTP arguments to cradle ? [13:31] pigmej: because in thtat source that you showed there is no info about it;)) [13:32] sethetter: then in another file I have required with "var Model = require('../model');" and then trying to get a new instance of the model with "var m = Model();" [13:32] bogomips has joined the channel [13:32] unomi has joined the channel [13:32] temp01 has joined the channel [13:34] Aiden_ has joined the channel [13:40] hwinkel has joined the channel [13:40] liar has joined the channel [13:40] jonmaim has joined the channel [13:40] shimondoodkin: sethetter: if your model is defiend with schema like in this file then it should be ok https://github.com/LearnBoost/mongoose/blob/master/test/model.test.js [13:41] shimondoodkin: sethetter: seems like yes [13:42] shimondoodkin: pigmej: what do you mean by additional parameters? [13:42] scottschecter has joined the channel [13:43] tshpaper has joined the channel [13:43] sethetter: I think I see the problem, I wasn't defining the model again inside of my tests, but they are here [13:43] shimondoodkin: sethetter: maybe you did not defiend your model [13:43] sethetter: I did in the file I required in, but not in my test file [13:44] sub_pop has joined the channel [13:44] pigmej: shimondoodkin: to make a request like this [13:44] sethetter: They have their test set up differently here. I defined my schema in a different file, and tried to require that into my test file [13:44] pigmej: curl -X PUT http://some_host:5984/some_db/some_doc?x=1 [13:45] materialdesigner has joined the channel [13:45] shimondoodkin: sethetter: try to print what you get, with console.log [13:46] sethetter: Not sure why I didn't do that before.. [13:46] sethetter: But that revealed the problem, it's the testing library I'm using apparently [13:46] pigmej: shimondoodkin: you got the idea? [13:46] sethetter: The object it printed was correct [13:46] sethetter: But should.js is telling me the var is undefined. [13:47] shimondoodkin: pigmej: yes [13:48] sethetter: I'll try running tests through the assert module instead. [13:48] pigmej: i think it's possible to add it to existing doc-id [13:48] bbrandon has joined the channel [13:48] pigmej: but it seems it's impossible to save new document(without doc-id) with additional parametres [13:48] shimondoodkin: pigmej: the simple answer is you can't, https://github.com/cloudhead/cradle/blob/master/lib/cradle.js#L374 it will be escaped when splited maped on escapestring and joined again. [13:49] akshatj has joined the channel [13:49] pigmej: damn right ;/ [13:49] pigmej: so I can't use cradle ;/ [13:49] shimondoodkin: you can patch it [13:49] Nican has joined the channel [13:50] pigmej: hmm [13:50] pigmej: but it's funny [13:50] pigmej: because it seems that it worked [13:51] pigmej: http://wklej.to/TiBXB/text [13:51] pigmej: but it's for existing docs ;/ [13:52] shimondoodkin: pigmej: do you want it go as a querystring, not as doc id, right? [13:53] pigmej: sure but if it will work in that way [13:53] pigmej: i can accept it also... [13:53] pigmej: and that ?x=1 is not mapped as docid [13:53] pigmej: it seems to be passed as argument [13:54] sethetter: Got it worked out. Something was messed up with the should library, but I reinstalled locally with npm and everything turned out good! :) [13:55] shimondoodkin: you can check if id contains '?' from the end and split by it and add it later after the escape [13:55] Mrfloyd has joined the channel [13:55] pigmej: shimondoodkin: well [13:55] pigmej: the thing is [13:55] pigmej: that document.save [13:56] pigmej: db.save [13:56] pigmej: goes through post [13:56] pigmej: not put... [13:56] pigmej: eh not edit [13:56] pigmej: post => not known id [13:56] pigmej: put => known one [13:59] shimondoodkin: pigmej: why do you use cradle? it seems like nobody is updating it [14:00] Melkor_ has joined the channel [14:01] jensn has joined the channel [14:01] pigmej: shimondoodkin: what's better than cradle ? [14:02] shimondoodkin: pigmej: i dont know, but i know that https://github.com/mikeal is the guru of couchdb [14:02] pigmej: shimondoodkin: he don't have his own lib for couch;p [14:03] shimondoodkin: pigmej: i mean maybe to look on what he is doing [14:04] pigmej: well [14:04] pigmej: he's not using couchdb as I see... [14:05] pigmej: just some couchapp plays [14:05] jslatts has joined the channel [14:05] pigmej: cradle last update is 14.06 (2 weeks ago) [14:05] pigmej: his couchdb things >1 year ago [14:06] shimondoodkin: oh [14:07] pigmej: i wonder why... [14:07] pigmej: because isn't Mikeal from CouchOne? [14:07] shimondoodkin: pigmej: in general you can make a quick patch for this for your needs, also maybe it is possible to find something new on https://github.com/joyent/node/wiki/modules [14:08] pigmej: anyway it's funny in node.js world [14:08] pigmej: that most of libs are lack serious functionalities... [14:08] JasonSmith: Many people from the Couch community feel like, Couch is HTTP. Couch is REST. Use an HTTP client. That has the least impedence mismatch [14:08] pigmej: most of them works in single db setups etc... [14:08] JasonSmith: Mikeal would definitely recommend https://github.com/mikeal/request for couch access [14:09] JasonSmith: I fully agree. I see no point in couch clients. *However* I spoke with Charlie Robbins at NodeConf and he said cradle is very good and I should revisit it. He's sharp so I will assume he is right [14:09] pigmej: JasonSmith: well [14:10] pigmej: maybe it's very good [14:10] pigmej: but... you can't use it with *any* cluster setup [14:10] pigmej: so it's useless in serious production setups [14:10] JasonSmith: pigmej: couch cluster? [14:10] pigmej: am I wrong? [14:10] pigmej: JasonSmith: yup [14:10] dexter_e has joined the channel [14:11] JasonSmith: First, "any" is a big word. Single-write master, multi-read slaves could still work. However you cannot use it "generally" with couch -- totally [14:11] pigmej: heh [14:11] unlink has joined the channel [14:11] pigmej: master slave [14:11] JasonSmith: sorry, I saw "cluster" and read "couch" [14:11] pigmej: isn't a solution :) [14:12] JasonSmith: bigcouch and lounge clusters both strike me as cradle-compatible [14:12] pigmej: JasonSmith: yup [14:12] pigmej: until [14:12] pigmej: you want to change [14:12] pigmej: RW [14:12] pigmej: params [14:12] pigmej: to adjust the performance for db / document [14:12] JasonSmith: Don't get me wrong, I told the author of cradle that cradle was shit. (This was 5 seconds before Charlie told me who he was) [14:12] pigmej: and/or security [14:12] Charuru has joined the channel [14:13] pigmej: sure that it works with default values [14:13] pigmej: defined per cluster... [14:13] pigmej: but well.... [14:13] JasonSmith: I will check out cradle again on his say-so but I still feel super comfortable using HTTP to access couch [14:13] pigmej: some data needs to be more secure than others [14:13] pigmej: generally agree... [14:13] FIQ has joined the channel [14:13] JasonSmith: pigmej: indeed [14:13] pigmej: but [14:14] pigmej: "cradle — a high-level, caching, CouchDB client" [14:14] pigmej: replace with [14:14] pigmej: "cradle — a high-level, caching, CouchDB client, not for cluster setups" :P [14:14] JasonSmith: right [14:14] pigmej: result? cradle is a 'toy' [14:14] pigmej: ;-) [14:14] kmwallio has joined the channel [14:14] pigmej: (my personal opinion) [14:15] JasonSmith: Accessing the local couch on an iphone, android, or webos strikes me as a worthwhile configuration :) [14:15] pigmej: sure... it will work in 90% of cases very very well [14:15] pigmej: hehe :)) [14:15] JasonSmith: since those are somewhere between alpha and vaporware, I would reply to myself: so what? [14:15] pigmej: i just wonder why he splits the id, escapes it [14:16] pigmej: and joins back... [14:16] JasonSmith: pigmej: where is that? [14:16] JasonSmith: CouchDB has one exception to its id rules, which is all slashes must be %2f *except* "_design/". Could it be that? [14:16] pigmej: https://github.com/cloudhead/cradle/blob/master/lib/cradle.js#L374 [14:16] pigmej: JasonSmith: yup... but [14:17] pigmej: he doesn't replace slashes... [14:17] JasonSmith: oh interesting, not sure about that code [14:17] JasonSmith: yes, my idea wasn't relevant [14:17] pigmej: above you have POST [14:17] pigmej: where there is no that replace [14:17] pigmej: ok forget [14:17] pigmej: :P [14:17] pigmej: thta was bullshit that I said ;) [14:17] pigmej: ;-) [14:17] pigmej: anyway... [14:17] pigmej: from my point of view [14:18] pigmej: id.split('/').map(querystring.escape).join('/') [14:18] JasonSmith: my own code does: encodeURIComponent(url).replace(/^_design%2f/, '_design/'); // :( [14:18] pigmej: fixes 'only' the _ [14:19] akshatj has joined the channel [14:19] pigmej: hmm [14:19] dall: hi guys [14:20] dall: i just installed node on the server [14:20] pigmej: JasonSmith: http://wklej.to/hGNVO/text [14:20] JasonSmith: anyway I am sure they would welcome your patch to correct this honest oversite, pigmej :) [14:20] pigmej: same code but from npm... [14:20] dall: i launched my website (one page....with one