[00:00] mehlah has joined the channel [00:00] tttthet has joined the channel [00:02] ljharb has joined the channel [00:02] ljharb: what's the preferred serverside equivalent to jQuery.getJSON? [00:03] draginx: ljharb: pretty sure JSON.parse() will work? [00:04] ljharb: that parses the json. i'm looking for the best approach to making the async request to an endpoint [00:04] draginx: unless u want it to fetch from an area >.> u can use curl for that? [00:04] ramitos has joined the channel [00:04] samstefan has joined the channel [00:05] dscape: ljharb: github.com/mikeal/request -> request({url: url, json: true}, function (err,resp,body) { }); [00:05] dscape: i think this works [00:06] ljharb: so node has nothing built in for this i should use? [00:06] ljharb: dscape: thanks for the rec, i'll look at the module [00:06] jgaui has joined the channel [00:06] dscape: ljharb: http://nodejs.org/docs/latest/api/http.html#http.ClientRequest [00:06] juyeong_park has joined the channel [00:07] dscape: but request is pretty much the standard [00:07] dscape: and people even ported it to the browser [00:07] enmand has joined the channel [00:07] ljharb: ok great, thanks - that helps [00:08] dnjaramba has joined the channel [00:08] hkjels: Anyone used superagent.js? [00:09] hkjels: I'm not able to set headers on get requests [00:09] ljharb: i don't see it on npmjs - is it a module? [00:10] bitwise_ has joined the channel [00:10] hkjels: It's frontend: https://github.com/visionmedia/superagent [00:11] louissmit has joined the channel [00:13] brianseeders has joined the channel [00:14] gr4yscale has joined the channel [00:16] benvie has joined the channel [00:17] joshfinnie has joined the channel [00:17] daniel: ljharb: `npm docs request` [00:17] ljharb: found it, thanks [00:19] hkjels: haha. Sorry. It probably works. Just forgot to compile something here [00:19] daniel has left the channel [00:19] daniel has joined the channel [00:19] mschneider has joined the channel [00:20] orlandovftw has joined the channel [00:21] hkjels: yeah. Worked [00:21] agnat_ has joined the channel [00:22] tmcw has joined the channel [00:22] superlou has joined the channel [00:23] kalms has joined the channel [00:24] marvin_ has joined the channel [00:24] dnjaramba has joined the channel [00:24] sh1mmer has joined the channel [00:24] wink___ has joined the channel [00:26] salva has left the channel [00:27] ArchWeb has joined the channel [00:28] gregpascale has joined the channel [00:28] mynickislong has joined the channel [00:29] joshkehn has joined the channel [00:29] wink_ has joined the channel [00:29] sebicas has left the channel [00:29] joshkehn has left the channel [00:29] mynickislong: hi, does anyone know how could i run my node.js script every 2 minutes? [00:30] tmcw: mynickislong: cron? [00:30] eeemsi_: mynickislong: a cronjob [00:31] mynickislong: thank you, totally forgot about that! [00:31] eeemsi_: tmcw: you were faster - n1 [00:32] copongcopong1 has joined the channel [00:33] deeprogram has joined the channel [00:35] socketio\test\35 has joined the channel [00:37] dnjaramba has joined the channel [00:37] wink___ has joined the channel [00:40] jiboumans_ has joined the channel [00:41] dnjaramba has joined the channel [00:41] chadskidmore has joined the channel [00:43] Wa has joined the channel [00:43] SomeoneWeird: anyone know why "npm install gif" works [00:43] SomeoneWeird: but var GifLib = require('gif'); doesn't? [00:43] r04r has joined the channel [00:43] r04r has joined the channel [00:44] tmcw: SomeoneWeird: are you in the same directory as where you ran npm install? [00:44] SomeoneWeird: yep [00:44] SomeoneWeird: Error: Cannot find module 'gif' [00:45] wink_ has joined the channel [00:45] SomeoneWeird: tmcw, http://pastebin.com/1r8gYYST [00:46] maxogden: nodejs.org/docs/latest/api/modules.html doggy [00:48] r04r has joined the channel [00:49] marvin_ has joined the channel [00:50] konobi: ircretary: when was caolanm last here? [00:50] ircretary: konobi: caolanm was last seen at 2012-02-18T21:07:56.695Z, joining #Node.js [00:51] looopy has joined the channel [00:52] wink_ has joined the channel [00:53] r04r has joined the channel [00:54] SomeoneWeird: anyone? [00:54] aris has joined the channel [00:55] SomeoneWeird: nvm got it [00:55] k1ttty has joined the channel [00:56] dnjaramba has joined the channel [00:57] Vespakoen has joined the channel [00:58] copongcopong has joined the channel [00:58] r04r has joined the channel [01:00] rauchg has joined the channel [01:01] reid has joined the channel [01:03] r04r has joined the channel [01:05] eventualbuddha has joined the channel [01:05] pizthewiz has joined the channel [01:08] shinuza has joined the channel [01:08] dreamdust: Is there a popular test framework people use for JS that utilizes JS methods provided by the browser? [01:08] r04r has joined the channel [01:09] wink_ has joined the channel [01:09] jiboumans_ has joined the channel [01:10] cleric has joined the channel [01:10] esundahl has joined the channel [01:11] cleric: why would a jsdom example that i copied into a node.io script that Ive been running not work? the jsdom script works ok on its own [01:13] dnjaramba has joined the channel [01:13] JJMalina has joined the channel [01:13] saikat has joined the channel [01:14] r04r has joined the channel [01:14] saikat has joined the channel [01:15] metaverse has joined the channel [01:17] wink___ has joined the channel [01:18] jocafa has joined the channel [01:18] rauchg has joined the channel [01:18] dnjaramba has joined the channel [01:18] dnolen has joined the channel [01:19] reid has joined the channel [01:19] reid has joined the channel [01:19] r04r has joined the channel [01:19] boccato has joined the channel [01:19] jiboumans_ has joined the channel [01:22] st_luke has joined the channel [01:22] westg has joined the channel [01:24] boogyman has joined the channel [01:24] boogyman has joined the channel [01:25] r04r has joined the channel [01:25] jgillespie has joined the channel [01:25] wink_ has joined the channel [01:25] al3xnull has joined the channel [01:25] rauchg has joined the channel [01:26] huggies has joined the channel [01:27] al3xnull has joined the channel [01:27] bradleyg has joined the channel [01:27] dnjaramba has joined the channel [01:29] jazzychad_ has left the channel [01:29] ts___ has joined the channel [01:30] r04r has joined the channel [01:30] harthur has joined the channel [01:30] wink___ has joined the channel [01:30] mehlah has joined the channel [01:30] joshkehn has joined the channel [01:31] joshkehn has left the channel [01:34] rauchg has joined the channel [01:35] wink_ has joined the channel [01:38] dnjaramba has joined the channel [01:38] r04r has joined the channel [01:38] r04r has joined the channel [01:39] shinuza_ has joined the channel [01:40] abraxas has joined the channel [01:40] papachan has joined the channel [01:41] cha0s has joined the channel [01:41] Tricon has joined the channel [01:42] Rob__ has joined the channel [01:43] dnjaramba has joined the channel [01:43] ts__ has joined the channel [01:44] r04r has joined the channel [01:44] samuelgoodwin has joined the channel [01:44] samuelgoodwin: hey guys [01:45] jocafa has joined the channel [01:48] dnjaramba has joined the channel [01:49] r04r has joined the channel [01:50] ohtogo has joined the channel [01:50] rauchg has joined the channel [01:52] wink_ has joined the channel [01:53] ceej has joined the channel [01:54] r04r has joined the channel [01:54] samuelgoodwin: hey guys [01:56] icewhite has joined the channel [01:57] ^robertj has joined the channel [01:57] samuelgoodwin: do any of you do work with couchdb in your node apps? [01:57] wink___ has joined the channel [01:58] bitwise_ has left the channel [01:58] davidbanham has joined the channel [01:59] r04r has joined the channel [01:59] mappum: Does anyone know what that website is called that shows a list of node-based web apps? [02:00] isaacs_mobile has joined the channel [02:01] superlou has joined the channel [02:01] hotchkiss has joined the channel [02:01] innoying has joined the channel [02:03] dnjaramba has joined the channel [02:04] r04r has joined the channel [02:04] r04r has joined the channel [02:05] copongcopong has joined the channel [02:05] yuwang_laptop has joined the channel [02:08] wink_ has joined the channel [02:09] r04r has joined the channel [02:09] r04r has joined the channel [02:09] samuelgoodwin: Do people still use couchDB? I just read the announcement that ubutnu was ditching couch. [02:12] dekub has joined the channel [02:12] nhunzaker has joined the channel [02:12] lhoffman has left the channel [02:12] dnjaramba has joined the channel [02:12] boccato: Why are they ditching it? [02:12] Vespakoen has joined the channel [02:13] wink___ has joined the channel [02:13] samuelgoodwin: boccato: http://www.ubuntu-news.net/2011/11/27/canonical-dropping-couchdb-from-ubuntu-one/ [02:13] kurtzhong has joined the channel [02:15] pizthewiz has joined the channel [02:15] cleric: what is ubuntu? [02:15] boccato: interesting [02:15] Octayn: An OS [02:16] r04r has joined the channel [02:16] boccato: A Linux distribution. [02:16] booyaa has joined the channel [02:16] samuelgoodwin: cleric: Ubuntu One is this "everything in the cloud" service for Ubuntu users [02:17] cjm has joined the channel [02:17] samuelgoodwin: your local (twitter/email/etc) apps could use couchdb for storage and it would sync up to ubuntu's big cluster [02:17] caolanm has joined the channel [02:19] mikeric has joined the channel [02:19] jiboumans_ has joined the channel [02:19] samuelgoodwin: looks like couchdb isn't a good pick to build new things with [02:20] jesusabdullah: why come? [02:20] jesusabdullah: canonical dropped couchdb some time ago [02:20] jesusabdullah: like, that's old news [02:20] samuelgoodwin: ubuntu one dropping it, couchbase building the "successor" [02:20] neoesque has joined the channel [02:20] samuelgoodwin: jesusabdullah: sure, but not for me, haha [02:20] jesusabdullah: but how is that evidence that couchdb is bad for *any* new thing? [02:21] jesusabdullah: It sounds like couch just wasn't a good fit for what *these* people were trying to do. [02:22] subbyyy has joined the channel [02:22] samuelgoodwin: jesusabdullah: who's actively doing development on it? [02:22] Revernd has joined the channel [02:23] zackattack has joined the channel [02:23] samuelgoodwin: and katz is moving on with couchbase [02:23] a_suenami has joined the channel [02:24] SubStack: couchbase isn't a think that you can use yet [02:24] SubStack: couchdb is [02:24] jesusabdullah: couchbase is a company [02:24] r04r has joined the channel [02:24] SubStack: also true [02:24] jesusabdullah: and their two projects, as I understand it, are membase and couchdb [02:24] konobi: caolanm: ping [02:24] zackattack: how do you guys like to handle login / user registration? [02:24] jesusabdullah: and maybe they have some good ideas re: "combine-to-form" [02:24] jesusabdullah: but that doesn't mean couch is bad, it just means they have some good ideas. [02:25] stelcheck: actually, all their projects are named couchbase now [02:25] stelcheck: its just that, for actual couchdb features [02:25] stelcheck: you still have to wait until 2.0 is out [02:25] SubStack: zackattack: I like to make an auth server [02:25] SubStack: and then connect to it from the other services [02:25] zackattack: an auth server? written in node? [02:25] SubStack: yep [02:25] SubStack: just a simple thing that talks to a db [02:26] SubStack: I use dnode+upnode typically but http requests work fine too [02:26] SubStack: it keeps your application logic from getting too complicated and makes it easier to tie into your auth db with subsystems you build out later [02:26] pizthewiz has joined the channel [02:27] zackattack: hey... that's a pretty cool idea [02:28] zackattack: loose coupling [02:28] ohtogo has left the channel [02:28] zackattack: at what point would i need to use upnode? [02:29] warz has joined the channel [02:29] warz has joined the channel [02:29] SubStack: you can prototype everything with dnode first and it's trivial to add upnode to the mix later [02:29] SubStack: upnode is great for re-establishing the connections when they go down and it pings the remote end and tries to reconnect regularly [02:29] r04r has joined the channel [02:29] kainosnoema has joined the channel [02:30] zackattack: SubStack: cool [02:30] SubStack: and pending transactions get queued while it's reconnecting so your services just hang briefly and then go through again [02:30] SubStack: a bit like a message queue in that respect, but only for the initial connection [02:30] cleric: when i put jsdom code in a node.io script why doesnt it work? [02:30] SubStack: since the transactions are more stateful than message queue topologies tend to be [02:31] SubStack: zackattack: also if you want to authenticate your services later that is really easy to do with upnode [02:31] zackattack: how often do the connections go down? [02:31] zackattack: what do you mean by authenticate my services later? [02:31] SubStack: zackattack: with our production servers probably a few each day on rackspace [02:31] SubStack: due to network hiccups [02:31] zackattack: ohh... [02:31] zackattack: even if the dnode server is on your local box? [02:32] SubStack: if everything is local it should be fine [02:32] zackattack: cool [02:32] zackattack: yeah i like this idea of decoupling it. i'll see if i can whip up an experimental app. [02:32] SubStack: but I mean before I wrote dnode our services would die sporadically and we'd have to restart them [02:32] ohtogo has joined the channel [02:32] samuelgoodwin: so I need some sort of storage, I have users who have a list of rss feeds they can add/remove and a list of rss-items that will change status frequently in big batches. What would handle that well? [02:32] SubStack: *before I wrote upnode [02:32] zackattack: i guess it would be straightforward to integrate it as middleware later [02:32] SubStack: but now everything just reconnects as necessary and has been really robust [02:33] zackattack: how hard would it be to integrate with a session store? [02:33] SubStack: one benefit of using upnode that you get even when running locally is that you can bring down servers and bring them back up without disrupting service [02:33] SubStack: since the connections just get queued until the service pops back [02:35] cleric: how do i run multiple modules in one script? [02:35] samuelgoodwin: I was thinking redis [02:35] draginx: what does everyone use for mail? node-pony? [02:35] SubStack: I do! [02:35] r04r has joined the channel [02:35] r04r has joined the channel [02:35] draginx: ofc u do sub :P [02:35] SubStack: was using mailer before but it has some bugs and has 0 tests [02:35] draginx: btw browserling.. id buy the service if it responded a bit better O_o [02:36] dnjaramba has joined the channel [02:36] warz: does the github mac client annoy anybody else when it resizes itself while switching between the different tabs? [02:36] SubStack: draginx: it can be a bit slow on some connections yeah [02:37] SubStack: we have some other higher priority things in the queue though [02:37] draginx: rawr [02:37] zackattack: SubStack: how hard is it to integrate dnode with a session store? for example, for persistent auth? [02:37] zackattack: like a logged-in user.. [02:37] SubStack: draginx: have you tried testling yet? [02:37] draginx: nope [02:37] SubStack: you should, super fun times! [02:38] SubStack: zackattack: there's https://github.com/tblobaum/dnode-session [02:38] draginx: thats pretty good O_o getting the error messages of IEx is nice :D [02:38] SubStack: devaholic wrote it [02:39] jiboumans_ has joined the channel [02:39] zackattack: but it requires redis? [02:39] dthompso99 has left the channel [02:39] draginx: zackattack: pretty sure u can use Memory with dnode session O_o [02:40] SubStack: zackattack: it uses anything that works with the express session store [02:40] Revernd has joined the channel [02:40] SubStack: but also keep in mind that there's dnode that works server to server and dnode for server to browser [02:41] zackattack: dnode for server to browser? [02:41] r04r has joined the channel [02:41] Emmanuel` has joined the channel [02:41] SubStack: server to browser is what dnode-session addresses [02:42] SubStack: using websockets [02:42] zackattack: insane.. [02:42] SubStack: zackattack: also if you want more crazy related tech to play with check out seaport and airport [02:42] SubStack: service registries for your clusters! [02:43] SubStack: and airport is just a more convenient api for connecting and serving upnode services through seaport [02:43] SubStack: I blogged about it here http://substack.net/posts/7a1c42/semver-your-services-with-seaport [02:43] zackattack: jeez wow [02:44] SubStack: the crazy part is that you can spin up new services with particular versions and only connect to certain semvered ranges [02:44] SubStack: just like the dependencies field in package.json, but for network services! [02:44] shinuza has joined the channel [02:46] zackattack: interesting [02:46] Joeysomo has joined the channel [02:46] piscisaureus_ has joined the channel [02:47] r04r has joined the channel [02:47] r04r has joined the channel [02:47] ArchWeb has joined the channel [02:47] Joeysomo has joined the channel [02:47] xaq has joined the channel [02:48] Joeysomo has joined the channel [02:48] dthompso99 has joined the channel [02:49] saikat has joined the channel [02:49] Joeysomo has joined the channel [02:49] warz: wish i could just get paid to work on all of the open source projects that i enjoy using [02:51] esundahl has joined the channel [02:52] r04r has joined the channel [02:52] ArchWeb has joined the channel [02:54] cleric_ has joined the channel [02:54] mrchess has joined the channel [02:55] mrchess has left the channel [02:55] draginx: warz: get ur open source projects big enough [02:55] draginx: that label a "Enterprise" tag to it and resell it :P [02:55] draginx: then* and just offer "support" :P [02:56] yc has joined the channel [02:57] maxogden: warz: if you are a good programmer that isnt too difficult. if you arent a good programmer keep programming and you'll get there. also social skills and not living in the middle of nowhere helps [02:57] r04r has joined the channel [02:57] maxogden: (not saying you are any of those, just speaking from experience) [02:59] wink_ has joined the channel [03:00] rurufufuss has joined the channel [03:02] r04r has joined the channel [03:02] r04r has joined the channel [03:05] samuelgoodwin: what is the difference between "var somefunction = function(){}" and "function someFunction(){}" ? [03:06] intripoon_ has joined the channel [03:07] sorensen__ has joined the channel [03:07] r04r has joined the channel [03:08] jlank has joined the channel [03:08] wink_ has joined the channel [03:09] dnjaramba has joined the channel [03:09] Sahua: samuelgoodwin: the function someFunction() method gets created when the parser goes through the file; var somefunction = function() gets created when the line is executed [03:11] r04r has joined the channel [03:11] samuelgoodwin: Sahua: oh ok. Is it best-practice to use one or the other? [03:13] skyler_brungardt has joined the channel [03:13] Sahua: i'm not a very experienced js developer, but i rarely ever use the function name() method because i'm always assigning functions to objects and prototypes and the like [03:14] Octayn: samuelgoodwin: Be consistent [03:14] Octayn: It doesn't matter which you use, really [03:14] Octayn: Just be consistent [03:16] dnjaramba has joined the channel [03:16] r04r has joined the channel [03:16] r04r has joined the channel [03:18] wink___ has joined the channel [03:18] chadskidmore has joined the channel [03:18] samuelgoodwin: ok cool, consistent now [03:19] maxogden: WOW read the 'Motivation' section of https://github.com/axiak/filternet that is amazing [03:19] samuelgoodwin: thanks Octayn, Sahua [03:19] Octayn: maxogden: d'aww [03:20] samuelgoodwin: awww [03:22] r04r has joined the channel [03:22] Octayn: I swear to god, every time I turn around there is a new node version [03:23] dnjaramba has joined the channel [03:23] dlg: do you need a hug? [03:23] Octayn: dlg: Yes. I wish ALL my software was like this [03:23] maxogden: dont turn around OH OH [03:23] Octayn: ACTION glares [03:23] maxogden: the commissars in town [03:24] maxogden: (isaac === commissar) [03:24] SubStack: oakland :: st petersburg [03:24] maxogden: SubStack: :: Tesla [03:25] SubStack: maxogden: excellent that is entirely the outcome I am aiming for [03:25] maxogden: http :: direct durrent : tcp :: alternating current [03:25] maxogden: SubStack: to die broke and alone without fulfilling your grand vision? [03:26] SubStack: yes [03:26] SubStack: I want to die penniliess and overworked surrounded by dangerous fantastic machinery [03:26] maxogden: most of teslas fantastic machinery was lost in a fire [03:26] maxogden: and others took his technology and profited from it [03:26] maxogden: preventing him for moving further in his work [03:26] r04r has joined the channel [03:26] SubStack: I'll install sprinklers [03:26] maxogden: good answer [03:26] SubStack: not going to repeat that mistake [03:27] al3xnull has joined the channel [03:27] wssr has joined the channel [03:27] SubStack: tesla should've invented sprinklers [03:27] maxogden: wat a n00b [03:27] SubStack: srs [03:27] daniel: anybody run the Node REPL from Emacs? [03:27] rodgerdb has joined the channel [03:28] rodgerdb has left the channel [03:30] wink_ has joined the channel [03:31] wingie: anyone here tried vows using browserify? [03:32] Revernd has left the channel [03:32] r04r has joined the channel [03:33] Revernd has joined the channel [03:33] draginx: is there an equivalent to http://cheat.errtheblog.com/ for nodejs? [03:34] dnjaramba has joined the channel [03:35] wink_ has joined the channel [03:36] bear917 has joined the channel [03:36] _th_n has joined the channel [03:37] r04r has joined the channel [03:37] innoying: Can somebody check if it shows any tweets for my account here: https://twitter.com/#!/innoying_dev [03:38] innoying: I don't see any anymore for me. [03:38] innoying: oops wrong room [03:39] dnjaramba has joined the channel [03:39] zackattack: SubStack: with dnode is it possible to check the ip address of the incoming request? [03:39] zackattack: or are there any other security features, for example, to stop a password cracking attempt? [03:42] r04r has joined the channel [03:43] plutoniix has joined the channel [03:46] wink___ has joined the channel [03:46] SubStack: zackattack: after the ready fires or in the connect callback you can check conn.remoteAddress [03:47] SubStack: and conn.remotePort [03:47] SubStack: you could limit the number of attempts per IP if that's what you want to do [03:47] r04r has joined the channel [03:47] r04r has joined the channel [03:48] VladGh has joined the channel [03:48] Vennril2 has joined the channel [03:50] jakehow has joined the channel [03:51] wink_ has joined the channel [03:51] dreamdust has joined the channel [03:51] warz has joined the channel [03:51] warz has joined the channel [03:52] r04r has joined the channel [03:52] jergason has joined the channel [03:52] xaq has joined the channel [03:55] boltR has joined the channel [03:57] r04r has joined the channel [03:57] dnjaramba_ has joined the channel [03:57] wink___ has joined the channel [03:57] boltR has joined the channel [03:57] joshgillies has joined the channel [03:59] Joeysomo_ has joined the channel [04:00] ryanfitz has joined the channel [04:02] r04r has joined the channel [04:02] wink_ has joined the channel [04:03] boogyman has joined the channel [04:04] skm has joined the channel [04:06] dnjaramba has joined the channel [04:07] r04r has joined the channel [04:08] vishesh has joined the channel [04:09] wink_ has joined the channel [04:11] wssr has joined the channel [04:11] JJMalina has joined the channel [04:11] r04r has joined the channel [04:11] joshthecoder has joined the channel [04:14] skm has joined the channel [04:15] mappum has joined the channel [04:16] mappum: What can I do about Buffers leaking memory? [04:16] r04r has joined the channel [04:16] r04r has joined the channel [04:17] dshaw_ has joined the channel [04:18] maxogden: buffers are memory [04:21] wink___ has joined the channel [04:22] xaq has joined the channel [04:23] SubStack: zackattack: you might also want to if (typeof callback !== 'function') return at the top of those functions [04:23] r04r has joined the channel [04:23] illourr has joined the channel [04:23] SubStack: it's pretty easy to accidentally crash your server if you don't check the types of the callbacks [04:24] SubStack: just be being careless on the repl or whatevs [04:24] zackattack: cool; that's helpful [04:25] SubStack: ACTION has built a lot of these things :) [04:25] zackattack: :) [04:25] timoxley: need to make a function 'block' while it completes an atomic sequence of async operations. I'm thinking the best way to handle this is to queue any incoming requests. Is that how people normally handle this? [04:26] SubStack: zackattack: and make sure too that if you run that in production then random IPs can't connect to it and start monkeying about [04:26] jkridner_ has joined the channel [04:26] SubStack: you can bolt that on later pretty easily with upnode however [04:27] maxogden: timoxley: just callback the response once the async operations are finished. you dont need to queue other requests, the node can handle many concurrent connections [04:27] SubStack: just check out the upnode authenticated example from the readme for a simple approach [04:28] idefine has joined the channel [04:28] zackattack: cool - i will have to remember that when it's time for to add upnode [04:28] zackattack: can i just do it within dnode though? should i? [04:29] zackattack: SubStack: i think i may want to also integrate it with my vbulletin db, hm. [04:29] SubStack: yeah you can with dnode but it's much easier to connect to an authenticated server with upnode since it takes care of the initialization [04:30] SubStack: but either way [04:30] level09 has joined the channel [04:30] Octayn: So uh, does fs.watch on linux add inotify watchers for all events? [04:31] r04r has joined the channel [04:31] timoxley: maxogden sure, but I think I need to prevent operations from occuring while the 'blocking' async operations are happening. [04:31] gavin_huang has joined the channel [04:31] maxogden: timoxley: i think you want the word mutex or transaction [04:31] Octayn: Ah, that's in libuv, no wonder I couldn't find it in node src [04:31] timoxley: maxogden that's the one. [04:32] timoxley: I really should just expose transaction functionality of the db [04:32] maxogden: timoxley: yes that [04:32] wookiehangover has joined the channel [04:33] timoxley: but I was thinking a queuing system might be a simpler alternative [04:34] ashishg has joined the channel [04:35] pradeebv has joined the channel [04:35] munichlinux has joined the channel [04:36] maxogden: http://i.qkme.me/367x5t.jpg [04:36] jakehow has joined the channel [04:36] wink_ has joined the channel [04:37] jinmo123 has joined the channel [04:37] jinmo123: hi, can i have a question? [04:38] maxogden: jinmo123: what is your favorite flavor of ice cream? [04:38] jinmo123: i created a new Socket, and it closes immediately after connect event. [04:38] jinmo123: https://gist.github.com/850c6f257a91a1c39f4f [04:38] r04r has joined the channel [04:38] jinmo123: hmm.. [04:38] jinmo123: chocolate, stawberry [04:38] maxogden: thats two flavors! [04:38] jinmo123: and cookie&cream [04:38] jinmo123: hmm [04:38] QaDeS_: hiyas. i'm trying to user browserify with nowjs, but i can't seem to conveniently require the client/now.js file. anybody been there yet? [04:39] jinmo123: cookie&cream is best! [04:39] SubStack: QaDeS_: probably now isn't written to work with browserify [04:39] SubStack: only works for modules written the node way [04:39] maxogden: jinmo123: maybe SubStack knows [04:39] jinmo123: substack? where is it? [04:39] jinmo123: (googleing..) [04:40] SubStack: ice cream? [04:40] maxogden: SubStack: no the gist [04:40] jinmo123: ah [04:40] maxogden: substack is great oracle [04:40] jinmo123: SubStack: can i have a question? [04:41] jinmo123: uhohohohuhuhuhuh! [04:41] boehm has joined the channel [04:41] SubStack: latest nodeup is up! http://news.ycombinator.com/item?id=3611321 [04:41] wink_ has joined the channel [04:42] jinmo123: wow, lambdas!!! [04:42] jinmo123: i waited for that [04:42] sreeix has joined the channel [04:42] SubStack: jinmo123: why are you instantiating a new Socket object instead of net.createConnection? [04:42] jinmo123: hmm [04:42] jinmo123: i'll try that [04:43] cjm: New - NodeUp:13 w/ izs substack felixge and maciejmalecki is up. Get it here: http://nodeup.com/thirteen [04:44] jinmo123: oh, still [04:44] SubStack: it doesn't look like you can allowHalfOpen in a createConnection though [04:44] SubStack: I'm not even sure how that stuff works [04:44] jinmo123: yeah it's my mistake [04:45] jinmo123: it closes when i send a data [04:45] r04r has joined the channel [04:46] cjm: and if you want, this http://news.ycombinator.com/item?id=3611321 [04:46] wink___ has joined the channel [04:47] illourr has joined the channel [04:47] jinmo123: still [04:47] jtsnow has joined the channel [04:49] timoxley: what do people think of this ace thing? I don't get its raison d'etre https://github.com/maccman/ace [04:50] mikeal has joined the channel [04:51] r04r has joined the channel [04:51] ohtogo has joined the channel [04:52] wink_ has joined the channel [04:54] astro73|mal has left the channel [04:54] orlandovftw has joined the channel [04:54] orlandovftw has joined the channel [04:55] draginx has joined the channel [04:58] r04r has joined the channel [04:58] pizthewiz has joined the channel [05:00] wink___ has joined the channel [05:01] Wizek has joined the channel [05:01] jakehow_ has joined the channel [05:03] ashishg has joined the channel [05:03] davidbanham: I'm trying to use mikeal's request module to access a REST API and banging my head against a wall. Is this just not what this module is for? [05:03] r04r has joined the channel [05:04] richardr has joined the channel [05:07] r04r has joined the channel [05:07] r04r has joined the channel [05:10] wink_ has joined the channel [05:11] aashay has joined the channel [05:13] satyr has joined the channel [05:14] aashay: hi everyone…has anyone been bitten by OS X Lion's deprecation of OpenSSL when trying to build node modules? [05:14] r04r has joined the channel [05:16] Aria has joined the channel [05:17] zeade has joined the channel [05:18] wink___ has joined the channel [05:19] shanebo has joined the channel [05:19] r04r has joined the channel [05:19] skoom has joined the channel [05:20] diva has joined the channel [05:20] davidbanham: aashay: Nope, but I'm not sure if I've installed something that would require it since upgrading to Lion either. [05:20] aashay: davidbanham: yeah…if you want that to still be the case, avoid "npm install bcrypt" :( [05:21] davidbanham: aashay: Blergh. I use bcrypt in a production app. I guess I'd better avoid deleting my local installation [05:22] aashay: davidbanham: yeah don't touch it, I made the mistake of upgrading my local npm modules today and I've been hosed ever since [05:23] davidbanham: aashay: Just installed it in a local directory to test and it seems to have gone okay. Deprecation warnings, but waf exited successfully. [05:23] maxogden: davidbanham: i use request for rest all the time [05:23] aashay: davidbanham: I could probably spin up an ubuntu VM or something but that doesn't really solve the problem. I've got an Issue logged with the maintainer: https://github.com/ncb000gt/node.bcrypt.js/issues/61 (hijacked the issue unfortunately) [05:23] aashay: davidbanham: does "make test" pass for you? [05:23] davidbanham: maxogden: Am I just not grokking it, then? Are there good examples for doing a really basic POST request? [05:24] aashay: davidbanham: I've tried many things and I'm getting a ton of "Error: Unable to load shared library" [05:24] r04r has joined the channel [05:24] r04r has joined the channel [05:25] maxogden: davidbanham: request({method: "POST", body: "hello", url: "http://someapi.com"}) [05:26] davidbanham: maxogden: So I need to URLencode the body before I pass it to request? [05:26] davidbanham: aashay: Sorry, had to get nodeunit first. Make test passes for me. OK: 15060 assertions (8675ms) [05:26] maxogden: davidbanham: if you are talking about html form submissions yes but that doesnt have anything to do with POST specifically, body is just a string [05:27] aashay: davidbanham: Oh right, yea I should've mentioned to npm link. Hmm. You're on 10.7.3? Which version of node? I'm on 0.6.11 [05:28] maxogden: davidbanham: but body: qs.encode({name: 'bob', password: 'pizza'}) [05:28] davidbanham: aashay: Yep, 0.6.11. I just pulled what was in github. [05:28] maxogden: davidbanham: and probably headers: {"content-type": "application/x-www-form-urlencoded"} [05:29] davidbanham: maxogden: Thanks, it just seemed strange to need to call querystring separately. Made me think I must be Doing It Wrong. [05:29] r04r has joined the channel [05:29] looopy has joined the channel [05:30] maxogden: davidbanham: nah its just separation of concerns, x-www-form-urlencoded is its own thing. modern rest APIs use JSON instead (there is a json helper request to auto parse/decode) [05:31] ashishg has joined the channel [05:32] davidbanham: maxogden: Yeah I guess I didn't consider posting different kinds of stuff. Thanks, I'll soldier on with it. [05:33] EhevuTov has joined the channel [05:33] Joeysomo has joined the channel [05:34] r04r has joined the channel [05:34] spion has joined the channel [05:34] devaholic has joined the channel [05:35] awkn4n has joined the channel [05:37] swc|666 has joined the channel [05:37] swc|666: is the calipsoproject pretty much dead? [05:37] swc|666: s/calipsoproject/calipso project/ [05:39] r04r has joined the channel [05:39] r04r has joined the channel [05:41] wink_ has joined the channel [05:41] cjm has joined the channel [05:42] zackattack: SubStack: dnode.js isn't being automatically served up in my browser. what should i do? [05:42] SubStack: add a ? [05:43] SubStack: or use browserify [05:43] zackattack: the resource is simply not found [05:43] SubStack: use browserify I guess then? [05:43] r04r has joined the channel [05:43] r04r has joined the channel [05:43] SubStack: browserify yourscript.js -o bundle.js [05:44] SubStack: and in yourscript.js just var dnode = require('dnode') [05:44] mappum: Is there anything I can do about memory leaks with Buffers? I have a really slow leak that will be a problem if I need to run my stuff for a long time (which I will) [05:44] SubStack: and do whatever other browser-type things in yourscript.js [05:44] zackattack: is there a way to do it without browserify? [05:45] SubStack: zackattack: what are you using to serve the web app? [05:45] zackattack: express [05:46] zackattack: that was @SubStack [05:46] zackattack: SubStack: i also have this, app.use(express.static(__dirname + '/static')); [05:47] zackattack: should that be a problem? [05:48] joshwines has joined the channel [05:48] r04r has joined the channel [05:48] zackattack: SubStack: also, is there a way to specify which port the dnode server is running on? [05:49] zackattack: when using dnode in the browser. [05:50] SubStack: hmmm should work with express [05:50] wink___ has joined the channel [05:51] mikeal has joined the channel [05:51] zackattack: Cannot GET /dnode.js [05:51] SubStack: zackattack: when you use dnode in the browser it uses the http server [05:51] SubStack: it doesn't use a port itself [05:51] zackattack: huh? [05:51] SubStack: the http server is the transport [05:52] zackattack: how can i debug why /dnode.js isnt being served? [05:52] crutex has joined the channel [05:52] crutex has joined the channel [05:53] SubStack: zackattack: maybe you have a route that is catching that route before dnode can get it? [05:53] SubStack: are you using .listen(app)? [05:53] r04r has joined the channel [05:53] SubStack: try running one of the express examples in the example/ dir of the repo [05:53] Xtrivity has joined the channel [05:54] zackattack: oh, i wasn't using .listen(app), since my dnode server is a separate application. [05:54] Xtrivity: Hey all, I am just about to start playing around with JS. As i plan on buying a dedi after I have developed it locally I am wondering what flavor of linux most people are using to run the nodejs server on [05:54] SubStack: well there you go [05:54] SubStack: zackattack: so here's how it works [05:54] Octayn: Xtrivity: I've used everything from LFS to Debian Stable [05:54] SubStack: you .listen(port) to listen on a port over tcp to other node processes [05:54] SubStack: you .listen(app) to listen on an http server to connect to browser clients [05:54] SubStack: different things [05:55] Xtrivity: Octayn is ubuntu alright? I have been using centos on a few of my dedicateds, but deems to be a bit of a pain to install on the latest centos 6.2 [05:55] Octayn: Xtrivity: ubuntu server is just fine [05:55] zackattack: so... to make the browser talk to a node process on tcp port 5050... ? [05:56] SubStack: zackattack: you can't do that directly [05:56] SubStack: browsers are stupid [05:56] zackattack: right [05:56] zackattack: how do i route the request inside my app then? [05:56] SubStack: you've got to .listen(app) [05:56] zackattack: done. [05:56] Xtrivity: Octayn: ubuntu desktop work? Just noticed that the server flavor costs a bit of coin [05:56] zackattack: then? [05:56] Octayn: Xtrivity: No it doesn't, ubuntu server is free [05:56] zackattack: or i guess i could put my server in an external file and just export it [05:56] zackattack: and then listen that way, so i'm only running one server? [05:56] SubStack: yes that's a good approach [05:57] SubStack: you can also .listen() using the same instance on an app and a port [05:57] Octayn: Xtrivity: http://www.ubuntu.com/download/server/download [05:57] SubStack: .listen(app).listen(port) [05:57] zackattack: ah, ok [05:57] SubStack: if you want tcp connections to have the same access as browser connections [05:57] Octayn: Xtrivity: you'll probably want the LTS, you can compile node easily [05:57] zackattack: uh... sure.. why wouldn't i? [05:57] joshkehn1 has joined the channel [05:57] joshkehn1 has left the channel [05:58] zackattack: :) [05:58] awkn4n has left the channel [05:58] eddyb: wow, this is the first time I realize how to do proper constructor calls with variable arguments [05:58] eddyb: constructor.apply(Object.create(constructor.properties), arguments); [05:58] r04r has joined the channel [05:59] SubStack: eddyb: there are lots of ways [05:59] Xtrivity: Octayn: downloaded latest LTS Version 10.04, If i have any questions ill make sure to come harass! [05:59] Xtrivity: thanks! [05:59] Octayn: Xtrivity: I hang in ##Linux too [06:00] Xtrivity: alright, if i have any dumbfounded questions that are apparent on google ill make sure to ask! [06:00] SubStack: eddyb: http://stackoverflow.com/questions/1606797/use-of-apply-with-new-operator-is-this-possible/6062379 [06:00] SubStack: for some other ways [06:00] ohtogo has joined the channel [06:01] eddyb: SubStack: mine is better than all those [06:01] eddyb: because I don't do more than a simple new would [06:02] zomgbie has joined the channel [06:03] meso has joined the channel [06:03] r04r has joined the channel [06:04] jinmo123 has joined the channel [06:04] jinmo123: oh, my god! f**king socket problem! [06:05] jinmo123: it's sucking my a**! [06:05] xbayrockx has joined the channel [06:05] vishesh has left the channel [06:05] jinmo123: i fought for it in 5 days! [06:05] vincentcr has joined the channel [06:06] jtsnow has joined the channel [06:08] wink_ has joined the channel [06:08] maxogden: lol [06:09] jinmo123: fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu! [06:09] jinmo123: .. [06:09] zackattack: SubStack: wow, i really like this pattern of just writing extensions as dnode server methods [06:09] r04r has joined the channel [06:09] r04r has joined the channel [06:11] ditesh|cassini has joined the channel [06:11] SubStack: zackattack: before you know it you'll have dozens of servers! [06:12] zackattack: SubStack: the only thing that i don't like is that it's quite...slow [06:12] SubStack: how so? [06:13] SubStack: doing round-trips for operations you mean? [06:13] zackattack: yea. [06:13] SubStack: but on the plus side, it's crazy easy to scale out horizontally [06:14] zackattack: SubStack: it takes 8 seconds... that's too long for user auth! [06:14] gr4yscale has joined the channel [06:14] SubStack: 8! [06:14] SubStack: that is like way too long [06:14] r04r has joined the channel [06:14] skm has joined the channel [06:14] zackattack: yea, what the heck! :) [06:14] zackattack: is that typical? [06:14] SubStack: should be in the hundereds of milliseconds tops [06:14] SubStack: for simple round-tripping [06:14] richardr has joined the channel [06:14] SubStack: zackattack: gist some code? [06:15] SubStack: some more code I guess? [06:15] zackattack: ok, here's another clue... it only responds to the first request [06:15] zackattack: https://gist.github.com/1868096 [06:16] zackattack: is that a bad pattern? [06:17] zackattack: (@SubStack ) [06:18] SubStack: oh yeah don't do that [06:18] SubStack: easy to fix [06:18] SubStack: DNode.connect(function (remote) { [06:18] SubStack: $("button#login").click(function() { [06:18] SubStack: instead of what you have [06:18] wookiehangover: zackattack: http://www.dailymotion.com/video/xa5av1_zack-attack-friends-forever_shortfilms [06:18] mikeal: wha [06:19] zackattack: ah [06:19] mikeal: i always get notifications for this channel [06:19] mikeal: and i'm pretty sure it's always just someone linking to one of my repos [06:19] r04r has joined the channel [06:19] r04r has joined the channel [06:19] SubStack: mikeal: I was talking about request a bit last night too [06:19] SubStack: and I sent you a pull request [06:20] mikeal: i saw [06:20] mikeal: well, first i saw the issue [06:20] SubStack: and the version on git has a multipart bug which totally tripped me up >_< [06:20] mikeal: and was like "why isn't this a pull request, come on substack" [06:20] zackattack: @wookiehangover lol [06:20] mikeal: and then i saw the pull request [06:20] mikeal: there is a multipart bug on master? [06:20] SubStack: yeah [06:20] SubStack: I made a gist [06:20] mikeal: a TON of code got ripped apart on master [06:20] mikeal: can you link me to the gist [06:20] zeade has joined the channel [06:20] SubStack: https://gist.github.com/1864060 [06:21] SubStack: note the duplicated json message [06:22] wink_ has joined the channel [06:22] mikeal: nope [06:22] mappum: Does node always slowly rise in memory usage (is it the v8 gc?) or do I have a leak? [06:22] mikeal: you know what that is, it's me being fucking stupid and thinking i didn't already do something i already did [06:22] mikeal: when i did the refactor i implemented a write chunk in end and forgot i was already using .apply on end [06:22] copongcopong has joined the channel [06:23] SubStack: aha [06:23] mikeal: SubStack: fixed [06:23] SubStack: sweet [06:24] zackattack: SubStack: is it standard for it to take 11 seconds for the DNode.connect() event to fire? [06:24] r04r has joined the channel [06:25] SubStack: zackattack: negatory, usually it's pretty fast [06:25] SubStack: but it could be socket.io being ridiculous? [06:25] zackattack: that's totally possible.. [06:25] SubStack: socket.io is kind of ridiculous [06:26] zackattack: it hooks in to socket.io, eh? [06:26] SubStack: I need to swap it out for engine.io and/or socksjs [06:27] zackattack: uh oh [06:27] zackattack: plan on doing it in the near future? [06:28] SubStack: zackattack: what about when you run the example, is it still as slow? [06:28] SubStack: when I run the example/web-express it fires pretty much immediately [06:28] SubStack: on chrome [06:29] st_luke has joined the channel [06:29] zackattack: oh, let me do that, and see if the problem is my app [06:29] mikeal has joined the channel [06:29] SubStack: I'm still on 0.4 of course because I'm lame and have lots of production code :p [06:29] SubStack: could be some issue that cropped up in 0.6 [06:29] r04r has joined the channel [06:31] zackattack: SubStack: augh, i can't install 'dnode' inside the dnode (git proj) directory? [06:31] zackattack: "npm install dnode" does nothing [06:31] SubStack: zackattack: just require('../../') [06:31] SubStack: or mkdir node_modules in examples/ or examples/web-express [06:31] SubStack: then npm install dnode [06:32] SubStack: or make a symlink to the parent or however [06:33] zackattack: ok... hmm... [06:33] zackattack: SubStack: The cat says ?. [06:33] r04r has joined the channel [06:34] zackattack: ENOENT, No such file or directory '/Applications/MAMP/htdocs/dnode/lib/../browser/bundle.js' [06:35] margle has joined the channel [06:36] zackattack: SubStack: familiar with that bug? [06:36] SubStack: oh if you've checked out the dev build you'll have to build the bundle [06:36] SubStack: node bin/bundle.js [06:37] zackattack: ah [06:37] zackattack: i got it working, but it doesn't fire immediately... [06:38] zackattack: so since it's a window.onload, it doesn't fire at all. [06:38] zackattack: err [06:38] r04r has joined the channel [06:38] r04r has joined the channel [06:38] SubStack: maybe the readyState is already 'complete'? [06:38] zackattack: yeah, SubStack , the DNode.connect() event takes about 10 seconds to fire... even in your example. [06:39] SubStack: you could use $(document).ready() if you throw jquery in there [06:39] SubStack: whoa strange! [06:39] Sahua has joined the channel [06:39] jinmo123: $(function(){}) [06:39] SubStack: zackattack: which browser? [06:39] jinmo123: can do too [06:39] zackattack: Chrome. [06:40] wink___ has joined the channel [06:40] izepstan has joined the channel [06:40] mraleph has joined the channel [06:41] SubStack: zackattack: try going here http://browserling.com:6857/ [06:41] zackattack: SubStack: it was ready a couple seconds after 'cat says' appeared. [06:41] SubStack: crap, that probably means it's some node version of library range issue [06:42] SubStack: I guess that's better than it being some browser bug [06:42] zackattack: how can I help you narrow this down? [06:43] SubStack: one sec, let me try checking out a fresh version [06:43] r04r has joined the channel [06:43] r04r has joined the channel [06:46] zackattack: k [06:46] SubStack: hmmm on 0.6.10 it fires right away too [06:46] SubStack: trying an npm rebuild [06:47] garrensmith has joined the channel [06:47] zackattack: i'm on node 0.5.0-pre [06:47] SubStack: nope, still fires right away [06:47] zackattack: could it be my version of node..? [06:48] SubStack: zackattack: can you try `npm ls` in your project directory? [06:48] SubStack: in whichever directory has the node_modules [06:48] r04r has joined the channel [06:48] pvankouteren has joined the channel [06:48] zackattack: https://gist.github.com/1868170 [06:49] garrensmith has joined the channel [06:49] SubStack: zackattack: and what about express? [06:50] ryanfitz has joined the channel [06:51] SubStack: try `npm install express` into that dir too? [06:51] zackattack: just did... express@2.5.8 [06:51] zackattack: and it still takes ~11sec [06:51] SubStack: so I have exactly the same versions of all the libs as you [06:52] SubStack: and I tested against 0.4.12 and 0.6.10 [06:52] SubStack: and they both fire right away [06:52] SubStack: I could build 0.5.0-pre with give but it might take away [06:52] SubStack: *take awhile [06:52] SubStack: I'm on ubuntu here too [06:52] SubStack: 64 bit [06:53] SubStack: and chrome 17.0.963.12 dev [06:54] zackattack: hmm.. [06:54] zackattack: 17.0.963.56 [06:54] zackattack: 32bit os x 10.6 [06:55] r04r has joined the channel [06:55] SubStack: we already eliminated the browser as the source of the problem since you can load up my copy quickly even though it jumps through my slow upload and an ssh tunnel hop [06:56] SubStack: can't seem to build 0.5 [06:56] SubStack: zackattack: you could try upgrading to 0.6 [06:56] xaq has joined the channel [06:56] zackattack: how hard would it be for me to update node? [06:56] zackattack: how hard to upgrade to .6? [06:56] SubStack: it's not hard it just takes a while to compile [06:57] SubStack: if you npm install -g nave [06:57] SubStack: you can just nave install $version [06:57] SubStack: https://github.com/isaacs/nave [06:57] SubStack: then nave use $version [06:58] zackattack: cool.. [06:58] zackattack: building 0.6.11 now [06:59] stonebranch has joined the channel [07:00] r04r has joined the channel [07:00] mikeric has joined the channel [07:02] jiboumans_ has joined the channel [07:03] wink_ has joined the channel [07:04] r04r has joined the channel [07:07] simenbrekken has joined the channel [07:08] garrensmith: morning [07:09] wink_ has joined the channel [07:09] r04r has joined the channel [07:10] SamuraiJack has joined the channel [07:10] samuelgoodwin has joined the channel [07:11] kurtzhong has joined the channel [07:11] plutoniix has joined the channel [07:12] Emmanuel`: hm. It's been in my head for a bit: in PHP (which I hate and ruin my life everyday), every script are analyse at runtime: a client connects, the script is executed. Therefore, if there is something wrong with my website, I can fix the faulty script without affecting the rest of the website [07:12] Emmanuel`: I know usage of node is very different [07:13] Emmanuel`: but I was wondering if there were a way to do something like that in Node [07:13] Emmanuel`: like, there is a bug somewhere in my node server, is there any way I can fix it without restarting the whole node instance [07:13] kalms has joined the channel [07:15] r04r has joined the channel [07:18] gr4yscale has joined the channel [07:18] Skola has joined the channel [07:19] r04r has joined the channel [07:22] wink_ has joined the channel [07:24] wingie has joined the channel [07:24] xeodox has joined the channel [07:25] illourr1 has joined the channel [07:25] r04r has joined the channel [07:26] mikeal has joined the channel [07:29] zackattack: SubStack: i dont like how nave makes my special PS1 go away [07:29] zackattack: :) [07:30] r04r has joined the channel [07:32] wink___ has joined the channel [07:32] fangel has joined the channel [07:33] koxa has joined the channel [07:34] r04r has joined the channel [07:34] r04r has joined the channel [07:35] EvRide1 has joined the channel [07:35] SamuraiJack has joined the channel [07:36] samuelgoodwin has joined the channel [07:36] izepstan has joined the channel [07:38] kalms has joined the channel [07:38] parshap has joined the channel [07:39] wink_ has joined the channel [07:39] r04r has joined the channel [07:39] niloy has joined the channel [07:40] xinsanityx has joined the channel [07:40] xeodox: If I run a "large EC2 instance", will I be able to run 2 node.js scripts at once? [07:40] xinsanityx has left the channel [07:40] Xtrivity: hey Octayn you around bud? [07:40] Octayn: Yeah [07:40] Octayn: xeodox: Uhh... you can do that with a microinstance [07:41] stefpb has joined the channel [07:41] Xtrivity: Octayn: installed the ubuntu server on my vm. Able to get node.js up and running. I have attempted to get the express and socket.io pumpin but no such luck [07:41] Xtrivity: keep getting "cannot find module 'socket.io' and the same with express [07:41] xeodox: thanks. [07:41] Octayn: Xtrivity: How did you install them? [07:42] xeodox: Does anyone know the performance of Large vs Small for Node.js? [07:42] Xtrivity: Octayn npm install socket.io (in the node folder) [07:42] Xtrivity: same with express as well. [07:42] Octayn: xeodox: the obvious performance increases you'd expect from having more cpu and memory [07:43] Octayn: Xtrivity: you need to run 'npm install' from the directory you will be running your program from [07:43] copongcopong has joined the channel [07:43] xeodox: Octayn: thanks. right now I have mysql, web (node.js), and image-resizing (node.js) server on 3 different Smalls. Do you know if I would get better performance with 1 large that does all 3 of those things? [07:43] Octayn: Xtrivity: so for example, I would 'cd ~/hacking/miniblog; npm install express' [07:43] Xtrivity: Octayn ill give it a shot [07:43] Octayn: xeodox: maybe, maybe not. are they under high load? [07:43] r04r has joined the channel [07:43] r04r has joined the channel [07:44] xeodox: Octayn: no, they are not. However, I have many visitors, and sometimes it takes long time. (slow ) [07:44] Octayn: xeodox: have you profiled it to find your bottlenecks? [07:44] xeodox: Octayn: I have everything indexed correctly in Mysql. I also utilized Redis for caching correctly. I'm basically fetching from memory all the time, and it's still slow. [07:44] xeodox: Octayn: how do I profile? I installed node-profile but it didn't work. Is that the only way? [07:45] Octayn: xeodox: v8 does profiling built-in [07:45] markbao has joined the channel [07:45] xeodox: Octayn: oh. how do I use that? (Right now I just do node app.'s) [07:45] Octayn: "node --prof foo.js" [07:46] Octayn: http://code.google.com/p/v8/wiki/V8Profiler [07:47] xeodox: Octayn: I did that, but I don't see any differnce [07:47] robhawkes has joined the channel [07:47] xeodox: (i did exactly that) [07:47] Octayn: xeodox: it should have logged to v8.log [07:47] xeodox: oh I see. where's that? [07:47] ph^ has joined the channel [07:47] Octayn: working directory of wherever you ran node [07:48] r04r has joined the channel [07:48] felixhummel has joined the channel [07:48] Xtrivity: Octayn: That worked thank you. I am sorry for the stupid questions but i do indeed have a few more. As ubuntu server is all command prompt on my virtual machine (ip: 192.168.216.230) how can I create a client to connect it as all examples are local host [07:49] Xtrivity: (noticed that in the js file it requires "sockets/socket.io.js" for the client but not sure if they will cross communicate) [07:49] Octayn: Xtrivity: listen on that public ip [07:49] groom has joined the channel [07:49] ph^ has joined the channel [07:49] xeodox: Octayn: thanks. I got a bunch of gibberish printed out. How do I read it? code-creation,LoadIC,0x41f2fec0,62,"emos" [07:49] Xtrivity: Octayn: where do i get: [07:49] Octayn: Xtrivity: when you create the socket.io server, it should serve that for you automagically [07:50] sigurding has joined the channel [07:50] Octayn: xeodox: that's where http://code.google.com/p/v8/wiki/V8Profiler comes in handy [07:50] Octayn: xeodox: you'll want to find that tick-processor script [07:50] hipsterslapfight has joined the channel [07:50] xeodox: Octayn: oh I see [07:51] Octayn: xeodox: might need to compile v8 to get it [07:51] xeodox: In general, what does profiling tell me anyway? (How long each function takes? or what? ) [07:51] Xtrivity: Octayn: if i go off of: http://socket.io/#how-to-use the second layer down where it shows server (app.js) and client (index.html).. and i am running the server in my vm.. am i not using index.html to connect locally (outside of the vm) [07:51] Octayn: xeodox: Yes, exactly that [07:51] wink_ has joined the channel [07:51] Octayn: xeodox: so you know which functions are slowest, so you know what needs improving [07:52] Morkel has joined the channel [07:52] Octayn: Xtrivity: not sure I understand your question [07:52] Xtrivity: on the link sent there's both a server side and client side file.. app.js is server (running in my vm) and client (i am assumign runs outside of the vm to connect) [07:53] r04r has joined the channel [07:53] Octayn: The client would be served by an httpd to be used by the browser [07:53] Hanspolo has joined the channel [07:53] Xtrivity: so it requires something like xampp or apache as opposed to .html file [07:54] Octayn: node has an http server [07:54] Octayn: you're running it by using express [07:54] Xtrivity: Octayn im gonna pm so i dont get booted, i need to copy and paste to make sense of what im saying [07:54] Octayn: Xtrivity: use a pastebin, I have PM's disabled on the server [07:54] Xtrivity: sure [07:55] tonist has joined the channel [07:55] Xtrivity: Octayn: http://pastebin.com/zTCAPR4K so it says [08:32] wink_ has joined the channel [08:33] r04r has joined the channel [08:33] eddyb: if you don't, you'll have to use something like [08:33] marvin_ has joined the channel [08:34] eddyb: if you have some big PHP application, you can very well use a different machine or port for the node+socket.io part [08:35] garrensm_ has joined the channel [08:35] Danielss89 has joined the channel [08:36] Xtrivity: ahh finally eddyb: thank you so much! [08:36] stonebranch has joined the channel [08:36] SubStack: zackattack: did you get a newer version of node built? [08:36] SubStack: ACTION is curious [08:36] eddyb: Xtrivity: also, #socket.io is the channel you wanted :P [08:36] Xtrivity: eddyb: haha i appreciate it a lot! i was so frustrated... [08:37] johnhamelink has joined the channel [08:37] jkridner has joined the channel [08:37] erikzaadi has joined the channel [08:38] zackattack: SubStack: yes [08:38] r04r has joined the channel [08:38] eddyb: Xtrivity: I couldn't understand where the .js was supposed to be, for some time :P [08:38] jj_ has joined the channel [08:39] zackattack: what was the project [08:40] SubStack: the web-express example? [08:40] Dharmesh has joined the channel [08:41] Dharmesh: hello [08:41] SubStack: beep boop [08:41] Dharmesh: andbody can help for iisnode [08:41] zackattack: k [08:42] zackattack: about 9 seconds [08:42] Dharmesh: how to handle all request throught node.js using iisnode [08:42] Xtrivity: eddyb: how stable is express and nodejs ? [08:42] zackattack: bash-3.2$ node --version [08:42] zackattack: v0.6.11 [08:42] SubStack: :( [08:42] zackattack: =( [08:42] SubStack: maybe this is a bug that socket.io fixes in a newer build [08:42] zackattack: hopefully. [08:42] SubStack: I can't replicate it though [08:42] zackattack: well, i decided to stop using it [08:43] zackattack: i'm just using socket.io now [08:43] zackattack: but i still had it abstracted to a "server" [08:43] zackattack: so, :) [08:43] SubStack: you can still use dnode for server to server communication [08:43] zackattack: totally [08:44] zackattack: definitely a great piece of plumbing [08:44] r04r has joined the channel [08:44] eddyb: Xtrivity: if you're not using 0.7, it should be very stable [08:44] kalms has joined the channel [08:45] [AD]Turbo has joined the channel [08:45] eddyb: 0.8 will be the stabilized version, with the changes in 0.7 [08:45] [AD]Turbo: hola [08:45] Xtrivity: eddyb: Thanks! Last quick question. If i already have an apache server running my website, All i should need is a socket.io server should i not? This is where I get a bit confused [08:46] eddyb: yes [08:46] eddyb: unless you want a full node.js webserver [08:46] Xtrivity: Okay, on that note: i can't seem to get connectivity to the socket.io connection (current test setup: node.js / socket.io server on vm + non VM with apache web server installed) [08:46] izepstan has joined the channel [08:47] Blkt has joined the channel [08:47] ningu has joined the channel [08:48] sgimeno has joined the channel [08:48] eddyb: Xtrivity: any public test page? [08:48] hij1nx has joined the channel [08:48] eddyb: or at least can you show me your code? and tell me how it fails :P [08:48] Xtrivity: eddyb you mind if i pm you quickly? [08:48] r04r has joined the channel [08:49] paera has left the channel [08:49] dobber has joined the channel [08:50] sugyan has joined the channel [08:50] Xtrivity: eddyb: here's a pastebin: http://pastebin.com/9m9GFeEV [08:51] Xtrivity: that currently is not working. [08:51] niloy has joined the channel [08:52] Xtrivity: the second part of the code (index.html) is being ran locally on my machine using an apache server. [08:52] eddyb: with that crap in there you might end up disabling html5 features :P [08:52] tdegrunt has joined the channel [08:53] eddyb: I'm joking, ofc, html5 rules everything [08:53] Xtrivity: but shouldn't it be crossplatform.. essentially the whole reason im not using HTML5 web sockets [08:53] Xtrivity: but that is not working. If i go to the index.html i get no response from the server. [08:53] r04r has joined the channel [08:53] josh-k has joined the channel [08:53] eddyb: Xtrivity: what do you expect? [08:54] Xtrivity: Well I figured if im using my apache server and connecting to my VM server that it would have some sort of console log or do something.. but i get no results on either end. [08:54] Xtrivity: so I am assuming i'm doing something wrong...? [08:54] stagas has joined the channel [08:55] dve has joined the channel [08:55] eddyb: pffft [08:57] Xtrivity: haha what is pfft? I'm doin my best here haha! [08:57] lzskiss has joined the channel [08:57] wink___ has joined the channel [08:58] salva has joined the channel [08:58] lperrin has joined the channel [08:58] eddyb: Xtrivity: http://pastebin.com/4S3QMSJi [08:59] eddyb: that's how you're supposed to use it [08:59] tonist has joined the channel [08:59] Blkt: good morning everyone [08:59] r04r has joined the channel [08:59] r04r has joined the channel [09:00] Topcat has joined the channel [09:00] Xtrivity: eddyb: When i go to my client laptop: http://localhost/work/socket/index.html and run the index.html as updated on the pastebin, ig et no response :S [09:00] margle has joined the channel [09:01] eddyb: did you update the app.js ? [09:01] Xtrivity: you betcha! [09:01] aaronmcadam has joined the channel [09:01] eddyb: did you restart the app.js ? [09:01] Xtrivity: of course. [09:01] eddyb: and it says nothing in the console? [09:01] Xtrivity: eddyb: would you be able to teamview my computer? I could show you [09:02] neshaug has joined the channel [09:02] Xtrivity: console shows nothing. [09:02] eddyb: then you're doing it very wrong [09:02] eddyb: and there's also nothing in chrome's console? [09:02] Xtrivity: let me check chromes [09:02] Danielss89 has joined the channel [09:02] eddyb: (assuming you're using chrome as any other sane person) [09:02] Dreamer3 has joined the channel [09:03] sugyan has joined the channel [09:03] `3rdEden has joined the channel [09:03] jblanche has joined the channel [09:03] Xtrivity: eddyb: "Uncaught ReferenceError: io is not defined" [09:03] sdsd444444 has joined the channel [09:03] Xtrivity: that's on the client side. [09:03] eddyb: lol [09:03] eddyb: pffft [09:04] eddyb: you forgot to include the socket.io js [09:04] r04r has joined the channel [09:04] Xtrivity: example didn't show that but okay oen sec [09:04] eddyb: all examples show it [09:04] `3rdEden: So you just expect socket.io to be in your page all magically [09:04] eddyb: http://pastebin.com/BrKS5sTY [09:05] eddyb: Xtrivity: I didn't even see you missed it, the first time :P [09:06] Xtrivity: eddyb: included the socket.io still am receiving nothing in the console [09:06] Xtrivity: (no errors on the index.html page anymore) [09:06] Xtrivity: (and no browser console output or errors) [09:06] tomasztomczyk has joined the channel [09:07] eddyb: Xtrivity: not a single line in the console you're running node app.js ? [09:07] Xtrivity: not a thing eddyb. :S [09:07] hipsterslapfight has joined the channel [09:07] Xtrivity: eddyb could i get you to teamview my computer? And i can show you, prob speed this all up quite a bit [09:07] eddyb: are you even running node? [09:08] eddyb: with socket.io installed? [09:08] Xtrivity: of course yes... [09:08] eddyb: node --version [09:08] ningu: hey, no one's around on #nodejitsu so I'll ask here... any idea how I detect my app is running on nodejitsu, from within the app? [09:08] eddyb: from what you're saying, you aren't [09:08] ningu: I guess I could just set an env var... [09:08] Xtrivity: eddyb: v0.5.11-pre [09:09] eddyb: because socket.io goes nuts on the debugging part, and if you don't disable it, you get more than one console line per socket.io message [09:09] eddyb: Xtrivity: what distro? [09:09] eddyb: because that's old [09:09] r04r has joined the channel [09:09] eddyb: you want 0.6 [09:11] margle has joined the channel [09:11] TomY_ has joined the channel [09:11] whitman has joined the channel [09:11] Joeysomo has joined the channel [09:12] vincentcr has joined the channel [09:12] criswell has joined the channel [09:13] timoxley: ningu yep, env vars, I have a feeling there's already something in there. console.log(process.env) [09:13] timoxley: Xtrivity where did you get that old node from? [09:13] r04r has joined the channel [09:14] sugyan has joined the channel [09:14] k1ttty has joined the channel [09:14] timoxley: Xtrivity install a node version manager: e.g. nvm/n/nave [09:15] cosmincx has joined the channel [09:15] Xtrivity: timoxley how do i do that? [09:16] timoxley: Xtrivity e.g. `npm install -g n` [09:16] timoxley: Xtrivity but first what version of npm [09:16] timoxley: ? [09:16] Xtrivity: lol i have no idea [09:16] Xtrivity: whats the command to find the version: npm version ? [09:16] eddyb: pfft [09:16] eddyb: I wouldn't do that if I were you, Xtrivity [09:16] eddyb: what distro do you have? [09:17] Xtrivity: npm --version 1.0.106 [09:17] Xtrivity: is npm [09:17] Xtrivity: I'm running Ubuntu Server [09:17] eddyb: there might be a package built for node 0.6 [09:17] eddyb: Xtrivity: no kiddin', who told you ubuntu was linux? [09:17] Xtrivity: eddyb... "distro of what" [09:18] daglees has joined the channel [09:18] daglees has joined the channel [09:18] eddyb: seriously, why did you pick ubuntu? [09:18] Xtrivity: everyone said ubuntu server was great for nodejs [09:18] eddyb: everyone? [09:18] eddyb: wow [09:18] Xtrivity: well most people i've talked to said use ubuntu for socket.io and nodejs [09:18] ningu: eddyb: hey, don't knock on everyone [09:18] ningu: everyone is a friend of mine [09:18] eddyb: this is just like justin beiber [09:18] ningu: haha [09:19] Xtrivity: haha, Okay well guys, i'm super frustrated... What is the commended linux distro i should run? [09:19] r04r has joined the channel [09:19] Xtrivity: There's no good tutorials on ANY of this shit, it's all mickeymouse explanations [09:19] eddyb: Xtrivity: I run openSUSE, there's a server version of it, but you might want something else [09:19] robhawkes has joined the channel [09:20] eddyb: in any case, keep away from ubuntu, that stuff is bad [09:20] Xtrivity: haha, FML [09:20] Xtrivity: okay but can we get this working with ubuntu and i'll switch over after. [09:21] Xtrivity: timoxley: i'm running npm version: 1.0.106. What would be the best way to update node or how do i install nvm [09:21] eddyb: nooo [09:21] eddyb: lemme look for an ubuntu package [09:21] McMAGIC--Copy has joined the channel [09:21] eddyb: don't try to run those fancy installers, can screw your package management up [09:21] timoxley: eddyb pff [09:21] Xtrivity: alright eddyb, thanks. I would start from scratch with OpenSUSE now [09:21] eddyb: Xtrivity: ubuntu 11.10? [09:22] Xtrivity: ubutn 10.04 server [09:22] eddyb: 10.04 is quite old, too [09:22] timoxley: Xtrivity I'd just do: `npm install -g n && n 0.6.11` [09:23] Xtrivity: yeah but it's recommended. [09:23] Xtrivity: lol timoxley that pumped errors out the ass [09:23] timoxley: what did it say [09:23] Danielss89 has joined the channel [09:24] dpino has joined the channel [09:24] r04r has joined the channel [09:24] Xtrivity: failed to create usr/local/n/nversions.. do you have permission for this folder [09:24] timoxley: sudo !! [09:24] Xtrivity: i did sudo [09:24] Xtrivity: lol [09:24] eddyb: timoxley: you always forget to mention sudo for npm -g [09:25] hipsterslapfight: sudo npm && sudo n [09:25] hipsterslapfight: you can't sudo just once :v [09:25] eddyb: you as in everyone [09:26] tdegrunt has joined the channel [09:26] Xtrivity: hipsterslapfight looks like that worked [09:26] timoxley: ACTION eddyb probably because I don't require sudo for npm -g [09:26] timoxley: no idea why [09:26] Xtrivity: ACTION is a *nix noob, just needs this for development, and then i will get someone to configure my dedi's properly for me. [09:26] Xtrivity: but trying to get the technology to work for dev deems to be a challenge in itself [09:26] eddyb: why don't you use your dedi [09:27] Xtrivity: eddyb my dedi is a webserver. [09:27] Xtrivity: I have to buy a secondary dedi. [09:27] eddyb: and? [09:27] eddyb: can't you use the same one? [09:27] yawNO has joined the channel [09:27] Xtrivity: yeah, but i aint putting that many resources on one server [09:27] eddyb: resources? [09:27] Xtrivity: Load, ram usage, etc. [09:28] hipsterslapfight: i run ngnginx forwarding to apache and node.js and rails and a bunch of stuff on a 540MB RAM server, i doubt you'd have problems [09:28] hipsterslapfight: *nginx [09:28] eddyb: node.js uses a few MBs of RAM [09:28] Xtrivity: hipsters1apfight, my company would never allow me to run both on one server. [09:28] eddyb: load is virtually 0 [09:28] Xtrivity: eddyb is it still virtually 0 with tens of thousands of users connected to it at a time? [09:28] r04r has joined the channel [09:28] eddyb: Xtrivity: you make me curious, what's your specialization? [09:29] eddyb: Xtrivity: it should be [09:29] eddyb: what's there to do? [09:29] Xtrivity: I'm a graphic designer and commercial web developer. [09:29] Xtrivity: I've beent old to use sockets.io to create a chat much like facebook. so that's my goal / aim [09:29] eddyb: just pass network messages, back to the other users [09:29] rendar: this lightness of node.js is made by google v8? [09:30] eddyb: rendar: yeah [09:30] rendar: cool.. [09:30] timoxley: Xtrivity they would never let you run nginx + node at the some time? [09:30] eddyb: Xtrivity: why are you using a VM? [09:30] Xtrivity: eddyb development. [09:31] eddyb: I haven't been able to properly develop anything on windows [09:31] Xtrivity: I dont have a secondary dedi yet, and the first dedi is used for mainstream applications, can't be tampered. [09:31] Xtrivity: eddyb, when it's web languages and web apps, it's pretty simple on windows. [09:31] Xtrivity: I am a *nix noob and dont have time to learn it. [09:31] Xtrivity: eddyb how do i check node version again? [09:32] pors has joined the channel [09:32] eddyb: node --version [09:32] vguerra has joined the channel [09:32] Xtrivity: okay, currently running node 0.6.11 [09:33] eddyb: Xtrivity: there's not a single decent editor for windows [09:33] Xtrivity: and the latest version of socket.io [09:33] Xtrivity: eddyb i use jetbrain and dreamweaver, i dont really care. It's irrelavant really, works for me. [09:33] eddyb: except kde4 for windows, which is a bit painful to install [09:33] Xtrivity: Anyways. I am gonna try this one sec. [09:33] fangel has joined the channel [09:33] eddyb: Xtrivity: oh, that's why I was seeing all that transitional crap :P ? [09:33] r04r has joined the channel [09:34] Xtrivity: eddyb you bet :P haha. [09:34] eddyb: Adobe sucks at code [09:34] Xtrivity: eddyb: okay, so running the app.js you sent me. [09:34] eddyb: it even rhymes :) [09:34] Xtrivity: and i go to my local machine and i get nothing [09:34] eddyb: there's also nothing in the console? [09:35] Xtrivity: Browser console shows: GET http://192.168.216.230:1337/socket.io/1/?t=1329730434404 [09:35] eddyb: and the node.js console? [09:35] Xtrivity: nothin int he node console [09:36] eddyb: with http://pastebin.com/BrKS5sTY ? [09:36] eddyb: you must be kiddin' me [09:36] eddyb: you should have at least 20 lines of output [09:36] Xtrivity: browser console spits errors [09:36] Xtrivity: one sec [09:36] Xtrivity: GET [09:36] Xtrivity: (failed) [09:36] Xtrivity: undefined [09:36] Xtrivity: socket.io.js:1630 [09:36] Xtrivity: Script [09:37] eddyb: don't paste that much in the channel [09:37] eddyb: how do you run the app? [09:37] Xtrivity: node app.js [09:37] eddyb: because you should get loads of messages [09:38] Xtrivity: and when i go to the browser i run (client side): http://localhost/work/socket/ [09:39] Xtrivity: eddyb: failed to load resource: http://192.168.216.230:1337/socket.io/1/?t=1329730704313 [09:39] misza222 has joined the channel [09:39] r04r has joined the channel [09:39] michaelhartau has joined the channel [09:39] hz has joined the channel [09:39] eddyb: ok, give me teamviewer [09:40] Xtrivity: one sec, think i might've figured it out [09:40] Benin has joined the channel [09:40] Benin: .. [09:40] Xtrivity: eddyb figured it out haha. Serves me right for copy and pasting haha. You effed up the ip on the index.html [09:41] izepstan has joined the channel [09:41] Benin: give me some demos about nodejs on windows. [09:42] Xtrivity: !google nodejs demos [09:42] willwh: Results for nodejs demos on Google: [09:42] willwh: -- [09:42] Benin: ... [09:43] Xtrivity: lol clearly that didn't work. There's tons of demos on nodejs if you google em [09:43] eddyb: Benin: windows is not special in any way [09:43] Benin: why. [09:43] eddyb: because it's crap [09:44] Xtrivity: eddyb! I got it workin. Is there any benefit to having the webserver (such as express) attached ? [09:44] eddyb: but node.js manages to work on windows [09:44] ningu: eddyb: if special means different... [09:44] eddyb: just as good as on linux [09:44] Benin: :D [09:44] ningu: or maybe windows is "special"? [09:44] r04r has joined the channel [09:44] Benin: my app is running on windows, [09:44] Benin: so .. [09:45] eddyb: you just write it in js [09:45] Xtrivity: ningu lol, love the random smart ass comments haha [09:45] eddyb: any node.js demo should work on windows [09:45] ningu: Xtrivity: yeah, that's kind of my specialty [09:45] Benin: yeah [09:45] ningu: I'm surprised so far how portable node is [09:45] ningu: I have had zero issues e.g. with redis or mongodb drivers [09:45] stayarrr has joined the channel [09:45] Xtrivity: eddyb: Is there any benefit to having the webserver (such as express) attached ? [09:46] Shrink has joined the channel [09:46] Shrink has joined the channel [09:46] Benin: I am a beginner [09:46] eddyb: Xtrivity: it's useful if you need it [09:46] eddyb: like, if you need an webserver on the same port [09:46] eddyb: Benin: just look for a node.js tutorial [09:46] ningu: I assume the mongodb module has binary libs [09:46] Xtrivity: eddyb if I have an apache server, there's essentially no point though right? [09:46] ningu: but it's transparent to use [09:46] Benin: eddyb:ok,thanks [09:47] garrensmith has joined the channel [09:47] eddyb: Xtrivity: it's better than apache, but if you don't want to get rid of apache, there's no point to it [09:47] ningu: huh... actually, the mongodb module seems to be pure js [09:47] Wizek has joined the channel [09:48] Xtrivity: Well, I have a web application. I want to incorperate a chat system into this application, is running a webserver strictly with socket.io faster/better as opposed to having one server connect to another? [09:48] ningu: huh, well, in that case, writing database drivers in js is faster than I could have ever imagined... [09:48] eddyb: does that app use any PHP? [09:49] Xtrivity: eddyb yes, the whole app is written in php [09:49] izepstan has joined the channel [09:49] ningu: the proper way to pronounce php is ffffppp [09:49] r04r has joined the channel [09:49] jetienne has joined the channel [09:49] eddyb: then there's no point in changing to express unless you want to recode all that PHP [09:50] Benin: eddyb:does any app use C#. [09:50] Xtrivity: Benin read a book [09:50] eddyb: why would you ask? [09:50] eddyb: C# is M$hit [09:50] quijote has joined the channel [09:51] Benin: I think i need read a book first . [09:51] Benin: thanks all. [09:51] ningu: C# seems preferable to C++ to me, but I guess on *nix there isn't much point [09:51] Xtrivity: eddyb, but index.html is stil client side. I wouldn't essentially have to re-write any of the php code at all, i'd just be connecting to that solely for chat [09:51] Vespakoen has joined the channel [09:51] ningu: even though mono exists and all [09:51] _Steve_: ningu: there is Mono on *nix [09:52] _Steve_: ningu: http://mono-project.org/ [09:52] _Steve_: yes [09:52] _Steve_: (I'm having a bit of lag at the moment) [09:52] eddyb: _Steve_: wrong highlight [09:52] Cromulent has joined the channel [09:52] eddyb: ah [09:52] eddyb: 14ms of lag here :) [09:52] _Steve_: irc client doesnt seem to have much, but I'm having a bit of ssh-lag [09:52] _Steve_: to this server [09:53] _Steve_: ningu: sure, mono has its shortcomings, but what do you need? [09:53] r04r has joined the channel [09:54] eldios has joined the channel [09:54] Xtrivity: eddyb: If I had an application like facebook running on an apache/php server and i were to create a chat system. I know that the express webserver is directly connected to socket.io/node js server. Would connecting to express using a client index.html be faster or would be it be faster to jsut connect directly to the websocket server using socket.io ? [09:54] eddyb: lol [09:54] Xtrivity: Do you get what I mean? [09:54] eddyb: express just serves the client stuff [09:55] eddyb: like your apache does [09:55] eddyb: if it's static, doesn't really matter [09:56] DuoSRX has joined the channel [09:58] Xtrivity: Okay perfect. eddyb you're an allstar, thank you! [09:58] herbySk has joined the channel [09:58] r04r has joined the channel [09:59] Benin: eddyb,are you always stay here .:D [09:59] eddyb: me no talk engrish [09:59] eddyb: I keep my laptop on most of the time, so I'll see past highlights [10:00] Benin: ah . [10:01] Xtrivity: eddyb last retarded thing for me to ask... Where's the socket api documentation. Apparently it's not on socket.io [10:03] r04r has joined the channel [10:04] [[zzz]] has joined the channel [10:04] rodasc has joined the channel [10:04] pandark__ has joined the channel [10:04] kulor-uk has joined the channel [10:04] zemanel_ has joined the channel [10:04] stbuehle1 has joined the channel [10:04] don_jones_ has joined the channel [10:04] hackband has joined the channel [10:04] upb has joined the channel [10:04] pig has joined the channel [10:04] izepstan has joined the channel [10:04] emilsedgh has joined the channel [10:04] JG has joined the channel [10:05] timoxley: Xtrivity check the examples, tests and the wiki on https://github.com/LearnBoost/socket.io [10:05] zorzar has joined the channel [10:06] felixhummel has joined the channel [10:08] webben has joined the channel [10:08] nuba has joined the channel [10:08] stride has joined the channel [10:09] r04r has joined the channel [10:09] JmZ_ has joined the channel [10:09] ByteCrunch has joined the channel [10:09] wink_ has joined the channel [10:09] fson has joined the channel [10:09] przemoc has joined the channel [10:09] mpereira has joined the channel [10:10] bradleyg has joined the channel [10:10] emilsedgh has joined the channel [10:11] markwubben has joined the channel [10:11] kurtzhong_ has joined the channel [10:11] kwmiebach has joined the channel [10:12] velo_ has joined the channel [10:13] tanepiper has joined the channel [10:14] r04r has joined the channel [10:14] r04r has joined the channel [10:14] wink___ has joined the channel [10:15] sandfox has joined the channel [10:15] aranw has joined the channel [10:16] DrPheltRight has joined the channel [10:17] franksalim has joined the channel [10:19] r04r has joined the channel [10:22] izepstan has joined the channel [10:23] aranw has joined the channel [10:24] looopy has joined the channel [10:25] r04r has joined the channel [10:25] fangel has joined the channel [10:25] wink_ has joined the channel [10:27] hellp has joined the channel [10:27] yawNO: :| [10:27] yawNO: https://github.com/twitter/bootstrap/blob/master/js/bootstrap-alert.js [10:27] yawNO: look @ this javascript :| [10:28] Octayn: What? [10:28] takumination has joined the channel [10:29] larsschenk has joined the channel [10:30] yawNO: no ; [10:30] yawNO: :| [10:30] Octayn: So? [10:30] larsschenk has left the channel [10:30] r04r has joined the channel [10:30] yawNO: it looks horrible to me [10:30] yawNO: :) [10:30] Octayn: lol [10:31] Octayn: People who pass http://asi.qfox.nl/ with "ninja" or better are allowed to omit semicolons. [10:31] yawNO: i see [10:32] wink_ has joined the channel [10:35] panosru has joined the channel [10:36] r04r has joined the channel [10:37] richardr has joined the channel [10:37] wink___ has joined the channel [10:38] bnoordhuis has joined the channel [10:40] __doc__ has joined the channel [10:41] r04r has joined the channel [10:42] Emmanuel has joined the channel [10:43] christkv has joined the channel [10:44] wink_ has joined the channel [10:44] slawek- has joined the channel [10:46] d0k has joined the channel [10:46] r04r has joined the channel [10:47] ToTheInternet has joined the channel [10:48] ppcano has joined the channel [10:49] merlin83 has joined the channel [10:50] ToTheInternet: Hi. I don't know an awful lot about node.js, other than reading about it every now and then. From what I know so far, it seems it may be perfect for the application I am planning. I was hoping I could get some oppinions here, if it is indeed suited for my app and if it is worth digging into [10:50] mansoor has joined the channel [10:50] ToTheInternet: The application is a browser based poker client that interacts with a server. People can join tables and play against each other. [10:51] ToTheInternet: There are 6-10 players at each table, and there are many tables. Players can sit at more than one table. [10:51] r04r has joined the channel [10:52] EuroNerd has joined the channel [10:52] EuroNerd has joined the channel [10:52] ToTheInternet: It would seem, that an event driven architecture is very well suited for this. On top, from what I understand, it is possible to write distributed MVC applications with javascript and node.js, where the View and Controller reside in the client, and the model resides on the server [10:52] chjj: ToTheInternet: you probably wont find many unbiased opinions here [10:52] ToTheInternet: Seems like a perfect fit [10:52] chjj: ToTheInternet: but it sounds like you need a healthy dose of socket.io [10:53] snuggl: ToTheInternet: any language will do fine [10:53] Octayn: Yep [10:53] snuggl: ToTheInternet: event-driven is nice, but node isnt the only event driven serverframework [10:53] chjj: ToTheInternet: use node if you like the language and the api [10:54] ToTheInternet: not sure if i like the language. i haven't looked into other event driven frameworks, this is all kind of new to me [10:55] ToTheInternet: coming from the php world, so i have naturally written some javascript [10:56] braoru has joined the channel [10:56] r04r has joined the channel [10:57] ToTheInternet: what seems so nice to me is the fact that javascript runs directly in the clients browser, and i assume since node.js uses server side javascript, communication will be very clean and easy [10:57] Octayn: ToTheInternet: another things to consider would be Python with twisted or tornado [10:57] snuggl: or gevent [10:57] Octayn: Isn't that the one that uses greenlets? [10:58] Octayn: yeah, I didn't like that one [10:58] snuggl: ToTheInternet: it will be cleaner and nicer for the developer, it will be invisible to the actual users [10:58] Octayn: Lots of implicit magic [10:58] jblanche has joined the channel [10:58] johnhamelink has joined the channel [10:58] ToTheInternet: i'm the developer, and i like clean and nice ^^ [10:59] Octayn: ToTheInternet: give Node a shot [10:59] Octayn: If you don't like it, switch early or write a server-agnostic client [10:59] eeemsi_: hm… in some npm packages dependencies like kvetch miss explicit naming of coffee-script in the package.json [11:00] CIA-102: node: 03Ben Noordhuis 07master * r4af673e 10/ (130 files in 37 dirs): gyp: update to r1214 - http://git.io/_aJ3dQ [11:00] CIA-102: node: 03Nathan Rajlich 07master * raf4a96c 10/ configure : [11:00] CIA-102: node: build: test `uname -m` first, then `uname -p` [11:00] CIA-102: node: Prevent false i386 on 64-bit OS X. - http://git.io/tIPSwA [11:00] CIA-102: node: 03Nathan Rajlich 07master * r546870e 10/ common.gypi : build: use proper `-arch` for target_arch on OS X - http://git.io/d3ptGA [11:00] CIA-102: node: 03Nathan Rajlich 07master * r028043d 10/ configure : build: map i686 to ia32 - http://git.io/DegCSQ [11:00] ToTheInternet: ok, downloading sources now :) [11:01] r04r has joined the channel [11:02] dekub has left the channel [11:02] xbayrockx1 has joined the channel [11:02] timoxley: eeemsi_ you can't currently depend on an executable, perhaps that's why [11:03] cesconix has joined the channel [11:03] cliffano has joined the channel [11:03] eeemsi_: timoxley: i do not mean an executable … i mean a dependency [11:05] blup has joined the channel [11:05] Topcat has joined the channel [11:06] timoxley: eeemsi_ kvetch doesn't need coffeescript as a module, it needs it as an executable [11:07] r04r has joined the channel [11:08] timoxley: eeemsi_ although he should be distributing it as compiled js files, not coffeescript files so it isn't a dependency at all [11:09] joshgillies has joined the channel [11:11] RLa has joined the channel [11:11] r04r has joined the channel [11:11] socketio\test\46 has joined the channel [11:13] socketio\test\80 has joined the channel [11:16] ullmark has joined the channel [11:16] r04r has joined the channel [11:16] r04r has joined the channel [11:18] richardr has joined the channel [11:19] Swizec has joined the channel [11:20] McMAGIC--Copy has joined the channel [11:21] joshgillies has joined the channel [11:21] r04r has joined the channel [11:22] ts___ has joined the channel [11:24] _dmb has joined the channel [11:25] adrianF has joined the channel [11:25] mikl has joined the channel [11:26] r04r has joined the channel [11:27] izepstan has joined the channel [11:29] socketio\test\99 has joined the channel [11:32] r04r has joined the channel [11:32] anthony_ has joined the channel [11:32] kurtzhong has joined the channel [11:32] tommyvyo has joined the channel [11:34] mehlah has joined the channel [11:34] slaskis: anyone figured out a good way to configure a wscript? [11:35] kurtzhong_ has joined the channel [11:36] r04r has joined the channel [11:41] kapouer has joined the channel [11:41] r04r has joined the channel [11:41] kapouer: hi, node 0.6.11 failling test-cluster-kill-workers, on armhf, anyone ? [11:42] gavin_huang has joined the channel [11:42] kapouer: oops, armhf == armv7 [11:42] kapouer: not failing on armv5tel [11:43] wink_ has joined the channel [11:46] AviMarcus has joined the channel [11:47] lperrin has joined the channel [11:47] satyr has joined the channel [11:48] wink___ has joined the channel [11:49] skm has joined the channel [11:49] r04r has joined the channel [11:51] cjroebuck has joined the channel [11:51] ToTheInternet: i cloned the node.js master branch from github. when running make it eventually segfaults. i'm on debian. do i need to checkout another branch or something? [11:53] ToTheInternet: i checked out branch v0.6 and right now it is compiling. but i'm not sure if thats what i want? [11:53] MrNko has joined the channel [11:53] Octayn: v0.6.11 would be the tag you want [11:54] r04r has joined the channel [11:54] adrianF has joined the channel [11:55] looopy has joined the channel [11:55] ToTheInternet: Octayn: build succeeded. 'node --version' says v0.6.12-pre [11:56] Octayn: ToTheInternet: Yeah, you don't want that [11:56] wink_ has joined the channel [11:56] Octayn: That's unstable beta code, in all liklihood [11:57] ToTheInternet: Octayn: i wonder why i can't build the master branch [11:58] r04r has joined the channel [11:59] sandfox: ToThe Internet: is there not a stable package for debian? [11:59] niloy has joined the channel [11:59] ToTheInternet: sandfox: no, only unstable [12:00] sandfox: ToTheInternet: after the clone, checkout the v6.11 tag, that should give the stable release [12:01] rauchg has joined the channel [12:02] mappum: Why doesnt npm install automatically list what im installing in package.json? Do I not need it there? [12:02] quijote has joined the channel [12:02] wink___ has joined the channel [12:04] r04r has joined the channel [12:04] r04r has joined the channel [12:05] skm has joined the channel [12:06] ph^_ has joined the channel [12:07] wink_ has joined the channel [12:08] r04r has joined the channel [12:12] socketio\test\35 has joined the channel [12:12] ToTheInternet: sandfox: that worked :) [12:12] wink___ has joined the channel [12:13] sandfox: ToTheInternet: awesome, getting writing some node :-) [12:13] amigojapan has joined the channel [12:13] r04r has joined the channel [12:14] abraxas has joined the channel [12:14] stagas has joined the channel [12:17] iaincarsberg has joined the channel [12:18] enmand has joined the channel [12:18] r04r has joined the channel [12:19] Swizec has joined the channel [12:21] wink_ has joined the channel [12:22] r04r has joined the channel [12:23] ph^ has joined the channel [12:26] ppcano has joined the channel [12:27] erichynds has joined the channel [12:28] r04r has joined the channel [12:31] wink___ has joined the channel [12:31] CIA-102: node: 03Ben Noordhuis 07master * r7f4aba9 10/ (36 files in 4 dirs): test: include common.js in all tests - http://git.io/gqDImg [12:31] CIA-102: node: 03Ben Noordhuis 07master * r9997579 10/ test/simple/test-debugger-repl-utf8.js : [12:31] CIA-102: node: test: don't let debugger listen on common.PORT [12:31] CIA-102: node: simple/test-debugger-repl-utf8 has a tendency to fail and leave behind a stray [12:31] CIA-102: node: process that listens on common.PORT, making later tests fail with EADDRINUSE. - http://git.io/GSmoBQ [12:32] Skyjoker has joined the channel [12:33] lzskiss has joined the channel [12:33] r04r has joined the channel [12:34] kuya_ has joined the channel [12:34] stagas has joined the channel [12:34] lzskiss has joined the channel [12:35] deni: hi guys....i am unable to build anything that has to do with node-waf...... for instance npm install -g bigint fails [12:35] deni: microtime as well [12:36] deni: on the latest ubuntu everything seems fine [12:36] deni: but on Debain Squeeze it just doesn't work [12:36] deni: anybody else had this issue? [12:36] deni: https://github.com/joyent/node/issues/1716 [12:36] deni: it seems more people had this issue but it's not listed how it was resolved [12:37] deni: i am using node 0.4.12 because the package i am trying to install depends on that version [12:37] sgimeno has joined the channel [12:38] r04r has joined the channel [12:38] ph^ has joined the channel [12:38] Shrink has joined the channel [12:42] r04r has joined the channel [12:42] CIA-102: node: 03Luke Gallagher 07master * r8d3c46d 10/ lib/util.js : util: fix typo in lib/util.js - http://git.io/NepJmA [12:43] looopy has joined the channel [12:43] panosru: What is the best way to get the current route with express.js ? req object provides lot's of properties from where you can find the route I'm wondering if there is a best way to go... for example you can do req.socket.server.route you can do req.connection.server.route, req.originalUrl, req.route.path etc :) [12:45] stonebranch has joined the channel [12:46] wink_ has joined the channel [12:46] takumination has joined the channel [12:47] andrehjr_ has joined the channel [12:47] r04r has joined the channel [12:47] izepstan has joined the channel [12:48] Wizek has joined the channel [12:49] fluk3 has joined the channel [12:50] Renegade001 has joined the channel [12:50] margle has joined the channel [12:52] r04r has joined the channel [12:52] r04r has joined the channel [12:52] shinuza has joined the channel [12:52] infynyxx has joined the channel [12:53] brianseeders has joined the channel [12:54] fairwinds has joined the channel [12:55] adrianF has joined the channel [12:56] r04r has joined the channel [12:58] margle has joined the channel [12:59] crutex has joined the channel [12:59] uchuff has joined the channel [13:00] christkv has joined the channel [13:00] CIA-102: node: 03Brandon Benvie 07master * rb722771 10/ (lib/repl.js test/simple/test-repl-autolibs.js): repl: add automatic loading of built-in libs - http://git.io/wFhcfA [13:01] r04r has joined the channel [13:02] metamind has joined the channel [13:02] dodo has joined the channel [13:03] sharkbird has joined the channel [13:03] Poetro has joined the channel [13:05] metamind: (easy one). Just done a fresh ubuntu install. used apt-get install nodejs. The npm docs say npm is installed with node. When I type "npm install xxx" I get "npm: command not found" [13:05] wink___ has joined the channel [13:05] mehlah_ has joined the channel [13:05] satyr has joined the channel [13:07] aliem: metamind: linux distributions' packages are often old [13:07] r04r has joined the channel [13:07] hipsterslapfight: metamind: node -v [13:07] hipsterslapfight: you're probably on 4.11 or something [13:07] kapouer: aliem: not here :) http://packages.qa.debian.org/n/nodejs.html [13:08] metamind: node -v ==> v0.6.10 [13:08] aliem: oh it's been a while since i installed node/ruby/python from packages :) [13:09] tommyvyo has joined the channel [13:09] marvin_ has joined the channel [13:09] Octayn: metamind: Woa, really? [13:09] Octayn: That fresh? [13:09] Octayn: I'm surprised! [13:09] hipsterslapfight: yeah so am i actually [13:10] kapouer: metamind: the npm package is not yet in debian/sid, nor probably ubuntu [13:10] kapouer: i am working on it [13:11] metamind: Thanks kapouer. Do you mean that if I update it after you have done your magic it should work? [13:11] kapouer: you can actually build the package from git repository if you feel comfortable with that [13:11] Edy has joined the channel [13:11] Edy has joined the channel [13:11] humasect has joined the channel [13:12] kapouer: http://anonscm.debian.org/gitweb/?p=collab-maint/npm.git [13:12] kapouer: clone it and git-buildpackage it [13:12] r04r has joined the channel [13:12] lzskiss has joined the channel [13:13] az_ordog_maga_1 has joined the channel [13:13] metamind: kapouer: I have been doing that previously but always get into a tangle with the npm directory structure. I was hoping it would all just work... [13:14] kapouer: the package (while not uploaded to debian archive) works very well, as npm is supposed to work. [13:15] Sledopit has joined the channel [13:15] deni: okay i manged to figure it out... [13:15] salva|away has left the channel [13:15] deni: if anyone sumbles upon the same issue just do: apt-get install libstdc++6-4.3-dev [13:15] deni: and it should build fine [13:16] kapouer: metamind: short howto : [13:16] kapouer: gbp-clone git://anonscm.debian.org/collab-maint/npm.git [13:16] kapouer: cd npm [13:17] kapouer: git-buildpackage [13:17] kapouer: and install with dpkg -i [13:17] r04r has joined the channel [13:17] metamind: thanks kapouer. I will give that a wizz. [13:19] pandeiro has joined the channel [13:19] mikl: isn't there a good module for reading a file line by line out there? All I'm finding on Google is braindead implementations loading the entire file and calling .split("\n") on it :( [13:19] pvankouteren_ has joined the channel [13:20] margle has joined the channel [13:21] lperrin has joined the channel [13:21] humasect: lazily? isnt what you want, something braindead? ;) [13:22] _th_n has joined the channel [13:22] r04r has joined the channel [13:24] xbayrockx has joined the channel [13:25] metamind: hmmm... npm$ git-buildpackage [13:25] metamind: debian/rules:8: /usr/share/cdbs/1/rules/utils.mk: No such file or directory [13:25] metamind: debian/rules:9: /usr/share/cdbs/1/rules/debhelper.mk: No such file or directory [13:25] metamind: make: *** No rule to make target `/usr/share/cdbs/1/rules/debhelper.mk'. Stop. [13:25] metamind: debuild: fatal error at line 1322: [13:25] metamind: couldn't exec fakeroot debian/rules: [13:25] metamind: debuild -d clean returned 2 [13:25] Glenjamin has joined the channel [13:25] jldbasa has joined the channel [13:25] metamind: Couldn't run 'debuild -d clean' [13:26] bmf has joined the channel [13:26] r04r has joined the channel [13:27] bmf has joined the channel [13:27] pvankouteren__ has joined the channel [13:28] wink_ has joined the channel [13:29] sharkbird has joined the channel [13:30] danielss89 has joined the channel [13:30] _th_n has joined the channel [13:32] r04r has joined the channel [13:32] amigojapan_ has joined the channel [13:32] hotchkiss has joined the channel [13:33] tomaszto_ has joined the channel [13:33] theCole has joined the channel [13:34] mschneider has joined the channel [13:35] c0smikdebris has joined the channel [13:36] wereHamster: mikl: https://github.com/ryanmcgrath/wrench-js [13:36] subbyyy has joined the channel [13:36] wereHamster: mikl: the LineReader reads the file in blocks [13:36] mikl: wereHamster: ah, that looks good :) [13:36] miceiken has left the channel [13:36] r04r has joined the channel [13:37] githogori has joined the channel [13:37] niloy has joined the channel [13:39] piscisaureus_ has joined the channel [13:40] jyp has joined the channel [13:40] dannyamey has joined the channel [13:40] QaDeS has joined the channel [13:41] r04r has joined the channel [13:42] Gekz has joined the channel [13:42] Gekz has joined the channel [13:42] wink___ has joined the channel [13:43] andrehjr has joined the channel [13:43] aranw has joined the channel [13:43] eddiedu has joined the channel [13:44] eddiedu has left the channel [13:45] copongcopong has joined the channel [13:47] wiel has joined the channel [13:47] r04r has joined the channel [13:47] r04r has joined the channel [13:47] wiel: if jsdom can scrape the web why do people combine jsdom with node.io? [13:50] jmar777 has joined the channel [13:51] Cromulent has joined the channel [13:52] kapouer: metamind: install cdbs package, and also all packages listed in debian/control Build-Depends field (i never tried building it on ubuntu) [13:52] r04r has joined the channel [13:52] RLa: wiel, because something must run javascript code? [13:53] wiel: RLa, but i can set the jsdom option to true without having to use require('jsdom') [13:54] McMAGIC--Copy has joined the channel [13:56] wink_ has joined the channel [13:56] wiel: ...to do that [13:57] r04r has joined the channel [13:57] AndreasMadsen has joined the channel [13:57] niloy has joined the channel [13:57] xaq has joined the channel [13:58] shaysm has joined the channel [13:59] pthm has joined the channel [13:59] pradeebv has joined the channel [13:59] urlisse has joined the channel [14:01] niloy has joined the channel [14:02] r04r has joined the channel [14:03] confoocious has joined the channel [14:03] confoocious has joined the channel [14:03] nhunzaker has joined the channel [14:04] pastak has joined the channel [14:05] niloy has joined the channel [14:06] urlisse has left the channel [14:06] jxie has joined the channel [14:06] r04r has joined the channel [14:07] looopy has joined the channel [14:08] blup has joined the channel [14:10] niloy has joined the channel [14:10] pradeebv has joined the channel [14:10] andrey-it has joined the channel [14:11] r04r has joined the channel [14:11] amigojapan has joined the channel [14:12] andrey-it: Can I ask somebody who is co-developer of nodejs here? [14:13] mmalecki: andrey-it: co-developer? [14:13] wiel has joined the channel [14:13] wiel: got disconnected :( [14:13] mmalecki: as in, maintainer? [14:13] andrey-it: mmalecki: somebody who knows the internals of source code [14:13] mmalecki: andrey-it: just ask [14:14] mmalecki: don't ask to ask [14:14] thalll has joined the channel [14:14] nhunzaker: @andry-it isaacs likes to hang out in #node.js alot [14:14] nhunzaker: @andrey-it * [14:15] ajackbot has joined the channel [14:15] felixhummel_ has joined the channel [14:15] pastak has joined the channel [14:16] r04r has joined the channel [14:16] pleaz: hello [14:16] andrey-it: I have an idea to build nodejs with javascript files linked inside. So as to hide my source javascript and have only one single exe file. Is it possible? [14:16] pleaz: i try npm install mysql-libmysqlclient & get meny errros [14:17] ixti has joined the channel [14:17] mmalecki: andrey-it: why? [14:17] sigurding has joined the channel [14:17] pleaz: npm ERR! error installing mysql-libmysqlclient@1.2.10 Error: mysql-libmysqlclient@1.2.10 install: `make conf all` [14:18] Poetro has joined the channel [14:19] tvw has joined the channel [14:19] andrey-it: mmalecki: I don't want other people to see my code. Nobody would even know that exe-file shipped to them is NodeJS;) [14:19] mmalecki: andrey-it: you're wrong - code would be readable, just hidden [14:20] r04r has joined the channel [14:20] mmalecki: andrey-it: and if you really want to do it, checkout https://github.com/joyent/node/blob/master/src/node.js#L56-63 and how lib/*.js files are bundled in node [14:21] ashishg has joined the channel [14:21] niloy has joined the channel [14:22] caike has joined the channel [14:23] lazyshot has joined the channel [14:23] quijote has joined the channel [14:24] andrey-it: mmalecki, thank you. But I wanted to ask in which file main() function resides. [14:25] ashishg has joined the channel [14:25] r04r has joined the channel [14:26] sigurding_ has joined the channel [14:27] ashishg_ has joined the channel [14:27] pendlepants has joined the channel [14:27] andrehjr has joined the channel [14:29] VladGh has joined the channel [14:30] ryanfitz has joined the channel [14:30] r04r has joined the channel [14:31] andrey-it: It seams to me that I can achieve that by simply modifying on of py files! [14:34] carlyle has joined the channel [14:34] r04r has joined the channel [14:35] lupo7 has joined the channel [14:35] jerkelens has joined the channel [14:36] jetienne has joined the channel [14:37] criswell has joined the channel [14:38] mikl: Is there some way to look at what callbacks are outstanding that prevents Node.js from exiting from within Node.js? [14:39] r04r has joined the channel [14:39] r04r has joined the channel [14:39] niloy has joined the channel [14:40] mikl: ie. client.on('end', function () { detect_what_prevents_node_from_exiting() }); [14:40] socketio\test\94 has joined the channel [14:40] mschneider has joined the channel [14:41] Joeysomo has joined the channel [14:41] wiel has joined the channel [14:41] webguynow has joined the channel [14:42] pengwynn has joined the channel [14:44] r04r has joined the channel [14:44] lmatteis has left the channel [14:45] timoxley: mikl nope [14:46] mAritz has joined the channel [14:46] diogogmt has joined the channel [14:46] timoxley: mikl you can force an exit with process.exit() though [14:48] aristidesfl has joined the channel [14:48] mikl: timoxley: that should work, thanks :) [14:49] timoxley: mikl what's it for [14:49] r04r has joined the channel [14:49] mikl: timoxley: well, I have a simple script that runs a database query and prints the results, but for some reason never quits [14:49] mikl: timoxley: or rather, waits 5 seconds to quit [14:50] Sahua has joined the channel [14:50] storrgie has joined the channel [14:51] timoxley: mikl yep that's a pretty common problem. [14:52] mikl: timoxley: yeah, process.exit() does the trick, though :) [14:52] timoxley: mikl :D [14:52] jergason has joined the channel [14:52] mikl: it's harder when you don't actually know when you're done, with lots of asynchronous stuff going on :) [14:53] r04r has joined the channel [14:54] diva has joined the channel [14:54] timoxley: mikl you should know when you're done [14:54] timoxley: mikl the db query fire off a callback [14:54] timoxley: or something [14:54] diva has joined the channel [14:56] mikl: timoxley: yeah, thanks :) [14:58] Skyjoker has joined the channel [14:58] louissmit has joined the channel [14:58] pastak has joined the channel [14:58] jeremyselier has joined the channel [14:58] r04r has joined the channel [14:59] vkareh has joined the channel [15:00] jamescarr has joined the channel [15:00] sven_oostenbrink has joined the channel [15:02] infynyxx has joined the channel [15:03] r04r has joined the channel [15:03] socketio\test\75 has joined the channel [15:06] themiddleman_itv has joined the channel [15:07] jamescarr: so who here is using capistrano for deployments still? [15:07] xbayrockx has joined the channel [15:07] LBRapid has joined the channel [15:08] r04r has joined the channel [15:08] r04r has joined the channel [15:08] mmalecki: lol, 2012, not using jitsu for deployments [15:08] jamescarr: mmalecki, :) [15:09] mschneider has joined the channel [15:09] jamescarr: mmalecki, nodejitsu always has my full support and I do suggest it to clients (I even talked to a VC about em awhile back) [15:09] diogogmt has joined the channel [15:09] barberdt has joined the channel [15:09] mmalecki: jamescarr: I know, I'm half joking :). glad you support us, sir! [15:09] jamescarr: but I still have in-house deployment setups for in house stuff :) [15:09] bbbb has joined the channel [15:10] jamescarr: mmalecki, I have been away for awhile though... can jitsu be used for in house deployments? I know you guys open source just about everything :) [15:10] mmalecki: jamescarr: we can help with that as well, btw [15:10] plato has joined the channel [15:10] socketio\test\76 has joined the channel [15:10] jamescarr: personally I'd like to stop using capistrano because it increases the number of things people have to learn [15:11] mmalecki: jamescarr: you can use haibu, but it isn't compatible with jitsu. but deploying to haibu is dead easy - one `tar | curl` and your app is running [15:12] hz has joined the channel [15:12] redir has joined the channel [15:12] CarterL has joined the channel [15:12] r04r has joined the channel [15:12] mmalecki: jamescarr: actually, I'll pm you [15:13] jamescarr: cool [15:13] skylamer` has joined the channel [15:14] Sledopit: anybody know nice library for emulate generators? [15:14] hz has joined the channel [15:15] looopy has joined the channel [15:15] execB33F has joined the channel [15:16] voodootikigod has joined the channel [15:17] CIA-102: node: 03Maciej Małecki 07master * rc3a9733 10/ src/node.js : [15:17] CIA-102: node: startup: use `.hasOwnProperty` instead of `in` [15:17] CIA-102: node: Benchmarks show that `.hasOwnProperty` is faster than `in` in V8. It [15:17] CIA-102: node: makes startup ~0.5 ms faster on my computer. - http://git.io/ZQgDug [15:17] CIA-102: node: 03Maciej Małecki 07master * r1109c8f 10/ src/node.js : [15:17] CIA-102: node: startup: move `EventEmitter` closer to the lookup [15:17] CIA-102: node: This makes startup faster by ~0.2 ms on my computer. - http://git.io/bCbCww [15:17] CIA-102: node: 03Maciej Małecki 07master * rb0c1541 10/ src/node.js : startup: use `path.resolve` instead of `path.join(cwd, ...)` - http://git.io/23cfhQ [15:17] CIA-102: node: 03Ben Noordhuis 07master * rf0c5165 10/ (7 files): http_parser: upgrade to 62110ef - http://git.io/jYnS_w [15:17] CIA-102: node: 03Ben Noordhuis 07master * rde5e3f6 10/ (3 files in 2 dirs): http: support PURGE request method - http://git.io/gt-pBg [15:17] adambeynon has joined the channel [15:17] r04r has joined the channel [15:18] hz has joined the channel [15:20] jamescarr: mmalecki, thanks for suggesting haibu... I'll investigate it [15:20] mmalecki: jamescarr: :) [15:20] plato: hi, i'm new to JS. im trying to draw one long slanted line, then six 50px line segments from the endpoint of that, alternating in width. im sure theres some stupid syntax error but i'd like to understand what i'm doing wrong. http://jsfiddle.net/ScF6c/ [15:21] sirjuh has joined the channel [15:21] jamescarr: mmalecki, anyway to secure deployments out of the box (aside from doing it myself)? :) [15:21] bradleymeck: plato ##javascript [15:21] Industrial: plato: this is the NodeJS server side JS channel, you want ##javascript [15:22] plato: well, my goal is to learn node.js [15:22] Industrial: well, that's browser JS :) [15:22] context: plato: drawing has /nothing/ to do with node [15:22] plato has left the channel [15:22] c4milo has joined the channel [15:23] pedro_ has joined the channel [15:23] r04r has joined the channel [15:23] sirjuh has joined the channel [15:23] jamescarr: context, unless he's using node-canvas? :) [15:23] jscheel has joined the channel [15:23] LeftWing has joined the channel [15:24] jocafa has joined the channel [15:24] blueadept has joined the channel [15:24] diogogmt has joined the channel [15:25] mmalecki: jamescarr: what do you mean by 'secure deployments'? [15:25] sirjuh has left the channel [15:25] sirjuh has joined the channel [15:26] gasbakid has joined the channel [15:26] jamescarr: mmalecki, preventing anyone from deploying [15:27] wereHamster: jamescarr: don't give them ssh access to the host [15:27] pedro has joined the channel [15:27] jamescarr: wereHamster, doh. right. I missed the curl options :) [15:28] st_luke has joined the channel [15:28] illourr has joined the channel [15:28] r04r has joined the channel [15:28] mmalecki: jamescarr: haibu got auth recently! [15:28] pastak_ has joined the channel [15:29] stonebranch has joined the channel [15:30] bradleymeck: jamescarr my recommendation if you want to secure haibu is to only let it be available through ssh (dont open the port for haibu on your firewall) and then just push out versions via ssh and deploy them from the machine [15:30] lduros has joined the channel [15:30] bmf90 has left the channel [15:30] jamescarr: bradleymeck, yeah, looks about right [15:31] xaq has joined the channel [15:31] jamescarr: very cool stuff. Gonna devote some time today to set it up as a service in a chef recipe [15:31] qsobad has joined the channel [15:31] bmf90 has joined the channel [15:32] jamescarr: I just got around to thinking about deployments today. thinking of ways to deploy so that all my static content is served by Nginx [15:32] pendlepants has joined the channel [15:32] r04r has joined the channel [15:32] r04r has joined the channel [15:33] ditesh|cassini has joined the channel [15:34] Destos has joined the channel [15:35] EvRide has joined the channel [15:35] sirjuh has left the channel [15:35] sirjuh has joined the channel [15:36] pgriess has joined the channel [15:37] r04r has joined the channel [15:39] isao has joined the channel [15:39] carlyle has joined the channel [15:39] kainosnoema has joined the channel [15:40] AvianFlu has joined the channel [15:40] dodo has joined the channel [15:41] c4milo has joined the channel [15:42] khrome has joined the channel [15:42] lperrin1 has joined the channel [15:42] ph^ has joined the channel [15:43] r04r has joined the channel [15:43] bmf90_ has joined the channel [15:43] rwaldron has joined the channel [15:44] jimmysparkle has joined the channel [15:44] ceej has joined the channel [15:45] kylebt has joined the channel [15:45] c4milo has joined the channel [15:47] relling has joined the channel [15:47] Wizek has joined the channel [15:48] r04r has joined the channel [15:49] heavysixer has joined the channel [15:49] johnhamelink: Hey, I'm having troubles re-using a module I've written for myself, and I suspect the reason for this is because I don't understand prototypes... [15:49] johnhamelink: So I have this file which contains re-usable methods: https://gist.github.com/9fa26bc84d2c3ffd3c37 [15:50] johnhamelink: And here is an example of the module that would use this: https://gist.github.com/f3502f9247aa9fd17600 [15:50] johnhamelink: I want to create a new, unconnected instance every time I load this.obj.standardControllers.init() [15:51] ryantm has joined the channel [15:52] warz has joined the channel [15:52] warz has joined the channel [15:53] r04r has joined the channel [15:54] fatjonny has joined the channel [15:55] LuckySMack has joined the channel [15:55] felixhummel has joined the channel [15:56] cosmincx has joined the channel [15:57] Venom_X has joined the channel [15:58] r04r has joined the channel [15:58] r04r has joined the channel [15:58] f1gm3nt has joined the channel [15:59] dnolen has joined the channel [15:59] kainosnoema has joined the channel [16:00] khrome has joined the channel [16:01] Wizek-other has joined the channel [16:01] timoxley: johnhamelink not clear, that's a fair whack of code [16:02] johnhamelink: timoxley, sorry. Let me point out the important parts: [16:02] johnhamelink: file 1: we call init() first, but we want all methods in that object to be new instances of themselves [16:02] Gloorian has joined the channel [16:02] Gloorian: Hello [16:02] johnhamelink: in file 2, line 53, we are calling the init() function [16:03] r04r has joined the channel [16:03] r04r has joined the channel [16:03] Gloorian: I have a question [16:03] johnhamelink: there are multiple "file 2s" which call the same module using the same object, so I want to create a new instance each time so they don't overwrite each other [16:03] Gloorian: I'd like to save an array in a file, and easily get it back [16:03] Gloorian: do you know a way ? [16:04] johnhamelink: timoxley, I hope that clarifies :) [16:04] khrome has joined the channel [16:04] Blutterbob has joined the channel [16:04] Blutterbob: What is the method to use when I want to copy a file? [16:04] timoxley: Gloorian JSON.stringify(yourArray) and look at fs.writeFile and [16:05] blueadept has joined the channel [16:05] timoxley: Blutterbob no easy way in core I don't think [16:05] timoxley: Blutterbob you can link though [16:05] Gloorian: Okay, and to get it back, when I have the data value from readFile ? [16:05] timoxley: Gloorian yep [16:05] bradleymeck: .pripe from a readstream to a writestream [16:05] bradleymeck: .pipe* [16:05] Gloorian: timoxley: yes, but what is the other function to get it back ? [16:06] Blutterbob: Weird.. with such a large library already... no copy function? [16:06] Blutterbob: kind of basic :) [16:06] ritch- has joined the channel [16:06] timoxley: Gloorian fs.readFile? [16:06] bradleymeck: Blutterbob, its basic in terms of functionality, but very complex in actual code (look up the new copy algorithm for windows 8 for example) [16:06] timoxley: Gloorian then JSON.parse [16:07] Gloorian: oh, thank you :D [16:07] bradleymeck: Blutterbob, just pipe a readstream to a writestream from fs [16:07] timoxley: Blutterbob also look for fs.extras [16:08] r04r has joined the channel [16:08] r04r has joined the channel [16:08] diogogmt has joined the channel [16:09] themiddleman_itv has joined the channel [16:09] Blutterbob: timoxley: yeah, already found the fs.extra, which basically does the util.pump.. I already did that as well, but I figured that there should be an easier way to do that.. [16:09] k1ttty has joined the channel [16:09] joshsmith has joined the channel [16:09] CIA-102: node: 03Fedor Indutny 07master * r0cebfc8 10/ tools/test.py : [16:09] CIA-102: node: tests: kill process group on failure [16:09] CIA-102: node: Test suite is often leaving `stray` processes on failure. They are [16:09] CIA-102: node: harmless, but may cause future test runs fail because those `stray` [16:09] CIA-102: node: processes are occupying `common.PORT` or due to some other reasons. [16:09] CIA-102: node: Killing whole process group on test suite failure should help in such [16:09] CIA-102: node: cases. - http://git.io/27afXg [16:10] timoxley: Blutterbob for many purposes a symlink will do [16:10] danielrmz has joined the channel [16:10] Blutterbob: timoxley: Question.. Checking the source code for fs.extra.copy, I see src, dst, and cb parameters.. src and dst are obvious, but what is cb? [16:10] joshsmith: hmm I'm trying to fetch node-pusher from npm but it's erroring out [16:10] QiBala has joined the channel [16:11] Blutterbob: and yeah, symlink almost always suffices, but not *always* [16:12] whaley has joined the channel [16:12] ohtogo has joined the channel [16:12] r04r has joined the channel [16:13] joshsmith: wow, so npm's SSL certificate has expired? [16:13] QiBala has joined the channel [16:14] joshsmith: or no [16:14] diogogmt has joined the channel [16:14] ts__ has joined the channel [16:14] joshsmith: it's signed by an untrusted issuer, so npm was breaking for me [16:14] ekryski has joined the channel [16:14] smard has joined the channel [16:14] timoxley: Blutterbob callback [16:15] Blutterbob: timoxley: Doh! :) [16:16] sigurding_ has joined the channel [16:17] socketio\test\27 has joined the channel [16:17] r04r has joined the channel [16:18] cha0s has joined the channel [16:18] cha0s has joined the channel [16:18] socketio\test\81 has joined the channel [16:19] vkroll has left the channel [16:19] blup: any recommendations of good js blogs to keep track of? currently know of dailyjs and changelog.. [16:19] ohcibi has joined the channel [16:20] diogogmt has joined the channel [16:20] johnhamelink: timoxley, any chance you could give me a hand? [16:20] johnhamelink: if not, i'll ask on stackoverflow :) [16:21] esundahl has joined the channel [16:22] ramitos has joined the channel [16:22] caolanm has joined the channel [16:22] r04r has joined the channel [16:22] Swizec has joined the channel [16:23] tmcw has joined the channel [16:23] smard: Is there an official node js forum? [16:23] johnhamelink: timoxley, I've tried using var standard = Object.create(this.obj.standardControllers).init(), but that doesn't seem to help either... [16:23] timoxley: johnhamelink ask on stackoverflow and I'll get to it in a bit [16:24] johnhamelink: thanks timoxley :) [16:24] sigurding has joined the channel [16:24] bradleymeck: blup: dailyjs, changelog, badassjs, follow paul irish on g+, plenty for me [16:25] bradleymeck: smard nodejs on google groups [16:25] jgornick has joined the channel [16:25] smard: ok thx [16:25] ningu has joined the channel [16:25] skylamer` has joined the channel [16:25] sechrist has joined the channel [16:26] timoxley: smard also issacs blog [16:26] Rickta59 has joined the channel [16:26] NetRoY has joined the channel [16:26] ryanfitz has joined the channel [16:27] timoxley: smard http://blog.izs.me/ [16:27] r04r has joined the channel [16:27] r04r has joined the channel [16:27] fangel has joined the channel [16:28] CIA-102: node: 03Ben Noordhuis 07master * r86f4846 10/ (lib/url.js test/simple/test-url.js): [16:28] CIA-102: node: url: decode url entities in auth section [16:28] CIA-102: node: Fixes #2736. - http://git.io/mt-fxw [16:28] CIA-102: node: 03Ben Noordhuis 07master * rf116e17 10/ test/simple/test-http-url.parse-auth.js : [16:28] CIA-102: node: test: update HTTP basic auth test [16:28] CIA-102: node: Verify that URL-encoded entities are properly encoded into the Authorization [16:28] CIA-102: node: header. - http://git.io/kSXIDg [16:28] hij1nx has joined the channel [16:28] brianleroux has joined the channel [16:30] EhevuTov has joined the channel [16:31] bmf90_ has joined the channel [16:31] r04r has joined the channel [16:31] mandric has joined the channel [16:31] diogogmt has joined the channel [16:32] johnhamelink: timoxley, It's on stack overflow now, thanks in advance! :) http://stackoverflow.com/questions/9364654/node-js-using-prototype-in-a-module [16:33] illourr: good morning noders [16:36] r04r has joined the channel [16:36] r04r has joined the channel [16:36] aslant has joined the channel [16:36] blueadept has joined the channel [16:36] blueadept has joined the channel [16:37] snuggl has left the channel [16:37] diogogmt has joined the channel [16:37] jzacsh has joined the channel [16:37] jzacsh has joined the channel [16:38] bmf90_ has joined the channel [16:40] TooTallNate has joined the channel [16:41] r04r has joined the channel [16:42] ritch- has left the channel [16:43] xavieralexander has joined the channel [16:43] luzilla has joined the channel [16:44] stephank has joined the channel [16:44] timoxley: johnhamelink what is the flow object [16:45] johnhamelink: flow is equal to module.exports [16:45] luzilla: Got this Express warning: connection.session() MemoryStore is not designed for a production environment, as it will leak memory, and obviously only work within a single process. [16:45] timoxley: ?? [16:45] luzilla: What is the fix for it? [16:45] cosmincx has joined the channel [16:45] TooTallNate: luzilla: use an external store like RedisStore [16:45] johnhamelink: timoxley, in line 5, module.exports = flow = {} [16:46] thinkt4nk has joined the channel [16:46] r04r has joined the channel [16:46] lperrin has joined the channel [16:46] luzilla: any tips to configuring it? [16:46] timoxley: johnhamelink ok. there's a bunch of stuff in here that doesn't make a lot of sense [16:46] cogman has joined the channel [16:46] johnhamelink: timoxley, it'd mean an aweful lot to me if you helped me clean it up! [16:46] _marvin has joined the channel [16:47] timoxley: johnhamelink fosho. I'll show you one way to structure it [16:47] kirbysayshi has joined the channel [16:47] johnhamelink: Thanks! :) [16:47] cogman: Does anyone know how geddy compares to RoR in terms of memory consumption and processor usage? [16:47] wdbl has joined the channel [16:48] tornad has joined the channel [16:48] norviller has joined the channel [16:49] nickdc has joined the channel [16:49] nickdc has left the channel [16:49] timoxley: johnhamelink also, it looks like you're reinventing some wheel [16:49] timoxley: johnhamelink I'm not sure what wheen [16:49] timoxley: wheel [16:49] johnhamelink: Hmm [16:49] timoxley: but it looks like you could get away with using some modules [16:49] r04r has joined the channel [16:50] timoxley: johnhamelink anyway, sorry to rag on your code so much [16:50] johnhamelink: timoxley - no, it's good! I want to get better :) [16:50] cogman: I have a simple embedded processor with node.js already installed (the beaglebone), It is going to serve 1, maybe 2 users at a time and I'm wondering which framework is going to have the smaller footprint (geddy or ror) [16:51] idefine has joined the channel [16:52] simenbrekken has joined the channel [16:52] RLa: cogman, benchmark [16:53] cogman: RLa: Looks like that is what I'll need to do. Thanks. [16:53] papirkopi has joined the channel [16:54] kwmiebach_ has joined the channel [16:54] CrisO has joined the channel [16:54] r04r has joined the channel [16:55] RLa: i think it will depend on how many processes of ror you need to run [16:56] qXs-mac has joined the channel [16:56] RLa: and how you run it :) jruby can have quite large memory usage [16:57] johnhamelink: timoxley, so what should I do then? :) [16:57] timoxley: johnhamelink I'm writing it up [16:57] johnhamelink: timoxley, legend :) [16:57] simenbrekken has joined the channel [16:58] isaacs has joined the channel [16:59] jarek has joined the channel [16:59] jarek has joined the channel [16:59] r04r has joined the channel [16:59] cogman: RLa: I was thinking of using the standard ruby interpreter instead of JRuby. It should only need one process. [16:59] qXs-mac: I'm building a web IRC client using Node using the IRC module, I'm wondering if there's a way to automatically get the channel topic on join, or if there is a listener, and how to access it [16:59] pizthewiz has joined the channel [16:59] nodebiscut has joined the channel [17:00] RLa: cogman, i think single ruby process can only serve single concurrent request [17:00] RLa: that will suck in some types of apps, like file uploading [17:00] lperrin1 has joined the channel [17:01] mschneider has joined the channel [17:01] RLa: single process handling upload won't be able to serve other requests at the same time [17:01] jscheel_ has joined the channel [17:01] cogman: RLa: It is an embedded system (so no file storage) that is really just going to display some data from a couple of SQLite tables. [17:02] timoxley: johnhamelink so you generally have multiple instances of this thing running? [17:02] timoxley: johnhamelink or just one. the Client - CRUD/filter [17:03] _eddyb_ has joined the channel [17:03] creationix: isaacs, morning [17:03] johnhamelink: timoxley, so I have one instance of the application running, but mutliple instances of the common controller file [17:03] timoxley: johnhamelink why multiple [17:03] eddyb has joined the channel [17:04] r04r has joined the channel [17:04] EhevuTov_ has joined the channel [17:04] _eddyb_ has joined the channel [17:04] timoxley: johnhamelink does 'moduleName' ever change? [17:04] isaacs: good morning. happy presidents' day. [17:04] diogogmt has joined the channel [17:04] creationix: isaacs, are you not working today? [17:05] creationix: and happy presidents day to you too [17:05] isaacs: not much. just posted a scrum update for my non-us coworkers. i'm off :) [17:05] mmalecki: wait, you guys have presidents' day? [17:06] jiboumans_ has joined the channel [17:06] jtsnow has joined the channel [17:06] creationix: isaacs, ok, when you're working again, I want to sync up on some node documentation efforts, in particular scraping the runtime via introspection [17:06] creationix: enjoy your monday! [17:07] nhunzaker has joined the channel [17:08] EhevuTov has joined the channel [17:08] Gloorian has joined the channel [17:08] Gloorian: hello again [17:08] r04r has joined the channel [17:09] Gloorian: I was wondering, how can I know if a file is empty when I open it with fs.readFile ? [17:09] jamescarr: heh... isaacs is off, I'm spending my vacation day hacking at node :) [17:10] margle has joined the channel [17:10] tmcw has joined the channel [17:10] johnhamelink: timoxley yes, every time [17:11] timoxley: johnhamelink to what values? you have dynamic routes? is it the client id? [17:11] johnhamelink: no, it could be research, company, client, or a whole host of other stuff [17:12] timoxley: johnhamelink so this is supposed to basically provide automated crud for any mongoose model [17:12] kylebt has joined the channel [17:12] johnhamelink: timoxley, pretty much! :) [17:13] johnhamelink: The idea is that I can drop in extra functionality (as a git submodule). The module has the standard controller as an option with which to handle responses [17:13] diogogmt has joined the channel [17:13] r04r has joined the channel [17:13] r04r has joined the channel [17:13] tmcw_ has joined the channel [17:14] johnhamelink: (the extra functionality are these modules), the standard controller is packaged seperately [17:14] kapouer has left the channel [17:14] Gloorian: does anyone know ? [17:15] Ksugzulut has joined the channel [17:16] kitt has joined the channel [17:16] kitt has joined the channel [17:16] jaw187 has joined the channel [17:16] sreeix has joined the channel [17:16] tdegrunt has joined the channel [17:17] jgautier has joined the channel [17:17] johnhamelink: timoxley, does that make sense to you… I feel like I'm being cryptic [17:17] Broolucks has joined the channel [17:18] jgautier: hey i have a read stream and write stream open on the same file, when i do a .write on the write stream i dont get a 'data' event on the read stream. [17:18] timoxley: johnhamelink are the dynamic resources known at startup time? [17:18] jgautier: is it possible to read and write to the same file at the same time? [17:18] apcshields has joined the channel [17:18] timoxley: johnhamelink or are they added while the app is running [17:18] joshsmith has joined the channel [17:18] johnhamelink: timoxley, the modules are loaded from app.js and are visible to all modules that are loaded [17:19] johnhamelink: timoxley, the vendor directory are then read syncronously and the modules are loaded into them [17:19] johnhamelink: (the modules im referring to hear are 3rd party - installed from npm) [17:19] johnhamelink: *here [17:20] creationix has left the channel [17:20] kmiyashiro has joined the channel [17:21] jamescarr: hmmmm... my regex is weak. How would I define a path in express that basically says "anything but the login page" ? [17:22] Epelii: first define your login page url and then just add wildcard matcher [17:22] tmcw has joined the channel [17:22] Epelii: no need for regex [17:22] ningu: your regex is weak, my friend. [17:22] ningu: or should that be, your regex is weak, old man. [17:23] qXs-mac: i sense the regex is strong with this one [17:23] merlin83 has joined the channel [17:23] zarex has joined the channel [17:23] orlandovftw has joined the channel [17:23] jocafa: You need to take Regex-Kwon-Do! [17:23] jamescarr: Epelii, fair enough [17:23] vdemedes has joined the channel [17:23] jocafa: ACTION puts on american flag pants [17:23] vdemedes: Hello [17:24] yawNO: hi vdemedes [17:24] shanebo has joined the channel [17:24] jamescarr: thanks [17:24] orlandovftw has joined the channel [17:25] willwhite has joined the channel [17:25] TimTimTim has joined the channel [17:26] jnbek has joined the channel [17:27] isaacs has joined the channel [17:28] apcshields has joined the channel [17:28] slajax has joined the channel [17:28] slloyd has joined the channel [17:28] jgautier: hey i have a read stream and write stream open on the same file, when i do a .write on the write stream i dont get a 'data' event on the read stream. [17:28] jgautier: is it possible to read and write to the same file at the same time? [17:29] kalms has joined the channel [17:29] criswell has joined the channel [17:30] ts__: jgautier: you can read a file concurrently [17:30] christkv has joined the channel [17:31] cha0s has joined the channel [17:31] cha0s has joined the channel [17:31] Vennril has joined the channel [17:31] jgautier: if i have a read stream and write stream opened to the same file how come i dont get the 'data' event when i call the .write on the write stream? [17:31] robm has joined the channel [17:31] kenperkins has joined the channel [17:31] ts__: because the read stream close itself when the file is read [17:31] ts__: if you want to know when a file is changed [17:31] ts__: use fs.watchFile [17:32] mAritz has joined the channel [17:32] jgautier: ah so the read stream closes itself when it has read all the data [17:32] ts__: yes [17:32] RLa: maybe you want named pipe [17:33] spion1 has joined the channel [17:33] jerkelens has joined the channel [17:33] ts__: what's the best way to transform some js code (function source included) into string ? i see that Function has a toString method [17:33] jgautier: well at the end of the day im trying to build a mock serial port, so i can read and write to it and perform unit testing without having a serial device connected [17:33] ningu: ts__: erm, with what goal? [17:34] danielss89 has joined the channel [17:34] ts__: ningu: executing some code in a vm on another server ;) [17:34] RLa: jgautier, so try named pipe [17:34] mraleph has joined the channel [17:34] RLa: you could create it as temporary file [17:34] jgautier: will do [17:35] jgautier: any examples on how to do that with node? [17:35] c0smikdebris has left the channel [17:35] CrisO: What's the best module for image resizing ? [17:36] vdemedes: CrisO: let me recommend you Magician( http://github.com/vdemedes/Magician) [17:36] ts__: magician [17:36] vdemedes: CrisO: I'm using it in production [17:36] nicki9knuckles has joined the channel [17:36] vdemedes: ts__: thanks! Glad to hear that someone uses my module! [17:36] sigurding: anyone here used formaline with a progress bar? [17:36] vdemedes: sigurding: Hello Johannes! [17:36] Sahua has joined the channel [17:36] vdemedes: sigurding: sorry, no :-) [17:37] sigurding: hey vdemedes :-) [17:37] sigurding: (Vadim) :) [17:37] vdemedes: sigurding: :-) [17:37] sigurding: how are you? [17:37] vdemedes: sigurding: good thank you! What about you? [17:37] CrisO: vdemedes: cool, thanks [17:37] RLa: jgautier, can't find anything about it in node, but you can execute mkfifo command yourself [17:37] RLa: other than that, the file should work as usual file [17:37] jgautier: gotchya [17:37] sigurding: vdemedes: I am also fine [17:38] vdemedes: sigurding: great! :-) [17:38] jgautier: would there be an advantage of doing the named pipe or just doing a file watch? [17:38] paulwe has joined the channel [17:38] jgautier: i would just be using this for unit tests [17:38] sigurding: started using formaline and got some stuff running, though I do not understand some things [17:38] vdemedes: sigurding: ask :-) [17:39] vdemedes: sigurding: progress bar problem? [17:39] tmcw_ has joined the channel [17:39] RLa: jgautier, not sure how you could do it with file watch [17:40] sigurding: vdemedes: exactly yes. As I see, I need to open a socket, right? But what would be the appropriate client side? JQuery-UI with progress bar? [17:40] vdemedes: sigurding: nope, jQuery's UI has nothing to do with that [17:40] vdemedes: sigurding: this is just UI element [17:40] johnhamelink: timoxley, if you could write a response on my stackoverflow, I'd love you forever and ever ^_^ I need to go to some crappy meeting now! [17:41] jgautier: i see that they added support for FIFOs but i dont see any docs http://blog.nodejs.org/2011/07/22/node-v0-5-2/ [17:41] vdemedes: sigurding: I'm having such dirty idea: when upload comes, listen to the progress event(on the server) and keep progress values in the separate array [17:41] joshkehn has joined the channel [17:41] timoxley: johnhamelink response up. [17:41] vdemedes: sigurding: you know what? Socket.io would be perfect for that [17:41] dshaw_ has joined the channel [17:41] sigurding: vdemedes: thought of that too [17:41] joshkehn has left the channel [17:42] vdemedes: sigurding: just connect to the channel, and emit progress event [17:42] sigurding: I think i found something like that [17:42] vdemedes: sigurding: that will be hassle-free [17:42] sigurding: one sec. [17:42] vdemedes: sigurding: yep, sure [17:42] jamescarr: this might sound silly, but is there anyway to have express set default locals? [17:42] sigurding: vdemedes: http://stackoverflow.com/questions/5323291/node-formidable-and-a-simple-progress-bar [17:43] jamescarr: for example, i want every page to have the title set if it isn't already [17:43] RLa: jgautier, they work as normal files [17:43] RLa: no special support is needed [17:43] RLa: i think there stats.isFIFO() method, that might be all support it needs :) [17:44] vdemedes: sigurding: yep, exactly what I'm saying. And what is the problem? [17:44] vdemedes: sigurding: Socket.io + formidable/formaline [17:44] sigurding: vdemedes: the client side. how do I connect to exactly this socket and no other? [17:45] EhevuTov has joined the channel [17:45] vdemedes: sigurding: there should be only one socket server, you connect to it, and server sends events to the client using session's id [17:45] vdemedes: sigurding: however, I've worked with socket.io long time ago, don't know how things go now [17:45] vdemedes: sigurding: let me check [17:46] sigurding: vdemedes: ah okay, that was the part missing for me [17:46] khrome has joined the channel [17:46] rumble-pack has joined the channel [17:46] jgautier: hmm so i used mkfifo to make a named pipe then used a read steam and it still closed immediately just like a normal file [17:46] jgautier: am i missing something? ive never used a named pipe before [17:46] rumble-pack: how can i bind a different ip address to node-inspector? i want to access it remotely [17:47] johnmdonahue has joined the channel [17:47] TheJH has joined the channel [17:48] orospakr has joined the channel [17:48] cha0s has joined the channel [17:48] cha0s has joined the channel [17:48] vdemedes: sigurding: I think you can listen & broadcast events with custom names, like "progress-for-upload-135245345" [17:49] sigurding: ok, I will give it a try, let me see [17:49] vdemedes: sigurding: ;-) [17:50] innoying has joined the channel [17:50] McMAGIC--Copy has joined the channel [17:52] TimTimTim has joined the channel [17:54] joshthecoder has joined the channel [17:55] sigurding: vdemedes: on the client side I am using socket.io as well? http://socket.io/ [17:56] rickibalboa has joined the channel [17:56] vdemedes: sigurding: yep, same library ;-) [17:56] sigurding: ok need to install it first via npm [17:56] jaw187: Anyone know of ICMP modules other than ones that run child processes? Or should I just use dgrams? [17:57] phidah has joined the channel [17:58] nicki9knuckles has left the channel [17:59] timoxley: jamescarr you could create your express 'locals' by merging a 'default locales' hash with a specific translation hash [17:59] carlyle has joined the channel [17:59] briancray has joined the channel [17:59] redir has joined the channel [18:00] diogogmt has joined the channel [18:00] jamescarr: timoxley, thanks... I think what I want in this case is to attach a helper [18:00] jamescarr: much like mongoose-auth does [18:00] timoxley: jamescarr cool [18:01] eignerchris has joined the channel [18:03] maletor has joined the channel [18:03] jakehow has joined the channel [18:05] willwhit_ has joined the channel [18:06] richardr has joined the channel [18:06] hipsterslapfight has joined the channel [18:06] slloyd has joined the channel [18:06] davehamptonusa has joined the channel [18:07] slaskis_ has joined the channel [18:09] woodzee has joined the channel [18:09] disappearedng has joined the channel [18:10] Cromulent has joined the channel [18:11] c0smikdebris has joined the channel [18:11] aranw has joined the channel [18:11] fomatin has joined the channel [18:12] Vespakoen has joined the channel [18:14] sigurding: hmpf [18:16] Country has joined the channel [18:17] ketan has joined the channel [18:17] ketan: hi [18:18] vincentcr has joined the channel [18:20] `3rdEden has joined the channel [18:20] Aria has joined the channel [18:22] mikeal has joined the channel [18:23] gregpascale has joined the channel [18:23] simenbrekken has joined the channel [18:24] kkwak has joined the channel [18:24] Wizek has joined the channel [18:24] dabbor has joined the channel [18:25] sigurding_ has joined the channel [18:25] nhunzaker has left the channel [18:27] Poetro has joined the channel [18:28] sh1mmer has joined the channel [18:33] Venom_X has joined the channel [18:34] dwhittle has joined the channel [18:34] stagas has joined the channel [18:35] ningu: is there a good way to debug why x === y is not succeeding? [18:35] ningu: doh. I think I just figured it out. [18:36] kylebt has joined the channel [18:36] ryanfitz has joined the channel [18:38] aaronmcadam has joined the channel [18:38] gatorcoder has joined the channel [18:38] artusrocha has joined the channel [18:39] thinkt4nk has joined the channel [18:40] Dotan has joined the channel [18:40] EhevuTov: ningu, use typeof ? [18:41] EhevuTov: typeof x; typeof y [18:42] hz has joined the channel [18:43] ningu: EhevuTov: yeah... I just figured out that my var had been coerced to a string, and it was null, so it came out as "null" :P [18:43] ullmark has joined the channel [18:43] diogogmt has joined the channel [18:44] EhevuTov: ningu, threaten it. Show it who's boss. [18:44] jarek__ has joined the channel [18:46] blup has joined the channel [18:47] slaskis has joined the channel [18:48] diogogmt has joined the channel [18:49] CrisO has joined the channel [18:49] vguerra has joined the channel [18:49] dve has joined the channel [18:49] jergason has joined the channel [18:50] brianleroux has joined the channel [18:50] simenbrekken has joined the channel [18:51] gde33 has joined the channel [18:51] samuelgoodwin has joined the channel [18:52] gr4yscale has joined the channel [18:52] Skyjoker has joined the channel [18:54] ohtogo_ has joined the channel [18:55] nyrb has joined the channel [18:57] blup has joined the channel [18:59] imsky has joined the channel [19:00] pandark_ has joined the channel [19:01] slickplaid: Dang... what's the name of that site that catches and echos back responses for api testing and such? I can't for the life of me remember what it is. [19:02] mmalecki: slickplaid: http://www.postbin.org/ ? [19:02] slickplaid: yes! [19:02] slickplaid: thanks [19:03] patcito has joined the channel [19:03] indutny: hoya [19:03] kirbysayshi has joined the channel [19:04] luzilla: Is it necessary to set app settings inside app.configure() ? [19:05] luzilla: can't i just do app.set('views', __dirname + '/views'); in the app file root? [19:07] lohkey has joined the channel [19:07] danielss89 has joined the channel [19:07] EvRide has joined the channel [19:07] devrim has joined the channel [19:08] gr4yscale has joined the channel [19:08] ningu: luzilla: yes [19:08] ningu: but app.configure() can detect your environment as well [19:08] nathanielk has joined the channel [19:09] luzilla: If I were to set it for all environs? [19:09] luzilla: equialent to app.configure(function() { ... [19:09] ningu: yes [19:09] ningu: afaik [19:09] luzilla: hmmm ok [19:10] cesconix has joined the channel [19:11] janekp has joined the channel [19:11] rickibalboa: So I have a tls server listening for connections/data. I have this code in it: s.on('close', function() { console.log(s.remoteAddress); }); it prints undefined, any reason for this? It doesn't in the data event. [19:11] chuck_daniel has joined the channel [19:12] tonist has joined the channel [19:12] yawNO has joined the channel [19:12] euforic has joined the channel [19:13] tkaemming has joined the channel [19:14] yawNO: xeround is stalking me [19:14] yawNO: i googled them once [19:14] yawNO: now i get their ads appearing everywhere [19:14] jerkelens has joined the channel [19:14] yawNO: from youtube to random google ads websites [19:14] yawNO: help :( [19:15] RLa: adblock! [19:15] gasbakid__ has joined the channel [19:15] insin has joined the channel [19:16] jldbasa has joined the channel [19:16] diogogmt has joined the channel [19:16] yawNO: RLa: but i feel sorry for poor sysadmins who make money out of it :P [19:16] yawNO: jk lol [19:16] yawNO: yeah i could.. nice hint [19:20] zomgbie has joined the channel [19:21] Poetro has joined the channel [19:21] jskulski has joined the channel [19:21] diogogmt has joined the channel [19:22] tkahn6_ has joined the channel [19:23] bneff has joined the channel [19:24] gr4yscal_ has joined the channel [19:25] gr4yscal_ has joined the channel [19:25] ohtogo has joined the channel [19:25] Poetro has joined the channel [19:26] chjj has joined the channel [19:26] tmcw has joined the channel [19:26] cha0s has joined the channel [19:26] cha0s has joined the channel [19:27] andrehjr has joined the channel [19:27] djazz has joined the channel [19:27] orlandovftw has joined the channel [19:28] diogogmt has joined the channel [19:28] orlandovftw has joined the channel [19:29] simoon has joined the channel [19:32] pizthewiz has joined the channel [19:32] Wizek has joined the channel [19:32] samBiotic has joined the channel [19:33] ningu: there should be a show called who wants to be a key/value store, with redis philbin [19:33] icebox has joined the channel [19:33] zarex has joined the channel [19:34] jamescarr_ has joined the channel [19:35] qXs-mac has left the channel [19:35] axscode has joined the channel [19:36] thinkt4nk has joined the channel [19:37] maxogden: ningu: you can use this to make a logo github.com/maxogden/kathyleegiffer [19:37] aslant: I've got a binary png attachment on a database. I want to serve that png in a get request. I'm faiing badly - on search engines use and initiative! Please could I have some help? [19:37] axscode: http://pastebin.com/r6SrW7vs <-- can someone help out how to isolate the problem. [19:37] ningu: hehe [19:38] ningu: axscode: erm, it would help to have the server.js code [19:38] Bonuspunkt: i need a backup of the erotivoice.com folder :X [19:38] aslant: axscode: look 44 characters in on line 87 of server.js [19:39] aslant: that obj is undefined [19:39] snowinferno has joined the channel [19:39] jarek has joined the channel [19:39] jarek has joined the channel [19:39] overthemike has joined the channel [19:40] louissmit has joined the channel [19:40] ohtogo has joined the channel [19:42] zarex has joined the channel [19:43] papirkopi has joined the channel [19:43] axscode: http://pastebin.com/KrCKA520 [19:43] axscode: im not sure if thats the problem, or the installation of nodejs? [19:43] kylebt has joined the channel [19:44] vdemedes1 has joined the channel [19:44] Galaxor has left the channel [19:44] johnhamelink has joined the channel [19:44] ningu: axscode: looks like it isn't finding .messagePath [19:45] ningu: although I'm not sure what the business about the prototype property is [19:45] axscode: any clue how to fix? [19:45] r1ngzer0 has joined the channel [19:45] jamescarr_: anyway to capture the oauth key during an everyauth authentication? [19:46] jamescarr_: basically I want to reuse the key to make API requests [19:46] tonist_ has joined the channel [19:46] ningu: axscode: that's the whole server.js file? [19:46] axscode: yes. [19:46] axscode: just pasted the whole file [19:47] ningu: oh, I see [19:47] ningu: it's in express's server.js [19:47] sechrist: so for situations where you may or may not have to execute an async call based on logic, but need to execute pretty much the same code with or without the async code [19:47] ramitos has joined the channel [19:47] sechrist: what's a conventional method for keeping it DRY? a declared function for that code? [19:48] nathanielk: that's what i do, sechrist [19:48] nathanielk: something lik function finish() {} [19:48] nathanielk: that can be passed or just called outright [19:48] idefine has joined the channel [19:48] axscode: ningu? anything i should do? [19:48] ningu: axscode: did you paste the file referenced in the error message? why is it part of node_modules/express? [19:48] ningu: I don't see that file in my express [19:48] sechrist: I seem to encounter this scenario a lot in webapp routes [19:49] torvalamo: point organism [19:49] torvalamo: i like that [19:49] hz has joined the channel [19:49] _marvin has joined the channel [19:50] JohnFoo has joined the channel [19:50] axscode: http://pastebin.com/bDJP9in9 <-- this is the npm install, so what i did since i got this error i did npm install express@1.0.7 [19:50] axscode: im not sure if that right thing to do though [19:51] ningu: erm... why 1.0.7? [19:51] axscode: im not sure thats on the list so i tried.. [19:51] axscode: can u help out how to do it? [19:51] ningu: 2.5.8 is current [19:51] ningu: I don't know much about why your npm won't find it [19:51] ningu: I didn't really configure npm [19:51] ningu: it just worked [19:51] nathanielk: sechrist: wjat [19:51] axscode: npm ERR! Error: No compatible version found: express@'>=2.4.3' <-- what does it say? [19:51] nathanielk: er [19:52] nathanielk: sechrist: what's the logic you're finding yourself depending on? [19:52] axscode: i mean, dont exist where? the repo? [19:52] sechrist: nathanielk: like lets say another db/redis hit has to happen based on something provided back in a user document [19:52] sechrist: if it needs to, it does the request, then continues on with the handler, if not, continues immediately [19:52] axscode: oh well, how can i configure my npm then.. grr.. im soo noob with this but i want to learn how to set it up [19:52] nathanielk: yeah, that tends to be mine too. [19:53] samsonjs has joined the channel [19:53] ningu: axscode: I don't know, there are docs for npm, but I'd start by using the latest express [19:53] Nietecht has joined the channel [19:53] nathanielk: sechrist: wish i had better advice, sorry [19:54] sechrist: eh I'm doing that too, but since this is common I would like to see some standard way of doing this kind of complicated control flow [19:54] sechrist: goto: statement [19:54] sechrist: lol [19:54] axscode: whats the latest of node version? [19:54] ningu: I typically have an inline function finish() [19:54] ningu: axscode: 0.6.11 [19:55] axscode: node -v v0.7.5-pre [19:55] axscode: <-- so is latest right? [19:55] axscode: how about npm? [19:55] AvianFlu: axscode, that's a very unstable version [19:55] AvianFlu: use 0.6.11 [19:56] ningu: 0.7 is dev [19:56] axscode: how to install 0.6.11 ? [19:56] ningu: well, how did you install 0.7? [19:56] axscode: or how to overwrite my existing [19:56] ningu: I don't know what distro you're on [19:56] axscode: centos [19:56] wereHamster: axscode: download && compile ? [19:56] axscode: mkdir -p ~/local/src && cd ~/local/src && git clone git://github.com/joyent/node.git && cd node && ./configure && make && sudo make install [19:56] axscode: just this... [19:57] maxogden: + git checkout v0.6.11 [19:57] maxogden: between clone and ./configure [19:57] wereHamster: axscode: that will compile the latest version, not 0.6.11 [19:57] axscode: yeah so how again? [19:57] maxogden: axscode: type "git checkout v0.6.11" [19:57] wereHamster: axscode: what maxogden said. LTR [19:58] simoon has joined the channel [19:58] blueadept has left the channel [19:58] axscode: [root@erotimarket src]# git checkout v0.6.11 [19:58] axscode: fatal: Not a git repository (or any of the parent directories): .git [19:58] maxogden: wereHamster: git syntax isnt exactly intuitive [19:59] wereHamster: axscode: after cd node; [19:59] wereHamster: axscode: also, why don't you download the tarball? [19:59] jarek__ has joined the channel [19:59] wereHamster: also, compiling as root. ugh -.- [20:00] axscode: [root@erotimarket node]# git checkout v0.6.11 [20:00] axscode: HEAD is now at 1eb1fe3... 2012.02.17 Version 0.6.11 (stable) [20:00] maxogden: wereHamster: make && sudo make install, not sudo make && sudo make install [20:00] maxogden: axscode: sweet now you can do make [20:01] axscode: shall i ./confugre first? [20:01] maxogden: axscode: oh yeah hehe [20:01] wereHamster: yes [20:01] axscode: ok [20:01] gasbakid__ has joined the channel [20:01] wereHamster: axscode: you compilin' for the first time? [20:01] richardr has joined the channel [20:01] axscode: not really.. [20:02] axscode: im not familiar with git, and nodejs [20:02] blueadept has joined the channel [20:02] blueadept has joined the channel [20:02] wereHamster: compiling is no different than any other unix software [20:02] axscode: i am more familiar with wget file.tar.tgz, tar -zxvf file.tar.gz; cd file; ./configure; make && make isntall [20:03] wereHamster: axscode: so why aren't you doing that? [20:03] maxogden: axscode: the syntax is "git checkout TAGNAME", where TAGNAME comes from https://github.com/joyent/node/tags [20:03] maxogden: wereHamster: its called learning, people do it sometimes [20:04] axscode: ah, so its like from the git repo, i'll choose what head to get and compile? [20:04] Aria: Yes. [20:04] khrome has joined the channel [20:04] Aria: HEAD in git is just a pointer to the 'current' commit. [20:04] axscode: clever [20:04] maxogden: axscode: yeah well maintained repositories use tags to manage releases [20:04] Aria: When you check something out, it moves the pointer to it, and then updates your working tree to match. [20:05] maxogden: axscode: so you can just jump around to different tags from inside your repo [20:05] axscode: ic, but basically you downloaded already all sources? [20:05] Aria: tags are named references to certain commits. [20:05] Aria: Yes. [20:05] axscode: ahh, a total clone.. [20:05] Aria: You can be a little selective, but in git, downloading a commit implies getting at least all of its ancestor commits too. [20:05] axscode: thats sharing... [20:05] Aria: So most of the time, that's everything not experimental. [20:06] cjm has joined the channel [20:06] Aria: (it makes checking out different revisions FAST. You already have them, and it only has to update your working copy with differences between where you were and where you're going) [20:06] harthur has joined the channel [20:06] axscode: im excited to learn nodejs... [20:06] axscode: diff/changed file.. ic... [20:07] `3rdEden has joined the channel [20:07] cha0s has joined the channel [20:07] cha0s has joined the channel [20:07] mAritz has joined the channel [20:07] chuck_daniel has left the channel [20:07] axscode: 'make' takes too long.. im so excited [20:08] wmage has joined the channel [20:09] olivier has joined the channel [20:09] artusrocha has joined the channel [20:11] ramitos has joined the channel [20:11] axscode: wow sweet [20:12] axscode: huwaawww... server.js went through.. [20:12] axscode: thank you guys.. [20:13] dreamdust has left the channel [20:13] ketan: how to update node? [20:14] boccato has joined the channel [20:15] blup has joined the channel [20:15] axscode: http://pastebin.com/eXjNFm9N [20:15] mikeal has joined the channel [20:15] axscode: new problem arises though [20:16] mikedeboer has joined the channel [20:17] larsschenk1 has joined the channel [20:18] maxogden: axscode: seems like the code you're writing was designed for node 0.4 and not 0.6 [20:19] maxogden: axscode: are you using the newest version? [20:19] axscode: i am.. i will double check [20:19] ketan has joined the channel [20:19] larsschenk1 has left the channel [20:20] maxogden: axscode: if its only compatible with 0.4 then i'd recommend checking out 0.4.12 (the last 0.4.x release) and doing ./configure and make and sudo make install again [20:20] maxogden: axscode: or contacting the author and asking them to upgrade to 0.6 compatibility [20:20] axscode: ill try compiling 0.4.12 then [20:20] gr4yscale has joined the channel [20:20] ningu: is there any idea when 0.8 will be out? [20:21] fasecharmer has joined the channel [20:21] ningu: a roadmap, I mean? [20:21] Skaag has joined the channel [20:21] maxogden: ningu: just curious, why do you ask? [20:21] justicefries has joined the channel [20:22] fasecharmer has left the channel [20:22] ohtogo has joined the channel [20:23] fasecharmer has joined the channel [20:23] CarterL has joined the channel [20:24] dodo_ has joined the channel [20:24] ningu: maxogden: well, I just got started with node, so I don't really know what its current status is (was just reading about isaacs taking over). but I plan to have my app working for the foreseeable future and it's good to have some idea what's going to happen. [20:24] mikeric has joined the channel [20:25] ramitos has joined the channel [20:25] maxogden: ningu: overall the focus right now is on stability and tools to support that [20:25] ningu: it won't be a huge code base, so if there are small api changes either in node or express, it may not be a huge deal (or I just won't update). [20:25] jamescarr_: anyway to send my own custom headers with socket.io? [20:25] olivier has joined the channel [20:26] jaw187: anyone know of good modules/apps to use for remotely monitoring applications and services? [20:26] maxogden: ningu: but so far upgrading between major semvers isnt earth shatteringly hard [20:26] gr4yscale has joined the channel [20:26] ningu: maxogden: so 0.8 doesn't have many planned new features? [20:27] hackband has joined the channel [20:27] mmalecki: ningu: if you want them, use 0.7 [20:28] `3rdEden: jamescarr_ nope, not possible [20:28] theBrettman has joined the channel [20:28] jamescarr_: `3rdEden, bummer :) [20:28] maxogden: ningu: i wouldnt worry about your app being obsolete. if you wanna know whats in the pipeline there is a dev list and lotsa github branches [20:28] ningu: mmalecki: that's not the point, I'm just wondering how to get a better sense of where things are and where they're headed, without combing through thousands of mailing list messages [20:28] jamescarr_: `3rdEden, I was going to try and test drive from outside the box, but I need those headers since I authenticate [20:28] jamescarr_: ah well [20:29] jamescarr_: I can still test drive the components and just wire em in [20:29] dve has joined the channel [20:30] maxogden: ningu: its going to be things like unicode support, domains, new build system etc and not switching to Dart or coffeescript or anytyhihng controversial like that [20:30] maxogden: wow i borked that word [20:30] ruggedcoder has joined the channel [20:31] ningu: maxogden: there are no native coffeescript interpreters, are there? [20:31] jdeibele has joined the channel [20:31] maxogden: ningu: just to clarify coffeescript will never be in node core, i was just using it as an example [20:32] tylerstalder has joined the channel [20:33] ningu: maxogden: are there details on the unicode support that you can point me to? [20:33] maxogden: ningu: mailing list, twitter, isaacs brain [20:33] ningu: that's probably the most relevant for me. right now I use XRegExp to search by unicode property. I assume that will become core at some point. [20:33] Blutterbob has left the channel [20:33] ramitos has joined the channel [20:34] mschneider has joined the channel [20:34] sunil_ has joined the channel [20:34] ningu: perl has had it since 5.6 or something. perl's unicode support is annoying in many ways (it's damn hard to tell it "everything is utf-8, don't even think of anything else") but many languages don't come close to its features. [20:35] localhost has joined the channel [20:35] ningu: hmm, and character semantics... does node have that at all currently? [20:35] cha0s has joined the channel [20:35] cha0s has joined the channel [20:37] __class__ has joined the channel [20:37] jkridner__ has joined the channel [20:38] thinkt4nk has joined the channel [20:38] TooTallNate has joined the channel [20:40] gr4yscale has joined the channel [20:41] mikeal has joined the channel [20:41] ramitos has joined the channel [20:42] westg has joined the channel [20:42] themiddleman_itv has joined the channel [20:43] JohnFoo: What is the most used couchdb module? I found cradle and nano... Are there any other/better.... [20:43] djazz1 has joined the channel [20:44] Fuu has joined the channel [20:48] Morkel has joined the channel [20:50] koxa has joined the channel [20:51] AD7six has joined the channel [20:52] mcav has joined the channel [20:52] CarterL has joined the channel [20:53] madhums has joined the channel [20:53] boccato has joined the channel [20:53] maxogden: JohnFoo: i use request [20:53] Hamms has joined the channel [20:53] michaelhartau has joined the channel [20:53] cha0s has joined the channel [20:53] cha0s has joined the channel [20:56] Wa has joined the channel [20:56] CIA-102: node: 03Andreas Madsen 07master * r3f40623 10/ src/node.cc : core: ignore too many arguments, don't assert - http://git.io/0oOw3A [20:57] JohnFoo: maxogden: yep, that's a solution too... Thought about... [20:58] JohnFoo: Thanks.. [21:00] ricedog has joined the channel [21:01] ramitos has joined the channel [21:02] ricedog: Hi all .. i'm a bit new around here.. i've run into something that I can't figure out if it's a bug or just my code [21:03] jocafa: is there a *good* way to use project-specific binaries for node and npm? [21:04] ricedog: i'm getting 0 returned on parseInt(08) and parseInt(09) [21:04] ricedog: all other ints seem to work fine.. [21:05] maxogden: .. parseInt(08) [21:05] catb0t: 8 [21:05] CIA-102: node: 03Maciej Małecki 07master * rc6c6f98 10/ (lib/child_process.js lib/cluster.js lib/util.js): [21:05] CIA-102: node: util: add `util._extend` for extending objects [21:05] CIA-102: node: There were 2 duplicates with such functionality in `cluster` and [21:05] CIA-102: node: `child_process` modules which were replaced by this function. - http://git.io/NQW8Iw [21:05] CIA-102: node: 03Maciej Małecki 07master * rda90836 10/ (lib/http.js lib/https.js lib/tls.js): tls http https: don't pollute user's `options` object - http://git.io/qr2hhA [21:05] AvianFlu: .. parseInt(08, 8) [21:05] catb0t: NaN [21:05] maxogden: .. parseInt(09) [21:05] catb0t: 9 [21:05] mAritz has joined the channel [21:05] CrisO has joined the channel [21:06] CrisO has left the channel [21:06] ricedog: the code works in firebug, or seems to, it's in node v0.6.10 [21:06] maxogden: .. process.version [21:06] catb0t: Exception: ReferenceError: process is not defined [21:06] maxogden: :( [21:07] dreamdust has joined the channel [21:07] ningu: .. __dirname [21:07] catb0t: Exception: ReferenceError: __dirname is not defined [21:07] jerkelens has joined the channel [21:07] ningu: .. document [21:07] catb0t: Exception: ReferenceError: document is not defined [21:07] maxogden: ricedog: parseInt(08) works for me on node 0.6.7 and catb0t [21:07] catb0t: parseInt08 ricedog [21:07] maxogden: catb0t: wat [21:07] catb0t: wat , did v8bot [21:07] lduros has left the channel [21:08] piscisaureus_ has joined the channel [21:08] ricedog: ok thanks, i'm going to keep digging, i'm getting some weird behaviour [21:08] ningu: .. null+'' [21:08] catb0t: "null" [21:08] ningu: I had that happen to me earlier [21:08] harthur has joined the channel [21:09] ricedog: http://www.go4expert.com/forums/showthread.php?t=857 oh .. [21:10] maxogden: .. parseInt("08") [21:10] catb0t: 0 [21:10] ricedog: ok, you're right, i have to force parseInt to base 10 or it'll treat the leading 0 as octal [21:10] ningu: weird [21:10] maxogden: thats dumb [21:10] eeemsi_: .. var greeting='/hello'; greeting.substr(1); [21:10] catb0t: "hello" [21:11] ningu: .. parseInt("0xa") [21:11] catb0t: 10 [21:11] ningu: .. parseInt("007") [21:11] catb0t: 7 [21:11] ningu: .. parseInt("07") [21:11] catb0t: 7 [21:11] ricedog: :) at least I wasn't going crazy [21:11] ningu: .. parseInt("010") [21:11] catb0t: 8 [21:11] ningu: hrm [21:11] simenbrekken has joined the channel [21:11] ningu: .. parseInt("0010") [21:11] catb0t: 8 [21:12] Revernd has joined the channel [21:12] boltR has joined the channel [21:12] eeemsi_: .. var greeting='/hello'; JSON.stringify(greeting.substr(1)); [21:12] catb0t: ""hello"" [21:12] tuhoojabotti: ningu: don't forget to give the radix [21:13] ningu: tuhoojabotti: I know, I'm just seeing what it does without [21:13] tuhoojabotti: magicks! [21:14] ningu: .. parseInt("0.7") [21:14] catb0t: 0 [21:14] ningu: .. parseInt(".7") [21:14] catb0t: NaN [21:15] CIA-102: node: 03Nathan Rajlich 07master * r19133ca 10/ configure : [21:15] CIA-102: node: build: better host_arch() definition in configure [21:15] CIA-102: node: On one of my OS X Lion machines, it always reports i386, even though 64-bit [21:15] CIA-102: node: is supported. This lookup better matches how WAF determines the host arch, [21:15] CIA-102: node: which was correctly getting 64-bit even on this screwy machine. - http://git.io/f6Jatg [21:15] ricedog: thanks ningu, i was going in circles on this one, code is working again.. [21:15] ramitos has joined the channel [21:16] rumble-pack has joined the channel [21:16] rumble-pack: why doesnt node-inspector pause on the first line? [21:17] ricedog: according to w3schools (top google result) that leading 0 converting to octal is deprecated.. file as bug? [21:17] izepstan has joined the channel [21:18] gasbakid has joined the channel [21:19] ricedog: already been filed ages ago.. [21:19] maxogden: ricedog: just teach your users how to count in octal [21:20] tdegrunt has joined the channel [21:20] svnlto has joined the channel [21:20] ricedog: should be fine.. it's pulling it out of an ID with substr, .. which reminds me.. over 2 digits will break :( [21:21] Destos has joined the channel [21:21] gr4yscale has joined the channel [21:21] mcav` has joined the channel [21:22] vdemedes1: bye! [21:23] pandora17 has joined the channel [21:24] pgriess has joined the channel [21:26] cob has joined the channel [21:28] zackattack has joined the channel [21:28] AndreasMadsen has joined the channel [21:28] traph has joined the channel [21:28] EhevuTov: .. typeof ("string"+3) [21:28] catb0t: "string" [21:28] EhevuTov: .. typeof "string"+3 [21:28] catb0t: "string3" [21:29] ningu: .. typeof null [21:29] catb0t: "object" [21:29] ningu: .. null.foo = 10 [21:29] catb0t: Exception: TypeError: Cannot set property 'foo' of null [21:29] eeemsi_: .. [] + [] [21:29] catb0t: "" [21:29] eeemsi_: i realy like that one [21:29] eeemsi_: ^^ [21:29] ningu: .. [] ^ [] [21:29] catb0t: 0 [21:30] EhevuTov: ningu, my fu has increased [21:30] ningu: .. undefined = 10; undefined + 3 [21:30] catb0t: NaN [21:30] ningu: hmm [21:30] m00p has joined the channel [21:30] ningu: I read somewhere that you can redefine undefined [21:31] Bonuspunkt: .. new Array(16).join('1' - 1) [21:31] catb0t: "000000000000000" [21:31] mcav has joined the channel [21:31] Bonuspunkt: .. new Array(16).join('a' - 1) [21:31] catb0t: "NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN" [21:31] ningu: hey hey hey [21:31] ningu: good night [21:31] EhevuTov: ningu, could you explain the ones you did with the empty arrays? [21:31] ningu: EhevuTov: 0 XOR 0 I assume [21:31] ningu: er, wait [21:31] ningu: that would be 1 [21:31] svnlto has joined the channel [21:31] ningu: .. [] | [] [21:31] catb0t: 0 [21:31] EhevuTov: it's an addition and then a power, right? [21:32] ningu: .. 0 ^ 0 [21:32] catb0t: 0 [21:32] ningu: is ^ a power in js? I thought it was xor [21:32] EhevuTov: I'm not sure [21:32] ningu: .. 2 ^ 1 [21:32] catb0t: 3 [21:32] ningu: nah, xor [21:32] c4milo has joined the channel [21:32] EhevuTov: that explains it, thanks [21:32] tellnes has joined the channel [21:33] ningu: .. 3 ^ 1 [21:33] catb0t: 2 [21:33] EhevuTov: gotta use Math.power or something [21:33] ningu: but I'm still not sure why [] ^ [] comes out as 0 [21:33] EhevuTov: yeah, I'm not sure [21:33] Bonuspunkt: .. 1 ^ 1 [21:33] catb0t: 0 [21:33] ningu: oh, cause 0 ^ 0 = 0, duh... it's 1 ^ 1 that = 0 [21:33] ningu: brain stopped momentarily there [21:34] ningu: .. null | undefined [21:34] catb0t: 0 [21:34] AndreasMadsen: .. [] == ![] [21:34] catb0t: true [21:34] ningu: .. Object | Array [21:34] catb0t: 0 [21:34] rauchg has joined the channel [21:35] ningu: .. null == undefined [21:35] catb0t: true [21:35] ningu: .. null === undefined [21:35] catb0t: false [21:35] tricon_ has joined the channel [21:35] djazz1 has left the channel [21:35] EhevuTov: now that's one I can understand :-) [21:35] chuck_daniel has joined the channel [21:35] ningu: .. [] == [] [21:35] catb0t: false [21:36] chuck_daniel has left the channel [21:36] ningu: AndreasMadsen: care to elaborate? :P [21:36] c4milo has joined the channel [21:36] AndreasMadsen: ningu: yes [21:36] eeemsi_: .. console.log(greeting) [21:36] catb0t: Exception: ReferenceError: console is not defined [21:36] AndreasMadsen: when using == .toString() is used on both sides [21:36] AndreasMadsen: [].toString() is equal to [].join() [21:36] AndreasMadsen: and [].join() is equal to '' [21:37] ningu: ok, but if it's used on both sides... [21:37] AndreasMadsen: now an empty string is a falsy value [21:37] bnoordhuis: .. delete ReferenceError; ReferenceError [21:37] catb0t: Exception: ReferenceError: ReferenceError is not defined [21:37] bnoordhuis: ^_^ [21:37] EhevuTov: do I need to read the ECMA specs to find all these intricacies [21:37] AndreasMadsen: and an array is a true value [21:37] AndreasMadsen: so when doing ![] it gets false [21:37] h4mz1d has joined the channel [21:37] AndreasMadsen: and then you have it. [21:37] eeemsi_: .. [] [21:37] catb0t: [ ] [21:37] AndreasMadsen: .. ([]).toString() [21:37] catb0t: "" [21:37] ningu: AndreasMadsen: but why doesn't [] == [] also return true? [21:38] AndreasMadsen: .. [] == [] [21:38] catb0t: false [21:38] EhevuTov: .. ([]) == ([]) [21:38] catb0t: false [21:38] AndreasMadsen: ningu: because it isn't the same object [21:38] bnoordhuis: ningu: arrays are objects and objects only have identity equality [21:38] AndreasMadsen: .. var a = []; a == a; [21:38] catb0t: true [21:38] ningu: ah, ok [21:39] ningu: .. Array instanceof Object [21:39] catb0t: true [21:39] AndreasMadsen: ningu: I belive, I'm accturlly not sure [21:39] ningu: .. Number instanceof Object [21:39] catb0t: true [21:39] bnoordhuis: AndreasMadsen: no, you're right [21:39] ningu: is anything not an Object? [21:39] AndreasMadsen: bnoordhuis: ahh, thanks [21:39] bnoordhuis: ningu: primitives are... here it gets tricky [21:39] ningu: I thought Number and String were not objects [21:40] EhevuTov: primitives are objects?! [21:40] isaacs has joined the channel [21:40] bnoordhuis: ningu: raw numbers and strings are unboxed, primitive, not an object [21:40] maxogden: http://nodeguide.com/style.html#equality-operator [21:40] bnoordhuis: ningu: but they can be coerced into their object equivalent, e.g. String and Number [21:40] ningu: I see [21:40] ningu: var foo = 5; foo instanceof Object [21:40] bnoordhuis: it's a little counterintuitive [21:40] ningu: .. var foo = 5; foo instanceof Object [21:40] catb0t: false [21:41] AndreasMadsen: .. var a = new Boolean(true); a.foo = false; print(a); print(a.foo). [21:41] catb0t: Exception: SyntaxError: Unexpected end of input [21:41] AndreasMadsen: .. var a = new Boolean(true); a.foo = false; print(a); print(a.foo); [21:41] catb0t: { true foo: false }; false [21:41] AndreasMadsen: live Boolean constructor [21:41] AndreasMadsen: *love [21:41] socketio\test\06 has joined the channel [21:41] EhevuTov: don't we have to be careful with some things if carb0t uses eval() ? [21:41] mmalecki: he doesn't [21:41] ningu: I like this one [21:41] rauchg: socketio\test\06 i know whatcha doing [21:41] ningu: .. var foo = [1,2,3]; delete foo[2]; foo.length [21:41] catb0t: 3 [21:41] AndreasMadsen: .. "use string"; print(this); [21:41] catb0t: { [object global] } [21:42] AndreasMadsen: .. "use strict"; print(this); [21:42] catb0t: { [object global] } [21:42] mmalecki: he does some crazy spidermonkey stuff [21:42] maxogden: .. var foo = [1,2,3]; delete foo[2]; foo [21:42] catb0t: [ 1, 2 ] [21:42] ningu: .. var foo = [1,2,3]; foo.splice(2,1); foo.length [21:42] catb0t: 2 [21:42] WTHpr0 has joined the channel [21:42] AndreasMadsen: I don't think he use eval [21:42] ningu: .. var foo = [1,2,3]; delete foo[2]; foo[2] [21:42] catb0t: [21:42] AndreasMadsen: .. var foo = [1,2,3]; delete foo[2]; print(foo[2]) [21:42] catb0t: undefined [21:42] maxogden: .. var foo = [1,2,3]; delete foo[2]; JSON.stringify(foo) [21:42] catb0t: "[1,2,null]" [21:42] AndreasMadsen: .. this [21:42] catb0t: { [object global] } [21:42] maxogden: muaha [21:43] AndreasMadsen: .. print(this) [21:43] catb0t: { [object global] } [21:43] ningu: as far as I know, the spec says delete foo[2] should work [21:43] AndreasMadsen: .. Object.keys(this) [21:43] catb0t: [ "print", "greeting", "a", "foo" ] [21:43] ningu: but it appears only to work as expected on collections, not arrays [21:43] maxogden: ningu: [1,2,null] [21:43] AndreasMadsen: ^^ there you go [21:43] bradleymeck has joined the channel [21:43] ningu: .. var foo = [1,2,3]; delete foo[2]; foo[2] == null [21:43] catb0t: true [21:43] ningu: .. var foo = [1,2,3]; delete foo[2]; foo[2] === null [21:43] catb0t: false [21:43] bnoordhuis: ningu: no, it works - what you're seeing is the expected behavior [21:43] EvRide has joined the channel [21:43] ningu: bnoordhuis: then the gecko dom reference is unclear [21:43] ningu: not the spec, I realize ;P [21:44] hotchkiss has joined the channel [21:44] bnoordhuis: .. var a = [1,2,3]; delete a[1]; a [21:44] catb0t: [ 1, 3 ] [21:44] bnoordhuis: ningu: ^ [21:44] bnoordhuis: oh, catb0t pretty-prints it [21:44] catb0t: prettyprints oh [21:44] ningu: .. var a = [1,2,3]; delete a[1]; a[1] [21:44] catb0t: [21:44] bnoordhuis: what you end up with is this -> [ 1, , 3 ] [21:44] maxogden: .. var foo = [1,2,3]; delete foo[2]; JSON.stringify(foo) [21:44] catb0t: "[1,2,null]" [21:44] ningu: yeah, it's gone [21:44] ningu: is "nothing" different from null? [21:45] izepstan has joined the channel [21:45] ningu: .. var a = [1,2,3]; a[1] = null; a [21:45] catb0t: [ 1, null, 3 ] [21:45] bnoordhuis: ningu: yes, undefined !== null [21:45] bnoordhuis: oh, fun fact [21:45] ningu: so why does JSON.stringify give null? [21:45] bnoordhuis: .. undefined = null; undefined === null [21:45] catb0t: false [21:45] attila has joined the channel [21:45] nicholasf has joined the channel [21:45] bnoordhuis: maybe catb0t works in strict mode... [21:45] catb0t: strict mode, yeah maybe [21:45] maxogden: lol [21:45] ningu: .. var a = [1,2,3]; delete a[1]; a[1] === undefined [21:45] catb0t: true [21:46] cjroebuck has joined the channel [21:46] ningu: ok, so it really is just undefined [21:46] ningu: erm, above I meant gecko js reference [21:46] ningu: https://developer.mozilla.org/en/JavaScript/Reference/Operators/delete [21:46] gr4yscal_ has joined the channel [21:46] Nietecht has left the channel [21:47] AndreasMadsen: night, but thought I should go offline with this: [21:47] AndreasMadsen: .. (![]+[])[+[]]+(![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]] [21:47] catb0t: "fail" [21:47] EhevuTov: that one would work differently in an eval() right? [21:47] maxogden: AndreasMadsen: lol [21:47] ningu: doh. I must not have read down far enough on array elements. [21:47] tonist_ has joined the channel [21:47] ningu: I just refuted myself ;) [21:47] blup has joined the channel [21:48] ningu: but it's really odd... it removes it from the array but changes no indexes [21:48] ningu: it's *not* undefined [21:49] ningu: and yet apparently it === undefined [21:49] ningu: .. var a = [1,2,3]; delete a[1]; 1 in a [21:49] catb0t: false [21:50] ningu: .. var a = [1,2,3]; a[1] = undefined; 1 in a [21:50] catb0t: true [21:50] EhevuTov: it still exists, just not set [21:50] bnoordhuis: ningu: use .splice() if you want to really remove an element [21:50] EhevuTov: oh way... [21:50] bnoordhuis: .. var a = [1,2,3]; a.splice(1,1); a [21:50] catb0t: [ 1, 3 ] [21:50] bnoordhuis: .. var a = [1,2,3]; a.splice(1,1); a.length [21:50] catb0t: 2 [21:50] ningu: bnoordhuis: I know [21:51] ningu: I'm just trying to understand the semantics of delete [21:51] ningu: I had a splice example above [21:51] bnoordhuis: there is no logic to it [21:51] tuhoojabotti: ningu: You can also play in the repl, or query catb0t. :) [21:51] catb0t: ningu with a large amount of work went into the npm fold, or crush him as well [21:51] ningu: I know [21:51] zarex has joined the channel [21:51] tuhoojabotti: Yes. [21:51] EhevuTov: don't play with delete in REPL, right? [21:52] ningu: I just thought I'd provide some benefit/entertainment/annoyance to others [21:52] ningu: I've been doing things in the repl as well [21:52] tuhoojabotti: ningu: Yes, quite. That's an honest goal. [21:54] EhevuTov: ningu, I've ran into issues with delete with an REPL [21:54] crodas has joined the channel [21:54] EhevuTov: ningu, this is what I'm referring to: http://stackoverflow.com/questions/7624250/why-is-my-deleted-function-not-typeof-undefined-in-node-js [21:54] fbartho has joined the channel [21:55] joshgillies has joined the channel [21:55] kitt has joined the channel [21:55] kitt has joined the channel [21:55] devaholic has joined the channel [21:57] woodzee has left the channel [21:57] samuelgoodwin has joined the channel [21:58] ningu: well, yeah, it's not meant to delete functions [21:58] dve has joined the channel [21:59] EhevuTov: the difference was because I wasn't using a REPL and the tutorial I was learning from _was_ using an REPL. It threw me off [21:59] konobi: sugyan: ping [22:00] hipsterslapfight has joined the channel [22:00] c4milo has joined the channel [22:05] joshgillies has joined the channel [22:05] Tijmencc has joined the channel [22:05] svnlto has left the channel [22:06] andrehjr_ has joined the channel [22:06] piscisaureus_ has joined the channel [22:07] simoon has joined the channel [22:07] cjroebuc_ has joined the channel [22:09] cjroebuc_ has joined the channel [22:10] Skaag has joined the channel [22:12] Skaag has joined the channel [22:12] cjroebuck has joined the channel [22:13] rumble-pack: there is a server example on the node.js front page that echoes what i send it but how do i send it data? [22:13] Phoenixz has joined the channel [22:13] enmand has joined the channel [22:13] slickplaid: you've got to find the address and place a stamp on the envelope [22:13] thinkt4nk has joined the channel [22:13] slickplaid: then a postal worker will come by and pick it up to have it delivered [22:14] slickplaid: expect a response in 4-12 weeks [22:14] Phoenixz: Anybody here with experience using node deamon? I do daemon.start(fd); and right away, I see nothing on the console anymore (as probably should be) but I dont see a pid file, I dont see any log output as well.. What might be wrong, or how could I debug this? [22:15] cjroebuc_ has joined the channel [22:15] ricedog: what os you running? i had to figure this out yesterday [22:16] ricedog: i'm running ubuntu on AWS . this was really helpful http://howtonode.org/deploying-node-upstart-monit [22:16] jaw187: Phoenixz: I use forever and it will log output to a file which you can identify with forever list [22:16] simenbrekken has joined the channel [22:16] RobWC has joined the channel [22:16] RobWC has left the channel [22:16] xtianw has joined the channel [22:17] xtianw has joined the channel [22:17] cjroebuc_ has joined the channel [22:18] EhevuTov: rumble-pack, run the program in node and in another window run 'telnet 127.0.0.1 1337' [22:18] EhevuTov: rumble-pack, then start typing and hit enter [22:18] rumble-pack: ok [22:18] sdwrage has joined the channel [22:18] c4milo has joined the channel [22:18] cesconix has joined the channel [22:20] dve has joined the channel [22:21] pokoli has joined the channel [22:21] al3xnull has joined the channel [22:24] rumble-pack has joined the channel [22:24] EhevuTov: rumble-pack, did it work? [22:24] redir has joined the channel [22:24] idefine has joined the channel [22:25] rumble-pack: EhevuTov, telnet isnt setup on this machine yet [22:25] rumble-pack: but thats a quick thing for me [22:26] Phoenixz: jaw187: forever also can daemonize? [22:26] khrome has joined the channel [22:28] Phoenixz: jaw187: forever also can daemonize? [22:28] jaw187: phoenixz: forever runs as a deamon [22:29] jaw187: i guess it doesn't actually deamonize your node processes [22:29] jaw187: https://github.com/nodejitsu/forever [22:29] Wizek-other has joined the channel [22:29] mmalecki: caolanm: hey, I'm refactoring async tests because adding a new test is a real pain atm, is there any reason why it says 'x*5' instead of 'x*25' here? https://github.com/caolan/async/blob/master/test/test-async.js#L547 [22:29] Axsuul has joined the channel [22:30] Axsuul has joined the channel [22:30] dshaw_ has joined the channel [22:30] maletor has joined the channel [22:30] richardr has joined the channel [22:30] AD7six has joined the channel [22:30] RobWC1 has joined the channel [22:30] RobWC1 has left the channel [22:30] r1ngzer0_ has joined the channel [22:31] michaelhartau has joined the channel [22:31] caolanm: mmalecki: not sure why, but that value is generally what you can get away with in IE6 [22:31] qbit_: anyone have any recommendations for documenation stuff? ( like beautiful-docs ) [22:31] caolanm: it's not important if it's 5 or 25 other than IE taking longer than the interval to process it [22:32] mmalecki: caolanm: ah, I see [22:32] hij1nx has joined the channel [22:32] caolanm: mmalecki: if IE fails, first thing to do is increase the timeouts ;) [22:32] caolanm: mmalecki: would be nice if we *just* did that for IE I guess, then tests would run faster from the command-line [22:32] mmalecki: caolanm: oh wait, you need tests to work in IE6? [22:33] caolanm: mmalecki: you bet [22:33] caolanm: mmalecki: have fun testing :D [22:33] mmalecki: caolanm: damn :/. does IE6 have .bind? [22:34] caolanm: I doubt it [22:34] mmalecki: oh well, fuck [22:34] Blutterbob has joined the channel [22:34] caolanm: mmalecki: you can probably re-implement [22:34] caolanm: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind [22:34] mmalecki: caolanm: yeah, I'll [22:35] tilgovi has joined the channel [22:35] Phoenixz has joined the channel [22:35] Phoenixz: jaw187: Ah, so forever is just more like a separate process that will just make sure that your node process keeps running? [22:36] joshwines has joined the channel [22:36] joshsmith has joined the channel [22:37] jaw187: Phoenixz: yeah, I think LearnBoost just released something similar....but forever does what I need it to do [22:37] nickdc has joined the channel [22:38] salva has joined the channel [22:38] jaw187: nevermind, Up by LearnBoost is a module to reload an application without downtime [22:39] nickdc: will forever restart my application if I modify it (when I'm uploading changes to my app.js file)? [22:39] jaw187: no, but you can restart it throgh forever [22:40] Danielss89 has joined the channel [22:40] nickdc: ok, I have used a module before that restarts the server if a the file is modified, is there anything like that for forever or that can be used in conjunction? [22:40] mmalecki: there's `forever -w start app.js`, it'll do that [22:41] jaw187: ah, nice malecki [22:41] nickdc: ahh -w eh? lets see what that command does [22:42] overthemike has left the channel [22:42] whaley has joined the channel [22:43] nickdc: not sure what the -w command does, but it doesn't run it as a separate process it seems [22:44] mmalecki: nickdc: it watches a file [22:44] mmalecki: directory, to be precise [22:44] catshirt has joined the channel [22:44] mmalecki: at least it should... [22:44] kickingvegas has joined the channel [22:46] nickdc: Ok, but in doing -w I get a "warn: could not read .foreverignore file." and it seems to be run in the terminal (not as a separate process) any way around that? [22:46] jhurliman has joined the channel [22:46] jaw187: read the docs [22:46] jaw187: :) [22:46] wingie has joined the channel [22:47] artusrocha has joined the channel [22:47] jaw187: actually, i guess it doesn't explain that [22:47] mmalecki: nickdc: try `forever start -w file.js` [22:48] mmalecki: if it doesn't work either, I can start shooting people or something [22:48] Phoenixz: jaw187: could you give me a url from learnboost? there are various node projects with that name.. [22:50] nickdc: dang that didn't seem to work either [22:50] jaw187: https://github.com/learnboost/up [22:50] brianleroux has joined the channel [22:50] attilagyorffy has joined the channel [22:50] nickdc: what does the -s do? [22:50] pastak has joined the channel [22:50] nickdc: that didn't help :) [22:51] igl1 has joined the channel [22:51] Phoenixz: jaw187: forever actually starts the process using daemon node.. simplifies things greatly.. [22:51] mmalecki: nickdc: can you try `forever --watch start app.js`? [22:52] looopy has joined the channel [22:52] nickdc: I actually just tried that same result [22:52] nickdc: I wonder if there is more to that warning than meets the eye [22:52] Phoenixz: jaw187: and with that in mind, the learnboost cluster library ought to do the same, but gives you cluster options.. interresting.. [22:53] mmalecki: nickdc: that warning means that it works [22:53] nickdc: oh weird. I wonder why it would be doing this then. [22:53] eukreign has joined the channel [22:53] take_cheeze has joined the channel [22:53] eukreign has left the channel [22:53] mmalecki: nickdc: it can't find file with definitions for ignoring changes [22:54] mmalecki: nickdc: I wrote this part of forever btw [22:54] ashishg has joined the channel [22:54] nickdc: oh nice [22:54] ashishg has joined the channel [22:55] lz has joined the channel [22:55] bmf90 has joined the channel [22:55] nickdc: It's honestly not too big of a deal to restart the service, but would be convenient if it worked :) [22:55] ajsie has joined the channel [22:55] mmalecki: nickdc: I mean, it doesn't go into background for you? [22:55] ajsie has left the channel [22:56] nickdc: not when using the -w command no [22:56] mmalecki: nickdc: damn, you're right :/ [22:56] brianleroux has joined the channel [22:56] nickdc: sad day :( [22:56] ajsie has joined the channel [22:57] mmalecki: nickdc: I'll try to debug it later [22:57] mmalecki: nickdc: pretty sure it's a bug in CLI arguments parsing [22:57] nickdc: sure that's great, what's a good way to keep track of that? to see if it has been updated? [22:58] mmalecki: nickdc: forever repo [22:58] nickdc: k [22:58] Phoenixz: Does anybody know if learnboost cluster also deamonizes each child process? I suppose it does.. [22:58] Danielss89 has joined the channel [22:58] nickdc: thanks [22:58] disappearedng: Hey how come nodeunit doesn't adhere to setTimeout? [22:59] bmf90_ has joined the channel [22:59] attilagyorffy: hi [22:59] attilagyorffy: anyone with vows experience here and could potentially help me please? [22:59] attilagyorffy: i'm having issues when trying to test instances of a module [23:00] mmalecki: attilagyorffy: I know vows a bit. can you gist it? [23:01] jaw187: phoenixz: i have no experience with Up [23:01] attilagyorffy: https://gist.github.com/b982fd969e44031138e2 [23:01] attilagyorffy: mmalecki: ^^ [23:01] attilagyorffy: the gist should have my module, the vows test and the output too [23:02] attilagyorffy: the issue occurs when i am trying to assert.instanceOf [23:02] attilagyorffy: assert.instanceOf(record, User); [23:02] attilagyorffy: (line #13 in the output) [23:03] andrehjr has joined the channel [23:03] mmalecki: attilagyorffy: yeah, looking [23:03] attilagyorffy: mmalecki: thank you [23:04] attilagyorffy: been scratching the top of my head lately, i am just not getting the problem there [23:04] mmalecki: attilagyorffy: because User is not instanceof User [23:05] mmalecki: attilagyorffy: ah, wait, I derped [23:06] blueadept has joined the channel [23:06] blueadept has joined the channel [23:06] mmalecki: attilagyorffy: hm. you're not exporting User class anywhere [23:07] mmalecki: so User is just an object with 'find' and 'find_by_name' methods [23:07] attilagyorffy: oh i think i know what you mean there [23:07] attilagyorffy: let me have a try [23:07] attilagyorffy: so essentially i am going to export User as a whole, right? [23:07] attilagyorffy: rather than just its methods as an object [23:08] mmalecki: attilagyorffy: yeah, and then do User.find = function () ... [23:08] attilagyorffy: great [23:08] attilagyorffy: thank you [23:08] attilagyorffy: let me have a go [23:08] mmalecki: attilagyorffy: :) [23:10] dunder-mifflin has joined the channel [23:10] jaha has joined the channel [23:11] jiboumans_ has joined the channel [23:11] ajackbot has joined the channel [23:12] overthemike has joined the channel [23:12] ds206 has joined the channel [23:13] deluded has joined the channel [23:14] rumble-pack: has anyone here worked with node.io? [23:15] attilagyorffy: mmalecki: so now if i am exporting the whole user object then theoretically i shouldn't need to change my test case. is that correct? [23:15] ryan1 has joined the channel [23:15] pizthewiz has joined the channel [23:16] int3__ has joined the channel [23:16] deluded: anyone have experience with doing async REST-ful services with Node and using a pubsub queue like Redis pubsub? mixing up some node and PHP back-end services [23:17] jldbasa has joined the channel [23:17] redir has joined the channel [23:17] attilagyorffy: mmalecki: https://gist.github.com/40a8ff8e135cf8f946f7 [23:18] ullmark has joined the channel [23:19] mmalecki: attilagyorffy: sec, looking [23:19] attilagyorffy: thank you [23:19] kickingvegas has joined the channel [23:22] mmalecki: friggin vows [23:22] mmalecki: so for some reason vows thinks that your test is asynchronous [23:22] attilagyorffy: tell me about it :) [23:23] AviMarcus has joined the channel [23:23] dshaw_ has joined the channel [23:23] ningu: does anyone know of any libraries for generating sort comparison functions? [23:23] mmalecki: attilagyorffy: tell *me* about it [23:23] ningu: I'm thinking e.g. of sorting by obj.foo, then obj.bar, then obj.baz... [23:23] ningu: I can write my own, but maybe someone has already made it easy. [23:23] mmalecki: attilagyorffy: I'm the maintainer [23:24] attilagyorffy: are you? [23:24] mmalecki: yeah [23:24] mmalecki: so, it might be a bug [23:24] criswell has joined the channel [23:27] seanbeausoleil has joined the channel [23:27] seanbeausoleil has left the channel [23:27] mmalecki: attilagyorffy: can you make this `topic.find` calls a topic? [23:27] dunder-mifflin: is there any node modules for data processing? i.e. to process 1 million objects in a json file, i want to run N number of workers in parallel, apply a custom function to each object being processed, all from command line [23:28] mmalecki: attilagyorffy: I'll fork and show you [23:28] attilagyorffy: mmalecki: let me have a look, 1 sec [23:28] attilagyorffy: great! [23:28] dunder-mifflin: with progress monitoring and reporting [23:28] attilagyorffy: thanks [23:29] overthemike has left the channel [23:29] dshaw_ has joined the channel [23:30] mmalecki: attilagyorffy: something like what I've done with 'lol' https://gist.github.com/13489bc7fd085c3151d4 [23:30] geetarista has joined the channel [23:30] mmalecki: I really have to think of a better way to implement it [23:31] huggies has joined the channel [23:32] mraleph has joined the channel [23:32] maletor has joined the channel [23:33] kalms has joined the channel [23:33] attilagyorffy: mmalecki: still getting `Errored » callback not fired` issues [23:33] hij1nx has joined the channel [23:33] gkatsev has joined the channel [23:33] mmalecki: attilagyorffy: can you show me how the code looks like now? [23:34] attilagyorffy: sure thing, 1 sec [23:35] jaw187 has left the channel [23:35] eukreign has joined the channel [23:36] eukreign: i want to use objects as a key in {}, is there an easy way to generate some unique string representing an object? on the same subject, what are the pitfalls of just using the object as the key directly, would that even work? [23:37] attilagyorffy: mmalecki: https://gist.github.com/b982fd969e44031138e2 [23:37] eukreign: var foo = {}; var bar = {}; var dict = {}; dict[foo] = 1; dict[bar] = 2; <-- something like this [23:37] broofa has joined the channel [23:37] subbyyy has joined the channel [23:37] attilagyorffy: mmalecki: hang on, i messed up something there [23:38] attilagyorffy: mmalecki: ok, look at the gist url now [23:39] Phoenixz: I currently have a configurable route management with node and express using http://pastebin.com/EvNsLe6d but I would like to know what I can do to catch 404s , when people try to access an URL that doesn;'t exist.. I would like to send a redirect to the correct page (since there are no other URLs).. How would I go about that? [23:39] attilagyorffy: updated: https://gist.github.com/b982fd969e44031138e2 [23:39] joshkehn has joined the channel [23:39] mc: anyone in here worked out a solution for running multiple versions of node for multiple projects on the same server? [23:39] joshkehn has left the channel [23:40] xaq has joined the channel [23:40] davv3 has joined the channel [23:41] mmalecki: mc: haibu [23:42] brianleroux has joined the channel [23:42] mc: yeah? i hadn't looked into it too deeply yet [23:42] mmalecki: mc: yeah. it can run different apps under different versions and deploys are easy as hell [23:43] mc: i'll have to do some reading for sure. thanks for the tip [23:43] mmalecki: attilagyorffy: can you try calling this.callback() after each function except topic there? [23:46] boltR has joined the channel [23:46] skm has joined the channel [23:46] disappearedng: Hey is there anyway to do setTimeout in nodeunit? [23:48] davv3 has joined the channel [23:48] jimbot has joined the channel [23:49] tmcw has joined the channel [23:50] maletor has joined the channel [23:50] kirbysayshi has joined the channel [23:51] rumble-pack: does anyone know how to create a window object in node.io? [23:52] Poetro has joined the channel [23:54] jarek has joined the channel [23:54] jarek has joined the channel [23:54] copongcopong has joined the channel [23:56] salva has left the channel [23:56] counterbeing has joined the channel [23:56] disappearedng: I don't know whether console.log is not reliable or it's the way I am testing that is breaking this http://stackoverflow.com/questions/9370231/nodeunit-execution-order [23:57] davv3 has joined the channel [23:58] insin: how many Node.js CoffeeScript web frameworks based on Ruby on Rails are there now? Losing count here [23:58] deluded has joined the channel [23:59] izepstan has joined the channel [23:59] Skaag_ has joined the channel [23:59] teslan has joined the channel