[00:00] dshaw_ has joined the channel [00:00] ccarella has joined the channel [00:00] ryah: hello [00:00] unlink has joined the channel [00:00] unlink has joined the channel [00:00] random123: hiya [00:02] level09 has joined the channel [00:02] Xeon06_ has joined the channel [00:03] isaacs has joined the channel [00:04] Renegade001 has joined the channel [00:04] rhdoenges: hi [00:04] erobit has joined the channel [00:05] vbn has joined the channel [00:06] othiym23 has joined the channel [00:07] tilgovi has joined the channel [00:07] tilgovi has joined the channel [00:14] Xeon06_ has joined the channel [00:18] Xeon06_ has joined the channel [00:20] Nexxy has joined the channel [00:22] vipaca has joined the channel [00:22] vipaca has joined the channel [00:24] tilgovi has joined the channel [00:24] Xeon06_ has joined the channel [00:25] smtlaissezfaire has joined the channel [00:28] Xeon06_ has joined the channel [00:30] softdrink has joined the channel [00:33] cafesofie has joined the channel [00:34] Xeon06_ has joined the channel [00:38] scottj has joined the channel [00:38] Xeon06_ has joined the channel [00:39] malkomalko has joined the channel [00:44] Xeon06_ has joined the channel [00:46] willwhite has joined the channel [00:48] guidocalvano has joined the channel [00:48] VeXii has joined the channel [00:48] jslert has joined the channel [00:49] random123: I finally figured out the issue, it was adding 200ms because I didn't set the encoding on readFile [00:49] random123: http://98.236.193.36/ [00:49] jslert has left the channel [00:49] random123: Now everything loads in 3ms [00:49] Aria: Oh! Interesting. Converting to String and back. [00:49] Aria: That sucks. [00:50] kmwallio has joined the channel [00:51] [[zz]] has joined the channel [00:51] jslert has joined the channel [00:52] random123: Yes, oddly if I try to set encoding on readFile for an image, the image won't load at all [00:52] random123: So I look at the extension, if its an image, I don't set encoding, otherwise, the js/css files I set utf8 [00:53] random123: I tried setting to raw if its an image and no go, however, the default is supposed to be raw, so don't get why thats so [00:55] WarriorSl has joined the channel [00:55] devongovett has joined the channel [00:58] Xano has joined the channel [00:58] edude03 has joined the channel [01:01] emacsen has joined the channel [01:02] VeXii: how did you serve the css? [01:02] emacsen: I need to make seven (somewhat unrelated) async calls in order to do some processing. Does that basically mean I need to code functions 7 layers deep? [01:02] VeXii: and do you know if expressjs got the same problem? :p [01:02] seawise has joined the channel [01:03] blkcat: emacsen: or you can look into a library like async.js [01:03] blkcat: emacsen: async.series( [ func1, func2, func3 ] ) [01:03] emacsen: blkcat, that sounds like step [01:04] emacsen: and the problem with step is that it passes the data from func1 to func2 [01:04] blkcat: async.series does not. [01:04] emacsen: blkcat, here's the code as it would be in python, without async calls [01:04] emacsen: http://dpaste.com/565670/ [01:05] emacsen: (ignore that passwords aren't stored encrypted, I'll fix that) [01:07] sounko has joined the channel [01:08] random123: vexii: I served the CSS with readFile like readFile(filepath, encoding, callback) with the optional encoding parameter set to utf8 and it served CSS 20x faster [01:08] Xeon06_ has joined the channel [01:08] louis_ has joined the channel [01:08] emacsen: blkcat, hrm, it seems that this async lib will do what I want, except the while loop I use to check for existing entries. Any idea there? [01:09] blkcat: i haven't played much with the redis libraries for node, unfortunately [01:09] emacsen: blkcat, they're basically function(somecall, callback) [01:09] random123: I never used ExpressJS, I'm trying to stay away from all frameworks since I am new right now to Node [01:10] AndyDawson has joined the channel [01:12] jacobolus has joined the channel [01:14] Xeon06_ has joined the channel [01:16] Sorella has joined the channel [01:16] guidocalvano has joined the channel [01:16] wormphlegm has joined the channel [01:18] Xeon06_ has joined the channel [01:18] unomi has joined the channel [01:19] okuryu has joined the channel [01:20] VeXii: yeah okay fair :) [01:20] VeXii: how do you handle stuff like templating then? [01:21] Nexxy: lots of string replace! [01:21] deoxxa: random123: just something to think about, node.js isn't really that well suited to serving static files. i run nginx in front of node for pretty much all my http tasks to help alleviate some of that stress. [01:24] random123: vexii: I use multiline variables to capture html, I really don't like the templating options avaliable [01:25] VeXii: true but sesly that sounds like it gets a mess fast [01:26] random123: vexii: So you write buffer = ""; and put the html in there, and use \ to make them multiline [01:26] mekbot has joined the channel [01:26] kbni has joined the channel [01:26] themiddleman has joined the channel [01:27] Aria: deoxxa: Or get node to use sendfile and it'll do okay. [01:27] deoxxa: Aria: still needs an HTTP server in front, no? or do you mean kernel level sendfile? [01:28] Aria: I mean kernel level sendfile. [01:28] Aria: sendfile(2) [01:29] Aria: That eliminates user-space buffering, which is most of the difference between what node does and nginx does by default. [01:29] deoxxa: ah, yeah, that'd do it [01:32] hassox has joined the channel [01:32] mekbot has joined the channel [01:33] mjijackson has joined the channel [01:34] Xeon06_ has joined the channel [01:36] wilmoore has joined the channel [01:37] mjijackson has joined the channel [01:38] Nexxy has joined the channel [01:38] dguttman has joined the channel [01:39] creationix: A screencapture of a node program painting to the screen and reacting to joystick controls. http://creationix.com/node-sdl.mpeg [01:39] Nexxy: creationix, did you use node-serialport for that? ;o [01:40] thalll has joined the channel [01:40] creationix: no, just node-sdl [01:40] creationix: sdl has a really easy joystick API [01:40] Nexxy: neat! [01:40] creationix: I haven't made it event based yet, but polling the joysticks in a setInterval works great [01:41] creationix: not sure if event based would help for joysticks anyway, they are often quite noisy and polling is sometimes best [01:41] creationix: I'll need events for mouse and keyboard input though [01:41] Nexxy: I would think polling would be better suited [01:41] Nexxy: but I've never really done much with them [01:41] creationix: and button events on the joystick [01:43] creationix: btw, most accelerometers show up as joysticks on linux [01:43] creationix: so on my laptop and my touchpad, I can get 3-axes [01:43] Prometheus: creationix: you sir, get around to doing a lot of stuff with node [01:43] creationix: I like to play, keeps me sane [01:44] zeade has joined the channel [01:44] creationix: sadly that means many of my projects often end up unmaintained [01:44] Prometheus: no doubt, I need to find time to do that =) [01:44] nonnikcam has joined the channel [01:44] Xeon06_ has joined the channel [01:44] sandstrom has joined the channel [01:44] sandstrom has joined the channel [01:44] VeXii: ehh sorry but anyone that got a good unix for beginers or somthing? [01:45] VeXii: just started on this stuff 2 weeks ago [01:45] Prometheus: VeXii: what do you need to know? [01:46] Prometheus: I've never read any books, just trial and error + Google :) [01:46] Prometheus: besides, distros come w/ a manual built in ;) [01:51] random123: I find it to be nice as a reference but not to learn a new tool [01:51] huge__ has joined the channel [01:52] huge__: looking for 0.5.1 powered express :D [01:53] vipaca has joined the channel [01:53] vipaca has joined the channel [01:55] slajax has joined the channel [01:55] Wizek-other has joined the channel [01:56] isaacs: huge__: note that 0.5 is unstable [01:56] jakehow has joined the channel [01:56] isaacs: huge__: as in, it's going to break. [01:56] isaacs: a lot, soon, and for a long time. [01:56] isaacs: it'll stop breaking when it's 0.6 [01:57] isaacs: VeXii: i recommend reading through `man bash` [01:57] isaacs: VeXii: it touches on most of the core concepts. [01:57] SubStack: it's a page-turner [01:57] SubStack: (not really) [01:58] guidocalvano has joined the channel [02:00] VeXii: thanks :D [02:00] huge__: thanks [02:01] creationix: isaacs: what's going to be the story for native addons in windows? [02:01] creationix: will npm support pre-built binaries? [02:02] isaacs: creationix: npm already supports pre-built binaries [02:02] isaacs: creationix: but building them appropriately is hard :) [02:02] isaacs: SubStack: `man bash` is how i learned most of what i know about bash. also, asking questions (and getting made fun of for it) in #bash [02:02] isaacs: the people in #bash are very mean. [02:03] isaacs: but they do know bash. [02:03] creationix: isaacs: so how would I include addons in my node-sdl package? [02:03] creationix: I have builds for node 4 on arm and i386 [02:03] isaacs: creationix: it'd still be the same require() semantics [02:03] isaacs: creationix: oh, you mean, how do you publish built addons? [02:04] creationix: isaacs: right [02:04] creationix: for more than one target platform [02:04] VeXii: uhh ofc the #bash >-< [02:04] isaacs: creationix: there's no facility right now for uploading from platform X for platform Y [02:05] isaacs: creationix: but if you `npm config set bin-publish true` and then do an `npm publish` from that platform, it'll upload a built binary package that can be installed for that platform [02:05] creationix: isaacs: ok, so that's not so bad [02:05] isaacs: well, it sucks if you're building it for a phone :) [02:05] isaacs: creationix: since it means you have to compile and publish it from said phone [02:05] isaacs: instead of cross-compiliint [02:05] isaacs: *g [02:06] creationix: isaacs: I don't cross-compile on webos, I build on my touchpad [02:06] creationix: it's plenty fast for node stuff [02:06] isaacs: creationix: kewl [02:07] creationix: ok, I just published the "sdl" module from i386 linux, now can people get the pre-built binary? [02:07] isaacs: creationix: if you want more nuts-and-bolts, the data structure looks like "dist": { "tarball" : , sha: , "bin" : { : { tarball, sha } } } [02:08] isaacs: creationix: like this: http://registry.npmjs.org/srand/1.0.1 [02:08] isaacs: creationix: the platform is `npm get bindist` [02:09] creationix: nice http://registry.npmjs.org/sdl/0.0.1 [02:09] creationix: looks like I have a linux entry [02:09] isaacs: creationix: originally it was just nodeversion-platform-platformversion, but that doesn't work. cpu arch will be included once node exposes it (0.6, that means) [02:09] isaacs: yep :) [02:09] isaacs: you can also set the "bindist" field explicitly, if you want to manage your own family of binary package releases. [02:10] isaacs: creationix: then you could do `npm install sdl --bindist creationix` or something [02:10] creationix: I see [02:10] creationix: I'll have to dig more into this later, have to run pretty soon [02:10] isaacs: i experimented with going through and seeing what builds where, but it's really hard to make that all not suck. [02:10] isaacs: kewl, have fun :) [02:11] creationix has left the channel [02:11] ccarella has joined the channel [02:11] daigo has joined the channel [02:16] FireFly|n900 has joined the channel [02:17] Xano has joined the channel [02:20] ngs has joined the channel [02:22] daigo has joined the channel [02:23] vipaca has joined the channel [02:23] vipaca has joined the channel [02:24] dguttman has joined the channel [02:24] srid has joined the channel [02:27] matbee has joined the channel [02:28] Xeon06_ has joined the channel [02:29] ritch has joined the channel [02:30] ritch: Is there an API safe way to delete Module._cache[filename]; [02:31] xerox: do you mean require.cache[name] ? [02:31] xerox: If so, this is O K: delete require.cache[require.resolve(name)] [02:31] ritch: let me try that [02:31] zmaril_ has joined the channel [02:32] ritch: thx xerox [02:32] xerox: no problem [02:34] rhdoenges has joined the channel [02:34] rhdoenges: are google+ invites currently open? [02:35] tbranyen: should be [02:35] Nexxy has joined the channel [02:35] xerox: yes [02:37] rhdoenges: could I get one? [02:37] atsuya has joined the channel [02:38] Aria: Privately message an email to me and I'll invite. [02:38] Xeon06_ has joined the channel [02:41] huge__ has left the channel [02:43] matbee has joined the channel [02:44] Xeon06_ has joined the channel [02:46] dguttman has joined the channel [02:48] cognominal has joined the channel [02:52] Xeon06_ has joined the channel [02:53] ngs has joined the channel [02:55] davidcoallier has joined the channel [02:55] dexter_e has joined the channel [02:56] necrodearia has joined the channel [02:56] rauchg_ has joined the channel [03:00] Xeon06_ has joined the channel [03:04] Xeon06_ has joined the channel [03:06] gavin_huang has joined the channel [03:07] perezd has joined the channel [03:07] niftylettuce has joined the channel [03:07] Motoma has joined the channel [03:10] cjm has joined the channel [03:10] Xeon06_ has joined the channel [03:11] pauls has joined the channel [03:13] danmactough has joined the channel [03:14] Xeon06_ has joined the channel [03:14] rchavik has joined the channel [03:14] mjijackson: hi all. when managing a large member:array of strings, is it easier on memory to do a splice(0) or an assignment to a new member:array? [03:15] mjijackson: sorry, the paste messed it up. [03:15] mjijackson: supposed to be just "array" [03:15] kriszyp has joined the channel [03:17] matbee has joined the channel [03:18] Corren has joined the channel [03:19] slajax has joined the channel [03:21] sleek has joined the channel [03:22] necrodearia has joined the channel [03:23] alek_br_ has joined the channel [03:24] carmony has joined the channel [03:25] jmoyers has joined the channel [03:27] mikeal has joined the channel [03:29] amerine has joined the channel [03:30] Lorentz has joined the channel [03:30] Xeon06_ has joined the channel [03:30] muk_mb: do any of you guys use vows.js? [03:31] iamanewb has joined the channel [03:31] unlink has joined the channel [03:32] muk_mb: I'm having trouble getting my topic setup correctly: http://pastebin.com/2iUR3iPX [03:33] iamanewb: Hello all...I have a new question about socket.io and http-proxy. I'd like to have Node.js proxy all non-socket.io requests to another server (i.e., Apache/PHP), while everything socket.io-related gets handled normally. [03:33] iamanewb: I'm more-or-less able to do this, except I'm missing something, and socket.io falls-back onto htmlfile, instead of websocket [03:34] sivy has joined the channel [03:34] iamanewb: What I'm doing is if the incoming connection has /socket.io in the url, I do not redirect, but everything else gets proxied to the apache service. [03:34] iamanewb: I think the websocket connection does not have anything in the URL, or is not being caught for some reason. [03:38] radiodario has joined the channel [03:40] buribu has joined the channel [03:44] Xeon06_ has joined the channel [03:46] muk_mb: updated my pastie with the error: http://pastebin.com/wmB1xdui [03:47] iamanewb: ok...nevermind, I'm just going a bit crazy with different browsers. Is chrome the only one that currently supports websockets? [03:47] kbni: I think firefox5 does? [03:48] dguttman has joined the channel [03:48] deoxxa: only if it's enabled specifically [03:48] Xeon06_ has joined the channel [03:50] iamanewb: So it looks like Firefox (by default) does xhr-polling, IE8 resorts to 'htmlfile', and chrome does websockets. Presumably websockets is best...why doesn't IE use xhr-polling? [03:51] iamanewb: XHR is a native object there...isn't it? [03:52] tbranyen: iamanewb: no [03:52] Aria: Different cross-domain policies? [03:52] iamanewb: cross-domain shouldn't come into play [03:52] tbranyen: iamanewb: i think htmlfile is probably faster? [03:52] Xeon06_ has joined the channel [03:52] hermanjunge has joined the channel [03:52] hermanjunge: Hi [03:52] dexter_e has joined the channel [03:52] hermanjunge: Object.keys(myObject) is pretty useful [03:53] hermanjunge: Does anybody knows the way to list the functions of an object? [03:53] tbranyen: iamanewb: ah crap i was thinking of addEventListener [03:53] tbranyen: hermanjunge: that does list them [03:53] systemfault: Object.getOwnPropertyNames(obj) IIRC [03:53] hermanjunge: not after a new [03:53] tbranyen: v8: var myObj = { myFunc: function(){} }; Object.keys(myObj); [03:53] v8bot: tbranyen: ["myFunc"] [03:53] tbranyen: hermanjunge: thats not functions, thats a prototype chain [03:53] tbranyen: er properties* [03:53] systemfault: v8: Object.getOwnPropertyNames(Array); [03:53] v8bot: systemfault: ["arguments","length","isArray","name","prototype","caller"] [03:54] tbranyen: hermanjunge: just look at the prototype object? [03:54] hermanjunge: Object.getOwnPropertyNames didn't do the trick [03:54] hermanjunge: inheritance is a bitch! [03:54] tbranyen: its not going to [03:54] hermanjunge: A spend the whole afternoon and learn A LOT [03:54] tbranyen: you can use the nonstandard __proto__ [03:55] hermanjunge: I have an OOP Background, but I'm getting use to this quickly [03:55] hermanjunge: __proto__? [03:55] tbranyen: v8> function c() {} c.prototype.d=function(){}; Object.keys(new c().__proto__) [03:55] v8bot: tbranyen: ["d"] [03:55] hermanjunge: what does it? [03:55] hermanjunge: let me try it [03:55] tbranyen: v8> function c() {} c.prototype.d=function(){}; Object.keys(new c().getPrototypeOf()) [03:55] v8bot: tbranyen: TypeError: Object # has no method 'getPrototypeOf' [03:55] systemfault: Ahh.. that's our tbranyen, encouraging people to use non-standard stuff.. [03:55] tbranyen: hmm [03:56] hermanjunge: non standard stuff rules [03:56] tbranyen: yeah and it appears the standard isn't in v8 [03:56] tbranyen: heh [03:56] tbranyen: oh wait [03:56] tbranyen: v8> function c() {} c.prototype.d=function(){}; Object.keys(Object.getPrototypeOf(new c())) [03:56] v8bot: tbranyen: ["d"] [03:56] tbranyen: there we go [03:56] systemfault: Heh... [03:57] tbranyen: hermanjunge: use Object.getPrototypeOf since thats standard :) [03:57] hermanjunge: :) [03:57] hermanjunge: before going. What is exactly __proto__? [03:57] tbranyen: the current prototype of the instane [03:57] hermanjunge: ok [03:57] tbranyen: v8> var obj = {}; obj.__proto__ = { lol: 'hi' }; obj.lol [03:57] v8bot: tbranyen: "hi" [03:58] hermanjunge: I did an ugly hack to inheritate from an object, and then to inherit its this.* [03:58] iamanewb: Ok...so it seems if I serve an html file from apache (port 80) that calls node.js/socket.io (from port 8080), IE8 will use xhr-polling. [03:58] hermanjunge: you can call them "its privates" [03:58] hermanjunge: using proto [03:58] hermanjunge: but did understand exactly what I did [03:58] hermanjunge: ok [03:58] iamanewb: If I serve that same file by proxying apache through Node.js on the same port as socket.io/node.js, IE8 use htmlfile. [03:58] hermanjunge: Thanks a LOT! [03:58] Corren has joined the channel [03:58] tbranyen: np [04:00] mjijackson has joined the channel [04:02] Xeon06_ has joined the channel [04:02] blueadept has joined the channel [04:02] iamanewb: It must be that IE8 uses xhr when the ports are different. [04:05] hassox has joined the channel [04:07] jacobolus has joined the channel [04:08] Xeon06_ has joined the channel [04:12] Xeon06_ has joined the channel [04:13] mikeal has joined the channel [04:14] daithi44 has joined the channel [04:18] Xeon06_ has joined the channel [04:21] matbee has joined the channel [04:22] Xeon06_ has joined the channel [04:23] Corren has joined the channel [04:24] rhdoenges: is there a way to monkeypatch methods onto 'string'? [04:24] rhdoenges: I want to give it _blue() _green() etc methods [04:24] wookiehangover has joined the channel [04:28] tsutton has joined the channel [04:28] systemfault: Sure.. just modify the prototype [04:29] systemfault: v8: String.prototype.lol = function() { return '' + this + '; }; "ZOMG".lol(); [04:29] v8bot: systemfault: SyntaxError: Unexpected token < [04:29] systemfault: v8: String.prototype.lol = function() { return '' + this + ''; }; "ZOMG".lol(); [04:29] v8bot: systemfault: "ZOMG" [04:29] boehm has joined the channel [04:32] rhdoenges: thanks [04:32] rhdoenges: that's what I thought, I'm just away from a computer with node on it. [04:34] Xeon06_ has joined the channel [04:38] Xeon06_ has joined the channel [04:42] Xeon06_ has joined the channel [04:44] niftylettuce has joined the channel [04:47] cccaldas has joined the channel [04:48] Xeon06_ has joined the channel [04:49] stride has joined the channel [04:52] niftylettuce has joined the channel [04:52] febits has joined the channel [04:52] matbee has joined the channel [05:00] Xeon06_ has joined the channel [05:02] matbee has joined the channel [05:05] smtlaissezfaire has joined the channel [05:06] febits has joined the channel [05:07] adam_ has joined the channel [05:10] Xeon06_ has joined the channel [05:10] hippich has joined the channel [05:14] Xeon06_ has joined the channel [05:16] deoxxa: what's the best way to defer execution of a program until resources have been allocated (database handles, network connections, etc)? [05:19] Jakwac: Use a callback? [05:20] Xeon06_ has joined the channel [05:20] deoxxa: Jakwac: i considered that, but i have a case where there's multiple database connections and other resources that need to be available before the rest of the application can function, and i can't be sure that they'll all be ready at the same time or in a specific order [05:20] deoxxa: also i'd like to have them allocated in parallel, not one after the other [05:20] Jakwac: Increment a value [05:20] Jakwac: on each call to your resources [05:20] Jakwac: Then decrement it in each callback [05:21] deoxxa: i'm not sure i follow [05:21] Nexxy: deoxxa, async.js? [05:21] Jakwac: Along with each callback call a funciton to start your app. In the beginining of that function check the value of the variable you've been incrementing [05:21] deoxxa: ah, and busy wait on that variable until it's the right value? [05:22] deoxxa: Nexxy: hmm yeah, i'm using that for another project, it might fit [05:22] Nexxy: I would just use parallel and then wait for the final cb [05:22] Nexxy: to "init" the rest of the app [05:22] deoxxa: oh, that works perfectly [05:22] deoxxa: async it is! [05:23] deoxxa: in other news, i just published my first npm packages :D [05:23] SubStack: \o/ [05:23] Nexxy: :) [05:23] Nexxy: congrats! [05:23] isaacs: deoxxa: kewl [05:23] Nexxy: deoxxa++ [05:23] catb0t: deoxxa now has 1 beer [05:23] v8bot: Nexxy has given a beer to deoxxa. deoxxa now has 1 beers. [05:23] deoxxa: huzzah [05:24] deoxxa: http://search.npmjs.org/#/tokyotosho and http://search.npmjs.org/#/nyaatorrents [05:25] matwill has joined the channel [05:26] deoxxa: isaacs: i think that issue i hit earlier was caused by my password not being ascii characters [05:26] isaacs: deoxxa: ahh [05:26] isaacs: deoxxa: there are a few chars that'll cause problems. [05:26] isaacs: deoxxa: i think : is the main one [05:26] hij1nx has joined the channel [05:26] isaacs: it should be ok with utf, though [05:27] deoxxa: mine was all japanese text [05:28] isaacs: deoxxa: ah, that might've hit some odd case, then :) [05:28] isaacs: deoxxa: i'm american, we don't test with any non-ascii characters. [05:28] isaacs: deoxxa: as far as i know, japan is a city in south america. [05:28] deoxxa: i thought it was in europe somewhere [05:29] deoxxa: but hey, close enough [05:29] isaacs: ACTION omg jk srsly [05:29] deoxxa: << australian anyway [05:29] deoxxa: haha [05:29] isaacs: ahh, the canada of the southern hemisphere. [05:29] Nexxy: LOL [05:29] deoxxa: what does that make new zealand? [05:29] deoxxa: hawaii? [05:29] Nexxy: hawaii~!!1 [05:29] isaacs: hahaha [05:29] matbee has joined the channel [05:29] deoxxa: ha [05:29] isaacs: new foundland [05:30] isaacs: but wiht sheep instead of fish [05:30] deoxxa: and most likely a funnier accent [05:31] deoxxa: "fush and chups bro" [05:33] heavysixer has joined the channel [05:35] burg has joined the channel [05:36] rurufufuss has joined the channel [05:38] Nexxy: is there a universally agreed upon directory structure for node web apps? [05:38] Xeon06_ has joined the channel [05:38] swilson06 has joined the channel [05:38] Prometheus: silly australians [05:39] Prometheus: (I envy you) [05:40] rurufufuss: what's some example of huge sites running node.js? [05:41] Jakwac: Huge like complex or just high traffic? [05:41] rurufufuss: just checking node.js today, it seems like some sort of holy grail of webdev [05:41] rurufufuss: high traffic [05:41] patrikkarlin has joined the channel [05:41] rurufufuss: wouldn't mind a complex example too [05:41] Prometheus: well, there's https://github.com/joyent/node/wiki/Projects,-Applications,-and-Companies-Using-Node [05:41] Prometheus: though that's just a list.. [05:42] rurufufuss: also, I was trying to run the example at nodejs.org [05:43] rurufufuss: but accidentally did "sudo apt-get install node" [05:43] rurufufuss: which installed some unrelated node software [05:43] rurufufuss: then I installed node from github [05:43] rurufufuss: how do I run "node example.js" now? [05:43] Jakwac: does node -v return anything? [05:44] rurufufuss: returns "axconfig: port 1 not active" [05:44] Xeon06_ has joined the channel [05:44] Jakwac: ah, you might try running a `sudo apt-get remove node` [05:44] rurufufuss: yeah just did [05:44] rurufufuss: and reinstall the node package from github I imagine? [05:44] butu5 has joined the channel [05:45] Jakwac: Well as long as its run your path you should be fine [05:45] patrikkarlin: yea compile it [05:45] rurufufuss: where is it generally located on linux? [05:45] Jakwac: depends where you install [05:45] rurufufuss: just did sudo make install [05:45] Jakwac: Not sure of the default prefix though [05:47] rurufufuss: ah it just made the library on the folder [05:47] rurufufuss: works now [05:47] confoocious has joined the channel [05:47] confoocious has joined the channel [05:48] brainproxy: rurufufuss: you might like nvm [05:48] Xeon06_ has joined the channel [05:48] Jakwac: That the same thing as rvm? [05:48] Jakwac: but for node [05:48] sw8sw8 has joined the channel [05:48] brainproxy: Jakwac: similar idea, yes [05:48] rurufufuss: cool, will check that out [05:48] brainproxy: installs npm for you too [05:48] jacobolus has joined the channel [05:48] brainproxy: then you can do things like [05:48] harth_ has joined the channel [05:49] brainproxy: nvm use v0.4.9 [05:49] brainproxy: well first, nvm install v0.4.9 [05:49] brainproxy: https://github.com/creationix/nvm [05:50] Prometheus: for some reason, I read that as vim [05:51] sivy has joined the channel [05:51] rurufufuss: so nvm is basically an updater for node.js [05:51] srid has joined the channel [05:51] brainproxy: well it lets you install and switch between versions of node [05:51] brainproxy: and w/ each installed version, npm is installed alongside it [05:51] rurufufuss: sweet, I just have to run it as root eh? [05:51] mykul has joined the channel [05:51] brainproxy: no, it's meant to be run as a normal linux user [05:52] brainproxy: it installs the versions under ~/.nvm [05:53] brainproxy: per the instructions on the its github page, you'll want to source nvm.sh via ~/.bashrc or ~/.profile [05:53] brainproxy: that way you're ready to rock as soon as you open a terminal or login over ssh [05:53] rurufufuss: ah right ic [05:53] rurufufuss: I better RTFM [05:54] rurufufuss: actually, I was coming here to ask a different question than setups [05:54] rurufufuss: any reasons not to use node.js? [05:54] Nexxy: are you a square? [05:54] Nexxy: that's a good reason [05:54] rurufufuss: haha [05:54] Jakwac: Depends what your doing with it [05:54] brainproxy: rurufufuss: if you don't like programming in javascript, that might be a reason [05:54] rurufufuss: well, I'm just trying to compare different frameworks [05:55] Nexxy: node > * [05:55] brainproxy: rurufufuss: out of the box, node is pretty low level stuff [05:55] Jakwac: Node isnt a firework for one [05:55] rurufufuss: I used to do a lot of actionscripting [05:55] brainproxy: you're not getting mvc formalism like with rails [05:55] Nexxy: that's what express is for! [05:55] rurufufuss: yeah, that wont come for free I guess [05:55] rurufufuss: what does express do? [05:55] brainproxy: if you want a framework you can get those via npm [05:55] Nexxy: "sudo npm install express" [05:55] Jakwac: There are tons out there though [05:55] Nexxy: now you have MVC [05:55] rurufufuss: arg, can't find package express [05:55] Prometheus: what are noders called? [05:56] brainproxy: with nvm, you wouldn't need sudo [05:56] stagas has joined the channel [05:56] brainproxy: just npm install ... [05:56] rurufufuss: fair enough [05:56] brainproxy: rurufufuss: http://search.npmjs.org/#/express [05:56] rurufufuss: what about database connections? what DBs go with node.js? [05:56] harth_ has joined the channel [05:56] Prometheus: rurufufuss: any [05:56] Nexxy: unless things have changed again, isaacs suggested using sudo with the install command as it deescalates user permissions? [05:57] isaacs: Nexxy: things have not changed. [05:57] brainproxy: Nexxy: ah, maybe so, not sure if that's apropo if one is using nvm [05:57] Nexxy: yay! [05:57] brainproxy: isaacs: rule still applies to nvm users? [05:57] isaacs: brainproxy: using sudo is ok, but not usually required. [05:58] isaacs: brainproxy: security-wise, it's better, but security-wise, it's best to not install anything you don't trust anyhow [05:58] Nexxy: so much for windows 7 [05:58] brainproxy: isaacs: I read all the npm docs today, first time to read all the way through; great job :) it's all pretty clear once you've got your head in the right place [05:59] isaacs: brainproxy: wow! [05:59] isaacs: brainproxy: i haven't read those things all the way through in a long time. [05:59] brainproxy: isaacs: in any case, just appreciative of how well it's all put together and inspired to docuemtn and organize as efficiently as yourself [06:00] brainproxy: not brown-nosing, just letting you know your hard work is appreciated [06:00] Nexxy: ACTION hands brainproxy a wet nap [06:00] isaacs: thanks, that's great to hear :) [06:00] isaacs: it's a survival mechanism :) [06:00] Nexxy: no but srsly tho, npm *is* pretty awesome [06:00] isaacs: i forget how it works a lot of the time. [06:01] Nexxy: I did that with the washing machine yesterday ;< [06:01] matbee has joined the channel [06:02] rurufufuss: is there a good summary of this non-blocking IO that makes node.js good? [06:02] rurufufuss: would like to read a bit about it [06:03] Prometheus: howtonode.org(com?) [06:03] malkomalko has joined the channel [06:03] Nexxy: http://nodetuts.com/ [06:03] Prometheus: rurufufuss: http://hueniverse.com/2011/06/the-style-of-non-blocking/ [06:03] Prometheus: rurufufuss: http://hueniverse.com/2011/06/6-months-with-node-js/ [06:04] rurufufuss: gracias muchas [06:04] Prometheus: =) [06:04] rurufufuss: actually, not sure if thats the right phrase [06:04] Prometheus: and yeah, nodetuts are good for getting a bit of a feel of node [06:04] brainproxy: rurufufuss: one thing to consider doing, if you really want to get your head around what node provides to you at the most basic level is to sim all the way through the API [06:04] Prometheus: muchos gracias [06:04] brainproxy: *skim [06:04] rurufufuss: I'll try doing that [06:04] brainproxy: that will give you a sense of the building blocks on top of which everything else is built [06:05] Prometheus: brainproxy: but given the vast number of modules on NPM, that doesn't even begin to scratch the surface of what's already there =) [06:05] Prometheus: well, it does, but.. [06:05] Jakwac: Ryan has given some good talks, one of them is on the nodejs page [06:05] dgathright has joined the channel [06:05] brainproxy: Prometheus: well, i mean in terms of the facilities that node is actually providing [06:05] Prometheus: right, but the modules are worth taking in to account as well [06:05] Prometheus: I think [06:05] brainproxy: yes, they are, most certainly [06:06] Prometheus: though just about any language/platform will offer you similar tools, but.. [06:06] isaacs: ACTION remembers when the code WAS the documentation [06:06] rurufufuss: until yesterday I was writing a web server with c++ and fastcgi [06:06] rurufufuss: all these modern webdev stuff is scaring me [06:06] Prometheus: rurufufuss: are you scared of productivity too? =) [06:06] brainproxy: rurufufuss: sounds paintufl [06:07] rurufufuss: well I'm taking a break from my usual non-webdev c++ stuff [06:07] rurufufuss: yes it is [06:07] pquerna: rurufufuss: http://www.youtube.com/watch?v=WVzp4MJRKHc&feature=related [06:07] rurufufuss: but after years and years of c++ jumping to javascript makes me feel like an old guy joining a group dating club [06:07] Prometheus: rurufufuss: what would your web server do, just serve pages? [06:08] rurufufuss: was playin around with paypal IPN [06:08] Prometheus: so you wrote a web server in C++ for that? :o [06:08] Prometheus: or was that the fastcgi part.. =P [06:08] piscisaureus has joined the channel [06:08] Prometheus: just wondering, why you would want to be writing your own server in C++ :) [06:09] Prometheus: either way, I think you are in the right place now [06:09] rurufufuss: since I'm using nginx and fcgi, I don't know if you could say I'm writing my own web server [06:09] Prometheus: oh.. I was going to say, why not use nginx =P [06:09] rurufufuss: I suppose more like a web app in c++? :p [06:09] rurufufuss: yeah whoops, I better rephrase that [06:09] Prometheus: writing a web app in C++, sounds painful [06:09] Prometheus: like, immensely painful [06:09] rurufufuss: hahahaha [06:09] rurufufuss: trying to get sendmail working from it was a nightmare [06:10] brainproxy: Prometheus: I've got a friend who swears by it [06:10] rurufufuss: for webdev? [06:10] Prometheus: brainproxy: really? [06:10] isaacs: brainproxy: friends don't let friends swear by c++ [06:10] rurufufuss: or for application developments? [06:10] brainproxy: Prometheus: yeah, but he's always been a little crazy :D [06:10] systemfault: Sometimes, C++ is the answer :P [06:10] Prometheus: brainproxy: I don't think a little even begins to describe it.. =P [06:10] rurufufuss: you see, picking up javascript for c++ is like telling a jedi to use a blaster [06:10] isaacs: if c++ is the answer, someone asked the wrong question. [06:11] systemfault: But for web.. it's pretty much never the answer. [06:11] herbySk has joined the channel [06:11] systemfault: isaacs: **cough**V8**cough** [06:11] isaacs: systemfault: yeah... v8 is probably the least awful c++ program i've ever dealt with. [06:11] Prometheus: rurufufuss: interestingly enough, I read an article somewhere (perhaps it was those hueniverse articles) where the guy is/was a C(++?) programmer, and he said it felt like home ;) [06:11] Prometheus: minus the callbacks, of course [06:11] isaacs: and i mean, those guys *clearly* know what they're doing of course. [06:11] brainproxy: he's using some thing that generates c++ from javascript, so he can write the client and server logic in c++ [06:12] rurufufuss: oh nice [06:12] brainproxy: sorry, other way around [06:12] Prometheus: wait what, parsing javascript to C++? [06:12] brainproxy: I mean it generates javascript from c++ [06:12] Prometheus: oh [06:12] rurufufuss: c++ in client?? [06:13] Prometheus: I don't know if that really makes more sense, but I guess a little :) [06:13] brainproxy: well the client side logic in c++ spits out javascript which is actually served up to the browser-clients [06:13] rurufufuss: hmm [06:14] deoxxa: that sounds frightening [06:14] rurufufuss: I thought c++ parsers are super hard to make [06:14] brainproxy: people have done things like that with ocaml [06:14] rurufufuss: to make something that converts c++ -> javascript?? [06:14] brainproxy: talk about some crazy looking javascript [06:14] Prometheus: talk about some crazy people [06:14] rurufufuss: ahem [06:14] Prometheus: :P [06:14] rurufufuss: so is it possible to connect c++ to node.js, in any way? [06:14] rurufufuss: like, say, if I feel like using c++ :P [06:15] rurufufuss: despite better advices [06:15] brainproxy: example: http://jaked.github.com/froc/examples/froc-dom/follow-the-mouse/follow.js [06:15] brainproxy: that's an ocaml program which got run through ocamljs [06:15] rurufufuss: so what does it do? [06:16] brainproxy: http://jaked.github.com/froc/examples/froc-dom/follow-the-mouse/index.html [06:16] Nexxy has joined the channel [06:17] rurufufuss: hmm, seems like a lot of code just for that [06:17] rurufufuss: well, i'm off reading this IO thing first, get a feel to it [06:17] rurufufuss: thanks for the helps amigos [06:17] brainproxy: have fun [06:22] mbrevoort has joined the channel [06:23] rurufufuss: Hmm, I think I get the gist of node.js' event IO stuff [06:23] rurufufuss: so this is faster than instead having multithreaded servers I'm guessing? [06:23] te-brian has joined the channel [06:23] Nexxy: moar efficient for sure [06:23] systemfault: Yes, and uses far less memory. [06:23] rurufufuss: interesting [06:24] Nexxy: less susceptible to DoS! [06:24] Xeon06_ has joined the channel [06:24] rurufufuss: I suppose so eh [06:24] rurufufuss: damn, node.js sure is cool [06:24] rurufufuss: for lack of a better word [06:25] Nexxy: I believe the world you're looking for is, "fucking amazing" [06:25] rurufufuss: not having to worry about threading must be awesome huh [06:28] Xeon06_ has joined the channel [06:30] vipaca has joined the channel [06:30] vipaca has joined the channel [06:32] Xeon06_ has joined the channel [06:34] Lorentz has joined the channel [06:35] materialdesigner has joined the channel [06:36] rurufufuss: what's a decent templating engine for node.js? [06:36] rurufufuss: recommendations, etc. [06:37] SubStack: jade, ejs, weld [06:37] systemfault: jade :) [06:38] rurufufuss: sweet, will take a close inspection [06:38] rurufufuss: hmm, that doesn't look like html at all [06:38] rurufufuss: I suppose php-style templating is obsolete is it? [06:38] rurufufuss: by php style I mean mixing and [06:38] jesusabdullah: That's kinda what ejs does [06:38] jesusabdullah: iirc [06:39] jesusabdullah: If that's what you're into... ;) [06:39] rurufufuss: nah, just curious what's the trend these days [06:39] rurufufuss: I guess there's pros and cons for both [06:40] jesusabdullah: I think many people were dissatisfied with php-style templating, but haven't really proven anything to be better in particular. [06:42] _aron has joined the channel [06:42] Xeon06_ has joined the channel [06:48] Xeon06_ has joined the channel [06:48] infynyxx has joined the channel [06:48] infynyxx has left the channel [06:49] dshaw_ has joined the channel [06:49] dshaw_1 has joined the channel [06:50] craigbarnes has joined the channel [06:51] craigbarnes: Hey, I've got a mini bug report [06:51] craigbarnes: I didn't think it was big enough to report on GitHub [06:52] craigbarnes: You've got a
 block at http://nodejs.org/docs/v0.5.0/api/readline.html#readline that seems to be messed up/wrongly escaped
[06:54] matbee has joined the channel
[06:56] JohnnyL has joined the channel
[06:57] madsleejensen has joined the channel
[06:58] Xeon06_ has joined the channel
[06:58] steffkes has joined the channel
[06:59] amerine has joined the channel
[06:59] saurabhverma has joined the channel
[07:03] seivan has joined the channel
[07:06] maushu has joined the channel
[07:08] tsutton has joined the channel
[07:10] Xeon06_ has joined the channel
[07:10] vipaca has joined the channel
[07:10] vipaca has joined the channel
[07:13] saurabhverma1 has joined the channel
[07:14] Xeon06_ has joined the channel
[07:17] febits has joined the channel
[07:18] Xeon06_ has joined the channel
[07:24] shadow_s has joined the channel
[07:24] davidbanham has joined the channel
[07:26] vipaca has joined the channel
[07:26] vipaca has joined the channel
[07:28] rvb has joined the channel
[07:32] jetienne: what was the name of the joke framework which was empty ? launch last year at confjs
[07:32] KingJamool has joined the channel
[07:33] cjm has joined the channel
[07:34] prettyrobots has joined the channel
[07:34] fangel has joined the channel
[07:35] burg has joined the channel
[07:36] matbee has joined the channel
[07:37] chrisdickinson: rurufufuss: if you're looking for something along the lines of php-style templating, plate might be okay
[07:38] JohnnyL: "there is something strange afoot at the Circle K"
[07:38] Xeon06_ has joined the channel
[07:39] japj has joined the channel
[07:42] sreeix has joined the channel
[07:42] gozala has joined the channel
[07:42] sreeix has joined the channel
[07:44] unlink has joined the channel
[07:44] unlink has joined the channel
[07:45] mikenel has joined the channel
[07:46] boehm has joined the channel
[07:50] Xeon06_ has joined the channel
[07:51] mendel_ has joined the channel
[07:52] SamuraiJack has joined the channel
[07:54] matbee has joined the channel
[07:54] Hansy_ has joined the channel
[07:56] Hansy has joined the channel
[07:57] Hansy has joined the channel
[07:58] SubStack: /sb end
[07:59] gxdssoft has joined the channel
[08:02] Xeon06_ has joined the channel
[08:02] matbee has joined the channel
[08:04] kbni has joined the channel
[08:06] jbpros has joined the channel
[08:11] rajivn has joined the channel
[08:12] Xeon06_ has joined the channel
[08:13] mendel_ has joined the channel
[08:13] quintin has joined the channel
[08:15] quintin: Folks, Need some help with npm installation. 
[08:16] quintin: my nodejs is installed at 
[08:16] quintin:  [deploy@ip-10-x ~]$ which node ~/node/bin/node 
[08:16] Nuck has joined the channel
[08:16] __doc__ has joined the channel
[08:16] quintin: but when i do a  curl http://npmjs.org/install.sh | sudo sh 
[08:17] quintin: i get
[08:17] quintin: npm cannot be installed without nodejs. Install node first, and then try again.  Maybe node is installed, but not in the PATH? Note that running as sudo can change envs.  PATH=/sbin:/bin:/usr/sbin:/usr/bin 
[08:17] quintin: can someone help?
[08:17] context: if you have sudo why not install node to /usr/local ?
[08:17] context: and node needs to be in your path for npm to find it.
[08:18] quintin: i did a echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.profile source ~/.profile
[08:18] Nuck: Is it possible to shard a folder among multiple servers?
[08:18] Nuck: Or do I need to use subfolders to shard
[08:18] context: but thats not where node is
[08:18] quintin: but which node gave me
[08:18] quintin: echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.profile source ~/.profile
[08:18] context: and if you are gonna install it to your home remove the sudo from the command
[08:18] quintin: sorry
[08:19] quintin: which node ~/node/bin/node
[08:19] context: quintin: you just said node was installed at ~/node/bin not ~/local/node/bin
[08:19] quintin: yes yes
[08:19] context: $HOME/local/node/bin != $HOME/node/bin
[08:20] quintin: hmmm
[08:20] context: quintin: curl the://url | sh
[08:20] quintin: you are righr
[08:20] context: remove the sudo.
[08:20] quintin: you are right
[08:20] quintin: @context, do u suggest installing to /home
[08:20] quintin: or to /usr/local?
[08:20] k0ral has joined the channel
[08:20] context: /usr/local if you can.
[08:20] quintin: ok
[08:21] quintin: a ./configure without anyparams
[08:21] quintin: will do that right
[08:21] guidocalvano has joined the channel
[08:21] context: i dont know i use a package manager to handle that stuff for me
[08:21] quintin: yum?
[08:22] quintin: i was looking for a yum repo
[08:22] context: homebrew. i imagine you might be able to find rpm's for the latest node though
[08:22] quintin: didnt find anything
[08:22] quintin: if i dont a ./configure;make;make install
[08:23] quintin: *do
[08:23] context: https://build.opensuse.org/package/show?package=nodejs&project=home%3ASannisDev
[08:23] quintin: will it overwrite existing?
[08:23] context: https://build.opensuse.org/package/show?package=nodejs&project=home%3ASannisDev
[08:23] context: centos, fedora, opensuse
[08:23] vipaca has joined the channel
[08:23] vipaca has joined the channel
[08:23] quintin: ok. that looks cool
[08:24] quintin: thanks a ton
[08:26] Emmanuel__ has joined the channel
[08:28] Nuck: Are there any good modules I should know about for securing a service against spam and abuse?
[08:28] Nuck: Preferable Express-compatible?
[08:29] radiodario has joined the channel
[08:29] context: uhhh. any sort of captcha? requiring people to login? simple math-based 'captchas'
[08:29] Nuck: not like that
[08:29] Nuck: I meant a rate-limiter
[08:30] Nuck: Some module that can rate-limit API calls and such to detect such things.
[08:35] tdegrunt has joined the channel
[08:35] vhold has joined the channel
[08:36] rajivn: Nuck: I haven't used it but have you looked at https://github.com/davglass/express-extras.git There is 'extras.throttle' middleware that might help.
[08:37] harth has joined the channel
[08:38] Xeon06_ has joined the channel
[08:41] hassox has joined the channel
[08:42] Xano has joined the channel
[08:45] hellp has joined the channel
[08:45] EM03 has joined the channel
[08:46] EM03: hey
[08:46] fille has joined the channel
[08:46] fille: hello
[08:46] EM03: anyone here use express?
[08:46] fille: me
[08:46] EM03: the web framework
[08:47] EM03: do you?
[08:47] fille: nod
[08:47] EM03: do you like it?
[08:47] EM03: what do you think of it?
[08:47] fille: well u got totall controll of everything
[08:47] fille: thats the nice part of it
[08:48] fille: anyone using mongoose here?
[08:48] craigbarnes: Nuck: That's not a job for application level code
[08:49] EM03: so what do you think of it fille , ever use rails?
[08:49] craigbarnes: You can rate limit with iptables
[08:49] fille: EM03  its not like django 
[08:49] EM03: would you rather use that or django?
[08:49] fille: EM03 i rather use express.js easy deployment, alot of templates styles
[08:49] Nexxy: ACTION cringes @ the thought of rails
[08:49] EM03: I use rails right now 
[08:50] vhold: fille: I played with it for the first time today..  I got the Chirp example at http://www.ivarvong.com/2010/08/05/node-js-connect-mongoose-and-underscore/ to work with some changes.. but I think I like mongodb-wrapper more...
[08:50] Nexxy: I'm sorry.
[08:50] EM03: how is form handling?
[08:50] EM03: rails is complex and long 
[08:50] Nexxy: EM03, https://github.com/felixge/node-formidable
[08:50] fille: EM03 very easy
[08:50] fille: thanks vhold
[08:50] EM03: easier than rails?
[08:50] Nexxy: and less, "WHOOPS!"
[08:51] EM03: hmmm
[08:51] seyz has joined the channel
[08:51] vhold: the main reason I like mongodb-wrapper more is that I have been playing with mongodb for a couple weeks and have become relatively familiar with the shell, and mongodb-wrapper tries to leverage that 
[08:51] EM03: this could be life changing
[08:51] fille: app.post("/remove",function(req,res)) { res.body.id  }
[08:51] stephank has joined the channel
[08:52] sandstrom_ has joined the channel
[08:52] sandstrom_ has joined the channel
[08:52] vhold: but there's a whole mess of other mongodb node modules I haven't tried 
[08:52] fille: hrm.. okej vhold i will look in to it
[08:53] fille: or i just use mysql.. :D
[08:54] Nuck: craigbarnes: Why is it not application-level?  I intend to throttle API usage and log anything above that so I can monitor the attempts at abuse and tie them to usernames and such :D
[08:54] Nuck: fille: Ewwwwww
[08:54] Nuck: fille: Trust me, Mongodb is better
[08:55] fille: Nuck think about using both
[08:55] Nuck: fille: That's completely and utterly ridiculous.
[08:55] EM03: fille: where you located?
[08:55] m00p has joined the channel
[08:55] Nexxy: why is it ridiculous to use sql and mongo?
[08:56] Nexxy: that's like saying it's ridiculous to use a hammer and a screwdriver
[08:56] Nexxy: instead of just one or the other
[08:56] fille: the plan is to start use mongo db to my autocomplete ajax fields
[08:56] Nuck: Nexxy: Because MySQL is slower and honestly, most use-cases that MongoDB is worse for, it makes up for by being still damn good.
[08:57] Nuck: fille: What do you need MySQL for?
[08:57] fille: i can really just change the question
[08:57] fly-away has joined the channel
[08:58] fille: Nuck, i will look into it
[08:58] EM03: fille: do you do any consulting as well?
[08:58] fille: EM03 im from sweden
[08:59] Locke23rus has joined the channel
[08:59] Nuck: fille: Do you work for Ikea?
[08:59] Nuck: :P
[09:00] Nuck: ACTION assumes all swedes work for Ikea
[09:00] fille: NUCK im going to iKea right now with my girlfriend 
[09:00] Nuck: fille: LMAO Really!?
[09:00] fille: yepp  LOL
[09:00] Nuck: Ikea furniture is pretty fucking nice.
[09:00] Nuck: It made my family not suck at organization!
[09:00] fille: yes but the  fucking with your head
[09:00] vhold: are you talking about the maze aspect of the stores ?
[09:00] fille: reading the manuell 
[09:01] Nuck: fille: The manual is actually better for me than a textual one.
[09:01] vhold: You'd think by now they'd get on the internet bandwagon and make videos of the asembly
[09:01] Nuck: As for the maze of the store, I just go with the flow and follow the arrows :P
[09:01] fille: hehehe, User friendly
[09:02] vhold: apparently there are shortcuts all over the store you can use to bypass the maze
[09:02] vhold: secretish doors
[09:02] Nuck: vhold: lol that'd be nice, but they can't get that wierd airguitar guy into a video easily.
[09:02] fille: yes, i there is, gooing to the biggest in the world 
[09:02] Nuck: As for the secret doors, they do exist.
[09:02] Nuck: I've seen a few at the one in Sacramento.
[09:02] Mrfloyd_ has joined the channel
[09:03] fille: wish me good luck at ikea, 
[09:03] fille: Nuck LoL
[09:03] fille: i will look for the hidden doors
[09:03] fille: maybe i will take some pictures
[09:03] Nuck: fille: Try not to get killed in the maze.
[09:04] crodas has joined the channel
[09:05] liar has joined the channel
[09:06] lmorchard has joined the channel
[09:06] gkmngrgn has joined the channel
[09:07] liar has joined the channel
[09:08] EM03: fille: interested at all?
[09:08] Xeon06_ has joined the channel
[09:16] Yoric has joined the channel
[09:17] cccaldas has joined the channel
[09:19] delian66 has joined the channel
[09:20] Xeon06_ has joined the channel
[09:20] guidocalvano has joined the channel
[09:20] craigbarnes: Nuck: oh, fair point, I thought you just meant to protect from brute force or DDos or something
[09:23] aliem has joined the channel
[09:24] Xeon06_ has joined the channel
[09:25] `3rdEden has joined the channel
[09:25] EM03: is there a room for express?
[09:26] level09 has joined the channel
[09:26] level09: how do I include a (client-side) JS library in my node app  ?
[09:27] level09: should I even do that :D ?
[09:31] chjj: i guess it depends on which one youre talking about, but normally i would say no, theres not really a reason to
[09:31] apanda has joined the channel
[09:32] Xeon06_ has joined the channel
[09:32] dguttman has joined the channel
[09:34] Mr_Wali has joined the channel
[09:36] EM03: how can I convince my boss to do all new web apps in express? 
[09:36] jesusabdullah: Bribery
[09:37] `3rdEden: just give 2 options, either you are going to use express, or  you are going to spend the next 3 months on building your own framework EM03
[09:37] EM03: express seems pretty good 
[09:37] jesusabdullah: Maybe "all new web apps" is too lofty
[09:37] Nuck: EM03: I like `3rdEden's idea.
[09:37] jesusabdullah: Why not suggest trying express for a project or two
[09:37] jesusabdullah: and when those go well, push for moar express
[09:37] Nuck: jesusabdullah: That's probably the best method.
[09:37] jesusabdullah: Probably
[09:37] EM03: all the projects are very large
[09:37] EM03: I'm sick and tired just sick and tired of big ass rails 
[09:37] jesusabdullah: I hope to never learn rails
[09:38] jesusabdullah: personally
[09:38] EM03: man ....its big
[09:38] `3rdEden: I would just quit my job if they told me to develop with rails
[09:38] jesusabdullah: hahaha
[09:38] jesusabdullah: I'm starting to feel that way about twisted :S
[09:39] Nuck: jesusabdullah: Switch to EventEmitters :P
[09:39] Nuck: Right?
[09:39] jomoho has joined the channel
[09:39] sveisvei has joined the channel
[09:39] Nuck: I have yet to see a single bad design decision made in the development of NodeJS.
[09:40] Nuck: And I think this is what makes Node so great today, is the fact that it's fucking flawless.
[09:40] EM03: would you really `3rdEden  ?? 
[09:40] eyesUnclouded has joined the channel
[09:40] `3rdEden: EM03 yes
[09:40] `3rdEden: I have done a couple of ruby sites
[09:40] jesusabdullah: Nuck: What do you mean?
[09:40] `3rdEden: but I'm never ever ever going back to that
[09:40] Nuck: EM03: I would too.  Probably because I'd be canned soon enough anyways, since I don't know Ruby :P
[09:41] jesusabdullah: Yeah, me too
[09:41] Nuck: jesusabdullah: I mean, Node's module systems have ended up almost perfect, and the way EventEmitters work.  Even things which are counterintuitive actually end up coming in handy when you use it for a major project.
[09:42] Nuck: ry must've had some CRAZY foresight.
[09:42] Nuck: I mean, the decision to not support multiple processors
[09:42] Nuck: SEEMS loony.
[09:42] Nuck: But it actually ends up being more scalable in the long run.
[09:43] EM03: `3rdEden: what did you think of it?
[09:43] `3rdEden: EM03 of what? rails?
[09:43] Nuck: OMG AWESOME. https://github.com/danlucraft/git.js
[09:43] EM03: yea
[09:43] `3rdEden: a bloated peice of shit
[09:43] EM03: how extensive did you use it?
[09:43] Nuck: I wonder if this thing could be turned into a git server :P
[09:44] `3rdEden: I got forced to build 3 sites with it
[09:44] markwubben has joined the channel
[09:45] `3rdEden: but luckly i was freelancing then, so i decided to decline all rails related jobs after them
[09:45] Nuck: lol
[09:45] ParadoxQuine has joined the channel
[09:53] simenbrekken has joined the channel
[09:54] Xeon06_ has joined the channel
[09:57] dexter_e: Anyone know Why to define all your Models and views on the window object? like this example-->  http://documentcloud.github.com/backbone/examples/todos/todos.js
[09:57] dexter_e: Whats the benefit of that?
[09:58] Xeon06_ has joined the channel
[10:04] Xeon06_ has joined the channel
[10:07] kakamba has joined the channel
[10:11] daigo has joined the channel
[10:12] Xeon06_ has joined the channel
[10:21] Nexxy has joined the channel
[10:21] Nexxy has joined the channel
[10:21] Marak has joined the channel
[10:21] Marak: http://news.ycombinator.com/item?id=2747483
[10:24] sounko has joined the channel
[10:26] hij1nx_ has joined the channel
[10:30] Xeon06_ has joined the channel
[10:31] prettyrobots has joined the channel
[10:33] daigo has joined the channel
[10:35] mraleph1 has joined the channel
[10:35] piscisaureus_ has joined the channel
[10:36] madsleejensen has joined the channel
[10:37] saschagehlich has joined the channel
[10:39] astropirate has joined the channel
[10:40] astropirate: How are the node.js  user documentations generated?
[10:40] Xeon06_ has joined the channel
[10:40] jimmyrcom has joined the channel
[10:41] astropirate: actually i just need to know the name of the tool :)
[10:43] prettyrobots has joined the channel
[10:44] Xeon06_ has joined the channel
[10:44] craigbarnes: looking in the Makefile might tell you
[10:45] craigbarnes: astropirate: https://github.com/joyent/node/blob/master/Makefile#L222
[10:46] craigbarnes: actually that might be the wrong line
[10:46] craigbarnes: but it's in the somewhere
[10:48] astropirate: craigbarnes, its fine I'll use natural docs
[10:48] astropirate: thank you 
[10:48] ceej has joined the channel
[10:49] craigbarnes: astropirate: np
[10:49] craigbarnes: astropirate: The node docs are generated from markdown I think
[10:50] craigbarnes: Does a pretty good job...hard to find docs as concise and helpful as node's
[10:50] craigbarnes: You normally either find nothing but a readme
[10:50] craigbarnes: or Django-style thesis docs
[10:52] framlin has joined the channel
[10:54] guidocalvano has joined the channel
[10:56] radiodario_ has joined the channel
[10:56] dexter_e: anyone know Why to declare stuff on the 'window' object?    like this backbone.js Example?    http://documentcloud.github.com/backbone/examples/todos/todos.js
[10:56] daigo has joined the channel
[10:57] skm has joined the channel
[10:58] jetienne: SubStack: is it possible to rename the callback in Seq ? in order to avoid this
[10:59] astropirate: dexter_e, there is no way to do that. Going to have to work within the module system
[10:59] vid_ has joined the channel
[10:59] dexter_e: Yeah this is just in the browser
[11:00] dexter_e: its a backbone.js thing 
[11:00] dexter_e: Its more just a general javascript question.
[11:00] Xeon06_ has joined the channel
[11:00] astropirate: ohh you asked why i read how :p   yah because its available everywhere
[11:02] astropirate: as you can see his entire code is wrapped in a functions, the $(function(){   jquery dom ready callback, in order to create a Global object avialable to script outside of this callback, he attached it to the window object
[11:02] astropirate: hope that helps, if it doesn't sorry i'm sleep deprived :D
[11:02] dexter_e: interesting
[11:03] dexter_e: astropirate: thanks
[11:06] SubStack: jetienne: look at seq_, par_, etc
[11:09] jerrysv: wow you people are up late
[11:10] Xeon06_ has joined the channel
[11:10] jetienne: SubStack: ok
[11:13] jetienne: SubStack: euhh i dont thing seq_ symbol in https://github.com/substack/node-seq/blob/master/index.js can you gimme the url on the line which define it ?
[11:13] jetienne: https://github.com/substack/node-seq/blob/master/index.js#L335 SubStack my bad got it
[11:14] jetienne: not this one https://github.com/substack/node-seq/blob/master/index.js#L155
[11:14] jetienne: i guess i will have to understand the source :)
[11:17] fyskij has joined the channel
[11:18] Xeon06_ has joined the channel
[11:18] mekbot has joined the channel
[11:19] SubStack: jetienne: it's in the docs, just look at the readme
[11:20] tuhoojabotti: http://paste.servut.us/plain/5wah The short seems to be unsigned, how can I read a signed short? :D
[11:20] jetienne: SubStack: lets say i cant decipher the doc
[11:22] tuhoojabotti: pdonald: Any help here? :D
[11:23] jetienne: SubStack: as feedback examples are much easier to understand for me that sentence like 'which work exactly like their un-underscored counterparts except for the first parameter to the supplied callback is set to the context, this.'
[11:23] jetienne: SubStack: but it is cool, the source is clear enougth
[11:24] Xeon06_ has joined the channel
[11:31] Spion has joined the channel
[11:31] stalled has joined the channel
[11:33] rurufufuss has joined the channel
[11:34] Xeon06_ has joined the channel
[11:34] dexter_e has joined the channel
[11:34] hybsch has joined the channel
[11:43] fille: back from ikea
[11:43] tayy has joined the channel
[11:43] sounko has joined the channel
[11:44] davidbanham has joined the channel
[11:46] japj: how did you get out of the maze? :)
[11:47] fille: hehe just ran 
[11:47] asabil has joined the channel
[11:48] Xeon06_ has joined the channel
[11:49] _aron has joined the channel
[11:49] tayy has joined the channel
[11:50] fille: i reed that express.js can handle mongodb
[11:51] jetienne: expressjs is independant of the database
[11:51] descipher_ has joined the channel
[11:54] Xeon06_ has joined the channel
[11:54] JKarsrud has joined the channel
[11:55] devaholic has joined the channel
[11:56] Skola has joined the channel
[11:57] jetienne: about that, any node-mysql user ? i got ridiculous performance
[11:57] jetienne: wondering where it come from
[11:58] Xeon06_ has joined the channel
[11:58] okuryu has joined the channel
[12:01] framlin: if anyone wants to add my to its own google+ nodeJS-circle, here is my g+-profile http://gplus.to/framlin
[12:01] hlindset has joined the channel
[12:01] hlindset has joined the channel
[12:02] level09 has joined the channel
[12:03] fille: i going to use mongodb for instant stuff like auto complete
[12:03] mekbot has joined the channel
[12:03] fille: i cant see anyone will ever use the mongodb for financal and buisness stuff
[12:03] fille: framlin just addade yo
[12:04] blup has joined the channel
[12:07] seivan has joined the channel
[12:09] framlin: fille: ;)
[12:09] jackhq has joined the channel
[12:13] dexter_e has joined the channel
[12:13] theCole has joined the channel
[12:15] Motoma has joined the channel
[12:18] Xeon06_ has joined the channel
[12:21] daigo has joined the channel
[12:25] deoxxa: i want to use node.js with a binary network protocol, i'm familiar enough with C++ (and have actually already written a parser for this particular protocol in C++), so does it offer me better performance to write a C++ module to do the heavy lifting?
[12:27] Aria has joined the channel
[12:28] JasonSmith has joined the channel
[12:34] hoax__ has joined the channel
[12:34] jackhq has joined the channel
[12:37] Ramosa has joined the channel
[12:39] Deltachaos has joined the channel
[12:39] xfigue has joined the channel
[12:40] Xeon06_ has joined the channel
[12:40] Deltachaos: hi @all
[12:41] sveisvei has joined the channel
[12:43] heavysixer has joined the channel
[12:44] Xeon06_ has joined the channel
[12:44] bergie has joined the channel
[12:44] aliem has joined the channel
[12:45] patrikkarlin has joined the channel
[12:49] sounko has joined the channel
[12:49] sjbreen has joined the channel
[12:50] Xeon06_ has joined the channel
[12:54] Xeon06_ has joined the channel
[12:54] trepan has joined the channel
[12:57] kbni has joined the channel
[12:57] topaxi has joined the channel
[12:58] unomi has joined the channel
[13:08] Mrfloyd has joined the channel
[13:08] Xeon06_ has joined the channel
[13:09] Wizek has joined the channel
[13:09] dexter_e has joined the channel
[13:11] fille: just wondering..
[13:11] fille: i got my whole page in one document.
[13:12] Xeon06_ has joined the channel
[13:14] kriszyp has joined the channel
[13:19] plainas has joined the channel
[13:19] plainas: hey 
[13:19] plainas: dummy question: how do I exit the console?
[13:19] Bonuspunk: ctrl+c
[13:19] plainas: is that the only way?
[13:20] Bonuspunk: afaik yes
[13:20] Xeon06_ has joined the channel
[13:20] plainas: ah allright
[13:20] plainas: lol
[13:20] Lightdork has joined the channel
[13:22] djcoin has joined the channel
[13:26] yenz: ctrl-d (EOF) is the usual way to exit shells/interpreters :)
[13:26] tuhoojabotti: Ctrl+d didn't work for me :D
[13:28] hybsch has left the channel
[13:29] yenz: ACTION shrugs
[13:29] yenz: does here.
[13:30] sveisvei has joined the channel
[13:35] gozala1 has joined the channel
[13:36] Sorella has joined the channel
[13:40] fille: TypeError: Cannot set property 'maxListeners' of undefined
[13:40] fille:  anyone know about this?
[13:40] fille: mongodb-wrapper
[13:40] kriszyp2 has joined the channel
[13:42] kriszyp has joined the channel
[13:42] dexter_e has joined the channel
[13:43] theCole has joined the channel
[13:43] akshatj has joined the channel
[13:45] gxdssoft has joined the channel
[13:46] Wizek_ has joined the channel
[13:47] jacobolus has joined the channel
[13:48] necrodearia has joined the channel
[13:49] fille has joined the channel
[13:52] Xeon06_ has joined the channel
[13:57] saschagehlich: stagas: a few weeks ago - were you the one who recommended everyauth for oauth authentication?
[13:58] Xeon06_ has joined the channel
[13:58] Wizek has joined the channel
[13:59] jacobolus has joined the channel
[14:00] Lightdork has joined the channel
[14:00] sjbreen has joined the channel
[14:01] skohorn has joined the channel
[14:03] sjbreen has joined the channel
[14:04] Xeon06_ has joined the channel
[14:07] dipser has joined the channel
[14:07] Skola has joined the channel
[14:09] zoid9383 has joined the channel
[14:09] smtlaissezfaire has joined the channel
[14:09] mAritz has joined the channel
[14:13] zoid9383: hi all. Some time ago I found a novel JS super-framework for separating logic and HTML presentation. The ad said it offered most advantages of XSLT without its disadvantages. But I can't remember the name/url. Does anyone know what is that?
[14:13] Ezku\: backbone?
[14:13] Ezku\: perhaps not.
[14:15] framlin: It seems nearly everything offers most advantages of XSLT without its disadvantages ;)
[14:16] kbni has joined the channel
[14:17] stephank: sproutcore? cappucino? dojo? extjs? those are some of the large JS frameworks I know of
[14:18] Xeon06_ has joined the channel
[14:19] zoid9383: I need a server-side lib to generate indexable content
[14:20] zoid9383: I used jsdom with node, but this approach doesn't scale to complex layout.. I found weld but don't know if it's any good
[14:21] tobiassjosten has joined the channel
[14:22] zoid9383: I'd like something that doesn't break markup and doesn't introduce control structures in template language
[14:24] zoid9383: Weld doesn't break and doesn't introduce, but jsdom seems to be an overkill and I'm afraid of getting PHP-like performance in the end
[14:24] mapleman has joined the channel
[14:24] blup has joined the channel
[14:26] davidbanham has joined the channel
[14:26] wilmoore has joined the channel
[14:28] mbrevoort has joined the channel
[14:28] bnoordhuis has joined the channel
[14:28] fille has joined the channel
[14:29] tuhoojabotti: DOM is no good
[14:30] tuhoojabotti: zoid9383: I use dust :D
[14:31] framlin: I use weld and jsdom, but not "in the wild" until now, so I can not say anything about performance. To speed up things I try to seperate the DOM-work into many small event-steps ...
[14:32] framlin: but for me working directly at the DOM using jQuery and jsdom and weld is much mor preferable tha using any templation-language with messing control-statments between the markup
[14:33] zoid9383: tuhoojabotti: yep, but breaking markup a la 
bar is not any better than dom, and weld seems to be an interesting tool to reduce tedium [14:33] tuhoojabotti: Luckily I don't need to break anything, I just destroy stuff. [14:34] burg: how can i run a node.js script in daemon mode? [14:34] Xeon06_ has joined the channel [14:34] simenbrekken has joined the channel [14:34] zoid9383: I use nohup [14:34] zoid9383: nohup node foo.js & [14:34] burg: zoid9383, and if i want to stop it later? [14:34] framlin: so a "native" really fast DOM-Tool comparing to jsdom, but more perfomant would be GREAT [14:35] Bonuspunk: tmux [14:35] bergie has joined the channel [14:35] framlin: kill -9 ? ;) [14:36] bnoordhuis: burg: https://github.com/Slashed/daemon.node <- don't know if it still works with current node though [14:37] bnoordhuis: may be we should add that to core one day [14:37] zoid9383: I'd like to create an rc.d script for arch linux to start it, but I don't know how and too lazy to RTFM [14:38] cjm has joined the channel [14:38] mbrevoort has joined the channel [14:38] dexter_e has joined the channel [14:39] zoid9383: btw I maintain windows binaries so any suggestions are welcome. Are there any binary extensions worth shipping? [14:40] kriszyp has joined the channel [14:40] unlink has joined the channel [14:40] unlink has joined the channel [14:40] cjm has joined the channel [14:45] jacobolus has joined the channel [14:45] tswicegood has joined the channel [14:46] simenbrekken has joined the channel [14:50] Xeon06_ has joined the channel [14:51] CIA-110: libuv: 03Ben Noordhuis 07master * re2b2df6 10/ src/uv-unix.c : Fix alloc-after-close error, properly disarm uv_tcp_t handle. - http://bit.ly/rjzgky [14:56] unomi has joined the channel [14:59] fyskij has joined the channel [15:02] Xeon06_ has joined the channel [15:03] sjbreen has left the channel [15:03] sjbreen has joined the channel [15:04] rauchg has joined the channel [15:04] formasfunction has joined the channel [15:04] Mrfloyd has joined the channel [15:06] scottschecter has joined the channel [15:06] scottschecter has left the channel [15:07] postwait has joined the channel [15:08] tmzt: zoid9383: look at jade-lang.com it has control structures but they are optional [15:11] sveisvei has joined the channel [15:12] Aikar: im at my grandmas where i use to live, i think they are upstairs in the attic still lol [15:12] Aikar: mt [15:13] jetienne_ has joined the channel [15:14] Xeon06_ has joined the channel [15:14] Ramosa: has anything been communicated abuot when to expect the windows version? year, quarter, etc. [15:15] mynyml has joined the channel [15:16] Aikar: very soon [15:16] mikedeboer has joined the channel [15:16] Aikar: 0.5.0 just debuted, ry said they will provide official binaries in 0.5.1 [15:16] Ramosa: yeah i noticed the first line saying New non-default libuv backend to support IOCP on Windows. Use --use-uv to enable. [15:17] Aikar: so just wait a week or two and you wont have to worry about compiling it yourself [15:17] Ramosa: christmas is early this year :p [15:17] Aikar: now theres no guarantees itll run great / be stable :P [15:17] Aikar: it still is the unstable branch [15:18] Ramosa: as long as can be used for development, im happy [15:19] stephank: So in browserify, I have require `{ 'foo': './lib', 'jquery': 'jquery-browserify' }`, where foo depends on jquery. But it says it cannot find jquery? It's definitely sitting there in node_modules. [15:21] jslert has joined the channel [15:21] stephank: Seems it works if I split it in two separate require calls. [15:22] Xeon06_ has joined the channel [15:23] CIA-110: libuv: 03Ben Noordhuis 07master * r8d3d4a4 10/ (config-mingw.mk config-unix.mk): [15:23] CIA-110: libuv: Revert 9518ab65: Allow user to specify CC env var (CC=clang make) [15:23] CIA-110: libuv: Conditional assignment (assign if not set) to CC and AR never works [15:23] CIA-110: libuv: because their default values with GNU make are `cc` and `ar` respectively. [15:23] CIA-110: libuv: Build with `make AR=your-ar CC=your-cc` if you want to override them. [15:23] CIA-110: libuv: Fixes #89. - http://bit.ly/nukaTW [15:24] smtlaissezfaire has joined the channel [15:25] kriszyp has joined the channel [15:26] SubStack: stephank: yeah the ordering is a bit screwy sometimes still >_< [15:27] EM03: anyone here use express? [15:28] stephank: SubStack: Well, I only started using it minutes ago. I just figured it was lazily bundled, but apparently not. So it makes sense now. :) [15:28] Xeon06_ has joined the channel [15:30] plainas has left the channel [15:30] bogomips has joined the channel [15:32] stagas_ has joined the channel [15:32] Xeon06_ has joined the channel [15:32] materialdesigner has joined the channel [15:32] Bartzy has joined the channel [15:33] SubStack: stephank: it probably should be! [15:33] Bartzy: Hi [15:33] dve has joined the channel [15:33] Bartzy: Node.js is not intended to serve static files, right ? [15:33] madsleejensen has joined the channel [15:33] SubStack: Bartzy: you can serve static files [15:33] bnoordhuis: Bartzy: not specifically but it can [15:33] SubStack: I do it all the time [15:34] SubStack: it's as easy as app.use(express.static(__dirname + '/static')) [15:34] Bartzy: What I need to do is put nginx in front , answering all requests to my domain, and proxying requests to files that doesn't exist ? [15:35] jetienne_: in qunit, is there something to like noraise() ? i have seen raise() but not noraise [15:36] jetienne_: Bartzy: google you will have thousand of answer. and btw this is nginx stuff not node ones :) [15:36] jetienne_: btw does node have sendfile() ? [15:37] EM03: how does express compare to other languages of a framework of similar size? [15:37] EM03: how if form handling? and sessions [15:37] edude03 has joined the channel [15:38] delian66 has joined the channel [15:38] delian66 has joined the channel [15:39] sirdancealot has joined the channel [15:39] bnoordhuis: jetienne: re sendfile: yes [15:41] jetienne_: bnoordhuis: any link ? or way to access such function [15:41] _aron has joined the channel [15:41] bnoordhuis: jetienne_: it's fs.sendfile() but it's not documented [15:42] jetienne_: ah [15:43] jetienne_: bnoordhuis: https://github.com/joyent/node/blob/master/lib/fs.js#L363 thanks [15:43] bnoordhuis: jetienne_: it follows regular sendfile(2) semantics though, just add a callback as the last argument [15:43] bnoordhuis: jetienne_: yep, that's the one :) [15:43] jetienne_: bnoordhuis: any reason not to doc it ? [15:44] bnoordhuis: jetienne_: i think it's mainly because sendfile isn't very portable [15:44] jetienne_: hmm ok [15:44] EM03: hmmmm . bllllah [15:45] jetienne_: EM03: search for such comparison on the web, it is better suitter than irc [15:45] jetienne_: suitted [15:45] EM03: i did google quite a bit hmm I think I might just go for it [15:46] EM03: I work on very large projects so sometimes if a bad framework is used we all suffer [15:46] jetienne_: EM03: the point is more in the language you use for the server [15:46] EM03: we do rails and we are miserable [15:47] EM03: rails gets huge and bloated quick [15:47] jetienne_: EM03: if you use node.js on the server, express.js is used a lot [15:47] RC1140 has left the channel [15:47] EM03: yes this would be all server [15:47] flyingCircus has joined the channel [15:47] jetienne_: EM03: ok so play with express for a day or tzo [15:47] jetienne_: two [15:47] jetienne_: this is worthwhile, it is clearly the most used framework in node [15:47] EM03: yea i was last night, I'm probably going for it :P [15:47] Charuru has joined the channel [15:48] jetienne_: if you do ruby, i think sinatra is the closest analogy [15:48] EM03: I did notice that ...sometime hard to convince , hey we should scrap rails .....use express hmm [15:48] jetienne_: there is a lot more [15:48] bogomips: hi [15:49] vbn has joined the channel [15:49] jetienne_: i mean i use only js for 18months now, and i wont advice you to switch your code base just like that [15:49] willwhite has joined the channel [15:50] jetienne_: doc, maturity, time to rewrite, time to teach the team to use javascript [15:50] flyingCircus has left the channel [15:50] jetienne_: those criteria are real [15:51] Bartzy: SubStack: But should I serve static files with node.js ? [15:51] Bartzy: or is nginx more suitable for that ? [15:52] EM03: jetienne_: rails is killing us [15:52] Aikar: EM03: stab it back [15:52] SubStack: Bartzy: use whatever is easy and does the job! [15:53] Bartzy: SubStack: That's not the answer I was looking for :) [15:53] jetienne_: nginx [15:53] c4milo1 has joined the channel [15:53] jetienne_: it uses less ram and is a more suitable front [15:53] vipaca has joined the channel [15:53] Bartzy: SubStack: I can serve static files from PHP for example. But that's extremely stupid. My question is what are the general and best practice deployments of node.js in websites. Behind some web server ? [15:54] SubStack: Bartzy: you haven't given us enough information to make an informed response [15:54] SubStack: are you serving up gigabytes of data each day? best to use nginx then [15:54] hippich has joined the channel [15:54] SubStack: are you just serving a few static files? node works just fine for that [15:54] EM03: Aikar: we are bleeding, we are almost dead .....help :( ....we work on stuff that is over 300k lines etc and rails just becomes a file mess quickly [15:54] hippich has joined the channel [15:55] SubStack: Bartzy: I don't put node behind anything but other people do [15:55] jetienne_: EM03: to rewrtie 300kline of ruby wont happen any time soon [15:55] EM03: oh no [15:55] SubStack: it's all very new and the tech is evolving [15:55] EM03: this is just for new stuff [15:55] jetienne_: EM03: you got the time to estimate the alternative [15:55] Bartzy: Node.js is generally used only for high-tarffic apps ? [15:55] Bartzy: or also for regular websites ? [15:55] EM03: express with some templates seems to be a good way of doing it [15:55] srid has joined the channel [15:55] srid has joined the channel [15:55] jetienne_: EM03: express.js + node.js is nice if you know js for real and efficient on cpu/ram [15:56] EM03: the framework is much like the ruby web framework sinatra [15:56] blkcat: Bartzy: i think you're creating artificial distinctions here :) [15:56] blkcat: Bartzy: you can use node for whatever you want. [15:56] blkcat: i run my personal website on node just because i can. ;) [15:56] jetienne_: blkcat: ++ [15:57] jetienne_: Bartzy: to bench static file in node is like 3 cmdline :) [15:57] jetienne_: Bartzy: 1. create the apps. 2. run the app.js 3. do ab [15:57] jetienne_: Bartzy: im not kidding :) [15:57] Bartzy: SubStack: So with node you open the static files and serve them ? [15:58] jetienne_: Bartzy: yes [15:58] SubStack: Bartzy: you can use one of the many static modules on npm [15:58] SubStack: some of them have caching even [15:58] jetienne_: caching static file im not sure it is smart :)\ [15:59] Bartzy: I don't get why use node.js when you don't need high concurrency ? [15:59] SubStack: Bartzy: because it's nice and has great libraries [15:59] jetienne_: Bartzy: you dont [15:59] SubStack: ACTION does [16:00] blkcat: ACTION too [16:00] Bonuspunk: because its super easy and it does exactly what i need [16:00] jetienne_: Bartzy: you use it when you want js [16:00] jetienne_: js is the key here [16:00] SubStack: I have super low concurrency needs, I'm just here for the libraries [16:00] blkcat: ^ [16:00] devongovett has joined the channel [16:00] jetienne_: i just want to be able to forget php/python/ruby [16:01] insin has joined the channel [16:01] Bartzy: SubStack: And Python/PHP/Ruby don't ? [16:01] jetienne_: hehe [16:01] jetienne_: Bartzy: they do [16:01] framlin: I just use node to be as cool as node ;) [16:01] japj has joined the channel [16:01] jetienne_: php got a doc which is so much better than node [16:02] tayy has joined the channel [16:02] SubStack: it must! [16:02] jetienne_: ruby doc is crap too [16:02] SubStack: all those inconsistencies aren't going to document themselves :p [16:02] robhawkes has joined the channel [16:02] jetienne_: :) [16:02] framlin: no real programmer needs docs ... ;) [16:02] Bartzy: Bonuspunk: What do you "need" ? [16:02] jetienne_: framlin: mouaouaou [16:03] jetienne_: framlin: prgorammer are efficient. so doc+stability is super important [16:03] Bartzy: SubStack: But there are so many libraries for Python... [16:03] jetienne_: Bartzy: then use python [16:03] mendel_ has joined the channel [16:03] blkcat: if you like python better, use python. :) [16:03] Bartzy: jetienne_: I'm not trying to insult anyone. Just to understand why people use node.js when there's no real concurrency need... [16:03] jetienne_: blkcat: python is good. a good part of google is in python. the LARGEST website on the world [16:03] SubStack: I like how node is the first big post-github framework [16:04] jetienne_: Bartzy: because concurrency is irrelevant [16:04] SubStack: we can be much more federated about everything [16:04] blkcat: Bartzy: because they like javascript and they like the libraries. we've been over this, i think. ;) [16:04] mendel_ has joined the channel [16:04] jetienne_: Bartzy: you can do it in any language [16:04] jetienne_: Bartzy: dont believe the press [16:05] jslert has left the channel [16:05] framlin: Bartzy: If your fingers think JavaScript, then you should use nodeJS if they do not think, try Erlang, if you need concurrency [16:05] dguttman has joined the channel [16:06] Bonuspunk: Bartzy http.createServer(function(req, res) { /* here i place my code */ }).listen(PORT) [16:07] framlin: Bartzy: I code JavaScript 10 hours a day since 5 years, why should I use any system that forces me to think ... say .... Java? [16:08] sirdancealot has joined the channel [16:10] mendel_ has joined the channel [16:10] StephenFalken has joined the channel [16:11] perlmonkey2 has joined the channel [16:12] simenbrekken has joined the channel [16:12] carmony has joined the channel [16:12] sandstrom has joined the channel [16:12] sandstrom has joined the channel [16:13] blup has joined the channel [16:13] Bonuspunk: everybody seen this --> http://www.youtube.com/watch?v=u6XAPnuFjJc <-- ? [16:15] jslert has joined the channel [16:16] mjijackson has joined the channel [16:17] jslert has left the channel [16:17] kbni has joined the channel [16:18] Xeon06_ has joined the channel [16:18] alexandere has joined the channel [16:18] materialdesigner has joined the channel [16:19] cccaldas has joined the channel [16:20] madsleejensen has joined the channel [16:22] bingomanatee has joined the channel [16:22] bingomanatee: My Canvas article http://wonderlandlabs.com/wll_drupal/os/node/canvas/index.html [16:22] Detroitboy has joined the channel [16:22] Detroitboy: Yo, it/join #ruby-lang [16:28] sivy has joined the channel [16:28] chapel: ¯\_(ツ)_/¯ [16:30] Xeon06_ has joined the channel [16:31] Detroitboy: This is the boy from the Motor City. I'm sipping Vernors while typing Ruby on my Macbook. The muggers love me cause my cell's a 313. [16:31] Detroitboy: The Detroit ladies are sick sick sick so sick I need 911 [16:32] ckknight: is there anything like capistrano for node.js? [16:32] Detroitboy: The Tigers will freak freak freak you out. The Motor City is a lovely city. Put your hands up 4 Detroi. [16:32] Detroitboy: ckknight: now.js [16:33] justicefries has joined the channel [16:33] ckknight: Detroitboy: that is very different, I'm talking about capistrano, the deployment utility [16:34] Detroitboy: oh [16:34] Detroitboy: ACTION learned something new today. [16:34] vbn has joined the channel [16:37] boxysean has joined the channel [16:38] bogomips: using this method, how i can send stdin to my child ? i read about child.stdi but is not clear how i must use it. thanks [16:38] bogomips: http://pastebin.com/d0j5Hmux [16:38] Xeon06_ has joined the channel [16:41] mikeal has joined the channel [16:41] brolin has joined the channel [16:46] patrikkarlin has joined the channel [16:46] Fuu has joined the channel [16:47] boxysean: hi all, getting ungoogleable error lines 10-13 most important [16:48] boxysean: socket.io and node.js [16:48] boxysean: node server crashing whenever a client connects due to not being able to find setHeader method in ServerResponse object [16:48] orion_ has joined the channel [16:49] boxysean: seems like setHeader is supposed to be there, so perhaps i have a simple error somewhere on my system [16:49] boxysean: any leads on where to look would be appreciated :) [16:50] blkhawk has joined the channel [16:51] Guest11664: The more I think about it, the less I ever want to server dynamic html [16:51] Guest11664: And the less I want to maintain a map of redirects and links between pages and protocols [16:52] Guest11664: I'm coding up something right now to serve up a bootstrap and handle all the templates and introduce new js through script tags like jsonp [16:52] Guest11664: But it occurs to me this might already exist [16:52] stride: boxysean: have you tried that on a more recent version of node / is your socket.io version from around the time node 0.2.6 was released? [16:53] Guest11664: Anyone know about this? [16:53] coltr has joined the channel [16:53] stride: Guest11664: https://github.com/joyent/node/wiki/modules#templating one of those maybe :) [16:54] Guest11664: Thanks, I'll check it out [16:54] stride: .oO(when the hell did that list grow so large) [16:55] stride: Guest11664: as for the bootstrapping part, express/connect is the most popular framework for web related stuff nowadays [16:55] framlin: Guest11664: why not manipulate just the DOM on the server and send it to the client? [16:55] kmox83 has joined the channel [16:56] niftylettuce has joined the channel [16:56] framlin: Guest11664: sending the HTML-representation of the DOM to the server .. [16:56] Guest11664: Because that makes it so I can't cache anything, and it mixes two separate concerns [16:56] framlin: why can't you cache and what would be mixed? [16:57] Guest11664: Because there really isn't any reason that it would help [16:57] framlin: ah ok [16:57] Guest11664: yeah [16:57] framlin: and why would templating help you? [16:57] Xano has joined the channel [16:58] Guest11664: Well, the templating I'm not sweating [16:58] Guest11664: But it would help because the templates are static files [16:58] Guest11664: So they could be cached at the server and the client if need be [16:58] boxysean: stride: i'm looking, thanks :) [16:58] Detroitboy: How do you get DOM in node.js? [16:58] Guest11664: I'm not entirely sure you do [16:59] Guest11664: Even if you could, I don't think you'd want to, which is kind of what we are talking about [16:59] Guest11664: :) [16:59] framlin: If I have to create WebPages, I use nodejs and jQuery to create the DOM [16:59] framlin: jsdom [16:59] framlin: that runs on nodejs .. [17:00] mwl has joined the channel [17:00] framlin: and there is nort reason, why I should not be able to cache that [17:01] bingomanatee: In my experience putting DOM in a DRY context further removes your templates from your designers; i.e., it makes more work for you , and not necessarily the kind of work I consider meaningful. [17:01] framlin: becaus the cahce would sit in front of that part of the system that has to process the WebPages [17:02] framlin: ok, but I have no designers [17:02] framlin: ;) [17:02] bingomanatee: jQuery has a nice templating language thats relatively accessible. [17:02] Guest11664: Cache things like
12
Sup Jive Turkey, I am number 12
[17:02] Guest11664: ? [17:02] Guest11664: Because you could, yeah [17:02] Detroitboy: bingomanatee: What does DRY mean? [17:02] Guest11664: Don't Repeat Yourself [17:02] Guest11664: Anyhow, that would only be shared for that user [17:03] bingomanatee: Don't repeat yourself; the whole YAML/Coffeescript/HAML school of development [17:03] Guest11664: So it would be memory intensive, and when ANY data changes, your cache is invalidated [17:03] Guest11664: So on a dynamic web page it doesn't work so well [17:03] madsleejensen has joined the channel [17:04] framlin: I can not see any connection, between the question, where you process your pages and if you reapeat anything ... [17:04] Guest11664: Nah, just trying to answer a question [17:04] Guest11664: Sorry about the confusion [17:04] framlin: Guest11664: but I see your point concernig cache [17:04] Guest11664: Although, this does help that [17:05] vbn has joined the channel [17:05] Guest11664: What I am gathering is that this is relatively unexplored territory [17:06] Guest11664: I should probably push this code to github or something... [17:06] bingomanatee: You could try popping github -- who knows what you'll get! [17:07] Guest11664: WOAH! I got a ruby implementation of brainf**k! [17:07] Guest11664: I got a dinner eating simulator! [17:07] Guest11664: I got all the code to a major social network! [17:07] Guest11664: These are all so useless, yet fun! :) [17:08] framlin: DRY and seperation of responsibility are general development-goals, but I do not think, that they are connected to tempolating or not or Ruby vs. JavaScript or some like that [17:09] Detroitboy: Why can't I pass a string as a reference? [17:09] Guest11664: I think they *are* connected to templating :) I suppose we'll see [17:10] Guest11664: @DetriotBoy: http://stackoverflow.com/questions/51185/are-javascript-strings-immutable-do-i-need-a-string-builder-in-js [17:10] boxysean: stride: win! was relying too hard on aptitude to pick my node.js version [17:10] Xeon06_ has joined the channel [17:11] Guest11664: Not easy to google for, but there it is, hope it helps [17:12] Spion has joined the channel [17:13] Guest11664: Wow, dyslexic me, Detroitboy -- see above solution (is that how you get someone's attention on IRC?) [17:14] dve has joined the channel [17:14] Detroitboy: hmm [17:14] framlin: Guest11664: have you seen this: http://blog.nodejitsu.com/micro-templates-are-dead ? [17:14] Detroitboy: Guest11664: Thanks [17:14] Guest11664: np [17:14] Guest11664: I hadn't seen that [17:14] Guest11664: I'll check it out [17:16] Guest11664: Hmm... [17:17] Guest11664: I think he starts with some good thoughts [17:17] Guest11664: But he constrains the solution [17:17] Guest11664: You don't need the server to do the templating [17:17] Guest11664: Once you stop doing that, this problem goes away [17:18] Guest11664: Also, I'm not crazy about this idea front end programmers are idiots [17:18] arlolra has joined the channel [17:19] Guest11664: Not to say I haven't met more than a few people in the intersection of those two categories :) [17:20] brianseeders has joined the channel [17:20] Guest11664: Anyhow, I'm going to go finish programming that up so I have a demo to show people why it makes sense, which may or may not actually accomplish that goal [17:21] EM03: what do you guys think of the whole node jade template thing? [17:21] guidocalvano has joined the channel [17:22] insin: it's very... templatey [17:22] muk_mb has joined the channel [17:22] Spion_ has joined the channel [17:23] amerine has joined the channel [17:23] prettyrobots has joined the channel [17:24] framlin: Guest18468: But if you want to do the templating on the client, there has to run JavaScript on the client, right? [17:25] nerdfiles has joined the channel [17:27] igl: jade is great EM03 [17:27] EM03: itsl ike haml [17:27] EM03: i think i would like html with inline js or something [17:27] igl: > ejs [17:29] ryanj has joined the channel [17:30] EM03: seems like jade is the most feature complete when it comes to debuging and error reporting, would that be correct igl ? [17:30] Xeon06_ has joined the channel [17:31] igl: jade and ejs are the most popular ones and pretty much on par [17:32] charlenopires has joined the channel [17:33] muk_mb: Could I get one of you guys to do some code-review with me? [17:34] prettyrobots has joined the channel [17:34] EM03: igl: you still recommend jade probably though right? [17:34] Xeon06_ has joined the channel [17:34] blkcat: jade is very feature-rich even if the syntax occasionally drives me bonkers [17:35] jetienne_ has joined the channel [17:35] EM03: blkcat: so you would recommend that for if I'm using it with express right [17:35] EM03: I never got much into haml , but it seems very similar in a way [17:36] blkcat: sure. :) [17:36] blkcat: it's developed by the same guy so it's probably your best bet. [17:36] Croms has joined the channel [17:42] muk_mb1 has joined the channel [17:43] alexandere has joined the channel [17:43] balaa has joined the channel [17:46] coltr has joined the channel [17:46] mikeal has joined the channel [17:50] muk_mb has joined the channel [17:52] EM03: is express broken right now blkcat ? [17:53] blkcat: eh? [17:53] cccaldas has joined the channel [17:53] boxysean has joined the channel [17:54] EM03: hmm [17:54] jetienne_: EM03: express.js is a serious lib, not a weekend project. it doesnt break without a good reason [17:54] EM03: well [17:54] EM03: http://stackoverflow.com/questions/5161828/express-framework-giving-a-very-strange-error [17:54] EM03: i wonder if this issue is resolved [17:54] sirdancealot has joined the channel [17:54] EM03: I'm getting the same thing [17:54] explodes has joined the channel [17:54] jetienne_: EM03: i have seen node.js release postponed because it broke express.js [17:54] explodes: Hey #node.js. Writing a small application in node.js, relatively new to javascript. In a lot of other javascript scripts, I see the whole file's code contents wrapped like so: (function(){ ..module contents.. })() What is the point of doing this? In node.js, is this design improper form? [17:55] jbpros has joined the channel [17:55] jetienne_: EM03: the error is elsewhere [17:55] jetienne_: EM03: seriously you do require('express') and you get an exception ? [17:55] SubStack: explodes: that is a workaround for how the browser doesn't have a module system [17:56] SubStack: but node's module system is quite nice so it's unnecessary! [17:56] EM03: can i do npm install -g -d [17:56] EM03: ? [17:56] jetienne_: no clue i dont use npm it never worked for me [17:56] SubStack: explodes: here's more about modules: http://nodejs.org/docs/v0.4.9/api/all.html#modules [17:56] jetienne_: i do node_modules instead [17:56] explodes: SubStack: And the potential polluting of global variables is of no concern? [17:57] jetienne_: EM03: let me say it differently, i created a new project yesterday with express. and all went ok [17:57] SubStack: explodes: you have to go out of your way to pollute the global namespace thankfully [17:58] EM03: Error: Cannot find module 'express' [17:58] EM03: but i run express somedir/ << and all works fine [17:58] explodes: Excellent [17:58] SubStack: explodes: if you just require() files you'll be fine since node already puts a (function () {})() around everything [17:58] jetienne_: EM03: well you need to install express [17:58] EM03: ^^ [17:58] explodes: Oh whaddup [17:58] EM03: i did npm install express -g [17:58] EM03: then express testerdir/ << made everything .....node. app.js and it doesn't work [17:59] reid has joined the channel [17:59] jetienne_: EM03: "nmod install express" in the root of your directory [17:59] jetienne_: EM03: i went up to code nmod to workaround npm stuff i dont ge [17:59] jetienne_: t [17:59] EM03: nmod? [18:00] jetienne_: EM03: a single node.js script which read npm database and install it in local node_modules [18:00] jetienne_: simple and predictable [18:00] EM03: where is the file? [18:00] jetienne_: https://github.com/jeromeetienne/nmod for source [18:00] EM03: ah [18:00] jetienne_: sudo wget -O /usr/bin/nmod --no-check-certificate http://github.com/jeromeetienne/nmod/raw/master/nmod [18:00] jetienne_: sudo chmod +x /usr/bin/nmod [18:00] jetienne_: to instqll [18:00] EM03: btw this is crazy 2 months ago .......this worked just fine [18:01] jetienne_: EM03: the issue here is npm, not express [18:01] EM03: oh [18:01] EM03: hmm [18:01] EM03: wonder why [18:01] jetienne_: i stopped wondering :) [18:02] jetienne_: EM03: you can git clone too [18:02] boxysean: hey guys, i'm having a socket.io issue. my app works on my web browser but no longer on my android phone and emulator (it had worked previously) [18:03] boxysean: the android is giving this on the console.log "E/browser ( 291): Console: Flash Player >= 10.0.0 is required. http://192.168.1.111/~boxysean/NoBarrierOSC/js/lib/socket.io.js:1031" [18:03] jetienne_: boxysean: #socket.io may know more [18:03] boxysean: thanks [18:03] boxysean: :) [18:03] jetienne_: Flash Player ? no good [18:03] jetienne_: boxysean: my suggestion would be to play with transport option [18:03] boxysean: okay. i have done a bit, removing/adding new transports [18:03] boxysean: will try a bit more [18:03] jetienne_: put a long polling one before flash [18:04] jetienne_: my guess is that you got flash on your android but a version which isnt cool for socket.io [18:04] EM03: actually i got it jetienne_ [18:04] EM03: :P [18:04] jetienne_: EM03: cool :) [18:07] user__ has joined the channel [18:08] gazumps has joined the channel [18:08] madsleejensen has joined the channel [18:09] jerrysv has joined the channel [18:12] jetienne_: boxysean: btw there is a remember option, which cache last transport, be sure to set it to false [18:12] raidfive has joined the channel [18:12] boxysean: jetienne_, it has been set to false [18:13] dgathright has joined the channel [18:13] boxysean: jetienne_, i'm looking into reordering, i had seen xhr-polling to be the method working on android [18:13] omni5cience_ has joined the channel [18:13] boxysean: jetienne_, also curious if that error message i quoted above is a black swan, maybe it was showing before too [18:13] jetienne_: boxysean: this isnt clean but you may do "if android put xhr polling first" [18:14] boxysean: jetienne_, not a bad idea at all, working > cleanliness at this point [18:15] maushu has joined the channel [18:16] temp01 has joined the channel [18:17] jetienne_: boxysean: btw OSC = sound stuff ? [18:17] mikeal has joined the channel [18:19] boxysean: jetienne_, yeah "the new midi" but y'know midi will persist [18:19] boxysean: OSC = "the new midi" that is [18:19] dtan: hey, does anyone use mongoose? [18:20] Xeon06_ has joined the channel [18:20] ekryski has joined the channel [18:21] dtan has joined the channel [18:21] vbn has joined the channel [18:22] jetienne_: boxysean: doing a music game here. the music source are midi file [18:23] boxysean: jetienne_, i can't imagine how OSC would be better than a MIDI file in that context [18:23] jetienne_: boxysean: unlikely it would be :) here it is about the amount of existing files encoded in this format. midi [18:24] boxysean: jetienne_, OSC is popular/native with Processing, MaxMSP, OpenFrameworks. artists tend to use it for a variety of things [18:24] jetienne_: boxysean: i used it with max in the past life :) [18:25] harth has joined the channel [18:25] boxysean: ah okay :) [18:26] boxysean: jetienne_, making here a platform for networked interactivity, i.e., people use their phones, pop up a webpage, press some buttons, messages sent to server and server reacts [18:26] boxysean: jetienne_, good for interactive installations or performances [18:27] boxysean: jetienne_, has been done a few ways i think, but still no clear best solution [18:27] jetienne_: boxysean: nice :) i organised demojs.org last week. and we had a concert 8bit controlled by gameboy :) [18:28] jetienne_: boxysean: btw the latency on websocket/flashsocket are super good, 25ms [18:28] febits has joined the channel [18:28] jetienne_: i run a server on this. http://easywebsocket.org [18:28] Badababuba1 has joined the channel [18:29] jetienne_: http://easywebsocket.org/contrib/monitor/ for the latency [18:29] boxysean: jetienne_, oh good to know. i was pessimistic about it working over the web [18:29] jetienne_: it all depends on server location [18:29] boxysean: yes true :) [18:30] jetienne_: 25ms is for me being in paris, and the server too :) [18:30] boxysean: jetienne_, also love 8bit/gameboys/etc will look into your conference [18:30] jetienne_: nice stuff sponsored by mozilla [18:30] fattytuna has joined the channel [18:31] madsleejensen has joined the channel [18:31] felixge has joined the channel [18:31] felixge has joined the channel [18:31] jetienne_: going back to work have fun dont hesitate to ping me [18:35] Joad has joined the channel [18:36] Kingdutch has joined the channel [18:38] guidocalvano has joined the channel [18:38] liquidproof has joined the channel [18:41] mikeal has joined the channel [18:41] kriszyp has joined the channel [18:42] pifantastic has joined the channel [18:44] sbrekken has joined the channel [18:44] marcello3d has joined the channel [18:47] hellp has joined the channel [18:49] blkhawk has left the channel [18:51] blueadept has joined the channel [18:52] m00p has joined the channel [18:53] Radziu has joined the channel [18:56] charlenopires has joined the channel [18:57] jakehow has joined the channel [18:58] epopt37 has left the channel [18:58] Badababuba1 has joined the channel [19:03] patcito has joined the channel [19:04] tdegrunt has joined the channel [19:05] tdegrunt has joined the channel [19:08] dguttman has joined the channel [19:08] stephank: SubStack: You should totally document the options to require() in browserify. It seems like they're meant to be internal, but I find them useful. [19:12] Xeon06_ has joined the channel [19:13] vid_ has joined the channel [19:14] Badababuba1 has joined the channel [19:14] eriaranth000 has left the channel [19:15] madsleejensen has joined the channel [19:15] daithi has joined the channel [19:22] Badababuba1 has joined the channel [19:22] arlolra: does anyone here have a server running OpenBSD? would you be willing to donate it as a slave for the node.js buildbot? [19:22] Xeon06_ has joined the channel [19:22] context: a nodejs buildbot? [19:22] charlenopires has joined the channel [19:22] context: for like native extensions? [19:23] Badababuba1 has joined the channel [19:23] dshaw_ has joined the channel [19:23] Badababuba1 has joined the channel [19:23] dshaw_1 has joined the channel [19:24] jonasen has joined the channel [19:25] blup has joined the channel [19:25] apanda has joined the channel [19:25] Badababuba1 has joined the channel [19:28] wilmoore has joined the channel [19:29] Kuntau has joined the channel [19:29] mc_greeny has joined the channel [19:31] TechCel has joined the channel [19:31] Kuntau: i got a fatal error with python when trying to ./configure node.js [19:32] Xeon06_ has joined the channel [19:32] Kuntau: died waiting for dll loading, errno 11 [19:32] arlolra: context: http://buildbot.nodejs.org/waterfall [19:34] Kuntau: are refering that to me arlolra? [19:34] dguttman has joined the channel [19:37] level09 has joined the channel [19:37] Badababuba1 has joined the channel [19:37] brolin_ has joined the channel [19:38] Xeon06_ has joined the channel [19:38] Badababuba1 has joined the channel [19:39] madsleejensen has joined the channel [19:39] AvianFlu has joined the channel [19:40] Badababuba1 has joined the channel [19:40] coltr: Kuntau: http://blog.drewbowman.net/2010/12/problem-compiling-node-js-on-windows/ [19:40] DoNaLd`: is it possible somehow get text value from select in posted form ? [19:41] wilmoore has joined the channel [19:42] brolin has joined the channel [19:43] criswell has joined the channel [19:43] arlolra: Kuntau: no, that was to the user name "context" [19:44] Xeon06_ has joined the channel [19:47] charlenopires_ has joined the channel [19:48] slajax has joined the channel [19:50] Xeon06_ has joined the channel [19:52] __directory has joined the channel [19:53] akiva has joined the channel [19:53] akiva: Hello all [19:54] EM03: whats the thing again to not have to reload my file directly? [19:54] tilgovi has joined the channel [19:54] tilgovi has joined the channel [19:54] akiva: nodemon [19:54] akiva: EM03: ^ [19:55] smtlaissezfaire has joined the channel [19:55] Remoun has joined the channel [19:55] Joad has joined the channel [19:55] EM03: thank you [19:55] EM03: akiva: have you used express before? [19:56] akiva: Yes. [19:56] EM03: if you have can you recommend a few other npm's that I might need? [19:56] EM03: modules sorry [19:56] akiva: Start by not using any, imo. I am still rather new myself. But starting with the minimum helps [19:57] EM03: i mean i got all the needed things , jade etc [19:57] EM03: just curious if its like ....you absolutely need this and this [19:57] EM03: such as nodemon [19:57] Wizek-other has joined the channel [19:57] akiva: Nope. Not at all. But I use EJS and Stylus all the time. [19:58] ji0n has joined the channel [19:58] akiva: Obviously you need more if you use databases, etc. [19:58] kriszyp has joined the channel [19:59] EM03: i was thinking of using sequealize honestly ..... [19:59] EM03: what do you think of that? [19:59] EM03: how do you use your db stuff? [19:59] EM03: I have no issue with SQL myself personally [20:00] akiva: So far I haven't delved too deeply in heavy DB stuff. I am quite into Mongo and that, but Sequelize does look promising [20:00] EM03: hmm actually I think i want to use SQL directly hmm [20:00] akiva: I am not really for ORMs at all, so I woudln't know about that [20:00] EM03: i like orm's alot but sometimes they go overboard [20:00] akiva: ORMs are deceptive beasts [20:01] EM03: my issue with orm's is that sometimes I think the closer you are to the data the better the db [20:01] EM03: and the application [20:01] EM03: I was a dba for quite some time [20:01] EM03: some people who don't write sql alot like orm's because it seems to abstract it away a little [20:01] EM03: I feel so much more comfortable with sql directly though [20:01] akiva: You shouldn't abstract SQL at all [20:02] akiva: Ever. [20:02] akiva: But I understand where they are coming from. [20:02] akiva: I recently tweeted to a great blog post about just that very thing [20:02] dguttman has joined the channel [20:02] tmzt: anybody know how with or without mongoose to get a cursor that sends all the results then a complete event? I've tried just handling results == null as the complete but it doesn't work consistently [20:03] akiva: It seems contrary to any reasoning to worry so much about abstracting SQL statements. Rarely does a project ever switch DBs, and even when they do, it's hardly such an issue that it's worth the performance hit of an ORM [20:03] EM03: akiva: to people who don't use sql alot , working with data in that way sounds great [20:03] EM03: but I'm super super quick with sql [20:03] EM03: yea the whole db agnostic stuff is kinda stupid [20:03] EM03: i never change [20:04] akiva: EM03: I think they are tricking themselves into thinking that because they don't want to learn the SQL. SQL is extremely easy. If anyone really considers themselves a programmer, they ought to know it. [20:04] EM03: unless you do some stupid stuff like put facebook on sqlite [20:04] EM03: yes , we think alike , I love my joins [20:04] perezd has joined the channel [20:04] EM03: all the many to one crap that orm's do add more complexity in so many ways [20:04] akiva: Yes. Joins are truly rubbish in ORMs [20:04] akiva: I still believe in writing my own models. [20:04] akiva: ALWAYS use models for data [20:05] EM03: yes for sure [20:05] EM03: nothing against models [20:05] EM03: its the model tied to an ORM is my issue [20:05] akiva: But ORMs are rubbish, always grabbing every single column (SELECT *) [20:05] akiva: blacgh [20:05] Arenstar has joined the channel [20:05] EM03: and it feels natural akiva , its faster .....why because its so obvious !!! [20:06] EM03: sometimes it feels to obvious and people call it the PHP way .....its more like the computer science way, most db crucial apps outside of web apps work directly with SQL [20:06] akiva: Laziness causes more laziness, which causes only headaches long term. [20:06] mbrevoort has joined the channel [20:06] madsleejensen has joined the channel [20:06] EM03: I'm just not in the mood for fighting with orm's [20:06] akiva: ^_^ [20:07] EM03: I work some very large apps .... 10k hits per sec [20:07] EM03: so this node will be perfect [20:07] EM03: with express, sql binding and jade templates.....we really might have something here! [20:07] dnjaramba has joined the channel [20:08] akiva: Express is pretty nice, from what I have found so far. It helps that it's quite light. [20:08] fille has joined the channel [20:08] akiva: I am still tempted to just roll my own system for some apps [20:08] fille: bnei akiva? [20:08] kkaefer: akiva: why would you roll your own over express/connect? [20:09] akiva: kkaefer: Not every app calls from the same set up. If I make some thing really light, it may prove more interesting to try my own microframework out tailored to do only what the app needs. Plus it helps to learn new things. [20:09] akiva: fille: Yes? [20:09] akiva: My name is Akiva, too [20:09] fille: nice :D [20:09] blueadept: what's the linux command to scan n ip to check what type of http server it's running? [20:10] dephex has joined the channel [20:10] fille: ifcongif? [20:10] blueadept: i dont think so [20:11] EM03: akiva: what do you think of rails? [20:11] EM03: it became a nightmare for me [20:11] akiva: I have used it before, but as much as I love Ruby, it's too sluggish for my liking. [20:11] tmzt: nmap [20:11] blueadept: ah that's it [20:11] blueadept: thanks! [20:11] akiva: Rails 3 is nice. The older ones, no. [20:11] tmzt: if you're on the computer, netstat -tllp [20:11] tmzt: -tlp [20:12] tmzt: as for type, try nc ip 80 [20:12] fille: any one have experince with node-mongodb-wrapper [20:12] fille: ? [20:13] jameson has joined the channel [20:13] EM03: akiva: i love ruby as well .....well actually no i hate ruby I <3 smalltalk so that means I have to love ruby because its the only similar language that has that much smalltalk influence [20:13] EM03: but JS just works and v8 is super quick [20:14] akiva: EM03: Objective C has some smalltalk influence in there. [20:14] fille: EM03 why do u need to be convinced, what do u think ? [20:14] EM03: oh yea I do like objc a well [20:14] akiva: But I am trying to focus mainly on NodeJS these days. [20:14] EM03: fille: convinced of what? express? [20:14] fille: asked me the same questions some hours ago [20:14] EM03: I'm convinced as of now [20:14] EM03: last night before I went to bed yea [20:15] localhost has joined the channel [20:15] EM03: fille: I just woke back up a little bit ago :D [20:15] elijah has joined the channel [20:15] fille: :D [20:15] kbni has joined the channel [20:16] tmzt: I've got to learn how to do unit testing the right way, including of my websockets api [20:16] alexandere has joined the channel [20:16] akiva: Express is nice, yes. But like I said, it may be worth while to try to work only in node to start, learning how all the modules come together. [20:16] fille: i dont like javascript, it has nothing with what i learnd in school [20:17] tmzt: very hard to do node without javascript [20:17] fille: exactly, but i learnd java and .NET in school [20:17] AvianFlu: so forget them to make space for node [20:18] AvianFlu: that's what I did with perl :-P [20:18] akiva: .NET is the devil. Java is not far behind. lol [20:18] akiva: Java is okay in some ways, but not really for me. [20:18] fille: already did ,but what happend if u scale up a node.js project [20:18] akiva: It's incredibly bloated, but at least it is fast. [20:18] AvianFlu: actually, I would say that PHP is the devil [20:18] AvianFlu: there's more temptation involved [20:19] AvianFlu: "Write me! I'm easy! Don't worry about sanitizing your input..." [20:19] akiva: PHP is as good as the developer behind it. [20:19] akiva: Many of the most heavily trafficked sites are using PHP [20:19] AvianFlu: ultimately, I agree; though my joke stand [20:19] AvianFlu: s [20:19] akiva: Yes. PHP can be gross for sure. [20:19] isaacs has joined the channel [20:19] akiva: Time to work. [20:19] shadow_s has joined the channel [20:20] AvianFlu: we're going to see that with node, too - I don't imagine that the million noob march is far off once windows support lands :-P [20:20] fille: cohesion [20:20] akiva: Node is too confusing for noobs [20:20] fille: and coupling [20:20] akiva: Asynchronicity is lost on them [20:21] akiva: spelling, sorry. [20:21] AvianFlu: that's the problem though! [20:21] unlink has joined the channel [20:21] AvianFlu: they're not gonna get scared off because of hard syntax - the syntax is easy [20:21] AvianFlu: they're gonna start to code, and not do async stuff right [20:21] smtlaissezfaire has joined the channel [20:21] fille: i got one file for my express project [20:22] akiva: Well, that's no different than jQuery. Most of the jQuery users are nightmares. [20:22] fille: i dont think thats something good [20:22] fille: and some views [20:22] AvianFlu: yeah true lol [20:22] Swizec has joined the channel [20:23] Kingdutch: You shouldn't make stuff too easy [20:23] Kingdutch: Because you get crappy code [20:23] Kingdutch: Which results in sloppy programs [20:24] jeromegn has joined the channel [20:24] Kingdutch: @ the few lines of the conversation I read [20:24] fille: i dont think my express code is very nice [20:25] Aria has joined the channel [20:25] muk_mb has joined the channel [20:25] arnee has joined the channel [20:25] fille: its a mess with app.post and app.get functions [20:25] Swizec: programmers shoudl be lazy [20:25] Swizec: their tools should make it easier to be lazy well [20:26] fille: i whant to see yammers code [20:27] igl1 has joined the channel [20:27] mikedeboer has joined the channel [20:27] fille: so to my question did any one get the mongodb-wrapper work [20:29] localhost has joined the channel [20:32] EM03: -there is so many mysql modules ....which is the de facto standard? [20:33] fille: mysql [20:33] fille: npm install mysql [20:33] fille: felix module [20:33] EM03: so node-mysql? [20:33] fille: yes [20:34] EM03: ok i saw another called db-mysql wasn't sure which one was the standard [20:34] fille: felige is really good [20:34] Xeon06_ has joined the channel [20:34] fille: felixge [20:34] EM03: node-mysql it is ! [20:34] elijah|home has joined the channel [20:34] fille: greate chooise [20:34] radiodario has joined the channel [20:35] mange has joined the channel [20:36] necrodearia has joined the channel [20:37] jmoyers has joined the channel [20:37] dguttman has joined the channel [20:38] Wizek has joined the channel [20:38] EM03: now lets see how fast I can get my first express project done :) [20:38] srid has joined the channel [20:38] srid has joined the channel [20:38] EM03: only thing that still scares me is form handling, thats always a troubling point for many frameworks [20:39] fille: u mean like POST form? [20:39] sirdancealot has joined the channel [20:39] localhost has joined the channel [20:40] fille: like
< [20:40] Wizek_ has joined the channel [20:41] fille: http://www.bjornalycke.se/articles/mysql-vs-mongodb-0 [20:42] tuxolo has joined the channel [20:44] gazumps has joined the channel [20:48] Xeon06_ has joined the channel [20:50] caolanm has joined the channel [20:51] supster has joined the channel [20:52] Xeon06_ has joined the channel [20:53] tuxolo has joined the channel [20:54] criswell has joined the channel [20:54] vhold1 has joined the channel [20:54] Kuntau has joined the channel [20:56] sirdancealot has joined the channel [20:57] kbni has joined the channel [20:57] Nizam has joined the channel [20:58] robot_jesus has joined the channel [21:01] secoif_ has joined the channel [21:01] squeese has joined the channel [21:01] EM03: fille: yes not so much the sending form, i'm more concerned about accessing the actual POST data [21:01] niftylettuce has joined the channel [21:01] EM03: in rails it can be a b*tch [21:01] Kuntau has joined the channel [21:02] Xeon06_ has joined the channel [21:03] Melkor_ has joined the channel [21:04] secoif_ has joined the channel [21:04] vhold1: With the ''connect' middleware, you just put in a bodyParser layer and it populates a "body" hash with the parameters in the request object [21:07] srid has joined the channel [21:08] Sh4wn has joined the channel [21:08] Xeon06_ has joined the channel [21:10] gozala has joined the channel [21:12] fille: EM03 okej [21:12] Xeon06_ has joined the channel [21:12] blup has joined the channel [21:13] arnorhs has joined the channel [21:14] EM03: fille: okej? [21:15] fille: EM03 about the post data [21:15] EM03: I googled okeg fille couldn't find anything, would you be so kind? :P [21:17] fille: i [21:17] fille: app.use(express.bodyParser()); [21:17] fille: app.use(express.methodOverride()); [21:17] fille: app.post('/keywords/word/:id',function(req,res) { [21:17] fille: var id = req.body.id; [21:17] fille: there u go [21:18] Xeon06_ has joined the channel [21:18] Wizek has joined the channel [21:18] fille: something like that? [21:20] fille: dont mind the /keywords/word/:id [21:21] perlmonkey2 has joined the channel [21:24] Xeon06_ has joined the channel [21:24] pHcF has joined the channel [21:29] Badababuba has joined the channel [21:29] tsutton has joined the channel [21:30] Xeon06_ has joined the channel [21:31] dall has joined the channel [21:31] dall: hello everybody [21:31] dall: is there a node.js module to create charts ? (i mean .png .gif or .jpg file with the chart) [21:33] Melkor_ has joined the channel [21:33] jmoyers: dall: http://thechangelog.com/post/1489735759/node-canvas-render-and-stream-html5-canvas-using-node-js [21:34] sirdancealot has joined the channel [21:35] dall: jmoyers, thank you...but i don't what to stream it...i only want to save it as image on the server [21:35] jmoyers: ... [21:36] jmoyers: double check the example [21:36] dall: jmoyers, but i think it should be ok [21:36] dall: :D [21:36] adrianmg has joined the channel [21:37] sivy has joined the channel [21:37] dall: amazing [21:37] dall: thanks!!!! [21:37] dall: :D [21:38] isaacs: dall: canvas.createPNGStream().pipe(fs.createWriteStream("output.png")) [21:38] dall: isaacs, thanks! [21:38] dall: perfect [21:39] isaacs: dall: the stream interface paradigm is powerful [21:39] isaacs: dall: it's a universal data interface. [21:39] willwhite has joined the channel [21:39] alek_br_ has joined the channel [21:40] mynyml has joined the channel [21:40] dall: good... now i'm installing the module [21:40] dall: thank you guys! [21:41] Renegade001 has joined the channel [21:42] perlmonkey2 has joined the channel [21:43] kakamba has joined the channel [21:43] dall: isaacs, https://github.com/LearnBoost/node-canvas right? [21:43] kakamba has joined the channel [21:43] isaacs: i think so, yah [21:44] chjj has joined the channel [21:45] dall: uh is not on npm [21:45] dall: npm ERR! 404 'node-canvas' is not in the npm registry. [21:45] isaacs: i think it's just called "canvas" [21:45] dall: grrrrrrrr [21:45] dall: yes yes [21:45] dall: :F [21:45] mandric has joined the channel [21:45] isaacs: dall https://github.com/LearnBoost/node-canvas/blob/master/package.json#L1 [21:45] madsleejensen has joined the channel [21:46] dall: yes [21:46] dall: isaacs, i had a problem [21:46] dall: on moment i post it [21:46] dall: isaacs, https://gist.github.com/1075004 [21:47] isaacs: dall: Checking for library jpeg : not found [21:47] isaacs: Checking for cairo : not found [21:47] isaacs: dall: you should probably install libcairo or whatever it's called in your platform [21:47] enr^ has joined the channel [21:47] dall: i'm using ubuntu [21:47] dall: ok i will check [21:47] isaacs: apt-search cairo maybe? [21:48] dall: libcairo2 - The Cairo 2D vector graphics library [21:48] dall: yes [21:48] isaacs: apt-cache search cairo [21:48] dall: i will install it [21:48] isaacs: dall: you may need the libcairo2-dev, as well [21:48] dall: both ? [21:49] isaacs: depends on whether or not node-canvas uses cairo's header files [21:49] mange has joined the channel [21:49] dall: i'm isntalling both [21:49] dall: :) [21:50] dall: isaacs, what about Checking for node path : not found ? [21:52] dall: done [21:52] dall: but i still have: [21:52] dall: Checking for library jpeg : not found [21:52] dall: and [21:53] dall: Checking for node path : not found [21:53] davidbanham has joined the channel [21:53] Badababuba1 has joined the channel [21:53] Badababuba2 has joined the channel [21:54] Xeon06_ has joined the channel [21:55] Badababuba2 has joined the channel [21:56] jmoyers: presumably you're looking for libjpeg [21:56] Badababuba2 has joined the channel [21:58] Wizek has joined the channel [21:58] Wa has joined the channel [21:58] dall: jmoyers, good! fixed....and for Checking for node path : not found ?? [21:58] tmzt: anybody know how to require a directory full of .js for the side effects (mongoose) [21:58] Badababuba1 has joined the channel [21:59] jmoyers: did the build fail? [21:59] skohorn has joined the channel [21:59] Badababuba1 has joined the channel [22:00] JohnnyL has joined the channel [22:01] dall: jmoyers, no [22:01] jmoyers: well, then don't worry about it. [22:01] Badababuba1 has joined the channel [22:01] Nexxy has joined the channel [22:02] dall: ok [22:02] dall: jmoyers, node-canvas is very good...but there aren't enough information on the readme [22:03] dall: like how to create a line chart [22:03] dall: ecc ecc [22:03] dall: do you know a tutorial about it? [22:03] jmoyers: its not a charting tool -- its html5 canvas, serverside [22:03] jmoyers: there aren't going to be specific graphing examples [22:04] Badababuba1 has joined the channel [22:04] dall: jmoyers, do you know a charting tool for node? [22:04] oscarkilhed has joined the channel [22:05] Nexxy: wouldn't you rather make charts client side? [22:06] dall: no i have to save those png files on the server [22:06] jmoyers: this is pretty much getting #lazyweb to the extreme [22:06] jmoyers: https://gist.github.com/708166 [22:06] jmoyers: google is friend [22:06] jmoyers: at least put a little effort in [22:06] jmoyers: node-canvas is a way to have a pretty fully featured canvas api on the server side -- output to a png etc. any graphing package that uses the canvas api is potentially a friend [22:07] dall: OK [22:10] localhost1 has joined the channel [22:10] brownies has joined the channel [22:12] JohnnyL has joined the channel [22:12] Badababuba1 has joined the channel [22:13] dall: guys how could i send post and get request to a web page ? [22:13] skm has joined the channel [22:14] Nexxy: dall, ask context! He knows all about it ;3 [22:14] jmoyers: http://nodejs.org/docs/v0.4.9/api/http.html#http.request [22:14] Nexxy: no no no [22:14] Nexxy: there are MODULES for that! [22:14] localhost has joined the channel [22:14] Nexxy: why would you use a native node method?! [22:14] jmoyers: also, no shit http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=nodejs+post [22:14] jmoyers: second result [22:14] jmoyers: this is what i mean by a little effort [22:15] jmoyers: Nexxy mikeal's request is not a bad add on [22:15] jmoyers: handling cookies and common responses isn't bad [22:15] smtlaissezfaire has joined the channel [22:15] Nexxy: jmoyers, I was being facetious ;P [22:16] jmoyers: =x [22:16] TooTallNate has joined the channel [22:16] kriszyp has joined the channel [22:16] mikey_p: ACTION can't tell when Nexxy is being facetious anymore [22:16] Nexxy: I was raked over the coals by a few folks for suggesting http.request instead of a module [22:16] Nexxy: lol [22:16] mikey_p: ACTION remembers [22:16] Nexxy: mikey_p, mission accomplished. [22:16] jmoyers: thats retarded [22:17] mikey_p: no kidding [22:17] Nexxy: well... trendy languages tend to attract retardation [22:17] mikey_p: i don't know why node even has native anything [22:17] Nexxy: look at ruby [22:17] Nexxy: ACTION gigglesnort [22:17] jmoyers: we need more native html5 [22:17] jmoyers: tbh [22:17] stride: a module? for a http post? [22:17] pen has joined the channel [22:17] mikey_p: LOL [22:18] simenbrekken has joined the channel [22:18] Nexxy: ACTION writes an eye-tracking module that includes modules in your app w/o any typing required [22:18] llrcombs: what's wrong with http.request? [22:19] Nexxy: it's not part of a fancy module [22:19] mikey_p: i don't think I could hate anything more than HTML5 hype [22:19] stride: Nexxy: make sure that every 10 eye movements a module for generating those eye movements comes out of a reactor [22:19] jmoyers: html5 deserves hype [22:19] llrcombs: OMG fancyness [22:19] jmoyers: and also, its one of the things speeding up the browser wars [22:19] llrcombs: jmeyers: to a degree [22:19] jmoyers: so let it ride dude [22:19] llrcombs: it definitely deserves hype [22:19] mikey_p: "i just viewed source on your article about HTML5 has revolutionized your blog, and uhm, all you're using is the doctype tag." [22:20] jmoyers: i mean, you have to admit [22:20] llrcombs: some bits deserve more hype than they're getting [22:20] jmoyers: that short doctype [22:20] jmoyers: its so sexy [22:20] llrcombs: but some deserve less [22:20] llrcombs: jmeyers: true [22:20] mikey_p: I very much like HTML5, I just hate the hype without substance [22:20] llrcombs: I'm not sure what the long doctype was actually good for [22:20] jmoyers: not throwing your rendering into quirksmode? [22:20] al3xnull has joined the channel [22:20] Badababuba1 has joined the channel [22:21] llrcombs: jmeyers: quirksmode was never a good idea [22:21] jmoyers: shit happens [22:21] kriszyp has joined the channel [22:21] jmoyers: also its MOYERS for the love of god [22:21] llrcombs: oh sorry [22:21] jmoyers: :-) [22:21] llrcombs: I'm on VNC, small font [22:22] llrcombs: jmoyers: better? [22:22] jmoyers: yes indeed [22:22] jmoyers: i dont always type names in irc [22:22] jmoyers: but when i do, i use tab complete [22:22] jmoyers: ACTION chuckles at overused meme [22:22] Nexxy: ACTION squints [22:23] Nexxy: not sure if jmeyers or jmoyers [22:23] tilgovi has joined the channel [22:23] Nexxy: ACTION giggles at misuse of meme [22:23] jmoyers: their overuse is their strength [22:24] chjj: in fact, i think that is the definition of a meme [22:24] chjj: something overused [22:24] Nexxy: nu uh! [22:24] chjj: an internet meme anyway [22:24] Badababuba1 has joined the channel [22:24] Nexxy: I know of 2 people that would vehemently deny your definition! [22:24] chjj: i must be wrong then [22:25] Nexxy: what's new? ;o [22:25] chjj: :( [22:25] Nexxy: jay kay lewl! [22:26] Badababuba1 has joined the channel [22:26] kriszyp has joined the channel [22:27] sirdancealot has joined the channel [22:30] kriszyp has joined the channel [22:33] bluebit has joined the channel [22:33] Badababuba1 has joined the channel [22:33] sandstrom has joined the channel [22:33] sandstrom has joined the channel [22:34] Badababuba1 has joined the channel [22:34] Badababuba1 has joined the channel [22:37] blippedxd has joined the channel [22:38] Badababuba1 has joined the channel [22:38] mange has joined the channel [22:39] liar has joined the channel [22:39] kartmetal has joined the channel [22:40] ryanfitz has joined the channel [22:41] Badababuba1 has joined the channel [22:41] robhawkes has joined the channel [22:41] slajax has joined the channel [22:41] luisloaia has joined the channel [22:42] luisloaia: How you guys set response Headers? [22:42] luisloaia: I want to set the response Header [22:42] luisloaia: in a request [22:42] vyvea has joined the channel [22:43] jmoyers: http://nodejs.org/docs/v0.4.9/api/http.html#response.writeHead [22:43] jmoyers: luisloaia ^ [22:44] luisloaia: res.writeHead(200, {"Access-Control-Allow-Origin":"*","Content-Type" : "application/json"}); [22:44] luisloaia: this way [22:44] luisloaia: already try it, let's see [22:45] Badababuba has joined the channel [22:45] sandstrom has joined the channel [22:45] sandstrom has joined the channel [22:45] blippedxd has joined the channel [22:51] vyvea: Hello, what name of "sys" is on v0.5.1-pre? [22:52] bnoordhuis: mraleph: why is `for (var i = 0; i < 10e6; ++i)` roughly 5-10 times slower than `for (var i = 0; i < 1000 * 1000; ++i)`? [22:52] bnoordhuis: and i know the former is a floating-point number [22:53] alek_br_ has joined the channel [22:53] bnoordhuis: but why doesn't v8 pick up the fact that it's a constant in this context? [22:53] Wa has joined the channel [22:53] bnoordhuis: s/constant/integer constant/ [22:53] bnoordhuis: vyvea: util [22:54] mikey_p: http://twitter.com/mikey_p/status/90188908620546048 [22:54] vyvea: bnoordhuis, thanks. [22:54] llrcombs: you guys have seen http://rodgercombs.webhop.net/maps/freenode/Node.js/current/true right? [22:55] mange has joined the channel [22:55] Badababuba has joined the channel [22:56] mraleph1: bnoordhuis: well. it is 10 times slower because u do 10 times more iterations :-) [22:56] Apjones has joined the channel [22:56] mraleph1: v8: 10e6 / (1000 * 1000) [22:56] v8bot: mraleph1: 10 [22:56] mraleph1: magic [22:56] mraleph1: also it is not double [22:56] niftylettuce has joined the channel [22:57] Badababuba has joined the channel [22:57] mraleph1: v8: Math.log(10e6) / Math.LOG2E [22:57] v8bot: mraleph1: 11.172212556457277 [22:57] mraleph1: v8: Math.log(Math.E) [22:57] v8bot: mraleph1: 1 [22:58] llrcombs: v8: 0.1 + 0.2 [22:58] v8bot: llrcombs: 0.30000000000000004 [22:58] mikey_p: llrcombs: that's pretty cool [22:58] llrcombs: mikey_p: it's pretty weird [22:58] llrcombs: it has to do with binary math and losing precision [22:58] bnoordhuis: mraleph1: ah! *hangs head in shame* [22:58] bnoordhuis: embarrassing [22:58] llrcombs: could someone explain to me how that works, and how to prevent it from fscking up my code? [23:00] mikey_p: llrcombs: i meant the graph [23:00] mikey_p: llrcombs: can you add channels? [23:00] mraleph1: oh Math.LOG2E is not log_e 2 argh [23:00] llrcombs: it runs in any chan I join [23:00] mraleph1: v8: Math.log(10e6) / Math.log(2) [23:00] v8bot: mraleph1: 23.25349666421154 [23:01] mraleph1: yeah that's more like it [23:01] bnoordhuis: mraleph1: fun with numbers? [23:01] erobit has joined the channel [23:01] llrcombs: because it' on my BNC [23:01] llrcombs: *it's [23:01] llrcombs: I might split it off to run on its own, just in any channel I ask it to, eventually [23:01] mraleph1: bnoordhuis: yeah. this days a rarely use anything I learned about math in school. not speaking about uni [23:01] llrcombs: but for now, I have to find a channel worthwhile-ish to add it [23:01] mraleph1: s/a rarely/I rarely/ [23:02] necromancer has left the channel [23:02] bnoordhuis: mraleph1: i know how it is - and i studied CS :-/ [23:02] cjm has joined the channel [23:02] llrcombs: mikey_p: what channel do you want it in? [23:03] llrcombs: I'll evaluate [23:03] llrcombs: and if I decide I don't want it, I can walk you through running it yourself [23:03] mikey_p: I was just curious what'd it look like in drupal-contribute [23:03] Nuck has joined the channel [23:03] llrcombs: oh, just curiosity about a particular chan [23:04] mikey_p: yeah [23:04] llrcombs: they're generated based on live data [23:04] llrcombs: not logs [23:04] llrcombs: so it'd have to be in there for a while to get going [23:04] llrcombs: if you wanna run my script, though, I'll help you out [23:05] davidbanham has joined the channel [23:05] jmoyers: llrcombs thats not a javascript problem [23:05] jmoyers: rather a floating point one [23:05] jmoyers: v8: (0.1 * 10 + 0.2 * 10) / 10 [23:05] v8bot: jmoyers: 0.3 [23:10] Xeon06_ has joined the channel [23:12] __directory has joined the channel [23:12] chapel: llrcombs: you should make it so you can see a specific persons social map [23:13] llrcombs: chapel: that would be rediculously complex [23:13] llrcombs: because I didn't write the actual bot [23:13] chapel: well I don't know how you are dealing with the data [23:13] chapel: I assumed you wrote it [23:13] llrcombs: I modded it to output .json rather than actually rendering .pngs [23:13] chapel: ah [23:13] chapel: thats cool [23:14] chapel: whats the bnc? [23:14] llrcombs: the .json contains the loctations of all the nodes, and the ends, thickness, and opacity of all the bonds [23:14] llrcombs: I also wrote the HTML/JS magic of the webpage [23:14] sivy has joined the channel [23:14] chapel: nice [23:14] chapel: what bnc software? [23:15] llrcombs: ZNC [23:15] chapel: kk, thats what I use [23:15] chapel: I need to finish the bnc Im writing in node [23:16] llrcombs: if you read the code, it actually has full support for real live-updates [23:16] llrcombs: via EventSource and Node.js [23:16] Druide_ has joined the channel [23:17] sounko has joined the channel [23:18] xtat has left the channel [23:18] jerrysv has joined the channel [23:20] llrcombs: but I disabled it because the directory watcher it used was taking up way too much RAM [23:21] llrcombs: I've gotta teach the Java bot to write to a fifo when a new .json gets written [23:21] llrcombs: then I won't need a dir watcher! [23:24] Xeon06_ has joined the channel [23:25] materialdesigner has joined the channel [23:25] localhost has joined the channel [23:25] erobit has joined the channel [23:25] ceej has joined the channel [23:26] JasonSmith has joined the channel [23:27] mikey_p: llrcombs: it'd be cool if it had a history slider that worked like etherpad [23:27] mikey_p: just drag side to side to go back and forth through old revisions [23:27] mikey_p: and then a play button to play forward from any point in the past [23:31] llrcombs: mikey_p: it does have history, just not in the form of a slider [23:31] llrcombs: would you like a slider? [23:32] Xeon06_ has joined the channel [23:32] llrcombs: the play button wouldn't be too difficult either [23:32] mikey_p: and you have to hold down the little button to 'play' the history [23:32] mikey_p: i dunno, just observing [23:32] dhasenan has joined the channel [23:32] mikey_p: animations are always shiny [23:33] eventual- has joined the channel [23:33] llrcombs: please note that the unit of time is not "minutes", "hours", or "seconds". It's in "inferrable lines sent" [23:33] davidbanham has joined the channel [23:34] Mister_Black has joined the channel [23:34] Mister_Black has left the channel [23:39] duck_ has joined the channel [23:39] omni5cience has left the channel [23:40] duck_: i'm using a layout.ejs page with express and ejs... [23:40] duck_: i would like to use a different layout in part of my app [23:40] Xeon06_ has joined the channel [23:41] hassox has joined the channel [23:41] rfay has joined the channel [23:41] duck_: but when I specify res.render('mypage.ejs', { layout: 'mylayout.ejs' ... }); [23:41] eyesUnclouded has joined the channel [23:42] duck_: express renders the default layout as well as mylayout.ejs both [23:42] duck_: is there a way to effectively change the layout page being used [23:45] pen has joined the channel [23:47] ekryski has joined the channel [23:47] sjbreen has joined the channel [23:48] Xeon06_ has joined the channel [23:49] sivy has joined the channel [23:50] radiodario has joined the channel [23:51] cafesofie has joined the channel [23:54] Xeon06_ has joined the channel [23:55] burg has joined the channel [23:58] Xeon06_ has joined the channel [23:58] benjaminRRR has joined the channel