[00:01] bartt has joined the channel [00:01] bartt has joined the channel [00:03] astropirate has joined the channel [00:06] Fodi69 has joined the channel [00:06] Fodi69 has left the channel [00:07] nicholasf has joined the channel [00:07] alejandromg: OK! I'm trying to install a module inside a dir without a package.json => "npm install packagename ." [00:07] alejandromg: but it's throwing me an error that there is no package.json [00:08] alejandromg: how can I force the installation process to install the module inside the idr [00:08] alejandromg: *dir [00:08] WarheadsSE has joined the channel [00:08] dilvie has joined the channel [00:10] Aria has joined the channel [00:11] josh-k has joined the channel [00:12] skm has joined the channel [00:13] westg: anyone know if there is a size limit on the collection size? [00:13] Juske has joined the channel [00:13] Juske has left the channel [00:14] patcito_ has joined the channel [00:15] isaacs has joined the channel [00:16] joshthecoder has joined the channel [00:19] WarheadsSE: *collection ? [00:19] deoxxa: westg: are you talking about mongodb? if so, #mongodb is over there -> [00:20] malkomalko has joined the channel [00:22] innoying has joined the channel [00:23] nickdc has joined the channel [00:24] nickdc: Can I connect to a socket.io server via telnet on the command line? I can connect to the port, but it doesn't seem like the server responds at all. [00:24] thinkt4nk has joined the channel [00:25] nickdc has joined the channel [00:28] WarheadsSE: socket.io is not a"socket" in the normal sense [00:32] gozala has joined the channel [00:33] WarheadsSE: nickdc: [00:33] jryans has joined the channel [00:34] nickdc: So is there a certain format I can use to communicate with it? I assume that's what happens with a socket.io client connects to the port right? [00:34] porjo has joined the channel [00:36] markwubben has joined the channel [00:37] localhost has joined the channel [00:40] WarheadsSE: socket.io is a layer on top of http, and websockets [00:40] WarheadsSE: use a socket.io client [00:41] fmeyer has joined the channel [00:41] nickdc: ok that makes sense [00:43] WarheadsSE: node does have native socket support, if you want to go that route though [00:44] nickdc: it'll probably be easier to use the client with js [00:44] nickdc: rather than native sockets [00:46] WarheadsSE: Yeah, it depends on where you plan on putting the communication [00:46] WarheadsSE: If you're doing it from a web page, socket.io, obviously. [00:48] Druid_ has joined the channel [00:48] dberlinger has joined the channel [00:48] ramitos has joined the channel [00:49] nickdc: yea I was just hoping for a simple way to test a connection to socket.io for debugging. I can always create a simple js file to do that, but was being lazy :/ [00:49] agnat has joined the channel [00:50] skm has joined the channel [00:50] WarheadsSE: I'd say a client with an emit in the connection even handler. [00:51] deoxxa: don't count on socket.io-client actually working [00:51] deoxxa: at least not on anything past node 0.4.x [00:53] WarheadsSE: I've had no issues at all in 0.6.x [00:54] gde33 has joined the channel [00:54] innociv has joined the channel [00:55] deoxxa: https://github.com/LearnBoost/socket.io-client/issues/290 << reported by me, months ago [00:56] deoxxa: https://github.com/LearnBoost/socket.io-client/issues/372 << same issue, months later [00:56] deoxxa: no response on my bug either, it's still open [00:56] deoxxa: gg [00:56] threecreepio has joined the channel [00:58] enjalot has joined the channel [01:00] innociv has joined the channel [01:00] WarheadsSE: ACTION is reading [01:00] threecreepio has joined the channel [01:01] innociv_ has joined the channel [01:02] WarheadsSE: Ok, in yours, you were using an unstable breanch [01:02] WarheadsSE: I'd have to fire up a complete test case myself. [01:02] jacobolus has joined the channel [01:03] enmand has joined the channel [01:03] nickdc: I wonder if we should update ours [01:03] nickdc: I can't remember what version we are running [01:04] WarheadsSE: looks like its a deeper issue though [01:04] WarheadsSE: websocket.js [01:04] WarheadsSE: from node-websocket-client [01:05] disappea_: If I have k=[1, 2, 3] and then i want to call foo(a, b, c) such that a=1, b=2, c=3, how do I do so given just foo and k [01:06] deoxxa: https://gist.github.com/bb21537e3e17ce0f0e42 [01:06] deoxxa: ACTION taps WarheadsSE [01:07] deoxxa: doesn't matter any more, was just an example of bugs going completely ignored [01:07] deoxxa: because socket.io-client running under node apparently isn't a priority [01:08] demet8 has joined the channel [01:08] WarheadsSE: yeah, that happens in just about any project [01:10] ramitos has joined the channel [01:11] Joeysomo has joined the channel [01:12] markwubben has joined the channel [01:13] archivebot has joined the channel [01:13] WarheadsSE: worked. [01:13] WarheadsSE: heartbeats and everything [01:15] TheAlphaNerd: WarheadsSE: I managed to fix node-osc [01:15] TheAlphaNerd: and made it into an npm [01:15] TheAlphaNerd: had to rewrite the client [01:15] MartinCleaver has joined the channel [01:15] MartinCleaver has joined the channel [01:15] WarheadsSE: ACTION scratches head [01:16] TheAlphaNerd: we were talking about it a couple days ago [01:16] WarheadsSE: yeah [01:16] WarheadsSE: i've been medicated for a few days... [01:17] WarheadsSE: (bad back) [01:17] sh1mmer has joined the channel [01:18] TheAlphaNerd: hehe [01:18] TheAlphaNerd: all good [01:18] owen1: i am calling a function that make a callback call. i need to access 'this' within the callback, and i also need to pass argument to the callback. does it mean that i can't use the 'wrapping my callback with function technique?'? http://pastebin.com/yP4vaxuP [01:19] WarheadsSE: this being this in the callback or the callee [01:19] WarheadsSE: because the callee's this is not the callbacks this [01:19] WarheadsSE: (necessarily) [01:20] WarheadsSE: TheAlphaNerd: all the same, glad you got it sorted [01:20] TheAlphaNerd: hhehe [01:20] TheAlphaNerd: crazy 4 days [01:21] TheAlphaNerd: ended up finding another library that is tracked by npm called min-osc that I was able to use for the complicated stuff [01:21] WarheadsSE: :) I've done plenty of socket & message passing in many languages.. I know your pain [01:22] owen1: WarheadsSE: so version 1(passing this) is acceptable? [01:23] WarheadsSE: owen1: I didn't look at your example, I'm sorry. My Cr48 doesnt like copying from SSH to url box [01:26] UnCO has joined the channel [01:34] tekky has joined the channel [01:35] DijkstraGroupie has joined the channel [01:36] BombStrike: owen1, I think you want to do something like callback.call(user, 'hello') or callback.apply(user, ['hello']) [01:36] BombStrike: so that in the callback "this" is "user" [01:38] Authoritarianism has joined the channel [01:39] nickdc has left the channel [01:39] huggies has joined the channel [01:41] eugs51 has joined the channel [01:41] eugs51 has left the channel [01:41] eugs51 has joined the channel [01:43] jraffucci has joined the channel [01:43] owen1: BombStrike: interesting. thanks [01:44] Progster has joined the channel [01:46] tylerstalder has joined the channel [01:49] pig_ has joined the channel [01:52] Karmaon has joined the channel [01:52] khrome has joined the channel [01:52] jacobolu_ has joined the channel [01:56] tlack_ has joined the channel [01:58] skm has joined the channel [01:58] gkatsev: any ideas how I can debug an object with around 183000 properties? node-inspector isn't working really. [02:00] infynyxx has joined the channel [02:01] skm has joined the channel [02:02] socketio\test\65 has joined the channel [02:02] briancray has joined the channel [02:04] onar has joined the channel [02:05] dylang has joined the channel [02:05] kevinswiber has joined the channel [02:07] jryans_ has joined the channel [02:07] pendlepa1ts has joined the channel [02:09] timoxley has joined the channel [02:09] jesusabdullah: jesus [02:10] jesusabdullah: how did you get an object so big? [02:10] jesusabdullah: this sounds like something where context would matter [02:10] gkatsev: yeah [02:10] Gekz: I have a pretty big object. [02:10] gkatsev: I'm writing PageRank. [02:10] jesusabdullah: I'm guessing it's data? [02:10] gkatsev: yeah [02:10] jesusabdullah: I would come up with a good way to visualize your data [02:10] jesusabdullah: and then work from there [02:11] jesusabdullah: you're gonna want plots and/or summaries eventually [02:11] gkatsev: yeah, I already have it. and I know it works for small data (6 nodes as opposed to 183811 nodes) [02:11] gkatsev: but when I go for the big file, it dies on me [02:11] chjj has joined the channel [02:11] jesusabdullah: Try closer to 50 nodes [02:11] jesusabdullah: like, step it up by orders of 10 [02:11] jesusabdullah: roughly [02:12] jesusabdullah: instead of going all out first try [02:12] gkatsev: (by nodes, I mean, the number of properties on the object) [02:12] jesusabdullah: sure [02:12] k1ttty has joined the channel [02:12] jesusabdullah: 200k nodes is a lot [02:12] jesusabdullah: just sayin' [02:12] gkatsev: yeah [02:13] gkatsev: also, I figured out that doing for(p in obj) is much slowe than for(i=0; i twish" from the internet [03:22] jesusabdullah: BALEETED [03:22] meandi9 has joined the channel [03:24] skm has joined the channel [03:26] WarheadsSE: gkatsev: in this code, you're talking about the pageRank function? [03:26] rehanift has joined the channel [03:27] rehanift: If anyone is a moderator on the google group can they please approve my post? [03:28] SubStack: there's no moderation [03:28] SubStack: posts just take a few minutes to show up [03:28] rehanift: Its been about 6 hours? [03:28] SubStack: o_O [03:28] WarheadsSE: spam catch maybe ? [03:29] rehanift: Maybe ... it had 3 links in it [03:30] WarheadsSE: gkatsev: you tend to write pythonic code don't you [03:30] gkatsev: yeah, I guess [03:30] evilnate has joined the channel [03:30] WarheadsSE: i noticed by your non-use of ; [03:30] gkatsev: yeah, fuck semicolons [03:30] gkatsev: also, comma-first ftw! [03:31] SubStack: chrisdickinson: nice art [03:31] evilnate: gkatsev++ [03:31] gkatsev: WarheadsSE: also, yeah, the problem is inside the pageRank function. [03:32] SubStack: my style optimizes for ability to move blocks around by line and secondarily saving vertical space [03:32] WarheadsSE: @ while, or for loops? [03:32] gkatsev: basically the whole while loop [03:32] yaymukund: Anyone succeed getting mocks/spies working with mocha asynchronously? I'd like two tests to run asynchronously-- one calling the mocked function, the other calling the original version. [03:32] WarheadsSE: :) while loops can be fun.. yes.. [03:33] SubStack: yaymukund: that sounds like an amazing amount of work [03:33] gkatsev: WarheadsSE: but as I said above, this does work for smaller... objects [03:33] SubStack: I like to actually perform real IO in my tests [03:34] SubStack: mocks break too often since they aren't the same as the real IO you'll be doing in production [03:34] jesusabdullah: mocks are nice sometimes [03:35] evilnate has joined the channel [03:35] yaymukund: SubStack: ah, okay. I'll try that approach. jasmine seems to do it, but I don't like jasmine for other reasons. [03:35] WarheadsSE: gkatsev: how many have you tried this on, and succedded? [03:35] gkatsev: WarheadsSE: didn't really bother trying it with more than 26 :/ [03:35] jesusabdullah: nock's cool [03:35] WarheadsSE: ah [03:35] jesusabdullah: at any rate [03:36] SubStack: yaymukund: check out tap too https://github.com/isaacs/node-tap [03:36] SubStack: it's pretty great [03:37] SubStack: tests get to the point very quickly without many hoops to jump through [03:38] petschm_ has joined the channel [03:38] owen1: SubStack: when using node-tap, do i need additional packages for testing, or is tap can be used alone? [03:38] jesusabdullah: tap can be used alone [03:38] jesusabdullah: I'm a vows apologist tbhirlimo [03:38] jesusabdullah: but tap ain't bad [03:38] SubStack: owen1: with tap you can just execute the file [03:38] SubStack: like node yourtest.js [03:39] SubStack: and it just works™ [03:39] owen1: SubStack: sweet [03:39] yaymukund: ACTION reads [03:39] jesusabdullah: someday I'm going to be like, "bitch im in charge of vows now [03:39] SubStack: or you can use the tap cli tool to tap test/*.js or whatevs [03:39] jesusabdullah: " [03:39] jesusabdullah: and I'm gonna rewrite the shit out of it [03:39] spion has joined the channel [03:39] jesusabdullah: it still won't be the ideal for tap die-hards but it'll take some of the lessons [03:39] SubStack: jesusabdullah: rewrite it to module.exports = require('tap') [03:39] yaymukund: SubStack: that looks very interesting. I like letting node take care of the async stuff [03:40] jesusabdullah: SubStack: More like, you should be able to run a vows test without the vows test runner [03:40] jesusabdullah: SubStack: and nested levels of "topics" should Actually Work [03:40] SubStack: yaymukund: yep it's pretty great, you just t.end() when you want your test to be done [03:40] SubStack: or you can t.plan() the number of assertions which calls t.end() for you if you do that [03:40] jesusabdullah: also a few moire things [03:40] jesusabdullah: I don't actually like t.plan I'll be honest [03:40] gkatsev: dammit, twish already exists [03:41] jesusabdullah: your MOm already exists [03:41] gkatsev: she does [03:41] gkatsev: http://code.google.com/p/twish/ [03:41] jesusabdullah: glad we got that one settled [03:41] gkatsev: eh, newest commit is 2008 [03:41] SubStack: jesusabdullah: t.plan() lets you guard against the case where a callback never actually fires and your test passes incorrectly as a result [03:41] gkatsev: I think I'm safe [03:41] jesusabdullah: dangit I spilled stuff against myself [03:42] jesusabdullah: SubStack: I get that, I just don't like counting how many tests I have [03:42] SubStack: it also guards against the case where a callback might fire more times than you wanted it to [03:42] SubStack: or not enough times [03:42] jesusabdullah: like I get the point but that doesn't mean I have to like it u noe [03:42] SubStack: jesusabdullah: that's why it's optional [03:42] jesusabdullah: your MOM's optional [03:42] jesusabdullah: C: C: C: [03:43] tekky has joined the channel [03:43] chrisdickinson: SubStack: (belated) thanks [03:43] Aria: I swear half my commits at work are 'TICKET FOO: correct number of assertions" [03:44] rehanift has joined the channel [03:44] rehanift: @SubStack: I tried posting again to the Google Group and this is the message I got: http://dl.dropbox.com/u/20560910/Screenshots/nodejs-approval.png [03:45] joshontheweb has joined the channel [03:49] SubStack: odd maybe that is a new thing [03:50] WarheadsSE: gkatsev: should this only be running 8 times? [03:52] Vennril2 has joined the channel [03:52] derekv: ohhh now I supposed I have to actually have a database available in order to connect to successfully connect to database [03:52] derekv: doing things is hard. [03:53] tek has joined the channel [04:00] arlink: how can i auto indent jade files? [04:01] gkatsev: WarheadsSE: it should be running until the preplexity is 4 times the same. my friend had it run for about 59 times [04:03] WarheadsSE: what do you mean by "perplexity is 4 times the same" [04:04] gkatsev: preplexity, which is calculated via the preplexity function. [04:04] gkatsev: page rank should terminate when the value for preplexity is the same value after 4 iterations of the pagerank algorithm [04:05] WarheadsSE: thank you [04:05] gkatsev: and by equal, I mean, if you compare only the integer value and ignore the decimals [04:05] gkatsev: this test is done in the preplexfour function [04:06] blueadept has joined the channel [04:06] WarheadsSE: every time i run it with your input I end up with 8 runs and 2 results [04:07] gkatsev: so, the "2" results are the documents with the highest and lowest value. [04:07] gkatsev: WarheadsSE: how does the preplexity look like? big numbers and eventually zeros? [04:07] WarheadsSE: I have it dumping perplex [04:08] gkatsev: yeah, that array is the perplexity values [04:08] WarheadsSE: yeah.. [04:09] gkatsev: so, does it end up with a bunch of zeros for it? [04:09] WarheadsSE: 2 [04:09] thinkt4nk has joined the channel [04:09] gkatsev: ok, well, either way, it shouldn't get zeros. [04:09] WarheadsSE: at teh beginning on run 8 there are 2 zeros in a row [04:09] jacobolus has joined the channel [04:10] WarheadsSE: I should note this odd output: WT22-B21-266\r [04:10] gkatsev: weird [04:10] gkatsev: the \r is, I mean [04:11] WarheadsSE: agreed [04:11] devongovett has joined the channel [04:12] WarheadsSE: i just changed the split out to \r\n, maybe git transalted one funny [04:12] gkatsev: that's possible [04:12] WarheadsSE: got a different output in the least. [04:13] boltR has joined the channel [04:13] sreeix has joined the channel [04:13] gkatsev: jesusabdullah: nope, can't use twish. twitter already has an app registered with that name. I guess I could have twitter think of it as twish-node. idk. [04:14] blueadept` has joined the channel [04:15] dshaw_ has joined the channel [04:16] gkatsev: also, an individual pagerank shouldn't be greater than 0. [04:16] WarheadsSE: you mean like this: { page: 'WT17-B31-123', rank: 1322707.8637625987 } [04:16] gkatsev: yes [04:16] WarheadsSE: thres your problem then [04:16] gkatsev: that rank shouldn't be greater than 1 [04:16] WarheadsSE: 1st run loop [04:17] WarheadsSE: [ 183810.9999981843 ] [04:17] gkatsev: well, the preplexity should be that [04:17] WarheadsSE: yeah thats the perplext [04:17] gkatsev: ok [04:18] mattgifford has joined the channel [04:19] WarheadsSE: I have to say, i have never seen JS while loop condition laid like that.. [04:20] WarheadsSE: a, b [04:20] gkatsev: heh [04:20] WarheadsSE: hell, Ive seen it so rarely, period. [04:20] gkatsev: yeah, I can move the push to the end [04:21] WarheadsSE: essentially it amounts to "do this, then check this" [04:21] WarheadsSE: correct? [04:21] gkatsev: yes [04:21] orlandovftw has joined the channel [04:21] gkatsev: comma operator ftw [04:21] WarheadsSE: ACTION eyeroll [04:21] gkatsev: :P [04:22] gkatsev: but yeah, if I move the push to the end of the while, i'll have to do another push before the while loop. [04:22] WarheadsSE: im not touching it, but im a perl monger, so yeah, ... pythonic code [04:22] KingInky has joined the channel [04:22] WarheadsSE: whts wrong with preloading :p [04:23] gkatsev: 1 less line of code :P [04:23] WarheadsSE: or do while loops [04:23] KingInky: waddup warheads [04:23] WarheadsSE: ACTION waves [04:23] KingInky: how ya doin [04:23] WarheadsSE: me, fora few minutes [04:23] gkatsev: do while wont work [04:24] gkatsev: WarheadsSE: btw, thanks for taking a look. [04:24] WarheadsSE: np [04:24] WarheadsSE: not something ive done before so it picqued my interest [04:24] KingInky: hey im trying to figure out what db would be best for what im doing. [04:24] gkatsev: mongo. [04:24] gkatsev: jk [04:24] KingInky: i dunno, maybe [04:24] WarheadsSE: what is it you're doing? [04:25] KingInky: im trying to make an app that would auto-message a user (via socket.io) on my webpage, if they reply and im online, i can chat back and forth [04:25] WarheadsSE: k [04:25] gkatsev: probably redis [04:25] KingInky: im kind of thinking redis [04:25] KingInky: yeah [04:25] WarheadsSE: ok, but [04:25] KingInky: i like their pub sub thing [04:25] WarheadsSE: again [04:25] KingInky: yeah? [04:25] WarheadsSE: where is a database needed at that point [04:25] KingInky: hmmm [04:25] gkatsev: though, you could use mongo. [04:26] KingInky: textfiles? [04:26] WarheadsSE: technically he could use a pen and paper, im trying to sort actual need [04:26] isaacs has joined the channel [04:26] gkatsev: but yeah, it doesn't necessarily need a db [04:26] KingInky: gkatsev: does mongo have a similar feature? [04:26] KingInky: yeah i suppose i could use text [04:26] gkatsev: not exactly, but it's a document store [04:27] WarheadsSE: KingInky: I'm still trying to locate your need for *any* database [04:27] KingInky: ill do some reading. i know hummingbird uses mongo, and i got pretty deep into that code for a while, just exploring node.js [04:27] WarheadsSE: socket.io + channels [04:27] KingInky: oh well this app is something i want to be able to deploy to multiple people and host all myself [04:27] dwhittle has joined the channel [04:27] WarheadsSE: ACTION blink [04:27] WarheadsSE: still not seening what you actual need is here [04:27] gkatsev: the question is whether you need/want to queue up the message. If you dont care, then you definitely dont need a db [04:27] KingInky: yeah, i think you're right [04:27] KingInky: and i will check out socket.io channels [04:28] WarheadsSE: "the pages messages them, and if they reply and I am online, we can chat back and forth" [04:28] WarheadsSE: only thing i see is sessions , socket.io , channels [04:29] evilnate has joined the channel [04:31] evilnate has joined the channel [04:32] evilnate has joined the channel [04:33] evilnate: undefined [04:33] patcito has joined the channel [04:34] jesusabdullah: gkatsev: what about "twatter" ? [04:34] gkatsev: probably exists [04:35] Authoritarianism has joined the channel [04:35] innoying has joined the channel [04:35] westg: what is the difference between using socket.io and xmlhttprequest [04:35] Wizek has joined the channel [04:35] thinkt4nk has joined the channel [04:36] westg: i mean why would one not use socket.io for everything [04:36] WarheadsSE: socket.io will fall back to xhr where websockets can not be used [04:36] WarheadsSE: so indeed, why not? [04:37] westg: not long polling [04:37] westg: i mean regular one way ajax [04:37] westg: see the majority of stuff that the client is going to send back to the server needs to also be broadcasted to all other clients in a specific group [04:38] westg: therefore I could use ajax and then socket.io to emit from the server or I can just do it all in socket.io [04:38] gkatsev: jesusabdullah: what about piopio? it's a bird. [04:38] gkatsev: was a bird. [04:38] westg: but yeah if the fallback is xhr then I guess socket.io effectively cuts out ajax [04:38] WarheadsSE: I'd say make it all simple, and use socket.io [04:38] westg: yep [04:39] timoxley: isaacs is there a good reason npm shouldn't use xterm 256 colors? I'm putting together a patch and wondering if I am limited to the 8 ANSI colors [04:40] isaacs: timoxley: ansi only [04:40] timoxley: isaacs dang [04:40] rehanift has left the channel [04:40] WarheadsSE: gkatsev: every time I look at this, and they way it is short stroking the results.. [04:41] WarheadsSE: but at the same time, it is in some degree processing everything. [04:41] gkatsev: WarheadsSE: yeah, idk. if you run it with simplegraph, it is the correct results, though. [04:41] timoxley: isaacs also how old is "(ancient)" [04:42] isaacs: timoxley: before npm started putting dates on things [04:43] timoxley: isaacs understood, rough estimate as to when that was? [04:43] isaacs: ACTION shrug [04:43] isaacs: timoxley: before the counting of time. [04:43] isaacs: timoxley: BEFORE TIME ITSELF! [04:44] isaacs: truly, ancients as the gods ancestors. [04:44] isaacs: probably no more than 800 years, though, just to put an upper limit on it [04:45] rummik: Probably sometime after the Unix epoch? [04:45] timoxley: isaacs alright I'll work that into my calculations [04:46] timoxley: bah [04:47] edsu has joined the channel [04:48] gkatsev: jesusabdullah: this thrasher is a good name? It's a bird. [04:48] edsu: can someone help me with a Parse Error i'm getting from http.get when maxSockets is set below a certain threshold? [04:48] edsu: https://gist.github.com/2191407 [04:48] edsu: v0.6.12 [04:49] derekv: its like i've looked at 5 different howtos for node to mongodb and seen 5 different libraries to connect with [04:49] liteyagami has joined the channel [04:49] derekv: its exactly like that. [04:49] willwhite has joined the channel [04:50] liteyagami: where in the docs can i find the session.value attribute that express.js uses? or where can i see the attributes under session? [04:51] gkatsev: dammit, finding a good name is hard :( [04:53] liteyagami: is .value a global attribute in nodejs? [04:53] jesusabdullah: gkatsev: you're lookin' for bird names? that's an alright one I guess [04:54] jesusabdullah: here are a few more: [04:54] gkatsev: lol [04:54] jesusabdullah: wren, chickadee, swallow, loon [04:54] gkatsev: jesusabdullah: well, just trying to find a good name for a twitter client since twish was taken [04:54] jesusabdullah: swallows are like the f-16 of birds [04:54] jesusabdullah: owls are like the b-2 [04:55] jesusabdullah: loons are pretty sweet acdtually but are stuck with a shitty name [04:56] chapel: mockingjay [04:56] chapel: :P [04:56] edsu: http://thesaurus.com/browse/tweet [04:58] gkatsev: warbler is also taken [05:01] michaelhartau has joined the channel [05:03] gavin_huang has joined the channel [05:08] emmanuel has joined the channel [05:10] yorick has joined the channel [05:11] WarheadsSE: gkatsev: hmmmm [05:12] WarheadsSE: you're going to need a reference implementation that works [05:12] edsu: gkatsev: is there anything special about your twitter client? [05:12] WarheadsSE: but after examining the throughput.. it's meeting your "stop when" condition at the the beginning of the 9th iteration [05:13] gkatsev: edsu: console based. like TTYtter and earthquake. [05:14] mattgifford has joined the channel [05:14] dwhittle has joined the channel [05:15] WarheadsSE: gkatsev: http://pastie.org/3664230 [05:16] gkatsev: WarheadsSE: yeah, that's what I'm seeing too. [05:16] WarheadsSE: if this is suppose to iterate somehow... 56 times? [05:17] WarheadsSE: it's not getting anywhere near it because you math is not behaving as you think [05:17] gkatsev: well, it's not supposed to drop down to zero or 1.8E-292 [05:17] WarheadsSE: exactly my thoughts [05:17] dilvie has joined the channel [05:18] gkatsev: which I still dont understand why exactly. [05:18] WarheadsSE: something, is way off. [05:19] WarheadsSE: The first loop takes some time, but every loop after that, flies past. [05:21] WarheadsSE: i wonder if you're running over the bounds... [05:22] dtrejo has joined the channel [05:22] dtrejo: is there an npm command that does this: "npm install package" and then puts the package version into my deps field in package.json? [05:22] dtrejo: or any other tool? [05:23] WarheadsSE: install what you need then shrinkwrap ? [05:24] WarheadsSE: gkatsev: I've got to put the problem down, earlier morning on the east caost. [05:25] gkatsev: I'm also on the east coast :) [05:25] gkatsev: WarheadsSE: where in the east coast? [05:28] ted_ has joined the channel [05:29] evilnate: isn't it like really late over there? [05:29] yaymukund: hehehehe "A Regular System Emitting Bulleted Ancillary Normative Declarations of Idempotent Tests" [05:29] brianleroux has joined the channel [05:29] gkatsev: evilnate: only 1:30am [05:30] evilnate: late night coding FTW! [05:30] gkatsev: technically, I'm participating in a hackathon. [05:30] gkatsev: I just know that if I stay up all night tonight I'll be dead the whole week [05:30] evilnate: week-long hackathon? [05:31] gkatsev: weekend [05:31] gkatsev: i'm in classes [05:31] gkatsev: final semester of college [05:31] evilnate: nice [05:34] evilnate has joined the channel [05:39] ParadoxQuine has joined the channel [05:41] mattgifford has joined the channel [05:44] baudehlo has joined the channel [05:45] brianleroux has joined the channel [05:49] evilnate has joined the channel [05:55] timoxley has joined the channel [05:55] evilnate has joined the channel [05:56] evilnate has joined the channel [05:57] evilnate has joined the channel [05:59] brianleroux has joined the channel [06:00] Karmaon has joined the channel [06:01] enjalot has joined the channel [06:01] ag4ve: how do i tell express to use middleware when i go anywhere but '/'? [06:02] xbayrockx has joined the channel [06:02] derekv: mongoskin won't connect [06:02] derekv: sit and spin [06:06] mattgifford has joined the channel [06:06] yhpark has joined the channel [06:10] ovaillancourt has joined the channel [06:17] Authoritarianism has joined the channel [06:17] briancray has joined the channel [06:21] ericmuyser has joined the channel [06:21] thetony: does joyent make money on node? [06:24] dtrejo: kinda I suppose [06:27] hij1nx has joined the channel [06:32] mikeal has joined the channel [06:34] derekv: ufck [06:35] yhpark_ has joined the channel [06:36] derekv: how can I know what version of mongoskin will work on heroku [06:38] derekv: i put mongoskin in the package.json, and it fails to deploy, looks like its trying to grab too new a version of mongodb that requires too new a version of node [06:39] thetony: dtrejo: any idea how? [06:41] dtrejo: sponsorships maybe for conferences [06:41] dtrejo: well, only nodesummit I suppose [06:41] thetony: grants? [06:41] dtrejo: I think they kinda organized nodesummit [06:41] dtrejo: so maybe they made a tiny bit of money [06:41] dtrejo: oh [06:41] dtrejo: they make money by being the best place to host node apps [06:41] dtrejo: dtrace [06:41] dtrejo: and their infrastructure [06:41] dtrejo: are top notch [06:43] sreeix has joined the channel [06:45] mikeal has joined the channel [06:47] derekv: heroku's npm seems to want to pull in mongodb 9.9-7 and then barf because it can't [06:49] isaacs has joined the channel [06:50] derekv: so I can not use mongoskin even though several other people have, because I can not get heroku to accept the app when I pull in any version of mongoskin. [06:51] derekv: Even if I tell it to use a lower version of "mongodb" in the dependancies it still tries to get the latest, then barfs saying the node.js version is too low [06:53] derekv: dammit-- ok forced it to work --- gah back to the original problem [06:54] konobi: isaacs: ping [06:54] isaacs: hi [06:55] isaacs: konobi: got a puzzle? [06:55] konobi: howdy... currently trying to get node-tap to bend to my will but failing miserably [06:56] konobi: the version of TAP that we're using states that we need to emit a head (with the version) for each tap stream... but i'm boggled as to how to get it to do that [06:57] isaacs: konobi: what's the head look like? [06:57] konobi: TAP version 13 [06:58] erujolc has joined the channel [06:58] konobi: mainly i'd like to understand why self.write or self.emit('data') in the constructor won't work [06:58] isaacs: konobi: just like that, literally? [06:58] isaacs: konobi: it needs to wait for the first write. [06:58] konobi: (for TapProducer that is) [06:58] isaacs: patch coming soon [06:59] isaacs: konobi: is it the version of node-tap, or the version of the tap protocol? [06:59] konobi: the protocol [06:59] isaacs: konobi: also, how do you keep finding this mind-breakingly over-strict tap consumers? [06:59] mikeal has joined the channel [06:59] konobi: ^_^ [07:00] isaacs: "Konobi's tap consumer walks into a bar, and shoots everyone who does not set their beer down on their assigned coaster." [07:00] konobi: (sorry _really_ laggy connection here) [07:00] isaacs: i'm not sure which version of the protocol node-tap implements. [07:00] isaacs: maybe i should just call it TAP version PI or something? ;P [07:00] konobi: i'm just going against tap4j right now... but i've got a list of fixes to make and this was one to wet my teeth on... but damn it's tricky [07:01] konobi: 13 [07:01] isaacs: grr. tap4j; [07:01] konobi: i've been fixing it though =0) [07:01] isaacs: it's not just strict, it's strict in completely nonsensical ways that make it unusable with any other tap. [07:02] isaacs: seriously. you should be able to throw the contents of the phone book at a tap consumer, and it should tell you how many names start wih "ok" and how many start with "not ok" [07:02] konobi: also dealing with runner being a tap producer tiseld... *squint* [07:02] isaacs: granted, node-tap has bugs. [07:03] isaacs: it's overdue for a rewrite [07:03] konobi: yeah, it's the yamlish that's been problematic for the most part [07:03] isaacs: the test-writing interface is nice, but the harness/runner/producer/consumer stuff is a bit tricky [07:03] paulwe has joined the channel [07:03] isaacs: tap4j has a parser that doesn't parse valid yamlish, is the problem. [07:03] konobi: yeah... i might take a swing at it [07:04] isaacs: konobi: if you'er actually interested in improving node tap (and not just writing a whole different tap thing in node, which could also be interesting) then we should talk about it. [07:05] ag4ve: where is ':id' stored in the request? [07:05] konobi: tap4j uses a plain yaml parser... but it was getting very confused... i fixed that.. but the JDSON quoting was neededf [07:05] konobi: isaacs: agreed [07:06] isaacs: jdson? [07:06] isaacs: oh, json [07:06] isaacs: konobi: yeah, but it breaks other things [07:06] isaacs: konobi: i'd like to rewrite it simpler. it's still basically my original weekend prototype, plus lots of duct tape. [07:06] konobi: isaacs: yeah... that "escaping" isn't mentioned in the yamlish spec... i should really talk to andy about it [07:07] isaacs: konobi: i'd like the output to do the indentation thing, rather than gathering the results up into one tap stream [07:07] konobi: shame i couldn't make the QA hackathon at the end of the month [07:07] konobi: subtests? [07:07] isaacs: it's more programmatic overhead the way i'm doing it, more complexity than necessary [07:07] isaacs: konobi: yeah [07:07] konobi: yeah... iirc, it's not defined in the spec yet though [07:07] isaacs: right now, subtests are just sort of massaged into a single stream at the top level [07:08] isaacs: konobi: honestly? i care WAY less about any published spec than about simple usage, clear output, and interoperability with other tools. [07:08] konobi: yeah... which is what i'm having to contend with [07:08] isaacs: the spec is a means to that end, not an end in itself. [07:08] konobi: yeah... i need to sit down with andy and curtis in a room for a few hours to really nail it [07:09] ryan0x2 has joined the channel [07:09] isaacs: konobi: it'd be better to not write a spec, and instead just document really thoroughly How It's Done. [07:09] konobi: ACTION just realized we could have probably backchanneled this... but meh... =0) [07:09] isaacs: like, every tap implementation that matters and is not currently under development. documnet it. [07:10] konobi: yeah... the main one is Test::Builder... which is pretty nice [07:10] konobi: caolanm is also supportive of getting a common assert lib (deep equals, etc) [07:10] thinkt4nk has joined the channel [07:10] brianleroux has joined the channel [07:10] konobi: leroux! [07:11] konobi: isaacs: have a look at my fork recently? some nice stuff... but a huge PITA to get working properly =0) [07:12] isaacs: konobi: your fork of node-tap [07:12] orlandovftw has joined the channel [07:12] isaacs: ? [07:12] konobi: aye [07:12] isaacs: konobi: no, i haven't. i don't really spend many cycles on node-tap. i just kinda use it and write other programs. [07:13] konobi: yar... i know ^_^ [07:13] konobi: which is why i'm picking up the feature requests =0) [07:14] isaacs: konobi: https://github.com/isaacs/node-tap/commit/e3f050645e7b8f87706516e91e0d720cbd7ed19e [07:14] kirbysayshi has joined the channel [07:15] ted_ has left the channel [07:15] konobi: oh... huh... why do we have to do that there vs the constructor? [07:20] phoochka has joined the channel [07:21] konobi: isaacs: is that just a race condition with streams? [07:22] tylerstalder has joined the channel [07:32] versicolor has joined the channel [07:35] devongovett has joined the channel [07:39] isaacs: konobi: because if you emit data before writing to it, then it might not be hooked up to any listener yet. [07:39] stelcheck1 has joined the channel [07:39] k1ttty has joined the channel [07:41] konobi: ah [07:44] jryans has joined the channel [07:47] meandi10 has joined the channel [07:47] mikeal has joined the channel [07:48] socketio\test\56 has joined the channel [07:50] guidocalvano has joined the channel [07:51] fmeyer has joined the channel [07:54] philips has joined the channel [07:59] ctp6360 has joined the channel [08:01] aliem has joined the channel [08:02] synesp has joined the channel [08:02] synesp: benvie: you there? [08:04] skeptic has joined the channel [08:05] braoru has joined the channel [08:06] graeme_f has joined the channel [08:06] sammmy has joined the channel [08:08] hz has joined the channel [08:09] sammmy: Do people actually donate to github projects? [08:10] mauritslamers has joined the channel [08:10] sreeix has joined the channel [08:10] Edy has joined the channel [08:11] [[zzz]] has joined the channel [08:13] synesp: sammmy: uh idk i guess you can donate to any project if they have it setup? [08:15] Maxani has joined the channel [08:17] erikzaadi has joined the channel [08:20] sandfox has joined the channel [08:21] lawrab has joined the channel [08:24] dtrejo has joined the channel [08:24] criswell has joined the channel [08:27] trivol has joined the channel [08:29] ewalker has joined the channel [08:30] fangel has joined the channel [08:30] satyr has joined the channel [08:35] pizthewiz has joined the channel [08:35] sheenobu has joined the channel [08:35] SamuraiJack has joined the channel [08:35] Slashbunny has joined the channel [08:38] lpetre has joined the channel [08:38] skm has joined the channel [08:38] sammmy has joined the channel [08:40] nsolsen has joined the channel [08:40] sammmy: synesp: Would you ever donate to a project if it had a paypal button or bitcoin address on the README.md? [08:40] dekz has joined the channel [08:41] synesp: sammmy: I would contact the owner / maintainer and say "I want to buy you a beer and or purchase you a car" [08:41] synesp: anyone here familiar with https://github.com/mikeal/request [08:41] sammmy: synesp: You wouldn't just do it through paypal or bitcoin or something? [08:42] synesp: if it's offered.. [08:42] synesp: if its not you ask [08:42] cjm has joined the channel [08:43] bsacke_ has joined the channel [08:43] jetienne has joined the channel [08:46] lpetre: does npm remove a package's folder when a package fails to build [08:50] rendar has joined the channel [08:51] yawNO has joined the channel [08:53] yawNO: yo [08:55] misza222 has joined the channel [08:56] arduix has joined the channel [08:56] josh-k has joined the channel [08:58] lmorchard has joined the channel [09:03] synesp has left the channel [09:04] yawNO has joined the channel [09:04] conner has joined the channel [09:04] ditesh|cassini has joined the channel [09:05] whitman has joined the channel [09:08] astropirate has joined the channel [09:09] dragansah has joined the channel [09:09] insin has joined the channel [09:12] tokumine has joined the channel [09:12] trivol has joined the channel [09:18] yhpark has joined the channel [09:26] joaojeronimo has joined the channel [09:27] jlaire has joined the channel [09:29] Morkel has joined the channel [09:29] arduix has joined the channel [09:35] wilmoore has joined the channel [09:36] Commando has joined the channel [09:37] Commando: how can in embed jquery [09:38] timoxley: Commando wat [09:38] k1ttty has joined the channel [09:38] Qalqi has joined the channel [09:38] xat--: Commando: https://github.com/tmpvar/jsdom [09:39] tornad has joined the channel [09:42] huggies has joined the channel [09:43] stafamus has joined the channel [09:43] damiano has joined the channel [09:43] damiano: hello [09:43] jimmysparkle has joined the channel [09:44] damiano: is there a web framework in node instead of Express or Geddy ? [09:44] ningu: damiano: yes, there are a few million [09:45] ningu: https://github.com/joyent/node/wiki/modules#wiki-web-frameworks [09:45] ningu: also flatiron, which isn't on there [09:45] damiano: ningu, yes i know there are a lot of web framework....but i mean "complete" web framework [09:45] damiano: not too young [09:46] be5invis: Hey guys, are there any nodejs-based tex-SVG tools? [09:47] `3rdEden has joined the channel [09:47] archivebot has joined the channel [09:48] SubStack: damiano: node is young [09:48] SubStack: damiano: what specifically are you trying to accomplish? [09:49] damiano: SubStack, i would like to create a small website that now is created using PHP (CAKE PHP framework) [09:49] jimt has joined the channel [09:49] damiano: i would like to implement MVC [09:50] SubStack: what's wrong with your existing code? [09:50] damiano: do you mean what wrong with cakephp ? [09:50] SubStack: I mean what is wrong with the code that you have already [09:50] SubStack: why rewrite it [09:51] damiano: at the moment i do not have a node.js app....... i only have a website developed using cakephp... but i would like to create it in node [09:51] SubStack: why not build new things in node and leave the existing code alone? [09:52] damiano: 50% in php 50% in node ?? [09:52] SubStack: why expend effort building the same thing twice? [09:53] SubStack: until there are good reasons to switch I don't see the point [09:53] __doc__ has joined the channel [09:53] SubStack: it's easy to shim out new services and components in different languages and platforms [09:54] SubStack: and an incremental component-driven approach is much more likely to succeed [09:54] damiano: SubStack, it is only a test....i create that website to learn CAKEPHP and now i would like to create a website in node... [09:55] damiano: it is a "testing" website [09:55] damiano: not for customer or other work [09:55] Youdaman has joined the channel [09:55] Youdaman has left the channel [09:56] Vennril has joined the channel [09:56] SubStack: damiano: it's probably not going to be as clean as in php if you're solving the same problem in the same way [09:57] SubStack: it's better to build new things [09:58] damiano: SubStack, one moment.... php is better? excuse me i don't understand [09:58] damiano: with better i mean...---> is node NOT clean as php [10:00] Druid_ has joined the channel [10:00] kesor_ has joined the channel [10:01] pickelsss has joined the channel [10:03] rurufufuss has joined the channel [10:10] dtrejo: SubStack: check out my app im making for a hackathon, it's suuuuper rough, but the phone song-downloading stuff is done-ish: http://downsound.jit.su/linkopener.html [10:10] dtrejo: * my team is making [10:10] dtrejo: don't click the button! [10:10] dtrejo: :) [10:11] damiano: guys what are the benefit to use Jade instead of EJS? [10:11] lpetre has left the channel [10:11] dtrejo: oops need to redeployyy [10:12] ningu: damiano: what he meant was that if you design it the same way as the php app, it's probably cleaner in php [10:12] ningu: at least, that's what it sounded like to me :) [10:12] Country has joined the channel [10:13] ningu: anyway, jade and ejs are fairly comparable in terms of what they can be used for, as far as I can tell -- so it's just your personal preference. take a look at both, there are some obvious differences [10:13] ningu: differences in syntax but probably not much, ultimately, in terms of functionality [10:13] haandol has joined the channel [10:14] zemm has joined the channel [10:16] damiano: ok [10:16] damiano: thank you ningu [10:17] ningu: damiano: but really you should read the docs [10:17] ningu: there are probably minor details that are not the same, that might make a difference [10:17] damiano: ok [10:17] damiano: right [10:17] SubStack: I don't even think people should be using templates at all. [10:17] SubStack: maybe for very CRUDy apps [10:17] SubStack: certainly nothing like the kinds of apps I usually write [10:18] ningu: SubStack: I was going to say, some apps are much more content-heavy than others [10:18] yaymukund has joined the channel [10:18] ningu: for my apps it's unrealistic [10:19] SubStack: pulling down content with ajax is just so much nicer to deal with [10:19] ningu: I can imagine other ways of binding data to html -- but there are too many conditions [10:20] ningu: that's where templates really help [10:20] damiano: at the moment i do not like Express.JS so much because it seems that does not support MCV so well.... i mean if i write a route like: app.get('/users', ...) then i need to write: app.get('/users/action1', UserController, ..) app.get('/users/action2', UserController, ...) so i need to write all the action myself, but a MVC framework should check what are the actions that a controller has [10:20] damiano: maybe i'm wrong [10:21] ningu: damiano: I don't think MVC per se says anything about whether controllers are auto-loaded or not, or all have the same actions [10:21] commando has joined the channel [10:21] SubStack: MVC doesn't say anything [10:21] ningu: but you can check express-namespace or express-resource for example [10:21] SubStack: MVC is completely undescriptive [10:22] ningu: MVC to me mostly just means separating logic from display [10:22] risto has joined the channel [10:22] ningu: controller vs. model can be tricky [10:22] SubStack: MVC is just successive over-engineered frameworks cargo-culting what the last one did [10:22] risto has left the channel [10:22] jomoho has joined the channel [10:23] commando: how can i write jquery in my node.js app [10:23] SubStack: ningu: then just say that instead! [10:23] commando: help me [10:23] staar2 has joined the channel [10:23] Nexxy has joined the channel [10:23] SubStack: that is a small, testable idea that we can analyze in isolation [10:23] ningu: for example, I use mongoose for my model but there is inevitably some model-internal-ish stuff that goes in the controllers [10:23] staar2: hello [10:23] ningu: commando: um, what exactly are you trying to do? [10:23] ningu: someone already helped you [10:24] damiano: yes but in this case i need to write many route as the number of all the actions i need yo use [10:24] damiano: *to use [10:24] commando: I m try to insert jquery dialog in my app [10:24] insin: ACTION is suspicious of frameworks which weren't extracted from a real app/apps [10:24] staar2: does any of you host the node on own server ? [10:24] ningu: SubStack: fair enough -- although I separate models and controllers enough that I think it's reasonable to distinguish them, so e.g. I can write scripts that require('./db') [10:24] commando: I m using locally [10:25] ningu: and the mongoose hooks will all be pulled in [10:25] SubStack: insin: I'm suspicious in the other direction, when existing apps are turned into reusable frameworks there tends to be a lot of baggage [10:25] ningu: damiano: ok, but what exactly is the issue? [10:25] SubStack: damiano: you can just use programming for that you know [10:25] ningu: commando: you mean from the client side? [10:25] insin: SubStack: yeah, works both ways :) [10:25] insin: you're taking someone else's compromises, too [10:25] SubStack: there is no rule that says that your app routes need to all be in the same file at the root level [10:26] commando: yes ningu [10:26] Hui_Nan has joined the channel [10:26] Hui_Nan: hi all! [10:26] ningu: commando: so just load jquery with a script tag... it's just html [10:26] commando: In jade file [10:26] ningu: jade lets you write script tags [10:26] ningu: again it's just html, ultimately :P [10:27] commando: if i want serve-side [10:27] Hui_Nan: Is it possible to organize a local npm repository (like CPAN-mini in Perl)? [10:27] ningu: commando: you just said it was client-side [10:27] commando: so where in use jquery ningu [10:27] ningu: if it's server-side I don't know what you're trying to do [10:27] commando: I want both side [10:27] ningu: you can't open a dialog on the server [10:28] damiano: ningu, no no it is not an ISSUE.... I only mean if i have 10 controllers with 10 actions i need to write 100 routes instead of 10 [10:29] SubStack: Hui_Nan: it is possible but requires some couchdb knowledge [10:29] damiano: so a website maybe be not clear to change [10:29] ningu: damiano: if there are common elements to those routes there are many ways to abstract them, as SubStack said just use programming :P [10:29] ningu: you can auto-generate them too [10:29] damiano: ningu, i know that i can use programming :-) i only asking how is it possible that a mvc framework does not support it [10:29] ningu: it just depends how much code they actually share [10:29] damiano: only this. [10:29] damiano: not an issue [10:29] commando has left the channel [10:29] ningu: how does it not support it? [10:30] ningu: it doesn't prevent you from doing it [10:30] SubStack: also: stop using frameworks [10:30] damiano: ningu, i mean that passing a module and a framework must to see the actions [10:30] SubStack: use libraries [10:30] ningu: damiano: not sure what you mean [10:30] Hui_Nan: SubStack: I have that knowledge. Could you point me to docs? [10:31] Druid_ has joined the channel [10:31] ningu: damiano: if you mean you want every method in a controller to be auto-detected as an action or something, I suppose you can write something to do that, but it certainly isn't a standard MVC feature [10:31] yawNO has joined the channel [10:32] ningu: control flow is almost never that simple [10:32] damiano: ningu if i need routes like [10:32] damiano: /users/* [10:32] timoxley: damiano or use something more full-featured like rails [10:32] SubStack: Hui_Nan: do you want a mirror or an empty local server? [10:32] damiano: whenre * could be [10:32] damiano: /add / remove /modify ecc ecc [10:32] SubStack: Hui_Nan: here's how to set up a mirror at any rate https://blog.caurea.org/2012/01/31/local-npm-registry-mirror.html [10:32] damiano: i need to write 4 routes [10:33] sreeix has joined the channel [10:33] ningu: damiano: as I said, you can auto-generate those routes if you want, nothing is preventing you [10:33] damiano: k [10:33] briancray has joined the channel [10:33] ningu: I mean, *somewhere* you will have to write four routes, but if you want to reuse them in many controllers nothing is preventing you [10:33] timoxley: damiano also have a look at express-resource [10:33] SubStack: Hui_Nan: if you want to set up a local version you can probably just replicate only the design docs after setting up the admin rights [10:33] ningu: timoxley: I already said that :) [10:34] Nexxy has left the channel [10:34] SubStack: I disagree with this idea of "models" and "controllers" [10:34] SubStack: keep in mind that somebody invented that, it is not some fundamental feature of reality [10:34] Hui_Nan: SubStack: sometimes I have to work offline, so I need somemeans to install packages from the LAN [10:35] ningu: SubStack: it's very useful for me to be able to isolate certain model logic -- for example, auto-lowercasing a field in mongo or pre-save hooks -- that will need to run no matter what is accessing hte database [10:35] joshontheweb has joined the channel [10:35] SubStack: Hui_Nan: ah then that link should describe what you need then [10:35] timoxley: ningu you're talking orm, SubStack is disagreeing with models entirely [10:36] SubStack: I also disagree with orm, at least insofar as that is a "thing" [10:36] Hui_Nan: SubStack: thank you! [10:36] damiano: yeah guys [10:36] damiano: thank you [10:36] ningu: timoxley: I don't really care what terms you use but the functionality I'm talking about is something I'm not willing to dispense with [10:36] damiano: express-resources is the thing i asked [10:36] damiano: :D [10:37] timoxley: SubStack so you believe not model domain at all instead model, say, the request? or? I'm not sure how to think about your app without models [10:37] ningu: if deleting item A will always require deleting associated B's I don't want to have to manually code that every time [10:37] SubStack: all this talk of "models" [10:38] eugs51 has joined the channel [10:38] ningu: I don't really care in a sense how that's accomplished but I want it to be in one place in my code and not get in the way [10:38] SubStack: the problem that you're ACTUALLY solving in these apps is that you have some state and need it to persist across restarts and to sit on disk because it might not all fit in memory [10:38] timoxley: SubStack eg, how do you encapsulate a User and all of her related data? [10:38] timoxley: …without a traditional model [10:38] SubStack: I don't have "users" I have data [10:39] ningu: SubStack: in my case persistence is a much bigger issue, and also data integrity is important [10:39] dtrejo: SubStack: I fixed it, now dont press the button: http://downsound.jit.su/linkopener.html [10:39] SubStack: ningu: sure but those are separate from tying the database backend to the object model [10:40] damiano: ningu, timoxley i dont understand one thing...i read express-resources DOC, it is useful and I surely will use it, but i see that if the request is GET /forums it calls /index (correctly) BUT if the request is POST to /forums it will call "create" method.... but can i change it ? example....if i also what that post request will call "index" method" can I ? [10:40] ningu: my data is fairly complex and I want a way to break it down into manageable pieces and specify various requirements in one place that will be enforced [10:40] ningu: and the fact that it can be separated from the control flow of the app is a huge benefit [10:40] timoxley: damiano why would you want a post to call index? [10:41] timoxley: damiano oh, to display a thing to the user [10:41] ningu: models are declarative, controllers are imperative. that's the issue basically, as I see it. [10:42] SubStack: I take issue with the categories presented [10:42] adambeynon has joined the channel [10:42] SubStack: I don't think breaking down the problem domain into models and controllers gives the best interfaces [10:42] ningu: you mean user interfaces? [10:43] ningu: or programmatic interfaces? [10:43] conner has joined the channel [10:43] SubStack: programming interfaces [10:43] timoxley: damiano handle post, then redirect to index, or simply render index template [10:43] timoxley: damiano or use the same function for both and have some kind of switch in there [10:43] ningu: damiano: that's why I don't use express-resource, because I want more ability to tweak the control flow [10:43] adrianF has joined the channel [10:44] damiano: timoxley, no no it is just an example .... i mean how can i call a different method [10:44] timoxley: damiano ideally you're not rendering anything on the server so you don't have this kind of issue [10:44] ningu: SubStack: so how would you make sure e.g. a particular mongo field is always lowercased, wherever it's set in your node app and also wherever it's set in a script? [10:45] timoxley: ningu like you always access teh db via your orm, instead you always access it via your new SubStack api. [10:45] Commando has joined the channel [10:45] timoxley: which handles that for you [10:45] ningu: timoxley: that's what I'm asking about [10:46] ningu: I didn't say it was impossible but without being SubStack I can't imagine it [10:46] damiano: timoxley, ? i don't understand: you're not rendering anything on the server so you don't have this kind of issue [10:46] Commando: ningu: In Client side i have an error [10:47] timoxley: damiano client side rendering. Server handles one request at a time. POST will simply return a status code and perhaps some json data. index returns json. everything json. [10:48] ningu: timoxley: and how does the client get templates to render the json? [10:48] insin: and for non-JS user agents? Just being an API for an app is a different problem [10:48] insin: well, not completely different, obv :) [10:48] SubStack: ningu: if the code to set a field all goes through the same place then it's simple to make sure it's lowercased [10:48] SubStack: but that need not necessarily be a "model" [10:48] damiano: timoxley, yes i know but how to call different method using express-resources (instead of default method) [10:48] SubStack: classifying abstractions in those terms gives other unrelated baggage [10:49] timoxley: damiano can't. you'd need to alias it. [10:49] timoxley: damiano but it seems like that shouldn't be an issue since if you want such a thing then you probably don't want express-resource [10:50] timoxley: SubStack baggage such as… [10:50] take_cheeze has joined the channel [10:50] timoxley: insin what non-js user agents? [10:50] SubStack: such as decomposing the problem into a singular type of object that represents each kind of data in your backend for instance [10:51] shinuza has joined the channel [10:51] SubStack: thinking in terms of things instead of transformations on data [10:51] timoxley: SubStack verbs instead of nouns [10:52] damiano: timoxley, i dont understand if for EVERY Post request it routes it to /creates [10:52] ningu: damiano: just rewrite express-resource for your logic [10:52] lirla has joined the channel [10:52] ningu: it's like 50 lines of code [10:52] timoxley: damiano it doesn't [10:52] SubStack: damiano: just use another library or no library at all [10:52] SubStack: one that fits better with your mental model of the necessary computation [10:52] oldsplice has joined the channel [10:53] damiano: ok [10:53] ningu: SubStack: hey, you might know the answer to this, I've asked on #socket.io but no one seemed to know what I was talking about... [10:53] damiano: timoxley, what did you say that it doesn't i'm looking at /forums example......and it always reutes to "create" method [10:53] be5invis: Hey guys, are there any node-based tex-svg converter? [10:53] ningu: it has to do with this: http://stephenbelanger.com/2011/09/21/how-to-make-socket-io-work-behind-nginx-mostly/ [10:54] timoxley: damiano the "create" method != "/create" [10:54] damiano: timoxley, yes i wrote wrong [10:54] SubStack: ningu: why would you want to fight nginx when there are plenty of other http routers that just work [10:54] damiano: i mean......why a POST request will be always routed to "create" METHOD [10:55] ningu: the question is whether I can change my nginx configuration so that monkey-patching socket.io is not necessary. I was debugging it yesterday and nginx seemed to think keep-alive was set regardless of the socket.io code being patched [10:55] timoxley: damiano because it's trying to help you create a restful controller. [10:55] ningu: SubStack: such as...? [10:55] SubStack: node-http-proxy and bouncy for 2 [10:55] damiano: timoxley, ok, and it is correct....BUT can I not change it ? [10:55] timoxley: damiano just alias it if you want to change it. I mean why does it matter what it's called [10:55] ningu: I like that nginx can automatically handle gzip for me, for one [10:55] ningu: and caching [10:56] damiano: timoxley, i can alias it but OUTSIDE app.resource, right? [10:56] ningu: and haproxy is a bit more than I want to deal with at the moment [10:56] ningu: I'll check out node-http-proxy [10:56] insin: if you're fighting a particular abstraction from the get-go, perhaps it's not the one you need ;) [10:56] timoxley: damiano what insin said [10:57] timoxley: damiano I think you're looking for a central place to manage your routes [10:57] timoxley: damiano doesn't really exist in node [10:57] SubStack: there are lots of abstractions for managing routes and mapping routes to resources [10:58] insin: zilllions [10:58] damiano: ok [10:58] staar2: is there something lightweight in node for executing jobs, timing adding into queue ? [10:58] timoxley: damiano I mean doesn't exist in terms of "out of the box it works like rails" [10:59] oldsplice: staar2: like a scheuduler? [10:59] damiano: ah ok [10:59] SubStack: timoxley: those exist too [10:59] timoxley: damiano SubStack is probably right [10:59] damiano: timoxley, do you use express.js ? or no framework ? [10:59] staar2: oldsplice: somth like that [10:59] SubStack: just nobody uses them because they clash with the node ethos [10:59] timoxley: damiano restify [10:59] oldsplice: staar2: can I message you? [10:59] damiano: timoxley, https://github.com/mcavage/node-restify [10:59] damiano: ? [10:59] staar2: ys [10:59] timoxley: damiano that one [11:00] SubStack: staar2: there are lots of job queueing/scheduling libraries, `npm search job` pulls up quite a few [11:00] damiano: timoxley, it uses express? [11:00] damiano: it is similar [11:01] timoxley: damiano similar not the same. [11:01] damiano: yes sure [11:01] damiano: ok [11:02] damiano: timoxley, i would like to organize my code...at the moment ALL the exmaples i have seen ....have all the code in app.js [11:02] damiano: i think is better to create more then one file [11:02] damiano: file for routes [11:02] damiano: file for settings [11:02] damiano: helpers... ecc ecc [11:02] damiano: no? [11:02] timoxley: damiano I used to think that too, but I'm starting to feel like more files = more overhead [11:03] damiano: not clear? [11:04] timoxley: damiano break it into more files when you need to. start small. [11:04] damiano: k [11:04] insin: Not keen on directory explosion frameworks either, just let me hook up URLs to my code in a sane way [11:06] timoxley: damiano this video made me reconsider my whole development approach http://www.youtube.com/watch?v=o9pEzgHorH0 also http://www.infoq.com/presentations/Simple-Made-Easy [11:07] timoxley: unlearn all the things. [11:08] yawNO has joined the channel [11:08] damiano: i see [11:08] damiano: thank you so much [11:08] timoxley: damiano np [11:12] damiano: ooh one thing......last [11:12] damiano: but do i really need app.configure(){ ... } in express ? [11:12] damiano: or can i write the .set calls directly ? [11:14] pokoli has joined the channel [11:15] insin: think you only need if if you'll be configuring per-environment [11:16] damiano: ok [11:20] hipsterslapfight has joined the channel [11:20] hongymagic has joined the channel [11:20] Melkor has joined the channel [11:20] phoochka has joined the channel [11:20] hongymagic has left the channel [11:21] nbari has joined the channel [11:22] nbari: hi all [11:22] markwubben has joined the channel [11:22] stagas has joined the channel [11:23] nbari: I have made this http://pastebin.com/zMyS2h0S, the idea is to get via jquery long-poll data from a redis server [11:23] nbari: so far is working [11:23] nbari: but when loading the page, if no data is available, the jquery exits because of a timeout [11:24] nbari: so wondering if anyone could give me a hint on how to configure / mix redis with http (node.js) module to deal with timeouts [11:25] eugs51 has joined the channel [11:25] dannyamey has joined the channel [11:26] astropirate: nbari, hit it with another request :) [11:27] astropirate: timeouts are bound to happen [11:27] nbari: how ? [11:27] astropirate: how what [11:27] nbari: also I on the console i get duplicated messages [11:27] astropirate: make another request? [11:28] nbari: I mean, on the server i run node redis.js, that opens port 3000 and waits until a message is published on redis [11:28] stagas: nbari: one for the favicon [11:28] stagas: is [11:28] nbari: after that i open on my browser http://localbox:3000 and does not print nothig until via redis-cli y push a message [11:28] astropirate: nbari, just listen for the timeout error on the client, http://api.jquery.com/jQuery.ajax/ and then make another request [11:30] nbari: i have something like $.ajax ... error: function () {setTimeout(listen, 1000);} [11:30] astropirate: nbari, might as well use the timeout event thats emmited by jqery [11:30] herbySk has joined the channel [11:31] nbari: and any idea why on the server using this: http://pastebin.com/zMyS2h0S (line 8) duplicates the messages on the console ? [11:32] stagas: nbari: one is a favicon request. do console.log(request.url) and check it out [11:32] nbari: oh ok let me check [11:33] dannyamey has joined the channel [11:33] timoxley: nbari also, that function runs EVERY time you get a request [11:34] timoxley: nbari you probably only want to set up listeners once, not every time there's any request [11:34] nbari: how to do that ? [11:34] level09 has joined the channel [11:35] timoxley: nbari that's a weird setup you have there [11:35] nbari: this is my 2 day with node.js :D [11:36] _rockbot_ has joined the channel [11:36] nbari: I am trying to replace a nginx http_push with node.js [11:36] nbari: by the way should I call directly node.js or use nginx like a proxy ? [11:36] timoxley: nbari you probably want to look at socketio [11:37] trivol has joined the channel [11:38] ph^ has joined the channel [11:38] nbari: how to maintaing the browser alive ? [11:38] ningu: nbari: nginx and socket.io don't play well together [11:38] timoxley: nbari what do you mean the browser alive? [11:38] nbari: I would like to use only redis hredis http [11:38] timoxley: nbari also have a look at dnode/upnode/enode [11:38] Joeysomo has joined the channel [11:38] ningu: so you can either not use nginx, or run socket.io on a separate port or something [11:39] subbyyy has joined the channel [11:39] timoxley: nbari socketio will help you. [11:39] nbari: that script is running here: http://live.localbox.org:3000/ [11:39] timoxley: nbari why use long polling when you can push data to the server [11:39] timoxley: sorry s/server/client [11:40] timoxley: nbari also if you're pushing functions back to the client, dnode does all that for you [11:40] nbari: right now my application (using long polling from nginx http_push) fetch json and based on the json modifys the user page [11:41] nbari: but I do know know if I can avoid the long_pulling and send the modifications directly from the server to the client browser [11:42] timoxley: nbari you can do it with dnode [11:42] timoxley: nbari real easy [11:42] timoxley: nbari or socketio [11:42] nbari: i would like to avoid socketio [11:42] timoxley: nbari why [11:42] ningu: that's like saying you want to walk but would like to avoid using legs ;) [11:43] timoxley: nbari what ningu said. [11:43] nbari: :D [11:43] nbari: is just that currently I have this working [11:43] ningu: I mean, there are other libraries but socket.io works the best [11:44] nbari: I just want to keep this as simple as possible, my initial goal is just to read redis and publish all in json format so i can get proccess the reply with jquery [11:44] nbari: and socket.io i hink is a next step [11:44] Gloorian has joined the channel [11:44] timoxley: nbari do not confuse simple with easy [11:44] Gloorian: Hello [11:45] timoxley: nbari I'd suggest you'd be able to do it more simply with socketio [11:45] Gloorian: Is there anyone who has an idea on how to handle time for file uploads expiration [11:45] Gloorian: ? [11:45] ningu: nbari: if you want to do push from node you should use socket.io [11:45] nbari: ok [11:45] damiano: guys, is it possible to use express.logger() setting the max number of MB of the file.log ? I would like to create something like file.log.1 file.log.2 whne the MAX Is reached [11:45] ningu: nbari: or something build on socket.io, like dnode [11:46] ningu: damiano: there are cron scripts for that [11:46] nbari: dnode is https://github.com/substack/dnode ? [11:46] ningu: or maybe winston does it for you [11:46] ningu: nbari: yes [11:46] timoxley: Gloorian if you have access the response, you could just do a res.end() after a certain setTimeout occurs [11:46] Gloorian: timoxley: that's not what I meant. I made a file upload system [11:46] timoxley: Gloorian oh [11:47] nbari: now, what about fray ? [11:47] timoxley: Gloorian push to S3 and use their built-in expiry? [11:47] Gloorian: and I want to delete the files after some time without any consultation [11:47] Gloorian: S3 ? [11:47] Gloorian: what is it ? [11:47] nbari: faye sorry [11:47] damiano: ok [11:48] timoxley: Gloorian http://aws.amazon.com/s3/ [11:48] nbari: does it make sence using long-pollign with node.js ? [11:48] nbari: maybe I am starting wrong [11:49] Gloorian: timoxley: If S3 is a server (page hasn't finished loading yet), well I already have a server [11:49] timoxley: nbari it makes sense, but it's like saying you want to walk but deciding to wear clogs instead of basketball shoes [11:49] nbari: my app is a small chat that fetchs messges using jquery ajax [11:49] timoxley: nbari or even walking shoes. [11:50] nbari: mmm ok [11:51] nbari: is just that I still do not get it, I mean if currently I do the long-polling for receiving the json and later update the browser, how to achive the same from the server side with node.js ? [11:51] `3rdEden has joined the channel [11:51] timoxley: nbari with socketio [11:51] timoxley: nbari sorry, you mean, an exact stand-in replacement [11:51] Gloorian: timoxley: I thought about a setInterval of 1 day which would call a function that check wether there are files to delete or not [11:51] nbari: if I am properly undertanding my currrent jquery will live now on the server and later just update the browser wich will not have my script ? [11:52] timoxley: Gloorian uh, probably easier to just write a cron to do that [11:52] Guest73099 has joined the channel [11:52] Gloorian: a cron that would call another node.js file, that's it ? [11:53] Guest73099 has left the channel [11:53] timoxley: Gloorian yep. and just do something like if created time is more than one day ago, delete file [11:54] Gloorian: ok, thank you :) [11:54] Paul__ has joined the channel [11:54] ningu: nbari: no, you will use socket.io on both server and client in order to pass and receive the json messages [11:55] ningu: on the client you will define .on('foo') or whatever and in the callback do the necessary browser updates [11:55] timoxley: ningu I think the issue is that he wants to replace his existing backend without adjusting the frontend [11:55] nbari: mmm ok [11:55] ningu: I see [11:55] ningu: well, that might be hard [11:55] timoxley: he's already got it basically [11:56] nbari: making some tests with socket.io (the chat example) I notice that the .socket.io.js is called within the server, wondering it that scrit can be hosted in other location [11:56] dylang has joined the channel [11:56] lzskiss has joined the channel [11:56] ningu: I mean, if you're going to port the backend to node you'd want to use socket.io [11:56] timoxley: Gloorian but I'd ask yourself why you're hosting files. S3 gives you a ton of benefits. I guess it depends on how much data you're taking [11:56] ningu: otherwise there isn't much reason to port it [11:57] rlidwka has joined the channel [11:57] ningu: nbari: the socket.io.js client is specific to the version of socket.io, so it's easiest to just have socket.io host it for you [11:57] ningu: but if you want you can host it yourself wherever [11:57] nbari: ok [11:58] ningu: it's just a regular script tag loaded in the html [12:00] nbari: so then socket.io is a way of avoding long-polling right ? [12:00] trivol has joined the channel [12:00] nbari: I mean a way the server push to the client [12:02] skm has joined the channel [12:03] hellp has joined the channel [12:04] nbari: is there any reason of why should i use nginx as a proxy to node.js ? [12:05] nbari: or by far is better to just run node.js alone on int self port ? [12:06] timoxley: nbari nginx is probably faster for static content and it's also much more easily configured to do things like throttling [12:07] timoxley: nbari it's pretty trivial to bypass nginx/socketio issues by simply running your node socketio stuff on a different port as ningu said before [12:08] timoxley: nbari also if you're rebuilding some of this stuff, i'd probably consider dropping that jsonp 'callback' stuff as well [12:09] nbari: is just that I coulnd' make it work with out the jsonp (this example: http://pastebin.com/zMyS2h0S) [12:09] celebritarian has joined the channel [12:12] nbari: with nginx_push I use this: jqXHR.setRequestHeader("If-None-Match", etag); [12:13] umren has joined the channel [12:13] yati has joined the channel [12:13] nbari: i notice that with node.js there is no 'buffer' and seems that can be avoided right ? [12:14] yati: Hi. I'm starting out with node. what's the difference between module.exports and exports? When I set the latter to a function, `require()'ing it returns an empty Object instead! [12:16] stagas: yati: module.exports is the exported object. exports = module.exports. if you set exports to something else it no longer points to the exporting object [12:18] phoochka has joined the channel [12:18] yati: stagas, Wow! thanks :) Okay, I'm reading Mastering Node - would you suggest something else? I'm new to Node, but not to programming. [12:19] nbari: i removed all the jsonp and the callback stuff but here is the code: http://pastebin.com/hQAaxyEp [12:20] nbari: but what I still do not undestand, is why on the console on the server where I run node myscript.js. everytime that I receive a message the log is incremented x 2 [12:21] nbari: at a poing that I get something like this: (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. [12:22] ningu: nbari: you don't want to add the callback for every request [12:22] ningu: just add it once at the beginning [12:22] nbari: how ? [12:22] stagas: yati: the node docs is a good start, do you know js? [12:22] enmand has joined the channel [12:24] nbari: ningu: sorry but I do not undestand, I mean on the server script how to avoid adding the callback for every request, and how to print on every request the 'messages' in case there are some ? [12:24] yati: stagas, Yes, but just as much as I need to use in typical front-end tasks - But I hear JS is much more capable than that with closures and all. [12:24] hackband has joined the channel [12:25] stagas: yati: http://bonsaiden.github.com/JavaScript-Garden/ is nice if you already know some js [12:25] epokmedia has joined the channel [12:25] ningu: nbari: call client.on() before you create the server [12:25] baudehlo has joined the channel [12:26] ningu: nbari: I don't really know what you are trying to do but it won't work unless you understand node's async control flow [12:26] nbari: I want to just read redis db and publish the results on web [12:26] nbari: no more [12:27] nbari: using redis-cli I am using sometingl like publish pubsub test [12:27] nbari: and on the browser I have a $.ajax script doing a long-polling [12:27] yati: stagas, thanks :D Exactly what I needed :) . Specific to Node, is Mastering Node good? [12:28] ningu: nbari: ok, so that means you don't need your server to do much at all -- in fact, all you need is to have socket.io listen on port 3000 [12:28] maritz has joined the channel [12:28] ningu: well, I suppose you need to host the js that the client will use, too [12:28] level09 has joined the channel [12:29] nbari: that's why I initially say that I would like to avoid first socket.io since for this small test I allready got it running [12:30] ningu: ok, but you can't do push without socket.io [12:30] nbari: but now I just want to fix this or improveit so later I can learn more about 'socket.io' [12:30] ningu: if you don't want push then you don't need it [12:30] nbari: no, i do not need push [12:30] stagas: yati: haven't read it. there's also howtonode and you'll find lots of tutorials in the internet [12:31] ningu: oh, well then don't worry about socket.io -- just have client.on('message',...) store the messages in an array or something, and each request checks if the array has anything, returns it, and clears the array [12:31] nbari: as said, currently I only want to subscribe to a redisdb and to print the jsonoutput on the browser, no more but on the browser I have a script that does the $.ajas request [12:31] yati: stagas, ok fine. thanks :) [12:31] ningu: I suppose that code would have to be carefully written to avoid race conditions [12:31] nbari: exaclty [12:32] nbari: in fact I am trying to learn, how to create or store the values on an array, and in each request return the values in case there are any [12:32] mehlah has joined the channel [12:32] nbari: I was reading this: http://blog.nemikor.com/2010/05/21/long-polling-in-nodejs/ [12:32] rickibalboa has joined the channel [12:33] tisba has joined the channel [12:33] ningu: long polling is only useful for server push, though, which you just said you didn't need [12:33] nbari: specially the last example, but I don't know how to addapt it with the 4 lines of redis [12:35] nbari: sorry I am mixing things [12:35] nbari: could you please help me undertand/fix my fist example [12:35] nbari: my objective is only to print on every request the redis messages [12:35] ningu: not if I don't know what you are trying to do [12:36] ningu: well, what's wrong with the way I suggested? [12:36] tisba has joined the channel [12:36] nbari: mmm not working, let me pate the code [12:36] ningu: heh... code pate [12:36] nbari: http://pastebin.com/NTbLiJjF [12:37] nbari: the problem is on line 14 response.end(message), how should I pass the output ? [12:37] nbari: sorry line 15 [12:38] level09 has joined the channel [12:39] ningu: nbari: read the docs: https://github.com/mranney/node_redis [12:39] megalomix: guys i need to import a .js file in another directory now i'm in /www/first/ i need to import test.js in /www/second/test.js [12:40] megalomix: if i have app.js in /www/first [12:40] ningu: you don't subscribe within the callback [12:40] megalomix: can i do require('../second/test') [12:40] megalomix: ? [12:40] ningu: the callback is what's triggered when someone sends a message that you've subscribed to [12:40] nbari: sorry i pasted the wrong code i ovelap the lines [12:41] ningu: and then you need to save the message somewhere in a global [12:41] ningu: and check for it in the requests [12:41] yhpark has joined the channel [12:41] pid has joined the channel [12:42] nbari: ningu: here is what I am currently using: http://pastebin.com/7tYg8AGf [12:43] ningu: well, you can't have the global be the same name as the argument or you won't be able to access it [12:43] pgte has joined the channel [12:43] ningu: anyway it should be an array [12:43] ningu: messages.push(message) [12:43] Maxani has joined the channel [12:44] TheJH has joined the channel [12:46] nbari: mmm [12:47] nbari: the global could be var messages= []; and on client.on("message", function(channel, message){ messages.push(message);} [12:47] nbari: ? [12:48] nbari: so if I am right taht will increment the array messages with all message from the redis, right ? [12:49] Wizek has joined the channel [12:49] ningu: yes [12:50] nbari: I now this are very basics but how to later retun that within the response.end ( ) ? [12:50] ningu: it's just a global variable, what's the issue? [12:52] nbari: I have now this: http://pastebin.com/ZVrmJMjS but when after open the site i get this: TypeError('first argument must be a string or Buffer'); [12:52] aspecto has joined the channel [12:54] ningu: well, yes, the response can't be an array [12:54] ningu: but I don't know how you want to return the messages [12:54] nbari: I just would like to print it [12:54] ningu: ok, but if there is more than one message how will you do that? [12:55] nbari: maybe a serlialize [12:55] ningu: oh, you are returning json [12:55] nbari: could it be ? [12:55] ningu: well, you set the content-type to json [12:55] ningu: which you shouldn't do unless you are returning json :P [12:55] nbari: done already [12:56] nbari: I have this line: response.writeHead(200, {"Content-Type": "application/json; charset=UTF-8", Access-Control-Allow-Origin": "*" }) [12:56] ningu: I know [12:56] ningu: so if you want to turn the array into a json string you use JSON.stringify [12:58] nbari: ok got it working and know start to undertand better, now after this change, the browser enteres into a loop [12:58] nbari: if I am right I can start making a contions inside http, if messages are empty, do not send nothing else send [13:00] ningu: sure [13:00] loffe has joined the channel [13:00] crodjer has left the channel [13:02] robhawkes has joined the channel [13:02] janfabian has joined the channel [13:03] nbari: ok the server now is properly showing the messages ( no duplicates), [13:04] nbari: I created the array var messages = []; but after running the node script it will be filled with the redis posted on redis [13:04] nbari: how to only keep the last messages [13:05] nbari: otherwise my browser keeps printing all the array [13:05] nbari: I tryied on the http something like if (messages.length) but seems not to be working [13:05] ningu: nbari: I think you should be able to figure this one out on your own [13:06] nbari: ok, If I am just undestanding node scripts area infinite loop [13:06] tuhoojabotti: event loop [13:06] nbari: and do X actions based on certains conditions [13:06] tuhoojabotti: not infinite loop [13:06] nbari: events [13:07] tuhoojabotti: No events -> program exits [13:07] ningu: loop de loop [13:07] nbari: ok [13:12] yawNO has joined the channel [13:12] Dreamer3 has joined the channel [13:16] benvie: check this out, I made an unholy baby between buffer and dataview https://github.com/Benvie/view-buffer [13:16] ningu: you could call it "buffer with a view" [13:17] benvie: lol a view of the park maybe [13:18] guidocalvano_ has joined the channel [13:19] EvRide has joined the channel [13:20] ningu: hrm, where are the docs for DataView? [13:21] benvie: https://developer.mozilla.org/en/JavaScript_typed_arrays/DataView [13:21] ningu: aha [13:21] benvie: node's DataView shows the indexes as Uint8 and that's not changeable, but there's no supposed to be any indexes showing actually [13:21] ningu: didn't realize it was a js feature, not node [13:22] benvie: like in Chrome you won't see any indexes [13:22] benvie: so it's basically like a Uint8Array + DataView in node [13:23] benvie: so ViewBuffer uses a DataView underneath to do the reading and writing of the various types without having to make a bunch of different Typed Arrays [13:25] ningu: http://imgur.com/LwPeG [13:25] whaley has joined the channel [13:31] crutex has joined the channel [13:32] enmand has joined the channel [13:33] _rockbot_ has joined the channel [13:36] trivol has joined the channel [13:36] pickelsss has joined the channel [13:37] kyonsalt has joined the channel [13:37] HardFu has joined the channel [13:37] HardFu: Hey everyone [13:38] HardFu: I have a small favor, we are building a proof of concept app that we are pitching to judges in two hours (at Startup Weekend Copenhagen) [13:38] HardFu: can you visit http://www.getdecided.com/ and make a few clicks? [13:38] HardFu: maybe even login and make an opinion [13:38] HardFu: thanx! [13:41] clu3 has joined the channel [13:41] yati: Hi. I asked this in #javascript also, but no one seems to have a solution. Can JS functions be serialized for transmission over a network? [13:42] MartinCleaver has joined the channel [13:42] MartinCleaver has joined the channel [13:42] rauchg has joined the channel [13:44] nbari: ningu: i think I have it working, couuld you please take a look at http://pastebin.com/hvhhQNWc [13:45] nbari: I can now print on scren or using console.log every time a new messages is pushed to redis [13:47] jammanbo has joined the channel [13:47] nbari: for this I use a jquery $.ajasx call and do a long-polling, but I did not undestand why or in what I am wrong since I am not using sockets.io for this [13:47] subbyyy has joined the channel [13:48] jammanbo: Hi. Noob here looking for some advocacy. My app must display a google map with many markers. Zooming and panning will change the markers. Data is in mongodb. Would node have significant advantages over ajax calls to a Rails app for this? [13:49] mattgifford has joined the channel [13:50] arduix has joined the channel [13:50] yati has left the channel [13:55] TheJH has joined the channel [13:56] zomg: jammanbo: don't think there's much benefit [13:57] jammanbo: zomg: Its more about realtime updates, is it? [13:57] timoxley: jammanbo throughput will probably be increased and amount of hardware you need to throw at it will be decreased. [13:57] stagas has joined the channel [13:58] zomg: Yeah you might get better perf but whether or not it's worth it, wouldn't know [13:58] zomg: especially if you're already familiar with Ruby [13:58] timoxley: jammanbo if you don't have a lot of traffic it probably doesn't matter, will come down to dev environment preference [14:00] salva has joined the channel [14:02] timoxley: jammanbo also, there's probably a tech on some platform, or a service somewhere that does all that for you [14:02] dannyamey has joined the channel [14:03] timoxley: jammanbo mapping is a pretty comprehensively tooled domain [14:03] jammanbo: indeed ruby is my native language. Its just we [naturally] are expecting high volumes of requestes and data, so just wondered about node ... [14:03] thinkt4nk has joined the channel [14:08] nbari: how to 'wake' or make http.createServer to response when new data arrives [14:09] jimmyrcom has joined the channel [14:11] jxie has joined the channel [14:11] jammanbo: ooh, can I try ... on('data' ..) ? [14:16] dylang has joined the channel [14:18] malcolmva has joined the channel [14:19] innoying has joined the channel [14:20] wilmoore has joined the channel [14:21] chadskidmore has joined the channel [14:24] mattgifford has joined the channel [14:26] mikl has joined the channel [14:26] josh-k has joined the channel [14:28] TheAlphaNerd has joined the channel [14:28] threecreepio has joined the channel [14:28] oldsplice has joined the channel [14:28] redir has joined the channel [14:35] dtrejo has joined the channel [14:36] chovy has joined the channel [14:37] stagas has joined the channel [14:39] jammanbo has left the channel [14:40] jtsnow has joined the channel [14:41] socialhack has joined the channel [14:45] pgte has joined the channel [14:47] stagas has joined the channel [14:48] AndreasMadsen has joined the channel [14:53] redir has joined the channel [14:56] jakehow has joined the channel [14:59] thinkt4nk has joined the channel [15:00] madtimber has joined the channel [15:01] HacDan has joined the channel [15:02] jacobolus has joined the channel [15:02] dragansah has joined the channel [15:05] jtsnow has joined the channel [15:07] louissmit has joined the channel [15:07] stagas has joined the channel [15:09] madtimber has joined the channel [15:12] Maxani has joined the channel [15:17] stagas has joined the channel [15:24] ovaillancourt has joined the channel [15:25] sha0coder has joined the channel [15:25] sha0coder: hi [15:26] sha0coder: if i call a func 10 times, work, if i call it for ever while(1) { func() } doesnt work [15:26] sha0coder: if i call it 10.000 times also work [15:27] sha0coder: is possible to make infinite loops? [15:27] YoY has joined the channel [15:28] zomg: sha0coder: you can use a recursive setTimeout [15:28] zomg: or process.nextTick or whatever it was [15:29] sha0coder: i'm using setTimeout [15:31] dthompso99 has joined the channel [15:32] dthompso99 has left the channel [15:33] arduix has joined the channel [15:34] sha0coder: ok, i changed the while(1) by a recursive scheduled function [15:34] sha0coder: thnx [15:34] sha0coder: it works [15:34] haandol has joined the channel [15:35] mandric has joined the channel [15:35] innociv has joined the channel [15:35] jacobolus has joined the channel [15:35] jxie has joined the channel [15:36] rickibaloba` has joined the channel [15:38] isaacs has joined the channel [15:38] spion1 has joined the channel [15:46] pid has joined the channel [15:46] infynyxx has joined the channel [15:48] stafamus has joined the channel [15:48] brianseeders has joined the channel [15:49] csprite has joined the channel [15:53] JJMalina has joined the channel [15:55] bsacke has joined the channel [15:57] artusrocha has joined the channel [15:59] daithi44 has joined the channel [15:59] dnolen has joined the channel [15:59] pid has joined the channel [16:01] t0mmyvyo has joined the channel [16:01] adrianF has joined the channel [16:01] doki_pen: does anyone know of a streaming json parser? [16:03] jtsnow has joined the channel [16:05] devongovett has joined the channel [16:06] doki_pen: yajl, I guess [16:07] evilnate has joined the channel [16:07] alejandromg has joined the channel [16:08] distrus has joined the channel [16:09] orlandovftw has joined the channel [16:13] evilnate has joined the channel [16:13] evilnate has joined the channel [16:14] evilnate: hello [16:17] evilnate: quiet... [16:17] evilnate: oh i know [16:17] evilnate: it's sunday morning and everyone but me is sleeping... [16:18] pid has joined the channel [16:18] ningu: only morning in the us [16:18] ningu: there are (gasp) other parts of the world :) [16:19] evilnate: hahaha [16:19] evilnate: /me trollface [16:19] evilnate: damn, still need to implement actions on this piece [16:19] RLa has joined the channel [16:20] phoochka has joined the channel [16:21] evilnate: ningu: where are you located? [16:21] ningu: frankfurt [16:21] Hanspolo has joined the channel [16:21] ningu: but I am american [16:21] ningu: actually, of late I'm located various different places :) [16:22] evilnate: well that's fun [16:24] pendlepa1ts has joined the channel [16:25] evilnate: .exit [16:25] evilnate: haha nope [16:25] Brandon_R has joined the channel [16:25] ovaillancourt has joined the channel [16:25] evilnate has joined the channel [16:26] Maxani has joined the channel [16:26] Brandon_R: hey guys [16:28] take_cheeze has joined the channel [16:28] evilnate: Brandon_R: hello [16:28] Brandon_R: Do you know how to compile libuv on visual studio? [16:29] evilnate: Brandon_R: as part of node? or standalone? [16:29] paulapps has joined the channel [16:29] Brandon_R: standalone [16:30] Brandon_R: i am using the express version [16:30] evilnate: well there is a vcbuild.bat file [16:30] Brandon_R: oh [16:30] evilnate: in the root of the libuv repo [16:30] evilnate: check that out [16:30] evilnate: but i think the "preferred" way is to simply add it as a "dependency" to your gyp project [16:31] Brandon_R: i'll have to check up on gyp [16:31] ningu: evilnate: are you tootallnate or a different nate? [16:31] evilnate: <_< >_> [16:31] evilnate: :) i'm tootallnate, just working on fun little irc client [16:31] josh-k has joined the channel [16:32] ningu: I see [16:32] ningu: that takes me back to when I was 13 [16:32] hij1nx_ has joined the channel [16:32] ningu: I wrote a few irc clients [16:32] ningu: I also got pretty good at telnet'ing to the server and typing the protocol in directly [16:33] evilnate: ningu: damn that's prop [16:33] evilnate: *pro [16:33] ningu: well, I did it to debug things I think [16:33] ningu: not to chat [16:33] evilnate: hahaha [16:33] evilnate: still [16:33] evilnate: gotta stop wasting my time though [16:33] evilnate: :( need to focus on the book [16:33] ningu: the book? [16:34] ppcano has joined the channel [16:34] evilnate: http://www.manning.com/cantelon/ [16:34] ningu: aha [16:34] ppcano has joined the channel [16:34] Brandon_R: you are writing it? [16:34] Brandon_R: cool [16:34] Brandon_R: i should write a book one of these days [16:35] evilnate: ya me, TJ, and Mike Cantelon [16:35] evilnate: it's really hard [16:35] ppcano has joined the channel [16:35] evilnate: at least for me [16:35] dtrejo has joined the channel [16:35] Brandon_R: i'm not really goot at english tho [16:35] evilnate: but it'll be really solid when it gets out ;) [16:35] ppcano has joined the channel [16:35] evilnate: Brandon_R: I know there's a japanese node book [16:36] ppcano has joined the channel [16:36] ramitos has joined the channel [16:36] Brandon_R: :) [16:36] xSmurf has joined the channel [16:37] ppcano has joined the channel [16:37] evilnate has joined the channel [16:38] ningu: I would find the challenge to be making sure all the code examples were consistent and actually worked [16:38] patcito has joined the channel [16:38] Brandon_R: books are too static for something like node [16:38] ningu: well, you can say that for almost any piece of software [16:39] ningu: but it's good to have a complete document even if it gets out of date fairly soon [16:39] evilnate has joined the channel [16:40] Brandon_R: well if you write about the underlying philosophy of node etc, that probably won't change, but a chapter on crypt.cc version 1.3 probably will :P [16:40] ningu: I'm surprised tj is writing a book. he doesn't seem the type to tell people how things are done :) [16:40] joshsmith has joined the channel [16:41] ppcano has joined the channel [16:44] Brandon_R: is using libuv as a dll or static library better? [16:45] rtgibbons has joined the channel [16:45] evilnate: Brandon_R: I think gyp prefers static if that helps your decision at all [16:45] evilnate: when it comes to "dependencies" at least [16:45] Brandon_R: gonna see if this works [16:46] graeme_f has joined the channel [16:46] intabulas has joined the channel [16:46] Vainoharhainen has joined the channel [16:48] chadskidmore has joined the channel [16:50] MartinCleaver has joined the channel [16:51] c4milo has joined the channel [16:52] TooTallNate has joined the channel [16:53] ppcano has joined the channel [16:54] HacDan has joined the channel [16:56] xSmurf has joined the channel [16:58] Vespakoen has joined the channel [17:01] thinkt4nk has joined the channel [17:02] joemccann has joined the channel [17:02] inode has joined the channel [17:02] Sonny has joined the channel [17:02] inode: I wan to understand how nodejs works ... ! [17:02] Sonny: hi i need to install socket.io but i keep getting this error: [17:03] Octayn: inode: in what way? [17:03] inode: When we say that it's event-driven it means that it doesn't open an thread for every request ... true ? [17:03] warz has joined the channel [17:04] inode: what do you mean ? [17:04] Octayn: No, we mean that when we say it is single treaded. You can have event-based multithreading. [17:04] Sonny: can i write something? [17:04] Sonny: i can't send paste [17:04] Sonny: ohhhh [17:04] TooTallNate: Sonny: use gist [17:04] Sonny: the / in the beggining xD [17:04] ramitos has joined the channel [17:04] Sonny: ./usr/local/lib/nodejs/.npm/ws/0.4.11/package/wscript:20: error: could not configure a cxx compiler! [17:05] Sonny: TooTallNate: npm not gonna work? [17:05] inode: I mean that I have to run node with terminal for creating an website that shows the content from database .. true ? [17:06] TooTallNate: Sonny: i meant use gist to paste/share code easily [17:06] TooTallNate: npm should work fine [17:06] Sonny: do you have teamviewer or something? [17:06] bingomanatee: I'm getting a message "Killed" when running a long node script in Linode/Ubuntu [17:06] bingomanatee: is this command being issued by Ubuntu or Linode? [17:06] TooTallNate: Sonny: gist.github.com [17:06] bingomanatee: (or node?) [17:07] brainss has joined the channel [17:09] TooTallNate: bingomanatee: likely the operating system [17:09] bingomanatee: thanks [17:10] Sonny: TooTallNate: https://gist.github.com/40b1d7fce0490101d9b9 [17:10] xSmurf has joined the channel [17:10] TooTallNate: Sonny: you don't have g++ and friends installed [17:10] TooTallNate: you need to install a C++ compiler [17:11] Sonny: apt-get install g++? [17:11] TooTallNate: Sonny: yes, but i think you need more [17:12] Octayn: aptitude install build-essential [17:12] skomski has joined the channel [17:13] maletor has joined the channel [17:13] TooTallNate: Sonny: did you install node from a package manager? [17:13] Sonny: TooTallNate: i've used apt-get [17:14] TooTallNate: ok, explains why you don't have a C++ compiler already :p [17:14] evilnate: ☺ [17:15] RLa: Sonny, i think it's build-essential package you need [17:15] RLa: Sonny, and install openssl and libssl-dev packages too [17:15] Brandon_R: i need help [17:15] Brandon_R: i have a main.cpp file with a libuv timer and the libuv git checkout is on my desktop [17:16] Sonny: RLa: build-essential is downloading [17:16] justicefries has joined the channel [17:17] Brandon_R: do i add libuv to my include directories? [17:17] Brandon_R: or do i need to build it first [17:17] dragansah has joined the channel [17:18] Sonny: RLa: https://gist.github.com/2198403 [17:18] RLa: for compiling you need it's headers, for linking you need libuv itself compiled [17:18] ningu: ups is my package manager [17:18] RLa: so you have something to link against [17:18] tylerstalder has joined the channel [17:19] xSmurf has joined the channel [17:19] joemccann has joined the channel [17:19] Brandon_R: hum [17:22] Sonny: TooTallNate: https://gist.github.com/2198403 [17:22] gozala has joined the channel [17:23] TooTallNate: einaros: ^ [17:24] TooTallNate: oh Sonny [17:24] TooTallNate: i know what it is [17:24] TooTallNate: your npm version is likely outdated [17:24] TooTallNate: do `npm --version` [17:24] papple has left the channel [17:25] Sonny: 0.2.19 [17:25] TooTallNate: ok [17:25] TooTallNate: that is [17:25] TooTallNate: ANCIENT [17:25] TooTallNate: hahaha [17:25] Sonny: haha [17:25] Sonny: ok i'll try to update that [17:25] TooTallNate: that's why package mangers + node are no good [17:25] TooTallNate: (other than npm itself :p) [17:26] TooTallNate: Sonny: 1) uninstall the npm from apt-get 2) follow the instructions at npmjs.org [17:26] TooTallNate: Sonny: probably would be good thing to ask what `node -v` says as well... [17:26] Sonny: haha ok [17:26] Sonny: v0.4.9 [17:26] TooTallNate: aye caramba [17:27] TooTallNate: the latest stable version is v0.6.13 [17:27] Sonny: that's the lesson to not to use apt-get very often [17:27] TooTallNate: so again, rather ancient [17:27] TooTallNate: apt-get is ok, but best for stable software [17:27] TooTallNate: node is still newish, and development moves fast [17:27] Sonny: ok then from beggining because im total noob how to uninstall npm [17:27] ironbridge has joined the channel [17:28] Sonny: and node [17:28] RLa: TooTallNate, are there experiments to use apt-get in place of npm too? [17:28] TooTallNate: apt-get remove nodejs npm? [17:28] ningu: apt-get remove? [17:28] khrome has joined the channel [17:28] TooTallNate: RLa: i wouldn't know, but not that i know of [17:28] RLa: TooTallNate, with ruby gems that has caused a lot of trouble [17:28] ningu: seems like a bad idea since a lot of things mix module versions [17:28] Sonny: tnx [17:29] RLa: so i really hope they do not start packaging node modules as native packages [17:29] TooTallNate: i don't think anyone is looking into that; npm is the "blessed" packager at this point [17:29] ningu: I think npm does it right basically -- it would only be annoying if you had like 50 or 100 top-level modules for your app [17:29] ningu: well, by annoying I mean slow :) [17:30] TooTallNate: when it comes to deployment-time i like to eliminate npm from the equation [17:30] Brian` has joined the channel [17:30] TooTallNate: i.e. commit node_modules to the repo, or just use a tarball [17:30] ningu: there are different views on that [17:30] ironbridge: Hi all. Does anyone know if there is a way to increase the node http post body size? I'm getting an error that ells me that my limit is 8k. [17:30] ningu: I specify the versions in package.json and let npm install them [17:30] RLa: maybe not fedora people, i have heard they have very strict policy of distributing any part that looks like library as a library through rpm [17:30] TooTallNate: ningu: sure, but there's still an uncertainty level [17:31] TooTallNate: ningu: that's why `npm shrinkwrap` was created [17:32] TooTallNate: RLa: but no fedora person is gonna manually go through all the packages in npm, port them to rms, it's just impossible [17:32] TooTallNate: s/rms/rpms [17:32] Qalqi has joined the channel [17:33] brianseeders has joined the channel [17:33] Qalqi has joined the channel [17:35] arduix has joined the channel [17:35] bryn has joined the channel [17:35] sha0coder has joined the channel [17:37] bryn: window [17:37] paulapps has joined the channel [17:37] bryn: join alskdjflskdjflkdjf [17:37] evilnate has joined the channel [17:38] Knopex has joined the channel [17:38] meandi11 has joined the channel [17:38] Knopex has left the channel [17:39] bryn has joined the channel [17:40] Morkel has joined the channel [17:41] mikeal has joined the channel [17:43] evilnate has joined the channel [17:44] cognominal has joined the channel [17:45] ohtogo has joined the channel [17:45] evilnate has joined the channel [17:45] evilnate has joined the channel [17:46] TooTallNate has left the channel [17:46] phlff has joined the channel [17:47] evilnate has joined the channel [17:47] TooTallNate has joined the channel [17:47] phlff: How would someone evaluate the different MySQL ORM's out there? [17:47] worknet70 has joined the channel [17:47] pspeter3 has joined the channel [17:47] sha0coder has joined the channel [17:47] Sonny: i'm having now problem with installing npm https://gist.github.com/2198560 [17:48] dodo__ has joined the channel [17:48] RLa: phlff, i guess you need to write some identical app using all of them and then decide [17:48] Octayn: Sonny: installing npm? it comes with node [17:49] Octayn: Sonny: you need to run the shell as root, not curl [17:49] phlff: RLa: that sounds painful. Joynent should implement a voting system for modules which have overlapping functionality. [17:49] pspeter3 has left the channel [17:49] RLa: and new but awesome modules would never get used since old ones will have most votes? [17:50] Sonny: Octayn: sudo su? [17:50] Octayn: Sonny: no [17:50] jgornick has joined the channel [17:50] Octayn: Sonny: Seriously, why are you even using that script. npm comes with node [17:50] Octayn: Sonny: are you using your distro's packages? [17:51] RLa: phlff, as far as i know there is only one mysql orm for node, it's sequilize (or something like that) [17:51] Sonny: Octayn: Dunno i've used https://github.com/isaacs/npm fancy unix [17:51] yawNO has joined the channel [17:51] RLa: hm, maybe new stuff has come out [17:52] Octayn: Sonny: get the source tarball and compile it [17:52] Sonny: Octayn: wut? [17:53] Octayn: Get the source tarball. (HINT: http://nodejs.org/dist/v0.6.14/node-v0.6.14.tar.gz). Then compile it. [17:53] Sonny: Octayn: I'm total noob is there any tutorial :)? [17:53] jimbot has joined the channel [17:53] arduix has joined the channel [17:53] RLa: you can download the tarball with wget http://nodejs.org/dist/v0.6.14/node-v0.6.14.tar.gz [17:53] RLa: then use tar -xf command to unpack it [17:54] Octayn: Sonny: https://github.com/joyent/node/wiki/Installation [17:54] jerkchicken has joined the channel [17:55] automata has joined the channel [17:56] Brandon_R has joined the channel [17:57] Brandon_R: i need some help building uv on visual studio c++ [17:57] mikeal has joined the channel [17:57] jerkchicken: when do session.value = foobar; while using session() from express.js did i create value or is value apart of express.js? [17:58] krnl has joined the channel [17:58] TooTallNate: Brandon_R: what's the problem? [17:58] jerkchicken: when i do* [17:58] Brandon_R: when i run vcbuild, it says there is a syntax error on line 20 [17:58] ironbridge: Anyone out there using restify.js? If so, have you ever run into issues with the request body size being limited to 8k. to [17:58] Brandon_R: in uv_gyp [17:58] TooTallNate: Brandon_R: gist? [17:58] Brandon_R: k [17:59] AndreasMadsen has joined the channel [17:59] Hockmeister has joined the channel [17:59] Brandon_R: https://gist.github.com/2198660 - check at the bottom [17:59] justicefries has joined the channel [17:59] krnl: I'm trying to create an async iteration. because of asyncronness, it continuously have to call a callback on every iteration, but i afraid my callstack will be too huge. is it possible to call a function in the context of not the current function but it's caller? [18:01] TooTallNate: Brandon_R: are you running the vcbuild.bat? [18:01] westg: arguments.callee? [18:01] Brandon_R: yeah from the visual studio cmd line [18:01] westg: krnl: have you tried the async module? [18:01] krnl: westg: no i take a look [18:01] yawNO has joined the channel [18:01] westg: that might be useful [18:01] RLa: krnl, call on next tick? [18:01] westg: it cleans up the callback pyramid very fast [18:02] conner has joined the channel [18:02] TooTallNate: Brandon_R: and are you on python 2 or 3? [18:02] Brandon_R: 3 [18:02] Brandon_R: 3.2 [18:02] TooTallNate: there's your problem [18:02] westg: bingo [18:02] TooTallNate: gyp only supports 2 for now [18:02] Brandon_R: oh [18:02] krnl: RLa: ill try that too. but will the process's next tick stuff will drop the context of the current caller? [18:02] gerred has joined the channel [18:02] RLa: krnl, hm, i think so [18:02] Octayn: krnl: what contex? [18:02] Octayn: *context [18:02] Octayn: `this`? [18:02] RLa: i think it drops .callee and stuff [18:03] Brandon_R: gonna go install 2.9 thanks for the heads up [18:03] TooTallNate: sure np [18:03] Octayn: Brandon_R: there is no 2.9 [18:03] Octayn: 2.7 is the last of the python 2 series [18:03] RLa: 'this' is just a pointer which you can bind to next function or pass as argument [18:03] Brandon_R: 2.7 [18:03] TooTallNate: http://www.python.org/download/releases/2.7.2/ [18:05] Brandon_R: can i install it side by side with 3.2 or do i need to uninstall 3.2? [18:05] TooTallNate: i think side-by-side is fine [18:05] Octayn: they can coexist. [18:05] yawNO: you can have both [18:05] Brandon_R: thanks [18:05] TooTallNate: as long as the 2.7 one is first in the PATH [18:05] krnl: Octayn: the problem is something similar: https://gist.github.com/2198707 [18:06] hunterloftis has joined the channel [18:06] Octayn: ah it's a recursive function [18:06] cyphase has joined the channel [18:06] TooTallNate: krnl: if it's an async function, then there's a new call stack on each iteration [18:07] aho has joined the channel [18:07] krnl: TooTallNate: ok thnx [18:09] yhpark: hi [18:09] yhpark: Has async exception handling included in latest node? [18:10] devongovett has joined the channel [18:10] RLa: domains? [18:10] RLa: did they figure out how to implement them? [18:11] achiu has joined the channel [18:12] sha0coder has joined the channel [18:12] Brandon_R: ok [18:12] Brandon_R: done but i got a red error at the end [18:12] Vespakoen has joined the channel [18:12] aspecto has joined the channel [18:13] Brandon_R: https://gist.github.com/2198771 [18:13] sorensen has joined the channel [18:13] sorensen__ has joined the channel [18:14] TooTallNate: Brandon_R: msbuild uv.sln /p:Configuration=Debug|Win32 /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo [18:14] TooTallNate: Brandon_R: it's failing here though https://github.com/joyent/libuv/blob/master/vcbuild.bat#L82 [18:15] maletor has joined the channel [18:17] Sonny: can someone help me on teamviewer? [18:17] joemccann has joined the channel [18:17] TooTallNate: Sonny: what is teamviewer? [18:18] benvie: oooh [18:18] benvie: building node now to test out this -i flag =D [18:18] Sonny: TooTallNate: You see my screen and can move with mouse and stuff. [18:18] sha0coder has joined the channel [18:18] TooTallNate: benvie: won't work in mintty quite yet [18:18] TooTallNate: benvie: where are you gonna try it? [18:19] Marak has joined the channel [18:19] Octayn: Sonny: or instead you could ask some good questions [18:19] TooTallNate: Sonny: you mean building an application like that? [18:19] benvie: was going to try that, but it's close enough no? [18:19] benvie: what's miissing [18:19] t0mmyvyo has joined the channel [18:19] TooTallNate: benvie: i think i'll throw a "cannot call method getWindowSize() of "stream"" [18:19] Sonny: ok so i'm just gonna write the question [18:20] justicefries has joined the channel [18:20] benvie: oh I'll see if I can jury rig it up for a test flight [18:20] maletor has joined the channel [18:20] Sonny: the last step of https://github.com/joyent/node/wiki/Installation make install causes [18:20] TooTallNate: benvie: since it'll be trying to call tty functions on a regular net.Stream [18:20] Sonny: OSError: [Errno 30] Read-only file system [18:20] TooTallNate: benvie: but ya, try it out; let me know [18:20] pizthewiz has joined the channel [18:20] benvie: i think I changed my thing a while back to not use those anyway [18:21] TooTallNate: Sonny: are you using `sudo`? [18:21] Sonny: yeah [18:21] benvie: when i was getting it to work with tty.js in the browser [18:21] markwubb_ has joined the channel [18:21] thetony: chmod 777 / -R (don [18:21] TooTallNate: benvie: you mean youre using a patched node? [18:21] thetony: don't really do that [18:21] benvie: not a patched node [18:22] benvie: but I don't use node's repl module or readline at all and barely use tty [18:22] TooTallNate: benvie: but -i uses node's repl :p [18:22] Sonny: so what can be a problem [18:22] benvie: we shall see [18:22] Octayn: Sonny: where are you installing? [18:22] Sonny: i use this as shared folder via virtualbox [18:23] TooTallNate: Sonny: do you have write access to that folder? [18:23] Sonny: i'm using this as root dunno [18:23] Octayn: Can you normally write to it? [18:23] TooTallNate: it's a config setting in virutal box [18:23] TooTallNate: Sonny: and why aren't you just using the windows version of node then? [18:23] sh1mmer has joined the channel [18:24] Sonny: Because windows version is not so supported [18:24] crutex has joined the channel [18:24] Sonny: and i'll need that in future on linux [18:24] shanem has joined the channel [18:24] Sonny: i'll try to copy node folder on to linux system [18:25] WarheadsSE: ACTION blinks [18:26] benvie: weeee [18:26] meandi12 has joined the channel [18:26] benvie: it almost worked out fo the box [18:26] TooTallNate: Sonny: windows version is very much supported [18:26] benvie: it's kind of retardo working but it's almost there [18:26] TooTallNate: what does "almost out of the box" mean? [18:26] WarheadsSE: works quite well.. I am guessing you have an issue with a binary linked module ? [18:27] benvie: I did [18:27] benvie: in mintty [18:27] benvie: node -i ultra-repl [18:27] bandu has left the channel [18:27] benvie: and it worked partially [18:27] TooTallNate: i don't really think that'll do anything :p [18:27] benvie: it did though [18:27] TooTallNate: the -i is only accounted for when process.argv.length == 1 [18:27] benvie: it detected the height correctly [18:28] benvie: the top blue bar is there [18:28] Brandon_R: ok built [18:28] Brandon_R: now how to i include it in a vcc project? [18:28] benvie: maybe issue is the keybinds aren't working but I think that's a mintty thing [18:28] Sonny: TooTallNate: ehh... i hate when something comes wrong. [18:29] Sonny: i'll try that windows version [18:29] TooTallNate: Sonny: anyways, it sounds like the shared drive you're trying to write to has read-only access [18:29] Sonny: TooTallNate: but it's not thats a problem [18:30] WarheadsSE: sounds like a samba share would make this easier.. [18:30] WarheadsSE: If, that is, sonny insists on using linux vm for node. [18:30] TooTallNate: Sonny: well node will install to `/usr/local` by default, so unless you gave "--prefix" when configuring then that's whats happening [18:31] Maxani has joined the channel [18:31] ako has joined the channel [18:31] syntaxiko has joined the channel [18:32] Sonny: How can i check that folder is read only? [18:32] Octayn: stat is a first try to check for +w permissions, or you could just try to touch a file [18:33] draginx has joined the channel [18:33] draginx: Whats the recommended MVC app with nodejs? [18:33] Brandon_R: TooTallNate: after it has finished building, how do i include it [18:34] Sonny: Access: (0770/drwxrwx---) Uid: ( 0/ root) Gid: ( 1002/ vboxsf) [18:34] WarheadsSE: draginx: recent G+ points to monorail ? [18:34] TooTallNate: Brandon_R: the only way I know how to do it is the way node does it [18:34] TooTallNate: Brandon_R: https://github.com/joyent/node/blob/master/node.gyp#L52-61 [18:35] draginx: WarheadsSE: cant even find its github/doc O_o [18:35] draginx: nvm got it [18:35] benvie: I guess I didn't realize it [18:36] Sonny: TooTallNate: Access: (0770/drwxrwx---) Uid: ( 0/ root) Gid: ( 1002/ vboxsf) [18:36] jacobolus has joined the channel [18:36] benvie: but I almost had mintty working as it was before [18:36] ParadoxQuine has joined the channel [18:36] TooTallNate: benvie: that must have been it :D [18:36] ningu has joined the channel [18:36] benvie: I forgot I did a bunch of work to get it semi-working with tty.js [18:37] benvie: which is the same set of issues [18:37] TooTallNate: benvie: cause there's literally 0 chance that `node -i some-file.js` doesn't anything [18:37] TooTallNate: https://github.com/joyent/node/blob/master/src/node.js#L122 [18:37] yawNO has joined the channel [18:37] benvie: yeah it just started up like half working and I assumed that was it lol [18:38] TooTallNate: benvie: i have #2922 almost ready, just needs docs [18:38] TooTallNate: maybe some tests [18:38] brianleroux has joined the channel [18:38] TooTallNate: that should make the regular readline and repl usable over a net.Socket including mintty [18:39] WarheadsSE: Random Survey : How many here using ARM ? [18:39] TooTallNate: benvie: do you know if mintty is line-buffered or in raw mode somehow? [18:39] pizthewiz has joined the channel [18:39] Sonny: oh comeone :C [18:40] Sonny: ichmod 777 ../node-v0.6.14 [18:40] Sonny: i've even tried this [18:40] benvie: well [18:40] TooTallNate: Sonny: `make install` copies files into `/usr/local` [18:40] arduix has joined the channel [18:40] benvie: one sec [18:40] benvie: it's uh which one is the normal one [18:41] benvie: I think I forced it to do this, let me see what I did [18:41] Sonny: TooTallNate: OSError: [Errno 30] Read-only file system [18:41] wilmoore has joined the channel [18:41] Sonny: TooTallNate: Want the whole console log? [18:41] WarheadsSE: Sonny? which linux is this ? [18:41] TooTallNate: Sonny: `ls -l /usr/local` [18:41] Sonny: ubuntu 11.10 [18:41] WarheadsSE: gist or pastie/pastebin .. [18:41] ningu: I manage my node install with nvm [18:41] WarheadsSE: are you doing this as sudo/su ? [18:41] ningu: but building from source like that works perfectly well too [18:42] Sonny: https://gist.github.com/2198948 [18:43] Sonny: both of em [18:43] WarheadsSE: Sonny: are you doing with sudo or as su ? [18:43] kirbysayshi has joined the channel [18:43] TooTallNate: Sonny: you're not using sudo [18:43] Sonny: as su [18:43] WarheadsSE: via sudo su [18:43] Sonny: i've tried via sudo su and sudo [18:43] h00k has joined the channel [18:44] WarheadsSE: so `sudo make install` craps [18:44] Qalqi: is there any module or something in nodejs to have some fun without actually going too much into the coding part? [18:44] WarheadsSE: and `sudo su; make install` craps as well ? [18:44] Sonny: same... [18:44] Sonny: that's makes me crazy [18:44] Qalqi: ither node or even in js [18:44] WarheadsSE: Qalqi: define :have some fun: [18:44] Octayn: Qalqi: what do you want to do that doesn't involve code, using a *programming language*? [18:45] trivol has joined the channel [18:45] Qalqi: well I tweak linux but never had to its source code [18:46] tylerstalder has joined the channel [18:46] RLa: maybe you want waterbear for node :) [18:46] Sonny: so there's no magic method to fix this? [18:46] WarheadsSE: ACTION blinks [18:46] WarheadsSE: node source != linux (kernel) sources [18:46] RLa: http://waterbearlang.com/garden.html?plugin=canvas [18:47] WarheadsSE: if you want to program, you're going to have to .. program [18:47] RLa: you can do programs without writing code yourself, just drag pieces together [18:47] Octayn: Qalqi: Linux isn't a programming language, or a programming environment.. [18:47] warz: or, become a superstar like kevin rose and people will give you money to watch other people code cool apps [18:47] systemfault: Linux is five letters! [18:48] WarheadsSE: ACTION facedesk [18:48] Qalqi: yeah, but C is. I was asking for a linux equivalent app in js [18:48] bshumate has joined the channel [18:48] pgte has joined the channel [18:48] Octayn: Your words don't make sense to me [18:48] ParadoxQuine: Qalqi: LOL whut [18:48] warz: He wants an application that he can easily tinker with, without knowing too much about javascript. [18:48] ningu: Qalqi: what are you trying to accomplish? [18:48] warz: Why is that hard to understand [18:49] ningu: there is a serious limit to how much tinkering you can do without coding [18:49] Octayn: Go tinker with firefox then [18:49] warz: He asked for nodejs [18:49] ParadoxQuine: waterbear is programming, it's just visual programming. same kind of thing, just simpler. seems like what he wants [18:49] caffine has joined the channel [18:49] Octayn: '..or even in js [18:49] ParadoxQuine: Qalqi: is waterbear not what you are looking for? [18:50] phlff has joined the channel [18:50] Qalqi: looking at it [18:50] Sonny: ok Sonny calm down and ask nicely again [18:50] ParadoxQuine: also...why don't you want to code? Just curious [18:50] Sonny: i'm having problem with make install [18:51] Sonny: but it says that it's Read-only file system [18:51] Octayn: Sonny: try and make a symlink [18:51] Sonny: symlink? [18:51] Octayn: Yes, a symlink. [18:51] WarheadsSE: ln -s old new [18:51] ningu: Sonny: why is /usr/local read-only? what kind of ubuntu install is this? [18:51] Sonny: it's clean ubuntu 11.10 [18:52] RLa: hm, waterbear seems quite interesting but its graphics could look better and more concise [18:52] ningu: Sonny: but is it a boot cd or what? [18:52] Sonny: it's iso cd [18:52] WarheadsSE: !doh [18:52] ningu: you can't install things on a cd [18:52] Octayn: Sonny's error is when the build tries to link out/Release/node to ./node [18:52] dgathright has joined the channel [18:52] Sonny: it's installed on disc okay? [18:53] WarheadsSE: So, then you have it installed to a disk in the virtual machine [18:53] crescendo|locals has joined the channel [18:53] Sonny: yeah [18:53] WarheadsSE: (we're just trying to be thorough) [18:53] Sonny: i know [18:54] crescendo|work has joined the channel [18:54] ParadoxQuine: sounds like the install is critically broken imo [18:54] ParadoxQuine: (the install of ubuntu) [18:54] Sonny: i think it's fine [18:54] WarheadsSE: Have you tried using the PPA ? [18:54] Sonny: i'll try to reboot [18:54] ParadoxQuine: is /usr/local/bin read-only? [18:55] WarheadsSE: its out there, already compiled to 0.6.14 [18:55] evilnate has joined the channel [18:55] crescendo has joined the channel [18:55] Sonny: WarheadSE: Nope [18:55] Sonny: ParadoxQuine: dunno how can i check [18:55] Octayn: The issue isn't with /usr/local, it's with making a symlink in the working dir [18:55] Octayn: Sonny: did you try making a symlink yet? [18:56] WarheadsSE: eg `ln -s README README.link` [18:56] Sonny: Octayn: dunno how to [18:56] WarheadsSE: ^ [18:56] Octayn: what WarheadsSE said [18:56] crescendo_ has joined the channel [18:56] Sonny: i'm tring to think how this works [18:56] Sonny: instead readme i need to write folder name? [18:56] Octayn: It doesn't matter what you write [18:56] WarheadsSE: we're just trying to make a link [18:57] TooTallNate: well duh creating a symlink on a windows drive isn't gonna work!! [18:57] kirbysayshi has joined the channel [18:57] TooTallNate: wow, bingo [18:57] WarheadsSE: if this is a shared folder, yeah.. [18:57] TooTallNate: Sonny: solution: don't compile node on the shared drive [18:57] WarheadsSE: ^ [18:57] Marak: WarheadsSE++ [18:57] Marak: for no reason [18:57] WarheadsSE: :) [18:57] Marak: :-D [18:57] Sonny: :S [18:57] TooTallNate: Marak++ cause he's a badasss [18:57] Sonny: ok how can i copy tar? [18:57] TooTallNate: Sonny: `cp source dest` [18:58] WarheadsSE: Sonny: cp [18:58] Marak: Can't we just agree we are all great? [18:58] Brandon_R: wow [18:58] Marak: lulz [18:58] Brandon_R: i am in dependency hell [18:58] WarheadsSE: lol.. try building a toolchain for ARM... [18:58] Marak: Brandon_R: with npm? [18:58] Sonny: oh great where can i copy this now... [18:58] Brandon_R: no [18:58] Brandon_R: npm is awesome [18:58] Marak: gems? [18:58] Brandon_R: libuv on windows [18:58] crescendo|work has joined the channel [18:58] TooTallNate: Sonny: i usually just do things in my HOME dir [18:58] Marak: oof [18:59] TooTallNate: Sonny: cd ~ [18:59] Octayn: Sonny: doesn't really matter [18:59] mikeal has joined the channel [18:59] TooTallNate: Brandon_R: what's the problem? [18:59] at4m has joined the channel [18:59] WarheadsSE: Sonny: how about `cp tarfile ~/` [18:59] TooTallNate: Sonny: http://mally.stanford.edu/~sr/computing/basic-unix.html [18:59] WarheadsSE: ~/ is a shortcut name for "home folder" [18:59] Brandon_R: no problem atm [18:59] Brandon_R: successful build haha [18:59] WarheadsSE: I'd really suggest just using windows node at this point [18:59] TooTallNate: Brandon_R: haha, i'd hardly call that hell then :p [18:59] zackattack has joined the channel [19:00] Brandon_R: the last 3 hours was :P [19:00] TooTallNate: WarheadsSE: ehh, at least we know the problem now [19:00] WarheadsSE: ;) [19:00] TooTallNate: Brandon_R: hahaha, gyp is a little steep at first but it grows on you i think [19:00] Brandon_R: gyp is cool [19:00] WarheadsSE: and you can make symlinks in windows (of sufficiently new release) but they arent posix compliant [19:00] TooTallNate: Brandon_R: anyways, come to me with gyp questions in the future if you get 'em [19:00] WarheadsSE: ACTION much prefers gyp [19:01] TooTallNate: WarheadsSE: but vmware can't [19:01] arduix has joined the channel [19:01] TooTallNate: err virtualbox or whateer [19:01] Octayn: vmware should be able to. junctions aren't exactly obscure. ntfs-3g does the right thing [19:01] Brandon_R: i'm debating whether to make a bat file to just run python gyp_timer from the command line [19:01] darrenlooby has joined the channel [19:01] uc has joined the channel [19:02] TooTallNate: Octayn: does `ln -s` work with ntfs-3g? [19:02] WarheadsSE: Marak: was that you that emailed me for a key the other day ? [19:02] jzacsh has joined the channel [19:02] Marak: WarheadsSE: i dont think so [19:02] Sonny: ok now i can wait 100 hours while it makes [19:02] Octayn: TooTallNate: pretty sure [19:02] WarheadsSE: Marak: ah, had an interesting email asking mr for 2 keys the other day [19:02] TooTallNate: ahh, well dunno then, guess vmware needs to step their game up :p [19:02] Marak: WarheadsSE: keys to what? [19:03] WarheadsSE: WarheadsSE [19:03] Marak: ohh [19:03] Marak: cant you just buy them? [19:03] WarheadsSE: Well it's actually free.. [19:03] WarheadsSE: (now) [19:03] Marak: no idea [19:03] Marak: im on mac os now [19:03] Marak: no port right? [19:03] WarheadsSE: nope [19:03] Marak: im too lazy to spin up a vm [19:03] Marak: so i havent played in years [19:03] WarheadsSE: due to it being DX & msvc [19:04] Marak: sure [19:04] fmeyer has joined the channel [19:04] at4m: ACTION  [19:04] WarheadsSE: some nice possibles coming along though, with NaCl/canvas though [19:04] WarheadsSE: on of these days [19:04] Marak: WarheadsSE: crazy idea, what would happen if you spun up windows vm with WarheadsSE instances and piped the video out to web and keyboard controls to game [19:04] WarheadsSE: just oww. [19:04] Brandon_R: TooTallnNate: thanks for all your help bro [19:05] Marak: WarheadsSE: its turned based right? you dont need real real-time [19:05] Brandon_R: TooTallnNate: finally got it to work :P [19:05] Marak: WarheadsSE: that would totally work, have you seen the stackvm thing? [19:05] WarheadsSE: it's turn based, but it's best to be somewhat realtime [19:05] WarheadsSE: for chat/view, etc [19:05] TooTallNate: Brandon_R: :) [19:05] Marak: WarheadsSE: http://browserling.com/ [19:05] Marak: you seen that? [19:05] WarheadsSE: haha yes [19:05] Marak: SubStack and pkrumins made that [19:06] WarheadsSE: yes.. I know who did that.. it's not going to work tough [19:06] Marak: :p [19:06] Marak: probably would prefer better then html at this point, lulz [19:06] Marak: >.< [19:06] WarheadsSE: the implications are just stupid-astounding for such overhead when it comes to the way the game operates [19:06] Marak: perform [19:07] dragansah has joined the channel [19:07] Qalqi: netcat seems interesting [19:07] Sonny: cat? [19:07] ningu: netlolcat [19:07] Sonny: i want cat [19:07] Sonny: xD [19:07] pgte has joined the channel [19:07] Qalqi: will screw it for some days [19:07] WarheadsSE: Well, if you can run C&C it should run warheads ot a degree.. [19:07] jzacsh has joined the channel [19:07] jzacsh has joined the channel [19:07] Qalqi: its the lolcat version of realcat [19:09] whaley has joined the channel [19:09] at4m has left the channel [19:09] daniel__ has joined the channel [19:10] Sonny: yes it works... [19:10] at4m has joined the channel [19:10] Sonny: thank you everybody who helped meh :D [19:10] bnoordhuis has joined the channel [19:11] jocafa has joined the channel [19:12] yaymukund: anyone know hwo to use relative urls with superagent? [19:12] caolanm has joined the channel [19:12] at4m has left the channel [19:13] at4m has joined the channel [19:13] kevin_jax has joined the channel [19:13] hackband has joined the channel [19:13] eldar_ has joined the channel [19:13] WarheadsSE: Sonny: be prepared for a massive crash course in linux.. [19:13] yaymukund: I get ECONNREFUSED when I try to do superagent.get('/login', etc.) [19:14] Sonny: warheadse: wait wut? [19:14] WarheadsSE: I'll ask again, anyone using the ARM port? [19:14] WarheadsSE: Sonny: it seems you're unfamiliar with linux. [19:14] Sonny: Oh [19:14] thinkt4nk_ has joined the channel [19:14] Sonny: yeah i'm having lessons in school but they are not teaching well [19:14] TooTallNate: yaymukund: how would relative work? what does '/login' mean? [19:15] kevin_jax: Hey can anyone guide me to structuring express app. [19:15] at4m has joined the channel [19:15] yaymukund: TooTallNate: I mean, I'd specify the base somewhere [19:15] yaymukund: TooTallNate: I was just confused because all the examples are relative, but I guess that's because they're meant to run in the browser? [19:17] TooTallNate: yaymukund: oh, ya, that is a little funny [19:18] yaymukund: well, I guess it does what it says on the tin: "SuperAgent is a small progressive client-side HTTP request library" [19:18] kevin_jax: would anyone want to tutor me on node/express etc over skype - i can compensate for your time (please have deployed app in prod before) [19:18] larsschenk has joined the channel [19:18] larsschenk has left the channel [19:19] arduix has joined the channel [19:20] enjalot has joined the channel [19:21] IrishGringo has joined the channel [19:21] kevin_jax: or if anyone wants to learn with me -- learning alone in a town with no tech is annoying [19:21] evilnate: WarheadsSE: i've used node on ARM in the past [19:21] evilnate: not currently [19:21] evilnate: but on both Debian and iOS in the past [19:22] WarheadsSE: Just wondering how many might be [19:22] evilnate: it's not a huge percentage [19:23] WarheadsSE: Yeah, ARM isn't a huge percentage in total [19:23] evilnate: but hell, WebOS embedded it so maybe it it's more than meets the eye [19:23] meandi13 has joined the channel [19:23] evilnate: (never sees anyone with a WebOS device anymore...) [19:24] fangel has joined the channel [19:24] kevin_jax: would anyone want to tutor me on node/express etc over skype - i can compensate for your time (please have deployed app in prod before) [19:24] jocafa: creationix might be a good person to talk to about arm [19:25] achiu has joined the channel [19:27] sandfox has joined the channel [19:27] WarheadsSE: yeah, but its just a survey really .. im the one packaging ot for Arch Linux ARM [19:27] Vespakoen has joined the channel [19:27] jxie_ has joined the channel [19:28] hz has joined the channel [19:31] MeanderingCode has joined the channel [19:32] dimdm has joined the channel [19:32] racar has joined the channel [19:35] Wa has joined the channel [19:35] fmeyer has joined the channel [19:37] igl1 has joined the channel [19:40] WeeJeWel has joined the channel [19:42] rtgibbons has joined the channel [19:43] `3rdEden has joined the channel [19:44] hellp has joined the channel [19:45] quijote has joined the channel [19:45] t0mmyvyo has joined the channel [19:49] garrensmith has joined the channel [19:49] trivol has joined the channel [19:50] mattgifford has joined the channel [19:52] yawNO has joined the channel [19:53] bradleymeck has joined the channel [19:54] ramitos has joined the channel [19:55] piscisaureus_ has joined the channel [19:55] TooTallNate has joined the channel [19:58] dragansah has joined the channel [20:00] kevin_jax has joined the channel [20:00] astropirate has joined the channel [20:00] pizthewiz has joined the channel [20:02] chadskidmore has joined the channel [20:06] rlidwka_ has joined the channel [20:07] WarheadsSE: TooTallNate: I did tell you that master built nicely with GYP, right ? [20:08] TooTallNate: WarheadsSE: oh nice :) what did you need to change (regarding "armv7" variable?) [20:08] arduix has joined the channel [20:09] Vespakoen has joined the channel [20:09] disappearedng has joined the channel [20:09] ctp6360 has joined the channel [20:11] WarheadsSE: essentialy that was the biggy. It's undocumented but you have to specify GYPFLAGS="-Darmv7=N" & some float operations settings if you target arm.. [20:11] vdemedes has joined the channel [20:11] WarheadsSE: I've got a non-distributed package that builds v8, then openssl, then nodejs [20:12] TooTallNate: WarheadsSE: i wanna add something to ./configure that adds the "armv7" variable as needed. what are the float settings? [20:12] WarheadsSE: those are dependant really [20:13] TooTallNate: that's the point of the configure scipts [20:13] TooTallNate: script [20:13] WarheadsSE: setting vfp type, and floatabi settings [20:13] TooTallNate: it detects stuff [20:13] AdamGoodrich has joined the channel [20:13] WarheadsSE: part of the issue is people assuming that uname will specify cleanly "arm" [20:13] halfhalo has joined the channel [20:13] TooTallNate: WarheadsSE: do you have an overall diff of the changes to the node repo? [20:13] WarheadsSE: they dont :p [20:13] TooTallNate: WarheadsSE: or your build process if there aren't any changes? [20:13] joshfinnie has joined the channel [20:13] WarheadsSE: actually, I didnt need to :) just had to dig in master & v8 to find the right settings [20:14] WarheadsSE: and *cough* make sure node gyp hands v8 gyp the right flags :p [20:14] nathan28 has joined the channel [20:15] WarheadsSE: the trick TooTallNate is that way float eabi is set: soft, softfloat, hard [20:15] benvie: so the main thing [20:15] TooTallNate: still, could you gist your build process? [20:15] benvie: I cannot get any of the keybinds going [20:15] benvie: I don't understand this at all [20:15] markwubb_ has joined the channel [20:15] TooTallNate: i wanna make this as smooth as building on the other archs [20:15] benvie: visually it's fine but [20:15] benvie: and I can write code, and press enter, and it works [20:15] benvie: but no meta keys of any kind [20:15] TooTallNate: benvie: i think it's cause you're only getting "data" events on "enter" [20:16] benvie: yeah [20:16] TooTallNate: that's the difference between "line-buffered" and "raw" [20:16] benvie: there's no keypress [20:16] benvie: oh [20:16] benvie: damn it [20:16] TooTallNate: benvie: "raw" you would be getting "data" on literally every ketpress [20:16] TooTallNate: keypress [20:16] benvie: well I have listeners for both data and keypress [20:17] TooTallNate: WarheadsSE: and was all this with the 0.6 branch ./configure-gyp script or with master? [20:17] WarheadsSE: master [20:17] WarheadsSE: so ~ 0.8+ [20:17] TooTallNate: benvie: i don't know if there is a way to make mintty be in raw mode [20:17] TooTallNate: benvie: but the bash in mintty has tab completion somehow... [20:18] TooTallNate: benvie: maybe we'd have to look at mintty's source and see how it's bash does it [20:18] TooTallNate: benvie: but it seems like something non-standard [20:18] benvie: I think there's just some key thing I'm missing here because it's so close to working right [20:18] benvie: like some of the key stuff works [20:18] TooTallNate: benvie: or maybe you just call "setRawMode()" on the fd even though it reports false for isatty() [20:19] benvie: can you do like [20:19] benvie: setRawMode.call(fd) or something? [20:19] benvie: tty.setRawMode [20:19] TooTallNate: no, it would require some more source changes i think :( [20:19] WarheadsSE: TooTallNate: the biggest things we always have to do is to sed python to be python2 because arch moved to 3 [20:19] willwhite has joined the channel [20:20] WarheadsSE: other than that, the right exports and it builds master ok [20:20] TooTallNate: WarheadsSE: oh, well that's an arch thing i think [20:20] WarheadsSE: yup [20:20] WarheadsSE: we just sed python to python2 [20:20] wendall911 has joined the channel [20:20] TooTallNate: and then whats your ./configure command look like? [20:21] WarheadsSE: i have to go fetch a car from the shop [20:21] dmilith: Is there any equivalent of "inspect()" method for Node? I mean "anObject.inspect()" which will show properties of given object (even if it's circular) [20:21] dmilith: ? [20:21] evilnate: dmilith: util.inspect()? [20:22] rtgibbons has joined the channel [20:22] dmilith: evilnate: thx [20:22] kriskowal has joined the channel [20:26] alm0nd has joined the channel [20:26] Brandon_R: hi [20:27] stephank: I'm trying to get HTTP Upgrade support into Connect. I have a working implementation, examples, tests, but I don't seem to be getting a lot of traction. Anyone know how to / can help me move this forward? https://github.com/senchalabs/connect/pull/506 [20:27] alm0nd: i'm working on a simple image upload form using expressjs, when validating filetypes should I check the type value or the mime value? [20:27] bingomanatee: hello - little help - can't get canvas installed on OSX - https://gist.github.com/9e24d0550bce6a0c0723#comments [20:28] bingomanatee: check for what purpose almond? [20:29] alm0nd: to ensure its an image and not something malicious, user selected wrong file etc [20:29] adrianF has joined the channel [20:30] bingomanatee: mime type … but the safest thing is to ensure it is not saved with an executable perimsssion. [20:30] bingomanatee: mime type … but the safest thing is to ensure it is not saved with an executable permission. [20:30] bingomanatee: sorry [20:30] bingomanatee: TooTallNate: ping [20:30] alm0nd: alright, thanks! [20:33] TooTallNate: bingomanatee: i dunno that's a weird one, are you sure the directory you're installing to has good permissions? [20:33] vdemedes has left the channel [20:33] TooTallNate: verbose unsafe-perm in lifecycle false [20:33] TooTallNate: verbose Setting uid from 0 502 [20:33] TooTallNate: verbose stack at uid setting Error [20:33] bingomanatee: i tried with, without sudo [20:35] cjm has joined the channel [20:35] bingomanatee: i am doing an install into node_modules and have already had a bunch of successful npm installs. [20:36] TooTallNate: bingomanatee: try downloading the repo into node_modules/canvas, and building manually [20:36] bingomanatee: okay [20:37] TooTallNate: it works for me though as expected [20:37] umren_ has joined the channel [20:37] TooTallNate: (with `npm install canvas`) [20:37] joemccann has joined the channel [20:40] ctp6360 has joined the channel [20:40] benvie: ok so [20:41] benvie: this line buffering thing [20:41] benvie: no good [20:42] bhelx has joined the channel [20:43] fmeyer has joined the channel [20:45] kesor has joined the channel [20:46] boltR has joined the channel [20:46] briancray has joined the channel [20:47] mikeal has joined the channel [20:48] TheEmpath has joined the channel [20:49] sandfox has joined the channel [20:49] TheEmpath: This will allow you to have the functionality of PHP short tags in files served by Node.js http: https://gist.github.com/2199631 [20:50] RLa: why not to add whole php parser too :) [20:50] bingomanatee: TooTallNate: when you type "which cairo" should you expect to get a result? [20:50] TheEmpath: RLa: because php is blocking. this is nonblocking [20:50] TheEmpath: RLa: And it allows you to write native JS to be processed without weird markup alternatives., [20:50] TheEmpath: ACTION stares at Jade. [20:50] TooTallNate: bingomanatee: nope [20:51] RLa: i'm not quite fond of putting code in templates but lot of people (php-ones) might like it [20:51] TheEmpath: It's handy when you need to alternate between a dev, a staging, and a production environment for css and js the client uses [20:52] csprite has joined the channel [20:53] yawNO: TheEmpath: this is quite possibly the worst thing i've ever seen in nodejs, no offence [20:53] TheEmpath: yawNO: yes, environment detection is horrendous. All environments are the same. [20:53] Wizek has joined the channel [20:53] Transformer has joined the channel [20:53] yawNO: TheEmpath: i mean the concept itself [20:54] TheEmpath: yawNO: the concept is meant to solve envrionment detection problems easily [20:54] TheEmpath: when you are wokring on a production environment and your JS is buggy... who likes wading through minified JS to figure out why? [20:54] Transformer has left the channel [20:54] yawNO: i think it's because i deeply detest the way php interacts with html [20:54] TheEmpath: BUT if you could detect your environment and, based on that, server either the whole js files or the minified ones.. now oyu can develop much faster [20:55] TheEmpath: esp when dealing with things like backbone.js [20:55] TheEmpath: utlimately, this is not meant ot be run per page request... i have a caching mechanism that assemlbes html pages aggressively [20:55] TheEmpath: i wouldn't recommend running this on each page request, obviously [20:56] marlun: I'm having some problems with node debugger, I saw the (old) video that ryan did here http://vimeo.com/19465332 but when I try to do the same and I write "list" on the debugger; line all I get back is [Function], and if I try to do "print x" the cursor just jumps down one line an the prompt changes into "...". What am I missing? [20:56] yawNO: also that is not asynchronous [20:56] TheEmpath: yawNO: whats blocking it? [20:56] EuroNerd has joined the channel [20:56] yawNO: loops, whiles etc [20:56] AAA_awright has joined the channel [20:57] TheEmpath: ... [20:57] rlidwka_: what do you use for manage node apps on a bunch of servers? [20:57] TheEmpath: Wanan turn your node.js server into a serial nightmare? USe one while loop and all benefits of node are gone! [20:57] TheEmpath: Is that the message we are going to tell our kids? [20:57] wao: rlidwka_: git [20:58] TooTallNate: benvie: this seems to be related http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTikt_f2gZBNeRk9D%3DQ%3DHe5Ce5GhOhbFvfwBukG7-%40mail.gmail.com&forum_name=mingw-users [20:58] yawNO: TheEmpath: wat? [20:58] benvie: ha I was JUST reading that page [20:59] yawNO: i dont mean to say its not efficient or anything.. just it isnt asynchronous [20:59] mraxilus has joined the channel [21:00] benvie: so my gathering from this was [21:00] benvie: windows is a piece of asshole shit [21:00] TooTallNate: benvie: this is a rather interesting problem. i'd like to hear bert's opinion on it [21:00] benvie: when it comes to consoles [21:00] TheEmpath: my understanding is that function calls are sent to a thread pool [21:00] TheEmpath: even if i loop through, because i am dispatching functions per iteration, the loop will finish, then the thread pool will process [21:00] benvie: the last time I saw him discussing it he was holfing the line on "not possible" [21:00] TooTallNate: benvie: at the end they basically figure it out i think [21:00] TheEmpath: ACTION may fundamentally misundestand node. [21:01] TooTallNate: setvbuf(stdin, 0, _IONBF, BUFSIZ); [21:01] benvie: oh maybe this is a different thread [21:01] TooTallNate: ^ apparently works whether stdin is a console or a pipe [21:01] benvie: oh my [21:04] benvie: ok so [21:04] TooTallNate: benvie: so maybe the "-i" flag should instead force the tty.ReadStream logic [21:04] TooTallNate: might blow shit up [21:05] benvie: I'm going to see if I can find the spot where this is in libuv [21:05] benvie: and do some tests [21:05] TooTallNate: uggh, this isnt what is should be focusing on right now [21:05] benvie: but if it works that at LEAST be a way to turn it on optionally [21:05] benvie: haha but this is fun stuff =D [21:05] TooTallNate: benvie: look into uv_tty_set_mode() i think [21:05] benvie: what should you be? ttys are way more important than work [21:05] TooTallNate: book man, book [21:06] benvie: who needs books we have the internet [21:06] TooTallNate: bnoordhuis: do you have any input on this? [21:06] dtrejo has joined the channel [21:07] piscisaureus_ has joined the channel [21:08] yawNO: TheEmpath: your code is going to work fine as long as you dont have many s [21:08] TooTallNate: piscisaureus_: also just the man i wanted to see [21:08] skum has joined the channel [21:08] TooTallNate: piscisaureus_: what are your thoughts on mintty? [21:08] TheEmpath: yawNO: Yeah, that's the theory. When I start the server, I load everything into cache as raw, gzip, and deflate, but first, I run the preprocesor on everything. [21:09] TheEmpath: That way, I only run the preprocessor once during production. [21:09] yawNO: also cache your regexes [21:09] kesor has joined the channel [21:10] benvie: http://msdn.microsoft.com/en-us/library/86cebhfs(v=vs.71).aspx [21:10] bEEEviz has joined the channel [21:11] TooTallNate: benvie: maybe you should open an issue for the outstanding mintty problems [21:11] TooTallNate: benvie: and i don't think bert would ever go for it that function :p [21:11] benvie: yeah hah [21:11] TooTallNate: libuv doesn't use it on the Windows side at leadt [21:11] TooTallNate: least [21:11] benvie: indeed [21:12] benvie: but this is it [21:12] benvie: trying to think [21:12] subbyyy has joined the channel [21:12] benvie: could be done with a module but it has to be a fresh file handle so it can't be like upgrading some existing handle [21:12] TooTallNate: benvie: actually probably open an issue on libuv [21:12] michaelhartau has joined the channel [21:13] benvie: cause we don't need amazing super duper efficiency for this one specific application [21:13] benvie: it just needs to work [21:13] TooTallNate: libuv + tty pipe + mintty (pipes, not console) = ??? [21:13] benvie: yeah basically that option, it's more than that though [21:13] benvie: it's -i for windows [21:13] redir has joined the channel [21:13] benvie: it's not possible otherwise [21:14] benvie: or so it would seem [21:14] TheEmpath: yawNO: On a side note, I was able to reproduce PHP in under 100 lines with Node.js so that's gotta be lulzy :D [21:14] TooTallNate: right, mintty will always get the autodetection wrong [21:14] TooTallNate: but the functionality should be there [21:14] TooTallNate: with the -i flag [21:14] benvie: well I think it was more than that [21:14] benvie: it's windows itself [21:14] benvie: mintty blames the applications [21:14] benvie: but reading through this it just seems [21:15] TooTallNate: but as far as libuv goes, it should be possible to write a small program that listens for *every* keypress and prints something [21:15] benvie: you have to go for the full unbuffered using this because the only other options is full buffering [21:15] benvie: you mean like outside the console api? [21:15] benvie: yeah [21:15] benvie: I was thinking of doing that with ffi [21:16] ohtogo has joined the channel [21:16] mattgifford has joined the channel [21:16] benvie: it's possible to go outside the console api and hook in at a higher level you just have to filter all the extra stuff out and try to make sense from it [21:16] TooTallNate: benvie: basically what you need is a way to force a uv_tty_stream, on either a real console, or a "pipe" [21:16] benvie: which I will do if I have to [21:16] enjalot_ has joined the channel [21:17] st_luke has joined the channel [21:17] benvie: I will thinking [21:17] benvie: the idea of using stderr [21:19] icrazyhack has joined the channel [21:20] relix has joined the channel [21:20] ziyadh has joined the channel [21:21] niftylettuce has joined the channel [21:21] timoxley has joined the channel [21:22] benvie: http://stackoverflow.com/questions/8482363/c-sdl-debugging-with-console-window [21:22] MartinCleaver has joined the channel [21:24] TooTallNate: benvie: holy mother of god. that looks like the magical "pty" emulation code that piscisaureus_ said would never make it into libuv!!! [21:24] benvie: hah [21:24] benvie: and a similar thing with a bit more stuff in it http://www.programmersheaven.com/mb/CandCPP/52132/52132/c-o-l-o-r-s--please/ [21:25] Jaylee_ has joined the channel [21:25] duncanbeevers has joined the channel [21:26] benvie: I think something like [21:26] benvie: some sort of minimal pty alike lib could come from this [21:27] t0mmyvyo has joined the channel [21:27] TooTallNate: well there's https://github.com/chjj/pty.js [21:27] TooTallNate: so he could potentially add windows support i guess [21:27] benvie: HA http://svn.python.org/projects/python/trunk/Modules/main.c it's right there in python's main thing [21:27] redir has joined the channel [21:27] robb1e_ has joined the channel [21:28] mrb_bk has joined the channel [21:28] benvie: and even a sad face comment [21:28] benvie: " Doesn't have to have line-buffered -- use unbuffered *" [21:28] benvie: hmmm " Any set[v]buf(stdin, ...) screws up Tkinter :-( " [21:29] jetienne has joined the channel [21:29] benvie: yeah that's the py interactive flag right there, so I think that's a cluebat [21:29] hz has joined the channel [21:29] wavded has joined the channel [21:30] cmwelsh has joined the channel [21:31] polardude has joined the channel [21:31] _ralph has joined the channel [21:31] ctp6360 has joined the channel [21:31] polardude has joined the channel [21:32] relix has joined the channel [21:32] polardude: I'm hoping someone could help me with mongoose-auth. I'm trying to pull the name from the req.user object. [21:33] Jaylee_ has joined the channel [21:33] polardude: everyauth.user.name.first is undefined [21:33] polardude: and user.name.first is too [21:33] draginx has joined the channel [21:34] polardude: Authentication works as expected... and the user I'd can be accessed as well [21:34] polardude: *id [21:34] draginx has left the channel [21:35] enjalot has joined the channel [21:36] TooTallNate: benvie: ok so basically the problem is that the -i flag i added isn't comprehensive enough [21:37] TooTallNate: ideally, it would pass a flag to libuv that would force stdin to be a tty_stream rather than a pipe_steam [21:37] Renegade001 has joined the channel [21:38] benvie: yeah [21:38] TooTallNate: it would do that by doing the AllocConsole() and all that jazz [21:38] TooTallNate: sounds like a good argument to be but we have to convince piscisaureus_ [21:38] TooTallNate: s/be/me [21:38] benvie: yeah looking through code now and the thing is that it kind of needs to hook in right at the beginning [21:38] TooTallNate: yup [21:38] benvie: so at the libuv init level [21:38] dekz has joined the channel [21:38] benvie: trying to see what other consequences it has [21:39] benvie: in terms of stuff you can or can't use [21:39] TooTallNate: benvie: well it looks like you have to hard-code the screen size manually [21:39] TooTallNate: coninfo.dwSize.Y = 500 [21:39] Fabryz has joined the channel [21:40] daleharvey has joined the channel [21:40] TooTallNate: err, that for the "screen buffer", maybe that's something else... [21:40] khrome has joined the channel [21:42] wavded has joined the channel [21:43] polardude has joined the channel [21:44] benvie: even if all that styuff had to be manually controlled, that'd be doable [21:44] polardude: Can anyone help me with mongoose-auth? [21:44] benvie: just being able to get unbuffered access is the killer [21:44] relix has joined the channel [21:44] polardude: or perhaps recommend a better authentication system that works with Express? [21:44] sriley has joined the channel [21:44] BruNeX has joined the channel [21:45] bnoordhuis: TooTallNate: you rang? [21:46] _ralph has joined the channel [21:46] TooTallNate: bnoordhuis: oh, me and benvie were just talking about some Windows drama [21:46] bnoordhuis: TooTallNate: can you give me the executive summary? [21:46] benvie: setvbuf [21:47] mandric has joined the channel [21:47] TooTallNate: bnoordhuis: basically, libuv needs a way to force creating a tty_stream [21:47] TooTallNate: bnoordhuis: even when a pipe is detected [21:47] bnoordhuis: TooTallNate: why / when? [21:47] cmwelsh has joined the channel [21:47] polardude: I've looked at Passport… but I'm more interested in a good simple username/password in a package without the need for authentication towards popular web apps [21:47] benvie: -i made doesn't work on windows because stdin is fully buffered [21:47] TooTallNate: bnoordhuis: mintty uses "pipes" and there's no way to actually make isatty() report true in it [21:47] polardude: that interfaces with Express and MongoDB [21:48] _th_n has joined the channel [21:48] TooTallNate: bnoordhuis: as a result, the "-i" flag i added to node is only partially useful [21:48] willwhite has joined the channel [21:48] TooTallNate: since, as benvie said, there's no way to force unbuffered mode [21:48] benvie: there's nothing between unbuffered and fully buffered [21:49] bnoordhuis: TooTallNate: why would you want to pretend that stdin/out is a tty when it's not? [21:49] bnoordhuis: or am i misunderstanding something here? [21:49] TooTallNate: bnoordhuis: cause windows is broken :\ [21:49] benvie: in windows it's only ever considered a tty when you're literally sitting in cmd.exe [21:49] TooTallNate: bnoordhuis: it's basically for mintty, which doesn't act like programs are running inside a tty [21:49] ningu: benvie: whoa, you can be literally sitting in cmd.exe? [21:49] bnoordhuis: right [21:49] benvie: I dfo [21:49] freedomcaller has joined the channel [21:50] bnoordhuis: you guys should probably take this up with piscisaureus_ [21:50] ningu: how does windows even have ttys? [21:50] TooTallNate: bnoordhuis: ya i kno, he's MIA [21:50] benvie: windows has a console, and other applicationd exists [21:50] freedomcaller: so im writing a simple game which ends when somone triggers the end or a settimeout reaches its end, but i cant seem to cancel the set timeout if somone triggers the end [21:50] ningu: benvie: yeah, but none of the posix apis, right? [21:50] benvie: and it has an impact on other things [21:50] TooTallNate: bnoordhuis: but for comparison, python's "-i" flag does something similar [21:51] benvie: subshells like when you're building stuff [21:51] benvie: you just need to get it into unbuffered mode so you can just do it yourself [21:51] benvie: and then you can do whatever you need to do [21:52] benvie: but to do that requires buy in front, you have to do it before doing anything with stdin/stdout [21:52] bnoordhuis: TooTallNate: shouldn't be too hard to add but... take it up with piscisaureus_ first :) [21:52] mightym has joined the channel [21:52] TooTallNate: will do :) [21:52] benvie: it doesn't look too impactful otherwise but yeah, this is promising [21:52] mattgifford has joined the channel [21:53] benvie: surprised I never actually looked at that bit of python's code [21:53] archivebot has joined the channel [21:54] mrb_bk has joined the channel [21:54] mightym: hey guys, I'm new to node, can someone recommend a twitter library for node.js? f.e. https://github.com/technoweenie/twitter-node ? [21:54] TooTallNate: freedomcaller: clearTimeout()? [21:54] benvie: this is the relevent chunk from python's main.c https://gist.github.com/2200194 [21:54] TooTallNate: benvie: do make a libuv issue please ;) [21:55] benvie: yep on my way [21:55] Fabryz has joined the channel [21:55] Lemminkainen has joined the channel [21:55] cmwelsh has joined the channel [21:57] freedomcaller: ooh lemme look that up [21:57] wilmoore has joined the channel [21:57] justicefries has joined the channel [21:58] TimTimTim has joined the channel [21:59] willwhite has joined the channel [21:59] sveisvei has joined the channel [22:00] freedomcaller: thanks, looks like clearTimeout works [22:00] evilnate has joined the channel [22:00] evilnate: hello? [22:01] TimTimTim has joined the channel [22:02] maxogden: yes this is dog [22:02] ppppaul_ has joined the channel [22:02] Nomon__ has joined the channel [22:02] mintbridge has joined the channel [22:02] redir has joined the channel [22:03] gozala has joined the channel [22:04] ohtogo has joined the channel [22:05] uchuff has joined the channel [22:06] relix has joined the channel [22:06] mrb_bk has joined the channel [22:07] tlack_ has joined the channel [22:09] owenb has joined the channel [22:10] relix has joined the channel [22:12] boltR has joined the channel [22:12] daleharvey has joined the channel [22:12] dtrejo has joined the channel [22:13] aconbere has joined the channel [22:13] mintbridge has joined the channel [22:15] CIA-19: libuv: 03saghul 07master * re729a82 10/ uv.gyp : [22:15] CIA-19: libuv: build: don't link against the Carbon framework [22:15] CIA-19: libuv: Unused. The Makefile doesn't link against it either. - http://git.io/rGlivA [22:15] Nomon__ has joined the channel [22:16] tk has joined the channel [22:17] lmatteis has joined the channel [22:17] t0mmyvyo has joined the channel [22:18] sammmy has joined the channel [22:18] sammmy: when I have a new version of my module, how do I update it in npm? [22:20] timoxley has joined the channel [22:20] _baton_ has joined the channel [22:21] maxogden: npm publish [22:23] dc` has joined the channel [22:28] joshwines has joined the channel [22:29] ohtogo has joined the channel [22:34] sh1mmer has joined the channel [22:35] Vespakoen has left the channel [22:35] argami has joined the channel [22:36] dtrejo: make sure to change the version too [22:36] mikeal has joined the channel [22:39] patcito_ has joined the channel [22:39] timoxley has joined the channel [22:40] astropirate: software versioning is for the weak [22:40] astropirate: real men use npm publish --force [22:41] astropirate: :o [22:42] CIA-19: node: 03Andreas Madsen 07master * r83aae35 10/ doc/api/cluster.markdown : doc: fix markup in cluster docs - http://git.io/p9e71A [22:42] CIA-19: node: 03Zachary Scott 07master * r0dd8e01 10/ doc/api/fs.markdown : [22:42] CIA-19: node: doc: document fs.createReadStream() encodings [22:42] CIA-19: node: Fixes #2700. - http://git.io/pvD-Gw [22:43] macgregor has joined the channel [22:45] ovaillancourt has joined the channel [22:46] teadict: wow, reading a file syncly is a bitch after you get used to do everything asyncly [22:46] Vespakoen has joined the channel [22:46] mattgifford has joined the channel [22:47] teadict: how do I quickly import this big chunk of queries in a file I don't want to have to reformat? [22:48] maxogden: teadict: http://nodejs.org/api/fs.html [22:51] Vainoharhainen has joined the channel [22:51] yaymukund has joined the channel [22:52] garthk has joined the channel [22:52] m0: Does anyone know if there is a channel for expressjs ? [22:52] eugs51 has joined the channel [22:53] Vespakoen has left the channel [22:56] Geminizer has joined the channel [22:56] wingie has joined the channel [22:56] arduix has joined the channel [22:59] salva has joined the channel [23:00] timoxley has joined the channel [23:03] Brandon_R has joined the channel [23:03] rlidwka_: m0, #express [23:06] dtrejo has joined the channel [23:10] briancray has joined the channel [23:11] mightym has joined the channel [23:12] ohtogo has joined the channel [23:13] willwhite has joined the channel [23:14] rlidwka has joined the channel [23:14] skomski has joined the channel [23:18] ParadoxQuine has joined the channel [23:18] sh1mmer has joined the channel [23:22] Mcilvena has joined the channel [23:22] TheAlphaNerd has joined the channel [23:23] dtrejo has joined the channel [23:23] zackattack has joined the channel [23:25] Mcilvena has left the channel [23:28] Joeysomo has joined the channel [23:29] justicefries has joined the channel [23:30] ryanseddon has joined the channel [23:31] tilgovi has joined the channel [23:31] cogweh has joined the channel [23:31] lmatteis has joined the channel [23:31] dscape has joined the channel [23:32] cogweh has left the channel [23:32] guidocalvano has joined the channel [23:32] Leemp has joined the channel [23:33] sriley has joined the channel [23:34] daleharvey has joined the channel [23:34] cmwelsh has joined the channel [23:35] mrb_bk has joined the channel [23:35] tk has joined the channel [23:38] gregpascale has joined the channel [23:39] ohtogo has joined the channel [23:41] argami_ has joined the channel [23:41] achiu has joined the channel [23:44] argami has joined the channel [23:45] pgte has joined the channel [23:49] ziyadh has joined the channel [23:51] shinuza has joined the channel [23:52] mikeal has joined the channel [23:52] Brandon_R: hi [23:52] piscisaureus_ has joined the channel [23:54] fmeyer has joined the channel [23:55] jaxzin has joined the channel [23:58] argami has joined the channel [23:58] archivebot has joined the channel [23:58] sveisvei has joined the channel [23:59] kinow has joined the channel [23:59] tonymilne has joined the channel