[00:02] jetienne has joined the channel [00:02] robertfw has joined the channel [00:02] chance- has joined the channel [00:02] zmbmartin: isaacs: I am getting gzip: stdin: unexpected end of file when I run curl http://npmjs.org/install.sh | sudo sh ? [00:06] jldbasa has joined the channel [00:06] frenetic: maybe ur connection closed? [00:12] saschagehlich has joined the channel [00:13] isaacs: zmbmartin: try again, i just updated the script [00:13] isaacs: zmbmartin: it shouldn't be executing gzip explicitly any more [00:13] JSManiacs has left the channel [00:16] zmbmartin: isaacs: working now. Thanks [00:17] fermion has joined the channel [00:17] d0k has joined the channel [00:19] Renegade001 has joined the channel [00:19] schwab has joined the channel [00:23] piscisaureus has joined the channel [00:23] jesster7 has joined the channel [00:23] jesster7 has left the channel [00:24] joshkehn has joined the channel [00:25] joshkehn has left the channel [00:25] ryan[WIN] has joined the channel [00:28] navaru has joined the channel [00:29] dgathright has joined the channel [00:30] hasenj has joined the channel [00:31] navaru: If there's a module on npm that is not maintained anymore, and I've wrote anotherone but I kinda' need the name of the unmaintained one, how should I handle this? [00:31] isaacs: navaru: email the author and work it out [00:31] isaacs: why do you need that name? [00:31] isaacs: that's liable to cause problems if any modules are depending on it [00:32] navaru: it's for the extension chrome/firefox livereload, so changing the name won't be very useful [00:33] isaacs: navaru: whenever possible, i try to let module authors settle this on their own [00:33] navaru: ok, i've emailed the original author [00:33] navaru: thank you :) [00:33] isaacs: navaru: if the author does not respond at all, and your thing is an update to that thing, or fixes some bugs, but is the "same" module, then i'll usually eventually intervene and add you as a maintainer [00:34] navaru: ok, i'll let a few days pass to see what happens [00:35] skyl has joined the channel [00:36] ditesh has joined the channel [00:36] ditesh|cassini has joined the channel [00:38] ceej has joined the channel [00:38] JaKWaC has joined the channel [00:38] jbrokc has joined the channel [00:39] aho has joined the channel [00:43] isaacs: navaru: out of curiousity, what's the module? [00:43] acangiano has joined the channel [00:43] navaru: livereload [00:43] Isaiah has joined the channel [00:45] zackattack has joined the channel [00:45] dylang has joined the channel [00:45] ryan[WIN] has joined the channel [00:46] rknLA has joined the channel [00:47] edenli has left the channel [00:47] Fuu has joined the channel [00:49] paul_k has joined the channel [00:51] shipit has joined the channel [00:52] socialhack has joined the channel [00:53] dgathright has joined the channel [00:53] AlexJJ has joined the channel [00:55] ji0n has joined the channel [00:57] Bonuspunkt has joined the channel [01:01] softdrink has joined the channel [01:08] rknLA: anyone in here know much about mongoose? #mongoosejs is pretty pretty idle [01:08] infynyxx has joined the channel [01:08] random123 has joined the channel [01:09] nickgreenie has joined the channel [01:09] Brandon_R has joined the channel [01:09] Brandon_R: hey guys [01:10] Brandon_R: anyone working on any projects involving realtime canvas? [01:10] acangiano has left the channel [01:11] tjholowaychuk: Brandon_R yup [01:11] Brandon_R: cool [01:11] Brandon_R: what is it about? [01:11] Brandon_R: will it or is it open source? [01:11] tjholowaychuk: nope [01:12] jocafa: i really hate how underpaid this damned valley is [01:12] tjholowaychuk: cant talk about it too much right now [01:12] Brandon_R: oh ok [01:12] Brandon_R: what valley? [01:12] jocafa: utah valley [01:14] skiz has joined the channel [01:14] Brandon_R: oh [01:14] Brandon_R: how much does it pay? [01:15] jocafa: slightly over half market value [01:15] neurodrone has joined the channel [01:16] Brandon_R: oh [01:16] mynyml has joined the channel [01:20] mikeric has joined the channel [01:24] smtlaissezfaire has joined the channel [01:28] jtrudeau has joined the channel [01:34] ixti has joined the channel [01:34] c4milo has joined the channel [01:34] Wa has joined the channel [01:36] irf has joined the channel [01:38] TooTallNate has joined the channel [01:39] ditesh has joined the channel [01:41] shipit has joined the channel [01:42] skiz has joined the channel [01:44] tilgovi has joined the channel [01:44] CarterL has joined the channel [01:44] futini has joined the channel [01:47] jocafa: ACTION updates resume [01:50] ditesh|cassini has joined the channel [01:51] livinded has joined the channel [01:54] ditesh has joined the channel [01:56] cgfuh has joined the channel [01:57] JakeyChan has joined the channel [01:57] dbidiot has joined the channel [01:58] dbidiot has left the channel [01:59] livinded: does node have anything like ruby's send method which allows you to specify a method name (not an anonymous function) and have an object call that method? [02:01] famous has joined the channel [02:01] famous: 'ello. New to node.. Trying to sort out getting some stuff running under it that includes heavy use of the closure toolkit and soy templates. Anyone familiar? [02:02] zeade has joined the channel [02:02] saikat_ has joined the channel [02:02] LuckySMack has joined the channel [02:02] LuckySMack has joined the channel [02:02] SubStack: livinded: you mean does javascript have a way to call a variably named method? [02:03] neoesque has joined the channel [02:03] livinded: SubStack: ya [02:03] livinded: without using eval... [02:03] SubStack: ... [02:03] SubStack: yes [02:03] SubStack: yes it obviously does [02:03] SubStack: just use obj[someexpr] [02:03] jocafa: hrm. let's see how much more pretentious i can make my resume sound [02:04] SubStack: v8: var obj = { a : function (x) { return x + 5 } }; obj['a'](3) [02:04] v8bot_: SubStack: 8 [02:04] davidbanham has joined the channel [02:05] SubStack: v8: var obj = { a : function (x) { return x + 5 } }; obj['cat'.slice(1,2)](3) [02:05] v8bot_: SubStack: 8 [02:05] navaru: livinded: is that what you where referring to? you made me curious.. [02:05] Bonuspunkt has joined the channel [02:05] livinded: SubStack: no, passing an anonymous function [02:05] neurodrone_ has joined the channel [02:05] livinded: say I have {method: 'some_method'} [02:06] shanebo has joined the channel [02:06] livinded: I want to be able to call the method that's the value for method [02:06] SubStack: the value returned by some_method? [02:06] livinded: right [02:06] SubStack: that's silly [02:06] SubStack: don't do that [02:07] SubStack: just have some_method return a function itself [02:07] livinded: I don't want to have to define the function there [02:07] SubStack: you don't need to [02:07] SubStack: just return it [02:07] leahculver has joined the channel [02:07] leahculver has joined the channel [02:07] livinded: ah, ok [02:07] SubStack: livinded: I infer that you've done a lot of ruby :p [02:08] livinded: SubStack: ya [02:08] SubStack: here's an example maybe of what I understand that you're looking for: [02:08] enmand_ has joined the channel [02:08] livinded: I've been playing with various node based web frameworks for the past few days and haven't been impressed with any of them. Figured I could build something simple on top of connect [02:09] SubStack: v8: function f () { return g } function g (x) { return x * 10 } f()(3) [02:09] v8bot_: SubStack: 30 [02:09] matyr has joined the channel [02:09] jesusabdullah: SubStack: in python you have to use something like, getproperty(obj, key) thing [02:10] Isaiah has joined the channel [02:10] SubStack: or perhaps you want to return a different function based on the arguments to f() [02:10] jesusabdullah: because hashes are a separate datatype [02:10] livinded: SubStack: but ya, I think just specifying the actual function is going to be the best way. I'll give it a try and see how it works [02:10] SubStack: v8: function f (n) { return n ? g : h } function h (x) { return x / 10 } function g (x) { return x * 10 } f(false)(3) [02:10] v8bot_: SubStack: 0.3 [02:11] SubStack: jesusabdullah: other languages make dynamic lookup hard, it's true [02:12] jesusabdullah: It makes me :C [02:15] skyl has joined the channel [02:15] navaru: SubStack: you've wrote many modules, so I have a question, why do people do some sort of this: fs.open('filepath', function( e, id ) { return fs.write( id, function(){ return fs.close(id, function ....... [02:16] SubStack: I don't know why people do things. [02:16] navaru: SubStack: I don't get it, why whould you return something in an async call.. it there any benefit? [02:16] SubStack: it doesn't do anything [02:17] SubStack: this is why programmers should be reductionists [02:17] smtlaissezfaire has joined the channel [02:17] navaru: SubStack: I've seen it in many modules, I thought it was a pattern that I don't get.. thanks' [02:19] metellus has joined the channel [02:19] zahanm has joined the channel [02:19] stepheneb has joined the channel [02:22] kenbolton has joined the channel [02:24] Bonuspunkt has joined the channel [02:25] isaacs has joined the channel [02:27] chance- has joined the channel [02:28] smtlaissezfaire has joined the channel [02:30] anveo has joined the channel [02:34] ditesh|cassini has joined the channel [02:34] ditesh has joined the channel [02:35] jesusabdullah: It's useless to return in an asyncronous cb right? Just syncronous ones? [02:37] sub_pop has joined the channel [02:37] er1c_ has joined the channel [02:38] navaru: jesusabdullah: return in a asynchronous cb when you want to end the cb's execution.. like: if (something) return; :D otherwise I don't see the point... [02:40] saikat has joined the channel [02:40] zahanm has joined the channel [02:40] jesusabdullah: Oh, sure, it's good for short circuiting [02:40] dominictarr has joined the channel [02:41] jesusabdullah: I think we're all on the same page C: [02:41] jesusabdullah: SubStack: What's yo' email brah? [02:42] robertfw has joined the channel [02:42] seawise has joined the channel [02:42] willwhite has joined the channel [02:43] rafeca has joined the channel [02:43] jesusabdullah: SubStack: nvm found its [02:44] seawise has joined the channel [02:45] BillyBreen has joined the channel [02:46] sdwrage has joined the channel [02:47] trepan has joined the channel [02:50] jesusabdullah: Whoa, shatly has a ladyfriend when did this happen [02:50] jesusabdullah: Oh, and last I saw him he had a CAR too [02:50] Vennril2 has joined the channel [02:51] saschagehlich has joined the channel [02:51] jesusabdullah: SubStack: ^^ WAsn't paying attention, thought this was #stackvm [02:52] alnewkirk has joined the channel [02:55] anveo has joined the channel [02:57] KicStart42 has joined the channel [02:59] kenperkins has joined the channel [03:00] KicStart42 has joined the channel [03:02] heavysixer has joined the channel [03:14] smathy has joined the channel [03:15] ditesh|cassini has joined the channel [03:17] ditesh has joined the channel [03:19] mike5w3c_ has joined the channel [03:19] orolo_ has joined the channel [03:20] orolo_: on ubuntu (newb). node v0.5.9. but express won't run so i need to downgrade to v0.5.0. how do i do this? [03:21] JakeyChan has joined the channel [03:22] slajax has joined the channel [03:26] navaru: orolo_: remove node, and recompile the desired version [03:28] navaru: orolo_: also you should choose 0.4.x, not 0.5.0.. Express is not compatible with 0.5.x [03:29] random123 has joined the channel [03:29] marcello3d has joined the channel [03:29] random123: If I put something like Socket.io up on Port XXX but not 80, do you think there is a high chance of people not allowing that Outgoing? [03:29] nayrb has joined the channel [03:30] random123: Er [03:30] random123: Like 1/100 people [03:30] strathmeyer has joined the channel [03:30] random123: I consider high [03:31] Aikar: random123: workplaces and schools extremely high chance [03:31] JaKWaC has joined the channel [03:32] Aikar: so... determine your target audience [03:33] ditesh|cassini has joined the channel [03:37] boehm has joined the channel [03:39] Wraithan has joined the channel [03:40] EyePulp has joined the channel [03:40] Wraithan: is there anything like python's pdb.set_trace() in node.js ? without having to use some giant beast like eclipse [03:40] KicStart42 has left the channel [03:40] fread2281 has joined the channel [03:40] ryah: Wraithan: console.trace() [03:40] ryah: Wraithan: breakpoint; [03:41] ryah: er.. sorry [03:41] ryah: debugger; [03:41] ryah: i don't know what set_trace() does.. [03:41] Wraithan: drops you into a shell where you can inspect and step through the code [03:42] ryah: hm.. [03:42] navaru: node-inspector? [03:42] ryah: ACTION trys to think of how to do that. [03:45] anveo has joined the channel [03:46] CrypticSwarm_ has joined the channel [03:53] tek: hmm anyone had problems getting Canvas to work under OSX? have Cairo, libgif, libjpg.... but Canvas always throws an error when I require it :( [03:53] matyr has joined the channel [03:54] JaKWaC has joined the channel [03:55] smtlaissezfaire has joined the channel [03:55] Wraithan: ryah, navaru: node-inspector + debugger; got me exactly what I wanted. Thanks. [03:56] Wraithan: Well, a little heavier weight than I wanted but I can deal with having to use google-chrome to debug it [03:56] isaacs has joined the channel [03:56] ohtogo has joined the channel [03:57] chance- has joined the channel [03:57] wilmoore has joined the channel [03:58] navaru: Wraithan: as I remember there is a issue with node-inspector, console.log(...) does not output in chrome, it outputs in the terminal, just to keep in mind [03:58] Wraithan: I am totally ok with that [03:59] Wraithan: being able to get a console on any line I want means I can start understanding things better [04:01] shanebo has joined the channel [04:01] navaru: yes, it's a pretty good tool, with an user friendly interface, I really like that they've choosen that option instead of building something new [04:02] Remoun has joined the channel [04:07] dexter_e has joined the channel [04:09] k1ttty has joined the channel [04:11] jtsnow has joined the channel [04:14] andrewfff has joined the channel [04:20] Sami_ZzZ has joined the channel [04:25] tylerstalder has joined the channel [04:27] ReshadN has joined the channel [04:27] kmwallio has joined the channel [04:27] ReshadN: Hello friends... [04:28] ReshadN: I need advice on web scraping in node [04:28] kmwallio has left the channel [04:28] ReshadN: any "cookie cutter" solutions out there to run and get results? [04:28] Aikar: ReshadN: [04:28] Aikar: !npm info request [04:28] jhbot: request by Mikeal Rogers, version 2.1.1: Simplified HTTP request client. [04:35] avalanche123 has joined the channel [04:38] jackbean has joined the channel [04:40] felixge has joined the channel [04:40] felixge has joined the channel [04:40] ceej has joined the channel [04:42] ciezr has joined the channel [04:43] jackbean has joined the channel [04:44] jetienne_ has joined the channel [04:45] descipher has joined the channel [04:48] ceej has joined the channel [04:53] davidbanham has joined the channel [04:57] fangel has joined the channel [05:00] scott_gonzalez has joined the channel [05:01] topaxi has joined the channel [05:02] fread2281 has joined the channel [05:09] rurufufuss has joined the channel [05:13] random123 has joined the channel [05:17] JakeyChan has joined the channel [05:18] iivvoo has joined the channel [05:18] shanebo: hey guys is there a way to add require paths? [05:19] Spion_ has joined the channel [05:20] AAA_awright: shanebo: NODE_PATH [05:20] Aikar: ^, doing it at runtime is 'unsupported' (but possible) [05:21] aho: require also works with relative paths though [05:21] shanebo: how do npm required modules know where to look? [05:21] Aikar: node looks in node_modules [05:22] isaacs: shanebo: npm help folders, and also: http://nodejs.org/docs/v0.5.8/api/modules.html [05:22] shanebo: and when you install npm, npm tells node where node_modules is? [05:22] Aikar: no, nde_modules is a magic dir in node itself [05:22] isaacs: shanebo: no, npm is not involved in loading modules, only putting them there [05:22] isaacs: shanebo: npm help folders [05:22] Aikar: has nothing to do with npm, npm just installs there [05:22] isaacs: run that^ [05:22] Spion_ has joined the channel [05:24] shanebo: isaacs thanks for that [05:24] isaacs: np [05:24] FMJaggy has joined the channel [05:25] shanebo: isaacs, I'm unclear how to resolve my path issue though [05:26] shanebo: locally I have node_modules in my home directory. my node projects are elsewhere and the require(foo-node-mod) works fine [05:26] isaacs: shanebo: are they somewhere else under your home dir? it walks up the folder path [05:26] Peniar has joined the channel [05:26] isaacs: shanebo: http://nodejs.org/docs/v0.5.8/api/modules.html [05:26] isaacs: as described there^ [05:27] shanebo: however on my linode linux box if node_modules aren't in the same directory as the node project, it can't find them [05:27] shanebo: isaacs, yes [05:27] isaacs: shanebo: if it's a child folder, then it'll work [05:27] shanebo: I want node_modules one up from my node projects [05:28] shanebo: so: [05:28] shanebo: '/home/node_modules/' [05:28] isaacs: shanebo: why not just use it the way it's designed to be used, and install your deps locally? [05:28] isaacs: shanebo: cd my-project; npm install [05:28] shanebo: '/home/sites/foo_project/' [05:28] sdwrage has joined the channel [05:29] shanebo: isaacs locally per project? [05:29] isaacs: shanebo: sure [05:29] metellus has joined the channel [05:29] shanebo: You're recommending that or saying that's possible? [05:30] shanebo: because I tend to not want to repeat myself and keep all modules in one place and require each as needed per project [05:30] shanebo: but maybe that's not what you had in mind in npm? [05:31] konobi: disk space is cheap [05:32] shanebo: konobi, agreed, but having node_modules in every project is redundant. Especially considering most devs use the same modules almost every project. Unless I'm unaware of technical issues requiring deps from one place? [05:32] grahammelcher has joined the channel [05:33] shanebo: what am I missing isaacs? [05:33] konobi: versions changes, apis change... you going to update every one of your projects each time one of your dependencies? [05:33] shanebo: konobi, that tends to be how I roll [05:34] isaacs: shanebo: so, either install everything locally (totally fine) or use the `npm link` command if you prefer (also fine, not supported on windows) [05:34] shanebo: or in more of a ruby environment you'd point to which version [05:34] isaacs: shanebo: or, use a higher-level node_modules folder, and install stuff there. [05:35] isaacs: in production, i highly recommend local installs. [05:35] mAritz has joined the channel [05:35] isaacs: it's a little redundant, but it's also clear and you don't change one thing when you mean to change another [05:35] brainproxy: shanebo: the node_modules pattern, especially as faciliated by npm, fosters portability [05:35] isaacs: ay [05:35] isaacs: you probably don't have more than a few things running on a single vm/vps/zone anyway [05:35] konobi: i do the same with perl apps, etc. [05:35] brainproxy: it also help to avoid some of the brittle-ness that inevitably comes with globalized dependencies [05:36] chovy has joined the channel [05:36] isaacs: for local dev, i like to get things to break asap, so i do use a lot of links to global installs. [05:36] chovy: Anyone know how to install this module? [05:36] chovy: Cannot find module 'Socket.IO-node' [05:36] isaacs: chovy: npm install socket.io [05:36] shanebo: isaacs, if I use a higher level folder, I'd have to relative path all requires? [05:36] chovy: isaacs: tried that, but i still get the error [05:36] chovy: i'm trying to use node-boilerplate [05:36] brainproxy: isaacs: know of any addons that are being dev'd with gyp? [05:36] isaacs: chovy: "the error" <-- i'm not familiar with that one. [05:37] isaacs: brainproxy: nope [05:37] brainproxy: i mean, that are using gyp instead of waf [05:37] brainproxy: ok [05:37] isaacs: brainproxy: i don't know of any [05:37] isaacs: or how to do that, even :) [05:37] isaacs: ryah probably does. [05:37] brainproxy: lol, well i told my c++ guy to figure it out [05:37] brainproxy: but then he asked me if there are examples [05:38] chovy: isaacs: https://gist.github.com/148d891666e8f4e438f8 [05:38] isaacs: chovy: are you doing require('Socket.IO-node')? [05:38] isaacs: chovy: it should be require('socket.io') [05:38] chovy: ok [05:40] shanebo: isaacs, see my higher level node_modules question? [05:41] isaacs: shanebo: no, you would not have to use relative paths. [05:41] isaacs: shanebo: read that modules doc. [05:41] isaacs: it explains it in very explicit detail. then has pseudocode. [05:42] isaacs: seriously, i can't tell you better than to just keep posting this link: http://nodejs.org/docs/v0.5.8/api/modules.html [05:42] ph6 has joined the channel [05:42] shanebo: isaacs and node 0.4.12 docs are the same in that respect? [05:43] brainproxy: isaacs: ever thought about having `link` support something like a "group" tag so one could link into a named group instead of just global? [05:43] ph6: ?DCC SEND "3\¼€4€ë°ï2¨åíž9wX:å0¶Gâð1”_> [07:23] DoiDor has left the channel [07:23] konobi: data is already a buffer [07:23] melcher has joined the channel [07:23] japerry: oh so just make an array and push them on [07:24] Nuck: japerry: Do you want to get teh whole thing before continuing? [07:24] Nuck: IF so, Node probably isn't the place for you :P [07:24] ptlo has joined the channel [07:24] joemccann has joined the channel [07:24] Nuck: streaming is where it's at [07:24] japerry: no, as its going in [07:24] japerry: basically loop and grab the hex codes, and watch for ones that are important and do stuff(tm) [07:25] melcher has joined the channel [07:25] EhevuTov_: hrm, I wonder how you do the watching [07:25] japerry: i have it within a setInterval loop which goes every 100ms [07:25] Nuck: waitwhat [07:25] japerry: and i just need what new data is in there [07:25] konobi: te event will fire whenever [07:26] japerry: i might have this totally wrong ... I am trying to adapt it from someone who abandoned a c# library [07:26] `3rdEden has joined the channel [07:26] EhevuTov_: there's prob a better way than to do a 100ms loop [07:26] stagas: japerry: this might be useful https://github.com/bnoordhuis/node-buffertools [07:26] japerry: yah, thats how c# did it.. looped every 100ms and read in the buffers [07:26] Nuck: japerry: If you just need to check for a hex thing in a piece, then you can use bnoordhuis' buffertools library for the buffer.indexOf [07:27] Nuck: japerry: Do you have a serial port lib yet? [07:27] japerry: Nuck: yup I've been playing with that fairly successfully [07:27] shimizu has joined the channel [07:27] Nuck: Just remember that your "important" indicator may be split on the border of two chunks [07:27] Nuck: japerry: Each time the data event fires, you get a new bit of the data [07:27] tilgovi has joined the channel [07:27] tilgovi has joined the channel [07:27] japerry: heh got it to the point where I can read in the first bit of data... I put in a debug console.log(data) before the buffer command [07:27] Nuck: It'll fire randomly [07:28] Nuck: Don't expect it to be any pattern [07:28] Nuck: And don't expect your thing not to be lodged between two pieces [07:28] japerry: Nuck, does it remain in that function until it gets called again? [07:28] melcher has joined the channel [07:28] Nuck: japerry: The function is only running as long as it's running [07:28] Nuck: The moment that function's done, it's dead [07:28] joemccann_ has joined the channel [07:29] japerry: right, but since its an event function, shouldn't serialport.on stay active indefinitely? [07:29] Nuck: hmmm? [07:29] jhurliman has joined the channel [07:29] Nuck: japerry: The function gets called each time the data event fires [07:29] konobi: the function gets called each time a peice of data comes in [07:29] Nuck: A function only lasts as long as it's got something to do [07:29] mikedeboer has joined the channel [07:29] Druide has joined the channel [07:29] Nuck: And even then, with async, it'll return before then [07:29] japerry: oh ahh okay .. sorry heh I need to be not thinking what I usually think [07:30] Nuck: japerry: Yeah, Node takes a bit of a changed mindset [07:30] EhevuTov_: unlearn what you have learned [07:30] konobi: async ftw [07:30] Nuck: Async 4 lyfe [07:30] Emmanuel__ has joined the channel [07:30] japerry: right. .. the function will fire whenever.. so to be clear, the stuff below the serialport.on will execute immediately.. this is where the current buffer gets its data processed [07:31] melcher has joined the channel [07:31] japerry: I guess I'm a little worried that the event will fire before that stuff finishes processing? [07:31] Nuck: japerry: Everything below that will be called immediately, yep [07:31] konobi: you can always call another function from within your event callback [07:31] Nuck: If you want it to be called before the event fires, put it above that [07:32] melcher has joined the channel [07:32] konobi: node-ctype may also be useful [07:33] japerry: okay, cool this gives me a few things to look at. I think these buffer tools should help [07:33] EhevuTov_: japerry, is it a fixed length buffer that is streaming in? [07:33] japerry: I'm putting this code up on github right now [07:33] japerry: yes..... its one 0x00-0xFF code being sent in at a time [07:34] melcher has joined the channel [07:35] AndroUser2 has joined the channel [07:35] EhevuTov_: japerry, I'm working on a real-time system at work. I'm looking at using node.js on it. I'd like to see your repo when you get it up [07:36] japerry: yah, will do. basically I'm working on a real-time network for in-car-navigation [07:36] davidbanham has joined the channel [07:36] EhevuTov_: cool [07:36] japerry: GM vehicles have all this stuff that goes on a 29bit can network that fires off events.. so naturally I'm thinking oohh node could handle this and provide a web frontend to set and receive the data and pass it on [07:37] zackattack has joined the channel [07:37] japerry: but currently I'm working on this little boomzboxHD radio controller device. the guys only made windows drivers for it, but luckily have the c# code available [07:37] EhevuTov_: japerry, I'm looking at doing the same thing, but for SS7 call network packets for phone companies [07:37] japerry: I'm a php/java person, so its been fun learning two languages at the same time ;-) [07:37] Margle has joined the channel [07:38] japerry: sweet.. heh the whole speech about controlling robots with javascript was <3 at first sight [07:38] EhevuTov_: I'm hoping to only need javascript in the close future :-P The only attachment I have to PHP right now is some of it's ORM frameworks [07:39] melcher has joined the channel [07:40] melcher has joined the channel [07:40] bicranial has joined the channel [07:40] melcher has joined the channel [07:41] japerry: there we go EhevuTov_ and Nuck https://github.com/japerry/node-boomzboxhd [07:41] EhevuTov_: japerry, you have a github site that I can foloow you? [07:41] EhevuTov_: ha, cool [07:41] japerry: haha nice [07:42] japerry: basically in there I prototyped the functions in the boomzbox.js file and the work happens in RadioControl.js [07:43] Ibuprofe1 has joined the channel [07:43] dubenste1n has joined the channel [07:43] melcher has joined the channel [07:44] davidbanham: I currently know nothing about testing. I would like to start writing some tests for my applications (which are mainly in Express) so that I don't break things when deps get updated, I add new features, etc. I don't think I want to get into full blown TDD. Where should I start? Which framework should I use? What should I read to begin to learn how it all works? [07:44] DrMcKay has joined the channel [07:45] SubStack: davidbanham: I would just look at some projects that have tests and pick the style you like the best. [07:46] joemccann has joined the channel [07:46] DrMcKay: is there something like remote object for dnode? [07:47] DrMcKay: so you could, say, call remote methods of a regular object? [07:47] melcher has joined the channel [07:48] Morkel has joined the channel [07:48] davidbanham: SubStack: I have been doing that, but I feel like I'm missing some fundamental knowledge that I require before I can even start evaluating styles. Are there any resources you're aware of that deal with testing starting from first principles? [07:49] SubStack: DrMcKay: dnode already does that [07:49] jesusabdullah: Well, you do have to wrap them [07:49] SubStack: nope [07:49] jesusabdullah: right? [07:49] jesusabdullah: No? [07:49] joshgillies has joined the channel [07:49] SubStack: you have to do 0 things [07:49] EhevuTov_: davidbanham, have you looked at vows.js [07:50] DrMcKay: SubStack: but I want something like get('nameOfSomePublishedObject').method(function (result) { console.log('wooo!'); }) [07:50] SubStack: DrMcKay: oh I misunderstood [07:51] DrMcKay: where something from remote side should take care about changing a result into a callback [07:51] SubStack: that sounds like a job for a flow control lib [07:51] SubStack: of which there are many [07:51] melcher has joined the channel [07:51] davidbanham: EhevuTov_: I have, and it looked like it was the kind of style I had in mind, but I just have no idea where to start with it. Actually, have just had another look at the Vows site now and realised I never looked at their 'guide' page. I think I'll start there. [07:51] jesusabdullah: I thought we were talking about automatically exposing objects in the global scope over dnode [07:52] DrMcKay: SubStack: possibly, but I need something to publish this object or something [07:52] konobi: node-tap++ [07:52] v8bot_: konobi has given a beer to node-tap. node-tap now has 1 beers. [07:52] DrMcKay: jesusabdullah: yeah, something like that [07:52] jesusabdullah: I like node-tap as well! [07:52] SubStack: konobi: I agree. [07:52] EhevuTov_: davidbanham, the dev of vows hangs out in the #express chan [07:52] jesusabdullah: It could use some love in terms of docs and stuff, but it's straightforward [07:52] konobi: testing should be KISS [07:52] melcher has joined the channel [07:53] DrMcKay: btw, wtf is going on with cucumber? [07:53] DrMcKay: people seriously use it? [07:53] jesusabdullah: EhevuTov_: You mean cloudhead? My impression was that he'd largely moved on from node [07:53] jesusabdullah: DrMcKay: Oh yes. [07:53] melcher has joined the channel [07:53] DrMcKay: jesusabdullah: no. human race isn't *that* stupid. [07:53] davidbanham: EhevuTov_: There's an #express? Awesome! I'll give the guide page a good look before I ask any questions, though. [07:53] EhevuTov_: jesusabdullah, dunno, I saw him the other day there. What's there to move on from node at the moment? [07:53] DrMcKay: please tell me it isn't [07:54] DrMcKay: someone restore my faith in humanity. [07:54] jesusabdullah: EhevuTov_: I'd heard he was doing more erlang these days [07:54] jesusabdullah: SubStack: Show DrMcKay the Agile Hitler video [07:55] TomY has joined the channel [07:55] DrMcKay: oh. [07:55] davidbanham: konobi: Thanks, node-tap looks interesting too. I'll check it out. [07:55] EhevuTov_: I watched the Git Hitler vid the other day. That was funny [07:55] sub_pop has joined the channel [07:56] MooGoo: they [07:56] MooGoo: they're still making hitler parodies? [07:57] SubStack: downfall parodies [07:57] melcher has joined the channel [07:58] melcher has joined the channel [07:59] melcher has joined the channel [08:00] hacksparrow has joined the channel [08:00] hacksparrow: I want to id an element with a variable in express li#{tag} #{tag}, how is it done? [08:01] hacksparrow: li##{tag} #{tag} isn't working either [08:01] DrMcKay: Hitler should've used gitolite [08:02] Frippe has joined the channel [08:02] davidbanham: hacksparrow: Are you rendering a Jade template? [08:03] hacksparrow: Yea [08:03] hacksparrow: li(id=tag) #{tag} did it [08:04] EhevuTov_: hacksparrow, are comments in jade working for you? Might haven't been working for me [08:04] EhevuTov_: s/Might/Mine/g [08:05] cjheath has joined the channel [08:06] simenbrekken has joined the channel [08:06] hacksparrow: works for me , // and //- both [08:07] davidbanham: EhevuTov_: Comments are fine for me. I'm working with a version dropped out of git a few days ago rather than the latest npm release, though. [08:07] hacksparrow: make sure they are indendted properly [08:07] sfoster has joined the channel [08:07] melcher has joined the channel [08:09] knifed has joined the channel [08:11] EhevuTov_: ah, jade's comments are whitespace sensitive [08:11] melcher has joined the channel [08:11] luke` has joined the channel [08:11] melcher has joined the channel [08:12] melcher has joined the channel [08:12] guidocalvano has joined the channel [08:13] metellus has joined the channel [08:13] cmtt has joined the channel [08:16] knifed has joined the channel [08:19] melcher has joined the channel [08:20] melcher has joined the channel [08:21] whyme has joined the channel [08:21] jetienne_ has joined the channel [08:21] hij1nx has joined the channel [08:21] TomY has joined the channel [08:22] nickadeemus2002 has left the channel [08:24] joemccann has joined the channel [08:25] japerry: hey Nuck have you worked with node-buffertools before? [08:26] melcher_ has joined the channel [08:27] melcher__ has joined the channel [08:32] sirdancealot has joined the channel [08:32] adrianmg has joined the channel [08:32] adrianmg has left the channel [08:32] rocketman has joined the channel [08:33] melcher_ has joined the channel [08:33] rocketman: hi, npm install is giving me this error: [08:33] rocketman: Error: version not found: 2.0.8 : glob/2.0.8 [08:34] Margle has joined the channel [08:36] felixhummel has joined the channel [08:36] admc has joined the channel [08:38] piscisaureus has joined the channel [08:38] swhit has joined the channel [08:39] hacksparrow has joined the channel [08:39] matyr has joined the channel [08:41] sirdancealot has joined the channel [08:42] davidbanham has joined the channel [08:43] melcher_ has joined the channel [08:44] [AD]Turbo has joined the channel [08:46] piscisaureus_ has joined the channel [08:46] luxigo: funny an infinite loop during a JSON.parse() :-) [08:47] jetienne_ has left the channel [08:47] sirdancealot has joined the channel [08:48] melcher has joined the channel [08:52] DrMcKay has joined the channel [08:55] melcher has joined the channel [08:55] amigojapan has joined the channel [08:59] RuslanPopov has joined the channel [08:59] hacksparrow_ has joined the channel [09:01] joemccann has joined the channel [09:02] melcher_ has joined the channel [09:02] mc_greeny has joined the channel [09:02] junkee[] has joined the channel [09:05] temongantengbgt has joined the channel [09:06] Sami_ZzZ has joined the channel [09:08] jackbean has joined the channel [09:09] piscisaureus_ has joined the channel [09:11] melcher has joined the channel [09:12] joemccann has joined the channel [09:13] melcher has joined the channel [09:17] mike5w3c_ has joined the channel [09:18] felixge has joined the channel [09:19] jbpros has joined the channel [09:19] cthulhu_lovecraf has joined the channel [09:21] Jabbers has left the channel [09:21] nickadeemus2002 has joined the channel [09:27] melcher has joined the channel [09:27] rendar has joined the channel [09:28] Wizek has joined the channel [09:30] melcher has joined the channel [09:31] TheJH has joined the channel [09:31] TheJH has joined the channel [09:31] amigojapan_ has joined the channel [09:32] felixge has joined the channel [09:35] melcher has joined the channel [09:36] melcher has joined the channel [09:38] robhawkes has joined the channel [09:39] piscisaureus_ has joined the channel [09:39] melcher has joined the channel [09:40] melcher has joined the channel [09:41] TomY has joined the channel [09:41] k1ttty has joined the channel [09:46] kei has joined the channel [09:47] piscisaureus_ has joined the channel [09:48] felixge has joined the channel [09:48] felixge has joined the channel [09:48] gregeh has joined the channel [09:50] melcher has joined the channel [09:52] McMAGIC--Copy has joined the channel [09:52] kei has joined the channel [09:52] inarru has joined the channel [09:54] GeorgeJ has joined the channel [09:54] GeorgeJ has joined the channel [09:54] versicolor has joined the channel [09:55] melcher has joined the channel [09:55] inarru has joined the channel [09:56] jbpros has joined the channel [09:58] saikat has joined the channel [09:59] knifed has joined the channel [09:59] mc_greeny has joined the channel [10:00] melcher has joined the channel [10:01] azeroth_ has joined the channel [10:08] melcher_ has joined the channel [10:12] melcher has joined the channel [10:12] knifed has joined the channel [10:13] melcher has joined the channel [10:16] jldbasa has joined the channel [10:16] melcher has joined the channel [10:18] versicolor has joined the channel [10:18] stisti has joined the channel [10:19] matyr has joined the channel [10:20] hacksparrow has joined the channel [10:21] joshgillies: is anyone here using 0.5.8 in prod? [10:21] stonebranch has joined the channel [10:22] joshgillies: or is that complete madness? [10:23] melcher has joined the channel [10:24] temongantengbgt: I using 0.411 [10:24] temongantengbgt: :) [10:24] koo6 has joined the channel [10:24] topaxi has joined the channel [10:25] hacksparrow_ has joined the channel [10:26] melcher has joined the channel [10:26] bicranial has joined the channel [10:26] christkv has joined the channel [10:27] DrMcKay: joshgillies: MADNESS? THIS IS SPAAAARTA! [10:27] mc_greeny has joined the channel [10:27] DrMcKay: joshgillies: but seriously, don't do that [10:28] DrMcKay: anyway, how do I test if callback *didn't* fire in vows [10:28] sonnym has joined the channel [10:29] melcher_ has joined the channel [10:32] hacksparrow has joined the channel [10:33] varadharajan has joined the channel [10:33] melcher has joined the channel [10:33] mikl has joined the channel [10:34] melcher_ has joined the channel [10:37] melcher has joined the channel [10:38] melcher has joined the channel [10:40] flexd has joined the channel [10:41] melcher has joined the channel [10:41] DennisRasmussen has joined the channel [10:41] matyr has joined the channel [10:42] sfoster has joined the channel [10:46] hellp has joined the channel [10:46] joshgillies: DrMcKay: thanks for the info :) [10:47] Morkel has joined the channel [10:48] melcher has joined the channel [10:51] melcher has joined the channel [10:55] neurodrone has joined the channel [10:55] neurodrone has joined the channel [10:55] testeroo has joined the channel [10:55] jomoho has joined the channel [10:58] DrMcKay: does anyone else think that require('assert') should return a function require('assert').assertTrue ? [10:59] DrMcKay: s/assertTrue/ok/ [11:00] edwardmsmith has left the channel [11:01] varadharajan has joined the channel [11:01] melcher has joined the channel [11:02] melcher has joined the channel [11:04] melcher_ has joined the channel [11:05] SamuraiJack has joined the channel [11:05] jetienne_ has joined the channel [11:06] Country has joined the channel [11:07] k1ttty has joined the channel [11:07] Renegade001 has joined the channel [11:09] melcher_ has joined the channel [11:10] jbpros has joined the channel [11:10] melcher has joined the channel [11:10] tobmaster has joined the channel [11:13] guidocalvano: ? [11:15] guidocalvano has joined the channel [11:16] varadhar` has joined the channel [11:16] DrMcKay: guidocalvano: so you could `var assert = require('assert'); assert(something)' [11:17] guidocalvano: DrMcKay: tnx [11:18] Dmitrijus: DrMcKay: makes sense [11:19] DrMcKay: Dmitrijus: OK, great to here [11:20] TheJH: DrMcKay, would probably be a good idea [11:21] DrMcKay: pull request is on it's way [11:21] saschagehlich has joined the channel [11:23] alnewkirk has joined the channel [11:25] TheJH: DrMcKay, btw, where's your bot? [11:27] DrMcKay: TheJH: I killed it [11:27] DrMcKay: TheJH: it started spinning [11:28] TheJH: DrMcKay, did you find out why the issues didn't work anymore yet? [11:28] DrMcKay: no, I'll look into it today [11:28] Fabryz has joined the channel [11:28] dylang has joined the channel [11:30] abraxas has joined the channel [11:30] jetienne_ has joined the channel [11:34] hacksparrow has joined the channel [11:37] felixge has joined the channel [11:37] felixge has joined the channel [11:39] felixge_ has joined the channel [11:49] melcher has joined the channel [11:54] mc_greeny has joined the channel [11:55] felixge has joined the channel [11:55] felixge has joined the channel [11:55] reid has joined the channel [11:56] melcher has joined the channel [11:56] DrMcKay: TheJH, guidocalvano, Dmitrijus: pull requested, https://github.com/joyent/node/pull/1810 [11:56] guidocalvano: ? [11:57] ditesh|cassini has joined the channel [11:57] DrMcKay: guidocalvano: this change allowing you to assert(something) instead of assert.ok(something) [11:58] guidocalvano: k [11:58] guidocalvano: handy [11:58] guidocalvano: are there any other functions in assert? [11:58] Lingerance: Yes [11:58] jetienne_: var assert = require('assert').ok; is much simpler no ? [11:58] TheJH: DrMcKay, now fix your bot quickly so that we can see the responses :D [11:58] Lingerance: But you can treat a function as an object [11:58] guidocalvano: yup [11:58] jetienne_: guidocalvano: yes :) [11:59] DrMcKay: TheJH: haha, ok [11:59] guidocalvano: so it is actually just a handy shorthand [11:59] DrMcKay: guidocalvano: yes [11:59] TheJH: guidocalvano, yes [11:59] Lingerance: jetienne_: Yes, but it blocks access to all the other require('assert') functions [12:00] guidocalvano: no it probably doesn't [12:00] guidocalvano: you can assign members to functions [12:00] jetienne_: i dunno for assert i do console.assert() :) [12:00] Lingerance: Unless you use a second variable or something like Ext.apply() [12:00] jetienne_: compatible with browser is cool [12:00] guidocalvano: var bla = function() { ... } ; [12:00] guidocalvano: bla.ok = function() { ... } ; [12:00] guidocalvano: this is all fine [12:01] guidocalvano: now you can do bla(), but you can also do bla.ok() [12:01] Lingerance: Yes [12:01] melcher_ has joined the channel [12:01] guidocalvano: in fact... I'm thinking you could do this: [12:01] guidocalvano: ok = function() { ... } ; [12:01] guidocalvano: *var [12:01] guidocalvano: exports = ok ; [12:02] guidocalvano: exports.ok = ok ; [12:02] guidocalvano: and now you can do exports.bla = ... [12:02] guidocalvano: and exports.ok.bla will also be there automatically as a consequence [12:02] guidocalvano: and ok.ok.bla [12:03] guidocalvano: and ok.ok.ok.bla [12:03] guidocalvano: right? [12:03] melcher has joined the channel [12:04] Lingerance: Yes [12:04] Xano has joined the channel [12:05] hacksparrow has joined the channel [12:06] DrMcKay: ACTION is an idiot [12:06] DrMcKay: util.format on v0.4 sure must've crashed the bot [12:07] TheJH: is there any library that can do png->rgb-buffer? [12:07] TheJH: (not the opposite direction) [12:07] knifed has joined the channel [12:08] Xano has left the channel [12:10] adrianmg has joined the channel [12:10] TheJH: or at least something that can read ppm? [12:11] TheJH: anything that can read images from files? [12:12] TheJH: meh [12:12] Lingerance: IIRC there's ImageMagick hooks [12:12] felixhummel has joined the channel [12:12] adrianmg has left the channel [12:13] TomY has joined the channel [12:14] Lingerance: node-canvas can also read images [12:14] Renegade001 has joined the channel [12:16] melcher has joined the channel [12:17] jhurliman has joined the channel [12:17] DrMcKay: oops. octocat is sad. [12:17] DrMcKay: I want my git back [12:18] melcher_ has joined the channel [12:18] matyr has joined the channel [12:20] DrMcKay: btw, nice API: http://status.github.com/realtime.json [12:20] __doc__ has joined the channel [12:23] melcher_ has joined the channel [12:25] felixhummel has joined the channel [12:25] joemccann has joined the channel [12:28] melcher has joined the channel [12:29] melcher_ has joined the channel [12:31] Cromulent has joined the channel [12:32] joemccann has joined the channel [12:33] gerard0` has joined the channel [12:33] felixge_ has joined the channel [12:33] felixge_ has joined the channel [12:37] liar has joined the channel [12:37] melcher_ has joined the channel [12:38] rjack has joined the channel [12:39] Renegade001 has joined the channel [12:40] melcher has joined the channel [12:40] Aphelion has joined the channel [12:41] rjack has joined the channel [12:42] melcher has joined the channel [12:43] davidban_ has joined the channel [12:45] melcher has joined the channel [12:45] wbednarski has joined the channel [12:46] davidba__ has joined the channel [12:46] zackattack has joined the channel [12:47] jbpros has joined the channel [12:48] t_ has joined the channel [12:49] wbednarski has joined the channel [12:49] porjo has joined the channel [12:50] melcher has joined the channel [12:51] wbednarski has joined the channel [12:52] melcher has joined the channel [12:53] melcher has joined the channel [12:53] robhawkes has joined the channel [12:53] melcher has joined the channel [12:55] bearnard has joined the channel [12:55] piscisaureus has joined the channel [12:56] bearnard: Hi, all [12:56] aaasdasdasasdasd has joined the channel [12:56] shipit has joined the channel [12:57] joemccann_ has joined the channel [12:57] ilikeit has joined the channel [12:57] skm has joined the channel [12:58] bearnard: I'm trying to "nest" some async function calls and am getting stuck, e.g i have a HttpServer and on request I do a mysql lookup and in that "callback" function I do an http request using results from the db and everything just hangs :( I wonder what I'm doing wrong? [12:58] Fireup6 has joined the channel [12:58] Fireup6: 700 people in here [12:58] Fireup6: wat [12:59] japj has joined the channel [12:59] Fireup6 has left the channel [12:59] japj: ryah: I guess the topic can be changed now ;) [13:04] melcher has joined the channel [13:09] melcher has joined the channel [13:09] matyr has joined the channel [13:10] edwardmsmith has joined the channel [13:10] melcher has joined the channel [13:10] deadman87 has joined the channel [13:11] broofa has joined the channel [13:11] melcher_ has joined the channel [13:12] liar has joined the channel [13:12] davidbanham has joined the channel [13:13] melcher_ has joined the channel [13:13] mrryanjohnston has joined the channel [13:13] maushu has joined the channel [13:13] DrMcKay: is it just me or does github seem to have way more outages these days? [13:14] melcher has joined the channel [13:14] dmkbot has joined the channel [13:16] vampi-the-frog has joined the channel [13:16] vampi-the-frog has joined the channel [13:18] japj: it could be that it is caused by Linus having a github repository now ;) [13:18] paulwe has joined the channel [13:19] melcher has joined the channel [13:20] mrryanjohnston: japj: haha [13:20] mrryanjohnston: http://status.github.com/ [13:20] mrryanjohnston: If anyone is interested ^ [13:20] mrryanjohnston: this should literally be every irc channel's topic right now [13:20] melcher has joined the channel [13:20] herbySk has joined the channel [13:21] socialhack has joined the channel [13:21] melcher has joined the channel [13:21] Aikar: id put it in mine but it wont fit and my network is a gaming network :P [13:24] melcher has joined the channel [13:24] joemccann has joined the channel [13:24] joemccann has joined the channel [13:24] melcher has joined the channel [13:26] joemccann_ has joined the channel [13:27] Morkel has joined the channel [13:27] melcher has joined the channel [13:28] thalll has joined the channel [13:28] felixge has joined the channel [13:28] jbrokc has joined the channel [13:28] christkv has joined the channel [13:29] N0va has joined the channel [13:32] alnewkirk has joined the channel [13:32] fairwinds has joined the channel [13:33] brianseeders has joined the channel [13:33] melcher has joined the channel [13:34] CarterL has joined the channel [13:34] Morkel_ has joined the channel [13:36] joemccann has joined the channel [13:38] melcher has joined the channel [13:38] melcher has joined the channel [13:40] TheJH: "Major service outage" on github :( [13:40] DrMcKay: TheJH: "partial" now [13:41] TheJH: DrMcKay, "major" again :D [13:41] DrMcKay: gah. [13:42] DrMcKay: at least they keep status.github.com on separate server :D [13:42] jetienne_: github go down and the coders around the world take a moment of silence [13:42] cthulhu_lovecraf has joined the channel [13:43] Brandon_R has joined the channel [13:43] Brandon_R: Hello [13:43] Brandon_R: anyone got any tutorials? [13:43] jetienne_: in 9 months a lof of babies from coders :) [13:43] Brandon_R: on the infinite canvas? [13:43] DrMcKay: jetienne_: haha :D [13:43] Brandon_R: like wordsquared [13:44] Brandon_R: word squared domain expired :D [13:44] Brandon_R: :O [13:44] N0va` has joined the channel [13:44] jbrokc: man they handle their shit pretty well though [13:44] DrMcKay: uhm. guys, there's something weird out here. [13:44] jbrokc: dude the page live updates [13:45] DrMcKay: I'm not sure how to call this, wiki calls it "World" [13:45] Brandon_R: what's world? [13:45] DrMcKay: I'm not sure, it must be some weirdass github or something [13:45] N0va` has joined the channel [13:47] fread2281 has joined the channel [13:48] Brandon_R: i have a question [13:48] TheJH: git works again, at least I was able to push just now [13:48] Brandon_R: how do i view all node.js projects on github [13:48] TheJH: Brandon_R, just use npm? [13:48] Brandon_R: oh [13:48] Morkel has left the channel [13:48] DrMcKay: Brandon_R: or https://github.com/languages/JavaScript [13:49] Brandon_R: i like how node passed jquery [13:49] piscisaureus has joined the channel [13:50] DrMcKay: hah, github api works [13:50] DrMcKay: Brandon_R: and we're getting close to RoR [13:51] xtianw has joined the channel [13:51] Brandon_R: what's that [13:51] DrMcKay: http://nodejs-vs-ror.nodejitsu.com/ [13:51] Brandon_R: oh ruby lol [13:51] DrMcKay: ruby on rails [13:51] chance- has joined the channel [13:51] Brandon_R: i haven't really touched ruby yet [13:51] Brandon_R: will thought just to have bragging rights that i tried it :) [13:53] enmand_ has joined the channel [13:53] ydef has joined the channel [13:55] ph^ has joined the channel [13:55] melcher has joined the channel [13:55] Brandon_R: so [13:55] Brandon_R: anyone here doing any work with realtime canvas? [13:57] melcher has joined the channel [13:58] melcher has joined the channel [13:58] TheJH: is there some google analytics replacement for nodejs that runs on your own server and not at google? [13:59] TheJH: !npm search analytics [13:59] jhbot: packages (short format): googleanalytics, connect-analytics, analytics, gauss, snipes, rats, node-rats, bricks-analytics, ga, mixpanel [13:59] DrMcKay: TheJH: yeah, I've seen something like that [13:59] DrMcKay: I don't remember it's name tho [13:59] TheJH: DrMcKay, then why do you use GA on http://nodejs-vs-ror.nodejitsu.com/ ? [13:59] TheJH: (my proxy blocks it anyway, but meh) [14:00] DrMcKay: TheJH: because it was easiest for me to use? [14:00] DrMcKay: TheJH: and that thing we're talking about was for Python, I think [14:00] DrMcKay: http://piwik.org/ [14:00] DrMcKay: PHP :< [14:01] Brandon_R: php lol [14:01] Brandon_R: they should try rewriting it in js [14:01] DrMcKay: TheJH: btw, why not? evil google and shit? [14:02] melcher has joined the channel [14:02] gh3 has joined the channel [14:02] TheJH: DrMcKay, yes. although I probably shouldn't say that with my primary mail account being at googlemail... [14:02] chance- has joined the channel [14:02] DrMcKay: TheJH: exactly :) [14:02] jsurfer has joined the channel [14:03] k1ttty has joined the channel [14:04] meso has joined the channel [14:04] jsurfer has left the channel [14:06] gh3: i need your support on how to implement a thing with node + mongodb. I'm creating a db, with mongoose, composed by something like var App = new Schema({ name: String, status: String, comments: [Comments] }); and comments is something like var Comments = new Schema({ udid: String, // user unique identifier page: String, event: String, date: Date, tag: [Tags] }); now I should use a map reduce to count the number of total tags? or do you [14:07] lynxnathan has joined the channel [14:07] melcher has joined the channel [14:09] melcher has joined the channel [14:09] DrMcKay: Battle station fully operational!!! [14:09] eldios has joined the channel [14:11] melcher has joined the channel [14:12] melcher_ has joined the channel [14:13] paul0 has joined the channel [14:14] cthulhu_lovecraf has joined the channel [14:15] christkv has joined the channel [14:16] criswell has joined the channel [14:18] Chris64 has joined the channel [14:18] DrMcKay: http://localhost8000.com/ <- Good Guy Greg Domain Squatter [14:18] Chris64: hi [14:18] zastaph has joined the channel [14:18] Brandon_R: lol [14:18] Brandon_R: i doubt that's domain squatting since it serves a purpose [14:19] Chris64: does node.js support the same api like a webbrowser? e.g. document.links[i].childNodes[j] ? [14:19] xy_ has joined the channel [14:19] Brandon_R: i think there is a library for that chris [14:20] Brandon_R: you can do like element.text = value and have it update on the browser real time [14:20] errordeveloper: hm .. https://gist.github.com/1256102 [14:21] Vennril has joined the channel [14:21] Chris64: okay, I'll search for the DOM lib thank you :) [14:21] errordeveloper: the whole point of using jsdom was not to modify the code that I'm trying to import [14:22] errordeveloper: and here you go, it still doesn't work with 'window' defined [14:22] Brandon_R: i'm trying to learn processing.js also [14:22] Brandon_R: i have a question error [14:22] joemccann has joined the channel [14:22] Brandon_R: is there like a freedraw script in processing? [14:23] errordeveloper: Brandon_R: dunno, go to #processing.js @ irc.mozilla.org :) [14:23] Brandon_R: is it active? [14:23] errordeveloper: Brandon_R: I'm just scratching the surface [14:23] Fodi69 has joined the channel [14:23] Brandon_R: kool [14:23] errordeveloper: Brandon_R: yes, it's quite active :) [14:23] Brandon_R: open source? [14:23] Brandon_R: i'm just starting also [14:23] mAritz has joined the channel [14:24] errordeveloper: Brandon_R: I kind wanna get the back-end working with node [14:24] Brandon_R: oh [14:24] errordeveloper: and then may be find someone to do the ui [14:24] Brandon_R: are you going to use the pde files or code in direct javascript [14:24] Brandon_R: i think you can do both [14:24] errordeveloper: Brandon_R: https://gist.github.com/1254617 [14:25] errordeveloper: Brandon_R: with pde's it's probably better way to go [14:25] Brandon_R: it does look more simple [14:25] errordeveloper: I had been told there is no particular need for coding processing.js in js [14:26] errordeveloper: yeah :) [14:26] enmand_ has joined the channel [14:27] errordeveloper: Brandon_R: see that gist if you need a basic node implementation of pjs server ;) [14:27] Brandon_R: seen [14:27] Brandon_R: yep seems self evident [14:27] errordeveloper: I'm currently trying to get node to parse the pde's and cache that on the server side [14:27] Brandon_R: i'm thinking about making an infinite canvas in processing [14:27] errordeveloper: just for the sake of making node do the homework :) [14:28] errordeveloper: Brandon_R: is that no gonna be a killer ? [14:29] jbrokc has left the channel [14:29] errordeveloper: making something infinite is bad in theory [14:29] Brandon_R: don't you think that will cause too much load in node [14:29] Brandon_R: image processing and all that [14:29] errordeveloper: Brandon_R: no no, i'm not doing that [14:29] edwardmsmith has left the channel [14:29] Brandon_R: infinite like wordsquared [14:30] daglees has joined the channel [14:30] daglees has joined the channel [14:30] errordeveloper: Brandon_R: basically pjs parses sketches into pure js [14:30] nickadeemus2002 has left the channel [14:30] errordeveloper: and that happends on each page load [14:30] enmand_ has joined the channel [14:30] Brandon_R: so the server doesn't have to build the images and all that ? [14:30] Brandon_R: it sends that out to the browser [14:30] errordeveloper: well.. unless browser caches that .. [14:30] ydef: . . . . damn you, confreaks.com [14:30] joemccann has joined the channel [14:31] Brandon_R: when is the next nodejs camp [14:31] Brandon_R: what is the average age of people attending the camp? [14:31] errordeveloper: Brandon_R: basically it's just a tiny bit of work, but might be helpfull in some situations [14:31] Brandon_R: brb guys [14:31] enmand_ has joined the channel [14:32] darinc has joined the channel [14:33] stepheneb has joined the channel [14:34] melcher has joined the channel [14:34] melcher_ has joined the channel [14:36] marcello3d has joined the channel [14:37] dexter_e has joined the channel [14:37] melcher has joined the channel [14:38] melcher has joined the channel [14:38] melcher has joined the channel [14:39] TheJH has joined the channel [14:39] TheJH has joined the channel [14:40] melcher has joined the channel [14:41] melcher has joined the channel [14:41] jarsen has joined the channel [14:41] TheJH has joined the channel [14:41] TheJH has joined the channel [14:41] crodas has joined the channel [14:42] dexter_e: Anyone know of a tight way to get elapsed time in milliseconds conveniently? I want to time and compare different parsing timings [14:42] jarsen: i'm using npm to install a few packages, but it keeps placing them in my cwd instead of the NODE_PATH I'm exporting. It's not supposed to do that, is it? [14:42] dexter_e: Ideally something like stopWatch.start() var result=stopWatch.stop(); [14:43] ohtogo has joined the channel [14:43] CarterL has joined the channel [14:44] christkv has joined the channel [14:44] dexter_e: This stopwatch type thing is pretty cool: http://proft.50megs.com/stopwatch.html [14:44] dexter_e: Basically a Javascript stopwatch library.. anyone? [14:44] melcher has joined the channel [14:45] melcher has joined the channel [14:50] daglees__ has joined the channel [14:50] melcher has joined the channel [14:52] dhasenan_ has joined the channel [14:52] lynxnathan: can't be something as var start = new Date; (do stuff...) var res = new Date - start; ? [14:52] dhasenan_ has left the channel [14:52] melcher has joined the channel [14:53] errordeveloper: can anyone have a look .. https://gist.github.com/1256102 [14:53] melcher has joined the channel [14:55] melcher has joined the channel [14:55] melcher has joined the channel [14:56] Aikar: errordeveloper: i take it it has errors? [14:57] dexter_e: lynxnathan : That will get you miliseconds? [14:57] Aikar: errordeveloper: looks like something in processing.js is throwing the error [14:57] melcher has joined the channel [14:57] Aikar: errordeveloper: your window var is not global, so you will need to pass window to p() or add a ; after require(jsdom) and make it global [14:58] Aikar: (its preferred you pass it [14:59] lynxnathan: @dexter_e yes [15:00] socketio\test\31 has joined the channel [15:02] melcher has joined the channel [15:02] xtianw has joined the channel [15:02] dexter_e: lynxnathan: Works like a charm. Thank you. [15:03] dexter_e: Just excellent [15:03] melcher_ has joined the channel [15:03] leahculver has joined the channel [15:03] leahculver has joined the channel [15:03] lynxnathan: dexter_e: no problem =] [15:04] bearnard has joined the channel [15:04] mynyml has joined the channel [15:05] MikeW: Hey guys, any favourite database servers to use with node to dump log data into? [15:05] Aikar: MikeW: nosql for sure [15:05] dexter_e: CouchDb or Mongo [15:06] Aikar: "logdata" may be iffy for mongo, no reason to map log data to memory [15:06] MikeW: I thought either of those are more document oriented [15:06] Aikar: yes [15:06] Aikar: thats the point [15:06] AvianFlu: so is log data [15:06] Aikar: send as much data with your log as you want :P [15:06] Aikar: throw an exception? store entire exception object instead of just the message [15:06] MikeW: well, with a traditional db there's not a lot of overhead per record [15:07] Aikar: what makes you think a document based one is? [15:07] AaronMT has joined the channel [15:07] dexter_e: what do you mean by 'overhead' ? [15:08] Aikar: {date: new Date(), level: 'exception': 'message' => 'Foo threw exception A', exception: { line: 32, col: 44, stack: {}}} [15:08] Aikar: you can add ANYTHING you want on a unique basis for why your logging [15:09] MikeW: well I don't want to write it to memory so I don't want memory chewed up until I want to come back and read it out a few days later, and I don't want too many bytes wrapping each entry [15:09] Aikar: good luck doing that with SQL in a sane manner [15:09] Aikar: hince why i said mongo may be iffy [15:09] Aikar: so look at couch [15:09] MikeW: ok, cool [15:09] melcher has joined the channel [15:10] davidwalsh has joined the channel [15:10] melcher has joined the channel [15:10] r04r: CouchDB lets you store entire objects on a key/value base? [15:10] Aikar: thats what a document database in general does... [15:11] jesster7 has joined the channel [15:11] Aikar: no schema, you just throw objects at it [15:11] r04r: Neat [15:11] Aikar: and a specific key on the obj is the primary key (auto generated usually) [15:11] jesster7 has left the channel [15:12] Aikar: with mongodb you can even query on it find({"foo.bar": "baz"}) [15:12] Aikar: would find { "foo" : { "bar" : "baz" } } [15:12] Aikar: couch you can too, but with map/reduce [15:13] stisti has joined the channel [15:15] melcher has joined the channel [15:15] mandric has joined the channel [15:15] dexter_e: r04r: It will also generate version numbers each time you save it allowing you to step through time as the object changes if need be [15:16] melcher has joined the channel [15:17] xerox: anybody knows a free even if limited but also private git repo service? [15:17] boxysean has joined the channel [15:17] criswell has joined the channel [15:17] dguttman has joined the channel [15:17] mike5w3c_ has joined the channel [15:19] versicolor has joined the channel [15:21] dexter_e: xerox: why not just use your webserver? [15:22] xerox: it helps to have backups :| [15:24] dexter_e: maybe it would be easier to find a free box that just has ssh running? [15:24] EyePulp has joined the channel [15:25] Aikar: man being able to upload at 400k a sec is awesome [15:26] dexter_e: That is awesome. You must be in a building with no windows and 1 meter thick concrete walls. [15:27] xerox: yeah I mean I could set up my own on another server but maybe there was something good out there already [15:29] melcher has joined the channel [15:30] ypcx has joined the channel [15:31] Brandon_R has joined the channel [15:31] jedahan has joined the channel [15:31] jedahan has joined the channel [15:32] Brandon_R: hi guys [15:33] ypcx: has there been any progress with implementing the async exception handling? or is this planned for 0.5? https://github.com/joyent/node/wiki/Async-Exception-Handling [15:34] Brandon_R: yes [15:34] Brandon_R: asyncronous error handling [15:34] Brandon_R: i have a question [15:34] skyl has joined the channel [15:34] Brandon_R: is doing everything asyncronously slow down the app? [15:34] Aikar: uh... no... [15:35] Aikar: thats the point of async [15:35] Brandon_R: like 2 + 2 vs function(err, ret){return 2 + 2} [15:35] Aikar: it speeds it up [15:35] Brandon_R: context switching [15:35] Brandon_R: takes resources [15:35] devongovett has joined the channel [15:35] Brandon_R: question is when does it add up [15:35] Aikar: its not switching context [15:35] ypcx: by a chance I have found a workaround for the current situation yesterday: http://github.com/CrabDude/trycatch - not sure what are the caveats besides a bit of bloat [15:35] Aikar: unless you use fibers [15:35] cthulhu_lovecraf has joined the channel [15:35] Brandon_R: what's fibers [15:35] Aikar: which is a total optional choice in userland [15:35] Aikar: context switching [15:35] Aikar: "green threads" [15:36] xerox: ypcx: whoa [15:36] xerox: nice I did not know there was a proposal, this is interesting [15:36] Brandon_R: is erlang build using green threads [15:36] Spion has joined the channel [15:37] herbySk has joined the channel [15:37] Aikar: dunno [15:37] jwhisnant_ has joined the channel [15:37] ypcx: xerox: yep, just trying to figure out whether I'm jumping to 0.5 or not, lol.. but there's a working 0.4 with that patch - https://github.com/benw/node [15:37] djcoin has joined the channel [15:37] Brandon_R: any tutorials on how to make everything asyncronous [15:38] ypcx: Brandon_R: no need to make everything async, that's a fallacy.. you can do it, but your code will be much harder to manage [15:38] Aikar: first you need to understand async [15:38] ypcx: Brandon_R: you can for example use the event bus pattern, if you insist [15:39] Aikar: function add(input, cb) { cb(2+ input); } add(4, function(result) { console.log(result) }); [15:39] Aikar: that LOOKS async [15:39] Aikar: but its actually sync [15:39] Aikar: async involves calling functions that will take a while to return a result, like reading a file, and passing a callback for when its done. [15:39] mediaslave has joined the channel [15:40] Aikar: the callback will be executed on a different tick of the event loop [15:40] Aikar: but in that code above [15:40] ypcx: Brandon_R: effective "async" is via process.nextTick [15:40] Aikar: the callback is executed on the exact same stack [15:40] skiz has joined the channel [15:41] Aikar: im gonna post a few lines as a diagram [15:41] Aikar: :foo->bar->baz->blah() [15:41] Aikar: : [15:41] Aikar: : [15:41] Aikar: :blooop() [15:41] Aikar: say you have function foo, that calls bar, that calls baz, that calls blah, all synchronously [15:42] Aikar: and blah registers an async function bloop [15:42] eirikb has joined the channel [15:42] Aikar: that foo-bar-baz-blah callstack unwinds back to : (the event loop) [15:42] Aikar: the event loop may then sit there for 2 cycles with nothing to do [15:42] Aikar: then blooop is ready [15:42] Aikar: so it executes blooop [15:42] eirikb: Hey. Are there any modules for JS- and CSS-minifying for express? [15:43] Brandon_R: nice [15:43] Aikar: synchronous code keeps building upon a callstack, async runs directly off the event loop [15:43] Brandon_R: i definitly need a new way of thinking for node :) [15:43] Aikar: yes, async is a different way of thinking [15:43] Brandon_R: so [15:43] Brandon_R: are there any patterns to follow or best practices? [15:43] Brandon_R: or is this new ground? [15:43] Aikar: howtonode.com [15:44] Aikar: and async coding style is very opinionated [15:44] Brandon_R: it looks like a weird website [15:44] Brandon_R: like a sedo landing page [15:44] Aikar: one guy has wrote an awesome module called streamline that lets you write code in a synchronous style [15:44] Aikar: sorry .org [15:44] Aikar: http://howtonode.org [15:46] Brandon_R: thank [15:46] Brandon_R: s [15:46] akujin has joined the channel [15:46] Chris64: heh, funny :) http://howtonode.org/capturing-packets-in-javascript [15:46] Chris64: good to know that there is a pcap module :) [15:47] innociv has joined the channel [15:47] Brandon_R: what was that thing you were talking about [15:47] Brandon_R: the event bus pattern? [15:47] dnjaramba has joined the channel [15:47] sdwrage has joined the channel [15:47] temongantengbgt has left the channel [15:47] eirikb: Maybe solder is a good solution? But I can't see that it uses uglifyjs or similar... [15:48] alvaro_o has joined the channel [15:48] eirikb: Ah it uses closure [15:48] dnjaramba has joined the channel [15:49] eirikb: I'm currently just cating together in to uglifyjs and that actually works perfectly (including jQuery and jQuery UI) [15:49] adrianmg has joined the channel [15:50] AaronMT has joined the channel [15:50] eirikb: What I can do is to trigger that programatically when in production mode. But I also need a prod-layout that will be used in production, not sure how to do that [15:50] innociv has joined the channel [15:51] joemccann has joined the channel [15:51] AvianFlu: v8: ['Y', 'O', 'U', ' ', 'D', 'I', 'S', 'A', 'G', 'R', 'E', 'E', '?'].forEach(process.stdout.write) [15:51] v8bot_: AvianFlu: ReferenceError: process is not defined [15:51] dnjaramba has joined the channel [15:52] [[zz]] has joined the channel [15:52] joemccann has joined the channel [15:54] dnjaramba has joined the channel [15:55] max_dev has joined the channel [15:56] postwait has joined the channel [15:57] hswolff has joined the channel [15:59] dimroc has joined the channel [16:01] felixge has joined the channel [16:01] felixge has joined the channel [16:01] johnwards has joined the channel [16:02] Brandon_R: hey guys [16:02] _bLiNd_RaGe has joined the channel [16:02] Brandon_R: nodejs uses libuv right [16:02] Brandon_R: does that mean i can use libuv in my c++ bindings? [16:02] _bLiNd_RaGe: quick question. just installed node.js on fedora, and just loaded up the http example (port 1337), but i can't access it from my other computer. I added tcp and udp in iptables, still can't connect [16:03] _bLiNd_RaGe: anyone know if i missed something? selinux maybe? [16:03] Brandon_R: can i see the code? [16:03] Brandon_R: is it just the default code? [16:03] Brandon_R: remove the 127.0.0.1 [16:03] Brandon_R: or bind to 0.0.0.0 [16:03] Brandon_R: 127.0.0.1 is the local ip [16:04] _bLiNd_RaGe: yea, nothing [16:04] _bLiNd_RaGe: i'll try 0.0.0.0 [16:04] eirikb: _bLiNd_RaGe: ssh -L 1338:localhost:1337 localhost -g :D [16:04] cafesofie has joined the channel [16:04] _bLiNd_RaGe: gonna assume :D is not part of the command =) [16:05] eirikb: It's not, added it to indicate that it is very much a workaroud [16:06] _bLiNd_RaGe: couldnt request local binding [16:06] japj: v8: console.log("bla") [16:06] v8bot_: japj: CONSOLE: ["bla"], OUTPUT: undefined [16:07] Brandon_R: how are you accessing the server? [16:07] Brandon_R: what url are you using from the other pc [16:07] _bLiNd_RaGe: gotta be firewall, lynx localhost:1337 worked [16:07] _bLiNd_RaGe: damnit, it was dns [16:07] _bLiNd_RaGe: 192.168.2.11:1337 worked [16:07] _bLiNd_RaGe: blindrage.us:1337 didn't [16:08] _bLiNd_RaGe: long morning. thanks Brandon_R [16:08] Brandon_R: np [16:08] Brandon_R: had the same problem when i started [16:09] _bLiNd_RaGe: gonna try to make my first project something simple (mllp receiver) [16:10] melcher has joined the channel [16:11] infynyxx has joined the channel [16:11] c4milo has left the channel [16:11] Frippe has joined the channel [16:12] metaverse has joined the channel [16:12] dmkbot has joined the channel [16:13] joshthecoder has joined the channel [16:13] thalll_ has joined the channel [16:17] innociv_ has joined the channel [16:18] overra has joined the channel [16:20] innociv__ has joined the channel [16:20] mekwall has left the channel [16:22] innociv has joined the channel [16:23] herbySk has joined the channel [16:24] Brandon_R has joined the channel [16:24] robotmay has joined the channel [16:27] dubenstein has joined the channel [16:27] innociv_ has joined the channel [16:27] ypcx has joined the channel [16:27] Brandon_R: hi [16:28] ypcx: hi [16:29] stisti has joined the channel [16:29] brianseeders has joined the channel [16:29] ypcx: any of the node devs currently here? [16:30] JaKWaC has joined the channel [16:30] jarsen has joined the channel [16:30] infynyxx has joined the channel [16:31] jarsen: should npm be placing node_modules in my cwd? i set a NODE_PATH, does it not get installed there? [16:31] ypcx: npm always works with CWD afaik [16:31] ypcx: except when using -g [16:34] bbalint has joined the channel [16:34] jarsen: ypcx: awesome. thanks [16:37] patcito has joined the channel [16:37] Brandon_R has joined the channel [16:37] vicapow has joined the channel [16:37] Brandon_R: hey guys [16:38] vicapow has joined the channel [16:38] vicapow: anyone have a recommendation for a good IDL that plays nice with node ? [16:38] binaryjohn has joined the channel [16:39] Brandon_R: not that i can say [16:39] ypcx: what's IDL? [16:39] jarsen: IDE? [16:39] ypcx: integrated development leisure [16:39] ypcx: maybe [16:40] reid has joined the channel [16:40] Brandon_R: lolwut [16:40] ypcx: vicapow: I use TextMate.. I worked with Eclipse for Java extensively and I think big IDEs are cancer, lol [16:40] Brandon_R: i use aptana [16:40] Brandon_R: very nice [16:40] eirikb: ACTION vim [16:40] vicapow: ypcx: I also use textmate and i agree but I meant IDL [16:40] Brandon_R: i get code completion and syntax highlighting for everything even stylus and jade [16:41] ypcx: vicapow: what Brandon_R says and also Cloud9 [16:41] Brandon_R: i use emacs for erlang though [16:41] Brandon_R: what's cloud9? [16:41] vicapow: IDL = Interface Definition Language [16:41] Brandon_R: oh [16:41] Brandon_R: c9 [16:41] skiz has joined the channel [16:41] Brandon_R: does it have code completion and jade syntax highlighting? [16:41] ypcx: vicapow: ah i should knew better lol [16:42] ypcx: Brandon_R: never used it so dont know [16:42] Brandon_R: how does one purchase a 2 letter io domain lol [16:42] ypcx: Brandon_R: it's web based [16:42] DrMcKay: use vim, it has everything [16:42] Brandon_R: use emacs, it has everything [16:42] ypcx: DrMcKay: i find it tiring to have to switch modes all the time with vim [16:42] Brandon_R: let the war commence [16:42] vicapow: lol, what have I started [16:43] Destos has joined the channel [16:43] vicapow: IDL people [16:43] ypcx: lol [16:43] eirikb: I only use sed, it lacks syntax highlighting, but it works [16:44] DrMcKay: well, you should use cat. [16:44] ypcx: :) [16:44] ypcx: vicapow: what interfaces do you want to define? for classes in javascript? [16:44] eirikb: Hmm, not sure how you would do it with just cat, but you can program with just sed alone [16:44] infynyxx_ has joined the channel [16:45] ypcx: ok let's conclude the IDE talk with http://xkcd.com/378/ [16:45] DrMcKay: real programmers use butterflies [16:46] ypcx: btw when you run node without arguments, it's de facto an editor (shell), but you'd need to call fs.write() manually to save your changes, lol [16:46] vicapow: ypcx: lol [16:47] Brandon_R: cloud9 is so pretty lol [16:48] ypcx: yeah and if your internet goes down, you can use it as an excuse for not coding [16:48] ypcx: they should put that into features [16:48] anveo has joined the channel [16:49] dgathright has joined the channel [16:49] Brandon_R: :) [16:49] anveo has joined the channel [16:49] Brandon_R: that's the one major argument against moving to the cloud [16:49] Brandon_R: if your internet goes down then its all over [16:49] jslatts has joined the channel [16:49] ypcx: well it is anyway cos docs are all online usually:) [16:50] Brandon_R: i think we will loose performance by moving to the cloud [16:51] navaru has joined the channel [16:51] ceej has joined the channel [16:53] pasku has joined the channel [16:53] pasku: hi guys! [16:53] Brandon_R: hey guys [16:53] Brandon_R: what are you levels in mathematics [16:53] Brandon_R: ? [16:54] pasku: Someone knows how to make a request to the twitter rest api with node? [16:54] Aikar: levels... ? [16:54] Aikar: a game? [16:54] DrMcKay: pasku: ntwitter [16:55] pasku: ex: http://api.twitter.com/1/statuses/user_timeline.json?count=200&screen_name=pasku1 [16:55] pasku: and get the json response [16:55] Brandon_R: not [16:55] Brandon_R: now [16:55] Aikar: my math level is Google [16:55] Brandon_R: like what classes did you guys take [16:55] Brandon_R: i want to know what i should learn [16:56] ypcx: Brandon_R: learn to use Mathematica [16:56] Aikar: math is something you need to know, but the foundation of programming you neeed CS classes... [16:56] eirikb: DrMcKay: ntwitter is better/the same as twitter-node? [16:57] eirikb: Ah [16:57] eirikb: It's a fork of node-twitter, which again is a fork of twitter-node :D [16:57] Aikar: and if your in a node.js channel, advanced mathematics is likely not a huge need. if you passed high school math, you "learning programming" you need programming classes next :P [16:57] pasku: But I only need make a request [16:57] pasku: to get the json response [16:58] Brandon_R: did you take cs in college aikar? [16:58] Aikar: nope [16:58] Brandon_R: or are you currently in collegio [16:58] Aikar: I spent my teenage years teaching my self programming [16:58] Aikar: instead of partying [16:59] Brandon_R: are you in hs [16:59] Aikar: nope [16:59] DrMcKay: eirikb: better [16:59] Aikar: got a full time job with great pay :P [16:59] Brandon_R: haha same [16:59] Aikar: but i did get an associates degree [16:59] AvianFlu: eirikb: it's the same codebase, upgraded and supported [16:59] Aikar: but didnt learn anything from it [16:59] Brandon_R: i mean same with the thing about teaching myself programming [16:59] Aikar: only got it to help get a job [16:59] Brandon_R: i don't have a job yet [17:00] eirikb: AvianFlu: So both jdub and technoweenie are pushing to your repo now? [17:00] poshboytl has joined the channel [17:00] Aikar: there is alot of stuff that is really good to learn from a CS degree, but it is stuff you can pickup through practice and google [17:00] DrMcKay: I do maths quite good, but in most cases you won't need any advanced maths in programming [17:01] jarek has joined the channel [17:01] jarek has joined the channel [17:01] Aikar: unless your writing software for CERN [17:01] AvianFlu: eirikb: no. just me. [17:01] eirikb: AvianFlu: Ok, but you keep mergin then? [17:01] Brandon_R: i like deep mathematics [17:01] AvianFlu: no, it's a fork now [17:01] DrMcKay: I mean, I know integrals and derivatives, but I've used them only for apps demonstrating how intergals and derivatives work [17:01] AvianFlu: I just continued the version numbers and fixed a bunch of stuff [17:01] Brandon_R: i want to convert the entire euclid elements proofs to rephaeljs [17:01] Aikar: (CERN = the LHC particle collider :P) [17:01] DrMcKay: *integrals [17:01] Brandon_R: just for fun [17:01] AvianFlu: neither of the other libs are currently maintained, I believe [17:02] mde has joined the channel [17:02] Aikar: you mean raphael, the canvas/svg rendering library? [17:02] eirikb: AvianFlu: ok [17:02] Brandon_R: yeah [17:02] Brandon_R: i'm thinking of making an app where i can teach people through a realtime canvas [17:02] eirikb: AvianFlu: I have been using twitter-node, but it seems I need to switch to your version then :) [17:02] infynyxx_ has joined the channel [17:03] AvianFlu: yeah it's unfortunate that they just shut off the http service [17:03] AvianFlu: makes sense though I guess [17:03] catb0t has joined the channel [17:03] AvianFlu: for the streams I mean, they're https only now [17:04] jp_ has joined the channel [17:04] eirikb: I'm not having any issues with twitter-node though, it seems to work perfectly [17:04] eirikb: Including streaming [17:04] AvianFlu: all the REST stuff should work, period [17:04] jp_ has left the channel [17:04] AvianFlu: allegedly the stream urls are all https: now [17:04] AvianFlu: and the http ones don't work anymore [17:04] AvianFlu: except for existing connections [17:05] AvianFlu: so hey, if you didn't have to change anything, awesome [17:05] mbstudios has joined the channel [17:05] AvianFlu: but that's what I heard [17:05] eirikb: AvianFlu: I just twit.stream('user', function(stream){stream.on('data'... [17:05] AvianFlu: two of the API urls had to change, that was the only real fix needed [17:05] eirikb: Where twit is new (require('twitter')) from twitter-node [17:06] eirikb: ok [17:06] AvianFlu: on the streams thing anyway [17:06] trupppOFF has joined the channel [17:07] mekwall has joined the channel [17:07] eirikb: AvianFlu: Do you think it is strange you need an API key? [17:07] Destos has joined the channel [17:08] AvianFlu: they want to control access, which I can understand [17:08] eirikb: Yeah I guess, but many of the calls could be fully open [17:09] AvianFlu: their API docs ask users repeatedly to minimize concurrent connections and churn whenever possible - I'd imagine they want to be able to ban people [17:09] AvianFlu: it is a free service, after all [17:10] localhost has joined the channel [17:10] eirikb: Yeah. And probably very heavily used [17:10] eirikb: But I love github api though, they make a clear difference between where you need a key and what is fully open [17:10] skiz has joined the channel [17:10] AvianFlu: that makes sense [17:10] mbstudios has left the channel [17:11] AvianFlu: and I do agree, a lot of twitter data is public info anyway [17:11] joemccann has joined the channel [17:11] eirikb: Yeah [17:11] mbstudios has joined the channel [17:12] Brandon_R: hey guys [17:12] Brandon_R: is there an all in one node.js auth lib [17:13] DrMcKay: everyauth [17:13] eirikb: AvianFlu: This is just so beautiful: https://api.github.com/repos/torvalds/linux [17:13] AvianFlu: yeah that's pretty sweet [17:14] Brandon_R: i love linux [17:15] Brandon_R: "language": "C", beast [17:15] cognominal_ has joined the channel [17:16] stonebranch has joined the channel [17:17] sub_pop has joined the channel [17:18] Brian` has joined the channel [17:19] vns__ has joined the channel [17:23] mehtryx has joined the channel [17:24] dmkbot has joined the channel [17:25] infynyxx_ has joined the channel [17:25] versicolor has joined the channel [17:25] ryan[WIN] has joined the channel [17:29] PatF has joined the channel [17:31] neilk_ has joined the channel [17:39] lynxnathan: just realized if you set the statusCode and the Content-Type header manually (eg using setHeader instead of writeHeader) using connect, it will try to resend the headers [17:39] dubenstein has joined the channel [17:39] lynxnathan: anyone knows if that is the expected behaviour? [17:39] dbidiot has joined the channel [17:39] dbidiot has left the channel [17:40] parshap has joined the channel [17:40] fangel has joined the channel [17:43] nerdfiles1 has joined the channel [17:43] nerdfiles1 has left the channel [17:44] jwhisnant__ has joined the channel [17:47] luke` has joined the channel [17:50] dubenstein has joined the channel [17:50] daglees has joined the channel [17:54] brianseeders has joined the channel [17:55] OSInet has joined the channel [17:56] OSInet has left the channel [17:56] slifty has joined the channel [17:59] JaKWaC has joined the channel [18:00] pizthewiz has joined the channel [18:00] shipit has joined the channel [18:01] CrisO has joined the channel [18:02] perezd has joined the channel [18:03] frankg has joined the channel [18:05] losing has joined the channel [18:11] N0va` has joined the channel [18:11] nickadeemus2002 has joined the channel [18:12] joemccann has joined the channel [18:14] maeldur has joined the channel [18:14] dmkbot: joyent/node: 03indutny: Debugger docs: round 1 - https://github.com/joyent/node/issues/1809 [18:14] DrMcKay: wut? [18:14] DrMcKay: it works? [18:14] H4ns has joined the channel [18:15] chrisvtx has joined the channel [18:15] H4ns: hi. is there a way to create a string representation of an object similar to what console.log() does? specifically, [].toString() yields "", but i'd like to get "[]" [18:16] DrMcKay: !doc link util#inspect [18:16] dmkbot: http://nodejs.org/docs/latest/api/util.html#util.inspect [18:16] DrMcKay: H4ns: ^ [18:16] H4ns: DrMcKay: thank you! [18:16] DrMcKay: H4ns: :) [18:17] sridatta has joined the channel [18:18] CrisO has joined the channel [18:22] adambeynon has joined the channel [18:23] mhauri has joined the channel [18:24] jarek has joined the channel [18:25] jhurliman has joined the channel [18:31] swair has joined the channel [18:32] leahculver has joined the channel [18:32] leahculver has joined the channel [18:32] cthulhu_lovecraf has joined the channel [18:32] slifty has joined the channel [18:32] leahculver has joined the channel [18:32] leahculver has joined the channel [18:32] willwhite has joined the channel [18:33] swair: This is the error i get while building nodejs from git: http://paste.kde.org/129457 [18:33] edenli has joined the channel [18:33] jtsnow has joined the channel [18:33] swair: can anyone help me out? [18:33] jetienne_ has joined the channel [18:33] indutny: swair: what OS are you using? [18:33] swair: arch [18:34] swair: indutny: ^ [18:34] indutny: swair: k [18:34] wilmoore has joined the channel [18:35] eirikb: swair: dd --version? [18:35] swair: 8.13 [18:35] eirikb: err ld ofc [18:35] eirikb: Does node use ld, can't g++ do linking instead [18:36] indutny: swair: are you going to build 0.5.x? [18:36] indutny: swair: it's unstable, try `git checkout v0.4.12 && ./configure && make` [18:36] swair: indutny: ah ok. thanks! [18:36] eirikb: Maybe also make sure you pacman -S base-devel, but I guess you have it... [18:37] swair: ok [18:37] indutny: erickt: I think he does, because compiling goes to `ld` phase [18:37] eirikb: yeah I figured as much, but you never know :D [18:37] indutny: eirikb: libuv was ignored somehow [18:37] indutny: :) [18:38] eirikb: indutny: Do you know why node does linking through ld and not within g++? [18:38] indutny: erickt: not really [18:39] eirikb: Probably the size of it, and some C-parts I guess. [18:40] blueadept has joined the channel [18:40] blueadept has joined the channel [18:40] Vennril has joined the channel [18:40] dimroc has joined the channel [18:40] louissmit has joined the channel [18:42] Sorella has joined the channel [18:42] adrianmg has left the channel [18:43] tylerstalder has joined the channel [18:44] kenperkins has joined the channel [18:45] daglees has joined the channel [18:46] chase has joined the channel [18:47] jhurliman has joined the channel [18:48] JaKWaC has joined the channel [18:49] swair has joined the channel [18:51] djko has joined the channel [18:52] jarek_ has joined the channel [18:52] willwhite has joined the channel [18:53] Tobbe: I'm using express-resource. Is there any support for nested resources? [18:54] marcello3d has joined the channel [18:58] TooTallNate has joined the channel [18:58] hellp has joined the channel [19:02] reid has joined the channel [19:03] kenperkins has joined the channel [19:03] melcher has joined the channel [19:05] wilmoore has joined the channel [19:05] sdwrage has joined the channel [19:07] cernal_panic has joined the channel [19:08] alekhine has joined the channel [19:11] brianseeders has joined the channel [19:13] felixhummel has joined the channel [19:13] scott_gonzalez has joined the channel [19:14] Brandon_R has joined the channel [19:15] marcello3d: does this show for people? ✼ [19:15] Brandon_R: yes [19:15] Brandon_R: it is a snowflake [19:15] marcello3d: thinking about using unicode for icons... I wonder what the coverage on windows/linux is like [19:16] JaKWaC has joined the channel [19:16] DrMcKay: marcello3d: yes, Linux, Fedora 15, GTK 3 [19:16] Brandon_R: Yes, windows vista chrome [19:16] marcello3d: cheers :) [19:17] marcello3d: do you think that'd be a good icon for loading if I rotated it around using css transforms? [19:17] DrMcKay: marcello3d: neat idea [19:17] Brandon_R: yeah [19:17] Brandon_R: show me the demo of how it will be [19:17] stepheneb has joined the channel [19:17] Brandon_R: on jsfiddle.net [19:17] kenperkins has joined the channel [19:17] Tobbe: marcello3d: not showing for me (just shows like an empty square) [19:17] Brandon_R: i think the less images used is better [19:18] zeade has joined the channel [19:20] marcello3d: tobbe: OS? [19:20] tilgovi has joined the channel [19:20] tilgovi has joined the channel [19:21] marcello3d: woah, what's this jsfiddle thing? [19:21] jarek__ has joined the channel [19:21] augustl: it's a place where you can fiddle with JS [19:21] marcello3d: haha [19:21] Brandon_R: couldn't have said it better myself [19:21] Guest8924 has joined the channel [19:22] jarek__ has joined the channel [19:22] pizthewiz has joined the channel [19:22] Brandon_R: does ryah come to these chats? [19:22] jarek has joined the channel [19:22] jwhisnant_ has joined the channel [19:22] davve: Brandon_R: ofcourse [19:23] Brandon_R: kool [19:23] binarychef has joined the channel [19:23] Tobbe: marcello3d: err, I'm connected to some server somewhere, don't know what it runns. Some Linux dist [19:23] davve: he's here now. meet ryah [19:24] marcello3d: Tobbe: might be a limitation of irc, not your os then [19:24] Tobbe: irssi [19:24] Tobbe: it's some setting somewhere... [19:24] binarychef has left the channel [19:26] Tobbe: marcello3d: I'm on Ubuntu 11.04 [19:26] Brandon_R: you might need to install a font pack [19:26] Brandon_R: when i'm on arch and i go to facebook i see squares [19:27] Brandon_R: where the chinese letters should be [19:27] Tobbe: I don't have root access on the machine [19:27] Tobbe: I just use it for irc :) [19:28] Brandon_R: you should use webchat [19:28] marcello3d: hmmm [19:28] marcello3d: it's not centered right [19:28] marcello3d: so it looks a little funky [19:28] vicapow has joined the channel [19:29] marcello3d: and runs weird in chrome [19:29] marcello3d: http://jsfiddle.net/XC2kX/ [19:29] Tobbe: Brandon_R: no. Now I can connect to my irc session from any computer/smartphone. And I'm "online" 24/7. Can't do that with a webchat [19:30] Brandon_R: its not spinning [19:30] kmwallio has joined the channel [19:31] marcello3d: I only used the webkit animation styles so it won't work on firefox probably [19:31] Tobbe: In my browser I see the snowflake just fine :) [19:31] marcello3d: oh wait [19:31] Tobbe: but yeah, it's not spinning in my browser (Firefox) [19:31] marcello3d: it didn't save my latest changes it looks like [19:31] marcello3d: http://jsfiddle.net/XC2kX/1/ [19:31] marcello3d: let me add firefox [19:32] marcello3d: http://jsfiddle.net/XC2kX/2/ [19:32] marcello3d: there [19:32] CarterL has joined the channel [19:33] JorgeRuiz has joined the channel [19:34] Tobbe: marcello3d: still static [19:34] Brandon_R: very nice [19:34] Brandon_R: but its not spinning in a circle [19:34] Tobbe: I'm on firefox 3.6.something [19:34] marcello3d: http://jsfiddle.net/XC2kX/4/ shifts a little bit so it rotates nicer on my comp (os x) [19:34] Brandon_R: its weird [19:34] marcello3d: oh [19:34] jonbros has joined the channel [19:34] marcello3d: I don't think 3.6.x had transforms or animations [19:34] marcello3d: I'm on 7 [19:35] marcello3d: brandon: it's because it isn't centered right [19:35] nerdfiles has joined the channel [19:35] nerdfiles has left the channel [19:35] Brandon_R: lol [19:35] Brandon_R: that's what's wrong with mozilla [19:35] Tobbe: hehe, in Chrome I get a spinning square [19:35] marcello3d: haha nice [19:35] Brandon_R: why did they skip over so many versions [19:36] marcello3d: they didn't [19:36] marcello3d: I've used firefox 4,5,6, and 7 [19:36] DrMcKay: they just think that people are idiots [19:36] marcello3d: they've just switched to google's release pattern [19:36] xi4oyin has joined the channel [19:36] marcello3d: of a smaller major releases every 6 weeks [19:37] joshthecoder has joined the channel [19:38] malkomalko has joined the channel [19:38] marcello3d: someone else's approach: http://kilianvalkhof.com/2010/css-xhtml/css3-loading-spinners-without-images/ [19:38] DrMcKay: marcello3d: spinner.js [19:38] DrMcKay: no, spin.js [19:39] marcello3d: I feel like using js would use more cpu though? [19:40] marcello3d: oh I see [19:40] Tobbe: marcello3d: firefox 3.6.x has transformations but not animation [19:40] marcello3d: they use css if avail [19:40] tk has joined the channel [19:40] marcello3d: DrMcKay: I don't want that style spinner though [19:41] Tobbe: these all works for me: http://kilianvalkhof.com/uploads/spinners/ [19:41] Tobbe: in my old firefox version [19:41] marcello3d: right [19:42] Guest13869: nGood day [19:43] Guest13869: Should i use nvm (node version manager) for development ? [19:43] jonbros has left the channel [19:44] devongovett has joined the channel [19:45] swair has joined the channel [19:46] Wizek: Is there any situation this can evaluate to true: `(typeof x1 !== typeof x2 && x1 === x2)`? [19:47] swair has joined the channel [19:47] scott_gonzalez has joined the channel [19:48] nrajlich has joined the channel [19:48] jonbross has joined the channel [19:49] MooGoo: no [19:50] darinc has joined the channel [19:52] Guest13869: Wizek: no [19:52] jesster7 has joined the channel [19:53] jesster7 has left the channel [19:54] nerdfiles has joined the channel [19:54] nerdfiles has left the channel [19:57] kulor-uk has joined the channel [19:58] nerdfiles1 has joined the channel [20:00] nerdfiles1 has joined the channel [20:00] nerdfiles1 has left the channel [20:00] dingomanatee has joined the channel [20:01] dingomanatee: Anyone seen a good algorithm for a radial average? I.e., if you wanted to find the average hue (on a 0..360 scale) [20:01] dmkbot has joined the channel [20:01] wilmoore has joined the channel [20:02] fermion has joined the channel [20:02] fairwinds has joined the channel [20:03] possan has joined the channel [20:03] melcher has joined the channel [20:03] johnwards has joined the channel [20:03] socketio\test\11 has joined the channel [20:06] johnwards has joined the channel [20:07] leahculver has joined the channel [20:08] leahculver has joined the channel [20:10] shimondoodkin has joined the channel [20:10] brianseeders has joined the channel [20:17] jbpros has joined the channel [20:18] tek has joined the channel [20:18] VeXii: hey anyone that can give me some info on how to update node? trying to go from 4.11pre, [20:19] VeXii: i did a git pull of the github url but cant check out on v0.5.8 [20:19] yogurt_truck has joined the channel [20:20] japerry_cat has joined the channel [20:22] bnoordhuis has joined the channel [20:25] igl: VeXii: v0.5.8-pre ? [20:26] ckpcw has joined the channel [20:28] ckpcw has left the channel [20:29] _bLiNd_RaGe: alright so i'm still figuring out how node.js works [20:29] Brandon_R: hello [20:30] Brandon_R: what's up guys [20:30] _bLiNd_RaGe: i've written my own exertnal js file that turns a string into xml, then i usexml2js to turn it into an object [20:30] _bLiNd_RaGe: parser.on('end', function(result) { eyes.inspect(result); }); [20:31] _bLiNd_RaGe: prints out my object as a json hash, which is cool, but how do i access my actual properties in the object? [20:31] _bLiNd_RaGe: http://pastebin.com/PqY1x4zY [20:32] _bLiNd_RaGe: that's my code, and my output is: http://pastebin.com/WygfH6j1 [20:32] navaru has joined the channel [20:33] _bLiNd_RaGe: i want to say something like sys.puts(a.MSH.MSH\.3.MSH\.3\.1) or however i'd traverse the properties [20:35] _bLiNd_RaGe: i guess it would be a.MSH["MSH.3"]["MSH.3.1"], but all I get is undefined [20:36] Brandon_R: what would you guys do if ryan decided to rewrite node.js in java? [20:37] navaru: Brandon_R: We would kill him [20:37] Brandon_R: java is actually pretty fast nowadays [20:38] metellus has joined the channel [20:39] navaru: Brandon_R: Assembly is pretty fast too.. [20:39] Brandon_R: lol [20:39] Brandon_R: do you know mips? [20:39] topaxi has joined the channel [20:39] navaru: no [20:41] brianseeders has joined the channel [20:42] djko: That would be node.java not node.js [20:43] navaru: debating java over js is like debating politics.. [20:44] mtwdmn has joined the channel [20:44] Brandon_R: what [20:45] softdrink has joined the channel [20:45] djcoin has joined the channel [20:45] Brandon_R: cha working on navaru? [20:45] cjm has joined the channel [20:45] _bLiNd_RaGe: got it working [20:45] _bLiNd_RaGe: if anyone is intrested: http://pastebin.com/A20wdY7M [20:45] _bLiNd_RaGe: it's basically a newb HL7 interface [20:46] _bLiNd_RaGe: so i doubt anyone would be interested lol [20:47] Bonuspunkt has joined the channel [20:47] socialhack has joined the channel [20:48] djko: what do you think guys about require? and the fact that we need module.exports in the code [20:48] navaru: Brandon_R: Working on an app for collaboration, post what you're good at, and search for tallent, for my country (RO), not international [20:49] navaru: djko: what? [20:49] Brandon_R: RO ? [20:49] navaru: Brandon_R: Romania [20:49] Brandon_R: oh [20:49] Brandon_R: i think it's fine [20:50] Brandon_R: it's node.js's way of encapulation [20:50] djko: I mean to make require() work the required file should have module.exports [20:50] willwh: hey guys, I'm new to node - and trying to play around with, https://github.com/jbueza/node-pokemon/ (got it up and running as it stands) - but running in to an issue when trying to run the imports for the db; https://github.com/jbueza/node-pokemon/blob/master/data/import.achievements.js [20:50] djko: my consern is that if we want to use same code on client we will need to make some wrappers [20:50] willwh: should I update this to use cradle instead of couchdb? [20:51] navaru: djko: that is a standard, and standards make this project so powerful.. so anyone knows how to 'behave' [20:51] Brandon_R: what is your peoblem? [20:51] swair has joined the channel [20:51] willwh: when I'm run; node import.achievements.js -> TypeError: Cannot read property 'Content-Type' of undefined [20:52] Brandon_R: does anyone have a really large express application i could take a look at? [20:52] franciscallo has joined the channel [20:52] navaru: Brandon_R: did you take a look at Connect first? [20:53] Brandon_R: nope [20:53] Brandon_R: i thought they were built using connect [20:53] hdon has joined the channel [20:54] navaru: Brandon_R: my advice is to understand connect first and then to use express.. [20:54] Brandon_R: thanks bud [20:54] Brandon_R: i'll read up on it [20:54] zahanm has joined the channel [20:54] navaru: Brandon_R: http://howtonode.org/connect-it ... a good article [20:55] swair has joined the channel [20:56] Brandon_R: oh [20:56] Brandon_R: i was watching this video [20:56] Brandon_R: with ryan and a bunch of other nodejs guys answering questions [20:57] Brandon_R: and he said connect was stupid lol [20:57] navaru: what video? :) [20:58] Brandon_R: lemme find it [20:58] zmbmartin_ has joined the channel [20:59] Brandon_R: http://blip.tv/jsconf/nodeconf-2011-nodecommit-panel-5420208 [21:00] navaru: Brandon_R: thanks [21:00] Brandon_R: i'll try to find the time in the video where he says it [21:00] Brandon_R: check out jsconf and jsconfeu blip.tv channels [21:00] Wizek-other has joined the channel [21:01] Brandon_R: almost 200 javascript talks :) [21:01] Brandon_R: ~40 mins each [21:01] marcello3d: that's a lot of talks [21:01] Brandon_R: yep [21:01] marcello3d: any of them worth watching/summarized? [21:01] Brandon_R: yeah [21:01] Brandon_R: check out jsconf schedule [21:01] Brandon_R: see which ones interest you [21:02] dnjaramba has joined the channel [21:04] marcello3d: hmm, the schedule seems broken for me [21:04] Brandon_R: quick question involving ayncs [21:04] Brandon_R: is it worthwile to program entirely in it? [21:04] marcello3d: this? http://2011.jsconf.us/#!/schedule [21:05] marcello3d: just shows me two events, both seem to be food related? [21:05] Brandon_R: it's weird because the videos are titled by speaker name [21:05] Brandon_R: lemme check [21:06] Brandon_R: http://2011.jsconf.us/#!/speakers [21:06] Brandon_R: read under their names the topic [21:06] temp01 has joined the channel [21:06] Brandon_R: and search on bliptv their name [21:06] marcello3d: such a hard to read font/colors [21:06] marcello3d: oh well, whatever. *goes back to coding* [21:07] langworthy has joined the channel [21:07] CrisO has joined the channel [21:07] Brandon_R: hey marcello3d [21:07] Brandon_R: do you know about syncs? [21:07] Brandon_R: async [21:07] marcello3d: the library? not really [21:08] Brandon_R: oh [21:08] Brandon_R: ok [21:08] zmbmartin has joined the channel [21:08] zackattack has joined the channel [21:10] xy has joined the channel [21:12] Ned_ has joined the channel [21:14] cthulhu_lovecraf has joined the channel [21:15] zmbmartin has joined the channel [21:18] jwhisnant__ has joined the channel [21:18] artur_ has joined the channel [21:19] jldbasa has joined the channel [21:20] artur_: implementing child.killAll() in child_process_uv.js to kill child and all of its children (that is, kill group via POSIX kill(-pid, signal)) [21:20] amiller has joined the channel [21:21] artur_: ryah: what do you think? desirable? [21:21] alekhine has joined the channel [21:22] artur_: ryah: ultimate motivation is here https://github.com/joyent/node/issues/1811 [21:22] Vertice has joined the channel [21:27] mike5w3c has joined the channel [21:27] navaru has left the channel [21:28] ewj has joined the channel [21:28] dhasenan_ has joined the channel [21:29] zivester has joined the channel [21:30] tilgovi has joined the channel [21:30] tilgovi has joined the channel [21:30] DrMcKay has joined the channel [21:31] zmbmartin has joined the channel [21:33] robhawkes has joined the channel [21:34] Wizek-other has joined the channel [21:34] augustl: are there any alternatives to express out there? [21:34] skm has joined the channel [21:34] augustl: not that I dislike it, haven't used it yet. Just browsing for what's out there for doing "normal webpages" in node. [21:35] skiz has joined the channel [21:39] zmbmartin has joined the channel [21:40] glitch-mod has joined the channel [21:41] shanebo has joined the channel [21:42] melcher has joined the channel [21:44] spcshpopr8r has joined the channel [21:45] spcshpopr8r: good morning #node.js [21:47] ewj: I'm a noob to node, still getting used to things, and I was wondering: what's the usual approach to simple short function calls, is it usually best just to make them block, or handle callbacks? For instance, I have a function that just checks whether a word is in a (decently long) list, in-memory. Should I just check the list and return a boolean, or is there any benefit to making that an asynchronous operation? [21:47] Wizek-other has joined the channel [21:47] augustl: ewj: if it's in memory there's no point in making it asynchronous [21:48] ewj: ok, that's what I figured [21:49] ewj: usually you'd go with async calls for anything involving i/o, for stuff that doesn't blocking is perfectly fine, right? [21:49] augustl: if it's a long running operation I'd guess there are advantages in chunking it into segments and using process.nextTick, but that's just a guess [21:49] spcshpopr8r: I have a peculiar thing going on with a little express app I've cobbled together...I kick off `node app.js` within a gnu screen session, then I detach from the screen and let it run. It'll be fine for a while and then it'll stop working sorta; specifically, it just doesn't return data to the client. But, I've discovered if I just reattach to the screen session and hit the enter key, it starts working again [21:49] augustl: to allow for other items in the event loop to be processed [21:49] augustl: but that's just a guess, not sure if that's how it actually works [21:49] AvianFlu: ewj: if it's a cli tool, and you're doing something simple, sync won't screw you [21:50] AvianFlu: if it's in a request handler in a server, though, sync will screw you [21:50] AvianFlu: anything where you've got more than one thing going on at a time, the whole world stops [21:50] spcshpopr8r: nothing too fancy going on in my app: https://github.com/spaceshipoperator/tsv [21:50] ewj: well, it's a lookup for a word game, have to check an input word against a vocal list [21:50] ewj: vocab, I mean [21:50] AvianFlu: if it's a file read, get the file synchronously once and then keep it in memory? [21:50] ewj: yeah, that's what I'm doing [21:50] augustl: ewj: and you don't shell out or go to disk or use network or anything else? [21:51] AvianFlu: yeah, a sync read on startup for config data you need is totally okay [21:51] augustl: (not sure what I mean with 'anything else'..) [21:51] ewj: I just check the in-memory list, I'm wondering if it's okay for that to be sync [21:51] augustl: I agree with AvianFlu :) [21:51] augustl: require is synchronous, for example [21:51] jwhisnant_ has joined the channel [21:52] ewj: ok, I think that makes sense, pretty much matches what I assumed, but just wanted to check, I'm pretty new to this [21:52] nforgerit has joined the channel [21:54] dhasenan_ has joined the channel [21:56] davidascher has joined the channel [21:56] swair_ has joined the channel [21:57] grrreeet has joined the channel [21:57] grrreeet: I keep getting "could not find repository joynet/node" [21:58] DrMcKay: joyent [21:58] pifantastic has joined the channel [22:00] mynyml has joined the channel [22:02] EvRide has joined the channel [22:02] ecin has joined the channel [22:04] spcshpop` has joined the channel [22:05] just_ has joined the channel [22:05] yogurt_truck has joined the channel [22:05] yept has joined the channel [22:06] jwhisnant has joined the channel [22:06] mattstevens has joined the channel [22:08] iammerrick has joined the channel [22:10] Brandon_R has joined the channel [22:13] japerry has joined the channel [22:13] matyr has joined the channel [22:14] TheJH: with node 0.5.8, I'm getting an error "node: src/uv-common.c:92: uv_err_name: Assertion `0' failed." from time to time (which causes node to crash), is that a known issue? [22:14] TheJH: !issue search uv-common Assertion failed [22:14] jhbot: no issues found [22:14] DrMcKay: TheJH: there's an report [22:15] DrMcKay: TheJH: go look for it manually [22:15] Brandon_R: Hi [22:15] Coderah has joined the channel [22:15] TheJH: DrMcKay, found it [22:15] TheJH: DrMcKay, guess my bot is stupid :/ [22:16] DrMcKay: TheJH: :D [22:16] Coderah: I have a unique index in a mongodb, using node-mongoskin if I insert with the same unique index value it doesn't make a duplicate but no matter what I do the callback does not return an error. Anyone else have this problem? [22:17] possan: weird question: is there any way to get the node executable to run in even higher priority? or is it running as fast as it can now? [22:17] TheJH: possan, higher priority isn't magically faster, it just steals time from other procrsses [22:17] possan: thats exactly what im after :) [22:18] jomoho has joined the channel [22:18] possan: im doing some realtime midi stuff and it slows down when i communicate using for example socket.io [22:19] TheJH: possan, "renice -20 -p " should steal all time from other stuff when node feels like doing stuff [22:19] TheJH: s/noe/node/ [22:19] randomjs has joined the channel [22:20] arpunk_ has joined the channel [22:21] cjroebuck has joined the channel [22:21] aho has joined the channel [22:22] ecin_ has joined the channel [22:22] ryan[WIN] has joined the channel [22:23] k1ttty has joined the channel [22:23] davidascher has joined the channel [22:24] TheJH has joined the channel [22:28] m4rcs has joined the channel [22:28] neilk_ has joined the channel [22:29] possan: thanks, that did the trick [22:30] Brandon_R: haha lol [22:30] Brandon_R: brilliant [22:30] Brandon_R: https://twitter.com/#!/anonops/status/115130035173736450 [22:32] theonlytruestyle has joined the channel [22:32] stalled has joined the channel [22:33] jwhisnant_ has joined the channel [22:33] m4rcs: hey guys where do I find a Documentation for JavaScript? [22:34] Brandon_R: > [22:34] Brandon_R: ? [22:34] m4rcs: something like this http://nodejs.org/docs/v0.5.8/api/ [22:34] Brandon_R: nodejs or plain js [22:34] tilgovi has joined the channel [22:34] tilgovi has joined the channel [22:34] m4rcs: plain js [22:35] markbao has joined the channel [22:38] Tehbeard has joined the channel [22:41] TheJH: m4rcs, try mdn [22:42] dimroc has joined the channel [22:42] eirikb: There is http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf [22:42] Tigraine has joined the channel [22:43] m4rcs: thanks mdn is what I've been looking for [22:43] mike_miller has joined the channel [22:44] CIA-48: libuv: 03Ben Noordhuis 07master * r914a6fa 10/ src/unix/sunos.c : sunos: pull in uv__set_sys_error prototype - http://git.io/10m1YQ [22:44] mike_miller: How does node.js handle spawning many net.requests? If a program hits the maximum limit, will it just not move forward until some sockets close? [22:45] devongovett has joined the channel [22:47] jsurfer has joined the channel [22:47] random123 has joined the channel [22:48] DTrejo has joined the channel [22:49] fread228_ has joined the channel [22:50] dbidiot has joined the channel [22:50] dbidiot has left the channel [22:50] tylerstalder has joined the channel [22:51] fly-away has joined the channel [22:51] Vertice has joined the channel [22:51] TheJH has joined the channel [22:52] jldbasa has joined the channel [22:52] bnoordhuis: mike_miller: what do you mean with maximum limit? ulimit -n? [22:53] mike_miller: bnoordhuis: basically, I'm reading in a really large CSV file in which each line will spawn an HTTP connection. I'm worried about what will happen if I spawn a connection as soon as I finish a line. [22:53] jwhisnant__ has joined the channel [22:54] Dmitrijus: hmmm [22:54] Dmitrijus: that is an interesting problem [22:54] brianseeders has joined the channel [22:54] bnoordhuis: mike_miller: you'll probably run into the ulimit sooner or later [22:55] Dmitrijus: ACTION wonder how would nicely solve this in node.js :) [22:55] bnoordhuis: mike_miller: in which case node will throw an exception [22:56] mike_miller: maybe I could solve it by invoking a function startRequest every x milliseconds which pulled a request off a queue, which was added to by the CSV parser [22:56] mike_miller: startRequest would only start a request if the # of outstanding requests was < n [22:56] mike_miller: where n is some value less than ulimit [22:57] bnoordhuis: mike_miller: sorry, i thought this was about the net module [22:57] squeese has joined the channel [22:57] bnoordhuis: the http module uses a per-host queue [22:57] mike_miller: oh, interesting [22:57] mike_miller: that sounds too limiting [22:57] mike_miller: well [22:57] mike_miller: can multiple requests be inflight at once? [22:57] bnoordhuis: yes [22:58] bnoordhuis: and you can make the queue bigger [22:58] AphelionZ has joined the channel [22:58] bnoordhuis: that is, raise the # of active requests [22:58] mike_miller: how does that work under the hood? there's a single file descriptor pointed at the server, and the requests just roll off the queue as they finish? [22:58] skm has joined the channel [22:59] bnoordhuis: almost. there are one or more pooled connections, each with its own fd [22:59] mike_miller: and the # of pooled connections is equal to the size of the queue? [23:00] fairwinds has joined the channel [23:01] bnoordhuis: mike_miller: not by default [23:01] bnoordhuis: the pool size by default is 5 i think [23:01] bnoordhuis: if all connections are busy, new requests are put on a pending queue [23:02] mike_miller: the pool is per-host [23:02] mike_miller: ? [23:02] bnoordhuis: maybe fifo is a better word for the queue [23:02] bnoordhuis: yes [23:02] bnoordhuis: host:port actually [23:02] shanebo: hey guys what's the best way to access an instance of a module within a file required in the module itself? [23:02] mike_miller: is the queue of infinite size (subject to the constraint of memory :) ) ? [23:03] bnoordhuis: mike_miller: yep [23:03] mike_miller: awesome, didn't realize node handled all this so nicely! :) [23:04] mike_miller: btw, how do I adjust the size of the queue? [23:04] bnoordhuis: mike_miller: you mean the size of the connection pool? [23:04] mike_miller: sorry, yes. [23:05] bnoordhuis: create a new http.Agent object and pass in {maxSockets:42} [23:05] bnoordhuis: then pass that agent object to http.request() [23:05] mike_miller: sweet, thanks! [23:05] AphelionZ has left the channel [23:10] joshkehn has joined the channel [23:10] joshkehn has left the channel [23:12] nerdy_ has joined the channel [23:13] cjheath has joined the channel [23:19] porjo has joined the channel [23:19] porjo has left the channel [23:20] catb0t has joined the channel [23:20] joshgillies has joined the channel [23:21] christkv has joined the channel [23:21] ryanrolds_w has joined the channel [23:22] catb0t has joined the channel [23:23] robotmay has joined the channel [23:23] zackattack has joined the channel [23:24] avih has joined the channel [23:36] joshkehn1 has joined the channel [23:36] joshkehn1 has left the channel [23:38] jmoyers has joined the channel [23:40] fread2281 has joined the channel [23:41] sridatta has joined the channel [23:43] freewil: can someone help me with a small snippet of code [23:43] shanebo: fire away [23:43] freewil: https://gist.github.com/9e4205fb4ab625add525 [23:43] freewil: can you tell me why tx is defined when push() is called [23:43] freewil: but then in the callback to push its no longer defined? [23:43] grahamg has joined the channel [23:44] shanebo: because you're setting tx in your while [23:44] freewil: hmm [23:44] freewil: oh shit [23:44] Dmitrijus: hehe [23:44] freewil: lol thanks [23:44] shanebo: :) [23:44] TomY has joined the channel [23:44] shanebo: i think you need one more = [23:45] freewil: no i want to shift an element off the array and assign it to tx [23:45] freewil: but yeah i guess the problem was when it got to the end of the array undefined was being assigned to tx [23:45] freewil: and then the callback was being called and it was no longer defined [23:46] shanebo: perhaps [23:46] shanebo: maybe add one more condition in while [23:46] freewil: why? [23:46] jwhisnant_ has joined the channel [23:47] shanebo: while ((tx != undefined && tx = self.pendingTxs.shift())) [23:49] freewil: shanebo, i dont think i need that though [23:49] shanebo: k [23:49] freewil: because undefined will evaluate to true [23:49] freewil: i mean false [23:50] Brian` has joined the channel [23:50] cjm has joined the channel [23:50] shanebo: good point [23:50] navaru has joined the channel [23:51] slickplaid: that won't work since when it checks tx, it'll have the last element then it'll set it to undefined and continue on into the while one last time [23:52] freewil: slickplaid, are you saying i need to add a condition for undefined? [23:52] slifty has joined the channel [23:53] slickplaid: I'd check the length instead of checking for undefined in tx [23:53] freewil: shift() returns the 0-index element [23:53] freewil: it shifts it off the array [23:53] freewil: and when there are no more elments it returns undefined [23:53] shanebo: slickplaid that was my initial thought until I saw the shift [23:54] shanebo: I've never understood why shift and unshift don't return the array [23:54] slickplaid: it's because it actually mutates the array rather than just returning a value [23:55] jacobolus has joined the channel [23:56] stalled has joined the channel