[00:00] willwhite has joined the channel [00:02] Metal3d has joined the channel [00:02] admc has joined the channel [00:02] DTrejo has joined the channel [00:03] DTrejo has joined the channel [00:03] CIA-65: node: 03Ryan Dahl 07master * rf145e35 10/ tools/test.py : Tests should point at the build directory until GYP is default - http://bit.ly/oERPRZ [00:03] CIA-65: node: 03Robert Mustacchi 07master * r0df08c6 10/ (11 files in 3 dirs): Endian argument should be a boolean. Signed integers shouldn't run through checks for unsigned integers. Clean up jslint. Provide unchecked uint entry points. - http://bit.ly/nmBjvd [00:04] bbrandon has joined the channel [00:04] acolyte has joined the channel [00:06] ericmuyser has joined the channel [00:06] bradleymeck has joined the channel [00:07] xandrews has joined the channel [00:07] mehtryx has joined the channel [00:08] acolyte: Anyone had issues building nodejs 5.3 on ubuntu v10? [00:08] hasta84: rmustacc: like the changes to the buffer very much ;) [00:08] mscdex: why are we using booleans for the endianness? [00:08] mscdex: that makes it seem less readable [00:08] mscdex: :S [00:09] hasta84: mscdex: before you had to specify the endianess with each call, no mather what [00:09] rmustacc: mscdex: Mostly because there are currently only two endian options and people complained strings. [00:09] hasta84: mscdex: also string comparison is very slow [00:09] zeade has joined the channel [00:10] mscdex: hasta84: you still have to do that [00:10] chilts has joined the channel [00:10] mscdex: by providing true or false [00:10] rchavik has joined the channel [00:10] rchavik has joined the channel [00:10] hasta84: mscdex: only if you want big endian [00:10] hasta84: its little endian default [00:10] rmustacc: No it's not. [00:10] rmustacc: There is no default. [00:11] hasta84: heu? [00:12] mscdex: heh [00:13] hasta84: but I see little endian as default [00:13] mscdex: we could just create separate functions for each then we wouldn't have to pass an additional argument! [00:13] mscdex: ;-) [00:13] CIA-65: node: 03Ryan Dahl 07master * r2126989 10/ (lib/http.js lib/http2.js test/simple/test-http-parser.js): [00:13] CIA-65: node: Fix test-http-upgrade-server and test-http-parser [00:13] CIA-65: node: Problem was introduced in last http-parser upgrade which fixed a long [00:13] CIA-65: node: standing bug with the upgrade event and removed several callbacks. - http://bit.ly/q16b79 [00:13] zhujo01 has joined the channel [00:13] mscdex: i dunno, using a boolean to specify endianness just seems odd [00:14] hasta84: if(bigEndian){} else {} ? [00:14] bnoordhuis: mscdex: re why booleans: performance! [00:14] hasta84: bnoordhuis: exactly [00:14] mscdex: why not writeFloatLE and writeFloatBE? [00:15] mscdex: at least that makes it more clearer [00:16] bnoordhuis: i'm partial to the idea [00:16] rmustacc: I could see that working. [00:16] te-brian has joined the channel [00:16] hasta84: me too [00:17] hasta84: still, it defaults to little endian at the moment [00:17] rmustacc: hasta84: You have to specify the boolean. [00:17] mscdex: yeah [00:17] hasta84: ah sh*t i see [00:18] hasta84: well, not if you use the *NoChk versions ;) [00:18] CrisO has joined the channel [00:19] Tuller has joined the channel [00:19] rmustacc: Sure, but you can also write something that doesn't write anything to the buffer that way. [00:19] hasta84: true [00:19] mscdex: maybe you could reuse the boolean arg as being no-check or not [00:20] micheil: ryah: hmm.. I think I was to git blame for that + 1 bug.. [00:20] rchavik has joined the channel [00:20] mscdex: writeFloatLE(val, 0, true) would do a no-check, otherwise would default to check if it was not supplied or was set to false [00:21] mscdex: or maybe the other way around [00:21] ryah: micheil: nope - that was my bug [00:21] hasta84: sounds good [00:21] micheil: ryah: oh, okay [00:22] hasta84: the LE and BE still looks weird somehow [00:22] mscdex: why? [00:22] hasta84: don't know, just not used to it maybe [00:22] mscdex: those are the abbreviations used commonly in c++ land and such afaik [00:24] hasta84: mscdex: I like the idea [00:25] __tosh has joined the channel [00:26] boaz has joined the channel [00:27] sechrist has joined the channel [00:28] slifty_corsair has joined the channel [00:30] CrisO has left the channel [00:33] cafesofie has joined the channel [00:34] bwinton has joined the channel [00:36] CIA-65: node: 03Ryan Dahl 07master * rab0b1f9 10/ test/simple/test-executable-path.js : Fix test-executable-path - http://bit.ly/nutUjx [00:36] Peniar has joined the channel [00:38] ironlad has joined the channel [00:38] thirtysixred has joined the channel [00:40] technoweenie has joined the channel [00:41] [[zz]] has joined the channel [00:42] thirtysixred: How would I structure my Async database queries to get a structure like so: http://pastie.org/private/ha8tdtfofgezun4aeieglw ? [00:42] abraxas has joined the channel [00:42] postwait has joined the channel [00:44] gmonnerat has joined the channel [00:44] gmonnerat has left the channel [00:44] uchuff has joined the channel [00:45] unlink has joined the channel [00:45] unlink has joined the channel [00:51] CIA-65: node: 03Ryan Dahl 07master * r7332c40 10/ lib/buffer.js : Truncate Buffer.inspect at 50 bytes - http://bit.ly/naq5u8 [00:54] bbttxu has joined the channel [00:55] ale has joined the channel [00:56] ale: Hello, I am trying to setup expressjs with socket.io, but I am having problems with the ports, can someone tell me how to set it up please? http://pastebin.com/0uDmQcxD [00:57] ericmuyser has joined the channel [00:57] Dreamer3 has joined the channel [00:58] ruprict: ale: What's it doing? [00:58] jacobolus has joined the channel [00:58] ale: When I access 127.0.0.1/testnode it says "Page not found" [00:58] thirtysixred: What about testnode/1 ? [00:58] ale: It gives id: 1 [00:58] ruprict: ARe you putting the port (81) in the url? [00:58] thirtysixred: http://127.0.0.1:81/testnode/1 [00:59] xandrews has joined the channel [00:59] ale: If I access 127.0.0.1:81/testnode it says "Cannot GET /testnode" [00:59] ale: Okey, now my question is how can I do that without making the user to write in the port? [00:59] ale: I mean, change it to 80 [00:59] ale: What should I change? [00:59] thirtysixred: ale: You haven't routed /testnode [01:00] thirtysixred: 80, yes. [01:00] ruprict: RIght, you have not route for just /testnode (without the id) [01:00] ale: How should I route it? I mean, it's the index! [01:01] ruprict: Well, "/" is the what I think you mean by "the index" [01:01] thirtysixred: app.get('/testnode', function(req, res){ res.render('index'); }); ?? [01:01] zaller has joined the channel [01:01] ale: hmm let me check [01:02] thirtysixred: ruprict: I think he's thinking the index.html works like apache [01:02] ruprict: ale: Ah, k. [01:02] hasta84 has left the channel [01:02] ale: Nono, I know it's nothing like apache [01:02] ale: Anyway I come from that side [01:02] ale: That's why I confuse sometimes [01:03] ale: Where should I link it? It says index.hhtml is not found [01:03] ruprict: Well, if you want http://localhsot/testnode to render index.html, then you need to route it just like thirtysixred sais [01:03] ale: And it's on the same folder as server.js [01:04] ruprict: ale: if you want http://localhost to render index.html, then do app.get('/', function(req, res){ res.render('index'); }); [01:04] ale: Should I put it yes or yes inside /view ? [01:04] ale: ruprict: I know, but it's a subdirectory, localhost/testnode [01:05] ale: So, should I put the rendering files inside views? [01:05] ruprict: ale: But you said index.html was at the same level as server.js, right? [01:05] ale: ruprict: Yes, both are inside /testnode [01:06] ale: Should I use app.configure? [01:06] hippich has joined the channel [01:06] thirtysixred: What are you trying to accomplish? [01:06] ruprict: ale: So, the root of your app is where server.js lives [01:07] ale: Yes [01:07] jomoho2 has joined the channel [01:07] ruprict: if you are at the command line, and you type 'node server.js', then there is no subdir [01:07] ruprict: Also, doesn't really matter if there was, you'd still have to tell express to use it. What happens when you start your server and open http://localhost:81 ? [01:08] ale: ruprict: now I get "Error: Cannot find module 'html'" [01:08] e6nian has joined the channel [01:08] thirtysixred: Ah, forgot that express is going to try and use html as the template engine. [01:09] ruprict: Yup... [01:09] e6nian has joined the channel [01:09] ale: Oh! So?? All my html pages? [01:09] ruprict: Can't he just use express.static(__dirname)? [01:09] tjholowaychuk: html is not a template [01:09] thirtysixred: ruprict: Ha, I suppose. [01:09] ale: Soo?? How would you do? [01:10] ruprict: ale: Try this app.use(express.static(__dirname)); [01:10] ruprict: Restart, go to http://localhost:81 [01:10] ironlad has joined the channel [01:10] ruprict: (btw, that's TWO underscores in __dirname) [01:10] jMerliN has joined the channel [01:11] ale: Error: failed to locate view "index" [01:11] ale: But when I go to the console I get index.undefined [01:11] ale: so I set index.html [01:11] hippich has joined the channel [01:11] ruprict: Did you put in a route for "/"? [01:11] CIA-65: libuv: 03Peter Bright 07master * r648baa3 10/ src/eio/eio.c : Fix missing prototype warnings. - http://bit.ly/qzrlxt [01:12] ale: ruprict: The problem is the .html. I get Cannot find module 'html' after putting it [01:12] chin has joined the channel [01:12] ruprict: ale: Yup, I think you need to take out the whole route…hold…lemme cobble something together to make sure I am not high. [01:13] ale: Hold on, where should I put the app.use(express.static(__dirname)); ?? [01:13] ale: inside configure? [01:14] ale: ruprict [01:15] ruprict: ale: does that pastebin still match? [01:16] ruprict: You can put the call to .static in configure, sure. [01:16] ale: ruprict, yes I just changed ports for being accessible from :80 [01:16] airhorns has joined the channel [01:16] ruprict: app.configure(app.use(express.static(__dirname))); [01:17] ruprict: (or something…think I forgot a fucntion there) [01:17] tjholowaychuk: ? [01:17] CIA-65: libuv: 03Ben Noordhuis 07master * r65ed582 10/ test/benchmark-pound.c : bench: run pound benchmark for at least 5 seconds, track connect failures - http://bit.ly/qdTM8G [01:17] tjholowaychuk: just the app.use() [01:17] ale: yes, thing so [01:17] ale: ok! [01:17] tjholowaychuk: configure is optional [01:17] tjholowaychuk: and has nothing to do with middleware :p [01:17] ruprict: OK…sorry, my bad. [01:18] tjholowaychuk: s'all good. hopefully soon I'll have some better connect docs [01:18] tjholowaychuk: for middleware usage [01:18] ruprict: But…the guide on expressjs.com has it in app.configure…..which I guess is only if you have >1 middleware? [01:18] devongovett has joined the channel [01:18] ale: ruprict, not working, failed to locate view "index.html", tried: - /var/www/testnode/views/index.html [01:18] racar: Hello folks, since all mysql query / connection are doing async. The best why is to do nested callback for sync stuff ? do you have any other solution ? ( reference counter is a possibility too ) [01:18] xerox: an hour debugging http auth, and I had the wrong password [01:18] xerox: how demeaning [01:18] thirtysixred: racar: :p I was just about to ask the same question. [01:19] tjholowaychuk: ale app.use(express.static(__dirname + '/public')) .. ./public/foo.html GET /foo.html [01:19] racar: thirtysixred, i'm impressed ;) [01:19] ruprict: http://pastebin.com/ffz8YRxG [01:19] thirtysixred: xerox: haha, happens to the best of us. I've tried debugging for ~30 mins before I realized that I wasn't using supervisor and the server wasn't actually restarting. [01:19] xerox: dang :( [01:19] ruprict: ale: That will server up an index.html in the same dir as server.js [01:19] thirtysixred: racar: YAY? [01:20] racar: thirtysixred, i saw a post about this on stackoverflow but im trying to find other answer from here [01:20] thirtysixred: racar: Could I borrow that link? [01:20] mikeal has joined the channel [01:20] ruprict: If you want to move your views to a "views" subdir (and you should) then add it to the call to static [01:20] ale: ruprict, it's not working :/ [01:20] thirtysixred: I haven't found anything :( [01:20] tjholowaychuk: ale / ruprict which you wont want to do [01:20] tjholowaychuk: because people can GET /app.js etc haha [01:20] thirtysixred: Trying to get a lovely JSON structure like so: http://pastie.org/private/ha8tdtfofgezun4aeieglw [01:20] thirtysixred: ruprict: ale is trying to use express wrong. [01:20] ale: why? [01:21] racar: thirtysixred, http://stackoverflow.com/questions/6597493/synchronous-database-queries-with-node-js [01:22] ruprict: ale: b/c you should have something like a 'views' dir for your view templates (pick a template engine) and a 'public' dir for scripts, stylesheets, images, etc. [01:22] ruprict: Server up static resources from the same dir as your server.js file is, bad, b/c (as tj said) someone could just HTTP GET the source to your server. [01:22] ale: ruprict: I know, but I am just testing different things I'd need, so I don't want to create many dirs, anyway isn't there any way for showing a .html? [01:23] ruprict: There is, it's a static resource. [01:23] ale: ruprict: How? [01:24] ruprict: ale: So, in your case, it looks like you've moved it to a 'views' dir, which means you need to change the argument to the call to static to __dirname+'/views' [01:24] indexzero has joined the channel [01:24] ruprict: But, you haven't told express to move the root of hte app there [01:24] thirtysixred: racar: Thanks, going to look over this. [01:24] pen has joined the channel [01:25] ale: ruprict, ok, no problem..I just want to show the .html, how can I do that without changing the html to ejs or jade? [01:25] ruprict: It may still work, testing.... [01:25] racar: thirtysixred, i did the nested callback from my side today ... let me know how you did it [01:25] cognominal has joined the channel [01:25] CrisO has joined the channel [01:25] jojohess has joined the channel [01:26] brianseeders has joined the channel [01:26] ruprict: http://pastebin.com/zeFaAYT8 [01:27] ruprict: ale: That should do it…just go to http://localhost (presuming you are listening on port 80) [01:27] abraxas has joined the channel [01:27] brianseeders has joined the channel [01:27] ale: yes [01:28] luke` has joined the channel [01:28] thirtysixred: ruprict: Heh, I would just use jade or ejs and not use any of the template features :p [01:29] ruprict: ale: you could do that, I guess [01:29] nightshift has joined the channel [01:29] ale: ruprict: would that show the proper html? [01:29] thirtysixred: jade throws an error with straight html [01:29] matomesc has joined the channel [01:30] ruprict: thirtysidred: I presumed using the template language (just not passing locals, etc) [01:30] thirtysixred: ejs doesn't though [01:30] thirtysixred: ruprict: yeah. [01:30] Drakonite has joined the channel [01:30] jzacsh has joined the channel [01:32] k1ttty has joined the channel [01:32] thirtysixred: racar: hmm, I don't think this will solve my problem :/ [01:32] ecin has joined the channel [01:32] racar: thirtysixred, what's your problem ? [01:33] ale: Guys, I can't show html...how should I do? I can't change the whole page! [01:34] thirtysixred: racar: Need to do Projects.getProjects -> Loop through that result and then do Tasks.getTasksForProjectId(id) -> Then update a return obj. [01:34] ke1s0 has joined the channel [01:34] thirtysixred: If that makes sense. [01:34] mscdex: ryah: can we please have INSPECT_MAX_BYTES be changed at runtime? [01:34] thirtysixred: racar: I may be thinking this out wrong. [01:34] mscdex: ryah: for Buffer [01:34] ruprict: ale: The pastebin I sent will render a views/index.html page [01:35] ecin has joined the channel [01:36] racar: thirtysixred, on your callback of the first query , do you next one. [01:36] alnewkirk has joined the channel [01:37] thirtysixred: racar: Sec, writing this out. [01:38] ecin has joined the channel [01:39] ryah: mscdex: sure [01:39] ryah: mscdex: toString still works... [01:39] timemachine3030 has joined the channel [01:39] jerrysv has joined the channel [01:39] ryah: mscdex: inspect is just for REPL and console.log.. [01:39] thirtysixred: racar: Something like this: http://pastie.org/private/fznquakbheczw0awtbw0w (I know that res will be sent before project.tasks is set) [01:40] dominictarr has joined the channel [01:40] jyiinyiyong has joined the channel [01:40] jshaw has joined the channel [01:40] heavysixer has joined the channel [01:42] mscdex: ryah: i use a module that overrides Buffer's inspect method though for pretty printing though [01:42] mscdex: ryah: for hex -- ascii printing [01:42] mscdex: it comes in really handy when debugging binary protocols [01:43] secoif has joined the channel [01:45] zaller: can anyone help me out with this issue [01:45] zaller: http://pastebin.com/uECkNsM3 [01:46] thirtysixred: zaller: I got that earlier, I just reinstalled now and it worked. [01:46] maru_cc_ has joined the channel [01:46] Anton_ has joined the channel [01:46] zaller: interesting ok will try that i was building from branch v0.4 i will just try recloning [01:50] zaller: lol sorry i missread too you reinstalled "now" the package goffy name [01:50] langworthy has joined the channel [01:50] zaller: will try that [01:53] wenbert has joined the channel [01:53] cronopio has joined the channel [01:54] zaller: thirtysixred thanks works [01:54] thirtysixred: Welcome. [01:56] d0k has joined the channel [01:57] carmony_ has joined the channel [01:58] materialdesigner has joined the channel [02:00] Isaiah has joined the channel [02:00] _carmony has joined the channel [02:00] dherman has joined the channel [02:02] airportyh has joined the channel [02:03] ale: ruprict: hey, should I still write res.render('index.html'); ? [02:04] ruprict: ale: no, you don't need the route at all if you just want to render the index.html [02:04] CIA-65: node: 03Ryan Dahl 07master * r2689d26 10/ (doc/api/buffers.markdown lib/buffer.js): Make buffer.INSPECT_MAX_BYTES public for mscdex - http://bit.ly/pUKFUv [02:05] ecin has joined the channel [02:05] JumpMast3r has joined the channel [02:06] ruprict has left the channel [02:06] ale: ruprict: oh so should I do it like this: http://pastebin.com/Rq0fxW4g [02:07] tjholowaychuk: ale i think you need to research a bit more to understand middleware [02:10] emmanuel has joined the channel [02:13] luke` has joined the channel [02:14] luke`_ has joined the channel [02:16] luke`_ has joined the channel [02:18] luke`_ has joined the channel [02:18] eee_c has joined the channel [02:19] yuroyoro has joined the channel [02:19] bradleymeck: is there a good way to get vows to recurse the test directory rather than just going 1 level deep? [02:19] kylefox has joined the channel [02:22] arpunk has joined the channel [02:23] FireFly|n900 has joined the channel [02:23] jtsnow has joined the channel [02:23] thirtysixred: racar: Finally got it working. Used this technique: http://stackoverflow.com/questions/6638646/synchronous-mysql-in-node-js [02:23] thirtysixred: It's not pretty, but it works. [02:26] JakeWharton has joined the channel [02:27] Me1000 has joined the channel [02:27] zhujo01 has joined the channel [02:27] racar: thirtysixred, i like what Andrey did ; using the resultCallback [02:30] mikeal has joined the channel [02:31] dmitrig01 has joined the channel [02:31] Stythys has joined the channel [02:33] Cromulent has joined the channel [02:35] heavysixer has joined the channel [02:35] nerdfiles1 has joined the channel [02:37] nerdfiles1 has left the channel [02:38] scott_gonzalez has joined the channel [02:38] jtsnow has joined the channel [02:38] thirtysixred: WOO! AWS is down. [02:38] Nuck: Again? [02:38] Nexxy: why am I not surprised [02:38] thirtysixred: Haha. [02:38] Nexxy: ACTION starts a speech about geographic diversity [02:39] Nuck: Has Amazon not learned ANYTHING? [02:39] thirtysixred: Turntable, Quora, Foursquare, Reddit.. [02:39] thirtysixred: All down [02:39] Nexxy: moar liek [02:39] kartmetal: ah. that explains the reddit sadness. [02:39] thirtysixred: Nuck: Have the sites using AWS not learned anything? [02:39] Nexxy: have Turntable, Quora, Foursquare, Reddit not learned ANYTHING? [02:39] hydrozen has joined the channel [02:39] thirtysixred: :p [02:40] Nexxy: no reasonable engineer should rely on any one provider [02:40] Nuck: Smugmug survive again? [02:40] techwraith has joined the channel [02:40] kartmetal: it's the Cloud, man.. it's like elastic, and always around. [02:41] boaz has joined the channel [02:41] isaacs has joined the channel [02:41] Nuck: isaacs: Wow, +o? [02:41] isaacs: +o? [02:41] isaacs: what's that? [02:41] igl: gasp! [02:41] Nuck: About damn time you got op [02:41] sechrist: oh noes! [02:41] isaacs: oh [02:41] Nexxy: s/got op/put pants on/ [02:41] isaacs: yeah, i can have chanserv op me any time i want [02:42] sechrist: s/put pants on/turn swag on/ [02:42] Nexxy: ACTION coughs, "m-me too!" [02:42] Nuck: Nexxy: TRYIT [02:42] Nuck: :D [02:42] idefine has joined the channel [02:42] isaacs: see? [02:42] Nexxy: don't tempt me [02:42] sechrist: haha [02:42] Nuck: isaacs: I didn't know you were able to be opped [02:42] isaacs: :) [02:42] isaacs: i only use it to occasionally change the subject [02:42] sechrist: We can't have an op in here that wears vibrams [02:42] sechrist: wtf man [02:42] Nexxy: lol! [02:43] maru_cc_ has joined the channel [02:43] sechrist: jk I have vibrams too [02:43] davidbanham: Vibrams are awesome! [02:43] SubStack has joined the channel [02:43] igl: i have finger socks =] [02:44] EvRide has joined the channel [02:44] idefine: can i replace the _id that is generated by mongoose with my own custom ObjectId? [02:44] Nuck: idefine: You can in Mongo? [02:44] idefine: Nuck: yes [02:44] Nuck: I meant that as a statement [02:45] rickharrison has joined the channel [02:45] idefine: Nuck: any idea how to do it with mongoosejs? having a bit of a problem figuring it out [02:46] dexter_e has joined the channel [02:47] eyesUnclouded has joined the channel [02:47] hij1nx has joined the channel [02:47] tjholowaychuk: is npm still busted? [02:47] tjholowaychuk: or am i crazy [02:48] Nuck: idefine: No idea, I use node-mongo-native [02:48] racar: http://registry.npmjs.org/ doesn't seems to respond properly [02:48] ambroff has joined the channel [02:49] airportyh has joined the channel [02:50] kdng-humanchimp2 has joined the channel [02:50] kdng-humanchimp2: is anybody else experiencing issues with npm? [02:50] kdng-humanchimp2: i've got timeouts [02:50] idefine: yes [02:51] tjholowaychuk: kdng-humanchimp2 not the only one [02:51] chapel: iriscouch.com seems to be down [02:51] chapel: or not responding [02:51] ale: How can I prevent accessing the server.js on every page but on app.html? [02:52] airportyh: Hello all. Is there a log module that can log to the same place across modules/libraries? Like the Python logging module. [02:52] niftylettuce: npm down [02:52] airportyh: or what is everyone doing for logging nowadays? [02:52] jbrokc has joined the channel [02:53] jesusabdullah: airportyh: Check out winston. [02:53] airportyh: jesusabdullah: thanks, will take a look. [02:54] kdng-humanchimp2: glad it's not my router [02:55] SubStack: half the internet is down [02:55] Lorentz: Yay for cloud [02:56] Lorentz: It always works and with 100% uptime [02:56] Swimming_bird has joined the channel [02:56] keikubo has joined the channel [02:56] rook2pawn has joined the channel [02:56] SubStack_ has joined the channel [02:56] thermal has joined the channel [02:56] lemon-tree has joined the channel [02:56] pkrumins has joined the channel [02:56] pkrumins has joined the channel [02:56] vinc has joined the channel [02:57] nicobn has joined the channel [02:57] ctide has joined the channel [02:57] loveshine has joined the channel [02:57] stutter has joined the channel [02:57] kdng-humanchimp2: http://xkcd.com/908/ [02:57] ale: How can I prevent accessing the server.js on every page but on app.html? [02:58] xerox: what exactly? [02:58] ale: I mean, I just want a specific part of the website to run with node, is this possible? Or should I rewrite everything according to node rules? Inside the server [02:59] konobi: ale: use nginx and the "location" option along with proxy [02:59] ysynopsis has joined the channel [02:59] ale: konobi: Sorry, I've no idea..what's that? [03:00] curtischambers has joined the channel [03:00] kevwil has joined the channel [03:00] konobi: ale: google nginx [03:01] xerox: short answer: yes :D [03:01] jhurliman has joined the channel [03:02] wenbert: Hello, if I use this: https://github.com/visionmedia/connect-redis will I be able to access the same session data set by, let's say PHP? [03:02] ale: konobi: But what is recommendable? To use it on the whole website? [03:02] ale: konobi: Because in that case, there won't be many apache threads and the site will run fastly, am I right? [03:03] ale: But PHP/MySQL won't run or yes? [03:04] konobi: ale: nginx will direct your traffic to which ever service you wish [03:05] ale: konobi: I know, but I say if I am running the whole website, from the index, the register and login sections from node, will PHP/MySQL work? [03:07] TooTallNate has joined the channel [03:07] konobi: ale: it's just http [03:07] konobi: =0) [03:08] tk has joined the channel [03:08] JasonSmith: chapel: Everything is up [03:08] JasonSmith: EC2 issue [03:08] ale: konobi: I know, but isn't there any way of running node and php in parallel? [03:09] konobi: ale: sure [03:09] raydeo has joined the channel [03:09] ale: konobi: So what I said is possible, right? [03:09] ballantyne has joined the channel [03:09] konobi: yes [03:10] ale: konobi: how is it possible? with ngnix [03:10] ale: ? [03:10] jesusabdullah: leet hacks [03:10] tjholowaychuk: ale learning is a good skill to have my friend! google it up [03:10] ballantyne: anyone know of an implementation of 3des encryption for node.js, or how I could begin to write my own? [03:10] wenbert: ale i think it is like running 2 servers [03:10] konobi: ale: I can't answer everything for you... it is possible... but it will require some work [03:10] wenbert: one for your php and other for nodejs [03:11] boehm has joined the channel [03:11] wenbert: your php generated pages can send requests to your nodejs server... [03:11] guillermo has joined the channel [03:12] igl: nginx is a http server. it will run php. it will also allow you to redirect a route to your node process. [03:12] ale: thanks [03:12] prettyrobots has joined the channel [03:16] wenbert: ale maybe have a look at this? http://nowjs.com/ [03:16] v01dless- has joined the channel [03:20] losing has joined the channel [03:21] ksheurs has joined the channel [03:23] losing: Anyone care to make a recommendation on a Promise/Deferred module? [03:23] losing: There seem to be several [03:24] zhujo01 has joined the channel [03:25] ghost has joined the channel [03:25] coffeecup has joined the channel [03:25] guybrush has joined the channel [03:25] cirpo_: hi [03:26] jamescarr: argh... any examples of mongoose static anywhere about? [03:26] Swizec has joined the channel [03:26] zilch: losing, what is promise ? [03:27] losing: zilch: A way to control the flow of callbacks [03:28] mDraze has joined the channel [03:29] zilch: ah ! that sounds interesting !! callbacks and flow control in general are probably only thing why few people may find it little at odd [03:30] zilch: losing, can you give me some link or example code ? and how they are different from, say seq ! ? [03:30] zilch: seq is a module [03:30] vid__ has joined the channel [03:30] curtischambers: @losing have you seen this? http://tamejs.org/ [03:30] jmoyers has joined the channel [03:31] materialdesign-1 has joined the channel [03:32] losing: curtischambers: oh wow, neat. Looking into it now, thanks! [03:33] unlink has joined the channel [03:33] alexim has joined the channel [03:34] zilch: curtischambers, thanks !! [03:35] newy has joined the channel [03:35] davidbanham: I've always thought people should just suck it up and deal with callbacks, but Tame's idea of making it simpler to deal with concurrent async queries makes a lot of sense. I've been screwing around with counters on my callbacks. [03:36] mynyml has joined the channel [03:37] zk has joined the channel [03:38] neilk_ has joined the channel [03:39] Generic_Dumbass has joined the channel [03:39] losing: davidbanham: I don't think it's about "sucking up". I think it's about organizing code and keeping it less ridiculous. [03:40] dmitrig01 has joined the channel [03:40] febits has joined the channel [03:40] davidbanham: losing: That's what I'm beginning to realise. [03:40] losing: butwhatevs [03:40] losing: davidbanham: :D [03:41] te-brian2 has joined the channel [03:42] fuzzyone has joined the channel [03:42] fuzzyone has joined the channel [03:42] te-brian2: Been trying to write Vows tests for an everyauth authenticated REST API. Completely stuck. Anyone know of any projects that use everyauth that have tests I could reference? [03:42] infid has joined the channel [03:42] te-brian2: Or am I thinking at the wrong level? Is it just connect sessions that I need to worry about? [03:43] polotek has joined the channel [03:43] raidfive has joined the channel [03:43] polotek: hij1nx: hey man [03:45] mapleman1 has joined the channel [03:46] tjholowaychuk: hij1nx I liked the nodeup podcast thing, you guys were talking about some good stuff [03:46] tjholowaychuk: only got half-way I'll have to finish the rest some time [03:46] tjholowaychuk: neat to hear all the different use-cases [03:46] tbranyen: i need to get it on my phone so i can list while bike riding/riding the train [03:46] tbranyen: listen* [03:47] tjholowaychuk: felixge has a pretty extreme case too it was interesting to hear how node fits in with his app [03:47] sechrist: Was transloadit the example? [03:47] sechrist: We're integrating that into what i'm working on. It's great. [03:47] dgathright has joined the channel [03:47] tjholowaychuk: nice! [03:48] tjholowaychuk: it's a cool service [03:48] jhurliman: does anyone have experience using tamejs? i'm curious if adding a pre-compile step makes life more difficult with tracking down syntax errors, debugging, or anything else [03:48] sechrist: yeah and for a lot of cases the cost is either non-existent or very little [03:48] sechrist: like for image uploading on your site. [03:48] apanda has joined the channel [03:48] tjholowaychuk: I didnt look at the pricing at all haha [03:48] tjholowaychuk: curious now though [03:49] sechrist: if you're going to handle file uploads that are going to s3 anyway [03:49] sechrist: just use that [03:49] dominictarr has joined the channel [03:49] sechrist: unless you have some special case [03:49] tjholowaychuk: we have some heavy video stuff we are doing but it's already local data so I guess it doesnt make sense to offload that way [03:49] tjholowaychuk: maybe though [03:49] tjholowaychuk: we'll see [03:49] sen123 has joined the channel [03:50] kriszyp has joined the channel [03:50] jhurliman: ryah, if you're around, i finished the process.watchers() refactoring to return an array instead of taking a callback. i think step 1 is done, and grabbing ObjectWrap stack traces is all that is left [03:51] dguttman has joined the channel [03:52] JoshC1 has joined the channel [03:53] zilch: te-brian, where exactly you have been stuck ? [03:53] zilch: I have wrote test cases using vows ... but not for everyauth scenario [03:54] akshatj has joined the channel [03:55] cjm has joined the channel [03:58] rmustacc has left the channel [03:58] pwk0 has joined the channel [04:00] Destos has joined the channel [04:02] wenbert has joined the channel [04:02] rosshadden has joined the channel [04:03] tristanseifert has joined the channel [04:03] rosshadden: Has anyone installed or thought about installing node.js on a router, via optware? [04:03] idefine has left the channel [04:05] admc has joined the channel [04:05] brianseeders has joined the channel [04:07] apanda has joined the channel [04:07] carmony has joined the channel [04:10] jMerliN has joined the channel [04:10] ryanfitz has joined the channel [04:12] wenbert has joined the channel [04:13] jtsnow has joined the channel [04:14] newy has joined the channel [04:16] jvdev has joined the channel [04:16] hooch_ has joined the channel [04:17] hooch_ has left the channel [04:17] jyiinyiyong has joined the channel [04:17] dgathright has joined the channel [04:18] mapleman has joined the channel [04:19] JumpMast3r has joined the channel [04:19] jumpmast3r_ has joined the channel [04:20] aoberoi has joined the channel [04:22] rosshadden: Has anyone installed or thought about installing node.js on a router, via optware? [04:22] jhurliman: question... do i need to initialize a v8::TryCatch to get a v8 stack trace? i can't figure out how else to get a v8::Message [04:23] Gekz has joined the channel [04:24] Gekz: so npm install jison -g keeps stalling for me at npm verb fetch to /tmp/wherever [04:24] Gekz: I'm at a loss why [04:27] eee_c has joined the channel [04:28] te-brian2: zilch: So.. my plan thus far has been to use tobi to make the requests and assert. You can see here a sample 'anonymous' test https://github.com/cpsubrian/wuzzup/blob/master/test/post-test.js. Where I am stuck is how to authenticate the tobi browser before doing other tests. Since I am only using twitter auth atm, that leaves out the option of actually filling in a login form. [04:29] te-brian2: zilch: I guess mit git repo still has the global macros.. lemme push. I changed the syntax a little. [04:29] infid has joined the channel [04:30] seivan has joined the channel [04:31] Croms has joined the channel [04:32] andrewfff has joined the channel [04:32] te-brian2: zilch: pushed.. slightly different syntax but mostly the same [04:32] zilch: so is it working now ? [04:34] rosshadden has left the channel [04:34] te-brian2: zilch: My current tests work.. but they only do anonymous requests. [04:34] te-brian2: zilch: I also have a routine for emptying the test db and adding a 'fake' user. Just can't figure out how to give tobi a session for it. [04:35] te-brian2: zilch: What it really comes down do is I'm going to have to actually understand connect sessions and what everyauth does with them, probably :) [04:37] te-brian2: zilch: Also, tobi might be complete overkill :) But I like the idea of a cookie jar. [04:38] zilch: I had to test some GET request and tobi served purpose !! [04:38] zilch: it was a perfect kill :) [04:39] jshaw has joined the channel [04:39] jacobolus has joined the channel [04:44] Hunter_ has joined the channel [04:45] wenbert has joined the channel [04:46] SamNZ has joined the channel [04:48] mapleman has joined the channel [04:48] csanz has joined the channel [04:50] SamNZ: Is there a way to append something to the end of a file without reading the file's contents first? [04:50] seivan has joined the channel [04:51] dominictarr: yeah there should be [04:51] dominictarr: read the docs for fs [04:51] dominictarr: SamNZ: I think it will say something about append mode. [04:52] markdaws has joined the channel [04:52] FM has joined the channel [04:52] SamNZ: Will fs.stat give me the length of the file? [04:53] SamNZ: If so I could just use fs.write with an offset of the file length got by fs.stat [04:53] mapleman has joined the channel [04:53] kdng-tr7 has joined the channel [04:53] dominictarr: I don't know [04:53] dominictarr: I think append mode will do what you want. [04:54] SamNZ: Oh, I found that you can use fs.open with append mode [04:54] SamNZ: Probably what I want [04:54] dominictarr: thats it! [04:56] newy has joined the channel [04:57] jakehow has joined the channel [04:58] SamNZ: Since I've opened the file in append mode, I will probably have to use fs.write rather than fs.writeFile to append the data to the file right? [04:58] tmpvar has joined the channel [04:59] SamNZ: Because the api says that writeFile replaces the file if it exists already [05:00] dominictarr: that does not sound surprising. [05:00] SamNZ: And because I've already opened the file, perhaps I won't have to supply fs.write with an offset [05:01] SamNZ: I'll have to test it out to see how it works [05:01] dominictarr: yeah, an offset doesn't really make sense in append mode. [05:03] rurufufuss has joined the channel [05:04] SamNZ: And then I'll probaby have to use fs.close in the callback for fs.write [05:04] TooTallNate has joined the channel [05:04] SamNZ: I guess fs.writeFile does the opening, writing and closing for you [05:06] eliziario has joined the channel [05:06] akshatj_ has joined the channel [05:07] loveshine has joined the channel [05:09] Larry has joined the channel [05:10] daleharvey has joined the channel [05:11] temp01 has joined the channel [05:12] isaiah_ has joined the channel [05:13] hlindset has joined the channel [05:14] hidinginabunker has joined the channel [05:15] Swizec has joined the channel [05:18] gary_ has joined the channel [05:20] murugaratham has joined the channel [05:21] murugaratham: anyone using node on windows? [05:21] necrodearia has joined the channel [05:23] bentkus: yeah [05:23] bentkus: the crazy [05:23] bentkus: ;D [05:23] admc1 has joined the channel [05:23] atiti has joined the channel [05:24] mapleman1 has joined the channel [05:24] mynyml has joined the channel [05:25] DrPizza: murugaratham: some people are, it's getting better and better [05:25] murugaratham: i am trying to run some samples [05:26] murugaratham: but they can't seem to load the modules properly [05:26] idefine has joined the channel [05:26] bentkus: last time i checked module loading was not supported [05:26] bentkus: on windows [05:26] ryah: module loading? [05:27] ryah: that should work [05:27] idefine: with mongoose how can I addToSet? using update doesn't seem to work... [05:27] bentkus: ryah himself [05:27] jamescarr: another mongoose question myself ;) [05:27] murugaratham: keep giving me cannot find module 'express' [05:28] kdng-tr7 has joined the channel [05:28] wutwutyes has joined the channel [05:28] jamescarr: murugaratham, does the example have a package.json in it? [05:28] kdng-tr7 has left the channel [05:28] murugaratham: no [05:29] jamescarr: ah, that's lame then [05:29] jamescarr: you'll need to install the deps globally [05:29] jamescarr: npm install -g express [05:29] jamescarr: npm install -g jad [05:29] jamescarr: npm install -g jade [05:29] murugaratham: i cant run npm too [05:29] jamescarr: cross your fingers and pray it' [05:29] jamescarr: cross your fingers and pray the example works with the latest too [05:29] jamescarr: then install npm [05:29] murugaratham: i think there's still some barrier to running node on windows :| [05:30] jamescarr: npmjs.org [05:30] murugaratham: gotta try more [05:30] jamescarr: oh yeah [05:30] zilch has joined the channel [05:30] jamescarr: you can't use npm on windows... you could download express and jade by hand [05:30] jamescarr: and dump them in node_modules in the root of the project [05:30] murugaratham: ok i'll try [05:30] jamescarr: windows users are limited overall [05:31] jamescarr: I mean, you can BARELY use git on windows without cygwin :) [05:31] jamescarr: sheesh [05:31] jamescarr: ACTION had a wasted day of trying to get jenkins + git working on a windows box [05:31] murugaratham: i think im better off on osx to test these out [05:31] murugaratham: but i wanted to try something for my clients running win 2008 [05:32] AvianFlu has joined the channel [05:34] loveshine has joined the channel [05:36] boaz has joined the channel [05:38] shanebo has joined the channel [05:43] loob2 has joined the channel [05:48] dherman has joined the channel [05:49] mraleph has joined the channel [05:49] SamuraiJack has joined the channel [05:49] liquidproof has joined the channel [05:50] zilch has joined the channel [05:52] threecreepio has joined the channel [05:52] neoesque has joined the channel [05:54] polotek has joined the channel [05:54] polotek: hij1nx: you there? [05:55] stephank has joined the channel [05:59] m0s has joined the channel [06:02] Aco- has joined the channel [06:02] daleharvey has joined the channel [06:03] xAt has joined the channel [06:04] pen has joined the channel [06:06] kdng-tr7 has joined the channel [06:06] andree has joined the channel [06:06] kdng-tr7 has left the channel [06:07] kdng-tr7 has joined the channel [06:09] klaustsen has joined the channel [06:10] sivy has joined the channel [06:10] ironlad has joined the channel [06:10] zilch has joined the channel [06:11] k1ttty has joined the channel [06:13] zilch has joined the channel [06:13] randal has joined the channel [06:14] jj0hns0n has joined the channel [06:16] simenbrekken has joined the channel [06:17] blueadept: using redis is great [06:17] blueadept: no more losing session data on restarts [06:18] replore has joined the channel [06:18] replore_ has joined the channel [06:19] tk has joined the channel [06:21] smtlaissezfaire has joined the channel [06:23] meso_ has joined the channel [06:26] mikeal has joined the channel [06:26] mekwall has joined the channel [06:27] ghost has joined the channel [06:27] e6nian: /C [06:27] m0s has joined the channel [06:30] constexpr has joined the channel [06:30] dnjaramba has joined the channel [06:32] dnjaramba has joined the channel [06:32] shapeshed has joined the channel [06:32] aoberoi has joined the channel [06:33] davidbanham has joined the channel [06:35] hellp has joined the channel [06:35] saikat has joined the channel [06:36] NetRoY has joined the channel [06:40] TomY has joined the channel [06:41] tk has joined the channel [06:43] groom has joined the channel [06:43] zomgbie has joined the channel [06:43] ph^ has joined the channel [06:44] JoshC1 has joined the channel [06:45] binaryjohn has joined the channel [06:45] murugaratham has joined the channel [06:46] `3rdEden has joined the channel [06:46] zilch has joined the channel [06:46] neoesque has joined the channel [06:47] neoesque has joined the channel [06:48] ccare has joined the channel [06:51] thepatr1ck has joined the channel [06:55] zomgbie has joined the channel [06:57] kab3wm has joined the channel [06:57] astropirate has joined the channel [06:57] neoesque has joined the channel [06:58] newy has joined the channel [06:59] topaxi has joined the channel [07:02] jbpros has joined the channel [07:02] unlink has joined the channel [07:02] Generic_Dumbass has joined the channel [07:04] mraleph1 has joined the channel [07:06] hkjels has joined the channel [07:07] sechrist has joined the channel [07:08] hkjels: Is there any framework like compass for stylus? [07:10] Xano has joined the channel [07:12] ablomen has joined the channel [07:12] hkjels: found one [07:12] hkjels: nib [07:18] zilch has joined the channel [07:19] curtischambers has joined the channel [07:20] dx_ has joined the channel [07:22] kdng-tr7 has joined the channel [07:22] kdng-tr7 has left the channel [07:23] Nuck has joined the channel [07:23] csanz has joined the channel [07:23] bergie has joined the channel [07:23] a_meteorite has joined the channel [07:26] fletchowns has joined the channel [07:28] hlindset has joined the channel [07:28] dmbch has joined the channel [07:28] mrtrosen has joined the channel [07:32] btmorex has joined the channel [07:32] dmbch has left the channel [07:33] zeade has joined the channel [07:34] stalled has joined the channel [07:34] fletchowns: how do i close resources used in an async.waterfall at the end of execution? [07:34] fletchowns: like if i use a memcached connection or a mysql connection that needs to be closed at the end [07:35] Druide_ has joined the channel [07:37] dpritchett has joined the channel [07:38] MaSch: does someone have an idea for this: http://stackoverflow.com/questions/6989636/where-to-build-the-content-for-a-sidebar ? [07:38] ablomen has joined the channel [07:39] konobi: partialss [07:40] mike5w3c has joined the channel [07:42] JakeyChan has joined the channel [07:43] JakeyChan has joined the channel [07:43] JakeyChan: hi [07:43] JakeyChan: is there have web site that is build with express ? [07:44] curtischambers has joined the channel [07:44] cosmincx has joined the channel [07:44] mraleph has joined the channel [07:45] __tosh has joined the channel [07:46] JoshC has joined the channel [07:46] vladimir has joined the channel [07:46] joshontheweb has joined the channel [07:47] konobi: MaSch: partials (if you missed it) [07:47] MaSch: konobi: oh thanks. but i dont know if partials can do this :-/ [07:48] MaSch: i would have to call a function in every route-handler to get the sidebars content and put it in the sidebars partial. correct? [07:48] konobi: or use middleware [07:49] MaSch: oh.. that could be.. hmm. thanks [07:49] dail has joined the channel [07:49] dail: hello [07:50] vladimir has left the channel [07:51] dail: guys what do you think about XFCE? I always used KDE....I need to reinstall linux (now i'm using windows 7) [07:52] fly-away has joined the channel [07:53] fletchowns: https://gist.github.com/1133565 - how might one rewrite something like this using async.waterfall? i don't understand how you would call dbpool.release and mcpool.release at the end [07:54] kdng-tr7 has joined the channel [07:54] kdng-tr7 has left the channel [07:55] random123: dail: XFCE doesn't look as nice as Gnome/KDE but it is fastter and more lightweight, I like it better [07:55] davidascher has joined the channel [07:55] random123: dail: I like using Arch/XFCE, first try installing Arch in VM and once you know the routine its easy to do the install and you can easily switch between DE/WMs [07:56] konobi: ratpoison is another interesting window manager [07:56] seivan has joined the channel [07:56] m0s has joined the channel [07:56] zilch has joined the channel [07:56] kdng-tr7 has joined the channel [07:57] kdng-tr7 has left the channel [07:58] dail: guys [07:58] dail: excuse me [07:58] dail: http://se.archive.ubuntu.com/mirror/cdimage.ubuntu.com/xubuntu/releases/11.04/release/ [07:59] Wizek has joined the channel [07:59] dail: what is "alternate" [07:59] dail: ? [07:59] dail: do i have to install desktop right? [07:59] dail: *download [07:59] booo has joined the channel [08:00] random123: Yes, Desktop [08:00] dail: ok [08:00] jbpros has joined the channel [08:00] dail: what is the other? [08:00] random123: It says in bullet points on that page, specialist installs [08:00] JoshC has joined the channel [08:00] random123: setting up automated deployments; for isntance [08:01] random123: dail: What OS are you currently using? [08:01] fbrett66 has joined the channel [08:02] dominictarr has joined the channel [08:04] fbrett66: Hi [08:04] random123: iH [08:04] fbrett66: Just installed node.js on my server following this gist https://gist.github.com/579814/33db917b7b6737561855ac77796cc089fbc25b8b#file_node_and_npm_in_30_seconds.sh [08:05] fbrett66: Got a script python module that call a command to compile less.js files to css [08:05] radiodario_ has joined the channel [08:05] fbrett66: And got an error like "Caught FilterError while rendering: /usr/bin/env: node: No such file or directory" [08:06] bergie has joined the channel [08:06] fbrett66: Anyone on How can I get rid of that ? [08:06] jbpros has joined the channel [08:07] whitman has joined the channel [08:07] random123: You have to make a symlink from where you installed node to somewhere on your path like /usr/bin [08:07] random123: Or add the folder to your path [08:07] dail: random123 at the moment windows 7 [08:07] zilch has joined the channel [08:08] fbrett66: random123: thanks will try that [08:08] random123: fbrett66: Do you know where node is installed, is it in your /home directory in a folder called /local? [08:08] apanda has joined the channel [08:09] fbrett66: random123: it's in a home directory but within ~/local/bin$ [08:10] dail: i have seen there is windows binary for the last unstable version of node [08:10] fbrett66: random123: so yes [08:10] random123: fbrett66: Find the node executable and do "ln -s ~/local/bin/node /usr/bin/node" [08:11] random123: If ~/local/bin/node is it then that will solve your problem [08:12] fbrett66: random123: Exactly ! Good catch and problem solved, many thanks! [08:12] robhawkes has joined the channel [08:12] jbpros has joined the channel [08:12] random123: fbrett66: cool, np [08:13] fbrett66: random123: :-) [08:13] random123: dail: I would recommend staying in Windows 7 and installing Linux without a GUI, and using in on the CLI, installed ssh/ftp services and using WinSCP/Putty [08:13] confoocious has joined the channel [08:13] confoocious has joined the channel [08:14] random123: dail: Unless you have 2 computers and a KVM switch [08:14] fletchowns: or use VirtualBox [08:15] djcoin has joined the channel [08:15] konobi: or vmware [08:16] random123: dail: Yes, install Arch Linux inside VirtualBox, then install openssh/proftpd, and you can use WinSCP as sort of like Explorer, and Putty via SSH [08:16] burningdog has joined the channel [08:16] random123: dail: Then you can set up a Bridged Adapter inside VirtualBox and Shared Folders [08:17] mscdex: ubuntu ftw! [08:18] clifton has joined the channel [08:19] hlindset has joined the channel [08:19] fletchowns: is there a nice way to write this, without so many callbacks? https://gist.github.com/1133565 [08:19] fletchowns: i'm trying to use async.waterfall but i am failing [08:19] hlindset has joined the channel [08:19] fletchowns: i'm not even sure if i should be using that [08:19] mscdex: fletchowns: you can always separate the callbacks out into their own top level functions [08:20] slapthelownote has joined the channel [08:20] kdng-tr7 has joined the channel [08:20] fletchowns: mscdex: seems like it would almost make it even more messy [08:20] dail: random123 one moment why do i have to use windows 7 ? [08:20] mscdex: no? [08:21] dail: i think linux is better... [08:21] dail: no? [08:21] mscdex: fletchowns: all you'd be doing is pulling the callback out, giving it a name and using that function name instead of the anonymous function [08:21] random123: dail: I wouldn't use a Linux solely as your OS, there are a lot of things you will need Windows for imho, I wish it wasn't so [08:21] mscdex: the only thing you need windows for is games that don't work yet on linux [08:22] mscdex: ;-) [08:22] fletchowns: mscdex: ok i'll give it a shot and see how it looks [08:22] mscdex: besides, you can always launch windows from a vm in linux [08:22] kdng-tr7 has left the channel [08:22] dail: random123 i can install linux and virtualbox with windows :) [08:22] dail: no? :D [08:22] random123: Also Adobe CS doesn't run on Linux [08:22] kdng-tr7 has joined the channel [08:22] dail: mscdex exactly [08:22] dail: CS [08:22] dail: i don't need it [08:22] Nexxy: it runs via wine [08:22] mscdex: fletchowns: also, what is mcpool? [08:22] dail: Nexxy :) [08:23] mscdex: the Nexxinator [08:23] Nexxy: uh oh [08:23] Nexxy: hai dail :) [08:23] random123: Wine doesn't work so well, you will see [08:23] dail: :D [08:23] mscdex: wine works pretty darn good with the stuff i throw at it [08:23] dail: btw i need: thunderbird....browser.......editor.....node.....printer [08:23] dail: :D [08:23] dail: stop [08:24] mscdex: i wonder how many node modules out there still support node 0.2.x [08:24] dail: mac toooooo expensive [08:24] dail: so linux [08:25] random123: dail: I agree I would never use a Mac however [08:26] dail: yes....it is for snob [08:26] dail: :D [08:26] dail: ahahahah [08:26] random123: dail: You will find that you can do anything you want to do with Linux on the CLI [08:26] mscdex: even gui stuff with ncurses! [08:26] mscdex: :-D [08:27] fletchowns: mscdex: mcpool is https://github.com/coopernurse/node-pool [08:27] fletchowns: (mcpool = memcachedpool) [08:27] mscdex: fletchowns: ah ok, memcached pool, yeah i knew about node-pool [08:27] mscdex: you have a separate db pool? [08:28] fletchowns: ya db pool is for mysql [08:29] mscdex: since it seems like you're just doing key-value stuff, why not just use something that combines the two, then you could cut down on having two separate stores [08:29] mscdex: like redis or something [08:30] secoif_ has joined the channel [08:31] dail: random123 linux on the CLI ? do you mean installing linux on VM ? [08:32] kdng-tr7 has left the channel [08:32] fletchowns: yea i was reading a lot about redis and other key value stores, i think i may end up using it for some things [08:33] random123: dail: The best solution unless you want the headache of 2 boxes and a KVM is imho from trial and error: [08:34] random123: dail: You install a version of Linux inside VirtualBox or vmware, that doesn't come with a GUI, Arch is a good example but Ubuntu has a version with its DE/WM stripped out too [08:34] sirdancealot has joined the channel [08:34] random123: dail: Don't use a GUI inside VirtualBox because its performance is bad [08:34] random123: dail: So instead, you install FTP/SSH access inside VirtualBox [08:35] mscdex: eh? [08:35] dail: hmm ok [08:36] Benjie_ has joined the channel [08:36] Benjie_ has left the channel [08:37] liar has joined the channel [08:37] random123: dail: So if you install VirtualBox inside Windows 7, then I would install Arch Linux [08:37] bbrandon has joined the channel [08:37] hkjels: what's the name of the module that allows automatic refresh of nodes upon file-changes? [08:37] fletchowns: node-dev [08:37] fletchowns: is one [08:38] random123: dail: Then I would use pacman to setup FTP/SSH to the box, you can find out on Arch's site how to install openssh and proftpd for example [08:38] eddyb has joined the channel [08:38] eddyb: http://www.reddit.com/r/node/comments/jdanl/i_think_nodejs_is_great_but_what_about_making/ [08:38] random123: dail: Then you can connect to the box using WinSCP and Putty [08:38] eddyb: some of you might want to check out that ^^ [08:38] random123: dail: Using WinSCP is extremely helpful [08:39] kulor-uk has joined the channel [08:39] mscdex: eddyb: TL;DO [08:39] hkjels: fletchowns: yeah, thanks. I think however that someone made one that's slightly slicker. Just can't remember the name [08:39] Nexxy: ubuntu's kvm is good too [08:39] kdng-tr7 has joined the channel [08:39] zilch has joined the channel [08:39] hkjels: one that doesn't hook into the require, but rather just watches your node directory [08:40] hkjels: app directory, sorry [08:40] thalll has joined the channel [08:40] random123: dail: Basically the alternative is to just Install it as main OS, however, you can do that, install on seperate partition, and you will see if you need Windows or not, but I wouldn't delete it right away [08:40] dail: ok [08:40] mscdex: eddyb: what's wrong with the v8 api? [08:41] random123: dail: If you find yourself needing Linux and Windows at the same time then try my method [08:41] kulor-uk has joined the channel [08:41] dail: random123 if i would like to write noide app on linux which editor do you advice me? [08:41] fletchowns: vim [08:41] dail: (graphical) [08:41] dail: like netb4eans [08:41] mscdex: gedit! [08:41] mscdex: :-D [08:41] random123: dail: I would recommend Sublime Text 2 [08:41] fletchowns: yea sublime text 2 is nice [08:42] dail: i see [08:43] dail: http://www.sublimetext.com/2 [08:43] dail: seeems is not totally free [08:43] dail: at the moment but they can seel a license [08:43] dail: *sell [08:43] tbassetto has joined the channel [08:44] fletchowns: they just have a nag screen [08:44] fletchowns: you can use it forever though [08:44] wenbert has joined the channel [08:44] sirdancealot has joined the channel [08:44] eddyb: mscdex: too much code for a simple forward. callbacks are even uglier. why use it as complicated as it is when you can have it the nice and simple way? [08:44] dail: i remember i was using KWRITE [08:44] random123: dail: I bought a license for $60, and I am like the last person who would do that, you'll see its worth it [08:45] mscdex: eddyb: i've never had trouble with writing node bindings with the v8 api [08:45] fletchowns: mscdex: if i rewrite them as separate functions, how do i avoid creating a resource connection and then closing it in every one of these little functions? [08:45] dail: k [08:45] fletchowns: i just want to create the connection once and then have it closed automagically by whatever callback finishes the request [08:47] TomY has joined the channel [08:47] eddyb: mscdex: there's a word for that: masochists. I'm sure you can write a linux driver. but *does* it have to be that ugly? [08:48] mscdex: it's far from ugly ... i know what ugly looks like [08:48] mraleph has joined the channel [08:48] eddyb: then suicidal? kill-the-reader? [08:49] mscdex: mraleph: would you consider v8's api to be ugly? :-p [08:49] mraleph: mscdex: no, it's rather pretty. [08:49] mraleph: mscdex: what is the problem? [08:49] mscdex: mraleph: i'm trying to convince eddyb [08:50] mraleph: he likes his wrappers I suppose :-) [08:50] mscdex: heh [08:50] dail: but gedit works under gnome [08:50] dail: i'm installing XFCE [08:50] mscdex: dail: i use gedit all the time under gnome [08:50] mscdex: dail: er xfce [08:51] dail: xfce? [08:51] dail: really? [08:51] eddyb: dail: it works under plain X [08:51] bjarman has joined the channel [08:51] eddyb: as does kwrite [08:51] mscdex: man i need to sleep [08:51] dail: ah ok [08:51] eddyb: as does any app that isn't written with feet [08:51] Clex: Is there a way to perform an "html entities" on a http query? [08:51] Clex: http.get() sends 'GET /?p="foo"' instead of 'GET /?=%22foo%22' [08:51] zilch has joined the channel [08:52] eddyb: mscdex: ok, then... why not use C instead of C++? I mean... why you need the sugar and the features? [08:52] eddyb: oh... wait... [08:52] eddyb: you could use B... or even ASM... [08:52] mscdex: eddyb: because v8 is already c++? [08:52] Nexxy: LOL, asm [08:52] eddyb: why not write with butterflies? [08:52] mscdex: now you're being far fetched [08:52] mraleph: I like Modula-2 [08:53] mraleph: and Haskell [08:53] mraleph: but this has nothing to do with V8 or node.js [08:53] eddyb: I tend to be hard-to-argue-with [08:54] Nexxy: I prefer intercal [08:55] jesusabdullah: lolcode! :D [08:55] jesusabdullah: Still waiting for breakfastscript [08:55] eddyb: v8's API is nice and all... but it's not meant for huge deployment. I can't even start to image the pain of managing chromium/webkit with pure v8 API [08:56] eddyb: I have to admire your patience, tough, I'll never get that [08:59] enotodden has joined the channel [08:59] Nuck: Is tj's pic on twitter actually him? [08:59] Nuck: Because he looks like an emo kid >_> [09:00] random123: Nuck: I've been wondering that myself, apparently he is 25 too [09:00] eddyb: I wanted to see comments on reddit, not get "what's wrong with not having nice things instead of being masochistic?" on IRC [09:01] bzinger has joined the channel [09:01] Nuck: random123: shit, he looks younger than me [09:02] random123: Nuck: I'd say he looks like 17 in his pictures, which initially pissed me off because I was jealous [09:03] Nuck: random123: I *am* 17. [09:03] Nuck: Also, listening to mikeal's curlybracecast. [09:03] random123: I am 23 [09:04] Nuck: I'm giggling over the "celebrity sightings of programmers" [09:04] murugaratham has joined the channel [09:04] __tosh has joined the channel [09:04] bbrandon has joined the channel [09:04] mscdex: fletchowns: something like this maybe, depending on how reusable your task is: https://gist.github.com/1133628 [09:05] fdenbow has joined the channel [09:07] Aco- has joined the channel [09:07] mscdex: fletchowns: there's many ways to abstract the problem, you just have to find one that you like best and that best suits the situation and/or project [09:07] mscdex: /afk [09:11] Nuck: isaac is an ass ROFL [09:11] Nuck: He wants to inflict pain on us all [09:12] random123: How so? [09:12] mc_greeny has joined the channel [09:13] Nuck: He said that he thinks everyone should be a door-to-door salesman at least once. [09:13] sechrist: Is it still standard to require.paths.unshift to add a path? [09:13] sechrist: or is there some new fancy way [09:14] fletchowns: mscdex: that looks much nicer, thank you for putting that together. makes a lot of sense now that i see it clearly like that [09:14] eddyb: sechrist: require.paths.push [09:14] eddyb: *trollface* [09:14] blkcat: hah. [09:14] sechrist: I mean the difference here is the ordering right? [09:14] eddyb: I'd assume so [09:14] chg has joined the channel [09:15] sechrist: I mean push is fine too, I guess it all depends on if you want your local shit override whatever else is [09:15] eddyb: PATH=X:$PATH vs PATH=$PATH:X [09:15] sechrist: if you use both I would assume that would get annoying to debug if you ever find yourself in require() hell [09:16] random123: Is adding paths still in node 0.5? Atleast they removed it from the documentation and are trying to deprecate doing that [09:16] fyskij has joined the channel [09:17] thalll has joined the channel [09:18] markwubben has joined the channel [09:19] random123: Nuck: Oh, I see the context, listing to that Cast as well atm [09:19] JakeyChan has joined the channel [09:19] Nexxy: Nuck, tj isn't emo, he's gorgeous [09:19] Nexxy: that would make him "scene", if anything [09:19] hlindset has joined the channel [09:19] hlindset has joined the channel [09:19] Nuck: Nexxy: He still looks emo [09:19] Nuck: LOL [09:19] Nexxy: I disagree [09:20] Nuck: HIS SHIRT HAS 500 DC LOGOS [09:20] Nuck: Need I say more? [09:20] Nexxy: how is DC emo? [09:20] Nexxy: DC is a skate brand [09:20] Nuck: Did you see his haircut? [09:20] Nexxy: yes [09:20] Nuck: Emo and skater groups are merging :V [09:20] hasta84 has joined the channel [09:20] Nexxy: isn't that nice [09:21] Nuck: I started seeing that over the last 2 years of high school [09:21] Nuck: And a bit of hipster was penetrating them too [09:21] Nexxy: I still don't think it's a very wise decision to make disparaging remarks towards one of the communities most prolific authors [09:21] Nuck: Mostly the lensless glasses [09:21] industrial: Anyone here us Mongoose? I'm unsure how to update a document :\ if I just do new MyModel and .save() it will complain about a duplicate key. How do I upadte the document? [09:21] Nuck: Nexxy: Don't get me wrong, he's awesome. But to be fair, he's Canadian, and emo. [09:23] Nexxy: well where's your public profile so we can all judge you too? ;3 [09:23] zilch has joined the channel [09:23] shinuza has joined the channel [09:23] Nuck: Nexxy: I'm a hipster. [09:23] Nuck: I know it. [09:23] Nuck: :P [09:23] Nexxy: pics or it didn't happen [09:23] random123: The term hipster must be a california thing? [09:23] Nexxy: also; real hipsters don't admit to it, nice try [09:23] Nuck: lol [09:23] Nuck: I have a pic I'm just too lazy to get it [09:23] Nexxy: real hipsters think they truly are "unique" and "philosophical" [09:24] Nuck: Nexxy: I know I'm a hipster :P [09:24] Nexxy: excuses excuses [09:24] Nexxy: you're not too lazy to go into depth as to exactly *why* someone *else* belongs to a certain sub-culture [09:24] Nuck: I'm laughing so hard at the story of the Alberton's sign [09:24] Nexxy: but you are too lazy to provide a simple url to a photo [09:25] Nexxy: proving that your current stylings adhere to a different sub-culture [09:25] fbrett66 has left the channel [09:26] hasta84: now I somehow got curious about the picture too :D [09:27] Nexxy: something tells me you're in no position to go around judging others ;3 [09:28] Nexxy: given that you're so hesitant to provide your own photos [09:28] Nuck: Nexxy: I've posted them before [09:28] Nuck: It just requires me to get the facebook image URL [09:28] Nexxy: another excuse [09:28] Nexxy: wow [09:28] Nuck: Which I am too lazy to do [09:28] Nexxy: if you had just logged in and linked me in the first place [09:28] Nexxy: you would have typed less [09:28] Nexxy: by now [09:28] booo has joined the channel [09:29] Nexxy: it's ok, just keep making unnecessary remarks toward others [09:29] Nexxy: forget the picture :) [09:29] hwinkel has joined the channel [09:29] saikat has joined the channel [09:31] FireyFly has joined the channel [09:33] androoid has joined the channel [09:33] androoid has joined the channel [09:34] Nuck: mikeal: continue the awesome, I'm loving this podcast ;D [09:34] murugaratham has joined the channel [09:36] __doc__ has joined the channel [09:37] webben has joined the channel [09:38] socketio\test\12 has joined the channel [09:39] socketio\test\41 has joined the channel [09:39] eddyb: ₌°-°₌ [09:40] FireyFly has joined the channel [09:40] Circlefusion has joined the channel [09:40] e6nian: mikeal: is that you? author of request ? [09:41] squeese has joined the channel [09:42] adambeynon has joined the channel [09:42] Nuck: Hmmmm [09:42] TheJH has joined the channel [09:43] Nuck: Kno isn't dead [09:43] Nuck: ACTION looked it up >_> [09:44] Country has joined the channel [09:45] ckknight_ has joined the channel [09:45] zilch: how do I determine the results after the vows tests have completed and results are know , programatically ? [09:46] smtlaissezfaire has joined the channel [09:49] versicolor has joined the channel [09:50] mc_greeny has joined the channel [09:52] Nuck: ACTION finishes the podcast [09:52] Nuck: Any other podcasts for me to rock out to? [09:52] Nuck: :B [09:52] Nuck: mikeal: Also, can I subscribe to this shit on iTunes? C: [09:54] e6nian: Nuck: node podcasts? give the url to me,thank you [09:54] bbrandon has joined the channel [09:54] sfoster has joined the channel [09:54] e6nian: ACTION sucks english [09:54] Nuck: e6nian: It's not really node-specific, it's just mikeal yapping with somebody else (in this case, isaacs) [09:54] Nuck: IDK if it's node-only [09:55] Nuck: but either way, CurlyBraceCast.com [09:55] broofa has joined the channel [09:55] adrianmg has joined the channel [09:56] Nuck: oh fuck [09:57] Nuck: cookies are illegal in the EU [09:57] eddyb: what? [09:58] shapeshe1 has joined the channel [09:58] TheJH: dunno what's the current status of that, but there's really something about having to tell someone before you give him a browser cookie. But don't know if it's just a politicians idea or law [09:58] Joelio has joined the channel [09:59] pibi has joined the channel [09:59] Nuck: TheJH: http://www.ico.gov.uk/ [09:59] Nuck: It's already there [10:00] Nuck: But seriously, "Posts on this site sometimes carry videos from third party sites such as YouTube, which use cookies to record your interest in LOLCATS and people skiing into trees. Don't you not agree to us not storing this information?" [10:00] pibi has left the channel [10:00] bergie has joined the channel [10:01] TheJH: ouch - I live in the EU :( [10:01] Nuck: Don't worry [10:01] Nuck: wait [10:01] Nuck: Did NodeUp just start with music from Ghosts II? [10:01] Nuck: AWESOME [10:02] Nuck: TheJH: http://www.technologyreview.com/blog/editors/26816/ [10:02] Nuck: TheJH: You're safe unless you're Estonian or Danish [10:02] TheJH: german [10:03] Nuck: Well then you're safe [10:03] Nuck: I approve of NodeUp :D [10:03] Nuck: Ghosts === awesome [10:04] Nuck: Though I was seriously like "Wait, did I accidentally my podcast D:" [10:04] TheJH: ah, so it's EU law, which means that all members must implement it, but the members didn't implement it yet [10:04] hasta84: sooo... if I have some callbacks to schedule and need arguments for them, do I just use setTimeout(cb, 0, args) or is it way much less efficient that process.nextTick() ? [10:04] Nuck: TheJH: yep [10:04] Nuck: TheJH: Because everybody thinks it's crazy. I'll laugh if everybody forgets about the law [10:04] hasta84: but there are no arguments for nextTick so I have to work around that? [10:05] TheJH: hasta84, process.nextTick(function() { yourFunction(1, 2); }); or so [10:06] Nuck: yup good ol' lexical scope [10:06] Nuck: use it and abuse it [10:06] hasta84: TheJH: yes, I was trying with closures, but it gets overwritten [10:07] TheJH: hasta84, then you need an extra preserver closure [10:07] TheJH: hasta84, your code, please? [10:08] hasta84: so if I schedule 2 callbacks: for(){ var x++; nextTick(f() { log( x ); }); } x will always be the last number [10:08] eddyb: TheJH, Nuck: http://www.davidnaylor.co.uk/eu-cookies-directive-interactive-guide-to-25th-may-and-what-it-means-for-you.html [10:10] Nuck: eddyb: I'm dying of laughter right now [10:10] TheJH: hasta84, try something like for (var i=0; i<10; i++) { (function(i){nextTick(function(){log(i);})})(i) [10:11] TheJH: "This site uses Google Analytics, which uses cookies to track various aspects of your visit, including your geographic location, the method you used to reach this site, the length of your visit, the time of your visit, the pages that you visit and anything you search for while on the site. Do you agree to us storing this information?" Lets see what effect "no" has... [10:12] ph^_ has joined the channel [10:12] TheJH: bwahahahahaha, endless cool alert loop :) [10:12] Nuck: IT ENDS [10:12] Nuck: That's the best part [10:12] Nuck: I kept clicking Ok [10:12] thalll has joined the channel [10:12] hasta84: TheJH: try that: for(var i = 0; i < 4; i++) { [10:12] hasta84: process.nextTick(function(){ [10:12] hasta84: console.log(i); [10:12] hasta84: }); [10:12] hasta84: }; [10:13] okuryu has joined the channel [10:13] hasta84: TheJH: it always outputs 4 [10:13] TheJH: hasta84, you didn't read my code, did you? [10:13] TheJH: hasta84, you're missing the second, outer closure [10:13] mendel_: is there a node project that I could serve the current dir through http? [10:13] hasta84: TheJH: obviously not right no ;) [10:14] eddyb: mendel_: http-server or something [10:14] eddyb: just saw it in a "6 useful node.js apps" article [10:14] TheJH: mendel_, lightnode can be used with two or three lines of code, I think [10:15] hasta84: TheJH: but I still get the same output [10:15] eddyb: mendel_: http://blog.nodejitsu.com/six-nodejs-cli-apps [10:15] TheJH: hasta84, that's weird [10:15] TheJH: bwahaha, "Don't you not not not disagree to us not storing this information? Not." [10:16] JakeyChan: I have stupid question, what's the IDE you develop node.js ? [10:16] Nuck: TheJH: Inorite [10:16] ph^ has joined the channel [10:16] Nuck: I was cracking up [10:16] mendel_: eddyb: perfect, thanks [10:16] JakeyChan: eclipse ? [10:16] Nuck: "I just started laughing the moment you said sausage, so I didn't even pick up that last part" [10:16] Nuck: Goddamnit [10:17] zilch has joined the channel [10:17] eddyb: eclipse? [10:17] eddyb: uh... I'd say "why not kdevelop?" but I could start an "editor" war [10:18] JakeyChan: eddyb: ? sorry ? [10:18] clu3 has joined the channel [10:18] clu3: anyone know what's the meaning of the logo of nodejs guys? [10:18] TheJH: hasta84, just tried this, it works (outputs numbers from 0 to 9): for (var i=0; i<10; i++) { (function(i){ process.nextTick(function(){console.log(i);}); })(i) } [10:18] Nuck: clu3: It represents feces. [10:18] hasta84: TheJH: This works fine: for(var i = 0; i < 4; i++) { (function(){ var x = i; process.nextTick(function(){ console.log(x); }); })() }; [10:18] Nuck: :B [10:19] TheJH: hasta84, yup, will work, too [10:19] clu3: Nuck, woot [10:24] Nuck: ... Windows XP lacks symlinks? D: [10:24] Nuck: ACTION gags [10:26] Nuck: Bring NPM to Windows 7 sooner :D [10:26] zilch has joined the channel [10:27] eddyb: bring doom to Microsoft faster, please :) [10:27] Nuck: I like my Windows 7 [10:27] hwinkel has joined the channel [10:27] Nuck: Though I definitely can't wait to get a MAc [10:27] boehm has joined the channel [10:27] eddyb: I like my openSUSE [10:27] eddyb: I could make it look like a mac or windows, but it looks good already, why bother? [10:28] TheJH has joined the channel [10:30] Nuck: ACTION swears he just heard an iPhone ding in the background on NodeUp [10:34] squeese has joined the channel [10:41] fermion has joined the channel [10:44] asabil has joined the channel [10:44] odie5533: I need an atomic FIFO queue. Can I use an Array() in Node since it's async? [10:45] dominictarr: Array is not async [10:45] xandrews has joined the channel [10:45] odie5533: I meant Node asynchronously access the array [10:45] igl: yes [10:46] dominictarr: jobs = [] [10:46] dominictarr: jobs.push(j) //add [10:46] ditesh|cassini has joined the channel [10:46] dominictarr: j = jobs.shift() //do [10:46] dominictarr: would work i think [10:47] sechrist: dominictarr: sup [10:47] dominictarr: hey sechrist, whats up? [10:47] sechrist: nm, messing with express [10:47] unlink has joined the channel [10:48] Fox` has joined the channel [10:48] Nuck: is this pooling shit actually referring to the built-in HTTP module? [10:48] dominictarr: oh yup. [10:48] odie5533: what pooling [10:48] Fox`: doesn't matter [10:48] Fox` has left the channel [10:48] adambeynon has joined the channel [10:48] eddyb: FOx? [10:48] dominictarr: Nuck: only when you do requests [10:48] eddyb: wait [10:48] Nuck: dominictarr: ah I see [10:49] joshonth_ has joined the channel [10:50] materialdesigner has joined the channel [10:50] dominictarr: sechrist: I moved to here: http://maps.google.com.au/maps?q=byron+bay&hl=en&sll=-25.335448,135.745076&sspn=34.164986,56.513672&t=h&z=12 [10:50] dominictarr: it's pretty sweet. [10:50] sechrist: neat [10:50] sechrist: What led to that choice? [10:51] Nuck: weirdest thing I've ever seen on Skaip [10:51] sechrist: SF couchsurfing not cool enough? [10:51] Nuck: "Ever masturbated to a UML diagram before?" [10:51] sechrist: Only to netflix's architecture [10:52] DrLou has joined the channel [10:52] dominictarr: ah, the little stamp on my passport said I had to fuck off. [10:52] sechrist: sigh [10:53] dominictarr: first i was in melbourne, but it was fucking cold. then I went for bit of a drive, and ended up here. [10:54] dominictarr: don't worry, i'll be back. [10:54] senorpedro has joined the channel [10:54] senorpedro: hi [10:55] H4ns` has joined the channel [10:56] Nuck: One Macbook Per Developer? [10:56] Nuck: I APPROVE! [10:56] senorpedro: i'm currently trying to iterate over a array and make a redis.set() in each iteration. as far as i understand the setting is asynchronous, so i cant just make "client.quit()" after the loop is finished. how can i make sure that all redis-set operations are finished when i call client.close() ? [10:56] senorpedro: sorry, client.quit() [10:56] Nuck: LET'S DO THIS SHIT [10:57] Nexxy: senorpedro, look @ async [10:57] TheJH: senorpedro, use a library like "async" [10:57] Nexxy: https://github.com/caolan/async [10:57] dominictarr: or write your own. every node js developer needs to do that. [10:57] senorpedro: is there no way without a lib? [10:58] dominictarr: read the code in the lib to see how [10:58] Nexxy: note: I specifically chose the word look for a reason ;P [10:58] senorpedro: ok, thx guys [10:58] TheJH: senorpedro, there is. each time you make a request, increment a counter. each time you get a response, decrement it. when it's 0 again, all requests are finished [10:59] senorpedro: its like parallel programming i think [10:59] fsvieira has joined the channel [10:59] senorpedro: is there a "waitpid" equivalent in the async world? [11:00] eddyb: by async, all of you mean fibers/coroutines? [11:00] TheJH: senorpedro, what is that? there's no "waiting" in node, everything is asynchronous [11:01] zilch has joined the channel [11:01] senorpedro: TheJH: but before calling "client.quit()" one must wait for all the set operations to be finished, or not? or is there a event "redis done"? [11:01] TheJH: senorpedro, I know nearly nothing about redis [11:03] fsvieira: hello, what is the options to run node in production mode ? [11:03] dnjaramba has joined the channel [11:04] TheJH: fsvieira, I don't think that node knows a "production mode" [11:05] odie5533: Is async's forEach like underscore? [11:05] dominictarr: I thought underscore was all sync? [11:06] jhbot has joined the channel [11:07] markwubben has joined the channel [11:07] mczerkawski has joined the channel [11:07] odie5533: oh wow async has the queue() function which is exactly what I was looking for :) [11:08] odie5533: How does async work? [11:08] TheJH: odie5533, look in its code :P [11:08] odie5533: I am, but it doesn't seem to do anything special [11:09] TheJH: ah, the "I can see all the wrapper code, but where does the magic happen?" problem? [11:09] odie5533: yes! [11:09] odie5533: there must be magic somewhere! [11:10] odie5533: ahah. var doTheMagic = function() {...}. But that's the actual code. "..."! [11:10] fsvieira: TheJH: ok, I am trying to run node in a godaddy account, but since my account is too restricted I think godaddy is killing my node process, and I am running it with nohup. So I was thinking if there is another solution, godaddy runs apache/php and cgi scripts. [11:10] odie5533: fsvieira: three letters: VPS [11:11] fsvieira: odie5533: that is to expensive for me [11:11] TheJH: fsvieira, VPS or node hoster like joyent or so [11:11] odie5533: fsvieira: It's like $3 a month. [11:11] jobim: virtual servers are that cheap? where? [11:12] TheJH: odie5533, there are VPS for 3$ a month? [11:12] TheJH: ACTION wants one [11:12] odie5533: lowendbox.com [11:12] adambeynon has joined the channel [11:12] odie5533: I bought a VPS from onedollarvps.com. $1/mo [11:12] odie5533: it was REAL shit too for a week, then they did something and now it runs smooth. For $1. [11:12] fairwinds has joined the channel [11:12] Nuck: I have a VPS for $0 a month [11:13] Nuck: I just know a host who has an excess ;) [11:13] odie5533: Some places charge more than $1/mo for just an IP [11:13] odie5533: TheJH: mind explaining the async magic? [11:13] fsvieira: anyway I alredy both my account on godaddy for 4 years lol [11:13] odie5533: well that was dumb. [11:14] odie5533: "I need Node Hosting. GoDaddy has PHP hosting. Better sign up for 4 years." [11:14] Nuck: fsvieira: You're fucked for Node [11:15] TheJH: odie5533, I don't really know the async code myself [11:15] Nuck: fsvieira: Call them up, see if you can get them to cancel without charging you out the ass. [11:15] Nuck: GoDaddy is shit hosting anyways [11:15] Nuck: overbooked, slow hosting [11:15] m0s has joined the channel [11:15] odie5533: Nuck: most places are oversold. [11:15] odie5533: Read: every place is oversold. [11:16] Nuck: Not my host [11:16] Nuck: lol [11:16] eee_c has joined the channel [11:16] Nuck: benefits of knowing a host :D [11:16] odie5533: it is most likely. all hosts oversell. [11:16] odie5533: for shared hosting and VPS at least. [11:16] Nuck: Not mine, once again ;P [11:16] odie5533: then the place would go under since it can't compete. [11:17] Nuck: odie5533: Surprisingly, he's running profitable. [11:17] Nuck: And has been for well over 3 years [11:17] odie5533: mhmm [11:17] Nuck: I got alloted a damn good VPS, 8 cores, 2-4GB of RAM, and 20GB HDD [11:17] Nuck: But that's an investment in my startup, so yeah [11:18] odie5533: I'm on 40GB HDD, 1GB RAM, and 4 cores. [11:18] akshatj has joined the channel [11:19] Nuck: Did I mention he allotted me this as a *testing/dev server* [11:20] odie5533: okay, and? Congratz? [11:20] odie5533: What do you want Nuck? [11:20] TheJH: Nuck, you already said that yesterday or so :P [11:20] odie5533: just to come on IRC and brag about your crap? [11:20] zilch has joined the channel [11:20] odie5533: wow he's done it before too [11:20] odie5533: what an asshat [11:21] __tosh has joined the channel [11:22] TheJH: uhm, odie5533, could you try to calm down a bit? [11:22] odie5533: heh, I'm calm. Watching a movie, got this on my 2nd monitor. [11:22] odie5533: ill minimize you guys for a bit =P [11:22] TheJH: ah, ok, 2nd monitor is cool :) (me too) [11:23] TheJH: *brag* [11:24] FM has joined the channel [11:25] fsvieira: I found a blog that maybee is possible to put it run as cgi, I will try that... [11:26] akshatj has joined the channel [11:26] micheil has joined the channel [11:27] hkjels: I get Object # has no method 'find' on my mongoose.model. Anyone who knows what the reason could be? [11:30] hkjels: if I run console.log on it, I can see that my model is retrieved, but the magic of mongoose, seems to be missing in action [11:30] eyesUnclouded has joined the channel [11:32] dnjaramba_ has joined the channel [11:32] kdng-tr7 has joined the channel [11:33] eyesUnclouded has joined the channel [11:34] industrial: Anyone used mongoose-joins from npm? [11:34] industrial: it's lacking docs :\ [11:35] industrial: hkjels: yeah I get that too, appears to just be an object you get back from a finder. [11:35] hkjels: found the issue [11:36] industrial: hkjels: also, you'd do a find on the Model, not a model instance :) [11:36] hkjels: I was trying to do: var instance = new someModel(); And act upon it, but I was not suppose to create an instance I guess [11:36] hkjels: industrial: that was the issue [11:36] industrial: Trying to get mongoose-joins to work [11:36] industrial: but I dont understand the monkey patching [11:37] industrial: you get back the installed types and some stuff from the monkey patching function, but when do I run that function? [11:37] industrial: just before mongoose connect? [11:37] industrial: I need those types in my Schema's [11:37] industrial: but I'm not going to monkey patch every time in a new Schema file [11:37] shapeshed has joined the channel [11:37] industrial: so then I need to manage and pass those variables? [11:38] stalled has joined the channel [11:38] industrial: why not just stuff those types under what you get back from require('mongoose-joins') [11:38] industrial: ACTION creates tickets [11:38] bergie has joined the channel [11:38] lebreeze has joined the channel [11:41] lebreeze: We have a socket.io server that only seems to be able to serve the most recent N connections. Any suggestions as to where to begin? [11:42] `3rdEden: lebreeze finding howmuch N is would be the first thing ;) [11:43] Clex: Is there a problem here? http://fpaste.org/R95B/raw/ [11:43] lebreeze: `3rdEden N is about 30 [11:43] Clex: Firefox says my image contains errors. [11:43] sirdancealot has joined the channel [11:45] bshumate has joined the channel [11:46] zilch has joined the channel [11:46] kab3wm has joined the channel [11:47] `3rdEden: lebreeze everytime? [11:47] remysharp has joined the channel [11:47] `3rdEden: And does it happen with certain transport or with all? [11:48] scott_gonzalez has joined the channel [11:48] lebreeze: `3rdEden every time and we've only seen it happen with websockets. [11:48] micheil: ? [11:50] lebreeze: …over https as well, if that makes a difference. [11:50] Brandonn has joined the channel [11:51] micheil: lebreeze: can you reproduce it if it's only running the basic hello world of socket.io? [11:51] micheil: lebreeze: also what version of node.js is it? [11:52] lebreeze: 0.4.9 [11:52] lebreeze: we haven't tried with a basic hello world app yet [11:54] eliziario has joined the channel [11:54] Xano has joined the channel [11:55] Xano has joined the channel [11:55] micheil: perhaps the best thing to do. [11:56] micheil: that'd allow it to be more clearly defined as either a socket.io problem or a problem in your code [11:56] micheil: (I know with the storage mechanism for socket.io connections I have run into a weird race condition) [11:57] losing has joined the channel [11:57] lebreeze: cheers [11:58] thirtysixred has joined the channel [11:59] Clex: Is there a problem here? http://fpaste.org/R95B/raw/ [11:59] Clex: Firefox says my image contains errors. [12:00] TheJH: Clex, don't handle an image as strings, handle it as buffers [12:00] kdng-tr7 has joined the channel [12:00] eddyb: that was wrong [12:00] eddyb: on so many levels XD [12:00] TheJH: eddyb, what was wrong? [12:00] eddyb: strings... [12:01] Clex: Thanks TheJH, I'll try. [12:02] odie5533: Are there other core libraries like async I should know about? [12:02] icebox has joined the channel [12:02] Country has joined the channel [12:03] micheil: Clex: Strings are for plain text data, buffers for anything Binary [12:03] micheil: (noted though, that plain text strings can be stored as binary with an encoding of ascii or utf8 within a Buffer) [12:04] TheJH: odie5533, depends on what you're doing - probably express for http, dnode or now for rpc [12:05] TheJH: odie5533, dnode is more efficient, now sometimes does some weird stuff like scanning trees of object every second or so [12:05] TheJH: odie5533, what kind of stuff are you doing with node? [12:05] odie5533: nothing much yet [12:07] kulor-uk has joined the channel [12:08] jshaw has joined the channel [12:10] micheil: odie5533: before one can suggest libraries, one must know what one would like to do. [12:10] dexter_e has joined the channel [12:10] odie5533: I just want to know popular libraries used by a lot of people. like async, vows, express, expresso [12:10] micheil: if you're doing websockets, either socket.io, websocket or websocket-server are the best. [12:11] TheJH: micheil, I disagree somewhat. I think that something higher-leveled like RPC is a good idea [12:11] micheil: TheJH: once again, it depends on what you are doing. [12:11] TheJH: hmm, true [12:12] micheil: I'm actually going to be implementing a JSON-RPC handler for node in the next few days. [12:12] micheil: JSON-RPC over raw websockets, minds you. [12:12] TheJH: micheil, one more RPC library? [12:12] odie5533: What are people doing with RPC libraries anyways [12:12] micheil: no, as in something to follow the JSON-RPC spec. [12:12] TheJH: odie5533, call methods on the server from the browser and vice versa [12:13] TheJH: micheil, ah, ok [12:13] micheil: (only I bend the rules slightly and have params as a object / hash, as it makes more sense) [12:13] odie5533: TheJH: wouldn't you use socket.io instead? [12:13] micheil: TheJH: also, as for websockets, I'm the maintainer of node-websocket-server ;) [12:13] TheJH: odie5533, dnode runs on top of socket.io [12:13] micheil: and `3rdEden is pretty much maintainer of socket.io at the moment, I think. [12:14] Nexxy: is anyone aware of a fuzzer specifically for node? [12:14] zilch has joined the channel [12:14] micheil: (as far as websockets goes though, if you know that you want to be doing the channeling of messages and use an event based interface, I'd just go with pusher.com) [12:14] micheil: Nexxy: fuzzer? [12:14] Nexxy: fuzz tester [12:15] micheil: hmm.. no, I don't think I know of one. [12:15] negrete has joined the channel [12:16] micheil: there is fake, but that's not really a fuzzer, just fake data [12:17] eddyb: for node? [12:17] McMAGIC--Copy has joined the channel [12:17] eddyb: as in, to break node, or to run on node? [12:18] eddyb: someone showed me this, btw: http://code.google.com/p/ouspg/wiki/Radamsa [12:18] igl1 has joined the channel [12:19] Nexxy: I was just hoping for something that basically did a bunch of automated invalid data input ;3 [12:19] hkjels has joined the channel [12:20] brianseeders has joined the channel [12:20] eddyb: Nexxy: I know what a fuzzer is... still: "as in, to break node, or to run on node?" [12:21] Nexxy: i'm more interested in testing my node apps [12:21] Nexxy: but I'm not really aware of much for fuzzing web apps [12:21] Nexxy: I was just curious though it's not that pressing [12:22] eddyb: oh [12:22] eddyb: then you could try Radamsa [12:23] Nexxy: thanks! ;3 [12:26] M1n1f1g has joined the channel [12:27] fumanchu182 has joined the channel [12:28] JoshC1 has joined the channel [12:29] jomoho has joined the channel [12:30] M1n1f1g: I tried to follow the instructions on https://github.com/joyent/node/wiki/Building-node.js-on-Cygwin-%28Windows%29 but got the "Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a}" error. The fix suggested did not work. What should I do? [12:30] odie5533: M1n1f1g: which tag did you checkout? [12:31] M1n1f1g: $ make and $ make install [12:31] odie5533: M1n1f1g: which tag did you checkout? [12:31] M1n1f1g: What do you mean? [12:31] nerdfiles1 has joined the channel [12:31] odie5533: e.g. git checkout v0.5.3 [12:31] codespray has joined the channel [12:32] M1n1f1g: Yes. [12:32] M1n1f1g: v0.5.3 [12:33] mapleman has joined the channel [12:33] rphillips has joined the channel [12:35] nerdfiles1 has left the channel [12:35] ruprict has joined the channel [12:37] NetRoY has joined the channel [12:38] descipher has joined the channel [12:38] bnoordhuis has joined the channel [12:38] icebox: on windows it would be better the stable 0.4.10 [12:38] NetRoY has left the channel [12:39] kuya has joined the channel [12:39] NetRoY has joined the channel [12:39] kriszyp has joined the channel [12:39] e6nian: anyone use Kue here ? [12:40] booo has joined the channel [12:40] Generic_Dumbass has joined the channel [12:40] sivy has joined the channel [12:40] jetienne has joined the channel [12:41] odie5533: so much stuff uses redis [12:41] odie5533: running extra processes is a pain IMO [12:42] willwhite has joined the channel [12:42] micheil: odie5533: redis is actually really good. [12:42] e6nian: odie5533: did you refer to Kue? [12:42] micheil: odie5533: we use it extensively for things at pusher. [12:43] odie5533: for my usage of Node, I've worked hard to find stuff that avoids extra processes. [12:43] odie5533: I really want to use sqlite3. But alas, I could not get it to compile on Windows. [12:43] M1n1f1g: Icebox, I'm trying v0.4.10 now. [12:43] c4milo has joined the channel [12:44] maru_cc_ has joined the channel [12:44] icebox: M1n1f1g: Nice. Following the doc you suggested I had no problems to compile 0.4.10 on Windows 7 box. [12:44] bbigras__ has joined the channel [12:44] ryanfitz has joined the channel [12:44] mapleman has left the channel [12:44] replore has joined the channel [12:44] replore_ has joined the channel [12:45] M1n1f1g: Hmm... still not working on my XP. [12:45] odie5533: icebox: pfft, using Cygwin. [12:45] odie5533: learn2mingw [12:45] random123: Anyone have any suggestions on the best way to make doing a lot of Async stuff easier? [12:45] odie5533: random123: the library, async [12:45] odie5533: https://github.com/caolan/async [12:45] icebox: odie5533: that's? [12:46] e6nian: yep,that's aweosome async lib for Async [12:46] odie5533: icebox: native compilation [12:46] odie5533: rather than using the cygwin dll [12:46] markwubben has joined the channel [12:47] random123: Ok, thanks, I knew about it but pondered if something even better might exist [12:47] icebox: odie5533: Sure. I need a pseudo unix env to run my stuff. It is not only the node binaries. [12:47] TheJH: random123, there is streamlinejs [12:47] odie5533: random123: it has 719 followers on GitHub. And you want something better? [12:48] TheJH: random123, https://github.com/Sage/streamlinejs - it is a compiler that allows you to write code nearly as if it was synchronous [12:48] kdng-tr7 has joined the channel [12:48] random123: TheJH: I'm checking it out, thanks [12:48] sledge has joined the channel [12:49] davidbanham has joined the channel [12:49] random123: I'd like to write the code to look, top to bottom, so you can easily visualize where the program is going without tons of identation [12:49] dnjaramba has joined the channel [12:50] lebreeze has joined the channel [12:50] random123: And jargon [12:51] rvb has joined the channel [12:51] M1n1f1g: No, still the same error for v0.4.10. [12:51] kkaefer: odie5533: it doesn't work on windows because it relies on libev which is not available on windows [12:51] kkaefer: odie5533: I'm not sure how well libuv replicates libel on windows and whether a port is possible [12:53] bergie has joined the channel [12:53] sivy: @tmm1 - http://search.npmjs.org/#/node-statsd is up to 0.0.2. thanks for the patch [12:53] icebox: M1n1f1g: Be sure about #2 of the doc - devel → gcc4-g++... what is the version of the compiler? [12:53] kkaefer: odie5533: if you want to get productive, I recommend using node v0.4.x on linux or mac os [12:54] xandrews has joined the channel [12:54] odie5533: what? [12:54] odie5533: why [12:56] icebox: M1n1f1g: I compiled it with 4.5.0-1 [12:56] rphillips has joined the channel [12:57] mekwall has joined the channel [12:57] jshaw has joined the channel [13:00] M1n1f1g: icebox, how do I check? [13:00] AaronMT has joined the channel [13:00] jbrokc has joined the channel [13:00] bnoordhuis: odie5533 kkaefer: libev should work on windows too [13:00] icebox: M1n1f1g: gcc -v ... But you shoud check your cygwin installation (#1 of the doc) [13:00] bnoordhuis: just not as performant as on unices [13:00] M1n1f1g: * the gcc4-g++ version. [13:01] kkaefer: oh, interesting [13:01] kkaefer: I assumed it was linux/bsd/mac os [13:01] micheil: is HTTP.ServerRequest.prototype.method always an uppercased string? [13:01] M1n1f1g: Ignore my last message. [13:01] icebox: M1n1f1g: when you update the packages, set exprimental category [13:01] hl7Guy has joined the channel [13:01] kdng-tr7 has joined the channel [13:01] icebox: M1n1f1g: *experimental [13:02] kkaefer: guess I have to try windows soon :/ [13:02] kevwil has joined the channel [13:02] kkaefer: bnoordhuis: you robbed me of my excuse :P [13:02] gmonnerat has joined the channel [13:03] bnoordhuis: kkaefer: :) [13:03] M1n1f1g: icebox: gcc version 4.3.4 20090804 (release) 1 (GCC). [13:03] gmonnerat has left the channel [13:03] c4milo has joined the channel [13:03] icebox: M1n1f1g: I compiled it with 4.5.0-1... Download that version using cygwin update software [13:04] aconbere has joined the channel [13:05] M1n1f1g: icebox: sorry, this is the first time I've used Cygwin, how do I do that? [13:05] willwhite has joined the channel [13:05] hdon- has joined the channel [13:06] pzich has joined the channel [13:06] icebox: M1n1f1g: I suppose you installed cygwin using the setup bin: http://cygwin.com/install.html [13:06] heavysixer has joined the channel [13:06] jbpros: Any idea on a way to stub require() calls? I'm using jasmine (jasmine-node). I'd like to stub the function returned by something similar to `require('my_module')` [13:07] sonnym has joined the channel [13:07] thomblake has joined the channel [13:07] thomblake has left the channel [13:10] M1n1f1g: icebox: I think I installed it from the homepage. I downloaded setup.exe. [13:10] rvb has joined the channel [13:11] linyows has joined the channel [13:11] icebox: M1n1f1g: if you start the setup... and setting exprimental category you can update the compiler... I cannot guide you step-by-step because now I am using another box [13:13] boaz has joined the channel [13:14] eyesUnclouded_ has joined the channel [13:14] adambeynon has joined the channel [13:15] eyesUnclouded has joined the channel [13:15] m0s has joined the channel [13:15] JakeyChan has joined the channel [13:16] bradleymeck has joined the channel [13:19] M1n1f1g: icebox: what does 4.5.0-1 refer to? [13:20] icebox: M1n1f1g: gcc4-g++ and other packages... but with the compiler 4.3.4 installed, you should see 4.5.0.1 suggested as you select the experimental category [13:21] M1n1f1g: I can't find anything about experimental, where should I look/input? [13:22] zilch has joined the channel [13:22] ditesh|cassini has joined the channel [13:22] icebox: M1n1f1g: top right [13:22] shapeshed has joined the channel [13:23] M1n1f1g: icebox: in setup.exe? [13:23] icebox: M1n1f1g: yes... in setup interface [13:24] M1n1f1g: icebox: ah, I think I know what you mean. [13:24] industrial: l [13:25] M1n1f1g: icebox: so just gcc4-g++ in experimental? [13:27] icebox: M1n1f1g: correct [13:27] NetRoY has joined the channel [13:28] shapeshe1 has joined the channel [13:31] bergie has joined the channel [13:31] pagameba has joined the channel [13:31] ianward has joined the channel [13:31] Pete__ has joined the channel [13:32] indexzero has joined the channel [13:33] racar_j has joined the channel [13:34] joeytwiddle has joined the channel [13:35] sivy has joined the channel [13:35] ksheurs has joined the channel [13:35] jtsnow has joined the channel [13:37] muk_work_ has joined the channel [13:38] brolin has joined the channel [13:38] piscisaureus has joined the channel [13:39] muk_work has left the channel [13:40] m0s has joined the channel [13:40] SoulRaven has joined the channel [13:42] kdng-tr7 has joined the channel [13:42] mc_greeny has joined the channel [13:43] hidinginabunker has joined the channel [13:44] eee_c has joined the channel [13:45] eddyb: from: http://www.reddit.com/r/node/comments/h1m2o/i_am_ryan_dahl_creator_of_nodejs_ama/ [13:45] eddyb: "Consider CommonJS extinct - not worth thinking further about." [13:45] eddyb: finally? [13:45] dnjaramba has joined the channel [13:45] mehtryx has joined the channel [13:45] eddyb: that makes some things easier and some things harder [13:45] `3rdEden: micheil thanks for answering the socket.io questions, was having a interview :) [13:46] micheil: `3rdEden: hopefully the information I gave was of help. [13:46] micheil: `3rdEden: I'm actually currently trying to monitor the london riots situation. [13:46] micheil: sounds like things may be kicking off near my office and home soon. :/ [13:46] hl7Guy has joined the channel [13:47] sechrist: shit is crazy man [13:47] StepanKuzmin has joined the channel [13:47] eddyb: smelling like civil war? [13:47] jakehow has joined the channel [13:47] sechrist: hooray civil war [13:47] `3rdEden: micheil that sucks [13:48] micheil: no, not a civil war. [13:48] `3rdEden: got a alternate place to stay? [13:48] micheil: just a bunch of twats. [13:48] sechrist: micheil: I thought you were from az [13:48] micheil: `3rdEden: nup. [13:48] sechrist: aus* [13:48] sechrist: not arizona [13:48] racar_j: Hello folks, i have a really weird flow when i do nested mysql query in callback. First one : OK. Second one : Weird. mysql.query(query, function( , , , callback ) { console.error("1"); callback(); console.error("2);�}); I have 2 displayed but not 1. Any one have a idea ? [13:48] micheil: sechrist: I moved to london 2 months ago to work for pusher.com [13:48] sechrist: ahh [13:48] sechrist: realtime events! [13:49] bnoordhuis: those rioters make we want to become a policeman [13:49] bnoordhuis: so i can beat the living shit out of them with a gummy stick >:( [13:49] kdng-tr7 has joined the channel [13:49] `3rdEden: micheil is there anything i can do for you just give me a poke, london > netherlands quite close [13:49] bnoordhuis: bunch of pillaging hoodlums [13:49] sechrist: if this were singapore, you'd just get caned up [13:49] sechrist: fear the cane [13:49] micheil: `3rdEden: ha, not much use there really. :P [13:50] sechrist: micheil: you need one of these: http://en.wikipedia.org/wiki/Long_Range_Acoustic_Device [13:50] devongovett has joined the channel [13:50] dnjaramba_ has joined the channel [13:51] eddyb: LOL: http://www.engadget.com/2011/06/28/why-is-european-broadband-faster-and-cheaper-blame-the-governme/ [13:51] `3rdEden: micheil better than nothing ;) [13:52] sechrist: eddyb: is that comparing it with the us? [13:52] sechrist: well north america in general [13:52] eddyb: think so [13:52] sechrist: canadians have it worse than us iirc [13:52] eddyb: I get 100Mbps fiber internet + phone at about $15 [13:52] sechrist: the fuck [13:52] eddyb: is that too good for US? [13:52] sechrist: where do you live? [13:52] eddyb: HEHEHEHEHEHE [13:52] eddyb: Romania [13:52] theCole has joined the channel [13:53] eddyb: some aussies a few months ago started being jelly on me [13:53] sechrist: What are the good cities? [13:53] eddyb: but it was only for a few hours :P [13:53] eddyb: well, I'm in Bucharest [13:53] sechrist: and how expensive are 2 bedroom apartments in decent areas? [13:53] racar_j: If i close / connect between each call to mysql, its working. ( im on node 0.4.10 [13:53] sechrist: :P [13:53] alnewkirk has joined the channel [13:53] eddyb: the city has to be big enough for RDS to have fiber internet in it, otherwise you're screwed [13:54] postwait has joined the channel [13:54] eddyb: even parts of Bucharest (the capital) aren't reached yet [13:54] sechrist: eddyb: well ok, you have 100mbit to your house [13:54] eddyb: yepp [13:54] sechrist: but how well does it peer with other nations [13:54] sechrist: I doubt you can sustain half of that to american servers? [13:54] eddyb: how can I test it? [13:54] eddyb: wait, I know [13:54] sechrist: speedtest.net I guess [13:54] eddyb: yepp [13:55] sechrist: I mean I have 50mbit but we pay comcast about 10 times what you're paying [13:55] eddyb: (I get 7MB/s, and even more, when downloading torrents) [13:55] sechrist: that's about 50mbit [13:55] sechrist: well that's closer to 60 [13:55] eddyb: I think I've seen 10MB/s [13:56] eddyb: I don't think it can go up to 11MB/s without any other problems [13:56] davidsklar has joined the channel [13:56] eddyb: oooh, shiny speedtest.net :) [13:56] nerdfiles has joined the channel [13:56] sniper506th has joined the channel [13:56] sechrist: what is your upstream like? [13:57] markmark has joined the channel [13:57] eddyb: wait [13:58] eddyb: why does speedtest.net show me 70Mbps [13:58] eddyb: while testing [13:58] sechrist: to an american box? [13:58] sechrist: that's awesome [13:58] eddyb: and then 26 as a result? [13:58] sechrist: oh [13:58] eddyb: no, control test [13:58] sechrist: weird averaging probably [13:58] eddyb: some random local server [13:58] sechrist: some link may have spiked [13:58] sechrist: oh hmm [13:58] eddyb: I should stop everything I have running [13:58] softdrink has joined the channel [13:58] kdng-tr7 has joined the channel [13:58] sechrist: it's a series of tubes man, it's unpredictable [13:58] mamund has joined the channel [13:58] ceej has left the channel [13:59] dnjaramba has joined the channel [13:59] eddyb: 30 chrome tabs is unpredictable [13:59] sechrist: only when you have flash enabled [13:59] eddyb: and JS... [14:00] softdrink: when flash is involved, anything is a crapshoot [14:00] brianloveswords has joined the channel [14:00] dherman has joined the channel [14:00] sechrist: chrome is pretty good about isolating bad eggs if it's within it's realm [14:00] eddyb: btw, IRC lag of about 15ms with hitchcock.freenode.net, apparently in bulgary [14:00] M1n1f1g: icebox: no, same old error. [14:01] eddyb: maximum at about 90Mbps now [14:01] eddyb: 10Mbps upload... I'm not sure that's accurate [14:02] eddyb: I'll have to test it somehow else [14:02] adambeynon has joined the channel [14:02] zilch has joined the channel [14:03] eddyb: is there any good US server? [14:03] dnjaramba_ has joined the channel [14:04] eddyb: I get some latency like it would have 5s ping [14:04] mekwall has joined the channel [14:05] eddyb: 130ms ping, 10Mbps download and 5Mbps upload with Boston, MA (Comcast) [14:05] jbrokc has joined the channel [14:05] Country has joined the channel [14:06] EyePulp has joined the channel [14:07] baudehlo has joined the channel [14:08] ryanfitz has joined the channel [14:08] butu5 has joined the channel [14:09] eddyb: sechrist: I don't think that counts as awesome [14:09] adambeynon has joined the channel [14:10] sandropadin has joined the channel [14:11] dexter_e has joined the channel [14:11] dnjaramba has joined the channel [14:11] kuya has joined the channel [14:12] dmitrig01 has joined the channel [14:12] eddyb: ok, chrome is definitely ****ed up: every textbox that has a special significance (like an email address one), has a gray placeholder text, like EMAIL_ADDRESS [14:12] eddyb: chrome dev that is [14:13] dnjaramba_ has joined the channel [14:14] m0s has joined the channel [14:14] tuhoojabotti: wot? [14:14] thalll_ has joined the channel [14:14] cjm has left the channel [14:16] dnjaramba_ has joined the channel [14:16] sureshh has joined the channel [14:17] kmiyashiro has joined the channel [14:17] dnjaramba_ has joined the channel [14:18] jerrysv has joined the channel [14:18] colinclark has joined the channel [14:19] kdng-tr7 has joined the channel [14:20] JJMalina has joined the channel [14:22] pjacobs has joined the channel [14:23] TheJH: I can't remember the last time chromium worked with twitter... [14:24] ttpva_ has joined the channel [14:24] markwubben has joined the channel [14:24] eyesUnclouded has joined the channel [14:24] hidinginabunker has joined the channel [14:25] yhahn has joined the channel [14:26] NetRoY has joined the channel [14:26] tuhoojabotti: Chrome 13 works fine :P [14:26] ohtogo has joined the channel [14:28] TheJH: maybe that's Googles way to make sure that people use chrome but that they can say "everyone who wants an open version can use chromium, we're not evil". [14:28] xerox: and then they can't tweet their complaints [14:29] xerox: perfect [14:31] loveshine has joined the channel [14:31] TheJH: ACTION downloads chrome [14:32] xerox: which build [14:33] robertfw has joined the channel [14:33] random123: tamejs is the answer to my dreams [14:33] eddyb: latest dev does a few weird things [14:33] eddyb: beta should be fine [14:34] eddyb: twitter definitely works :P [14:37] geetarista has joined the channel [14:37] sirdancealot has joined the channel [14:37] brianc has joined the channel [14:38] tbassetto has joined the channel [14:39] shinuza has joined the channel [14:39] cronopio has joined the channel [14:39] Poetro has joined the channel [14:40] eddyb: http://xkcd.com/ lol [14:42] jakehow has joined the channel [14:42] tjholowaychuk has joined the channel [14:42] eddyb: http://www.explainxkcd.com/ makes it even better [14:43] Swimming_bird has joined the channel [14:43] hornairs has joined the channel [14:45] random123 has joined the channel [14:47] Creap has joined the channel [14:47] Isaiah has joined the channel [14:47] Creap: How much RAM would I need on a VM to run Node.js? [14:47] jj0hns0n has joined the channel [14:47] Creap: I just allocated 1 GB, and I get "process out of memory"!? [14:47] Creap: with a default Express app.. [14:48] zilch has joined the channel [14:48] BillyBreen has joined the channel [14:48] TheJH: Creap, 1GB is the maximum possible memory size (not counting buffers) [14:48] murugaratham has joined the channel [14:48] TheJH: Creap, I think that you're doing something wrong if you have that much in-memory [14:48] colinclark has joined the channel [14:49] Creap: (almost) default express app, just realized I switched from Jade to EJS [14:49] Creap: removing EJS tags from templates lets me run them [14:49] sub_pop has joined the channel [14:51] Creap: must've been a syntax error or something [14:51] JJMalina has joined the channel [14:51] sureshh: When i install a module using npm, why do i see the folder in both ~/.nvm/version/lib/node_modules/ as well as in ./node_modules ? [14:51] tjbot has joined the channel [14:52] ironlad has joined the channel [14:52] zhujo01 has joined the channel [14:52] davidascher has joined the channel [14:54] xerox: .nvm ? [14:54] eddyb: http://www.youtube.com/watch?v=C5z0Ia5jDt4 [14:55] eyesUnclouded_ has joined the channel [14:56] johnhamelink has joined the channel [14:56] jtsnow has joined the channel [14:57] liquidproof has joined the channel [14:57] vipaca has joined the channel [14:58] ttpva has joined the channel [14:58] ttpva has joined the channel [14:59] jvdev has joined the channel [14:59] abraxas has joined the channel [14:59] pixel13 has joined the channel [15:00] smtlaissezfaire has joined the channel [15:00] sureshh: xerox: i use nvm to manage multiple node versions [15:00] dherman has joined the channel [15:01] xerox: no idea sorry [15:01] tuhoojabotti: Node Version Manager [15:01] pauls has joined the channel [15:02] eddyb: just nvm [15:04] rfay has joined the channel [15:04] smtlaissezfaire has joined the channel [15:05] pixel13 has left the channel [15:05] asabil has joined the channel [15:07] aheckmann has joined the channel [15:07] guillermo has joined the channel [15:08] openpercept has joined the channel [15:08] butu5 has joined the channel [15:10] theCole has joined the channel [15:11] rfay has joined the channel [15:14] nerdfiles has joined the channel [15:14] TheFuzzball has joined the channel [15:15] malkomalko has joined the channel [15:16] baudehlo has joined the channel [15:17] gazumps has joined the channel [15:17] joshthecoder has joined the channel [15:19] constexpr has joined the channel [15:20] tmpvar has joined the channel [15:20] zilch has joined the channel [15:20] hidinginabunker_ has joined the channel [15:21] booo has joined the channel [15:21] jerrysv: morning tmpvar [15:21] knife has joined the channel [15:24] RORgasm has joined the channel [15:24] odie5533: If I have a list of words stored in an array, is it faster to cycle through the array to find the existence of a word or faster to use a dictionary like dict['word'] ? [15:25] odie5533: How are properties like that stored and searched in JS? [15:25] chapel: well dict['word'] will be faster than a loop through the array or indexOf [15:26] unlink has joined the channel [15:26] unlink has joined the channel [15:26] odie5533: why will it be faster than looping through the array? [15:27] chapel: because dict['word'] is dict = { word: 'something' }; [15:27] chapel: and not dict = ['word']; [15:27] odie5533: yes [15:27] odie5533: yes, so why is the first faster? [15:27] chapel: because you are pointing directly to the resource [15:28] chapel: where as looping, takes a marginal amount of cpu time to iterate through the array [15:28] bnoordhuis: odie5533: O(log(N)) vs O(N) [15:28] bnoordhuis: odie5533: look up hash tables on wikipedia [15:29] chapel: but it really depends on what you are doing [15:29] bnoordhuis: odie5533: or O(1) in the best case but it depends on how javascript objects are implemented [15:29] chapel: if its not a huge array, it probably wont matter [15:29] odie5533: It's the same data. I'd just do dict['word'] = 1; [15:29] kdng-tr7 has joined the channel [15:29] baudehlo: I was gonna say, O(log(N)) would be a terrible worst case scenario :) [15:30] odie5533: Is the hash very small or something? [15:30] carmony has joined the channel [15:31] bnoordhuis: odie5533: you're not a CS major, right? [15:31] odie5533: bnoordhuis: nope [15:31] bradleymeck: its O(N) unless they are dynamically reallocating new structures since keysize is not limited in javascript [15:31] odie5533: yeah im sure they teach algorithms in cs 304 [15:31] chapel: http://jsperf.com/array-loop-vs-object-lookup/2 << that shows the performance difference [15:31] threecreepio has joined the channel [15:31] bnoordhuis: odie5533: okay, look up data structures on wikipedia [15:31] odie5533: I've never taken a CS class. [15:31] chapel: I haven't either [15:31] bnoordhuis: odie5533: specifically lists vs. (balanced) binary trees vs. hash tables [15:32] dherman has joined the channel [15:33] mhausenblas has joined the channel [15:33] bnoordhuis: i think objects are implemented as splay trees in v8 [15:33] bnoordhuis: but don't quote me on that [15:33] odie5533: chapel: That test is not helpful. The engine I think is optimizing the results too much [15:33] kmiyashiro: engine? [15:33] odie5533: I got like +-2% on FireFox for all of them [15:33] chapel: the engine? v8? [15:33] kmiyashiro: it's just your browser [15:34] hwinkel has joined the channel [15:34] kmiyashiro: you get diff results in diff browsers [15:34] kmiyashiro: if you are testing for node, you should use chrome [15:34] odie5533: Yes, the browserscope says Chrome sucks as optimizing :) [15:35] chapel: sucks? shows chrome doing awesome at direct, and the others are average :P [15:35] bradleymeck: when direct is slower than lookup firefox cannot talk [15:35] CIA-65: libuv: 03Bert Belder 07master * r831b15a 10/ src/win/pipe.c : Windows: fix WaitNamedPipe thread bug - http://bit.ly/qXHqnw [15:35] chapel: bradleymeck++ [15:35] v8bot_: chapel has given a beer to bradleymeck. bradleymeck now has 2 beers. [15:35] catb0t: bradleymeck now has 1 beer [15:35] halfhalo-work has joined the channel [15:35] chapel: v8: i++ [15:35] v8bot_: chapel: ReferenceError: i is not defined [15:35] chapel: yay [15:35] chapel: chapel-- [15:35] catb0t: chapel now has -1 beer [15:35] v8bot_: chapel: Don't cheat! You can't give a beer to yourself. [15:36] odie5533: well, for firefox the direct is slowest. For chrome, it is completely the opposite [15:36] chapel: direct should be fastest [15:36] TheJH: __defineGetter__++ [15:36] v8bot_: __defineGetter__ is getting too many beers. Don't let __defineGetter__ get drunk! [15:36] kmiyashiro: direct is simplest [15:36] chapel: yes [15:36] seivan has joined the channel [15:36] fostah has joined the channel [15:36] odie5533: And yet on FireFox it is the slowest. [15:36] chapel: ACTION doesn't know the internals, so I can only talk from experience [15:37] chapel: well talk to mozilla [15:37] kmiyashiro: that means Firefox is bad [15:37] kmiyashiro: which it kind of is... feels slow as hell these days [15:37] e6nian: tjholowaychuk: is that you ? I add a issue to Kue on github about the job state :) [15:37] tjholowaychuk: e6nian yup saw that [15:38] tjholowaychuk: I think I replied [15:38] bradleymeck: FF is fine, v8 uses hidden classes for direct access on properties, IE6 uses linked lists... could be stuck in that nightmare again [15:38] e6nian: tjholowaychuk: yep,Actually,I use ctrl+c to interrupt the jobs.process scripts. So the states always to be active. [15:38] R4md4c has joined the channel [15:38] e6nian: and, I wanna to run another script to attempts the failure job again,but don't know how to do. [15:39] R4md4c: Hello, Is there a syncrhonous version for node-mysql ? [15:39] TheJH: R4md4c, you don't want a synchronous version. seriously. [15:39] TheJH: __defineGetter__++ [15:39] v8bot_: __defineGetter__ is getting too many beers. Don't let __defineGetter__ get drunk! [15:39] R4md4c: If not how can I achieve a synchronous behaviour then [15:39] TheJH: R4md4c, why do you want that? [15:41] R4md4c: TheJH, Actually I am not used to asynchronicity and it confuses me. [15:41] e6nian: tjholowaychuk: any idea about that? should I dig into the redis? to set the jobs back the states Queued? [15:41] zilch has joined the channel [15:41] tjholowaychuk: e6nian I dont think there's much we can do in an automated way [15:41] tjholowaychuk: if they failed they failed [15:41] alvaro_o has joined the channel [15:41] idefine has joined the channel [15:42] tjholowaychuk: but yeah you can reset the state in the UI, redis, or request (not sure if I have that documented) [15:42] TheJH: R4md4c, it would be best to get used to it. If you're really desperate, you could let streamlinejs generate the code, but really, try to get used to callback-style [15:42] bjarman has joined the channel [15:42] springmeyer has joined the channel [15:43] alvaro_o has left the channel [15:43] R4md4c: TheJH, If there is an article or a tutorial that could help me to get used to it I would be thankful [15:43] e6nian: tjholowaychuk: Document not found for that. [15:43] hybsch has joined the channel [15:43] TheJH: R4md4c, I don't really know one, I think [15:44] nerdfiles1 has joined the channel [15:44] mike5w3c_ has joined the channel [15:44] mendel_ has joined the channel [15:44] odie5533: I have a a list of hashes and files and I need to store them so that I can search for a file and get a hash, or search for a hash and get a file. What should I do to accomplish this? [15:45] nerdfiles1 has left the channel [15:45] TheJH: odie5533, are the hashes the result of calling hash functions on the files? [15:45] odie5533: yes [15:46] odie5533: they are unique [15:46] materialdesigner has joined the channel [15:46] odie5533: well, thats not true [15:46] odie5533: could have two files with the same hash [15:46] odie5533: heh [15:46] TheJH: odie5533, what is "could"? as in "once in the lifetime of the universe"? [15:46] e6nian: tjholowaychuk: thanks for replying :) I'll refer to the source code,thought I'm not familiar with that. [15:47] odie5533: no I mean it should be able to handle that [15:47] tjholowaychuk: e6nian sounds good, we can discuss it some more in the issue, it is a problem but I dont know a good solution right now [15:47] tjholowaychuk: other than manually setting the state [15:47] tjholowaychuk: some type of kue repl would be nice too [15:48] odie5533: TheJH: when searching for a hash, it should return either file it doesn't matter. [15:48] CrypticSwarm has joined the channel [15:48] mikedeboer has joined the channel [15:49] JumpMast3r has joined the channel [15:50] bradleymeck: 2 bucket hashmaps, {"AFFE": ["file1", "file2"] } && {"file1": "AFFE", "file2": "AFFE"}, need to make cleanup scripts when you want to add / delete from em, but thats the way [15:50] kmiyashiro: tjholowaychuk: the scrollbar widths for the superagent docs are too small [15:50] TheJH: odie5533, for hash->file, use an object if it isn't much data. for the inverse, just recompute the hash [15:50] tjholowaychuk: kmiyashiro haha neva! [15:50] tjholowaychuk: no one uses scrollbars :p [15:50] kmiyashiro: I do :( [15:50] kmiyashiro: for jumping [15:50] tjholowaychuk: :( I'll change them when I have a chance [15:50] e6nian: tjholowaychuk: I think it's flexiable enough, but need some document :) express is easy to read. app.put('/job/:id/state/:state', provides('json'), json.updateState); [15:51] ekryski has joined the channel [15:51] odie5533: bradleymeck: yea thats what I was thinking [15:51] tjholowaychuk: e6nian ah yup that's the one [15:51] odie5533: TheJH: I dont want to recompute [15:52] dshaw_ has joined the channel [15:52] Yuffster_work has joined the channel [15:52] TheJH: odie5533, could you just rename the files and put the hashes in the names? [15:52] odie5533: hah, nope [15:52] tjbot has joined the channel [15:53] odie5533: i thought about that already [15:53] sniper506th has joined the channel [15:53] csanz has joined the channel [15:53] kulor-uk has joined the channel [15:54] clifton has joined the channel [15:54] e6nian: tjholowaychuk: ok, thanks for all of your nice libs. Keep going. [15:54] newy has joined the channel [15:55] e6nian: ACTION go to bed. it's 23:55 now . [15:55] kmiyashiro: if I npm link a package, can't I npm install it somewhere else? [15:55] kmiyashiro: or do I have to do npm link package [15:56] TheJH: kmiyashiro, npm link package [15:56] kmiyashiro: ic [15:57] dguttman has joined the channel [15:58] markdaws has joined the channel [15:59] jbrokc has joined the channel [16:00] jacobolus has joined the channel [16:00] hybsch has left the channel [16:00] broofa has joined the channel [16:01] iammerrick has joined the channel [16:02] stephank has joined the channel [16:02] mynyml has joined the channel [16:02] jimt has joined the channel [16:06] confoocious has joined the channel [16:07] wenbert has joined the channel [16:07] eignerchris has joined the channel [16:11] k1ttty has joined the channel [16:11] alvaro_o_ has joined the channel [16:12] neilk_ has joined the channel [16:13] nerdfiles1 has joined the channel [16:13] alvaro_o_ has left the channel [16:13] sub_pop has joined the channel [16:13] wenbert: im struggling: http://pastie.org/2345609 [16:13] dherman has joined the channel [16:14] TooTallNate has joined the channel [16:14] pjacobs2 has joined the channel [16:17] yumike has joined the channel [16:19] radiodario: does node.js child_process not throw a 'data' event on each line of stdout? [16:20] topaxi has joined the channel [16:20] seivan has joined the channel [16:20] kjeldahl_ has joined the channel [16:21] isaacs has joined the channel [16:21] fatjonny has joined the channel [16:21] radiodario: or does child_process just spew all the data at once? i.e. i have to split the newlines? [16:21] isaacs: racar: really? it's working for me [16:21] ryah: radiodario: you'll get approximately one per line [16:21] isaacs: racar: can you load it in a web browser? [16:22] isaacs: oh, that was last night [16:22] radiodario: ryah: by approximately you mean that i cannot predict if it'll be? [16:22] ryah: radiodario: correct [16:22] radiodario: i.e. i wanna do parsing per line [16:22] radiodario: ok [16:22] rpflo has joined the channel [16:24] Cybrix has joined the channel [16:25] lukstr: ryah: at least one line, though? [16:25] ryah: no [16:25] lukstr: so potentially anything [16:25] radiodario: ok so there is no equivalent of popen and getline? [16:26] eazyigz has joined the channel [16:26] ryah: the system does not guarantee any buffer size from the data events [16:26] eazyigz: I am trying to list all collections in a mongo database. I am using node-mongodb-native. [16:26] ryah: this is popen - just more advnaced [16:26] Metal3d has joined the channel [16:26] eazyigz: Has anybody done this? [16:26] ryah: popen3 if you will [16:28] nerdfiles1 has joined the channel [16:28] Cybrix2 has joined the channel [16:28] necrodearia has joined the channel [16:29] tristanseifert has joined the channel [16:30] tristanseifert has joined the channel [16:31] lukstr: ryah: ah of course, makes sense. I thought there was a way to get strings (ala sockets) as well [16:32] dgathright has joined the channel [16:32] micheil has joined the channel [16:32] Creap has left the channel [16:32] nerdfiles1 has left the channel [16:32] seivan has joined the channel [16:32] fatjonny: eazyigz: Try using the collectionNames function on the db object. [16:34] hij1nx has joined the channel [16:35] loveshine has joined the channel [16:35] markwubben has joined the channel [16:35] wenbert: Why does the first part work and the other one doesn't? [16:36] wenbert: http://pastie.org/2345702 [16:36] wenbert: ^ that [16:36] rickharrison has joined the channel [16:37] TheJH: wenbert, try putting something like `console.log(req.url);` in there and see for yourself [16:38] jtsnow has joined the channel [16:38] thalll has joined the channel [16:39] hydrozen has joined the channel [16:41] langworthy has joined the channel [16:41] fatjonny: eazyigz: Actually, looking at db.js shows that the collections function on the db object is probably more of what you were asking for. [16:42] Cromulent has joined the channel [16:44] ohtogo has left the channel [16:44] slaskis has joined the channel [16:45] soolwan has joined the channel [16:45] mikeal has joined the channel [16:45] tristanseifert has joined the channel [16:45] curtischambers has joined the channel [16:46] eee_c has joined the channel [16:46] tristanseifert has joined the channel [16:47] mundanity has joined the channel [16:47] cronopio has joined the channel [16:49] igl has joined the channel [16:49] JumpMast3r has joined the channel [16:49] CrypticSwarm has joined the channel [16:50] damiano has joined the channel [16:50] damiano: hello friends [16:51] mahalie has joined the channel [16:51] zilch has joined the channel [16:51] Cleer has joined the channel [16:52] Stythys has joined the channel [16:52] damiano: i have a strange problem with nvm [16:52] NeCkEr has joined the channel [16:52] damiano: i just installed nvm and node 0.4.10 with it [16:53] damiano: i have done..... nvm use v0.9.10 and then nvm alias default v0.4.10 [16:53] damiano: i restarted my pc [16:53] damiano: and if i digit node i see "command not found" �_� [16:53] damiano: i have to do nvm use 0.4.10 another tim [16:53] damiano: why?? [16:54] TheJH: damiano, nvm use v0.9.10? really? [16:54] robi42 has joined the channel [16:54] doppleganger has joined the channel [16:55] damiano: no no [16:55] damiano: wrote wrong [16:55] damiano: stable: v0.4.10 [16:55] damiano: i installed it [16:55] damiano: with nvm [16:55] damiano: all went good [16:55] damiano: but after the reboot i get [16:55] damiano: node: command not found [16:55] damiano: i have to do nvm use v0.4.10 another time [16:56] damiano: i'm not running node as root [16:56] towski has joined the channel [16:56] damiano: i also add the line to .bashrc [16:56] damiano: /home/damiano/.bashrc [16:56] TheJH: I don't really know much about nvm, sorry [16:58] damiano: TheJH i don't think it is a nvm problem because if i do [16:58] damiano: nvm use v0.4.10 [16:58] damiano: and then digit "node" [16:58] damiano: i can use it without problem [16:59] damiano: it seems don't find node after i restart the pc [16:59] AvianFlu has joined the channel [16:59] ncamacho has joined the channel [17:01] davidascher has joined the channel [17:02] pandeiro has joined the channel [17:02] mahalie has left the channel [17:02] materialdesigner: is nvm's path in your PATH? [17:03] damiano: uh ? [17:03] damiano: /home/damiano/.nvm [17:03] damiano: there [17:03] mc_greeny has joined the channel [17:03] dshaw_ has joined the channel [17:06] damiano: then it's strange because i remeber nvm also installs NPM [17:06] damiano: npm: command not found [17:06] damiano: hmmm [17:06] kavla has joined the channel [17:06] Swizec has joined the channel [17:08] progme has joined the channel [17:10] random123 has joined the channel [17:12] jmoyers has joined the channel [17:12] newy has joined the channel [17:12] madhums has joined the channel [17:13] vid__ has joined the channel [17:13] Cleer has joined the channel [17:14] damiano: nobody use nvm ? [17:16] eddyb: nvm [17:17] eddyb: nevermind [17:17] vid___ has joined the channel [17:18] jtrudeau has joined the channel [17:18] damiano: :D [17:19] damiano: eddyb, I follow the readme...but node doest start after i reboot.....AND npm is not installed [17:19] damiano: :( [17:19] fdenbow has joined the channel [17:19] eddyb: can't help you, sorry [17:19] eddyb: just fooling around :| [17:20] topaxi has joined the channel [17:20] whitman has joined the channel [17:21] confoocious has joined the channel [17:21] confoocious has joined the channel [17:22] creationix has joined the channel [17:25] monokrome has joined the channel [17:25] eyesUnclouded has joined the channel [17:29] creationix has left the channel [17:30] NetRoY has joined the channel [17:31] broofa_ has joined the channel [17:31] damiano: hmmmmmmmm [17:32] damiano: i just reinstalled nvm [17:32] damiano: it install v0.4.10 correctly [17:32] damiano: and also npm [17:32] damiano: but if i digit"npm" in another shell i get command not found :-( [17:32] CIA-65: libuv: 03Ryan Dahl 07master * r02ca308 10/ config-mingw.mk : EIO_CONFIG_H not used on MinGW - http://bit.ly/roYUmi [17:33] reid has joined the channel [17:33] CIA-65: node: 03Ryan Dahl 07master * r9e5cd01 10/ (configure configure-gyp): [17:33] CIA-65: node: Revert "Unify configure scripts" [17:33] CIA-65: node: This reverts commit 71435ede815ee2c73b09f7071ee1b6d10945d409. - http://bit.ly/o5Zj8n [17:34] yhahn has joined the channel [17:34] piscisaureus has joined the channel [17:36] ironlad has joined the channel [17:36] maqr has joined the channel [17:37] aoberoi has joined the channel [17:38] aoberoi: should i have node_modules in my gitignore? what's the convention here? [17:38] johnhamelink has joined the channel [17:39] tjholowaychuk: aoberoi typically yeah [17:40] tjholowaychuk: unless you dont mind having all of that in your repo [17:40] aoberoi: okay cool. i typically look at https://github.com/github/gitignore for settings for particular patterns [17:41] `3rdEden has joined the channel [17:41] aoberoi: would it be worth putting node_modules into the Node.gitignore there? [17:41] tjholowaychuk: i dunno i've never used that [17:41] tjholowaychuk: maybe [17:42] aoberoi: ill send them a pull req then, see what happens [17:42] TheJH: probably [17:42] Cleer: aoberoi: there already is one [17:42] Cleer: pretty old too [17:43] aoberoi: oh true, just saw that [17:43] aoberoi: thanks Cleer [17:43] Cleer: mhm [17:44] sweetd has joined the channel [17:44] chia has joined the channel [17:44] mekwall has joined the channel [17:46] Sazpaimon has joined the channel [17:46] vipaca: Any examples of tls clients that provide certs? [17:46] sirdancealot has joined the channel [17:46] zilch has joined the channel [17:47] steffan_ has joined the channel [17:48] saikat has joined the channel [17:48] vipaca: Is createSecurePair the only way to go about create a client connection that provide ssl creds [17:49] vipaca: ACTION scratches head [17:50] markwubben has joined the channel [17:51] bnoordhuis: vipaca: https://github.com/joyent/node/issues/1472 ? [17:51] TheJH: vipaca, look at http://nodejs.org/docs/latest/api/https.html#https.request , "The options argument has the following options" [17:51] bnoordhuis: vipaca: oh wait, *send* an ssl cert [17:52] langworthy has joined the channel [17:52] pagameba has left the channel [17:52] dshaw_: Best, non "go RTFM man page" place to send people for an intro to setting up a package.json? [17:53] vipaca: kinda [17:53] explodes has joined the channel [17:53] explodes: In express, what args does .listen take? [17:53] explodes: app.listen*( [17:53] vipaca: I'm look to do something more akin to openssl s_client -connect 127.0.0.1:9998 -key client-key.pem -cert client-cert.pem [17:54] vipaca: where client-cert has been signed by the same ca [17:54] chapel: dshaw_: probably npm's docs [17:54] explodes: I thought it took a callback... [17:54] chapel: dshaw_: https://github.com/isaacs/npm/blob/master/doc/json.md [17:55] digitalsabre has joined the channel [17:55] dshaw_: chapel: thanks [17:56] dshaw_: still think there could be a better, gentler intro. [17:56] digitalsabre: Wow… It took me three days to realize that #node.js only had me in it because I'd joined the room on the wrong irc server... [17:56] dshaw_: more hand holding and soft wispers [17:56] vipaca: This is probably a lack of understanding on my part but there is a option requestCert and rejectUnauthorized [17:56] joshthecoder has joined the channel [17:57] digitalsabre: Someone point me in the direction of a tutorial for creating a chat -client-? [17:57] vipaca: When these are set then there must be a key exchange on the part of the client to establish a connection [17:57] cl0udy has joined the channel [17:57] vipaca: that key must have been signed by the same ca running on the server [17:57] sjbo has joined the channel [17:58] bnoordhuis: vipaca: i'm 75% sure there's support for it but it hasn't been documented yet [17:58] wadey has joined the channel [17:58] DrChirs has joined the channel [17:58] Wa has joined the channel [17:58] sjbo: hi, how can I decode html entities with node ? lilke &fgds; [17:58] vipaca: Yeah so I'm tring to create a client connection [17:58] te-brian has joined the channel [17:59] Dreamer3 has joined the channel [17:59] vipaca: I think that createSecurePair maybe the only approach [17:59] TheJH: digitalsabre, for what kind of chat server? [17:59] fatjonny: explodes: it is in the docs. app.listen( [port[, host]] ) [17:59] vipaca: since there isn't a tls.Client which wraps a stream [17:59] digitalsabre: TheJH: TCP. [18:00] TheJH: digitalsabre, eh... and what protocol on top of that? IRC? [18:00] mcluskydodallas has joined the channel [18:00] jshaw_ has joined the channel [18:00] vipaca: All I've found is this https://gist.github.com/848444 [18:01] sweetd_ has joined the channel [18:01] TheJH: digitalsabre, or do you just want to rewrite netcat or so? [18:01] digitalsabre: Um… none. I'm trying to create a simple chat client that will interact with the very basic TCP chat server that Ryan Dahl makes in his demonstration to the PHP user group in the video on the node.js site. [18:01] zilch has joined the channel [18:02] digitalsabre: If I understand how to do that, I can work my way up. [18:02] vipaca: This is however over my head [18:02] digitalsabre: Actually, yes, netcat would probably be fine. [18:02] cjm has joined the channel [18:03] zeade has joined the channel [18:03] bradleymeck has joined the channel [18:03] TheJH: digitalsabre, ah, ok. basically, I think that you'll need http://nodejs.org/docs/latest/api/net.html#net.createConnection, process.stdin and process.stdout ( http://nodejs.org/docs/latest/api/process.html#process.stdout ) [18:03] xicubed has joined the channel [18:03] digitalsabre: For in-browser? [18:04] TheJH: ah, no [18:04] CIA-65: libuv: 03Ben Noordhuis 07master * r3f8bbb8 10/ test/benchmark-pound.c : [18:04] CIA-65: libuv: bench: create separate arrays for TCP and pipe streams [18:04] CIA-65: libuv: Size and alignment of tcp_conn_rec and pipe_conn_rec may differ [18:04] CIA-65: libuv: so it's not safe to reuse a single array of conn_rec elements. - http://bit.ly/qz846k [18:04] fly-away has joined the channel [18:04] TheJH: digitalsabre, you want to create an application in the browser that can, over a nodejs server, talk to another server? [18:05] Tobsn has joined the channel [18:05] TheJH: digitalsabre, and you want to create that application and the first one of the two servers? [18:05] digitalsabre: No… I want to create a client for my browser that can interact with other users using the same client by talking to the same node.js server. [18:06] digitalsabre: I'm just trying to get a feel for how to get data INTO my browser. [18:06] TheJH: digitalsabre, ah, ok. If you want to do it the easy way, just use dnode or so [18:06] te-brian has joined the channel [18:06] bradleymeck: longpolling, websockets, etc. [18:07] digitalsabre: I understand node.js quite well, I think. The whole problem I'm having is understanding how to get a browser to interact with it. [18:07] TheJH: digitalsabre, there's socket.io which allows you to send messages between the browser and node back and forth, and dnode is an RPC library running on top of that [18:07] patcito has joined the channel [18:08] TheJH: digitalsabre, https://github.com/substack/dnode [18:09] kdng-saleem3 has joined the channel [18:10] damiano: guys, nobody use nvm? i just installed it and 0.4.10 all works good...but if i change shell i dont see npm and node :( [18:10] damiano: npm command not found [18:10] damiano: node command not found [18:10] zilch has joined the channel [18:10] damiano: (i added the link on bashrc) [18:11] maushu has joined the channel [18:11] dshaw_: damiano: try n [18:11] damiano: uh? [18:11] dshaw_: damiano: https://github.com/visionmedia/n [18:11] dshaw_: damiano: TJ's Node version manager [18:11] digitalsabre: Maybe I'm the backwards one. It seems like all the tutorials out there are for people familiar with Javascript in-browser who just want to know how node works. [18:12] cl0udy_ has joined the channel [18:12] chrisdickinson: there's also nave [18:12] chrisdickinson: dshaw_: is there any particular advantage to n over nave? just out of curiosity. [18:12] dshaw_: damiano: yep, nave too [18:12] dshaw_: damiano: n works [18:12] tjholowaychuk: chrisdickinson there are all just different flavours of the same thing really [18:12] madsleejensen has joined the channel [18:12] damiano: hmmm look interesting this "n" [18:13] dshaw_: damiano: and I never have to fuss with it [18:13] dshaw_: I've used all three [18:13] chrisdickinson: tjholowaychuk: cool. i've been using nave, just wondering if it'd be worth it to switch to n. [18:13] dshaw_: They all do roughly the same thing [18:13] damiano: dshaw_, i have seen i can install new version of node...choose with version to use... [18:13] damiano: but [18:13] damiano: i need to install npm first [18:13] damiano: hmmm [18:14] damiano: npm install -g n [18:14] isaacs has joined the channel [18:14] tjholowaychuk: you can make install too [18:14] damiano: because if i need to install npm first it means that i have to install node before npm... [18:14] damiano: ok [18:14] jbpros has joined the channel [18:14] damiano: make isntall [18:15] isaacs: it'd be nice to have a single node+npm bundled executable [18:15] damiano: tjholowaychuk, does it install node right? [18:15] isaacs: both are too unstable still, though [18:15] nail_: or use nave to install node to install npm to install n \o/ [18:15] damiano: the version i choose [18:15] tjholowaychuk: damiano yeah [18:15] damiano: ok [18:16] jhurliman has joined the channel [18:17] isaacs: curl https://raw.github.com/isaacs/nave/master/nave.sh > /usr/local/bin/nave ; chmod 0755 /usr/local/bin/nave; nave usemain stable [18:17] afters has joined the channel [18:17] raidfive has joined the channel [18:17] isaacs: if it whines about permissions, then do `sudo PATH=$PATH bash` first, and `exit` after [18:17] yept has joined the channel [18:18] csm_ has joined the channel [18:18] hidinginabunker has joined the channel [18:18] keeto has joined the channel [18:19] damiano: tjholowaychuk, do i have to download n under /usr/local/bin ? [18:19] dshaw_: isaacs: yeah, I'm used to that workflow, but for new users it's a bit of a confusing chicken/egg [18:19] isaacs: dshaw_: yeah, that's why a bundled node+goodies would be handy [18:19] afters: hi, guys. I'd like to install npm packages for a user with low priviliges. [18:19] tjholowaychuk: damiano you can set the prefix [18:19] tjholowaychuk: cat the makefile you'll see, it's pretty typical stuff [18:19] afters: I'm not sure what's the correct way to go about it [18:19] isaacs: n{ave,vm,} are not really node installers, though, as much as they're node version managers. [18:19] mikedeboer has joined the channel [18:19] thalll has joined the channel [18:20] damiano: ok [18:20] dshaw_: and you have to have node to install them [18:20] dshaw_: :) [18:20] isaacs: you don't need node to install any of those [18:20] isaacs: they're all bash scripts [18:20] dshaw_: ORLY [18:20] isaacs: yeah [18:20] isaacs: this is 100% of nave's code: https://raw.github.com/isaacs/nave/master/nave.sh [18:20] isaacs: you CAN install nave with npm, but i actually don't. i just have the shell script symlinked to ~/bin/nave [18:21] damiano: isaacs, if i install nave i have to install node also? [18:21] isaacs: damiano: nave is a bash script. [18:21] isaacs: damiano: so, no [18:21] isaacs: same for n [18:21] isaacs: you need node for npm, but not for nave or n or nvm [18:21] kdente has joined the channel [18:21] damiano: they install node automatically, right? [18:21] jhurliman: isaacs / ryah, should process.watchers() objects hold stack traces as newline-delimited strings or arrays of CallSite objects? [18:21] damiano: k [18:22] eddyb: http://ajanlo.kapu.hu/jatekok/post.php?id=1699gd5cd7762d11bbffb [18:22] damiano: tjholowaychuk, i'm a fan of express...so i also will use n :) [18:23] tjholowaychuk: damiano if it doesnt work well for you try the others out too, nave/n dont need config to get started [18:23] ismell: express should implement a big pipe pipeline :) [18:23] _asus_ has joined the channel [18:23] jhurliman: and if strings, is there a standardized format for node stack traces? [18:23] _asus_: hi, any clue on performing a slaveOk on node-mongodb ? [18:23] tjholowaychuk: ismell out of scope, but you could do it as an extension [18:24] Destos has joined the channel [18:24] ismell: I would need to look into how the extensions work [18:24] damiano: tjholowaychuk, i think it's strange if n doenst work because as you told they don't need to be configured [18:24] ismell: be kinda cool though [18:25] cafesofie has joined the channel [18:25] afters: isaacs: could you answer a stupid question regarding npm? [18:25] isaacs: afters: sure [18:25] JJMalina has joined the channel [18:26] dshaw_: damiano: I think what TJ means is that you don't have to mess with your .bashrc [18:26] stisti has joined the channel [18:26] afters: isaacs: thanks. I managed to work with node quite a lot without using it, so I could be missing something trivial [18:26] damiano: dshaw_, yes [18:27] afters: isaacs: I got npm installed. Now I want to have several modules installed so a user ('www') could access them [18:27] afters: how do I do it? [18:27] isaacs: afters: npm install modules into the project that uses them. [18:27] damiano: but guys n also installs npm automatically? [18:27] WarriorSl has joined the channel [18:27] tjholowaychuk: damiano not right now it doesnt no, not that it's hard to do that though [18:27] afters: isaacs: what do you mean by 'into'? [18:28] dshaw_: damiano: npm is the easiest bit to install [18:28] afters: when I install modules they usually reside in ~/.node_modules [18:28] damiano: yes sure... [18:28] isaacs: afters: npm help folders [18:28] isaacs: run that^ [18:28] damiano: but if i install more version of node (with n) [18:28] damiano: do i have to reinstall npm for each version? [18:28] tjholowaychuk: no [18:29] isaacs: afters: cd thing/that/uses/express; npm install express [18:29] dshaw_: that's nvm's behavior [18:29] damiano: tjholowaychuk, ok perfect [18:29] damiano: thank you! [18:29] afters: isaacs: thanks, will try it right now [18:29] dshaw_: which I agree is a bit of a PITA [18:29] damiano: isaacs, out of curiosity nave install npm automatically? [18:29] isaacs: afters: npm faq <-- also helpful [18:30] springmeyer_ has joined the channel [18:30] isaacs: damiano: no [18:30] damiano: ok [18:30] isaacs: damiano: if you run the npm install script in a nave subshell, it'll install just in that subshell [18:30] isaacs: damiano: i use that feature a lot to test different versions of npm against specific versions of node [18:30] damiano: ok [18:30] isaacs: damiano: but, it also inherits the PATH from the parent shell, so if you have npm installed in the main root, it'll be visible from there [18:30] isaacs: damiano: from inside the subshell, that is [18:31] damiano: ok perfect [18:31] damiano: i will try both [18:31] isaacs: damiano: but --global/-g installs go into the PATH in the subshell [18:31] damiano: thank you guys [18:31] isaacs: np [18:31] admc has joined the channel [18:31] Murvin has joined the channel [18:32] jtsnow has joined the channel [18:32] reid has joined the channel [18:32] ronnieboy has joined the channel [18:33] russell_h has joined the channel [18:33] Tobsn has joined the channel [18:34] wyze has joined the channel [18:34] m0s has joined the channel [18:35] liquidproof has joined the channel [18:35] yozgrahame has joined the channel [18:36] _root_ has joined the channel [18:40] agnat has joined the channel [18:40] zackattack has joined the channel [18:40] tauren has joined the channel [18:41] mecablaze has joined the channel [18:43] _root_ has joined the channel [18:43] ronnieboy has joined the channel [18:44] fxb has joined the channel [18:44] saikat has joined the channel [18:45] hl7Guy has joined the channel [18:45] fxb has left the channel [18:45] bischof has joined the channel [18:46] te-brian has joined the channel [18:46] willwhite has joined the channel [18:46] jbrokc has joined the channel [18:46] techwraith has joined the channel [18:46] techwraith has joined the channel [18:46] perezd has joined the channel [18:46] soolwan has left the channel [18:46] slifty_corsair has joined the channel [18:49] systemfault has joined the channel [18:50] sub_pop has joined the channel [18:52] dherman has joined the channel [18:52] aheckmann has joined the channel [18:53] mecablaze: I'm a tad confused. I can build the source the tar.gz off the website (0.4.10) but not the source pulled from git. What's the difference btween the two? [18:54] TheJH: mecablaze, did you `git checkout v0.4.10` or so? [18:54] xerox: git progresses towards the next stable release [18:55] yhahn has joined the channel [18:55] rpflo has joined the channel [18:56] zilch has joined the channel [18:56] mecablaze: Heh, I think I found my mistake. I did clone instead of checkout [18:57] TheJH: mecablaze, first clone, then cd, then checkout, then build it [18:57] TheJH: mecablaze, "clone" downloads, "checkout" selects the version (roughly explained) [18:58] mecablaze: I see. thanks for the explaination [19:00] madhums has joined the channel [19:00] mecablaze: TheJH, yup that did it. thanks for your help [19:03] jarek has joined the channel [19:03] jarek has joined the channel [19:04] robertka has joined the channel [19:04] robertka: hello! [19:06] robertka: i'm using express.js and have a route app.all. how can i pass a param to the next() app.get route? [19:06] damiano: guys i'm a problem with n [19:07] slifty_corsair has joined the channel [19:07] damiano: i cloned https://github.com/visionmedia/n [19:07] damiano: then cd to /n [19:07] tjholowaychuk: robertka: jump in #express [19:07] damiano: tjholowaychuk, [19:07] damiano: i cloned n [19:07] tjholowaychuk: damiano just do $ make install [19:07] damiano: doenst works [19:07] dnjaramba has joined the channel [19:07] robertka: okay, didn't know there is an extra chan. thanks [19:07] damiano: make: *** Nessuna regola per generare l'obiettivo "install". Arresto. [19:07] tjholowaychuk: do you have make? [19:07] damiano: no [19:08] damiano: ahahah [19:08] tjholowaychuk: oh :s [19:08] damiano: i see [19:08] damiano: one moment [19:08] tjholowaychuk: well just $ cat Makfile [19:08] tjholowaychuk: and exec that command [19:08] damiano: yes i have make [19:09] dnjaramba has joined the channel [19:09] damiano: cat Makfile [19:09] damiano: cp $< $(PREFIX)/$< [19:09] damiano: right? [19:09] bksf has joined the channel [19:09] bksf: joi [19:10] damiano: hmm no [19:10] tjholowaychuk: just copy n somewhere [19:10] tjholowaychuk: lol [19:10] tjholowaychuk: somewhere in PATH [19:11] damiano: ok i have it [19:11] damiano: n [19:11] damiano: result [19:11] damiano: returns [19:11] damiano: * [19:11] dnjaramba has joined the channel [19:11] Murvin has joined the channel [19:11] damiano: tjholowaychuk, can i see the latest without installing it ? [19:12] damiano: like nvm sync [19:12] damiano: to see what is the last stable [19:12] tjholowaychuk: n list [19:12] tjholowaychuk: shows the list and which ones you have [19:12] damiano: what do you mean with "latest" ? 0.5 or the last stable ? [19:12] tjholowaychuk: it's all in the docs [19:12] damiano: yes i done [19:12] damiano: n ls [19:12] tjholowaychuk: the latest of whatever shows in that list [19:12] damiano: the same thing [19:12] damiano: k [19:13] damiano: wow it prints 0.5.3 [19:13] damiano: is it possible to know the last "stable" version ? [19:13] tjholowaychuk: sure, i could change it [19:13] damiano: maybe adding [19:13] damiano: n stable [19:14] damiano: and n latest if someone would like to use the last (unstable) version [19:14] paulwe has joined the channel [19:14] dnjaramba has joined the channel [19:15] damiano: are you going to change it? [19:15] tjholowaychuk: not right now [19:15] tjholowaychuk: i have other things to work on [19:15] Sidnicious has joined the channel [19:15] tjholowaychuk: but i added the issues [19:16] damiano: ok [19:16] iammerrick has joined the channel [19:16] damiano: so now i can do n 0.4.10 to instlal the last stable [19:17] dnjaramba has joined the channel [19:19] dnjaramba has joined the channel [19:21] robertfw has joined the channel [19:22] thalll has joined the channel [19:22] dnjaramba has joined the channel [19:23] mikeal has joined the channel [19:23] CIA-65: libuv: 03Ryan Dahl 07master * re5f513c 10/ doc/desired-api.md : Remove desired-api.md - http://bit.ly/p4Llcq [19:24] zilch has joined the channel [19:24] CIA-65: libuv: 03Ryan Dahl 07master * r0266c0e 10/ src/eio/eio.c : Change for MinGW on Win 2k3 - http://bit.ly/pFrhNo [19:24] dnjaramba has joined the channel [19:25] euforic has joined the channel [19:25] explodes has joined the channel [19:25] jbpros: Where can I find some documentation about require.extensions? [19:25] CIA-65: node: 03Ryan Dahl 07master * rcbecd88 10/ (3 files): Readd the static libpthread-win32 libraries - http://bit.ly/niZW9F [19:25] damiano: guys [19:25] mraleph has joined the channel [19:26] damiano: isaacs [19:26] damiano: why permission denied doing: sudo curl http://npmjs.org/install.sh | sh ?? [19:26] mraleph has joined the channel [19:26] TheJH: !@damiano mem npm-install [19:26] jhbot: damiano, you can install npm by doing "curl http://npmjs.org/install.sh | sudo sh". If you don't feel comfortable piping data from http in a sudo'ed shell (which really isn't a good idea), you can also download it, look at it and then pipe it in the shell. [19:26] dguttman has joined the channel [19:26] TheJH: damiano, look at where the "su" is again :D [19:27] damiano: yes [19:27] damiano: sudo sh [19:27] damiano: works [19:27] damiano: :D [19:27] CIA-65: node: 03Ryan Dahl 07master * rbf6b529 10/ (5 files in 5 dirs): Upgrade libuv to e5f513c - http://bit.ly/p4DdhO [19:27] aconbere has joined the channel [19:27] damiano: npm update (update itself) ? [19:27] catb0t has joined the channel [19:28] dnjaramba has joined the channel [19:28] dguttman_ has joined the channel [19:28] TheJH: damiano, you want to update npm? from which version? [19:29] damiano: no no...only for the future [19:29] jakehow has joined the channel [19:29] damiano: now i have 1.0.23 [19:29] TheJH: damiano, normally, "npm update -g npm" (dunno if you need the -g) should work [19:29] ryan0x2 has joined the channel [19:29] damiano: k [19:30] dnjaramba has joined the channel [19:30] hybsch has joined the channel [19:31] hybsch has left the channel [19:31] Charuru has joined the channel [19:32] tilgovi has joined the channel [19:32] tilgovi has joined the channel [19:32] bbrandon has joined the channel [19:33] dnjaramba has joined the channel [19:33] damiano: do you install the module globally [19:33] fmeyer has joined the channel [19:33] damiano: or for each project? [19:34] context: yes you want the -g [19:34] context: otherwise it will say npm not found [19:34] __tosh has joined the channel [19:34] AvianFlu: damiano: my advice would be to do a -g install on anything that you're going to want as a CLI command [19:35] AvianFlu: so npm is definitely -g, as would be forever, coffee-script, and other things you'd call by name from a shell [19:35] damiano: ok [19:35] damiano: perfect [19:35] digitaltoad has joined the channel [19:36] damiano: but if i add a packages.json [19:36] damiano: with a specific version of a module [19:36] damiano: don't i have to do npm install inside the directory of the project? [19:36] context: then do npm install [19:36] context: damiano: you have to do npm install or npm link [19:36] damiano: but it will install locally no? [19:36] context: to link libraries globally installed [19:37] context: if the project wants to use it it HAS to be in ./node_modules. whether installed or a link [19:37] context: it HAS to be there [19:38] catb0t has joined the channel [19:38] damiano: k [19:38] clifton has joined the channel [19:38] random123 has joined the channel [19:39] dnjaramba_ has joined the channel [19:40] TheEmpath has joined the channel [19:40] jerrysv has joined the channel [19:40] catb0t has joined the channel [19:40] ryan0x2: k= [19:41] matomesc has joined the channel [19:41] Lagnus has joined the channel [19:41] TheEmpath: looking to upload CSVs into node.js for some parsing... any libraries that easily handle HTTP POST file uploads? [19:42] TheEmpath: or at least a way to pass up the contents of a file through socket.io even? [19:43] brainproxy: TheEmpath: maybe look into formidable [19:43] brainproxy: a simple example of its usage is here http://www.nodebeginner.org/#head29 [19:45] bogo has joined the channel [19:45] Metal3d: any test with llvm compilation of node ? or I can make one and give results on ML ? [19:48] TomY has joined the channel [19:48] gazumps has joined the channel [19:49] Murvin has joined the channel [19:49] bnoordhuis: Metal3d: i compile with clang from time to time [19:49] bnoordhuis: it's fast! [19:49] bnoordhuis: code is smaller too [19:50] shadow_s has joined the channel [19:50] dshaw_: tjholowaychuk: +1 for n stable [19:50] dshaw_: I like that [19:50] shadow_s: does anybody know a good service for website backups? [19:51] Metal3d: bnoordhuis, and runtime is faster ? [19:51] pquerna: shadow_s: tarsnap [19:51] pt_tr has joined the channel [19:51] bnoordhuis: Metal3d: haven't done thorough benchmarks so far [19:51] Metal3d: shadow_s, I use some bash scripts to do [19:51] Metal3d: bnoordhuis, I will make some [19:51] bnoordhuis: Metal3d: sweet [19:51] Metal3d: very interessing is llvm [19:51] Metal3d: :) [19:51] bnoordhuis: yeah [19:51] Metal3d: ACTION speaks as yoda [19:52] bnoordhuis: one thing that also has an impact is turning on -fno-rtti -fno-exceptions [19:52] Metal3d: to change CC, you only change it into makefile ? [19:52] Metal3d: (ok) [19:52] bnoordhuis: Metal3d: CC=clang CXX=clang++ ./configure [19:52] zilch has joined the channel [19:52] Metal3d: alright [19:52] Metal3d: simple :) [19:52] shadow_s: do you know any all-in-one that does files+mysql databases? [19:52] jetienne_ has joined the channel [19:53] Metal3d: shadow_s, I repeat :) bash script :p [19:53] Metal3d: shadow_s, it's very simple and quick to do [19:53] shadow_s: but then that would mean i would have to keep a backup server [19:53] shadow_s: i guess it would work though [19:53] meandi has joined the channel [19:59] metamind has joined the channel [19:59] tim_smart has joined the channel [20:00] slifty_corsair has joined the channel [20:00] mikeal has joined the channel [20:00] akiva has joined the channel [20:00] metamind: hi. does anybody know of an example of using winston as the logger in express? (or is there a better way) [20:03] hl7Guy has joined the channel [20:03] xerox: metamind: interesting question [20:04] tjholowaychuk: metamind for what? [20:04] micheil has joined the channel [20:04] tjholowaychuk: request logging? [20:06] robertfw has joined the channel [20:07] dherman has joined the channel [20:07] dreamdust has joined the channel [20:07] vipaca: tls seems to handle the on connect and end event [20:07] metamind: hi tjh. [20:07] vipaca: bleh [20:07] metamind: this is what i'm trying. but no luck [20:07] metamind: https://gist.github.com/1135053 [20:08] vipaca: without proxying those event on to end user [20:08] Raynos1 has joined the channel [20:09] Raynos1: Is there a library that runs the node VM in a new process? [20:09] tjholowaychuk: metamind that's because that thing you are passing is not middleware lol [20:09] tjholowaychuk: and they are completely different apis :p [20:09] tjholowaychuk: also just .. redirect stdout [20:09] blup has joined the channel [20:09] tjholowaychuk: to a logfile [20:09] tjholowaychuk: in production or whatever [20:10] vipaca: So effectively there is no way for me to know when a ssl connection is closed [20:10] metamind: I was going to have stdout show a short log (so I can watch it go past) while logging more detailed info to a file. [20:12] vipaca: I'm starting to hat tls [20:12] TheJH: @Raynos1 npm search webworker [20:12] vipaca: just wait for the e [20:12] TheJH: !@Raynos1 npm search webworker [20:12] jhbot: Raynos1, package webworker: An implementation of the HTML5 Web Worker API [20:13] vipaca: tls feels very un-node like [20:13] chjj: vipaca: always a good reason to hate something imo [20:13] tjholowaychuk: metamind tee? [20:13] Raynos1: Thanks! [20:13] slifty_corsair has joined the channel [20:14] my8bird has joined the channel [20:14] xerox: a stupid solution could be [20:14] bnoordhuis: vipaca: yes, there's room for improvement in the tls module [20:14] metamind: I may try http://senchalabs.github.com/connect/middleware-logger.html [20:14] kavla1 has joined the channel [20:14] xerox: the more verbose logging with console.error, the less verbose one with console.log, and then run node app.'s 2>./log [20:15] metamind: sounds like that is all set to go with the middleware. [20:15] tjholowaychuk: metamind usually you just hae file logging or whatever in prod, and stdout in de [20:15] tjholowaychuk: v [20:15] m0s has joined the channel [20:16] tjholowaychuk: metamind: or if you do want both for some reason [20:16] xerox: I think the idea of express+winston is nice, but I haven't looked at how one is supposed to it without extra dependencies [20:16] tjholowaychuk: $ node app | tee my.log [20:16] tjholowaychuk: i dont see the point [20:16] metamind: I'm kind of half and half. I'm in production but I want to see a reduced version going past for the moment in an ssh window. [20:16] tjholowaychuk: reduced? [20:16] metamind: just to give me a warm feeling... [20:17] hl7Guy has joined the channel [20:17] metamind: what files and when. [20:17] tjholowaychuk: or just tail the log [20:17] MarkMenard has joined the channel [20:17] tjholowaychuk: you dont need node for any of that [20:17] xerox: that's very true too [20:18] hydrozen has joined the channel [20:19] gmonnerat has joined the channel [20:21] tristanseifert has joined the channel [20:21] dipser has joined the channel [20:21] ruprict: Are you serious? [20:21] ruprict: Where is it? [20:22] tristanseifert has joined the channel [20:22] TheJH: ruprict, what are you taling about? [20:23] damiano: guys is there only ab to test the time of http requests [20:23] damiano: ? [20:23] ruprict: OOPS: Wrong winder [20:23] ruprict: :S [20:24] dsirijus has joined the channel [20:24] TheJH: damiano, why are you asking? [20:24] chjj: how come no one on SO can figure out how to indent something properly? [20:25] TheJH: chjj, link? [20:25] damiano: because i don't find ab with apt-get :-D [20:25] chjj: what do you mean link? go look on SO [20:25] chjj: click any question [20:25] chjj: lol [20:25] TheJH: ah [20:26] dguttman_ has joined the channel [20:26] ph^ has joined the channel [20:27] bradleymeck: chjj because SO munges with your text and sometimes removes newlines / tabs / etc. [20:27] TheJH: damiano, http://packages.debian.org/search?searchon=contents&keywords=ab&mode=exactfilename&suite=stable&arch=any says that you want apache2-utils [20:27] bradleymeck: white-space: pre is the way to be! [20:27] eirikb has joined the channel [20:28] alex____ has joined the channel [20:29] zilch has joined the channel [20:31] damiano: oook [20:31] damiano: thank you [20:32] csanz has joined the channel [20:32] djko has joined the channel [20:32] damiano: guys i have to install mysql to use it with node....i can't (obvoiusly) instal phpmyadmin do you know a tool to manage mysql db? [20:33] TheJH: damiano, mysql workbench [20:34] Raynos_ has joined the channel [20:34] damiano: the problem that i have to open mysql to accept remove connections [20:35] damiano: maybe can i set up a secure connection [20:35] jbrokc has joined the channel [20:38] damiano: TheJH i don't remember are you using gedit? [20:38] cfq has joined the channel [20:38] damiano: this morning i was chatting with someone i don't remember [20:38] metamind: thanks tjh. sounds like there is no simple way. I have decided to log to a file and put a console.log in my routes of interest. [20:39] mikey_p: damiano: there are tons of mac/linux/win programs to do the same thing as phpmyadmin [20:39] gr-eg has joined the channel [20:40] damiano: mikey_p, i found mysq administrator [20:40] damiano: i just installing it..i see how it works [20:40] damiano: my problem is not the software [20:40] damiano: i know there are a lot o software [20:40] TheJH: damiano, I'm using gedit, yes [20:40] damiano: the problem should be accept remote connection [20:41] damiano: (TheJH: Is it possible to save a "session" in gedit without reopening the file?) [20:41] TheJH: damiano, I don't really understand that question. You want to save all opened files? [20:41] blueadept has joined the channel [20:41] blueadept has joined the channel [20:42] TheJH: damiano, you can do port forwarding with ssh and then connect to mysql so that it looks as if you're coming from localhost [20:42] damiano: TheJH, if i'm working on 10 files...and close gedit....when i need to work again on them i have to reopen all... [20:42] fostah has joined the channel [20:43] damiano: TheJH can i save the session (workspace) and open all the file i previous open? [20:43] admc has joined the channel [20:43] TheJH: damiano, I don't know such a feature [20:43] damiano: ok [20:43] damiano: TheJH the last thing you told seems like very good [20:43] damiano: but [20:43] damiano: how can i do that? [20:43] damiano: i found mysql advministrator (on ubuntu) [20:43] Raynos1 has joined the channel [20:43] damiano: i can set port... ip, user and pass [20:43] fatjonny has joined the channel [20:44] Raynos1: "Checking for node-path : not found" [20:44] TheJH: damiano, "man ssh" [20:44] Raynos1: What are the general steps for debugging such an issue? [20:45] willwhite has joined the channel [20:45] damiano: hmmm [20:45] yhahn has joined the channel [20:45] slifty_corsair has joined the channel [20:45] damiano: i know how ssh works... i don't understand how can i set mysql administrator to connect to ssh protocol [20:45] tjbot: damiano feel free to ask jade/connect/ejs etc questions in #express [20:45] TomY has joined the channel [20:46] TheJH: damiano, tell it to connect to localhost on the port you specified in ssh [20:47] damiano: no localhost...remote ip [20:47] damiano: i have to manage a mysql database in a VPS [20:47] TheJH: damiano, you don't understand ssh port forwarding. please read about it. [20:48] damiano: TheJH, me ---> remote server (PORT 100) ---> mysql (Mysql port) [20:48] damiano: is not very difficult understand how tunneling works [20:49] TheJH: damiano, no. mysqlclient --> localhost:x --> ssh --> server:y [20:49] TheJH: damiano, it's not a VPN [20:49] damiano: VPS [20:49] TheJH: damiano, it's port forwarding [20:49] damiano: No VPN [20:49] damiano: virtual private server [20:49] TheJH: GAH! [20:50] damiano: mysql is there.... [20:50] TheJH: damiano, RTFM. [20:50] damiano: �_� [20:51] ph^ has joined the channel [20:52] TheJH: damiano, sent you an extract from the ssh manpage in query. [20:53] tristanseifert has joined the channel [20:53] damiano: yes....i read... [20:53] damiano: in this case i have to set a local ssh and do something to the ssh on the server [20:53] damiano: that forward to mysql [20:54] smtlaissezfaire has joined the channel [20:54] tristanseifert has joined the channel [20:55] TheJH: damiano, just call ssh like `ssh -L 4321:127.0.0.1: server` [20:55] versicolor has joined the channel [20:55] TheJH: damiano, and then let the mysql client connect to localhost:4321 [20:55] CIA-65: node: 03Ryan Dahl 07master * racc120a 10/ (src/node.cc test/simple/test-umask.js): windows: fix test-umask - http://bit.ly/r479Ll [20:55] tristanseifert has joined the channel [20:57] CIA-65: node: 03Ben Noordhuis 07master * rfd1fc50 10/ deps/uv/src/eio/config_cygwin.h : [20:57] CIA-65: node: eio: define HAVE_UTIMES 1 on cygwin, fixes build [20:57] CIA-65: node: Fixes #1483. - http://bit.ly/nJrldT [20:58] matomesc has joined the channel [20:58] CIA-65: libuv: 03Ben Noordhuis 07master * r0c815cf 10/ src/eio/config_cygwin.h : eio: define HAVE_UTIMES 1 on cygwin, fixes build - http://bit.ly/otbC6D [20:59] explodes has joined the channel [20:59] geetarista has joined the channel [20:59] zmbmartin has joined the channel [20:59] zmbmartin has joined the channel [21:00] rhaen: hello world. [21:00] rhaen: mscdex: Just played with your imap module - awesome stuff. [21:00] damiano: THeJH i also fine a guide...but, if i set mysql client to local host then it forward to mysql (on remote server) [21:00] damiano: in thins case the connection i sencrypted? [21:01] damiano: because is not LOCALHOST (SSH) ---> REMOTE(SSH) ---> MYSQL db [21:01] TheJH: damiano, ssh tunnels the data through your encrypted ssh tunnel [21:01] damiano: so is not important to "connect" to ssh on the server [21:02] TheJH: damiano, err, what? [21:02] Clex: Do someone know how to do this http://fpaste.org/tcTL/raw/ using Buffer instead of String? [21:02] TheJH: damiano, you still have to connect via ssh to have the port forwarding activated [21:03] damiano: yes, in this case i don't have to config mysql to allow remote connections [21:04] TheJH: Clex, create a new buffer whose length is the length of the two source buffers combined and copy the data using img.copy() and chunk.copy() [21:04] TheJH: damiano, correct [21:05] magaman has joined the channel [21:05] mscdex: rhaen: yo [21:05] _sorensen_: this is kinda off subject [21:05] johnhamelink has joined the channel [21:05] Cros79_ has joined the channel [21:05] felixge has joined the channel [21:05] felixge has joined the channel [21:05] _sorensen_: anyone have a good question to ask a software tester? [21:06] Clex: But how I am supposed to append chunk to my Buffer? buffer.write(chunk, buffer.length)? [21:06] mscdex: _sorensen_: is this a software test? [21:06] felixge: I'm wondering, how do you guys manage your application configurations in node if they are loaded async? [21:06] felixge: I'm considering to attach them to the exports object of a module [21:06] _sorensen_: potential tester [21:06] felixge: but that means they are not available during the module load phase [21:06] _sorensen_: no idea what to ask [21:06] aconbere has joined the channel [21:07] magaman: Hello, I'm trying to build Node under Cygwin. I'm getting following error: "Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a}". Anyone can help? [21:07] margle has joined the channel [21:07] zilch has joined the channel [21:07] fmeyer has joined the channel [21:07] damiano: TheJH: http://www.vbmysql.com/articles/security/connecting-the-mysql-gui-tools-to-a-remote-server-through-a-firewall [21:08] booo has joined the channel [21:09] chjj: magaman: are you building v5.x.x? [21:09] magaman: yes [21:09] chjj: or v0.5.x rather [21:10] magaman: v0.5.3 [21:10] chjj: im not sure that v0.5 works with cygwin yet [21:10] chjj: v0.4.10 should work fine with cygwin [21:11] magaman: thanks, I will try [21:12] eee_c has joined the channel [21:14] johnhame_ has joined the channel [21:15] CIA-65: libuv: 03Ben Noordhuis 07master * r4abd1e0 10/ (include/uv.h src/uv-unix.c): [21:15] CIA-65: libuv: uv-unix: close file descriptors immediately in uv_close() [21:15] CIA-65: libuv: Don't defer closing of socket and pipe file descriptors to the [21:15] CIA-65: libuv: next iteration of the event loop. It breaks node.js unit tests [21:15] CIA-65: libuv: that assume the call to `server.close()` immediately frees up [21:15] CIA-65: libuv: the bound to address. - http://bit.ly/oOV81D [21:16] bnoordhuis: chjj magaman: master works with cygwin too (again, since 30 minutes or so) [21:17] Metal3d: just a simple question... is there a way to continually read from STDIN ? [21:17] Metal3d: (readline ?) [21:17] jshaw has joined the channel [21:17] bnoordhuis: Metal3d: readline or repl [21:17] Metal3d: repl ? mmmm [21:17] bnoordhuis: Metal3d: yep. they're both documented [21:18] liar has joined the channel [21:18] Metal3d: I'm in [21:18] materialdesigner has joined the channel [21:20] dshaw_1 has joined the channel [21:20] Metal3d: I don't understand how to get repl stdin buffer and use it in function... [21:20] Metal3d: I'm trying [21:21] wookiehangover has joined the channel [21:21] CIA-65: node: 03Ryan Dahl 07master * r0696e78 10/ (lib/assert.js test/simple/test-assert.js): [21:21] CIA-65: node: Improve assert error messages [21:21] CIA-65: node: 1. actual and expected should be displayed in the same order they were given [21:21] CIA-65: node: 2. long values should be truncated. - http://bit.ly/qHtA4s [21:23] kylefox has joined the channel [21:23] hl7Guy has joined the channel [21:23] robertfw has joined the channel [21:26] mikeal has joined the channel [21:26] heavysixer has joined the channel [21:29] codeprophecy has joined the channel [21:30] yhahn has left the channel [21:30] omni5cience_ has joined the channel [21:31] theCode has joined the channel [21:34] zackattack has joined the channel [21:34] zilch has joined the channel [21:35] CIA-65: libuv: 03Peter Bright 07master * r3409c9b 10/ (src/win/process.c test/test-list.h test/test-spawn.c): Include important Windows environmental variables even when a blank/custom environment is specified. - http://bit.ly/mRLadX [21:37] CIA-65: libuv: 03Peter Bright 07master * r54a6c6f 10/ .gitignore : Ignore VC++ files. - http://bit.ly/pke5XE [21:39] Peter` has left the channel [21:40] ericmuyser has joined the channel [21:41] timmorgan has joined the channel [21:42] eyesUnclouded has joined the channel [21:43] unlink has joined the channel [21:43] timmorgan: Uploading file attachments via multipart/form-data; text files work, but images are garbled [21:44] timmorgan: What am I doing wrong? Is there some setThisSuckerToBinary() method I'm missing? [21:44] timmorgan: I should say, I'm making the post request FROM node -- destined for an API I do not control [21:46] fatjonny: timmorgan: maybe data.toString('binary') before sending? [21:46] timmorgan: fatjonny: ok I'll give it a whirl [21:46] bischof has joined the channel [21:47] timmorgan: naaa, that didn't change anything [21:47] timmorgan: my test image of 56kb is ending up on the other side as 85kb [21:48] mehtryx has left the channel [21:48] TheJH: timmorgan, everything is buffers by default [21:48] TheJH: timmorgan, could you gist your code? [21:48] edude03 has joined the channel [21:51] CIA-65: libuv: 03Robert Mustacchi 07master * r4b1b8fa 10/ (src/eio/config_sunos.h src/eio/ecb.h src/uv-sunos.c): Clean up SunOS build - http://bit.ly/p7N8sm [21:52] davidban_ has joined the channel [21:52] dominictarr has joined the channel [21:52] mynyml has joined the channel [21:52] ajpiano has joined the channel [21:53] davidwalsh has joined the channel [21:53] mikeal has joined the channel [21:53] jbrokc has joined the channel [21:54] johnhamelink has joined the channel [21:54] vid__ has joined the channel [21:55] hasta84_ has joined the channel [21:56] CIA-65: node: 03Tom Hughes 07master * ra8692a0 10/ src/node_net.cc : net: fix incorrect sizeof() - http://bit.ly/nk36Wa [21:56] CIA-65: node: 03Tom Hughes 07master * r94db871 10/ src/node_crypto.cc : crypto: fix incorrect ssl shutdown check - http://bit.ly/n1l15L [21:56] CIA-65: node: 03Tom Hughes 07v0.4 * r25118b0 10/ src/node_net.cc : net: fix incorrect sizeof() - http://bit.ly/nf4m96 [21:56] CIA-65: node: 03Tom Hughes 07v0.4 * r421b6e8 10/ src/node_crypto.cc : crypto: fix incorrect ssl shutdown check - http://bit.ly/rknOtJ [21:57] timmorgan: TheJH: https://gist.github.com/9ba5294930efe008d8c7 [21:57] cfq has joined the channel [21:57] timmorgan: I get the binary data from a POST call; writing it to the file system verifies it is NOT garbled at that point [21:58] bengrue has joined the channel [21:58] xandrews has joined the channel [21:58] timmorgan: it gets garbled when I concat with all the multipart stuff I guess [21:58] aheckmann has joined the channel [21:58] eboyjr has joined the channel [21:59] rabidsnail has joined the channel [21:59] eastender has joined the channel [21:59] micheil has joined the channel [21:59] rabidsnail: Calling emit('connection', new Socket({fd: my_fd})); doesn't seem to do anything [21:59] TheJH: timmorgan, when you do buffer + string, the buffer gets converted to a string, you don't want that [21:59] timmorgan: oh [21:59] rabidsnail: on an http server, that is [22:00] TheJH: timmorgan, and attReq.write(postData.toString('binary')); is just wrong [22:00] kavla has joined the channel [22:00] TheJH: timmorgan, first write the first string, then write the buffer, then the second string. [22:00] timmorgan: I just added the toString following fatjonny's suggestion [22:00] timmorgan: ok [22:02] johnhamelink has joined the channel [22:04] fatjonny: timmorgan: I imagine my suggestion would work if when you were concatenating the data to the string you did data.toString instead of at the end [22:04] fatjonny: it is just the wrong way to do it. :) [22:05] Murvin: does anyone remember a while ago, there was a noder here send out a link about security issue with Node or something like that? [22:05] timmorgan: TheJH: ok, I made the changes you suggested, but still get a garbled image once posted to the api [22:05] timmorgan: I'll post a gist [22:06] bentkus has joined the channel [22:06] TheJH: Murvin, maybe me? I sent a link to some blackhat talk description [22:06] Murvin: oh yeah [22:06] Murvin: do you still have that link? i want to take a look to see what they talk about [22:06] timmorgan: same url: https://gist.github.com/9ba5294930efe008d8c7 [22:07] chilts: if I have an object and want to count the number of keys, is there a better way than this: Object.keys(myobj).length ? [22:07] chilts: so { 'field':'value' } would give 1 [22:07] tjholowaychuk: chilts no that's a good way [22:07] chilts: oh right, ok :) [22:08] chilts: am glad I found it [22:08] zackattack has joined the channel [22:08] chilts: thanks [22:09] monokrome has joined the channel [22:10] sechrist has joined the channel [22:10] TheJH: Murvin, https://www.blackhat.com/html/bh-us-11/bh-us-11-briefings.html#Sullivan [22:11] Metal3d: well... I made a nat traversal (hole punching) with node... [22:11] TheJH: Metal3d, cool! [22:11] Metal3d: it's very easy in fact [22:11] Metal3d: I'll make a blog ticket on this method [22:12] Metal3d: 67 lines... with comments [22:12] TheJH: Metal3d, github/npm url? [22:12] Metal3d: why not :) [22:12] Metal3d: wait [22:12] Lorentz has joined the channel [22:13] TheJH: timmorgan, what hapens when you replace attReq.write(headData); with attReq.write(new Buffer(headData));, same for tailData? [22:13] navaru_ has joined the channel [22:13] navaru_: whois navaru [22:14] bradleymeck has joined the channel [22:14] timmorgan: TheJH: same result, unfortunately -- image goes from 56kb to 86kb, and garbled [22:15] TheJH: timmorgan, stupid question, sorry, but are you sure that you're running the changed code? [22:16] timmorgan: no, not a stupid question [22:16] timmorgan: let me make sure I didn't do something stupid [22:17] Metal3d: TheJH, https://gist.github.com/1135356 [22:18] Metal3d: TheJH, refresh, there was indent error :) [22:18] TheJH: Metal3d, thanks [22:18] Metal3d: no problem [22:19] timmorgan: TheJH: ok, I'm sure I'm running the new code, and still get the same results [22:19] timmorgan: Here's something weird though... [22:19] Metal3d: this is very nice... in fact I send some packet that are garbaged on distant firewall, when second client send data, firewall belives that connexion is "ESTABLISHED" [22:19] Metal3d: and so, stream is kept opened [22:19] sechrist has joined the channel [22:19] timmorgan: If I do console.log(Buffer.byteLength(data)), I get 87047 [22:19] timmorgan: I think that's the size of the garbled image (but not the actual image size) [22:20] timmorgan: however, if I write that same buffer to the filesystem, it's a good image [22:20] timmorgan: argggg [22:20] jbpros has joined the channel [22:20] jerrysv: timmorgan: stupid question, but are you reading the file as binary? [22:21] timmorgan: Yes: fs.readFile(file.path, 'binary', ... [22:22] jerrysv: just making sure :) [22:22] timmorgan: So, I'm using Buffer.byteLength to set the proper "Content-Length" header [22:22] venom00 has joined the channel [22:22] timmorgan: I'm thinking that's the problem [22:22] indexzero has joined the channel [22:22] venom00: hello, I need a catch-all function for an object, in pseudo-code: obj.catch-all = function (func, arg) { console.log(func, arg); func(arg); } [22:22] Metal3d: timmorgan, why not using data.length ? [22:22] venom00: is there something similar? [22:23] bnoordhuis: timmorgan: why not buffer.length? [22:23] timmorgan: Metal3d: uh, don't know -- saw Buffer.byteLength somewhere on teh intarwebs [22:23] bnoordhuis: oh, late to the party [22:23] timmorgan: haha, ok guys I get it :-) [22:23] bnoordhuis: ACTION goes back to lurking [22:23] Metal3d: timmorgan, look my gist, I use .length property on buffers... so maybe... [22:24] Metal3d: timmorgan, I'm a node newbie, so don't trust everything I say :) [22:24] TheJH: timmorgan, ehm, you're reading a binary file with encoding=binary, not as a buffer? ah, I like bold font :) [22:25] Metal3d: TheJH, bold us again ! [22:25] TheJH: muhaha! [22:25] Metal3d: TheJH, if you have remarks on my gist code... [22:25] timmorgan: TheJH: uh, yeah I guess so [22:25] Metal3d: yeaha [22:25] timmorgan: I guess that's dumb [22:26] TheJH: timmorgan, I'd really read it as a buffer, encoding=binary gives you a string [22:26] timmorgan: the api docs said I could (I think) [22:26] timmorgan: oh [22:26] Metal3d: TheJH, in fact, I think I can correct my script to accept input from stdin after clients are really connected [22:27] timmorgan: so do I just set encoding to null? [22:27] zilch has joined the channel [22:27] Metal3d: and god, nodejs is a pretty nice system [22:28] TheJH: timmorgan, from the docs: `fs.readFile('/etc/passwd', function (err, data) {`, "If no encoding is specified, then the raw buffer is returned." [22:28] RushPL has joined the channel [22:29] timmorgan: yes yes yes it works [22:29] timmorgan: TheJH: you are my hero [22:29] TheJH: :) [22:29] jbrokc has joined the channel [22:29] timmorgan: thanks everyone! I'm outie! [22:31] TheJH: Metal3d, is your punching code tested? [22:31] Metal3d: yes [22:31] Metal3d: TheJH, I tried with a VM behind a firewall [22:31] Metal3d: TheJH, it works great, but I'm improving it [22:31] nphase has joined the channel [22:32] Metal3d: let me finish and I will update the gist [22:32] TheJH: Metal3d, when you're done, will you put it on github and npm? [22:32] Metal3d: npm... mmm it's not a module right now [22:32] Metal3d: but yes I can [22:33] Metal3d: In fact, the goal is (after some tests and code) to allow a real communication [22:33] Metal3d: and I will give a real module :) [22:33] TheJH: Metal3d, would be cool. In combination with "sodn", it would probably be awesome. [22:33] Metal3d: I don't know sodn [22:34] Metal3d: I'll take a look [22:34] TheJH: !@Metal3d npm search sodn [22:34] jhbot: Metal3d, package sodn: Self-organizing dnode network [22:34] Metal3d: ok [22:34] TheJH: !@Metal3d npm search dnode [22:34] jhbot: Metal3d, packages (short format): dnode-stack, dnode-smoothiecharts, sodn, hook.io-webserver, backbone-dnode, box2dnode, dnode-ez, cloudnode-cli, dnode-protocol, dnode [22:34] TheJH: aww [22:34] Metal3d: :) [22:34] TheJH: Metal3d, dnode is a RPC library [22:34] brianseeders has joined the channel [22:34] Metal3d: ho ok, it could be nice yes [22:34] davida has joined the channel [22:34] Metal3d: I'll see how it can be mapped to my system [22:34] isaacs: dnode is an RPC library like the pope is a catholic [22:34] kavla1 has joined the channel [22:34] isaacs: it's uber. [22:35] Metal3d: lol [22:35] Metal3d: I see :) [22:35] brianseeders has joined the channel [22:35] TheJH: ACTION tries not to think about botnets... [22:35] SubStack: ^_^ [22:35] isaacs: i guess that's not quite an apt anolgy [22:35] isaacs: it's not like dnode tells the other rpc libs what to think [22:35] isaacs: (yet) [22:36] bradleymeck: {toString:function() {}} === happy fun time! [22:36] SubStack: and the best part is it's pretty much done [22:36] hunterloftis has joined the channel [22:36] TheJH: bradleymeck, what's that? [22:36] wookiehang0ver has joined the channel [22:36] SubStack: just bugfixes and maybe I'll refine the browser-side code a bit [22:36] TheJH: bradleymeck, an attempt to hack it? [22:36] SubStack: I have no plans for more features [22:36] SubStack: can just do all that in userspace where it belongs [22:36] bradleymeck: no, but you can do some funny things about seeing when your object is being made into a string [22:37] SubStack: oh and once socket.io-client 0.7.x works with browserify again I'll bump the dep [22:38] bradleymeck: anyone know if you can still listen to existing servers with socket.io 0.7? i cant find an example of using an existing server [22:38] TheJH: bradleymeck, you mean, as long as the other side doesn't do typechecking [22:38] replore has joined the channel [22:39] replore_ has joined the channel [22:39] yumike has joined the channel [22:39] bradleymeck: TheJH right, but checking everywhere and being sure to strip properly is not exactly easy [22:40] eee_c has joined the channel [22:40] TheJH: SubStack, how about adding support for hungarian function arguments in dnode? E.g. when I define a function with the parameter str_name, validate that it's a string? [22:41] bnoordhuis: hungarian... stab stab stab [22:41] TheJH: SubStack, it could probably be done, at least on the node side, using func.toString() [22:41] SubStack: yeah I hate hungarian notation but you could build something like that on top of dnode [22:41] SubStack: not really something dnode should be doing itself [22:41] TheJH: I know, it's normally a bad idea, but for securing weakly-typed rpc... [22:42] SubStack: or just build a type checker that doesn't even need to know anything about dnode [22:42] SubStack: this.foo = typed([ String, Number, Function ], function (s, n, cb) { /* ... */ }) [22:42] abraxas has joined the channel [22:43] TheJH: I think I'll quickly put something together [22:43] SubStack: I wrote something like that for ruby already [22:43] jsepia has joined the channel [22:44] jsepia: Hi, I was wondering if there's a built-in way of calculating a user's ping in Node... [22:44] jsepia: Otherwise, how would I go about getting the user's ping? [22:44] TheJH: jsepia, over which protocol? [22:44] jsepia: Websockets. [22:44] TheJH: jsepia, save the time, send a message, receive an answer, check elapsed time? [22:45] bnoordhuis: i think the keyword here is 'built-in' [22:45] jsepia: bnoordhuis: I don't mind a non-built-in solution :) [22:46] TheJH: bnoordhuis, "Otherwise, how would I go about getting the user's ping?" [22:47] cafesofie has joined the channel [22:47] eignerchris_ has joined the channel [22:47] jacobolus has joined the channel [22:49] Metal3d: TheJH, https://gist.github.com/1135356 better... but I need to check connection on both sides [22:49] Metal3d: I will work on this [22:49] Metal3d: and I'll give you news [22:49] TheJH: Metal3d, thanks :) [22:51] escii has joined the channel [22:52] malkomalko has joined the channel [22:53] jsepia: TheJH: That would solve part of my problem, but perhaps I didn't word it well. [22:53] jsepia: TheJH: I'd like to know, specifically, the time it takes for a function call to get from the server to the user. [22:54] shinuza has joined the channel [22:54] jsepia: TheJH: In other words: one-way, not two-way [22:55] joeytwiddle has joined the channel [22:55] mDraze has joined the channel [22:56] TheJH: jsepia, in case the time for server->user is different from user->server, I'd say "impossible" [22:56] jshaw has joined the channel [22:56] TheJH: jsepia, because there's no common time [22:56] bradleymeck has joined the channel [22:57] TheJH: jsepia, but I might be wrong. what do the other guys here think? [22:57] xandrews has joined the channel [22:57] Murvin: TheJH: Thanks for the link [22:57] TheJH: Murvin, I think that the pdf still isn't up yet :( [22:58] Murvin: yea.. not there yet [22:58] TheJH: Murvin, I mailed the speaker two days or so, but didn't yet get an answer [22:59] ryan0x2 has joined the channel [23:00] jbrokc has joined the channel [23:00] davidascher has joined the channel [23:03] Cromulent has joined the channel [23:05] jsepia: Well, thanks anyway. I imagine the only way this can be measured is if we sync the server and the client's clocks (or if we measure it locally) but that defeats the purpose of it [23:06] ryan0x2 has joined the channel [23:07] CIA-65: node: 03Ryan Dahl 07master * r03a119e 10/ test/simple/test-repl.js : Improve win compat of test-repl - http://bit.ly/n5oFVh [23:08] chapel: hmm [23:10] guillermo has joined the channel [23:12] navaru has joined the channel [23:12] bischof has joined the channel [23:12] eastender2 has joined the channel [23:13] Spion has joined the channel [23:16] wookiehangover has joined the channel [23:17] Sorella has joined the channel [23:18] sechrist: sup Guest18468 [23:19] mrjf has joined the channel [23:21] c4milo1 has joined the channel [23:22] Nexxy has joined the channel [23:23] Destos has joined the channel [23:23] TheJH: google, I hate you! I don't want "msdn typeof", I want "mdn typeof" when I write "mdn typeof"! [23:24] ctide: google is far too overzealous with spelling corrections these days [23:24] admc has joined the channel [23:24] fitzgen has joined the channel [23:25] Guest62692: sechrist: hi [23:26] mrjf: On a related note, I can't really search for .npm, so I'm hear to ask: what does npm do in the .npm directory in my home? [23:26] vengeancex32 has joined the channel [23:26] sechrist: I know I'm late but grats on .7 [23:26] vengeancex32_ has joined the channel [23:27] admc has joined the channel [23:27] isaacs: mrjf: npm help folders [23:27] mrjf: Thanks [23:27] isaacs: mrjf: ~/.npm is the cache folder. you can tell it to use a different one if you want, but it needs a working space. [23:28] xerox: npm's cubicle [23:28] Spion has joined the channel [23:28] boxysean has joined the channel [23:28] mrjf: Great, thanks! [23:28] k1ttty has joined the channel [23:29] fitzgen: Hello everyone [23:29] fitzgen: I'm having some toruble with npm [23:29] fitzgen: my project's layout looks like this: http://pastebin.com/1YaTyK5k [23:30] fitzgen: and my package.json looks like this: http://pastebin.com/0eTrnrGW [23:30] fitzgen: and I can't seem to be able to require("source-map/source-map-generator") [23:30] fitzgen: etc [23:30] fitzgen: can anyone help me out? [23:32] edude03 has joined the channel [23:32] fitzgen: isaacs: any chance you could help me out? [23:36] isaacs: fitzgen: require("source-map/lib/source-map-generator.js") [23:36] isaacs: fitzgen: packages are just folders. dive into them. [23:36] isaacs: there's no mapping or symlink magic (that died in npm 0.3) [23:36] fitzgen: argh but that is going to break the way it works with requirejs and amd stuff [23:36] fitzgen: hmmm [23:36] isaacs: oh, actually, no: require("./lib/source-map/lib/source-map-generator.js") [23:37] isaacs: fitzgen: then don't use node's module loader. use nodules or the AMD npm package or something [23:37] addisonj has joined the channel [23:37] fitzgen: isaacs: Ideally it should work with all of them [23:37] isaacs: fitzgen: i missed that source-map is not a package. just require("./source-map/source-map-generator.js") [23:37] addisonj: whats the windows alternative to npm that sorta works right now? [23:37] isaacs: ryppi [23:37] isaacs: addisonj: ^ [23:38] isaacs: fitzgen: ignore my first response :) the issue is that the thing isn't a packaged dependency, it's just a thing in the lib folder. [23:38] isaacs: fitzgen: it's local. use the local path to it [23:38] fitzgen: I guess that could work [23:39] fitzgen: I didn't want to make my tests require(../lib/....df,s.df,sf) if you see what I mean :) [23:39] isaacs: fitzgen: or are you require'ing this from outside your project? [23:39] fitzgen: I will be [23:39] fitzgen: well CoffeeScript will be [23:39] isaacs: yeah, this does nothing magic: "directories": { "lib" : "./lib" }, [23:39] CIA-65: node: 03Ryan Dahl 07master * r665a4e4 10/ test/simple/test-repl.js : Fix test/simple/test-repl - http://bit.ly/ofJg8q [23:39] fitzgen: I also tried directories: {lib: "./lib/source-map"} [23:40] isaacs: fitzgen: while it'll make your tests just slightly more annoying to write, it'll make them *much* easier for others to read. [23:40] isaacs: fitzgen: the lib directory is not magicked up. [23:40] fitzgen: isaacs: well how will a third party be able to require("source-map/source-map-generator")? [23:41] isaacs: fitzgen: you'll put source-map-generator in the root of your project is how :) [23:41] isaacs: fitzgen: or they'll do require("source-map/lib/source-map-generator") [23:41] sonnym has joined the channel [23:41] isaacs: fitzgen: or they'll do require("source-map").generator and you'll do exports.generator = require("./source-map-generator.js") [23:41] fitzgen: I see [23:41] Spion has joined the channel [23:41] fitzgen: yeah, I guess I just wanted something cleaner than that [23:41] isaacs: this increases visibility into what's actually happening, if you're *not* already familiar with the program. [23:42] 13WAALBHL has joined the channel [23:42] 64MAA2RM5 has joined the channel [23:43] fitzgen: isaacs: here's what I really want: source-map is a module, and there are two submodules which could be required by themselves without the other submodule ever needing to be loaded. [23:43] isaacs: fitzgen: k. put them in the root of the project. [23:43] fitzgen: the two subs are source-map-generator and source-map-consumer [23:43] isaacs: fitzgen: bonus: when someone reads your stuff on github, they'll see those things. [23:44] fitzgen: I should put both of those in the root? [23:44] isaacs: sure, why not? [23:44] fitzgen: I guess it just feels wierd to put source files in the root when there is a "src" dir [23:44] isaacs: require("source-map/and/then/whatever/is/actually/there") [23:44] mrjf has left the channel [23:45] jasong_at_apache has joined the channel [23:45] fitzgen: hahaha I see we are going in circles [23:45] fitzgen: :) [23:45] ryan0x2_ has joined the channel [23:46] fitzgen: isaacs: when you mentioned the 0.3 magic, was that the stuff that would link the lib dir instead of the root? [23:46] isaacs: fitzgen: yeah [23:46] fitzgen: isaacs: hmm. I guess its been a while since I used npm :) [23:46] isaacs: fitzgen: it did some crazy mumbo jumbo in 0.2 to link every module that was listed in teh modules hash, or the lib dir. [23:47] fitzgen: but that always made sense to me [23:47] isaacs: yeah, but it's a huge pita to track down when things go wrong. [23:47] fitzgen: I see [23:47] isaacs: improved failure modes are worth a slight up front inconvenience. it's like seat belts in that way [23:47] fitzgen: what if I moved lib/source-map to ./source-map? [23:47] isaacs: sure. [23:48] fitzgen: would I have to change anything in my package.json? [23:48] isaacs: fitzgen: the point is that the require("source-map/blah/bloo") just maps directly to ./node_modules/source-map/blah/bloo [23:48] fitzgen: isaacs: roger that [23:49] wookiehangover has joined the channel [23:49] ironlad_ has joined the channel [23:49] neilk_ has joined the channel [23:49] fitzgen: isaacs: and require("source-map") would map to "./node_modules/source-map/index.js", correct? [23:51] mike5w3c_ has joined the channel [23:53] bwinton has joined the channel [23:54] TheJH: posted a mail to the node ML, what do you think? "Security: Disallow nullbytes in certain function calls?" http://groups.google.com/group/nodejs/browse_thread/thread/51f66075e249d767 [23:54] isaacs: fitzgen: if you have a "main" entry in your package.json, it'll go there. otherwise, yes, index.js [23:54] fitzgen: isaacs: k thanks [23:54] fitzgen: I appreciate your help [23:54] isaacs: np [23:54] fitzgen: :) [23:55] opus_ has joined the channel [23:55] isaacs: oh, i think require("./foo") will also auto-require ./foo/foo.js [23:55] opus_: hey anyone meeting at Bailey's at 5:30? [23:55] isaacs: if it's there. i could be wrong about that, might've just been an idea that didn't make it. [23:55] isaacs: check the docs :) [23:55] xerox: that would be sweet [23:56] kavla has joined the channel [23:57] malkomalko has joined the channel [23:58] halfhalo-work_ has joined the channel [23:59] zackattack has joined the channel