[00:00] nuck: Yay, just checked that my confirmation codes expire properly [00:01] dmkbot1: joyent/node: 03isaacs: node -v in bash PROMPT_COMMAND causes assertion error - https://github.com/joyent/node/issues/1720 [00:01] dmkbot1: joyent/node: 03ry: SSL hanging due undrained error queue? - https://github.com/joyent/node/issues/1719 [00:02] [[zz]] has joined the channel [00:03] robhawkes has joined the channel [00:05] codely has joined the channel [00:06] codely: how can i use assert to test if a value is defined? [00:06] dmkbot1: joyent/node: 03isaacs: node -v in bash PROMPT_COMMAND causes assertion error - https://github.com/joyent/node/issues/1720 [00:06] dmkbot1: joyent/node: 03isaacs: node -v in bash PROMPT_COMMAND causes assertion error - https://github.com/joyent/node/issues/1720 [00:06] Vertice has joined the channel [00:08] Vertice: http://radar.oreilly.com/2011/09/global-adaptation-index-open-data-speed.html [00:08] replore has joined the channel [00:08] replore_ has joined the channel [00:08] codely: anyone? like assert.defined doesn't work ... [00:10] socketio\test\63 has joined the channel [00:11] dmkbot1: joyent/node: 03isaacs: node -v in bash PROMPT_COMMAND causes assertion error - https://github.com/joyent/node/issues/1720 [00:12] devongovett has joined the channel [00:16] dmkbot1: joyent/node: 03kingkaeru: net_uv.js throws assertion error - https://github.com/joyent/node/issues/1697 [00:17] davidbanham has joined the channel [00:19] torsd has joined the channel [00:21] manual_ has joined the channel [00:21] manual_: hi [00:23] neoesque has joined the channel [00:24] manual_: i'm writing a node.js library [00:24] bnoordhuis: manual_: welcome to the club! [00:24] manual_: it's gonna the best thing since fried chicken! [00:24] ryanrolds has joined the channel [00:24] manual_: dnssec in node.js! [00:26] necrodearia has joined the channel [00:26] vaheh has joined the channel [00:27] manual_: a dns library, the best the world has ever seen! [00:27] mosen: are you making a resolution to make it the best? [00:27] damjan: sliced fried chicken?? :) [00:29] manual_: no buffers will be sliced! buffer, offset, length triples will be passed around for ultimate efficiency! [00:30] codely: with basic assert, how can i check if something is defined? I tried the strict but it passes ... [00:30] mosen: with ansi colors? [00:30] codely: i.e., assert(notStrictEqual(myUndefinedVar, "undefined"); passes .... [00:32] CIA-54: node: 03Ryan Dahl 07v0.4 * r771ba34 10/ (4 files in 3 dirs): Bump version to v0.4.12 - http://git.io/OCp5nw [00:32] CIA-54: node: 03Ryan Dahl 07v0.4 * rcfe0f42 10/ src/node_version.h : Now working on v0.4.13 - http://git.io/i8RPAg [00:33] metellus has joined the channel [00:34] zmbmartin: I am working with an existing mysql database. How can I tell how they encrypted the passwords so I decrypt them properly to setup a login? [00:35] mosen: codely, i think undefined doesnt need to be quoted, otherwise you compare to the string "undefined" [00:35] joshkehn has joined the channel [00:35] joshkehn has left the channel [00:36] tmzt: zmbmartin: you don't decrypt them [00:36] tmzt: you encrypt the input password to match [00:36] tmzt: it's called hasing [00:36] tmzt: hashing [00:36] codely: ahh ok cool [00:37] eliziario has joined the channel [00:38] z6Dabrata has joined the channel [00:39] dominictarr has joined the channel [00:41] Frippe has joined the channel [00:42] dominictarr: hey, does anyone know if there is a way to tell if something is coming into stdin before you open it? [00:42] zmbmartin: tmzt: sorry that is what I meant. How do I know what hash to use? [00:42] dominictarr: or after? other than a time out? [00:43] tmzt: zmbmartin: look at the length, it's standard it's probably the standard length [00:43] tmzt: then try a few known passwords [00:43] tmzt: also look for salts or fake salts (prefixes, etc.) [00:47] Lukeas has joined the channel [00:48] thepatr1ck has joined the channel [00:49] CIA-54: node: 03Ryan Dahl 07v0.4 * rb31d5ac 10/ Makefile : Update website address in Makefile - http://git.io/6YK3Fg [00:51] dmkbot1: joyent/node: 03davglass: HTTP parser fails if server returns no headers - https://github.com/joyent/node/issues/1711 [00:51] skm has joined the channel [00:54] devaholic has joined the channel [00:54] pizthewiz has joined the channel [00:58] crescendo|laptop has joined the channel [00:58] crescendo|laptop has joined the channel [00:59] zemanel has joined the channel [00:59] rchavik has joined the channel [00:59] rchavik has joined the channel [00:59] gxdssoft has joined the channel [01:04] wolftankk has joined the channel [01:04] felixge has joined the channel [01:05] nuck: I'm trying to create an async way of error-handling for my express app, so I can just call res.error(err) and it'll handle the error-sending [01:06] nuck: And I want it to outsource error handling to express's error handler, but I dunno how I'd call on that [01:06] gxdssoft_ has joined the channel [01:06] devongovett has joined the channel [01:07] godsflaw has joined the channel [01:09] Murvin: how to properly read a gzipped file and output to the http response? [01:09] k1ttty has joined the channel [01:10] devaholic: you mean like... serving a static file? [01:10] devaholic: nuck: i think it just works [01:10] devaholic: Nuck: got the express docs open? [01:11] nuck: Nah [01:11] nuck: I see, app.error is gone [01:11] godsflaw: okay, before I dig in the code, I wanted to ask here to see if someone knows the answer. [01:11] theCole has joined the channel [01:11] chrislorenz has joined the channel [01:11] devaholic: next your error [01:12] godsflaw: on the socket.connect call, if the hostname resolves to a CNAME with multiple results, will it cycle through those results on other calls to that function, or does it cache one address. [01:12] devaholic: app.error(function(err, req, res, next){ [01:12] nuck: Thinking of the best way to handle errors [01:12] devaholic: and throw that in [01:12] godsflaw: I am using a connection pool, and I need to know if I have to test all servers, or if I can use one hostname [01:12] nuck: devaholic: it's app.use with a 4-arg thing [01:12] nuck: But that doesn't work in async [01:12] devaholic: what [01:12] nuck: devaholic: It won't catch async errors [01:12] nuck: Plain and simple [01:13] devaholic: express errorHandler =/= app.error [01:13] nuck: All it does is try catch [01:13] godsflaw: ACTION starts reading the code, say his name to bring him back to this window. [01:13] devaholic: as far as i know [01:13] nuck: devaholic: No, app.error doesn't exist, see https://github.com/visionmedia/express/issues/733 [01:13] nuck: He removed it [01:13] devaholic: ..im using it [01:13] nuck: devaholic: Well it's gonna break [01:13] devaholic: lame [01:14] nuck: So you should switch to app.use with 4-arg function :P [01:14] nuck: devaholic: It'll act the same on app.use [01:14] MatthewS has joined the channel [01:14] fabianhjr has joined the channel [01:14] nuck: Anyways, I'm trying to figure out a way to hook onto the error chain without throw... [01:14] nuck: ACTION goes back to grepping the codebase [01:15] devaholic: okay [01:15] devdazed: ryah: where are the changes for v0.4.12 located [01:15] devdazed: ? [01:15] monokrome: China! [01:15] devdazed: change log rather, not changes [01:15] devaholic: google group [01:16] devaholic: nuck: what do you want to do where if (err) isnt the answer? [01:16] nuck: devaholic: It *is* the answer [01:16] nuck: But I can't throw [01:17] devaholic: why are you throwing [01:17] nuck: I want to be able to asynchronously call on the error handler middleware system in Express [01:18] devaholic: okay [01:18] devaholic: so next() [01:18] nuck: I might just hafta wait until tj gets on, and ask him :/ [01:18] nuck: devaholic: huh? [01:18] JaKWaC has joined the channel [01:19] nuck: devaholic: I think you don't understand what I'm doing. I want to call on the errorHandler functionality (see http://expressjs.com/guide.html#error-handling ) in Express, but do so through async channels [01:19] nuck: So I'm building a utility that should do this for me [01:19] devaholic: instead of throw new Error('herp') do next(new Error('derp'))? [01:20] nuck: And provide something like res.sendError() [01:20] nuck: devaholic: Where the fuck is next() coming from? [01:20] nuck: This is in a route [01:20] devaholic: maybe i dont understand... i just dont see why next'ing your error isnt going to work [01:20] nuck: devaholic: Because /there is no next/ [01:21] nuck: This is in a route [01:21] nuck: Not a middleware [01:21] jacobolus has joined the channel [01:21] devaholic: thats why you have an additional app.use after app.router [01:21] devaholic: it will catch all of them [01:21] nuck: devaholic: No, it won't [01:21] nuck: It doesn't catch async errors [01:22] ryah: devdazed: https://github.com/joyent/node/blob/b31d5ac639a60139a31f0fc8124210c3a7a677ab/ChangeLog [01:22] JakeyChan has joined the channel [01:22] devdazed: thanks [01:22] devaholic: if you next the error, i dont see why it wouldnt [01:22] nuck: if I throw in a route directly, it'll catch it and send it through the error system [01:22] nuck: If I throw in a callback, it won't [01:22] devaholic: next it, dont throw.. [01:22] nuck: devaholic: Because, for the 15th time, /there is no next/ [01:22] enhydra has joined the channel [01:22] nuck: *this is a route* [01:22] devaholic: then it isnt async is it? [01:22] nuck: NOT a middleware [01:23] devaholic: there is always a next in your routes [01:23] nuck: devaholic: Last I checked there wasn't [01:23] devaholic: well.. there is [01:23] devaholic: just put function(req, res, next){ [01:23] c4milo1 has joined the channel [01:23] devaholic: instead of just req, res [01:23] nod_ has joined the channel [01:23] devaholic: and next your error instead of throwing [01:24] devaholic: i bet it works [01:24] devaholic: and if not.. i dont wanna argue anymore :P [01:24] nuck: devaholic: Why is this not explained in the error handling section? >:C [01:24] devaholic: (but it will) [01:24] pct has joined the channel [01:29] joshkehn has joined the channel [01:30] torsd has joined the channel [01:31] cjheath has joined the channel [01:33] fabianhjr has left the channel [01:35] abraxas has joined the channel [01:36] ts310 has joined the channel [01:36] H4ns` has joined the channel [01:37] deadman87 has joined the channel [01:40] Lukeas has joined the channel [01:41] aoberoi has joined the channel [01:41] godsflaw: the answer to my question earlier sums up to: each call to Socket.connect(), where the hostname maps to multiple addresses, will randomly choose a CNAME on each call. [01:42] godsflaw: exactly what I wanted it to do [01:42] godsflaw: :) [01:42] ditesh|cassini has joined the channel [01:42] ts310 has left the channel [01:43] godsflaw: the long answer is that this is because the net code just uses the DNS package's lookup routine to resolve an address, which returns the first result (running this in a little test shows that it will return a different result each call because of how DNS presents multiple addresses). [01:43] godsflaw: peace [01:43] godsflaw has left the channel [01:44] skiz has joined the channel [01:45] towski has joined the channel [01:45] cronopio has joined the channel [01:46] joshkehn has joined the channel [01:46] joshkehn has left the channel [01:46] dmkbot1: joyent/node: 03davglass: HTTP parser fails if server returns no headers - https://github.com/joyent/node/issues/1711 [01:47] skm has joined the channel [01:48] perezd has joined the channel [01:50] tshpaper has joined the channel [01:52] davidban_ has joined the channel [01:55] minerale: anyone know of a impressive node.js demo site I can show to my boss? Hummingbird does not seem to be running and I don't want him to sit through the cinco de node.js [01:55] AvianFlu: minerale, what kind of impressive do you want? [01:56] minerale: avianflu: while I can give him benchmarks, I think seeing hummingbird refresh at 20 fps had a big wow factor on me [01:57] AvianFlu: minerale, browserling.com has a node backend I believe [01:57] AvianFlu: that site is pretty cool [01:57] balaa has joined the channel [01:57] AvianFlu: big companies are using it though [01:57] AvianFlu: linkedin did their mobile backend in node [01:57] tbranyen: github uses node [01:57] tbranyen: walmart uses node [01:58] AvianFlu: yammer uses it, I hear amazon and facebook use it internally [01:58] balaa has left the channel [01:58] pquerna: rackspace uses it for... 'stuff' [01:58] AvianFlu: and 'you should listen to pquerna' [01:58] AvianFlu: but those don't help your boss lol [01:58] kurtzhong has joined the channel [01:58] AvianFlu: I mean, the rackspace part does [02:01] vipaca has joined the channel [02:01] vipaca has joined the channel [02:01] TonyTheGeek_ has joined the channel [02:02] arg0s has joined the channel [02:02] willwhite has joined the channel [02:05] TonyTheGeek_: Anyone here have experience with the drupal nodejs intergration module? [02:05] d_low_ has joined the channel [02:06] monokrome: What does that do?! [02:07] MrNko has joined the channel [02:07] hornairs has joined the channel [02:08] JumpMast3r has joined the channel [02:09] TonyTheGeek_: Offer realtime messaging with jgrowl plus a bunch of hooks to intergrate in to custom modules [02:09] davidbanham has joined the channel [02:10] a_suenami has joined the channel [02:12] JakeyChan has joined the channel [02:14] JaKWaC has joined the channel [02:16] brianseeders has joined the channel [02:17] socketio\test\03 has joined the channel [02:18] dudewheresmycod1 has joined the channel [02:19] dudewheresmycod1: in socket.io is there a way to emit an event to just a select group of connected sockets? [02:19] monokrome: I think that's what the grouping stuff is for [02:20] monokrome: io.of('some_group').on('connection', etc... [02:20] r04r has joined the channel [02:20] r04r has joined the channel [02:21] dudewheresmycod1: gotcha.. you know of a complete socket.io manual that exists anywhere? [02:21] dudewheresmycod1: like the nice one they have for node http://nodejs.org/docs/v0.5.6/api/ [02:22] monokrome: http://socket.io [02:23] monokrome: click "How to use" [02:23] deadman87: dudewheresmycod1, check out the wiki on github [02:23] d0k has joined the channel [02:23] monokrome: deadman87 Is that more verbose than the website? [02:23] dudewheresmycod1: mono: maybe im missing something but i don't see anything on grouping at http://socket.io [02:24] deadman87: its divided into various sections [02:24] balaa has joined the channel [02:24] monokrome: Click "How to Use" [02:24] nerdy_ has joined the channel [02:24] monokrome: It's about 6 sections down. [02:24] deadman87: https://github.com/learnboost/socket.io/wiki [02:25] dudewheresmycod1: mono: "Storing data associated to a client" ? [02:25] dudewheresmycod1: or the namespace one? [02:26] monokrome: "Restricting yourself to a namespace" [02:26] monokrome: Might be able to do it that way… Not really sure. [02:26] dudewheresmycod1: can i create those on the fly tho? [02:26] monokrome: They're just strings [02:26] jacter has joined the channel [02:27] matyr has joined the channel [02:27] dudewheresmycod1: like if i want to make a chat, but only for "group members" of the overall site.. or a private user to user chat [02:27] dudewheresmycod1: i'll play with it.. that's for getting me on the right path [02:28] vidi has joined the channel [02:33] kawaz_home has joined the channel [02:33] scottschecter has joined the channel [02:34] Vennril2 has joined the channel [02:34] luckysmack_ has joined the channel [02:36] gxdssoft has joined the channel [02:39] kenperkins has joined the channel [02:42] ryanfitz has joined the channel [02:43] justinTNT has joined the channel [02:44] dudewheresmycod1: there's no way to simply do something like io.sockets[connection_id].emit({'message': 'hey'}) ? [02:45] hermanjunge has joined the channel [02:47] Vennril has joined the channel [02:47] dudewheresmycod1: does the id stored in socket.id have a use for this purpose? [02:47] jerrysv has joined the channel [02:48] deadman87: you can do: io.sockets.socket([connection_id]).emit() [02:48] deadman87: that is if io = io.listen(...) [02:49] dshaw_ has joined the channel [02:49] dudewheresmycod1: yeah.. i figure i'd have to make sure that socket is still open [02:49] scott_gonzalez has joined the channel [02:49] dudewheresmycod1: probably store everything in it's own array so i can splice ids out upon disconnect [02:51] deadman87: are you trying to create a groupchat? [02:51] dmkbot1: joyent/node: 03ry: SSL hanging due undrained error queue? - https://github.com/joyent/node/issues/1719 [02:52] dudewheresmycod1: group chat / private chat / project based notifications [02:52] dudewheresmycod1: and on day 3 of learning node.js / socket.io [02:53] deadman87: you should probably look into a pub/sub solution [02:53] deadman87: redis does it pretty well on top of node.js [02:53] markwubben has joined the channel [02:53] mjr_: I love me some node + redis. [02:54] deadman87: basically.. you create channels.. each channel is like your "chatroom".. people subscribe to the channels. when anything is published on that channel, it is pushed to all the clients on that channel [02:54] dudewheresmycod1: haha damn.. sounds like more reading :( [02:54] AvianFlu: mjr_++ [02:54] v8bot_: AvianFlu has given a beer to mjr_. mjr_ now has 1 beers. [02:55] mandric has joined the channel [02:55] dudewheresmycod1: http://howtonode.org/redis-pubsub a good place to start? [02:56] dmkbot1: joyent/node: 03ry: SSL hanging due undrained error queue? - https://github.com/joyent/node/issues/1719 [02:58] mjr_: dudewheresmycod1: no, that's a bad place to start [02:58] mjr_: That article should be taken down [02:58] metellus has joined the channel [03:02] kriszyp has joined the channel [03:02] Emmanuel has joined the channel [03:02] everton has joined the channel [03:04] freeformz has joined the channel [03:05] matyr_ has joined the channel [03:06] rfay has joined the channel [03:11] joshkehn has joined the channel [03:11] joshkehn has left the channel [03:11] dmkbot1: joyent/node: 03hildjj: Results of stat() incorrect, don't match statSync - https://github.com/joyent/node/issues/1401 [03:12] jonrohan has joined the channel [03:14] davidban_ has joined the channel [03:14] eliziario has joined the channel [03:15] pct has joined the channel [03:16] dmkbot1: joyent/node: 03ry: SSL hanging due undrained error queue? - https://github.com/joyent/node/issues/1719 [03:16] dmkbot1: joyent/node: 03ry: SSL hanging due undrained error queue? - https://github.com/joyent/node/issues/1719 [03:17] dynacker: anyone looked into http://opalang.org? [03:18] pct has left the channel [03:18] pct has joined the channel [03:19] agnat has joined the channel [03:22] springmeyer has joined the channel [03:23] CoinOpeBoy has joined the channel [03:26] towski has joined the channel [03:26] matyr has joined the channel [03:26] Lukeas has joined the channel [03:29] kurtzhong_ has joined the channel [03:30] tylerflint has joined the channel [03:31] tylerflint: possible to spawn() a process as a different user? [03:32] necrodearia has joined the channel [03:33] jamesd has joined the channel [03:35] dudewheresmycod1 has left the channel [03:39] tylerflint: ha! in case anybody is interested, {uid: "user"} as extra_option [03:39] tylerflint: not bad for a guess :) [03:40] Vennril: nice :) [03:40] matyr_ has joined the channel [03:41] jtsnow has joined the channel [03:45] Drakonite has joined the channel [03:55] stash1 has joined the channel [03:56] jslatts has joined the channel [03:58] CoinOpeBoy has joined the channel [04:02] luke`_ has joined the channel [04:03] smathy has joined the channel [04:05] JSManiacs has joined the channel [04:09] indexzero has joined the channel [04:11] cjm has left the channel [04:12] brianseeders has joined the channel [04:12] nuck: Okay, how do I do error handler pages for Express? [04:13] nuck: Like, how do I do a 404 page? [04:13] nuck: (I'm using custom Error objects and `next()`) [04:14] chrislorenz has joined the channel [04:16] jamesd_ has joined the channel [04:16] mwhooker has joined the channel [04:17] wookiehangover has joined the channel [04:19] bengrue has joined the channel [04:20] eliziari_ has joined the channel [04:20] cjheath has joined the channel [04:20] cjheath has joined the channel [04:21] CoverSlide: nuck: http://expressjs.com/guide.html#error-handling [04:23] felixge has joined the channel [04:23] felixge has joined the channel [04:28] nuck: CoverSlide: Figured out a solution [04:29] nuck: I wish 404 actually called on the Error system [04:29] nuck: Instead of forcing me to make a catchall path [04:29] CoverSlide: there's also the four-arguments middleware thing [04:29] nuck: CoverSlide: Doesn't grab 404 [04:29] nuck: I'm using the 4-arg middleware, since tj removed the server.error in the repo [04:30] nuck: So I assume it'll disappear soon enough [04:30] CoverSlide: Error throwing doesn't necessarily mean 404 [04:30] nuck: CoverSlide: Well, I know, but I want 404 to direct to my error handlers [04:31] nuck: CoverSlide: That example really doesn't make it clear that /404 isn't a "magic path" either [04:31] chrislorenz has joined the channel [04:32] andref__ has joined the channel [04:33] hdon_ has joined the channel [04:33] CoverSlide: 9yeah [04:34] CoverSlide: you could have var e = new Error(messsage);e.type = 'NotFound';next(e) [04:34] CoverSlide: and use the `type` property to determine error type [04:35] nuck: CoverSlide: I copied the code in that example to set up a prototype based on Error [04:35] nuck: And now I've got 404, 400, 500, and 501 [04:36] nuck: And I added this.code to each [04:36] nuck: (with the error codes) [04:38] Lukeas has joined the channel [04:38] nuck: CoverSlide: It's this snippet that makes me feel icky: `app.get('*', function (req, res, next) { next(new error.NotFound); }); [04:38] nuck: And I think it's pretty easy to see why. [04:38] nuck: It's a catchall page [04:39] hermanjunge: say, nobody has made yet a facebook application in nodejs? [04:39] hermanjunge: I can't find anything in google [04:40] hermanjunge: I really don't want to spend the night trying to port a java or ruby library to nodejs :P [04:40] jimt has joined the channel [04:41] tbranyen: hermanjunge: http://i.imgur.com/y72xC.jpg [04:41] hermanjunge: JAJAJAJAJAJJA [04:41] dmkbot1: joyent/node: 03ry: SSL hanging due undrained error queue? - https://github.com/joyent/node/issues/1719 [04:42] hermanjunge: tbranyen++ [04:42] v8bot_: hermanjunge has given a beer to tbranyen. tbranyen now has 1 beers. [04:42] JaKWaC has joined the channel [04:43] SamuraiJack has joined the channel [04:44] boehm has joined the channel [04:44] stonebranch has joined the channel [04:44] CoverSlide: i had to make a game in node using facebook accounts for an interview [04:45] dreamdust: How long did that take? [04:45] hermanjunge: good question [04:46] hermanjunge: I have some sort of code writter. Needs to be re-factorized. took me 6 hours of work :P [04:46] boltR has joined the channel [04:48] CoverSlide: took me 4 hours to get the login stuff, which included creating 2 facebook accounts and reading the api docs, since I had done neither before [04:48] kurtzhong has joined the channel [04:48] CoverSlide: i got the rest done in an additional 5 hours, had to email the result to them that night. didn't get the job in the end though [04:49] hermanjunge: Funny thing is that, I've just finally figured out all the logic. Then I say to myself : let's see how they do it in Java"... [04:49] stash1 has joined the channel [04:49] hermanjunge: I guy figured out the whole thing and explained it clear: http://www.richardnichols.net/2010/06/implementing-facebook-oauth-2-0-authentication-in-java/ [04:49] hermanjunge: mental note: Read how they do things in other languages [04:50] hermanjunge: CoverSlide sorry about that [04:50] hermanjunge: all that work for nothing :P [04:50] CoverSlide: facebook api docs mostly assume php [04:50] CoverSlide: yeah i know [04:50] hermanjunge: yes [04:50] hermanjunge: heroku did the stuff in ruby [04:51] igl1 has joined the channel [04:51] hermanjunge: In this line of work one has to be a poligloth [04:51] CoverSlide: plus i wasted the previous weekend trying to build a `portfolio` of sorts for them [04:51] hermanjunge: what kind of portfolio [04:51] hermanjunge: ? [04:51] hermanjunge: one for yurself, because they needed to see one? [04:51] hermanjunge: or code for a portfolio for them? [04:51] CoverSlide: for myself [04:52] erasrhead has joined the channel [04:53] hermanjunge: :P [04:54] DennisRasmussen has joined the channel [04:58] neilk_ has joined the channel [04:58] cjheath has joined the channel [04:59] ceej has joined the channel [04:59] davidbanham has joined the channel [04:59] Tobbe_ has joined the channel [05:02] rurufufuss has joined the channel [05:03] euforic has joined the channel [05:05] mike5w3c has joined the channel [05:08] CoverSlide: Raspberry! There's only one man who would dare give me the raspberry: L_star! [05:08] markdaws has joined the channel [05:10] davidban_ has joined the channel [05:10] dudewheresmycod1 has joined the channel [05:12] jslatts has joined the channel [05:13] dynacker has joined the channel [05:14] kertz has joined the channel [05:17] ryanj has joined the channel [05:19] cjheath has joined the channel [05:22] Spion_ has joined the channel [05:23] devdazed has joined the channel [05:23] devdazed has left the channel [05:24] mikeycgto has joined the channel [05:26] sivy has joined the channel [05:26] fangel has joined the channel [05:27] criswell has joined the channel [05:28] superjudge has joined the channel [05:29] jonrohan has joined the channel [05:29] luckysmack__ has joined the channel [05:30] mikl has joined the channel [05:31] azeroth__ has joined the channel [05:31] luckysmack__: has anyone used the calipso framework/cms? was wondering what others thought about it. [05:32] boehm has joined the channel [05:34] eliziario has joined the channel [05:34] descipher_ has joined the channel [05:36] thalll has joined the channel [05:38] dgathright has joined the channel [05:39] dudewheresmycod1 has left the channel [05:42] brianc has joined the channel [05:46] dgathright has joined the channel [05:47] nuck has joined the channel [05:48] dgathright has joined the channel [05:48] jakehow has joined the channel [05:48] hdon- has joined the channel [05:49] dgathright has joined the channel [05:51] isaacs has joined the channel [05:52] jacobolus has joined the channel [05:52] simenbrekken has joined the channel [05:53] nilcolor has joined the channel [05:54] cliffano has joined the channel [05:55] shanebo has joined the channel [05:56] trevorgreen has joined the channel [05:56] meso has joined the channel [05:57] freeformz has joined the channel [05:58] mil_ has joined the channel [05:58] mil_: hello [05:58] sivy has joined the channel [05:58] mil_: anybody? [05:58] trevorgreen: yes. [05:59] sebastianedwards has joined the channel [05:59] mil_: i have what should be a simple problem [05:59] mil_: Schema.pre('save', function (next) { function () { // set "this.key" variable } }) [05:59] mil_: how would i set the variable? [06:00] CoverSlide: !closures [06:00] CoverSlide: oh, wrong channel [06:00] trevorgreen: hah. [06:00] mil_: haha [06:00] trevorgreen: mil_ I don't know.. [06:00] trevorgreen: what are you trying to set. [06:01] trevorgreen: this.key? [06:01] trevorgreen: this.key = next? [06:01] Aphelion has joined the channel [06:01] mil_: the "this" has been taken by the other function [06:01] trevorgreen: so you are passing next in and then running another function. [06:02] mil_: Its for mongoose. "this" for the Schema is the database collection and i need to change the value [06:02] trevorgreen: So you have a scope problem. [06:02] mil_: and i have a function inside it that replaces "this" [06:02] mil_: yes [06:02] mil_: scope problem [06:03] trevorgreen: Can you pass in a reference? [06:03] trevorgreen: function(next, this) [06:03] caffine has joined the channel [06:03] cjheath has joined the channel [06:04] mil_: no, because it is actually Schema.pre('save', function (next) { APLUGINFUNCTION(CALLBACK() {}) [06:04] trevorgreen: and it doesn't pass anything to that internal function. [06:04] trevorgreen: humm.. [06:05] mil_: would var t = this; on the outside work? [06:06] trevorgreen: Don't know, but you have sent me a reading. need to refresh my understanding of the scope. [06:06] CoverSlide: mil_: yes [06:07] CoverSlide: var self = this; is something you see a lot of [06:07] CoverSlide: or you can add a `.bind(this)` to the function expression you want to call [06:07] CoverSlide: but afaik that's a bit slower [06:07] mil_: and when i modify it it will modify the "this" variable? because i remember trying this before and for some reason running into difficulty [06:08] trevorgreen: Coverslide, so you can set that global to this in and then just use it in the callback and it will find this. [06:08] trevorgreen: That sounds right. [06:09] mil_: to modify it to though? [06:09] trevorgreen: http://stackoverflow.com/questions/3852239/storing-a-mongoose-node-js-orm-query-result [06:09] CoverSlide: function(next){var self = this; asyncFunction(function callback(){/* self will refer to the `this` of the calling function */})} [06:10] trevorgreen: That is how they show accessing an external var there. [06:10] CoverSlide: ^ that should work [06:10] CoverSlide: and modifying it will modify the `this` in the top scope. asynchronously of course [06:10] mil_: !ok, thanks [06:12] robotmay has joined the channel [06:13] tim_smart has joined the channel [06:14] matixbg has joined the channel [06:14] monokrome has joined the channel [06:15] romanb has joined the channel [06:16] Gregor has joined the channel [06:17] dgathright has joined the channel [06:18] devdazed has joined the channel [06:19] DrMcKay has joined the channel [06:19] nuck has joined the channel [06:19] crescendo|laptop: Is there a bona fide example of using oauth2 with express? most oauth libraries appear to be oauth1. [06:20] Xano has joined the channel [06:21] jakehow has joined the channel [06:22] luckysmack__: anyone use calipso? any opinions on it? [06:25] mraleph has joined the channel [06:25] skratool has joined the channel [06:28] garrensmith has joined the channel [06:28] boltR has joined the channel [06:29] jonrohan has joined the channel [06:33] Peniar has joined the channel [06:33] tonymilne has joined the channel [06:34] tonymilne: Yo peeps, has anyone ever stored a dob in MongoDB and calculated age (bonus points for using Mongoose too)? [06:34] tonymilne: (I know this isn't #mongodb or #mongoose … but I ask in there and get crickets!) [06:35] tmzt: unix dates :) [06:35] tmzt: or js, millis [06:35] cjheath has joined the channel [06:35] CoverSlide: problem is if you want accuracy, you gotta factor in leap years too [06:35] tonymilne: Yeah, i get all that -- so, my problem is… it seemed slower to tight loop over all my users on the server side, so i wanted to move that into mongodb. [06:35] tonymilne: (i am actually factoring leap years already, thx) [06:36] tonymilne: But, then i wasn't sure if doing such in a $where condition meant i had to not write to the collection at the same time. [06:36] dmkbot1: joyent/node: 03plexel: https requestCert unusable with Firefox and Chrome - https://github.com/joyent/node/issues/1516 [06:37] Aiden has joined the channel [06:37] tonymilne: so, alternatively would people frown if i considered storing age statically (just years … and even as a year range, e.g. '20-25') and update it periodically in batch? [06:38] CoverSlide: you can if you want [06:38] CoverSlide: i think storing dob would be the correct way to go though [06:38] CoverSlide: just imp [06:38] CoverSlide: *imo [06:38] tonymilne: same. :S [06:38] tonymilne: erghh [06:39] gerard0 has joined the channel [06:40] `3rdEden has joined the channel [06:40] mikl has joined the channel [06:42] den512 has joined the channel [06:42] avih has joined the channel [06:46] cronopio has joined the channel [06:48] aabt has joined the channel [06:48] dudewheresmycod1 has joined the channel [06:49] dudewheresmycod1: why can't i send an object with publish in redis? [06:49] dudewheresmycod1: rclient.publish(tochannel, {from:data.session,msg:data.msg}); [06:49] Emmanuel_ has joined the channel [06:50] groom has joined the channel [06:51] NetRoY has joined the channel [06:51] gregpascale has joined the channel [06:51] ivanfi has joined the channel [06:56] nuck has joined the channel [06:56] simenbrekken has joined the channel [06:56] marlun has joined the channel [06:56] marlun has joined the channel [06:57] dudewheresmycod1 has left the channel [06:58] temp02 has joined the channel [07:00] ttpva has joined the channel [07:01] dmkbot1: joyent/node: 03plexel: https requestCert unusable with Firefox and Chrome - https://github.com/joyent/node/issues/1516 [07:01] mike5w3c_ has joined the channel [07:02] stalled has joined the channel [07:02] fangel has joined the channel [07:03] temp01 has joined the channel [07:04] mykul|Home has joined the channel [07:06] cjheath has joined the channel [07:07] djcoin has joined the channel [07:08] wbednarski has joined the channel [07:09] stonebranch has joined the channel [07:09] emattias has joined the channel [07:11] topaxi has joined the channel [07:12] meandi has joined the channel [07:13] serkan has joined the channel [07:15] cjheath has joined the channel [07:18] raphdg has joined the channel [07:21] mwhooker has joined the channel [07:23] felixhummel has joined the channel [07:24] aabt has joined the channel [07:24] mraleph has joined the channel [07:25] kraft has joined the channel [07:27] freeformz has joined the channel [07:28] nforgerit has joined the channel [07:28] socialhack has joined the channel [07:28] robi42 has joined the channel [07:29] romanb has joined the channel [07:31] Lemon|mbp has joined the channel [07:31] dmkbot1: joyent/node: 03jampy: "Exec format error" when cross-compiling for ARM (workaround provided) - https://github.com/joyent/node/issues/1541 [07:32] FireFly|n900 has joined the channel [07:34] cjm has joined the channel [07:35] matyr has joined the channel [07:35] amerine has joined the channel [07:36] mpavel has joined the channel [07:38] cjm has left the channel [07:38] index0h has joined the channel [07:38] Lemon|mbp has joined the channel [07:40] socialhack_ has joined the channel [07:41] Lemon|mbp has joined the channel [07:41] index0h has left the channel [07:41] dmkbot1: joyent/node: 03jampy: "Exec format error" when cross-compiling for ARM (workaround provided) - https://github.com/joyent/node/issues/1541 [07:41] _JSilva has joined the channel [07:42] uchuff has joined the channel [07:42] tylerstalder has joined the channel [07:44] dominictarr has joined the channel [07:45] rurufufuss: ahem, what's a recommended text editor for node.js available on linux? [07:45] TomY has joined the channel [07:46] dmkbot1: joyent/node: 03seebees: Tests for Sockets - https://github.com/joyent/node/issues/1699 [07:46] pietern has joined the channel [07:46] Druid has joined the channel [07:47] TheCode has joined the channel [07:47] shipit has joined the channel [07:47] devongovett has joined the channel [07:47] TheCode: Any idea what mode means in fs.mkdir(path, mode, [callback]) ? [07:49] Frippe has joined the channel [07:49] cjheath has joined the channel [07:49] crescendo|laptop: Is there a bona fide example of using oauth2 with express? most oauth libraries appear to be oauth1. [07:49] nyrb has joined the channel [07:50] _JSilva has joined the channel [07:50] bergelmir has joined the channel [07:50] shipit_ has joined the channel [07:50] bergelmir has joined the channel [07:50] jbpros has joined the channel [07:53] piscisaureus has joined the channel [07:53] adambeynon has joined the channel [07:53] avih_ has joined the channel [07:54] romanb has joined the channel [07:57] sirdancealot has joined the channel [07:57] cosmincx has joined the channel [08:02] caffine: TheCode: man mkdir probably has what you're trying to find: "set file mode (as in chmod), not a=rwx - umask" [08:03] briandh has joined the channel [08:04] Karmalicious has joined the channel [08:04] nyholt has joined the channel [08:05] bzinger has joined the channel [08:06] klokie has joined the channel [08:06] Phunky has joined the channel [08:09] CStumph_ has joined the channel [08:15] ph^ has joined the channel [08:15] klokie has joined the channel [08:16] hdon- has joined the channel [08:17] hermanjunge has joined the channel [08:20] socialhack has joined the channel [08:20] luke` has joined the channel [08:21] vguerra has joined the channel [08:21] springmeyer has joined the channel [08:22] Twelve-60 has joined the channel [08:23] sfoster has joined the channel [08:24] jetienne has joined the channel [08:24] matyr_ has joined the channel [08:25] cjheath has joined the channel [08:25] matyr_ has joined the channel [08:28] bergie has joined the channel [08:31] kulor-uk has joined the channel [08:31] IRONkyle has joined the channel [08:31] chia has joined the channel [08:33] navaru has joined the channel [08:33] mraleph has joined the channel [08:33] navaru has left the channel [08:33] johnhamelink has joined the channel [08:33] aron_ has joined the channel [08:34] mikl has joined the channel [08:37] vpereira has joined the channel [08:37] aaronmcadam has joined the channel [08:38] freeformz has joined the channel [08:40] Aiden has joined the channel [08:40] __doc__ has joined the channel [08:41] Nss has joined the channel [08:41] wilken has joined the channel [08:43] mpavel has left the channel [08:45] navaru has joined the channel [08:45] navaru has left the channel [08:47] aron_ has joined the channel [08:50] Industrial: What happens with Mongoose if you feed a model instance initializer data with keys that are not in the schema? [08:52] avih has joined the channel [08:54] avih has joined the channel [08:54] rendar has joined the channel [08:55] jarek_ has joined the channel [08:57] Benn has joined the channel [09:11] _JSilva has joined the channel [09:14] avih has joined the channel [09:15] [[zz]] has joined the channel [09:16] dmkbot1: joyent/libuv: 03erickt: Fix a couple warnings, added some asserts, and compiling with gcc-4.5 and mingw-w64 - https://github.com/joyent/libuv/issues/186 [09:17] bzinger has joined the channel [09:21] stonebranch has joined the channel [09:23] irahgel has joined the channel [09:24] stagas has joined the channel [09:25] eldios has joined the channel [09:25] zomgbie has joined the channel [09:30] eliziario has joined the channel [09:34] deadman87 has joined the channel [09:35] blup has joined the channel [09:38] matyr has joined the channel [09:41] adrianmg has joined the channel [09:45] jarek_ has joined the channel [09:46] dmkbot1: joyent/node: 03jbergstroem: running test GH-814 sometimes leaves trailing processes - https://github.com/joyent/node/issues/914 [09:48] jomoho has joined the channel [09:49] avih has joined the channel [09:50] avih has joined the channel [09:51] piscisaureus_ has joined the channel [09:52] piscisaureus_ has joined the channel [09:52] adam_ has joined the channel [09:53] kfullert has joined the channel [09:53] skm has joined the channel [09:55] JakeyChan: hi ? [09:57] JakeyChan: how to get the params in the ?=name=value with express request object ? [09:57] quijote has joined the channel [10:01] N0va` has joined the channel [10:02] kfullert: something it's getting used to the node-way ... but using the redis module I want to build an array up using a forEach on a set, then process the array when all the members have been processed, but it runs the array processing code before the array is built (due to non-blocking I think) so just wondered how this was best handled? [10:04] Glenjamin: kfullert: i'd recommend https://github.com/caolan/async#forEach [10:05] kfullert: Glenjamin: thanks, will check that out [10:07] avih has joined the channel [10:08] matyr_ has joined the channel [10:08] necrodearia has joined the channel [10:16] socialhack has joined the channel [10:18] Nathan_ has joined the channel [10:18] anoop has joined the channel [10:19] anoop: anybody using cloud9 tell me how to use it for Node.js debugging. [10:19] anoop: I am running Cloud9 locally [10:20] kfullert has left the channel [10:20] avih has joined the channel [10:22] qwe has joined the channel [10:25] fermion has joined the channel [10:26] Epeli has joined the channel [10:27] Belaf has joined the channel [10:27] febits has joined the channel [10:28] liar has joined the channel [10:29] fermion has joined the channel [10:29] jelveh has joined the channel [10:30] adambeynon has joined the channel [10:33] CarterL has joined the channel [10:37] kulor-uk has joined the channel [10:39] aaronmcadam has joined the channel [10:40] kulor-uk has joined the channel [10:41] briandh has joined the channel [10:43] socialhack has joined the channel [10:44] fly-away has joined the channel [10:44] jarek_ has joined the channel [10:45] robi42 has joined the channel [10:46] KingJamool has joined the channel [10:48] MrTopf has joined the channel [10:50] topaxi has joined the channel [10:50] Tobbe__ has joined the channel [10:51] errordeveloper has joined the channel [10:52] skm has joined the channel [10:52] pfried has joined the channel [10:55] jarek_ has joined the channel [10:56] sirdancealot has joined the channel [10:56] matixbg has left the channel [10:56] jarek has joined the channel [10:56] jarek has joined the channel [10:57] mikl has joined the channel [11:00] avih has joined the channel [11:00] topaxi has joined the channel [11:02] pfried: http://warsitters.dnsalias.org/ i love it, node rocks [11:02] kurtzhong_ has joined the channel [11:02] tomb has joined the channel [11:02] Cromulent has joined the channel [11:06] n2n3 has joined the channel [11:10] JakeyChan has joined the channel [11:11] dmkbot1: joyent/libuv: 03erickt: Fix a couple warnings, added some asserts, and compiling with gcc-4.5 and mingw-w64 - https://github.com/joyent/libuv/issues/186 [11:12] JakeyChan has left the channel [11:14] matyr has joined the channel [11:15] davidcoallier has joined the channel [11:16] davidcoallier has joined the channel [11:18] caaakeeey has joined the channel [11:18] Industrial: pfried: :p [11:18] pfried: :-) [11:18] pfried: my sweet space invaders [11:22] topaxi has joined the channel [11:22] ivanfi has joined the channel [11:23] pickels has joined the channel [11:25] matyr_ has joined the channel [11:26] crescendo|laptop has joined the channel [11:26] crescendo|laptop has joined the channel [11:26] robi42 has joined the channel [11:26] skm has joined the channel [11:28] bicranial has joined the channel [11:29] mikl has joined the channel [11:31] Industrial: SubStack: I could use some help with Seq; https://gist.github.com/c7beadb02bd6e27bfebd; The second pars are not firing. [11:32] Industrial: setting 2 vars then doing 2 more pars feels like I'm doing it wrong anyway [11:32] Industrial: Should I nest a Seq()? [11:32] azeroth__ has left the channel [11:34] mpoz2 has joined the channel [11:35] matyr has joined the channel [11:36] replore_ has joined the channel [11:36] replore has joined the channel [11:36] skm has joined the channel [11:37] scott_gonzalez has joined the channel [11:37] willwhite has joined the channel [11:40] kurtzhong has joined the channel [11:40] markwubben has joined the channel [11:42] _JSilva has joined the channel [11:42] mikl has joined the channel [11:43] cha0s has joined the channel [11:43] cha0s has joined the channel [11:46] skm has joined the channel [11:46] dmkbot1: joyent/node: 03telemachus: Two test failures for v0.4.12 on OSX Lion - https://github.com/joyent/node/issues/1721 [11:46] v8bot_ has joined the channel [11:47] gmonnerat has joined the channel [11:47] nuck: v8: parseInt('1000000000', 36) [11:47] v8bot_: nuck: 101559956668416 [11:47] sirdancealot has joined the channel [11:47] nuck: v8: parseInt('zzzzzzzzzz', 36) [11:48] v8bot_: nuck: 3656158440062975 [11:48] cole_gillespie has joined the channel [11:48] javaanse_jongens has joined the channel [11:49] brianseeders has joined the channel [11:50] stalled has joined the channel [11:51] robi42 has joined the channel [11:53] gmonnerat has left the channel [11:56] ph^_ has joined the channel [11:56] skm has joined the channel [11:56] aron_ has joined the channel [11:58] NetRoY has joined the channel [12:00] kulor-uk has joined the channel [12:00] skm has joined the channel [12:04] bshumate has joined the channel [12:07] jbpros has joined the channel [12:07] azeroth_ has joined the channel [12:11] hernan has joined the channel [12:12] nosteve123 has joined the channel [12:13] schwab has joined the channel [12:15] Orion- has joined the channel [12:19] jbpros has joined the channel [12:19] mike5w3c has joined the channel [12:19] euforic has joined the channel [12:21] jarek_ has joined the channel [12:21] CarterL has joined the channel [12:21] meandi2 has joined the channel [12:21] Guest35572 has joined the channel [12:25] skython has joined the channel [12:25] Esteb has joined the channel [12:28] yept has joined the channel [12:28] erichynds has joined the channel [12:30] jacter has joined the channel [12:31] Industrial: Why is my console.log (#38) not printed https://gist.github.com/f02ca1a03dc962a33868 ? [12:32] nyrb has joined the channel [12:34] normanrichards has joined the channel [12:35] ttpva has joined the channel [12:35] pt_tr has joined the channel [12:36] tomb has joined the channel [12:36] matyr_ has joined the channel [12:38] mehtryx has joined the channel [12:38] mikeycgto has joined the channel [12:39] thinkt4nk has joined the channel [12:39] fumanchu182 has joined the channel [12:39] Industrial: Noone? [12:39] Industrial: SubStack: ? [12:39] matyr has joined the channel [12:41] willwhite has joined the channel [12:42] Cromulent has joined the channel [12:43] MrTopf_ has joined the channel [12:44] keyvan has joined the channel [12:51] dmkbot1: joyent/node: 03BillBarnhill: Fix memory allocation in uv__fs_after - https://github.com/joyent/node/issues/1686 [12:51] sivy has joined the channel [12:52] anveo has joined the channel [12:52] davidwalsh has joined the channel [12:53] cjroebuck has joined the channel [12:53] freeformz has joined the channel [12:54] markwubben has joined the channel [12:54] mendel_ has joined the channel [12:56] ryanfitz has joined the channel [12:57] heavysixer has joined the channel [12:59] robi42 has joined the channel [13:00] rfay has joined the channel [13:04] whitman has joined the channel [13:05] cronopio has joined the channel [13:05] davidsklar has joined the channel [13:05] patrickgamer has joined the channel [13:05] Vertice has joined the channel [13:05] mike5w3c has joined the channel [13:05] patrickgamer has left the channel [13:05] pandeiro has joined the channel [13:06] markwubben has joined the channel [13:08] bergie has joined the channel [13:08] Metal3d has joined the channel [13:09] yept has joined the channel [13:10] FireFly|n900 has joined the channel [13:13] wbednarski has joined the channel [13:13] Glenjamin: Industrial: looks like the seq prior to the console.log never calls this [13:14] deedubs has joined the channel [13:14] Glenjamin: try splitting this into separate methods to improve readability [13:14] Poetro has joined the channel [13:14] Poetro has joined the channel [13:14] Glenjamin: generally, at 5 levels of indent start thinking about a refactor/separate method [13:15] k1ttty has joined the channel [13:15] jetienne has joined the channel [13:15] rurufufuss: is there an easy way for installing all npm packages you have at home, to a deploy site? [13:16] deedubs: rurufufuss: Setup your dependancies in your package.json properly? [13:17] rurufufuss: cheers, I better take a look at what that is then [13:17] deedubs: yeah then you'll be able to run 'npm install' [13:17] slicky: rurufufuss, since some of the modules have to be compiled, you shouldn't just copy the node_modules directory over. Do what deedubs said and use the package.json file :) [13:18] deedubs: rurufufuss: a really simple one looks like this https://gist.github.com/1220708 [13:18] rurufufuss: yeah, I was wondering if there was some way to export the list of installed packages and reinstall it on the deploy site [13:19] rurufufuss: only my 2nd/3rd attentive day on node.js [13:20] hernan: rurufufuss: the good thing about using package.json is that most deployment platforms understand it. dotcloud, nodester, heroku, they all can read it and install the dependencies for you. [13:20] hernan: rurufufuss: it also keep you repo clean and any dev can git clone and run npm install on the root of your project and be ready to go. [13:20] jacobolus has joined the channel [13:21] adambeynon has joined the channel [13:21] dscape has joined the channel [13:22] tbranyen: package.jsowns [13:22] sorin has joined the channel [13:23] rurufufuss: heh, I like npmjs.org's legalese -> english translation [13:24] xetorthio has joined the channel [13:25] tomtomaso has joined the channel [13:25] jakehow has joined the channel [13:25] CrypticSwarm has joined the channel [13:26] tomtomaso has joined the channel [13:27] Industrial: Glenjamin: its just aggregating some data from the server that I need for this integration test. [13:29] Glenjamin: if its test code it's even more important that its maintainable [13:29] Glenjamin: but yeah, add another .seq(this) into the one before the console.log i reckon [13:29] JasonJS has joined the channel [13:29] Glenjamin: not used seq before though, so might be different syntax [13:29] wenbert has joined the channel [13:30] admc has joined the channel [13:33] nosteve123 has left the channel [13:34] ngl has joined the channel [13:34] esmevane has joined the channel [13:35] thomblake has joined the channel [13:35] thomblake has left the channel [13:37] mehtryx has joined the channel [13:38] sivy has joined the channel [13:39] jslatts has joined the channel [13:40] broofa: Anyone know why I might get "module is not defined" when calling vm.runInNewContext()? Does the context object require a 'module' property? [13:40] aconbere has joined the channel [13:42] DrMcKay has joined the channel [13:43] Aikar: broofa: did you pass it a context to use? if you dont need to pass it anything, just give it {} [13:43] DennisRasmussen has joined the channel [13:43] markwubben has joined the channel [13:44] broofa: Aikar - yeah, I did. actually, looks like it's something specific to the script I'm running. The code is working with other scripts. :P [13:44] Glenjamin: i'd expect the code you're executing is assuming module should be defined [13:44] talltyler has joined the channel [13:44] broofa: Glenjamin - yup. rookie move by me. :) [13:45] ceej has joined the channel [13:45] Industrial: With Underscore.js, I'm doing a _(o).pluck('_id'); which returns [{_id: 123}, ...]. What I really want is [123, ...]. How do I do that? [13:45] wilken has joined the channel [13:46] Industrial: _(o).map(function(x) {return x._id;});, I guess [13:47] rurufufuss: how is the node.js github follower vs rails github follower count doing? [13:48] riven has joined the channel [13:48] riven has joined the channel [13:48] Aikar: rurufufuss: open github.com ? lol [13:48] Glenjamin: irrelevant? [13:48] rurufufuss: there was an actual page that counts the followers of both, and updates in real time [13:49] rurufufuss: it's pretty silly, but amusing nonetheless [13:49] DrMcKay: I wanted to make such a site [13:49] DrMcKay: (if we're talking about RoR vs node.js) [13:49] Aikar: or you could just open https://github.com/popular/watched and see it since the counts arnt changing every second. [13:49] Glenjamin: rails > nodejs for one reason only [13:49] Glenjamin: there's a yaml parser for ruby [13:50] _jhs has joined the channel [13:50] DrMcKay: and there's no such parser for node.js? [13:50] Glenjamin: nope :( [13:50] DrMcKay: lol, parsing yaml seems simple [13:50] Aikar: Glenjamin: https://github.com/visionmedia/js-yaml [13:50] Glenjamin: hrm [13:51] Glenjamin: wonder why i didnt see this before :D [13:51] Aikar: and its by tj [13:51] _jhs has left the channel [13:51] Glenjamin: ah [13:51] luckysmack__ has joined the channel [13:51] luckysmack__ has joined the channel [13:51] Glenjamin: doesn't do inheritance :( [13:51] wbednarski has joined the channel [13:51] Aikar: fork and add it :P [13:51] necrodearia has joined the channel [13:51] Glenjamin: may well have a go [13:51] DrMcKay: !npm search yaml [13:51] jhbot: packages (short format): yamlish, assets-expander, yaml-config, yamlparser, props, libyaml, yaml [13:52] Glenjamin: hrm, i'm sure i looked in march and couldn't see any [13:52] DrMcKay: Glenjamin: check out those ^ [13:52] Glenjamin: hooray for passage of time \o/ [13:52] admc has joined the channel [13:52] jetienne has joined the channel [13:53] ceej has joined the channel [13:53] Aikar: Readme.md was last touched Dec 15th 2010 for 0.1.1 :P [13:53] Aikar: oh, Feb 25, 2010 was .gitmodules [13:53] Aikar: so its 1.6+ years old! [13:53] Glenjamin: its been a while since i looked, perhaps my requirements was "yaml parser with inheritance" [13:53] jetienne has joined the channel [13:54] Glenjamin: is the npmjs source around somewhere [13:55] Glenjamin: it'd be nice to fix the back button on searches [13:55] DrMcKay: Glenjamin: yes, isaacs repos [13:55] Aikar: you mean website source? [13:56] Glenjamin: yup [13:56] dmkbot has joined the channel [13:57] DrMcKay_ has joined the channel [13:58] mrtazz has joined the channel [13:59] dnyy has joined the channel [13:59] niftylettuce has joined the channel [13:59] tomh has joined the channel [13:59] Styles has joined the channel [13:59] beawesomeinstead has joined the channel [14:00] justicefries has joined the channel [14:00] JP has joined the channel [14:00] rurufufuss: what's the recommended/standard module for handling user sessions? [14:01] DrMcKay: rurufufuss: express supports session [14:02] _sri has joined the channel [14:04] rurufufuss: from reading a stackoverflow answer, it seems that express is used by many people [14:04] rurufufuss: by many I mean most [14:05] rurufufuss: is this a good starting point? [14:05] Industrial: DrMcKay: If we're talking NodeJS vs RoR, I got booed away from this channel yesterday by suggesting I want to move rails-type-development and MVC to NodeJS, so I'm looking for an environment / setup. [14:05] kriszyp has joined the channel [14:06] Industrial: DrMcKay: My argument yesterday was that Autoloading of classes is a good DRY thing [14:06] DrMcKay: Industrial: because it shoulnd't be implemented directly in node.js [14:06] Industrial: and that I probably can't have that with NodeJS (yay for keeping require lists everywhere ...) [14:06] DrMcKay: Industrial: (I mean, not in core) [14:06] Industrial: No, it shouldnt. It should be on top of ExpressJS [14:06] Industrial: =) [14:06] metellus has joined the channel [14:06] DrMcKay: Industrial: but such a framework... I would surely check it out [14:07] Industrial: There is http://railwayjs.com/ [14:07] DrMcKay: but MVVM > MVC [14:07] DrMcKay: Industrial: looks nice, I'll check it out :) [14:07] DrMcKay: and maybe use for one project even [14:08] ksheurs has joined the channel [14:09] DrMcKay: I'm not really sure if that's the way [14:09] DrMcKay: but if it can get more rails people move to node.js, then that's great [14:11] NetRoY has joined the channel [14:11] Industrial: Me neither, I'm using my own stuff right now, which certainly isn't 'the way' but lets me play with routes [14:11] Industrial: I dont think defining pre/post functions is a nice thing to do if we already have complete control over routes with next() etc [14:11] Industrial: https://gist.github.com/042e86f0151d19e94009 [14:11] dmkbot: joyent/node: 03hildjj: Results of stat() incorrect, don't match statSync - https://github.com/joyent/node/issues/1401 [14:11] DrMcKay: btw, if anyone here is using nodeunit, start fixing your tests :D [14:11] AndrewX192 has joined the channel [14:11] AndrewX192 has joined the channel [14:12] joshkehn has joined the channel [14:12] DrMcKay: https://github.com/caolan/nodeunit/pull/96 <- relevant [14:12] joshkehn has left the channel [14:12] DrMcKay: Industrial: well... [14:12] Industrial: Allows me to abstract some REST behaviour for my JSON REST server [14:12] Industrial: (some :p) [14:12] mikelittrell has joined the channel [14:13] freeformz has joined the channel [14:14] brianc has joined the channel [14:14] Vennril has joined the channel [14:15] balupton has joined the channel [14:15] thalll has joined the channel [14:15] chalaschek has joined the channel [14:16] stagas has joined the channel [14:19] broofa: How secure is runInNewContext() is? E.g. if we're using that to run user-supplied scripts with context={} what, if any, security concerns are there? [14:19] DrMcKay: broofa: it's not. [14:19] dsirijus has joined the channel [14:20] DrMcKay: broofa: wait, there are 2 issues about that, give me a sec [14:20] jmoyers has joined the channel [14:20] broofa: DrMcKay - thx. is there discussion about this somewhere? I can read up on it. [14:21] DrMcKay: broofa: yes, actually yes [14:21] broofa: I mean, the most obvious use for this is to provide a secure sandbox for running user scripts. If it's not secure for that then ... :P [14:21] kulor-uk has joined the channel [14:22] skm has joined the channel [14:22] DrMcKay: broofa: https://github.com/joyent/node/issues/1469 [14:22] DrMcKay: broofa: do not. [14:22] broofa: DrMcKay cool, thx! [14:22] DrMcKay: broofa: I did in my IRC bot [14:22] kaarlo has joined the channel [14:22] DrMcKay: broofa: it was pretty hard fail [14:23] DrMcKay: broofa: if you have to do it, do it in a chroot/bare v8 process [14:23] eresair has joined the channel [14:23] nibblebot has joined the channel [14:24] jslatts has joined the channel [14:25] mandric has joined the channel [14:25] arnee has joined the channel [14:27] dinarcon has joined the channel [14:27] Industrial: DrMcKay: well? :P [14:27] freeformz has joined the channel [14:27] stash1 has joined the channel [14:29] nibblebo_ has joined the channel [14:30] patrickgamer1 has joined the channel [14:30] DrMcKay: Industrial: I really don't think that that's the way ;) [14:31] DrMcKay: Industrial: but you may be interested in express-mongoose [14:31] vipaca has joined the channel [14:31] vipaca has joined the channel [14:32] sfoster has joined the channel [14:32] FireFly|n900 has joined the channel [14:33] perezd has joined the channel [14:33] Glenjamin: whiles there's people about, anyone fancy weighing in on the API for https://github.com/joyent/node/issues/1692 [14:34] adamfssh has joined the channel [14:34] DrMcKay: Glenjamin: looks easy [14:34] robhawkes has joined the channel [14:34] adamfssh: hi everyone [14:34] DrMcKay: but not really [14:34] patrickgamer1 has left the channel [14:34] DrMcKay: JS needs decorators [14:34] Glenjamin: it is easy, but i need some input on what the API should be [14:35] Belaf has left the channel [14:35] smathy has joined the channel [14:35] DrMcKay: Glenjamin: util.depracate which would wrap a function and print a warning first time it's used? [14:35] DrMcKay: Glenjamin: wait, I'll post in this thread and give some sample code [14:35] adamfssh: does anybody know how to send ENTER into STDIN using "stdin.write(data)"? [14:36] tomtomaso has joined the channel [14:37] Glenjamin: DrMcKay: not function wrapping imo [14:37] Glenjamin: since params can be deprecated [14:37] Glenjamin: or even certain values [14:37] Glenjamin: like "UTF-8" for encoding [14:37] Glenjamin: instead of "utf8" [14:37] DrMcKay: Glenjamin: still makes sense [14:38] DrMcKay: Glenjamin: wrappers can take arguments [14:38] Glenjamin: yeah, but its messier [14:38] Glenjamin: simply calling util.deprecate("message") insead of console.warn("message") is nicer imo [14:39] DrMcKay: Glenjamin: you could deprecate(some_function, { arguments: [ { 0: "UTF-8", message: "DON'T!"} ] }) [14:39] mc_greeny has joined the channel [14:39] DrMcKay: but yeah, it's messy [14:40] jakehow has joined the channel [14:41] arnee has joined the channel [14:42] tjholowaychuk has joined the channel [14:42] tjholowaychuk has joined the channel [14:43] mjr_ has joined the channel [14:43] d_low has joined the channel [14:45] DrMcKay: btw, am I the only one who thinks that backwards compatibility is shit? [14:46] DennisRasmussen has joined the channel [14:46] DrMcKay: I mean, when something breaking happens you should just increase version number and move on, still supporting older version, though [14:46] DrMcKay: Glenjamin: I've grepped node for 'deprecated' and it occurs in C++ only [14:46] dmkbot: joyent/node: 03mikeal: streams2 - https://github.com/joyent/node/issues/1681 [14:46] DrMcKay: and on scons [14:46] jetienne has joined the channel [14:47] DrMcKay: *in [14:47] ivanfi has left the channel [14:47] ceej has joined the channel [14:47] aklt has joined the channel [14:48] Glenjamin: DrMcKay: in general it's worth having it marked deprecated for one minor version [14:48] c4milo has joined the channel [14:48] Glenjamin: so for instance, to remove require.paths in 0.5, it would raise a warning in 0.4.x [14:49] Glenjamin: but the main reason for that issue is that some things are being deprecated and just printing to stderr, which makes them hard to trap and hard to suppress warnings when you know you dont care [14:50] Glenjamin: for instance: https://github.com/joyent/node/blob/master/lib/sys.js [14:50] DrMcKay: ah, a node --no-deprecated which wouldn't output those would be nic [14:50] DrMcKay: *nice [14:50] DrMcKay: and this warning is my fault [14:51] Glenjamin: having warnings is good, having them forcefully print to stderr is bad imo [14:51] baudehlo: agreed [14:51] mc_greeny: in a paper (http://www.usenix.org/event/usenix99/full_papers/banga/banga.pdf) they said that "The select() mechanism works well for small-scale applications, but scales poorly as the number of file descriptors increases. [...] the traditional implementation of select() can be improved, the poor scalability is inherent in the design". [14:51] mc_greeny: how much was it rewriten or modified in libev? [14:52] Glenjamin: doesn't the current node dev version not use libev anyway? [14:52] robertfw has joined the channel [14:52] CrypticSwarm has joined the channel [14:52] Glenjamin: oh nvm, it uses libuv which abstracts libev [14:53] mc_greeny: since which version? [14:53] grekko has joined the channel [14:53] mc_greeny: kk [14:54] kriszyp has joined the channel [14:54] mc_greeny: but only on windows, right? [14:54] mc_greeny: sry also on UNIX systems [14:58] dominictarr has joined the channel [14:59] EyePulp has joined the channel [14:59] baudehlo: mc_greeny: ev only uses select() if nothing else is available (which it almost always is). On Linux it uses epoll, on freebsd it uses kqueue, etc. [14:59] mc_greeny: ok thx [14:59] Industrial: DrMcKay: What would be the way then? Maybe it's worthwhile to write it down to start a project or discussion about it :o [15:00] amerine has joined the channel [15:00] Glenjamin: you could auto-load models easily enough [15:01] Glenjamin: but explicit is better than implicit usually [15:01] DrMcKay: Industrial: barista router is a win for REST [15:01] Glenjamin: and since you don't unload things, you'd only get autoloader gains if you have slow startup [15:01] Glenjamin: which isn't a problem so much in node [15:01] boltR has joined the channel [15:01] avih has joined the channel [15:02] cjroebuck has joined the channel [15:02] Industrial: DrMcKay: express-mongoose looks interesting. Promises make for lazy evaluation of async code? [15:02] Glenjamin: var model_loader = require('./lib/model_loader'); model_loader.load('MyModel') [15:03] TooTallNate has joined the channel [15:03] jslatts has joined the channel [15:03] avih has joined the channel [15:03] Renegade001 has joined the channel [15:03] Industrial: Glenjamin: the gain from an autoloader would be not having to type out the require's and knowing you have access to your app components (eg models). Mongoose already has a loading mechanism though (mongoose.model('MyModel')) [15:04] colinclark has joined the channel [15:04] Glenjamin: not having to type out require is a bad thing [15:04] fatjonny has joined the channel [15:04] Glenjamin: given an arbitrary ruby script from the middle of a rails project, you can't actually run it [15:05] DrMcKay: Glenjamin++ [15:05] v8bot_: DrMcKay has given a beer to Glenjamin. Glenjamin now has 2 beers. [15:05] softdrink has joined the channel [15:05] Glenjamin: and when you have a running application and you call a method on a class/module, it's actually pretty hard to find out where that method is defined [15:05] Glenjamin: zen of python: explicit is better than implicit [15:05] Industrial: in the class :p [15:06] CrypticSwarm: anyone tried cloning the howtonode blog recently? Can't get anything to load. Everything is 404 [15:06] Glenjamin: Industrial: in rails-land, pretty rarely [15:06] Glenjamin: usually in a mixin, or a metaclass, or dyanamically via method_missing [15:06] devongovett has joined the channel [15:06] Glenjamin: or a proxy [15:06] xtianw has joined the channel [15:06] ecin has joined the channel [15:06] skm has joined the channel [15:06] avih has joined the channel [15:06] Industrial: That holds true for requires aswell [15:07] kriz has joined the channel [15:07] kriz has left the channel [15:07] Industrial: doing it via requires* [15:07] Glenjamin: i like Ruby, but its lack of explicit modules is a bit i dislike [15:07] Glenjamin: nope [15:07] Glenjamin: because require points to somewhere [15:07] Industrial: thats just convention vs configuration [15:07] Industrial: I _know_ where my models are [15:07] robi42 has joined the channel [15:07] shanebo has joined the channel [15:07] Industrial: you configure it by requiring explicitly, I'd say do it explictly; [15:07] jetienne: node rocks. [15:08] Glenjamin: require 'something' adds Something to global [15:08] Glenjamin: then every other ruby script has access to Something, regardless of whether it required it [15:08] Venom_X has joined the channel [15:08] Industrial: It's not very DRY to type out the requires one by one, and since the NodeJS server will be running and using all models in the application anyway (I hope so) you could prettymuch make them globals from the bootup, and have access to them everywhere [15:08] Glenjamin: while you can technically do that in Node, nothing does [15:08] Glenjamin: Industrial: one controller should generally use one model [15:08] markwubben has joined the channel [15:09] Glenjamin: that model might use a few other models for relations [15:09] Glenjamin: but no one script should use loads and loads of models [15:10] fson has joined the channel [15:10] Industrial: hm. [15:10] Glenjamin: i've worked on a large ruby project - it's manageable, but explicit module loading is better. [15:10] freeformz has joined the channel [15:11] synkro has joined the channel [15:11] ryanfitz has joined the channel [15:11] Industrial: I've only liked it so far :\ [15:11] jmoyers has joined the channel [15:12] Glenjamin: how about something like this... [15:12] bnoordhuis has joined the channel [15:13] NeedHelp has joined the channel [15:13] Glenjamin: hrm, no [15:13] NeedHelp: can anybody tell me wheare the node.js folder is? [15:13] NeedHelp: (ubuntu) [15:13] Glenjamin: was gonna try something with a property getter, but there's no catchall [15:14] Industrial: By the way, I also have no problem with global variables. Avoiding namespace issues is actually pretty easy, because for example these model names are unique in the system. I know so. They would never clash :) [15:14] hernan: NeedHelp: depends did how you install it? usually under local. [15:14] brianc: woo! smashing magazine did an article on node: http://coding.smashingmagazine.com/2011/09/16/useful-node-js-tools-tutorials-and-resources/ [15:15] NeedHelp: https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager <-- i intalled it like this [15:15] NeedHelp: *installed [15:15] CarterL has joined the channel [15:16] brianc: hands down the largest & most comprehensive collection of node.js material I've ever seen compiled in one place [15:16] unomi has joined the channel [15:16] ecin has joined the channel [15:16] brianc: save the node wiki [15:17] Glenjamin: NeedHelp: try dpkg -L nodejs [15:17] NeedHelp: ty i will try [15:18] NeedHelp: i got a list of path names [15:18] Glenjamin: those are the path names the package installed [15:18] kevwil has joined the channel [15:18] Glenjamin: brianc: i'm not a huge fan of those "articles" that smashingmag does [15:19] Glenjamin: they're just a list of links with no analysis or comparison [15:19] NeedHelp: i cant find the folder /usr/bin/nodejs [15:19] NeedHelp: :( [15:19] brianc: Glenjamin: yeah they're a bit of a data-dump but I don't mind. Also, smashing very much designer focused so it's cool to see them giving a spotlight to node.js which many designers probably don't know about but would be interested in since designers more likely to know javascript than any other 'language' [15:20] NeedHelp: ahh got it :D [15:20] balaa has joined the channel [15:21] dmkbot: joyent/node: 03mikeal: streams2 - https://github.com/joyent/node/issues/1681 [15:21] CoverSlide: i like jsweekly, dailyjs, and rww for node news [15:22] brianc: i love dailyjs [15:22] freeformz has joined the channel [15:22] jacter has left the channel [15:22] NeedHelp: thank you Glenjamin [15:22] rurufufuss: anyone here use zappa? [15:23] FireFly has joined the channel [15:23] NeedHelp: where should i add a script i want to run? [15:23] davidcoallier has joined the channel [15:23] pizthewiz has joined the channel [15:24] markwubben has joined the channel [15:24] fangel has joined the channel [15:24] davidcoallier has joined the channel [15:24] davidcoallier has joined the channel [15:24] NeedHelp: where should i add a script i want to run? [15:25] CoverSlide: zappa is a glue framework right? [15:26] rurufufuss: zappa's a coffeescript based thing on top of express, I think [15:26] rurufufuss: this coffeescript thing seems pretty neat, a bit alien though [15:26] CoverSlide: speaking of jsweekly [15:27] NeedHelp: can somebody please tell me where i have to add a js file if i want to run it in node? [15:27] CoverSlide: shuole be a new episode [15:27] CoverSlide: s/episode/issue [15:28] zomgbie has joined the channel [15:28] rurufufuss: NeedHelp: your own dir, and then do node whatever.js? [15:28] blah has joined the channel [15:28] halfhalo has joined the channel [15:29] blah has left the channel [15:29] halfhalo has joined the channel [15:29] NeedHelp: how should i tell node where my dir is? [15:29] rurufufuss: are you running linux? [15:29] rurufufuss: or windows? [15:30] Aikar: "where my dir is" ? [15:30] Aikar: what dir [15:30] Aikar: cd ~/my/project [15:30] Aikar: node app.js [15:30] NeedHelp: ubuntu [15:30] JJMalina has joined the channel [15:30] [diecast]: like - .set('working directory', '/var/nodes/') [15:30] NeedHelp: ty aikar [15:30] [diecast]: but thats specific to cluster module [15:30] Aikar: it works as any other nix app, it uses w/e dir your in when you RUN the app. [15:31] Aikar: so if your in /tmp and execute "/foo/bar", CWD is /tmp [15:31] Vertice has joined the channel [15:31] aheckmann has joined the channel [15:31] CoverSlide: umm /foo/bar would be an absolute path [15:31] Aikar: but node has __dirname which resolves to the dir the the code is in [15:31] Aikar: yes [15:31] Aikar: exactly, execute an executable with absolute path [15:32] DrMcKay: do you know any bug tracker which isn't a pain in the ass? [15:32] FireFly|n900 has joined the channel [15:32] Aikar: ie CWD tmp /usr/local/bin/node ~/my/project/app.js [15:32] Aikar: CWD /tmp* [15:32] Aikar: your CWD will be /tmp [15:32] Aikar: but __dirname will be ~/my/project [15:32] DrMcKay: and is free, as in speech [15:32] CoverSlide: bugzilla is free, but also a pain [15:33] Aikar: Jira is free for Open source apps iirc [15:33] Aikar: and is pretty awesome [15:33] DrMcKay: yeah, I hate bugzilla [15:33] NeedHelp: how can i install a websocket module in npm? [15:33] Aikar: NeedHelp: npm install socket.io [15:33] mendel_ has joined the channel [15:33] NeedHelp: okey ty [15:33] Aikar: http://socket.io [15:34] Aikar: its a really great lib [15:34] DrMcKay: Aikar: looks nice, but it isn't free as in speech, I think [15:34] CoverSlide: i think jira is opencore [15:34] Aikar: DrMcKay: i believe it is for OSS [15:35] NeedHelp: could it be that Non-Parametric Mapping isnt npm? [15:35] zastaph has joined the channel [15:35] DrMcKay: wiki says it's proprietary [15:35] Aikar: I know a project I use to work on was granted a license for free even though it was closed source due to the nature of the project. the project WOULD be open source but it would cause more harm than good :/ [15:35] CoverSlide: NeedHelp: npmjs.org [15:36] DrMcKay: I mean, I would love something like GH has [15:36] Aikar: DrMcKay: http://www.atlassian.com/software/jira/licensing.jsp#nonprofit [15:36] irahgel has left the channel [15:36] DrMcKay: it's simply kickass [15:36] dmkbot: joyent/node: 03hildjj: Results of stat() incorrect, don't match statSync - https://github.com/joyent/node/issues/1401 [15:37] jesster7 has joined the channel [15:37] Aikar: Apply for an Open Source Project License online [15:37] DrMcKay: Aikar: I will check it out, thanks [15:37] Glenjamin: DrMcKay: what are your reqs? [15:37] netlemur has joined the channel [15:37] freeformz has joined the channel [15:37] mendel_ has joined the channel [15:37] DrMcKay: Glenjamin: source control integration (git would be the best one), pull requests, milestones and priorities [15:37] mlittrell has left the channel [15:38] Aikar: jira is prolly the most advanced [15:38] Aikar: we use it at work, its awesome [15:38] DrMcKay: and pull requests as in "sit back, I can merge it for you" [15:38] Glenjamin: so use github? [15:38] Aikar: yeah youll need GH for that :P [15:38] chrislorenz has joined the channel [15:38] DrMcKay: so I'll write one myself :) [15:38] Aikar: GH itself is OSS... [15:38] CoverSlide: hmm maybe trac? [15:38] Glenjamin: don't think it is [15:39] Glenjamin: just pay for the cheapest github, its worth it [15:39] Glenjamin: trac/redmine is the only thing that even comes close [15:39] Glenjamin: maybe bitbucket [15:39] netlemur: I have a nested object i want to render with "each" in jade. Is it possible to access objects inside objects with jade? [15:39] netlemur: this is driving me nuts :-) [15:39] NeedHelp: my npm installation "failed" ? why could it be? [15:40] tjholowaychuk: netlemur it's just js [15:40] wbednarski has joined the channel [15:40] guillermo has joined the channel [15:40] tjholowaychuk: so you can do for example [15:40] DrMcKay: Glenjamin: I'm just looking for oss alternative, I know that anyone sane will simply use GH [15:40] tjholowaychuk: netlemur: "each user in users\n each pet in user.pets\n li= pet.name" [15:41] Glenjamin: redmine is pretty good [15:41] netlemur: mhh. i thought i tried that [15:41] netlemur: will try it again [15:41] DrMcKay: Glenjamin: looks good [15:41] dmkbot: joyent/node: 03hildjj: Results of stat() incorrect, don't match statSync - https://github.com/joyent/node/issues/1401 [15:42] DrMcKay: veracity looks pretty nice [15:42] DrMcKay: it's both source control and bug tracking I thinl [15:42] DrMcKay: *think [15:42] DrMcKay: or maybe I should use Microsoft Source Safe :D ? [15:43] patcito has joined the channel [15:45] ryan0x2 has joined the channel [15:45] NeedHelp: thx again =) [15:45] amiller has joined the channel [15:46] DrMcKay: btw, my teacher actually used it [15:46] dmkbot: joyent/node: 03hildjj: Results of stat() incorrect, don't match statSync - https://github.com/joyent/node/issues/1401 [15:47] DrMcKay: designer at his company checked in some images [15:47] DrMcKay: and well... [15:47] avih has joined the channel [15:47] jslatts has joined the channel [15:48] xerox: shouldn't headers: { 'Cookie': 'some=thing' } be enough to send a cookie in a request? [15:49] DrMcKay: btw, again, what do you guys think about automatical unit testing of pull requests? [15:49] Glenjamin: CI on feature branches in general is a good thing [15:49] boltR has joined the channel [15:50] CoverSlide: doesn't it need a semicolon at the end? [15:50] DrMcKay: I mean a bot long-polling pull request, checking out pull-requested branch and running set of tests, then reporting results on GH [15:50] kulor-uk has joined the channel [15:50] smathy has joined the channel [15:50] micheil has joined the channel [15:51] mandric has joined the channel [15:51] CoverSlide: like jenkins / hudson ? [15:51] Glenjamin: can't hurt if you can automate it [15:51] DrMcKay: CoverSlide: something like that, but with github part [15:51] AaronMT has joined the channel [15:51] NeedHelp: is a line out of the socket.io helloworld... but i dont have a file socket.io.js :/ [15:52] NeedHelp: can somebody tell me where this file is? [15:52] [diecast]: did you search for it [15:52] Yuffster_work has joined the channel [15:52] NeedHelp: no because it would need a lot of time - i think [15:52] [diecast]: find ./ -name '*socket*' [15:53] [diecast]: should take 20 seconds or less [15:53] adambeynon has joined the channel [15:53] gxdssoft has joined the channel [15:54] smathy: NeedHelp… the manager.js file within the socket.io package exposes the dist/socket.io.js file on that /socket.io/socket.io.js URL. [15:54] kriszyp has joined the channel [15:56] NeedHelp: smathy manager.js? [15:56] CoverSlide: dist/socket.io.js is in the socket.io-client package [15:56] CoverSlide: manager.js is one of the source files [15:57] NeedHelp: and i can use manager.js for? [15:57] CoverSlide: you don't [15:57] NeedHelp: okey [15:57] CIA-54: node: 03Ben Noordhuis 07v0.4 * red44098 10/ deps/libev/wscript : [15:57] CIA-54: node: build: fix SYS_clock_gettime feature check [15:57] CIA-54: node: execute=True makes it fail while cross-compiling. [15:57] CIA-54: node: Fixes #1541. - http://git.io/hzfpIw [15:57] CoverSlide: it's just one of the files that get require'd when you do require('socket.io') [15:57] colinclark has joined the channel [15:58] NeedHelp: okey [15:58] kmiyashiro has joined the channel [15:58] NeedHelp: but how can i get the socket.io client working? [15:58] CoverSlide: it should be in the tutorials [15:58] netlemur: tjholowaychuk : thank you. finally got it working. was "a bit" confused :-) [15:58] tuhoojabotti: http://www.youtube.com/watch?v=8410qUT4QtA Totally irrelated. [15:58] NeedHelp: there is only the code :( [15:58] robi42 has joined the channel [15:59] NeedHelp: and it needs the socket.io.js and idk where i can find this file [15:59] softdrink has joined the channel [15:59] CoverSlide: you don't need to put it anywhere [16:00] CoverSlide: it just gets linked automatically [16:00] tomtomaso has joined the channel [16:00] NeedHelp: but how should this work if the file dont exists? [16:00] smathy: NeedHelp… you didn't ask how to get it working, you asked where the file comes from. It's part of the npm package called socket.io-client which is installed when you install socket.io [16:00] NeedHelp: (in the client code) [16:00] smathy: NeedHelp… the file doesn't have to exist because socket.io exposes the file at that URL for you. [16:00] CoverSlide: tuhoojabotti: you just wasted 30 seconds of my life, and I want them back [16:01] tuhoojabotti: CoverSlide: No refunds. [16:01] NeedHelp: okey this means if iam hosting a server the file exists in http://server.com/socket.io....?? [16:01] smathy: NeedHelp… no. [16:01] dmkbot: joyent/libuv: 03erickt: Fix a couple warnings, added some asserts, and compiling with gcc-4.5 and mingw-w64 - https://github.com/joyent/libuv/issues/186 [16:01] NeedHelp: :( [16:02] smathy: NeedHelp… the file exists in the dist dir of the socket.io-client npm package. [16:02] smathy: NeedHelp… and socket.io exposes the file at the /socket.io/socket.io.js URL. [16:02] CoverSlide: a url doesn't need to point to a physical file directly [16:02] NeedHelp: but you can reach it under this url of the server? [16:02] NeedHelp: cover ik [16:02] smathy: NeedHelp… just like you can write any other URL and attach a response to it using node. [16:02] mandric has joined the channel [16:02] smathy: NeedHelp… yes. [16:03] NeedHelp: this means if i write a client.html i must put in on a local server? [16:03] smathy: NeedHelp… the URL is valid, and as long as you have socket.io installed (which will install socket.io-client as well) then it will all work fine. [16:03] NeedHelp: smathy okey thx =) [16:04] NeedHelp: but i have to run my test.html on a server? or can i just run it directly? [16:04] smathy: NeedHelp… not sure about the language in your question about client.html - "local server"? But re static files you can either use a non-node web server to serve them, like nginx, or use a static file handler to let node serve them for you. [16:04] pfried has left the channel [16:04] NeedHelp: how can i tell node that it should serve me the files? [16:05] smathy: NeedHelp… there are many ways, I use the express framework which has a nice piece of middleware for serving static files. [16:05] isaacs has joined the channel [16:05] smathy: NeedHelp… actually, I use zappa which is a meta framework that exposes express through a nicer DSL. [16:06] NeedHelp: okey i should install "express" as a npm module? [16:06] smathy: NeedHelp… Express: http://expressjs.com/ Zappa: http://zappajs.org/ [16:06] smathy: NeedHelp… you should read the docs :) [16:06] dmkbot: joyent/node: 03jbergstroem: running test GH-814 sometimes leaves trailing processes - https://github.com/joyent/node/issues/914 [16:06] dmkbot: joyent/node: 03hildjj: Results of stat() incorrect, don't match statSync - https://github.com/joyent/node/issues/1401 [16:06] CoverSlide: express isn't necessary, but it would make things easier [16:07] NeedHelp: zappa is useful for? [16:07] madsleejensen has joined the channel [16:07] mikl has joined the channel [16:07] smathy: NeedHelp… I can tell you haven't read the docs yet. [16:08] navaru has joined the channel [16:08] NeedHelp: which docs should i read? [16:08] cha0s has joined the channel [16:08] cha0s has joined the channel [16:08] k1ttty has joined the channel [16:08] cjroebuck has joined the channel [16:08] smathy: 09:06 smathy> NeedHelp… Express: http://expressjs.com/ Zappa: http://zappajs.org/ [16:08] NeedHelp: ah okey :) [16:10] sub_pop has joined the channel [16:10] zivester has joined the channel [16:10] rbuck_ has joined the channel [16:10] strmpnk has joined the channel [16:11] thinkjso1 has joined the channel [16:12] NeedHelp: smathy can i make a server with only using node.js without modules? [16:13] smathy: Sure, modules are just JS. [16:13] smathy: You can write all the JS yourself. [16:13] NeedHelp: nooooo xD [16:13] NeedHelp: it would take to much time :) [16:13] bnoordhuis: NeedHelp: yes, node has a built-in http server [16:13] smathy: Yeah, that's why modules exist - and why most people use them extensively. [16:13] NeedHelp: how can i access it? [16:13] rbuck has joined the channel [16:14] NeedHelp: (@bnoordhuis) [16:14] jetienne: NeedHelp: you read like the first line of the doc :) [16:14] smathy: NeedHelp… read the docs: http://nodejs.org/ [16:14] NeedHelp: okey :) [16:15] navaru: NeedHelp: search for Node Web Development, a good book to get you started, published August 2011 [16:16] rbuck_ has joined the channel [16:17] gazumps has joined the channel [16:17] JakeyChan_ has joined the channel [16:17] jtsnow has joined the channel [16:18] springmeyer has joined the channel [16:18] JakeyChan_ has joined the channel [16:19] NeedHelp: navaru i think its a good book, but i cant buy it because iam not 18 years old :( [16:19] madsleejensen1 has joined the channel [16:20] tmedema has joined the channel [16:20] gregmoreno has joined the channel [16:20] tmedema: Has anyone used Couchbase 2 Developer preview with node.js? [16:20] jaequery has joined the channel [16:20] navaru: grab a fake id and download 'it from filestube [16:21] Cromulent has joined the channel [16:22] joshthecoder has joined the channel [16:22] jetienne: NeedHelp: google "howtonode" and "nodebeginner" you will get good free tutorials [16:22] andrewfff has joined the channel [16:23] NeedHelp: jet okey i try =) [16:23] CoverSlide: and of course there's always http://docs.nodejitsu.com [16:24] freeformz has joined the channel [16:25] Phunky has joined the channel [16:25] sneakyness_wk has joined the channel [16:25] ckpcw has joined the channel [16:25] ttpva has joined the channel [16:26] AvianFlu has joined the channel [16:26] patcito has joined the channel [16:27] Drakonite has joined the channel [16:27] thalll has joined the channel [16:28] amerine has joined the channel [16:29] tomtomaso has joined the channel [16:30] markdaws has joined the channel [16:30] NeedHelp: how can i stop a socket.io instance listening on port 8080? [16:31] dshaw_ has joined the channel [16:31] ronnieboy has joined the channel [16:31] rbuck has joined the channel [16:31] hornairs has joined the channel [16:31] Skomski has joined the channel [16:32] vpereira has left the channel [16:32] springmeyer has joined the channel [16:32] TooTallNate has joined the channel [16:33] TheJH has joined the channel [16:33] TheJH has joined the channel [16:35] hakunin has joined the channel [16:35] NeedHelp: bye gtg now :( [16:35] brianc has joined the channel [16:36] kenperkins has joined the channel [16:36] dmkbot: joyent/node: 03isaacs: node -v in bash PROMPT_COMMAND causes assertion error - https://github.com/joyent/node/issues/1720 [16:38] JaKWaC has joined the channel [16:40] dannycoates has left the channel [16:41] tekky has joined the channel [16:42] jmoyers: this plane wifi is bizarro world [16:42] jmoyers: some sort of shitstorm http cache [16:42] jmoyers: makes developing… unpredictable [16:42] alvaro_o has joined the channel [16:43] DrMcKay: jmoyers: SSH to some server? [16:43] DrMcKay: jmoyers: SSH tunnel, I mean [16:43] jmoyers: yeah, thats not a bad idea [16:44] caolanm has joined the channel [16:44] jmoyers: DrMcKay++ [16:44] v8bot_: jmoyers has given a beer to DrMcKay. DrMcKay now has 2 beers. [16:45] jmoyers: no longer getting a random 503 :P [16:45] DrMcKay: jmoyers: :) [16:45] addisonj has joined the channel [16:46] bnoordhuis: jmoyers: what kind of ping times do you get on a plane? [16:47] dgathright has joined the channel [16:47] jmoyers: still in the 100-200ms range for google [16:48] DrMcKay: jmoyers: random tip: run ssh with -C, it may speed up loading things a bit [16:48] DrMcKay: (it's compression) [16:48] jmoyers: built in gzip O.o [16:48] jmoyers: rock on [16:48] wlkh has joined the channel [16:49] mandric has joined the channel [16:49] broofa has joined the channel [16:50] DrMcKay: this is the useful only thing I've learned in school, actually. bypassing those nasty proxies. [16:50] navaru has left the channel [16:50] Renegade001 has joined the channel [16:50] indexzero has joined the channel [16:52] coaster has joined the channel [16:52] meandi has joined the channel [16:52] anoop has joined the channel [16:53] bnoordhuis: DrMcKay: they have port 22 open? [16:53] bnoordhuis: kids these days... [16:53] bnoordhuis: back in my day you had to set up a dns tunnel [16:53] jacobolus has joined the channel [16:53] DrMcKay: bnoordhuis: yes. my admin is actually an idiot. [16:53] bnoordhuis: or a ping tunnel [16:53] AvianFlu: ping tunnel ++ [16:54] AvianFlu: oh man, high school [16:54] AvianFlu: XD [16:54] tylerstalder has joined the channel [16:54] WRAz has joined the channel [16:54] frederickcook has joined the channel [16:54] DrMcKay: ACTION googles [16:54] DrMcKay: oh man. this thing is neat. [16:55] sorin has joined the channel [16:55] digitaltoad has joined the channel [16:55] frederickcook: TheJH: thanks for the help yesterday with node.io. took me a bit to wrap my mind around the fact that the SIGTERM wasn't normal, it was something i was causing [16:55] bnoordhuis: and note that when i was in college, there wasn't proper dns tunnel software for linux [16:55] bnoordhuis: so i wrote my one [16:56] bnoordhuis: while walking to the library uphill through the snow both ways [16:56] TheJH: bnoordhuis, :D [16:56] DrMcKay: bnoordhuis: lol, like a real programmer [16:56] sorin has left the channel [16:56] kersny has joined the channel [16:57] JSManiacs has joined the channel [16:59] vampi-the-frog has joined the channel [16:59] vampi-the-frog has joined the channel [16:59] slifty has joined the channel [17:01] freeformz has joined the channel [17:02] DrMcKay: so, my network admin *really* is an idiot [17:02] robotmay has joined the channel [17:02] smathy has joined the channel [17:02] DrMcKay: he still didn't block that: http://www.st.poznan.pl/mrtg/ [17:02] bnoordhuis: DrMcKay: maybe your network admin has faith in you? [17:03] JaKWaC has joined the channel [17:03] nibblebot has joined the channel [17:03] DrMcKay: bnoordhuis: I don't think so. I've already showed my headmaster how incompetent he was. he probably hates me. [17:04] kriszyp has joined the channel [17:05] amiller has joined the channel [17:06] DrMcKay: yeah, so I have a phpinfo output now [17:06] springmeyer has joined the channel [17:06] superjudge has joined the channel [17:07] StanlySoManly has joined the channel [17:08] DrMcKay: and some nice access data. [17:08] eignerchris has joined the channel [17:09] vidi has joined the channel [17:09] DrMcKay: I have a wild desire to make this network go through some shitstorm on Monday [17:09] smtlaissezfaire has joined the channel [17:09] smtlaissezfaire has left the channel [17:09] scottschecter has joined the channel [17:10] vidi has joined the channel [17:10] markwubben has joined the channel [17:10] skiz has joined the channel [17:10] tmedema has joined the channel [17:10] bnoordhuis: DrMcKay: what does it gain you except two weeks of suspension? [17:11] DrMcKay: bnoordhuis: if they suspend me, I'll have a reason to drop out. but I doubt they will anyway. [17:11] DrMcKay: bnoordhuis: and nothing, reallt [17:12] adrianmg has left the channel [17:12] codely has joined the channel [17:13] codely: hey everyone, I'm doing testing, what's the best way to see if i have an active internet connection with node .... [17:13] jmoyers: dropping out of school [17:13] jmoyers: is a terrible, terrible idea [17:13] jmoyers: ACTION throws in some cents [17:13] Druid has joined the channel [17:14] jelveh has joined the channel [17:14] shipit_ has joined the channel [17:14] DrMcKay: jmoyers: why? I feel it's really not important to me. they haven't learnt me anything. and education system in Poland is really the worst thing that can happen. [17:15] jmoyers: if you want to be a professional programmer, i'd suggest sticking it out [17:15] DrMcKay: I could leave Poland and go learn in other country. that would satisfy me. [17:15] jmoyers: you can do the drop out thing [17:15] jmoyers: but it makes things much more dependent on your personal network [17:15] jmoyers: and it doesn't feel as safe [17:16] jmoyers: also, learning the big green algorithm book, the discrete math by yourself while your working is a huge bummer [17:16] jmoyers: i know, because i had to do it [17:16] DrMcKay: jmoyers: you're thinking about university/college, are you? [17:16] jmoyers: im thinking about any school [17:17] jmoyers: dropping out younger is even worse imo [17:18] joshmarshall has joined the channel [17:18] DrMcKay: jmoyers: possibly. but it makes me pretty miserable. [17:18] rurufufuss: DrMcKay: you're in high school? [17:18] jmoyers: miserable now is nothing compared to miserable later when you don't get callbacks from that badass company you want to work for [17:18] DrMcKay: rurufufuss: vocational school [17:18] jmoyers: even though you know you're capable [17:19] DrMcKay: jmoyers: well, I have a job now. 2 jobs, even [17:19] rurufufuss: DrMcKay: vocational school for IT, I'm guessing? [17:19] DrMcKay: jmoyers: and got e-mails from FB and Google [17:19] DrMcKay: rurufufuss: yes [17:19] jmoyers: 2 jobs doing what you want to do for the rest of your life? [17:19] rurufufuss: since finishing it is just an obstacle course, might as well, you know [17:20] jmoyers: seriously, just jump through the hoops and then that shit is over, and you are thankful you checked the box if nothing else [17:20] rurufufuss: unless, it's a huge obstacle that sucks a lot of time for the next few years or so [17:20] ckpcw has left the channel [17:20] DrMcKay: jmoyers: no, I took them because I need money at the moment [17:20] Aikar: imo an employer would take it as a negative to see you dropped out of a school. [17:20] DrMcKay: jmoyers: but actually, you might be right... [17:21] CIA-54: node: 03Ben Noordhuis 07master * r0ad28fd 10/ src/node_crypto.cc : [17:21] CIA-54: node: crypto: fix error message buffer overrun [17:21] CIA-54: node: ERR_error_string() expects a buffer of at least 256 bytes, the input buffer [17:21] CIA-54: node: was not even half that size. Use ERR_error_string_n() instead. - http://git.io/V_GTiQ [17:22] codely: Aikar: I work for a well funded group as the lead and I dropped out of a great school [17:22] towski has joined the channel [17:22] codely: employers looking for junior/mid level people want a B.S. but ... [17:22] jmoyers: dude, you can get a job [17:22] jmoyers: thats not the point [17:22] jmoyers: i have a job as a lead and i dropped out [17:22] codely: (and recruiters) but who cares to work 9-5 [17:22] Spion has joined the channel [17:22] codely: I basically just worked and partied [17:23] codely: school was an experience … in girls, working ands managing my social life. hah [17:23] DrMcKay: rurufufuss: you're right (in Poland, ironically, it's harder when you're smart) [17:23] `3rdEden has joined the channel [17:23] mynameisbender has joined the channel [17:23] raj_90 has joined the channel [17:23] DrMcKay: codely++ [17:23] v8bot_: DrMcKay has given a beer to codely. codely now has 1 beers. [17:23] rurufufuss: DrMcKay: carpe diem, do what makes you happy, etc [17:24] rurufufuss: disclaimer: I just "dropped out" of phd myself [17:24] aho has joined the channel [17:24] rurufufuss: but then that's a different thing altogether, heh [17:24] codely: I think that school for software/cs isn't needed for smart people [17:24] DrMcKay: but seriously, this is funny. here you can get individual courses. you don't have to attend regular classes then, etc. [17:25] DrMcKay: but each fucking time you need to be examined by a psychologist [17:25] nibblebo_ has joined the channel [17:25] jmoyers: codely so you just inherently understood how to find the upper bound on a given algorithm? [17:25] jmoyers: im not saying thats the most used part of the job, [17:25] jmoyers: but you run into a situation like that without the knowledge and you are fucked as you can get [17:25] codely: hah ok no - [17:25] massivebiz has joined the channel [17:25] codely: true [17:26] DrMcKay: you get questions like: "why democracy is the best political system [17:26] anoop has joined the channel [17:27] DrMcKay: jmoyers: when you actually need it, there are books [17:27] jmoyers: computer science isn't quite like that [17:27] jmoyers: imo [17:27] DrMcKay: jmoyers: computer science != software development [17:27] jmoyers: like i said, its not the most used part of the job [17:27] DrMcKay: we have to admit, that most of the times, we aren't computer scientists [17:28] jmoyers: i spend all day long NOT thinking about algorithms [17:28] al3xnull_ has joined the channel [17:28] skiz: jmoyers: I'm sorry [17:29] jmoyers: uh, i dont actually find that kind of work fulfilling [17:29] jmoyers: i like building applications [17:29] jmoyers: not to say i can't optimize when i need to [17:29] schwab has joined the channel [17:29] rurufufuss: people float their boats differently [17:29] jmoyers: this is true [17:29] jmoyers: all i am saying is: if you try to be well rounded, stick it out, your boat probably wont _sink_ [17:30] skiz: right, but without some of it, you wouldn't know how to, what pattens and algorithms are faster or more suited to the platform, etc. For most app developers it becomes intuition, and you use it every day, so give it some credit. [17:30] amerine has joined the channel [17:30] DrMcKay: skiz++ [17:30] v8bot_: DrMcKay has given a beer to skiz. skiz now has 1 beers. [17:30] unomi: http://blogs.intel.com/research/2011/09/pjs.php [17:31] jmoyers: effective pattern use/design is different than algorithms though [17:31] jmoyers: one is a soft skill, the other a hard skill [17:31] jmoyers: but yes, i agree [17:31] unomi: While I realize this is more the responsibility of V8 - anyone know if this is something being worked on / considered? [17:31] skiz: Not that I'm advocating spending 8 years studying algos and bitwise operations [17:31] anoop has joined the channel [17:32] rurufufuss: skiz: it floats some people's boats, and they stay at university as researchers [17:32] MatthewS has joined the channel [17:32] DrMcKay: I would hate being a researcher [17:33] DrMcKay: while it sounds pretty nice, you can simply stale [17:33] wojohowitz has joined the channel [17:33] mjijackson has joined the channel [17:33] csavard has joined the channel [17:35] knifed has joined the channel [17:35] tbranyen: http://twitter.com/#!/BostonNodeJS/status/114752544290516992 [17:35] tbranyen: In case anyone is in the Boston area [17:35] tbranyen: We have a meetup group now [17:35] tbranyen: and the first meet up is scheduled [17:36] mynyml has joined the channel [17:38] DrMcKay: huh. I think I may be depressed. [17:38] rurufufuss: DrMcKay: how old are you btw? [17:38] DrMcKay: that's definitely not a good moment to take decisions about dropping out [17:39] rurufufuss: and how long left do you have, worst case? [17:39] rurufufuss: (for finishing your school, that is) [17:39] DrMcKay: rurufufuss: 17 year old [17:39] DrMcKay: rurufufuss: and 3 years left [17:39] rurufufuss: hmm, that is a long time [17:40] softdrink: guess who just ripped coffeescript out of his project [17:40] softdrink: ← [17:40] Vertice: what were your easosns [17:40] rurufufuss: why, I was just playing around with it, it's great [17:40] DrMcKay: in Poland, vocational schools take 4 years [17:40] pquerna: its not a long time, don't drop out [17:40] pquerna: i did [17:40] artnez has joined the channel [17:41] jonrohan has joined the channel [17:41] rurufufuss: except for the fact that coffeescript doesn't have inline comments :/ [17:41] DrMcKay: pquerna: and you didn't like it later? [17:41] massivebiz has joined the channel [17:41] softdrink: introducing namespacing issues and build problems with *this particular* project [17:41] pquerna: DrMcKay: I don't think dropping out would be my prefered method of gaining ops in #node.js if i did it over [17:41] shanez has joined the channel [17:42] pquerna: DrMcKay: you can do so much while still in school, once you aren't in school those options close [17:42] DrMcKay: pquerna: lol [17:42] pquerna: [17:43] jmoyers: its not really a lol [17:43] jmoyers: thats some serious shit ;-) [17:43] jmoyers: but anyway [17:43] DrMcKay: pquerna: actually, true. I might get a chance of taking part in Imagine Cup this year, because my school kinda likes me [17:43] rurufufuss: so you are a top student? [17:43] pquerna: travel cheaply, do fun things, hack on tons of open source, finish school [17:44] DrMcKay: rurufufuss: no. I don't have *that* good grades. I've just had a couple of achievements [17:45] DrMcKay: converting a regular car to an electric one, as a example [17:45] ryanj has joined the channel [17:45] tfcoding has joined the channel [17:45] DrMcKay: few robots [17:45] DrMcKay: nothing big, actually [17:45] rurufufuss: a regular car to an electric one doesn't seem very related to node.js, haha [17:46] DrMcKay: of course my biggest life success is having my patch accepted into node.js ;) [17:46] tfcoding has joined the channel [17:47] rurufufuss: well, I recommend doing whatever the hell you feel like, as long as you think it's the right decision [17:47] rurufufuss: if "stick at it, only a few years left" is making you depressed, then you probably aren't happy [17:48] rurufufuss: welp, time to sleep [17:48] gnuanu has joined the channel [17:48] DrMcKay: rurufufuss: thanks :) [17:48] eldios has joined the channel [17:49] DrMcKay: jmoyers, pquerna, codely, Aikar, bnoordhuis: thanks, I think I'll have to think about that a bit more. it was a great discussion [17:50] gregmoreno has joined the channel [17:50] codely: ltr [17:51] mehtryx1 has joined the channel [17:51] altamic has joined the channel [17:51] pizthewiz has joined the channel [17:53] freeformz has joined the channel [17:53] slloyd_ has joined the channel [17:54] dgathright has joined the channel [17:54] langworthy has joined the channel [17:56] rbuck has joined the channel [17:56] socketio\test\43 has joined the channel [17:58] smtlaissezfaire has joined the channel [17:59] divoxx has joined the channel [17:59] creationix has joined the channel [17:59] xetorthio has joined the channel [18:00] mwhooker has joined the channel [18:00] divoxx: does anyone know how numbers are represented in node/v8? I mean, difference between 32 bits integers, 64 bits integer, floats, etc [18:00] DrMcKay: divoxx: they're all floats [18:01] meso has joined the channel [18:01] wdperson has joined the channel [18:01] divoxx: DrMcKay: ok, so regular javascript, and how are floats represented? [18:01] thisissami has joined the channel [18:01] markwubben has joined the channel [18:01] thisissami: hi all - quick question [18:02] thisissami: can somebody tell me what possible encodings i can pass to fs.readFile? [18:02] thisissami: specifically, I'd like to have the file that's read returned as a string. is this possible? [18:02] DrMcKay: divoxx: http://bespin.cz/~ondras/html/classv8_1_1Number.html [18:02] Phunky has joined the channel [18:02] anoop has joined the channel [18:03] DrMcKay: divoxx: this is how v8 internally represents a number [18:03] DrMcKay: .. Number(8) [18:03] DrMcKay: ah [18:03] DrMcKay: v8: Number(42) [18:03] v8bot_: DrMcKay: 42 [18:03] DrMcKay: v8: Number(42.123) [18:03] v8bot_: DrMcKay: 42.123 [18:03] DrMcKay: v8: typeof 42 [18:03] v8bot_: DrMcKay: "number" [18:03] DrMcKay: v8: typeof 42.211 [18:03] v8bot_: DrMcKay: "number" [18:04] DrMcKay: divoxx: ^ [18:04] robertfw has joined the channel [18:04] pquerna: divoxx: in practical terms, you have up to 52 bits of integer percision, then its floats all the way down [18:04] theCole has joined the channel [18:04] zeade has joined the channel [18:04] pquerna: there are work arounds, bigint classes [18:04] pquerna: to get you to 64bit ints [18:04] jhurliman has joined the channel [18:05] TheJH: thisissami, try "utf8" [18:05] TheJH: thisissami, it depends on the encoding used in the file. for files created on linux, utf8 should work [18:05] thisissami: ok i was wondering about that. utf8 will essentially mean (for my purposes) string instead of buffer? [18:05] `3rdEden: How do you remove a file node? I was like for a fs.rmFile but its not there ;$ [18:05] TheJH: thisissami, yes [18:05] pplcf has joined the channel [18:06] thisissami: yeah all the files i'm creating are encoded in utf8 on linux - i didn't realize that specifying it as such would get me a string though [18:06] divoxx: @pquerna ok, I'm interested in more details... like what bits are used for? Is it two complement? Where does the mantissa and exponent get stored? [18:06] thisissami: thanks very much TheJH! [18:06] TheJH: `3rdEden, I think it's fs.unlink(path, [callback]) [18:06] raidfive has joined the channel [18:07] thisissami: oh one last question (which i can figure out on my own through trial and error, but whatever): do i pass it "utf8" or utf8? [18:07] pquerna: `3rdEden: unlink [18:07] divoxx: I'm working on a decent way to pack and unpack data into a buffer, so i need more details for reading the buffer and reconstructing the data [18:07] divoxx: if you can give me any pointers, I'd apreciate a lot [18:08] DrMcKay: divoxx: you may be interested in typed arrays [18:08] `3rdEden: pquerna TheJH thanks! [18:08] TheJH: `3rdEden, "rm" doesn't really delete a file either - it just removed a hardlink and garbage collects the file if its refcount is 0 :D [18:08] TheJH: *removes [18:08] pquerna: divoxx: if you just want to pack/unpack... 0.5 has this, you can snip from there: https://github.com/joyent/node/blob/master/lib/buffer.js#L540 [18:08] `3rdEden: TheJH as long as it's gone i'm happy with it ;D [18:09] pquerna: divoxx: there are examples of readint 8, 16, 32.... and this comment block https://github.com/joyent/node/blob/master/lib/buffer.js#L626 [18:09] seebees has left the channel [18:09] seebees has joined the channel [18:10] massivebiz has joined the channel [18:10] pplcf: node.js 0.5.6 win & jsdom 0.2.4(latest) module --> Error: Cannot find module 'request' (file jsdom.js:5:16 "request = require('request'),") [18:10] knifed has joined the channel [18:10] pplcf: halp :] [18:10] DrMcKay: pquerna: I think it's somehow similar to typed arrays, isn't it? [18:11] Lemon|mbp has joined the channel [18:11] pquerna: typed arrays... add some data types [18:11] pquerna: but not all of them [18:12] halfhalo has joined the channel [18:12] DrMcKay: pplcf: did you install it? [18:12] halfhalo has joined the channel [18:13] ryanfitz has joined the channel [18:13] adambeynon has joined the channel [18:13] pplcf: nope [18:13] pplcf: i can't find it in module list [18:14] dnjaramba has joined the channel [18:14] TheJH: pplcf, try "npm install" without arguments [18:14] perezd has joined the channel [18:15] TheJH: pplcf, that should fix missing dependencies [18:15] omni5cience: hey isaacs I just noticed npm accounts can't have colons in them, and there's a link to a couchDB bug in the error message, but the bug page says it's fixed [18:15] stepheneb has joined the channel [18:16] pplcf: node.js 0.5.6 win [18:16] amerine has joined the channel [18:17] omni5cience: I'm just going to pick a different password for now, but I thought it was worth mentioning [18:17] pengwynn has joined the channel [18:19] pplcf: nvm, found it [18:19] TheJH: pplcf, oh, sorry [18:20] jarek has joined the channel [18:21] denom has joined the channel [18:22] mendel_ has joined the channel [18:22] perezd has joined the channel [18:22] colinclark has joined the channel [18:24] rbuck has joined the channel [18:24] jtrudeau has joined the channel [18:30] locksfree has joined the channel [18:31] broofa has joined the channel [18:31] sfoster has joined the channel [18:38] mraleph has joined the channel [18:38] shipit has joined the channel [18:39] Renegade001 has joined the channel [18:41] perezd has joined the channel [18:41] dmkbot: joyent/node: 03jbergstroem: running test GH-814 sometimes leaves trailing processes - https://github.com/joyent/node/issues/914 [18:43] netlemur has joined the channel [18:43] dob_ has joined the channel [18:49] mehtryx has joined the channel [18:51] Murvin has joined the channel [18:51] boltR has joined the channel [18:52] isaacs: omni5cience: yeah, it's easier to just not allow them, still [18:52] isaacs: omni5cience: they fixed it in head, and i believe in 1.1, but really, you don't *need* a : in your npm password [18:52] omni5cience: oh, yeah you're right, it just seemed funny to me [18:52] isaacs: omni5cience: and since the username gets put on urls and such, there's no special chars or caps allowed, i believe. [18:53] amerine has joined the channel [18:53] isaacs: omni5cience: a few capitalized names got grandfathered in, but not many [18:53] omni5cience: interesting, how does that get handled? [18:53] markwubben has joined the channel [18:54] creationix has left the channel [18:55] isaacs: omni5cience: here's one: http://registry.npmjs.org/-/by-user/Sannis [18:56] topaxi has joined the channel [18:56] bnjmn has joined the channel [18:56] TheJH: isaacs, I also think that you have little xss protection, so restricting the allowed chars is probably a good idea [18:56] omni5cience: ahh okay [18:56] isaacs: TheJH: yeah [18:57] isaacs: for package names, to [18:57] bnjmn: nude.js is better than node.js sorry guys [18:57] metellus has joined the channel [18:58] isaacs: omni5cience: a few usernames have spaces in them, too [18:58] omni5cience: does that mean I can name my package [18:58] omni5cience: oh boy [18:58] isaacs: omni5cience: no, actually, it means you can't :) [18:58] robotmay has joined the channel [18:58] omni5cience: :P [18:58] aku has joined the channel [18:58] isaacs: if encodeURIComponent(name) !== name, it fails [18:58] anno^da has joined the channel [18:58] isaacs: no %, no space, etc. [18:59] omni5cience: ahh okay, that makes sense [18:59] anno^da_ has joined the channel [18:59] isaacs: also, it has to start with a char, so no _, no ., etc. [18:59] isaacs: and of course, no slashes [18:59] mehtryx has left the channel [18:59] isaacs: { "name": "../../../../../../etc/passwd" ... } [18:59] isaacs: that'd be bad :) [18:59] omni5cience: haha yeah [18:59] isaacs: not sure how, exactly, but definitely bad. [18:59] heavysixer has joined the channel [19:00] omni5cience: probably maybe [19:00] omni5cience: in some strange case [19:00] omni5cience: better safe than sorry I always say [19:00] omni5cience: (when xss and security in general is involved) [19:00] amerine has left the channel [19:00] PastorBones has joined the channel [19:00] EyePulp: with http.get(options, callback) can I pass a timeout in the options? [19:00] brainproxy: is there any way to turn the caching off for `require` so that I can re-require triggered by fs.watchFile [19:01] mike5w3c_ has joined the channel [19:01] PastorBones: I'm trying to use cygwin to build Node for my windows machine, but getting this error: Build failed -> task failed (err #1) [19:01] mjr_ has joined the channel [19:01] brainproxy: ah, require.cache .. when all else fails rtfm [19:02] PastorBones: before that it says can't open def file default/libnode.def [19:02] omni5cience: yeah I was about to paste you a link [19:02] eboyjr has joined the channel [19:02] bnoordhuis: brainproxy: can you gist/pastie the build log? [19:03] Tobbe__: I have a function Func(param, callback) that calls out to a number of different methods. It doesn't matter what order they are called in, but when they all have been called I need their return values, combine the return values and then call the callback. What's the usual pattern for something like that? [19:03] neilk_ has joined the channel [19:04] TomY has joined the channel [19:04] brainproxy: bnoordhuis: huh? [19:04] brainproxy: oh, nvm, I see that was meant for PastorBones [19:04] micheil has joined the channel [19:05] bnoordhuis: brainproxy: oh sorry, typo [19:05] bnoordhuis: auto-complete typo even [19:05] PastorBones: what is the latest stable build of Node? [19:05] springmeyer has joined the channel [19:05] brainproxy: 0.4.12 [19:05] PastorBones: maybe master won't work for me on winxp [19:06] PastorBones: brainproxy, thanx [19:07] PastorBones: k, I'll try to make 0.4.12 [19:07] aaroninfidel has joined the channel [19:07] PastorBones has left the channel [19:07] Tobbe__: I have this, but there must be a shorter/better way of solving it! http://paste2.org/p/1654298 [19:08] aaroninfidel: can someone point me into a direction on how I could create a basic web server using views/public directories in node? [19:08] ph^ has joined the channel [19:08] brainproxy: aaroninfidel: have you looked into the connect and/or express? [19:08] NetRoY has joined the channel [19:08] aaroninfidel: brainproxy: I have, but I want to build my own for learning purposes. [19:09] mjr_ has joined the channel [19:10] brainproxy: aaroninfidel: "The Node Beginner Book" and "Hands-on Node.js" ebooks may be helpful to you, for a hands on looking at building some stuff [19:10] DrMcKay: Tobbe__: caolan/async on github [19:10] tjholowaychuk: aaroninfidel look at existing implementations (connect, node-static, etc) [19:11] tjholowaychuk: best way to learn IMO [19:11] brainproxy: yeah, looking at others code is a great way to learn, probably better [19:11] brainproxy: just depends on your starting point, though [19:11] Tobbe__: DrMcKay: and if I don't want to pull in yet another dependency? [19:11] DrMcKay: Tobbe__: do it by hand, then [19:12] Tobbe__: :) that's what I did at that paste2 link there :) [19:12] Tobbe__: but there must be a better way to do it, even when doing it by hand! [19:12] Tobbe__: Or isn't there? [19:12] Tobsn has joined the channel [19:14] CStumph_ has joined the channel [19:16] gregpascale has joined the channel [19:17] bergie has joined the channel [19:18] perezd has joined the channel [19:18] austinbv has joined the channel [19:19] raj_90 has left the channel [19:21] TomY has joined the channel [19:21] Aiden has joined the channel [19:22] devrim has joined the channel [19:22] micheil has joined the channel [19:22] vidi has joined the channel [19:23] AaronMT has joined the channel [19:25] Murvin: what is the best way to make console.error write to a file? (while console.log just stdout) [19:25] tjholowaychuk: Murvin 2> myfile [19:26] kriszyp has joined the channel [19:26] aho: i.e. redirect stderr to a file [19:26] Murvin: yeah.. unix.. [19:26] Murvin: oh. [19:26] aho: windows also got stdout and stderr [19:26] aho: (and stdin for that matter) [19:26] slicky: stleft stright stside-to-side [19:26] smtlaissezfaire has joined the channel [19:27] aho: it's &2> or something like that... i always have to google it up :> [19:27] Murvin: but, if I'm in production mode, i still get stderr, right? [19:27] ttpva has joined the channel [19:27] slicky: production mode in express? [19:27] Murvin: i was thinking about overwrite the fs stream for error. lol.. yeah.. 2> is good. [19:27] tjholowaychuk: aho that's to reference the stream, so you can do >&2 for example [19:28] Murvin: yes.. Env=production [19:32] sneakyness_wk has joined the channel [19:32] sneakyness_wk has joined the channel [19:32] trotter has joined the channel [19:33] JaKWaC: Anyone know of a rpm for node? Preferably one with a spec file I can build myself. [19:33] CarterL has joined the channel [19:33] romanb has joined the channel [19:34] DrMcKay: JaKWaC: there's an open ticket at Fedora's bugzilla [19:34] Vertice: JaKWaC: i'd recommend nvm [19:34] Vertice: personally [19:35] DrMcKay: and what Vertice says, nvm is awesome [19:35] JaKWaC: My guess is thats very similar to rvm? [19:35] Vertice: not a ruby person, but i think so [19:35] Vertice: node moves so fast you often need to run multiple versions in paralel [19:36] JaKWaC: Ya, I was hoping for a RPM that I could use --prefix on. [19:36] JaKWaC: For me RPMs are nice as we can run builds with jenkins and put them in our repo so we can access the builds anywhere on our network. [19:37] JaKWaC: I look for an easy way to put node into production at my company. [19:37] blessYAHU has joined the channel [19:38] DrMcKay: JaKWaC: you should search Fedora bugzilla, there was a spec somewhere [19:38] JaKWaC: k Thanks. [19:38] blessYAHU has joined the channel [19:38] blessYAHU has joined the channel [19:38] forestmonster has joined the channel [19:39] TooTallNate has joined the channel [19:39] Renegade001 has joined the channel [19:39] blessYAHU has joined the channel [19:40] guidocalvano has joined the channel [19:40] blessYAHU has joined the channel [19:40] devrim has joined the channel [19:40] robi42 has joined the channel [19:41] blessYAHU has joined the channel [19:41] guillermo has joined the channel [19:41] blessYAHU has joined the channel [19:42] Barakhyahu has joined the channel [19:42] guidocalvano: hey guys... is it possible that if node (4.8) is confronted with a particularly longrunning function, that any calls to function invoked by setinterval are executed anyway? [19:42] guidocalvano: before finishing the call to the longrunning function? [19:43] Barakhyahu has joined the channel [19:43] guidocalvano: (*and girls?) [19:43] wereHamster: where does child_process.spawn write stdout/stderr if I don't explicitly process them? [19:43] Barakhyahu has joined the channel [19:44] DrMcKay: wereHamster: it's lost forever, mwhahahaha. [19:44] wereHamster: that's fine. I just want to make sure that it won't block my app or something [19:44] Barakhyahu has joined the channel [19:44] wereHamster: in case a pipe fills up or someting [19:45] Barakhyahu has joined the channel [19:45] tomtomaso has joined the channel [19:45] shipit_ has joined the channel [19:45] Barakhyahu has joined the channel [19:46] JSManiacs has left the channel [19:46] Barakhyahu has joined the channel [19:47] wookiehangover has joined the channel [19:48] guidocalvano: anyone...? [19:48] Barakhyahu has joined the channel [19:49] Marak: lol tjholowaychuk [19:49] tjholowaychuk: noop? [19:49] tjholowaychuk: haha [19:49] whitman has joined the channel [19:49] Marak: tjholowaychuk: someone blogs about node, mentions three of your projects, then you comment on the blog and call the author lazy for not mentioning a 4th [19:49] Barakhyahu has joined the channel [19:50] Marak: http://coding.smashingmagazine.com/2011/09/16/useful-node-js-tools-tutorials-and-resources/#comments [19:50] tjholowaychuk: it is lazy, it's just a list copy/pasting some descriptions [19:50] Barakhyahu has joined the channel [19:50] stepheneb has joined the channel [19:50] Marak: rolfcopter has taken off from the loling pad and is enroute to lulzcity [19:51] tjholowaychuk: good stuff [19:51] Barakhyahu has joined the channel [19:52] Barakhyahu has joined the channel [19:53] Barakhyahu has joined the channel [19:53] _JSilva has joined the channel [19:53] Barakhyahu has joined the channel [19:53] yept has joined the channel [19:54] Barakhyahu has joined the channel [19:55] arlolra has joined the channel [19:55] aho: anyone knows when let and const will land in v8? [19:56] aho: well.. const is there, but it behaves just like var :) [19:56] arlolra: tjholowaychuk: can you take a look at this for me https://github.com/geeklist/www/commit/743116ce4a2bd852c5440a0ff94299a43f83a25f [19:57] arlolra: tjholowaychuk: why would app.helpers() change on page refresh? [19:58] tjholowaychuk: arlolra helpers() definitely shouldn't, only dynamicHelpers() [19:58] arlolra: it is though [19:58] omni5cience: Marak trollololol [19:58] arlolra: go to staging.geekli.st [19:58] arlolra: check the source for ?md5= [19:58] arlolra: refresh your page [19:58] arlolra: check again [19:59] qbert65536 has joined the channel [19:59] tommg has joined the channel [19:59] Marak: :p [19:59] tjholowaychuk: arlolra taking a closer look [20:00] markwubben has joined the channel [20:00] arlolra: ty [20:00] Marak: its even better tjholowaychuk because they tweeted last night looking for libs, super lazy [20:00] JaKWaC: tjholowaychuk: Thats pretty much all smashingmagazine is. [20:00] Marak: so i agree [20:00] Marak: :-D [20:00] euforic has joined the channel [20:00] arlolra: Marak: can hook.io work without a master? [20:00] arlolra: slave to slave only? [20:00] arlolra: peer 2 peer [20:00] heavysixer has joined the channel [20:00] Marak: arlolra: how do you have a client-server without a server? [20:01] Marak: arlolra: all comm channels are bi-directional [20:01] Marak: arlolra: role of server / client is not really important [20:01] arlolra: i want client-client [20:01] gazumps856 has joined the channel [20:01] arlolra: not server [20:01] arlolra: no server [20:01] Marak: arlolra: how make tcp connection without server [20:01] adambeynon has joined the channel [20:01] Marak: arlolra: like, terminology is important here [20:02] arlolra: sorry [20:02] Barakhyahu has joined the channel [20:02] arlolra: let me be clear [20:02] arlolra: all the hook communicate through a master [20:02] Barakhyahu has joined the channel [20:02] Marak: arlolra: if you have a one level tree, yes [20:02] arlolra: am i correct in that? [20:03] devrim has joined the channel [20:03] galaxywatcher has joined the channel [20:03] Venom_X: arlolra, you mean p2p? [20:03] arlolra: ok, how can i get the hooks to not have to do that to talk to each other [20:03] arlolra: get rid of the master [20:03] arlolra: yyes [20:03] arlolra: i said that above [20:03] arlolra: p2p [20:03] AaronMT has joined the channel [20:03] neilk_ has joined the channel [20:04] Barakhyahu has joined the channel [20:04] Venom_X: yeah, I'm interested to know aswell [20:04] arlolra: :) [20:04] Marak: arlolra: that cant really happen till I land the DHT stuff [20:04] Marak: and implement a proper gossip [20:04] Marak: its not a trivial issue [20:04] arlolra: so it's in the works [20:04] Marak: 100% [20:05] arlolra: no, i don't suspect it is [20:05] arlolra: i was just wondering [20:05] Marak: yes, we need some dns magic too from JasonSmith [20:05] Marak: prob months out [20:05] arlolra: ok [20:05] arlolra: thanks [20:06] localhost has joined the channel [20:06] nibblebot has joined the channel [20:06] DrMcKay: does anyone have some spare creationix lying around? I need him. [20:07] arlolra: tjholowaychuk: the code works fine locally .. on heroku is problem [20:07] andyl has joined the channel [20:07] tjholowaychuk: arlolra ohhhhh [20:07] tjholowaychuk: interesting... [20:07] Barakhyahu has joined the channel [20:07] tjholowaychuk: hmm [20:08] arlolra: hmm indeed [20:09] aheckmann has joined the channel [20:09] arlolra: any ideas? [20:10] Marak: arlolra: if you know about that stuff, ill take patches / deps for doing the DHT / gossip [20:10] Marak: arlolra: i know isaacs is working on gossip [20:11] JaKWaC: Can I run a "hook cloud" and separate it out across two machines right now? Or is that part of the problem your trying to solve with the discovery? Like is there a way to say "You should look on these ips for masters to connec to first" [20:11] arlolra: Marak: https://github.com/stbuehler/nodejs-dht-bencode ? [20:12] Marak: JaKWaC: you can just pass in explicit options to dnode [20:12] Marak: JaKWaC: and hardcode the ips and ports in the Hook constructor [20:12] Marak: when you create a new hook [20:12] potasz has joined the channel [20:16] Benn has joined the channel [20:17] JaKWaC: I was looking through hook.io and it looks like it only supports unix sockets right now. So doing remote hosts would require modifications to hook.io [20:17] astropirate has joined the channel [20:17] Remoun has joined the channel [20:18] arlolra: tjholowaychuk: sorry to bug, no ideas? [20:18] adulteratedjedi has joined the channel [20:18] tjholowaychuk: arlolra not off hand no sorry, unless you guys or heroku are doing some auto-reloading stuff [20:18] stisti has joined the channel [20:18] Barakhyahu has joined the channel [20:18] tjholowaychuk: if you can definitely chuck a breakpoint in here [20:20] jamescarr has joined the channel [20:20] Barakhyahu has joined the channel [20:20] jamescarr: hey, how come current directory /node_modules doesn't show up in require.paths? [20:21] dreamdust has left the channel [20:21] softdrink has joined the channel [20:21] junkee[] has joined the channel [20:21] arlolra: did'nt require.apths go the way of the dodo? [20:21] robi42 has joined the channel [20:22] isaacs: arlolra: worse [20:22] isaacs: arlolra: it went the way of "if you touch it, it blows up" [20:23] Barakhyahu has joined the channel [20:23] isaacs: can't even *look* at it [20:23] isaacs: (require("module").globalPaths will tell you where node looks in addition to module.paths) [20:23] jamescarr: oh really? [20:23] jamescarr: wow [20:24] arlolra: isaacs: ha [20:24] jamescarr: thanks [20:24] isaacs: you can still set that with the NODE_PATH env [20:24] jamescarr: module.paths is better [20:24] isaacs: you just can't monkey with it at run-time. that was a mistaken design [20:24] jamescarr: yeah [20:24] Barakhyahu has joined the channel [20:24] arlolra: it went the way of the people who try to clone dinosaurs from amber [20:24] jamescarr: in the days of old, I used to unshift to require.paths [20:25] Barakhyahu has joined the channel [20:25] jamescarr: how come module.paths isnt read only? [20:25] jamescarr: I can still tack stuff ontoit [20:27] Barakhyahu has joined the channel [20:28] wereHamster: I have a shell script which works when I execute it directly, but doesn't if I execute it with child_process.spawn [20:28] wereHamster: what could be the reason? [20:28] slifty has joined the channel [20:28] markwubben has joined the channel [20:28] ashnur has joined the channel [20:29] AvianFlu: what does the shell script do [20:30] devrim has joined the channel [20:30] ashnur: nothing? [20:30] wereHamster: basically, git init and git clone [20:31] wereHamster: it hangs in git clone [20:31] wereHamster: sorry, git init and git fetch, and hangs in git fetch [20:32] Lemon|mbp_ has joined the channel [20:32] slifty_corsair has joined the channel [20:33] jamescarr: is it considered okay to put files in node_modules? [20:33] kriszyp has joined the channel [20:35] N0va` has joined the channel [20:37] dob_ has joined the channel [20:37] Xano has joined the channel [20:37] arlolra has left the channel [20:38] heavysixer has joined the channel [20:38] Dheenu has joined the channel [20:39] wbednarski has joined the channel [20:39] hornairs has joined the channel [20:40] saikat has joined the channel [20:40] k1ttty has joined the channel [20:40] elijah has joined the channel [20:41] dmkbot: joyent/node: 03seebees: Tests for Sockets - https://github.com/joyent/node/issues/1699 [20:42] hydrozen has joined the channel [20:43] hydrozen: when i update my npm packages, i get this: npm WARN Invalid range in engines.node. Please see `npm help json` ~v0.4.0. Can I ignoreÉ [20:43] hydrozen: ? [20:43] dheenu: Is there a eclipse plugin for node.js I would like to get some content assist [20:43] dheenu: doesnt look like there is one [20:44] isaacs: hydrozen: get a newer npm [20:44] dheenu: can anyone help please? [20:44] isaacs: ircretary: inst hydrozen [20:44] ircretary: hydrozen: `curl http://npmjs.org/install.sh | sh` (or, if there are permission issues, you can try: `curl http://npmjs.org/install.sh | sudo sh`) [20:44] r04r has joined the channel [20:44] r04r has joined the channel [20:44] Aphelion has joined the channel [20:44] Aphelion has joined the channel [20:45] hydrozen: thanks [20:45] robhawkes has joined the channel [20:45] PastorBones has joined the channel [20:45] hydrozen: i thought npm update was updating npm too [20:45] dheenu: Is there a eclipse plugin for node.js I would like to get some content assist? [20:45] tylerflint has joined the channel [20:47] jamescarr: no [20:47] jamescarr: dheenu, you don't need it :-P [20:47] qbert65536: dheenu, PhpStormg, WebStorm supports it fully [20:47] omni5cience: just use vim [20:47] devrim has joined the channel [20:47] omni5cience: :P [20:47] qbert65536: dheenu, and ignore people that say you dont need an IDE [20:47] jamescarr: qbert65536, really!? [20:47] tommg: or emacs [20:47] qbert65536: jamescarr, totally [20:48] jamescarr: qbert65536, I am guessing IntelliJ supports it to then since PHPStorm is based on it? [20:48] gkatsev: webstorm supports node? [20:48] dheenu: @jamescarr the thing is i am not very good at js [20:48] gkatsev: jamescarr: probably [20:48] PastorBones: I was able to get node and npm to install under CYGWIN, but now I'm getting the ECONNREFUSED when trying to install packages via npm. I created the /etc/resolve.conf file with the google nameservers and I can ping registry.npmjs.org [20:48] gkatsev: dheenu: read eloquentjavascript.net [20:48] colinclark has joined the channel [20:48] isaacs: PastorBones: use a virtual machine in vmware or virtualbox [20:48] isaacs: PastorBones: cygwin is a ghetto [20:48] jamescarr: I gota free intelliJ license gathering dust. I might actually use it now [20:48] isaacs: PastorBones: or, wait for native windows support [20:48] jamescarr: isaacs, YES [20:48] skm has joined the channel [20:48] isaacs: weeks, not months [20:48] jamescarr: isaacs, I have to use cygwin at work. Makes me cry [20:48] omni5cience: well to be fair you done _need_ an IDE, but I'm just kidding around [20:48] gkatsev: jamescarr: intellij is now free if you don't need J2EE. [20:49] isaacs: it's so bad. [20:49] isaacs: jamescarr: ^ [20:49] PastorBones: thanx isaacs, I'll give vmware a go then [20:49] jamescarr: isaacs, not as good as a real unix environment [20:49] omni5cience: s/done/don't/ [20:49] gkatsev: jamescarr: take a look at Portable Ubuntu [20:49] Draggor: virtualbox is amazing [20:49] brianc: yeah virtualbox is the way to go [20:49] PastorBones: virtualbox better than vmware? [20:49] isaacs: jamescarr, PastorBones: that's to the help from deanlandolt, we may see a slightly kludged-together version that works with msysutils next weekish [20:49] jamescarr: gkatsev, if I could use ubuntu I would... it's a *cough* corporate environment ;) [20:49] Draggor: Easy to use, great performance [20:49] dheenu: @gkatsev thanks [20:49] Draggor: runs on everything [20:49] isaacs: PastorBones: so, if you have git, then you'll already have what you need. [20:50] gkatsev: jamescarr: "Portable Ubuntu" it's a product. it uses the co-linux architecture to run ubuntu inside of windows [20:50] brianc: PastorBones: virtual box is free, can host linux or windows on top of windows, linux, or mac [20:50] Draggor: It's interop with the host OS has gotten pretty dang nice too [20:50] PastorBones: well, I fell in love with node.js last night and I'm itching to get something written :D [20:50] Draggor: Just be sure to install the guest additions once you've got the VM installed [20:50] jamescarr: what's a good description of process.nextTick? [20:50] jmoyers has joined the channel [20:50] dheenu: I've just started to play with node [20:50] brianc: PastorBones: sweet. higly recommend virtual box + ubuntu if you're new to linux [20:50] jamescarr: updating some training docs and I'm trying to revise my current statements on it [20:50] dheenu: its is cool [20:50] gkatsev: or just install a server linux on the vm and ssh into it [20:51] Barakhyahu has joined the channel [20:51] brianc: jamescarr: schedules the supplied function to be run at the beginning of the next event loop cycle [20:51] PastorBones: brianc, sorry, until linux supports some sort of directx for games, I'm stuck on windows lol [20:51] gkatsev: jamescarr: http://sourceforge.net/projects/portableubuntu/ [20:51] gkatsev: PastorBones: dual boot ftw [20:51] PastorBones: ACTION <3 ubuntu though [20:51] astropirate: PastorBones: dual boot [20:51] astropirate: just do go the appple route :p *shrugs* [20:51] brianc: PastorBones: just run virtualbox on windows and host ubuntu there...then you can node your heart out without having to deal with the cygwyn madness [20:52] PastorBones: astropirate, did you just suggest MAC? [20:52] Barakhyahu has joined the channel [20:52] astropirate: PastorBones: NOO!! [20:52] PastorBones: oh..I was about to say [20:52] astropirate: PastorBones: lol i said not to get one [20:52] qbert65536: I still prefer dual boot [20:52] brianc: qbert65536: me too [20:52] robertfw has joined the channel [20:52] gkatsev: astropirate: you said "do" you wanted to say "dont" [20:52] astropirate: yah i meant don't [20:52] PastorBones: IE & MAC can kiss my arse [20:52] astropirate: :D [20:52] Barakhyahu has joined the channel [20:53] gkatsev: also, you actually can get directX on linux [20:53] PastorBones: question: [20:53] PastorBones: is there anything Node can't do? [20:53] PastorBones: limitations? [20:53] gkatsev: your laundry [20:53] astropirate: end world hunger [20:53] smathy: Sex. [20:53] qbert65536: PastorBones, hand jobs [20:53] DrMcKay: coffee [20:53] brianc: PastorBones: don't write a database in node [20:53] astropirate: LOL [20:53] gkatsev: your mom [20:53] Barakhyahu has joined the channel [20:53] isaacs: i like the mac [20:53] brianc: PastorBones: deterministic multi-threaded concurrency it cannot do [20:53] PastorBones: I was interested in couchdb, but a bit worried about security for using it with user registration/login [20:53] jamescarr: brianc, thanks... that reads better [20:54] DrMcKay: well, it can even do a window manager. [20:54] gkatsev: PastorBones: http://www.phoronix.com/scan.php?page=article&item=mesa_gallium3d_d3d11&num=1 [20:54] DrMcKay: https://github.com/mixu/nwm [20:54] isaacs: it's more humane than most unixes, imo [20:54] isaacs: i wouldn't run a server on it, but whatever. [20:54] ecin has joined the channel [20:54] astropirate: isaacs: macs are nice i hate their philosophy [20:54] jamescarr: brianc, do you think it's still a valid statement though to say it's a good way to have something be called asynchronously? [20:54] astropirate: *apple's [20:54] DrMcKay: I'm wondering if do MBPs really get so hot as people say [20:54] smathy: Yep. [20:54] xerox: yes :| [20:54] Barakhyahu has joined the channel [20:54] broofa_ has joined the channel [20:54] slifty has joined the channel [20:55] bnjmn has left the channel [20:55] xerox: unevenly too, so you burn one hand and the other is fine [20:55] smathy: Only a LAPtop if you have an asbestos lap. [20:55] brianc: jamescarr: yeah, process.nextTick is the best way to ensure a function gets called async. when you call process.nextTick(function() { ... }) that function will _NOT_ execute until the next event loop cycle [20:55] DrMcKay: lol, to be more precise: does vim + node.js get them hot? [20:55] xerox: maybe the Air is different tho [20:55] smathy: DrMcKay… no. [20:55] smathy: DrMcKay… video. [20:55] DrMcKay: smathy: like video in video games or like video in youtube? [20:56] smathy: Even just in youtube. [20:56] gkatsev: unless you have like 50000 vim instances and 5000000000 node instances running [20:56] jamescarr: brianc, hmmm.. what determines the next event loop cycle? [20:56] piscisaureus has joined the channel [20:56] brianc: jamescarr: when the current event loop cycle is done. :) [20:56] JaKWaC: My MacBook was getting crazy hot quick for the past few days. [20:56] smathy: gkatsev… and all those node instances are responding to an equally high number of events. [20:56] gkatsev: it's because they dont have any goddamn vents [20:56] JaKWaC: Turned out I had some random Ruby process in a crazy loop consuming like 80% of my cpu [20:56] brianc: jamescarr: basically once your function & it's callstack return [20:57] smathy: DrMcKay… point is that they intentionally use the aluminium case as a heat sink. [20:57] JaKWaC: It had been running for days. [20:57] gkatsev: JaKWaC: there's your problem. You were using ruby. [20:57] DrMcKay: smathy: I actually like that idea [20:57] perezd has joined the channel [20:57] smathy: DrMcKay… me too, I love my MBP. [20:57] smathy: DrMcKay… just that when I want to actually put it on my lap, I bring some insulation. [20:58] DrMcKay: lol [20:58] DrMcKay: I'll make sure to carry something with me [20:58] DrMcKay: oh, but wait [20:58] DrMcKay: it means that I can't use it in bed? [20:58] smathy: DrMcKay… sitting cross-legged, so that only the edges of my 17" MBP touch my legs is workable. [20:58] PastorBones has joined the channel [20:58] brianc: jamescarr: think of the event loop like a list of queue data structures of instructions for node to execute. when you do process.nextTick it gets pushed into the beginning of the next queue [20:58] smathy: DrMcKay… I use a Stable Table™ in bed. [20:58] brianc: jamescarr: i dunno if that makes sense [20:59] JaKWaC: smathy: Do you carry your 17" MBP around lot? I'm looking at buying a personal MBP but not sure what I want. I currently work on 13" [20:59] DrMcKay: smathy: I'll check it out, thanks [20:59] TomY has joined the channel [20:59] smathy: DrMcKay… the fans aren't positioned well for a soft surface either, so in bed with it on your lap - your lap heats up, on the covers, the fan is blocked and makes things heat up even quicker. [20:59] jamescarr: brianc, it doesn't. I get the event loop, but I always have trouble describing it adequately [20:59] arkx has joined the channel [20:59] medice has joined the channel [21:00] jamescarr: I mean, calling process.nextTick with a bunch of functions doesn't really mean you'll run the code in parallel, right? [21:00] smathy: JaKWaC… I bring it to/from work every day (but I drive) and take it to our offices in TJ on a regular basis (again, driving). It's too big for an airplane. [21:00] astropirate: I want to make High-end Linux boxes... not sure if there is a market for it [21:00] hij1nx_ has joined the channel [21:00] smathy: JaKWaC… every replacement I get I think about getting the 15 - but I work on it at home a lot, and resolution is king. [21:00] shanez has left the channel [21:01] smathy: (at work I have a cinema) [21:01] brianc: jamescarr: no, it's not parallel it's just "later." Like "hey, do this as soon as you are bored, but not right this second" and node has ADHD so it gets bored as soon as you stop telling it what to do and checks its list of things you asked it to do as soon as it got bored [21:01] kimico has joined the channel [21:01] stagas has joined the channel [21:01] smathy: "node has ADHD" :) [21:01] JaKWaC: Ya, I only do coding, so resolution isn't that big of a deal for me. [21:02] josdehar has joined the channel [21:02] smathy: JaKWaC… I only do coding, so resolution is really important to me :) [21:02] brianc: jamescarr: and once it gets bored and has nothing to do it just sits around waiting for I/O to complete. and if there's no pending I/O (which is also in its 'do this when you're bored' list) it gets REALLY bored. so bored it dies. [21:02] divoxx has joined the channel [21:02] JaKWaC: Do you really need that MASSIVE display for code lol [21:02] broofa_ has joined the channel [21:03] smathy: JaKWaC… "need" - heh, you jest - we're working on supercomputers. [21:03] JaKWaC: brianc: lol thats pretty good. [21:03] sneakyness_wk has joined the channel [21:04] smathy: JaKWaC… I just mean that when I look at what I do on a 15, I miss that extra space for laying out my editor, web, and console. [21:04] smathy: JaKWaC… and the 17 is only slightly heavier than the 15, and only slightly bigger (the 15 is really a 15.4). [21:05] DrMcKay: I'm used to 11.6", 13" should be OK for me [21:05] JaKWaC: I went to dropbox the other month and everyone there is on a 13 Air with 30 inch externals lol [21:05] smathy: Yeah, I wish I could love that 13, or the Air. [21:05] smathy: I can't do the air, can't live without my 8GB of RAM. [21:06] Aikar: i cant work with less than 19-20~" [21:06] Aikar: dual 23" at home is ideal [21:06] Aikar: 23.5* [21:06] smathy: The new MBP will drive dual cinemas. [21:06] smathy: ...as well as it's own display. [21:06] maushu has joined the channel [21:06] dmkbot: joyent/libuv: 03piscisaureus: uv_strerror woes - https://github.com/joyent/libuv/issues/187 [21:06] Aikar: well, this has to be the coolest problem ever for not being able to leave work [21:06] JaKWaC: GO THUNDERBOLT! [21:07] Aikar: my beer bottle isnt empty yet! [21:07] DrMcKay: Aikar: lol [21:07] JaKWaC: So nice to have a single cable lol [21:07] DrMcKay: Aikar: where should I send my CV to? [21:07] smathy: Yeah, reason alone to upgrade. [21:07] smathy: My boss is trying to get me to upgrade to the latest. [21:07] Aikar: send it and 1000$ app fee to aikar@aikar.co [21:07] Aikar: * not gauranteed to be accepted, app fee non refundable [21:08] DrMcKay: lol [21:08] smathy: I'm still working on getting beer added to our pizza and Call of Duty Fridays. [21:08] DrMcKay: oh, but wait [21:08] DrMcKay: I work at home [21:09] Aikar: were a small/med sized company, 300 something employees? our marketing group broke the beer barrier lol [21:09] smathy: Drinks *every* afternoon for DrMcKay [21:09] DrMcKay: does it mean that I can have a beer anytime I want? [21:09] smathy: Aikar… nice, we're 500, but 450 of them are in Mexico :) [21:09] smathy: DrMcKay… only when the client isn't there ;) [21:09] Aikar: so we have beer, a slide from 3rd floor to 2nd, fuusball, ping pong, 360, wii, free sodas/drinks, free food, free cake. [21:09] mac^ has joined the channel [21:09] smathy: Aikar… wait, what? A slide? [21:09] Aikar: yep [21:10] brianc: Aikar: where do you work? [21:10] smathy: Aikar… fuck me, you've set a new bar! [21:10] Aikar: the other companies in area was quite confused why there was a giant slide in the parking lot for lik ea month straight :P they had problems installing it so it sat there a while [21:10] smathy: Aikar… serious question - how much do all the toys get used? [21:10] mjijackson has joined the channel [21:11] Aikar: slides used mostly daily, the ping pong daily... i know cause i sit under it (by the slide) and hear them upstairs all the time, and balls fall down slide [21:11] broofa has joined the channel [21:11] Aikar: and my entire group is armed with nerf guns [21:11] Aikar: last social event we had ended up with nerf wars [21:11] neilk_ has joined the channel [21:11] Aphelion has joined the channel [21:11] Aikar: i carry a full auto NERF Stampede :P [21:11] smathy: Aikar… like, you're having free-form creative meetings while 360ing? Or it's a big hang-out-after-work culture there? [21:11] astropirate: Aikar: what is this company? [21:12] simenbrekken has joined the channel [21:12] Wizek has joined the channel [21:12] Aikar: www.icontact.com :P youtube us... our culture is a big thing in our recruitment advertising [21:12] Xano_ has joined the channel [21:12] Aikar: its rated best place to work in our state [21:13] Aikar: earlier this year we decorated every section of the building to diff parts of the world [21:13] Aikar: though we are a PHP shop lol [21:13] sneakyness_wk has joined the channel [21:14] nibblebo_ has joined the channel [21:14] astropirate: ohh too bad you guys aren't looking for node people :p [21:14] smathy: ...so there's a lot to make up for :) [21:14] wookiehangover has joined the channel [21:14] DrMcKay: Aikar: I will convert all your PHP apps to node if you provide me with infinite beer. [21:14] Aikar: well were pretty strict on experience ... alot of good people here. [21:15] Aikar: specially my groups code base [21:15] DrMcKay: Aikar: what VCS? [21:15] Aikar: ... :( [21:15] Aikar: svn :/ [21:15] markbao has joined the channel [21:15] brianc: dated folders? [21:15] Aikar: they want to move to git [21:15] JaKWaC: lol [21:15] Aikar: but we have a pretty robust dev environment [21:15] DrMcKay: windows network share [21:15] JaKWaC: brianc: Email [21:15] Aikar: and the cost of switching = alot of effort [21:16] brianc: JaKWaC: aww yeah [21:16] devrim1 has joined the channel [21:16] jamescarr: is it true to say NODE_ENV is standardized yet but most apps use it? [21:16] DrMcKay: Aikar: why? it's really simple [21:16] jamescarr: I mean, it is the "de-facto standard", right? [21:16] adulteratedjedi has joined the channel [21:16] Aikar: DrMcKay: git is simple yes, updating the 1000 working parts of our CI infrastructure to use git instead of svn isnt [21:16] devrim2 has joined the channel [21:16] DrMcKay: Aikar: ah, dependencies [21:17] Barakhyahu has joined the channel [21:17] Aikar: things like package construction, unit test runners, stories/bug tracking VCS integration [21:17] Aphelion has joined the channel [21:17] Aikar: we have a really nice dev environment here [21:17] Aikar: and its currently designed for svn [21:17] Barakhyahu has joined the channel [21:18] devrim1 has joined the channel [21:18] DrMcKay: Aikar: you can always use git with svn seemlessly [21:18] Aikar: so apply if your in the area :P were hiring [21:18] rfay has joined the channel [21:18] Aikar: i wouldnt say seemlessly [21:18] Aikar: ive been investigating that already [21:18] astropirate: I LOL everytime i hear the word "WebMaster" [21:18] Aikar: i use it for one project [21:19] Barakhyahu has joined the channel [21:19] brianc: astropirate: "WebMaster" http://www.halloweencostume-ideas.com/images/PM6801377.jpg [21:19] DrMcKay: Aikar: what's wrong with that? [21:19] Aikar: i found some cool halloween stuff at lowes i wanna get [21:20] PastorBones: virtualbox is giving me an error when trying to import the turnkey ubuntu ovf :/ [21:20] Barakhyahu has joined the channel [21:20] Aikar: DrMcKay: git-svn isnt a perfect workflow replacement. theres a bit to learn, pitfalls to learn, understanding how to bridge the a git workflow into an svn workflow, then theres the issue of typical git-svn dev with local git branches not commiting work to actual svn branches [21:20] PastorBones: is there another way to get ubuntu onto vb? [21:20] brianc: PastorBones: don't import that. just download the ubunut iso [21:20] halcyon918 has left the channel [21:20] Aikar: so other coworkers not having access to your code will be an issue [21:21] PastorBones: brianc, ok [21:21] brianc: PastorBones: http://www.ubuntu.com/download/ubuntu/download [21:21] brianc: talk about a redundant url [21:21] JaKWaC: lol [21:21] PastorBones: lol [21:21] Aikar: having a perfect git-svn workflow to replace an svn workflow is research and experience on its own outside of git and svn both [21:21] DrMcKay: Aikar: that's the good thing, I think [21:21] Aikar: DrMcKay: not when it comes to working as a team... [21:21] Aikar: if one person works 1 story only, sure [21:21] Barakhyahu has joined the channel [21:22] DrMcKay: Aikar: can't you simply push those branches? [21:22] Aikar: and that was my point, trying to get git-svn to push to a branch, and then merge it back in, its very easy to blow up your working copy [21:22] devrim has joined the channel [21:22] Aikar: you cant use a simple git-merge [21:22] Barakhyahu has joined the channel [21:22] Aikar: unless you work with git-svn then do the merge with a normal svn merge... but then whats the point? [21:23] smathy: First thing I did here was move them from svn to git. [21:23] brianc: smathy: I moved my company from visual source-safe to mercurial [21:23] Aikar: smathy: like i said, most ppl here want to, its just too much downtime atm. our sys eng team is wanting to, so im sure they are trying to come up with some kind of plan [21:23] Barakhyahu has joined the channel [21:23] smathy: brianc… you mean you established a proper SCM system at your company. [21:24] brianc: smathy: exactly [21:24] bnoordhuis: visual sourcesafe... i still have the scars [21:24] brianc: smathy: saved them from themselves. and then I roooocked them like a hurricaaaane [21:24] smathy: brianc… VSS has cost me more in lost time than any other computer/software/anything. [21:24] brianc: *guitar solo* [21:24] smathy: ACTION imagines it [21:25] Barakhyahu has joined the channel [21:25] smathy: Aikar… no downtime at all here. [21:25] smathy: Aikar… just a bit of retraining, but it was very painless. [21:25] Barakhyahu has joined the channel [21:26] Barakhyahu has joined the channel [21:26] Aikar: smathy: as i said above, our downtime comes from our developer environment integrations. all the internal tools, configurations, and such that issue svn commands [21:26] smathy: Aikar… I started first, with github - still pushing to the old repo with git-svn, and then moved each developer one at a time, then once they were all over, switched off the svn. [21:26] Barakhyahu has joined the channel [21:26] Destos has joined the channel [21:27] devrim has joined the channel [21:27] smathy: Aikar… yeah, we didn't have much of that. Just a deploy tool running from to our prod environment. Very easily replaced. [21:27] Barakhyahu has joined the channel [21:28] JSManiacs has joined the channel [21:28] dshaw_ has joined the channel [21:28] broofa has joined the channel [21:28] Aikar: like we write up work as a story in jira, we go to the story, click a button, it branches svn for you with a branch that matches jira ticket, and spawns up virtual machines and sets up an entire clone of our entire app stack. you work in branch, commit, it auto runs unit tests. hit redeploy, test changes. merge back in (auto unit test), build a package. [21:29] Barakhyahu has joined the channel [21:29] Aikar: all of that is constantly doing SVN things [21:29] Barakhyahu has joined the channel [21:30] Aikar: we have a pretty awesome environment. so alot that would need updating [21:30] zemanel has joined the channel [21:30] perezd has joined the channel [21:30] devrim1 has joined the channel [21:30] Barakhyahu has joined the channel [21:31] Marak: sudo npm owner add AvianFlu jitsu [21:31] Marak: npm ERR! Error getting user data for AvianFlu [21:31] Marak: npm ERR! 404 '-' is not in the npm registry. [21:31] Marak: derp [21:31] blup has joined the channel [21:31] Aikar: herp [21:31] isaacs: Marak: lowercase [21:31] Barakhyahu has joined the channel [21:31] Aikar: need food decisions for tonight [21:31] Aikar: sushi, or pizza [21:31] Marak: isaacs: magic [21:31] Aikar: local japanese steak house has bogo sushi [21:32] softdrink: safari, y u requesting malformed image urls? (屮゜Д゜)屮 [21:32] knifed has joined the channel [21:32] Marak: isaacs: would it be possible to run a toLowerCase() on string? [21:32] smathy: Aikar… yeah, sounds like it. [21:32] isaacs: Marak: no, because there are some grandfathered-in names that aren't lcased [21:32] Marak: 10-4 [21:32] smathy: Aikar… pizza always wins over sushi for me. [21:33] Marak: http://search.npmjs.org/#/_author/AvianFlu [21:33] Barakhyahu has joined the channel [21:33] Marak: 404 > http://search.npmjs.org/#/_author/avianflu [21:33] Creap: Playing around with node-inspector. How could would it be with a console shared between server side and client side. [21:33] JumpMast3r has joined the channel [21:33] isaacs: Marak: npm search | egrep -o '=[A-Z][^ ]+' | sort | uniq [21:33] Barakhyahu has joined the channel [21:33] isaacs: those guys [21:34] Skomski: Someone here bought BinDiff? [21:34] devrim has joined the channel [21:34] Aikar: smathy: i could do both! :O [21:34] isaacs: Marak: yeah, the _author endpoint in the search site is going based on the "author" field in package.json, not the package maintainer [21:34] isaacs: Marak: so much inconsistency, i know, i know [21:34] isaacs: :) [21:34] CStumph_ has joined the channel [21:34] Barakhyahu has joined the channel [21:34] arnee has joined the channel [21:34] isaacs: Marak: you'll be pleased to know that this is slowly bubbling up to the top of the relevance pile. [21:35] Marak: isaacs: we have very similar issue at nodejitsu with user accounts and couchdb lol [21:35] devrim1 has joined the channel [21:35] Marak: i feel your pain [21:35] Barakhyahu has joined the channel [21:35] isaacs: Marak: the best thing i ever did was restrict it to lower case and no special chars [21:36] quackquack has joined the channel [21:36] DrMcKay: I spent whole day wondering why didn't my login manager work once -.- (I didn't lowercase the email) [21:36] Barakhyahu has joined the channel [21:37] jamescarr: isaacs, am I correct in telling my students that npm isolates transitive dependencies from each other? [21:37] isaacs: jamescarr: yes [21:37] jamescarr: isaacs, mainly, if module a depends on 1.0.1 of module c and module b depends on 1.1.0 of module c, there is no conflict [21:37] jamescarr: cool [21:37] isaacs: jamescarr: http://npmjs.org/doc/folders.html and http://npmjs.org/doc/install.html [21:37] jamescarr: wanted to double check, I thought I was correct [21:37] jamescarr: thanks [21:38] isaacs: jamescarr: specifically: http://npmjs.org/doc/install.html#ALGORITHM [21:38] jamescarr: shortcuts that whole problem that java has [21:38] isaacs: jamescarr: and http://npmjs.org/doc/folders.html#Cycles-Conflicts-and-Folder-Parsimony [21:38] isaacs: jamescarr: not just java. [21:38] isaacs: but yeah :) [21:38] Aiden has joined the channel [21:38] jamescarr: isaacs, I spent an hour today helping a team that was getting multiple versions of the xerces jar in their classpath because the orgname was wrong on one of them... [21:39] DrMcKay has joined the channel [21:39] Barakhyahu has joined the channel [21:39] isaacs: yikes [21:39] jamescarr: then after we got it evicted correctly, it broke because the transitive dep that required xerces wasn't compatible with the newer one [21:39] jamescarr: an effing mess [21:39] brianc: jamescarr: who are you teaching? [21:39] jamescarr: brianc, java developers [21:39] brianc: jamescarr: h0tness [21:40] rasztasd has joined the channel [21:40] Barakhyahu has joined the channel [21:41] rasztasd has left the channel [21:41] khrome_ has joined the channel [21:41] cconstantine has joined the channel [21:41] Barakhyahu has joined the channel [21:42] micheil has joined the channel [21:42] Barakhyahu has joined the channel [21:43] heavysixer has joined the channel [21:43] devrim has joined the channel [21:43] Barakhyahu has joined the channel [21:43] jarek has joined the channel [21:44] Barakhyahu has joined the channel [21:44] CIA-54: libuv: 03Pieter Noordhuis 07writeorder * rf0044c0 10/ (6 files in 3 dirs): win: guarantee write callback ordering - http://git.io/F-8T9Q [21:44] devrim1 has joined the channel [21:45] martinisoft has joined the channel [21:45] Barakhyahu has joined the channel [21:45] devrim2 has joined the channel [21:46] Barakhyahu has joined the channel [21:46] broofa_ has joined the channel [21:46] jarek_ has joined the channel [21:47] bengrue has joined the channel [21:47] PastorBones: ooo, Ubuntu got sexy [21:47] tuhoojabotti: Y [21:47] Barakhyahu has joined the channel [21:48] Barakhyahu has joined the channel [21:49] DrMcKay: is it likely that creationix will be here today? [21:49] netlemur: PastorBones: 11.04? not really imho [21:49] PastorBones: I haven't used it since 10...so a big improvement in the install so far [21:49] guidocalvano has joined the channel [21:50] astropirate: PastorBones: you should see Gnome3 :) [21:50] artnez has joined the channel [21:51] PastorBones: how well is the direct3d support in linux? [21:51] PastorBones: I may have to switch...again [21:51] bnoordhuis: PastorBones: that's a joke, right? [21:51] xerox: I <3 Node.js [21:51] PastorBones: no it's not, I was running Ubuntu before and missed my games [21:51] dmkbot: joyent/libuv: 03piscisaureus: write callback order (windows) - https://github.com/joyent/libuv/issues/188 [21:51] dmkbot: joyent/libuv: 03piscisaureus: write callback order (windows) - https://github.com/joyent/libuv/issues/188 [21:51] PastorBones: so went back to winxp [21:52] bnoordhuis: PastorBones: ... [21:52] PastorBones: PastorBones: http://www.phoronix.com/scan.php?page=article&item=mesa_gallium3d_d3d11&num=1 [21:52] PastorBones: direct3d ^ [21:52] astropirate: WHAT? since when? [21:52] PastorBones: sept. 2010 the article says [21:52] zeropx has joined the channel [21:52] astropirate: i haven't heard of this :S [21:53] robotmay has joined the channel [21:53] PastorBones: astropirate, me either [21:53] DrMcKay: the photo is totally the best illustration [21:53] astropirate: and i follow this crap [21:54] broofa has joined the channel [21:54] astropirate: hmm i wonder when WINE is goign to inegrate this [21:55] liveink has joined the channel [21:56] PastorBones: well that article was 1yr ago...wonder how far it is now :) [21:56] jamescarr: man... came across my oasis collection earlier, been listening to it all day [21:56] arnee has joined the channel [21:56] jamescarr: forgot what an awesome band they are [21:56] PastorBones: is connect-auth the way to go for secure user auth? [21:57] PastorBones: or is there somethin better? [21:57] brianc: PastorBones: everyauth is far superior [21:57] dgathright has joined the channel [21:58] schmolzer has joined the channel [21:58] PastorBones: brianc, haven't seen that one thanx... [21:58] brianc: PastorBones: for doing oAuth based stuff, anyway [21:58] PastorBones: oAuth is fine since anything I'll be doing will be new stuff and not porting [21:59] PastorBones: is there any type of built in security for data streaming in Node? [22:00] Marak: hey, who do i owe a nodejitsu account to ? [22:00] PastorBones: if the terms I used are correct..lol [22:00] Marak: im in an activating mode [22:00] Marak: mood [22:00] astropirate: Marak: me :) [22:00] c4milo: Marak: me [22:00] c4milo: Marak: I want to kick the tires [22:01] Marak: astropirate: c4milo i dont see user names for either of your handles, can you `npm install jitsu -g` then type `jitsu signup` ? [22:01] Marak: you prob signup before we had user names [22:01] astropirate: ohh i need to reboot [22:01] Marak: protip: `npm install npm -g` update that [22:01] astropirate: on windows [22:01] PastorBones: marak: would having an account allow me to 'borrow' code? :D [22:01] Marak: im in #nodejitsu and here [22:01] Marak: PastorBones: ? [22:02] isaacs: Marak: btw, you know you can just call "npmg install jitsu" to do global installs? [22:02] PastorBones: ACTION shrugs [22:02] PastorBones: I'm just learning and learn best by example [22:02] isaacs: npmg is npm's global cousin [22:02] Marak: isaacs: TIL [22:02] isaacs: til? [22:02] Marak: ( today i learned ) [22:02] isaacs: oh, kewl :) [22:02] Marak: lolbbq [22:02] isaacs: TIL!! [22:02] Marak: TIL ^ 2 [22:02] Marak: indeed [22:03] Marak: isaacs: did you see my latest video where i use couch as an event service bus for pushing around bitcoin data? [22:03] Marak: isaacs: it has like 8x buzzwords in it [22:03] diamonds has joined the channel [22:03] Marak: isaacs: http://www.youtube.com/watch?v=Kb4CZmZkegE [22:03] c4milo: amilo@buggersillo:~/Dropbox/Development/buglabs/bugswarm/lib> sudo npm install jitsu -g [22:03] c4milo: Password: [22:03] c4milo: npm ERR! TypeError: Cannot call method 'filter' of undefined [22:03] c4milo: npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/load-package-defaults.js:64:15 [22:03] c4milo: npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/utils/async-map.js:51:11) [22:03] c4milo: npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/find.js:23:20 [22:03] c4milo: npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/utils/graceful-fs.js:31:9) [22:03] c4milo: npm ERR! Report this *entire* log at: [22:03] c4milo: npm ERR! [22:03] c4milo: npm ERR! or email it to: [22:03] c4milo: npm ERR! [22:03] c4milo: npm ERR! [22:03] c4milo: npm ERR! System Darwin 10.8.0 [22:03] c4milo: npm ERR! command "node" "/usr/local/bin/npm" "install" "jitsu" "-g" [22:03] diamonds: woah [22:04] c4milo: oh hai npm [22:04] isaacs: c4milo: outdated npm version. [22:04] diamonds: I'm looking to set up a very simple node.js service on my windows box [22:04] c4milo: isaacs: what?? [22:04] isaacs: c4milo: what's `npm -v`? [22:04] isaacs: c4milo: i'm guessing it's not 1.0.28 [22:04] diamonds: just to recieve requests from a local VM [22:04] c4milo: isaacs: nop [22:05] diamonds: so no IIS or anything like that, just need something to listen on port 9090 e.g. and run a command in windows when my VM POSTS a string of text to it [22:05] jarek has joined the channel [22:05] isaacs: diamonds: sure, you can do that :) [22:05] CIA-54: node: 03Bert Belder 07master * r8b754a9 10/ test/simple/test-regress-GH-1697.js : Add regression test for issue 1697 - http://git.io/1b1jHg [22:06] diamonds: I dl'd the windows node.exe, do I just write my scripts then execute them via PATH/node.exe script.js ? [22:06] diamonds: is there more to it than that? [22:06] brianc: diamonds: yeah [22:06] brianc: diamonds: nope. ain't it beautiful? [22:06] diamonds: ok! :) [22:06] diamonds: I stupidly doubleclicked the node.exe, expecting something to happen :p [22:06] diamonds: I got a nice interactive js interpreter! [22:07] brianc: diamonds: not just a js interpreter. it also can do i/o! [22:07] abjorn has joined the channel [22:07] crodas has joined the channel [22:08] jakehow has joined the channel [22:08] nibblebot has joined the channel [22:08] devrim has joined the channel [22:09] aron_ has joined the channel [22:09] toopay has joined the channel [22:09] brianc: diamonds: if you're new to node two things to note: it's still buggy on windows and the wonderful npm does not yet run on windows [22:09] pplcf: node&windows -> anal pain [22:09] pplcf: trust me [22:09] wdperson has joined the channel [22:09] pplcf: just run VM with some nix os [22:09] willwh: diamonds: virtualbox is your friend :) [22:10] willwh: install ubuntu server if you're not too familiar with linux. [22:10] diamonds: ah, but that's the problem! :) [22:10] willwh: what is? [22:10] diamonds: mo' [22:10] diamonds: http://superuser.com/questions/332527/can-i-run-a-script-on-my-local-windows-machine-from-putty [22:10] brianc: diamonds: while willwh and pplcf are correct, if you're brave press on with windows. the node core team is committed to eventual 1st class support for windows [22:10] toopay has left the channel [22:10] gzmask has joined the channel [22:10] slifty has joined the channel [22:10] willwh: maybe once win8 server is out [22:11] willwh: woot it's gonna be headless by default :D [22:11] gzmask: in wscript, where should the binary libs for obj.lib located? [22:11] diamonds: ^I'm going to write a small script to listen for a post w/a URL then I can curl it from my guest and POST the url to it [22:11] slifty has joined the channel [22:11] diamonds: I haven't used node but hopefully this isn't reaching too far [22:12] brianc: gzmask: I believe you have to add linker paths [22:12] TheJH: diamonds, just some http? sounds easy [22:12] diamonds: yeah [22:12] gzmask: brianc: by using the -Ldir flag? [22:12] diamonds: there doesn't seem to be a better way to communicate from the guest back to the host [22:13] TheJH: diamonds, it'd be a pain to install modules, but node has http support in core [22:13] jbpros has joined the channel [22:13] slifty has joined the channel [22:13] brianc: gzmask: can't remember off the top of my head, you can look in the waf documentation [22:13] perezd has joined the channel [22:13] diamonds: if it can a) listen on a port for a post from a local VM and b) run a script like `'firefox.exe -new-tab ' + url` I'm good [22:13] diamonds: that's all [22:14] brianc: gzmask: I think the flag is just capital L `-L` [22:14] brianc: -L/usr/lib [22:15] brianc: gzmask: but getting waf to send that to g++ is like playing plinko if you don't know what you're doing or you're a noob like me [22:16] gzmask: brainc: ahhh, pain. thanks for the pointers though [22:16] ttpva has joined the channel [22:16] kriszyp has joined the channel [22:16] crodas has joined the channel [22:16] brianc: gzmask: if it's dynamically loaded you'll want to have the compiler add the path to the node module as well if it's not in the standard library load path [22:18] brianc: gzmask: I did this in a non-open source addon recently. best thing is read the waf documentation (though node uses an older version of waf, so read the older documentation) and build with verbose: node-waf configure build -vvv so you can see the g++ commands [22:18] TheJH: diamonds, sounds doable. require('http').createServer(function(req,res){if(req.method=='POST'){... consume the incoming data... require('child_process').spawn('firefox.exe', ['-new-tab', url])};res.writeHead(200);res.end()}).listen(1234) [22:18] dshaw_ has joined the channel [22:18] brianc: gzmask: another option would be ask someone smarter than me [22:18] Nathan__ has joined the channel [22:18] diamonds: TheJH: thanks! [22:18] gzmask: brianc: thanks, that's very useful and informative [22:18] diamonds: I was gonna figure it out tho... I swear [22:18] Lemon|mbp has joined the channel [22:19] sstvmv has joined the channel [22:19] brianc: TheJH: for bonus points send the 204 status code when sending an empty body [22:19] felixhummel has joined the channel [22:20] necrodearia has joined the channel [22:20] TheJH: brianc, what, unexpected inputs? users won't enter unexpected inputs! do you want to critisize my security model? :D [22:20] bnoordhuis: gzmask: in configure() do ctx.env.append_value('LINKFLAGS', '-L/usr/lib') [22:20] crodas has joined the channel [22:20] brianc: hehe [22:22] gzmask: bnoordhuis: where is configure() ? [22:22] brianc: gzmask: in wscript [22:22] DrMcKay: TheJH: lol [22:22] brianc: gzmask: wscript is the file node-waf runs [22:22] crodas has joined the channel [22:23] bergie has joined the channel [22:23] sstvmv has left the channel [22:23] brianc: gzmask: decent reference https://github.com/Sannis/node-mysql-libmysqlclient/blob/master/wscript [22:23] James has joined the channel [22:24] kmiyashiro has joined the channel [22:25] Guest37633: How do I update to the newest version of Node if I installed from source without using Git? [22:25] nibblebo_ has joined the channel [22:25] arnee has joined the channel [22:26] brianc: Guest37633: use nvm, nave, n, clone the git repo, or pull down new sources from wherever you got your last copy and recompile those [22:26] crodas has joined the channel [22:26] gzmask: bnoordhuis: works. <3 [22:27] Guest37633: thanks [22:27] igl1 has joined the channel [22:28] ank has joined the channel [22:29] AaronMT has joined the channel [22:29] Nathan has joined the channel [22:29] boaz has joined the channel [22:29] shipit has joined the channel [22:30] devrim has joined the channel [22:31] mehtryx has joined the channel [22:32] forestmonster has left the channel [22:32] vidi has joined the channel [22:32] sechrist has joined the channel [22:33] robertfw has joined the channel [22:34] sechrist: Is it possible to make a middleware that changes the helpers in expressjs per request? [22:34] sechrist: I'm in a problem where we used a helper in a lot of places, but it needs to be protocol dependent now [22:35] tjholowaychuk: sechrist with middleware you can do res.local(name, val) [22:35] tjholowaychuk: well anywhere, but it could be a middleware [22:36] sechrist: ah perfect [22:36] sechrist: that was simple [22:36] CIA-54: libuv: 03Ryan Dahl 07master * rf00a5e6 10/ test/runner-unix.c : ignore SIGPIPE in tests - http://git.io/ohrBaQ [22:38] mynameisbender has joined the channel [22:38] gzmask: Off from work, it's friday guys! :wq [22:39] sechrist: weekend just started [22:39] sechrist: code time [22:39] pizthewiz_ has joined the channel [22:39] DrMcKay: friday, friday, fun fun fun! [22:39] sechrist: sunday sunday sunday [22:39] sechrist: sunniest day of the weekend [22:39] DrMcKay: oh, true [22:39] anveo has joined the channel [22:40] captain_morgan has joined the channel [22:40] skm has joined the channel [22:42] pt_tr has joined the channel [22:44] Wa has joined the channel [22:45] Aiden has joined the channel [22:45] ttpva has joined the channel [22:47] CIA-54: libuv: 03Igor Zinkovsky 07file_watcher * r19132b2 10/ (9 files in 5 dirs): windows: file watcher (+5 more commits...) - http://git.io/N4bY7Q [22:48] erictj has joined the channel [22:51] nerdy_ has joined the channel [22:51] davidbanham has joined the channel [22:52] halcyon918 has joined the channel [22:53] halcyon918: hey folks, any experience with the Node.JS Neo4J library here? [22:56] Cromulent has joined the channel [22:58] socketio\test\44 has joined the channel [22:59] freeformz has joined the channel [23:02] guidocalvano has joined the channel [23:02] reid has joined the channel [23:02] DrMcKay: halcyon918: nothing here, do you have any specific problem? [23:03] nuck has joined the channel [23:04] CIA-54: libuv: 03Ryan Dahl 07master * rd0a46a5 10/ src/unix/internal.h : HAVE_FUTIMES on osx - http://git.io/Bt31Mg [23:04] ttpva has joined the channel [23:05] deadman87 has joined the channel [23:05] CIA-54: libuv: 03Igor Zinkovsky 07file_watcher * re49246a 10/ src/win/fs-event.c : windows: fire UV_RENAME for FILE_ACTION_RENAMED_OLD_NAME - http://git.io/17onQQ [23:05] Draggor: halcyon918: holy crap I didn't know that was on node, time to start reading [23:06] devongovett has joined the channel [23:06] xtianw has joined the channel [23:06] Lemon|mbp has joined the channel [23:06] deadman87: Good evening gents [23:06] deadman87: :) [23:06] halcyon918: DrMcKay: I was trying to use that lib and noticed it's in coffeescript... well, when I try to inspect the object I get back: function() { [native code] } [23:07] halcyon918: the callback shows the node fine, and it returns a "Node" object (coffeescript) but I can't seem to figure out how to extract my data from it [23:08] DrMcKay: halcyon918: are you sure it's that's more like coffeescript problem [23:08] halcyon918: I don't really get the callback w/ return object though... the callback has the node's JSON as a string, which is ok... but the object I can't seem to introspect [23:08] halcyon918: DrMcKay: hah... I don't know what the problem is [23:09] shipit has joined the channel [23:09] DrMcKay: to be more precise, coffeescript is a problem ;) [23:09] hornairs: tjholowaychuk: i'm @harrybrundage [23:09] halcyon918: so some more context, I'm simply trying to use express to query Neo4j, then return the JSON... [23:10] netlemur has joined the channel [23:10] halcyon918: so in my express function, I call the Neo4j lib and that calls my callback... but by that time I'm out of the express context, so I can't seem to get the Node's JSON back to the requestor [23:11] halcyon918: the source of the Node object says it has a "toString" but even that doesn't seem to work as it's declared in the source... I should get "Node #" but I don't get that... I'm just kinda baffled [23:12] halcyon918: I'm prepared just make REST calls against Neo4j myself... I just wanna be lazy :P [23:12] stagas has joined the channel [23:13] Lemon|mbp has joined the channel [23:13] halcyon918: I'm pretty new to node as well, so it might just be my misunderstanding of node that's the barrier [23:13] Sorella has joined the channel [23:15] bicranial has joined the channel [23:18] CIA-54: libuv: 03Ben Noordhuis 07master * r4487531 10/ (test/test-list.h test/test-tcp-write-error.c): test: check that write_queue_size updates after write error - http://git.io/gSA8TQ [23:18] CIA-54: libuv: 03Ben Noordhuis 07master * r3c0684e 10/ src/unix/stream.c : unix: pass error to write callback in stream cleanup - http://git.io/61FwLQ [23:18] CIA-54: libuv: 03Ben Noordhuis 07master * r75a088e 10/ src/unix/stream.c : unix: remove failed write requests from stream->write_queue_size - http://git.io/pS-EdQ [23:19] xtianw has joined the channel [23:23] CIA-54: node: 03Ryan Dahl 07master * rd750927 10/ (5 files in 2 dirs): Upgrade libuv to 75a088e - http://git.io/slaX4w [23:24] coreb has joined the channel [23:24] justinTNT has joined the channel [23:25] joshkehn has joined the channel [23:27] teknopaul has joined the channel [23:36] twinshadow has joined the channel [23:46] perezd has joined the channel [23:51] Destos has joined the channel [23:52] pastorbones has joined the channel [23:52] pastorbones: ugh, apt-get installed the latest version...how do I uninstall node so that I can re-install the stable? apt-get remove says it isn't installed and it doesn't show in dpkg (yet node -v works) [23:56] skiz_ has joined the channel [23:56] stagas has joined the channel [23:58] dannycoates has joined the channel [23:58] dannycoates: ryah: ping [23:59] mynyml has joined the channel