[00:00] abjorn: but uh [00:00] towski has joined the channel [00:00] ako: just tried it... works fine [00:00] abjorn: same here [00:00] ako: document.getElementById('header').style.marginLeft="10px" <- on reddit does indeed move the header 10px to the right [00:00] abjorn: document.getElementById("main").style.marginLeft = "10px"; [00:01] mavus has joined the channel [00:01] JSprob: hmm [00:01] ako: and i agree. wrong channel. :P [00:01] JSprob: yes i know sorry [00:01] JSprob: but there is no traffic atm [00:01] abjorn: make sure the `format` var is really what you think it is [00:02] JSprob: it is a string [00:02] StanlySoManly has joined the channel [00:02] JSprob: "10px" [00:02] JSprob: so i thought it should work [00:02] ako: try it in firebug [00:02] ako: (or whatever) [00:03] JSprob: i did :D [00:04] JSprob: well now i changed it to document.getElementById('stephie').style.marginLeft = "\"" + erg2 + "px\""; [00:04] JSprob: erg2 is the number 10 [00:04] abjorn: o.O [00:04] JSprob: but doesnt work either [00:04] jmoyers: no need for almost any of that [00:04] JSprob: okay looks like i did it wrong :D [00:04] jmoyers: value + "px"; [00:04] jmoyers: should work fine [00:04] abjorn: almost any of that? try "all" of that [00:04] jmoyers: its not looking for " in the string [00:04] abjorn: :p [00:04] abjorn: yeah a string saying "10px" should be just fine [00:04] ako: that's '"10px"' [00:05] JSprob: but the number is a variable [00:05] ako: not '10px' (or "10px") [00:05] JSprob: its calculated [00:05] abjorn: the DOM may be crap but it's not *that* bad [00:05] jmoyers: i'd recommend making sure whatever element you are adding a margin to also works with vanilla css [00:05] ako: number + string = string [00:05] abjorn: what jmoyers said [00:05] JSprob: okay i try it [00:05] JSprob: thank you [00:05] JSprob: =) [00:05] jmoyers: style="margin-left: 10px" or whatnot [00:05] JSprob: yes [00:06] azeroth_ has joined the channel [00:06] ako: fwiw, 0.5.6 does work on winxp again :o [00:06] ako: :) [00:06] JSprob: yeeeeeeeeeeeeees [00:06] JSprob: works [00:06] JSprob: hahaha [00:06] JSprob: nice thank you [00:06] bicranial has joined the channel [00:06] JSprob: =) [00:07] jmoyers: and thus, you have begun your journey [00:07] jmoyers: and stuff [00:08] aho: is there a reason why the docs aren't alphabetically sorted? [00:09] aho: i mean sure... greasemonkey can fix that... but seriously... :> [00:11] jmoyers: ctrl-f? [00:11] traviscooper has joined the channel [00:12] bnoordhuis: aho: yes, it's annoying [00:12] bnoordhuis: it's one of those "we should fix that sometime" things [00:12] crodas has joined the channel [00:12] aho: the docs are somewhat generated aren't they? [00:13] tmpvar has joined the channel [00:13] JaKWaC has joined the channel [00:13] aho: is the raw data available? [00:13] bnoordhuis: aho: yes, it's in the docs/ directory of the repo [00:15] aho: hum... markdown... [00:16] JaKWaC has joined the channel [00:18] Aabhas has joined the channel [00:18] Aabhas: hi [00:18] Aabhas: I need you help [00:19] Aabhas: I tried to make node on cygwin [00:19] Aabhas: it is very painful on windows [00:19] fangel has joined the channel [00:19] Aabhas: Build failed: -> task failed (err #1): {task: cxx_link node_main_5.o,node_5.o,node_buffer_5.o,node_javascript_5 .o,node_extensions_5.o,node_http_parser_5.o,node_constants_5.o,node_file_5.o,nod e_script_5.o,node_os_5.o,node_dtrace_5.o,node_string_5.o,timer_wrap_5.o,handle_w rap_5.o,stream_wrap_5.o,tcp_wrap_5.o,udp_wrap_5.o,pipe_wrap_5.o,cares_wrap_5.o,s tdio_wrap_5.o,process_wrap_5.o,v8_typed_array_5.o,node_cares_5.o,node_ne [00:19] Aabhas: how to solve this ? [00:20] Sorella has left the channel [00:20] kuebk^ has joined the channel [00:21] TheJH: Aabhas, well, why cygwin? [00:21] TheJH: Aabhas, there's an official windows build, node.exe [00:22] TheJH: Aabhas, also, if you want to use node and npm and so on, just install a linux VM for that [00:22] _kud has joined the channel [00:23] Aabhas: really ? [00:23] aho: node.exe works perfectly fine for command line shizzle though [00:23] Aabhas: aho how did you solve this ? [00:23] Aabhas: node.exe how to run ? [00:23] aho: i just used the official build *shrug* [00:24] aho: http://nodejs.org/dist/v0.5.6/node.exe [00:24] enhydra has joined the channel [00:25] towski has joined the channel [00:26] Aabhas: I tried to run the node.exe and open the node.exe and >node example.js does not seem work ? [00:27] aho: node -v [00:27] aho: works? [00:27] aho: also "does not seem to work" is... uhm... not very precise [00:27] aho: even more so if no one knows what example.js is supposed to be [00:28] jerrysv: Aabhas: if you are running node, that is dropping you into the REPL [00:28] jerrysv: Aabhas: instead, from the command line: node example.js [00:28] JumpMast3r has joined the channel [00:28] junkee[]: anyone wants to test node-gir? I work on it and it needs tests [00:28] junkee[]: atm, gtk should work [00:28] boehm has joined the channel [00:28] junkee[]: https://github.com/swick/node-gir [00:29] tmpvar: junkee[], you might want to ask creationix [00:29] Aabhas: jerrysv let em check what output [00:29] Aabhas: using npm manager [00:30] junkee[]: tmpvar: he is not very interested in the project anymore [00:30] JakeyChan has joined the channel [00:30] tmpvar: junkee[], I had a conversation about it 2 days ago with him [00:31] tmpvar: he seemed interested then, heh [00:31] junkee[]: tmpvar: that is surprising. he does not really respose to my messages on github [00:32] junkee[]: maybe my english is just that bad :/ [00:32] towski has joined the channel [00:32] tmpvar: junkee[], or he's just super busy [00:32] junkee[]: and I somehow never find him on irc [00:33] junkee[]: possible [00:33] tmpvar: yeah, he actually showed me your project and seemed pretty excited [00:34] jamesd has joined the channel [00:34] enmand has joined the channel [00:37] junkee[]: tmpvar: when do I have to be here to meet him? [00:38] AvianFlu: he was here this morning [00:38] JSManiacs has left the channel [00:38] AvianFlu: like 11am @ GMT - 7 [00:38] sivy has joined the channel [00:39] junkee[]: thx, AvianFlu [00:39] Ozymandus: Hey @AvianFlu. Just a note: I like ur work on Github. Good stuff [00:39] AvianFlu: thanks! [00:39] smathy has joined the channel [00:39] jamesd has joined the channel [00:40] JakeyChan: what is the difference between exports and module.exports [00:40] junkee[]: nothing [00:41] junkee[]: u can just override the exports with module.exports = whatever; which does not work with exports = whatver; [00:42] tilgovi has joined the channel [00:42] tilgovi has joined the channel [00:42] JakeyChan: I do not think so [00:42] jyap has joined the channel [00:42] JakeyChan: the api said they are same [00:43] JakeyChan: but I get problem [00:43] JakeyChan: look [00:43] JakeyChan: function Server () { [00:43] JakeyChan: [00:43] JakeyChan: } [00:43] JakeyChan: Server.prototype.init = function () { [00:43] JakeyChan: console.log('Hello world'); [00:43] JakeyChan: }; [00:43] postwait has joined the channel [00:43] bnoordhuis: JakeyChan: module.exports lets you export an object in one go [00:44] bnoordhuis: JakeyChan: e.g. module.exports = new MyCustomObject(); [00:44] MrNko has joined the channel [00:44] JakeyChan: how about module.exports = MyCustomObject ? I did not instance it [00:45] JakeyChan: can it work ? [00:45] bnoordhuis: JakeyChan: that works too [00:45] JakeyChan: then how about this one : exports = MyCustomObject ?? [00:45] jyap: 'sudo npm -g install dateformat' installs to '/usr/lib/node_modules/dateformat' but i find i always need to install modules as local use or they can't be found. eg. Error: Cannot find module 'dateformat' --> i'm missing something on install? [00:45] JakeyChan: can it work ? [00:47] junkee[]: JakeyChan: i dont think so but just try it [00:48] JakeyChan: junkee[]: I tried, and it can not work :( I do not know why [00:49] bnoordhuis: JakeyChan: because exports is a reference to an object and you're reassigning it [00:50] jyap: and even then, i'm installing modules to the local path: ./node_modules/dateformat [00:50] agnat has joined the channel [00:50] MrNko has joined the channel [00:50] jmoyers: -g is for binaries [00:50] jmoyers: jyap install locally [00:50] jyap: is node meant to read a global module path? [00:51] tmpvar: jyap, not any more [00:51] JakeyChan: bnoordhuis: do not understand that :( [00:51] aho: <***> for me, the problem with node docs is too much information is in prose [00:51] aho: <***> and I'm not good enough to write an English-parsing script ;) [00:51] aho: fwiw, i fully agree with that [00:51] jmoyers: jyap i believe you can also use npm link {package} if its installed globally [00:51] jyap: hmm, that's strange. for security concerns? [00:52] jmoyers: but, you still have to run the npm link locally [00:52] jyap: i'm coming from python so i'm accustomed to install module once, available everywhere [00:52] zivester has joined the channel [00:52] jmoyers: yeah, not how npm works anymore [00:52] bnoordhuis: JakeyChan: exports points to an object x that node manages. when you do `exports = foo`, you're making exports point to another object - but node still uses object x [00:53] [[zz]] has joined the channel [00:53] jyap: what do you mean '-g' for binaries. -g == global [00:54] MrNko has joined the channel [00:55] Nuck has joined the channel [00:55] paulwe has joined the channel [00:56] mike5w3c_ has joined the channel [00:57] aho: whoops... all frag links in the 0.5.6 docs are broken [00:58] jetienne has joined the channel [00:58] aho: http://nodejs.org/docs/v0.5.6/api/buffers.html#new_Buffer_ <- each of them got a dangling underscore which doesnt exist in the id [00:58] JakeyChan: bnoordhuis: ok, I got the idea :D [00:59] sivy has joined the channel [00:59] paulwe_ has joined the channel [00:59] bnoordhuis: aho: right, we'll fix it [00:59] bnoordhuis: good catch btw :) [00:59] aho: :) [01:00] aho: are there plans to make the docs more... uhm... parseable? [01:02] CStumph has joined the channel [01:02] devongovett has joined the channel [01:02] aho: for one, it makes them easier to read if you don't have to skim through random prose. secondly, if they are machine readable you can generate context sensitive help stuff for IDEs [01:03] incredimike: got an HTTP question for anyone in-the-know.. an API is responding with "HTTP/1.1 100 Continue\n\nHTTP/1.1 400 Bad Request" then the rest of the headers. Is it appropriate to have a status code, then another status code like that? [01:04] TooTallNate has joined the channel [01:04] seebees: aho: I agree, it would be cool if the docs were parseable [01:05] aho: ideally, they'd also exist in a deserializable format (e.g. json) [01:05] Nuck: They're markdown [01:05] seebees: yes, I know [01:05] Nuck: Just a bunch of markdown [01:05] aho: yes [01:05] incredimike: yeah, I guess it is according to google [01:05] aho: so which of those things are functions [01:05] aho: which are fields [01:06] seebees: and you can kind of parse the markdown [01:06] aho: what is returned [01:06] aho: what are the parameters and what are they good for? [01:06] aho: y'know... stuff like that [01:06] junkee[]: i think you wish something like g object introspection, just a bit easier [01:06] Nuck: I'd take the higher quality hand-written docs for humans than some silly parsable format, honestly. [01:06] brianseeders has joined the channel [01:07] Nuck: I prefer verbosity for the sake of clarity [01:08] seebees: hum, that is true, but it should be possible to have something that is verbose and parseable? [01:08] davidbanham has joined the channel [01:08] aho: yes [01:08] Nuck: Yeah, using HTML tags [01:08] aho: see java's docs [01:08] Nuck: But that means nilot using markdown [01:08] aho: no matter how much you might hate it, its docs are top notch [01:09] Nuck: Which I think would make our docs be lower quality [01:09] Nuck: I think node's docs are some of the best [01:09] c4milo1 has joined the channel [01:09] seebees: why? I would use markdown. Just a few standards and you could parse them. [01:10] seebees: right now the module name is the html file name [01:10] seebees: and all the methods have a ### desc. [01:10] aho: aaand... that's about it :) [01:10] aho: well, you can infer some details [01:10] seebees: All you need is something like a table that describes calling/return stuff [01:11] seebees: I don't think it should be either/or. It should be and :) [01:11] aho: "new ..." = constructor. "[a-z]+\.blabla(...)" = instance method. "[a-z]+\.blabla" = field etc [01:11] aho: ye [01:11] igl has joined the channel [01:12] aho: type, signature (if any), short description, parameters and their purpose, return (if any), and finally a long description (if available) [01:13] blaenk has joined the channel [01:13] blaenk has joined the channel [01:13] seebees: I think that to parse the current docs all you need to deal with is the Events. And that may be as simple as looking for : [01:14] seebees: functions have (, properties don't [01:16] davidascher has joined the channel [01:17] fr0stbyte has joined the channel [01:17] dekz has joined the channel [01:17] paulwe has joined the channel [01:19] jerrysv has joined the channel [01:21] fr0stbyte has joined the channel [01:21] ruprict1 has joined the channel [01:22] aconbere has joined the channel [01:27] enhydra has joined the channel [01:30] ticdup has joined the channel [01:32] amigojapan has joined the channel [01:34] JaKWaC_ has joined the channel [01:35] skunkape: using mongoose, how can you find a record with an embedded record that has a certain value? I'm trying to do something like this: Scan.findOne({ target: { 'hosts': target } }, function(err, doc){... [01:35] towski has joined the channel [01:35] H4ns` has joined the channel [01:36] JakeyChan has left the channel [01:39] ronnieboy has joined the channel [01:40] Nuck: Lol I've started backing up my music over SFTP, and it's got 7-8 hours left [01:40] skunkape: damn thats a lot [01:41] towski has joined the channel [01:44] fr0stbyte has joined the channel [01:45] heavysixer has joined the channel [01:50] brianseeders has joined the channel [01:51] towski has joined the channel [01:52] seebees: is it irrational to expect that a Socket that is paused on a server would emit pause on the client? [01:53] TheJH__phone has joined the channel [01:53] TheJH_phone has joined the channel [01:54] slloyd_ has joined the channel [01:55] jerrysv: has anyone written a pub/sub system for mongo that works with node? [01:57] ryanfitz has joined the channel [02:03] sivy has joined the channel [02:06] fmeyer has joined the channel [02:06] CrypticSwarm has joined the channel [02:07] steveCAustin has joined the channel [02:11] ditesh|cassini has joined the channel [02:12] langworthy has joined the channel [02:14] slifty has joined the channel [02:21] k1ttty has joined the channel [02:22] aguynamedben has joined the channel [02:22] zeade has joined the channel [02:26] balupton_ has joined the channel [02:26] torsd has joined the channel [02:28] marcello3d has joined the channel [02:29] d0k has joined the channel [02:29] cachemoney has joined the channel [02:30] necrodearia has joined the channel [02:30] zivester has joined the channel [02:31] jetienne has joined the channel [02:31] patcito has joined the channel [02:33] hermanjunge has joined the channel [02:35] hermanjunge: hi [02:35] hermanjunge: does somebody have an url of an example of session management using express and redis? [02:35] hermanjunge: I'm having _stupid_ problems trying to set up express to use a RedisStore [02:37] karlseguin has joined the channel [02:37] joshkehn has joined the channel [02:40] davidbanham has joined the channel [02:40] marcello3d: hallo [02:40] springmeyer has joined the channel [02:40] mandric has joined the channel [02:40] marcello3d: how do I deal with instanceof when working across contexts? [02:41] marcello3d: because instanceof Function / instanceof Date / instanceof RegExp don't work [02:42] envision has joined the channel [02:43] envision has left the channel [02:43] slifty has joined the channel [02:45] bogdanbiv has joined the channel [02:47] Nuck has joined the channel [02:49] SubStack: marcello3d: you can check d.constructor.name [02:49] marcello3d: and hope no one makes similarly named classes? :) [02:49] SubStack: or compare the keys in Object.keys(Object.getPrototypeOf(obj)) [02:49] Nuck: What's the best way of inheritance for prototypes on the browser side? [02:49] SubStack: yeah [02:49] marcello3d: hmmm [02:49] marcello3d: and then typeof for functions? [02:50] Nuck: God I wish I could do "Self inherits User" [02:50] Nuck: So bad [02:50] SubStack: s/keys/getOwnPropertyNames/ [02:50] marcello3d: Object.keys is probably a bit too expensive [02:50] SubStack: marcello3d: could work, depends on how performant you need it to be [02:50] marcello3d: yea, this is for bson serialization/deserialization [02:50] Guest82379 has joined the channel [02:51] Nuck: marcello3d: Isn't there a module for that? [02:51] Nuck: I think it's called "mongo-native" [02:51] Nuck: :P [02:51] marcello3d: yea [02:51] marcello3d: mine's faster :) [02:51] Nuck: oooh fancy [02:51] marcello3d: but that's not the point [02:52] nerdy has joined the channel [02:52] Nuck: So, can somebody point me to the closest thing to "Foo inherits Bar" in a client-side JS environment? [02:52] Nuck: (that is, cross-browser) [02:52] marcello3d: Foo.protoype = new Bar ? [02:52] sneep_ has joined the channel [02:53] marcello3d: or use one of the myriad of javascript libraries that tries to copy classical c++/java inheritance [02:53] Nuck: I think I'll just steal Node's utils function [02:53] deedubs has joined the channel [02:54] marcello3d: doesn't it use ecma5? [02:55] marcello3d: and thus not cross browser [02:57] Nuck: I'm sure I can make it cross-browser with some tweaking [02:57] marcello3d: ok :) [02:57] marcello3d: https://github.com/marcello3d/alt/blob/master/src/alt.js [02:58] marcello3d: little class inheritance ditty I wrote a while back [02:58] Nuck: I don't want class inheritance [02:58] marcello3d: where you basically do var Foo = Bar.subclass() [02:58] Nuck: haha no thanks [02:58] Nuck: I stick to prototypes [02:58] marcello3d: it uses prototypes [02:59] mjr_ has joined the channel [02:59] marcello3d: pretty lightweight for what it gives you [03:02] ryanfitz has joined the channel [03:03] CarterL has joined the channel [03:03] saikat has joined the channel [03:05] saikat_ has joined the channel [03:06] enmand has joined the channel [03:06] broofa has joined the channel [03:09] tiagobutzke has joined the channel [03:11] vidi has joined the channel [03:12] Nuck: hmmm [03:13] sneakyness has joined the channel [03:13] adelgado has joined the channel [03:14] jhurliman has joined the channel [03:14] wdperson has joined the channel [03:15] mbrevoort has joined the channel [03:15] nerdy has joined the channel [03:16] ps_jinx has joined the channel [03:18] incon has joined the channel [03:18] cjm has joined the channel [03:19] saikat has joined the channel [03:19] CIA-30: node: 03Ryan Dahl 07master * r8821eb2 10/ doc/index.html : Correct date - http://git.io/ajebjA [03:20] dnyy has joined the channel [03:22] marcello3d: I dunno ryah, forging dates [03:25] radiodario_ has joined the channel [03:25] broofa has joined the channel [03:27] jhurliman has joined the channel [03:28] bradleymeck has joined the channel [03:29] springmeyer has joined the channel [03:29] ryanfitz_ has joined the channel [03:29] saikat_ has joined the channel [03:30] slifty has joined the channel [03:30] paulwe has joined the channel [03:33] marcello3d: v0.1.11 released! https://github.com/marcello3d/node-mongolian [03:33] Charuru has joined the channel [03:35] saikat_ has joined the channel [03:35] Destos has joined the channel [03:35] pHcF has joined the channel [03:36] pen has joined the channel [03:37] ryanfitz_ has joined the channel [03:38] dexter_e has joined the channel [03:39] Spion has joined the channel [03:39] saikat_ has joined the channel [03:39] Spion has joined the channel [03:41] Nuck: Okay, so why does Node set the constructor? [03:42] Nuck: in utils.inherits [03:43] joshkehn has joined the channel [03:44] nerdfiles2 has joined the channel [03:45] nerdfiles2 has left the channel [03:45] aguynamedben has joined the channel [03:46] tiagobutzke_ has joined the channel [03:48] incon has joined the channel [03:52] vicapow has joined the channel [03:54] vicapow: anyone know how i can be notified if a model is removed in mongoose? [03:54] saikat has joined the channel [03:54] joshkehn has joined the channel [03:54] tilgovi has joined the channel [03:54] vicapow: if any* model is removed form a particular collection [03:54] tiagobutzke has joined the channel [03:56] JSManiacs has joined the channel [03:59] polotek has joined the channel [03:59] chapel: vicapow: you can do pre/post save actions [03:59] nerdy has joined the channel [03:59] vicapow: chapel: I know but i'd like to be notified of removal [03:59] polotek: does 0.5.6 use libuv by default? [04:00] CrabDude has joined the channel [04:00] chapel: vicapow: can do pre remove [04:01] chapel: http://mongoosejs.com/docs/middleware.html [04:01] vicapow: chapel: doesn't seem to work [04:01] bogdanbiv has joined the channel [04:01] bogdanbiv: hello [04:02] bogdanbiv: Hi [04:03] chapel: got a code example of what you are trying to do [04:03] polotek: bogdanbiv: hey [04:04] tiagobutzke_ has joined the channel [04:05] bogdanbiv: My npm install works just fine when I tell it npm install -g forever, but crashes when I tell it to "explore": npm explore npm [04:06] bogdanbiv: Now I don't understand explore enough to care about it, but I've read it's a way to check my install. [04:06] kenperkins has joined the channel [04:06] bogdanbiv: What should I do with it? [04:07] incon has joined the channel [04:07] polotek: bogdanbiv: what version of node are you using? [04:08] jakehow has joined the channel [04:09] tiagobutzke has joined the channel [04:09] tiagobutzke has left the channel [04:10] polotek: bogdanbiv: I get errors when trying to explore npm. Try some other module [04:10] polotek: that works fine for me [04:10] polotek: ryah: you around? [04:12] bogdanbiv: Here is my log: http://pastebin.com/aqvdXEsV [04:13] polotek: looks like it's working fine [04:13] bogdanbiv: Most of all, I would like to understand NPM better. [04:13] polotek: the only thing that doesn't work is npm explore npm [04:13] polotek: maybe it's a little too meta ;) [04:13] bogdanbiv: I see [04:14] polotek: bogdanbiv: ah, if you're not familiar with npm that makes a little more sense [04:14] neilk_ has joined the channel [04:14] polotek: are you sure you want npm explore? [04:14] polotek: try npm ls [04:14] polotek: that will list the currently installed modules for your local directory [04:14] bogdanbiv: ls works great [04:14] skm has joined the channel [04:15] polotek: and npm ls -g will show you globally installed modules [04:15] polotek: remember that global modules are NOT automatically available in your local directory [04:15] polotek: -g is mostly for modules with command line utilities [04:16] clifton has joined the channel [04:18] bogdanbiv: aha, good to know [04:20] kenperkins has joined the channel [04:20] bogdanbiv: well, then, thanks for helping me clear the NPM image in my mind [04:20] bogdanbiv: I'll be going now, see you around [04:22] wookiehangover has joined the channel [04:22] kenperkins has joined the channel [04:22] davidascher has joined the channel [04:22] adelgado has joined the channel [04:24] bshumate has joined the channel [04:24] bshumate has joined the channel [04:25] bshumate has left the channel [04:26] polotek: bogdanbiv: no problem [04:26] jhurliman has joined the channel [04:27] polotek: the answer to my earlier question is yes. 0.5.6 uses libuv by default [04:29] bogdanbiv: libuv is the library that node needs for windows compatibility? [04:29] bogdanbiv: the one Ryah is working on? [04:29] polotek: bogdanbiv: yeah [04:29] springmeyer has joined the channel [04:31] bogdanbiv: I'm holding my breath until he releases it, it'll do wonders :). [04:32] bogdanbiv: bye [04:33] konobi: bogdanbiv: you mean the release that just went out? [04:33] Ginlock has joined the channel [04:34] vicapow_ has joined the channel [04:36] JaKWaC has joined the channel [04:38] kriszyp has joined the channel [04:38] dmkbot: joyent/node: 03brighthas: A module and B module depend, then have bug. - https://github.com/joyent/node/issues/1677 [04:43] kenperkins has joined the channel [04:45] joshkehn has joined the channel [04:45] dexter_e has joined the channel [04:45] joshkehn has left the channel [04:46] junkee[] has joined the channel [04:48] wookiehangover has joined the channel [04:52] freeformz has joined the channel [04:53] paulbaumgart has joined the channel [04:53] slifty has joined the channel [04:54] caffine has joined the channel [04:55] davidbanham has joined the channel [04:55] kevin has joined the channel [04:55] kevin: hi [04:56] fangel has joined the channel [04:56] polotek: kevin: hey [04:56] kevin: i am having some problems installing npm :) [04:56] kevin: just wondering if anyone could help me out [04:56] broofa has joined the channel [04:56] kevin: it says npm-install-2458.sh: line 211: 2575 Abort trap: 6 "$node" cli.js install -gf It failed [04:56] kenperkins has joined the channel [04:56] kevin: and the install stopped [04:56] kevin: and i have no npm on the system [04:57] kevin: i ran the instructions on https://github.com/joyent/node/wiki/Installation for node [04:57] kevin: node seems to work fine [04:58] kevin: anyone knows what's wrong with this? [04:58] levi501d has joined the channel [04:59] polotek: kevin: are you using the latest node version? 0.5.6 [04:59] polotek: it's broken [04:59] kevin: i just installed it from git [04:59] kevin: so i guess it's the most current [04:59] kevin: ? [04:59] kevin: let me check the main trunk [05:00] kevin: oh yea [05:00] kevin: i'm using 0.5.6 [05:00] kevin: do i roll back? [05:00] AAA_awright: We need a replacement for npm, DOWNLOADING A BUNCH OF FILES ISN'T THAT HARD PEOPLE [05:00] kevin: ahah [05:01] kevin: let me roll back and try again [05:01] kevin: :) [05:02] JaKWaC has joined the channel [05:04] tmpvar: AAA_awright, huh? [05:04] tmpvar: polotek, yo [05:05] polotek: tmpvar: what up [05:05] andrewfff has joined the channel [05:05] tmpvar: chillin, working on some zlib stuff [05:05] tmpvar: yourself? [05:05] polotek: kevin: nave is a really nice utility for managing node versions [05:05] polotek: looking at libxmljs. it's totally busted in 0.5.x :) [05:06] polotek: AAA_awright: nobody's forcing you to use npm [05:06] polotek: copying files into node_modules folder works great [05:06] kevin: alright [05:06] kevin: i have a question [05:07] kevin: i've used npm once in my project directory [05:07] mikeal has joined the channel [05:07] kevin: it seems to install the new module within my project directory [05:07] kevin: is that the correct way [05:07] kevin: ? [05:07] kevin: to use npm? [05:07] kevin: or should i install the new module in my node directory [05:08] kevin: my program worked [05:08] polotek: kevin: nope, local install is the correct default [05:08] JaKWaC has joined the channel [05:08] kevin: so i should actually call npm within my node directory you mean? [05:08] polotek: The idea is that your project contains all of the code. No linking out to other random folders [05:08] AAA_awright: polotek: It's darn near impossible to install an application without it [05:08] polotek: no bothering with different version between projects [05:08] polotek: it's nice [05:08] polotek: AAA_awright: howzat? [05:09] AAA_awright: No one links to the Git repositories or anything [05:09] noodlehaus has joined the channel [05:09] kevin: hi noodlehaus [05:09] kevin: you're from singapore? [05:09] AAA_awright: package.json is not, in fact, a good way to load dependencies [05:10] polotek: AAA_awright: I agree that there needs to be more metadata with projects [05:10] polotek: but that's only because node is so new. most modules are pretty raw and you need the source [05:10] neilk_ has joined the channel [05:10] kevin: do i have to navigate to the node folder before i call my npm? [05:10] polotek: but it's not always necessary to know where the source repo is [05:11] polotek: and most of the time searching on github will find it [05:11] freeformz has joined the channel [05:11] rurufufuss has joined the channel [05:11] polotek: you could also combine npm with more traditional methods [05:12] polotek: git submodules, maybe [05:20] kenperkins has joined the channel [05:20] justinTNT has joined the channel [05:21] Nuck|mobile has joined the channel [05:21] freeformz has joined the channel [05:21] indexzero has joined the channel [05:22] Spion_ has joined the channel [05:23] wookiehang0ver has joined the channel [05:24] skm has joined the channel [05:26] jasong_at_apache has joined the channel [05:27] pixel13 has joined the channel [05:28] pixel13: good evening! [05:28] pixel13: anyone know how to convert input from "process.openStdin()" buffer into a variable? (e.g. should == 3) [05:29] pixel13: I can only show "3" using console.log() — but I'd like to turn STDIN into a JavaScript variable [05:30] pixel13: I've also tried toString() on the buffer, but without luck :( [05:30] springmeyer has joined the channel [05:30] polotek: pixel13: just toString it [05:30] polotek: pixel13: maybe you can gist some code [05:30] polotek: toString should work [05:30] pixel13: nm… it was the parseInt() AFTER the toString() that was bombing [05:31] pixel13: sorry guys! [05:31] polotek: v8bot_: 1 + 1 [05:31] polotek: hmm, guess v8bot_ is no good [05:32] fmeyer has joined the channel [05:33] joshkehn has joined the channel [05:33] joshkehn has left the channel [05:33] kiffness has joined the channel [05:35] kiffness_ has joined the channel [05:36] dilvie has joined the channel [05:37] kiffness has joined the channel [05:37] JaKWaC has joined the channel [05:43] jacobolus has joined the channel [05:45] ecin has joined the channel [05:48] sneakyness has joined the channel [05:51] zackattack has joined the channel [05:51] kiffness has joined the channel [05:54] seutje has joined the channel [05:57] polotek: anybody ever use express-resource for rest apis? [05:58] torsd has joined the channel [06:05] sneakyness has joined the channel [06:08] kiffness_ has joined the channel [06:09] skm has joined the channel [06:14] amerine has joined the channel [06:18] justinTNT has joined the channel [06:18] Ginlock has joined the channel [06:20] ps_jinx has joined the channel [06:26] simenbrekken has joined the channel [06:28] kmiyashiro has joined the channel [06:28] Nuck|mobile: polotek: v8bot_ is fine, it's just "v8: code" [06:29] Nuck|mobile: v8: function() { return 'foo'; }() [06:29] v8bot_: Nuck|mobile: SyntaxError: Unexpected token ( [06:29] kiffness has joined the channel [06:29] Nuck|mobile: Lol [06:31] nevir has joined the channel [06:31] springmeyer has joined the channel [06:31] chilts: v8: (function hello(salutation) { return salutation; })("Hello, World!") [06:31] v8bot_: chilts: "Hello, World!" [06:31] kiffness_ has joined the channel [06:35] nevir has joined the channel [06:35] nevir has joined the channel [06:37] seutje has joined the channel [06:38] avalanche123 has joined the channel [06:45] blup has joined the channel [06:47] kiffness has joined the channel [06:49] madsleejensen has joined the channel [06:49] kiffness has joined the channel [06:51] JaKWaC has joined the channel [06:51] kiffness has joined the channel [06:54] kiffness has joined the channel [06:55] JaKWaC has joined the channel [06:57] kiffness has joined the channel [06:57] davidbanham has joined the channel [06:58] hacksparrow has joined the channel [06:58] hacksparrow: hey what does $NODE_PATH refer to? the bin location of node? [06:59] kiffness has joined the channel [06:59] tmzt: hacksparrow: where it finds .js and I think libraries it requires [07:00] polotek: hacksparrow: correct, it basically adds another location that node will look in for modules [07:00] hacksparrow: right now it is empty for me, could it cause any problem in npm installations? Express installed successfully, but Nowjs is failing. [07:01] kiffness has joined the channel [07:03] polotek: what's the error? [07:04] mike5w3c has joined the channel [07:05] hacksparrow: https://github.com/Flotype/now/issues/136 [07:05] jhurliman has joined the channel [07:09] kiffness has joined the channel [07:09] Nuck: le sigh [07:10] davidascher has joined the channel [07:10] Nuck: Why did JS get prototypes while Java got Classes?s [07:10] Nuck: Wasn't the goal to make something Java-ish [07:11] Lorentz: No [07:11] kiffness has joined the channel [07:12] polotek: hacksparrow: you should indent output at least 4 spaces when pasting in github issues. makes formatting nicer. [07:12] polotek: other than that, I don't have much help for you :) [07:12] polotek: looks like a problem with the tarball [07:13] Lorentz: Nuck: Was never meant to be like java [07:13] Lorentz: It's just the na,e [07:13] Lorentz: name. [07:13] Nuck: Lorentz: From reading Brendan Eich's blog, I'd say otherwise :V [07:13] kiffness has joined the channel [07:14] nforgerit has joined the channel [07:14] hacksparrow: JavaScript is more influenced by Scheme http://www.crockford.com/javascript/little.html . The Java in JavaScript was more of a marketing trick. [07:14] jetienne has joined the channel [07:14] Nuck: ah [07:14] hacksparrow: polotek, thanks for the tip! [07:14] Nuck: hmmm [07:15] jj0hns0n has joined the channel [07:15] polotek: not only a marketing trick. eich definitely wanted the syntax to be familiar [07:15] agnat has joined the channel [07:16] stisti has joined the channel [07:16] hacksparrow: Which it is to C already. [07:17] [[zz]] has joined the channel [07:17] wolftankk has joined the channel [07:19] misterm has joined the channel [07:21] kiffness_ has joined the channel [07:22] kiffness_ has joined the channel [07:23] kiffness_ has joined the channel [07:23] rchavik has joined the channel [07:29] springmeyer has joined the channel [07:32] skm has joined the channel [07:33] kiffness has joined the channel [07:34] poggie has joined the channel [07:34] a_suenami has joined the channel [07:38] levi501d has joined the channel [07:39] pgherveou has joined the channel [07:40] kiffness_ has joined the channel [07:42] dnyy has joined the channel [07:44] kiffness has joined the channel [07:47] __doc__ has joined the channel [07:47] meso has joined the channel [07:49] meso has joined the channel [07:49] temongantengbgt has joined the channel [07:49] temongantengbgt: how to refresh the node js server? [07:51] admc has joined the channel [07:51] kiffness has joined the channel [07:53] kiffness_ has joined the channel [07:55] kiffness_ has joined the channel [07:56] dshaw_ has joined the channel [07:57] kiffness has joined the channel [07:58] KiRaSi has joined the channel [07:58] KiRaSi has left the channel [08:00] ttpva has joined the channel [08:01] jaequery has joined the channel [08:01] vidi has joined the channel [08:02] kiffness has joined the channel [08:02] confoocious has joined the channel [08:02] confoocious has joined the channel [08:03] mape has joined the channel [08:05] dnjaramba has joined the channel [08:05] AAA_awright: temongantengbgt: What do you mean "how to?" [08:06] temongantengbgt: if I change the js server script, its auto restart the server [08:06] temongantengbgt: because I must kill the process... if want see my server change... [08:06] temongantengbgt: its suck [08:07] dexter_e: For OS X What do you guys recommend for automatically-restarting the server on file changes and errors? [08:08] dexter_e: supervisor? monit? What do you guys think is the simplest solution [08:10] prettyrobots has joined the channel [08:10] Nuck: Anyone know how safe resizing an NTFS partition is? [08:10] dexter_e: nodemon vs. supervisor ... recommendations ? [08:10] Cromulent has joined the channel [08:11] temongantengbgt: how to use supervisor? [08:11] ps_jinx has joined the channel [08:15] ph^ has joined the channel [08:18] grekko has joined the channel [08:19] bicranial has joined the channel [08:21] justinTNT: forever [08:21] kiffness has joined the channel [08:23] zastaph has joined the channel [08:24] kiffness_ has joined the channel [08:24] mraleph has joined the channel [08:25] Wizek has joined the channel [08:27] kiffness_ has joined the channel [08:29] stagas: nolife [08:30] liar has joined the channel [08:30] kiffness has joined the channel [08:31] kiffness_ has joined the channel [08:32] javaanse_jongens has joined the channel [08:32] springmeyer has joined the channel [08:32] garrensmith has joined the channel [08:35] kiffness_ has joined the channel [08:36] SamuraiJack has joined the channel [08:38] DennisRasmussen has joined the channel [08:38] shipit has joined the channel [08:38] swhit has joined the channel [08:40] amtal has joined the channel [08:42] ptlo has joined the channel [08:43] kiffness has joined the channel [08:43] sneakyness has joined the channel [08:44] sylvinus has joined the channel [08:44] Xano has joined the channel [08:45] Cromulent has joined the channel [08:46] altamic has joined the channel [08:47] CIA-30: libuv: 03Erick Tryzelaar 07master * refa1b54 10/ (4 files in 4 dirs): [08:47] CIA-30: libuv: Subclass uv_getaddrinfo_t from uv_req_t. [08:47] CIA-30: libuv: This patch also fixes #155. Since we no longer [08:47] CIA-30: libuv: memset clear the uv_getaddrinfo_t, the user can [08:47] CIA-30: libuv: now set the `uv_getaddrinfo_t->data` field without [08:47] CIA-30: libuv: problems. - http://git.io/5jEkMw [08:48] kiffness has joined the channel [08:50] kiffness_ has joined the channel [08:52] wolftankk has joined the channel [08:52] davidbanham has joined the channel [08:56] ps_jinx has joined the channel [08:57] stisti has joined the channel [08:57] kiffness has joined the channel [08:57] Fabryz has joined the channel [08:58] kiffness_ has joined the channel [08:59] avalanche123 has joined the channel [09:02] kiffness has joined the channel [09:02] vidi has joined the channel [09:04] `3rdEden has joined the channel [09:06] kiffness_ has joined the channel [09:08] fly-away has joined the channel [09:11] TheJH has joined the channel [09:13] pgherveou has joined the channel [09:15] azeroth__ has joined the channel [09:21] kiffness has joined the channel [09:21] dufu has joined the channel [09:22] OctagonTheory has joined the channel [09:22] jetienne has joined the channel [09:25] Frippe has joined the channel [09:25] mraleph has joined the channel [09:25] temongantengbgt: any one help me? [09:25] temongantengbgt: I just upgrade to nodejs 0.411 from 0.22 [09:26] Fuu` has joined the channel [09:26] temongantengbgt: i get error .... TypeError: Object # has no method 'close' [09:26] temongantengbgt: on response.close(); [09:27] kiffness has joined the channel [09:27] Chopinn has joined the channel [09:31] FireFly has joined the channel [09:32] kuebk^ has joined the channel [09:32] DrMcKay has joined the channel [09:32] springmeyer has joined the channel [09:34] Fabryz: temongantengbgt I guess that changed in response.end(); [09:35] temongantengbgt: yes... I get it! [09:35] temongantengbgt: thanks [09:35] Fabryz: http://nodejs.org/docs/v0.4.11/api/http.html#http.ServerResponse [09:38] mehlah has joined the channel [09:39] kiffness_ has joined the channel [09:42] Skomski has joined the channel [09:44] vns_ has joined the channel [09:45] ps_jinx has joined the channel [09:47] hellp has joined the channel [09:47] kiffness has joined the channel [09:47] davidwalsh has joined the channel [09:48] kiffness_ has joined the channel [09:49] kiffness has joined the channel [09:53] booo has joined the channel [09:54] ps_jinx has joined the channel [09:59] jetienne has joined the channel [09:59] CarterL has joined the channel [10:02] topaxi has joined the channel [10:05] kiffness has joined the channel [10:08] stephank has joined the channel [10:11] kiffness has joined the channel [10:15] kiffness_ has joined the channel [10:18] felixhummel has joined the channel [10:23] kiffness has joined the channel [10:23] daed: sup bros. [10:25] ditesh|cassini has joined the channel [10:25] kiffness has joined the channel [10:28] sfoster has joined the channel [10:29] secoif has joined the channel [10:30] topaxi has joined the channel [10:33] springmeyer has joined the channel [10:35] skm has joined the channel [10:35] kiffness has joined the channel [10:38] No9 has joined the channel [10:38] kiffness_ has joined the channel [10:39] altamic has joined the channel [10:39] altamic has joined the channel [10:41] Nuck|mobile has joined the channel [10:48] yorick: was v0.5.6 not tagged? [10:48] markwubben has joined the channel [10:49] ccxvvsdvsv has joined the channel [10:49] yorick: ryah: git tag v0.5.6 b49bec55 [10:50] vguerra has joined the channel [10:50] N0va` has joined the channel [10:50] booo has joined the channel [10:52] DrMcKay: yorick: it's still RC [10:52] yorick: v0.5.5 was tagged [10:53] DrMcKay: yorick: v0.5.6 will be as well, but it's still a release candidate [10:56] yorick: ok [10:57] daglees has joined the channel [10:57] daglees has joined the channel [11:01] kiffness has joined the channel [11:04] kiffness has joined the channel [11:05] Nuck has joined the channel [11:05] sfoster has joined the channel [11:06] yorick: it did fail to build too [11:06] DrMcKay: yorick: log? [11:12] jetienne: hi [11:13] kiffness has joined the channel [11:13] kiffness_ has joined the channel [11:15] temp01 has joined the channel [11:16] yorick: DrMcKay: /home/yorick/node/node/out/Release/deps/uv/uv.a(core.o): In function `uv_init': [11:16] yorick: /home/yorick/node/node/out/Release/deps/uv/src/unix/core.c:68: multiple definition of `uv_init' [11:16] yorick: /home/yorick/node/node/out/Release/deps/uv/uv.a(uv-unix.o):/home/yorick/node/node/out/Release/deps/uv/src/uv-unix.c:322: first defined here [11:16] necrodearia has joined the channel [11:17] DrMcKay: yorick: make distclean && ccache -C [11:18] yorick: DrMcKay: isn't the idea that incremental builds work? [11:18] cjroebuck has joined the channel [11:19] DrMcKay: yorick: linker sometimes does crazy things wehn doing incremental build [11:19] DrMcKay: it once got me a segfauilting node binary [11:19] kiffness has joined the channel [11:19] DrMcKay: *segfaulting [11:20] yorick: how useful. [11:20] yorick: anyways, is there any way I can connect to DB2 from node? [11:20] yorick: I found node-odbc, but it looks kindof unstable, and doesn't have prepared statements [11:21] kertz has joined the channel [11:24] ps_jinx has joined the channel [11:25] kertz has joined the channel [11:26] balupton has joined the channel [11:29] balupton_ has joined the channel [11:33] thalll has joined the channel [11:34] springmeyer has joined the channel [11:34] maushu has joined the channel [11:34] pgherveo_ has joined the channel [11:36] junkee[] has joined the channel [11:37] davidbanham has joined the channel [11:37] tomb has joined the channel [11:41] vns has joined the channel [11:45] jomoho has joined the channel [11:46] robi42 has joined the channel [11:47] NegativeK has joined the channel [11:49] Gaunt has joined the channel [11:49] fairwinds has joined the channel [11:50] boogyman has joined the channel [11:50] hackband has joined the channel [11:53] theCole has joined the channel [11:55] spcshpopr8r has joined the channel [11:55] japj has joined the channel [11:56] meso has joined the channel [11:56] knifed has joined the channel [11:56] japj: !seen bnoordhuis [11:56] robhawkes has joined the channel [11:56] japj: hmm [11:57] knifed has joined the channel [11:57] jorenl_ has joined the channel [11:58] knifed has joined the channel [12:04] knifed has joined the channel [12:07] fmeyer has joined the channel [12:08] mraleph has joined the channel [12:10] skm has joined the channel [12:12] Frippe_ has joined the channel [12:14] hackband has joined the channel [12:16] spcshpopr8r has joined the channel [12:18] dippy has joined the channel [12:18] temongantengbgt: I get sendwriteHeadHeader in node.js tutorial.. [12:19] jbpros has joined the channel [12:19] temongantengbgt: in 0.4.11 version, sendwriteHeadHeader replace with?? [12:23] aron_ has joined the channel [12:28] vns has joined the channel [12:28] dmkbot: joyent/node: 03pimvdb: Feature request: passing an object to emitter.on - https://github.com/joyent/node/issues/1678 [12:30] vns_ has joined the channel [12:32] springmeyer has joined the channel [12:32] vguerra has joined the channel [12:33] vguerra has joined the channel [12:34] incon has joined the channel [12:34] ps_jinx has joined the channel [12:34] eoduibhir has joined the channel [12:37] nerdfiles has joined the channel [12:37] nerdfiles has left the channel [12:38] ph^ has joined the channel [12:41] Sorella has joined the channel [12:43] poggie has joined the channel [12:45] mrsrikanth has joined the channel [12:53] temongantengbgt has left the channel [12:53] agnat_ has joined the channel [12:56] mike5w3c_ has joined the channel [12:57] mbrevoort has joined the channel [12:59] slifty has joined the channel [12:59] Ginlock has joined the channel [13:00] jacobolus has joined the channel [13:00] Ginlock has joined the channel [13:00] kriszyp has joined the channel [13:01] jamescarr__ has joined the channel [13:01] whitman has joined the channel [13:03] dmkbot: joyent/node: 03rootslab: UDP datagram size. - https://github.com/joyent/node/issues/1679 [13:06] mavus has joined the channel [13:07] jorenl_: Is there node hosting with custom DNS available? :S [13:08] dmkbot has joined the channel [13:10] yorick: oh great, v0.5.2 removed the eventemitter C++ api [13:12] ErikCorryV8 has joined the channel [13:12] spcshpop` has joined the channel [13:13] schwab has joined the channel [13:15] rfay has joined the channel [13:18] grekko has joined the channel [13:19] aconbere has joined the channel [13:21] webben has joined the channel [13:22] paulwe has joined the channel [13:23] unomi has joined the channel [13:23] webben has joined the channel [13:25] jetienne has joined the channel [13:25] webben has joined the channel [13:27] zackattack has joined the channel [13:33] altamic has joined the channel [13:33] altamic has joined the channel [13:33] springmeyer has joined the channel [13:37] TomY has joined the channel [13:37] Frippe_ has joined the channel [13:39] thinkt4nk has joined the channel [13:40] marcello3d has joined the channel [13:40] z6Dabrata has joined the channel [13:41] zastaph: on Ubuntu is it recommended to install node from apt-get or sources [13:42] marcello3d has joined the channel [13:42] misterm: zastaph: the packages are probably out of date [13:42] stride: I'd say source, the official repo is always pretty out of date (at least last I've checked). there was a more current apt repo though, don't know where or if it's still maintained [13:43] misterm: zastaph: so it's probably better to install from source [13:43] zastaph: ok thanks [13:43] misterm: node is pretty straigh forward configure make make install deal, not a lot of deps either [13:44] zastaph: http://www.codediesel.com/linux/installing-node-js-on-ubuntu-10-04/ says you need sudo apt-get install g++ curl libssl-dev apache2-utils [13:44] stride: jetienne: you maintained that repo, didn't you? [13:44] DrMcKay: only deps you will probably need to install is openssl-dev, I suppose [13:44] stride: plus the build stuff [13:44] jetienne: stride: ? [13:45] jetienne: stride: what is happening i dont follow [13:45] stride: jetienne: didn't you setup an apt repository? nevermind :) [13:45] jetienne: stride: i maintain node .deb for a year or so, yes [13:45] jetienne: maintained [13:47] DrMcKay: I wonder if node will be available for Fedora 16 [13:47] DrMcKay: I somehow can't find that bugzilla ticket [13:49] boaz has joined the channel [13:50] blup has joined the channel [13:52] wbednarski has joined the channel [13:54] Fabryz: can I make spans in Jade? [13:54] pgherveou has joined the channel [13:54] Fabryz: I need to make a span so I can do stuff with its id [13:55] DrMcKay_ has joined the channel [13:55] dmkbot1 has joined the channel [13:55] CarterL has joined the channel [13:58] mrdoodles has joined the channel [13:58] Frippe has joined the channel [14:00] jakehow has joined the channel [14:01] Frippe has joined the channel [14:01] mrdoodles: hey everyone, i guess i might post on node jobs, but i got picked up by an awesome startup and am working insane hours. i built most of an extranet for my girlfriend (node/mongo/mongoose/express) but need someone to finish it. she's a respected real estate firm owner looking to hire someone. /msg me if anyone is i interested? it's hard to find n ode people apparently :P [14:03] apoc has joined the channel [14:04] cjroebuck has joined the channel [14:07] clifton has joined the channel [14:07] DrMcKay: !seen Insekticid [14:08] __sorin__ has joined the channel [14:12] mjr_ has joined the channel [14:12] eoduibhir has joined the channel [14:15] sirdancealot has joined the channel [14:16] petrjanda has joined the channel [14:17] nerdfiles has joined the channel [14:17] pixel13 has joined the channel [14:18] bradleymeck has joined the channel [14:20] pixel13 has left the channel [14:21] FireFly|n900 has joined the channel [14:24] ticdup has joined the channel [14:25] zastaph: building node.js on ubuntu took only about 5 minutes, where it takes about 30-60 on debian both running in virtualbox :p [14:25] kenperkins has joined the channel [14:25] zastaph: ah even less. it says 2m45 [14:26] mrdoodles: zastaph: using rackspace? love ubuntu/node it's so fast [14:26] mrdoodles: I think we had mongo, node everything setup in like 8 minutes [14:26] mrdoodles: hah [14:26] zastaph: no on my own laptop [14:27] zastaph: ok i might have added more cores for my ubuntu vbox [14:27] ecin has joined the channel [14:28] mrdoodles: sweet [14:30] zastaph: the installation asked me to mkdir ~/local .. but that folder is empty still.. is it needed? [14:34] cdantas has joined the channel [14:34] springmeyer has joined the channel [14:35] adrianmg has joined the channel [14:35] mrdoodles: it installs it user local vs. root/ystem wide [14:35] mrdoodles: do the ~/local [14:37] yorick has joined the channel [14:38] thalll has joined the channel [14:38] yorick has joined the channel [14:38] cdantas has left the channel [14:39] Xano has joined the channel [14:40] skm has joined the channel [14:40] gelmir435 has joined the channel [14:41] zastaph: do it? [14:41] ph^ has joined the channel [14:41] Industrial` has joined the channel [14:43] japj: ./configure --prefix=~/local I believe [14:43] japj: then the make install will install in ~/local [14:44] ppcano has joined the channel [14:44] misterm: ./configure --prefix=$HOME/local/node [14:44] misterm: something like that [14:45] misterm: https://github.com/joyent/node/wiki/Installation [14:45] dmkbot1: joyent/libuv: 03erickt: Fixed a typo that breaks windows build - https://github.com/joyent/libuv/issues/183 [14:45] yorick has joined the channel [14:45] z6Dabrata has joined the channel [14:46] nerdfiles has left the channel [14:46] jtsnow has joined the channel [14:49] CIA-30: libuv: 03Erick Tryzelaar 07master * raf936a9 10/ src/win/getaddrinfo.c : Fix a typo that broke windows compilation. - http://git.io/XbVK7w [14:49] ritch has joined the channel [14:49] iFire has joined the channel [14:52] jtsnow has joined the channel [14:53] hackband has joined the channel [14:54] supjeff has joined the channel [14:55] dmkbot1: joyent/node: 03ry: test-child-process-ipc broken on unix - https://github.com/joyent/node/issues/1655 [14:55] dmkbot1: joyent/node: 03piscisaureus: windows/spawn asserts w/ invalid argument - https://github.com/joyent/node/issues/1659 [14:55] dmkbot1: joyent/node: 03mranney: https server emits uncatchable errors - https://github.com/joyent/node/issues/1577 [14:57] jetienne has joined the channel [14:57] deedubs has joined the channel [14:58] mape: Anyone know of a module/project that does what http://www.hidemyass.com/ does in node.js? [14:58] iFire has joined the channel [14:59] piscisaureus has joined the channel [14:59] ph^ has joined the channel [14:59] ps_jinx has joined the channel [15:00] dmkbot1: joyent/libuv: 03erickt: Fix compiling windows - https://github.com/joyent/libuv/issues/184 [15:00] dmkbot1: joyent/libuv: 03erickt: Fix compiling on windows - https://github.com/joyent/libuv/issues/184 [15:00] joshkehn has joined the channel [15:00] CStumph has joined the channel [15:01] Aikar: mape: doubt a system is built for node. its a concept so many try to do and implement it horribly. the proxying part is easy, correctly rewriting every url on the page to be proxied and proxied with the correct domain for relative paths is the hard part [15:02] necrodearia has joined the channel [15:02] joshkehn has left the channel [15:02] mape: yeah [15:02] mape: really all I want is to get around the cross origin issues when I show a site in an iframe [15:02] Aikar: if your just looking to host your own ad-free version, look at CGI-Proxy [15:03] Aikar: its perl i believe but its a long time stable project [15:03] mape: I really would want it bundled so js is prefferable but yeah.. [15:04] Aikar: you want to access data about the child iframe? that gets iffy... if your trying to read cookies and so that would be technically phishing.. if its a site you own and your trying to communicate javascript wise, you should prolly just use the browsers iframe IPC system [15:05] Aikar: iframes support a post/receive message system [15:05] Aikar: its how facebook handles its apps in an iframe [15:06] ryanfitz has joined the channel [15:06] mape: Aikar: http://pix.thefarm.se/mape/20110910170716/ [15:06] mape: what I'm doing is enabling me to watch a dir for changes, then add an url [15:06] mape: and that should autoreload when a file is changed [15:06] a_suenami has joined the channel [15:07] Aikar: auto reload url on change? [15:07] mape: but the issue now is that I can't update the url if I move around in the iframe, so it always reloads back to what you entered [15:07] Aikar: is this for your own personal use? [15:07] mape: and I'd preffer if I could reload the css without reloading the entire page [15:07] mape: yeah [15:07] Aikar: may wanna look at doing it with GreaseMonkey instead [15:08] Aikar: or however you install userscripts in chrome [15:08] mape: but I will open source it so it should be as easy as npm install -g hotcode [15:08] Aikar: inject your own js into every page [15:08] mape: Yeah I've been using glimmerblocker [15:08] mape: just not optimal [15:09] Aikar: its def doable in node, but would prolly be easier as a browser injected js file [15:09] Aikar: but be careful of spam sending post data :P [15:09] markwubben has joined the channel [15:09] mape: spam sending post data? [15:10] mandric has joined the channel [15:10] Aikar: reloading a page you POSTed too [15:10] abjorn has joined the channel [15:10] Aikar: ie some form that opens an issue or sends an email, then you bomb something with flooded emails/issues [15:10] mape: oh yeah [15:11] mape: should be equally bad as refreshing though [15:12] Aikar: yeah but youd least be manually invoking the refresh, where as your system will be doing it secretly in the background and you could "forget" :P [15:12] ap has joined the channel [15:12] mape: true [15:12] mape: wished there could just be a trigger to turn off cross origin security in chrome :/ [15:13] tiagobutzke has joined the channel [15:14] Aikar: welp good luck, time to go hit compusa. need to get a better router and a NAS. gonna get that Netgear that designed to run DD-WRT :o [15:15] azeroth___ has joined the channel [15:15] boaz has joined the channel [15:15] Aikar: my old DD-WRT routers are 802.11G... so yeah need a new N one for DD [15:15] Aikar: my networking is getting insane [15:15] mape: hehe [15:15] cognominal has joined the channel [15:17] Aikar: i have a POS Ubee Cable Modem router combo. it blew chunks, so i switched it to bridge mode with a cheapo wireless n netgear router on top of it to act as router, then a cable to a switch on my desk to go to laptop (which parks at my TV) and desktop. then downstairs a Wireless N Bridge at bottom of stairway, with a 50ft cable running to other corner of house with another switch to handle 360/HTPC [15:17] Aikar: ive been through so many things trying to get this crap right [15:19] skm has joined the channel [15:24] malkomalko has joined the channel [15:24] stonecobra has joined the channel [15:28] junkee[]: I think I found a memory leek in node_string.cc while debugging my own addon :) [15:30] dmkbot1: joyent/node: 03indutny: High-level debugger API - https://github.com/joyent/node/issues/1667 [15:30] wbednarski has joined the channel [15:31] stepheneb has joined the channel [15:33] kriszyp has joined the channel [15:33] mehlah has joined the channel [15:34] petrjanda has joined the channel [15:34] Peniar has joined the channel [15:35] jarek_ has joined the channel [15:35] jarek has joined the channel [15:35] jarek has joined the channel [15:36] Spion has joined the channel [15:37] hacksparrow has joined the channel [15:37] Cromulent has joined the channel [15:40] eoduibhir has joined the channel [15:40] replore_ has joined the channel [15:40] replore has joined the channel [15:40] CoinOpeBoy has joined the channel [15:41] z6Dabrata has joined the channel [15:41] tiagobutzke has joined the channel [15:44] Sami_ZzZ has joined the channel [15:54] adrianmg has joined the channel [15:56] arthurdebert has joined the channel [15:56] azeroth__ has joined the channel [15:57] v_y has joined the channel [15:58] apoc has joined the channel [15:59] zemanel has joined the channel [15:59] v_y: i'm making a multiplayer game using socket.io - i want a single instance of the server to handle multiple game rooms. at the moment, the player makes a seperate socket.io connection for every game room they enter, even if they are just browsing between rooms looking for a free seat. is that reasonable? the alternative is somehow multiplexing a single socket.io connection, but i feel like that's what tcp/ip already does for me, so i should "reimplement" it [15:59] mavus has joined the channel [16:02] mape: v_y: look at rooms [16:02] mape: think they were added in 0.7 [16:03] petrjanda has joined the channel [16:03] v_y: oh wow! [16:03] mape: v_y: https://github.com/mape/node-express-boilerplate/blob/master/lib/socket-io-server.js#L22 [16:03] mape: somethink like that [16:04] mape: and having the user join a room (their own unique room) based on session id might also be a good idea if you want to send data and they have multiple tabs open [16:04] v_y: wow.. i'm still on .6 [16:04] v_y: yeah [16:04] stagas has joined the channel [16:05] felixge has joined the channel [16:09] garrensmith: whats the easiest way to convert and an object array to a json array? [16:10] Fabryz: garrensmith stuff = Json.stringify(your_array) ? [16:10] Fabryz: JSON* [16:11] garrensmith: Fabryz: thanks [16:11] Sorella: iirc, JSON.stringify won't serialise custom properties set in an array object. [16:11] ryan0x2 has joined the channel [16:11] jakehow has joined the channel [16:13] jarek has left the channel [16:15] garrensmith: I want to boostrap my backbone models using jade like this http://documentcloud.github.com/backbone/#FAQ-bootstrap [16:15] garrensmith: any ideas on how to do that [16:15] ding: Running into a problem when trying to rename keys in JSON. TThe method I have works fine in a basic test script, but then doesn't work when I insert the function into my node.js app. I have to stringify and parse for it to work. Can someone have a peek? Here's the code: http://pastebin.com/EprimyCM [16:16] mrdoodles has joined the channel [16:16] thalll has joined the channel [16:20] brianseeders has joined the channel [16:20] stagas: ding: maybe a bug in v8 [16:21] ding: stagas, it certainly seems that way. What bothers me is the same code works in one trivial situation, but then not when inserted into the real app... [16:21] yhahn has joined the channel [16:21] nmtmason has joined the channel [16:22] slifty has joined the channel [16:22] ding: I'd reather not stringify and parse everytime I return a result if all I want to do is rename a key... [16:22] ding: * rather [16:23] stagas: ding: ask again in #v8 ? [16:23] TheJH: ding, you should really be able to omit `JSON.parse(JSON.stringify())` [16:23] blup has joined the channel [16:23] stagas: or post an issue [16:23] TheJH: ah, wait, I'm missing some context, right? [16:24] TheJH: ding, does a simple deep copy solve it, too? [16:24] ding: stagas, thanks. I guess I just needed another set of eyes before going that next step. [16:24] TheJH: ding, are you using a couchdb orm or something like that? [16:24] ding: TheJH, I guess I'm doing the stringify/parse to do the deep copy... [16:25] DrMcKay: wait, what? [16:25] TheJH: DrMcKay, ? [16:25] DrMcKay: deep copying by stringify and parse sounds like a blasphemy to me [16:25] ding: TheJH, I'm using cradle (npm module) to query couch, but it's the raw JSON as far as I now... [16:26] ding: know [16:26] ding: DrMcKay, I agree, but I was just messing around in an effort to just get it to work... [16:26] sivy has joined the channel [16:26] TheJH: ding, couchdb does some kind of caching [16:27] stagas: ding: put the second in a try catch block and see if it works :P [16:27] TheJH: erm, I mean, cradle does it [16:27] stagas: ding: if it's an optimization bug in v8 that may fix it [16:27] ding: TheJH, that's turned off in my code, but at any rate, this is well after the query is completed and the JSON data is returned... [16:27] stagas: :P [16:27] ding: stagas, I'll try it [16:28] TheJH: ding, in what way is your code not working? [16:28] TheJH: throws an error? [16:29] ding: stagas, TheJH, the weird thing is that when I delete ._id, both .id AND ._id get removed... No exception, no error of any kind, just not the right behavior... [16:29] Gaunt has joined the channel [16:29] ding: This is node 0.4.10, so I'm trying to determine the version of V8 in use here... [16:29] DrMcKay: you want to prevent deletion? [16:29] DrMcKay: there was a method to do that [16:30] DrMcKay: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal [16:30] ding: well, couchdb docs, have an a field called "_id", but I want that renamed to just "id" (no underscore), but I end up losing both in the broken method. [16:31] DrMcKay: no wai [16:31] eoduibhir has joined the channel [16:31] TheJH: ding, does __lookupGetter__ show anything for id or _id? [16:32] slifty has joined the channel [16:32] ding: TheJH, not familiar with that, so I'll look it up now [16:32] TheJH: ding, https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/lookupGetter [16:34] ditesh|cassini has joined the channel [16:34] jamund has joined the channel [16:34] hij1nx has joined the channel [16:34] bpierre has joined the channel [16:34] bpierre has joined the channel [16:35] nmtmason has joined the channel [16:36] ttpva has joined the channel [16:36] matthijs has joined the channel [16:36] azeroth_ has joined the channel [16:37] bicranial has joined the channel [16:37] DrMcKay: uh, oh. it happens with regular arrays [16:39] sneakyness has joined the channel [16:39] sneakyness has joined the channel [16:40] skm has joined the channel [16:40] ding: TheJH, seems the version of V8 that got bundled into my node.js is 3.1.8. It's fairly new (changelog says 2011-03-02), but maybe there's a bug filed against this version. Looking... [16:41] DrMcKay: ding: just do a deep copy of it [16:41] stagas: ding: try this: new_data._id = undefined; delete new_data._id; [16:42] __sorin__ has joined the channel [16:45] ding: DrMcKay, will do. But, I think there's still a problem somewhere here... [16:45] Billbad has joined the channel [16:45] DrMcKay: ding: this is the situation where JS behaves like Python when you don't want it to [16:45] DrMcKay: ding: and yes, it's a bit weird, I'd have to see specification [16:46] DrMcKay: and since the specification is esentially unreadable for humans... [16:47] ding: stagas, tried that last suggestion. Didn't help... [16:47] ding: deep copy next [16:48] ding: is there an easy idiomatic way to do that? [16:48] DrMcKay: !npm search deep [16:48] jhbot: package rimraf: A deep deletion module for node (like `rm -rf`) [16:48] jhbot: package clone: deep cloning of objects and arrays [16:49] ZedPepsi has joined the channel [16:49] DrMcKay: ding: this clone package, maybe? [16:49] ding: cool [16:50] ZedPepsi: Greetings! I have a simple question: I want to read all of stdin into a string. What's the simplest bestest synchronous way of doing this? (I'm essentially writing a little command-line tool that I need for my project). [16:50] locks has left the channel [16:51] ZedPepsi: I know about process.stdin and in principle I can read it asynchrnously but that's a lot more verbose than fs.readFileSync [16:51] marcello3d has joined the channel [16:53] ding: DrMcKay, stagas, cloning fixes it... [16:53] DrMcKay: btw, lol @ http://search.npmjs.org/#/marak [16:54] stagas: ding: in the test script do you still fetch from cradle or with a dummy json ? [16:55] davidwalsh has joined the channel [16:56] devongovett has joined the channel [16:58] socketio\test\41 has joined the channel [16:59] socketio\test\87 has joined the channel [16:59] ZedPepsi: no answers to my problem? [16:59] ZedPepsi: or suggestions? [16:59] d0k has joined the channel [16:59] jetienne has joined the channel [17:00] TheJH: ZedPepsi, fs.readFile("/dev/stdin", "utf8", function(err, contents) {...}) maybe? [17:00] ZedPepsi: TheJH: thank you for this suggestion. I can say that I just tried var f = fs.readFileSync('/dev/stdin').toString(); and I got the following error message: Error: EAGAIN, Resource temporarily unavailable [17:01] ding: stagas, it was just dummy json [17:01] Cromulent has joined the channel [17:01] TheJH: ZedPepsi, ah, ok [17:01] ZedPepsi: little bit more of the stack trace shows it's in readSync: at Object.readSync (fs.js:264:19) at Object.readFileSync (fs.js:125:19) [17:01] ding: stagas, but I'll try cradle next just to see what happens... [17:01] azeroth___ has joined the channel [17:02] ZedPepsi: TheJH: This may be a MacOS X misfeature though. I found a similar suggestion on stackoverflow but it does not seem to work for me! :( [17:02] gregmoreno has joined the channel [17:02] TheJH: ZedPepsi, by the way, why do you ant to do it in a synchronous way? [17:02] TheJH: *want [17:02] slifty has joined the channel [17:02] tiagobutzke has joined the channel [17:02] simenbrekken has joined the channel [17:02] ZedPepsi: TheJH: because it is more succint. This JS file is not an interactive app [17:02] ding: stagas, DrMcKay, TheJH: Thanks for your help. Was banging my head for a bit there... [17:03] ZedPepsi: TheJH: This JS file is just a command-line tool that reads in a JSON file, checks that it parses, and spits out the SHA256 sum. it's just not the kind of app where you would normally need asynchronous reading. I can write it asynchronously but that's just overkill [17:03] TheJH: ZedPepsi, depends on the files size :D [17:04] ZedPepsi: TheJH: small text files [17:04] nerdy has joined the channel [17:04] ZedPepsi: TheJH: file size is severely limited by other parts of the project [17:04] TheJH: ZedPepsi, also, when you use it for files, why stdin? [17:04] TheJH: ding, huh, did you figure out the reason? [17:05] ZedPepsi: TheJH: because I do this before I store the file on the filesystem. The file is stored in a directory and name depending on its sha256 hash, which is what this script determines [17:05] TheJH: ZedPepsi, why do you want to do the hashing and checking in a seperate process? [17:06] ZedPepsi: if I have to store it first it creates extra bookkeeping and possibilities for stray temp files [17:06] Raynos: Is life good? [17:06] ZedPepsi: TheJH: because php 4.3 does not have SHA256 or JSON parsing. [17:06] DrMcKay: Raynos: no. [17:06] TheJH: AAAH, PHP! [17:06] DrMcKay: ACTION hides [17:06] ZedPepsi: TheJH: with apologies [17:07] Raynos: DrMcKay: cancer? : ( [17:07] Raynos: ZedPepsi: port your PHP code to node.js, problem solved [17:07] ZedPepsi: Raynos: not possible [17:07] trotter has joined the channel [17:08] Raynos: ZedPepsi: go cowboy / radar [17:08] Raynos: Just do it. [17:09] ZedPepsi: Raynos: I don't understand what this means: "go cowboy / radar" [17:09] DrMcKay: Raynos: I'm just quite depressed [17:09] Raynos: DrMcKay: /manhug [17:09] DrMcKay: ZedPepsi: just write it in async, one level of indent doesn't hurt [17:09] Raynos: ZedPepsi: Ignore management, port it, deploy it, deal with consequences later [17:09] ZedPepsi: DrMcKay: yes that's what it looks like it will be. [17:09] Xano has joined the channel [17:09] DrMcKay: Raynos: thanks :) [17:10] DrMcKay: ZedPepsi: or wait, you need it for hashing files? [17:10] Raynos: ZedPepsi: I think "go rogue" is a better phrase [17:10] ZedPepsi: Raynos: Wrong context. I'm an academic with a project on my regular home page. I don't run any servers so I'm not installing anything. I am entirely uninterested in inheriting any sysadmin duties by making the sysadmin install special software which they will then not support or break periodically. Therefore, I am using the stuff they've already installed for everyone and which they must support. [17:11] ZedPepsi: DrMcKay: precisely. [17:11] DrMcKay: ZedPepsi: it's a unix system, it has to have openssl/sha256file installed [17:12] Raynos: ZedPepsi: Buy domain, deploy to heroku, HTTP redirect from your academic home page to domain, HTTP redirect domain to heroku. Problem solved \o/ [17:12] ZedPepsi: [sl398@inchcape ~]$ sha256file sha256file: Command not found. [17:12] DrMcKay: *sha256sum [17:12] DrMcKay: ZedPepsi: sha256sum something [17:13] tmedema has joined the channel [17:13] ZedPepsi: Raynos: and suddenly I'm a sysadmin. No thanks! [17:13] tmedema: Has anyone ever encountered this "Error 0" in console? http://img7.imagebanana.com/img/0v7sib80/Selection_014.png [17:13] vidi has joined the channel [17:13] ZedPepsi: DrMcKay: Good catch, that appears to be available. Any suggestions for JSON validation? [17:13] Raynos: Meh heroku just updates itself from git [17:13] DrMcKay: ZedPepsi: JSON.parse and catch exceptions? [17:13] Raynos: You just git push your code to heroku and heroku reboots itself. I'm no sysadmin, but heroku is easy to use [17:14] Raynos: Small sysadmin work or PHP. The former is defiantly the lesser of evils [17:14] ZedPepsi: DrMcKay: that is what I am doing elsewhere, but recall the context here: how would you suggest I do this from the cmdline or within my php script? php has json parsing in 5.x but not in 4.3 which is what I have to deal with [17:14] aconbere has joined the channel [17:15] TheJH: ZedPepsi, maybe there are libraries for it? [17:15] ZedPepsi: TheJH: there is a JSON.php script but it seems to be too slow for me [17:16] stagas: ding: hm cradle uses a lot of Object.defineProperty on the response object so that may be the issue, not a bug in v8 [17:16] ZedPepsi: it pegs the server in an unfortunate way [17:16] TheJH: ZedPepsi, isn't it just an acedemic project? [17:16] DrMcKay: also, has anyone seen Insekticid? (or is this his GH account: https://github.com/insekticid ?) [17:16] stagas: ding: see here https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperty somewhere in the middle where it mentions delete behaviour [17:16] ZedPepsi: TheJH: yes but it needs to run properly [17:17] ZedPepsi: I guess I'll bite the bullet and use temp files [17:17] DrMcKay: ZedPepsi: no offence, but aren't you sick on "I-won't-touch-anything-else-than-code" syndrome [17:17] TheJH: ZedPepsi, you could just go to #nodejitsu , ask for an account and if they give you one, deploy whatever nodejs app you want to do to .nodejitsu.com [17:17] ZedPepsi: DrMcKay: I don't understand what you just said! :( [17:17] TheJH: DrMcKay++ [17:17] v8bot_: TheJH has given a beer to DrMcKay. DrMcKay now has 1 beers. [17:17] catb0t: DrMcKay now has 1 beer [17:18] ZedPepsi: TheJH: I will look into this [17:18] DrMcKay: ZedPepsi: what TheJH said, your academic server is outdated, why don't you go and find something better? [17:18] seebees1 has joined the channel [17:18] ZedPepsi: DrMcKay: If this project pans out I surely will but not just yet. [17:19] davidascher has joined the channel [17:19] TheJH: ZedPepsi, so you want to stay with PHP in case it grows? [17:19] tmpvar has joined the channel [17:19] mykul|Home has joined the channel [17:20] ZedPepsi: TheJH: The php is just 15 lines and that will not grow. The thing that might grow is the files that are getting stored. If there are zillions it could use many gigabytes. Right now I can do that without paying anything and with proper support from our sysadmins. [17:21] ZedPepsi: TheJH: If it really grows and the 15 lines of php do not scale, I can rewrite these 15 lines in anything and move to something else quite easily [17:21] ZedPepsi: TheJH: in fact everything else is written in javascript, so the 15 lines of php are just to call into the javascript anyway [17:21] TheJH: ZedPepsi, what is your project? [17:21] Aikar: holy shit this Netgear N750 router is badass... if anyones looking for a high end N router, this seems nice. simultaneous dual band :o [17:22] Aikar: price tag of 139.99 though ... [17:22] ZedPepsi: TheJH: I can show you a very early beta version that is not available anywhere yet, so please do not circulate it. it is: http://www.ma.hw.ac.uk/~loisel/numeric/workshop.php?link=6b035104673d7847a8dd74b8d3b1a6dbe0034a50731fd2202208a27681d6811b [17:22] ZedPepsi: TheJH: essentially, it's a set of numerical analysis functions [17:23] TheJH: ZedPepsi, err... this channel has public logs [17:23] ZedPepsi: that's fine [17:23] fmeyer has joined the channel [17:23] ZedPepsi: I don't care that it's logged somewhere, I'm just saying don't rely on any of this working tomorrow :) [17:24] ZedPepsi: so if you go tell some friends that this is working and it's not working, you've been warned :) [17:25] ZedPepsi: I've already circulated it to some colleagues. I'm rolling it out very slowly. [17:25] TheJH: ah, ok [17:29] TomY has joined the channel [17:29] boaz has joined the channel [17:30] ZedPepsi: BTW, of these various nodejs hosting things, which are the good ones for me and my project? [17:30] slickplaid: Oh, shoot. I guess I shouldn't have posted it to hackernews then. [17:30] TheJH: slickplaid, :D [17:31] DrMcKay: lol [17:31] twee has joined the channel [17:31] DrMcKay: ZedPepsi: nodejitsu! [17:31] twee has left the channel [17:31] ZedPepsi: well I will advertise it soon-ish but not yet [17:31] TheJH: ZedPepsi, the #nodejitsu guys are actively contributing much stuff, they have a head support guy who normally is in #nodejitsu, ... [17:32] ZedPepsi: I will make sure to keep nodejitsu in mind [17:32] TheJH: ZedPepsi, and they have a cool bot :D [17:33] Raynos: ZedPepsi: I recommend nodejitsu and heroku [17:33] Raynos: The former is awesome [17:33] Raynos: The latter is the least hassle for a free service [17:33] ZedPepsi: What are the nodejitsu "limits"? How much stuff can you store on their servers? If my database of little files grows to 30GB, what'll happen? [17:33] Raynos: ZedPepsi: You work out a reasonable solution to the problem including some payment agreement [17:34] tiagobutzke has joined the channel [17:34] ZedPepsi: Yeah okay I understand. Eventually I could take some of my grant money for this but the advantage of using my university's servers is that they're free :) [17:35] pizthewiz has joined the channel [17:35] burningdog has joined the channel [17:35] Raynos: Yes, that is true [17:35] Raynos: Well iriscloud is a solid no hassle couchdb service I have found [17:35] Raynos: so you can use that as a database [17:36] ZedPepsi: I don't know what a "couchdb" is [17:37] Raynos: Its a database server like mongodb and redis [17:37] Raynos: Its a noSQL thingie [17:37] ZedPepsi: Okay... I'm not sure how this helps though. I'm sure they're going to want some cash too [17:37] ZedPepsi: OK the wife summons me for dinner. I'll catch up later. [17:38] azeroth____ has joined the channel [17:38] chrislorenz has joined the channel [17:39] Raynos: you can just use a mysql server on your university servers for unlimited db \o/ [17:39] amigojapan has joined the channel [17:40] ecin has joined the channel [17:40] aoberoi has joined the channel [17:41] ps_jinx has joined the channel [17:42] jtrudeau has joined the channel [17:42] losing has joined the channel [17:44] TheJH: Raynos, only if they allow connections from outside to the DBs [17:44] Raynos: TheJH: Why would they not ._. [17:44] Raynos: go over there. hit him on the head, tell him to sort it out o/ [17:45] tiagobutzke has joined the channel [17:46] junkee[] has joined the channel [17:47] jetienne has joined the channel [17:49] tiagobutzke_ has joined the channel [17:50] TomY has joined the channel [17:51] bwinton has joined the channel [17:52] jesster7 has joined the channel [17:54] CIA-30: node: 03Fedor Indutny 07master * r8c2c7bb 10/ (2 files in 2 dirs): [17:54] CIA-30: node: vm context with accessors [17:54] CIA-30: node: fixes #1673 - http://git.io/GdIChg [17:55] tmpvar has joined the channel [17:56] squeese has joined the channel [17:59] freeformz has joined the channel [18:00] aconbere has joined the channel [18:00] maushu has joined the channel [18:01] trotter has joined the channel [18:01] azend has joined the channel [18:04] chrislorenz has joined the channel [18:04] patcito has joined the channel [18:05] brianloveswords has joined the channel [18:05] azeroth__ has joined the channel [18:06] m00p has joined the channel [18:07] agnat has joined the channel [18:07] JaKWaC has joined the channel [18:10] Brian` has joined the channel [18:14] mikeal has joined the channel [18:16] dgathright has joined the channel [18:17] JaKWaC has joined the channel [18:18] jvdev has joined the channel [18:19] blup has joined the channel [18:20] kriszyp has joined the channel [18:22] marcello3d has joined the channel [18:22] aguynamedben has joined the channel [18:22] jarek has joined the channel [18:22] jarek has joined the channel [18:23] JaKWaC_ has joined the channel [18:24] dguttman has joined the channel [18:24] mikeal has joined the channel [18:25] slloyd_ has joined the channel [18:26] mvrilo has joined the channel [18:26] Croms has joined the channel [18:26] fmeyer has joined the channel [18:27] MikhX has joined the channel [18:27] bshumate has joined the channel [18:27] bshumate has joined the channel [18:28] patcito has joined the channel [18:28] vidi has joined the channel [18:28] MikhX has left the channel [18:29] brianseeders has joined the channel [18:30] jhurliman has joined the channel [18:31] jakehow has joined the channel [18:31] knifed has joined the channel [18:32] mykul|Home has joined the channel [18:34] wbednarski has joined the channel [18:34] goshakkk has joined the channel [18:35] jesster7 has joined the channel [18:37] freeformz has joined the channel [18:38] bpierre has joined the channel [18:39] sivy has joined the channel [18:40] fr0stbyte has joined the channel [18:42] jmoyers has joined the channel [18:44] TheEmpath has joined the channel [18:44] TheEmpath: Hail nodelings [18:44] whitman has joined the channel [18:46] Fuu has joined the channel [18:47] tjgillies has joined the channel [18:48] tjgillies: is there a way to add a json block into an object like lets say i have function(thing){ thing += {foo: bar, biz:baz} } [18:49] DrMcKay has joined the channel [18:49] dnyy has joined the channel [18:49] boaz- has joined the channel [18:50] jmoyers: not with += tjgillies [18:50] tonussi has joined the channel [18:50] jmoyers: http://documentcloud.github.com/underscore/#extend or similar tjgillies [18:51] tjgillies: jmoyers <- i assumed as much, i used it as a placeholder to inform other as to what i was trying to accomplish [18:51] tjgillies: jmoyers <- thnx [18:51] jmoyers: its also fairly easy to implement if you dont want to pull in underscore, https://github.com/documentcloud/underscore/blob/master/underscore.js#L576-583 [18:51] boaz has joined the channel [18:53] tjgillies: awesome [18:53] knifed has joined the channel [18:54] tjgillies: would you consider prototyping and monkey patching to be synonomous? [18:57] jbpros has joined the channel [18:57] goshakkk has joined the channel [18:59] radiodario has joined the channel [18:59] CarterL has joined the channel [19:00] jmoyers: nope [19:00] jmoyers: tjgillies [19:00] jmoyers: monkey patching usually refers to modifying someone elses library at runtime [19:00] jmoyers: so modifying a prototype from outside the library [19:00] jmoyers: doesn't have to be a prototype, either [19:02] bpierre has joined the channel [19:02] tjgillies: jmoyers <- thnx [19:04] aoberoi has joined the channel [19:06] mike5w3c has joined the channel [19:09] langworthy has joined the channel [19:12] marcello3d: hello sweet peoples of #node.js! [19:15] temp01 has joined the channel [19:16] jarek_ has joined the channel [19:17] Xano has joined the channel [19:18] dexter_e has joined the channel [19:20] dmkbot1: joyent/node: 03indutny: [script] remove obsolete 'using v8::Null' - https://github.com/joyent/node/issues/1680 [19:22] bengrue has joined the channel [19:22] KingCode has joined the channel [19:23] jarek__ has joined the channel [19:23] KingCode: I need help [19:23] KingCode: Can't run /bin/rebaseall [19:23] KingCode: with following error: $ /bin/rebaseall -v ReBaseImage (/usr/bin/libhttpd.dll) failed with last error = 6 [19:24] KingCode: Any idea anyone? Thx [19:24] marcello3d: new google docs is very greyscale :) [19:24] marcello3d: what is rebaseall? [19:25] KingCode: A cygwin script [19:25] aho has joined the channel [19:25] KingCode: Trying to install node.js [19:25] KingCode: on windows7 - tried all the blogs/tips, but to no avail.. [19:25] marcello3d: oh, I don't know how cygwin works. [19:25] KingCode: OK..thx [19:26] marcello3d: are you trying to run node 0.4.x or 0.5.x? [19:26] KingCode: Install node 0.4.11 [19:26] marcello3d: cause I think 0.5.x, while unstable, is targeting native windows support (no cygwin needed) [19:26] KingCode: Sure - I know about that....0.4.11 should work.. [19:27] losing_ has joined the channel [19:27] marcello3d: alright. well, good luck :) [19:27] KingCode: This is a cygwin issue..very bad/quirky on Windows [19:27] marcello3d: yea, I never could stand cygwin on windows, always just used mingw32 [19:27] KingCode: Thx anyway Marcello - what are you running Node.js on? [19:27] tjgillies: whats the proper way to do foo = {a:b, "bar" +baz : fiz} [19:27] marcello3d: currently os x [19:27] blup has joined the channel [19:27] marcello3d: and linux on server [19:28] KingCode: Is mingw32 working for windows? [19:28] jmoyers: tjgillies you can't do that in an object literal, i dont think [19:28] marcello3d: I always felt like I'd rather run linux through a vm than bother with cygwin [19:28] tjgillies: jmoyers <- thnx [19:28] jmoyers: var foo = {}; foo[] [19:28] marcello3d: I have no idea, I stopped using windows before starting node.js [19:28] jmoyers: var foo = {}; foo['bar' + baz] = '' [19:29] jmoyers: rather [19:29] marcello3d: jmoyers is right [19:29] jmoyers: marcello3d++ linux vm is the way to go until node on windows is stable [19:29] jmoyers: i believe there is a node.exe one can download [19:29] jmoyers: so you don't have to compile [19:29] bogdanbiv has joined the channel [19:29] marcello3d: jmoyers: but that's 0.5.x, right? [19:30] chjj: people dont give cygwin enough credit imo [19:30] jmoyers: shrug -- are you worried about stability on local windows development :-)? [19:30] jmoyers: cygwin is a steaming pile man [19:30] jmoyers: no two ways to slice that [19:30] KingCode: thx jmoyers, but don't I need NPM to use Node.js propertly? [19:30] marcello3d: chjj: to its credit, I think cygwin is fine for what it is [19:30] chjj: eh, i feel comfortable with it when im on windows [19:31] jmoyers: yes, but npm uses node [19:31] marcello3d: chjj: I just feel like what it is isn't something I want to deal with [19:31] chjj: marcello3d: roger [19:31] jmoyers: i can't speak to whether npm works with node.exe though [19:31] jmoyers: never tried it [19:31] KingCode: ah, ok..so use node.exe, start Node and then use NPM? thx [19:31] marcello3d: I recall that npm didn't work with the initial 0.5.x on windows. but that is changing on an hourly basis [19:32] marcello3d: so who knows what the current status is :) [19:32] marcello3d: is there a good way to install both node 0.4 and 0.5 on the same system and be able to switch? [19:32] jmoyers: nvm [19:33] jmoyers: though master of nvm is broken [19:33] jmoyers: as i heard from the creator last night :P [19:33] madsleejensen has joined the channel [19:33] jmoyers: https://github.com/creationix/nvm [19:33] hakunin has joined the channel [19:34] jarek has joined the channel [19:34] jarek has joined the channel [19:35] marcello3d: :) [19:35] marcello3d: cheers [19:35] KingCode: Thanks all, and good luck to me :) [19:36] marcello3d: man. vowsjs is too complicated [19:36] marcello3d: what's all this "tap" testing stuff all about? [19:36] vicapow has joined the channel [19:37] vicapow: anyone have experience with linux services? ie, svcadm ? [19:37] vicapow: or know where i can get help? [19:37] Cromulent has joined the channel [19:39] jmoyers: marcello3d http://testanything.org/wiki/index.php/Main_Page [19:39] marcello3d: jmoyers: yea, I found that, cheers :) [19:39] marcello3d: vows doesn't seem to be tap compatible... [19:40] marcello3d: do you use any testing framework? [19:40] jmoyers: TAP as i understand it [19:40] jmoyers: is a text based protocol so that you can understand test results [19:40] jmoyers: i use node unit myself [19:40] Raynos: marcello3d: what's TAP ? [19:41] jmoyers: since its the least offensive [19:41] jmoyers: and doesn't have a compile step like expresso [19:41] marcello3d: it's just a test result format [19:41] Raynos: Write a vows reporter [19:41] Raynos: to export to TAP [19:41] marcello3d: expresso annoys me cause of the spelling :) [19:41] Raynos: If you care about it [19:41] nuba has joined the channel [19:41] marcello3d: Raynos: I'm more concerned that vows is a bit verbose/awkward... [19:41] jmoyers: not a huge fan of vows dsl [19:42] marcello3d: yea, well it makes it hard to pass variables around [19:42] jmoyers: i just want to run a function that will throw or not [19:42] marcello3d: yep [19:42] marcello3d: well in my case, I have many levels of depth [19:42] mikeal has joined the channel [19:42] Raynos: marcello3d: vows-is & vows-fluent [19:43] marcello3d: and I like the idea of the unit tests actually looking like code you'd write if you were using the library [19:43] marcello3d: so they serve as both documentation and tests [19:43] Raynos: It is verbose. I wrote vows-is to simplify vows : https://github.com/Raynos/vows-is [19:43] marcello3d: and easy to convert test cases into unit tests [19:43] marcello3d: https://github.com/marcello3d/node-mongolian/blob/master/test/simple-test.js [19:43] ryanfitz has joined the channel [19:43] marcello3d: Raynos: what do you like about vows that made you build on top of it instead of something separate? [19:44] pizthewiz has joined the channel [19:44] Raynos: I like vows because it worked [19:44] marcello3d: :) [19:44] Raynos: I liked the seperation of topics & vows [19:44] marcello3d: I mean, I think vows looks great for non asynchronous stuff [19:44] Raynos: Tbh I just didnt feel like reinventing wheels [19:44] Raynos: I found vows to be the lesser of evils and didnt feel like rewriting something similar [19:44] marcello3d: but one limitation I found was here https://github.com/marcello3d/node-mongolian/blob/master/test/simple-test.js#L75 [19:45] marcello3d: where basically I insert something into the database, and then retrieve it, and I want to compare the two objects, but I don't have access to the original one [19:45] marcello3d: with regular closures that's pretty simple [19:45] marcello3d: but with vows I need to like make an additional topic layer or something [19:45] tiagobutzke_ has joined the channel [19:45] marcello3d: just didn't seem obvious enough [19:46] deedubs has joined the channel [19:46] tdegrunt has joined the channel [19:48] Raynos: marcello3d: I'm stumped for anything thats not a hack [19:48] skm has joined the channel [19:48] marcello3d: well that makes me feel less stupid :) [19:48] marcello3d: I'll probably break down and try porting this test file to another format to see how it feels [19:49] marcello3d: nodeunit seems to be the popular traditional contender from irc [19:49] tmpvar: does anyone know how to build node using gyp? [19:49] marcello3d: tmpvar: ryan? ;D [19:49] marcello3d: tmpvar: he fawns about it on twitter anyway [19:50] tmpvar: ryah, you around? [19:51] Raynos: marcello3d: it is. [19:51] apoc has joined the channel [19:51] Raynos: The thing about vows is that they are incredibly isolated, so you cant really vow relationships between topics [19:51] Raynos: Its a design error that would need major work [19:54] Ragnis has joined the channel [19:54] knifed has joined the channel [19:54] MikhX has joined the channel [19:55] MikhX has left the channel [19:55] jorenl_ has joined the channel [19:55] sneakyness has joined the channel [19:55] tmpvar: aha, ./configure-gyp && make -f Makefile-gyp [19:58] Ragnis has joined the channel [19:59] marcello3d: Raynos: yea, I think that's great for certain types of libraries... it's a bit problematic with deep async [19:59] Raynos: not deep async [19:59] Raynos: its problematic for linked topics [19:59] freewil: anyone used the pg module? [20:00] piscisaureus has joined the channel [20:00] jmoyers: and so you find the flaw in the abstraction [20:01] jmoyers: and as such, this is why i stay at one layer of nesting in testing :P [20:01] jmoyers: and just share state like a boss [20:01] jmoyers: module.exports['test'] = function(){ /** a flipping test **/ } [20:01] slloyd_ has joined the channel [20:01] jmoyers: if i need to set up a server, i set it up [20:02] boogyman has joined the channel [20:08] enmand has joined the channel [20:09] marcello3d: jmoyers: yup, I'm probably going to switch to something like that. but I like the output formatting vowsjs has, so I need *some* kind of framework [20:09] jmoyers: nodeunit [20:09] jmoyers: gives you the pleasant green checkmarks ;-) [20:09] jmoyers: thats about it though [20:10] jmoyers: thats where expresso shines actually [20:10] jmoyers: full code coverage output with jscoverage [20:10] jmoyers: the problem is its a dependency and a hilarious one at that [20:10] jmoyers: it ends up loading spider monkey if im not mistaken [20:10] jmoyers: im eagerly awaiting somebody doing some generic with node-burrito for code coverage [20:12] paulwe_ has joined the channel [20:12] mikeal has joined the channel [20:12] langworthy_ has joined the channel [20:12] jesster7 has joined the channel [20:12] DennisRas has joined the channel [20:16] marcello3d: expresso's name just rubs me the wrong way :) [20:17] brianloveswords has joined the channel [20:17] fabich has joined the channel [20:17] austinbv has joined the channel [20:17] altamic has joined the channel [20:19] Vertice has joined the channel [20:20] fabich: hey all! got some problem with the installation of NPM, can someone help? [20:22] tmpvar: fabich, ask and we'll find out ;) [20:22] stisti has joined the channel [20:22] fabich: :P [20:23] fabich: node: src/unix/fs.c:89: uv_fs_req_cleanup: Assertion `(req->result == -1 && req->ptr == ((void *)0)) || (req->result >= 0 && req->ptr != ((void *)0))' failed. [20:23] malkomalko has joined the channel [20:23] fabich: after running curl http://npmjs.org/install.sh | sh [20:24] aoberoi has joined the channel [20:24] jmoyers: and what version of node is that [20:24] jmoyers: since its got libuv, it means not the right one :-) [20:25] jmoyers: fabich grab https://github.com/joyent/node/tree/v0.4.11 [20:25] jmoyers: 4.11 = stable [20:25] fabich: v0.5.7-pre [20:26] pquerna: v0.5.7-pre = unstable [20:26] pquerna: (but probally a good thing to post bug reports on) [20:26] jmoyers: if its got pre in the name, you are in trouble [20:26] jmoyers: usually :-) [20:26] fabich: hehe :-) [20:26] fabich: k, will try 4.11 [20:26] mykul|Home has joined the channel [20:27] CrabDude has joined the channel [20:27] Cromulent has joined the channel [20:29] akujin- has joined the channel [20:29] kiffness_ has joined the channel [20:30] Nuck has joined the channel [20:32] Cromulent has joined the channel [20:33] boaz has joined the channel [20:35] losing has joined the channel [20:35] boaz has joined the channel [20:35] brianseeders has joined the channel [20:39] hackband has joined the channel [20:39] deedubs has joined the channel [20:40] dmkbot1: joyent/node: 03laverdet: node --vars broken in 0.5.4 - https://github.com/joyent/node/issues/1536 [20:40] cmeiklejohn has joined the channel [20:40] cmeiklejohn: heyo -- anyone using tobi? [20:43] jacobolus has joined the channel [20:43] jmoyers has joined the channel [20:44] Nuck|mobile has joined the channel [20:44] fabich: jmoyers thx, it works [20:44] jmoyers: np [20:45] fabich: i'm off, bb [20:46] seutje has joined the channel [20:46] JaKWaC has joined the channel [20:47] Xano has joined the channel [20:47] jmoyers has joined the channel [20:49] jmoyers has joined the channel [20:50] ryanfitz has joined the channel [20:52] zeade has joined the channel [20:52] kmiyashiro has joined the channel [20:53] robashton has joined the channel [20:56] Nuck|mobile has joined the channel [20:57] dguttman has joined the channel [20:59] NegativeK has joined the channel [20:59] aguynamedben has joined the channel [21:06] pickels has joined the channel [21:07] simenbrekken has joined the channel [21:10] digitalsabre has left the channel [21:11] jamund has joined the channel [21:15] tiagobutzke_ has joined the channel [21:17] dswift has joined the channel [21:19] Nexxy has joined the channel [21:19] Nexxy has joined the channel [21:21] admc has joined the channel [21:21] DrMcKay: so, my boss said that I should use whatever technology I like. do you think it's reasonable to rewrite a 60 work-hours-old app from Tornado + SQLAlchemy + PostgreSQL to node.js + express + MongoDB + Mongoose? [21:22] ErikCorryV8_ has joined the channel [21:22] MUILTFN has joined the channel [21:23] ErikCorryV8_: #join #chromium [21:23] ErikCorryV8_: fuuuu [21:24] mikeal has joined the channel [21:24] Dmitrijus: yes, indeed, fuuu chrome! [21:24] Dmitrijus: :) [21:24] DrMcKay: lol [21:25] kiffness_ has joined the channel [21:25] stisti has joined the channel [21:26] jhurliman: DrMcKay, if it's just you managing deployment and ops for the app, server, database, etc then maybe [21:26] dswift: Anybody here familiar with using Step() ? [21:26] Raynos: DrMcKay: yes [21:27] Frippe has joined the channel [21:28] Raynos: I mean, Do you know python/tornado ? [21:28] Raynos: If not You might aswell redo the thing [21:28] CrabDude has joined the channel [21:29] mikeal: does everyone else see a ton of test failures in master? [21:29] jhurliman: rewriting is the easy part. getting new test plans and deployment plans developed, adapting to the different release cycles of the new tech stack, regression testing the entire thing, understanding how to scale the new stack if it's going to be under heavy load, etc [21:30] kriszyp has joined the channel [21:34] jhurliman: DrMcKay, it's hard to say without more context. if this is a little internal tool or a prototype that is not live yet, that's very different from a live site with 10k daily active users [21:34] kiffness has joined the channel [21:36] DrMcKay: Raynos: I know it pretty well, that was my first async framework :) [21:37] DrMcKay: and it isn't anything small [21:38] tylerstalder has joined the channel [21:39] aconbere has joined the channel [21:40] DrMcKay: it's something like social networking, would fit great into mongo [21:43] amtal has joined the channel [21:43] aaronblohowiak has joined the channel [21:44] DrMcKay: quit [21:44] DrMcKay: meh [21:45] Raynos: DrMcKay: DO IT [21:45] radiodario has joined the channel [21:45] marcello3d: man. dismissing/not using pull requests makes me feel guilty [21:46] dswift: @Raynos - was that in regards to Step [21:46] dswift: ? [21:46] Raynos: dswift: wait what? [21:46] dswift: I was looking for sobe help with Step [21:46] dswift: s/sobe/some/ [21:46] bicranial_ has joined the channel [21:47] dswift: ugh - ok, my bad [21:47] dswift: misread an earlier msg [21:48] marcello3d: it'd be cool if someone rewrote mongoose on top of mongolian [21:49] Raynos: dswift: I dont use Step, I use middleware [21:50] marcello3d: someone wrote a library called 'middleware'? that seems terrible [21:50] dswift: heh [21:50] marcello3d: I can't find it. [21:50] dswift: sorry, raynos, I mis-read a reply to you [21:50] Raynos: marcello3d: https://github.com/Raynos/middleware [21:51] Raynos: Also :( [21:51] ryanfitz has joined the channel [21:51] marcello3d: inconvenient name, that is [21:51] davidwalsh has joined the channel [21:51] marcello3d: interesting idea though [21:51] Raynos: marcello3d: It mimics the API for connect middleware. I thought it was a sensible name [21:51] marcello3d: yea [21:51] marcello3d: it's just hard to search for [21:51] Raynos: I guess so [21:51] normanrichards has joined the channel [21:52] Raynos: None of my github modules are indexed on google though so meh o/ [21:52] marcello3d: why not? [21:52] marcello3d: oh you just added it [21:52] Raynos: Its less then a week old [21:52] marcello3d: yea [21:52] Raynos: and unstable / actively worked on [21:53] marcello3d: your site gives me 404s :( [21:53] marcello3d: but perhaps you knew that [21:54] davidascher has joined the channel [21:54] marcello3d: how do you like couch? [21:54] Raynos: marcello3d: wait what [21:55] marcello3d: http://www.raynos.org/blog/ - links at top [21:55] marcello3d: (besides blog) [21:55] Raynos: Oh those [21:55] marcello3d: (and github) [21:55] Raynos: unimplemented o/ [21:55] Raynos: I learned first hand. That fiflling a portfolio with tutorials, prototypes, applications and games on my multiple of them per week schedule was severely overestimating my talents [21:57] aaronblohowiak: Raynos: Cannot GET /apps [21:57] Raynos: Do I really need to implement a custom 404 [21:57] marcello3d: haha [21:57] Raynos: That says "Raynos is lazy, try again next year" [21:57] jhurliman has joined the channel [21:57] marcello3d: :D [21:57] louissmit has joined the channel [21:58] Raynos: https://github.com/Raynos/raynos-blog/issues/10 [21:58] Raynos: ^ "actively" working on adding applications [21:59] marcello3d: you should just link to that github issue ;D [21:59] Raynos: o/ [21:59] megalomix has joined the channel [21:59] Raynos: I might do that [21:59] megalomix: hello everybody [22:00] theCole has joined the channel [22:00] megalomix: Is it possible to implement a "browser sharing" with JS and NODE ? [22:00] Raynos: Yes it is [22:01] zemanel has joined the channel [22:01] marcello3d: megalomix: that's not legal in all states though [22:01] Raynos: megalomix: https://gist.github.com/1208856 [22:01] megalomix: Legal?? [22:01] Raynos: mercello3d: what does browser sharing mean? and why is it not legal [22:01] megalomix: I SEE [22:01] marcello3d: in georgia there're some strict monobrowseromy laws [22:02] megalomix: Raynos, wwwow, awesome code [22:02] megalomix: ahahahah [22:02] megalomix: :) [22:02] marcello3d: megalomix: look up browserify [22:02] megalomix: ok [22:02] Raynos: marcello3d: Is this some really bad / failed joke? [22:03] marcello3d: browserify? no [22:03] Raynos: I also second node-browserify for client/server code re-use [22:03] marcello3d: I thought it was funny, so I can't call it completely failed [22:04] megalomix: i think is not possible [22:05] megalomix: only with Java or some Flash third part package [22:06] kiffness_ has joined the channel [22:06] megalomix: hmmm jave applet [22:06] megalomix: grrr [22:07] MrTopf has joined the channel [22:13] johns_ has joined the channel [22:13] johns_: hello [22:13] johns_: is someone able to help me [22:13] johns_: with path in .profile [22:13] boaz has joined the channel [22:16] ErikCorryV8_: export PATH=/the/new/path:$PATH [22:16] twee_ has joined the channel [22:16] tjgillies: on mac paths are stored in /etc/path [22:16] tjgillies: /etc/paths rather [22:16] felixge has joined the channel [22:16] ErikCorryV8_: .profile works too. [22:17] kiffness has joined the channel [22:17] ErikCorryV8_: But I guess that /etc/paths is better if it's for all users. [22:17] ErikCorryV8_: Thanks for that. [22:19] ErikCorryV8_: I want to install node-png on MacOSX [22:19] ErikCorryV8_: So I installed libpng first [22:20] ErikCorryV8_: But MacPorts puts the include files in /opt/local/include [22:20] dmkbot1: joyent/node: 03mikeal: streams2 - https://github.com/joyent/node/issues/1681 [22:20] dmkbot1: joyent/node: 03mikeal: streams2 - https://github.com/joyent/node/issues/1681 [22:20] tjgillies: macports is even use homebrew [22:20] tjgillies: evil* [22:20] ErikCorryV8_: Which isn't where node-waf expects to find stuff. [22:20] kiffness has joined the channel [22:20] tjgillies: http://mxcl.github.com/homebrew/ [22:21] ErikCorryV8_: Interesting. [22:21] ErikCorryV8_: I had got the impression that MacPorts was what everyone used. [22:21] pt_tr has joined the channel [22:22] tjgillies: yes, it was in fact what everyone used ;) [22:22] akujin has joined the channel [22:23] johns_: whats a the usual location to place the node folder? [22:23] johns_: im on ubuntu btw. [22:23] AAA_awright has joined the channel [22:24] johns_: and im pretty sure i set the path in .profile to my node location, but when i run node, it tells me to install it using sudo install. [22:24] fmeyer has joined the channel [22:25] dmkbot1: joyent/node: 03tshinnic: add positioned writing feature to fs.WriteStream - https://github.com/joyent/node/issues/1645 [22:25] slloyd_ has joined the channel [22:26] ErikCorryV8_: johns If you do a 'sudo make install' node will put itself in /usr/local/bin [22:26] ErikCorryV8_: You can override that by doing ./configure --prefix=/somewhere/else [22:26] ErikCorryV8_: before doing make. [22:28] mehlah has joined the channel [22:28] ErikCorryV8_: tjgillies, I Googled Homebrew and found out that "By default Homebrew will try to take over your /usr/local directory. If you’ve already installed anything there (MySQL, etc.) then Homebrew will complain." [22:28] Ginlock has joined the channel [22:28] ErikCorryV8_: So I could get Homebrew to use a different directory, but then I would be using it in a non-standard way. [22:28] willwhite has joined the channel [22:29] ErikCorryV8_: And my experience tells me that will break stuff. [22:29] mfncooper has joined the channel [22:29] ErikCorryV8_: And since my main issue with MacPorts is that it puts things in a strange place I wouldn't be much better off... [22:29] JaKWaC has joined the channel [22:29] tjgillies: ErikCorryV8_ <- yeah, any package system you use will fall into that. its a fault of mac not having a native package system. [22:31] ErikCorryV8_: I should have gone with a Linux laptop. I was seduced by the silvery shininess of the Mac and now this... [22:32] ErikCorryV8_: There must be some way to tell npm to use a special include path when building. [22:32] Wa has joined the channel [22:33] isaacs has joined the channel [22:35] TooTallNate has joined the channel [22:35] fmeyer has joined the channel [22:36] Cromulent has joined the channel [22:40] Chopinn has joined the channel [22:41] AvianFlu has joined the channel [22:41] brianseeders has joined the channel [22:42] chapel: ErikCorryV8_: why not compile node manually [22:42] chapel: and not use a package system, or make them use a different directory [22:42] tilgovi has joined the channel [22:42] tilgovi has joined the channel [22:42] ErikCorryV8_: I did compile node manually. [22:42] ErikCorryV8_: Now I want to install the png module. [22:43] ErikCorryV8_: But it won't compile because node-waf (started by npm) doesn't know to look in /opt/local/include [22:43] Chopinn has left the channel [22:43] konobi: Erik, installing pkgconfig might help [22:44] smtlaissezfaire has joined the channel [22:45] dmkbot1: joyent/node: 03mikeal: streams2 - https://github.com/joyent/node/issues/1681 [22:45] dmkbot1: joyent/node: 03virmundi: Windows 7 exec process leak - https://github.com/joyent/node/issues/1682 [22:46] CarterL has joined the channel [22:46] nforgerit has joined the channel [22:50] CrabDude has joined the channel [22:51] piscisaureus has joined the channel [22:51] clifton has joined the channel [22:52] ErikCorryV8_: I ended up just softlinking /opt/local/include/png* into /usr/include [22:53] ErikCorryV8_: A great solution that will surely bite me one day. [22:53] amerine has joined the channel [22:54] aaronblohowiak: " A great solution that will surely bite me one day." -- i feel like that describes most of the code I write [22:54] aaronblohowiak: v.v [22:55] ErikCorryV8_: That day is today! [22:55] aaronblohowiak: LOL [22:55] ErikCorryV8_: The png package installs, but it doesn't work. [22:57] Greg_ has joined the channel [22:59] creationix has joined the channel [23:00] ticdup has joined the channel [23:02] dswift: If I have a specific order to events that must be enforced to contact a server, am I better off writing a quick module to do that in C, and then pass the connection back to node? [23:04] AvianFlu: dswift: it's possible to enforce a specific order of events in javascript. make a series of small functions where each calls the next. [23:04] Greg_ has left the channel [23:05] wookiehangover has joined the channel [23:05] gazumps has joined the channel [23:06] k1ttty has joined the channel [23:06] davidascher has joined the channel [23:06] creationix: I want to learn node better, so I'm re-implementing it in lua [23:06] creationix: who's taking bets I won't last longer than a day [23:06] dswift: lol [23:08] ErikCorryV8_: ACTION adds more soft links to his pristine Mac system [23:08] creationix: if it does somehow become successful (which I highly doubt) it will put more pressure on V8 to be better [23:08] ErikCorryV8_: ACTION adds baler twine and glue [23:08] ErikCorryV8_: Now it works! [23:08] creationix: hey ErikCorryV8 [23:08] ErikCorryV8_: creationix: What on earth are you talking about? [23:08] alindeman: Maybe a bug? [23:09] aaronblohowiak: creationix: there is a lua-ev rock [23:09] aaronblohowiak: creationix: and there is a lua-node project [23:09] creationix: indeed, but that's not my goal [23:09] aaronblohowiak: =) right [23:09] creationix: my goal isn't to write node servers in lua, it's to learn how to make something like node [23:09] ErikCorryV8_: Ah. [23:09] creationix: and I like node's architecture and lua seems interesting [23:09] ErikCorryV8_: Start with the libraries that ryah has used I guess... [23:09] creationix: I'd be sad if it took off and took away from the node community [23:10] creationix: right, I've got libuv and http-parser already [23:10] ErikCorryV8_: Creationix: embrace change :-) [23:10] creationix: ErikCorryV8_: you could do a dash version if you had free time [23:10] creationix: that would be fun too [23:11] tbranyen: creationix: lua has some crazy stuff [23:11] tbranyen: no sparse arrays >_> [23:11] creationix: true coros [23:11] ErikCorryV8_: I was going to ask how to get webgl-node working on MacOSX, but after almost punching my screen while installing something as simple as node-png I won't bother. [23:11] creationix: any value as table keys [23:11] tbranyen: yeah [23:11] tbranyen: modifying the actual environment, instead of dealing with with [23:11] creationix: ErikCorryV8_: yeah, I haven't gotten it working on osx either [23:11] ErikCorryV8_: What do you use for node-webgl? Windows or Linux? [23:12] tbranyen: essentially changing the global object which is tits [23:12] creationix: ErikCorryV8_: ubuntu [23:12] creationix: ErikCorryV8_: and webos, so both linux [23:13] creationix: ErikCorryV8_: if you want to try it in ubuntu, I can tell you the exact *-dev packages to install and a normal npm install using node v0.4.x will work out of the box [23:13] ErikCorryV8_: I thought I'd add some 3d-coolness to my talk in Berlin. It's still several weeks away so I still haven't reached the OMG-I'd-better-just-do-something-simple stage. [23:13] ErikCorryV8_: But I'm not lugging my Ubuntu workstation to Berlin... [23:13] ErikCorryV8_: So, perfect excuse. [23:13] creationix: maybe a vm with gl acceleration [23:14] creationix: I know it works under windows, not sure about under osx [23:14] ErikCorryV8_: Yeah right. I am a masochist so I want to mix VMs and OpenGL. [23:14] creationix: just sayin' [23:14] ErikCorryV8_: :-) [23:14] creationix: you do work on a pretty crazy vm after all [23:14] kiffness has joined the channel [23:15] ErikCorryV8_: Yeah, not that kind. VMWare is upstairs from us. They keep telling us we should be using their rewind-time full system debugger to debug tricky crashes. [23:16] creationix: ErikCorryV8_: do you know how the latest luajit compares to v8 in terms of speed? [23:16] tiagobutzke has joined the channel [23:16] ErikCorryV8_: Heh [23:16] ErikCorryV8_: Mr Aleph blogged about that. [23:16] creationix: seems like the kind of thing you would keep track of [23:16] creationix: link? [23:17] ErikCorryV8_: http://blog.mrale.ph/ [23:17] ErikCorryV8_: There's no doubt that LuaJIT is an awesome piece of work. [23:18] ErikCorryV8_: And he isn't quite as constrained by the web as we are. Like if he doesn't want to be 110% compatible then he doesn't have to be. And if he can win some us by not doing bounds checks on typed arrays then that's OK too. [23:18] ryanfitz has joined the channel [23:18] kiffness_ has joined the channel [23:18] ErikCorryV8_: But it's still awesome. [23:18] creationix: yep [23:19] smtlaissezfaire has joined the channel [23:19] piscisaureus: creationix: you should talk to pquerna [23:19] creationix: why's that? [23:19] piscisaureus: creationix: he might actually pay you for that :-) [23:19] piscisaureus: node in lua [23:20] creationix: hah, then I'd have to be serious about it [23:20] creationix: I'm doing this for fun [23:20] creationix: but I won't cut corners in case someone wants to make serious project out of it [23:20] piscisaureus: creationix: that's always how it starts [23:20] tomb has joined the channel [23:20] davidascher has joined the channel [23:21] SubStack: nifty [23:21] creationix: piscisaureus: true, but most my projects like this die pretty shortly [23:21] piscisaureus: creationix: heh. [23:21] creationix: the lua community already has enough conventions that they would be adverse to a node style server [23:21] creationix: but the vm itself seems pretty agnostic [23:21] piscisaureus: creationix: it shouldn't be so hard though - you just have to add some libuv bindings [23:22] creationix: right, and use http-parser to make a built-in http server [23:22] piscisaureus: creationix: yes, well that's the idea [23:22] creationix: but as I still don't consider myself a C coder, this takes me a while to get started [23:22] piscisaureus: yes, that's true [23:22] creationix: I know what to do, but the actual concrete steps are tough [23:23] stephank: Is there an example of good Lua code out there? I've yet to discover its beauty. [23:23] creationix: dunno, most the docs are pretty ugly [23:23] stephank: :B [23:23] creationix: they don't even syntax color the snippets and it's always courier [23:23] stephank: But a lot of people seem to like it a lot. I'm thinking for example the Löve project. [23:24] stephank: come to think of it, I've seen it mostly used in games [23:24] stephank: (beautiful code in games is rare) [23:25] davidbanham has joined the channel [23:25] dmkbot1: joyent/node: 03tshinnic: unguarded fs.watchFile cache statWatchers checking fixed - https://github.com/joyent/node/issues/1637 [23:25] Nuck has joined the channel [23:27] piscisaureus: http://code.google.com/p/dart/ [23:29] jamescarr has joined the channel [23:29] tilgovi has joined the channel [23:29] jamescarr: hmmm... who here has an io domain? [23:29] tilgovi has joined the channel [23:30] jamescarr: I'm looking into registering one, the only site I found was nic.io and it looks like it'll cost $97? That seems pretty steep [23:30] nerdy_ has joined the channel [23:30] jamescarr: I don't even have an idea of how long it is for [23:30] ErikCorryV8_: Malte Ubl has one. [23:30] ErikCorryV8_: NonBlocking.io [23:31] creationix: ErikCorryV8_: thanks for the link. I think I understand what I need. Depending on the workload, luajit is fast enough for most anything I'll need it for. [23:31] ErikCorryV8_: Probably is. [23:32] jamescarr: looks like the best I can find so far is $79/year [23:32] jamescarr: still, seems steep. Do all those open source projects with IO domains really shell out $79 yearly? :) [23:33] mykul|Home has joined the channel [23:35] aaronblohowiak: jamescarr: that is how expensive it is [23:35] aaronblohowiak: jamescarr: name.com [23:36] aaronblohowiak: jamescarr: Transitive.io is expensive, but worth it =D [23:36] pquerna: rax.io [23:37] jamescarr: I see. I'll just have to consider it an operating expense then :) [23:37] jamescarr: in the long run, $79 isn't too much [23:37] jamescarr: especially since it'll be for my LLC [23:38] jamescarr: Just more than your typical .com (which is taken with an under construction page dating from 2002) [23:38] aaronblohowiak: pquerna: love that site. [23:40] kasmura has joined the channel [23:40] kiffness has joined the channel [23:41] kasmura: Anybody that could help me with DOM manipulating? [23:41] kasmura: * who [23:41] NegativeK has joined the channel [23:41] aaronblohowiak: kasmura: using jquery? [23:41] tbranyen: loool creationix you're doing what i was attempting with lua [23:41] kasmura: yes [23:41] tbranyen: creationix: i called my project lude [23:41] aaronblohowiak: kasmura: try the jquery channel [23:42] davidbanham has joined the channel [23:42] tbranyen: although i was looking into lua-llvm not luajit [23:42] ErikCorryV8_: I wonder if SpiderNode or NodeMonkey or whatever is still going. [23:42] ErikCorryV8_: I haven't heard much. [23:42] creationix: why llvm? [23:42] kasmura: Yes, but i think it works in normal client-side Javascript, but not in node.js [23:42] creationix: I just picked luajit because it's fast and runs on arm [23:42] tbranyen: creationix: actually my project used both, i was just messing with both [23:43] ErikCorryV8_: Maybe I haven't been paying attention. [23:43] tbranyen: https://github.com/tbranyen/lude [23:43] tbranyen: is what i was doing [23:43] tbranyen: ages ago [23:43] kasmura: thank you tbranyen, I will have a look at that [23:43] jn has joined the channel [23:43] jn: s [23:43] creationix: oh, so the llvm version generated static native code? [23:44] tbranyen: kasmura: what, that wasn't for you >_> [23:44] kasmura: oh, sorry [23:44] tbranyen: creationix: i think so, something like that [23:44] creationix: ErikCorryV8_: I haven't heard anything either [23:44] Nuck has joined the channel [23:44] creationix: tbranyen: that's cool then, I could make apps for ios using that then? [23:44] tbranyen: creationix: i talked to the lua-llvm guy and he said it was possible, he just didn't know how [23:45] __sorin__ has joined the channel [23:45] tbranyen: apple uses llvm now by default right? [23:45] tbranyen: for ios stuff [23:45] creationix: we've been playing with haxe at work, it can generate C++ which can then deploy to ios, android, or webos [23:45] creationix: but I prefer non-static languages [23:46] a_suenami has joined the channel [23:46] jn: is there a way to have a shared instance of a logger that i dont need to pass around everywhere? for example require('mylogger').sharedInstance [23:46] creationix: jn that's one way [23:46] creationix: jn: or put it in the top level closure [23:46] creationix: if it's just within a single file [23:47] mvrilo has joined the channel [23:47] jn: i want to do it across multiple files [23:47] creationix: jn, then putting it on the module instance works [23:47] creationix: or pass it in explicitily to each module if you plan on having more than one globally [23:48] jn: ok, nice. i'll have a go at it [23:48] jn: thanks man [23:48] AvianFlu: jn: you can also check out winston [23:49] AvianFlu: http://github.com/indexzero/winston [23:49] jn: AvianFlu: that's the logger i'm using :) [23:49] jn: didn't realize it had a shared instance [23:50] AvianFlu: you'd still have to share it or make it a process global or something [23:50] AvianFlu: or tack it onto your prototype [23:51] AvianFlu: I was suggesting it cause it's easy to work with [23:51] AvianFlu: how "shared" are you going for [23:51] AvianFlu: is your app all one process? [23:51] markwubben has joined the channel [23:55] jn: yeah, or at least until socket.io supports multiple [23:55] jn: process global sounds interesting [23:55] jn: how do you do that? [23:55] tiagobutzke has joined the channel [23:55] AvianFlu: you just have to scope it correctly, is the basic answer [23:56] AvianFlu: there's also a `global` object [23:57] AvianFlu: but if you've got an object prototype being used throughout, you could just MyObj.prototype.winston = new winston or whatever [23:57] AvianFlu: i.e. just put it somewhere you can always see it, and it will work out for you