[00:01] rafeca: anyways maybe having core method would be useful [00:01] copygirl: astropirate: before i go, wanna see it? [00:01] copygirl: i found the problem btw [00:01] astropirate: copygirl, okie [00:03] spleeze has joined the channel [00:03] michaelhartau has joined the channel [00:05] rwaldron has joined the channel [00:05] nicholas_ has joined the channel [00:06] sh1mmer has joined the channel [00:07] jesusabdullah: Any vows users here? I made a thing https://gist.github.com/1617654 [00:07] charlenopires has joined the channel [00:08] astropirate: jesusabdullah, got too much time on your hands again? >_> [00:09] jesusabdullah: hahaha [00:09] jesusabdullah: You'd think, huh? But no, I just do stuff like this during my downtime cause I think it's funny [00:10] astropirate: jesusabdullah, no this is great [00:10] jesusabdullah: It's good to laugh at stuff, keeps your mood going [00:10] jesusabdullah: heh [00:10] jesusabdullah: Funny enough, I think this might actually be useful XD [00:11] joshwines has joined the channel [00:11] schwab has joined the channel [00:12] Nss has joined the channel [00:13] chadskidmore has joined the channel [00:13] tylerstalder has joined the channel [00:14] aslant has left the channel [00:14] aslant has joined the channel [00:15] blueadept: anyone familair with everyauth? What is happening if i'm getting "Cannot GET /auth/twitter" for the twitter wroute? [00:15] blueadept: does that mean the middle wear isn't loading? [00:16] unomi has joined the channel [00:17] Carmivore has joined the channel [00:17] Carmivore has joined the channel [00:18] chadskid_ has joined the channel [00:20] sdwrage has joined the channel [00:21] Karmaon has joined the channel [00:22] mikeal has joined the channel [00:22] Swizec has joined the channel [00:24] prettyrobots has joined the channel [00:24] dilvie has joined the channel [00:24] replore_ has joined the channel [00:24] replore has joined the channel [00:25] chilts: blueadept: did you do the veryauth.twitter.(etc) stanza to set those routes up? [00:25] takumination has joined the channel [00:25] rburhum has joined the channel [00:25] chilts: also, did you do : app.use( everyauth.middleware() ); [00:27] dwhittle has joined the channel [00:29] pixel13 has joined the channel [00:31] pauls1_ has joined the channel [00:31] mattgifford has joined the channel [00:32] copygirl has left the channel [00:35] bLiNdRaGe has joined the channel [00:35] qsldjqk has joined the channel [00:35] [[zz]] has joined the channel [00:35] bLiNdRaGe: new weird error. so my site works fine, the blog also if i go to /blog/page/1 where my express routes /blog/page/:pagenum [00:35] bLiNdRaGe: i have /blog which calls res.redirect('/blog/page/1') which crashes [00:35] blueadept: yeah doing app.use [00:36] blueadept: infact i think i have everything setup correctly, but now none of my routes are working [00:36] ryan_stevens has joined the channel [00:36] blueadept: not even '/' [00:36] blueadept: i should probably use specifiy the route in .twitter [00:37] bLiNdRaGe: http://fpaste.org/bScS/ [00:37] bLiNdRaGe: that's what happens when i direct to /blog [00:37] disappea_ has joined the channel [00:39] bLiNdRaGe: even weirder, it worked, worked, failed and dumped [00:40] shadowshell has joined the channel [00:45] CIA-101: node: 03Ben Noordhuis 07master * r03cb903 10/ (src/node.cc src/node_isolate.cc): [00:45] CIA-101: node: isolates: remove references to uv_thread_self() [00:45] CIA-101: node: uv_thread_self() is difficult to implement on Windows in a way where the return [00:45] CIA-101: node: value is valid across threads. It's already been removed from upstream libuv. - http://git.io/uXK6dA [00:45] upstream has left the channel [00:45] aslant has joined the channel [00:47] jhbot: 'Can I inject globals into a Node module before it's loaded?' by Joe White http://stackoverflow.com/q/8874721 (tags: unit-testing, knockoutjs) [00:48] Stephen has joined the channel [00:49] indexzero has joined the channel [00:53] mrchess has joined the channel [00:53] pixel13 has left the channel [00:54] k1ttty has joined the channel [00:56] jimt has joined the channel [00:56] avalanche123 has joined the channel [00:57] qsobad has joined the channel [01:00] subhaze has joined the channel [01:01] qsobad has joined the channel [01:01] jimt has joined the channel [01:01] panterax has joined the channel [01:02] ap3mantus has joined the channel [01:02] postwait has joined the channel [01:03] mikeal has joined the channel [01:04] sdwrage has joined the channel [01:04] secoif has joined the channel [01:05] sharkbird has joined the channel [01:05] panterax has joined the channel [01:05] simoon has left the channel [01:07] torvalamo: when a new process is started (not necessarily node, just a random minimal c app) does the executable machine code get duplicated in memory for every instance, or does it refer to the same code block? [01:07] tonymilne has joined the channel [01:08] misza222 has joined the channel [01:08] torvalamo: as in, you have lots of these processes [01:09] torvalamo: anyone know? [01:09] davidbanham has joined the channel [01:09] context: torvalamo: pretty sure each one uses its own. [01:09] context: shared libraries though work differently [01:10] context: but i could be wrong [01:11] neoesque has joined the channel [01:11] torvalamo: so there's no need for an operating system then? :P [01:11] torvalamo: wtf is it doing? smoking weed? [01:11] garrensmith has joined the channel [01:13] ioparadigm has joined the channel [01:15] cjm has joined the channel [01:15] ramitos has joined the channel [01:16] ryanfitz has joined the channel [01:16] bnoordhuis: torvalamo: depends on the os and the binary, linux mostly shares the code sections if they're marked read-only [01:16] TN has joined the channel [01:17] torvalamo: what do you mean read only? the machine code in memory isn't going to change randomly? [01:18] bnoordhuis: torvalamo: it could, some programs are self-modifying [01:18] torvalamo: oh right [01:18] torvalamo: erlang style? [01:18] torvalamo: :p [01:19] yhahn has joined the channel [01:19] noobie25 has joined the channel [01:19] torvalamo: is it marked read only by default or what? [01:19] bnoordhuis: yes [01:19] torvalamo: coolio [01:19] torvalamo: thx [01:19] bnoordhuis: np [01:19] sdwrage has joined the channel [01:20] infynyxx has joined the channel [01:20] torvalamo: any keywords i can google for? [01:20] bnoordhuis: uhm... "linux kernel source"? [01:20] torvalamo: no thanks :P [01:20] bnoordhuis: oh, i should mention that it's less effective for dynamically linked programs [01:20] bnoordhuis: i.e. most of them [01:21] torvalamo: this is just a plain standalone c app with less than 100 lines of code [01:21] bnoordhuis: okay, the thing is the dynamic linker does relocation at run-time [01:22] bnoordhuis: every memory page that contains something that's relocated will become a cow'd [01:22] bnoordhuis: *eh, gets cow'd [01:23] konobi: bnoordhuis: i worked out the magic scons incantation to get node building on armv5te properly [01:23] bnoordhuis: konobi: yeah? [01:23] pizthewiz has joined the channel [01:24] konobi: bnoordhuis: v8_cmd in wscript... add ` arch += ' armeabi=soft' ` if on armv5te [01:25] bnoordhuis: konobi: have you been following #2131? :) [01:25] konobi: lemme check [01:26] kenperkins has joined the channel [01:27] konobi: ah [01:27] konobi: bnoordhuis: isaacs has access to my armv5te device if we want to make some flag for it or what not [01:28] bnoordhuis: konobi: i don't think there's a good way to support arm, every arm board is different [01:28] bnoordhuis: so those sheevaplugs don't have a fpu [01:28] bnoordhuis: but my home router, also an armv5te, does [01:28] konobi: yup... though v8 supports it [01:29] konobi: cat /proc/cpuinfo should give you enough to work it out on linux though [01:29] bnoordhuis: hmm, maybe - there's the still the issue of fp calling conventions, hardfp vs. softfp [01:30] konobi: yeah, that's all in the v8 SConstruct though [01:30] mike5w3c has joined the channel [01:31] bnoordhuis: konobi: if you can fix it up into something that works reliably, i'll merge it [01:31] bnoordhuis: it'd have to be a patch against master (and the gyp build system) though [01:31] konobi: kk, i'll have a think [01:31] Temsa has joined the channel [01:31] disappea_: Hey in js how do you do { myvar.myattribute : something? } without causing a syntax error? [01:32] astropirate: disappea_, { name: value} [01:32] konobi: obj[ var.attr] = foo; [01:32] astropirate: name can be in qotes if it contains illigal variable name chars [01:32] astropirate: { "name---fooo.bar": 12321} [01:34] jesusabdullah: also, { "Jenny's Phone Number": 8675309 } [01:36] briandh has joined the channel [01:36] Registered has joined the channel [01:36] abraxas has joined the channel [01:36] brian_ has joined the channel [01:36] captain_morgan has joined the channel [01:37] QaDeS has joined the channel [01:37] jakehow has joined the channel [01:38] cjm has joined the channel [01:40] captain__ has joined the channel [01:41] captai___ has joined the channel [01:42] Juan77 has joined the channel [01:42] torm3nt has joined the channel [01:43] clutchski has joined the channel [01:44] michaelhartau has joined the channel [01:47] dodo has joined the channel [01:49] brianseeders has joined the channel [01:49] misza222: hi guys, im using node 0.6.7 and socket.io 0.8.7 [01:50] jesusabdullah: congrats ;) [01:50] misza222: are these 2 compatibile? [01:50] context: thats awesome [01:50] pbraden has joined the channel [01:50] context: you could check the package.json file [01:50] context: it tells you [01:50] jesusabdullah: misza222: If it's incompatible it won't even install without a --force [01:50] context: also, what jesusabdullah said ;) [01:51] misza222: ok, thanks jesusabdullah [01:51] pbraden: does anyone here have experience debugging C++ node extensions? [01:52] jxie has joined the channel [01:52] icewhite has joined the channel [01:53] ger^kallisti has joined the channel [01:54] cjm has joined the channel [01:54] jxie has joined the channel [01:55] jamescarr has joined the channel [01:59] nerdfiles1 has joined the channel [02:00] deepm has joined the channel [02:00] nerdfiles1 has left the channel [02:01] deepm: I'm trying to send a variable named socket_id to a client.js file included in my view [02:01] deepm: I am useind express ann expose [02:02] deepm: but I still can't figure out how to do that [02:02] deepm: can anybody help ? [02:02] azeroth_ has joined the channel [02:03] a_suenami has joined the channel [02:04] shanez has joined the channel [02:06] percent20 has joined the channel [02:10] Registered: pbraden: a bit [02:11] Registered: wondering if there's a way to emit events from the async function ( in a native module) [02:11] pbraden: I have an issue where my extension compiles, but the nodemodule is unimportable - I wanted to know if there was a way to get some debug on why [02:11] astropirate: I just realized I'm too good for node, i'm going back to VB.NET [02:11] enmand has joined the channel [02:12] Registered: pbraden: what platform ? [02:12] pbraden: os x [02:12] pbraden: same happens on linux [02:13] Registered: been doing it on Windows - msvc ... [02:14] Registered: you should be able to place a breakpoint in your entry function [02:14] Registered: to see where it crashes [02:14] pbraden: entry to what? [02:15] Registered: entry to the module [02:15] Registered: NODE_MODULE(modulename, ModuleEntryFunction); [02:15] Registered: your module needs to be modulename.node ( where modulename is what you want) [02:15] Emmanuel has joined the channel [02:16] Registered: and ModuleEntryFunction is your entry function [02:16] pbraden: where is that declaration? [02:16] pbraden: is that a c++ macro? [02:16] Registered: yeah - it should be in your module... [02:17] lz has joined the channel [02:17] Registered: this is the best module example I've seen [02:17] Registered: take a look here - https://github.com/kkaefer/node-cpp-modules [02:17] pbraden: thx [02:18] sdwrage has joined the channel [02:18] andrewfff has joined the channel [02:19] kenperkins has joined the channel [02:20] Drigo has joined the channel [02:20] k1ttty has joined the channel [02:21] deepm: can anybody explain how express-expose module works ? [02:21] Drigo: nodejs is secure? o.O [02:22] reenignEesreveR- has joined the channel [02:22] torvalamo: it's secure as long as you don't make it insecure [02:22] Shaunzie has joined the channel [02:23] Drigo: :D [02:23] kenperkins: does anyone know why debug messages go to stderr ? [02:24] torvalamo: because that's what they're supposed to? [02:24] Drigo: torvalamo nodejs run in windows? [02:24] pquerna: working as intended [02:25] kenperkins: supposed to because that's the linux convention? or because it was a concious decision by the nodejs guys [02:25] torvalamo: you can just wrap it though console.debug = function() {return console.log(arguments)} [02:25] teadict: okey, let's see what the fuss about Backbone is all about [02:25] torvalamo: or fuck me [02:25] torvalamo: console.debug = console.log [02:25] torvalamo: i'm stupid [02:25] torvalamo: innit [02:25] torvalamo: :P [02:25] bnoordhuis: kenperkins: both [02:26] kenperkins: i'm just unfamiliar with it that's all, was trying to figure out why winston (npm module) had forced logging level debug to stderr [02:27] Shaunzie has left the channel [02:27] meso has joined the channel [02:27] Drigo has left the channel [02:28] kenperkins: and given that you'd typically have debug info be the most verbose it's wierd that levels 0 and 4 would go to stderr, and 1,2 and 3 would goto stdout (where 0 is debug, verbose, info, warn and error respectively) [02:28] mike5w3c has joined the channel [02:29] bnoordhuis: Registered: https://github.com/bnoordhuis/node-event-emitter [02:31] mikeal has joined the channel [02:31] Registered: bnoordhuis: Thanks, I'm wondering if its possible from an async thread... [02:31] Registered: something like [02:32] bnoordhuis: Registered: you can with a little effort, wake up the main thread with uv_async_send [02:32] thepatr1ck has joined the channel [02:32] tomlion has joined the channel [02:32] bnoordhuis: Registered: but never ever call into v8 from another thread, bad things will happen [02:32] jldbasa has joined the channel [02:32] Registered: bnoordhuis: exactly ... [02:33] Registered: I was wondering if there was already a clean way of [02:33] Registered: .... int status = uv_queue_work(uv_default_loop(), &baton->request, AsyncWork, AsyncAfter); .... [02:33] Registered: and then emitting from the AsyncWork function ... [02:33] bnoordhuis: Registered: no, only from AsyncAfter [02:33] Registered: that's what I thought [02:34] Registered: figure i'll break up the task, and wrap it with a .js object [02:34] andrewff1 has joined the channel [02:34] Registered: but in a small test I had a 10% overhead when I did that... [02:35] bnoordhuis: Registered: uv_async_send is the alternative [02:36] Registered: bnoordhuis: thanks, I check it out! [02:36] bnoordhuis: good luck :) [02:36] skm has joined the channel [02:38] ryanfitz has joined the channel [02:39] mateodelnorte has joined the channel [02:40] ben_alman has joined the channel [02:40] teadict: this backbone shit makes using extjs a total overhead [02:40] teadict: I like that [02:40] teadict: specially since ExtJS costs thousands [02:42] galaxywatcher has joined the channel [02:43] mattgifford has joined the channel [02:44] pigeon_ has joined the channel [02:46] pigeon_: hey yall, whats the best mysql package for node at the moment? [02:46] teadict: package? [02:46] pigeon_: module* [02:46] teadict: I mean.. to use mysql in node? node-mysql [02:46] teadict: best ORM is Sequelizejs.com [02:46] teadict: best ORM is http://Sequelizejs.com [02:48] percent20 has left the channel [02:49] mike5w3c has joined the channel [02:49] ovnicraft has joined the channel [02:49] pigeon_: coming from a php/mysql background, will sequelize feel familiar or will i need to invest some time really learning nt [02:49] pigeon_: learning it* [02:50] teadict: it's the best documented out there, so no [02:50] teadict: complex JOINs are on you though, I don't think it supports them [02:51] teadict: but I don't think others do either so ): [02:51] michaelhartau has joined the channel [02:53] pigeon_: i've just been toying with node.js to make a websocket server, being able to tie my server to my mysql database would be huge plus over flat files [02:55] teadict: Backbone question if someone's using it: apparently you kill stuff using Model.destroy(), which does a HTTP DELETE.. that means I can use Express's RESTful routes to receive this DELETE and all be happy and nice, right? [02:55] teadict: pigeon_: use Sequelize if you generally use ORMs, won't be disappointed [02:56] mraleph has joined the channel [02:56] cjm has joined the channel [02:57] ap3mantus has joined the channel [02:58] yhahn: teadict: yes [03:00] teadict: yhahn: sweet [03:02] icewhite has joined the channel [03:02] tokka has joined the channel [03:03] clutchski has joined the channel [03:04] panosru has joined the channel [03:05] panosru: Does anyone used node.js in order to create restfull API and interact with backbone.js? while my API works fine when I do a call from backbone.js to node.js the result is empty but with php it works... :/ [03:06] sdwrage has joined the channel [03:06] r04r has joined the channel [03:06] r04r has joined the channel [03:07] teadict: panosru: I just asked this: [03:07] teadict: Backbone question if someone's using it: apparently you kill stuff using Model.destroy(), which does a HTTP DELETE.. that means I can use Express's RESTful routes to receive this DELETE and all be happy and nice, right? [03:07] teadict: answer is yes.. should work [03:08] panosru: teadict: I use express in order to create my API, the strange thing is that when I do a call from backbone on "http://example.com:3000/user/24" I get a 200 ok marked as red in firebug and the response is just empty [03:09] panosru: teadict: you can see it here: http://o7.no/s7GRyh [03:09] khrome has joined the channel [03:09] panosru: and these are the headers: http://o7.no/s7GRyh seems to be ok... I don't know if I miss something but with php it works fine, I'm just trying node.js [03:10] teadict: same link twice [03:10] teadict: I forgot what a red 200 get means in Firebug [03:10] panosru: ? what do you mean by that? two screenshots, one for headers tab one for response tab url is same ofcourse [03:11] r04r has joined the channel [03:11] panosru: teadict: http://stackoverflow.com/questions/2219274/ajax-problem-200-ok-in-firebug-but-red-message-with-no-response-body [03:11] jamescarr has joined the channel [03:12] panosru: x-domain issue? oO is that possible? [03:12] Kunda has joined the channel [03:13] teadict: are you doing cross domain calls? [03:13] panosru: I'm on http://app-ui.design.rnd and I call http://app-ui.design.rnd:3000 [03:14] teadict: than no [03:14] teadict: gets me, I dunno [03:14] sdwrage has joined the channel [03:15] panosru: different port means cross domain [03:15] teadict: wat, does? [03:15] teadict: TIL [03:15] joshfinnie has joined the channel [03:15] Aria: Cross-origin, technically [03:15] mansoor has joined the channel [03:15] teadict: then use JSONP [03:15] panosru: but I use jsonp with express [03:16] panosru: app.enable('jsonp callback'); [03:16] r04r has joined the channel [03:17] clutchski has joined the channel [03:18] peregrine81 has joined the channel [03:18] teadict: is the call geting alright to the server side for that url? [03:19] teadict: maybe it has to do with url mapping [03:20] panosru: http-console indicates that the API works fine http://o7.no/udTt8Y [03:20] r04r has joined the channel [03:20] r04r has joined the channel [03:21] teadict: lawl [03:22] teadict: does the response get to the client? maybe firebug is being stupid [03:22] teadict: what does Chrome's tool say? [03:22] panosru: hmm didn't checked that out! I will try to see if the Model is created in Backbone [03:24] SteveDekorte has joined the channel [03:25] r04r has joined the channel [03:26] panosru: teadict: same thing in chrome and safari and in firefox I tried to console.log if the model exist but it isn't [03:27] teadict: panosru: ran out of ideas, would ask you to paste code, but off to bed, good luck [03:27] panosru: good night mate :) [03:28] jaequery has joined the channel [03:29] rwaldron has joined the channel [03:29] agnat_ has joined the channel [03:29] shanebo has joined the channel [03:30] r04r has joined the channel [03:33] tomlion has joined the channel [03:34] draginx has joined the channel [03:34] draginx: Is there a way to make a node.js webapp that asks for my login/pass thats tied to my machine's username/pass? (in *nix?) [03:34] Aria: Yes. [03:35] Aria: You can bind to PAM, or you can call out to a chkpasswd program. [03:35] draginx: What kind of a google search would I do to get more info? [03:35] draginx: hmm [03:35] r04r has joined the channel [03:35] r04r has joined the channel [03:36] Aria: Or you can authenticate against another daemon that itself talks to PAM modules. [03:36] Aria: (like saslauthd, which is purpose-built for this, or against an imapd, or a RADIUS daemon) [03:36] Aria: The separate daemon approach fits in well with node. [03:37] draginx: will check out saslauthd :) [03:38] starspirit has joined the channel [03:39] r04r has joined the channel [03:39] r04r has joined the channel [03:39] sh1mmer has joined the channel [03:40] Aria: cyrus-sasl is what provides it [03:42] amigojapan has joined the channel [03:42] galaxywatcher_ has joined the channel [03:43] strevat_ has joined the channel [03:43] yhahn has joined the channel [03:44] jobject has joined the channel [03:46] MUILTR has joined the channel [03:49] teadict: Aria: http://tinyurl.com/7h9fqyt [03:49] teadict: actually... it never occured to me that could be done [03:49] Aria: ACTION chortles. [03:50] teadict: doesn't sound safe though [03:50] Aria: Which? [03:50] teadict: binding app's users to OS's [03:50] panosru: teadict I fixed it! [03:50] teadict: but who cares? HAHAHA [03:50] panosru: it was x-domain issue indeed [03:51] teadict: panosru: yes? what happened? [03:51] teadict: but you were on JSONP [03:51] teadict: weren't you? [03:51] panosru: teadict: http://o7.no/vunVUu [03:51] panosru: yes but still I didn't had Access-Control-Allow-Origin [03:51] teadict: ahh [03:51] teadict: great [03:51] panosru: so COS preventing backbone model to sync [03:51] panosru: :D [03:51] panosru: haha [03:52] panosru: I tend to love node.js [03:52] panosru: but I have a question, can I replace for instance php with node.js? [03:52] devaholic has joined the channel [03:52] teadict: of course... php is just a preprocessor [03:53] panosru: yes [03:53] teadict: you can replace php with anything, technically [03:53] panosru: but practically you can't replace it [03:53] panosru: I mean.. if you need to use gd lib for example or other stuff [03:53] maletor has joined the channel [03:54] teadict: if you need to do stuff with something that's not supported by node yet, you can always call a script that does it for you in another language [03:54] panosru: teadict: yeap that's the point, use each tool for it's best purpose :) [03:54] teadict: from node [03:54] Vennril2 has joined the channel [03:54] teadict: yeah [03:55] panosru: I replaced already php on web services, for instance I use Axis2 for web-services since php is not strong enough on this part but now that I'm doing R&D on node I'm wondering how it can compete axis2 on restful web-services [03:56] panosru: as I see node.js does not yet support SOAP [03:56] devongovett has joined the channel [03:57] clutchski has joined the channel [03:57] panosru: if I start all my questions I will get banned from the channel so I will keep searching for amqp, erlang and etc :D [03:57] panosru: I want to apply DDD/CQRS/ES with node :) [03:57] teadict: php CAN'T be strong on anything distributed or concurrent [03:57] teadict: by design, it can't [03:58] teadict: no, node.js doesn't support SOPA and never will [04:00] caludio has joined the channel [04:00] jamescarr has joined the channel [04:00] sh1mmer: panosru: there are a couple of SOAP module on Github [04:01] sh1mmer: although I don't know about completeness [04:02] teadict: nobody saw what I did there ): [04:02] clutchski has joined the channel [04:02] panosru: :D [04:02] panosru: yeah I saw them [04:02] panosru: but in any case currently axis2 works fine with SOAP/REST for me [04:02] panosru: what I will do is I will create same rest API on axis2 for a project I have and for node.js [04:03] sh1mmer: It's a performance question, often [04:03] panosru: and I will use node.js as main to see it's performance and if something goes wrong I will fall back to axis2 which is tested [04:03] sh1mmer: seems like a reasonable approach [04:04] panosru: it will increase the development time but if you do R&D it happens quite a lot :P [04:04] jhbot: 'After upgrading to node.js 0.6.7, I have errors saying that my modules cannot be found?' by TIMEX http://stackoverflow.com/q/8875649 (tags: javascript) [04:04] bradleymeck has joined the channel [04:04] davidbanham has joined the channel [04:05] draginx: teadict: would htpasswd be better? [04:06] panosru: draginx: I bet he is already sleeping :D [04:06] xeodox has joined the channel [04:06] monteslu has joined the channel [04:06] draginx: o [04:10] yhahn has left the channel [04:11] dr0id has joined the channel [04:11] kenperkins has joined the channel [04:12] methodT has left the channel [04:12] xeodox: Does anyone know why after upgrading node.js from 5.0 to 6.7, node seems to not find my modules's modules (eg. "now" module cannot find "socket.io") [04:13] mikeal has joined the channel [04:14] methodT has joined the channel [04:14] Aria has joined the channel [04:15] methodT has left the channel [04:15] methodT has joined the channel [04:15] r04r has joined the channel [04:16] torsd has joined the channel [04:16] warz has joined the channel [04:16] warz has joined the channel [04:18] maletor has joined the channel [04:19] xeodox: Does anyone know why after upgrading node.js from 5.0 to 6.7, node seems to not find my modules's modules (eg. "now" module cannot find "socket.io") [04:20] sdwrage has joined the channel [04:20] p1d_ has joined the channel [04:23] maletor_ has joined the channel [04:23] Success has joined the channel [04:23] warz: i don't know the technicalities, but i believe right around then that module lookup did change or something. i think the recommended way of doing modules is to install them local to your apps. [04:23] Success: I made SON on github, Server of Node :) [04:23] gregmoreno has joined the channel [04:23] warz: xeodox, but please, reference "npm faq" about this, because i don't know the technicalities [04:24] warz: i only know that it did changw [04:24] materialdesigner has joined the channel [04:24] Success: im pro like that, nothing to be proud of node js server is very easy i think [04:24] gavin_huang has joined the channel [04:24] Success: i also made nodi a node js irc bot ( alpha ) [04:25] Success: your proud right? [04:25] warz: sure. [04:27] sdwrage has joined the channel [04:28] xeodox: warz: yes, i do install them local on the app [04:28] davehamptonusa has joined the channel [04:29] warz: i actually don't even install mine local to my app. they're just somewhere on the same directory path. i run npm install in my directory path, but it puts them higher up. heh. [04:29] davehamptonusa has left the channel [04:30] xeodox: yes [04:30] cjm has joined the channel [04:31] Registered has joined the channel [04:32] lwille has joined the channel [04:33] tommyvyo has joined the channel [04:33] zemm has joined the channel [04:36] a_meteorite has joined the channel [04:36] cody--: anyone host on heroku and have seen this error: " Error: Cannot find module 'request'" [04:37] jhbot: 'Socket.io socket handles' by Phil M http://stackoverflow.com/q/8875797 (tags: javascript, socket.io) [04:45] joshkehn has joined the channel [04:45] joshkehn has left the channel [04:47] counterbeing has joined the channel [04:47] ryan_stevens has joined the channel [04:48] raingrove has joined the channel [04:48] raingrove has joined the channel [04:49] raingrove: has anyone tried embedding node.js in a cocoa/objc or .net/c# app? [04:50] Lingerance: Why would you? [04:50] cmr: How would you? [04:50] Lingerance: You'd either embed v8 or port libuv. [04:50] raingrove: run as a subprocess and communicate with pipes or something [04:50] Registered: embed node, or v8 ? [04:50] raingrove: i'd like to have node standard lib too [04:51] Lingerance: Then what's the point? [04:51] Lingerance: Just use nodejs itself [04:51] warz has joined the channel [04:51] warz has joined the channel [04:51] raingrove: cocoa/objc and .net/c# will provide the gui [04:52] Lingerance: I'd just make them interact with it over TCP. [04:52] michaelhartau has joined the channel [04:52] Lingerance: Making them one thing will just be an ugly mess. [04:53] willwhite has joined the channel [04:56] jxie has joined the channel [04:56] ryanfitz has joined the channel [04:58] munichlinux has joined the channel [04:59] thirdknife has joined the channel [04:59] raingrove has joined the channel [04:59] raingrove has joined the channel [05:01] OmidRaha has joined the channel [05:01] doitian has joined the channel [05:02] rwaldron has joined the channel [05:09] MUILTR has joined the channel [05:10] tomgallacher_ has joined the channel [05:10] gregmoreno has joined the channel [05:12] jxie has joined the channel [05:15] dexter_e has joined the channel [05:17] starspirit has left the channel [05:17] yumike has joined the channel [05:20] bacon000 has joined the channel [05:22] chakrit has joined the channel [05:22] chjj has joined the channel [05:23] michaelhartau has joined the channel [05:24] ec has joined the channel [05:30] confoocious has joined the channel [05:30] gregpascale has joined the channel [05:32] gregmoreno has joined the channel [05:34] kikwi has joined the channel [05:34] tommyvyo has joined the channel [05:36] xeodox: I just upgraded to Node.js 0.6.7…is it normal that many modules don't work? (like query, express-expose, emailjs, contextify…)? [05:36] cmr: xeodox: upgraded from what? [05:36] xeodox: cmr: I was using 5.0 [05:36] Registered has joined the channel [05:36] xeodox: And then when I upgraded to 6.7, I npm install everything again. a lot of modules fail to install [05:36] HT has joined the channel [05:37] avalanche123 has joined the channel [05:38] cmr: xeodox: Hmm, I know that upgrades from 0.4.x will cause problems but I don't know enough about 0.5 to know for sure [05:38] jhbot: 'Serving a client side a component for my node module with a special file path' by Robert Hurst http://stackoverflow.com/q/8876142 [05:39] xeodox: cmr: some just fail to install, which is weird [05:39] jamescarr has joined the channel [05:39] cmr: xeodox: do you know where they are failing to install or why? [05:39] cmr: Which module and version, I'll test locally [05:40] xeodox: most are: npm ERR! Failed at the contextify@0.1.0 preinstall script. [05:40] bacon000: buffertools won't work for me. [05:40] jergason has joined the channel [05:40] bacon000: prereq for emailjs [05:40] xeodox: bacon000: emailjs doesn't work for me either…for 0.6.7 [05:41] xeodox: what should we do? [05:41] maletor has joined the channel [05:41] bacon000: *scratches head* [05:41] cmr: Nope, contextify@0.1.0 works fine here. [05:41] cmr: On 0.6.7 [05:41] cmr: xeodox: OS? [05:41] xeodox: cmr: ubuntu oneric [05:42] xeodox: cmr: does emailjs work for you on 6.7? [05:42] cmr: xeodox: Please don't omit the leading 0, it is important! [05:42] baudehlo1 has joined the channel [05:42] cmr: xeodox: which versino of emailjs? [05:42] xeodox: oh ok [05:42] jhbot: 'Node.js: Client-Side Templating v/s Server-Side Templating' by the_archer http://stackoverflow.com/q/8876168 (tags: javascript, jquery, template-engine) [05:43] xeodox: cmr: i just did: 'npm install emailjs', and it fails on the buffertools preinstall script [05:43] xeodox: npm ERR! error installing buffertools@1.0.6 [05:43] xeodox: npm ERR! error installing emailjs@0.2.1 [05:43] xeodox: npm ERR! buffertools@1.0.6 preinstall: `./build-wrapper` [05:43] cmr: Hm [05:43] cmr: xeodox: do you have build-essential installed? [05:43] cmr: (works fine here) [05:43] xeodox: yes [05:43] eventualbuddha has joined the channel [05:43] c4milo has joined the channel [05:43] briandh has joined the channel [05:43] cmr: xeodox: did you install from source? [05:44] xeodox: i installed node.js from source, yea [05:44] dwhittle has joined the channel [05:44] xeodox: and npm from source too [05:44] CrawfordComeaux: I found that clearing my module cache resolved a bunch of odd install issues I was having [05:45] stonebranch has joined the channel [05:45] xeodox: CrawfordComeaux: how do I remove the cache? [05:45] CrawfordComeaux: sorry...that's probably bad lingo. what I did was remove some globally installed modules [05:46] xeodox: i don't' have any global modules, it's a fresh install on latest ubuntu [05:47] bacon000: Windows, here. [05:47] stalled has joined the channel [05:48] cmr: bacon000: how did you install node? [05:49] bacon000: from the installer on nodejs.org [05:49] bacon000: not from source. [05:49] michaelhartau has joined the channel [05:49] mikeal has joined the channel [05:50] bacon000: building from source wasn't working for me, due to some kind of certificate problem. i took a break from figuring it out. [05:50] cmr: bacon000: Makes sense, since you need a toolchain to compile buffertools [05:51] xeodox: cmr: what npm version do you have? [05:51] bacon000: ah, i see. i just did "node install emailjs" to see if i could reproduce xeodox's issue. still too much of a Node noob to know what' sgoing on. [05:51] cmr: xeodox: 0.6.7 [05:51] cmr: Oh, npm [05:51] ePirat has joined the channel [05:51] cmr: 1.1.0-beta-10 [05:51] xeodox: npm@1.1.0 /usr/local/lib/node_modules/npm [05:51] xeodox: hmm [05:51] cmr: xeodox: use npm --version [05:51] xeodox: 1.1.0 [05:52] tokka has joined the channel [05:53] xeodox: Could it be the npm problem? [05:53] xeodox: cmr: i got a reply from the emailjs author "Works for me. What happens if you try executing `node-waf` at the bash prompt?" [05:53] xeodox: whats node-waf? [05:54] cmr: It's a build tool. [05:54] panosru_ has joined the channel [05:54] xeodox: I don't think I installed that [05:54] cmr: xeodox: I'm assuming he means from the source tree of emailjs [05:54] cmr: You installed it with node [05:55] xeodox: when I run node-waf it says it's not installed [05:55] cmr: xeodox: how did you install node? [05:55] xeodox: git clone __ ; ./configure ; make ; sudo make install; [05:56] cmr: mm [05:56] cmr: xeodox: You didn't "git checkout v0.6.7" first? [05:56] stonebranch has joined the channel [05:57] mjijackson has joined the channel [05:57] xeodox: no i didn't [05:57] xeodox: hmmm that's probably why!! [05:57] cmr: Uninstall node and rebuild after that checkout [05:57] draginx has left the channel [05:57] xeodox: how do I check my current version? (n is not installing right now) [05:57] cmr: node --version [05:57] cmr: But that doesn't show dev versions [05:58] mjijackson: good evening #node.js! [05:58] xeodox: $ node --version v0.7.0-pre [05:58] xeodox: wow!! [05:58] cmr: Yeah [05:58] cmr: xeodox: (git show from the source tree will tell you the current commit as well as the associated notes and diff) [05:59] xeodox: ahhh [05:59] xeodox: thanks cmr! i'm going to try this. [06:00] deoxxa: wow, coffeescript is pretty ew [06:00] xeodox: now I gotta make it again…damn it'll take forever on my micro server :D [06:00] cmr: xeodox: Compile elsewhere and bring in the binary [06:01] cmr: Either cross compile or setup an identical environment [06:01] cmr: xeodox: fwiw, the guide at https://github.com/joyent/node/wiki/Installation tells you how to properly compile from git [06:01] cmr: Wrote by yours truly ;) [06:01] torsd has joined the channel [06:01] cmr: deoxxa++ [06:01] catb0t: deoxxa now has 1 beer [06:01] xeodox: thanks :) [06:01] bradleymeck has joined the channel [06:02] deoxxa: i'd never actually had to do anything in coffee before [06:02] xeodox: cmr: you wrote this ? [06:02] deoxxa: but yeah, :( [06:02] cmr: xeodox: Just the bit about git [06:02] deoxxa: i just wonder: why do they hate programming [06:02] deoxxa: how exactly is "isnt" better than "!==" [06:02] xeodox: cool haha [06:03] ryanfitz has joined the channel [06:03] mraleph has joined the channel [06:04] cmr: deoxxa: I don't mind it, I'm a python guy primarily, but it is inconsistent with Harmony's definition of "isnt", which is identity (like python's is) [06:04] deoxxa: maybe i'm just disliking it because i kind of got dropped in the middle of some existing code [06:05] deoxxa: but yeah. not loving it at the moment. [06:09] secoif has joined the channel [06:09] newguy has joined the channel [06:10] chrisvwebdev has joined the channel [06:10] chrisvwebdev has left the channel [06:10] michaelhartau has joined the channel [06:11] deoxxa: https://github.com/deoxxa/query-engine.npm/commit/b826c1e14824da000498a9c2a412a4e49219216a [06:12] deoxxa: ACTION showers [06:12] innoying has joined the channel [06:13] josh-k has joined the channel [06:13] mikeal has joined the channel [06:13] newguy: who can tell me that it there any schedule about support android platform?Thx [06:15] deoxxa: newguy: android is linux, node already works on linux. what problems are you facing? [06:16] willwhite has joined the channel [06:17] mike5w3c has joined the channel [06:17] ambroff_ has joined the channel [06:20] ramitos has joined the channel [06:22] chrisvwebdev1 has joined the channel [06:22] chrisvwebdev1 has left the channel [06:24] hij1nx has joined the channel [06:25] newguy has joined the channel [06:26] ndigit has joined the channel [06:27] davetayls has joined the channel [06:33] mikeal has joined the channel [06:34] xeodox: After I run "make" on node.js, can I copy the contents of that folder to another server (so that that server won't need to run make again) [06:34] xeodox: ? [06:34] cmr: Not necessarily [06:34] cmr: xeodox: Are they running the same OS (and version, and updated at the same versions of things) and running the same architecture? [06:35] xeodox: cmr: one is a small ec2 server (32bit ) and the other is a micro 64bit [06:35] zomg: Maybe, but it would probably be less effort to just compile it again unless you actually have some very specific reason to not do it =) [06:35] Registered: xeodox: unlikely [06:35] cmr: xeodox: is the micro multilib? [06:35] xeodox: zomg: micro takes me 45 min [06:35] zomg: Wow [06:35] xeodox: cmr: not sure what that means [06:35] zomg: No wonder they give those out for free [06:35] xeodox: micros aren't free :D [06:35] cmr: xeodox: Then probably not, but worth a shot [06:36] zomg: Wait, was there some even lower tier than micro? [06:36] cmr: No [06:36] Registered: it'll probably take more then 45 min. to figure out why it isn't working :) [06:36] zomg: I thought it was a micro instance they gave out for free for a year or something? [06:36] xeodox: well, micro is "free" for like the first year for one server or whatever [06:36] zomg: Yeah [06:37] zomg: I'm by no means a guru but maybe you could crosscompile to the arch on the micro using the small one? [06:37] cmr: Yes, but setting up a cross compiler if you've never done it before is rough. [06:37] xeodox: I'm a noob- what is "crosscompile"? [06:37] xeodox: haha [06:37] zomg: lol [06:37] kadnare has joined the channel [06:37] Aria: Or statically link it. [06:37] Registered: considering that the libraries are prob. different as well [06:38] Aria: Since linux kernels always can do both, it's the libraries that screw you. [06:38] xeodox: why do I even have to "make" it anyway…why not just have a compiled version online that I can curl? [06:38] zomg: Yeah sounds like you just need to compile it then =) [06:38] cmr: xeodox: It'd have to be statically linked, which is meh. [06:38] Aria: Or first, try it. 32 bit binary may well work on the 64 bit machine. [06:38] zomg: Go out to eat lunch or something [06:38] zomg: If it's 45 min then it's done after that [06:38] zomg: :D [06:38] deoxxa: nek minnit [06:38] Aria: xeodox: Because unix systems vary a lot. [06:39] xeodox: I see i see [06:39] zomg: Remember that xkcd strip [06:39] Registered: exactly, and you can make them in parallel, so its only ~ 20 minutes more, no ? [06:39] deoxxa: just run ./configure && make! nek minnit! [06:39] zomg: http://xkcd.com/303/ [06:39] xeodox: hahahahah [06:39] xeodox: that's hilarous [06:39] jxie has joined the channel [06:41] cmr: xeodox: what is your micro instance running? [06:41] xeodox: cmr: Ubuntu 11.10 Oneiric EBS boot 64bit (micro) [06:41] xeodox: the small one is the same, but 32bit [06:41] cmr: Oh, in that case, definitely try the binary. [06:42] xeodox: you mean, scp it? [06:42] xeodox: lol [06:42] xeodox: scp the folder over to the 64bit [06:42] cmr: Sure, if that's how you transfer files [06:42] RobertWHurst has joined the channel [06:42] xeodox: ok haha [06:42] Emmanuel has left the channel [06:42] xeodox: even on the small it takes 15 min though - node.js is freaking huge [06:43] cmr: It's all of node, and all of v8 [06:43] deoxxa: wut [06:43] deoxxa: node.js compiles pretty fast [06:43] deoxxa: considering what it contains [06:44] deoxxa: try compiling mongodb - then come back and say node.js is huge [06:44] xeodox: i downloaded the binary of mongodb :D [06:44] cmr: I use a source-based distro, so I experience the compile times of everything :) [06:44] deoxxa: is it gentoo [06:44] cmr: 15 minutes isn't much [06:44] deoxxa: (lol) [06:44] cmr: deoxxa: no [06:44] cmr: exherbo [06:45] xeodox: fail! It doesn't work i just copied it over -.- haha [06:45] cmr: xeodox: I think you can use debootstrap to help with the cross compile process, or they might even have one in the repos. [06:46] RobertWHurst: Hello everyone. Can any of you help me out. I'm trying to bind to a url on an existing server the same way socket.io does to send its client side script. The problem is that when I try to bind my own event handler to the request event The handler of the original server tries to write to the header a second time. [06:48] chrisdickinson: RobertWHurst: socket.io unbinds the original `request` event listener from the server and saves it. [06:48] SamuraiJack has joined the channel [06:49] chrisdickinson: (so basically, the server only has one listener -- your app -- and if your app doesn't decide to respond to the request, it can manually call the original listener) [06:49] RobertWHurst: Oh... I get it now, Thanks very much chrisdickinson. [06:49] chrisdickinson: no prob! [06:50] chrisdickinson: RobertWHurst: I think it's happening here, for reference: https://github.com/LearnBoost/socket.io/blob/master/lib/manager.js#L110 [06:50] Me1000 has joined the channel [06:50] amigojapan has joined the channel [06:50] kadnare has left the channel [06:52] p1d has joined the channel [06:52] ditesh|cassini has joined the channel [06:53] RobertWHurst: so I hold on to the request handler so that if the url doesn't match my special path I can call it? [06:53] levi501d has joined the channel [06:54] yolin has joined the channel [06:55] cosmincx has joined the channel [06:56] thirdknife has joined the channel [06:58] xSmurf has joined the channel [06:58] xSmurf has joined the channel [07:00] kmiyashiro has joined the channel [07:00] level09 has joined the channel [07:02] niloy__ has joined the channel [07:03] gregmore_ has joined the channel [07:04] Locke23rus has joined the channel [07:04] Hanspolo has joined the channel [07:04] k1ttty has joined the channel [07:05] SamWhited has joined the channel [07:07] Lartsa_ has left the channel [07:07] stagas has joined the channel [07:08] mikeal has joined the channel [07:09] tomlion has joined the channel [07:10] yawNO has joined the channel [07:10] tokka has joined the channel [07:11] _Blorb has joined the channel [07:12] kuebk has joined the channel [07:13] apoc has joined the channel [07:14] mike5w3c has joined the channel [07:16] vikstrous has joined the channel [07:16] markq has joined the channel [07:17] litropy has joined the channel [07:20] avalanche123 has joined the channel [07:22] tdegrunt has joined the channel [07:23] stonebranch has joined the channel [07:24] robotmay has joined the channel [07:28] kuebk1 has joined the channel [07:35] tokka has joined the channel [07:37] stagas has joined the channel [07:37] slaskis has joined the channel [07:37] Neil has joined the channel [07:41] mikeal has joined the channel [07:41] davidbanham has joined the channel [07:46] OmidRaha has joined the channel [07:47] sgimeno has joined the channel [07:50] groom has joined the channel [07:51] rurufufuss has joined the channel [07:51] rendar has joined the channel [07:53] garrensm_ has joined the channel [07:55] Morkel has joined the channel [07:55] RLa has joined the channel [07:57] emattias has joined the channel [07:58] sqlserverio has joined the channel [07:58] hipsters_ has joined the channel [07:59] fangel has joined the channel [08:01] k1ttty_ has joined the channel [08:01] aliem has joined the channel [08:03] Margle has joined the channel [08:03] mikeal has joined the channel [08:04] ablomen has joined the channel [08:05] sqlserverio: So... I'm sure this has been asked about a million times BUT, is anyone doing serious node dev work on windows and if you are how did you get around the waf issues for some of the modules? [08:06] deoxxa: you don't [08:06] stagas: sqlserverio: you can't use it [08:07] sqlserverio: yay! I guess I'll stick to my ubuntu 10.04 server then. [08:08] emattias_ has joined the channel [08:08] pors has joined the channel [08:09] sqlserverio: I've compiled some of the modules in VS but it is a major PITA. Here is hoping that since node is becoming a first class citizen things will get better. [08:09] k1ttty has joined the channel [08:09] torsd has joined the channel [08:09] uptownben has joined the channel [08:09] ph^ has joined the channel [08:10] stonebranch has joined the channel [08:10] deoxxa: sqlserverio: the current plan is to just avoid compiling as much as possible [08:11] deoxxa: sqlserverio: basically npm will pull down compiled binary blobs as often as it can [08:11] uptownben: Just re-installed npm , now I'm getting this: Error: Cannot find module 'tar' , any ideas? [08:12] sqlserverio: deoxxa: yeah for the windows folks that is probably for the best. [08:12] ryanrolds: Do you have all your dependencies in package.json? [08:13] `3rdEden has joined the channel [08:13] baudehlo has joined the channel [08:14] rijjo has joined the channel [08:14] cmr: ryanrolds: Yes [08:14] mattgifford has joined the channel [08:16] ap3mantus has joined the channel [08:16] TooTallNate has joined the channel [08:17] carnau has joined the channel [08:17] djcoin has joined the channel [08:19] carnau: Is there any way to start a js with forever passing the user that should start the process as argument? I don't want to run it as root. [08:19] raphdg has joined the channel [08:20] chillfactor_ has joined the channel [08:20] garrensmith has joined the channel [08:22] kmiyashiro has joined the channel [08:23] tdegrunt has joined the channel [08:25] [AD]Turbo has joined the channel [08:25] chakrit has joined the channel [08:25] [AD]Turbo: hola [08:25] aesptux has joined the channel [08:28] burningdog has joined the channel [08:29] dephex has joined the channel [08:29] robhawkes has joined the channel [08:30] avalanche123 has joined the channel [08:32] txdv has joined the channel [08:32] niloy__ has joined the channel [08:32] yolin has joined the channel [08:33] uptownben: Can anyone point me in the right direction regarding that "Error: Cannot find module 'tar'" issue with npm? [08:34] johnhamelink has joined the channel [08:34] uptownben: can't npm update [08:34] uptownben: -g [08:35] descipher_ has joined the channel [08:37] AD7six has joined the channel [08:37] cmr: uptownben: works here :\ [08:37] rurufufuss has joined the channel [08:38] uptownben: Yeah, everything was fine until I updated npm and node [08:38] uptownben: I'm on node 0.6.7 and npm 1.1.0 [08:38] uptownben: any attempt to npm update -g just spits out the "Error: Cannot find module 'tar'" [08:39] hackband has joined the channel [08:39] cmr: uptownben: Are you sure it's not 1.1.0-beta-10? [08:40] uptownben: I know it WAS 1.1.0-beta-10, I re-installed npm via curl, and now its 1.1.0 [08:40] Shrink has joined the channel [08:40] Shrink has joined the channel [08:41] whitman has joined the channel [08:42] jxie has joined the channel [08:42] cmr: Ah [08:42] dexter_e has joined the channel [08:42] tonymilne has joined the channel [08:42] beevits has joined the channel [08:42] reenignEesreveR- has joined the channel [08:42] beeevits has joined the channel [08:43] uptownben: how can re-build npm's utils , etc? [08:43] uptownben: *I [08:44] uptownben: or should I just attempt to uninstall it and reinstall [08:44] aliem_ has joined the channel [08:44] sotosof has joined the channel [08:44] sergiosanche has joined the channel [08:44] sergiosanche: Hi all [08:45] sergiosanche: Can you tell me some manual to learn node.js, please? [08:46] cmr: sergiosanche: There isn't one [08:46] Lingerance: Just use the API docs. [08:47] neshaug has joined the channel [08:48] OmidRaha has joined the channel [08:48] RobertWHurst: sergiosanche you could try http://www.nodebeginner.org/ [08:49] andrewfff has joined the channel [08:49] Druide_ has joined the channel [08:50] OmidRaha has joined the channel [08:50] AvianFlu has joined the channel [08:51] OmidRaha1 has joined the channel [08:51] uptownben: so I just reinstalled NPM again, via curl, and when I do an npm update -g, I get "npm ERR! error installing tar@0.1.12" [08:52] OmidRaha2 has joined the channel [08:52] zomg: uptownben: sudo? [08:52] chjj: uptownben: not sure, but im curious, do you use node-tar for something? [08:53] chjj: just wondering how stable it is right now [08:53] ndigit has joined the channel [08:53] salva has joined the channel [08:54] uptownben: this is a test machine, I'm logged in as root [08:54] uptownben: I don't use node-tar for anything [08:54] chjj: oh [08:54] cmr: npm uses it now instead of relying on system tar. [08:54] chjj: oh wow, isaacs put it into production? [08:54] chjj: cool [08:54] cmr: (iirc) [08:55] cmr: If he hasn't yet, he will be. [08:55] EvRide has joined the channel [08:55] tytsim has joined the channel [08:55] uptownben: I am just doing a npm update -g , after installing npm via curl and thats' what I get [08:55] cmr: uptownben: Why are you installing npm via curl instead of using the one bundled with node? [08:55] cmr: uptownben: Does it report any more information about the error? [08:56] disappearedng has joined the channel [08:56] uptownben: first it says error installing tar@0.1.12 [08:56] uptownben: then.. [08:56] uptownben: npm ERR! Error: ENOENT, no such file or directory '/usr/local/lib/node_modules/npm/node_modules/tar/package.json' [08:57] cmr: uptownben: Does that file exist? [08:57] uptownben: no, it doesn't [08:58] uptownben: the tar dir doesn't exist [08:58] uptownben: is there a bug in npm install? [08:58] tomlion has joined the channel [08:58] cmr: Hm, I don't know. [08:59] cmr: File an issue on github (or wait until isaacs comes on) [08:59] uptownben: when I do the npm update -g (after installing via curl) it runs through a list of http gets, and errors out after this: npm http GET https://registry.npmjs.org/tar/0.1.12 [08:59] uptownben: npm http 304 https://registry.npmjs.org/tar/0.1.12 [08:59] cmr: uptownben: just pastebin the entire log of what happens [08:59] beevits has joined the channel [09:00] avalanche123 has joined the channel [09:02] ccare has joined the channel [09:03] RobertWHurst has joined the channel [09:04] TomY_ has joined the channel [09:04] amasad has joined the channel [09:06] tokka_ has joined the channel [09:07] hipsters_ has joined the channel [09:07] ph^_ has joined the channel [09:07] TheFuzzball has joined the channel [09:07] jimt_ has joined the channel [09:08] RobertWHurst has left the channel [09:08] carnau has joined the channel [09:08] Margle: uptown girl. [09:09] cmr: Good song [09:10] lperrin has joined the channel [09:11] tytsim_ has joined the channel [09:12] TheFuzzball_iOS has joined the channel [09:14] jimt has joined the channel [09:15] jetienne_ has joined the channel [09:17] stonebranch has joined the channel [09:17] booo has joined the channel [09:17] slaskis has joined the channel [09:19] jbpros has joined the channel [09:21] jldbasa has joined the channel [09:23] mikedeboer has joined the channel [09:24] dannyamey has joined the channel [09:24] andrewfff has joined the channel [09:25] agnat_ has joined the channel [09:28] AvianFlu has joined the channel [09:30] kwmiebach has joined the channel [09:30] lperrin has joined the channel [09:31] fangel has joined the channel [09:32] misza222 has joined the channel [09:32] HardFu has joined the channel [09:32] HardFu has joined the channel [09:33] thirdknife has joined the channel [09:34] Hanspolo has joined the channel [09:34] dr0id has joined the channel [09:35] hugdubois has joined the channel [09:36] MrTopf has joined the channel [09:36] fangel has joined the channel [09:36] methodT has joined the channel [09:38] luke` has joined the channel [09:38] nicholasf has joined the channel [09:39] boltR has joined the channel [09:40] aaronmcadam has joined the channel [09:40] disappea_ has joined the channel [09:41] prettyrobots has joined the channel [09:43] mattgifford has joined the channel [09:45] MikeDX has joined the channel [09:47] jxie has joined the channel [09:47] shinuza has joined the channel [09:49] tomasztomczyk has joined the channel [09:52] markwubben has joined the channel [09:53] carnau: Is there any way to start a js with forever passing the user that should start the process as argument? I don't want to run it as root. [09:56] Heisenmink has joined the channel [09:57] AvianFlu: if (process.getuid() === 0) process.setuid(someIntegerThatIsntRoot) [09:57] robhawkes has joined the channel [09:57] AvianFlu: inside the app [09:58] litropy has joined the channel [09:58] Cromulent has joined the channel [09:59] claudio has joined the channel [10:00] mattgifford has joined the channel [10:00] carnau: AvianFlu, ok, many thanks ;-) [10:00] jxie has joined the channel [10:02] rurufufuss: so I'm having an msn convo with someone, and hes saying that whatever node.js has, c# has it [10:02] rurufufuss: with async io and stuff [10:02] caden has joined the channel [10:03] buttface_ has joined the channel [10:03] rurufufuss: can someone help me construct a comeback line [10:03] cmr: rurufufuss: "Nodejs has ponies" [10:03] Karmaon has joined the channel [10:04] mmalecki_ has joined the channel [10:04] clarkfischer_ has joined the channel [10:05] sdboyer_ has joined the channel [10:05] sdboyer_ has joined the channel [10:05] saidinesh has joined the channel [10:05] ismell_ has joined the channel [10:06] levid has joined the channel [10:06] drey_ has joined the channel [10:06] nail__ has joined the channel [10:06] psino_ has joined the channel [10:06] finsken has joined the channel [10:06] chrisbuc1holz has joined the channel [10:06] jxie_ has joined the channel [10:06] Garo__ has joined the channel [10:06] MediceIdle has joined the channel [10:06] dlg_ has joined the channel [10:06] pkrumins_ has joined the channel [10:06] nicod has joined the channel [10:06] dennisjbell has joined the channel [10:06] shachaf_ has joined the channel [10:07] __direct1ry has joined the channel [10:07] zedas_ has joined the channel [10:07] _mdp has joined the channel [10:07] maritz has joined the channel [10:07] nickp__ has joined the channel [10:07] hotspant1 has joined the channel [10:07] kborchers_ has joined the channel [10:07] zorzar_ has joined the channel [10:07] freeformz_ has joined the channel [10:07] edsu_ has joined the channel [10:07] wao_ has joined the channel [10:07] systemfault_ has joined the channel [10:07] swajr has joined the channel [10:07] swajr has joined the channel [10:07] Will| has joined the channel [10:07] tg has joined the channel [10:07] __root__ has joined the channel [10:07] jbpros has joined the channel [10:08] _class_ has joined the channel [10:08] cjm has joined the channel [10:08] raphdg has joined the channel [10:08] SirFunk has joined the channel [10:08] KiNgMaR has joined the channel [10:08] vkandy has joined the channel [10:08] xtat has joined the channel [10:08] gerard0 has joined the channel [10:08] yolin has joined the channel [10:08] stbuehler has joined the channel [10:09] Carmivore has joined the channel [10:09] Carmivore has joined the channel [10:09] pcaulagi has joined the channel [10:09] rphillips_ has joined the channel [10:09] halfhalo has joined the channel [10:09] gerard0 has joined the channel [10:09] X-Scale has joined the channel [10:09] tomaw has joined the channel [10:09] plutoniix has joined the channel [10:10] piscisaureus_ has joined the channel [10:10] captain_morgan has joined the channel [10:10] Glenjamin has joined the channel [10:10] mmalecki has joined the channel [10:10] Guest73059 has joined the channel [10:10] tytsim has joined the channel [10:11] FireFly has joined the channel [10:11] lukstr has joined the channel [10:12] der_lunz has joined the channel [10:13] Nss has joined the channel [10:13] munichlinux: how do i find the file type when i read it from the disk? Example text, jpeg, bmp [10:14] cmr: munichlinux: Hm, a program for this exists ("file"), I'm not sure if there is a node implementation. You could shell out [10:14] jldbasa has joined the channel [10:15] SteveDekorte_ has joined the channel [10:15] robhawkes has joined the channel [10:16] sproates has joined the channel [10:16] skm has joined the channel [10:19] jxie has joined the channel [10:19] davetayls has joined the channel [10:24] Juan77 has joined the channel [10:25] plutoniix has joined the channel [10:25] coderarity has joined the channel [10:26] carnau: How can I run a js like 'node server.js' with the node_modules folder in a different location? I can't change the require option in my server.js, to specify a relative path. Is there any option to configure the modules path? [10:27] cmr: carnau: NODE_PATH env var [10:28] carnau: cmr, Thank you! :-) [10:29] BrianE has joined the channel [10:29] kulor-uk has joined the channel [10:29] systemfault has joined the channel [10:34] Wizek has joined the channel [10:34] aslant has joined the channel [10:35] surfeurX has joined the channel [10:36] paera has left the channel [10:36] larsschenk1 has joined the channel [10:37] larsschenk1 has left the channel [10:37] CIA-101: node: 03Fedor Indutny 07master * rf1678bf 10/ (lib/http.js test/simple/test-http-max-headers-count.js): [10:37] CIA-101: node: http: do not accept headers if limit is exceeded [10:37] CIA-101: node: * fix limiting when parser was reused [10:37] CIA-101: node: * fix maxHeadersCount = 0 is ignored ( credit to @koichik ) [10:37] CIA-101: node: * add test-http-max-headers-count.js ( credit to @koichik ) - http://git.io/I2uVHw [10:37] CIA-101: node: 03Fedor Indutny 07master * r23de339 10/ (lib/querystring.js test/simple/test-querystring.js): querystring: fix maxKeys = 0 is ignored - http://git.io/TFpFgw [10:39] LeMike has joined the channel [10:40] vguerra has joined the channel [10:40] __doc__ has joined the channel [10:41] robertstuttaford has joined the channel [10:42] robertstuttaford: have 0.7.0-pre installed on ubuntu lucid. now trying to install libxmljs. error: sh: node-waf not found. how do i get node-waf installed? sudo apt-get install nodejs-dev does not work: can't find such a package. [10:42] robertstuttaford: please help! :-) [10:43] cmr: robertstuttaford: This issue was reported before, seems to be that dev builds don't have node-waf though I can't confirm. Any particular reason you are using that version and not v0.6.7? [10:43] cmr: robertstuttaford: How did you install node? [10:44] _mql1 has joined the channel [10:45] robertstuttaford: i installed from source: git clone (url), ./configure, make, sudo make install [10:45] robertstuttaford: should i have first checked out a particular tag? i'm getting a feeling that's what i should have done after the clone [10:45] meso has joined the channel [10:45] cmr: robertstuttaford: Follow the guide at https://github.com/joyent/node/wiki/Installation for installing from the repos [10:45] _mql1 has left the channel [10:45] cmr: (Yes) [10:45] ph^ has joined the channel [10:45] MrBenn has joined the channel [10:46] robertstuttaford: i also upgraded python to 2.7 [10:46] tomlion has joined the channel [10:46] cmr: I don't know if that actually affects anything, but it shouldn't as it is backwards compatible with 2.6 [10:47] arthurdebert has joined the channel [10:50] Hanspolo has joined the channel [10:50] panterax has joined the channel [10:52] fangel has joined the channel [10:52] SteveDekorte_ has joined the channel [10:53] OmidRaha has joined the channel [10:55] satyr has joined the channel [10:56] cosmincx has joined the channel [10:56] Wizek has joined the channel [10:57] BrianE has joined the channel [10:58] deoxxa: what are my options for building a proper terminal interface in node? [11:00] booo has joined the channel [11:00] cmr: deoxxa: What do you mean by that? [11:00] Industrial: what are my options for long term investment ? [11:00] cmr: deoxxa: As in ncurses? [11:00] deoxxa: ncurses would do the job, yep [11:00] cmr: There's an ncurses binding somewhere but I haven't used it yet. [11:00] deoxxa: i've tried mscdex's curses stuff, it was mighty unstable [11:00] deoxxa: through no fault of his, i'm sure [11:00] cmr: Yep, that's them :D [11:05] fermion has joined the channel [11:05] deoxxa: hm [11:05] deoxxa: i've been stuck on one feature of this template engine for like 3 days now [11:05] mehlah has joined the channel [11:06] deoxxa: and i'm not entirely happy with how it's turning out [11:06] cmr: Which one? [11:06] ger^kallisti has joined the channel [11:07] deoxxa: template inherhitence and order of preference [11:07] cmr: And what engine? [11:07] jldbasa has left the channel [11:08] deoxxa: the way that i've done the context object makes it really hard to do [11:08] deoxxa: https://github.com/deoxxa/node-ginger [11:08] joshwines has joined the channel [11:08] deoxxa: i think i need to re-think the context object, actually [11:08] cmr: Ah [11:08] deoxxa: say you have an index page, inheriting a layout [11:09] robertstuttaford has left the channel [11:09] deoxxa: in the layout you include a header and a footer [11:09] deoxxa: the layout defines space for a block, "content" [11:09] deoxxa: in the index page, you define content for that block [11:09] cmr: Right [11:09] cmr: (Similar to jinja2, no?) [11:09] deoxxa: but then you define content in the header and the footer too [11:09] deoxxa: yep, it's meant to work the same way [11:09] deoxxa: which "block" should be rendered? [11:10] deoxxa: and then - if you use parent(), what should parent() be in the header? how about the footer? etc. [11:10] deoxxa: basically i was thinking the template chain would be a simple line, but it's more of a tree [11:11] booo has joined the channel [11:12] geojeff has joined the channel [11:12] aliem has joined the channel [11:13] maritz: is it possible that redisClient.get() (mranney/node-redis) doesn't work properly due to ES5 object.get()? because for some reason when i do .get() i don't receive the key, but if i do mget (with one key) it works. tried debugging into it but for some reason that doesn't work properly in this case. [11:16] Juan77 has joined the channel [11:17] tokka has joined the channel [11:17] mapps has joined the channel [11:18] bzinger has joined the channel [11:18] level09 has joined the channel [11:20] c4milo has joined the channel [11:20] joshfinnie has joined the channel [11:20] cmr: deoxxa: it has to be a tree, as soon as you have includes and blocks. [11:20] deoxxa: yeah, but i thought i could get away with just storing the parent node [11:20] deoxxa: and not the children [11:21] deoxxa: like, i thought i would only ever need to traverse up the tree [11:21] cmr: deoxxa: Why must one programmatically declare their templates anyway? [11:21] deoxxa: how do you mean? [11:21] maritz: ok, it was my fault at another point on top of some debugging weirdness. [11:21] thalll has joined the channel [11:21] cce__ has joined the channel [11:21] deoxxa: oh the example code? that's out of date at the moment [11:22] garrensmith has joined the channel [11:22] deoxxa: that was just my test code while i was getting the parser and stuff working [11:22] cmr: deoxxa: Still? Dammit! :P [11:22] deoxxa: heh [11:22] deoxxa: i implmented an on_not_found thing in the context object [11:22] cmr: So it does lazy loading? [11:22] deoxxa: so you can load a template from disk, from a remote location, etc [11:22] deoxxa: yeah [11:23] cmr: Nice [11:23] cmr: That was going to be my other recommendation :) [11:23] deoxxa: in the browser, that might mean fetching the (compiled or not) template from a server [11:23] deoxxa: then it'll cache it [11:23] reenignEesreveR- has joined the channel [11:24] cmr: Well, I can't really give any feedback unless I go through and read the codebase and that isn't happening. not at 6am [11:24] deoxxa: heh [11:24] deoxxa: that's fair enough [11:24] deoxxa: i think i have a bit of an idea how to do it anyway [11:24] deoxxa: i'm sure a good idea will come to me when i least expect it [11:29] ndigit has joined the channel [11:31] deoxxa: hm, i guess i still can just go up the tree [11:32] jetienne_ has joined the channel [11:32] cjroebuck has joined the channel [11:35] mc_greeny has joined the channel [11:36] amasad has joined the channel [11:40] p6 has joined the channel [11:41] briandh has joined the channel [11:42] emattias has joined the channel [11:43] dexter_e has joined the channel [11:44] methodT has joined the channel [11:44] McMAGIC--Copy has joined the channel [11:45] fly-away has joined the channel [11:45] cgfuh has joined the channel [11:45] jetienne_ has joined the channel [11:46] torsd has joined the channel [11:47] ph^_ has joined the channel [11:53] garrensmith has joined the channel [11:53] dnjaramba has joined the channel [11:58] eldios has joined the channel [12:00] unomi has joined the channel [12:02] bLUEEE has joined the channel [12:02] bLUEEE: hi there, is their a favoured IDE for node ? [12:03] mytrile has joined the channel [12:03] zomg: bLUEEE: don't think there is but WebStorm seems generally well-liked [12:04] satyr has joined the channel [12:05] c4milo has joined the channel [12:05] cmr: Most things are pretty well-liked by whoever uses them :) [12:05] bLUEEE: thanks zomg. just looking now and seems like it involves some $$$, maybe i should just use textmate or something ? [12:06] cmr: bLUEEE: just a text editor is fine. vim and emacs are popular and rather powerful [12:06] bLUEEE: thanks cmr [12:07] adammulligan has joined the channel [12:08] vvo has joined the channel [12:08] deoxxa: i use nano [12:08] deoxxa: haha [12:08] cmr: deoxxa: Seriously? [12:08] deoxxa: yes :( [12:08] cmr: :| [12:08] deoxxa: i always go "i should learn vim" [12:09] zomg: bLUEEE: yeah well IDEs generally involve that :D [12:09] deoxxa: but then i never do [12:09] zomg: well, unless you want some eclipse based slowpoke [12:09] zomg: =) [12:09] Glenjamin: i quite like komodo [12:09] deoxxa: nano just seems to do what i need [12:09] deoxxa: i.e. put text in files [12:09] cmr: deoxxa: Yeah, well, cat does that too [12:09] deoxxa: this is true! [12:09] cmr: deoxxa: if you're a video kinda person, nothing better than http://www.derekwyatt.org/vim/vim-tutorial-videos/ [12:10] cmr: he's a real great presenter [12:10] slota has left the channel [12:10] deoxxa: hmm [12:10] deoxxa: that might be a good activity for my plane ride [12:10] deoxxa: can i download them? [12:10] jetienne_ has joined the channel [12:11] cmr: Yep! Go to the vimeo page for the download link. [12:11] deoxxa: ACTION downloads [12:12] zomg: Vim <3 [12:12] Hanspolo_ has joined the channel [12:12] cmr: I watched them all and I already knew everything he was saying, he's just fun to watch :) [12:12] enmand has joined the channel [12:12] zomg: I use vim for node stuffs, but we use PhpStorm (which is kinda like WebStorm except with PHP features) at work [12:12] zomg: Although I use the IdeaVim vim emulator in PhpStorm too =) [12:13] chjj has joined the channel [12:14] cmr: I tried using the vim plugin for visual studio and it just didn't cut it. [12:14] zomg: Yeah some of the plugins are kinda poor [12:14] zomg: IdeaVim is ok, but it's kinda buggy at times [12:14] cmr: I pretty much wanted vim embedded in there, with all the background compilation and stuff. [12:15] zomg: Still, it's tolerable enough to warrant using it over the standard editor [12:15] cmr: yeah [12:15] zomg: That's pretty much how Ideavim works.. You get all the standard editor's features but with vim keybindings [12:15] cmr: Pretty much the only thing the plugin i tried was movement and simple yank/put. [12:15] zomg: I just wish it had a few other features and worked a bit more reliably [12:15] cmr: No registers, no marks, etc. [12:16] zomg: IdeaVim has registers and marks, most movement things I've tried etc. [12:16] cmr: Nice [12:16] zomg: Main things I'm missing is text objects, like di" to delete things inside quotes [12:18] Industrial: I'm using SublimeText2, which has a nice vim plugin [12:18] Industrial: which is unfinished but usable [12:18] Industrial: IDEAVim is really buggy for me [12:18] zomg: Yeah it is kinda :/ [12:19] Industrial: There is also PIDA, but it seems abandoned (and was never really picked up by a lot of people) [12:19] duffman has joined the channel [12:19] Industrial: I, personally, think a rewrite of the functionality is much better then shoehorning vim into an IDE [12:20] bLUEEE: also, whats the correct way to install node without installing a lot of other thigns like homebrew etc.. i'd like node, express and npm [12:21] hackband_ has joined the channel [12:21] chjj: bLUEEE: clone the repo with git and build it yourself, it comes with npm now [12:21] Cromulent has joined the channel [12:21] MattRichardson has joined the channel [12:21] chjj: assuming you already have everything required to do that [12:21] cmr: Industrial: rewrite where? [12:22] chjj: bLUEEE: otherwise, a package manager would be faster and more painless [12:22] MattRichardson has left the channel [12:22] diogogmt has joined the channel [12:22] bLUEEE: just looked at the site and it has a mac installer.. [12:22] chjj: bLUEEE: oh, didnt know that [12:23] maletor has joined the channel [12:23] chjj: well, that works [12:23] bLUEEE: i think i'll do that.. ! [12:23] Industrial: great! [12:23] Industrial: cmr: whichever project ? [12:24] cmr: Industrial: Ah, so eclipse would implement all of vim, visual studio would implement all of vim, etc? [12:24] bLUEEE: just one other thing, ideally I wanted to install node/express on windows but i read that theres a fair few problems, moreso with express - is it working out for most people if anyone is on windows ? [12:25] Industrial: bLUEEE: right so. First produce something with node, then worry about things like this. [12:29] zomg: bLUEEE: it seems node things generally work kinda poorly on windows.. a lot of people have trouble compiling modules etc. (eg. they don't compile on win at all or it's difficult) [12:29] jergason has joined the channel [12:29] bLUEEE: thanks, i'll just run it on the mac or vm linux or something like that [12:30] jamescarr has joined the channel [12:31] bicranial has joined the channel [12:31] tornad has joined the channel [12:32] nicholasf has joined the channel [12:33] maletor has joined the channel [12:34] ilon__ has joined the channel [12:34] niloy__ has joined the channel [12:35] ilon__: i'm having trouble (as it seems) to install less (lesscss.org) thru npm, and later invoke it [12:35] tomlion has joined the channel [12:36] ilon__: less seems to install just fine, but when i try to invoke it i get: http://pastie.org/3194718 [12:36] galaxywatcher_ has joined the channel [12:36] ilon__: any suggestion as of why this is happening? [12:36] uptownben: So I'm still having this issue with npm , does the new node install package for UNix contain a version of npm? [12:36] stefpb has joined the channel [12:37] jbpros has joined the channel [12:38] zomg: ilon__: if you installed less with -g (eg. globally) you would also need to install it local to your application *without* -g [12:38] RLa has joined the channel [12:42] ilon__: zomg: uh, i dont get the logic behind that, and yes, i am indeed trying to install it globally. [12:42] zomg: That's how the default require paths work or something like that [12:42] torvalamo: you can link it instead of reinstalling it locally [12:43] torvalamo: npm link x [12:43] ilon__: thats just wrong. :( [12:43] ilon__: <- new to node [12:44] torvalamo: the thing is, you can have multiple directories with node apps.. if you install the packages globally and link them, it will only have one instance of each package instead of a thousand different versions [12:44] ilon__: yeah [12:44] ilon__: i just wish i didnt have to include that with my app. [12:45] aslant has joined the channel [12:45] torvalamo: people using node are used to installing required packages [12:45] torvalamo: so dont worry [12:45] torvalamo: you'll get used to it [12:45] torvalamo: npm will save your life [12:46] ilon__: the dependencylist gets rather long only to include less in my app. [12:46] torvalamo: yes but npm installs less's dependencies for you [12:48] stefpb has joined the channel [12:48] ilon__: all i want is a standalone compiler for less, how hard could it be :( [12:48] jamescarr: ha! I love it when I get contacted for hire by companies that I contribute code via pull requests to their open source projects :) [12:48] sdwrage has joined the channel [12:49] mmalecki: jamescarr: that's the way I got hired by nodejitsu! [12:50] deoxxa: jamescarr: nice work! [12:51] ilon__: torvalamo: i take it there are no way to install and invoke it globally without the need to install it in the local app aswell? [12:51] jamescarr: yeah, but it's only half the way. last couple offers were wanting someone onsite [12:51] jamescarr: for me that's hard given I have 2 houses on the market out here :S [12:51] maritz: ilon__: i fear you'll have to write your own then... not wanting any dependencies is a rather pointless endeavor unless you want to write a lot of code just for fun :D [12:51] jamescarr: so I'm hoping this offer allows for remote [12:52] torvalamo: ilon__, no there isn't, unless you add /usr/local/lib/node_modules to node's require lookup [12:52] dobber has joined the channel [12:52] maritz: ilon__: npm install less -g ?!?! [12:52] qsobad has joined the channel [12:52] scott_gonzalez has joined the channel [12:52] ilon__: maritz: dosnt do the job as it seems, i did that, the module seems to be needed in the local path aswell. [12:53] ilon__: torvalamo: that was my first thought [12:53] torvalamo: ilon__, it used to be the case in earlier versions that it was all global [12:53] ilon__: torvalamo: just thought there might be an option for it, i cant be the first person thinking about it. [12:53] davetayls has joined the channel [12:53] torvalamo: so they've moved away from it [12:53] torvalamo: not "not thought about it" [12:53] ilon__: torvalamo: bummer. [12:54] maritz: ilon__: sudo npm install less -g && lessc --version [12:54] maritz: works fine for me [12:54] ilon__: maritz: try to do lessc /some/file.less [12:54] torvalamo: there's the thing with sudo/root too.. you're supposed to be able to install it locally without having root access, which used to be required before [12:55] maritz: torvalamo: for local installs you don't need sudo if you have write access in the current folder, yes. [12:55] ilon__: torvalamo: yes, but i do want it installed globally, and be usable without installing it locally aswell. [12:55] torvalamo: that's what i'm saying, maritz [12:55] torvalamo: npm used to be global [12:55] torvalamo: by default [12:55] indutny_ has joined the channel [12:55] torvalamo: and require sudo [12:55] torvalamo: not anymore [12:55] garrensmith has joined the channel [12:56] torvalamo: ilon__, you don't have to install it locally [12:56] torvalamo: just link it [12:56] maritz: ilon__: i just tried it with the example from lesscss.org, works fine. [12:56] ilon__: torvalamo: i still have to add the files to my cvs that way, didnt want that :P [12:57] torvalamo: you use cvs? [12:57] Glenjamin: just ignore the node_modules folder [12:57] maritz: ilon__: you don't need the local install. global works fine [12:57] ilon__: Glenjamin: then the other developers would have errors. [12:57] maritz: and as Glenjamin said you should ignore node_modules anyway [12:57] maritz: ilon__: add it as a dev dependency in your package.json and let other devs do "npm install . --dev" [12:58] Glenjamin: the other devs can just npm install [12:58] ilon__: `lessc -v` works, but as soon as i try to call it with a filename it fails. [12:58] maritz: in what way? [12:59] ilon__: maritz: http://pastie.org/3194718 [12:59] eb4890 has joined the channel [12:59] ilon__: lessc -v prints its version and all. [13:00] adambeynon has joined the channel [13:00] ilon__: O.o [13:00] ilon__: strange.. [13:00] deoxxa: > i still have to add the files to my cvs [13:00] deoxxa: wow [13:01] ilon__: it SEEMS its my actual .less file causing the problem. [13:01] ilon__: > i still try to be polite on internet [13:01] ilon__: wow. [13:01] Glenjamin: anyway, if you want dependencies bundled, then adding them to version control is the correct approach [13:02] Glenjamin: the global npm directory isn't on the path for require by default [13:02] ilon__: maritz: you'r absolutely correct, seems it DOES work just doing npm install -g, seems to be my less that breaks the parser, which dosnt throw a correct error. [13:02] maritz: devDependencies are better imho [13:03] maritz: ilon__: on the other hand: i can't require it either. plus i don't see it in npm ls -g and can't uninstall it. something is weird here. :D [13:03] kulor-uk has joined the channel [13:03] ph^ has joined the channel [13:04] brianseeders has joined the channel [13:04] ilon__: maritz: it was the error with require that made me thought i couldnt install it globally and then use it wherever i had to, so it seems i got two problems, one with my less code and one with the installation of less. :) [13:06] adrianF has joined the channel [13:07] enmand has joined the channel [13:08] postwait has joined the channel [13:09] niloy__ has joined the channel [13:10] yolin has joined the channel [13:10] tahu has joined the channel [13:12] yawNO has joined the channel [13:12] ph^_ has joined the channel [13:14] jomoho has joined the channel [13:14] burthold has joined the channel [13:15] ph^ has joined the channel [13:18] HardFu: what's the most optimal way to register a callback from a stream I get from a socket. I can send a request, and get a response - but the response is not immediate, I can get other stuff in, then the reply (which has a number 321 in it - for example) [13:19] HardFu: blah, blah, blah, 321, blah - or - blah, 321, blah, blah :) [13:19] jomoho2 has joined the channel [13:20] CIA-101: node: 03Maciej Małecki 07master * rdf62005 10/ lib/util.js : util: always display a warning for module in debug mode - http://git.io/YjeEDw [13:21] d0k has joined the channel [13:22] emattias has joined the channel [13:24] bnoordhuis has joined the channel [13:24] subhaze has joined the channel [13:26] mbo42 has joined the channel [13:26] jomoho2 has joined the channel [13:27] fairwinds has joined the channel [13:30] samstefan has joined the channel [13:30] xetorthio has joined the channel [13:32] kulor-uk has joined the channel [13:32] ovaillancourt has joined the channel [13:33] callumacrae has joined the channel [13:34] jomoho has joined the channel [13:34] CIA-101: node: 03Fedor Indutny 07master * r03e689f 10/ lib/util.js : [13:34] CIA-101: node: Revert "util: always display a warning for module in debug mode" [13:34] CIA-101: node: This reverts commit df62005ece4bb0be0d5af645fd9093b1506ce63d. - http://git.io/e8URaw [13:37] michaelhartau has joined the channel [13:37] jbpros has joined the channel [13:42] pcaulagi has joined the channel [13:43] HardFu: anyone knows the best way to extract words from a string that can contain any number of words and also other character for example a bash command [13:44] erichynds has joined the channel [13:46] cmr: HardFu: A regex, sounds like [13:46] HardFu: hm [13:46] HardFu: it'll need to be a quite complex one [13:46] cmr: That's how regexps tend to roll [13:46] HardFu: yea :) [13:47] deoxxa: string.split(" ") [13:47] deoxxa: ? [13:47] deoxxa: cmr: what are you doing still up [13:48] HardFu: find . -r -type f -exec grep -ril "abc" {} \; [13:48] cmr: deoxxa: I know, I'm terrible [13:48] HardFu: this is an example [13:48] deoxxa: heh [13:48] cmr: I get distracted, and I don't fall asleep easy. Watching Doug Crockford give a talk :P [13:49] HardFu: i would only like; [find, type, exec, grep, ril, abc] for example [13:49] martin_sunset_ has joined the channel [13:49] deoxxa: string.match(/([a-z][a-z]+)/) [13:50] CIA-101: libuv: 03Fedor Indutny 07master * re7758e1 10/ (4 files in 3 dirs): [13:50] CIA-101: libuv: unix: remove eio_set_max_poll_reqs [13:50] CIA-101: libuv: * added test - http://git.io/7SU0OQ [13:50] xetorthio has joined the channel [13:50] deoxxa: welcome to the exciting world of regexes [13:50] level09 has joined the channel [13:50] HardFu: hm, thanx [13:50] deoxxa: may $DEITY be with you [13:52] cce has joined the channel [13:56] shanebo has joined the channel [13:56] AndreasMadsen has joined the channel [13:57] ovnicraft has joined the channel [13:57] yawNO has joined the channel [13:58] emattias has joined the channel [13:59] moonlite_ has joined the channel [14:00] lwille has joined the channel [14:02] _baton_ has joined the channel [14:02] doitian has joined the channel [14:03] Poetro has joined the channel [14:05] jetienne has joined the channel [14:05] k1ttty has joined the channel [14:06] uptownben: So just installed node via the downloadable package (./configure, make, make install), and when I do an npm update -g, I still get : npm ERR! Error: ENOENT, no such file or directory '/usr/local/lib/node_modules/npm/node_modules/tar/package.json' [14:07] TimTim has joined the channel [14:07] k1ttty has joined the channel [14:07] uptownben: can't get past the tar installation when I perform an npm update -g [14:07] michaelhartau has joined the channel [14:07] vkareh has joined the channel [14:10] Glenjamin: upgrade system tar [14:11] aliem has joined the channel [14:11] idefine has joined the channel [14:11] thalll has joined the channel [14:11] colinclark has joined the channel [14:12] jomoho has joined the channel [14:12] k1ttty_ has joined the channel [14:13] cmr: uptownben: Are you on 0.6.7 now? [14:13] jocafa has joined the channel [14:13] noobie25 has joined the channel [14:14] mikl has joined the channel [14:14] urlisse has joined the channel [14:15] adambeynon has joined the channel [14:15] peregrine81 has joined the channel [14:15] nicholasf has joined the channel [14:16] jxie has joined the channel [14:16] pradeebv has joined the channel [14:20] joshsmith has joined the channel [14:21] AaronMT has joined the channel [14:21] sindresorhus has joined the channel [14:21] creationix has joined the channel [14:22] creationix: Come play tcp chat at creationix.com:1337 (rlwrap and nc works well) [14:22] stagas has joined the channel [14:22] mandric has joined the channel [14:22] creationix: identify with "/ident username" [14:22] sqlserverio: I see lots of projects using redis for session management and mongodb for everything else. Why would I want to use redis for session if I already have mongo up and running? [14:23] tomlion has joined the channel [14:26] FIQ has joined the channel [14:27] hall_ has joined the channel [14:27] CIA-101: node: 03Fedor Indutny 07master * rf0c629a 10/ (14 files in 6 dirs): uv: upgrade to e7758e1 - http://git.io/OV5P3w [14:31] robinduckett: creationix: No one chatting or am I alone? [14:32] creationix: robinduckett: noone is chatting [14:32] creationix: oh well [14:32] joshfinnie has joined the channel [14:32] robinduckett: creationix: can you see what I'm sending? [14:32] tmcw has joined the channel [14:32] CarterL has joined the channel [14:33] chrisvwebdev has joined the channel [14:34] Aria has joined the channel [14:34] chrisvwebdev has left the channel [14:34] tomgallacher has joined the channel [14:34] micheil has joined the channel [14:35] deoxxa: hooray! [14:35] deoxxa: i think i got the template inheritence stuff sorted out [14:36] kriszyp has joined the channel [14:37] niloy__ has joined the channel [14:37] yolin has joined the channel [14:37] deoxxa: so yeah, defining block content in non-extending templates is now undefined behaviour [14:37] deoxxa: ACTION is happy [14:39] thomblake has joined the channel [14:39] panosru has joined the channel [14:39] thomblake has left the channel [14:40] deoxxa: introduced some pretty crazy inefficient stuff... will need to sort that out later [14:41] jamescarr has joined the channel [14:41] sqlserverio: deoxxa: yeah I'm doing the same thing right now moving to block and extends [14:41] deoxxa: what are you using? what library? [14:42] thax has joined the channel [14:43] Cromulent has joined the channel [14:44] sqlserverio: express and jade https://github.com/visionmedia/screenshot-app is a really good example of how clean and DRY blocks and extends can be [14:44] yawNO has joined the channel [14:44] deoxxa: oh i know [14:44] deoxxa: i'm writing a templating library [14:45] deoxxa: i'm implementing the block/extend thing, not using it :P [14:45] sqlserverio: lol shows you where I'm at. [14:46] hellp has joined the channel [14:46] tdegrunt has joined the channel [14:47] jbpros has joined the channel [14:47] Topcat has joined the channel [14:47] tytsim_ has joined the channel [14:47] ovnicraft has joined the channel [14:50] icebox has joined the channel [14:51] deadman87 has joined the channel [14:53] der_lunz has left the channel [14:54] willwhite has joined the channel [14:54] xtat has joined the channel [14:54] lazyshot has joined the channel [14:54] Registered has joined the channel [14:54] gsmcwhirter has joined the channel [14:55] lwille has joined the channel [14:55] hij1nx has joined the channel [14:55] davidwalsh has joined the channel [14:56] garrensmith has joined the channel [14:56] noobie25 has joined the channel [14:57] neurodrone has joined the channel [14:57] k1ttty has joined the channel [15:00] k1ttty_ has joined the channel [15:02] vvo has joined the channel [15:04] wink_ has joined the channel [15:06] liar has joined the channel [15:06] deoxxa: hooray [15:06] deoxxa: updated that readme finally [15:08] jamescarr: hmmm... is there any tools to facilitate testing express routes? [15:08] jamescarr: in mocha? [15:08] robotmay has joined the channel [15:08] yawNO: deoxxa: link me the repo [15:08] deoxxa: https://github.com/deoxxa/node-ginger [15:09] yawNO: thx [15:09] deoxxa: there's still a lot of rough edges... [15:09] deoxxa: it's getting nicer to use though [15:09] marcello3d has joined the channel [15:09] deoxxa: probably about time to put together a demo [15:10] davidsklar has joined the channel [15:10] yawNO: deoxxa: looks neat [15:10] cmr: Show off clientside templates too [15:10] cmr: Or do you not do that? [15:10] cmr: I recall you doing that [15:10] marcello3d has joined the channel [15:10] deoxxa: cmr: definitely, it's designed to work on both sides of the application [15:10] yawNO: even though i like templating that saves you time [15:10] yawNO: jade haml etc [15:10] cmr: yawNO: I like templating that looks like what my end result will be [15:10] amigojapan has joined the channel [15:10] deoxxa: i just like twig [15:10] deoxxa: haha [15:11] yawNO: cmr: different tastes i suppose :) [15:11] deoxxa: yawNO: the main thing is that i'm not just outputting HTML with mine [15:11] yawNO: crap.. i've got stomach ache [15:11] deoxxa: i'm going to be using it at work for email templates and config files too [15:11] cmr: yawNO: I pretty much write what I'm going to end up with while I'm prototyping anyway, so I like things like jinja and weld and plates. [15:11] yawNO: deoxxa: i see [15:12] yawNO: cmr: my idea is.. the faster i code, the more i have fun [15:12] yawNO: that's why i stick w/ coffeescript && jade [15:12] yawNO: :P [15:13] raincole__ has joined the channel [15:14] Aikar: i prefer real coffee, and normal JS :P [15:14] Aikar: less sleep = same amount of code written! [15:14] yotmk has joined the channel [15:14] cmr: Jade would slow me down. I already have my prototype, why translate the existing html to some ugly non-html html [15:15] Aikar: cmr: hey not all non htmls are ugly, nova is awesome :P [15:15] yawNO: for the same reason i use cs instead of js :P [15:15] Aikar: http://github.com/aikar/nova [15:15] slloyd_air has joined the channel [15:15] Aikar: still "html like" [15:15] yawNO: lol Aikar [15:15] yotmk has joined the channel [15:15] OSInet has joined the channel [15:15] Aikar: https://github.com/aikar/nova/blob/master/examples/templates/template.js [15:16] OSInet has left the channel [15:16] yawNO: Aikar: i like it [15:17] yawNO: still .. it looks like Lisp :P [15:17] Aikar: dont insult it like that :( [15:17] yawNO: PARENTHESES EVERYWHERE [15:17] yawNO: :( sry [15:17] yawNO: i could port it to sammyjs [15:17] cmr: yawNO: who doesn't like creating the syntax tree for the compiler? [15:17] yawNO: i'm looking for a cool templating engine [15:17] yotmk has joined the channel [15:17] yawNO: mustache sucks [15:17] cmr: I like plates. Weld is alright. [15:17] Aikar: it works well, just i suck at documenting and im not satisfied that my docs are really good enough, so i havent openly pushed it [15:17] apwalk has joined the channel [15:18] yawNO: haml fails in sammy [15:18] yawNO: i could port it maybe [15:18] Aikar: i use it at work (nova) [15:18] yawNO: does it work clientside? [15:18] Aikar: it could... but not really [15:18] yawNO: uhm [15:18] Aikar: i ported it to run on that jsperf site [15:18] aelien27 has joined the channel [15:19] Aikar: but that was hax to combine the files etc [15:19] yawNO: i was hoping it was just a matter of wrapping it :P [15:19] deoxxa: ginger works client side D: [15:19] Aikar: yeah its not unheard of, it can be made to (hell pullreq accepted if you want to do it :P), just i havent had time to do it [15:19] Aikar: I want to change a few things first though [15:19] Aikar: ie switch the callbacks to match node style of fn(err, res) [15:19] yawNO: sry deoxxa but i like non html :P [15:20] deoxxa: sounds more like you like only html [15:20] Aikar: so it can then be used with like streamline [15:20] yawNO: nop [15:20] yawNO: haml and jade are kewl [15:20] deoxxa: yep, for html [15:20] cjm has joined the channel [15:20] yawNO: so is nova at a first glaance [15:20] fantastikibne has joined the channel [15:20] deoxxa: as soon as you want to do anything other than html it's gonna be tricky :P [15:20] fantastikibne: hi [15:21] yawNO: Aikar: i gotta prepare some slides for a conf [15:21] wssr has joined the channel [15:21] Aikar: if i switch CB style, can then do, var html = nova('tpl/foo.js', _).render({foo: 'bar'}, _); [15:21] Glenjamin: powerpoint / keynote are fine [15:21] yawNO: push some new code and then i'll see what i can do for nova [15:21] Aikar: with streamline [15:21] Glenjamin: good slides contain either 1 large picture, or 1 large sentence [15:21] Aikar: lol Glenjamin [15:21] yawNO: if i can of course :( [15:21] k1ttty has joined the channel [15:21] yawNO: i haven [15:21] noodletraveler has joined the channel [15:22] Glenjamin: i don't go to a talk to read the slides, i go to listen to the speaker :) [15:22] yawNO: 't really worked on big node projects lol [15:22] fantastikibne: http://pastebin.com/raw.php?i=U19XAjam it could 2 request per second ? why so slow [15:22] Aikar: if i can remember to ill try to update it to switch CB style tonight... I dont like working on personal projects during work day :s [15:22] fantastikibne: sorry not 2 request per second , 2 requests in 7 second [15:22] yawNO: Glenjamin: gotta benchmark stuff [15:22] jtsnow has joined the channel [15:22] cmr: fantastikibne: because you don't indent your code, so it rebels [15:22] yawNO: that's the issue [15:23] yawNO: Aikar: yeah, i understand .. np :) [15:23] deoxxa: fantastikibne: can you perhaps make that harder to read? [15:23] rauchg has joined the channel [15:23] cmr: fantastikibne: why are you using eval? [15:23] fantastikibne: cmr: for read settings [15:23] fantastikibne: deoxxa: its enough hard :D [15:24] deoxxa: that was my point. [15:24] cmr: fantastikibne: Use "require('ayer')" [15:24] hackband has joined the channel [15:24] cmr: s/ayer/ayar/ [15:24] zemanel has joined the channel [15:24] cmr: With a var in there [15:24] Aikar: yawNO: I just suck at english, so I feel my docs on trying to understand how nova works are TOO technical.... it reads in my mind cause I created it, but I dont know how well it reads to others [15:25] Aikar: I write it too technical :P [15:25] yawNO: Aikar: i'm italian [15:25] Aikar: oh im only english, I just suck at it :P [15:25] yawNO: so english isn't my mother language [15:25] jaequery has joined the channel [15:25] Aikar: well, more specifically I suck at grammar [15:25] yawNO: don't worry :P .. i'll manage to understand it somehow [15:26] Aikar: I wish someone whos smart enough to read it to understand it, can then rewrite it in a more easier to understand way [15:27] fantastikibne: 100 request in 19 seconds :/ still very slow [15:27] yawNO: uhm [15:27] yawNO: fantastikibne: made me wonder [15:27] Aikar: the basic point of it is theres a specific JS object style that nova interprets, of {tagname: [{attributes}, [childrennodes]] where children nodes can be the exact same thing, and its smart to figure out what you mean when you dont use that exact format. and then there is function tags like span('Foo') that translates down into the object style, so you have cleaner code [15:27] yawNO: how do you guys benchmark apis? [15:28] yawNO: okay [15:28] yawNO: Aikar: looks fairly easy to use [15:28] sriley: httpload? [15:29] pizthewiz has joined the channel [15:29] Aikar: pretty much is, its just need to know the style to avoid gotchas. also understanding how to use dynamic data with onRender [15:29] Aikar: nova is async, you could write DB queries directly in the template [15:29] Aikar: not that i recommend it... [15:29] lsb has joined the channel [15:29] Aikar: just, its possible :P [15:31] kuebk1 has left the channel [15:31] yawNO_ has joined the channel [15:32] paptow has joined the channel [15:32] Aria has joined the channel [15:33] dscape: anyone knows how to add someone to my npm module so he can also publish new versions of it? [15:34] dnjaramba has joined the channel [15:34] mmalecki: dscape: npm owner add user module [15:34] mmalecki: I thik [15:34] mmalecki: *think [15:34] dscape: thanks mmalecki [15:34] mmalecki: or the other way, module user [15:34] ppcano has joined the channel [15:35] wssr has joined the channel [15:36] dscape: you were right btw npm owner add [15:38] nodebiscut has joined the channel [15:40] niloy__ has joined the channel [15:42] fantastikibne: not sure why but at windows 2003 server environment paths doesnt work so nodejs modules doesnt work too :/ any fix? [15:43] bobslaede has joined the channel [15:44] jamescarr: ugh [15:44] jamescarr: I think I fell into a trap [15:44] warz has joined the channel [15:44] warz has joined the channel [15:44] jamescarr: maybe I shouldn't try to test drive all the routes in this tutorial [15:44] Destos has joined the channel [15:44] jamescarr: at the same time, I'm trying to instill good dev practices :S [15:44] swajr: the house kills SOPA: http://www.examiner.com/computers-in-denver/house-kills-sopa [15:45] arthurdebert has joined the channel [15:45] kenperkins has joined the channel [15:48] ilon__: swajr: nice one, have missed that. [15:49] bobslaede has joined the channel [15:49] xtianw has joined the channel [15:51] fatjonny has joined the channel [15:51] dilvie has joined the channel [15:52] cesconix has joined the channel [15:53] marcello3d has joined the channel [15:53] aheckmann has joined the channel [15:53] panosru has joined the channel [15:53] fantastikibne: https.get is very slow 100 calls at 20 seconds so it will take 14 days to make 6m api calls :/ [15:54] fantastikibne: wasn't it async [15:54] ap3mantus has joined the channel [15:54] cmr: fantastikibne: Link again? [15:54] marcello4d has joined the channel [15:55] joshsmith: okay, I am probably being an idiot [15:55] tek has joined the channel [15:55] fantastikibne: http://pastebin.com/raw.php?i=ED0TThH9 [15:55] joshsmith: but I'm POSTing to an Express router [15:55] joshsmith: and I'd like to send back a JSON response [15:55] jtsnow has joined the channel [15:55] joshsmith: typical callback(err, result) [15:56] shanez_ has joined the channel [15:56] joshsmith: how do I actually send that response rather than just render something? [15:56] xtianw: joshsmith: res.json() [15:56] joshsmith: res.send() or res.json? [15:57] rwaldron has joined the channel [15:57] joshsmith: thanks xtianw [15:58] Hanspolo has joined the channel [15:58] fantastikibne: http://pastebin.com/raw.php?i=4TvPDb7X jsbeautifier.org rulaz :p [16:00] k1ttty has joined the channel [16:00] pdodde has joined the channel [16:01] joshsmith: how do I do jsonp with res.json()? [16:02] k1ttty has joined the channel [16:02] kitt has joined the channel [16:02] kitt has joined the channel [16:02] pauls1 has joined the channel [16:03] maritz: joshsmith: you don't [16:03] captain_morgan has joined the channel [16:03] pauls1: anyone know what's up with this dnode installation issue? https://github.com/isaacs/npm/issues/2042 [16:04] joshsmith: um it says: jsonp callback Enable res.send() / res.json() transparent jsonp support [16:04] paptow has left the channel [16:04] maritz: btw: you should be able to use res.send() with json as well, it should auto-detect json and use the proper methods. [16:05] maritz: really? sorry, i just assumed :D [16:05] xtianw: Yeah [16:05] paptow has joined the channel [16:05] meso has joined the channel [16:05] xtianw: I assume app.enable('jsonp callback') [16:05] xtianw: Never used it before [16:05] lperrin has joined the channel [16:06] maritz: joshsmith: you're right [16:06] maritz: https://github.com/visionmedia/express/blob/master/lib/response.js#L152 [16:06] maritz: so, basically if you enable it and the request contains callback: 'somefunctionname', the response will automatically be wrapped as jsonp [16:07] monteslu has joined the channel [16:07] hipsters_ has joined the channel [16:07] maritz: yeah, what xtianw++ said [16:07] amasad has joined the channel [16:09] BillyBreen has joined the channel [16:10] bleakgadfly has joined the channel [16:10] shanebo has joined the channel [16:11] aslant has joined the channel [16:12] yawNO_ has joined the channel [16:12] fantastikibne: how can i set maxsockets for http/s requests? [16:12] nickdc has joined the channel [16:12] fantastikibne: max requests at same time? [16:12] fantastikibne: its set to 5 as default i think [16:13] brngardner has joined the channel [16:15] Aria: Twiddle the default agent, or create another. [16:16] joshsmith: alright thanks maritz and xtianw [16:17] xtat has joined the channel [16:18] orospakr has joined the channel [16:19] Poetro has joined the channel [16:19] uptownben: Man, I can't figure out what the problem is. [16:19] Aria: What sort of problem, uptownben? [16:19] uptownben: I reinstalled node, and when I do a npm update e-g, I get errors [16:20] Aria: what errors? [16:20] uptownben: npm update -g [16:20] uptownben: npm ERR! Error: Cannot find module 'tar' [16:20] tjholowaychuk has joined the channel [16:20] tjholowaychuk has joined the channel [16:20] c4milo has joined the channel [16:20] uptownben: is there a bug in the latest node tarball? [16:21] prettyrobots has joined the channel [16:22] Hanspolo has joined the channel [16:22] igl has joined the channel [16:22] Brandon_R has joined the channel [16:22] Brandon_R: hey guys [16:22] Brandon_R: what's up and good [16:22] Brandon_R: libuv rocks [16:22] yawNO: Brandon_R: clouds? [16:22] Aikar: a sock [16:22] mansoor: You know whts the hardest part of writing software? [16:23] mansoor: coming up with a name for it <_< [16:23] Brandon_R: writing documentation [16:23] yawNO: the keyboard? [16:23] Brandon_R: haha yeah [16:23] Brandon_R: i know a good way to name things [16:23] amasad has joined the channel [16:23] mansoor: ohh? do go on [16:23] Brandon_R: choose hipster social network names [16:23] Brandon_R: like floggle [16:23] mansoor: HAHAHA [16:23] Brandon_R: or smucher [16:23] amasad has left the channel [16:23] creationix has left the channel [16:23] mansoor: I'm not cool enough to be a hipster [16:24] uptownben: keep getting this when I try npm update (with or without -g): http://pastebin.com/ct55FCXu [16:24] mansoor: and I don't own a mac :( so they won't let me in their club [16:24] nicholasf has joined the channel [16:24] jakehow has joined the channel [16:24] Brandon_R: do you have tar installed? [16:25] maritz: mansoor: http://www.dotomator.com/web20.html :D [16:25] uptownben: tar.js? [16:26] mansoor: maritz++ :D [16:26] vvo has joined the channel [16:26] sqlserverio: tar the program. [16:26] maritz: xD [16:26] uptownben: I just re-installed node via the later 0.6.7 tar ball for unix [16:26] willwhite has joined the channel [16:26] uptownben: *latest [16:26] sqlserverio: check your install and see if the symlink to tar got hosed or if tar got removed some how. [16:27] jamescarr: dammit... there needs to be a channel for twitter bootstrap [16:27] mansoor: jamescarr: have you tried #css? [16:27] jamescarr: guess I could, they'll probably yell at me :) [16:28] Brandon_R: that's a good website but it would be better if it auto checked the avaliability of those domains [16:28] ryanfitz has joined the channel [16:28] pauls1: anyone good with npm and have a minute? I don't know why this error is occurring and it's preventing me from going live… hope someone can help. https://github.com/isaacs/npm/issues/2042 [16:28] dexter_e has joined the channel [16:28] mansoor: Brandon_R: it does that if you click the check availabilty buttonm [16:28] uptownben: the tar command exists, but I think its referring to a tar module not the tar command [16:29] jbrokc has joined the channel [16:30] nodebiscut has joined the channel [16:31] Hanspolo has joined the channel [16:32] shanebo: hey guys, I have a really strange occurrence with fs.readdirSync between a linux box and my MBP, namely, on the linux box it doesn't order the directories properly in the array whereas Lion does. Any ideas? [16:32] LuckySMack has joined the channel [16:32] cmr: shanebo: What order should there be? [16:33] garrensm_ has joined the channel [16:33] shanebo: alphabetical, like a typical file directory [16:33] shanebo: cmr ˆˆ [16:33] tjfontaine: http://linux.die.net/man/2/readdir doesn't mention anything about order [16:33] cmr: shanebo: That order isn't guaranteed at /all/ [16:34] tjfontaine: at least not by the posix standard [16:34] shanebo: cmr, woah, I had no idea [16:34] uptownben: Why would this be missing in a new node install (re-compile)? /usr/local/lib/node_modules/npm/lib/utils/tar.js [16:34] cmr: Nor should you depend on it. [16:35] tjfontaine: http://linux.die.net/man/3/scandir otoh [16:35] fernandezpablo85 has joined the channel [16:35] fernandezpablo85: guys, I'm running latest node from source [16:35] fernandezpablo85: and I'm getting: [16:35] fernandezpablo85: Trace: http.Client is a legacy interface and will be removed in the near future. Do not use it. [16:35] fernandezpablo85: googled it but I don't see what's the alternative [16:36] shanebo: cmr, so I need to run a sort on the array? [16:36] fernandezpablo85: is there a list of deprecated apis? [16:36] cmr: Doesn't look like Node implements scandir [16:36] augustl: fernandezpablo85: http.request [16:36] cmr: shanebo: Why do you need it to be sorted? [16:36] augustl: fernandezpablo85: http://nodejs.org/docs/latest/api/http.html#http.request [16:36] shanebo: cmr i need it in alphabetical order for override purposes [16:36] cmr: shanebo: then yes, sort it [16:37] EriksLV has joined the channel [16:37] aslant has joined the channel [16:37] tjfontaine: scandir just does the right thing with qsort before giving you the results, it's nothing particularly special [16:37] fernandezpablo85: augustl: So the problem is on the http.createClient line right? [16:37] fernandezpablo85: that's what is causing the deprecation warning [16:37] fernandezpablo85: ? [16:37] augustl: fernandezpablo85: you shouldn't use http.createClient :) [16:37] augustl: it's not even documented [16:37] fernandezpablo85: augustl: I will remove it now [16:37] uptownben: anyone know of a quick way to completely remove node and npm so I can re-install to try to resolve this issue [16:37] uptownben: ? [16:37] shanebo: cmr, tjfontaine what a hassle. [16:38] cmr: fernandezpablo85: http://nodejs.org/docs/latest/api/http.html [16:38] fernandezpablo85: thanks @augustl and @cmr ! [16:38] cmr: irccloud does that way too often [16:38] jeremyselier has joined the channel [16:38] cmwelsh has joined the channel [16:38] tjfontaine: shanebo: welcome to: do one thing, do it well, also it takes care of the issue of people wanting "MY COALLATION" [16:38] daleharvey has joined the channel [16:38] whoops has joined the channel [16:38] strmpnk has joined the channel [16:39] wycats has joined the channel [16:39] Aikar: irccloud should clearly be written in node.js [16:39] RexM has joined the channel [16:39] fcoury has joined the channel [16:39] Fabryz has joined the channel [16:39] tjfontaine: cmr: apparently it only happens with freenode, I rarely see those mass disconnects on oftc [16:39] augustl: wow, sup with irccloud [16:39] olegp has joined the channel [16:39] fangel has joined the channel [16:39] ePirat has joined the channel [16:39] relix has joined the channel [16:39] mikl has joined the channel [16:39] Aikar: augustl: does it nearly daily [16:40] garann has joined the channel [16:40] cmr: I wonder why node doesn't expose scandir [16:41] tjfontaine: cmr: most likely because of the fnptr filtering [16:41] cmr: mm [16:41] tjfontaine: cmr: or perhaps not portable enough, unclear [16:41] cmr: yeah, posix.1-2008, pretty recent. [16:42] cmr: But 4.3bsd too... *shrugs* [16:42] tanguy_ has joined the channel [16:42] aslant has joined the channel [16:42] mandric has joined the channel [16:43] alvaro_o has joined the channel [16:43] blueadept has joined the channel [16:43] blueadept has joined the channel [16:43] terite has joined the channel [16:43] shanebo: tjfontaine, cmr, seems like node would standardize behavior across all environments though? [16:44] ritch has joined the channel [16:44] tjfontaine: shanebo: unlikely, you're looking for a behavior that is at best undefined [16:44] sriley has joined the channel [16:44] cmr: shanebo: meh, fs module is pretty lowlevel. [16:44] cmr: And nodejs core has a really minimalistic policy. [16:45] cmr: shanebo: So, either use the sorted module or write one :) [16:45] owenb has joined the channel [16:45] wssr has joined the channel [16:46] thalll_ has joined the channel [16:46] dscape has joined the channel [16:46] shanebo: tjfontaine, cmr while I agree in principal, people are interfacing with node, not linux or unix directly. Meaning it seems reasonable that the node interface between the lower level would be consistent. [16:46] tjfontaine: shanebo: that's not an excuse to not know how your platform works imo [16:47] halfhalo has joined the channel [16:47] stride: it is consistent in that it returns a set of files in an array [16:48] garrensm_: anyone looking for nodejs/javascript freelancers? [16:48] ec has joined the channel [16:48] shanebo: tjfontaine I shouldn't have know the differences between readdir on a unix box and a linux box. Because I'm writing js via _node's_ api. :D [16:48] ryanseddon has joined the channel [16:48] maritz: garrensm_: good luck. :) [16:48] tjfontaine: shanebo: submit an issue that notes that the order is undefined across platforms :) [16:49] tjfontaine: I would even suggest across calls [16:49] ritch has left the channel [16:49] garrensmith: lol thnx maritz, you doing the couchdb/erlang course [16:49] benvie has joined the channel [16:49] maritz: garrensmith: the what? [16:50] garrensmith: maritz: never mind then :-) [16:50] fernandezpablo86 has joined the channel [16:50] maritz: i've never written a line of erlang or couchdb. :D [16:50] fantastikibne: http://pastebin.com/31YR9b2T 50 requests in 10 seconds very slow :( [16:50] bradwright has joined the channel [16:51] _unary has joined the channel [16:51] voodootikigod_ has joined the channel [16:51] maritz: fantastikibne: wtf is hata? :D [16:51] fantastikibne: hata means error in turkish [16:51] maritz: WHY U NO WRITE ENGLISH? [16:52] Hosh has joined the channel [16:52] Raynos has joined the channel [16:52] fantastikibne: because its not a public code i will use it personally :/ [16:52] pksunkara has joined the channel [16:52] zomg: I write all my code in english even if I never plan to publish it (not native speaker either) [16:52] maritz: well, sorry but i don't really wanna read that if i have to think hard to see what is supposed to be what. [16:52] maritz: zomg: yeah, me too. [16:52] jomoho has joined the channel [16:52] zomg: It just makes more sense. Finnish terminology for code is moronic [16:52] davetayls has joined the channel [16:53] niftylettuce has joined the channel [16:53] ppcano has joined the channel [16:53] bEEEviz has joined the channel [16:54] chunhao_ has joined the channel [16:55] niftylettuce has joined the channel [16:56] vvo has joined the channel [16:56] aGHz1 has joined the channel [16:56] stephank has joined the channel [16:57] aGHz has joined the channel [16:57] bEEEviz has joined the channel [16:58] fantastikibne: ok i will translate and re-upload [16:58] dexter_e has joined the channel [16:58] jetienne has joined the channel [16:58] lmatteis has joined the channel [16:59] tanepiper has joined the channel [16:59] nym has joined the channel [16:59] tiglionabbit has joined the channel [16:59] dnyy has joined the channel [16:59] sveisvei has joined the channel [17:00] wolfeidau has joined the channel [17:00] MrTopf has joined the channel [17:01] GrizzLyCRO has joined the channel [17:01] moonlite_ has joined the channel [17:02] dexter_e has joined the channel [17:02] fantastikibne: http://pastebin.com/raw.php?i=f6mQzqfG [17:03] cha0s has joined the channel [17:03] cha0s has joined the channel [17:03] mattgifford has joined the channel [17:05] ralph has joined the channel [17:06] kuebk has joined the channel [17:06] cmr: fantastikibne: that has to be some of the ugliest code I've seen :( [17:07] cmr: fantastikibne: Don't use fs.writeSync [17:07] cmr: Are there any profilers for node? [17:07] cmr: I think fantastikibne could use one.. [17:07] cronopio has joined the channel [17:07] tjfontaine: dear god that log(){} function, so painful [17:08] louissmit has joined the channel [17:08] fantastikibne: i just commented log func [17:08] fantastikibne: so without it it takes 10 seconds for 50 requests [17:08] bnoordhuis: cmr: `node --prof`, check out node-profiler's nprof script [17:08] maritz: fantastikibne: i think your main problem might be the facebook servers throttling your requests or being too slow. [17:08] bnoordhuis: cmr: but i suspect it was a rhetorical question :) [17:09] joshthecoder has joined the channel [17:09] CIA-101: libuv: 03Ben Noordhuis 07master * r71f6c0e 10/ (16 files in 6 dirs): [17:09] CIA-101: libuv: Merge remote-tracking branch 'origin/v0.6' [17:09] CIA-101: libuv: Conflicts: [17:09] CIA-101: libuv: src/win/util.c - http://git.io/kIhznQ [17:09] bEEEviz has joined the channel [17:09] caolanm has joined the channel [17:10] tjfontaine: fantastikibne: why are you specifying the ip of the webserver? dns load balancing is used for a reason [17:10] zemanel has joined the channel [17:10] zivester has joined the channel [17:10] fantastikibne: tjfontaine: i dont want nodejs lose time with dns requests [17:10] Destos has joined the channel [17:11] fantastikibne: i already know the ip :p [17:11] tjfontaine: fantastikibne: you are fighting the wrong battles [17:11] cmr: fantastikibne: Don't worry about it... [17:11] cmr: fantastikibne: go use https://github.com/mape/node-profile, find out what the bottleneck is [17:11] bEEEviz has joined the channel [17:11] maritz: bnoordhuis: is --prof documented somewhere on nodejs.org? didn't find it right now. [17:11] ph^ has joined the channel [17:12] cmr: maritz: in the man page [17:12] maritz: cmr: oh, ok. thanks :) [17:12] cmr: I suspect it's a v8 option, could be wrong [17:12] bnoordhuis: maritz: `node --v8-options` will print help [17:12] maritz: fantastikibne: i would suggest first querying a dummy server you create to make sure it's not facebook that is cockblocking you :P [17:12] booo has joined the channel [17:13] maritz: cool, thanks [17:13] Kunda has joined the channel [17:13] fantastikibne: i can make 100x faster requests to local server :/ [17:13] shadowshell has joined the channel [17:13] tjfontaine: yes, the internet is not local [17:14] maritz: holy shit, you can enable harmony stuff in nodejs just by option flag? awesome :) [17:14] bEEEviz has joined the channel [17:14] kmiyashiro has joined the channel [17:14] Aikar: maritz: note, means you cant use it in shared libraries yet :P [17:14] fernandezpablo85 has joined the channel [17:14] kenperkins has joined the channel [17:15] maritz: Aikar: i'm not sure what you mean, especially with the first part of your sentence :D [17:15] franciscallo has joined the channel [17:16] jergason has joined the channel [17:16] pradeebv has joined the channel [17:16] Aikar: maritz: if you write code that is designed to be an npm module, you cant rely on harmony features cause most people wont be running node with the flags [17:16] shadowshell has joined the channel [17:17] maritz: Aikar: yeah, i know. but it's awesome to do some fun experiments with harmony :) [17:18] Aikar: ill be happy when its default on [17:18] Aikar: proxies would be nice [17:18] ryanrolds_w has joined the channel [17:18] tomh has joined the channel [17:19] LeMike has joined the channel [17:23] mark_azevedo has joined the channel [17:23] stonebra_ has joined the channel [17:24] thalll has joined the channel [17:24] TooTallNate has joined the channel [17:24] bEEEviz has joined the channel [17:24] captain_morgan has joined the channel [17:25] aslant has joined the channel [17:25] appr has joined the channel [17:25] sh1mmer has joined the channel [17:26] carlyle has joined the channel [17:26] bEEEviz has joined the channel [17:26] fernandezpablo85 has joined the channel [17:27] amasad has joined the channel [17:28] igl1 has joined the channel [17:28] yawNO has joined the channel [17:28] davehamptonusa has joined the channel [17:29] justicefries has joined the channel [17:29] amasad_ has joined the channel [17:30] TheJH has joined the channel [17:31] kuebk has joined the channel [17:32] moonlite_ has joined the channel [17:32] stisti has joined the channel [17:32] isaacs has joined the channel [17:33] hipsters_ has joined the channel [17:33] rmoriz has left the channel [17:33] marienz has joined the channel [17:35] mmalecki: isaacs: hey [17:35] yawNO has joined the channel [17:35] mmalecki: isaacs: or wait, you're in #travis as well, it's more relevant there ;) [17:35] jakehow has joined the channel [17:37] broofa has joined the channel [17:37] pokoli has joined the channel [17:37] bradwright has joined the channel [17:39] nym has joined the channel [17:39] tomh has joined the channel [17:39] chunhao_ has joined the channel [17:40] dnyy has joined the channel [17:40] aslant has joined the channel [17:41] tylerstalder has joined the channel [17:42] heatxsink has joined the channel [17:42] jtsnow has joined the channel [17:42] cmwelsh has joined the channel [17:43] svnlto has joined the channel [17:43] iaincarsberg has joined the channel [17:43] Venom_X has joined the channel [17:44] owenb has joined the channel [17:44] sriley has joined the channel [17:44] Hosh has joined the channel [17:44] Cromulent has joined the channel [17:44] Raynos has joined the channel [17:44] Apathetic has joined the channel [17:44] ryanseddon has joined the channel [17:44] Apathetic: would node.js work in a browser with javascript disabled? xD [17:44] martndemus has joined the channel [17:45] indexzero has joined the channel [17:45] yawNO: Apathetic: yes [17:45] fernandezpablo85 has joined the channel [17:45] remysharp has joined the channel [17:46] tanepiper has joined the channel [17:46] ec has joined the channel [17:46] jayniz has joined the channel [17:46] jayniz has joined the channel [17:46] jayniz has joined the channel [17:46] dnjaramba_ has joined the channel [17:46] uptownben: I'm stuck, can't figure out why npm is giving me this error after a node re-install: npm ERR! error installing tar@0.1.12 [17:47] terite has joined the channel [17:47] tiglionabbit has joined the channel [17:48] JKarsrud has joined the channel [17:48] EhevuTov has joined the channel [17:48] ryanrolds_w: What version of node? [17:49] dscape has joined the channel [17:49] luxigo_ has joined the channel [17:50] patcito has joined the channel [17:50] ralph has joined the channel [17:50] dnjaramba has joined the channel [17:50] trotter has joined the channel [17:51] Fabryz has joined the channel [17:51] olegp has joined the channel [17:51] wolfeidau has joined the channel [17:51] fernandezpablo86 has joined the channel [17:51] sotosof has left the channel [17:51] wycats has joined the channel [17:51] niftylettuce has joined the channel [17:53] luke` has joined the channel [17:53] luxigo has joined the channel [17:53] luke`_ has joined the channel [17:54] ilon_ has joined the channel [17:54] Apathetic has joined the channel [17:54] hz has joined the channel [17:55] davehamptonusa has left the channel [17:55] robde has joined the channel [17:55] lz has joined the channel [17:55] phidah has joined the channel [17:55] Skaag_ has joined the channel [17:56] jetienne_ has joined the channel [17:56] TheFuzzball has joined the channel [17:56] chuckyorg has joined the channel [17:57] mcluskydodallas has joined the channel [17:57] tomyan has joined the channel [17:58] justicefries has joined the channel [17:58] dexter_e has joined the channel [17:58] jgaui2 has joined the channel [17:58] Venom_X has joined the channel [17:58] broofa_ has joined the channel [17:59] jeremyselier has joined the channel [17:59] N0va` has joined the channel [18:00] justicefries has joined the channel [18:00] svnlto has joined the channel [18:00] tomlion has joined the channel [18:00] salva has left the channel [18:01] Apathetic: i'm successfully installed node.js on my windows pc with the installer provided in the website, now what's next? [18:01] jayniz has joined the channel [18:01] jayniz has joined the channel [18:01] jayniz has joined the channel [18:01] Aikar: Apathetic: code [18:01] blup has joined the channel [18:01] sorensen__ has joined the channel [18:02] sriley has joined the channel [18:02] moonlite_ has joined the channel [18:03] jetienne_ has joined the channel [18:03] terite has joined the channel [18:04] ec has joined the channel [18:04] aslant has joined the channel [18:04] c4milo has joined the channel [18:04] postwait has joined the channel [18:05] `3rdEden has joined the channel [18:06] Raynos has joined the channel [18:06] sveisvei has joined the channel [18:07] mrb_bk has joined the channel [18:07] westc has joined the channel [18:07] yawNO: Aikar: really? [18:07] yawNO: i would never have thought so [18:07] RexM has joined the channel [18:07] tdegrunt has joined the channel [18:07] majek has joined the channel [18:08] daleharvey has joined the channel [18:08] strmpnk has joined the channel [18:09] chunhao_ has joined the channel [18:10] Aikar: yawNO: what do you mean? [18:10] fernandezpablo85 has joined the channel [18:11] Morkel has joined the channel [18:11] willwhite has joined the channel [18:11] yawNO: Aikar: Apathetic: code [18:11] yawNO: made me laugh irl lol [18:11] Aikar: (not sure if your making a sarcastic reply to my 'code' comment, or replying to my statement about defaulting and proxies) [18:11] Aikar: lol [18:11] gregmoreno has joined the channel [18:11] yawNO: nice reply [18:11] yawNO: i'm having quite a bad tome w/ mongoose [18:11] owenb has joined the channel [18:12] yawNO: no time to read everything [18:12] yawNO: :P [18:12] yawNO: *time [18:12] jgaui2 has joined the channel [18:12] wycats has joined the channel [18:12] tiglionabbit has joined the channel [18:13] olegp has joined the channel [18:13] fcoury has joined the channel [18:13] pksunkara has joined the channel [18:14] mansoor: :O there are more people in #node than in #javascript interesting [18:14] yawNO: because we're preparing an invasion [18:14] sarlalian has joined the channel [18:14] mansoor: :D [18:14] yawNO: we shall defeat clientside js [18:14] yawNO: and bring ssjs goodness to the world [18:14] torvalamo: oh god [18:14] peregrine81 has joined the channel [18:14] mansoor: #jquery has 928 users [18:14] yawNO: FOR THE WORLD! [18:15] yawNO: crap ;_; [18:15] yawNO: you've just ruined my day [18:15] mansoor: :( [18:15] yawNO: thank you mansoor [18:15] westc: :( [18:15] torvalamo: but the people in jquery aren't using javascript [18:15] yawNO: still 7.15 pm [18:15] napperjabber_ has joined the channel [18:15] mansoor: YESS!! torvalamo++ [18:15] torvalamo: just like people who use coffeescript don't use javascript [18:15] yawNO: not really much left to fuin [18:15] LeMike has joined the channel [18:15] wingie has joined the channel [18:15] cjm: NodeUp:11 is up, a deep dive into databases with mranney nunojob dshaw mikeal and izs! Get it here, http://nodeup.com/eleven [18:15] yawNO: torvalamo: i use cs :( [18:15] yawNO: and js :) [18:16] yawNO: but mainly cs :( [18:16] torvalamo: i use only js [18:16] mansoor: yawNO: coffeescript is the devil's spawn [18:16] torvalamo: not because i love it, but because i hate abstractions [18:16] yawNO: Y U PURIST [18:16] Hanspolo has joined the channel [18:16] yawNO: mansoor: no it's not [18:16] mansoor: torvalamo: what kind of abstractions? [18:16] cjm: http://news.ycombinator.com/item?id=3471287 [18:16] torvalamo: jquery, etc [18:16] yawNO: it's world's most misunderstood programming lang [18:16] torvalamo: bad example [18:17] yawNO: wait that's js but works anyway ^_^ [18:17] relix has joined the channel [18:17] mansoor: torvalamo: they are good, if you don't want to start from scratch every little project [18:17] yawNO: i hate jQuery [18:17] mansoor: they arne't good for learning, but for actually building stuff they are exellent [18:17] yawNO: ruins js [18:17] torvalamo: you know you can reuse code [18:17] yawNO: *it [18:17] Aikar: how does jquery ruin js? [18:17] Aikar: and cs doesnt? [18:17] yawNO: because [18:17] torvalamo: you don't have to start from scratch if you're making something that's similar to what you've done before [18:17] mansoor: torvalamo: and what are abstractions then if not reuse of code? :) [18:17] teadict: cs? [18:18] teadict: oh [18:18] yawNO: cs is a language that compiles INTO js [18:18] teadict: yes, coffee [18:18] teadict: I hate it [18:18] Aikar: and JQ is JS [18:18] torvalamo: mansoor, one thing is abstraction across projects, but abstracting something that you only need once in a project is pointless [18:18] yawNO: jQuery is a runtime lib [18:18] torvalamo: and the definition of bloat [18:18] mansoor: jquery is what gave javascript a second life in the "web 2.0" phase [18:18] yawNO: so [18:18] markq: I ONLY use MochaScript [18:18] perezd has joined the channel [18:18] mansoor: torvalamo: ofcourse that would be silly [18:18] yawNO: all the checks it has to do to preserve crossbrowser [18:18] Aikar: jquery is pretty much the same concept of node_modules, are you against using libraries in general? [18:18] torvalamo: i use torvalamoscript [18:18] torvalamo: it's full of bad code [18:18] yawNO: it slows a lot [18:19] yawNO: plus [18:19] mansoor: jquery slows? :O [18:19] agnat has joined the channel [18:19] teadict: "Oh, I'm a pythonista, but OMG! I need to write a website! WHAT WILL I DO?! No way I'm learning JS like I should, it's too weirdish looking.. nuh huh, I'm gonna build a motherfucking js generator with python! YEAH!" [18:19] mansoor: if anyting its speeds you up [18:19] Aikar: yawNO: its a required sacrifice for working in in a web industry [18:19] mansoor: unless you are a clientside JS ninja [18:19] markq: sometimes I have to switch over to ExpressoScript though [18:19] mansoor: its highly optomized [18:19] tomyan has joined the channel [18:19] Aikar: the only option is to just not support IE [18:19] torvalamo: no, use libraries, that's fine.. libraries have a function.. jquery doesn't have a function other than making js look nicer and does extra shit you don't need [18:19] yawNO: Aikar: but my point is mainly another [18:19] mansoor: torvalamo: :O have you done much clientside developement? [18:19] yawNO: jQuery is a whole new language [18:20] torvalamo: yesh [18:20] yawNO: still [18:20] teadict: jquery keeps winning because it has a lot of plugins that do shit automagically [18:20] Aikar: no its not [18:20] yawNO: it pretends to be JS [18:20] Aikar: its javascript [18:20] teadict: jquery's core is nothing more than underscore [18:20] mansoor: jquery ises imderscpre [18:20] mansoor: ? [18:20] teadict: yawNO: it is js [18:20] mansoor: *uses underscore [18:20] yawNO: at least CS is known to be another lang [18:20] yawNO: teadict: it has so many helpers [18:20] torvalamo: i use a lot of libraries, but i tie them together myself, and tailor them to each project.. i don't type $.makeMagicPlx('some stuff that does something') and call it a day [18:20] teadict: so? [18:20] yawNO: that the real js you use [18:20] dscape has joined the channel [18:21] yawNO: is just numbers, strings, arrays and ibjs [18:21] jhooks has joined the channel [18:21] yawNO: *objs [18:21] mansoor: my library is better than yours [18:21] torvalamo: yes [18:21] yawNO: if you learn jQuery [18:21] markq: is this REALLY a fight over if CS or jQuery is an independent language? [18:21] yawNO: you don't learn JS [18:21] markq: come on guys [18:21] niftylettuce has joined the channel [18:21] mansoor: markq, i don't even know anymore :( [18:21] yawNO: if you learn CS, you don't learn JS either [18:21] teadict: markq: no, is about yawNO not seeing correctly what's what [18:22] Kunda has joined the channel [18:22] yawNO: but don't pretend jQuery to be JS :P [18:22] torvalamo: all i said was the people in jquery aren't using js [18:22] torvalamo: :p [18:22] yawNO: agree [18:22] yawNO: :P [18:22] mansoor: disagree [18:22] torvalamo: in the context of node being the main js thing [18:22] torvalamo: or taking over the world, as it were [18:22] robotmay has joined the channel [18:22] yawNO: i mean... i've used jQuery a lot [18:22] yawNO: i still use it [18:22] markq: jQuery is syntatic sugar for JS [18:22] markq: nothing more [18:22] mansoor: most jquery users are nubs and designers but its still javascript, NEAR macro javascript, but javascript non-the-less [18:22] yawNO: see SammyJS or stuff like that [18:23] plutoniix has joined the channel [18:23] yawNO: but i don't feel like i'm using JS w/ jQuery [18:23] teadict: what mansoor said [18:23] yawNO: it's more of a dialect :P [18:23] torvalamo: technically it's js syntax, but show people non-jquery js and they won't know wtf is going on [18:23] yawNO: exactly [18:23] bradwright has joined the channel [18:23] chrisdickinson: jquery hides a lot of how javascript works. [18:23] teadict: yawNO: you're "using" it [18:23] yawNO: teadict: yep i am [18:23] chrisdickinson: i'm a "huge" "fan" of how it aliases $.prototype to $.prototype.fn. [18:23] markq: and I firmly believe that if you haven't used JS BEFORE jQuery then you've set yourself up for trouble [18:24] chrisdickinson: or, rather, $.prototype -> $.fn. [18:24] yawNO: markq: agree [18:24] yawNO: the last part i mean [18:24] markq: jQuyery masks a lot of things about JS that the developer needs to know to be a successful developer [18:24] yawNO: exactly [18:24] eldar has joined the channel [18:24] yawNO: if you use jQuery [18:24] teadict: this is all IE's fautl [18:24] yawNO: after learning JS [18:24] fernandezpablo85 has joined the channel [18:24] yawNO: it's just fine [18:25] yawNO: but learning jQuery first.. will totally take you in the wrong path [18:25] torvalamo: i used jquery for a whole project once (yes i had the patience) and the amount of times i had to code OUTSIDE jquery's model made me want to hunt down whoever wrote it [18:25] torvalamo: leaky abstractions [18:25] torvalamo: it's gonna happen [18:25] chrisdickinson: aside from the weirder parts of jQuery -- the aliasing of prototype, the fact that it packs every single utility function under the sun into the library, and the fact that it's version of the ES5 array methods don't match their signature -- it's not a bad thing to pick up. [18:25] draginx has joined the channel [18:25] jetienne_ has joined the channel [18:26] chrisdickinson: and it certainly reflects the time it was made in -- there really wasn't a good way to modularize those components at the time. [18:26] draginx: is there any reason why socket.on('connection'); works fine but socket.send() on the client-side wont send? [18:26] markq: having said that it's completely up to the developer whether or not to code in jQuery syntatic sugar or to code in JS without any sugar. But remember guys: Too much sugar can cause diabetes :O [18:26] yawNO: lol [18:26] yawNO: anyway [18:26] GrandMa has joined the channel [18:26] torvalamo: draginx, are you receiving it properly? [18:27] yawNO: if you have to use a lib [18:27] chrisdickinson: just pedantry: it's not syntactic sugar. it's just library sugar :) [18:27] yawNO: at least use sonething like [18:27] yawNO: mootols [18:27] yawNO: which extends JS [18:27] torvalamo: it's syntactic syrup [18:27] markq: agreed ^ [18:27] chrisdickinson: coffeescript -- with its language changes -- is syntactic sugar. jquery is just a library. [18:27] willwhite has joined the channel [18:27] draginx: torvalamo: uhh socket.on('connection') does execute when I go to the page... [18:27] yawNO: but cs is a new language [18:27] draginx: but socket.on('message') doesn't pick anything up [18:27] yawNO: that is common knowledge [18:27] draginx: when im just trying to socket.send('hello'); [18:27] yawNO: if you learn cs you can't code js [18:28] chrisdickinson: yeah, but calling jquery syntactic sugar is strictly wrong. [18:28] yawNO: good js i mean [18:28] chrisdickinson: that's... not exactly true either. it's worth spending some time with CS. [18:28] josh-k has joined the channel [18:28] markq: jQuery is a library which makes common JS stuff syntactically pleasing [18:28] JasonSmith has joined the channel [18:28] yawNO: chrisdickinson: i use CS [18:28] yawNO: but i've used JS before [18:29] whoops has joined the channel [18:29] yawNO: the point of using CS [18:29] lmatteis has joined the channel [18:29] yawNO: is that you code 3x fastee [18:29] yawNO: *r [18:29] mansoor: bogus [18:29] isaacs: yawNO: i don't code 3x faster in CS [18:29] yawNO: it sucks a bit when it comes to debugging [18:29] chrisdickinson: *ymmv. [18:29] mansoor: you just learned to type faster when you started CS :p [18:29] yawNO: isaacs: i do [18:29] isaacs: i debug 3x slower in CS [18:29] markq: CS is not a new language [18:29] tanepiper has joined the channel [18:29] isaacs: you spend more time debugging than writing. [18:29] torvalamo: you're also making bulk js code through cs [18:29] yawNO: isaacs: i said that indeed debug is an issue [18:29] isaacs: seems like CS is optimizing the wrong problem. [18:29] markq: CS is a syntactically pleasing offshoot [18:29] isaacs: right [18:29] tuhoojabotti: CS = CounterStrike [18:29] sorensen__ has joined the channel [18:30] markq: lol [18:30] yawNO: lol^2 [18:30] torvalamo: boom headshot? [18:30] chrisdickinson: i definitely code 3x slower in CS, but when i turn around to test, or add features, or maintain the code i just sped through, i definitely lose that speed advantage. [18:30] cronopio has joined the channel [18:30] yawNO: come on [18:30] chrisdickinson: too much ambiguity in the language. [18:30] yawNO: check something like [18:30] teadict: WHAT tuhoojabotti SAID [18:30] chrisdickinson: also, too many free footguns. [18:30] chrisdickinson: but that's just me. others may have a better time with it. [18:31] teadict: Counter-Strike.js [18:31] yawNO: arr = (do item for item in array) [18:31] tuhoojabotti: Stop playing, and start codin'. [18:31] yawNO: and the js equivalent [18:31] yawNO: it IS faster [18:31] yawNO: compiled code is crap though [18:31] yawNO: i agree with that [18:31] teadict: depends [18:31] teadict: compiled C is not [18:31] chrisdickinson: it's not the compiled code in this case that irks me. [18:31] djcoin has joined the channel [18:32] chrisdickinson: if it really *was* better for me to use CS -- the whole way through -- I wouldn't mind the compile step / debug step. [18:32] isaacs: yawNO: what's the compiled version of arr = (do item for item in array)? [18:32] moonlite_ has joined the channel [18:32] yawNO: isaacs: do you really want to know? [18:32] yawNO: hold on [18:32] isaacs: yawNO: yes. [18:32] level09 has joined the channel [18:32] isaacs: because i don't know what you're talking about otherwise :) [18:32] chrisdickinson: my issue is that the language itself tried to trim *too* much out of javascript, and add too many ambiguous syntactic situations. [18:32] teadict: you're about to get owned.. [18:32] bLiNdRaGe has joined the channel [18:32] innoying has joined the channel [18:33] yawNO: isaacs: it's just that looks really weird.. np at all [18:33] yawNO: http://coffeescript.org/ [18:33] nicholasf has joined the channel [18:33] pizthewiz has joined the channel [18:33] yawNO: check the Math.cube example [18:33] yawNO: it's the same [18:33] teadict: that's not the analogy to what isaacs asked... [18:33] chrisdickinson: yawNO: arr = array.map(function(i) { return i() }) [18:34] isaacs: yawNO: and that mess is faster than cubes = list.map(math.cube)? [18:34] isaacs: are you sure? [18:34] clutchski has joined the channel [18:35] jerrysv has joined the channel [18:35] yawNO: =\ isaacs hold on i'm scrolling [18:35] torvalamo: net split! [18:35] chrispaterson has joined the channel [18:35] torvalamo: finish your drinks [18:35] isaacs: yawNO: and that mess is faster than cubes = list.map(math.cube)? [18:35] isaacs: are you sure? [18:35] mrb_bk has joined the channel [18:35] wolfeidau has joined the channel [18:35] isaacs: (what i'd said pre-split ^) [18:35] yawNO: thx lol [18:35] criswell has joined the channel [18:35] isaacs: it's not more debuggable. [18:35] isaacs: brb [18:36] chrisdickinson: i think the big problem i've got is that when revisiting coffeescript code, it's largely illegible. [18:36] mansoor: Anyone intrested in working on a kickass 3d webgl based game? [18:36] mansoor: full stack JS :D [18:36] yawNO: you are right about this, isaacs_away [18:36] yawNO: nothing ti say [18:36] sotosof has joined the channel [18:36] aGHz has joined the channel [18:36] pksunkara has joined the channel [18:36] torvalamo: that is some ugly js that output [18:36] willwhite has joined the channel [18:36] yawNO: it always is w/ cs [18:36] terite has joined the channel [18:37] tomh has joined the channel [18:37] torvalamo: it's like they made the output long and ugly on purpose to make the cs side look better [18:37] mraleph has joined the channel [18:37] tanepiper has joined the channel [18:37] torvalamo: :p [18:37] yawNO: haha [18:38] iaincarsberg has joined the channel [18:38] yawNO: map is >= IE9 though [18:38] lmatteis has joined the channel [18:38] chrisdickinson: yawNO: just use es5shim. [18:38] colinclark has joined the channel [18:38] tuhoojabotti: ES = EuroShopper (popular energy drink (cheap) consumed by teens here.) [18:38] mxbtty has joined the channel [18:39] yawNO: isaacs_away: still something like classes or functions is faster in ca [18:39] yawNO: *cs [18:39] mAritz has joined the channel [18:39] yawNO: although the debug issue remains [18:39] charlenopires has joined the channel [18:39] mikedeboer has joined the channel [18:40] jeremyselier has joined the channel [18:40] torvalamo: also the elvis one... alert "I knew it!" if elvis? can be made nice in js with elvis ? alert('I knew it!') : null [18:40] torvalamo: nothing more to it [18:40] nym has joined the channel [18:40] torvalamo: no need for that ugly if [18:40] fcoury has joined the channel [18:40] lmatteis has joined the channel [18:40] sveisvei has joined the channel [18:40] tomh has joined the channel [18:41] torvalamo: undefined and null are false anyways [18:41] mikeal has joined the channel [18:41] mansoor: Do people really use null? [18:41] torvalamo: sure thing sweetie [18:41] yawNO: ? is an if anyway [18:41] RexM has joined the channel [18:41] ralph has joined the channel [18:41] mansoor: torvalamo: why pumpkin? [18:41] yawNO: mansoor: i do [18:41] mansoor: :( [18:41] torvalamo: null is uninitialized [18:41] torvalamo: essentially [18:41] yawNO: i do also use void 0 btw lol [18:42] mansoor: you ahve to go out of your way to assign null, if you do `undefined` thats its defautl value anyway [18:42] ec has joined the channel [18:42] torvalamo: it's a value that intentionally isn't a value [18:42] terite has joined the channel [18:42] torvalamo: undefined is a value that unintentionally isn't a value [18:42] mansoor: right, what advantage does that have [18:42] torvalamo: tells you there wasn't an error [18:42] torvalamo: compared to undefine [18:42] torvalamo: d [18:42] olegp has joined the channel [18:42] torvalamo: or stuff [18:42] dnyy has joined the channel [18:42] mansoor: if there was an error an error should be thrown [18:42] yawNO: arg [18:42] svnlto has joined the channel [18:42] mansoor: or an error passed back to callback [18:43] torvalamo: the thing that detects the error checks for undefined or null [18:43] torvalamo: then throws it [18:43] torvalamo: if undefined [18:43] torvalamo: innit [18:43] torvalamo: exceptions don't come about from magic [18:44] robde_ has joined the channel [18:44] disappearedng has joined the channel [18:44] ryanseddon has joined the channel [18:44] remysharp has joined the channel [18:44] mansoor: right undefined is all thats really needed, no need for null [18:44] gr-eg has joined the channel [18:45] tanepiper has joined the channel [18:45] CIA-101: node: 03Maciej Małecki 07master * rd5047f5 10/ lib/http.js : http: use `util._deprecationWarning` for deprecation warning - http://git.io/5CnG5g [18:46] justicefries has joined the channel [18:46] _unary has joined the channel [18:46] isaacs: ACTION back [18:47] bnoordhuis: .. undefined=42 [18:47] catb0t: 42 [18:47] bnoordhuis: .. null=42 [18:47] catb0t: Exception: ReferenceError: Invalid left-hand side in assignment [18:47] markq: who's catb0t? [18:47] catb0t: who's getting paid by [18:47] torvalamo: .. undefined=42; undefined [18:47] catb0t: [18:47] aaronmcadam has joined the channel [18:47] bnoordhuis: ^ one possible reason to use null instead of undefined [18:47] markq: .. null [18:47] catb0t: null [18:47] isaacs: yawNO: classes in JS are fine, i think [18:48] dscape has joined the channel [18:48] isaacs: i use them a lot [18:48] markq: .. null===undefined [18:48] catb0t: false [18:48] isaacs: the CS-generated JS clases are crazy, though [18:48] markq: .. null==undefined [18:48] catb0t: true [18:48] joshkehn has joined the channel [18:48] joshkehn has left the channel [18:48] torvalamo: .. test [18:48] catb0t: 3 [18:48] torvalamo: uhm [18:48] tkaemming has joined the channel [18:48] relix has joined the channel [18:48] markq: .. dog [18:48] catb0t: Exception: ReferenceError: dog is not defined [18:48] markq: .. dogb0t [18:48] catb0t: Exception: ReferenceError: dogb0t is not defined [18:49] torvalamo: isn't it supposed to be sandboxed? [18:49] tiglionabbit has joined the channel [18:49] Aikar: isaacs: is strawman (i dont think classes is part of harmony is it?) classes in v8 yet under any flags? [18:49] torvalamo: how come test == 3? [18:49] garrensm_ has joined the channel [18:49] torvalamo: .. test == 3 [18:49] catb0t: true [18:49] markq: .. test=4 [18:49] catb0t: 4 [18:49] markq: .. test [18:49] catb0t: 4 [18:49] torvalamo: .. test == 3 [18:49] catb0t: false [18:49] markq: =:P [18:49] jayniz has joined the channel [18:49] jayniz has joined the channel [18:49] jayniz has joined the channel [18:49] torvalamo: someone has a bug to fix [18:49] markq: .. test = 50 [18:49] catb0t: 50 [18:49] markq: .. test==50 [18:49] catb0t: true [18:49] tomyan has joined the channel [18:49] johnmdonahue has joined the channel [18:49] Wizek has joined the channel [18:49] torvalamo: .. dog [18:49] catb0t: Exception: ReferenceError: dog is not defined [18:50] torvalamo: .. dog == null [18:50] catb0t: Exception: ReferenceError: dog is not defined [18:50] torvalamo: .. dog === null [18:50] catb0t: Exception: ReferenceError: dog is not defined [18:50] bburhans has joined the channel [18:50] torvalamo: .. dog === undefined [18:50] catb0t: Exception: ReferenceError: dog is not defined [18:50] torvalamo: .. dog == undefined [18:50] catb0t: Exception: ReferenceError: dog is not defined [18:50] markq: .. dog = 'catb0t's worst enemy' [18:50] catb0t: Exception: SyntaxError: Unexpected identifier [18:50] ppcano has joined the channel [18:50] markq: .. dog [18:50] catb0t: Exception: ReferenceError: dog is not defined [18:50] torvalamo: you dig dog [18:50] niftylettuce has joined the channel [18:50] majek has joined the channel [18:50] markq: .. hotdog=test [18:50] catb0t: 50 [18:50] torvalamo: apostrophe [18:50] torvalamo: error [18:50] Aikar: and I think people hate on the word "classes" too much. like harmony/strawman classes are still pretty much the exact same thing as typical inheritance in JS, just with a much cleaner syntax. [18:50] markq: .. hotdog [18:50] catb0t: 50 [18:50] JasonSmith has joined the channel [18:51] whoops has joined the channel [18:51] markq: irc JS is fun [18:51] Aikar: its not like the inheritance model is completely different [18:51] Raynos has joined the channel [18:51] mansoor: ..1++ [18:51] mansoor: .. 1 [18:51] catb0t: 1 [18:51] mansoor: .. 1++ [18:51] catb0t: Exception: ReferenceError: Invalid left-hand side expression in postfix operation [18:51] isaacs: yawNO: also, functions in CS are... weird. [18:51] fernandezpablo85 has joined the channel [18:51] markq: .. console.log [18:51] catb0t: Exception: ReferenceError: console is not defined [18:51] Aikar: . global [18:51] Aikar: .. global [18:51] sriley has joined the channel [18:51] catb0t: Exception: ReferenceError: global is not defined [18:51] Aikar: .. this [18:51] catb0t: { [object global] } [18:51] Aikar: .. this.global [18:51] catb0t: [18:51] mansoor: .. JSON [18:51] catb0t: { [object JSON] } [18:52] owenb has joined the channel [18:52] mansoor: .. JSON.stringify(this) [18:52] catb0t: "{"emitter":{},"a":{"attr":3},"x":"2","z":"a","test":50,"hotdog":50}" [18:52] Aikar: .. Object.keys(this) [18:52] catb0t: [ "print", "emitter", "emit", "a", "x", "z", "l", "test", "hotdog" ] [18:52] mansoor: this.x [18:52] yawNO: isaacs: i like funcs in CS [18:52] mansoor: .. this.x [18:52] catb0t: "2" [18:52] pksunkara has joined the channel [18:52] torvalamo: .. JSON.stringify(this.global) [18:52] catb0t: [18:52] yawNO: the only thing that sucks [18:52] yawNO: is autoreturn [18:52] torvalamo: .. this.global.test [18:52] catb0t: Exception: TypeError: Cannot read property 'test' of undefined [18:52] mansoor: .. module [18:52] catb0t: Exception: ReferenceError: module is not defined [18:52] isaacs: yawNO: the whitespace sensitivity, and lack of (), makes my brain hurt a lot. [18:52] isaacs: when reading CS code [18:52] yawNO: but because it was implemented poorly [18:53] yawNO: ruby autoreturn is cool, cs' isn't :( [18:53] isaacs: yawNO: also, autoreturn, man. [18:53] benvie: .. (function(g){Object.getOwnPropertyNames(g).reduce(function(r,s){r[s]=g[s];return r},{})})(this) [18:53] catb0t: [18:53] markq: .. JSON [18:53] catb0t: { [object JSON] } [18:53] isaacs: that just is a hazard. [18:53] benvie: .. (function(g){return Object.getOwnPropertyNames(g).reduce(function(r,s){r[s]=g[s];return r},{})})(this) [18:53] catb0t: { TypeError:[Function: TypeError], decodeURI:[Function: decodeURI], print:[Function: print], parseFloat:[Function: parseFloat], Number:[Function: Number], URIError:[Function: URIError], emit:[Function... [18:53] isaacs: you *always* end up leaking some garbage. [18:53] yawNO: isaacs: already said :P [18:53] mrb_bk has joined the channel [18:53] yawNO: yep [18:53] mansoor: lets try an infinate loop [18:53] isaacs: i know, i'm agreeing with you :) [18:53] bnoordhuis: uh guys? you can also pm catb0t [18:53] catb0t: guys your comment are very apprecially also [18:53] yawNO: i check compiled code infact [18:53] cpaterson has joined the channel [18:53] markq: .. bacon [18:53] jxson has joined the channel [18:53] catb0t: Exception: ReferenceError: bacon is not defined [18:53] bradwright has joined the channel [18:54] dharmesh has joined the channel [18:54] yawNO: but isaacs [18:54] mansoor: .. (function foo() { function() {foo();} })(); [18:54] catb0t: Exception: SyntaxError: Unexpected token ( [18:54] isaacs: catb0t: will the real catb0t please stand up? [18:54] catb0t: please what library is good for password crypting with salt is pretty good as it gets to the registry and see what the deal with make at happens stand [18:54] markq: .. unexpected token [18:54] catb0t: Exception: SyntaxError: Unexpected identifier [18:54] yawNO: my first progr lang was pg [18:54] yawNO: *py [18:54] Aikar: .. Object.keys(this) [18:54] catb0t: [ "print", "emitter", "emit", "a", "x", "z", "l", "test", "hotdog" ] [18:54] Aikar: hmm [18:54] mansoor: .. ( function foo() {})() [18:54] catb0t: [18:54] isaacs: yawNO: that's ok. a lot of people have recovered from such an affliction. [18:54] yawNO: so i don't mind grammar nazi syntax [18:54] Aikar: 'this' on catbot is diff from PM vs channel [18:54] mansoor: .. ( function foo() { foo(); })() [18:54] catb0t: Exception: RangeError: Maximum call stack size exceeded [18:54] isaacs: yawNO: you can too! [18:54] markq: .. A++ [18:54] catb0t: Exception: ReferenceError: A is not defined [18:54] isaacs: yawNO: ;) [18:55] yawNO: isaacs: haven't used py for 2,5 years [18:55] yawNO: and counting [18:55] isaacs: my first language was Basic [18:55] yawNO: i was net-born in 2008 [18:55] mansoor: .. ( function foo() { throw "foo!!"; })() [18:55] catb0t: Exception: foo!! [18:55] isaacs: 2008!!??? [18:55] yawNO: yep [18:55] isaacs: ACTION feels old. [18:55] mansoor: .. ( function foo() { throw new Error; })() [18:55] catb0t: Exception: Error [18:55] chilts: same, on the ZX Spectrum 48k (with the rubber keys) :) [18:55] mansoor: .. ( function foo() { throw; })() [18:55] catb0t: Exception: SyntaxError: Unexpected token ; [18:55] yawNO: but i had internet late [18:55] Fabryz has joined the channel [18:56] dnjaramba has joined the channel [18:56] yawNO: started coding at 16-17 [18:56] isaacs: yawNO: where you from? [18:56] yawNO: italy [18:56] yawNO: so ueah [18:56] isaacs: yawNO: you mean you were 16 in 2008, or that you started coding a long time ago, but didn't have internet for some reason until 2008? [18:56] strmpnk has joined the channel [18:57] chilts: net-born - got internet (I think) [18:57] yawNO: started coding in 2008 [18:57] chilts: ACTION has never heard that before :) [18:57] mansoor: .. 9999*99999 [18:57] catb0t: 999890001 [18:57] yawNO: python, perl [18:57] yawNO: then C [18:57] mmalecki: I started coding when I was like 12 or even earlier [18:57] Edy has joined the channel [18:57] yawNO: got through PHP [18:57] Edy has joined the channel [18:57] isaacs: yawNO: so.... you've been coding for 4 years total, making you,what, 20? [18:57] AndreasMadsen: .. [0] != ![0] [18:57] mansoor: I started when i was 10 :p VB 6.0 [18:57] catb0t: false [18:57] yawNO: 19 [18:57] yawNO: isaacs: ^ [18:57] torvalamo: i started with mirc script [18:57] torvalamo: anyone? [18:57] isaacs: yawNO: awesome. [18:57] mmalecki: I sterted with delphi [18:57] dshaw_ has joined the channel [18:58] _unary has joined the channel [18:58] isaacs: yawNO: go write 10000 lines of CS and 10000 lines of JS. find a big problem, and go solve it, then another one, and go solve it in the other language. [18:58] yawNO: isaacs: i know people that are a year older then me [18:58] isaacs: yawNO: it will change your life. [18:58] chilts: I'm still happy my first real program was in Amos Basic on the Amiga :) [18:58] Hosh has joined the channel [18:58] yawNO: they know 3 times what i know [18:58] robde has joined the channel [18:58] yawNO: ain't that awesome [18:58] yawNO: :P [18:58] daleharvey has joined the channel [18:58] torvalamo: don't get your hopes up [18:58] Nss_ has joined the channel [18:58] yawNO: i won't [18:58] torvalamo: :P [18:59] yawNO: otherwise i would have left the internet [18:59] isaacs: 10Kloc isn't that much [18:59] yawNO: a long ago [18:59] Neil_ has joined the channel [18:59] mmalecki: actually, looks like I started when I was 9 - second class of elementary school [18:59] yawNO: italian coding scene is a lot like 4chan [18:59] devongovett has joined the channel [18:59] torvalamo: lol [18:59] yawNO: the good ones are the trolling ones [18:59] cpaterson: /ignore -channels #mwsf * JOINS PARTS QUITS NICKS [18:59] konobi: isaacs: any ryah today? [18:59] yawNO: you get used to it :P [18:59] isaacs: konobi: doubtful [18:59] isaacs: is mlk jr day [19:00] yawNO: isaacs: i'm coding a webservice w/ cs [19:00] yawNO: as soon as i face some troubles [19:00] yawNO: i'll let you know [19:00] isaacs: :) [19:00] isaacs: kelw [19:00] yawNO: not really [19:00] isaacs: always good to get first-hand accounts. [19:00] yawNO: it would mean i've faced some troubles :P [19:00] konobi: isaacs: mkay... i know how to fix that snapshot issue... but it's a little involved... may just be better as extra configure flags [19:00] wycats has joined the channel [19:00] joshsmith_ has joined the channel [19:01] fernandezpablo85 has joined the channel [19:01] MrTopf has joined the channel [19:01] cpaterson: Hey @isaacs thanks for npm! [19:01] mikeal has joined the channel [19:02] jtsnow has joined the channel [19:02] yawNO: yeah, thx for discriminating poor little cs [19:02] yawNO: :( [19:02] torvalamo: it's not poor [19:03] draginx: so ya if socket.on('connection') works but socket.on('message') doesn't even when Im doing socket.send('hello'); client-side what could be some of the reasons as to why? [19:03] icrazyhack has joined the channel [19:03] torvalamo: are you checking for disconnects? [19:03] torvalamo: cuz it may disconnect just after it connected [19:03] yawNO: torvalamo: it makes cs :3 [19:03] torvalamo: if it's websockets or something [19:05] aGHz1 has joined the channel [19:05] khrome has joined the channel [19:05] torvalamo: draginx, it's not socket.send [19:05] jamund has joined the channel [19:06] torvalamo: it's socket.emit, according to the github readme [19:06] boltR has joined the channel [19:07] dcollison has joined the channel [19:07] jmoney has joined the channel [19:07] cmwelsh has joined the channel [19:07] _unary has joined the channel [19:07] pradeebv has joined the channel [19:08] torvalamo: nvm [19:08] torvalamo: faar down in the readme [19:08] torvalamo: was a socket.send :p [19:08] slpsys has joined the channel [19:08] josephmoniz has joined the channel [19:08] mcluskydodallas has joined the channel [19:09] jjido has joined the channel [19:09] dnjaramba_ has joined the channel [19:09] ank_ has joined the channel [19:10] tauren_ has joined the channel [19:10] chrisvwebdev has joined the channel [19:11] cesconix has joined the channel [19:14] [[zz]] has joined the channel [19:14] napperjabber_ has joined the channel [19:15] jtsnow has joined the channel [19:15] robde_ has joined the channel [19:16] draginx: torvalamo: right socket.send(0 should work [19:16] draginx: socket.emit also does not work =/\ [19:16] dnjaramba has joined the channel [19:16] markq: anyone think it's a good idea to use redis for session store and mongodb as the main database? [19:17] markq: I was thinking about redis for storing sessiosn because it's all in memory [19:17] mAritz1 has joined the channel [19:17] markq: anyone currently use this setup? [19:18] draginx: markq: I have and it works pretty wel [19:18] yawNO: derbyjs uses it [19:18] draginx: torvalamo: to be fair i am using session.io-session [19:18] yawNO: and it's a damn cool project [19:18] devaholic has joined the channel [19:18] markq: awesome [19:19] markq: i honestly think that's the best setup [19:19] yawNO: redis should be pretty performant when it comes to get/set for session [19:19] bingomanatee: markq: despite this being a tenable strategy -- I would point out that any time you have two repos you invite race conditions, bad synch issues, and versioning conditions. [19:19] yawNO: plus there's an adapter for connect [19:19] yawNO: which means that the whole thing makes sense [19:20] yawNO: brb [19:20] bingomanatee: so as long as you are doing things like storing IDs in session and data in Mongo you are probably fairly safe. But you should think long and hard as to what you store where. [19:20] markq: bingomanatee: agreed [19:20] maushu has joined the channel [19:20] githogori has joined the channel [19:21] yawNO has joined the channel [19:21] markq: yea I',m planning to store session ids only in redis and the data part in mongo [19:21] tmcw has joined the channel [19:21] bingomanatee: For instance, a shopping cart in Redis makse sense, buecause the data isn't "real" til they check out. (depending on your bus. model.) [19:21] yawNO: long time no see [19:21] langworthy has joined the channel [19:21] markq: bingomanatee: exactly [19:21] markq: that's what I had in mind [19:22] markq: all the non-persistant stuff in redis (or with minimal persistance) and everything else that is "permanent" so to speak, in mongo [19:22] markq: speeds up the chain [19:23] bingomanatee: But you do have to look out -- for instance, if you put data in your shopping cart about a given product and its product definition changes in Mongo you can get into issues. Especially if, for instance, you can keep shopping carts active in Redis for days on end. (People leave browsers open for a LONG time and page ajax can keep sessions alive all the while.) [19:23] euforic has joined the channel [19:23] markq: ah that's true [19:24] willwhite has joined the channel [19:24] thax has joined the channel [19:24] aGHz1 has joined the channel [19:24] markq: that's tricky [19:24] markq: what do you suggest then? [19:24] yawNO: am i dying? ping [19:25] dnjaramba has joined the channel [19:25] gseguin has joined the channel [19:25] yawNO: okay i'm not [19:25] bingomanatee: Mainly, only store keys in Redis -- perhaps in the cart case, keys and quantity -- not metadata. And validate all data taken out of Redis with Mongo. [19:25] bingomanatee: Lastly, if anyone ever wants to do the grunt work, I would be curious to see exactly how much faster Redis is than Mongo - given that its not storing formatted data I'm sure it is a bit faster -- but it would be interesting to set up a test scenario, in one case storing session AND app data in Mongo against session in Redis AND data in Mongo. [19:26] rijjo has joined the channel [19:26] jbpros has joined the channel [19:27] markq: the key is to not store metadata in redis [19:27] markq: and as you said to validate [19:27] rijjo: Can I escape characters into regexp with a regexp or something lol =) [19:27] rijjo: for example ! into \! etc [19:27] markq: validation really is a lifesaver [19:27] avalanche123 has joined the channel [19:28] prettyrobots has joined the channel [19:30] neilk_ has joined the channel [19:30] loucal has joined the channel [19:30] robde has joined the channel [19:30] mpereira has joined the channel [19:32] BrianE has joined the channel [19:32] mikeal has joined the channel [19:32] draginx has left the channel [19:32] Lingerance: rijjo: yes, that's how it's done. [19:32] Lingerance: If you're doing the new RegExp(str) way though, they need to be like: str = '\\!' [19:34] tomyan has joined the channel [19:36] joshkehn has joined the channel [19:36] grampajoe has joined the channel [19:36] bLiNdRaGe: i want to set up a very low cost session handling middleware in node.js . any suggestions? [19:36] BrianE: I think I have a problem. [19:36] yawNO: isaacs: look -> Thread.findById req.params.thread, (err, thread) -> [19:36] BrianE: I think I'm addicted to node.js. [19:37] yawNO: pure awesomeness [19:37] Me1000 has joined the channel [19:37] yawNO: it looks like natural human language [19:37] yawNO: :Q_ [19:37] dnjaramba has joined the channel [19:38] joshkehn has left the channel [19:41] criswell has joined the channel [19:42] jimt has joined the channel [19:42] tomtomaso has joined the channel [19:42] jhooks has joined the channel [19:45] slaskis has joined the channel [19:46] jaykub_ has joined the channel [19:47] CarterL has joined the channel [19:47] d0k has joined the channel [19:47] avalanche123 has joined the channel [19:47] tjholowaychuk has joined the channel [19:48] peregrine81 has joined the channel [19:49] xer0x has joined the channel [19:49] yawNO: i feel like a complete idiot [19:49] fernandezpablo85 has joined the channel [19:49] xer0x: me too [19:49] yawNO: post.author === req.user._id >> false [19:50] yawNO: console.log post.author >> 4f147e17f040d3eb0b000003 [19:50] yawNO: console.log req.user._id >> 4f147e17f040d3eb0b000003 [19:50] yawNO: console.log typeof post.author >> object [19:50] yawNO: console.log typeof req.user._id >> object [19:51] yawNO: any possible explanation? except nodejs broke down :( [19:51] jamund: is that a mongo object Id [19:51] jamund: maybe it is an object with a toString implementation different than saying [''object]' [19:51] AndreasMadsen has joined the channel [19:52] jamund: or maybe one of these https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/toSource (not exactly sure which console.log will try to use) [19:54] jamund: i guess if that were the case the comparison would likely work as well [19:54] yawNO: jamund: you are right :| [19:54] yawNO: using toString() on both works [19:54] yawNO: thx :| [19:54] jamund: nice. [19:54] jamund: does == work instead of === in that case [19:54] jamund: just wondering (without the toString) [19:54] yawNO: it did not [19:54] yawNO: i've tried [19:55] jamund: hmm okay [19:55] yawNO: weird [19:55] yawNO: :| [19:55] jamund: yeah a little weird [19:55] brian_ has joined the channel [19:55] jamund: is that mongoose or something [19:55] jamund: where are you getting that ojbect? [19:55] yawNO: yep [19:55] yawNO: mongoose [19:55] yawNO: still they should both be ObjectId [19:56] EndangeredMassa has joined the channel [19:56] yawNO: because req.user is an entry fetched from the db [19:56] jamund: well comparing objects in javascript is weird-land [19:56] coderarity has joined the channel [19:56] yawNO: jamund: i'll let you imagine how it is using coffeescript [19:56] yawNO: :P [19:56] ppcano has joined the channel [19:56] jamund: > var a = {b:1} [19:56] jamund: > var b = {b:1} [19:56] jamund: > a==b [19:56] jamund: false [19:57] yawNO: YAY NETSPLIT [19:57] alyx has joined the channel [19:57] augustl has joined the channel [19:57] Helloer has joined the channel [19:57] wao has joined the channel [19:57] kloeri has joined the channel [19:57] pquerna has joined the channel [19:57] lwille: mongoose doesn't implement any comparison function on ObjectId, so you either use toString on both objectIds or write yourself a comparison helper - this could directly go into https://github.com/LearnBoost/mongoose/blob/master/lib/drivers/node-mongodb-native/objectid.js [19:57] slloyd_air has joined the channel [19:57] yorick has joined the channel [19:57] bLUEEE has joined the channel [19:57] larsschenk has joined the channel [19:57] virtuo has joined the channel [19:57] levid has joined the channel [19:57] innociv has joined the channel [19:57] bnoordhuis has joined the channel [19:57] maru_cc has joined the channel [19:57] jamund: yeah i don't know how to read coffee script. i guess it's for people that know python or ruby or something? [19:57] trupppOFF has joined the channel [19:57] harthur has joined the channel [19:57] Nss has joined the channel [19:57] mekwall has joined the channel [19:58] Gruni has joined the channel [19:58] Neil has joined the channel [19:58] Fuu has joined the channel [19:58] ryanrolds_w_ has joined the channel [19:58] gf3 has joined the channel [19:58] FireFly has joined the channel [19:58] ajpiano has joined the channel [19:58] localhost has joined the channel [19:58] robde has joined the channel [19:59] ryanfitz has joined the channel [19:59] jimt_ has joined the channel [19:59] markq: nodemon vs. forever [19:59] markq: who wins [19:59] Darrow has joined the channel [19:59] Kami_ has joined the channel [20:00] jamund: oooh good idea do it yawNO [20:00] adambeynon has joined the channel [20:00] jamund: markq, i've used cluster before to keep things up. [20:00] jamund: probably overkill for a 1 process app [20:01] booo has joined the channel [20:02] markq: lol cluster: "workers commit suicide when master dies" [20:02] Dmitrijus has joined the channel [20:02] robde_ has joined the channel [20:02] disappearedng has joined the channel [20:02] bradleymeck has joined the channel [20:03] davetayls has joined the channel [20:03] joshkehn has joined the channel [20:03] joshkehn has left the channel [20:04] jamund: i'm not sure if it's node 6 compatible, since node 6 has something similar built-in [20:04] bLiNdRaGe has left the channel [20:05] sotosof: markq: integrated Cluster lib, and own simple signal handling and worker restarting if you dont want advanced functionality [20:05] brian_: Hah [20:05] brian_: I love writing stuff on Node :) [20:06] joshkehn1 has joined the channel [20:06] sharkbird has joined the channel [20:06] joshkehn1 has left the channel [20:06] jhooks has joined the channel [20:07] aslant has joined the channel [20:07] mdel_ has joined the channel [20:08] captain_morgan has joined the channel [20:11] mikeal has joined the channel [20:12] kuebk has joined the channel [20:12] bitbit has joined the channel [20:13] peregrine81 has joined the channel [20:13] yawNO has joined the channel [20:14] yawNO: Aikar: ling [20:14] yawNO: *ping [20:15] jjido has joined the channel [20:15] jsurfer has joined the channel [20:16] Lingerance: Hmm? [20:16] devinus has joined the channel [20:16] devinus: is there a node.js module for building nice line based protocols [20:17] insin has joined the channel [20:18] jbpros has joined the channel [20:18] dubenstein has joined the channel [20:19] AAA_awright_ has joined the channel [20:21] randy_ has joined the channel [20:23] Wizek has joined the channel [20:24] RobertPlummer has joined the channel [20:24] RobertPlummer: good day all [20:24] crodas has joined the channel [20:25] BrianE has joined the channel [20:26] RobertPlummer: I'm getting an error when I have a js file execute another using require('child_process').exec(), I suspect it is paths related because I output a file, then open it and copy data from it. How can I set nodejs or this child_process to execute from the directory that I'm in if I execute from a command terminal? [20:26] caolanm has joined the channel [20:27] RobertPlummer: file: https://github.com/robertleeplummerjr/jison/blob/master/ports/php/jison.js [20:28] avalanche123 has joined the channel [20:28] RobertPlummer: Line 17 is the trouble. [20:28] RobertPlummer: var Parser = require(fileName + '.js'); [20:28] kulor-uk has joined the channel [20:29] RobertPlummer: Even if I write out the path I seem to be running into an issue. [20:33] Swanify has joined the channel [20:35] Destos has joined the channel [20:37] zanefactory has joined the channel [20:37] shinuza has joined the channel [20:37] boltR has joined the channel [20:39] EhevuTov has joined the channel [20:40] larsschenk1 has joined the channel [20:43] Aikar: devinus: http://github.com/aikar/wormhole may be of use to you [20:44] yawNO: Aikar: ping [20:44] devinus: mostly i'm looking for something that helps me write line based protocols [20:44] Aikar: yawNO: p0ng [20:44] yawNO: Aikar: forked your nova stuff [20:44] clutchski has joined the channel [20:44] yawNO: do you mind if i rewrite it using a exports.xxx pattern? [20:45] Aikar: ? [20:45] yawNO: that way i could port it to the clientside [20:45] yawNO: wait [20:45] yawNO: maybe i can anyway [20:45] yawNO: uhm [20:45] CIA-101: node: 03Fedor Indutny 07master * r3d1476a 10/ (4 files): [20:45] CIA-101: node: gyp: install node-gyp [20:45] CIA-101: node: * fixes #2480 - http://git.io/GkF1NA [20:46] Aikar: it already uses exports [20:46] yawNO: yeah [20:46] yawNO: the fact is that [20:46] yawNO: clientside js does not have exports [20:46] yawNO: or require [20:47] goloroden has joined the channel [20:47] yawNO: so i have to do something like [20:47] goloroden: has anybody experienced that callbacks are not being called at all in node-mongolian? [20:48] yawNO: (function(exports)...)((typeof exports === 'undefines') ? {} : exports;) [20:48] GrizzLyCRO1 has joined the channel [20:48] jw has joined the channel [20:49] jw: does console.log support all printf formatting commands? Such as precision? [20:49] wankdanker: wink_: you around? [20:50] boghog: jw, I tend to resort to http://www.diveintojavascript.com/projects/javascript-sprintf for more advanced formatting needs [20:50] wink_: i am in fact :p [20:50] jbrokc has joined the channel [20:50] wink_: what serendipitous timing :> [20:50] xeodox has joined the channel [20:51] VladGh_ has joined the channel [20:52] jw: boghog, thanks. i'll check that out. [20:53] jergason has joined the channel [20:54] VladGh_ has joined the channel [20:54] fernandezpablo85 has joined the channel [20:55] Wa has joined the channel [20:55] clutchski has joined the channel [20:56] infynyxx has joined the channel [20:56] mehlah has joined the channel [20:57] pradeebv has joined the channel [20:57] hellp has joined the channel [20:58] yawNO has joined the channel [21:00] yawNO has joined the channel [21:00] jrbaldwin has joined the channel [21:00] jrbaldwin: anyone running node.js on openwrt? [21:00] NHQ has joined the channel [21:01] MrTopf has joined the channel [21:01] murvin has joined the channel [21:02] murvin: so quiet... [21:02] stride: jrbaldwin: heh, nice. how long did the compile take? [21:02] monk12 has joined the channel [21:02] NHQ: Does aught body here know a bit of applescript? [21:03] josh-k has joined the channel [21:03] jrbaldwin: stride: i'm asking since i'm still having problems building the openwrt rootfs on a usb drive...haven't even tried to compile yet >_< [21:03] insin: ACTION is this close to writing with({module: module, exports: exports, require: require}) { /* source code for export */ } to handle exports = blah instead of a closure and IIFE wrapper - stop me! [21:03] chrisvwebdev has joined the channel [21:04] Swanify has left the channel [21:05] monk12: hello all, I'm reading the nodebeginner.org tutorial. and they get to the part where they show how the sleep() function they made on a webpage is blocking operation... then they move onto a exec('ls -al') example to show how to show the directory listing in a callback to solve the blocking issue... i was curious if you can fix the sleep so it also gets fixed? or can't issue a callback to a javascript function you made yourself (just things node uses [21:05] monk12: like exec() which allow callbacks to be attached to them?) [21:06] hz has joined the channel [21:06] stride: monk12: uh, link? :) [21:06] monk12: I guess you can move the javascript sleep() operation to a shell command to simulate that 2nd example. but still curious if you can fix it within js... [21:06] monk12: k... [21:07] monk12: http://www.nodebeginner.org/ and look for: sleep(10000) [21:07] stride: ah [21:07] neilk_ has joined the channel [21:09] monk12: so /start is a blocking operation. if someone else went to /upload , would have to wait 10s... but they don't mention how to solve this super simple/(impractical) sleep() example and move onto another harder 'exec' problem (which coincidentally has an easy solution). [21:09] fernandezpablo85 has left the channel [21:09] RobertPlummer has left the channel [21:09] Wizek has joined the channel [21:10] monk12: Is it just a good example to show the problem... but not solvable in node? [21:11] stride: that's pretty much a non-issue imho since you wouldn't really wait/poll inside the node event loop in a real world app [21:11] mark_azevedo has joined the channel [21:11] michaelhartau has joined the channel [21:11] stride: you'd do that in c++ land and receive a callback when your heavy lifting is finished [21:12] stride: (c++ land or a childprocess or a thread) [21:12] monk12: could you also do it in JS land? like a 'offload' server. [21:12] stride: nope, js land in node runs in a single thread, that's what makes it great :) [21:12] stride: so consequently everything you do there will block other things [21:13] stride: there's some stuff like fibers that you could use though, it's like a wrapper around the c++ stuff you'd have to take care of so you can stay in js land [21:13] monk12: gotcha... well i think i was reading in this book 'node web development' that you could send it to a 'backend service' (but that would have to be another instance of node hehe) [21:13] reid has joined the channel [21:13] monk12: gotcha. thanks stride. [21:14] sotosof has joined the channel [21:14] peregrine81 has joined the channel [21:14] stride: sure, or that :) there's some nice modules (dnode) and messaging for built-in node - node IPC [21:14] stride: de nada [21:14] joshkehn has joined the channel [21:15] joshkehn has left the channel [21:15] monk12: so Does everyone build their apps in Express nowadays? like i went through the standard tutorials where they show you how to build your own router, request handler, views modules... but at that point, do alot of people understand and start using a Node framework? or just keep piling on their own and external modules? [21:15] adrianF has joined the channel [21:16] monk12: like in client-side javascript, it was cool to learn how to do all the IE/FF stuff, but when jquery came along, you could just use $.ajax etc and forget the tedious stuff you needed to remember. [21:16] rio{ has joined the channel [21:17] stride: express is pretty popular for web stuff in node, yep [21:17] rio{: Is there any better way of running something at a specific time that using a polling function? [21:17] pquerna: http://rackspaceluvit.eventbrite.com/ <- luvit meetup the day before NodeSummit [21:17] monk12: cool, thanks stride [21:17] mandric has joined the channel [21:19] Bonuspunkt: has anyone a simple websocket sample? [21:19] stride: rio{: setTimeout, there's also node-cron I believe that wraps setTimeout for that purpose [21:20] rio{: yeah setTimeout is what I meant with 'polling' :) [21:20] kevind has joined the channel [21:20] stride: oh, I thought you meant while(true) with comparing the current time :) sorry [21:21] elijah|home has joined the channel [21:22] piscisaureus_ has joined the channel [21:23] isaacs has joined the channel [21:23] willwhite has joined the channel [21:24] brian_ has joined the channel [21:24] joshfinnie has joined the channel [21:24] tilgovi has joined the channel [21:25] thedaywillcome has joined the channel [21:25] jrbaldwin has joined the channel [21:25] thedaywillcome: hi [21:25] thedaywillcome: i'm trying to use supervisor but i need to pass arguments to my app.js [21:25] monk12: hello^ [21:25] thedaywillcome: is there anyway to do this/ [21:26] einaros: SubStack: I didn't bother pullreq'ing that [21:26] shellox has joined the channel [21:26] thedaywillcome: i tries for example: node.js app.js 80 db_name [21:26] shellox: hi [21:26] thedaywillcome: but with supervisor [21:26] ryah has joined the channel [21:26] thedaywillcome: i read the docs but i couldn't find how to do this, only ways to pass arguments to supervisor itself [21:26] shellox: can express.js generate coffee-script? [21:27] thedaywillcome: supervisor -x app.js 80 db_name ? [21:27] eldios has joined the channel [21:28] jrbaldwin has joined the channel [21:29] chrisvwebdev has left the channel [21:29] insin: require('express').barf({inconsistentParens: true, dropAsMuchSyntaxAsPossible: true}) [21:30] jj0hns0n has joined the channel [21:31] hz has joined the channel [21:31] insin: where did the convention for top-level project directories for the likes of "support" and "vendor" come from? [21:31] deedubs has joined the channel [21:32] charlenopires has joined the channel [21:32] tuhoojabotti: insin: From the minds of the wisemen. [21:32] tuhoojabotti: soon they shall be vnr and spt [21:34] LeMike has joined the channel [21:34] tvw has joined the channel [21:35] GrizzLyCRO has joined the channel [21:36] Wizek has joined the channel [21:36] kuebk has joined the channel [21:37] tomlion has joined the channel [21:38] saesh has joined the channel [21:38] sdwrage has joined the channel [21:40] caolanm has joined the channel [21:40] madhums has joined the channel [21:41] flip_digits has joined the channel [21:41] michaelhartau has joined the channel [21:42] aslant has joined the channel [21:43] mark_azevedo has joined the channel [21:43] robotmay has joined the channel [21:44] stonebranch has joined the channel [21:46] dubenstein has joined the channel [21:47] Aikar: app/nm/express/nm/connect ?! [21:48] context: ? [21:48] context: aikar: what about it [21:50] Aikar: context: re: tuhoojabotti [21:50] tuhoojabotti: wut [21:50] clarkfischer_ has joined the channel [21:50] tuhoojabotti: Aikar: nm as in NetMatch \o [21:50] cpaterson: Does anyone know of a Filesystem monitor that's good. Basically, whenever a file is created, moved, deleted etc... I want my node app to receive a notification. [21:51] colinclark has joined the channel [21:51] context: cpaterson: node comes with one... [21:51] context: cpaterson: http://nodejs.org/docs/latest/api/fs.html#fs.watch [21:51] stonebra_ has joined the channel [21:52] cpaterson: Oh cool [21:53] dnz-_ has joined the channel [21:53] CIA-101: libuv: 03Igor Zinkovsky 07master * rf5bd21f 10/ test/test-eio-overflow.c : conform to ANSI C - http://git.io/1XByqQ [21:53] stonebr__ has joined the channel [21:54] samsonjs has joined the channel [21:54] amasad has joined the channel [21:54] bicranial has joined the channel [21:55] mmalecki: https://github.com/joyent/node/wiki/API-changes-between-v0.6-and-v0.8 [21:55] SteveDekorte has joined the channel [21:55] mmalecki: please contribute if you notice any breaking change ^ [21:55] bicranial has joined the channel [21:56] Lorentz: I've never heard of gyp before [21:56] dnz-_: i have a mad easy question relating to scope. http://pastie.org/private/yzmjxrddu3jc2dai4aita [21:57] dnz-_: someone point out my fail please [21:57] mertimor has joined the channel [21:58] cpaterson: context: Looking at the Filesystem#watch, is there a way to use it to watch a directory recursively? [21:59] context: Watch for changes on filename, where filename is either a file or a directory. [21:59] andrewfff has joined the channel [21:59] swajr: dnz-_: your global.forEach is changing the scope of "this", most likely [21:59] dnz-_: well yeh, the callback is anon func [21:59] zeade has joined the channel [21:59] cpaterson: context: what if it's two directories deep? [21:59] context: cpaterson: as an fs watcher im going to ASSUME it default to rerursive for directories. you could of course test this out very quickly... [22:00] cpaterson: Yeah, I'm not seeing it happen... [22:00] swajr: Class.prototype = { var that = this; someMethod: function() { // blah blah // that.somethign.anotherMethod(v); [22:00] swajr: basically store off a reference to "this" [22:00] mc_greeny has joined the channel [22:00] swajr: before the function definition. [22:00] bnoordhuis: cpaterson: it's non-recursive [22:00] Kuntau has joined the channel [22:00] davetayls has joined the channel [22:00] dnz-_: will try swajr,. one sec [22:01] philipd has joined the channel [22:01] Cromulent has joined the channel [22:01] uptownben: Hey all, can somebody help me out? Troubleshooting an npm issue after re-building/installing node 0.6.7 [22:01] swajr: dnz-_: http://pastie.org/private/2pfxj1u1zpksi5flyglia [22:01] mattgifford has joined the channel [22:01] dnz-_: yep it works, thanks swajr [22:01] swajr: np [22:02] draftoff has joined the channel [22:02] rauchg has joined the channel [22:02] kuebk has joined the channel [22:03] lmatteis: can i use node to develop win32 apps? [22:03] dubenstein has joined the channel [22:03] swaj: eh, I don't think any javascript bindings to winforms exist [22:03] uptownben: getting this: http://pastebin.com/zWxXVNPz [22:03] swaj: though you could certainly write some :) [22:03] cpaterson: context: bnoordhuis is right it's non-recursive [22:04] mattgifford has joined the channel [22:04] uptownben: can't do npm update -g [22:04] nickynyfiken has joined the channel [22:04] jrbaldwin has joined the channel [22:05] slpsys has joined the channel [22:05] nickynyfiken: Hi, I am trying to use jasmine-node (https://github.com/mhevery/jasmine-node) but I can't figure how to get it to find my functions. Anyone used it? [22:05] __directory has joined the channel [22:06] jxson has joined the channel [22:07] CIA-101: node: 03Ryan Dahl 07master * r1afd0b5 10/ (4 files): [22:07] CIA-101: node: Revert "gyp: install node-gyp" [22:07] CIA-101: node: No. [22:07] CIA-101: node: This reverts commit 3d1476a3168effe3edb32510f56cf9b00bce8392. - http://git.io/WUEhGg [22:08] dubenstein has joined the channel [22:08] johnhamelink has joined the channel [22:09] khrome has joined the channel [22:11] JaKWaC has joined the channel [22:11] MrNko has joined the channel [22:11] SteveDekorte has joined the channel [22:12] lzskiss has joined the channel [22:12] Morkel has joined the channel [22:13] dubenstein has joined the channel [22:14] markschaake has joined the channel [22:14] markschaake has left the channel [22:14] r1ngzer0 has joined the channel [22:15] maletor has joined the channel [22:15] napperjabber_ has joined the channel [22:18] dubenstein has joined the channel [22:19] infynyxx has joined the channel [22:20] dre has joined the channel [22:21] ajpiano has joined the channel [22:22] apwalk has joined the channel [22:23] dubenstein has joined the channel [22:24] boltR has joined the channel [22:26] storrgie has joined the channel [22:26] sarlalian has left the channel [22:26] colinclark has joined the channel [22:28] eee_c has joined the channel [22:28] stalled has joined the channel [22:31] nickdc: I'm trying to install node on an amazon linux instance (Red Hat) and it erros saying it can't find the mirrors list. Any idead on how to fix that? or a simpler way to install node? [22:31] nickdc: I tried the yum installer [22:32] `3rdEden: compile from source [22:33] nickdc: Ok I can give that a try [22:34] tonymilne has joined the channel [22:34] heatxsink has joined the channel [22:34] clutchski has joined the channel [22:35] tonymilne has joined the channel [22:36] insin: is there a mocha option to require a module and mix it into what's exposed to the test modules? It has --require, but it seems to expect you to import something like Should which adds functions to global objects [22:38] koo4 has joined the channel [22:40] rizwan has joined the channel [22:41] rizwan: hi guys, I am new to this forum and I have an issue while running my first node application =), tried google but no help :/ [22:42] CIA-101: node: 03Ryan Dahl 07master * r60040a4 10/ (177 files in 11 dirs): Upgrade V8 to 3.8.6 - http://git.io/zB2hsQ [22:44] Aria has joined the channel [22:44] rizwan: anyone? [22:45] caolanm has joined the channel [22:45] maxogden: rizwan: if you state your problem you might receive help [22:45] EhevuTov_ has joined the channel [22:45] tjfontaine: rizwan: in other words, it's easier to ask than it is to ask to ask [22:45] pradeebv has joined the channel [22:46] lmatteis: maybe his question was simply if he could ask a question [22:46] rizwan: maxogden: thanks :D, I am trying to run an application which gives error, CompassionPit--Node-$ node app.js [22:46] rizwan: The "sys" module is now called "util". It should have a similar interface. [22:47] rizwan: node.js:201 [22:47] CIA-101: node: 03Igor Zinkovsky 07master * r9584445 10/ (node.gyp src/ngx-queue.h src/node_vars.h): fix windows build - http://git.io/dw6Xow [22:47] skm has joined the channel [22:47] rizwan: throw e; // process.nextTick error, or 'error' event on first tick [22:47] rizwan: ^ [22:47] rizwan: Error: Cannot find module './config' at Function._resolveFilename (module.js:334:11) [22:47] rizwan: at Function._load (module.js:279:25) [22:47] rizwan: at Module.require (module.js:357:17) [22:47] rizwan: at require (module.js:368:17) [22:47] rizwan: at /home/rizwan/CompassionPit--Node-/log.js:6:18 [22:47] tahu has joined the channel [22:47] rizwan: at Object. (/home/rizwan/CompassionPit--Node-/log.js:131:1) [22:47] rizwan: at Module._compile (module.js:432:26) [22:47] rizwan: at Object..js (module.js:450:10) [22:47] rizwan: at Module.load (module.js:351:31) [22:47] rizwan: I googled it, understood what error means etc [22:47] rizwan: node 0.6.7, npm 1.1.0-beta-10 [22:48] rizwan: I assume installed automatically when I installed node manually from sources [22:48] rizwan: npm I mean [22:49] Aria: Yeah, it did. So it's looking for a 'config.js' in the current directory. Do you have one? [22:49] Aria: (sounds like you need to configure this thing you're using) [22:49] tjfontaine: also, rizwan use some kind of pastebin for more than 2 lines [22:50] rizwan: Aria: I don't have config.js, I just downloaded it as is and followed instructions by author, do I need to create myself then? [22:51] rizwan: tjfontaine: ok, sorry for the mess [22:51] ryah_ has joined the channel [22:51] Aria: I don't know -- what is it? Just a guess, though, hints that that's what it's looking for. [22:51] rizwan: here is the application git link: https://github.com/zackster/CompassionPit--Node- [22:51] Aria: As a side note -- wow, weird naming! [22:51] Aria: app.js requires ./config [22:52] texinwien has left the channel [22:52] Aria: As there's no ./config.js, that fails. [22:52] Aria: however, it doesn't require static-config.js, so I wonder if that's the example config. [22:52] Aria: It sure looks like it, in some ways. you might copy that to config.js and see if that works. [22:52] michaelhartau has joined the channel [22:52] joshsmith has joined the channel [22:52] rizwan: hmmm [22:53] Aria: Ah, no. [22:53] Aria: copy "config.js.template" to "config.js". config.js is in the .gitignore file, which git tracks. "static/style.min.css" and "static/script.min.js" are also included in ".gitignore"; those are automatically generated and minified when the application is run. [22:53] Aria: From the author's README.markdown [22:53] panterax has joined the channel [22:54] stonebranch has joined the channel [22:55] AviMarcus has joined the channel [22:55] rizwan: Aria: after I copy static-config.js to config.js, I get error -> TypeError: Cannot read property 'uri' of undefined [22:55] Aria: Yeah, that was a mistake. Use config.js.template instead. [22:56] Aria: My guess was wrong. [22:56] jrbaldwin has joined the channel [22:56] rizwan: Aria: ok, I am going to try that [22:57] brianseeders has joined the channel [22:57] isaacs has joined the channel [22:59] captain_morgan has joined the channel [23:01] MrTopf has joined the channel [23:02] pdodde has joined the channel [23:02] aesptux has joined the channel [23:03] vguerra has joined the channel [23:03] dre: Hello. I have a node.JS application that I'm trying to bundle into node. I figured out how to build it and get the _third_party_main to run for simple applications. I can also put my supporting files into /lib and those work well as "native modules". However, I'm not sure how to include any modules (as in, files from the folder node_modules), since everything in the /lib directory must be at the top level. Is there any way to include mod [23:03] dre: ules without having to flatten my project, rename conflicting files, etc.? [23:05] rizwan: Aria: There is no config.js.template file anywhere [23:05] jrbaldwin_ has joined the channel [23:05] jp232 has joined the channel [23:06] Aria: Well nuts! Sounds like the author's made some mistakes. Maybe troll into the history? Or guess at how it's used by reading the code. [23:06] Aria: File an issue! [23:07] koo4 has joined the channel [23:07] joshgillies has joined the channel [23:08] rizwan: Aria: thanks for your help anyway =) [23:08] blup has joined the channel [23:08] dre: anyone? [23:09] alystair has joined the channel [23:09] CIA-101: node: 03isaacs 07v0.6 * r2541009 10/ (142 files in 21 dirs): Update npm to 1.1.0-2 - http://git.io/FQzNHg [23:10] josh-k has joined the channel [23:11] alystair: Hello all, looking for mentor that can help me out in learning to use node.js by making my own app. I know the super basics but could use advice as I go... I want to use mongodb, postgre or neo4j as my backend dbs (not under same app obviously) [23:12] alystair: although finding a host for those DBs is a pain :/ [23:12] garann has joined the channel [23:12] alystair: maybe I should be using AWS [23:13] alystair: or heroku ~_~ [23:14] SubStack: alystair: nodejitsu has an api for spinning up hosted databases that's pretty great [23:15] SubStack: or you can get hosted mongodb pretty easily [23:15] Dreamer3 has joined the channel [23:15] SubStack: if you go the hosted couchdb route iris couch is pretty great too [23:15] SubStack: npm runs on it [23:15] alystair: I don't really like the premise of couchdb [23:16] alystair: maybe once I have a better feel for making node apps [23:16] dre: Anyone have any solutions for my question? Is there no response because the question is complicated or because it's stupid? [23:17] bleakgadfly has joined the channel [23:17] jrbaldwin has joined the channel [23:17] CIA-101: node: 03Ryan Dahl 07master * r7584225 10/ (17 files in 6 dirs): Upgrade libuv to joyent/libuv@f5bd21f - http://git.io/WFglMw [23:18] Wizek has joined the channel [23:18] context: couch has geospatial now too :X [23:19] neilk_ has joined the channel [23:19] alystair: what's geospatial doing in a db? [23:19] larsschenk1 has left the channel [23:19] bingomanatee: mongo envy much :D [23:20] context: ahh its an add on [23:20] jtsnow has joined the channel [23:20] context: bingomanatee: im using it in a new project c urrently in mongo [23:20] erichynds has joined the channel [23:21] CrypticSwarm has joined the channel [23:21] Lingerance: dre: add an index.js to the base of your project. [23:21] socketio\test\95 has joined the channel [23:21] context: doubtful. [23:22] alystair: :< [23:22] context: alystair: read a lot, and play even more [23:22] context: ;) im still new to mongo/nosql myself [23:22] context: im trying to get myself to read one tech book a week [23:22] context: the mongo book im about to finish is pretty good [23:23] context: alystair: dont need a mentor when you have irc. you get a few dozen of them. you just cant be lazy ;) [23:23] tauren__ has joined the channel [23:25] alystair: I'm just getting started with express/mongoose/jade etc [23:25] tomlion has joined the channel [23:26] alystair: although I don't know if starting off on heroku is a good thing because it teaches you specifics for their hosting only? [23:26] Neil_ has joined the channel [23:26] Destos has joined the channel [23:27] dre: Lingerance: Thanks, but I'm not trying to make a module.. I'm trying to add my nodeJS project into a node executable [23:27] nicholasf has joined the channel [23:27] captain_morgan has joined the channel [23:27] insin: is there a standard-ish port of the asserts module for the browser, which also goes as far as it can with the stack trace depending on the browser's capabilities? [23:27] isaacs_ has joined the channel [23:27] Neil has joined the channel [23:27] dre: I just can't figure out the way to package th modules I use in my project there [23:29] FIQ has joined the channel [23:29] magikarp_ has joined the channel [23:29] EhevuTov has joined the channel [23:29] magikarp_: Hey everyone! [23:29] magikarp_: Do I really have to run node-static as a different server on a different port? Can't I run it as part of my node.js server? [23:31] isaacs__ has joined the channel [23:33] isaacs has joined the channel [23:33] BrianE has joined the channel [23:33] marcello3d has joined the channel [23:35] marcello3d has joined the channel [23:36] sotosof has left the channel [23:37] mara has left the channel [23:37] marcello4d has joined the channel [23:37] isaacs has joined the channel [23:37] munro: magikarp_: nope! you just have to glue it on the current server your running, I recommend using 'connect' [23:37] munro: s/your/you're/ [23:38] magikarp_: munro: Thank you, I just figured it out! :) [23:38] munro: yay! [23:38] magikarp_: munro: I appreciate your response, thanks [23:38] magikarp_: munro: I'm new to node.js, I'm a PHP veteran [23:38] flipen has joined the channel [23:38] Neil has joined the channel [23:39] magikarp_: I have a large amount of PHP expertise, but little Node.js knowledge [23:39] magikarp_: So far, I'm quite excited! [23:39] warz has joined the channel [23:39] warz has joined the channel [23:39] CIA-101: node: 03Ryan Dahl 07master * rca2a047 10/ (148 files in 26 dirs): [23:39] CIA-101: node: Merge remote branch 'origin/v0.6' [23:39] CIA-101: node: Conflicts: [23:39] CIA-101: node: deps/uv/src/win/util.c [23:39] CIA-101: node: src/udp_wrap.cc - http://git.io/11GsZA [23:39] JJMalina has joined the channel [23:40] munro: magikarp_: https://gist.github.com/1608654 <-- heh, then you'll love this, PHP MACROS!!! [23:40] magikarp_: Haha! :) [23:40] magikarp_: Looks like node.js has a friendly community :D [23:42] aGHz has joined the channel [23:42] AD7six has joined the channel [23:44] cesconix has joined the channel [23:45] alystair: ugh mongooooose [23:45] zzak has joined the channel [23:48] joshfinnie has joined the channel [23:48] alystair: is there a good standard set up for creating a login system within express/mongoose/whatever [23:48] charrly has joined the channel [23:49] alystair: or should I be hunting for another item in npm that does this for me :P [23:50] maletor has joined the channel [23:50] te-brian has joined the channel [23:51] charrly: Has anyone here served nodejs with another webserver like apache or nginx? [23:52] igl: HAI, nginx [23:52] Lingerance: Yes, nginx [23:53] charrly: How does node work in that type of environment? Do you lose any features? [23:53] gkatsev: websockets [23:53] gkatsev: are lost [23:55] charlenopires has joined the channel [23:55] charrly: hmm, ok. forgive my ignorance, but I never really understood why it was normal practice to use a built in web server when there was already good ones out there.. [23:56] charrly: for websockets, but is there any other reason why I would want to use the node webserver? [23:56] k1ttty has joined the channel [23:58] AvianFlu: it takes less configuring than apache or nginx [23:58] grom358 has joined the channel [23:58] AvianFlu: by a long shot [23:58] igl: o.O [23:58] igl: nginx is so easy [23:58] grom358: any ideas why this isn't working, http://pastebin.com/ZLfCJjx7 ? I getting but server error pages [23:58] AvianFlu: you can also definitely get websockets working with nginx [23:58] grom358: back* [23:58] igl: you can let nginx do the static files and proxy thru to your node clusters [23:58] AvianFlu: you used to have to recompile it, they may have fixed it outright by now [23:59] kerang has joined the channel [23:59] warz: yea, i prefer nginx. [23:59] dthompso99 has joined the channel [23:59] igl: i like nginxs pseudo json config [23:59] mjr_ has left the channel