[00:00] Corren has joined the channel [00:01] brolin_ has joined the channel [00:08] towski has joined the channel [00:09] tk has joined the channel [00:10] FireFly|n900 has joined the channel [00:10] sounko has joined the channel [00:13] xdamman has joined the channel [00:14] dguttman has joined the channel [00:14] [[zz]] has joined the channel [00:15] xdamman: [mongodb/node] Hi there. Quick question. I have a mongoscript.js that I pass to mongodb and returns a json to stdout. What would be the best way to reuse that script within node? [00:16] bartt has joined the channel [00:18] meomic has joined the channel [00:20] eboyjr: SubStack: Do you do freelance drawing? [00:20] bartt1 has joined the channel [00:22] jellosea: chapel: do you know what the done type for a statement in uglifyJS / burrito [00:22] jellosea: *node type [00:22] chapel: done type? [00:23] jellosea: s/done/node [00:23] chapel: node type? [00:23] jellosea: yeah [00:23] clifton: anyone else use irssi in osx terminal on lion? [00:23] jellosea: it traverses through the ast and each node has a type right? [00:23] jellosea: and then pased on the node type it does a replacement right? [00:23] eboyjr: clifton: yeah, why? [00:24] clifton: does the terminal window interrmittenly resize itself when you alt tab around [00:24] clifton: or create new tabs? [00:24] clifton: its been happening ever since i upgraded to lion and its pretty annoying, was just wondering if anyone else dealt with that issue [00:25] chapel: jellosea: I really don't know [00:25] chapel: I haven't used either [00:25] jellosea: chapel: oh okay thanks, still looking for soem docs [00:26] eboyjr: clifton: i haven't seen that [00:26] clifton: ah, yeah its just kinda weird [00:26] meomic has joined the channel [00:27] clifton: seems to stop happening if i dont run irssi in another tab [00:29] root___ has joined the channel [00:31] xymor has joined the channel [00:32] Cromulent has joined the channel [00:32] mwhooker_ has joined the channel [00:34] root___: ? [00:35] SubStack: eboyjr: that would depend on how interesting the subject matter is and what happens to it afterwards [00:35] ralphholzmann: how can I check if a writable stream has been closed? [00:35] Circlefusion has joined the channel [00:36] SubStack: eboyjr: and instead of charging money you should just become a paying browserling user instead [00:36] Guest43036: can i ask if i plan to create a web app [00:36] Guest43036: what attacks am i vulnerable to? [00:36] Guest43036: other than xss? [00:37] Guest43036: i mean for nodejs [00:37] Guest43036: for node.js* [00:37] jellosea: is there a way to toStirng a functino but not have it return the function name and { } ? [00:37] blaenk: anyone here on mac? doesn't xcode 4 have a new diff gui? does anyone know if I can use it for any files or do I have to be using it with xcode [00:37] jellosea: i guess i'll just do it with some regex [00:37] SubStack: jellosea: what are you trying to do? [00:37] Guest43036: like for php u can get stuff like mysql injection [00:37] lhoffman has joined the channel [00:38] SubStack: jellosea: usually this works just as well: '(' + fn.toString() + ')()' [00:38] shanebo: Guest43036 there's a mysql native library with prepared statements [00:38] Guest43036: im not planning to use mysql though i plan to use mongodb [00:38] sergej222 has joined the channel [00:38] cl0udy: im just wondering what else other than xss [00:39] shanebo: Guest43036, I wouldn't think node offers any more security concerns than any other dev stack. but I'm on my first app, so I don't know. [00:39] jellosea: SubStack: no thats not it, i want to have to tostring without the function() { part [00:39] johnduhart has joined the channel [00:39] jellosea: its okay i will just regex it [00:39] shanebo: SubStack, re: security, what's your advice to cl0udy? [00:40] SubStack: jellosea: why not? [00:40] jellosea: SubStack: just triyng someting out [00:40] cl0udy: anyone? [00:41] cl0udy: https://github.com/wearefractal/fusker seems interesting [00:42] bnoordhuis: cl0udy: what shanebo said [00:42] cl0udy: so stuff like sessions etc too [00:44] shanebo: i think the biggest difference is there not being multiple threads [00:44] sergej222: hi, is there a database bindings available or planed in windows? Node v0.5x (libuv) [00:45] Ans5i has joined the channel [00:45] bnoordhuis: sergej222: you mean for mssql? [00:50] blaenk: hey, should vows.js be installed globally? [00:50] markwubben has joined the channel [00:50] blaenk: or do I have to do npm install vows for each project I check out to see if the tests pass [00:50] sergej222: any bindings would do. :-) Express 3alpha has something to play for windows user. But without any database support its not really [00:50] sergej222: fun [00:53] bayousoft has joined the channel [00:57] markdaws has joined the channel [00:58] davidbanham has joined the channel [00:59] losing has joined the channel [01:00] markwubben has joined the channel [01:01] zzo has joined the channel [01:01] TooTallNate has joined the channel [01:02] markwubben has joined the channel [01:04] markwubben has joined the channel [01:07] okuryu has joined the channel [01:10] Xano has joined the channel [01:10] AndyDawson has joined the channel [01:11] kriszyp has joined the channel [01:16] kriszyp has joined the channel [01:17] markwubben has joined the channel [01:18] jomoho3 has joined the channel [01:19] markwubb_ has joined the channel [01:22] jbrokc has joined the channel [01:25] blaenk: I installed vows globally and for some reason I keep getting an error saying it can't find the vows module: https://gist.github.com/1116237 any ideas? [01:26] blaenk: then if I install vows locally using npm install vows in the project dir it works [01:29] zzo has joined the channel [01:29] csanz has joined the channel [01:29] brownies has joined the channel [01:29] MikhX has joined the channel [01:29] qcom has joined the channel [01:30] csanz: anybody here experienced with mongoose and repl [01:30] MikhX has left the channel [01:32] Aria has joined the channel [01:37] meomic has joined the channel [01:41] chjj: wow, sourceforge is so bad =/ [01:41] jesusabdullah: I know, right? [01:41] jesusabdullah: Poor SF [01:41] chjj: its just a mess, trying to navigate a project's page [01:42] chjj: takes like 12 clicks to even get to the code [01:42] jellosea: chapel: i dont think i can use burrito to wrap something around each line.. it doesnt parse a statement at a time, it does like each token, like var, new name num stat [01:42] jellosea: there is no just token for statmeent to wrap the whole statement [01:42] jesusabdullah: chjj: How about as an end user and not a developer? Do you think it's better in that regard? [01:43] ceej has joined the channel [01:43] chjj: i cant really say, im not just a user [01:44] jellosea: is there a way to wrap each line of a function with something else? [01:46] chorrell has joined the channel [01:47] ohtogo has joined the channel [01:48] _jhs has joined the channel [01:48] _jhs has left the channel [01:50] kriszyp has joined the channel [01:53] qcom: anyone here familiar with the node redis client? [01:54] brian has joined the channel [01:56] ngs has joined the channel [01:56] jellosea: is there a way to wrap each statement of a function with something else? [01:58] sounko has joined the channel [02:07] chjj: omg substack made an isaacs module [02:07] chjj: finally [02:08] eboyjr: what's isaacs [02:08] yhahn has joined the channel [02:09] chjj: https://github.com/substack/node-isaacs [02:09] yhahn: npm seems to always install devDependencies when i run it... is there a way to disable this behavior? [02:10] meomic has joined the channel [02:10] skm has joined the channel [02:12] mapleman has joined the channel [02:17] sounko has joined the channel [02:18] te-brian has joined the channel [02:23] sridatta has joined the channel [02:23] sergej222 has left the channel [02:25] skampler has joined the channel [02:25] aconbere has joined the channel [02:26] CrisO has joined the channel [02:28] jokil has joined the channel [02:29] jokil: hey guys, is net.write sync or async? [02:29] MooGoo: it's async unless stated otherwise [02:29] MooGoo: .g nodejs net [02:29] catb0t: net - Node.js Manual & Documentation @ http://nodejs.org/docs/v0.3.1/api/net.html [02:29] _jhs has joined the channel [02:30] jokil: "Returns true if the entire data was flushed successfully to the kernel buffer. Returns false if all or part of the data was queued in user memory. 'drain' will be emitted when the buffer is again free." [02:30] jokil: it returns something after success. means sync, no? [02:31] theCole has joined the channel [02:31] MooGoo: eh....I think whether or not all data was flushed from some buffer doesnt really need to be async [02:31] meomic has joined the channel [02:32] MooGoo: you still have to wait for a response from the server [02:34] shanebo: guys any idea how to suppress a 404 for an image inside a view? [02:35] skampler has joined the channel [02:36] blup has joined the channel [02:38] zackattack has joined the channel [02:38] simenbrekken has joined the channel [02:43] zackattack has joined the channel [02:46] zackattack has joined the channel [02:51] cccaldas has joined the channel [02:52] dshaw_ has joined the channel [02:58] V1 has joined the channel [03:03] shurane has joined the channel [03:05] apalmer has joined the channel [03:05] towski has joined the channel [03:06] gerard0 has joined the channel [03:09] ezmobius has joined the channel [03:13] dexter_e has joined the channel [03:19] eboyjr: SubStack: I want a drawing of a spaceship console that as confusing as you can make it.. and there should be a window with earth in it reaaaaaaaly far away [03:19] eboyjr: and parts of the spaceship are not completed [03:19] eboyjr: theres gears everywhere [03:19] eboyjr: and sprockets and springs [03:19] eboyjr: I'll get a browserling account :) [03:20] elliottcable: eboyjr: what? [03:20] elliottcable: … wait what [03:20] elliottcable: lol SubStack [03:20] eboyjr: haha [03:20] elliottcable: SubStack: apparently we need a drawing. [03:20] eboyjr: its a metaphor for paws [03:20] elliottcable: D: [03:20] elliottcable: don’t say that word in here [03:21] eboyjr: its? [03:21] elliottcable: Ni! [03:21] eboyjr: a? [03:22] yhahn has left the channel [03:23] samsonjs has joined the channel [03:27] meomic has joined the channel [03:28] NegativeK has joined the channel [03:30] Nuck: SubStack: You.... built a bot... to emulate Isaacs? You are a genius, though I feel sorry for the man being replaced. [03:32] amiller has joined the channel [03:38] monokrome has joined the channel [03:40] [[zzz]] has joined the channel [03:44] dexter_e has joined the channel [03:47] wookiehangover has joined the channel [03:48] MooGoo: bots are good catb0t [03:48] catb0t: bots change in the file on my broken phone good [03:49] eboyjr: MooGoo: is that using isaacs? [03:49] MooGoo: wats iassacs [03:49] eboyjr: https://github.com/substack/node-isaacs [03:49] Nuck: Yeah, the new isaacs bot :3 [03:49] Nuck: There any in here? [03:50] MooGoo: it's a markov thing? [03:50] eboyjr: yeah [03:50] MooGoo: catb0t are you issacs [03:50] eboyjr: require('markov') [03:50] catb0t: issacs , isaccs, I'm making a list to compare similar modules based on your use case [03:50] MooGoo: wow thanks [03:50] eboyjr: haha [03:50] eboyjr: what a nice bot [03:50] tmzt: this is not a random string of nothingness catb0t [03:50] catb0t: nothingness catb0t [03:50] eboyjr: catb0t: are you the same bot you were before? [03:51] catb0t: before we run some java servers [03:51] eboyjr: catb0t: ah, so you are using java now [03:51] catb0t: using couchdb for dle for java [03:51] tmzt: catb0t: you should upgrade all the IT infrastructure to java servers in inversion of control paradigm [03:51] catb0t: infrastructure change, everyone and their relations, but 1000 Users will consume inversion [03:51] eboyjr: ah yeah couchdb [03:51] overra has joined the channel [03:51] eboyjr: catb0t: thats why you use load balancing [03:51] catb0t: balancing , not ig 'aha' thats [03:52] tmzt: catb0t: we need more users [03:52] catb0t: users attributes [03:52] mscdex: .talk MooGoo [03:52] catb0t: MooGoo dispalt baudehlo it is , it be I e i s successful talk [03:52] MooGoo: catb0t ARE YOU better than issacs [03:52] catb0t: better library, do you have in store for Stylus and tried to go back to that [03:52] MooGoo: guess not huh [03:53] mscdex: catb0t thinks node.js rules [03:53] catb0t: thinks its stupied to instert a mongodb now there 's something I should be careful with that and i suspect it's something to occur based off clients procesor, and having a way to handle versions, updates etc nodejs [03:53] tbranyen: learn faster damnit [03:54] mscdex: catb0t needs moar GBs [03:54] catb0t: needs a way to dynamically name local template variables section of the data structure looks like Vim and u vim moar [03:54] nadirvardar has joined the channel [03:55] tmzt: catb0t: which ORM should I use for mongodb? [03:55] catb0t: mongodb install automatically when i call writeHead should [03:55] Ond has joined the channel [03:55] tmzt: catb0t: which ORM should I use for mongodb? [03:55] catb0t: mongodb as backend for my third party n't putting should [03:55] meomic has left the channel [03:55] tmzt: catb0t: then what should I use instead? [03:55] catb0t: instead of using it that you don't need to defer [03:56] caiges has joined the channel [03:56] strager has joined the channel [03:56] tmzt: catb0t: Is export PATH=${PATH}:/tools:/platform-tools enough to type to add the PATH to adb in Terminal in Linux? [03:56] catb0t: PATHPATHsdktoolssdkplatformtools Terminal [03:58] cjm has joined the channel [03:59] JoshC1 has joined the channel [04:00] sounko: holy fuck [04:01] sounko: just ran through a vi tutorial [04:01] luke` has joined the channel [04:01] sounko: (been using vs2010 for many years) [04:01] localhost has joined the channel [04:01] tbranyen: one does not simply *run* through a vi tutorial [04:01] sounko: now developing in unix [04:01] sounko: i ran man [04:01] sounko: 9 second 100m [04:07] mscdex: impossible [04:07] _sorensen_ has joined the channel [04:08] mscdex: catb0t: vi tutorials are not for the faint of heart [04:08] catb0t: tutorials are not compiling a stable version is now talking about how it might fit in your console [04:08] isaacs_mobile has joined the channel [04:09] sounko: i dunno about impossible [04:09] sounko: http://www.vi-improved.org/tutorial.php [04:09] sounko: but if you run through that [04:09] sounko: you get a good feel for it very quickly [04:10] sounko: everything is kind of similar to other editors [04:10] sounko: just more object-y [04:11] sounko: split windows, macros, abbreviations, shelling out etc. [04:11] sounko: all makes sense quickly [04:11] ale_ has joined the channel [04:12] sounko: just need to write syntax highlighting for my language :'( [04:13] ale_: hello, I have this code: http://pastebin.com/9vrabLfh on my /var/www/testnode. Why when I access http://localhost:3000/testnode (after making node app.js) I get "Cannot GET /testnode" [04:13] luke` has joined the channel [04:13] tmzt: what laungauge? [04:14] Elems: With ejs, how do I have it not escape special characters coming from passed locals? Like the <, >, etc? [04:14] sounko: dibol basically [04:14] sounko: haha :( [04:15] sounko: SynergyDE [04:17] ale_: someone? [04:19] toxico has joined the channel [04:19] localhost has joined the channel [04:21] uptown__ has joined the channel [04:22] dshaw_ has joined the channel [04:23] davidbanham has joined the channel [04:23] shanebo: what's the cleanest way to access post vars? [04:27] Swimming_bird has joined the channel [04:28] blaenk: anyone here use node-inspector? is there an easy way to restart the script execution from the beginning [04:29] Mikeumus has joined the channel [04:30] Mikeumus: Howdy [04:31] eboyjr has joined the channel [04:31] eboyjr has joined the channel [04:33] Yuffster_work has joined the channel [04:34] boehm has joined the channel [04:35] Mikeumus: it's quite in here. [04:35] Mikeumus: sleepy time [04:36] gg777 has joined the channel [04:39] markdaws has joined the channel [04:40] rurufufuss has joined the channel [04:40] blaenk: is it just me or is node-inspector kind of flaky? it's really nice but I can't figure out the proper flow for it. do I have to restart it every time I restart the script I'm debugging? [04:41] Mikeumus: everyones sleeping [04:43] brianseeders has joined the channel [04:44] Peniar has joined the channel [04:44] guillermo has joined the channel [04:45] chjj: sleeping? [04:45] chjj: nonsense [04:50] wilmoore has joined the channel [04:50] wilmoore has joined the channel [04:51] zanes has joined the channel [04:52] michaelhartau has joined the channel [04:53] booo has joined the channel [04:53] dgathright has joined the channel [04:57] curtischambers has joined the channel [04:58] curtischambers: anyone ever have an issue where node stops listening to sockets for no apparent reason? My process continues to run, but every 5 minutes or so, it stops receiving requests and stops listening to responses for requests that it's made [04:58] curtischambers: it's been running fine in production for weeks, this is the first time I've ever seen it happen [04:59] gg777 has joined the channel [05:00] eboyjr has joined the channel [05:00] eboyjr has joined the channel [05:00] curtischambers: it's been running fine in production for weeks, this is the first time I've ever seen it happen [05:00] Nexxy has joined the channel [05:00] Nexxy has joined the channel [05:01] eboyjr has joined the channel [05:01] azeroth_ has joined the channel [05:01] TheJH__phone has joined the channel [05:02] Asmor has joined the channel [05:03] Asmor: Trying to build node on Windows using cygwin and running into a problem... Is there anyone who might be willing to lend me some assistance? [05:04] overra has joined the channel [05:04] ceej has joined the channel [05:05] dshaw_1 has joined the channel [05:07] confoocious has joined the channel [05:07] confoocious has joined the channel [05:07] sounko: Asmor: i spent like a day mucking around with it [05:08] sounko: what's the question [05:08] Asmor: Make keeps failing, reporting "Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a}" [05:08] Asmor: The guide I'm following suggested using "export SHELL=/bin/bash", but that didn't help [05:09] traph has joined the channel [05:09] Asmor: I'm using mintty as my terminal, but I tried it with the default shell as well. [05:09] sounko: any reason you're using cygwin and not the windows node.exe? [05:10] jesusabdullah: No npm for the native exe yet [05:10] jesusabdullah: ? [05:10] Asmor: Trying to use cygwin more often... complete linux newbie, so trying to increase my exposure [05:10] _jhs has left the channel [05:11] Asmor: This is the guide I'm following: https://github.com/joyent/node/wiki/Building-node.js-on-Cygwin-(Windows) [05:11] sounko: do you even really need npm though :p [05:11] sounko: i just ended up copying the files from a zip under windows [05:11] sounko: anyway [05:11] sounko: Asmor: not sure about latest version, it all just worked for me in 0.4.9 or whatever it was [05:11] sounko: i used that guide also [05:12] Asmor: Yeah... That's my worry, is that maybe it's just a problem with the most recent version. :( [05:12] Asmor: I'm trying to build 0.5.2 [05:12] Asmor: I'll try 0.4.9, thanks [05:12] gg777 has joined the channel [05:12] sounko: give it a shot at least, see if you get the same problem [05:13] Asmor: Do I need to do anything special to "clean out" the version I've got now, or can I just run git checkout v0.4.9? [05:13] levity_island has joined the channel [05:13] wookiehang0ver has joined the channel [05:13] eastender2 has joined the channel [05:14] sounko: i used to just make a zip file of cygwin folder at each step [05:14] sounko: like completely stock > zip > install some packages > zip [05:14] sounko: then if i ran into these kind of issues i'd just re-extract the cygwin folder [05:15] Asmor: Well, I suppose that's one solution. :) [05:15] towski has joined the channel [05:16] sounko: cygwin feels more like a toy so i never took it that seriously :( sorry [05:18] eboyjr has joined the channel [05:18] levity_island has joined the channel [05:19] tmzt: you can use the native node.exe on cygwin though [05:19] tmzt: cygwin is useful for a shell, etc. but not always the best strategy for an applicaiton requiring performance, like node [05:19] markdaws has joined the channel [05:19] levity_island has joined the channel [05:19] Asmor: Was just checking the node homepage, and noticed that 0.5.2 is listed as unstable. That might explain the problem partially. [05:20] Asmor: 0.4.10 is the last stable release [05:20] sounko: as tmzt said [05:20] sounko: you can build 0.4.9 which will just make a node.exe [05:20] sounko: in the sbin folder [05:20] sounko: then you can replace that exe with the 0.5.2 .exe on the website [05:21] sounko: because all cygwin does is allow you to use the shell rather than cmd [05:21] ryah has joined the channel [05:21] Asmor: Make completed successfully on 4.9... thanks, sounko! [05:22] sounko: np, you should see a node.exe in the usr/sbin folder [05:22] jmoyers has joined the channel [05:22] sounko: that's all the cygwin shell is running when you type node blah.js [05:22] sounko: so you should be able to replace the exe [05:22] Asmor: Thanks for the help guys [05:24] _david has joined the channel [05:27] dexter_e has joined the channel [05:27] MooGoo: why are cats always stealing my chair catb0t [05:27] catb0t: stealing millions of times to be had always [05:29] hassox has joined the channel [05:35] zackattack has joined the channel [05:36] gg777 has joined the channel [05:39] dexter_e_ has joined the channel [05:45] CIA-65: libuv: 03Ryan Dahl 07master * re9bee51 10/ (3 files): add spawn benchmark - https://github.com/joyent/libuv/commit/e9bee5131a9de4fe9854b13dfc0ab3972dfbdb3f [05:48] gg777 has joined the channel [05:50] markdaws_ has joined the channel [05:53] gg777 has joined the channel [05:54] neoesque has joined the channel [05:58] loob2 has joined the channel [05:59] boaz has joined the channel [05:59] admc has joined the channel [06:00] mrtazz has joined the channel [06:04] gg777 has joined the channel [06:04] fangel has joined the channel [06:11] brownies has joined the channel [06:13] Me1000 has joined the channel [06:14] Me1000 has joined the channel [06:19] butu5 has joined the channel [06:19] mwhooker_ has joined the channel [06:22] gg777 has joined the channel [06:26] csanz has joined the channel [06:31] ohtogo has joined the channel [06:32] samsonjs has joined the channel [06:32] hassox has joined the channel [06:34] gg777 has joined the channel [06:38] boaz has joined the channel [06:41] Electroso has joined the channel [06:47] ngs has joined the channel [06:51] zdwalter has joined the channel [06:52] zdwalter: hi all [06:52] indutny: hi [06:52] gg777 has joined the channel [06:52] shanebo has joined the channel [06:52] zdwalter: any one using nodejs for serious server development? [06:53] pquerna: i'm not sure what you mean [06:53] pquerna: please define serious [06:53] seivan has joined the channel [06:53] jesusabdullah: please define server development ;) [06:53] pquerna: i talk to cassandra with it; mjr processes audio with it. those seem like !html5-games [06:54] jesusabdullah: zdwalter: People are using node.js in the "real world" if that's what youre asking. [06:54] indutny: zdwalter: YES [06:54] jesusabdullah: zdwalter: browserling.com, nodejitsu.com and learnboost.com all use it internally, a *lot* [06:54] jesusabdullah: if not exclusively [06:54] zdwalter: yes, real world~ [06:55] jesusabdullah: github uses it to serve up tarballs, last I checked [06:55] jesusabdullah: Yahoo was using it for something, not sure what, but they definitely had some node guys working for them at one point in time [06:56] zdwalter: I am using it for a back-end service. but it runs out of memory every few hours [06:56] jesusabdullah: It's not the sort of thing people tend to pick if they're conservative, want something 400 provens, but plenty of people are using it for real-world stuff without too much difficulty [06:56] zdwalter: trying to find out why, with node-inspector [06:57] pquerna: zdwalter: what version; anything its doing heavily? [06:57] pquerna: zdwalter: out of memory = out of heap or somehting else? [06:57] clifton: i wrote a node app to handle uploads and do image manipulation for my company [06:57] clifton: had some processes up for months without any noticable leaks [06:58] zdwalter: v0.4.10 [06:58] zdwalter: heavy work [06:59] zdwalter: FATAL ERROR: JS Allocation failed - process out of memory [07:00] butu5 has joined the channel [07:00] pquerna: can you share more specifically what its doing? Are you using any c++ extensions? have a in-memory cache? [07:02] jesusabdullah: What kinda chip you got in there, a Dorito? [07:02] jesusabdullah: (j/k) [07:02] zdwalter: it's a front-end for redis, and a task-dispatcher [07:03] zdwalter: doesn't use in-memory cache, I think [07:03] pquerna: which redis client? [07:03] pquerna: there have been leaks in some of them iirc [07:03] pquerna: (but I don't use redis+node much) [07:03] zdwalter: I am doing stress test for each interface [07:03] zdwalter: hiredis + redis [07:04] saschagehlich has joined the channel [07:05] pquerna: the only redis client i'd trust right now is mjr's... i think [07:05] DJBouche has left the channel [07:05] davidbanham has joined the channel [07:06] pquerna: https://github.com/mranney/node_redis [07:06] zdwalter: let me check [07:06] overra has joined the channel [07:07] clifton: i use that library in production [07:07] clifton: its good [07:07] gg777 has joined the channel [07:08] clifton: never really did any load testing, though, but then again it doesnt get hit any more often than 10 times per second on each process [07:08] pquerna: ideally though you could heap profile it and just see what the source is [07:08] eboyjr has joined the channel [07:08] zdwalter: hope so [07:08] indutny: pquerna: what is the state of sni pull request [07:09] zdwalter: but heap profile only tell 'String' use a lot memory [07:09] pquerna: didn't get to it today [07:09] indutny: ok [07:09] pquerna: midnight now, should sleep [07:09] indutny: :) [07:10] zdwalter: 8 [07:11] _david has left the channel [07:12] Nuck: Trying to set up temporary files via uploads right now as an Express middleware. [07:13] Nuck: I have 2 lines: (1) create an fd (2) pipe the body to it [07:13] Nuck: But how do I create a temp file again, is it just .unlink() on it? [07:16] clifton: how long are you keeping the file around [07:16] Nuck: as long as I need to. [07:16] Nuck: Or wait [07:16] Nuck: Can't use unlinking, now that I think about it :V [07:16] Nuck: nevermind lol [07:17] gg777 has joined the channel [07:17] clifton: just make a writestream and pipe the upload to it [07:17] Nuck: 'tis what I do [07:17] Nuck: I think I'll just set a timeout of like half an hour before the upload disappears [07:18] clifton: if you end up with lots of files [07:21] clifton: you could have subdirectories with the name of the timestamp set, then just programmatically delete old directories after X many minutes [07:24] zackattack_ has joined the channel [07:26] Ginlock has joined the channel [07:26] tar_ has joined the channel [07:27] __tosh has joined the channel [07:28] Xano has joined the channel [07:28] mwhooker_ has joined the channel [07:28] skohorn has joined the channel [07:29] gg777 has joined the channel [07:29] hij1nx has joined the channel [07:31] ohtogo has joined the channel [07:33] zanes has joined the channel [07:34] squeese has joined the channel [07:35] curtischambers: @ryah you around? [07:37] brownies has joined the channel [07:38] idefine has joined the channel [07:40] gg777 has joined the channel [07:42] dguttman has joined the channel [07:42] apalmer_ has joined the channel [07:45] Nexxy has joined the channel [07:46] dguttman has joined the channel [07:50] jensn has joined the channel [07:53] wenbert has joined the channel [07:57] jensn has joined the channel [07:59] amiller has joined the channel [07:59] McMAGIC--Copy has joined the channel [08:01] scas_ has joined the channel [08:02] levi501d has joined the channel [08:03] zomgbie has joined the channel [08:03] harthur has joined the channel [08:07] SamuraiJack has joined the channel [08:07] Nuck: What's the average cheapo rental with BART nearby? [08:08] versicolor has joined the channel [08:13] japj has joined the channel [08:13] igl: Nuck: damn hippies at the sf airport gave me a baby blue crysler cruiser :C [08:14] Nuck: iglFucking hippies, man [08:16] fly-away has joined the channel [08:18] c_t has joined the channel [08:22] mscdex: catb0t is the master of the internets [08:22] catb0t: internets ARE SPLITTIN master [08:23] mscdex: one thread to rule them all! [08:24] __doc__ has joined the channel [08:24] ph^ has joined the channel [08:25] mikeal has joined the channel [08:25] SubStack: eboyjr: a spaceship console eh? [08:26] eboyjr: SubStack: Yeah, since it represents the massive challenge that is Paws [08:26] eboyjr: I see lots of buttons and gizmos [08:27] overra has joined the channel [08:28] curtischambers has joined the channel [08:32] digiwano has joined the channel [08:33] krazyivan has joined the channel [08:35] Henke has joined the channel [08:36] Henke: Hello, when I tried to compile node under Cygwin, I first had the exception could not find a cxx compiler. After a rebase, that error is gone but now I g [08:36] Henke: et could not configure a cxx compiler [08:37] Henke: somebody know a solution to this? [08:37] Nuck: mscdex: Who cares about catb0t, it's all about the isaacs-bot. [08:37] catb0t: isaacsbot mscdex [08:37] Nuck: yes, good on you catb0t, agree with me [08:37] catb0t: agree , but ve a big problems with it though [08:37] eboyjr: ;p; [08:37] eboyjr: lolk [08:38] Nuck: SubStack++ [08:38] v8bot_: Nuck has given a beer to SubStack. SubStack now has 3 beers. [08:38] catb0t: SubStack now has 1 beer [08:38] Nuck: Wonderful thing, that isaacs bot is :P [08:39] mscdex: catb0t knows nothing of npm [08:39] catb0t: nothing else [08:39] gozala has joined the channel [08:39] mscdex: see [08:40] eboyjr: .. require('fs') [08:40] catb0t: ReferenceError: require is not defined [08:40] adrianolaru has joined the channel [08:41] secoif_ has joined the channel [08:42] japj: Henke: have you installed gcc4-g++ in cygwin? [08:42] Henke: yeah, checked twice [08:44] mwhooker_ has joined the channel [08:44] japj: hmm are you tring to compile 0.5.x btw, since v8 build in latest master github is currently broken in cygwin. you might want to give mingw a try (that works ok for me) [08:46] Henke: I used the latest build as of yesterday to install, so probably 0.5.2 [08:46] japj: node on windows is currently worked heavily on as part of the 0.5 tree. if you don't need to actually build it, you can also grab the official windows binary from the nodejs download page [08:47] Henke: ah so they got a binary now? Last time I checked (a few months ago) this was the only way to install that I found [08:47] japj: but BEWARE 0.5.x is under heavy construction on windows, so not everything is working yet [08:48] japj: for 0.5.2+ they are building official windows binaries [08:48] blaenk: yeah I read (supposedly) that even microsoft was gonna help with node dev for windows [08:48] japj: yes they are [08:48] blaenk: maybe I read wrong :< oh sweet :D [08:48] Henke: ok tyvm, will check that out [08:48] shanebo: any mongohub users here? [08:49] Nuck: shanebo: MongoHub? Fraid not [08:49] Nuck: I use MongoHQ occasionally lol [08:50] shanebo: trying to run a modifier ($rename) on a key and it's not working [08:50] japj: blaenk: igorzi (Microsoft) is working with bert belder on the libuv port for windows I believe (libuv is the platform abstraction layer being developed for node) [08:52] blaenk: ohh sweet. I did see a cia message by igorzi on libuv commit :) [08:52] mscdex: wind'ohs [08:54] zackattack has joined the channel [08:57] Henke: I got one question about the windows binary, is it possible to use NPM from it? I am trying to use socket.io (library for websockets) [08:57] japj: no, sry npm is not supported yet [08:58] japj: but there is an alternative on windows for the moment [08:58] Henke: what's that alternative? [08:58] japj: get https://github.com/japj/ryppi (it is a "really super scaled down featureless node package manager for node" written in python) [08:58] Henke: ok thanks [08:59] japj: it doesnt do everything npm does, but it can install a module and all its depedencies [09:00] levity_island has joined the channel [09:00] japj: if you find any bugs/problems, feel free to make an issue or fork the project and make a patch ;) [09:00] webben has joined the channel [09:00] Nuck: ... What happens if I try to createWriteStream to a file that does not yet exist? [09:01] levity_island has joined the channel [09:01] Nuck: err [09:01] Nuck: To a file in a folder that doesn't exist [09:01] Nuck: file works fine, folder that doesn't exist, though? [09:02] Nexxy has joined the channel [09:03] japj: I dont know, but there is an 'error' event on the writestream I see [09:03] japj: http://nodejs.org/docs/v0.5.2/api/streams.html#writable_Stream [09:03] japj: does it fire for you? [09:04] Nuck: idk I'm asking so I know whether to check if the folder I need exists ;) [09:06] lmorchard has joined the channel [09:07] japj: as far as I can tell, it will not magically create the directory for you. it'll just fire the error event [09:08] Henke: does the python npm only work with python 2.7.2? doesn't work on my 3.2.1 [09:10] madsleejensen has joined the channel [09:10] japj: ah, I run it with python 2.6.x.. what error do you get? [09:10] Henke: error on this row print "installing %s into %s" % (url, destPath) [09:11] Henke: should probably be able to fix that quite easy, or just remove that row :D [09:11] japj: ah, I think print changed to a function somewhere in python 3 [09:12] mhausenblas has joined the channel [09:12] hij1nx has joined the channel [09:12] Henke: but commenting that out, there are more errors like on this: except OSError, e: [09:12] Henke: so I guess Ill go install 2.6 or 7 [09:12] japj: I'm installing python 3.2.1 now and I'll have a go at fixing those (thanks for the report ;) [09:12] Henke: ok ty :) [09:13] yozgrahame has joined the channel [09:16] adrianolaru has left the channel [09:19] NetRoY has joined the channel [09:20] simenbrekken has joined the channel [09:22] zackattack has joined the channel [09:22] Ans5i has joined the channel [09:23] zomgbie has joined the channel [09:24] AAA_awright: Nuck: Creating a file in a non-existant directory gives permission denied [09:27] mehlah has joined the channel [09:28] shanebo: hey guys does connect's bodyParser do any security parsing? [09:29] shanebo: do I still need to sanitize my post vars? [09:30] StepanKuzmin has joined the channel [09:31] k1ttty has joined the channel [09:33] indutny: shanebo: I think it isn't doing any security checks [09:34] indutny: shanebo: but that depends on what you think security checks are [09:34] shanebo: well i'm using mongoose and wondering if i need to run post vars through sanitation, escaping etc. [09:38] captain_morgan has joined the channel [09:39] chjj has joined the channel [09:40] leonh has joined the channel [09:40] lng has joined the channel [09:42] gde33 has joined the channel [09:44] kjeldahl has joined the channel [09:44] butu5 has joined the channel [09:45] indutny: shanebo: I think no [09:46] indutny: mongoose should do this work fine [09:46] shanebo: k [09:46] indutny: because it's orm [09:46] shanebo: that's what i was thinking [09:50] samsonjs has joined the channel [09:50] captain_morgan has joined the channel [09:51] StepanKuzmin has joined the channel [09:53] saschagehlich: did anyone get socket.io websockets connection running through haproxy? [09:53] sriley: yea [09:54] stephank has joined the channel [09:54] sriley: saschagehlich: what problem do you have? [09:54] saschagehlich: sriley: simply that websocket connections do not seem to get through [09:55] saschagehlich: let me show you my haproxy config, one moment [09:55] saschagehlich: https://gist.github.com/f4a4a5be463fe609c1d7 [09:55] lng: hi! who to install https://github.com/Slashed/daemon.node? [09:57] lng: `node-waf configure build` failed [09:57] sriley: have you tried running ha proxy in debug mode -d iirc [09:57] gozala has joined the channel [09:58] sriley: should show the request coming in on stdout and show how its being handled [09:58] lng: `node-waf configure build` failed >>> http://pastie.org/private/1levt6zlekn9grvgvcysxq [09:59] StepanKuzmin has joined the channel [10:01] saschagehlich has joined the channel [10:02] saschagehlich: sriley: re [10:02] japj: lng: how did you install node? I see you have /opt/node-v0.4.10 but also /root/local/bin directories? [10:03] japj: lng: could it be that you are running as a normal user and can not reach part of 'root' owned directories? [10:04] seivan has joined the channel [10:04] StepanKuzmin has joined the channel [10:06] lng: japj: I have compiled it from sources [10:06] lng: I run it as root [10:06] japj: lng: did you use configure --prefix=~/local & build as root or as normal user? [10:07] markwubben has joined the channel [10:07] lng: ./configure --prefix=$HOME/local/node [10:07] lng: as root [10:08] lng: japj: Hello World app works [10:08] japj: lng: what is /opt/node-v0.4.10 then? [10:08] lng: japj: this is where I have extracted the archive [10:09] lng: before compilation [10:09] StepanKuzmin has joined the channel [10:09] markwubben has joined the channel [10:09] japj: ah, the daemon node code? [10:09] lng: yes [10:09] lng: source code [10:09] lng: ah [10:09] lng: sorry [10:10] japj: that was confusing, I thought you had multiple installations of node on different places [10:10] lng: source code of Node [10:10] lng: nope [10:10] lng: japj: actually, I have not downloaded daemon node code at all [10:11] markwubben has joined the channel [10:12] japj: lng: ah, you first need to fetch the code at https://github.com/Slashed/daemon.node to a directory and in *that* directory type 'node-waf configure build' [10:13] markwubben has joined the channel [10:13] jp_ has joined the channel [10:13] StepanKuzmin has joined the channel [10:14] markwubben has joined the channel [10:16] markwubben has joined the channel [10:17] Nuck: I'm proud of this line of code: `server.use(require('./lib/uploads.js')('/tmp/uploads/'));` [10:17] Nuck: That's right, including require, I have a function which returns another function which I immediately call, and then that reutnrs another function which is passed to server.use [10:18] Nuck: But the best part is that *it works* [10:18] zackattack has joined the channel [10:18] Ramosa has joined the channel [10:19] saschagehlich: sriley: did you have a look at my config? [10:20] Nuck: That's right, I did FUNCTIONCEPTION [10:20] sriley: yea it looks ok from what i understand, pretty much the same as mine, what does haproxy tell you in debug mode [10:21] StepanKuzmin has joined the channel [10:23] hasta84 has joined the channel [10:24] saschagehlich: sriley: just all the other requests but I can't find a /socket.io/websocket request [10:25] saschagehlich: oh wait [10:25] lng: japj: I see. should I fetch it to any location? is there command to fetch it with npm? [10:26] StepanKuzmin has joined the channel [10:27] lol123 has joined the channel [10:27] sriley: in debug mode you should see all the requests and how they are handled, so if you cant see it then its not being requested :) [10:27] saschagehlich: sriley: https://gist.github.com/54dd3f8add01b3b486dd [10:27] saschagehlich: and that's all I see [10:28] sriley: i mean run haproxy in debug mode [10:28] japj: lng: you could do 'git clone https://github.com/Slashed/daemon.node.git' then cd daemon.node and then the node-waf configure build I think [10:28] saschagehlich: sriley: that's the ouput of haproxy running with -d [10:29] quackslike has joined the channel [10:29] lng: japj: done [10:29] ttpva has joined the channel [10:29] cha0s has joined the channel [10:29] cha0s has joined the channel [10:30] lng: japj: have you ever run node.js appliactions as daemons? [10:30] japj: lng; no [10:30] _jhs has joined the channel [10:32] bazookatooth has joined the channel [10:34] liquidproof has joined the channel [10:34] Jalava has joined the channel [10:34] lng: japj: thanks for your help [10:35] StepanKuzmin has joined the channel [10:37] rileys has joined the channel [10:37] Nuck: How hard is it to use phantomJS to test an API or something? [10:37] skohorn has joined the channel [10:37] Nuck: I basically just want a stateful cURL [10:38] rileys has joined the channel [10:39] saschagehlich: sriley: could you give me your config file? [10:39] gozala has joined the channel [10:41] uchuff has joined the channel [10:42] sriley: https://gist.github.com/0654aa24afeeae10d81c [10:42] saschagehlich: which haproxy version are your running, sriley? [10:43] lng: japj: can I remove daemon.node after install? [10:44] japj: lng: I'm not sure what you mean. if you don't use it, you can remove it ofcourse. [10:44] jbpros has joined the channel [10:44] saschagehlich: sriley: yeah, finally got it working [10:45] sriley: HA-Proxy version 1.4.8 2010/06/16 [10:45] saschagehlich: the problem was that I set default_backend before doing the filtering stuff [10:45] sriley: what was the issue? [10:45] sriley: ah [10:45] saschagehlich: so it always uses that backend instead of filtering first [10:46] sriley: would have thought it would still filter due to that being the default... so if it doent find a filter use that :) [10:46] lng: japj: I have fethced daemon.node to my home directory, then I run `node-waf configure build` and I thought it should compile and copy its files to node modules dir [10:46] saschagehlich: yeah that's what I thought as well... whatever, it works :) thx sriley [10:47] ngs has joined the channel [10:48] japj: lng: I havent used daemon.node myself, so I don't know exactly how other people use it. 'node-waf configure build' does not install anything though [10:49] japj: lng: you will end up with a daemon.node that you can use with require("./daemon"), so if you copy daemon.node to wherever you need it then you can probably remove the daemon.node sources [10:49] FireFly has joined the channel [10:49] jorenl_ has joined the channel [10:50] lng: japj: thanks [10:50] boehm has joined the channel [10:51] jorenl_: Heyall! I'm really new to node. I made an app with Socket.IO, and I need some kind of room specific storage. Would it be ok to use a global object for that? ( roomStorage[room] ) [10:52] hojberg has joined the channel [10:52] pt_tr has joined the channel [10:55] guidocalvano has joined the channel [10:55] H4ns`` has joined the channel [10:55] jbpros has joined the channel [10:56] akshatj has joined the channel [10:58] lng: how does node require work? [10:58] lng: say I have dir like daemon.node [10:59] lng: should I remove .node from it for require?? [11:01] Metal3d has joined the channel [11:01] JoshC1 has joined the channel [11:02] guidocalvano has joined the channel [11:05] lng: japj: it could not be included [11:05] lng: japj: I used absolute and reletive paths [11:08] theCole has joined the channel [11:09] japj: lng: I dont know either, sry [11:11] gg777 has joined the channel [11:14] gwjjeff has joined the channel [11:14] dexter_e has joined the channel [11:16] fairwinds has joined the channel [11:19] theCole has joined the channel [11:21] dexter_e has joined the channel [11:22] Nexxy has joined the channel [11:23] _jhs has joined the channel [11:25] davidbanham has joined the channel [11:26] unlink has joined the channel [11:26] unlink has joined the channel [11:28] adrianolaru has joined the channel [11:31] jarek has joined the channel [11:31] jarek has joined the channel [11:38] jorenl_: what could be causing FATAL ERROR: JS Allocation failed - process out of memory, with only 2 clients connected through socket.IO? :/ [11:39] jorenl_: I have a global roomStorage object, but I don't think I'm pushing in too much [11:41] skm has joined the channel [11:43] xerox: jorenl_: http://nodejs.org/docs/v0.4.8/api/all.html#process.memoryUsage [11:43] jorenl_: xerox: thanks, reading right now [11:44] sounko has joined the channel [11:44] adrianolaru has left the channel [11:45] CrisO has joined the channel [11:46] quackslike has joined the channel [11:47] meelash has joined the channel [11:48] jorenl_: xerox: added it to my code to see what happens. thanks. [11:49] loveshine has joined the channel [11:49] loveshine: hi, is there something like this http://www.phantomjs.org/ but for nodejs? [11:50] draevor has joined the channel [11:52] simenbrekken has joined the channel [11:52] xerox: loveshine: browserling? [11:52] EvRide has joined the channel [11:56] loveshine: no that seems to be for testing what something looks like in different browsers [11:56] bazookatooth has left the channel [12:04] booo has joined the channel [12:05] markwubben has joined the channel [12:06] japj: loveshine: maybe https://github.com/tmpvar/jsdom ? [12:07] ngs has joined the channel [12:08] christophsturm has joined the channel [12:09] jarek has joined the channel [12:09] jarek has joined the channel [12:15] gozala has joined the channel [12:16] igl1 has joined the channel [12:17] lng: why does npm install modules in current directory? [12:17] wao: for better projects managment [12:17] lng: strange [12:18] lng: say I need certain module [12:18] arnee has joined the channel [12:18] wao: npm install -g [12:18] wao: for wide-system use [12:18] lng: shouldn't it be installed in $HOME/local/node? [12:18] lng: -g flag? [12:20] japj: lng: http://blog.nodejs.org/2011/03/23/npm-1-0-global-vs-local-installation/ [12:20] lng: cheers! [12:22] jbpros has joined the channel [12:22] hojberg has joined the channel [12:25] nibblebot has joined the channel [12:25] pastak has joined the channel [12:26] ph^ has joined the channel [12:28] sounko has joined the channel [12:30] Nexxy has joined the channel [12:30] temp01 has joined the channel [12:31] jensn_ has joined the channel [12:32] slickplaid: in case anyone missed it: http://www.quora.com/How-does-a-programmer-become-a-brogrammer [12:35] chjj: oh wow [12:35] chjj: why am i not a brogrammer? [12:35] chjj: i didnt know this was an option [12:39] jomoho3 has joined the channel [12:40] skm has joined the channel [12:40] michaelhartau has joined the channel [12:46] hlindset has joined the channel [12:46] maushu has joined the channel [12:47] tuhoojabotti: yo bro.. grammer [12:47] tuhoojabotti: hihi [12:50] chjj: lets get some brotein [12:51] chjj: i thin gcc has a brotein compiler [12:51] srikanth has joined the channel [12:53] topaxi has joined the channel [12:54] blup has joined the channel [13:03] Bwen has joined the channel [13:04] andrewfff has joined the channel [13:05] lng: 'Checking for node path : not found' - do I have to fix it? [13:06] lng: how do I get info on package with npm? [13:07] k1ttty has joined the channel [13:07] kriszyp has joined the channel [13:08] yept has joined the channel [13:08] wao: npm info package [13:08] wao: sometimes is npm help faster [13:08] lng: tnx [13:12] sourcode has joined the channel [13:17] ceej has joined the channel [13:18] synkro has joined the channel [13:18] michaelhartau has joined the channel [13:22] saschagehlich: in which version got require.paths removed? [13:23] hlindset has joined the channel [13:23] hlindset has joined the channel [13:24] meelash has joined the channel [13:24] japj: 0.5.2 [13:24] japj: https://github.com/joyent/node/wiki/ChangeLog [13:25] saschagehlich: thanks [13:27] odie5533 has left the channel [13:31] arnee has joined the channel [13:33] aconbere has joined the channel [13:33] WrErase has joined the channel [13:36] jbpros has joined the channel [13:36] markwubben has joined the channel [13:43] ale_ has joined the channel [13:44] madsleejensen has joined the channel [13:44] Cromulent has joined the channel [13:50] SuMarDi has joined the channel [13:51] ph^ has joined the channel [13:51] edude03: Morning node guys :P [13:52] seivan has joined the channel [13:53] ivaldi has joined the channel [13:53] edude03: So I wrote a php web app I want to write a chat system for, my only question is then, can I run node (and socket.io) on a difference port than the web app (port 80)? [13:53] TheJH_phone has joined the channel [13:55] ekes: lol was the node.js example always 1337? [13:55] ekes: http://nodejs.org/ [13:55] ekes: edude03: ^ hello world example front page. [13:55] japj: nope, ryan recently changed ;) [13:55] ekes: Thought I didn't remember it. [13:56] TheJH_phone has joined the channel [13:56] TheJH_phone has joined the channel [13:56] TheJH_phone has joined the channel [13:56] TheJH_phone has joined the channel [13:57] edude03: ekes: Thanks I saw that, but most examples of socket.io seem to have socket.js served from node [13:57] edude03: So I didn't know if that was a requirement [13:57] TheJH_phone has joined the channel [13:57] TheJH_phone has joined the channel [13:58] edude03: like this for example http://socket.io/ [14:00] ekes: s/80/1337/ [14:01] c4milo1 has joined the channel [14:03] edude03: Hmm so that will work, and I won't have to worry about firewall issues ? [14:04] ekes: Ah. Naturally. You need to tell the client to go to that port; and be able to get there. Go high, or go common. [14:05] edude03: Yeah I wanted to avoid firewall issues by having both run over 80, but then I'd have to reverse proxy on the server side [14:05] McMAGIC--Copy has joined the channel [14:08] sounko has joined the channel [14:08] WrErase has joined the channel [14:08] bingomanatee has joined the channel [14:10] thalll has joined the channel [14:12] sriley: edude03: slap haproxy infront of it [14:12] hij1nx has joined the channel [14:13] edude03: I think nginx can do it as well [14:13] dexter_e has joined the channel [14:13] sriley: nginx cant handle websockets [14:13] xerox: is there a way to get the stack trace up until a certain line in your own code [14:14] alnewkirk has joined the channel [14:14] edude03: Sigh : / [14:14] sriley: ive got a similar haproxy>nginx>node set up [14:14] xerox: or some information about the caller of a function, like its name, or line number [14:14] sriley: its fairly simple to set up tbh [14:15] edude03: Well I'm still going to look for a simpler solution because I think this stack is getting out of control for what feels like a simple app [14:15] edude03: That I probably could have just developed in node but whatever [14:16] edude03: sriley: Want to tell me a but about your setup though :) [14:16] sriley: well its best to put node behind nginx anyway for security since node is still fairly new it could be susceptible to malformed headers etc [14:16] ale_: Hello, I am trying to make something like the facebook notifications, with real time and I am using socket.io. How can I make that with out crashing the MySQL database? I read something about cached memory, but how's that?? [14:17] sriley: and haproxy is a good load balancer that can just bypass nginx for the socket communication :) [14:17] sriley: https://gist.github.com/0654aa24afeeae10d81c is my haproxy setup [14:18] bazookatooth has joined the channel [14:18] bazookatooth: how can i make a node daemon restart itsself conditionally [14:18] bazookatooth: or, rather, can i? [14:19] pdonald: xerox: new Error().stack [14:19] edude03: sriley: Do you mind if I bother you to help me get it setup later? [14:19] xerox: pdonald: great [14:19] pdonald: nginx can handle websockets [14:19] sriley: depends on if im around [14:20] sriley: pdonald: you sure, websockets break 1.0 protocol, nginx used to use that for internal communication [14:20] pdonald: http://www.letseehere.com/reverse-proxy-web-sockets [14:20] edude03: pdonald: I was just reading that :P [14:20] mrsrikanth has joined the channel [14:21] sriley: oh if you recompile it with that, i decided to just slap haproxy in instead [14:22] edude03: I'd like to keep the number of deps low since I'll have to manage this server in production myself :/ [14:22] ohtogo has joined the channel [14:22] edude03: having redis in this stack is already worrisome :P [14:24] dexter_e: /var/log/node.log is the default log location ? [14:24] maushu: Is it possible to use node-waf in windows? [14:25] dexter_e: are there multiple logs? or just /var/log/node.log ? [14:25] sriley: off topic i love how on those silicone packs they put in to absorb water say "throw away, do not eat" <- cos i eat everything i dont throw away :/ [14:26] maushu: sriley, but... but... they're tasty! [14:27] ale_: Hello, I am trying to make something like the facebook notifications, with real time and I am using socket.io. How can I make that with out crashing the MySQL database? I read something about cached memory, but how's that?? [14:28] edude03: sriley: That's always made me laugh as well :P [14:29] threecreepio has joined the channel [14:31] jensn has joined the channel [14:32] igl has joined the channel [14:33] ale has joined the channel [14:37] Corren has joined the channel [14:38] CrisO has joined the channel [14:39] sveisvei has joined the channel [14:39] CrisO has left the channel [14:41] aconbere has joined the channel [14:41] kriszyp has joined the channel [14:42] liquidproof has joined the channel [14:43] bazookatooth has joined the channel [14:43] bnoordhuis has joined the channel [14:47] boaz has joined the channel [14:50] seivan has joined the channel [14:53] dsirijus has joined the channel [14:54] ditesh|cassini has joined the channel [14:56] galaxywatcher has joined the channel [14:57] thinkt4nk has joined the channel [14:57] hasta84: Hey there, I am trying to debug my native module and was wondering where my outputs goes? I tried cout and printf, but get nothing :( [15:02] bnoordhuis: hasta84: printf and friends should work [15:02] bnoordhuis: is your app daemonized? [15:03] hasta84: no, it's not daemonized [15:03] eastender has joined the channel [15:03] hasta84: still printf gives me nothin... [15:04] boaz: I recompiled my node at v0.5.3pre, and every thing is broken, so I checked out v0.4.8 but seem to be unable to recompile successfully. recompilation seems to work, but then my node is still at v0.5.3pre. Any ideas? [15:04] bnoordhuis: hasta84: maybe fprintf to a log file? [15:04] bazookatooth: console.log [15:04] bnoordhuis: hasta84: if all else fails, put gdb on it [15:05] necrodearia has joined the channel [15:06] bnoordhuis: boaz: when you check out 0.4.x, do a `make distclean && ./configure && make install` [15:06] maushu: "This type of response MUST NOT have a body. Ignoring data passed to end()." [15:06] maushu: What the hell is this. [15:06] jarek has joined the channel [15:06] boaz: bnoordhuis: no, I didn't do distclean [15:06] boaz: I'll try that [15:06] boaz: interesting, I didn't have to do that for 053pre [15:06] hasta84: thanks, I try [15:07] bnoordhuis: maushu: you're sending a response body in a HEAD request [15:07] bnoordhuis: s/in/in reply to/ [15:07] maushu: Hmm, bad chrome, bad! [15:07] maushu: Do not send head requests. [15:08] Raynos has joined the channel [15:09] maushu: Hmm, it didn't send any more. Just the first time? [15:09] freewil has joined the channel [15:09] bnoordhuis: maushu: a response with a body and status code 100-199, 204 or 304 will also generate that message [15:09] freewil has joined the channel [15:09] maushu: Well, the response was always 200. [15:10] maushu: So, chrome sent a head request. [15:10] bnoordhuis: maushu: probably a ping from chrome to check for staleness [15:10] NegativeK has left the channel [15:11] iaincarsberg has joined the channel [15:11] bayousoft has joined the channel [15:11] maushu: bnoordhuis, found it: http://www.google.com/chrome/intl/en/webmasters-faq.html#intranet [15:11] maushu: Chrome sends a head request to check for valid website. [15:12] maushu: Just the first time. [15:12] bnoordhuis: right - makes sense, i suppose [15:12] Raynos: Can anyone recommend reading material on CI and node.js ? [15:12] bnoordhuis: ACTION is off to dinner [15:12] Ineentho has joined the channel [15:12] Raynos: How does one update server-side code without taking a server down [15:13] maushu: Raynos, hmm, without using other processes you need to encapsulate all your code, so that you can "unload" it (allow it to be garbage collected) and then load the new code. [15:13] brianc has joined the channel [15:14] Raynos: maushu: Is ther eany reading material [15:14] maushu: Basically, don't use global variables, have a "dispose" function to unhook events and all that. [15:14] maushu: That I know, no. [15:15] maushu: Raynos, but if you are using this for development, there is stuff that restarts the server when it detects changes in code. [15:15] Raynos: maushu: I want to avoid restarting the server [15:15] Raynos: You cant disconnect connected users [15:15] Raynos: but any new connections should use the new code [15:15] maushu: Yeah, then you have to do what i said. [15:16] al3xnull has joined the channel [15:16] maushu: Have code that handles receiving the connections and putting in some array or something. [15:17] maushu: Then code that you want to change that has functions that do stuff. [15:18] maushu: Don't use global variables and have a dispose function to unhook events. [15:18] Raynos: The hard bit is handling socket.io based code [15:18] maushu: Hmm. [15:18] Raynos: HTTP is fine. I would be a pain to safely change code connected to open websockets [15:18] maushu: You need to keep some code unchangeable. [15:19] maushu: Mostly the connection handlers (eg: socket.io). [15:21] makuchaku has joined the channel [15:21] maushu: You can't use "require" for the code you want to unload though, must like... get the code from the file and use the script^H^H^H^H^H^H VM module. [15:21] maushu: http://nodejs.org/docs/v0.5.2/api/vm.html#vm.runInNewContext [15:22] maushu: Raynos, do you trust the code you are going to load? [15:23] mapleman has joined the channel [15:25] jan____ has joined the channel [15:25] jetienne has joined the channel [15:27] boaz: bnoordhuis: So I just finished compilation with make distclean, and I'm still at v0.5.3-pre [15:28] bshumate has joined the channel [15:28] bshumate has joined the channel [15:29] ComfortablyDumb has joined the channel [15:30] al3xnull has joined the channel [15:30] ixti has joined the channel [15:30] brianc has joined the channel [15:33] ComfortablyDumb has left the channel [15:33] k1ttty has joined the channel [15:35] Guest87226 has joined the channel [15:35] ohtogo has joined the channel [15:35] sounko has joined the channel [15:35] eliziario has joined the channel [15:37] ComfortablyDumb has joined the channel [15:42] pandeiro has joined the channel [15:43] fangel has joined the channel [15:44] japj: boaz: I think bnoordhuis is having dinner, [15:45] japj: boaz: what does `git branch` say? [15:45] Corren has joined the channel [15:47] boaz: japj: it says im on (no branch) [15:47] boaz: ... i checked out the 0.4.8 tag [15:47] monokrome has joined the channel [15:48] markwubben has joined the channel [15:48] japj_ has joined the channel [15:51] t|f has joined the channel [15:53] ph^ has joined the channel [15:54] brianseeders has joined the channel [15:56] brianc has joined the channel [15:57] agnat_ has joined the channel [15:58] kevwil has joined the channel [15:59] Fffffsenddfrtdsr has joined the channel [15:59] Fffffsenddfrtdsr has left the channel [16:03] TheJH_phone has joined the channel [16:04] dguttman has joined the channel [16:04] jbrokc has joined the channel [16:04] seivan has joined the channel [16:05] csanz has joined the channel [16:05] Aria has joined the channel [16:06] freewil: does anyone know of an existing package supporting whirlpool? [16:07] brianc has joined the channel [16:08] TheJH_phone: freewil, what is that? [16:09] freewil: hash algorithm [16:09] markdaws has joined the channel [16:11] TheJH_phone: !npm search whirlpool [16:11] jhbot: no results [16:12] Xano has joined the channel [16:13] dsirijus has joined the channel [16:15] mykul has joined the channel [16:16] yhahn has joined the channel [16:17] markdaws has joined the channel [16:18] arlolra has joined the channel [16:19] dgathright has joined the channel [16:20] d0k has joined the channel [16:21] steffkes has joined the channel [16:22] zomgbie has joined the channel [16:23] losing has joined the channel [16:23] jamescarr has joined the channel [16:27] JumpMast3r has joined the channel [16:31] brianc has joined the channel [16:32] NetRoY has joined the channel [16:33] jarek has joined the channel [16:34] bazookatooth has joined the channel [16:35] ag4ve has joined the channel [16:36] brownies has joined the channel [16:37] gg777 has joined the channel [16:37] fyskij has joined the channel [16:37] mscdex: freewil: https://github.com/Sembiance/node-whirlpool [16:38] wookiehangover has joined the channel [16:41] freewil: mscdex, thank you [16:44] kevwil has joined the channel [16:46] chjj: winetricks [16:46] chjj: wow [16:46] chjj: 2nd time in 2 days? [16:46] Cromulent has joined the channel [16:47] mscdex: nodetricks [16:47] mscdex: do it. [16:53] Raynos has left the channel [16:53] clifton: what's a good service for getting an ssl cert for personal use? [16:54] arlolra has joined the channel [16:54] pdonald: startssl.com [16:54] Stythys has joined the channel [16:54] clifton: thank you [17:01] towski has joined the channel [17:02] meandi has joined the channel [17:03] harthur has joined the channel [17:05] kevwil has joined the channel [17:05] eliziario has joined the channel [17:05] confoocious has joined the channel [17:05] confoocious has joined the channel [17:06] seivan has joined the channel [17:07] linuxmintira has joined the channel [17:07] kimico has joined the channel [17:08] huang47_ has joined the channel [17:09] eliziario has joined the channel [17:10] huang47_ has left the channel [17:10] huge has joined the channel [17:11] tar_ has joined the channel [17:11] insulina has joined the channel [17:11] huge has left the channel [17:12] insulina: hello, I am trying to put node.js in godaddy, I put it running and it says "Server running at http://127.0.0.1:8080/" but now I dont know how to acess it, I try mydomain.com:8080 but notting appears [17:13] chjj: insulina, what do you mean by put it in godaddy? [17:13] chjj: you need a real ip or hostname in order to have your domain point to your node [17:14] chjj: 127.x.x.x is just a reserved ip block by ietf for local ips [17:14] jetienne: insulina: listen to 0.0.0.0 and not to 127.0.0.1 [17:15] svenlito has joined the channel [17:16] chjj: insulina, if you have an ip, add it as an A record on godaddy, otherwise you can use a cname, and then listen on port 80 on your node [17:17] arnee has joined the channel [17:17] chjj: dns is evil btw [17:18] whitman has joined the channel [17:19] synkro has joined the channel [17:20] insulina: well I have shell account and a domain name, "fsvieira.com", I just put there the node bin and run the hello world... then go to browser and put fsvieira.com:8080 ... but didnt work, I will try what you said but didnt understand everything [17:20] mscdex: catb0t: hey hey 16k, what does that get you today? [17:20] mscdex: :( [17:20] catb0t: today , i that answer should be a simple bug, somewhere, and you can hot load modules in your server [17:21] chjj: insulina, what are you using to host your node? [17:21] mscdex: insulina: you can just do .listen(8080); and it will listen on all interfaces [17:22] chjj: are you hosting it yourself or using amazon, slicehost, rackpsace, etc, some other vps? [17:22] smtlaissezfaire has joined the channel [17:22] insulina: I am using godaddy [17:23] softdrink has joined the channel [17:23] Swimming_bird has joined the channel [17:23] chjj: godaddy offers vps hosting...? [17:23] insulina: I think so but my account is just linux account with sql and ssh shell [17:24] brolin has joined the channel [17:24] chjj: did they give you your own ip? [17:24] chjj: whoever is hosting you [17:25] chjj: if you can figure out whether you have your own ip, its very simple to set up a domain, add an A record on your domain, and just put your ip there [17:25] dguttman has joined the channel [17:25] FireFly|n900 has joined the channel [17:26] xdamman has joined the channel [17:28] butu5 has joined the channel [17:30] rudolfrck has joined the channel [17:32] insulina: I dont think I have my own ip, it just says server ip, in my account I think I able to add subdomains, and I found something to add a cname, I will try that [17:35] boaz has joined the channel [17:36] c_t has joined the channel [17:36] guidocalvano has joined the channel [17:36] admc has joined the channel [17:36] lo has joined the channel [17:36] unlink has joined the channel [17:36] unlink has joined the channel [17:37] te-brian has joined the channel [17:39] Swimming_bird has joined the channel [17:39] eliziario has joined the channel [17:41] yozgrahame has joined the channel [17:44] saschagehlich has joined the channel [17:45] jerrysv has joined the channel [17:45] dshaw_ has joined the channel [17:46] chjj: insulina: i think you may be misunderstanding, what are you using to host your node? [17:49] Me1000 has joined the channel [17:49] kdng-humanchimp2 has joined the channel [17:50] kdng-humanchimp2: test [17:50] dguttman has joined the channel [17:52] kdng-humanchimp2 has left the channel [17:53] brianseeders has joined the channel [17:56] insulina: chjj: I have a godaddy web hosting account "Hosting - Web - Economy - Linux - EU Region" and domain name "fsvieira.com", using ssh I put the node running listen to port 8080, then I try in browser the link fsvieira.com:8080 but the browser cant connect ... [17:56] kdng-humanchimp has joined the channel [17:56] zanes has joined the channel [17:57] insulina: maybee the port is not open ? [17:57] markdaws_ has joined the channel [17:57] kdng-humanchimp has joined the channel [18:02] hacksparrow has joined the channel [18:03] zackattack has joined the channel [18:03] butu5: insulina: you can do a telnet 8080 [18:04] cccaldas has joined the channel [18:07] al3xnull has joined the channel [18:11] slifty_corsair has joined the channel [18:12] enotodden has joined the channel [18:14] loveshine has joined the channel [18:14] insulina: :D , yes the port was not open, I found one that is open, and it worked, tx a lot [18:16] Dude has joined the channel [18:16] Dude: Hi there! [18:16] enotodden has joined the channel [18:16] Dude: is anybody cool with the express framework? [18:18] ngs has joined the channel [18:18] swaj has joined the channel [18:19] japj: there is an #express channel that you could ask questions [18:20] kdng-humanchimp has joined the channel [18:20] Dude: I know but seems a bit dead [18:20] Dude: I have a very newbie question :D [18:21] kjeldahl has joined the channel [18:21] Dude: I just can't server files from the public/javascript folder [18:22] Dude: but the css in public/stylesheet displays fine [18:22] gde33 has joined the channel [18:22] enotodden: Dude: Have you set the right permissions on the folder? [18:22] Dude: mhh i didn't touch anything [18:22] Dude: I just let express create the first app [18:23] enotodden: try chmodding the folder to 777 and see what happens.. [18:23] Dude: and tweaked some css and this jade file (kinda of funny but interesting) [18:23] nerdfiles has joined the channel [18:23] kersny has joined the channel [18:23] Dude: mhhh is already read and write enabled [18:24] edude03 has joined the channel [18:24] zackattack has joined the channel [18:25] brainproxy: Dude: but for the right group? [18:25] nerdfiles has left the channel [18:26] telemachus: The directory shouldn't need to be 777, should it? [18:26] blueadept has joined the channel [18:27] kriszyp has joined the channel [18:27] Ans5i has joined the channel [18:27] brainproxy: telemachus: no, but it's a quick way to test [18:28] telemachus: hrm, ok [18:28] brainproxy: maybe there's something going on with process.setuid/setgid [18:29] ercu has joined the channel [18:29] enotodden has joined the channel [18:30] ercu: hi all [18:30] ercu: i changed some code in node.io, but it didn't effect [18:30] ercu: question is, do i need to compile any node module? [18:31] Foxster has joined the channel [18:31] ercu: after i changed the code of course. [18:31] Foxster: Hosting question - are there any managed hosts that 1. support websockets at this point and 2. are in open beta/available? [18:32] brainproxy: ercu: what's the setup look like? where is the code that you changed in relation to how you installed the code / npm package [18:33] Corren_ has joined the channel [18:34] dshaw_ has joined the channel [18:36] ercu: i installed it via npm install -g node.io, i see required js files in my_folder/node_modules/node.io/lib. no binary files is exist. [18:37] guidocalvano has joined the channel [18:37] brainproxy: ercu: installation with -g is different than normal installation; i'm not familiar with node.io, but how are you invoking it? [18:38] amiller has joined the channel [18:38] brainproxy: seems like a global installation would not be affected by changes made to the path you described [18:38] gg777 has joined the channel [18:39] brainproxy: ercu: try this [18:39] brainproxy: which node.io [18:39] tekky has joined the channel [18:40] ercu: brainproxy: i don't know what you mean exactly but i invoke it by regular node code. i just changed a line in a lib js file. see here: https://github.com/chriso/node.io/issues/43 [18:40] m00p has joined the channel [18:41] brainproxy: ercu: the node.io page suggests a global installation and then using a node.io command via the shell [18:41] brainproxy: so I wasn't sure if that's how you're using it [18:41] brainproxy: or if you're doing `require('node.io')` in one of your scripts or what exactly [18:42] marcab has joined the channel [18:42] ercu: yes node.io is run from the shell, and in code i use require('node.io') [18:42] nibblebot has joined the channel [18:43] ercu: but do i have anything to run like "node ./cli.js install -g" command after i change some code? [18:44] ercu: not in my app code, i mean in the module code. [18:44] brainproxy: sorry, phone, brb [18:45] ercu: no problem [18:47] edude03 has joined the channel [18:48] tanepiper has joined the channel [18:48] pr2012 has joined the channel [18:48] pr2012: anyone know a good example of using express2 with cluster? [18:48] kdng-humanchimp has joined the channel [18:49] yozgrahame has joined the channel [18:52] ohtogo has joined the channel [18:52] fyskij has joined the channel [18:53] pandeiro has joined the channel [18:53] Me1000 has joined the channel [18:53] jbpros has joined the channel [18:53] ezmobius has joined the channel [18:53] zackattack has joined the channel [18:53] hacksparrow: Which db do you guys recommend using with Node; MySQL, CouchDB, MongoDB? [18:54] sorensen: depends what your doing [18:55] yozgrahame has joined the channel [18:55] Foxster: Anybody know of a managed host that supports Websockets at this point? [18:55] DrPizza_: Is there any kind of a list of which tests are expected to pass on Windows? [18:56] DrPizza_: I want to validate my own build, but I don't want to be misled by spurious failures. [18:56] temp01 has joined the channel [18:58] ohtogo has joined the channel [18:58] yozgrahame has joined the channel [18:59] hacksparrow: or, let's narrow it down to Couch vs. Mongo. [18:59] thalll has joined the channel [18:59] DrPizza_: mongo is webscale [19:00] DrPizza_: http://www.xtranormal.com/watch/6995033/mongo-db-is-web-scale [19:00] mscdex: catb0t: what is webscale? [19:00] catb0t: webscale because its coffeescript [19:00] mscdex: lulz [19:00] slifty_corsair has joined the channel [19:01] Aria: hacksparrow: Those two are both pretty similar. I know the things Mongo was created with better than Couch, so for debugging, I'd use that myself. Assuming the task I was doing was suited to Mongo. [19:01] jhurliman has joined the channel [19:01] andrewfff has joined the channel [19:01] Aria: MySQL is an entirely different beast, good at different things. [19:02] mscdex: good at relational data! [19:02] DrPizza_: If a test from the tests directory passes, it should just do nothing? [19:02] DrPizza_: print nothing to screen and exit cleanly? [19:02] mscdex: yeah [19:03] DrPizza_: man I have gotto patch this thing to stop fucking with the console [19:03] DrPizza_: turning off quick edit is infuriating [19:03] mscdex: man, 6 minutes and 18 seconds to compile node on cygwin [19:03] mscdex: atrocious [19:03] DrPizza_: including compiling V8 and everything? [19:04] mscdex: yeah [19:04] brainproxy: ercu: okay any luck? [19:04] DrPizza_: on what hardware? [19:04] brainproxy: or you still want some help? [19:04] eigentone has joined the channel [19:04] mscdex: 1 core from q9550 with 512mb on nt4 [19:04] mscdex: :p [19:04] DrPizza_: NT... 4???? [19:04] eliziario has joined the channel [19:04] mscdex: heck yeah [19:05] mscdex: why else am i using cygwin? [19:05] mscdex: ;-) [19:05] ercu: brainproxy: in fact i just want to know if i need any commands to run, after i change some code in a module [19:05] brainproxy: it depends on how the code was installed [19:05] mscdex: i'd gladly use mingw in a heartbeat [19:05] brainproxy: see, if you do a global (-g) install, then the code is in a different place than if you install without -g [19:05] DrPizza_: I need to poke at zlib a little (the zlib project files are stupid and don't bother to compile their assembler routines) and make openssl use zlib, I should have nice VC++ builds working for the entire lot [19:06] DrPizza_: though I'm guessing VC++ 2010 isn't much use for NT4 [19:06] DrPizza_: heh [19:06] brainproxy: e.g. if i'm in /home/me/project [19:06] brainproxy: and in do `npm install express` [19:06] brainproxy: then I'll get code installed in `/home/me/project/node_modules/express` [19:06] brainproxy: whereas if I do a global install [19:06] Swizec has joined the channel [19:06] ercu: thanks! now i know it: ) [19:06] mscdex: yeah i dunno, i dunno what state msvc compatibility is in with node [19:06] mscdex: :S [19:06] brainproxy: it goes in, well for me using nvm it does in [19:06] DrPizza_: mscdex: my fork is mostly working pretty well [19:07] mscdex: i'm not sure even if .net works on nt4 [19:07] DrPizza_: heh [19:07] DrPizza_: why NT4! [19:07] DrPizza_: jesus 15 years old [19:07] mscdex: legacy app [19:07] mscdex: :\ [19:07] brainproxy: /home/me/.nvm/v0.4.10/lib/node_modules/express [19:07] DrPizza_: wow, 15 years old **today** [19:08] DrPizza_: it went RTM 31st august 1996. [19:08] mscdex: today? [19:08] mscdex: it's july [19:08] mscdex: :-D [19:08] brainproxy: ercu: when you're using `require(...)` the idea is that you have it installed "locally" [19:08] saikat has joined the channel [19:08] brainproxy: global is usually associated with tools that expose some commands you'll run in the shell [19:08] DrPizza_: mscdex: er [19:08] eigentone has left the channel [19:08] DrPizza_: mscdex: yes I meant 31st july [19:08] DrPizza_: retail was 24th august [19:09] brainproxy: and so you'll need to modify the code in that lib/node_modules folder, i.e. the location of the global package installation [19:09] eigentone has joined the channel [19:09] DrPizza_: service pack 6a is ten years and 5 days old [19:09] mscdex: yep, i gots me sp6a [19:09] MikhX has joined the channel [19:09] ercu: brainproxy: i have node.io both installed in root/me/node.../node_modules and locally [19:09] ercu: i changed the local one but didn't effect [19:10] mscdex: i could use a newer os, but the legacy app has crappier performance on anything newer than nt4 [19:10] brainproxy: and have did you "invoke" the local one [19:10] mscdex: don't ask me why though [19:10] brainproxy: through the shell command or via `require(...)` [19:10] brainproxy: ? [19:10] DrPizza_: mscdex: er, put legacy app in VM, use something else for actual useful work? [19:10] brainproxy: and *how did... [19:10] mscdex: the legacy app IS in a vm [19:10] ercu: var nodeio = require('node.io'); [19:10] mscdex: heh [19:10] mscdex: i use linux for my node work [19:11] DrPizza_: well I assumed so with only 1 core [19:11] eigentone has left the channel [19:11] eigentone has joined the channel [19:11] brainproxy: ercu: okay, so in the same folder where you have your script [19:11] brainproxy: drop into the repl [19:11] mscdex: i work with node a dedicated core i7 machine, where compile time and speed are much much better [19:11] brainproxy: $ node [19:11] brainproxy: then... [19:12] DrPizza_: mscdex: no doubt. [19:12] brainproxy: > require.resolve('node.io') [19:12] DrPizza_: my core 2 duo is pretty sad alas. [19:12] mscdex: but luckily cygwin performs just good enough to keep up with data from node_pcap [19:13] DrPizza_: what's the situation with getting useful stack traces? [19:13] DrPizza_: how likely is that to happen any time soon? [19:13] kdng-humanchimp has joined the channel [19:13] mscdex: no idea, someone wrote a userland module for it though i think [19:13] mscdex: not for production use though iirc [19:13] DrPizza_: heh [19:14] tristanseifert has joined the channel [19:14] ercu: brainproxy: thanks again! when i change the local one i see the changes now [19:15] brainproxy: ercu: awesome :) [19:16] brainproxy: take a close look at the modules section of node's API documentation [19:16] fyskij has joined the channel [19:16] brainproxy: ercu: http://nodejs.org/docs/v0.5.2/api/modules.html [19:17] boaz has joined the channel [19:18] ercu: yes it's my fault to not read all the docs : ) [19:19] zeade has joined the channel [19:20] ercu: i see that there's a module caching mechanism [19:21] ercu: do you think it is application wide, or system wide? [19:21] idank has joined the channel [19:21] guidocalvano has joined the channel [19:22] themiddleman has joined the channel [19:22] brainproxy: i think it only gets cached within the context of a running process [19:22] juli0w has joined the channel [19:22] brainproxy: ercu: ^^ [19:23] ohtogo has joined the channel [19:23] guidocalvano has joined the channel [19:24] pr2012: I love it when you expect something to be hard, like express+cluster, and then it turns out to be super easy. [19:24] idank: any node libraries out there that implement rate control on a socket? [19:27] yozgrahame has joined the channel [19:27] ezmobius: just shoot me an email at the address i gave you with twhetre to ship. let me ship it and if it costs a lot then i may hit you up for shipping. if its like $10 then ill just take care of it [19:30] jamescarr has joined the channel [19:31] DrPizza_: mscdex: nice, building node on my vps just blew shit up big time [19:31] mscdex: heh why? [19:31] DrPizza_: I think it jus tran out of memory [19:31] DrPizza_: not sure [19:32] DrPizza_: but I'd rather be using cygwin on NT4 at this rate! [19:33] patcito has joined the channel [19:33] DrPizza_: scons: warning: Ignoring missing SConscript 'obj/test/release/SConscript' [19:33] DrPizza_: is that significant? [19:33] DrPizza_: nice [19:33] DrPizza_: pipe: Too many open files y <4MB/s 5! 2d12h 77& 0.47 2x2.3GHz 112MB,57% 9.9GB,35% 2011-07-31 20:33:13 [19:33] DrPizza_: Error: Cannot find master process to attach to! [19:33] DrPizza_: screen just died [19:33] DrPizza_: ugh [19:35] DrPizza_: dammit [19:35] DrPizza_: I only want it on linux to test the behaviour of a unti test [19:36] cccaldas has joined the channel [19:37] shimondoodkin has joined the channel [19:38] stagas has left the channel [19:38] stagas has joined the channel [19:38] MooGoo: ls: build/debug/node_g: No such file or directory [19:38] MooGoo: should I worry about that [19:38] zemanel has joined the channel [19:38] bnoordhuis: MooGoo: no [19:38] MooGoo: k [19:39] bnoordhuis: DrPizza_: you probably need to bump `ulimit -n` [19:39] DrPizza_: bnoordhuis: unlimited =/ [19:40] bnoordhuis: DrPizza_: i'd have a chat with your vps provider then [19:40] shimondoodkin: how to emit events in node 0.5.2 https://github.com/joyent/node/issues/1335 ? [19:40] DrPizza_: bnoordhuis: oh I think it's possible that my swap got disabled/broken in a kernel upgrade [19:41] bnoordhuis: shimondoodkin: you can look up EventEmitter in the global object [19:41] DrPizza_: bnoordhuis: so the system was hitting 128 MB used and then dying hard. [19:41] DrPizza_: yes this looks like it's working better now [19:42] DrPizza_: stupid device name changed [19:42] DrPizza_: so itw as no longer able to mount it sswap [19:42] lo has joined the channel [19:42] DrPizza_: oh god this is slow [19:43] DrPizza_: I just dunno if it's worth paying for more RAM in the VM. [19:43] srid has joined the channel [19:43] srid has joined the channel [19:44] mikey_p has joined the channel [19:45] Ramosa: why can't I sudo npm? "npm: command not found" [19:45] Ramosa: npm alone works just fine [19:46] tristanseifert has joined the channel [19:46] ercu: yes it's same here [19:46] ercu: i don't use sudo with npm [19:46] ercu: i can't* [19:47] Ramosa: well I just read that its recommended at https://github.com/isaacs/npm#readme [19:47] Ramosa: or, at least to run as root [19:48] insin has joined the channel [19:49] DrPizza_: wfm. [19:50] Ramosa: Debian here [19:51] DrPizza_: I'm using ubuntu 11.11 [19:54] zackattack has joined the channel [19:54] tauren has joined the channel [19:54] Ramosa: I did sudo -s [19:54] Ramosa: and now npm alone doesn't work too [19:54] Ramosa: is it because I install npm for the wrong user? [19:55] Ramosa: I just did curl http://npmjs.org/install.sh | sh [19:55] DrPizza_: oh I did apt-get install npm [19:55] Ramosa: I hear that node.js and npm are not quite up to date with Debian aptitude [19:56] Ramosa: whats your node and npm version [19:56] DrPizza_: no, they're not up to date [19:56] DrPizza_: node is 0.4.9 [19:57] DrPizza_: npm ERR! sudon't! [19:57] DrPizza_: npm ERR! sudon't! Running npm as root is not recommended! [19:57] DrPizza_: npm ERR! sudon't! Seriously, don't do this! [19:57] DrPizza_: npm ERR! sudon't! [19:57] Ramosa: v0.5.3-pre here and npm: 1.0.20 [19:58] Ramosa: DrPizza_, how weird when he recommends it himself [19:58] taurenx has joined the channel [19:58] Ramosa: did you install node from aptitude too? [19:58] Ramosa: I just followed https://github.com/joyent/node/wiki/Installation [20:00] gkmngrgn has joined the channel [20:01] wilmoore has joined the channel [20:02] Ramosa: suppose I want to try the aptitude way, I guess there's a lot of cleanup to remove node.js and npm manually? [20:02] RC1140 has joined the channel [20:04] Brentonator has joined the channel [20:04] matomesc has joined the channel [20:04] insulina_ has joined the channel [20:05] mscdex: you generally shouldn't need to use root for npm [20:05] mscdex: afaik [20:05] MooGoo: doesnt it recomend sudo for new versions [20:05] edude03: So, I'm writing a chat app, and I think I'm fundamentally misunderstanding something, so say I'm using socket.io, when a message is received by the server, how do I figure out which client to deliver it to? [20:06] tar_ has joined the channel [20:06] shachaf has joined the channel [20:06] Aikar has joined the channel [20:07] isaiah_ has joined the channel [20:07] MrTopf has joined the channel [20:07] MrTopf has joined the channel [20:08] DrPizza_: your callback should know [20:08] tauren has joined the channel [20:09] clifton: socket.on 'chat_msg', (data) -> [20:09] clifton: [chan, msg] = JSON.parse data [20:09] clifton: socket.get 'info', (err, info) -> [20:09] clifton: if authorize_channel info, chan [20:09] clifton: socket.broadcast.to(chan).emit('chat_msg', chan, info, msg) [20:09] clifton: did something like that [20:09] clifton: for authorization and broadcasting to the right people [20:09] tuhoojabotti: clifton: Pastebin > 3 [20:09] gdusbabek has joined the channel [20:09] clifton: :( [20:09] RC1140 has left the channel [20:09] clifton: was just a few lines [20:09] clifton: k [20:10] edude03: And where'd all the { } go [20:10] edude03: :P [20:10] tuhoojabotti: That's common etiquette, I think [20:10] clifton: npm install coffee-script [20:11] cpojer has joined the channel [20:11] edude03: Huh using coffee script instead of node :o [20:12] tuhoojabotti: edude03: Node isn't a language, ES is! [20:12] tuhoojabotti: :P [20:12] edude03: *s/node/javascipt/g [20:12] clifton: npm install -g coffee-script [20:12] tuhoojabotti: :) [20:12] clifton: coffee app.coffee [20:12] markdaws has joined the channel [20:12] DrPizza_: man [20:12] DrPizza_: v8 is still building [20:12] edude03: I'm distracted sorry :( [20:13] cpojer: hey, is there any way with npm to install the latest master of a package that is on github? [20:13] djw_ has joined the channel [20:13] brainproxy has joined the channel [20:14] tuhoojabotti: cpojer: Clone and make? [20:14] tuhoojabotti: ah [20:14] tuhoojabotti: npm [20:14] tuhoojabotti: Dunno. [20:14] mnaser has joined the channel [20:14] nuba has joined the channel [20:14] cpojer: can I temporarily just replace everything in the node_modules/mypackage folder with master? [20:14] cpojer: or is there anything I'd miss [20:15] liquidproof has joined the channel [20:15] clifton: npm install [20:15] cpojer: sweeet [20:15] muhqu has joined the channel [20:16] edude03: I think I need to learn how node works then :P [20:17] Venom_X has joined the channel [20:18] nibblebot has joined the channel [20:18] blup has joined the channel [20:21] Dantas1 has joined the channel [20:21] cpojer has left the channel [20:22] tristanseifert has joined the channel [20:23] negaum has joined the channel [20:23] Ramosa: mscdex, but check https://github.com/isaacs/npm#readme about sudo [20:24] Ramosa: mscdex, it says "As of version 0.3" .. but 0.3 of what? [20:25] Dantas1 has left the channel [20:29] Isaiah has joined the channel [20:29] DrPizza_: ... still building v8... [20:29] DrPizza_: man [20:29] DrPizza_: I should have configured this to use a .so V8 [20:32] booo has joined the channel [20:33] squeese has joined the channel [20:35] nerdfiles1 has joined the channel [20:36] materialdesigner has joined the channel [20:39] objectiveous has joined the channel [20:39] Sembiance: hrm... mongoose seems like the totally wrong thing to put on top of mongodb. The first thing you appear to have to do to use mongoose is define a schema. ROFL. on top of mongodb, famous for being schema-less [20:40] boaz has joined the channel [20:40] bazookatooth: what is rofl about defining a schema [20:40] nibblebot: managing a schema in your app is much different than hard coding it in your database [20:40] maushu: Would it be better to just loop all properties in a object and insert it? [20:41] Sembiance: https://github.com/marcello3d/node-mongolian seems like the right approach to a mongodb client [20:41] boaz has joined the channel [20:41] maushu: That is why I don't use mongoose. I mean, schemas? [20:42] Sembiance: maushu: schemas have there place I think, but NOT in a mongodb client [20:44] Sembiance: I love several other things that LearnBoost and Guillermo have done :) [20:45] Sembiance: maybe once I've used a more 'raw' and 'lightweight' mongodb client, maybe after a while I'll be like "sure wish I had schemas, validators and middleware support" [20:45] Sembiance: well, or maybe not [20:45] Sembiance: I guess I'll see :) [20:45] jarek has joined the channel [20:45] jarek has joined the channel [20:46] juli0w has joined the channel [20:46] Sembiance: socket.io is amazing though and has been since day one. I also LOVE stylus, it's syntax is perfect. better than all the others in my opinion (handlebars, mustache, sass, etc) [20:47] 5EXAC3ZZZ has joined the channel [20:47] 17SAA1LPF has joined the channel [20:48] 17SAA1LPF has left the channel [20:48] lo has joined the channel [20:49] lo has left the channel [20:49] DrPizza_: cc1plus: all warnings being treated as errors [20:49] DrPizza_: scons: *** [obj/release/x64/cpu-x64.o] Error 1 [20:49] DrPizza_: scons: building terminated because of errors. [20:49] DrPizza_: Waf: Leaving directory `/home/drpizza/node/node-v0.5.2/build' [20:49] DrPizza_: Build failed: -> task failed (err #2): [20:49] DrPizza_: {task: libv8.a SConstruct -> libv8.a} [20:49] DrPizza_: is that normal? [20:49] cjm has joined the channel [20:52] mscdex: DrPizza_: whats the actual errors? [20:54] fyskij has joined the channel [20:54] jorenl_ has joined the channel [20:56] Sembiance: maushu: this sums up mongoose perfectly: https://groups.google.com/forum/#!msg/mongoose-orm/Bj9KTjI0NAQ/ZsYQ50tqVzYJ [20:56] Sembiance: Quote: "Mongoose is "the way you access mongo when you want schema and transaction features." It is not an attempt to monopolise access to mongo and channel all possible applications through Mongoose. It is an application of the ActiveRecord pattern, and there are plenty of use cases in which ActiveRecord is undesirable." [20:57] maushu: hmm [20:57] Sembiance: Basically, you shouldn't look at mongoose as a mongodb client. It's a schema-full active-record based ORM module [20:57] Sembiance: since I only want a mongodb client, mongoose is vast overkill and not what I need :) [20:58] eigentone has joined the channel [20:58] shimondoodkin has joined the channel [20:58] shimondoodkin has left the channel [20:58] shimondoodkin has joined the channel [20:59] Sembiance: I run redis in production and love redis. For my next project I'm looking into using mongodb :) [20:59] shimondoodkin: EventEmitter removal in 0.5.2 broke https://github.com/astro/node-expat can't findout how to fix it [21:01] levity_island has joined the channel [21:04] robertka has joined the channel [21:04] MooGoo: that change seems to have broke a fair bit shimondoodkin [21:05] MooGoo: my sqlite3 module doesnt work anymore [21:05] robertka: hello! [21:05] shimondoodkin: hello [21:05] jesusabdullah: Sup gurl [21:06] robertka: i have a problem getting documents from mongo with mongoose: i can console.log the documents as aspected, but when i try to access a field like 'elem.title', it's undefined. anyone got a hint? [21:07] cccaldas has joined the channel [21:07] xerox: drop mongoose from a very high bridge and run away [21:08] robertka: is it not recommended? many seem to like it... [21:08] versicolor has joined the channel [21:08] shimondoodkin: xerox: is it not good now? [21:08] shimondoodkin: i know it was bad like ayear ago but now the code seems ok [21:09] robertka: it's already returning some documents, but i cannot access the content of that document. [21:09] xerox: it is, it's just very limited, but that is only my opinion [21:09] shimondoodkin: robertka: ahh i know i had this, maybe you have not defined the fined in the model [21:09] xerox: your problem of course has nothing to do with that, but I had to ditch it after writing serious enough code with it because of how the cool stuff does not play well together [21:10] xerox: if I knew that at the beginning I would have just used node-mongodb-native which is p good [21:10] robertka: i defined all the stuff i use in the model [21:11] xerox: if you don't believe me look at the issue count on both projects githubs :/ also don't get me wrong, I'd love that mongoose was better :) [21:11] mwhooker_ has joined the channel [21:11] shimondoodkin: i hae used node-mongodb-native at the begining and i kindof sorry i have not used something of the mainstream i wrote my own orm [21:12] shimondoodkin: because i've got hard to maintain code [21:13] xerox: shimondoodkin: may I pm you a minute? I wonder if I am just being stupid, in that case I'll eat back all I've said :) [21:13] shimondoodkin: robertka: see if you mimicing well an example from mongoose [21:13] shimondoodkin: yes [21:13] xerox: thanks [21:13] McMAGIC--Copy has joined the channel [21:13] jarek has joined the channel [21:14] mscdex: MooGoo: yeah it did, including some of mine :( [21:14] robertka: i try :) [21:14] ecin has joined the channel [21:14] spathi has joined the channel [21:16] themiddleman has joined the channel [21:16] MooGoo: mscdex I saw your comment on the EE issue thread on github [21:17] Cromulent has joined the channel [21:17] nibblebot has joined the channel [21:17] robertka: shimondoodkin: argh, sometimes double checking correct spelling of variables isn't enough... or it's just to late [21:17] mscdex: MooGoo: someone said there should still be a way to emit from c++ land, but looking over the changes, i don't see how [21:18] MooGoo: I'm still not clear on why access to it was removed from C++ [21:18] soapy_illusions has joined the channel [21:19] hassox has joined the channel [21:19] mscdex: probably to reduce the number of js->c++ boundary crossings [21:20] mscdex: since most emitting occurs from js modules i'd say [21:20] soapy_illusions: Can i know how everyone else deals with global constants in Node… Do you require a configuration module or is there a different pattern most people use? [21:21] MooGoo: I'm trying to downgrade to 5.1 but it wont compile, I think because I need version 2.6 of glibc [21:21] MooGoo: which is weird cause 5.2 compiled with no issues [21:21] Wa has joined the channel [21:21] DrPizza_: mscdex: that seems a pretty odd rationale though [21:22] DrPizza_: mscdex: I mean, you could just allow it if necessary but try to avoid the transitions if they're avoidable [21:22] mscdex: soapy_illusions: for config you could require() a module containing configuration info, or parse a json file [21:23] soapy_illusions: mscdex: thanks [21:23] Drakonite has joined the channel [21:24] mscdex: DrPizza_: i dunno, it's just a guess. you'd have to ping ryah about it to get a real answer [21:24] supster has joined the channel [21:25] hij1nx has joined the channel [21:25] mscdex: i guess the only option we have now is to create a js wrapper which uses function event handlers and emits when those are called [21:25] christophsturm has joined the channel [21:26] mscdex: or heck, just create your own emit function and pass it in to c++ land [21:26] mscdex: i guess that'd work too [21:26] heavysixer has joined the channel [21:27] c_t has joined the channel [21:27] MikhX_ has joined the channel [21:30] levity_island: what should be used if i want to split traffic on the same port between node and non-node servers by virtual host? [21:31] loveshine has joined the channel [21:32] igl: nginx? [21:33] SubStack: loveshine: https://github.com/nodejitsu/node-http-proxy [21:33] SubStack: *levity_island [21:34] edude03: Woah node reverse proxy [21:35] jesusabdullah: ^__^ [21:35] jesusabdullah: I want to use the shit out of this on my linode [21:35] jesusabdullah: haven't though :C [21:35] jesusabdullah: because I'm lazy I guess [21:35] levity_island: SubStack: sweet, thanks [21:38] hasta84 has left the channel [21:39] cha0s has joined the channel [21:39] cha0s has joined the channel [21:42] xerox: is it possible to have an online JSON parser [21:42] jarek has joined the channel [21:42] jarek has joined the channel [21:42] xerox: (online as in the parsers lingo, not online as in asynch API) [21:43] SubStack: xerox: a streaming parser? [21:44] xerox: yes [21:44] xerox: something like... [21:44] shimondoodkin: i think i have seen stream json parser [21:44] xerox: https://github.com/wdavidw/node-csv-parser [21:44] xerox: but for JSON of course [21:45] shimondoodkin: https://github.com/floby/node-json-streams [21:45] boaz has joined the channel [21:46] xerox: hehe it only supports 'end' for now, too bad. [21:46] boaz has joined the channel [21:46] mikeal has joined the channel [21:46] jarek has left the channel [21:46] soapy_illusions has left the channel [21:48] shimondoodkin: there are more : https://github.com/joyent/node/wiki/modules#wiki-parsers-json [21:49] xerox: checking them out! [21:51] Ans5i has joined the channel [21:52] SubStack: xerox: jsonparse This is a pure-js JSON streaming parser for node.js =creationix [21:53] xerox: oooh that has got onValue [21:53] xerox: great [21:54] SubStack: https://github.com/creationix/jsonparse [21:54] xerox: I have to work around a silly JSON API giving me a hundred records on an call I have to call often, no matter what [21:55] nphyx_ has joined the channel [21:55] fattytuna has joined the channel [21:58] skampler has joined the channel [21:59] hlindset has joined the channel [21:59] hlindset has joined the channel [21:59] aconbere has joined the channel [22:00] jorenl_: Why could node (with socket.io) stop execution of an event without a warning on socket.emit('loadroom', {songInfo: roomStorage[data.room]}); [22:03] hij1nx has joined the channel [22:04] xippi has joined the channel [22:05] hassox has joined the channel [22:05] slifty_corsair has joined the channel [22:09] tar_ has joined the channel [22:09] brolin_ has joined the channel [22:12] V1 has joined the channel [22:14] davidban_ has joined the channel [22:16] theCole has joined the channel [22:17] Elems has joined the channel [22:18] christophsturm has joined the channel [22:19] mscdex: jorenl_: what do you mean by "stop execution" ? [22:19] ckknight has joined the channel [22:20] jorenl_: mscdex: It doesn't seem to execute the rest of the event code, if I comment it out it works just fine. [22:21] ckknight: if you have a custom Object, what is the preferred method name for comparison, compare(other) or compareTo(other)? [22:22] matomesc has joined the channel [22:22] jorenl_: mscdex: there is one more .emit there, but it doesn't send it out when I add that line. [22:25] Moe has joined the channel [22:25] bayousoft has joined the channel [22:25] meelash has joined the channel [22:26] shimondoodkin has joined the channel [22:28] mscdex: ckknight: comparing for what? equality? [22:28] mscdex: jorenl_: hmm, can you gist the code? [22:28] ckknight: mscdex: -1 for less than, 0 for equal, 1 for greater than [22:30] piscisaureus has joined the channel [22:30] chjj has joined the channel [22:31] markdaws has joined the channel [22:31] EvRide has joined the channel [22:33] cha0s has joined the channel [22:33] cha0s has joined the channel [22:33] brolin has joined the channel [22:34] MrTopf has joined the channel [22:34] jorenl_: mscdex: http://pastebin.ubuntu.com/655910/ ; only the 'joinroom' event is failing [22:36] Dmwuw has joined the channel [22:37] mscdex: so you're saying line 17 never executes? [22:38] jorenl_: mscdex: exactly, not when I have the emit('loadroom in there [22:38] Corren has joined the channel [22:38] mikeal has joined the channel [22:39] mscdex: have you tried putting a console.log() statement or something like that after the emit just to be sure? [22:39] hojberg has joined the channel [22:39] jorenl_: mscdex: not yet; I'll try [22:39] MikhX has joined the channel [22:40] cccaldas has joined the channel [22:41] boaz has joined the channel [22:44] maqr has joined the channel [22:44] jorenl_: mscdex ok, I misinterpreted the node console. line 17 is executing and working. I just can't find a trace of line 14-16. Maybe I'm trying to emit undefined or something along those lins? [22:45] mikeal has joined the channel [22:47] unlink has joined the channel [22:47] kriszyp has joined the channel [22:48] overra has joined the channel [22:50] brolin has joined the channel [22:51] mscdex: jorenl_: it looks like it should be fine, what about your client side? [22:52] jorenl_: mscdex: shouldn't the console out put something like writing to 8::: or 'broadcasting packet' or something similar? [22:52] mscdex: where at? [22:52] jorenl_: I'm doing something v ery similar now, and node keeps crashing on FATAL ERROR: JS Allocation failed-process out of memory [22:52] jorenl_: when I do socket.emit [22:53] jorenl_: ^---- that's when I was expecting a message about broadcasting a packet :) [22:55] ttpva has joined the channel [22:56] MikhX_ has joined the channel [22:56] zeade has joined the channel [22:56] alnewkirk has joined the channel [22:58] ale: Hello, how can I make a real time notifications system such as facebook's with mysql and node without blowing up the database? [22:59] crodas has joined the channel [22:59] CIA-65: node: 03Ryan Dahl 07master * r7772f21 10/ (7 files in 4 dirs): initial pass at lib/child_process_uv.js - https://github.com/joyent/node/commit/7772f21b60e8b75dfaadd332c01bcae4e919dce9 [23:01] CIA-65: node: 03Ryan Dahl 07master * r4ac633b 10/ lib/child_process_uv.js : Forgot to add child_process_uv.js - https://github.com/joyent/node/commit/4ac633bf2160b49746e279a745ac68e52009857c [23:02] mscdex: ale: it has to be mysql? [23:03] jorenl_: mscdex: is (roomStorage[data.room]==undefined) a proper way to check if the room storage entry already exists? [23:04] ale: mscdex, I am making the whole app on mysql...why do you say so? [23:04] meelash has joined the channel [23:05] jorenl_: ale: if you don't really have to *store* the notifications it can be easier to just send/pass them [23:06] ale: jorenl_: but if the user is not connected, then I'll have to store it [23:06] jorenl_: ale: yeah [23:06] Lou_ has joined the channel [23:06] ale: jorenl_: so how would you do it? [23:06] jorenl_: ale: no clue; I'm unexperienced and know node for less than a week. I'm really sorry [23:07] ale: jorenl_: but isn't it impossible to do what you say? [23:07] meelash has joined the channel [23:07] jorenl_: ale: how do you mean? passing on events is easy with Socket.IO [23:08] mscdex: jorenl_: i have no idea, i have never used socket.io [23:08] ph^ has joined the channel [23:08] ale: I know, let me try something, but if someone else may help, I'll be glad! [23:10] jorenl_: ale: good luck! I've found the Socket.IO docs to be awful though. I wish there was some kind of reference [23:10] newbie has joined the channel [23:10] blaenk has joined the channel [23:10] blaenk has joined the channel [23:10] jorenl_: mscdex: even without socket.io, is (someObject[entry]==undefined) a proper way to check if it already exists? :/ [23:11] mscdex: or just (someObject[entry]) i guess [23:12] michaelhartau has joined the channel [23:12] bnoordhuis has joined the channel [23:14] asabil has joined the channel [23:15] jorenl_: where is everyone :o [23:15] slifty_corsair has joined the channel [23:15] cappuccino1 has joined the channel [23:17] ale: jorenl_: It's impossible what you've said, because io is between 1 user to 1 user, not everyone to one user and viceversa, isn't it? Am I right? [23:19] jorenl_: ale: It is possible - I'm doing it. Socket.IO is essentially between a user and the server, the server and all users. [23:20] SubStack: jorenl_: give dnode a spin: http://substack.net/posts/9bac3e [23:20] tbranyen: express.use('/subpath', someExpressServer) should work to proxy server requests to a subfolder right? [23:20] brolin_ has joined the channel [23:20] tbranyen: errr rather than express [23:20] tbranyen: app.use* [23:20] jorenl_: ale: for example, on('firstevent', function(socket) {socket.broadcast.emit('myevent', data)}); sends out myevent to everyone except the sender of 'firstevent' [23:20] tbranyen: for some reason its not working for me [23:21] tbranyen: and i know i've done it with Node.js's http server [23:23] blaenk: hey guys what module to I look at to handle arguments? program arguments I mean [23:23] blaenk: process? [23:23] jorenl_: SubStack: I see you made dnode, but how will it help me fix my error? :/ What I wrote out *should* be working fine xD [23:24] SubStack: blaenk: process.argv [23:24] blaenk: thank you kind sir! [23:25] Metal3d has joined the channel [23:25] brainproxy: blaenk: if you want a package that will help you build node-backed command line utils that need to handle various options [23:25] CIA-65: node: 03Ryan Dahl 07master * r19a6258 10/ (4 files in 4 dirs): child_process_uv: add exec, fix simple/test-child-process-exec-cwd - https://github.com/joyent/node/commit/19a62589b20000a64b5faf7992ad4f10801b2fe3 [23:25] brainproxy: then isaacs has a goog librarly, let me find it... [23:25] adrianmg has joined the channel [23:25] blaenk: sounds good thanks [23:25] brainproxy: here you go: https://github.com/isaacs/nopt [23:25] brainproxy: it's available via npm, of course [23:26] blaenk: beautiful. thanks brainproxy [23:26] brainproxy: yw [23:26] brainproxy: http://search.npmjs.org/#/nopt [23:29] blaenk: hey, just wondering, being new to all this. is there a way to add a shebang line at the top of a node script and +x it so I can just do ./script ? [23:30] levity_island: blaenk: the shebang is interpreted by the shell, so it should work if you give it the path to your node interpreter [23:30] levity_island: node executable, i mean [23:30] blaenk: levity_island: beaitufl thanks! I wonder if I can ues the env node thing [23:30] blaenk: worth a try :D [23:30] brolin has joined the channel [23:32] levity_island: yeah, that should work [23:32] bayousoft has joined the channel [23:33] brainproxy: blaenk: you may also want to take a look at nvm [23:33] blaenk: is it the rvm of node lol [23:34] brainproxy: yep [23:34] ank has joined the channel [23:34] brainproxy: though it doesn't do the equivalent of "gem sets" [23:34] nphyx_: it's still win. [23:34] brainproxy: as localized npm / node_modules install makes that unnecessary [23:34] brainproxy: https://github.com/creationix/nvm [23:35] meelash has joined the channel [23:35] levity_island: heh i read that as "never mind" [23:35] jorenl_: Ok. I'm off (sleeping). Thanks mscdex and SubStack for the help. [23:35] jorenl_ has left the channel [23:35] brainproxy: the original maintainer's repo needs to be patched to support how the tar.gz files are being distributed for v0.5.1+ [23:35] spice has joined the channel [23:35] brainproxy: but it's still fine for the v0.4.x stuff, and some of the recent forks were specifically for that purpose [23:36] slifty_corsair has joined the channel [23:36] thepatr1ck has joined the channel [23:36] blaenk: sweet thanks brainproxy I'll keep a tab on it, as I'm on 0.5.2 [23:38] heavysixer has joined the channel [23:38] brainproxy: master branch for this nvm fork seems to be in good shape for doing 0.5.2 [23:38] brainproxy: https://github.com/kieran/nvm [23:39] balupton has joined the channel [23:40] matomesc has joined the channel [23:41] blaenk: sweeet, thanks brainproxy :D [23:41] boaz has joined the channel [23:42] thepatr1ck has joined the channel [23:43] cccaldas has joined the channel [23:44] craigcondon has joined the channel [23:45] spice has left the channel [23:45] grab has joined the channel [23:46] grab: shameless plug, look my project in node: http://www.vunie.com/ [23:48] tcurdt has joined the channel [23:49] wookiehang0ver has joined the channel [23:49] tbranyen: grab: still trying to figure out what it is [23:50] grab: tbranyen: haha, there is a video [23:50] mwhooker_ has joined the channel [23:50] grab: got my first trail, so exciting :p [23:51] CIA-65: node: 03Ryan Dahl 07master * ref767a1 10/ (Makefile src/process_wrap.cc): child_process_uv: fix simple/test-child-process-cwd - https://github.com/joyent/node/commit/ef767a152b1033c1dc67631b8cc377fb3acb933d [23:52] tcurdt: wondering .... is there a node version that already supports "yield" ? [23:52] MooGoo: oh wtf.... [23:52] MooGoo: new versions of node/v8 dont allow the use of RegExp objects as functions? [23:53] shanebo has joined the channel [23:54] guidocalvano has joined the channel [23:54] jellosea: can anybody help me figure out why expresso -serial doesn't work with node fibers? [23:55] objectiveous has joined the channel [23:57] meelash has joined the channel [23:57] MooGoo: I'm begining to hate v8 [23:58] losing has joined the channel