[00:00] jw013 has joined the channel [00:01] vikstrous has joined the channel [00:03] creationix has joined the channel [00:04] creationix has left the channel [00:05] liar has joined the channel [00:05] Cleer has joined the channel [00:06] lor__ has joined the channel [00:07] smtlaissezfaire has joined the channel [00:08] xeodox has joined the channel [00:11] rwaldron has joined the channel [00:15] malkomalko has joined the channel [00:16] Poetro has left the channel [00:16] avalanche123 has joined the channel [00:16] malkomalko: tjholowaychuk: kue.. how do you tie it in with your existing express app? [00:16] tjholowaychuk: you'd want kue as a stand-alone process [00:17] tjholowaychuk: probably with cluster like i have in the readme [00:17] _beau_ has joined the channel [00:17] malkomalko: and then you'd fire off an http request to it to insert a job or something from your other app? [00:17] patcoll has joined the channel [00:17] tjholowaychuk: just tcp to redis [00:17] tjholowaychuk: using kue's api [00:18] DTrejo: tjholowaychuk: at some point I might add an option to the express stylus middleware so that it watches .styl files for changes and recompiles, that way vogue will can reload the sheets in the browser without developer having to refresh the whole page [00:18] tjholowaychuk: hmm [00:18] malkomalko: should that be obvious to me reading the readme? [00:19] tjholowaychuk: not sure i want that in stylus itself [00:19] tjholowaychuk: malkomalko "Creating Jobs" [00:20] DTrejo: tjholowaychuk: true, I suppose I can make my own middleware and not bother you :) [00:20] tjholowaychuk: everyone has these complicated ways to reload browsers etc [00:20] tjholowaychuk: just setTimeout and reload [00:20] tjholowaychuk: haha :D [00:20] tjholowaychuk: and avoid all the other cruft [00:21] malkomalko: so you have kue to create jobs in your real app, and then a separate kue server that listens for jobs basically? [00:21] tjholowaychuk: yup [00:21] tjholowaychuk: there is a restful json api too documented there [00:21] tjholowaychuk: mostly just for the UI [00:22] malkomalko: if you want those processes on separate servers, can you specify the redis connection settings? [00:23] tjholowaychuk: currently it uses several connections so i'll need to stub out a redis connection method that can be replaced [00:23] tjholowaychuk: but right now it's just a bunch of redis.createClient() calls [00:23] bluebit has joined the channel [00:23] gavin_huang has joined the channel [00:23] malkomalko: ok [00:23] malkomalko: so really, same two processes, same machine, same default localhost redis [00:23] malkomalko: right now [00:24] malkomalko: not same two processes.. heh [00:24] dguttman has joined the channel [00:24] malkomalko: anyway, thanks, that cleared up a few questions [00:24] robhawkes has joined the channel [00:24] corytheboyd has left the channel [00:25] AvianFlu has joined the channel [00:28] Wizek has joined the channel [00:29] Rob has joined the channel [00:29] cccaldas has joined the channel [00:30] wilmoore has joined the channel [00:31] ryanfitz has joined the channel [00:31] Kuntau has joined the channel [00:33] jeromegn has joined the channel [00:36] robhawkes has joined the channel [00:37] pifantastic has joined the channel [00:40] tauren: anyone know if cloudflare.com supports websockets? [00:41] beriberikix has joined the channel [00:42] mscdex: tauren: that domain is parked [00:42] tauren: mscdex: ? [00:42] tauren: https://www.cloudflare.com/ [00:43] mscdex: oh oops [00:43] mscdex: :-D [00:43] mscdex: it's been a long day [00:43] tauren: no worries! [00:43] cliffano has joined the channel [00:44] tauren: their service sounds pretty cool, but i'm still uneasy to go for it. [00:44] smtlaissezfaire has joined the channel [00:45] dug_ has joined the channel [00:45] mscdex: i wonder how they plan on keeping "attackers" from your website [00:47] Nizam has joined the channel [00:48] dug_ has left the channel [00:48] niftylettuce has joined the channel [00:50] tauren: mscdex: they analyze all the attacks going through their network. when they find a pattern to one of their other customer's sites, they then block that pattern from all of their sites. [00:51] tauren: so someone hacking from a certain IP, or attempting to hack some php app with an sqlinjected payload will be blocked not only on the site the attack was discovered on, but also any other sites that use their service. [00:52] techwraith: Has anyone seen this error before when trying to install something via npm? {"error":"insecure_rewrite_rule","reason":"too many ../.. segments"} [00:52] webben has joined the channel [00:52] polvero has left the channel [00:52] clarence has joined the channel [00:53] zackattack has joined the channel [00:53] rook2pawn has joined the channel [00:53] AAA_awright_ has joined the channel [00:54] Darrow_: Is Node secure enough to run on port 80 without any proxy server in front of it now? [00:54] Darrow_: Or is it still not recommended? [00:55] xandrews has joined the channel [00:55] [[zzz]] has joined the channel [00:57] ditesh|cassini has joined the channel [01:01] skohorn has joined the channel [01:03] niftylettuce: Darrow: good question [01:04] zeade has joined the channel [01:04] ovnicraft has joined the channel [01:05] d0k has joined the channel [01:06] AvianFlu has joined the channel [01:06] smolyn has joined the channel [01:09] chjj: Darrow_: i havent had any problems yet ;) [01:11] mundanity has joined the channel [01:13] bnoordhuis: so matz works for heroku now [01:13] bnoordhuis: kind of anyway [01:13] bnoordhuis: http://blog.heroku.com/archives/2011/7/12/matz_joins_heroku/ [01:14] cjm has joined the channel [01:14] cjm has left the channel [01:14] cjm has joined the channel [01:17] neoesque has joined the channel [01:18] postwait has joined the channel [01:19] jtsnow has joined the channel [01:19] webben has joined the channel [01:20] JaKWaC: Darrow_: Is there any reason to do so really? You can just use iptables to move all traffic on port 80 to what ever port you like [01:20] kawaz_home has joined the channel [01:21] brettgoulder has joined the channel [01:21] eventual- has joined the channel [01:22] sourcode has joined the channel [01:23] Aria has joined the channel [01:23] seawise has joined the channel [01:24] seawise: hi, guys, I need to write file sharing service [01:24] seawise: is node.js good for this? [01:25] seawise: or I should use nginx for that? [01:25] seawise: is it good for serving files? [01:26] JaKWaC: How are the files going to be stored? [01:26] context: darrow: or run a real http server (read: nginx) on port 80 and have it forward to your node backend? [01:26] materialdesigner has joined the channel [01:26] seawise: how fast is it? Can it serve as a replacement for nginx in terms of speed and memory consumption? [01:26] context: seawise: pls be more vague. you are being too detailed about your requirements [01:27] seawise: I think files will be stored statically [01:27] abraxas has joined the channel [01:27] context: [01:27] mandric has joined the channel [01:27] seawise: I'm using Mongo GridFS for storing small files, but not think it's good idea to use it in massive file sharing service [01:28] erobit has joined the channel [01:28] context: nginx is good for serving static files id agree. its not gonna handle uploads though. and not gonna give you authorization of any kind [01:28] seawise: sure [01:28] Borgoluzzuo has joined the channel [01:28] seawise: I'm asking about serving files [01:29] seawise: for download [01:29] Borgoluzzuo: Is there a way to share a mysql connection amongst different files? [01:29] context: personally for static files id use nginx over node. [01:29] context: borgoluzzuo: pass the connection around ? [01:29] Borgoluzzuo: context: Yeah, if possible. [01:29] context: have your code initiate the connection, then give that connection to other instances of objects that need it [01:30] Borgoluzzuo: context: Just through straight up variable assignments? [01:30] context: or keep a static connection in a 'singleton' variable and have a centralized access point for all db interaction [01:30] Borgoluzzuo: Is there a good way to have a centralized access point included across multiple files? [01:31] context: which, i suppose you still prolly need to pass a variable around [01:31] Borgoluzzuo: blast -- alrighty. Thanks -- just starting to get up and going with Node. [01:31] context: it might be possible. depends on how node caches require()d files [01:35] EyePulp has joined the channel [01:37] JaKWaC has joined the channel [01:38] rhdoenges has joined the channel [01:39] jw013 has joined the channel [01:42] TechCel has joined the channel [01:43] eee_c has joined the channel [01:44] rfay has joined the channel [01:45] tswicegood has joined the channel [01:46] matomesc has joined the channel [01:48] patrickgamer has joined the channel [01:49] Mrfloyd has joined the channel [01:49] AvianFlu_ has joined the channel [01:51] springmeyer_ has joined the channel [01:52] patrickgamer has left the channel [01:59] yukihr has joined the channel [01:59] boehm has joined the channel [02:00] rwaldron has joined the channel [02:02] devrim has joined the channel [02:05] cnus8n has joined the channel [02:06] perlmonkey2 has joined the channel [02:07] kawaz has joined the channel [02:08] jacobolus has joined the channel [02:08] erobit has joined the channel [02:09] tbranyen: hmmmm beer [02:09] jw013 has joined the channel [02:11] shadow_s has joined the channel [02:13] muk_mb: any of you want to be node.js code-review buddies? [02:14] sivy has joined the channel [02:16] Borgoluzzuo: Alrighty -- I'm a noob at javascript and node but question: I have a method that I want to get a particular user from mysql and after doing that, have it return a string to an anonymous callback function -- what is the best way of doing that. Here is a gist of what I'm sort of trying to do. https://gist.github.com/e34fad094ea9017c3fa4 [02:16] yhahn has joined the channel [02:17] Kuntau has joined the channel [02:19] kawaz has joined the channel [02:20] chjj: Borgoluzzuo, you just need to execute the callback, thats what callbacks are for [02:20] chjj: callback(null, user); [02:20] Borgoluzzuo: ah, excellent. [02:20] chjj: or callback(err) if there was an error (node convention) [02:20] Borgoluzzuo: thanks -- really appreciate it. [02:20] chjj: no problem [02:21] vikstrous has joined the channel [02:21] malkomalko has joined the channel [02:22] harth has joined the channel [02:22] Nizam has joined the channel [02:23] jw013 has joined the channel [02:23] ryanfitz has joined the channel [02:23] clifton has joined the channel [02:25] vipaca has joined the channel [02:25] vipaca has joined the channel [02:29] Corren_ has joined the channel [02:29] kriszyp has joined the channel [02:29] jhurliman: hmm... node-redis or node_redis? [02:29] nagash- has joined the channel [02:30] jhurliman: err, redis-node vs. node_redis [02:30] nagash-: morning [02:30] Kuntau has joined the channel [02:30] skm has joined the channel [02:31] malkomalko: anybody know if it's possible in an express middleware to get access to the request body or params [02:31] malkomalko: req.params and req.body seem to be undefined, while req.route returns back the route object [02:32] putz22 has joined the channel [02:33] putz22: hey all - how do i change my install location of nodejs? when i do 'which node' it tells me it is using /usr/bin/node, but i want to use /usr/local/lib/node [02:33] zodiak has joined the channel [02:34] tbranyen: putz22: pretty sure in the ./configure you use prefix [02:34] tbranyen: ./configure --prefix=/my/location [02:34] tbranyen: i think its in the install guide [02:35] putz22: tbranyen: well, i have a older version of node installed (don't recall what i used to install it), but i'd like to use a brew version that i just installed... if that makes sense [02:35] broofa has joined the channel [02:35] SteveDekorte has joined the channel [02:35] tonymilne has joined the channel [02:36] tbranyen: putz22: ah i bet brew lets you pass through those flags [02:37] SteveDekorte has left the channel [02:40] elijah has joined the channel [02:40] Brandonn has joined the channel [02:41] putz22: super odd... when i echo $NODE_PATH i get the correct path, but 'which node' still is pointing to the wrong path... any ideas? [02:41] gazumps has joined the channel [02:42] rauchg has joined the channel [02:45] apejens: putz22: check your $PATH? perjhaps /usr/bin is before /usr/local/bin? [02:46] rurufufuss has joined the channel [02:47] putz22: apejens: wow, i am dumb :) [02:47] putz22: that will probably fix it [02:48] jslatts has joined the channel [02:49] ovnicraft has joined the channel [02:49] Mrfloyd has joined the channel [02:50] jerrysv has joined the channel [02:50] monokrome: What is NODE_PATH? [02:50] tbranyen: something npm looks at [02:50] tbranyen: er node [02:50] rchavik has joined the channel [02:50] tbranyen: its the path it will use to find modules [02:50] monokrome: Sure, but what is it? [02:50] monokrome: hmm [02:50] tbranyen: if it doesn't exist in the path, it starts in your cwd [02:50] tbranyen: and traverses up [02:51] monokrome: I always have modules in ./node_modules - so, I guess that I don't need that :) [02:51] monokrome: tbranyen: Are you sure? It uses NODE_PATH before cwd? [02:53] postwait: npm packaging question. my module needs to install two top-level namespaces. [02:53] postwait: how does one do that with NPM? [02:54] muk_mb has joined the channel [02:57] brolin has joined the channel [02:58] leandroo has joined the channel [02:58] ngs has joined the channel [02:58] tbranyen: monokrome: nope, it would make sense i think in the node environment to start in the CWD [02:59] jtsnow has joined the channel [03:01] Mrfloyd has joined the channel [03:01] monokrome: tbranyen: http://paste.pocoo.org/show/437466/ [03:02] Nican__ has joined the channel [03:02] monokrome: Node doesn't start in CWD for this specific case, it starts in NODE_PATH [03:02] monokrome: That is disappointing :| [03:02] ditesh|cassini has joined the channel [03:02] tbranyen: monokrome: yeah i was p sure it went NODE_PATH first, but what you just said triggered in my head that CWD should be the entrypoint [03:02] jacobolus has joined the channel [03:03] monokrome: Oh, wow. It doesn't even use CWD if NODE_PATH is set [03:03] tbranyen: yeah it does [03:03] tbranyen: i use CWD on all my projects, but have NODE_PATH set for things like uglify-js [03:04] jw013 has joined the channel [03:04] teknopaul has joined the channel [03:04] monokrome: Nope, it doesn;t [03:04] monokrome: http://paste.pocoo.org/show/437467/ [03:06] monokrome: That is in 0.4.8 [03:08] Corren has joined the channel [03:08] c4milo1 has joined the channel [03:09] Corren has joined the channel [03:09] luke` has joined the channel [03:10] AvianFlu has joined the channel [03:13] lerchmo has joined the channel [03:13] jerrysv: oh hai node.js [03:13] Marak has joined the channel [03:13] Marak: reporting in from sfnightowls [03:13] cccaldas has joined the channel [03:14] jerrysv: reporting in from not enough bourbon [03:14] dguttman has joined the channel [03:14] jerrysv: when's elijah going to fix that damned bug? [03:14] jerrysv: i have a scraping app that i'd love to move to the browser so that i can see what i'm scraping [03:14] dguttman has joined the channel [03:16] rfay has joined the channel [03:18] monokrome: tbranyen: I think that it looks in the module's directory prior to using require.paths [03:18] leandroo has left the channel [03:20] jtsnow has joined the channel [03:21] SubStack: ACTION at sfnightowls, hackin on some nodes [03:22] patrickgamer has joined the channel [03:23] patrickgamer has left the channel [03:23] smtlaissezfaire has joined the channel [03:24] joshthecoder has joined the channel [03:24] perezd has joined the channel [03:27] marcello3d has joined the channel [03:27] sounko_ has joined the channel [03:28] mikeycgto has joined the channel [03:30] xeodox has joined the channel [03:31] Corren has joined the channel [03:33] Nizam has joined the channel [03:34] mscdex has joined the channel [03:34] mscdex_ has joined the channel [03:35] AvianFlu_ has joined the channel [03:40] galaxywatcher has joined the channel [03:40] sounko has joined the channel [03:41] kriszyp has joined the channel [03:41] infynyxx has joined the channel [03:41] infynyxx has left the channel [03:43] tsenga_ has joined the channel [03:43] monokrome: Are there other modules worth recommendation that fulfull the same need(s) as cluster? [03:44] xeodox has joined the channel [03:44] herbySk has joined the channel [03:46] jw013 has joined the channel [03:46] Kuntau has joined the channel [03:47] mynyml has joined the channel [03:50] AvianFlu_ has joined the channel [03:51] tsenga_ has joined the channel [03:52] smtlaissezfaire has joined the channel [03:53] yenz: monokrome: what's wrong w/ cluster, ooc? [03:54] jasonHulme has joined the channel [03:55] wilmoore has joined the channel [03:56] mscdex: anyone know if someone has started on a virtualbox binding for node? [03:56] jameshome has joined the channel [03:59] wilmoore has joined the channel [03:59] Ond has joined the channel [04:02] dgathright has joined the channel [04:03] Lorentz: mscdex: Dunno, but for what usage would there be [04:03] Lorentz: Starting machines/shutting down machine/etc? [04:04] Kuntau has joined the channel [04:04] erobit has joined the channel [04:06] rook2pawn has joined the channel [04:06] mscdex: Lorentz: that kind of stuff plus receiving VM events [04:07] fattytuna has joined the channel [04:07] AvianFlu_ has joined the channel [04:10] brownies has joined the channel [04:15] cyrus has joined the channel [04:15] cyrus: hello [04:15] Guest62977: curry [04:17] confoocious has joined the channel [04:21] EyePulp has joined the channel [04:21] apardo has joined the channel [04:22] rook2pawn has joined the channel [04:23] mcluskydodallas has joined the channel [04:24] fangel has joined the channel [04:25] kriszyp has joined the channel [04:26] Mrfloyd has joined the channel [04:27] cccaldas has left the channel [04:27] Nexxy has joined the channel [04:31] edt has joined the channel [04:33] edt: Just got my Joyent node smart machine. I want to move from rackspace to joyent... Not sure how to install node on Joyent. I'm using Windows/Putty. How do I install node? [04:33] edt: ... trying to figure out how to get ssh access [04:33] dguttman has joined the channel [04:33] balaa has joined the channel [04:34] [[zz]] has joined the channel [04:34] Prometheus: putty on to the sever? [04:34] Prometheus: server* [04:35] Prometheus: http://wiki.joyent.com/display/node/How+to+use+SSH+Keys+with+Node.js+Smart+Machines [04:35] Prometheus: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=joyent+smart+machine [04:35] Prometheus: etc =) [04:35] JakeyChan has joined the channel [04:35] edt: @Prometheus When I try to putty to the server, Putty gives me the error "No supported authentication methods available" [04:36] JakeyChan: is there have framework for develop mobile web app with nodejs ?? [04:36] Prometheus: edt: sorry, I've honestly not ever tried a smart machine, so I can't help there, just thought I'd point to a direction :/ [04:36] towski has joined the channel [04:37] TheEmpath has joined the channel [04:37] hij1nx has joined the channel [04:39] rwaldron has joined the channel [04:41] sweemeng has joined the channel [04:44] dnjaramba has joined the channel [04:46] edt: I just got my Joyent node smart machine. I'm trying to figure out how to SSH in for the first time (on windows). Putty is giving me a "no supported authentication methods available" error. Any ideas? [04:49] swaj has joined the channel [04:49] Borgoluzzuo: I have two classes: Parent and Child. A Parent has many children. I want to have a single connection with redis associated with the parent but I'd like it to be shared by the children. Does anyone have a good idea of how to accomplish this? [04:50] Nuck has joined the channel [04:51] socketio\test\92 has joined the channel [04:52] Nuck: What do browsers do if I use a file in an img tag which is sent without a MIME type? [04:52] Nuck: Because I need to be able to have files uploaded in one of three formats [04:52] Nuck: And then I want to normalize off the extension [04:52] socketio\test\52 has joined the channel [04:52] Nuck: But my server guy told me that the best static server is IIS. [04:53] tbranyen: https://github.com/tbranyen/node-combine << if anyone is interested just opensourced this, still needs some tlc before it goes primetime [04:53] tbranyen: just another template engine [04:53] Nuck: tbranyen: Closer to HAML or EJS? [04:54] tbranyen: Nuck: i drew inspiration from django and mustache primarily [04:54] AvianFlu_ has joined the channel [04:55] Nuck: That made me think of "I mosutache you a question but I'm shaving it for later." [04:55] tbranyen: heh [04:56] Nuck: tbranyen: Heh, I made something a lot like this once before :slow: [04:56] Nuck: Wait, I need not to use dAmn emotes lol [04:57] tbranyen: :psyduck: [04:57] tbranyen: Nuck: rly? do you have your stuff up on github? [04:58] Nuck: tbranyen: It was only a string parser, but it was a handy little thing. I coudl pass it a string and an array, object, or multiple args. [04:58] Nuck: And it would replace {0}, {1}, ... or {key} [04:58] Nuck: I used it in a previous project which never saw the light of day. [04:59] tbranyen: Nuck: https://gist.github.com/1049426 [04:59] tbranyen: like that? [04:59] tbranyen: oh neat you had {key} [04:59] Nuck: Yeah, lemme paste it. [05:00] xeodox has joined the channel [05:01] rook2pawn has joined the channel [05:01] jmoyers has joined the channel [05:01] boogyman has joined the channel [05:01] hij1nx has joined the channel [05:02] Nuck: tbranyen: https://gist.github.com/0d651314e66dfd2675e3 [05:02] Nuck: Hardy little sucker, too. [05:02] Nuck: I could throw a hell of a lot at it and it wouldn't fail. [05:03] Nuck: And I like to think I did a pretty good job making it optimized, but I dunno. [05:03] tbranyen: oh one thing you should note is that typeof null == 'object' [05:03] Nuck: Ah true [05:04] Nuck: tbranyen: That always gets me, every time. [05:04] Nuck: But isn't a null in an array ignored in length? [05:04] tbranyen: but you're doing for (var key in null) [05:04] tbranyen: dunno what will happen [05:04] Nuck: aye but else if (arguments.length == 2) [05:05] tbranyen: null will show up there [05:05] Nuck: It would? [05:05] Nuck: Ah, well, so it had one point of failure [05:05] Nuck: Still, I think it's a pretty hardy little beast. [05:05] Nuck: And a useful one at that. [05:05] tbranyen: just pointing it out [05:05] tbranyen: i'm not shutting down the code [05:05] tbranyen: heh [05:05] boehm_ has joined the channel [05:06] d0k has joined the channel [05:06] dshaw_ has joined the channel [05:06] Nuck: It'd probably have been easier if I'd added to the String prototype, but I'm not the kinda guy who goes around modding out native prototypes [05:06] Nuck: Never have been, never will be. [05:06] tbranyen: why? [05:06] Nuck: Well, except when it's for functions like .bind(), for backwards-compatibility. [05:07] Nuck: tbranyen: I like to leave no traces, so to speak [05:07] Nuck: My code cleans up after itself very efficiently. [05:07] AvianFlu has joined the channel [05:07] Nuck: Well, not so much in memory usage as in variables. [05:07] tbranyen: extending those types are a language feature, its part of the value of prototype chain [05:07] jmoyers: bah to that [05:08] jmoyers: not until enumerable: false, thank you very much [05:08] Nuck: I'm the kind of person who encapsulates. [05:08] tbranyen: jmoyers: in node? you should be using Object.keys() [05:08] tbranyen: and not worrying about yesterdays for in issue [05:08] jmoyers: for in is a feature [05:08] jmoyers: and fuck hasOwnProperty [05:08] tbranyen: and it works exactly as expected [05:08] Nuck: jmoyers: ... [05:08] Mrfloyd has joined the channel [05:09] Nuck: jmoyers: I'm pretty sure hasOwnProperty is a pretty helpful function. [05:09] tbranyen: its just unnecessary [05:09] jmoyers: yes, but an if statement for every for in loop [05:09] Nizam has joined the channel [05:09] jmoyers: is stupid [05:09] Nuck: tbranyen: I agree on that. [05:09] xastey has joined the channel [05:09] tbranyen: Object.keys({obj).forEach(function(key) { var val = obj[key]; }); [05:09] jmoyers: im fine with certain prototypes [05:09] tbranyen: damn son thats hard [05:09] jmoyers: but not Object [05:10] xastey: I know this goes against the whole idea of node.. but is it possible to make a blocking http request ? [05:10] tbranyen: jmoyers: Oh sorry, Object is definitely not in the picture [05:10] felixge has joined the channel [05:10] felixge has joined the channel [05:10] tbranyen: that one is untouchable so-to-speak [05:10] jmoyers: anyway, this is addressed with enumerable: false and other such Object.create type features [05:11] tbranyen: jmoyers: enumerable false works with Object.defineProperty as well [05:11] jmoyers: yes indeed [05:11] tbranyen: although i'm not sure how thats affected in a for in statement [05:11] stride has joined the channel [05:11] tbranyen: if you attach to the prototype [05:11] jmoyers: it doesn't enumerate [05:11] jmoyers: for in skips over it [05:12] jmoyers: i mean, I'm not using a bunch of for in loops all over the place, don't get me wrong [05:12] jmoyers: but other code potentially does [05:12] jmoyers: and prototype changes leak across scope [05:12] meso has joined the channel [05:13] tbranyen: jmoyers: just tested, thats awes [05:13] terite has joined the channel [05:13] jmoyers: takes the taboo off modifying builtins, imo [05:14] tbranyen: although i'm not sure when that would be a problem outside of modifying the Object prototype [05:14] tbranyen: which i think anyone can agree is no go [05:14] jmoyers: Array i suppose [05:14] tbranyen: for in doesn't work on array anyways [05:14] tbranyen: it wasn't designed for that [05:15] jmoyers: thats not true [05:16] tbranyen: http://sharefilewith.me/u/5f11f7.png [05:16] tbranyen: doesn't look like its workie 4 me [05:16] jmoyers: v8: var a = [1,2,3]; Array.prototype.iam = 'stinky'; for(var b in a){ console.log(b); }; [05:16] jmoyers: no v8bot?! [05:16] jmoyers: whaaat [05:16] tbranyen: v8 is not the only js implementation [05:16] tbranyen: that was using presto [05:17] jmoyers: no, im saying in here [05:17] tbranyen: maybe it works in v8, but that doesn't speak to javascript as a whole [05:17] rhdoenges: no, the bot in here [05:17] rhdoenges: that evals code. [05:17] tbranyen: well aware [05:17] tbranyen: i wasn't talking about that [05:18] jmoyers: and yes, it does enumerate in v8 [05:18] tbranyen: >> for(i in [1,2,3]) { console.log(i); } [05:18] tbranyen: :-/ [05:18] jmoyers: if you modify Array.prototype [05:18] isaqual has joined the channel [05:18] tbranyen: jmoyers: it wasn't designed for arrays tho, doesn't matter if it works in v8 [05:18] tbranyen: that might just be the way arrays are represented [05:18] jmoyers: who declared its not for arrays? [05:18] jmoyers: im not clear on what you mean [05:18] tbranyen: the ecma spec? [05:19] meso has joined the channel [05:19] Nuck: So do either of you know how a browser will take an image sent without a mime type? [05:19] Nuck: Because IIS will most likely choke on files without extensions, so I want to know if the browser will pick up the slack [05:20] matwill has joined the channel [05:22] markbao has joined the channel [05:22] markbao: DTrejo: you around? [05:22] tbranyen: jmoyers: i'll do some research on that, was pretty sure other issues existed with arrays and for in [05:22] Nuck: woah, we're finally bigger than both #RubyOnRails and #ruby 8D [05:22] avalanche123 has joined the channel [05:22] SubStack: \o/ [05:22] jmoyers: could be [05:22] tbranyen: thats what she said [05:22] tbranyen: jmoyers: but yeah modifying the array prototype is a good call if someone were to be using that [05:23] Nuck: The reason for in isn't for arrays is because it goes over the things on the array prototype too, right? [05:23] tbranyen: Nuck: well objects have prototypes [05:23] jmoyers: god damn i wish i could find a searchable version of the spec [05:23] tbranyen: so thats a moot point [05:23] jmoyers: that wasn't a piece of shit pdf [05:23] tbranyen: jmoyers: srsly the pdf is retarded [05:23] tbranyen: also ecmascript != javascript [05:23] tbranyen: which is even more annoying [05:23] tbranyen: heh [05:23] tbranyen: not sure if they are identical in that regard of for in, but some things i suppose could be different [05:24] Nuck: ACTION goes to find out if Apache won't send the mime type for files without extensions [05:25] tbranyen: bed /snore [05:25] sreeix has joined the channel [05:25] bene has joined the channel [05:26] bene has left the channel [05:26] langworthy has joined the channel [05:27] jmoyers: anyway [05:27] jmoyers: standard just says [05:27] jmoyers: anything in for ... in expression [05:27] jmoyers: gets ToObject'd [05:27] jmoyers: at least in the v8 impl, thats fine [05:28] Nuck: Damnit [05:28] Nuck: Browsers just choke [05:28] charleyd has joined the channel [05:29] jmoyers: you need a file extension or a mime type [05:29] jmoyers: for sure [05:30] Nuck: or wait [05:30] Nuck: Maybe not :O [05:31] davidbanham has joined the channel [05:31] Nuck: jmoyers: Aye, but the question is whether it will attempt to parse application/octet-stream as an image if I include it in an img tag [05:32] ditesh|cassini has joined the channel [05:32] jmoyers: well [05:32] jmoyers: all else fails [05:32] matwill_ has joined the channel [05:33] jmoyers: load it in as a data uri [05:33] delian66 has joined the channel [05:33] jmoyers: or just solve the header problem [05:33] mike5w3c has joined the channel [05:34] Nuck: jmoyers: My static file server is IIS, because in discussing the static server with my host, he informed me that IIS performs better than lighttpd or NGINX if it doesn't have to parse anything. [05:34] Nuck: That it can take a load best. [05:34] jmoyers: fuuuuck iis [05:34] edt: @Prometheus thanks for the links, but still no luck... will try again in the morning [05:34] yhahn has left the channel [05:34] Nuck: And that's what I want, is the ability to take a heavy load without losing stability. [05:34] brianseeders has joined the channel [05:34] Prometheus: edt: alright, sorry I couldn't help you out [05:34] jmoyers: and you can't have file extensions or control over the headers because...? [05:35] Nuck: jmoyers: I said the same thing, but he's got more knowledge on the subject than I do. As for extensions, I want to normalize all files so they don't have extensions. [05:35] Nuck: Because otherwise I hafta pass around the value of that extension for any page to grab a user's icon. [05:35] jmoyers: i'd love to see the benchmark [05:35] jmoyers: and technology lockin with iss is crap [05:36] jmoyers: also if you're so concerned about static file serving [05:36] Nuck: jmoyers: I agree, but it's only a static server ;) [05:36] jmoyers: you'll probably want to move to a cdn at some point [05:36] AvianFlu_ has joined the channel [05:36] edt has left the channel [05:37] Nuck: I guess that's possible, but I'd hafta do more research. [05:37] jaket has joined the channel [05:40] Lorentz: mscdex: if anyone writes one up, hope they do one for xen as well [05:40] Nuck: jmoyers: I'm gonna prolly switch to Linux+Nginx instead of Windows+IIS, the performance shouldn't be too much of a difference. [05:40] Lorentz: That's be pretty handy, for people doing a lot of that [05:41] jmoyers: i dont think shit like that matters until it _matters_ [05:41] jmoyers: if you know what i mean [05:41] jmoyers: i wouldn't worry about optimizing static file serve, unless you've got massive massive traffic [05:42] jmoyers: then, i kid you not, it will be a no brainer to go to a cookieless cdn [05:42] Jakwac has joined the channel [05:42] jmoyers: just my opinion, though [05:42] bingomanatee has joined the channel [05:42] Nuck: jmoyers: Well, the problem is, I'm hosting huge files. [05:42] jmoyers: i see [05:42] jmoyers: a topic on which i have absolutely no experience ;-) [05:42] Nuck: I'm doing an art site [05:42] jmoyers: ah [05:42] jmoyers: art [05:43] jmoyers: not multi gigabyte or something [05:43] Nuck: No, but large images [05:43] Nuck: And I need it to host them quickly and in parellel. [05:44] Corren: so as I understand it, if I have index.ejs, that's passed to layout.ejs as a variable called body [05:44] Nuck: I originally suggested Nginx, that being one of the evented servers [05:44] Corren: i'm stumped tho: my markup in index.ejs isn't being parsed; it's escaped :S [05:44] Lorentz: I do varnish and nginx, currently set to serve only static files like images in varnish [05:44] Lorentz: No fancy cdn or anything though. [05:44] Nuck: Lorentz: Varnish? [05:45] jmoyers: http cache [05:45] jmoyers: *fast [05:45] Nuck: Ah [05:45] Corren: i do nginx + node [05:46] Nuck: Yeah, I think nginx should be a good choice [05:47] Mrfloyd has joined the channel [05:47] Nuck: Eww "Furthermore, Varnish is heavily threaded, with each client connection being handled by a separate worker thread." [05:47] jmoyers: hehe [05:48] jmoyers: thats a common theme [05:48] jmoyers: and not necessarily the devil [05:48] Nuck: Hopefully not for long :P [05:48] Corren: currently I don't serve any content through node (only api calls) although I'm currently putting ejs back in for some server composition [05:48] jmoyers: anyway, varnish is pretty heavily used out there [05:48] jmoyers: in the ruby world and such [05:48] Nuck: That's honestly an amazing way to die from DDoS [05:48] Nuck: jmoyers: Well, no wonder it sucks :P [05:49] jmoyers: naaah [05:49] Corren: Nuck: you talking about my implementation? [05:49] jmoyers: relative problems [05:49] Nuck: Corren: No, Varnish [05:49] Corren: h ok :) [05:49] Corren: was worried [05:49] Kuntau has joined the channel [05:49] jmoyers: and varnish doesn't suck [05:49] abraxas has joined the channel [05:49] Connorhd: I like how we're assuming threads => suck [05:49] jmoyers: its used in production all over the place [05:49] Nuck: I'm joking :P [05:50] kbni has joined the channel [05:50] Nuck: But one thread per client is really a great way to make DDoS attacks easy. [05:50] TheEmpath: yes it is [05:50] jmoyers: iiii don't know man [05:50] jmoyers: if you have a ddos going on [05:50] jmoyers: you have bigger problems than one thread per connection [05:51] jmoyers: you'll likely need an upstream tool to stop it [05:51] cccaldas has joined the channel [05:51] jmoyers: or your provider [05:51] cnus8n has joined the channel [05:51] AvianFlu_ has joined the channel [05:51] jmoyers: there's some fucking massive botnets out there [05:58] shadow_s: i'm really liking this concept of nowjs, but i'm not sure what kind of stuff i should make out of it... i'm thinking something in the realm of interactive gaming to be pretty good, what do you guys think? [05:58] stephank has joined the channel [05:58] darshanshankar: we've built two multiplayer games with #nowjs shadow_s [05:59] anaio has joined the channel [05:59] mertimor has joined the channel [05:59] shadow_s: darshanshankar: excellent, that's what i want to hear! are you allowed to tell me them? [06:00] astropirate has joined the channel [06:01] cliffano has joined the channel [06:07] CrabDude has joined the channel [06:13] jacob_ has joined the channel [06:13] gvz has joined the channel [06:13] jacob_: Hi folks! Quick question: Does anyone do NodeJS hosting in Europe? [06:14] criswell has joined the channel [06:14] tuhoojabotti: I'm running Nodejs in Finland :D [06:14] emacsen has joined the channel [06:15] [1]alnewkirk has joined the channel [06:15] Nuck: jacob_: Get a VPS :P [06:15] Nuck: ('tis what I'm doing) [06:16] Nuck: I'm gonna be hosted over in the Netherlands [06:16] tuhoojabotti: I have a free host :D [06:16] Lorentz: linode here [06:16] Nuck: tuhoojabotti: My site will be too lol [06:16] Lorentz: Kinda expensive, but they seem reliable [06:16] jmoyers: linode also [06:16] jmoyers: for my personal servers [06:16] tuhoojabotti: I get free hosting and 500GB backup space for free :P [06:17] Prometheus: Lorentz: linode is expensive? [06:17] shadow_s: quite expensive, i'm looking at it now, lol [06:17] Prometheus: if they are too expensive, try IntoVPS [06:17] Nuck: I know a guy who has an excess of server space and who needs a big client to expand his hosting business. [06:17] jacob_: @Nuck That's definitely what I do for myself, but my company wants something they can feel reassured about. So is there any equivalents of no.de, heroku or duostack but with actual servers and support in Europe? [06:17] Prometheus: (but no, Linode is quite cheap, tbh) [06:17] tuhoojabotti: Just have to be a member of this organization, it's 35€/yr [06:17] Nuck: So I'm basically off the hook until I grow :P [06:17] xerox: you pay mostly for the tools and the reliability [06:17] Lorentz: Prometheus: Compared to el cheapo vps lying around, yes, expensive [06:17] Prometheus: try running EC2 for a while, see how that compares =P [06:17] xerox: stuff like if your node goes down, they up your stuff on another in a matter of uuh minutes? [06:18] xerox: but yes $$$ : ) [06:18] jacob_: yes, something like that [06:18] tuhoojabotti: They helped me figure out why UPD packets didn't get through :D [06:18] Prometheus: Lorentz: been with Linode for ~3+ years, never had a single problem w/ them [06:18] Prometheus: ;) [06:18] nethan has joined the channel [06:18] xerox: how much is 3 years worth of linode in dollars ? :P [06:19] Prometheus: well, I've production, staging, testing servers and such there, so.. [06:19] Nuck: ACTION shudders at the thought [06:19] CrabDude_ has joined the channel [06:19] xerox: a million dollars [06:19] Prometheus: not quite =) [06:20] xerox: TWO [06:20] xerox: xD [06:20] Prometheus: do the math on EC2 [06:20] jmoyers: i've got a little 512 [06:20] Prometheus: then tell me what's expensive ;) [06:20] jmoyers: its like 19 bucks [06:20] Prometheus: EC2 machines are not very good [06:20] tuhoojabotti: I pay 35€/yr 16GB :P [06:21] xerox: 16 gb of what [06:21] Prometheus: porn [06:21] tuhoojabotti: ram [06:21] xerox: how much disk space and bandwidth allocated? [06:21] tuhoojabotti: 555GB storage and so on :P [06:21] Prometheus: 4 cores too I hope =P [06:21] tuhoojabotti: But yeah if I use too much ram they'll kill my app :D [06:21] Prometheus: at least [06:21] shadow_s: how well do you guys think shared node hosting would work? you'd get shell access but someone else would take care of the details. i'd imagine that would be a good way to get cheap development nodejs installations possible [06:22] tuhoojabotti: shared irc ssh server ftw [06:22] tuhoojabotti: :D [06:22] Lorentz: Prometheus: As have I, for my other hosting [06:22] Prometheus: shadow_s: webfaction for node? [06:22] jmoyers: blech [06:22] Lorentz: but just recently got my own personal one [06:22] jmoyers: much prefer the heroku/no.de/nodejistsu model [06:22] jmoyers: if i don't have a dedicated [06:22] Prometheus: Lorentz: intovps is half of linode I think [06:22] Prometheus: and they're pretty good too [06:22] SamuraiJack has joined the channel [06:23] Prometheus: price-wise* [06:23] AvianFlu has joined the channel [06:23] shadow_s: well, as far as i can see, webfaction seems like a standard hosting provider, so yes [06:23] Prometheus: shadow_s: if you want cheap development installations, spin up a VM on your machine.. :P [06:24] Prometheus: can't get much cheaper than that [06:24] shadow_s: oh, that's what i'm doing, i just mean as a service to provide other users [06:24] shadow_s: in fact, i use a live server on port 8888 for my development :D [06:24] Prometheus: well, there's already nodejitsu, no.de, etc? [06:25] dixel has joined the channel [06:25] Lorentz: Getting xen up and running isn't too hard [06:26] shadow_s: i guess it would be similar to nodejitsu [06:26] dixel: Hello! Anyone know how does v8::InvocationCallback work and how to present it in node? [06:27] Prometheus: Lorentz: with stuff like Vagrant, you don't even need Xen [06:27] mendel_ has joined the channel [06:27] Prometheus: shadow_s: in which case, why bother? ;) [06:27] Prometheus: it's not trivial to set up :) [06:27] jmoyers: there are also a few clones [06:27] jmoyers: as it is [06:28] Nuck: what's the one... nodesocket? [06:28] lstoll has left the channel [06:28] Nuck: Yeah, that's the one I'm thinking of. [06:28] Nuck: One of those clones [06:29] avalanche123 has joined the channel [06:29] Mrfloyd has joined the channel [06:29] Lorentz: Prometheus: vagrant uses virtualbox? [06:29] Prometheus: Lorentz: yes [06:29] Lorentz: Does virtualbox work headlessly [06:29] jmoyers: nodester etc etc [06:29] Prometheus: yes [06:29] Lorentz: I guess it does [06:30] Prometheus: Lorentz: that's what vagrant does, basically [06:30] Prometheus: run it in headless mode [06:30] shadow_s: Prometheus: well, i'm not sure actually, maybe i can do it better? i'd probably have to look into nodejitsu a bit more to really understand it [06:30] Prometheus: you can enable the GUI mode if you want, too, I think [06:30] Prometheus: shadow_s: in all honesty, you probably can't [06:30] Prometheus: the resources those service providers have put in to creating the environments [06:30] Prometheus: replicating that by yourself would take a while ;) [06:30] Prometheus: at least, if you want to offer same quality service [06:31] Prometheus: it's not like you can put together something like heroku over night :) [06:31] shadow_s: well, since it's open source, it's just a fork away isn't it? [06:31] Lorentz: No, I rather my virtualized instances to be headless [06:31] Lorentz: Unless windoze, etc, but eh, I don't deploy to windows machines. [06:31] Prometheus: shadow_s: well, I haven't actually looked in to what nodejitsu has on github, so I couldn't say definitely [06:31] Prometheus: shadow_s: but there's more to that than just the scripts =P [06:32] Prometheus: Lorentz: yeah, it's sufficient for running ubuntu or whatever headless [06:32] Prometheus: vagrant works well for that [06:32] Prometheus: Windows, probably not so much [06:33] Nuck: Joyent has put a lot of work into no.de and as such I have heard people call them the "king of Virtualized I/O" [06:33] Nuck: Because their servers don't have as slow I/O as common VPS hosting does [06:34] Prometheus: so their stuff runs flash drives? ;) [06:34] Nuck: lol [06:34] Kuntau has joined the channel [06:34] aaa_ has joined the channel [06:34] shadow_s: it would be awesome if they had SSDs on everything :) [06:35] tayy has joined the channel [06:35] Nuck: Prometheus: I think they meant because it lacked some of the overhead, due to Joyent's efforts to trim down the layers before the virtualized OS [06:35] Prometheus: I bet it would be pretty expensive, too [06:35] Prometheus: Nuck: I know, I was just kidding =P [06:35] Prometheus: but yeah, that's kind of cool [06:36] aaa_: test [06:36] Nuck: So, does nginx handle files without extensions well? [06:37] AvianFlu_ has joined the channel [06:37] Prometheus: ? [06:37] aaa_: onlinechat [06:37] Prometheus: handle files well? [06:37] Prometheus: what else would it do? [06:38] Nuck: without extensions [06:38] Nuck: So if I renamed a PNG to not have an extension, does it still work [06:38] brettgoulder has joined the channel [06:38] Prometheus: oh [06:38] Nuck: Does it sitll send off the right mime [06:38] Prometheus: I would imagine the browser would sniff it anyway [06:38] Prometheus: dunno, haven't tried doing that [06:38] Prometheus: let me try =P [06:38] `3rdEden has joined the channel [06:39] Nuck: Prometheus: Firefox sniffs it, and I assume Chrome does too, but Opera and IE I'm not so sure on [06:40] steffkes has joined the channel [06:41] k0ral has joined the channel [06:42] Corren: can anyone point me to an express sample with multiple partials [06:43] mhauri has joined the channel [06:45] hij1nx has joined the channel [06:47] gozala has joined the channel [06:47] Prometheus: Nuck: not sure actually [06:47] Prometheus: got application/octet-stream [06:47] Prometheus: (in chrome) [06:48] Prometheus: Nuck: at least, 0.8.53 doesn't serve it w/ the correct mimetype [06:49] aaa_: テスト [06:49] SuMarDi has joined the channel [06:50] FireFly|n900 has joined the channel [06:51] Prometheus: maybe I should upgrade to 1.0.4 =P [06:52] Xano has joined the channel [06:53] Nizam has joined the channel [06:56] jborst has joined the channel [06:59] Kuntau has joined the channel [07:00] fly-away has joined the channel [07:04] Mrfloyd has joined the channel [07:05] topaxi has joined the channel [07:06] niftylettuce has joined the channel [07:06] sgimeno has joined the channel [07:06] Aiden_ has joined the channel [07:08] trepan has joined the channel [07:08] trepan has joined the channel [07:09] Mrfloyd has joined the channel [07:09] wbw72 has joined the channel [07:09] iFire has joined the channel [07:10] rook2pawn: is it possible to check if a executable is resolvable? (not existing, but resolvable if specified by spawn [07:10] Kuntau has joined the channel [07:10] shapeshed has joined the channel [07:10] groom has joined the channel [07:11] vegard has joined the channel [07:12] ajsie has joined the channel [07:12] ajsie has left the channel [07:13] ajsie has joined the channel [07:13] Mrfloyd has joined the channel [07:13] ajsie has left the channel [07:15] hookdump has joined the channel [07:15] Xano has joined the channel [07:20] overra has joined the channel [07:24] hwinkel has joined the channel [07:24] catphive has joined the channel [07:25] hassox has joined the channel [07:25] fangel has joined the channel [07:30] tsutton has joined the channel [07:32] [AD]Turbo has joined the channel [07:32] Country has joined the channel [07:32] djcoin has joined the channel [07:32] jborst has left the channel [07:34] iFire has joined the channel [07:35] jhurliman has joined the channel [07:35] mhausenblas has joined the channel [07:36] jasonHulme has left the channel [07:36] ablomen has joined the channel [07:37] markwubben has joined the channel [07:38] langworthy has joined the channel [07:39] NodeSocket has joined the channel [07:40] sounko has joined the channel [07:41] rhutchison_ has joined the channel [07:41] siddharth_mahen has joined the channel [07:42] [AD]Turbo has joined the channel [07:42] jj0hns0n has joined the channel [07:43] azend has joined the channel [07:43] JohnnyL has joined the channel [07:45] dragnl0rd has joined the channel [07:45] fangel_ has joined the channel [07:45] dragnl0rd: has anyone here worked with using socket.io and flash/as3? [07:47] fangel has joined the channel [07:48] Pathin has joined the channel [07:49] NetRoY has joined the channel [07:49] kmox83 has joined the channel [07:50] bergie has joined the channel [07:50] erenon has joined the channel [07:50] Hinton has joined the channel [07:50] Borgoluzzuo has joined the channel [07:51] erenon: hi, please take a look at my problem: http://stackoverflow.com/questions/6662251/build-node-js-addon-without-node-waf [07:51] Borgoluzzuo: Is there a simple way to call an function after a for loop completes? [07:52] fangel has joined the channel [07:52] jbpros has joined the channel [07:53] gausby has joined the channel [07:55] hybsch has joined the channel [07:55] pickels_ has joined the channel [07:55] hybsch has left the channel [07:55] S1ghs has joined the channel [07:55] S1ghs: hey [07:56] tsutton has joined the channel [07:56] uchuff has joined the channel [07:56] S1ghs: can anyone give me a clue how big are syntactic and all other changes one would have to deal with if he'd like to migrate from 0.2.5 to latest version of node? [07:57] baudehlo has joined the channel [07:57] S1ghs: i have here quite a lot of code written by someone else and that system is giving unexpected behaviour at some points hence I imagined maybe that is something upgrade can solve [07:57] apardo has joined the channel [07:58] S1ghs: anyone [07:58] S1ghs: ? [07:58] adambeynon has joined the channel [07:58] StepanKuzmin has joined the channel [07:59] apardo has joined the channel [07:59] saurabhverma has joined the channel [07:59] isaacs has joined the channel [08:00] erenon: hi, please take a look at my problem: http://stackoverflow.com/questions/6662251/build-node-js-addon-without-node-waf [08:00] adrianmg has joined the channel [08:00] industrial: I'm not sure what's wrong, but I can't install mongoose. https://gist.github.com/4b0e119cee955acdca31 [08:01] jetienne: erenon: no need to repeat it every 10min, especially when nobody answer [08:01] chjj: yeah, because theres so many conversations taking place here, wouldnt want to interrupt them ;p [08:02] Druide_ has joined the channel [08:02] harth has joined the channel [08:02] jetienne: industrial: apparently npm mongoose is broken [08:02] industrial: k [08:02] jetienne: industrial: package.json of mongoose require a mongodb which doesnt exist [08:03] industrial: I do have the node mongodb native in my project/node_modules. [08:03] jetienne: S1ghs: this is a vague question. my answer would be "quite a bit" [08:04] andree has joined the channel [08:04] jetienne: industrial: find a way to make npm ignore the error or install it by git. i would go for the second [08:04] industrial: yea [08:04] isaacs: mongodb doesn't exist? [08:04] dsirijus has joined the channel [08:05] jetienne: mongoose > mongodb: version 0.9.6-4 installation failed! due to no version match <--- not this version [08:05] level09 has joined the channel [08:05] rhutchison_ has joined the channel [08:05] isaacs: jetienne: ah, yeah [08:05] isaacs: depends on something that isn't there [08:05] S1ghs: jetienne: well one thing I noticed is that sys module is renamed to utils and question probably is - how many changes like that are present? [08:05] isaacs: run npm owner ls mongoose and then email those guys [08:06] jetienne: S1ghs: 'quite a bit' ? nobody is keeping count [08:06] jetienne: isaacs: any option to ignore error ? [08:06] isaacs: jetienne: no, not in this case [08:06] industrial: isaacs: done :) [08:06] S1ghs: well ok, guess i just have to put it on and see how many errors are there [08:07] TomY has joined the channel [08:12] Yoric has joined the channel [08:12] __doc__ has joined the channel [08:13] cosmincx has joined the channel [08:13] cojack has joined the channel [08:13] cojack: hello guys [08:14] cojack: I have a question, why when I do someVar = new String(someObject.url); [08:14] cojack: when I returns it by res.send(someVar); [08:14] cojack: this string is without " " ? [08:15] cojack: I got: http://xx.xx.xx.com/image/%dx%d/get.js?url=http://www.xx.xx/xx/2011/07/12/61261518-acc1-11e0-866e-773d79aa61f9.jpg [08:15] cojack: but I need: "http://xx.xx.xx.com/image/%dx%d/get.js?url=http://www.xx.xx/xx/2011/07/12/61261518-acc1-11e0-866e-773d79aa61f9.jpg" [08:15] jetienne: cojack: as it is supposed to be, you send the content of the string [08:15] cojack: jetienne: but I got without "" [08:16] jetienne: cojack: you link point to a porn site [08:16] cojack: :D [08:16] jetienne: cojack: im not kidding [08:16] cojack: dude, I mask the real address [08:17] jetienne: cojack: i dunno what you do but dont post porn site here [08:17] cojack: omg... [08:17] Clex: :D [08:18] cojack: any one know why this link I got without "" ? [08:18] jetienne: i got the feeling he doesnt believe me :) [08:19] cojack: jetienne: can we back to the topic? [08:19] jetienne: cojack: well i already gave an answer to the node question [08:20] jetienne: when you send a string, you send the content of the string [08:20] jetienne: so no "' [08:20] markwubben has joined the channel [08:20] Mrfloyd has joined the channel [08:22] aliem has joined the channel [08:23] cojack: jetienne: Im sorry, but Im dumb, I doesn't see this link as string beacuse Im using jsonView for firefox, and it parse links... [08:23] cojack: sorry for very very very very ... stupid question [08:23] jetienne: np [08:23] Skola has joined the channel [08:24] Skola: who was it again that was messing with his neighbours' router? [08:24] Skola: http://news.ycombinator.com/item?id=2757234 [08:29] seivan has joined the channel [08:32] robi42 has joined the channel [08:33] thalll has joined the channel [08:35] eldios has joined the channel [08:36] Esteb has joined the channel [08:37] _aron has joined the channel [08:38] level09 has joined the channel [08:40] baudehlo has joined the channel [08:42] gozala has joined the channel [08:48] kulor-uk has joined the channel [08:50] floby has joined the channel [08:52] jnia has joined the channel [08:52] fcambus has joined the channel [08:53] webben has joined the channel [08:54] blup has joined the channel [08:55] StepanKuzmin has joined the channel [08:56] mikedeboer has joined the channel [08:57] Mrfloyd has joined the channel [08:57] davidbanham has joined the channel [08:57] saurabhverma has joined the channel [08:58] djcoin has joined the channel [08:58] uchuff has joined the channel [08:58] bzinger has joined the channel [08:59] w3rdness has joined the channel [09:01] zeade has joined the channel [09:01] w3rdness: hey all, i'm looking for a solid tutorial on building an username/password authentication with nodejs. any help on where to look? [09:02] asabil has joined the channel [09:02] ditesh|cassini has joined the channel [09:04] mendel_: w3rdness: you've heard about everyauth? [09:06] davidcoallier has joined the channel [09:06] w3rdness: nope -- is that the most popular one? [09:07] unlink has joined the channel [09:07] unlink has joined the channel [09:07] markwubben has joined the channel [09:07] w3rdness: looks great from what see, thanks for the rec [09:07] radiodario has joined the channel [09:08] philhawksworth has joined the channel [09:08] philhawksworth has left the channel [09:10] erenon has left the channel [09:10] meso_ has joined the channel [09:17] anatoo has joined the channel [09:19] jomoho has joined the channel [09:20] Spion has joined the channel [09:23] cosmincx1 has joined the channel [09:26] rook2pawn has joined the channel [09:27] rook2pawn has joined the channel [09:27] sandstrom has joined the channel [09:30] pHcF has joined the channel [09:30] maru_cc_ has joined the channel [09:30] meatmanek__ has joined the channel [09:31] Bj_o_rn has joined the channel [09:31] Bj_o_rn has left the channel [09:32] tbassetto has joined the channel [09:35] Nexxy has joined the channel [09:35] Nexxy has joined the channel [09:35] cojack: guys [09:36] cojack: I have a question [09:36] cojack: http://nodejs.org/docs/v0.4.9/api/events.html#emitter.setMaxListeners [09:36] cojack: what exactly it means? [09:36] cojack: listeners, it's request? [09:38] baudehlo: if you do: for (var i=0; i <= 11; i++) { thingy.on('some_event', some_function) } - the last one will fail (if MaxListeners is set to 10). [09:39] cojack: like this, thanks [09:40] pickels__ has joined the channel [09:41] rodasc has joined the channel [09:43] cognominal_ has joined the channel [09:44] AvianFlu has joined the channel [09:44] thorsteinsson_ has joined the channel [09:45] secoif_ has joined the channel [09:45] addisonj__ has joined the channel [09:46] azend_ has joined the channel [09:47] igl has joined the channel [09:47] astropirate has joined the channel [09:47] uchuff has joined the channel [09:47] hookdump has joined the channel [09:47] w3rdness has joined the channel [09:47] pHcF has joined the channel [09:47] Nomon has joined the channel [09:47] cojack: wow [09:47] cojack: what was that? oO [09:48] JakeyChan_ has joined the channel [09:48] infynyxx has joined the channel [09:48] chjj: net split? [09:48] cha0s has joined the channel [09:48] cha0s has joined the channel [09:48] jeremyselier has joined the channel [09:48] [[zz]] has joined the channel [09:48] stagas_ has joined the channel [09:48] kkaefer: cojack: netsplit [09:49] sourcode has joined the channel [09:49] seivan has joined the channel [09:51] taf2 has joined the channel [09:52] kbni has joined the channel [09:52] thalll has joined the channel [09:53] ashb has joined the channel [09:53] pickels__ has joined the channel [09:55] cojack: guys, node create logs in /var/log as default? [09:55] temp02 has joined the channel [09:55] wbw72 has joined the channel [09:56] baudehlo: node doesn't create logs. [09:56] incon has joined the channel [09:57] thejh has joined the channel [09:58] luke`_ has joined the channel [09:59] joeytwiddle has joined the channel [10:00] astropirate_ has joined the channel [10:00] meso__ has joined the channel [10:01] aliem has joined the channel [10:01] pomodoro has joined the channel [10:02] cognominal has joined the channel [10:02] pHcF_ has joined the channel [10:03] industrial: I'm trying to wrap some mongodb statements into one function; https://gist.github.com/48893cf5ce0d20ad659a [10:03] industrial: I'm wonderinf ig I can wrap fn and close automatically [10:04] yokoe_ has joined the channel [10:05] realazthat has joined the channel [10:05] realazthat has joined the channel [10:05] hookdump has joined the channel [10:05] Slashbunny has joined the channel [10:05] realazthat has joined the channel [10:06] igl has joined the channel [10:06] enobrev has joined the channel [10:08] jeremyselier has joined the channel [10:08] StepanKuzmin has joined the channel [10:08] niftylettuce has joined the channel [10:08] pHcF has joined the channel [10:09] xastey` has joined the channel [10:09] mikeycgto has joined the channel [10:11] Nomon has joined the channel [10:11] StepanKuzmin has joined the channel [10:12] christophsturm has joined the channel [10:13] sfoster has joined the channel [10:13] igl has joined the channel [10:13] realazthat_ has joined the channel [10:13] piscisaureus has joined the channel [10:13] criswell has joined the channel [10:13] w3rdness has joined the channel [10:14] aliem has joined the channel [10:14] level09 has joined the channel [10:14] enobrev has joined the channel [10:14] keeto has joined the channel [10:14] hookdump has joined the channel [10:15] sylvinus has joined the channel [10:16] pHcF has joined the channel [10:17] cjm has joined the channel [10:19] Quantizationbit has joined the channel [10:20] cosmincx has joined the channel [10:21] sreeix_ has joined the channel [10:21] mikedeboer has joined the channel [10:21] sreeix has joined the channel [10:25] bnoordhuis has joined the channel [10:31] emacsen has joined the channel [10:32] gozala has joined the channel [10:33] hassox has joined the channel [10:33] sounko has joined the channel [10:34] Mrfloyd_ has joined the channel [10:35] Hinton has joined the channel [10:35] mike5w3c_ has joined the channel [10:43] ash___: hi [10:44] ash___: are there any examples of tree data modeling in mongoosejs? [10:48] AvianFlu has joined the channel [10:50] paulwe has joined the channel [10:52] Aiden has joined the channel [10:52] sandstrom has joined the channel [10:52] sandstrom has joined the channel [10:54] Renegade001 has joined the channel [10:59] xfigue has joined the channel [11:03] StepanKuzmin has joined the channel [11:04] infynyxx has left the channel [11:06] akmalfikri has joined the channel [11:06] akmalfikri: help please : [11:07] Mrfloyd has joined the channel [11:07] akmalfikri: Please help me here : https://github.com/visionmedia/express/issues/751 [11:08] fly-away has joined the channel [11:08] industrial: Did you google for "Error: Can't set headers after they are sent. " ? [11:10] akmalfikri: @fly-away : yeah googled it but the site was working previously on a staging domain [11:10] akmalfikri: but now not working [11:10] akmalfikri: opps, sorry @industrial [11:11] cojack: akmalfikri: this problem is very simple [11:11] cojack: and is not a node error, just yours [11:11] akmalfikri: yours? [11:11] cojack: you try to send a response after you send something [11:12] cojack: yeah, yours [11:12] rfactor has joined the channel [11:12] rfactor: Hi can someone help me with a tough NodeJS problem? [11:12] rfactor: I've tried to look for answers from several places, here's a pretty good description of my problem: http://stackoverflow.com/questions/6506710/nodejs-vm-runinthiscontext-and-lack-of-filename [11:13] micheil has joined the channel [11:13] fangel has joined the channel [11:13] akmalfikri: cojack : but why previously it was working at the staging domain but not after we changed domain name? [11:14] ukd1_b has joined the channel [11:14] cojack: akmalfikri: I gues, some typo [11:14] cojack: check the response [11:15] akmalfikri: so, i shouldnt have do multiple reponse at the same time? [11:15] AvianFlu has joined the channel [11:16] joemccann has joined the channel [11:16] cojack: how do you think you can make multiple response in one request? [11:17] cojack: if client ask about foo, you response to him, foo and after this bar? nonsens [11:17] cojack: learn about http protocol [11:21] RC1140 has joined the channel [11:22] eee_c has joined the channel [11:23] bnoordhuis: rfactor: what issue in particular are you running into? [11:24] rfactor: actually I finally solved it [11:24] rfactor: I had to look at Node's source code [11:27] akmalfikri: cojack : yeah ok. now what i need to do to solve this? [11:27] unlink has joined the channel [11:27] unlink has joined the channel [11:29] daveluke has joined the channel [11:29] daveluke: how do you scale node.js? [11:29] emacsen: daveluke, I have a little kitchen scale [11:29] daveluke: oh cool [11:29] daveluke: can i borrow it? [11:30] emacsen: daveluke, I put my node in a bowl that I zero the weight out first. [11:30] emacsen: daveluke, now, what's your question :) [11:31] daveluke: i've played with node... on the server side i set up an array for separate games [11:31] emacsen: daveluke, in most cirumstances, node isn't your limiting factor. But if it is, you can either run multiple instances on the same host, or run multiple hosts [11:31] emacsen: there's a "cluster" library for single host, and then on multiple hosts, it's the same as any other service [11:31] sounko has joined the channel [11:31] jetienne: emacsen: +1 [11:32] emacsen: but really, honestly, most of the time, CPU processing isn't the limiting factor, so node isn't the problem [11:33] random123: Whats the best way of writing HTML in Node instead of capturing it in a variable which is really messy? [11:33] jetienne: random123: use a template engine [11:33] emacsen: random123, there are many templating libraries [11:33] meso has joined the channel [11:33] jetienne: https://github.com/joyent/node/wiki/modules#templating [11:34] random123: What is the most popular method right now? I see like 25 and don't have time to look at them all [11:34] jrgp has joined the channel [11:34] emacsen: random123, you find one that most closely resembles the engine you're already using in whatver else you used before node :) [11:34] jrgp: is there a chr() in node.js? [11:34] jrgp: or some way I can output ascii chars by the number directly? [11:35] xfigue has left the channel [11:35] kkaefer: jrgh: there's one in javascript itself [11:35] random123: Oh, what is the most popular one? [11:35] kkaefer: String.fromCharCode [11:35] emacsen: random123, like, if you used haml, you can use jade [11:35] jrgp: kkaefer: so not charCodeAt? [11:35] jetienne: random123: i use ejs [11:35] kkaefer: jrgp: oh right, the other way around [11:36] jrgp: yeah that gives me "TypeError: Object function String() { [native code] } has no method 'charCodeAt'" [11:36] kkaefer: jrgp: wait... [11:36] kkaefer: you have a charcode and you want the corresponding char as string? [11:36] kkaefer: then use String.fromCharCode [11:36] emacsen: btw anyone here use the redis module? [11:36] kkaefer: if you want to get the code from a string, use str.charCodeAt [11:37] jetienne: jrgp: node is normal javascript. use the normal function that you konw [11:37] jrgp: ok "String.fromCharCode" works, thanks [11:37] jrgp: yeah I'm gathering that [11:37] hkjels: What is the name of the stylus library equivalent to compass? [11:38] daveluke: i want to create a multiplayer game with node js... how do i scale and allow for multiple simultaneous games [11:38] emacsen: daveluke, "how do I scale" is too generic a question. What are you scaling? [11:38] pigmej has joined the channel [11:38] pigmej: hey [11:38] pigmej: is there any string templating language ? [11:39] daveluke: emacsen, like the way i did it was i had an array to hold game objects on the serverside [11:39] pigmej: NOT HTML [11:39] daveluke: that got messy though.. [11:39] mape: pigmej: jade? [11:39] daveluke: and is a shitty idea [11:39] industrial: pigmej: you can output anythinw with a template language, why would it have to be HTML? [11:39] brianseeders has joined the channel [11:39] pigmej: mape: no.. [11:39] pigmej: jade is HTML [11:39] industrial: HTML is just what the client makes out of it [11:39] pigmej: i want 'string formatting' [11:39] industrial: sprintf ? [11:39] emacsen: daveluke, I don't see what that has to do with scaling. What is your limiting factor that you're trying to scale? [11:39] pigmej: industrial: to simple [11:40] pigmej: i need something like jade but without 'html' [11:40] pigmej: i found nTPL but it seems to be dead now [11:40] mape: then just send the jade source to them and let them figure it out themselves? [11:40] daveluke: emacsen, i just figured that using an array on the serverside javascript to store game data would exhaust in memory [11:40] pigmej: well jade tries to make html from it *always* [11:40] jbpros has joined the channel [11:41] mape: so what is the output you want? [11:41] emacsen: daveluke, it depends how big the array is, and your HW [11:41] jrgp: can I catch errors that corrospond to invalid array keys? [11:41] pigmej: mape: i want string output ;) [11:41] pigmej: not html ;) [11:41] jetienne: pigmej: new String() [11:41] kkaefer: daveluke, emacsen, also v8 has a rough limit of about 1 GB of data in javascript land [11:41] mape: then striptag the html? [11:41] pigmej: mape: too slow :P [11:41] emacsen: daveluke, but that doesn't sound like a scaling issue. But again, when you talk about "scaling"- you need to know what your resource limits are [11:42] mape: pigmej: then just send strigs? [11:42] mape: *strings [11:42] mape: and make sure they don't look like html! [11:42] emacsen: kkaefer, right, so there's no way to know with so little information being presented [11:42] pigmej: mape: I can't [11:42] pigmej: that's not the point [11:42] emacsen: maybe it's a few kbytes of game data. Or maybe it's a gig. I have no idea :) [11:42] pigmej: i want 'plain text' templates [11:42] bpwnr has joined the channel [11:42] jetienne: pigmej: hehe what about telling what you want [11:43] pigmej: jetienne: I just said it :) [11:43] pigmej: I want plain text output [11:43] mape: pigmej: pipe it through lynx and send that to the user [11:43] pigmej: of my plain text template with variables ;) [11:43] emacsen: kkaefer, nor is he teling me why running N instances of node won't just solve his "scaling" problem, as I said to him 10 mins ago :) [11:43] jetienne: pigmej: well you had 5 answers, it is engouth no ? [11:43] pigmej: to slow ;-) [11:43] pigmej: jetienne: none was the answer for my problem :) [11:43] pigmej: html => text == to slow [11:43] jetienne: pigmej: they answered your question [11:43] mape: html === text [11:43] pigmej: new String() => not that what I want [11:43] pigmej: mape: plain text... [11:43] Nican_ has joined the channel [11:43] jetienne: pigmej: it answer your question [11:43] pigmej: not html ;-) [11:43] mape: it is plain text [11:44] herbySk has joined the channel [11:44] mape: just that the browser parses it :'( [11:44] pigmej: wrr [11:44] emacsen: pigmej, want string formatting ala "#{foo} #{bar}" ? [11:44] pigmej: emacsen: something like that [11:44] pigmej: but with some conditional things also... [11:44] pigmej: mape: i want 'string' not html [11:44] pigmej: and I'm not sending result to a browser:P [11:44] mape: then just send strings? [11:45] emacsen: pigmej, then do what coffeescript does. If you want conditions, then USE A TEMPLATING ENGINE [11:45] jetienne: i dont think he want an answer [11:45] emacsen: who cares what you're sending it to. it's http! Set the mime type! [11:45] mape: jetienne: But I have so many answers [11:45] pigmej: damn... [11:45] pigmej: guys... [11:45] jetienne: mape: none will satisfy him i think [11:45] pigmej: I don't want to send it to a browser [11:45] pigmej: I want PLAIN TEXT [11:45] pigmej: without HTML tags [11:45] pigmej: etc [11:45] jetienne: pigmej: https://github.com/joyent/node/wiki/modules#templating [11:45] mape: pigmej: then send plain text? [11:46] jetienne: pigmej: you got a bunch there, make your pick [11:46] pigmej: mape: from what template? [11:46] pigmej: jetienne: i searched... [11:46] pigmej: 90% of them is dead [11:46] pigmej: since year or more [11:46] pigmej: then you have jade => not that what I wanted [11:46] jetienne: pigmej: search better [11:46] mape: pigmej: you want a "template" that isn't html? [11:46] pigmej: mape: yup [11:46] pigmej: I'm trying to said that since beginning ;-) [11:46] mape: and that template will be used for? [11:46] pigmej: to generate plain text messages [11:46] pigmej: ;-) [11:46] mape: Yeah, just that it isn't making any sense [11:47] pigmej: WITHOUT HTML [11:47] pigmej: why ? [11:47] tuhoojabotti: WITH XHTML [11:47] tuhoojabotti: ":D" [11:47] jetienne: pigmej: stop trolling please [11:47] pigmej: mape: I'm not using node to write web apps ;) [11:47] mape: No idea, might be that you aren't making any sense [11:47] CrypticSwarm has joined the channel [11:47] davidbanham has joined the channel [11:47] emacsen: pigmej, do you understand that xml is just plain text? [11:47] pigmej: mape: the thing is that I need to send a plain text (without html and any other markup thing) thing [11:47] pigmej: emacsen: sure... [11:48] mape: pigmej: then just send plain text without html or other markup things? [11:48] pigmej: but I have no idea how to say that I dont want any tags there [11:48] emacsen: pigmej, then if you understand that, you'll see why most templating engines will work for you. If you don't want tags, don't use any tags [11:48] pigmej: emacsen: sure.. but [11:48] jetienne: oh wait i got one in 20line :) [11:48] pigmej: for example jade [11:48] pigmej: is trying ALWAYS to make html [11:48] emacsen: pigmej, okay, so jade won't work. Use another [11:48] jetienne: pigmej: no [11:49] pigmej: anywya... sorry for misunderstand when I used 'plain text' [11:49] jetienne: https://github.com/jeromeetienne/shorttag.js/blob/master/lib/shorttag.js#L14-34 pigmej you can code your own in 20line [11:49] pigmej: i thought it will be the best word to describe it :) [11:50] aliem has joined the channel [11:50] emacsen: pigmej, basically, you want us to choose a library for you [11:50] emacsen: pigmej, well guess what? No one's going to do that. You'll have to find one that suits your needs yourself. [11:50] pigmej: emacsen: well [11:50] pigmej: I wanted 'advise' [11:50] pigmej: ;-) [11:50] pigmej: not the choose ;) [11:51] emacsen: "Find me music I like! Music that suits my tastes! Don't choose music I don't like!" [11:51] jetienne: pigmej: use mine https://github.com/jeromeetienne/shorttag.js/blob/master/lib/shorttag.js#L14-34 [11:51] eyesUnclouded has joined the channel [11:51] pigmej: emacsen: I asked you as more expirienced node.js coders to recommend any lib that will suit my needs [11:51] jetienne: pigmej: good advice trust me [11:51] pigmej: jetienne: yup it seems exactly what I wanted I think [11:51] jetienne: pigmej: cool [11:51] jetienne: ACTION hopes it is now over [11:52] AAA_awright has joined the channel [11:52] kkaefer: pigmej: http://documentcloud.github.com/underscore/#template [11:52] wilmoore has joined the channel [11:53] pigmej: ok kkaefer even better ;) [11:53] pigmej: jetienne: sorry:D [11:54] pigmej: kkaefer: thanks you very much :) [11:55] tcurdt has joined the channel [11:55] stalled has joined the channel [11:57] unomi has joined the channel [11:58] xtianw has joined the channel [12:00] fangel has joined the channel [12:02] sylvinus has joined the channel [12:02] pigmej: btw guys, you shouldn't always think that everyone is using node for 'web things' it's not mandatory, also saying that I'm trolling here. [12:03] AvianFlu has joined the channel [12:03] empt has joined the channel [12:04] empt has left the channel [12:04] okuryu has joined the channel [12:04] empt has joined the channel [12:05] ovnicraft has joined the channel [12:05] emacsen: pigmej, http://www.catb.org/~esr/faqs/smart-questions.html [12:05] bshumate has joined the channel [12:05] kkaefer: pigmej: to be fair, your question wasn't phrased in an easy to understand way [12:05] saschagehlich has joined the channel [12:06] meso_ has joined the channel [12:07] emacsen: and it was an opinion question, and when people gave you their opinions you said you didn't like them. [12:07] bpwnr: I've installed node.js in a virtualbox under ubuntu server 11.04, receiving an error when trying to run node that says the package has not been installed yet. I followed the install instructions at github, and had it working on a previous build. Anyone know why it's giving me trouble now? [12:07] emacsen: don't use the deb package [12:07] meso___ has joined the channel [12:08] pigmej: kkaefer: well "(01:38:58 PM) pigmej: is there any string templating language ?" [12:08] bpwnr: I used git to clone and built with instructions at 3a on git [12:08] pigmej: if I wanted HTML I would ask "html templating language" [12:08] ceej has joined the channel [12:08] kkaefer: pigmej: the answer to that question is either "yes" or "no" [12:09] emacsen: bpwnr, what is the specific error you're seeing? [12:09] kkaefer: pigmej: people pointed you to a vast list of templating languages [12:09] eee_c has joined the channel [12:09] pigmej: kkaefer: sure... I wrote that 90% of them is 'dead' [12:09] kkaefer: so? [12:09] kkaefer: that doesn't mean you can't use them or that they're not "string templating languages" [12:09] pigmej: kkaefer: agree... [12:09] emacsen: dead = "finished" [12:10] emacsen: there's nothing left to add, so it's "dead" :) [12:10] pigmej: emacsen: sure... [12:10] bpwnr: emacsen, The program 'node' can be found in the following packages:, and lists node nodejs, telling me to use apt-get [12:10] pigmej: and you can't install it via npm [12:10] emacsen: I'm surrounded by dead buildings :) [12:10] pigmej: because of errors ;] [12:10] bpwnr: when trying 'node server.js' [12:10] meso has joined the channel [12:10] pigmej: (nTPL for example) [12:10] emacsen: bpwnr, sounds like it's not in your PATH [12:11] pigmej: kkaefer: agree, I should ask about examples not about existence ;-) [12:11] bpwnr: that's what I was thinking, but doing it twice now I was sure I couldn't screw that step up. [12:11] bpwnr: I will try once more [12:12] Vertice has joined the channel [12:12] ceej has joined the channel [12:12] emacsen: bpwnr, type: which node [12:12] emacsen: you don't need to try once more. Try doing what I asked :) [12:13] pigmej: emacsen: I didn't say that I don't like them, i said that's not what I wanted to do :) [12:13] kkaefer: pigmej: I think we're good now [12:13] pigmej: anyway... :peace: ;-) [12:14] pigmej: kkaefer: sure... I have nothing to *all* of you. I just wanted to say that you shouldn't always think about node.js => web apps ;-) it's also good in tcp and/or udp servers / apis (json only for example) [12:15] mAritz has joined the channel [12:15] sounko has joined the channel [12:15] piscisaureus__ has joined the channel [12:19] sfoster has joined the channel [12:19] erobit has joined the channel [12:20] AvianFlu has joined the channel [12:21] thejh has joined the channel [12:21] akshatj_ has joined the channel [12:22] level09 has joined the channel [12:22] AvianFlu has joined the channel [12:26] bpwnr: thanks emacsen, got it working :) [12:26] AvianFlu_ has joined the channel [12:26] emacsen: was it not on your path? [12:27] squeese has joined the channel [12:27] bpwnr: yeah [12:27] emacsen: :) [12:27] fumanchu182 has joined the channel [12:28] igl has joined the channel [12:28] cccaldas has joined the channel [12:30] cosmincx1 has joined the channel [12:31] eee_c has joined the channel [12:35] Yoric has joined the channel [12:35] _aron has joined the channel [12:35] mehtryx has joined the channel [12:35] cjm has joined the channel [12:35] stalled has joined the channel [12:44] rfay has joined the channel [12:45] kriszyp has joined the channel [12:46] JKarsrud_ has joined the channel [12:46] JKarsrud has left the channel [12:46] stagas_ has joined the channel [12:46] thomblake has joined the channel [12:48] ianward has joined the channel [12:48] ianward has left the channel [12:48] ukd1_b has joined the channel [12:49] isaqual has joined the channel [12:50] akshatj has joined the channel [12:51] altamic has joined the channel [12:51] sivy has joined the channel [12:53] raphdg has joined the channel [12:54] AaronMT has joined the channel [12:55] xandrews has joined the channel [12:55] paznicul has joined the channel [12:56] Badababuba has joined the channel [12:56] sourcode has joined the channel [12:58] smtlaissezfaire has joined the channel [13:01] rem__ has joined the channel [13:02] Lightdork has joined the channel [13:02] tim__ has joined the channel [13:02] jnia has joined the channel [13:02] tim__: hello [13:03] jakehow has joined the channel [13:04] JKarsrud: hey tim__ [13:04] JKarsrud: oh, he quit :P [13:09] jameson has joined the channel [13:10] fangel has joined the channel [13:11] pNstK has joined the channel [13:12] c4milo has joined the channel [13:12] X-Scale has joined the channel [13:14] davidsklar has joined the channel [13:14] fumanchu182 has joined the channel [13:15] Poetro has joined the channel [13:16] level09 has joined the channel [13:17] jetienne has joined the channel [13:20] TechCel has joined the channel [13:20] rauchg has joined the channel [13:21] level09 has left the channel [13:21] jetienne: `3rdEden: are you around ? a few day ago, you told me you used qunit sometime. do you use the official one from jquery or the node-qunit ? https://github.com/kof/node-qunit which reimplemented qunit [13:22] bradleymeck has joined the channel [13:22] `3rdEden: node qunit [13:22] cosmincx has joined the channel [13:22] davidwalsh has joined the channel [13:23] rwaldron has joined the channel [13:24] seivan has joined the channel [13:24] rendez has joined the channel [13:25] jvduf has joined the channel [13:25] bradleymeck: anyone using node-inspector lately? getting an odd error related to list._idleNext in nodes core [13:27] bnoordhuis: bradleymeck: can you gist or pastie the stack trace? [13:27] meso has joined the channel [13:28] asobrasil has joined the channel [13:28] djw_ has joined the channel [13:28] bradleymeck: bnoordhuis same as : https://github.com/dannycoates/node-inspector/issues/47 [13:30] meso_ has joined the channel [13:32] bnoordhuis: bradleymeck: right, i know that error [13:32] bnoordhuis: bradleymeck: out of curiosity, does it work when you run node with --use-uv? [13:33] smtlaissezfaire has joined the channel [13:33] mobius-: hi quick question. I have a synchronous server where I am sending a command and wait for the response. In node.js this is all done asyncronously where I call connection.write() and I get an event 'data' with the response. In order to make it work properly I though to store the last command executed so that I know how to parse the response on the 'data' emitted. Is this the node way to go? [13:34] yhahn has joined the channel [13:34] bnoordhuis: mobius-: yes, kind of [13:34] bnoordhuis: mobius-: if you're familiar with state machines, that's the node approach [13:35] mobius-: bnoordhuis, do you happen to have any references I could go and read? I've been googling all morning but in vain.. [13:36] bnoordhuis: mobius-: ehm... have a look at the source code of modules like node-irc [13:36] bnoordhuis: that should give you an idea of things work in node [13:37] bnoordhuis: *how things [13:37] mobius-: bnoordhuis, ok will do that :) thanks [13:38] willwhite has joined the channel [13:38] pHcF has joined the channel [13:39] ryanfitz has joined the channel [13:39] tiagobutzke has joined the channel [13:41] nibblebot has joined the channel [13:41] unomi has joined the channel [13:42] micheil: bnoordhuis: node doesn't use state machines [13:43] micheil: it uses state storage [13:43] micheil: slightly different, but can achieve similar results [13:43] ivaldi has joined the channel [13:43] mapleman has joined the channel [13:44] tiagobutzke has joined the channel [13:46] kmiyashiro has joined the channel [13:47] davidbanham has joined the channel [13:47] fangel has joined the channel [13:47] mobius-: bnoordhuis, ok I think I got what the node-irc does. is it efficient to add listeners and remove them for each command executed though? [13:47] kmiyashiro has joined the channel [13:48] bnoordhuis: mobius-: super efficient? no [13:49] bnoordhuis: mobius-: does it make a difference in the grand scheme of things? probably not [13:50] mobius-: bnoordhuis, so I guess super optimization is always out of the question :) [13:51] dtan has joined the channel [13:52] dnjaramba has joined the channel [13:52] jetienne has joined the channel [13:53] bradleymeck: mobius- the advantage with hooking individual commands is that you get a ton of customization that you cannot do if you hard code everything. And raw calls in v8 are dirt cheap so performance wise it would make little difference. [13:54] mobius-: bradleymeck, yeah ok this is probably true [13:56] simfa has joined the channel [13:56] ksheurs has joined the channel [13:57] Nizam has joined the channel [13:58] rfay has joined the channel [13:58] davidwalsh has joined the channel [13:59] daveluke has joined the channel [14:00] smtlaissezfaire has joined the channel [14:01] criswell has joined the channel [14:02] d0k has joined the channel [14:02] smtlaissezfaire_ has joined the channel [14:04] AvianFlu_ has joined the channel [14:04] jj0hns0n has joined the channel [14:05] blup: any experienced node.io users? how would one set up a proxy for its requests? [14:06] fermion has joined the channel [14:06] tuhoojabotti: What u mean [14:06] tuhoojabotti: I proxy my requests to node via mod_rewrite :D [14:07] apardo has joined the channel [14:08] navlelo has joined the channel [14:08] blup: tuhoojabotti: basically, i tried this and it didn't work for me either: https://github.com/chriso/node.io/issues/32 [14:08] keyvan: hey all [14:08] systemfault_ has joined the channel [14:09] keyvan: anyone got experience with node-ncurses (trying to use https://github.com/mscdex/node-ncurses ) [14:09] hwinkel has joined the channel [14:09] springmeyer has joined the channel [14:09] keyvan: i keep getting segfault, for any of his examples. [14:09] explodes has joined the channel [14:09] Tidwell has joined the channel [14:09] systemfault has joined the channel [14:10] bzinger has joined the channel [14:10] paulwe_ has joined the channel [14:10] Mikushi has joined the channel [14:11] edt has joined the channel [14:11] ryanfitz has joined the channel [14:12] edt: I just got my first Joyent node smartmachine, but can't connect via SSH w/Windows & Putty. In Putty, after I enter my username, I get the error "Disconnected: No supported authentication methods available". How to make it work? [14:14] lukstr: edt: is there an out of band terminal on some web admin interface? [14:14] fangel has joined the channel [14:14] JJMalina has joined the channel [14:14] mbrevoort has joined the channel [14:15] edt: @lukstr sorry, but I don't know what "out of band" means [14:16] gtramont1na has joined the channel [14:16] jslatts has joined the channel [14:16] lukstr: edt: is there any terminal access through a web interface/ [14:16] bradleymeck has joined the channel [14:17] edt: @lukstr no [14:17] realazthat_ has left the channel [14:19] xtianw_ has joined the channel [14:20] lukstr: edt: no idea you're probably best off waiting for a joyent employee to wake up. Or call them :P [14:20] sonnym has joined the channel [14:20] xtianw has joined the channel [14:21] gtramont1na has joined the channel [14:21] edt: @lukstr ok, sounds good [14:21] xtianw has joined the channel [14:22] edt has left the channel [14:22] dnjaramba has joined the channel [14:23] EyePulp has joined the channel [14:23] level09 has joined the channel [14:24] brianc has joined the channel [14:25] mraleph has joined the channel [14:25] brolin has joined the channel [14:26] ryanfitz has joined the channel [14:27] BillyBreen has joined the channel [14:27] Wizek has joined the channel [14:28] robhawkes has joined the channel [14:28] balaa_ has joined the channel [14:29] hij1nx has joined the channel [14:30] phiggins has joined the channel [14:30] pjacobs has joined the channel [14:31] mandric has joined the channel [14:32] pifantastic has joined the channel [14:33] luke` has joined the channel [14:33] rohit_nsit08 has joined the channel [14:34] rohit_nsit08: hello #node [14:34] rohit_nsit08: anybody up? [14:34] tuhoojabotti: Hello rohit_nsit08 [14:34] rohit_nsit08: tuhoojabotti: hi [14:34] rohit_nsit08: i was working on a test-suite [14:35] rohit_nsit08: and that required "test" module [14:35] tuhoojabotti: I've been working well, work. [14:35] keyvan: yes. [14:35] keyvan: trying to figure out why node-ncurses keeps giving a segfault for the examples.... :( [14:35] tuhoojabotti: a.k.a. slack on IRC. [14:35] rohit_nsit08: but now I'm getting error that "test" module is not present in node [14:35] rohit_nsit08: after checking in /lib folder it is confirmed that it is not there [14:35] rohit_nsit08: is there any way to get the "test" module working [14:35] clifton has joined the channel [14:36] aheckmann has joined the channel [14:36] rohit_nsit08: basically I'm working on a command line application that required node to compile and test [14:36] rohit_nsit08: pls help [14:38] rohit_nsit08: tuhoojabotti: is "test" module available in node version 4.2 ? [14:38] softdrink has joined the channel [14:38] tuhoojabotti: What is test module? [14:38] saschagehlich has joined the channel [14:38] rohit_nsit08: a commonjs module http://wiki.commonjs.org/wiki/Unit_Testing/1.0 [14:39] rohit_nsit08: for unit testing [14:39] rohit_nsit08: oops ! that was 0.4.2 [14:40] kkaefer: rohit_nsit08: no; node.js doesn't follow the CommonJS [14:40] kkaefer: spec [14:40] CIA-107: libuv: 03Bert Belder 07master * r036d5db 10/ test/test-getsockname.c : test-getsockname: minor cleanups - http://bit.ly/oBRNoJ [14:40] CIA-107: libuv: 03Bert Belder 07master * rb4f1d58 10/ msvs/libuv-test.vcxproj : Add test-getsockname to msvs project - http://bit.ly/nysk1S [14:40] gvz has joined the channel [14:41] balaa has joined the channel [14:42] jvduf_ has joined the channel [14:42] highermath_away has joined the channel [14:42] akshatj_ has joined the channel [14:42] rphillips has joined the channel [14:44] ap3mantus has joined the channel [14:45] enobrev has left the channel [14:45] colinclark has joined the channel [14:45] infynyxx has joined the channel [14:46] infynyxx has left the channel [14:46] mraleph1 has joined the channel [14:47] Corren has joined the channel [14:48] fangel has joined the channel [14:50] explodes: Can one execute commands on the local machine with node? [14:50] EyePulp: explodes: you mean jump out to a commandline? [14:51] explodes: Yes [14:51] EyePulp: or execute locally? [14:51] colinclark has joined the channel [14:51] explodes: Start a subprocess or something [14:51] EyePulp: explodes: I think it can, but I'm not familiar with the details. [14:51] explodes: oh, execute locally [14:51] explodes: I can't find anything in the API docs [14:52] explodes: rohit_nsit08: Try reut, its pretty sweet, alllows testing that 'emits' are emitting and that callbacks are called [14:53] bradleymeck: explodes, child_process module? [14:53] cafesofie has joined the channel [14:53] explodes: Oh wow, duh [14:53] explodes: Nice, thanks [14:54] bpierre has joined the channel [14:54] bradleymeck: explodes just go to the single page docs and ctrl+f for a unix cmd or c function and if its there it will generally be the same name fortunately [14:54] random123 has joined the channel [14:56] LightningCube has joined the channel [14:57] curtisharvey has joined the channel [14:59] marshall has joined the channel [14:59] marshall: hey nodejs [14:59] tuhoojabotti: Hello marshall [14:59] Corren: morning [14:59] gazumps has joined the channel [14:59] Corren: anyone have a good example of an express site using multiple partial views? [15:00] industrial: I don't understand why this code seems to be called twice. https://gist.github.com/fb7aa20309199445fcfd [15:00] industrial: I get AAAAAA niceobjecthere AAAAAAA null, and then my app crashes on the null value [15:01] ank has joined the channel [15:01] marshall: I've made a function with a bunch of event-centric stuff inside it. How do I get the function to return a value on a certain event? something like `function do_stuff(){ emitter.on('stuff is done', function(result){ return result; })}` [15:01] ritch has joined the channel [15:01] keyvan: anyone tried node-ncurses? [15:01] ritch has left the channel [15:02] abraham has joined the channel [15:02] keyvan: segfault is leaving me high and dry :( [15:02] curtisharvey has left the channel [15:02] Mrfloyd has joined the channel [15:02] mape: keyvan: talk to mscdex :) [15:03] keyvan: oh i didnt realize he's in this channel! mscdex please ping me when you have the time if you don't mind, i'm counting on you :] [15:03] keyvan: thx mape [15:03] mape: :) [15:04] ryanfitz has joined the channel [15:04] keyvan: this is what im trying to build. need this for the next steps https://github.com/keyvanfatehi/nim [15:04] keyvan: was having so much fun until now lol [15:04] marshall: tuhoojabotti: you know what I mean? [15:05] monokrome: keyvan: Are you trying to see an object in node-ncurses? [15:05] monokrome: (with console.log, console.dir, etc) [15:05] keyvan: monokrome: im trying to just get the damn examples to run for now lol [15:06] monokrome: oic [15:06] kmiyashiro has joined the channel [15:06] dguttman has joined the channel [15:06] keyvan: could it be related to the warning that i have no node path ? [15:06] Aiden has joined the channel [15:06] monokrome: Because it's a known bug that you can't use ncurses in interactive mode and you can't console.log, console.dir, etc the ncurses module without segfaulting [15:06] keyvan: monokrome: oh yeah i figured as much [15:06] keyvan: monokrome: ive been trying to figure out how to debug it--can't figure it out [15:07] monokrome: It's not fun :) [15:07] kimico has joined the channel [15:07] briznad has joined the channel [15:07] confoocious has joined the channel [15:07] keyvan: lol yeah, i can tighten up the other parts of my app until i hear back from mscdex, i'm sure im just being stupid somewhere and he'll throw me a bone and help me [15:08] dmcquay has joined the channel [15:08] keyvan: been coding this little program pretty much nonstop the past 2 days, so close i can almost taste it lol [15:08] tristanoneil has joined the channel [15:08] chrischris has left the channel [15:09] Lorentz: I've been putting on my system admin hat on last few days [15:09] tristanoneil: Does anyone know if there's a way to dynamically name a variable? [15:09] tbranyen: tristanoneil: depends on your scope [15:09] robertfw has joined the channel [15:09] tbranyen: tristanoneil: but if you want it global, then global["myVar"] = "something" [15:09] Lorentz: read-only svn mirror of my git repositories [15:10] brianloveswords has joined the channel [15:10] tristanoneil: what if I want to name it only within the scope of the current function I'm in? [15:10] tbranyen: create a floating obj [15:10] tbranyen: var self = {}; or something [15:11] bnoordhuis: Lorentz: why!? [15:13] bradleymeck: tristanoneil you dont w/o eval, and doing an eval post setup is costly as F, and leads to loop holes (not to mention the `delete` problem) [15:13] bradleymeck: just make a namespace object, much cheaper [15:14] Robdor has joined the channel [15:14] jtsnow has joined the channel [15:14] Lorentz: bnoordhuis: Some of my parents' hosting doesn't have git. [15:15] marshall: I'm trying to control the flow within a function using events, but I want that function to finally return something when an event is called. Is there a way to do this? [15:15] marshall: *when an event is emitted [15:15] bnoordhuis: Lorentz: i feel for you [15:16] marshall: something like `function do_stuff(){ emitter.on('stuff is done', function(result){ return result; })}` [15:19] keyvan: would it be so bad to /not/ use node-ncurses... and try to implement the desired behavior myself, set at like 30 frames per second? [15:20] keyvan: is that so evil? [15:20] keyvan: so wrong and blasphemous? [15:20] keyvan: can't be any harder than it was to do SDL programming.... [15:21] jvduf has joined the channel [15:21] addisonj: yep, pure evil, something like that will thrust you straight to hell [15:21] keyvan: haha, ty for the wit [15:22] softdrink: why does los angeles have it's own TLD? [15:22] halfhalo: why not? [15:22] Robdor has left the channel [15:22] monokrome: because they're hardcore [15:23] halfhalo: DAMN STRAIGHT [15:23] bradleymeck: marshall no, you cannot block the function for the return value to be different, pass in callbacks instead [15:23] softdrink: finding a good domain is so damn hard these days :( [15:24] FuzzYspo0N has joined the channel [15:24] FuzzYspo0N: evening [15:25] dsirijus has joined the channel [15:26] keyvan: good evening FuzzYspo0N, how do you do, good sir? [15:26] keyvan: or madam [15:26] syst3mw0rm has joined the channel [15:26] monokrome: or alieninvaderfromtheplanetmars [15:26] monokrome: Don't forget that one. [15:26] FuzzYspo0N: sir, heh :) I am doing well, messing with this coroutine lib for v8 [15:27] keyvan: monokrome: on that note, Falling Skies == pure win [15:27] unlink has joined the channel [15:27] unlink has joined the channel [15:27] chjj: hmmm too many `a || b` expressions causes a stack overflow [15:28] edt has joined the channel [15:28] madsleejensen has joined the channel [15:29] Destos has joined the channel [15:29] sylvinus has joined the channel [15:29] keyvan: chjj: great website. [15:29] eyesUnclouded has joined the channel [15:30] FuzzYspo0N: anyone used/seen this ? http://code.google.com/p/js-coroutine/ [15:30] rohit_nsit08 has joined the channel [15:30] edt: Just got my Joyent node smart machine. Want to transfer my existing site from Rackspace. Trying to ssh in with Windows & Putty but getting error "Disconnected, No supported authentication methods available". Any idea how to fix? [15:30] pjacobs has joined the channel [15:31] edt: I put same issue here: http://serverfault.com/questions/289918/ssh-key-setup-for-joyent-node-smartmachine-and-windows [15:31] softdrink: ACTION registers froinlav.in [15:32] kulor-uk has joined the channel [15:32] jakehow has joined the channel [15:34] pjacobs2 has joined the channel [15:34] chrischris has joined the channel [15:36] stagas_ has joined the channel [15:36] NetRoY has joined the channel [15:36] drudge: is there something like Object.values [15:37] Spion_ has joined the channel [15:37] bradleymeck: drudge Object.keys only [15:37] nroot7 has joined the channel [15:37] addisonj: underscore will help you though http://documentcloud.github.com/underscore/#values [15:38] drudge: bummer [15:38] peol has joined the channel [15:38] bradleymeck: FuzzUspo0N multiple people use https://github.com/laverdet/node-fibers , but i dont personally [15:38] tjholowaychuk has joined the channel [15:39] stepheneb has joined the channel [15:39] rfay has joined the channel [15:39] tbranyen: yo tjholowaychuk https://github.com/tbranyen/node-combine its in heavy alpha [15:39] nroot7: I am trying to build node on windows. I tried by cloning the repo on github and issuing the cmake . but it fails with deps/c-ares and libev, libeio not found [15:39] FuzzYspo0N: bradleymeck, thanks, i just found a post on this one, but i am wondering about that one that i linked [15:39] nroot7: is this expected ? [15:41] Spion has joined the channel [15:41] chjj: keyvan: my website? [15:41] bnoordhuis: nroot7: do you compile under cygwin? [15:41] keyvan: chjj: oh no i was joking, you said stack overflow so i was like "lol da website" [15:41] chjj: ohhh [15:41] keyvan: chjj: sorry :P [15:41] chjj: lol [15:41] vipaca has joined the channel [15:41] nroot7: bnoordhuis: no, compiler was selected as VS 2010 [15:42] pen has joined the channel [15:42] softdrink has left the channel [15:42] chjj: stackoverflow bugs me sometimes [15:42] postwait has joined the channel [15:42] softdrink has joined the channel [15:42] EyePulp: so what's the current leading module for parsing html? I can't even get the basic example for "scraper" working, so I'm looking around. [15:42] ovnicraft has joined the channel [15:42] bnoordhuis: nroot7: there's your problem - windows support is being worked on but right now, cygwin is your best option [15:43] fostah has joined the channel [15:43] addisonj: nroot7, wait a a few days, 0.5.1 will have official windows binaries [15:44] addisonj: if you are impatient, 0.5.0 can be compiled with the optional libuv flag to make things work [15:44] hybsch has joined the channel [15:45] nroot7: addisonj: cool, topic says it will be released tomorrow [15:45] addisonj: ah that it does [15:45] chjj: could possibly be slightly unstable though ;) [15:46] addisonj: probably better than running under cgywin though [15:46] addisonj: i'd rather stick a fork in my eye than run cgywin [15:46] keyvan: addisonj: haha [15:46] chjj: im not sure, if its not for production, id rather run stuff under cygwin [15:47] FuzzYspo0N: oh so windows support is coming ? thats great [15:47] FuzzYspo0N: I have been behind on the news with node [15:47] broofa has joined the channel [15:48] addisonj: ACTION wonders why people run cgywin, why not just use virtual box and get a real linux install [15:49] nroot7: I just tried compiling 0.5.0 from http://blog.nodejs.org/2011/07/06/node-v0-5-0-unstable/ with cmake and it fails with same error as trunk and i think use-uv is a runtime flag ? [15:49] sandropadin has joined the channel [15:49] chjj: or just install linux [15:49] nroot7: anyways will wait till tomorrow for official build [15:49] nroot7: chjj: i miss netflix on linux [15:49] bradleymeck: addisonj, because microsoft products you may be trying to triage w/ node dont run there :( [15:49] FuzzYspo0N: huh, people still argue about that eh. [15:50] eee_c has joined the channel [15:50] stephank has joined the channel [15:50] chjj: nroot7: netflix is an evil organization determined to rule the world [15:50] chjj: ! [15:51] nroot7: chjj: yeah but then who isnt ;) [15:51] andriijas has joined the channel [15:53] justicefries has joined the channel [15:53] wilmoore has joined the channel [15:53] tbranyen: rule the world... [15:53] tbranyen: i would have picked a better business model than distributing media content [15:54] pigmej: hmmm [15:54] pigmej: nodemailer sends the mail always twice?:D [15:54] softdrink: windows can die in a fire :) [15:55] sw8sw8 has joined the channel [15:55] chjj: i think it already has [15:56] softdrink: "And most of all, I'd like to thank my operating system: Windows Vista, for all your com-SYSTEM ERROR" — Calculon [15:56] andriijas: how come when i install something with npm i get unmet dependency? [15:57] Yuffster_work has joined the channel [15:57] febits has joined the channel [15:57] arnee has joined the channel [15:58] sylvinus has joined the channel [15:58] smtlaissezfaire_ has joined the channel [15:58] eyesUnclouded has joined the channel [15:59] jtrudeau has joined the channel [16:01] rworth has joined the channel [16:01] [[zz]] has joined the channel [16:01] kmiyashiro has joined the channel [16:03] arnee has joined the channel [16:04] sw8sw8 has left the channel [16:04] stagas_ has joined the channel [16:05] Corren has joined the channel [16:06] CIA-107: libuv: 03Ben Noordhuis 07master * r9c19391 10/ test/test-ping-pong.c : test-ping-pong: cast callback to expected prototype. (+5 more commits...) - http://bit.ly/q7JWZs [16:06] daveluke has joined the channel [16:07] ditesh|cassini has joined the channel [16:07] JaKWaC has joined the channel [16:08] eventual- has joined the channel [16:08] carmony has joined the channel [16:09] empt has left the channel [16:09] edt2 has joined the channel [16:11] brettgoulder has joined the channel [16:12] springmeyer has joined the channel [16:13] zemanel has joined the channel [16:14] prettyrobots has joined the channel [16:16] edt2: Any Joyent guys around? I'm trying to ssh into my first node smart machine with Windows & putty, but getting error "Disconnected, No supported authentication methods available". More details here: http://serverfault.com/questions/289918/ssh-key-setup-for-joyent-node-smartmachine-and-windows [16:17] sbisbee has joined the channel [16:18] mandric has joined the channel [16:20] saurabhverma has joined the channel [16:20] broofa has joined the channel [16:21] seivan_ has joined the channel [16:21] matomesc has joined the channel [16:22] chrischris has left the channel [16:23] jerrysv has joined the channel [16:24] sharkbird has joined the channel [16:24] sharkbird has left the channel [16:24] speekac has joined the channel [16:24] orospakr has joined the channel [16:24] speekac: Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a} make: *** [program] Error 1 [16:24] speekac: anyone has this error? [16:24] blkcat: win 30 [16:24] blkcat: whoops. :D [16:25] dshaw_ has joined the channel [16:25] stagas_ has joined the channel [16:26] ritch has joined the channel [16:26] ritch has left the channel [16:27] addisonj: edt2, use pageant to manage your ssh keys [16:27] arnee has joined the channel [16:28] kriszyp has joined the channel [16:29] Determinist has joined the channel [16:30] edt2: @addisonj Thanks, will give that a shot [16:30] addisonj: you also have to uplaod the keys to no.de [16:30] amerine has joined the channel [16:31] smolyn has joined the channel [16:32] edt2: @addsonj I can just paste in the SSH keys to the Joyent admin area | "account" screen | "ssh" screen, right? [16:32] dgathright has joined the channel [16:34] ajh89 has joined the channel [16:34] jtsnow has joined the channel [16:34] ajh89 has left the channel [16:35] addisonj: probably, did you generate a key for yourself? [16:40] saschagehlich has joined the channel [16:41] Tidwell: so, I've just wrapped up a first pass at a npm module for Valve's steam web api - I'd appreciate any advice on organization/best practices/how-bad-my-code-is :P before I finish the docs & add it to the npm registry -- http://github.com/Tidwell/nodeSteam [16:41] markbao: DTrejo: ping [16:43] TooTallNate has joined the channel [16:45] Yoric has joined the channel [16:45] swistak has joined the channel [16:46] nibblebot: how can i get a stack trace from an Error object? [16:46] nibblebot: can't find any docs on Error object and it's prototype only has name and message properties [16:46] _Sorensen_: Tidwell: looking good [16:47] nibblebot: ah solved my own question: (new Error()).stack [16:47] Tidwell: _Sorensen_: thx [16:47] _Sorensen_: what kind of license [16:48] Tidwell: _Sorensen_: MIT [16:48] abraham has joined the channel [16:49] towski has joined the channel [16:49] wadey has joined the channel [16:50] albertoelias has joined the channel [16:51] fattytuna has joined the channel [16:54] slajax has joined the channel [16:54] pietern has joined the channel [16:55] sub_pop has joined the channel [16:56] dhasenan has joined the channel [16:57] gozala has joined the channel [16:57] albertoelias: I have a doubt about installing Node.js [16:57] eee_c has joined the channel [16:58] drudge: don't doubt! [16:58] creationix has joined the channel [16:58] creationix has left the channel [16:58] albertoelias: Ehm, reading what it says on the wiki [16:58] albertoelias: git checkout origin/v0.4 # optional. Note that master is unstable. [16:58] albertoelias: isn't the 0.5 the unstable version? [16:58] albertoelias: I thought 0.4 is stable [16:59] sjbreen has joined the channel [17:00] bradleymeck has joined the channel [17:02] rudebwoy has joined the channel [17:02] ralphholzmann: albertoelias: that was my understanding too [17:02] ralphholzmann: build apps against v0.4.9 [17:03] albertoelias: oh, and I don't have a c++ compiler on my mac. I'm looking for gcc but I've only found that it installs with Xcode, and that costs money [17:03] CIA-107: node: 03koichik 07v0.4 * rd05afa5 10/ doc/api/buffers.markdown : [17:03] CIA-107: node: Doc improvements [17:03] CIA-107: node: Fixes #297. - http://bit.ly/rbrQdE [17:03] CIA-107: node: 03AJ ONeal 07v0.4 * r8cc9ac0 10/ doc/api/globals.markdown : [17:03] CIA-107: node: added explanation of `exports` [17:03] CIA-107: node: Fixes #1075. - http://bit.ly/p1HX2N [17:03] CIA-107: node: 03koichik 07v0.4 * r701ae3c 10/ doc/api/stdio.markdown : [17:03] ralphholzmann: play with v0.5.x [17:03] CIA-107: node: Document error in console.timeEnd [17:03] CIA-107: node: Fixes #1109. - http://bit.ly/q3KBdd [17:03] CIA-107: node: 03koichik 07v0.4 * r128d1ba 10/ doc/index.html : [17:03] CIA-107: node: The Node.JS website should link to whichever ChangeLog will be updated soonest. [17:03] CIA-107: node: Fixes #1316. - http://bit.ly/oALK3A [17:03] ralphholzmann: CIA-107: NO U [17:04] jacobolus has joined the channel [17:04] bradleymeck: albertoelias there used to be a free (if trashy) XCode w/ the iOS dev kit that was free idk if that is still true [17:04] kmiyashiro has joined the channel [17:04] albertoelias: I haven't found any free version... :S [17:04] mikedeboer has joined the channel [17:05] mnaser has joined the channel [17:05] perezd has joined the channel [17:07] `3rdEden has joined the channel [17:09] albertoelias_ has joined the channel [17:10] sylvinus has joined the channel [17:11] zodiak has joined the channel [17:11] wookiehangover has joined the channel [17:11] xtianw: albertoelias: http://developer.apple.com/xcode/ Xcode 3 link on the bottom right [17:13] albertoelias_: xtianw: it asks me for apple ID [17:13] albertoelias_: and that's 99$/year [17:13] xtianw: No those are free [17:14] albertoelias_: yeah, I just found the free apple developer account [17:14] albertoelias_: great, thanks a lot :) [17:14] xtianw: np [17:14] albertoelias_: I still have the doubt with installing node.js [17:15] albertoelias_: There are two useful ways for me, using git and package download [17:15] albertoelias_: In package download, I suppose I just download and install node 0.49 and 0.5 so I can use both right? [17:16] mnaser has joined the channel [17:17] xtianw: I use git [17:17] xtianw: Works fine [17:17] xtianw: Dunno about the packages [17:17] albertoelias_: And about using git [17:17] towski has joined the channel [17:18] prettyrobots has joined the channel [17:18] albertoelias_: I'm following this tutorial: https://gist.github.com/579814 The second one [17:18] albertoelias_: By doing this, do I get both 0.49 and 0.5? [17:19] xtianw: You need to use something like n to run multiple binaries [17:19] xtianw: https://github.com/visionmedia/n [17:20] xtianw: Installation method shouldn't matter [17:20] AvianFlu has joined the channel [17:21] albertoelias_: cool, I'll have a look at that [17:21] albertoelias_: thanks :) [17:22] niftylettuce has joined the channel [17:23] enzo has joined the channel [17:23] enzo: hello [17:24] enzo: I'd like to play with nodejs, so I've installed nodejs package on ubuntu, then curl http://npmjs.org/install.sh | sh, and I get Error: Cannot find module 'semver' [17:24] stagas_ has joined the channel [17:24] enzo: any idea to quickly fix the problem ? [17:24] DoNaLd`: is nodejs in path ? [17:25] DoNaLd`: node --version [17:25] Deputats has joined the channel [17:25] xandrews has joined the channel [17:25] Deputats: Hello [17:25] guybrush: enzo: git clone https://github.com/isaacs/npm.git && cd npm && make install [17:25] Deputats: How to install Node on CentOS ? [17:25] Deputats: scons: building terminated because of errors. Waf: Leaving directory `/home/node-v0.4.9/build' Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a} make: *** [program] Error 1 [17:26] enzo: v0.2.6 DoNaLd`, seems quite old... [17:26] Deputats: It;s dying with this error... [17:26] DoNaLd`: enzo: yes .. it is :) [17:26] enzo: maybe it's too old to make npm work ? [17:26] guybrush: enzo: yes thats quite old :D [17:26] DoNaLd`: enzo: correctly [17:26] guybrush: https://github.com/isaacs/npm see the readme [17:26] guybrush: there are instructions for node 0.2.x [17:27] guybrush: but you should definitely upgrade your node [17:27] DoNaLd`: enzo: try to install 0.4.9 version of nodejs from git [17:27] Deputats: anyone? [17:27] Cleer has joined the channel [17:28] DoNaLd`: Deputats: preview message top of this, which have you pasted [17:31] AvianFlu has joined the channel [17:32] copongcopong has joined the channel [17:32] Deputats: DoNaLd` : /bin/bash: g++4: command not found scons: *** [obj/release/accessors.o] Error 127 scons: *** [obj/release/allocation.o] Error 127 [17:33] DoNaLd`: Deputats: i think .. this is clear :) /bin/bash: g++4: command not found [17:33] mjr_ has joined the channel [17:33] ezmobius has joined the channel [17:35] Deputats: DoNaLd` : how to make it foundable? [17:35] Aiden has joined the channel [17:35] Deputats: yum install g++4 did not help [17:36] liquidproof has joined the channel [17:36] DoNaLd`: Deputats: try to install some gcc package [17:36] shadow_s has joined the channel [17:37] radiodario has joined the channel [17:37] langworthy has joined the channel [17:39] Deputats: DoNaLd` : Package gcc-4.1.2-50.el5.x86_64 already installed and latest version [17:39] joshthecoder has joined the channel [17:39] Deputats: any ideas? [17:39] DoNaLd`: http://www.lampdocs.com/blog/2008/11/how-to-install-g-on-centos-4-and-centos-5/ [17:40] context: wow. really [17:40] context: a whole documentation page to tell someone how to install a package. :/ [17:40] kartmetal has joined the channel [17:41] Deputats: yeah, but cant install.. [17:41] Deputats: Package gcc-c++-4.1.2-50.el5.x86_64 already installed and latest version No package compat-gcc-32 available. No package compat-gcc-32-c++ available. [17:42] context: ok [17:42] DoNaLd`: Deputats: so try: locate g++4 or whereis g++5 [17:42] DoNaLd`: Deputats: so try: locate g++4 or whereis g++4 [17:42] context: g++ then press tab twice [17:42] context: let bash work for you... [17:43] pjacobs2 has joined the channel [17:43] cognominal has joined the channel [17:43] Deputats: locate: can not open `/var/lib/mlocate/mlocate.db': No such file or directory [17:43] mendel_ has joined the channel [17:43] Deputats: [root@www node-v0.4.9]# g++ AUTHORS CMakeLists.txt doc/ .lock-wscript src/ wscript benchmark/ config.h.cmake .gitignore Makefile test/ build/ configure lib/ Makefile.cmake TODO ChangeLog CTestConfig.cmake LICENSE README.cmake TODO.win32 cmake/ deps/ ~local/ [17:43] Deputats: bash gives this: [17:43] context: deputats: and i see 'compat-gcc-32-c++' for centos 4 not centos 5 [17:43] DoNaLd`: Deputats: and# whereis g++4 [17:43] context: stop using locate for one [17:44] context: worst command to ever exist [17:44] context: g++ TAB TAB this isnt 1980 [17:44] Deputats: [root@www node-v0.4.9]# whereis g++4 g++4: [17:44] mendel_ has joined the channel [17:44] Deputats: thats all. [17:44] DoNaLd`: hm [17:44] DoNaLd`: Deputats: whereis g++ [17:44] Deputats: This is fresh CentOS install on my VPS.. [17:44] context: no kidding. i would be g++-4.0 for one [17:45] context: it* [17:45] Deputats: [root@www node-v0.4.9]# whereis g++ g++: /usr/bin/g++ /usr/share/man/man1/g++.1.gz [17:45] Deputats: guess I ned to install it now? How? [17:45] context: what ! [17:45] AvianFlu: no, that's installed [17:46] DoNaLd`: Deputats: great .. link -s /usr/bin/g++ /usr/bin/g++4 [17:46] context: https://build.opensuse.org/package/show?package=nodejs&project=home%3ASannisDev [17:46] context: there. rpm's for centos 5. [17:47] Deputats: did linking and make died with the same error... [17:47] Deputats: I'll try taht rpm [17:48] enzo: rha, I've compiled nodejs, but node -v gives bash: /usr/bin/node: Aucun fichier ou dossier de ce type, and which node returns /usr/local/bin/node (which is in my PATH) [17:48] taf2: use the yum if on centos 5 [17:48] context: deputats: and the error you pasted in here isnt the actual error. im wondering how anyone tried helping [17:49] context: i should prolly go away for a little bit :/ [17:49] pen has joined the channel [17:49] aliem has joined the channel [17:50] Xano has joined the channel [17:50] Deputats: context: [root@www node-v0.4.9]# rpm -U nodejs-0.4.8-1.1.x86_64.rpm warning: nodejs-0.4.8-1.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID dfef6298 error: Failed dependencies: libcares.so.2()(64bit) is needed by nodejs-0.4.8-1.1.x86_64 libev.so.4()(64bit) is needed by nodejs-0.4.8-1.1.x86_64 libv8.so.3()(64bit) is needed by nodejs-0.4.8-1.1.x86_64 libv8_g.so.3()(64bit) is needed by nodejs-0.4.8 [17:50] CIA-107: node: 03koichik 07v0.4 * r5f97c9a 10/ (lib/assert.js test/simple/test-assert.js): [17:50] CIA-107: node: Improvements AssertionError message [17:50] CIA-107: node: Fixes #217. - http://bit.ly/oADNtj [17:50] ank has joined the channel [17:50] CIA-107: node: 03koichik 07v0.4 * r5208abe 10/ (src/node_buffer.cc test/simple/test-buffer.js): (log message trimmed) [17:50] CIA-107: node: Fix Buffer drops last null character in UTF-8 [17:50] CIA-107: node: Reproduce: [17:50] CIA-107: node: $ node [17:50] CIA-107: node: > buf = new Buffer('\0') [17:50] CIA-107: node: [17:50] CIA-107: node: > buf.length [17:51] Deputats: hmm, guess I'l need manually install them [17:52] gozala has joined the channel [17:54] mandric has joined the channel [17:56] Deputats: Can't find how to install them... [17:56] TooTallNate has joined the channel [17:57] Country has joined the channel [17:57] FuzzYspoON has joined the channel [17:58] context: there is a reason i dont touch rpm based distro's [17:58] isaacs has joined the channel [17:58] context: deputats: so install libcares [17:58] AvianFlu has joined the channel [17:58] context: and libev and libv8 [17:58] context: yum install libev ? [17:58] context: you're the one using centos, not us [17:59] Deputats: context: yum install libcares2 [17:59] bene1 has joined the channel [17:59] Deputats: No package libcares2 available. [18:00] bene1 has left the channel [18:00] Deputats: same for "libcares" [18:00] xastey has joined the channel [18:01] wink_ has joined the channel [18:01] TooTallNate has joined the channel [18:02] CrabDude has joined the channel [18:03] isaacs: tjholowaychuk: hey, it seems like mongoose depends on a version of mongodb that was pulled down somehow [18:03] isaacs: *for some reason [18:03] isaacs: (i can guess how ;) [18:03] tjholowaychuk: isaacs: I think aaron pushed a new version because of that [18:03] tjholowaychuk: not positive [18:03] isaacs: oh, ok [18:04] isaacs: i'm guessing he pulled the other version because it was like a GB on disk. [18:04] isaacs: (only a 100K of code or so) [18:04] tjholowaychuk: jesus [18:04] isaacs: yeah, had a few test fixtures and stuff. like, a whole mongodb database full of test data :) [18:04] tjholowaychuk: ahaha [18:04] tjholowaychuk: just a few [18:04] isaacs: the odd thing was that the tgz was just over a mb [18:04] perlmonkey2 has joined the channel [18:04] isaacs: gzip ftw [18:05] isaacs: the test database was the killer. [18:05] tjholowaychuk: strange, maybe his tests never destroy the data [18:05] DoNaLd`: isaacs: hi .. i will ask you, when will be npm fixed with nodejs 0.5.X ? [18:05] isaacs: it's mostly empty, too [18:05] tjholowaychuk: and just kept adding to it [18:05] tjholowaychuk: interesting [18:05] isaacs: tjholowaychuk: i think the db he had is jus a fixed size, but mostly null [18:05] isaacs: doesn't mongo let you reserve the size? [18:06] maushu_ has joined the channel [18:06] tjholowaychuk: not sure i dont know it well [18:06] postwait has left the channel [18:06] postwait has joined the channel [18:07] Deputats: Now even configure fails... [18:07] Deputats: Checking for program gcc or cc : gcc4 /home/node-v0.4.9/wscript:234: error: could not configure a c compiler! [18:08] wossoyi has joined the channel [18:08] TooTallNate has joined the channel [18:09] wossoyi has left the channel [18:09] context: deputats: use a better distro. ;) honestly i have no clue, there is a reason you're probably the only one using centos [18:10] NetRoY has joined the channel [18:10] Drake_ has joined the channel [18:10] Deputats: I already emailed my hosting company to get rid of that OS [18:10] Deputats: ok, thanks for help! [18:11] context: you said it was a fresh install, id be wondering why you're having issues installing gcc [18:11] shadow_s: centos is one of the most stable OSs for hosting [18:11] context: shadow_s: stable? its real stable for deputats cause he cant get anything to run on it [18:11] nrajlich has joined the channel [18:11] shadow_s: lol [18:11] CIA-107: node: 03koichik 07master * ra3e3ad4 10/ (src/node_file.cc test/disabled/test-fs-largefile.js): [18:11] CIA-107: node: Fix fs can't handle large file on 64bit platform [18:11] CIA-107: node: fs.read() and fs.write() can't handle more than 2GB files on 64bit platform. [18:11] CIA-107: node: Also fs.truncate() can't handle more than 4GB files. [18:11] CIA-107: node: Fixes #1199. [18:11] CIA-107: node: Fixes #1094. - http://bit.ly/r6CLVG [18:12] Deputats: haha [18:12] reid has joined the channel [18:12] srz has joined the channel [18:12] context: i get excellent gas milage in my car too, the gas tank is empty [18:12] arnee has joined the channel [18:12] shadow_s: i bet this is a configuration problem on the hosts end [18:12] dgathright has joined the channel [18:13] Deputats: I'll tell them that too :) But hope for something else.. like Ubuntu or something.. [18:13] mcluskydodallas has joined the channel [18:13] Guest10782 has joined the channel [18:13] nibblebot: what's a good Date formatter library? [18:13] nibblebot: native Date object doesn't support this right? [18:14] nibblebot: you have to construct it from getXXX() functions, yes? [18:14] srz: hi all. is anybody familiar with mongoosejs? and could that somebody please tell me how i can get the id of a freshly inserted object? i tried accessing ._id after creation of the model object, i tried ._id in the save callback... [18:15] samsonjs has joined the channel [18:15] CarterA has joined the channel [18:15] CarterA has left the channel [18:15] jakehow has joined the channel [18:16] nibblebot: srz: is the rest of the object available in the save callback? [18:16] jvduf has joined the channel [18:16] srz: gimme a sec [18:17] temp01 has joined the channel [18:17] jvduf_ has joined the channel [18:17] srz: yes it is [18:17] jerrysv: nibblebot: self advertisement, but i use date-utils [18:18] Cleer has joined the channel [18:18] nibblebot: that's the one i was looking at, it uses a custom format different from unix date? [18:18] jerrysv: yeah, more aimed toward SQL style [18:19] Mrfloyd has joined the channel [18:20] sw8sw8 has joined the channel [18:21] srz: nibblebot: is that good or bad? :D [18:22] nibblebot: srz: so you are able to fetch the doc from the db, but the _id is not attached? can you paste your code and output and link it here? [18:23] maushu_ has joined the channel [18:23] srz: yes. but i'm a bit in a hurry, i'll try again tomorrow. thanks, i'll be back :) [18:23] context: mongoose adds a _id even if its not in theschema [18:23] srz: i thought so [18:23] NHQ has joined the channel [18:23] srz: mi mongoose doesnt [18:23] srz: *my [18:23] context: https://github.com/LearnBoost/mongoose/blob/master/lib/mongoose/schema.js [18:24] context: nibblebot: try blah.id [18:24] context: instad of _id [18:24] NHQ: will somebody help me understand the root of this error: symbol BIO_set_flags: referenced symbol not found [18:24] srz: context: undefined as well [18:25] srz: i'm checking directly after object creation :S [18:26] srz: well i'll step by another day. thank you [18:26] srz has left the channel [18:26] fairwinds has joined the channel [18:26] beriberikix: tjholowaychuk: Can you requests to a URI as part of route middleware in express? [18:27] NHQ: does anybody know where this error comes from: symbol BIO_set_flags: referenced symbol not found [18:27] tjholowaychuk: beriberikix what? [18:27] beriberikix: tjholowaychuk: for example, call an api to get some data [18:27] tjholowaychuk: ohh [18:27] tjholowaychuk: yeah sure [18:27] tjholowaychuk: anything as long as you next() [18:27] WebGear has joined the channel [18:28] jj0hns0n has joined the channel [18:28] beriberikix: tjholowaychuk: Cool, that's what I thought. Do you do the request through connect? [18:28] fairwinds has joined the channel [18:28] WebGear: question, what all the fuss around node.js is all about? [18:28] tjholowaychuk: beriberikix you want to request against your own app? [18:28] sjbreen has left the channel [18:29] beriberikix: tjholowaychuk: nope [18:29] enzo: Whenever I install something with npm as a normal user, it installs in my cwd, would be cleaner to install it in /usr/local/lib/node_modules/ as npm installs itself [18:30] isaacs: enzo: npm faq [18:30] isaacs: enzo: local installs for require() things, global for cli utils (like npm) [18:30] beriberikix: tjholowaychuk: for ex a couch REST endpoint [18:30] isaacs: trust me, it would not be "cleaner" in any relevant sense to install everything global [18:30] enzo: i've tried to use sudo on npm, but it doesn't install in /usr/local/lib/node_modules/, and if I cd to this dir before running npm, then the node module doesn't work [18:30] isaacs: enzo: please read the faq [18:30] tjholowaychuk: beriberikix k, well just use node's http client or something like mikeal's request lib [18:30] enzo: ok [18:30] tjholowaychuk: then invoke next() when it's all done [18:30] isaacs: enzo: it's like the first or second item in there [18:31] isaacs: enzo: fourth item, actually [18:31] beriberikix: tjholowaychuk: perfect, that's what I thought [18:31] beriberikix: tjholowaychuk: but if I did want to call my own app? [18:32] tjholowaychuk: you'd do pretty much the same [18:32] beriberikix: tjholowaychuk: do you pass the route to next? [18:32] dnjaramba has joined the channel [18:32] tjholowaychuk: nope [18:32] tjholowaychuk: it's just like regular middleware [18:32] context: _id works here for me [18:32] enzo: ok, thanks isaacs [18:32] tjholowaychuk: next() or next(err) [18:32] context: > Ticker.findOne({}, function(e, c) {console.log(c._id);}) [18:32] context: { model: { [Function: model] modelName: 'Ticker' }, op: 'findOne' } [18:32] context: > 4e1b6ed424ca4c31b3000017 [18:33] NHQ: does anybody recognize this error: symbol BIO_set_flags: referenced symbol not found [18:33] beriberikix: tjholowaychuk: oh, got it [18:33] context: nhq: you probbly upgraded a library and now the linking is broke. [18:33] beriberikix: tjholowaychuk: Straight-forward, thanks for the tips [18:33] jerrysv: NHQ: http://groups.google.com/group/nodejs/browse_thread/thread/ce3f6fd3cf5e0857?fwc=1 [18:34] jerrysv: is openssl up to date? [18:34] context: nhq: whatever is referencing something in a dynamic library that gets laoded, that was there when compiled (wherever) and is now not there. [18:34] ekryski has joined the channel [18:34] NHQ: @jerrysv yeah thats my thread. openssl is up to date yes [18:35] context: nhq: how did you install node on solaris [18:35] NHQ: @context but i didn't change anything [18:35] Ezeeguy has joined the channel [18:35] NHQ: @context yes [18:35] context: HOW. not did [18:35] context: HOW is not a boolean question [18:35] NHQ: @context it only started happening when I started using connect.session middleware [18:35] xandrews has joined the channel [18:35] NHQ: @context previous to that, i had node apps running smoothly [18:36] context: or ignore me. [18:36] context: nhq: im guessing nothing before connect was using the crypto lib. [18:37] Yoric has joined the channel [18:37] context: my simpliest answer will be, since you fail to answer questions asked, is you installed node from a package, which was compiled using a different version of openssl than you have. [18:37] wossoya has joined the channel [18:37] NHQ: @context i use the crypto lib for sha salts and hashed PWs [18:37] langworthy has joined the channel [18:37] andriijas has left the channel [18:37] jerrysv: nhq: crypto or openssl? [18:38] jerrysv: nhq: did you compile node.js from source when you installed? [18:38] slickplaid: bcrypt for nodejs [18:38] slickplaid: bcrypt > sha [18:38] context: this place is pissing me off today. very unusual :/ [18:39] NHQ: @jerrysc I compiled from source, yes. openssl was prebuilt on the OS, but I also tried building that from scratch and reconfiguring node accordingly [18:39] NHQ: @context what question did I fail to answer? [18:40] NHQ: @context @jerrysv I don't think it is an openssl problem at all, because I can use nodes crypto library just fine [18:40] WebGear has left the channel [18:40] wilmoore has joined the channel [18:41] context: nhq: i said HOW did you install. not did you, and i commented on your 'yes' answer 3 times. [18:41] context: jerrysv just phrased the question better i guess [18:41] sechrist has joined the channel [18:41] context: only way to help people is to ask them yes/no questions [18:41] AvianFlu has joined the channel [18:41] wossoya: Hi, I'm trying to get node working on a window/cygwin install. when trying to run, I'm getting an error in node.js about it not finding node-proxy. When trying to install node-proxy by using "npm install node-proxy", i'm getting errors in the build. [18:42] jmoyers has joined the channel [18:42] context: nhq: it doesnt matter. https://github.com/senchalabs/connect/blob/master/lib/middleware/session.js#L223 [18:42] kartmetal: talking of getting node to working, is there some magic needed to be able to build node.js with the cmake files? [18:42] context: nhq: its if you are using the specific function looking for that symbol. [18:42] yozgrahame has joined the channel [18:42] wossoya: the errors are about missing files: "ev.h" anda make error. [18:43] stagas_ has joined the channel [18:43] saikat has joined the channel [18:44] seivan_: what is the best way to run background jobs with node? [18:44] seivan_: on a persistant queue with an admin interface [18:45] wossoya: Anyone have any suggestions about getting node-proxy working? [18:45] NHQ: @context i see. but okay, so I built a fresh openssl and reconfigured the node libpaths accordingly, but that didn't change anything [18:45] context: nhq: recompile node. [18:45] context: it has nothing to do with libpaths [18:46] context: it has to do with symbols to dynamically linked libraries IN the binary itself. [18:46] NHQ: @context copy that. will do [18:46] jerrysv: and if you can, make sure the old copy of openssl is gone, but i have a feeling you won't be able to [18:47] zvictor has joined the channel [18:47] wossoya: Anyone know how to set the "node path" while using cygwin? [18:47] othiym23 has joined the channel [18:47] context: wossoya: use npm >= 1.0 and install locally [18:48] context: wossoya: are you talking about handling dep packages? [18:48] NHQ: @context @jerrysv curisouly, after "gmake uninstall" I can still run node. Is there something I have to do to wipe it clean? [18:48] augustl has joined the channel [18:48] jerrysv: i dunno, i've never had a desire to "uninstall" node :) [18:49] augustl: can q, the promise library, sequentially execute an array of functions that return promises, not executing the next function until the promise returned from the previous is resolved? [18:49] seivan_: Guys, processing backgron jobs on a persistant queue [18:49] seivan_: on Node, any ideas? [18:49] augustl: seivan_: I've used ActiveMQ for that [18:49] context: nhq: did gmake uninstall actually do anything is the question [18:49] context: nhq: just gmake clean ; gmake install [18:49] seivan_: augustl: any fast solution like resque or DJ from rails? [18:49] context: just let it compile on top of itself [18:49] context: node is like .... 1 file [18:50] NHQ: @context it did uninstall. I think I had several version of node compiled. [18:50] wossoya: context: I will update my version of npm [18:50] Guest10440 has joined the channel [18:50] augustl: seivan_: there are libs for many different MQs [18:50] wossoya: i was trying to install node-proxy [18:50] seivan_: alright.... Rails people, is there an omniauth for node.js? [18:50] context: ACTION wonders how people expect their machines to work when they dont even know how many copies of node they have installed [18:50] seivan_: That library is such a kick-ass tool... [18:51] NHQ: @context i just want to say that node asked for this by inviting front enders into the server party [18:51] NHQ: ;) [18:51] augustl: seivan_: the only website framework for node that has any traction is express, afaik [18:51] context: node is not in blastwave... thats sad [18:51] seivan_: augustl: No, it's not the website framework I want [18:51] seivan_: Omniauth for rails (actually rack in general) [18:51] augustl: dunno what omniauth does [18:51] context: nhq: i have a package manager that prevents me from wasting my time [18:51] seivan_: basically encapsulate logins for twitter, facebook, linkedin and etc into one neat package [18:52] seivan_: Btw, do people use Express or just Node raw? [18:52] EyePulp: seivan_: both [18:52] NHQ: @context I can only learn how to use so many new things at one time. I glossed over various version managements, but I am still "flying by the seat of my pants" [18:52] EyePulp: seivan_: usually depends on the complexity. [18:53] augustl: seivan_: I've never used express but still use node a lot [18:53] seivan_: hmm [18:53] context: nhq: so you are using solaris as a development environment? [18:53] jzaksh has joined the channel [18:53] context: stop learning solaris ? [18:53] seivan_: Express might be good if you want to use view templates out of the box [18:53] jzaksh: bot? [18:53] augustl: seivan_: it has a routing DSL as well [18:53] seivan_: Yeah but that's easy to write yourself :D [18:53] jzaksh has left the channel [18:53] NHQ: @context yes, is that good or bad? [18:54] context: personally i develop on my laptop. [18:54] seivan_: what i am looking for now is a postgresql driver, a backgroundjob processor (either on Redis or SQL) and a oAuth solution out of the box [18:54] context: nhq: so did you get the issue fixed? [18:55] NHQ: @context I am forcing myself to build the whole stack. I develop on MAc OSX at home. I wish somebody would offer an OSX VPS service, cuz I never have issues there [18:55] context: ewe ! [18:55] EyePulp: oy [18:55] seivan_: HAH [18:55] context: rebuild the whole stack? [18:55] seivan_: NHQ: Trouble trouble trouble [18:55] EyePulp: NHQ: http://macminicolo.net/ [18:55] context: your a front end developer ? [18:56] context: stop f*cking with shit you dont know [18:56] context: just install node and be done [18:56] EyePulp: NHQ: but you're better off figuring out how to make this work anywhere [18:56] context: you are learning node? not how to administrate a solaris box [18:56] NHQ: @context I'm tellin you, it wasn't til SOlaris that I had any node or NPM problems I couldn't work out myself :\ [18:57] seivan_: <== Actual developer looking for help regarding Node.JS and not Solaris. What is the best recommended postgresql driver for Node :) [18:57] context: so tell the server admin to install node [18:57] matomesc has joined the channel [18:57] context: seivan_: haha ;) [18:58] NHQ: @EyePulp neat! but they should build giant super hackintosh servers, not mac minis lol [18:58] seivan_: context: Hey :) Replace the smiley with an answer so I can smile back! [18:58] context: seivan_: dont know. pg looks pretty popular though [18:59] JP\ has joined the channel [18:59] adelgado: seivan_: I haven't used it but this was recommended to me by a DBA that I trust: https://github.com/brianc/node-postgres [18:59] [1]LightningCube has joined the channel [18:59] seivan_: adelgado: Thanks, I googled and found a few, not sure what to use [18:59] markwubben has joined the channel [18:59] seivan_: Recent commit was 14 hours ago, good good, thanks adelgado! [18:59] seivan_: thanks context [18:59] context: nhq: you still never said whether re-installing node fixed the problem [19:00] hwinkel has joined the channel [19:00] EyePulp: seivan_: https://github.com/joyent/node/wiki/modules#db-pg [19:00] jerrysv: nhq: have you considered an ubuntu virtual machine to develop on? something that you have full control over? like context, i use my laptop for dev [19:01] NHQ: @context trying to reinstall node, now getting errors making [19:01] [2]LightningCube has joined the channel [19:01] jameson has joined the channel [19:02] context: nhq: you totally hose a solaris box and rage on the google-group that joyent sucks. [19:02] NHQ: @context http://pastebin.com/gkUpktMY [19:02] brianc: seivan_: yeah, that postgres module is the one to use [19:02] seivan_: cool [19:02] context: make clean ! [19:02] seivan_: Any background job processing that utilizes SQL? [19:02] mandric has joined the channel [19:02] seivan_: otherwise I gotta pay extra on hosting (heroku)? [19:02] NHQ: DOH [19:02] brianc: seivan_: you can contact me via github or gamil or google chat if you have any questions with it [19:02] seivan_: brianc: Shouldn't be any problem mate. Going to use full text search that pg supports out of the box. [19:03] kartmetal: is the cmake build system for node.js supposed to be working, or are folks supposed to stick to the regular one? [19:03] NHQ: @jerrysv I only have a mac mini at my disposal for dev, and I don't want to break it trying to puta linux distro on it [19:03] jerrysv: nhq: virtualbox it up [19:03] seivan_: brianc: Also... first time using Raw PG and not a ORM :) Wish me luck! [19:03] jerrysv: nhq: or install node on the mac mini [19:03] seivan_: brianc: Thanks for the kick-ass support [19:03] brianc: seivan_: good luck! :) [19:03] context: wtf !!! [19:03] seivan_: danke danke [19:03] slaskis_: tjholowaychuk: have you had any issues with cluster crashing with a message like this: https://gist.github.com/1081047? [19:03] context: nhq: you just said you have no problems with node on osx. SO DO THAT ! [19:04] jakehow has joined the channel [19:04] slaskis_: and by 'crashing' i mean it repeats that message endlessly and does not restart any workers properly [19:04] context: why are you even installing it on solaris? where the hell did you find a solaris vps provider? was that really your first choice? [19:04] jerrysv: tempted to pull my old amiga 500 out of the garage and see if i can get node working on it [19:04] seivan_: NHQ: http://devcenter.heroku.com/articles/node-js [19:04] NHQ: @jerrysv oh i run all kinds of node goodness on my mac, thats how i got started. I'm building a stack in the wild tho, for my media empire [19:04] tjholowaychuk: slaskis_ hmm nope not personally, seems like that socket was closed or something [19:04] seivan_: Deploying Node has never been as easy as http://devcenter.heroku.com/articles/node-js NHQ :) save yourself some time and look it up [19:04] jerrysv: nhq: virtualbox it up, you'll save yourself a lot of work [19:04] chapel: jslatts: ping [19:05] NHQ: @context i chose joyent cuz they are the nodejs backers .... :( [19:05] slaskis_: tjholowaychuk: damn, was hoping for some hints where to start my search :P it doesnt happen consistently either... [19:05] seivan_: is NPM still the way to go? [19:05] seivan_: Or do people use NEco or N ? [19:05] context: seivan_: yes. [19:05] context: neco? [19:06] tjholowaychuk: seivan_: those are different, they are not package managers [19:06] tjholowaychuk: just ways to install different versions of node [19:06] seivan_: RVM of Node world [19:06] context: neco is a package in npm. so im gonan say use npm. [19:06] brianc: I need to get in touch w/ the heroku guys and ask them why their node + posgres example is using the 'postgres' module instead of 'pg' [19:06] dshaw_ has joined the channel [19:06] seivan_: brianc: What example is that? [19:06] brianc: http://devcenter.heroku.com/articles/node-js [19:06] seivan_: hmm the one I posted? [19:06] brianc: under "Using a SQL Database" [19:06] seivan_: It didn't use a dB [19:06] seivan_: oh [19:06] seivan_: Ok [19:07] seivan_: Cool, you do that! [19:07] context: nhq: they gave you a solaris vps or you chose that? [19:07] sechrist has joined the channel [19:07] seivan_: isn't NHQ a troll? [19:07] context: seivan_: thats what im smelling. [19:07] NHQ: I chose it, that's their "Smart Machine" [19:07] context: everything ive told him ive had to say at least twice [19:07] pjacobs has joined the channel [19:07] NHQ: @seivan no that is not the case [19:08] NHQ: ya'll nerds is so touchy [19:09] CIA-107: node: 03Kip Gebhardt 07v0.4 * r7097eca 10/ doc/api/http.markdown : [19:09] CIA-107: node: Adding documentation for 'agent' option in http.request(). [19:09] CIA-107: node: Fixes #1243. - http://bit.ly/nQ4v0z [19:09] seivan_: Def a troll [19:09] vid_ has joined the channel [19:10] context: nhq: and im imagine out of hte "600 packages joyent maintains" node is most likely one of them. [19:10] jerrysv: context: 3 times, since i've been repeating too [19:10] svenlito has joined the channel [19:11] context: kk. glad that command exists [19:11] NHQ: @context sure, and the same for mongodb and redis and others, but if their package builds a different version than the one u develop with, you have to troubleshit for weeks to make on work with the other [19:12] sandstrom has joined the channel [19:12] sandstrom has joined the channel [19:12] thejh has joined the channel [19:13] AvianFlu has joined the channel [19:13] baoist has joined the channel [19:13] NHQ: @context okay after make clean I get this: http://pastebin.com/svzDKnMw which i don't take to be the correct output [19:14] Wa has joined the channel [19:14] seivan_: Anyone got experience with background jobs/queues on Heroku with Node.js? [19:15] NHQ: @context nm Solaris is CLEANUP=1 [19:16] context: im full of rage today. [19:16] NHQ: this is fucked [19:17] context: HAHA. according to that google group post, nhq has wasted two weeks on this issue... and reinstalling node NEVER came up as an idea ? [19:17] NHQ: @context and now reinstalling is giving me errors [19:18] explodes: Ok, I'm using routing in a way that /attempts/ to create a View once per request. http://pastie.org/2208773 Routes install correctly, and I can hit the url as specified, the problem is that when trying to instantiate a new view (lines 11 & 12) the view and action are undefined, they cannot be instantiated... Looking at this code and the way these anonymous methods are set up, is there any obvious reason why variables become undef [19:18] Ramosa has joined the channel [19:18] jameson has joined the channel [19:18] context: i told you to make clean then make install. you said 'doh' then never ever responded. stop trolling. [19:18] fyskij has joined the channel [19:18] teknopaul: Hi All anyone know how to parse an XML string in to an XML dom, jsdom has woeful docs [19:19] FireFly|n900 has joined the channel [19:19] FireFly|n900 has joined the channel [19:19] context: nhq: better yet, stop asking for help if you aren't going to read anything that anyone says, or communicate your problems properly [19:19] context: [19:20] teknopaul: is that for me context? [19:20] SubStack: 2hey let's start using wedoist again [19:20] SubStack: DISREGARD THAT [19:20] NHQ: @context I did what you said, take it easy. solaris doesn't hear 'make clean'. had to get the right code. [19:21] jvduf_ has joined the channel [19:21] context: nhq: im not talking to solaris im talking to you. make clean... you can run "gmake" but you cant run "gmake clean" [19:21] context: press up, space, c, l, e, a, n . like 5 seconds [19:21] keyvan: i've just realized... it's the little things like this http://cl.ly/3v450Q02470v2f3p2s2F that make programming so much consistent fun for me..... [19:21] digiwano: yeesh how slow do you type [19:22] keyvan: anyone else do that? [19:22] nerdfiles has joined the channel [19:22] NHQ: @context nah its CLEANUP=1 [19:22] FireyFly|n900 has joined the channel [19:22] AvianFlu has joined the channel [19:22] context: or cd .. ; rm -rf node-0.4.8 ; tar xzvf node-0.4.8.tar.gz ; cd node-0.4.8 ... all clean [19:22] jhurliman has joined the channel [19:23] NHQ: i type with 6/10 fingers [19:23] nerdfiles has left the channel [19:23] realtime_ has joined the channel [19:24] realtime_ has left the channel [19:24] NHQ: 2context yeah okay so i got it cleaned and re-installed, but if I configured the libpath to the new openssl i got errors, so essentially i am reinstalling it exactly as it was before. I will not be surprised to have the same issues [19:24] context: nhq: you might want to consider a new career path [19:25] context: so stop editing the libpath ? [19:25] NHQ: @context no way I like this programming shit. The network administration I could do without [19:25] context: i drove my car into a guard rail once, i decide it wasn't a good idea after the first time [19:26] keyvan: context: you might want to consider a different mode of transport than car. [19:26] svenlito has joined the channel [19:26] context: nhq: so wait a minute. NOW its 'i broke node. why is it broke?' [19:27] context: STOP BREAKING IT ! keep the libpath however the hell it was. it works, stop trying to fix it. [19:27] context: or... unfix it [19:27] NHQ: @context maybe you should't use guardrails ? [19:27] context: im truly done helping you now. stop breaking shit [19:27] keyvan: NHQ: you're getting help? then don't sass. [19:27] context: or.. stop asking for help after you purposely break it. [19:28] keyvan: context: can you fix my car? i ran into a libpath [19:28] jameson has joined the channel [19:28] context: keyvan: im not a mechanic sorry [19:28] explodes: Does anyone have any idea why my anonymous functions are losing variables? [19:28] explodes: Is its an async thing? [19:28] keyvan: :| [19:29] keyvan: ACTION shrugs back to the text editor... [19:29] Mattpark has joined the channel [19:29] context: keyvan: same. [19:30] Mattpark: hello ^^ [19:33] Mattpark: I'm looking for some help, anyone can spare a few minutes? :) [19:34] addisonj: don't ask to ask, just ask :) [19:34] ceej has joined the channel [19:34] addisonj: (in other words, someone here probably does) [19:34] Mattpark: haha ok ^^ [19:35] zeade has joined the channel [19:35] Mattpark: I'm trying get a simple http server to work on an amazon EC2 [19:35] Mattpark: for some reason the server I created doesn't seem to work at all [19:36] AvianFlu has joined the channel [19:36] Mattpark: I tried with a very minimalist server, just created it on some port, does nothing else [19:36] Ramosa: mmm thursday, that's tomorrow :) [19:36] NHQ: @context I think I found the discrepency [19:36] NHQ: @context ld.so.1: node: fatal: relocation error: file /opt/local/bin/node: symbol BIO_set_flags: referenced symbol not found [19:36] DTrejo: Mattpark: maybe port is not open to external internet [19:37] addisonj: Mattpark, code somewhere? [19:37] addisonj: and what errors do you get? [19:37] Mattpark: there are no error, server starts fine apparently [19:37] Mattpark: the code is just the code I borrowed from the nodejs home page at the beginning :) [19:38] Mattpark: can't be more simple [19:38] Mattpark: I just added a conseole.log on request but that all [19:38] addisonj: did you copy it exactly as is? because if you did, that only listens on localhost [19:39] addisonj: meaning, you can only connect locally from the same box [19:39] Mattpark: haha changed the port :) [19:39] addisonj: no, not the port, the "127.0.0.1" part [19:39] addisonj: if you want to listen on all interfaces, just do .listen(port); [19:40] Mattpark: I didn't use any address [19:40] Mattpark: jsut .listen(port) [19:40] patcito has joined the channel [19:40] swaj has joined the channel [19:40] addisonj: and you can't connect to it? [19:41] Mattpark: I use the elastic IP:port in my browser, it just times out and no connection at all made [19:41] addisonj: you check iptables? [19:42] daveluke has joined the channel [19:42] Mattpark: well I'm not using a VPC, just an independant EC2 instance [19:42] daveluke_ has joined the channel [19:42] DTrejo: Mattpark: can you curl it and see if it shows? [19:42] daveluke has joined the channel [19:43] Mattpark: I do have another problem about node, maybe related [19:43] Mattpark: when I try to install some modules it throws an error saying node-waf not found [19:44] mikedeboer has joined the channel [19:44] Mattpark: I reinstalled nodejs a thousand times in a thousand different ways [19:45] fly-away has joined the channel [19:45] AvianFlu has joined the channel [19:45] Mattpark: compiled it, or used nvm or packages... still no node-waf, and it's not on the machine at all [19:46] chapel: https://plus.google.com/113956992577785750709/posts/Dg2b89mjC5z [19:46] addisonj: what os and what compiler options? [19:46] Mattpark: oh I was on ubuntu [19:47] ovnicraft has joined the channel [19:47] bc has joined the channel [19:47] Mattpark: compiled using this https://github.com/joyent/node/wiki/Installation [19:48] seivan_: Damn [19:48] seivan_: redback is broken [19:48] seivan_: namspace undefined [19:49] addisonj: Mattpark, cloning from git isn't the best idea, grab 0.4.9 from nodejs.org [19:49] CIA-107: libuv: 03Bert Belder 07master * r2865042 10/ (include/uv.h src/uv-win.c): uv-win: refactor request processing - http://bit.ly/pi3iyS [19:50] xandrews has joined the channel [19:50] Mattpark: I tried that version too :( [19:50] blup has joined the channel [19:50] Mattpark: tried packages too [19:51] NHQ: does anybody here want o get PAID to be a SOLARIS administrator [19:51] jarek has joined the channel [19:51] jarek has joined the channel [19:51] tuhoojabotti: Hello [19:52] addisonj: and you are just doing a ./configure && make && sudo make install? [19:52] wossoya: When I try to install node-proxy, amongst a few other errors, my system says: "Checking for node path: not found" Does anyone know how to resolve this? [19:52] addisonj: because if that breaks on ubuntu 8.04+ then you probably have something funky in your install, maybe screwed up path [19:53] wossoya: I'm using cygwin unfortunately [19:53] NHQ: @addisonj export PATH=$HOME/local/node/bin:$PATH [19:53] Mattpark: well yes, just --prefix [19:54] addisonj: ah... try it without prefix, and I bet you it will work [19:54] Guest51170 has joined the channel [19:55] softdrink: weird… an empty string is apparently a valid key for an object. [19:55] NHQ: my error is looking for file /opt/local/bin/node, but my node path is ~/local/node/bin. How can I resolve that? [19:55] Mattpark: hmm ok I'll try ^^ [19:55] context: nhq: just stop. figure out what your doing or higher someone to setup that vps. [19:56] context: 5 minutes ago node was /opt/node [19:56] wossoya: how do you set the node path? [19:56] context: nhq: look in joyents help, im sure they have a damn package for node. [19:56] seivan_: Anyone got any experience with redback? I get namespace undefined when trying to do the full text search, exact duplicate of the readme [19:57] NHQ: @context are you available for hire? [19:57] NHQ: @context no they dont have node packages [19:59] catb0t has joined the channel [19:59] context: http://wiki.joyent.com/display/node/Installing+Node.js+on+a+Joyent+SmartOS+SmartMachine [19:59] context: according to joyent's wiki THEY DO [19:59] context: now shut up. [20:00] context: stop wasting EVERYONES damn time. [20:00] AvianFlu has joined the channel [20:01] balaa has joined the channel [20:01] seivan_: var redis = require('redis').createClient(); [20:01] seivan_: var redback = require('redback').use(redis, {namespace: "LOL"}); [20:01] seivan_: Thats how to solve it [20:02] braddunbar has joined the channel [20:03] catphive has joined the channel [20:03] context: nhq: on another note, im glad i could search joyents docs for you, which i told you to do already, to validate what i said over a half hour ago. [20:05] catb0t has joined the channel [20:05] Aiden: Hello everyone. Do any of you have experience with Mongoose? [20:07] briznad has joined the channel [20:08] NHQ: @context I searched the packages and it didn't list any node packages. nonetheless, I installed the one from their docs, and it installed 0.4.2, not 0.4.7. When I run node, then, it says the server is running, but the app is unresponsive. When I built it myself, the app ran fine (until I ran into the current problem). So using their package is taking several steps in the wrong direction [20:08] kbni has joined the channel [20:10] muk_work has joined the channel [20:10] muk_work: hey guys [20:11] liam_ has joined the channel [20:11] muk_work: are any of you using vows and know how to run an async test for each item in an array? [20:11] prettyrobots has joined the channel [20:11] NHQ: @context also that doc is old and will lead you down a rabbit hole of NPM issues as well [20:11] braddunbar: Does anybody know what's going on with the jasmine-node package? It seems to have been gutted in the repo, and the original owner is no longer maintaining it. [20:12] bnoordhuis: NHQ: you're that johnny honestly guy from the nodejs ML, right? [20:12] NHQ: @bnoordhuis that is true [20:13] bnoordhuis: NHQ: are you still having that BIO_set_flags linker error? [20:13] NHQ: @bnoordhuis indeed I am [20:14] DTrejo: Aiden: I don't, but if you ask the question someone will answer :) [20:14] Aiden: DTrejo: Thanks :) [20:14] DTrejo: !ban context [20:15] DTrejo: context: don't be a dick [20:15] bnoordhuis: NHQ: exact same issue? i.e. startup fails with 'node: symbol BIO_set_flags: referenced symbol not found' [20:15] NHQ: @bnoordhuis i think it has something to do with relative paths, cuz is says its looking for file /opt/local/bin/node but the node path upon installation is /local/bin/node [20:15] Yoric has joined the channel [20:16] Aiden: I have a document that contains an array of embedded documents. Currently I have a schema defined for this document, but I want to have different types of documents in the list. [20:16] NHQ: @bnoordhuis yes. although it doesn't happen at startup, it starts fine. Its when I access a page in th eapp [20:16] bnoordhuis: NHQ: can you pastie or gist the error? [20:16] Ezeeguy has left the channel [20:17] NHQ: @bnoordhis >> ld.so.1: node: fatal: relocation error: file /opt/local/bin/node: symbol BIO_set_flags: referenced symbol not found [20:18] Aiden: e.g. the embedded document is {name: String, eventTime: Date} but I want to have different types of events each with different properties. Does anyone know if this is possible? Or am I going about it the wrong way? (In my code I achieve this using inheritance) [20:18] gazumps has joined the channel [20:18] bnoordhuis: NHQ: and this happens only after the first request? [20:19] NHQ: yes [20:19] bnoordhuis: NHQ: i think i told you to compile node yourself - did you? [20:20] NHQ: @ bnoordhuis I did. I was using my own compilation in the first place [20:21] bnoordhuis: NHQ: where is your version installed? i wager it's not /opt/local/bin/node [20:21] wossoya has joined the channel [20:21] NHQ: @bnoordhuis no it is not [20:22] NHQ: @bnoordhuis it was $HOME/local/bin/node [20:22] catb0t has joined the channel [20:23] bnoordhuis: NHQ: what happens if you run your app with your version of node? [20:23] bnoordhuis: NHQ: i.e. `$HOME/local/bin/node app.js` [20:24] NHQ: @bnoordhuis server starts. everything A-okay until I need crypto [20:24] devrim has joined the channel [20:25] NHQ: @bnoordhuis ./configure reported Not Found for openssl, until I followed your advice and set the path for the new build of openssl [20:25] NHQ: @bnoordhuis yet that didn't resolve the problem [20:26] bnoordhuis: NHQ: do you run `export LD_LIBRARY_PATH=$HOME/path/to/openssl` before starting node? [20:26] NHQ: @bnoordhuis yes I tried that as well [20:27] bnoordhuis: NHQ: let's try this [20:27] NHQ: it still looks for /opt/local/bin... [20:27] bnoordhuis: NHQ: first, where does openssl.so live? [20:27] bnoordhuis: NHQ: exact path, please [20:29] Charuru has joined the channel [20:29] NHQ: @bnoordhuis of the new build? [20:29] bnoordhuis: NHQ: yes, the one that you compiled yourself [20:29] `3rdEden has joined the channel [20:30] bnoordhuis: NHQ: and another thing: can you gist the output of `ldd $HOME/local/bin/node` [20:30] jerrysv: still going i see [20:30] NHQ: @bnoordhius there is no openssl.so in that directory, only openssl.pc, openssl.spec, openssl.doxy [20:30] Yoric has joined the channel [20:31] NHQ: @bnoordhuis https://gist.github.com/1081249 [20:32] bnoordhuis: NHQ: your node is linked against the system openssl, that's no good [20:32] bnoordhuis: NHQ: download the openssl source tarball and build it with `./config shared` [20:32] lukstr: ACTION pours context a drink, goes home [20:33] NHQ: @bnoordhuis I did that when I built that version of openssl [20:33] bnoordhuis: NHQ: well, you did something wrong - so try it again [20:33] NHQ: ok [20:34] bnoordhuis: NHQ: and for the record, build openssl in $HOME/src/openssl [20:34] bnoordhuis: NHQ: makes the next part easier [20:34] NHQ: do i need to uninstall the old one? [20:34] bnoordhuis: NHQ: no [20:34] robi42 has joined the channel [20:35] jbpros has joined the channel [20:35] level09 has joined the channel [20:35] bnoordhuis: NHQ: step two: build node with `./configure --openssl-includes=$HOME/openssl/include --openssl-libpath=$HOME/src/openssl --prefix=$HOME/opt/node && git clean -dfx && make` [20:36] bnoordhuis: NHQ: wait, make that `./configure --openssl-includes=$HOME/openssl/include --openssl-libpath=$HOME/src/openssl --prefix=$HOME/local && git clean -dfx && make` [20:36] bnoordhuis: probably fits better [20:36] tsutton has joined the channel [20:36] JaKWaC has joined the channel [20:36] bnoordhuis: NHQ: then a `make install` and you should be set [20:36] NHQ: should that be --openssl-includes=$HOME/src/opensll/include ? [20:37] avalanche123 has joined the channel [20:37] asobrasil has left the channel [20:38] bnoordhuis: NHQ: no, --openssl-includes=$HOME/src/openssl/include [20:39] mraleph has joined the channel [20:39] sw8sw8 has left the channel [20:40] synkro has joined the channel [20:42] yozgrahame has joined the channel [20:43] _Sorensen_: does anyone know where the node package graph is? [20:43] _Sorensen_: or has even seen it? [20:43] supster has joined the channel [20:43] _Sorensen_: fooound it [20:44] NHQ: @bnoordhuis how I do extract to the src dir, when I do 'gtar xzf openssl.tar.gz /src/openssl' i get an error [20:45] kmox83 has joined the channel [20:45] ckknight: anyone know how to specify NODE_ENV=production when using forever? [20:46] bnoordhuis: NHQ: `cd $HOME/src && gtar xfz /path/to/openssl.tar.gz` [20:47] eee_c has joined the channel [20:47] chapel: ckknight: cli: echo NODE_ENV=production [20:48] DTrejo: ckknight: add export NODE_ENV=production to your ~/.bashrc [20:48] JJMalina has joined the channel [20:48] context: NODE_ENV=production forever ... [20:48] sandstrom has joined the channel [20:48] sandstrom has joined the channel [20:48] mandric has joined the channel [20:49] techwraith has joined the channel [20:49] context: bnoordhuis: personally id stop wasting your time. he has a working node, he is choosing to break it and then wonder why it don't work. [20:50] softdrink: is there a way to define fallback getters/setters in js? [20:50] ckknight: softdrink: in what context? [20:50] fraserkillip has joined the channel [20:51] bnoordhuis: context: well... no crypto support isn't quite a working node [20:51] context: softdrink: __defineGetter__ and __defineSetter__ [20:51] meatmanek__ has joined the channel [20:51] context: bnoordhuis: no. he had it working. then he messed with node's libpath, then it stoped working [20:51] igl: softdrink: http://joose.it ^^ [20:51] softdrink: context: along those lines, yes. but say i want to call a function whenever *any* property is set... [20:51] context: he doesn't need to update openssl on a brand new vps for crypto support [20:52] meatmanek__ has joined the channel [20:52] prettyrobots has joined the channel [20:52] context: bnoordhuis: and he doesn't need to purposely pretend the os has zero package management for such a basic package such as openssl. [20:53] fraserkillip: what time GMT is v0.5.1 being released? [20:53] bnoordhuis: context: i suppose all that is true [20:54] fyskij has joined the channel [20:54] context: when is the last time anyone in here has manually downloaded and compiled openssl? besides never . [20:54] NHQ: @bnoordhuis the configure went thru, but then this: fatal: Not a git repository (or any of the parent directories): .git Should I rather use a git clone for my node repo? [20:54] fraserkillip: context: i did at never o'clock [20:55] sonnym has joined the channel [20:55] mc_greeny has joined the channel [20:55] context: did he just go from compiling openssl to not a git repo? [20:55] meatmanek__ has left the channel [20:55] context: [20:55] bnoordhuis: NHQ: preferably yes - after cloning, do `git checkout v0.4.9` [20:55] NHQ: ok [20:56] pifantastic_ has joined the channel [20:56] toabi has joined the channel [20:57] keyvan: any way to clear the terminal scrollback with node? [20:57] keyvan: without calling clear on the system side? [20:57] keyvan: i guess i could just do that. [20:57] keyvan: :/ [20:58] Swimming_bird has joined the channel [20:59] NHQ: @bnoordhuis Project not configured (run 'waf configure' first) https://gist.github.com/1081315 [20:59] NHQ: i dont know what waf is, but i dont have it [20:59] bnoordhuis: NHQ: you have it, you just don't know it [20:59] JoshC1 has joined the channel [20:59] bnoordhuis: NHQ: run the ./configure line i typed earlier [21:00] langworthy has joined the channel [21:00] Wizek has joined the channel [21:01] NHQ: @bnoordhuis same error, $waf >> waf: command not found [21:01] bnoordhuis: NHQ: sorry btw - that `git clean` removes the config files from ./configure of course - my bad! [21:02] bnoordhuis: NHQ: `git clean -dfx && ./configure --openssl-includes=$HOME/openssl/include --openssl-libpath=$HOME/src/openssl --prefix=$HOME/local && gmake && gmake install` [21:02] kmurph79 has joined the channel [21:04] zackattack has joined the channel [21:04] CIA-107: libuv: 03Ben Noordhuis 07master * r765b6a2 10/ src/uv-unix.c : uv-unix: bug fix, increment check_init counter. - http://bit.ly/oWyUKs [21:05] CIA-107: libuv: 03Ben Noordhuis 07master * raad95b8 10/ src/uv-unix.c : uv-unix: increment check_init counter in uv_check_init() - http://bit.ly/oPRpTv [21:05] saikat has joined the channel [21:06] mehtryx has joined the channel [21:06] hij1nx has joined the channel [21:08] necrodearia has joined the channel [21:08] bpierre has joined the channel [21:09] NHQ: @bnoordhuis ack! build failed: https://gist.github.com/1081343 [21:10] taf2: quick point fingers!! [21:10] Nuck has joined the channel [21:10] NHQ: that gist is just the last few lines of course [21:10] techwraith has joined the channel [21:11] bnoordhuis: NHQ: can you run `tools/waf-light -v --product-type=program build` and gist the full log? [21:11] NHQ: surely [21:12] NHQ: @bnoordhuis your log sir https://gist.github.com/1081347 [21:13] hwinkel has joined the channel [21:13] bnoordhuis: NHQ: what does `ls -l /home/jill/src/openssl` say? [21:13] hij1nx has joined the channel [21:14] softdrink: joose looks interesting. i hadn't seen it before. [21:14] mandric_ has joined the channel [21:16] Kuntau has joined the channel [21:16] Kenj1 has joined the channel [21:16] NHQ: oh shite [21:16] NHQ: im dumb i will do it again @bnoordhuis ls: cannot access /home/jill/src/openssl: No such file or directory [21:16] bnoordhuis: NHQ: heh, there you go :) [21:16] knuthy has joined the channel [21:17] erenon has joined the channel [21:18] NHQ: @bnoordhuis yeah I left the version on the directory name. question: for --openssl-includes=$HOME/openssl/include, should that also be openssl1.0.0d? [21:18] AvianFlu has joined the channel [21:19] bnoordhuis: NHQ: if that is where you untarred openssl yes [21:19] bnoordhuis: NHQ: make sure to do the git clean / configure / gmake spiel again [21:19] erenon: Hi, I wrap my C++ class Foo with a Wrapper that extends ObjectWrap. new Foo() on javascript side causes a new Foo on C++ side, but Foo's destructor never run. Is there a way to delete [21:19] erenon: the Foo instance explicitly? [21:21] NHQ: @bnoordhuis if i untarred it to $home/src, tho, how will --openssl-includes=$HOME/openssl/include work? [21:21] taf2: erenon, i don't know for sure... but in JS if you call delete does that trigger your destructor? or is it maybe the case that destructor isn't ever called for a reason? [21:21] erenon: taf2: no, js's delete doesn't call it [21:21] jerrysv: erenon: what about when GC happens? [21:21] bnoordhuis: NHQ: that should be $HOME/src [21:22] bnoordhuis: NHQ: and $HOME/src/openssl/include should exist after untarring [21:22] colinclark has joined the channel [21:22] erenon: jerrysv: how can I run the GC manually? (Is it even possible?) [21:22] bnoordhuis: erenon: no [21:22] bnoordhuis: erenon: you're at the mercy of v8's garbage collector [21:23] kartmetal has joined the channel [21:23] taf2: erenon, "if they are not GC'd before that then their destructors will not be called" from http://code.google.com/p/v8-juice/wiki/CreatingJSClasses [21:23] jerrysv: bnoordhuis: no, you're not [21:23] jerrysv: erenon: let me find you a link, hold on [21:24] erenon: if the GC helps me out, the instance should be deleted at the end of the script at least, as I imagine [21:24] bnoordhuis: jerrysv: __attribute__((destructor)) ? [21:25] jerrysv: bnoordhuis: no, there's a project on github that exposes v8's GC call to javascript [21:25] carmony has joined the channel [21:25] bnoordhuis: jerrysv: bnoordhuis/node-profiler per chance? :) [21:25] jerrysv: i know about that one, but no, it was another :) [21:26] bnoordhuis: jerrysv: running the gc explicitly still doesn't guarantee that your c++ destructor will run [21:27] jerrysv: bnoordhuis: no, but my thought was that if the destructor wouldn't be called until gc happens, you have a better chance of having it called if you forced gc [21:27] bnoordhuis: jerrysv: right, that's true [21:27] bnoordhuis: but if you want explicit guarantees, you need to side-step the gc [21:28] softdrink: hrm, i could probably write something like JooseX.Attribute.Trigger to do what i need [21:28] jerrysv: that took way too much effort [21:28] jerrysv: erenon: https://github.com/billywhizz/node-gc/blame/master/gc.cc [21:29] hwinkel1 has joined the channel [21:29] jerrysv: or, better: https://github.com/billywhizz/node-gc [21:29] gozala has joined the channel [21:29] sandsmark has joined the channel [21:30] erenon: jerrysv: thanks, I'll check it out [21:31] Kenj1 has left the channel [21:31] ngs has joined the channel [21:31] NHQ: @bnoordhuis okay, i doublechecked my paths, ran 'git clean -dfx && ./configure --openssl-includes=$HOME/src/openssl-1.0.0d/include --openssl-libpath=$HOME/src/openssl-1.0.0d --prefix=$HOME/local && gmake && gmake install', and it looks like the same error as the previous gists [21:33] context: id ask why you are installing it to $HOME, but you have no answer for that. [21:33] erenon: jerrysv: tried the second one, no luck. [21:33] bnoordhuis: NHQ: what happens if you run`LD_LIBRARY_PATH=$HOME/src/openssl-1.0.0d $HOME/local/bin/node app.js` [21:34] bnoordhuis: erenon: what kind of c++ objects are we talking here? [21:34] erenon: bnoordhuis: a dead simple one [21:34] erenon: https://gist.github.com/980104/59fd979841827de178d5e8ba5dcd36d6a3261ccd [21:34] jerrysv: and are you running --trace-gc ? [21:34] fraserkillip: GMT time of node 0.5.1 release anyone? [21:35] NHQ: @bnoordhuis app runs, but then the original foul 'ld.so.1: node: fatal: relocation error: file /home/jill/local/bin/node: symbol BIO_set_flags: referenced symbol not found' [21:35] jerrysv: am i blind, or is there no destructor there? [21:35] erenon: note: I added a constructor and a destructor [21:35] erenon: the linked files are not mine [21:35] context: nhq: add me a user? [21:35] erenon: tried --trace-gc, no luck [21:35] context: nhq: dont need root or anything [21:36] erenon: the constructor of Point runs, of course [21:36] bnoordhuis: NHQ: gist of `ldd /home/jill/local/bin/node` and `ls -l $HOME/src/openssl-1.0.0d`? [21:36] bnoordhuis: erenon: there are no resources here that can leak so does it really matter if or when the destructor runs? [21:36] erenon: bnoordhuis: it's only a prototype. [21:37] NHQ: @contect do I need to add your public key? [21:37] fangel has joined the channel [21:37] amerine has joined the channel [21:37] bnoordhuis: erenon: if you need explicit destruction at program end [21:38] context: nhq: you can [21:38] context: if you even got all that :x [21:38] bnoordhuis: erenon: maintain a std::list<> or something that you put your objects on when created [21:38] context: not sure it will send [21:38] NHQ: @bnoordhuis 2 in 1 https://gist.github.com/1081394 [21:38] bnoordhuis: erenon: remove from said list when an object is destructed [21:39] bnoordhuis: erenon: and register a __attribute__((destructor)) function that cleans up everything that is still on the list when the program shuts down [21:39] erenon: there is a std::cout << "point destr" << std::endl; line in the destructor [21:39] erenon: it sounds like implement an own garbage collector... [21:40] Wizek has joined the channel [21:40] AvianFlu_ has joined the channel [21:40] bnoordhuis: erenon: btw, if you put the objects themselves in the list instead of pointers, they'll be auto-destructed when the list is destructed (which happens automatically if it's a static global) [21:40] bnoordhuis: erenon: yes, indeed :) [21:41] bnoordhuis: NHQ: your node is still linked to the site-wide openssl libs [21:41] NHQ: didn't it get the MEMO [21:43] NHQ: @bnoordhuis is it because I am building as root user? [21:43] MarcinM has joined the channel [21:43] NHQ: i dont think I can gmake otherwise [21:43] context: .... [21:43] context: root user installing to $HOME [21:43] MarcinM: Question for anyone using mongodb-native. Does sort 'desc' work for you? [21:44] eee_c has joined the channel [21:44] context: nhq: you need to slow down [21:44] context: rm -rf {anything relating to compiling openssl and node} [21:44] context: start over. its been three hours, you just keep digging the same hole [21:45] NHQ: @context permission is denied otherwise [21:45] context: you're root. permission is not denied. [21:45] Mrfloyd has joined the channel [21:45] context: 16:43 NHQ| @bnoordhuis is it because I am building as root user? [21:45] context: 16:45 NHQ| @context permission is denied otherwise [21:45] context: makes NO SENSE AT ALL ! [21:45] NHQ: @context i mean if i am not root, i can't build node. [21:46] context: that makes no sense either. [21:46] MarcinM: And is this syntax right? find(params, {limit:10, sort:['header', 'desc']}) [21:46] NHQ: @context tell that to the permission denied [21:46] MarcinM: I can change what I sort by and it seems to be working - but changing asc or desc does nothing. [21:46] context: nhq: "permission denied" is exactly like saying "it dont work" ... ZERO CONTEXT [21:46] MarcinM: ^^ that's for christkv's mongodb-native [21:47] context: nhq: serious, remove all those sources you have for openssl and node. if anything have the box wiped, you have no clue what you have placed where, overwritten, or ANYTHING [21:47] context: you dont know what version of what is installed where and how many times [21:47] brettgoulder has joined the channel [21:48] context: you obviously have at least one version of node in /opt, probably one in $HOME and if you're lucky also in /usr/local [21:48] NHQ: @context I uninstalled all node builds, got a freshie from the git repo like bnoordhuis said, re-configured openssl... [21:48] NHQ: node only builds to /opt if i use the package [21:48] NHQ: i uninstalled that package [21:48] MarcinM: Hah, just found it. Should be sort:[['header', 'desc']] instead. [21:48] context: nhq: if you want, add me a user, ill install node without root and/or see whats really wrong. [21:49] MarcinM: If anyone else needs the syntax, I found the answer here: http://groups.google.com/group/node-mongodb-native/browse_thread/thread/fd618670dbd076fc [21:49] sonnym has joined the channel [21:49] CIA-107: libuv: 03Ben Noordhuis 07master * re364dd1 10/ src/uv-unix.c : uv-unix: fix warning: no return statement in function returning non-void - http://bit.ly/p5tAZK [21:49] CIA-107: libuv: 03Ben Noordhuis 07master * rf560f75 10/ src/uv-unix.c : uv-unix: fix warning: control reaches end of non-void function - http://bit.ly/o5E2Sh [21:49] CIA-107: libuv: 03Ben Noordhuis 07master * r932f0ad 10/ src/uv-linux.c : uv-linux: fix warning: implicit declaration of function ‘readlink’ - http://bit.ly/qRmQCK [21:49] CIA-107: libuv: 03Ben Noordhuis 07master * r01ae10e 10/ (config-unix.mk src/uv-linux.c): uv-linux: remove unused variables - http://bit.ly/rcd61e [21:49] CIA-107: libuv: 03Ben Noordhuis 07master * rc9dee7e 10/ src/uv-unix.c : uv-unix: remove unused variable - http://bit.ly/pU8Bwr [21:50] broofa has joined the channel [21:50] NHQ: @context let me look at how to add a user [21:50] jerrysv: this is so entertaining [21:51] context: ACTION beats jerrysv with the wooden hose :p [21:51] bnoordhuis: jerrysv: you rubberneck at car crashes too, don't you? [21:52] context: nhq: useradd -m -s /bin/ksh -c "Zac" context [21:52] context: nhq: then: passwd context, and set to something random and PM it and the ip address to me [21:53] jerrysv: bnoordhuis: this is a truly spectacular one [21:53] NHQ: @bnoordhuis is this advisable? [21:53] bnoordhuis: NHQ: you mean let context help you out? [21:53] erenon: hmm, no luck on the gc issue. have to go now, I'll figure it tomorrow. I can't sleep with memory leaks [21:54] jerrysv: erenon: hm. good luck. [21:54] jerrysv: maybe post your gist tomorrow? [21:55] erenon: exactly which gist? the prototype? okay [21:55] sandsmark has left the channel [21:55] erenon has left the channel [21:56] estrathmeyer has joined the channel [21:56] NHQ: @context i cant pm from here [21:56] context: uhh [21:56] context: /msg context ... [21:57] NHQ: okay [21:58] arg_ has joined the channel [21:58] arg_: does anyone know why I would get this? (new TypeError(\"jade.render is not a function\" [21:58] eee_c1 has joined the channel [21:59] arg_: I'm trying to use jade in couchapp [21:59] NHQ: okay i gave the keys to my new car to context [21:59] context: kk [21:59] jerrysv: train. this wreck is so large it could be a train colliding with the titanic [21:59] CIA-107: libuv: 03Ben Noordhuis 07master * rb50105e 10/ src/uv-unix.c : uv-unix: remove unused variable - http://bit.ly/o1I9ZN [21:59] CIA-107: libuv: 03Ben Noordhuis 07master * rf142a4b 10/ src/uv-linux.c : uv-linux: remove unused variables - http://bit.ly/nrLiaw [22:00] NHQ: @bnoordhuis do have any suggestion about the node-openssl reference thing? [22:00] context: compiling now [22:00] davidbanham has joined the channel [22:00] muk_work has left the channel [22:01] bnoordhuis: NHQ: i'm handing it off to context :) [22:01] context: nhq: remember what i said about guard rails [22:01] NHQ: @bnoordhuis thank you for all of your guidance thus far [22:01] bnoordhuis: NHQ: my pleasure [22:02] arg_: I just updated to a newer version of jade and I am getting this error http://pastebin.com/XZ1AWW3D can anyone take a peek [22:02] NHQ: @context i remember [22:03] slajax has joined the channel [22:03] context: ACTION patiently waits for node to finish compiling [22:03] randomnewblet has joined the channel [22:06] amerine has joined the channel [22:06] sturadnidge has joined the channel [22:07] sturadnidge has left the channel [22:07] AvianFlu has joined the channel [22:07] bwinton has joined the channel [22:09] NHQ: @arg_ check your locals maybe [22:10] context: mmmm [22:10] MarcinM has left the channel [22:10] context: nhq: alright. these smart toys just might be a pile of crap [22:10] CrabDude has joined the channel [22:10] NHQ: @context that is what I was afraid of, yet somehow they got em working with their own node brand smart machine service [22:11] EyePulp: hrm - having trouble installing mongoose via npm - it seems mongodb 0.9.6.7 fails to install [22:12] brianseeders has joined the channel [22:13] amerine has joined the channel [22:13] jungly has joined the channel [22:13] context: nhq: yeah, try in #joyent [22:13] context: :/ [22:13] context: nhq: sorry i was so hard on you earlier [22:13] ash___: EyePulp: [22:13] ash___: i got same error [22:13] context: nhq: that would be a better place to ask though honestly [22:14] ash___: does it say mongoose 1.7.1? [22:14] NHQ: @context they are not very responsive [22:14] malkomalko has joined the channel [22:14] EyePulp: ash___: looks like @1.7.2 [22:14] EyePulp: I'm using npm (or trying) [22:15] ash___: i installed version 1.6 [22:15] ash___: and didnt get this error [22:15] NHQ: @context would root access help? [22:15] malkomalko: is it possible to get the current route in an express middleware including params filled in? or can you res.redirect('back') from middleware? I don't think you can because there is no referrer [22:15] EyePulp: ash___: interesting [22:16] context: nhq: they should have a newer version but hold on [22:16] ash___: EyePulp: [22:16] ash___: https://github.com/LearnBoost/mongoose/blob/master/package.json [22:16] ash___: see 1.7.2 has this mongodb dependency [22:16] context: nhq: if you want, there are a couple things i can try [22:17] ash___: https://github.com/LearnBoost/mongoose/blob/1.6.0/package.json [22:17] ash___: then 1.6 doesnt [22:17] ash___: dunno [22:18] EyePulp: ash___: wow - that seems like a large dependency that wasn't needed before. interesting [22:18] sylvinus has joined the channel [22:18] Mattpark has left the channel [22:18] ash___: https://github.com/LearnBoost/mongoose/commit/12e93d2737b819ec1563c8d4ede45a9f0463c6e1#package.json [22:18] ash___: seems like they bundled it previously [22:20] tjholowaychuk: malkomalko: you can use any of the response methods [22:20] kevwil has joined the channel [22:20] tjholowaychuk: whenever you want [22:20] tjholowaychuk: req.route has the current route [22:20] hybsch has joined the channel [22:20] tsenga has joined the channel [22:20] malkomalko: res.redirect('back') works from middleware? I was getting undefined before in 2.3.11 [22:20] malkomalko: because it didn't have the referrer header [22:21] tjholowaychuk: the referrer field has nothing to do with middleware [22:21] tjholowaychuk: that's at the request level [22:21] EyePulp: ash___: well there's node-mongodb-native, which mongoose lives on top of, and then there's the mongodb package. [22:21] estrathmeyer has left the channel [22:21] ash___: i got mine working [22:21] EyePulp: ash___: unless they're migrating from one to the other... [22:21] tjholowaychuk: but yeah express extends ServerResponse so you can use those methods whenever [22:21] ash___: i did npm install mongodb -g first [22:21] malkomalko: awesome [22:21] ash___: then mongoose [22:21] malkomalko: really loving middleware for all sorts of things [22:21] malkomalko: param middleware rocks my world too [22:22] tjholowaychuk: oddly enough that feature was inspired by drupal haha [22:22] tjholowaychuk: maybe the only thing i took away from drupal [22:22] tjholowaychuk: and that it's modules are far more modular than rail's shitty plugins [22:22] EyePulp: ash___: yeah, it's failing even on its own. [22:22] EyePulp: for me at least [22:23] malkomalko: you can really abstract away a lot of formatting and conversion steps out of controllers, sanitization and everything like that [22:23] ash___: what does it say [22:24] jameson has joined the channel [22:24] EyePulp: lots of things... Error dlopen(...., 1) 1): Symbol not found: _ev_rt_now [22:24] EyePulp: the ... was just to cut out a file path [22:24] ash___: try without -g [22:25] tilgovi has joined the channel [22:25] tilgovi has joined the channel [22:25] Murvin has joined the channel [22:26] Murvin: bnoordhuis: hihi [22:26] EyePulp: ash___: I tried both. and now I realize that node-mongodb-native == mongodb in npm [22:26] ash___: for some reason my npm is not installing transitive dependencies [22:26] bnoordhuis: Murvin: are you trying to impersonate a teenage girl? [22:27] bnoordhuis: Murvin: i should let you know right now that i'm a happily married man [22:27] Murvin: bnoordhuis: yes... omg. [22:27] bnoordhuis: Murvin: so, what's up? :) [22:27] Murvin: bnoordhuis: omg. i was typing a long message, and then i erase it for the "yes". lol [22:28] Murvin: bnoordhuis: ok. i m a 40% happy and 60% unhappy married man [22:28] bnoordhuis: Murvin: haha [22:28] Lightdork has joined the channel [22:28] Murvin: bnoordhuis: hahaah anyway.. ehy,, just wanna know, in what socket._httpConnecting really means, and in what situation that will set to true. [22:28] EyePulp: ash___: it looks like it builds the module fine, but dies right after that with the missing symbol [22:29] tshpaper has joined the channel [22:29] ash___: what do you mean missing symbol [22:30] bnoordhuis: Murvin: is non-blocking connect(2) complete, yes or no [22:30] EyePulp: ash___: the error when I attempt to install mongodb.. [22:30] bnoordhuis: Murvin: i.e. do we have a connection to the server [22:31] Murvin: bnoordhuis: ok... [22:31] ash___: not sure :( [22:31] Murvin: bnoordhuis: connection to which server? [22:32] chrischris has joined the channel [22:32] bnoordhuis: Murvin: say you do a http.get() to google.com [22:32] Murvin: bnoordhuis: what is the command for watching socket again? watch lsof -i 4 -a -p PID | wc -l right? [22:32] bnoordhuis: Murvin: setting up the connection isn't instantaneous [22:33] dannycoates has joined the channel [22:33] bnoordhuis: Murvin: that variable tracks it [22:33] McLeopold has joined the channel [22:33] Sorella has joined the channel [22:33] bnoordhuis: Murvin: re lsof: right [22:34] bnoordhuis: Murvin: or rather: watch 'lsof -i 4 -a -p PID | wc -l' [22:34] Murvin: bnoordhuis: yeah.. so, http_connecting is true while it is establishing the connection, and false when it is established, right? [22:34] bnoordhuis: Murvin: yes [22:34] McLeopold: I've got the command 'npm ls -g' returning a path that doesn't exist. Could anyone help me fix this? [22:35] mugz_ has joined the channel [22:35] mugz_: Hi [22:36] Murvin: bnoordhuis: hmmm i try that command, and no response.. just hang on the screen.. weird.. [22:36] mugz_: has anyone cross compiled v0.4.9 for arm ? [22:36] Murvin: bnoordhuis: so, while it is in _httpConnecting, there shouldn't be any httpMessage, right? [22:37] perlmonkey2 has joined the channel [22:38] level09 has joined the channel [22:38] mugz_: . [22:38] yozgrahame has joined the channel [22:39] Wizek has joined the channel [22:39] bnoordhuis: Murvin: there may be a client request enqueued already [22:39] bnoordhuis: Murvin: waiting to be sent once the connection is established [22:39] mugz_ has left the channel [22:39] mugz_ has joined the channel [22:40] Murvin: bnoordhuis: hmm ok.. hmmm [22:43] amerine has joined the channel [22:43] emacsen has joined the channel [22:44] smtlaissezfaire_ has joined the channel [22:47] randoman has joined the channel [22:47] randoman has left the channel [22:47] SubStack: harth: check out http://github.com/substack/node-fileify [22:47] Murvin: bnoordhuis: for that ... socket problem... if you still remember.. haha i m quite confident to find a way to work around it. but it is not in the http.js or any lib. it is some checks and some socket.destroy() handle by my applicaiton. [22:47] SubStack: easy to load template files that way [22:49] SubStack: (responding to the twitters in irc) [22:49] bnoordhuis: Murvin: have you tried mikael roger's new http lib? [22:49] bnoordhuis: Murvin: https://github.com/mikeal/node/tree/v0.4-http-fix [22:51] harth: SubStack: awesome, I should have known [22:51] Murvin: hmm haven't tried [22:52] NHQ: @bnoordhuis could I ask a line off you: what is a succinct way to describe the base of the node/openssl issue which plagues me? [22:52] NHQ: @bnoordhuis besides 'user error' [22:52] bnoordhuis: NHQ: run-time openssl link error when using crypto in node [22:53] Murvin: bnoordhuis: Hmmm which one is the fix? [22:53] NHQ: many thx [22:53] bnoordhuis: Murvin: he basically rewrote the http and agent classes [22:53] Nuck: tjholowaychuk: Is caustic stable enough for general use? [22:53] Murvin: bnoordhuis: just copy the http.js over? [22:53] SubStack: harth: what templating language by the way? [22:53] Murvin: and remake it? [22:53] tjholowaychuk: Nuck: I think so :D [22:53] tjholowaychuk: endless possibilities [22:54] Nuck: tjholowaychuk: It looks fucking sexy. [22:54] tjholowaychuk: feel free to add some issues if you find some patterns that it's missing [22:54] harth: SubStack: I'm trying handlebars right now [22:54] tjholowaychuk: i just need to play around more and come up with patterns [22:54] bnoordhuis: Murvin: i think so - but do a `git diff --stat` against the master to be sure [22:54] Nuck: tjholowaychuk: That thing is fucking awesome. [22:55] SubStack: harth: you could hack up node-handlebarify :D [22:55] Murvin: bnoordhuis: hmmm ok.. never done that b4..let me figure out.. [22:55] SubStack: like node-jadeify but for handlebarjs [22:55] Murvin: :) [22:55] balaa has joined the channel [22:55] harth: hey, maybe [22:56] chapel: SubStack: or node-ejsify [22:56] SubStack: yes somebody write that too [22:56] SubStack: for the browserify empire, we need this [22:57] unlink has joined the channel [22:57] unlink has joined the channel [22:58] chapel: :) [22:58] sylvinus has joined the channel [23:01] Murvin: bnoordhuis: i am taking a glance.. there are tones of changes. lol [23:02] Murvin: bnoordhuis: but the API the same right? [23:02] bnoordhuis: Murvin: yep [23:03] mikey_p: wow, I'd love to see an awesome single page app using browserify...looks like you could do some wild stuff there [23:03] SubStack: mikey_p: you sure can! [23:04] SubStack: here is one: http://browserling.com/ ;) [23:04] SubStack: it is fairly wild! [23:04] c4milo1 has joined the channel [23:04] Murvin: bnoordhuis: if it works, it will be so awesome.. :) [23:06] knuthy has joined the channel [23:06] chapel: mikey_p: Im using browserify and dnode for a singlepage app Im working on for a client [23:06] chapel: though its under wraps and probably of no interest to anyone here [23:07] mikey_p: chapel: are you using why backbone, spine, sammy, sproutcore, etc ? [23:08] mikey_p: chapel: or any client side framework other than jquery/zepto etc? [23:08] chapel: nope, just jquery, some jquery addons and dnode/browserify [23:08] chapel: some parts could use backbone/sammy, but for the most part, it was pretty straight forward [23:08] Wizek_ has joined the channel [23:08] chapel: so we kind of ran through it all custom [23:10] Murvin: bnoordhuis: thanks.. that's mean tmr is my day for nonstop load testing. LOL [23:10] bnoordhuis: Murvin: :) [23:10] McLeopold has left the channel [23:11] Murvin: bnoordhuis: :) gonna get a lot of coffee beans tonight [23:11] TheFuzzball has joined the channel [23:13] AvianFlu has joined the channel [23:14] davidcoallier has joined the channel [23:14] rook2pawn has joined the channel [23:15] yozgrahame has joined the channel [23:16] Swimming_bird has joined the channel [23:16] eyesUnclouded has joined the channel [23:18] aliemmo has joined the channel [23:20] Nuck: tjholowaychuk: Can I put a template in a template? [23:20] Nuck: Cause I wanna have a template for a profile, then a template for each profile module inside it [23:20] tjholowaychuk: Nuck I'd like to have it magically know which portion(s) should be considered a view when nested [23:21] tjholowaychuk: but currently they should be separate [23:21] Nuck: ah okay [23:21] Nuck: Just wondering :D [23:21] tjholowaychuk: it would be cool though [23:21] tjholowaychuk: might be a little tough to make assumptions for those cases though [23:21] tjholowaychuk: you can look at the profile example for ideas maybe [23:21] Nuck: tjholowaychuk: I must say, however, that this is a level of JS magic rivaled only by LESS. [23:21] materialdesigner has joined the channel [23:22] tjholowaychuk: LESS is for css [23:22] tjholowaychuk: i dont get it [23:22] Murvin: have anyone tried to build an iPhone app that connect to a node.js server? [23:22] Nuck: tjholowaychuk: The client-side LESS is pretty epic. [23:22] tjholowaychuk: I think that's a terrible idea [23:22] tjholowaychuk: why would you render css on the client [23:22] tjholowaychuk: unless you're lazy [23:22] Nuck: tjholowaychuk: It's useful for testing without a Node backend. [23:22] tjholowaychuk: :p [23:23] Nuck: That's my only purpose for it. It's just so I can test easily on Windows with Apache [23:24] Nuck: I gotta agree with you on the comment about jQuery code being spaghetti code. [23:24] Nuck: It encourages people to write code that isn't reusable. [23:24] reid has joined the channel [23:24] Nuck: But Caustic should help offset that. [23:25] tjholowaychuk: yeah, I was always encapsulating [23:25] tjholowaychuk: and I thought wtf... why am I doing this [23:25] tjholowaychuk: the classes and tag types tell you most of that info [23:26] tjholowaychuk: and client stuff is so dynamic I dont really see templates being much of a use [23:26] tjholowaychuk: other than for large bodies of html [23:26] tjholowaychuk: which, even for single-page apps is usually done on the SS [23:27] Nuck: tjholowaychuk: I use EJS minimally for my current project, and that's just for the bodies of the various profile modules [23:27] Nuck: Since that makes it a bit easier to extend. [23:27] Nuck: The rest is all REST. [23:28] Nuck: So anything that makes my View easier is good in my book :P [23:29] smtlaissezfaire_ has joined the channel [23:29] Nuck: tjholowaychuk: Only thing that could be a problem is doing non-JS fallbacks [23:29] davidbanham has joined the channel [23:29] eee_c has joined the channel [23:29] tjholowaychuk: yeah, if you care about those sorts of things [23:30] Nuck: But I guess if I render the page in the body and just remove it onload [23:30] Nuck: Well, remove it for each page change [23:30] Nuck: I guess I'd be doing that anyways [23:30] ChrisPartridge has joined the channel [23:30] Nuck: tjholowaychuk: I hope to do AJAX like Facebook does. Where they use normal URLS and links but just override it with JS. [23:31] Nuck: It allows for very easy fallback to static server-rendered content. [23:31] Prometheus: Nuck: progressive enhancement? =P [23:31] Nuck: Prometheus: Actually, I'm using a lot of that stuff. [23:31] Nuck: Like CSS3 transitions. [23:31] Prometheus: what's the fallback for that? [23:32] Nuck: Prometheus: Nothing. I didn't bother. Older browsers just see it jump from one class to another :P [23:32] Prometheus: :> [23:32] Nuck: Animations are a nicety. [23:32] Nuck: I used a LESS mixin, though, so it works on damn near any modern browser [23:33] digiwano: css3 transitions are awesome [23:33] sfoster has joined the channel [23:33] Nuck: digiwano: Agreed. [23:33] c4milo1 has joined the channel [23:33] Nuck: http://peterlejeck.tk:8888/fakooda/site/pushdowns-1.html [23:33] abjorn has joined the channel [23:33] Nuck: (my dev server) [23:34] digiwano: css3 animations are fun too, just did a thing where i created an anim by manually creating and appending the css, then trigger the anim in js [23:34] Nuck: I'm quite proud of the animations on that. [23:34] digiwano: was super super simple and came out beautiful [23:34] Nuck: digiwano: This just handles classes. [23:34] Nuck: I just change the values on various things via classes and it moves. [23:35] digiwano: yeah i've done it multiple ways now [23:35] digiwano: a) with transitions and without js [23:35] Nuck: I used currying to make the code reusable in this case. [23:35] digiwano: b) by creating animations and class definitions on the fly and applying a class to trigger the anim [23:36] digiwano: and c) creating animations only on the fly and manually applying the animation name property, then unsetting the anim name property by binding for anim end [23:36] digiwano: after figuring out c, its by far my favorite [23:37] balaa has joined the channel [23:37] Nuck: I like B because it falls back on older browsers. [23:37] sounko has joined the channel [23:37] Nuck: And you shouldn't use style tags [23:38] Nuck: err, properties [23:38] Nuck: ACTION derps [23:39] StephenFalken has joined the channel [23:42] [[zz]] has joined the channel [23:45] ovnicraft has joined the channel [23:47] marcink_ has joined the channel [23:49] charleyd has joined the channel [23:49] Nuck: tjholowaychuk: I can't tell from the documentation, but can I do something like `` and have a way to set the uername in the background-image? [23:50] tjholowaychuk: it doesn't add any methods for style related stuff [23:50] tjholowaychuk: yet at least [23:50] Nuck: tjholowaychuk: Ah, I meant more as a way to have a variable in an attribute [23:51] tjholowaychuk: you can drop down to the element for more specific stuff, foo.el [23:51] tjholowaychuk: which is a jQuery object [23:51] Nuck: oh, that's awesome. [23:51] kmiyashiro has joined the channel [23:51] tjholowaychuk: foo.el.css(blah blah) [23:51] Nuck: That's good, I always love when there's easy ways to fall back to things I know :P [23:52] c4milo2 has joined the channel [23:52] Nuck: tjholowaychuk: I can see this being huge once it's complete, because this is a great idea. [23:52] tjholowaychuk: thanks man, feel free to fire patterns my way, I'm going to keep building up the examples trying to cover everything [23:53] digiwano: Nuck: my fallback had to be manual tween-based animation, i just used a variation of the ender-tween thing to pull that off [23:56] rook2pawn has joined the channel [23:58] rook2paw1 has joined the channel [23:59] amerine has joined the channel [23:59] stracK has joined the channel