[00:00] tanepiper has joined the channel [00:00] MUILTFN has joined the channel [00:00] bengrue has joined the channel [00:00] igl has joined the channel [00:01] mike5w3c has joined the channel [00:01] ralph has joined the channel [00:01] ricep214 has joined the channel [00:02] akihito_s has joined the channel [00:03] tiagobutzke has left the channel [00:03] Guest85848 has joined the channel [00:03] Gruni has joined the channel [00:04] royh has joined the channel [00:05] vereteran has joined the channel [00:06] ryanseddon has joined the channel [00:06] Sorella has joined the channel [00:06] fcoury has joined the channel [00:07] stantona has joined the channel [00:07] simenbrekken has joined the channel [00:07] hellp has joined the channel [00:08] ParadoxQuine has joined the channel [00:08] pig has joined the channel [00:10] stantona has joined the channel [00:10] romainhuet has joined the channel [00:15] paulbaumgart has joined the channel [00:15] balgarath has joined the channel [00:15] ricep54 has joined the channel [00:15] jomoho has joined the channel [00:16] cainus has joined the channel [00:16] jeremyselier has joined the channel [00:18] jocafa1 has joined the channel [00:18] satyr has joined the channel [00:18] Lartsa has joined the channel [00:18] broofa has joined the channel [00:19] jocafa has joined the channel [00:19] SvenDowideit has joined the channel [00:19] jocafa1 has joined the channel [00:19] alnewkirk has joined the channel [00:20] jocafa has joined the channel [00:21] sstreza has joined the channel [00:21] igl has joined the channel [00:21] DrPizza has joined the channel [00:22] anaio has joined the channel [00:22] tomyan has joined the channel [00:22] samstefan has joined the channel [00:22] versicolor has joined the channel [00:23] louissmit has joined the channel [00:23] theCole has joined the channel [00:24] Wizek has joined the channel [00:24] joeytwiddle has joined the channel [00:25] jbrokc__ has joined the channel [00:26] joshthecoder has joined the channel [00:28] joeytwiddle has joined the channel [00:32] jomoho has joined the channel [00:32] r04r has joined the channel [00:32] joeytwiddle has joined the channel [00:35] subbyyy has joined the channel [00:35] markwubben has joined the channel [00:37] phiggins has joined the channel [00:37] Raynos: Marak: nowjs always used socket.io ? [00:37] Raynos: I'm pretty sure it always used socket.io [00:42] adrianmg has joined the channel [00:43] xhr has joined the channel [00:43] ovaillan_ has joined the channel [00:43] adrianmg has left the channel [00:45] davidbanham has joined the channel [00:46] hipsterslapfight has joined the channel [00:49] Samuel_Roldan has joined the channel [00:50] stantona has joined the channel [00:53] cyborg has joined the channel [00:54] cyborg: sup nodelings [00:54] CarterL has joined the channel [00:57] akihito_s has joined the channel [00:57] broofa has joined the channel [01:01] janm has joined the channel [01:01] theCole has joined the channel [01:03] k1ttty has joined the channel [01:05] blup has joined the channel [01:07] torsd has joined the channel [01:11] secoif has joined the channel [01:20] elevenarms has joined the channel [01:21] Glenjamin_ has joined the channel [01:22] mandric has joined the channel [01:22] Glenjamin_: hi guys, what's the best way to check if a server is listening? [01:22] Kunda has joined the channel [01:22] Glenjamin_: ideally i'd like to be 0.4.x compatible [01:22] russfrank has joined the channel [01:22] Glenjamin_: in 0.6 address() returns null, but in 0.4 it throws [01:23] Aria has left the channel [01:23] Aria has joined the channel [01:23] malkomalko has joined the channel [01:24] malkomalko: yay node! [01:26] jldbasa has joined the channel [01:27] tomlion has joined the channel [01:32] cyborg has left the channel [01:34] FearOfMusic has left the channel [01:35] bnoordhuis: Glenjamin_: listen for the 'listening' event or pass a callback to .listen() [01:36] Glenjamin_: bnoordhuis: yeah, i;ve got that - but I want a wrapper for listen() that I can call as much as I like [01:36] bnoordhuis: server.address() doesn't return anything until after the listening event btw [01:36] Glenjamin_: and it'll either no-op or listen [01:36] mikeric has joined the channel [01:36] bnoordhuis: Glenjamin_: so maintain a flag / counter? [01:37] Glenjamin_: oh right [01:37] AAA_awright_0 has joined the channel [01:37] Glenjamin_: there's nothing to stop me attaching my own server.connected = true [01:37] Glenjamin_: >.< [01:37] tomlion has joined the channel [01:37] konobi: listen() can cause stuff to listen on more than one interface or address... or even the same address, but also ipv6 encoded... [01:38] Glenjamin_: ah, hadn't considered that [01:39] Glenjamin_: gah, 0.4 tries to DNS lookup '127.0.0.1' and fails :( [01:39] Glenjamin_: maybe 0.4 support is pointless [01:40] Glenjamin_: any thoughts on whether its worth making a new lib 0.4.x compatible? [01:42] malkomalko has joined the channel [01:45] dthompso99 has left the channel [01:45] ryanfitz has joined the channel [01:46] Aria: I wouldn't, personally. [01:46] konobi: new lib... probably not... unless you have reasons for supporting 0.4 [01:47] konobi: yeah... kinda funny how localhost != 127.0.0.1 in several cases =0) [01:47] djbell has joined the channel [01:47] Glenjamin_: server.listen(1337, '127.0.0.1'); fails on 0.4.x, works in 0.6.x :( [01:48] MatthewS has joined the channel [01:49] Glenjamin_: will probably not worry about 0.4 then [01:50] gavin_huang has joined the channel [01:50] konobi: huh... weird... unless 0.4 is trying to look the ipv4addr up [01:50] konobi: Glenjamin_: are you on ubuntu? [01:51] Glenjamin_: os x [01:51] tbranyen: maxogden: you have commit access to phonegap plugins? [01:51] maxogden: tbranyen: hellz yeah [01:51] konobi: huh... cos ubuntu has 127.0.1.1 as their loopback [01:51] tbranyen: I've got some fixes and enhancements for NativeControls [01:51] tbranyen: I should send in a pull req [01:52] konobi: maxogden: .bc.ca? [01:52] Aria: Weird. Any 127.x.x.x actually should work. [01:52] maxogden: konobi: nope .america [01:52] Glenjamin_: konobi: actually, i think i misread the error [01:52] Aria: Which .america? [01:52] maxogden: hehehe [01:52] konobi: pah! [01:52] maxogden: .oaklandcaliforniahomeofteargassingandpolicebrutality [01:52] Aria: Oh boy! [01:52] Aria: .wellshit.oak.ca.us [01:53] konobi: i have my name in the commiters log for phonegap... but i have no idea of the state of the project these days =0) [01:53] maxogden: konobi: well adobe bought nitobi and nitobi is moving phonegap to apache and renaming it 'callback' [01:53] konobi: maxogden: cordova was the last name i heard... [01:54] maxogden: so brian, lunny and a few others are moving to the san francisco bro area to work at adobe hq for a while [01:54] konobi: i know all the nitobi guys pretty well [01:54] maxogden: they settled on Callback [01:54] konobi: you're shitting me... worst name EVER [01:55] maxogden: almost as bad as node [01:55] konobi: heh [01:55] maxogden: i would have called node pizza.js, thats way easier to google [01:55] maxogden: and more rich with visual metaphor [01:55] konobi: 'nodejs' is generally reasonable [01:55] draz: hey, how would I go about annotating an array of a json object in Mongoose? [01:56] maxogden: tbranyen: i am about to use nativecontrols in a project so you should push your enhancements :D [01:56] Glenjamin_: aha, turns out 0.4.x http.request can't take http: '127.0.0.1:1337', which is what url.parse returns [01:56] konobi: maxogden: i would love to play with phonegap on android/google tv... but seems trickey [01:56] Glenjamin_: host: '127.0.0.1:1337' even [01:57] draz: var mySchema = new Schema({ criteria: [ { age : { minage: Number, maxAge: Number.... }] [01:57] maxogden: google tv runs android? [01:57] konobi: yup [01:57] maxogden: thats pretty cool [01:57] MooGoo: wtf is google tv [01:57] konobi: yeah, infil00p over at nitobi got phonegap got that running recently [01:58] konobi: maxogden: imma miss brian... he's a good drinking buddy of mine =0( [01:59] maxogden: he is a good person to have as a drinking buddy [01:59] konobi: more excuses to go to SF though! [01:59] konobi: "good" is variable [01:59] konobi: =0P [01:59] maxogden: haha [01:59] konobi: conferences... awesome... tuesday on a school night... well... [02:00] konobi: reminds me... need to see what they're doing about their apartment... hhhrrrmmm... [02:01] broofa has joined the channel [02:01] konobi: k... time to roll... laters all! [02:01] maxogden: nighty night [02:03] satyr has joined the channel [02:05] Raynos: So I just destroyed my node 0.4 blog on heroku after learning that heroku doesnt do 0.6 [02:06] Raynos: Anyone have some recommended free providers with which I can quickly set up my blog? [02:09] rev087: maybe https://no.de/ ? [02:10] chjj has joined the channel [02:13] jbrokc_ has joined the channel [02:13] dthompso99 has joined the channel [02:14] jomoho2 has joined the channel [02:15] mattp_ has joined the channel [02:15] rev087: raydeo: http://wiki.joyent.com/display/node/Node.js+SmartMachine+FAQ#Node.jsSmartMachineFAQ-WhatversionsofNode.jsaresupported%3F it seems they don't provide 0.6 out of the box, but "If you need a different version than the ones Joyent provides, you can build it from source from the shell" [02:17] CarterL has joined the channel [02:19] Raynos: > The free no.de service is currently at full capacity. Please check back later :( [02:19] jankeromnes: you have to get gcc first, I had to fiddle around with the package manager but I just installed node v0.6.3 on a SmartMachine [02:19] Raynos: Anyway to speed up access to a no.de box? [02:19] Raynos: Otherwise I will just get a generic ssh linux box [02:21] ekryski has joined the channel [02:22] jankeromnes: By the way, I'm running a server with node directly on a SmartMachine, but I can't access it from the url, what am I doing wrong? [02:23] jbrokc_ has joined the channel [02:30] tomlion has joined the channel [02:31] MUILTFN has joined the channel [02:33] Draco_ has joined the channel [02:36] Draco_ has joined the channel [02:38] kriskowal has joined the channel [02:39] dthompso99 has left the channel [02:40] mikeric has joined the channel [02:41] dhasenan has joined the channel [02:41] mandric has joined the channel [02:42] amigojapan has joined the channel [02:42] tomlion_ has joined the channel [02:45] jbrokc_ has joined the channel [02:45] ShinyDarkness has left the channel [02:50] descipher_ has joined the channel [02:51] fairwinds has joined the channel [02:52] boltR has joined the channel [02:53] ShinyDarkness has joined the channel [02:54] k1ttty has joined the channel [02:56] dthompso99 has joined the channel [02:56] torsd: cant seem to work my way around nodejs 0.6.1 cluster in heroku [02:57] torsd: how do you guys do it? [02:59] satyr has joined the channel [03:00] onr has left the channel [03:01] nerdy_ has joined the channel [03:02] Prabs has joined the channel [03:03] thoughtfusion has joined the channel [03:05] parshap has joined the channel [03:06] stagas has joined the channel [03:06] stagas: whee node.js > RoR [03:07] orospakr has joined the channel [03:08] akihito_s has joined the channel [03:08] marcello3d has joined the channel [03:10] parshap: is it appropriate for an npm start script to start the node process through something like forever? [03:10] parshap: or is it best to let the user starting the process to do that? [03:12] jnbek has joined the channel [03:12] jnbek has joined the channel [03:12] davidbanham has joined the channel [03:12] galaxywatcher has joined the channel [03:16] skm has joined the channel [03:16] EhevuTov has joined the channel [03:17] stantona has joined the channel [03:21] passionke has joined the channel [03:22] skunkape has joined the channel [03:25] koo3 has joined the channel [03:26] nato_ has joined the channel [03:28] marcello3d has joined the channel [03:29] bradleymeck has joined the channel [03:31] nils_r has joined the channel [03:31] towski has joined the channel [03:32] CiRlE has joined the channel [03:32] stagas: parshap: let the user [03:34] davidbanham has joined the channel [03:45] MatthewS has joined the channel [03:47] parshap: stagas: any rational? [03:48] parshap: *rationale [03:48] stagas: not reallt [03:48] stagas: y [03:49] parshap: my gut says the same, though [03:49] parshap: but it's an internal service that will only ever be used through forever, so i feel maybe it is ok [03:50] parshap: for the sake of making it as easy as "npm start" to start the app -- also makes "npm stop" functional [03:50] davidascher has joined the channel [03:51] MatthewS has joined the channel [03:52] diogogmt has joined the channel [03:59] Aria: Internal. But document it. [04:01] stagas has joined the channel [04:02] gavin_huang has joined the channel [04:05] nicholasf: hi, what's a good rss aggregate feed for node.js news? [04:06] Brozilla: r/node, maybe [04:07] maxogden: nicholasf: https://github.com/mikeal/planet [04:08] nicholasf: ah thanks - Im asking for an actual news service, not an implementation of one [04:08] nicholasf: just want to follow more node related news in my reading [04:08] maxogden: nicholasf: you apparently didnt click the link [04:08] stagas: nicholasf: the one you make! [04:08] nicholasf: stagas: haha [04:08] parshap: nicholasf: planet is indeed that [04:08] stagas: :P [04:08] parshap: nicholasf: planetnodejs.com [04:09] nicholasf: thanks! [04:09] MatthewS has joined the channel [04:09] maxogden: github protip: good projects use the URL field [04:10] parshap: maxogden: they also have a readme :o [04:10] genexp has joined the channel [04:10] jryans has joined the channel [04:11] jldbasa has joined the channel [04:12] seebees has joined the channel [04:16] munichlinux has joined the channel [04:22] martin_sunset has joined the channel [04:23] jbrokc_ has joined the channel [04:27] webchat_634230 has joined the channel [04:28] martin_sunset_ has joined the channel [04:28] schwab has joined the channel [04:31] davidascher has joined the channel [04:31] jacobolus has joined the channel [04:32] grucho has joined the channel [04:32] grucho: `make install` is not implemented yet. Bug bnoordhuis about it in #node.js [04:33] grucho: hi :) [04:33] cjm has joined the channel [04:33] jbrokc_ has joined the channel [04:33] webchat_634230 has left the channel [04:34] grucho: does any body have a solution for this make install thing? [04:35] seebees: yes, check out 0.6.3 ;) [04:35] jrogers has joined the channel [04:36] idefine has joined the channel [04:37] grucho: yep thanks [04:37] grucho: i just realize ive download th v7.. [04:38] MatthewS has joined the channel [04:41] stantona has joined the channel [04:43] jbrokc_ has joined the channel [04:45] munichlinux has joined the channel [04:45] johnnywengluu has left the channel [04:47] SirFunk has joined the channel [04:49] OneOfOne has joined the channel [04:49] OneOfOne has joined the channel [04:49] zilch_ has joined the channel [04:51] PrabsMD has joined the channel [04:53] davidascher has joined the channel [04:54] jbrokc_ has joined the channel [04:54] patcito has joined the channel [04:56] SirFunk: Hi here i'm new to node. Is there a way to make a console.log from a module display if i'm using it from the nodejs shell? [05:01] SubStack: SirFunk: that should happen by default [05:01] SubStack: unless the module is being sneaky and detecting whether it's being run from the shell or not [05:02] mike5w3c has joined the channel [05:03] SirFunk: it's not [05:03] SirFunk: it's not being sneaky, nor are my console.logs displaying [05:03] zilch_ has joined the channel [05:04] jbrokc_ has joined the channel [05:04] SirFunk: i'm basically having trouble where mongoose won't save a certain property on a model.. i can't figure it out.. it saves every other property.. driving me INSNAE [05:05] SubStack: SirFunk: gist the code? [05:07] SirFunk: https://gist.github.com/1395064 is the model/module i'm having trouble with [05:07] Me1000 has joined the channel [05:08] SirFunk: line 68/69 are the console.logs i want to see.. the hashed_password field never gets saved [05:08] SirFunk: even if i do user = new User(); user.hashed_password = 'foo'; user.save(); ... nothin [05:08] SubStack: SirFunk: why wrap everything in a function () {}? [05:08] dreamdust has joined the channel [05:09] SubStack: node does that for you by default [05:09] SirFunk: coffeescirpt *ducks* [05:10] SubStack: looks like a mongo issue, not a node issue [05:10] SubStack: or mongoose issue at least [05:10] SirFunk: similar code works fine on ruby/mongoid/mongodb [05:10] SirFunk: i don't really know how to debug mongoose [05:11] SirFunk: the other fields like password_salt get saved fine [05:12] SubStack: ACTION hasn't done anything with mongo in node [05:12] SubStack: but lots of other people on this channel have [05:12] SirFunk: k [05:13] SirFunk: ACTION hopes one of them sees my problem :) [05:14] jbrokc_ has joined the channel [05:15] harthur has joined the channel [05:16] Draco_ has joined the channel [05:17] munichlinux has joined the channel [05:21] SirFunk: nothing like this in the github issues [05:21] SirFunk: i must be doing something wrong [05:22] sontek has joined the channel [05:23] jtsnow has joined the channel [05:24] ekryski has joined the channel [05:26] someusername has joined the channel [05:31] kriskowal has joined the channel [05:32] zilch_ has joined the channel [05:33] akihito_s has joined the channel [05:34] xerox has joined the channel [05:35] dandean has joined the channel [05:36] satyr has joined the channel [05:37] Overshee has joined the channel [05:38] akihito_s has joined the channel [05:38] Overshee: I know this isn't hubot support or anything but my bot is having a problem and I think it's stemming from node-IRC. Can anybody help me? https://github.com/github/hubot/issues/187#issuecomment-2864408 [05:40] someusername has left the channel [05:40] someusername has joined the channel [05:40] someusername has left the channel [05:41] munichlinux has joined the channel [05:42] plutoniiix has joined the channel [05:46] a11235 has joined the channel [05:46] DrPizza has joined the channel [05:47] dmwuw has joined the channel [05:48] jryans has joined the channel [05:48] xerox has joined the channel [05:48] sstephenson has joined the channel [05:49] mrkurt has joined the channel [05:50] Margle has joined the channel [05:50] davidascher has joined the channel [05:51] ROBOTERMAN has joined the channel [05:51] ROBOTERMAN: hi noders! [05:51] parshap: HELLO [05:54] akihito_s has joined the channel [05:54] frankey has joined the channel [05:54] tomlion has joined the channel [05:55] davidbanham has joined the channel [05:56] dandean: looking for a good module for in-memory image manipulation. Suggestions? [05:57] ROBOTERMAN: i have a little distraction for anyone who likes robots.... [05:57] ROBOTERMAN: it's basically a little interactive real world game [05:57] ROBOTERMAN: who's in? [05:57] ROBOTERMAN: you get to drive a robot...from your web browser (and yes it's served by node). http://avatour.tk/ [05:58] zilch_ has joined the channel [06:00] JakeyChan has joined the channel [06:00] ROBOTERMAN: so the robot is ready [06:00] ROBOTERMAN: awaiting your drive [06:00] tomox has joined the channel [06:00] zilch_ has joined the channel [06:01] maxogden: ROBOTERMAN: DO YOU POSSESS CATS [06:01] ROBOTERMAN: no cats [06:01] SubStack: I have a picture of a cat. [06:02] ROBOTERMAN: that's some bad driving [06:02] localhost has joined the channel [06:02] maxogden: dandean: dunno if its good https://github.com/alexmic/filtrr [06:04] JakeyChan_ has joined the channel [06:07] MatthewS has joined the channel [06:07] tomlion has joined the channel [06:08] Overshee: I know this isn't hubot support or anything but my bot is having a problem and I think it's stemming from node-IRC. Can anybody help me? https://github.com/github/hubot/issues/187#issuecomment-2864408 [06:08] dandean: maxogden: thanks - I'll take a look! [06:09] blueadept has joined the channel [06:12] mike5w3c has joined the channel [06:13] oleyb: ROBOTERMAN: I think im battling for control of your robot [06:16] oleyb: ROBOTERMAN: let us into the hall! [06:17] ROBOTERMAN: yeah perhaps better to give it to one person [06:17] zilch_ has joined the channel [06:18] oleyb: that was a ton of fun, thank you for that [06:18] redsxz has joined the channel [06:18] ROBOTERMAN: ok, the problem there was two people were doing it at the same time [06:18] ROBOTERMAN: making the camera go crazy [06:19] oleyb: perhaps you could make controls inactive while someone else is controlling? [06:19] ROBOTERMAN: yep i shall [06:20] redsxz has joined the channel [06:20] oleyb: can you tell us more about the tech behind it? [06:20] JakeyChan_ has joined the channel [06:21] ROBOTERMAN: sure, it's just an RC car, arduino, some servos, a webcam, and a laptop [06:21] oleyb: how much of a role does node serve in the whole process? [06:21] brianseeders has joined the channel [06:22] dr0id has joined the channel [06:22] ROBOTERMAN: it just serves the static page and also servers the flash policy file so i can run the flash app locally and have it connect [06:22] oleyb: ah okay [06:22] maxogden: so really it has nothing to do with node :P [06:23] oleyb: still neat anyhow :] [06:23] maxogden: agreed [06:26] zilch_ has joined the channel [06:27] jtsnow has joined the channel [06:27] mike5w3c has joined the channel [06:28] vadim has joined the channel [06:28] ekryski has joined the channel [06:30] dandean has joined the channel [06:32] Rockinoutt93 has joined the channel [06:33] jbrokc_ has joined the channel [06:38] zilch_ has joined the channel [06:42] tomlion_ has joined the channel [06:42] jtr__ has joined the channel [06:43] jbrokc_ has joined the channel [06:43] tomb has joined the channel [06:51] torsd has joined the channel [06:52] tomb has joined the channel [06:53] superjudge has joined the channel [06:53] torsd: does node 0.6 cluster work on heroku? [06:53] jbrokc_ has joined the channel [06:54] Daegalus has joined the channel [06:56] criswell has joined the channel [06:58] fangel has joined the channel [06:59] zilch_ has joined the channel [07:00] dnyy has joined the channel [07:04] samsonjs has joined the channel [07:04] jbrokc_ has joined the channel [07:06] mike5w3c has joined the channel [07:07] spasquali has joined the channel [07:10] skm has joined the channel [07:11] blueadept has left the channel [07:13] munichlinux has joined the channel [07:14] plutoniiix has joined the channel [07:14] jbrokc_ has joined the channel [07:15] Xano has joined the channel [07:17] simenbrekken has joined the channel [07:19] MUILTFN has joined the channel [07:20] zilch_ has joined the channel [07:22] pyrony has joined the channel [07:22] interrupt has joined the channel [07:23] rskuja has joined the channel [07:23] rskuja: morning, gratz about watchers [07:24] maxogden: who watches the watchers [07:25] jbrokc_ has joined the channel [07:25] saschagehlich has joined the channel [07:26] rskuja: witches watches watchers [07:26] mehlah has joined the channel [07:29] mikeal has joined the channel [07:31] Marko has joined the channel [07:37] rchavik has joined the channel [07:40] isaacs has joined the channel [07:40] maxogden: willy wonkas witching watcher wankers [07:43] isaacs has joined the channel [07:43] zilch_ has joined the channel [07:43] mike5w3c has joined the channel [07:44] interrupt has joined the channel [07:45] alFReD_ has joined the channel [07:47] otakutomo has joined the channel [07:48] saschagehlich has joined the channel [07:48] zilch_ has joined the channel [07:49] TheLifelessOne has joined the channel [07:49] boltR has joined the channel [07:50] TheLifelessOne: is there any way, using default modules, to make an HTTP request from nodE? [07:50] TheLifelessOne: node* [07:51] sorin has joined the channel [07:51] zilch_ has joined the channel [07:52] herbySk has joined the channel [07:52] maxogden: TheLifelessOne: yes [07:53] TheLifelessOne: how can I do so? [07:54] maxogden: http.createClient [07:54] icewhite has joined the channel [07:54] SamuraiJack has joined the channel [07:54] TheLifelessOne: I can't find documentation on that. [07:54] TheLifelessOne: I've checked. Twice. :/ [07:54] maxogden: err http.clientRequest now [07:54] maxogden: depends on your version [07:54] TheLifelessOne: I should be running the latest Win32 version [07:54] GrizzLyCRO has joined the channel [07:55] torsd has joined the channel [07:55] maxogden: here http://nodejs.org/docs/v0.6.3/api/http.html#http.request [07:55] braoru has joined the channel [07:56] IrishGringo has joined the channel [07:56] maxogden: or save yourself hassle and install the module called 'request' [07:56] SubStack: second [07:57] TheLifelessOne: Sorry 'bout that, was having some problems with screen [07:57] TheLifelessOne: it decided to create a couple windows on me, and not want to revert back to this one [07:58] TheLifelessOne: anyways [07:58] TheLifelessOne: what does the [07:58] TheLifelessOne: request module do, exactly? [07:58] maxogden: 23:55 < maxogden> here http://nodejs.org/docs/v0.6.3/api/http.html#http.request [07:58] maxogden: 23:56 < maxogden> or save yourself hassle and install the module called 'request' [07:58] maxogden: 23:56 <@SubStack> second [07:58] maxogden: it makes http requests [07:58] TheLifelessOne: I see. [07:58] TheLifelessOne: is it better than the default functionality? [07:58] maxogden: https://github.com/mikeal/request [07:58] vdemedes has joined the channel [07:58] maxogden: it is the third most depended on module of all 5000 node modules [07:59] TheLifelessOne: I see. [07:59] vdemedes: Hello! [07:59] TheLifelessOne: Greetings. [08:00] cha0s has joined the channel [08:01] HT has joined the channel [08:03] TheLifelessOne: Uh, stupid question, but does the Windows version of node have a module path? [08:04] skm has joined the channel [08:07] zilch_ has joined the channel [08:11] shapeshed has joined the channel [08:13] whotemp has joined the channel [08:13] Morkel has joined the channel [08:13] zilch_ has joined the channel [08:14] jasonmchristos has joined the channel [08:14] jasonmchristos: bradwright, whats all this crypto and gpg key modules? [08:14] jasonmchristos: brainproxy, whats all this crypto and gpg key modules? [08:16] braoru has joined the channel [08:17] dwww has joined the channel [08:17] dwww has left the channel [08:20] mike5w3c has joined the channel [08:20] RyanW has joined the channel [08:21] RyanW: Hi. I have published 2 npm packages using the same username but they have ended up with different email addresses. I can't work out how to fix this. [08:22] woeye has joined the channel [08:22] whitman has joined the channel [08:23] isaacs: TheLifelessOne: yes. [08:23] isaacs: TheLifelessOne: it works the same, pretty much. [08:23] isaacs: TheLifelessOne: you can set a NODE_PATH environment var, or it just walks up looking for node_modules folders [08:23] Xano has joined the channel [08:24] Xano_ has joined the channel [08:24] RyanW: Hmm I can't publish one package because the email address doesn't match [08:24] RyanW: I thought it only cared about username [08:26] RyanW: oddly unpublish works, but not publish [08:31] akiva has joined the channel [08:31] mikeal has joined the channel [08:33] brainproxy: jasonmchristos: when you compile node, it takes advantage of libssl-dev to give node the ability to establish encrypted communication, e.g. https [08:36] RyanW: And an unrelated question. The 'cocos2d' package depends on 'jah' which depends on 'colors'. When 'cocos2d' is install it installs jah but not colors and this shows as an unmet dependency in 'npm list -g' [08:36] RyanW: Is this a bug? [08:37] RyanW: cocos2d@unstable even. Maybe something to do with using a tag? [08:37] lemonad has joined the channel [08:41] RyanW: There's an open issue: https://github.com/isaacs/npm/issues/1341 [08:41] RyanW: bit of a limitation I think [08:41] arcanis has joined the channel [08:42] SamuraiJack has joined the channel [08:45] garrensmith has joined the channel [08:48] Sami_ZzZ has joined the channel [08:48] JakeyChan has joined the channel [08:53] mraleph has joined the channel [08:55] Druid_ has joined the channel [08:55] k1ttty has joined the channel [08:56] josh-k has joined the channel [08:58] adambeynon has joined the channel [08:59] RyanW: 'mongoose' doesn't have this issue. I must be doing something wrong with npm [08:59] Margle has joined the channel [09:02] jimt_ has joined the channel [09:06] martin_sunset has joined the channel [09:09] MUILTFN has joined the channel [09:10] josh_k has joined the channel [09:13] saschagehlich has joined the channel [09:13] aesptux has joined the channel [09:13] gripir has joined the channel [09:17] ag4ve_ has joined the channel [09:20] Tommy_ has joined the channel [09:27] Squeese has joined the channel [09:29] RyanW: My process.installPrefix is blank, has it been removed? Should I instead use path.join(path.dirname(process.execPath), '..') ? [09:30] Nuck: I heard the news! [09:30] Nuck: HOORAY FOR NODE! [09:30] RyanW: there was news? [09:30] Nuck: RyanW: We finally overtook rails [09:31] Nuck: I just heard [09:31] Nuck: I assume this is old news to all the people in here :P [09:31] RyanW: in what? [09:31] Nuck: RyanW: Github watchers! [09:31] RyanW: Oh [09:31] Nuck: ACTION points to the topic [09:31] RyanW: Is that good? [09:32] RyanW: I think rails probably still has a lot more users [09:32] ag4ve has joined the channel [09:33] GrizzLyCRO: eh, i often ask this question when i try something new [09:33] pksunkara: RyanW: Go and watch github.com/joyent/node [09:33] GrizzLyCRO: what are downsides of node.js ? [09:33] ag4ve has joined the channel [09:33] plutoniiix has joined the channel [09:34] RyanW: I already watch it [09:34] RyanW: But I also watch Rails :) [09:35] jomoho has joined the channel [09:35] jasonmchristos: brainproxy, what about the gpg module [09:39] Lingerance: GrizzLyCRO - It uses async calls, which are slightly harder to debug and if you're not used to them they're very frustrating. [09:40] GrizzLyCRO: well, i think i have one idea how that works under the hood, and i think it is great for large load servers [09:40] GrizzLyCRO: especially on nice multicore systems [09:40] Lingerance: Not really, it's single-threaded [09:40] Lingerance: You need multiple processes if you want to use more than one core. [09:40] GrizzLyCRO: i know [09:41] GrizzLyCRO: using something like load balancer should not be so hard? [09:43] Lingerance: ACTION uses one [09:43] GrizzLyCRO: is it hard to use it? [09:44] Lingerance: Depends on which one and what you're trying to make it do [09:44] GrizzLyCRO: for now nothing, i merely want to try node to see how it works out [09:44] GrizzLyCRO: but multiple physical servers, each running its own database [09:45] whotemp has left the channel [09:46] GrizzLyCRO: but dont worry, i have yet to write some real code for node before i go in that type of problems :) [09:46] jasonmchristos: how can you write code if you cant write english properly? [09:47] mikeric has joined the channel [09:48] GrizzLyCRO: jasonmchristos: i wonder about that too, really weird, aint it? [09:51] stephank has joined the channel [09:54] broofa has joined the channel [09:56] rskuja: jasonmchristos: i have same problem, yet code happens to work [09:57] Andrejejew has joined the channel [09:57] lyte_ has joined the channel [09:58] mraleph has joined the channel [10:00] npa has joined the channel [10:03] jbrokc_ has joined the channel [10:05] k1ttty has joined the channel [10:05] bosphorus has joined the channel [10:07] rurufufuss has joined the channel [10:08] bosphorus has joined the channel [10:10] Margle has joined the channel [10:10] [AD]Turbo has joined the channel [10:10] zilch_ has joined the channel [10:12] zilch_ has joined the channel [10:12] jbrokc_ has joined the channel [10:16] benlyng has joined the channel [10:18] hipsterslapfight has joined the channel [10:21] slaskis has joined the channel [10:22] zilch_ has joined the channel [10:24] __doc__ has joined the channel [10:25] EuroNerd has joined the channel [10:25] okuryu has joined the channel [10:30] bosphorus has joined the channel [10:30] Glenjamin_ has joined the channel [10:31] Glenjamin_: Hi guys, is there an express specific channel? if not, what's the best way to add new high-level methods to res? [10:31] passionke has joined the channel [10:32] slaskis: Glenjamin_: There's #express [10:32] andrewfff has joined the channel [10:32] Glenjamin_: slaskis: thanks [10:32] slaskis: Np [10:35] d0k has joined the channel [10:37] madhums has joined the channel [10:37] zilch_ has joined the channel [10:39] robhawkes has joined the channel [10:39] saschagehlich: did anyone manage to send facebook graph calls using login information taken from everyauth? [10:39] maushu has joined the channel [10:40] npa has joined the channel [10:41] dartforce has joined the channel [10:41] markwubben has joined the channel [10:41] arcanis has joined the channel [10:47] EuroNerd has joined the channel [10:47] zilch_ has joined the channel [10:47] confoocious has joined the channel [10:47] confoocious has joined the channel [10:49] saschagehlich has joined the channel [10:51] saesh has joined the channel [10:53] DennisRasmussen has joined the channel [10:53] zilch_ has joined the channel [10:54] chjj: finally there [10:54] chjj: bye bye rails [10:56] lyte has joined the channel [10:57] tommyvyo has joined the channel [11:00] Margle has joined the channel [11:01] vdemedes has joined the channel [11:02] saschagehlich has joined the channel [11:06] Sorella has joined the channel [11:07] N0va` has joined the channel [11:08] luke` has joined the channel [11:15] tomox has joined the channel [11:16] zilch_ has joined the channel [11:17] broofa has joined the channel [11:20] EuroNerd: I need some advice: I'd like to start experimenting with node.js ASAP, so I'm going to install a linux server in VirtualBox. What kind of server would you recommend as the easiest/fastest to set up? XAMPP? Oracle's prebuilt VMs? Something else? [11:21] zomg: EuroNerd: Ubuntu is probably pretty straightforward [11:21] broofa has joined the channel [11:22] AAA_awright_0: Gentoo obviously [11:22] zilch_ has joined the channel [11:23] EuroNerd: I should also point out I'm rather clueless about Linux. I'm able to install Ubuntu Desktop (actually using one right now ;), but if I'll have to configure something in command line, I'm gonna waste two days trying to figure it out. [11:23] AAA_awright_0: ... Once you get past the 16 hours or so of initial compiling it's actually a great platform, I use it for three servers and this desktop [11:23] EuroNerd: lol [11:23] zomg: EuroNerd: there are guides on the internets for installing node in ubuntu so you should be able to start pretty easily [11:23] EuroNerd: AAA_awright_0, as I said, "easiest/fastest" to set up. [11:24] EuroNerd: zomg, would you recommend Ubuntu Server or will Desktop run just as good, but with GUI? ;) [11:24] zomg: Both should work [11:25] zomg: You probably will be doing most things from the terminal though (eg. run the app, install packages from npm etc.) [11:25] AAA_awright_0: I would avoid Ubuntu, it doesn't deliver regular updates unless it's a "bug fix," which the buggy stuff when it's fixes is NEVER counted as a "bug fix" so you're stuck waiting 6 months [11:25] zomg: Well it's better at delivering them than Debian :p [11:25] zomg: At least if you have Debian stable [11:25] zomg: =) [11:26] zomg: considering he's already familiar with ubuntu it is probably the best option for him [11:26] AAA_awright_0: On that note I would avoid npm too [11:26] EuroNerd: OK, so I'll probably settle for the latest Ubuntu Desktop LTS (11.04)... What do I need to put on top? Node.js obviously, probably MySQL, anything else? [11:27] johnnywengluu has joined the channel [11:27] zomg: node and npm, although I think they started bundling npm with node itself now? [11:27] AAA_awright_0: Please no [11:27] zomg: Oh, you probably also need git [11:27] AAA_awright_0: Git is a must [11:27] AAA_awright_0: Git, build utils [11:27] AAA_awright_0: Wait are we compiling this from source? [11:27] AAA_awright_0: That's the only way I've seen it done [11:27] EuroNerd: I hope not :-P [11:27] AAA_awright_0: It's not hard [11:27] EuroNerd: I just want to install it and have it running in 10 minutes. [11:27] zomg: Yeah it's basically just ./configure && make && sudo make install [11:28] Frippe has joined the channel [11:28] EuroNerd: I'm hoping I can get node.js with one line of apt-get ;) [11:28] zomg: it took less than 10 minutes on my cheap VPS =) [11:28] AAA_awright_0: git clone Node.js && cd Node.js && ./configure && make && sudo make install [11:28] AAA_awright_0: One line [11:29] AAA_awright_0: If you have the packages installed, I'm on Gentoo so that comes free so idk what the apt packages are, but I think the development libraries usually ship separately [11:29] EuroNerd: OK, thanks guys. [11:30] xerox: https://github.com/joyent/node/wiki/Installation [11:30] smgt has joined the channel [11:30] EuroNerd: thanks :) [11:30] AAA_awright_0: https://github.com/joyent/node/blob/master/README.md [11:30] zilch_ has joined the channel [11:30] xerox: a bit more thorough, with the option to install it in your $HOME instead of system-wide [11:30] xerox: but basically amounts to AAA_awright_0's way, with some env vars :) [11:31] AAA_awright_0: I thought you could just modify as such: ./configure --prefix=~/local or somesuch [11:31] xerox: yep [11:31] xerox: and then you add the directory to PATH [11:32] EuroNerd: roger that [11:32] xerox: anyway, that page is really short. [11:34] jbrokc_ has joined the channel [11:34] nils_r has joined the channel [11:38] `3rdEden has joined the channel [11:38] romanb has joined the channel [11:38] skm has joined the channel [11:38] EuroNerd: Does node.js have any preference whether I run it on 32-bit or 64-bit linux? (although i'm sure it runs on both) [11:39] lyte_ has joined the channel [11:40] GrizzLyCRO has joined the channel [11:40] shinuza has joined the channel [11:42] aravind_ has joined the channel [11:42] robotmay has joined the channel [11:42] lemonad has joined the channel [11:43] Frippe_ has joined the channel [11:43] Frippe_ has left the channel [11:48] Draco_ has joined the channel [11:48] lzskiss has joined the channel [11:48] lzskiss: yo [11:49] EuroNerd: whassup dude [11:51] Lingerance: EuroNerd - Why would it? [11:51] Lingerance: ACTION runs on 64bit mostly [11:52] EuroNerd: dunno, just asking (e.g. ubuntu recommends its desktop edition for 32b and server for 64b) [11:53] ioNull has joined the channel [11:54] EuroNerd: Lingerance, on the other hand, since I'm gonna setup this server in a local VM, 32-bit is less of a resource hog and more portable. [11:54] Lingerance: Then do that [11:55] EuroNerd: yup, that's my intention [12:00] EuroNerd: Guys, from your experience, which Linux server distro has the best support community? (best = biggest, most responsive, most knowledgeable [nothing worse than an IRC channel with 200 users, all of them newbies and/or AFK], most tolerant to newbies ;) [12:01] meso has joined the channel [12:01] zilch_ has joined the channel [12:01] meso_ has joined the channel [12:02] jtr__ has joined the channel [12:03] skoom has joined the channel [12:03] Lingerance: Stick with Ubuntu [12:04] EuroNerd: roger that :) [12:06] tommyvyo has joined the channel [12:09] Locke23rus has joined the channel [12:10] zilch_ has joined the channel [12:11] bergie has joined the channel [12:11] Heisenmink has joined the channel [12:12] Heisenmink: I compiled node-v0.6.3 and it works but npm is giving me this error: https://gist.github.com/1395534 [12:13] jbrokc_ has joined the channel [12:14] Lingerance: You installed to /opt/node/ ? [12:14] Lingerance: If so try: sudo mkdir -p /opt/node/lib/node_modules/npm/man/man1/ [12:14] adrianmg has joined the channel [12:14] adrianmg has left the channel [12:16] Heisenmink: Lingerance, thanks! Now it works [12:16] kawano_tomonori_ has joined the channel [12:17] plutoniix has joined the channel [12:17] zilch_ has joined the channel [12:27] thalll has joined the channel [12:28] darhamid has joined the channel [12:29] tisba has joined the channel [12:33] darhamid has left the channel [12:33] amigojapan has joined the channel [12:33] ecin_ has joined the channel [12:34] jbrokc_ has joined the channel [12:34] ecin_ has joined the channel [12:35] kawano_tomonori_ has left the channel [12:36] rev087 has joined the channel [12:39] fairwinds has joined the channel [12:41] simenbrekken has joined the channel [12:42] xy has joined the channel [12:44] level09 has joined the channel [12:49] level09 has left the channel [12:51] robi42 has joined the channel [12:52] smgt has joined the channel [12:53] zilch_ has joined the channel [12:56] akihito_s has joined the channel [12:56] neurodrone has joined the channel [12:56] lyte has joined the channel [13:01] mmalecki: how can I get list of globals which are legitimate? [13:01] mmalecki: e.g. not leaking? [13:01] zilch_ has joined the channel [13:01] phiggins has joined the channel [13:01] dantje_ has joined the channel [13:03] bradleyg has joined the channel [13:04] JakeyChan_ has joined the channel [13:04] zilch_ has joined the channel [13:04] dantje_: make install fails with 'https://github.com/joyent/node.git', but worked ok with the 0.6.3 tarball. Is this intentional? [13:04] mmalecki: dantje_: yeah [13:04] Bioxyde has joined the channel [13:04] mmalecki: dantje_: they are changing build system [13:05] dantje_: Ah, you just want to lure people into #node.js, right? :-) [13:05] mmalecki: our seeeeeret plan :D [13:05] mmalecki: *seeeeecret [13:06] Bioxyde: Hey guys, I'm getting the following error when running npm: http://pastie.org/2923790 [13:06] Bioxyde: It (along with node) was installed through the Mac .pkg installer [13:07] secoif: Can someone please confirm that the nodejs.org favicon is broken? [13:07] secoif: from my tests it seems to not work at all for chrome [13:07] secoif: is kinda offset in Firefox [13:07] secoif: and works perfect in Safari [13:08] EuroNerd: secoif, roger that, shifted in FF [13:08] secoif: cooll [13:08] Bioxyde: not working in Chrome, true [13:08] Bioxyde: in Opera it's perfect. [13:08] secoif: Bioxyde EuroNerd what OS [13:08] Bioxyde: Mac [13:08] EuroNerd: Ubuntu 11.10 [13:09] secoif: Cool [13:11] mattijs has joined the channel [13:18] secoif: can someone please confirm that the nodejs favicon is working on this url https://t3dt.showoff.io/ [13:18] braoru has joined the channel [13:19] secoif: ACTION sick of not being able to find the damn nodejs docs in the tab list when got a few tabs open [13:19] Bioxyde has joined the channel [13:19] Bioxyde has left the channel [13:19] alFReD_ has joined the channel [13:20] secoif: EuroNerd [13:20] alFReD_: What is the recommended way to catch unhandleed exceptions in node? [13:20] alFReD_: Just put blocks of code in try n catch? [13:20] Bonuspunk: try/catch does not work most of the time [13:21] mmalecki: secoif: doesn't work eithere [13:21] mmalecki: *either [13:21] secoif: hrm, really [13:21] mmalecki: secoif: oh wait, works now [13:21] secoif: cool [13:21] mmalecki: chrome dev has some cache issues :/ [13:21] Bonuspunk: alFReD_ --> http://nodejs.org/docs/latest/api/process.html#event_uncaughtException_ [13:21] secoif: mmalecki which OS? [13:22] buttface has joined the channel [13:23] akihito_s has joined the channel [13:24] mmalecki: secoif: s x [13:24] mmalecki: *os x [13:24] secoif: mmalecki thanks [13:26] enmand has joined the channel [13:26] V1 has joined the channel [13:27] tomlion has joined the channel [13:28] zilch_ has joined the channel [13:30] Margle has joined the channel [13:30] SamuraiJack has joined the channel [13:30] blup has joined the channel [13:31] zilch_ has joined the channel [13:32] JakeyChan_ has joined the channel [13:32] madhums has joined the channel [13:34] SamuraiJack has joined the channel [13:37] EvRide has joined the channel [13:40] adrianF has joined the channel [13:40] rwasielewski has joined the channel [13:43] jbrokc_ has joined the channel [13:45] motill has joined the channel [13:46] orospakr has joined the channel [13:51] npa has joined the channel [13:57] Kunda has joined the channel [13:58] tomlion_ has joined the channel [13:59] Wizek has joined the channel [13:59] lemonad has joined the channel [14:04] rev087_ has joined the channel [14:04] enmand has joined the channel [14:08] akihito_s has joined the channel [14:08] rev087 has joined the channel [14:09] bosphorus_ has joined the channel [14:09] akihito__ has joined the channel [14:09] openpercept has joined the channel [14:12] tomlion has joined the channel [14:15] gavin_huang has joined the channel [14:15] lyte_ has joined the channel [14:18] Margle has joined the channel [14:20] louissmit has joined the channel [14:20] level09_ has joined the channel [14:26] dantje has joined the channel [14:27] nicholasf has joined the channel [14:27] Aria has joined the channel [14:31] zilch_ has joined the channel [14:31] dantje: 0.6.3's npm doesn't seem to work properly with express (https://github.com/isaacs/npm/issues/1784). Is there some workaround? [14:31] madhums has joined the channel [14:36] confoocious has joined the channel [14:39] JonB has joined the channel [14:39] OneOfOne has joined the channel [14:40] JonB_ has joined the channel [14:43] criswell has joined the channel [14:44] bosphorus has joined the channel [14:47] cronopio has joined the channel [14:49] torsd has joined the channel [14:49] piscisaureus_ has joined the channel [14:49] SuMarDi has joined the channel [14:53] Draco_ has joined the channel [14:54] bbommarito has joined the channel [14:55] bbommarito has joined the channel [14:55] tomlion has joined the channel [14:56] Juan77 has joined the channel [15:01] koo0 has joined the channel [15:01] koo1 has joined the channel [15:01] jtr__ has joined the channel [15:01] grekko has joined the channel [15:04] seebees has joined the channel [15:04] jbrokc_ has joined the channel [15:04] hellp has joined the channel [15:04] aaronmcadam has joined the channel [15:05] madhums has joined the channel [15:06] koo0 has joined the channel [15:06] bnoordhuis has joined the channel [15:06] dantje: Ok, 0.6.1 works ok with express. Now, as I only learning this whole js, node & express stuff: How does one debug a "TypeError: Bad Argument" at Object._open (fs.js:224:11)? [15:09] Overshee has joined the channel [15:09] confoocious has joined the channel [15:09] confoocious has joined the channel [15:09] Kunda has left the channel [15:10] braoru has joined the channel [15:11] akihito_s has joined the channel [15:11] reid has joined the channel [15:13] ovaillancourt has joined the channel [15:14] dthompso99 has joined the channel [15:14] jbrokc_ has joined the channel [15:19] akihito__ has joined the channel [15:22] EuroNerd has joined the channel [15:22] EuroNerd_ has joined the channel [15:23] CarterL has joined the channel [15:24] jbrokc_ has joined the channel [15:24] Aria has joined the channel [15:27] mattijs has left the channel [15:28] kriszyp3 has joined the channel [15:30] noob13 has joined the channel [15:33] Neil_ has joined the channel [15:33] bradleymeck has joined the channel [15:37] secoif: dantje you should post a code snippet [15:37] secoif: it sounds like you're trying to open a file, but not passing a string to fs.open() [15:38] secoif: or whatever you're trying to use [15:38] dartforce has joined the channel [15:39] secoif: In other words, double check your args. [15:39] kiilo has joined the channel [15:39] aliem has joined the channel [15:40] kiilo: hi i have a poblem: [15:40] kiilo: `make install` is not implemented yet. Bug bnoordhuis about it in #node.js [15:40] mmalecki: hahaha [15:40] mmalecki: kiilo: node is switching build systems, use v0.6.3 tag [15:41] kiilo: supi ~ thanks [15:41] kiilo: try that [15:41] cjm has joined the channel [15:41] mmalecki: actually, I'll just implement a bot to tell people to use this tag [15:41] rauchg has joined the channel [15:44] EuroNerd has joined the channel [15:45] gut4 has joined the channel [15:45] grampajoe has joined the channel [15:45] blueadept has joined the channel [15:45] blueadept has joined the channel [15:50] mmalecki: on Ubuntu, what do I need to `apt-get` to install prerequisites for building node? [15:50] issackelly_ has joined the channel [15:51] hkjels: mmalecki: essential-buildtools I think [15:51] arpunk has joined the channel [15:52] mmalecki: hkjels: yeah, but there was also something with openssl, not sure how the package was callled [15:52] hkjels: yeah, openssl would be a good idea [15:53] hkjels: libssl-dev [15:53] hkjels: git-core [15:53] dantje: secoif: this is node's very own fs.js that is somehow used by express in an unfortunate manner. [15:53] mmalecki: oh! thanks :) [15:53] hkjels: build-essentials [15:53] hkjels: those should do I think [15:53] Neil_ has joined the channel [15:54] jbrokc_ has joined the channel [15:54] mmalecki: hkjels: ok, thank you :) [15:54] hkjels: ;) [15:54] secoif: dantje can you post the code you're working on, it's possible you're incorrectly telling express to load a file (eg a template) [15:55] r04r has joined the channel [15:55] r04r has joined the channel [15:56] secoif: dantje + post the error message stack trace [15:56] MatthewS has joined the channel [15:56] secoif: dantje use pastebin or something [15:56] secoif: gist [15:56] secoif: whatever. [15:56] hkjels: How come my locals in express are sticky? I mean session-like behavior on the response-object [15:57] noob13 has joined the channel [15:57] phiggins has joined the channel [15:58] kiilo: mmaqlecki: thanks alot, see https://github.com/joyent/node/issues/2197 [15:58] secoif: hkjels you've obviously got 'var' in front of all your locals [15:58] kiilo: worked fine [15:59] secoif: hkjels gist it please [15:59] mmalecki: kiilo: :) [15:59] hkjels: secoif: mkay, one sec [15:59] metin has joined the channel [16:00] metin has left the channel [16:00] nerdy_ has joined the channel [16:01] MatthewS has joined the channel [16:02] lyte has joined the channel [16:02] kazupon has joined the channel [16:03] davidascher has joined the channel [16:04] jbrokc_ has joined the channel [16:04] cha0s has joined the channel [16:04] cha0s has joined the channel [16:07] cgray has joined the channel [16:07] hkjels: secoif: //gist.github.com/1395910 [16:07] hkjels: https://gist.github.com/1395910 even [16:08] simenbrekken has joined the channel [16:08] secoif: hkjels can you explain the issue more please? [16:09] hkjels: will do [16:10] skm has joined the channel [16:10] igl: you dont declare task or title [16:10] Wizek-other has joined the channel [16:11] stantona has joined the channel [16:11] secoif: hkjels task = {} [16:12] secoif: should be var task = {} [16:12] igl: wont work either [16:12] dantje: secoif: http://pastebin.com/kvKGFysu (I have no code on my own, I just want npm to resolve some deps of the express example app). [16:12] igl: -> function scope [16:12] davidascher has joined the channel [16:12] hkjels: ahh. I think you found it [16:12] hkjels: I'll check right away [16:13] hkjels: sweet [16:13] hkjels: thank you [16:14] secoif: hkjels if you were using strict mode… it would have caught that [16:14] hkjels: off course, because the code is evaluated even though it is not fired [16:14] jbrokc_ has joined the channel [16:14] hkjels: (y) [16:14] secoif: just add 'use strict' at the top of every file [16:14] hkjels: ahh, so that's what that is for [16:14] stantona has joined the channel [16:15] hkjels: just haven't been curious enough to check that out yet [16:15] secoif: it also stops you doing a few other things, like calling a function argument 'arguments' [16:17] hkjels: Ok, sweet. I will have to take a look at that [16:17] secoif: dantje is there a package.json in /home/dvg/workspaces/playground/express/helloworld [16:18] martin_sunset has joined the channel [16:20] asoltys has joined the channel [16:20] aoberoi has joined the channel [16:21] DarrenMowat has joined the channel [16:22] gut4 has joined the channel [16:23] openpercept has joined the channel [16:23] yumike has joined the channel [16:24] dantje: secoif: yes. deps: express 2.5.1, sass 0.0.1, jade 0.0.1 [16:24] jbrokc_ has joined the channel [16:24] openpercept has joined the channel [16:24] vandenoever has joined the channel [16:24] aoberoi has joined the channel [16:25] shipit has joined the channel [16:25] vandenoever: is there an effort to implement W3 DOM apis in node.js? esp i'm looking for XPath support [16:26] vandenoever: atm i'm playing with/cleaning up http://ignum.dl.sourceforge.net/project/js-xpath/js-xpath/1.0.0/xpath.js [16:26] thax has joined the channel [16:26] Brozilla has joined the channel [16:28] secoif: dantje where did you get that alpha version of npm? [16:28] necromancer has joined the channel [16:29] r04r has joined the channel [16:29] dantje: the first time round i used the npm that came with 0.6.3 (also see this bug https://github.com/isaacs/npm/issues/1784) [16:30] necromancer has joined the channel [16:31] footyfish has joined the channel [16:31] whoops has joined the channel [16:31] sontek has joined the channel [16:31] Kai` has joined the channel [16:31] Raynos has joined the channel [16:31] daleharvey has joined the channel [16:31] majek has joined the channel [16:31] pksunkara: Is mikeal here? [16:32] tomh has joined the channel [16:32] dantje: secoif: thanks for now, i'll be back later [16:32] johnnywengluu has joined the channel [16:32] nym has joined the channel [16:32] subbyyy has joined the channel [16:32] Hosh has joined the channel [16:32] secoif: dantje np [16:32] ec|IRCCloud has joined the channel [16:33] pksunkara: Does anybody know how to set server user and password for mikeal's request lib? [16:33] CarterL has joined the channel [16:33] secoif: dantje I'd try installing npm via `curl http://npmjs.org/install.sh | sh` that's worked for me [16:34] isaacs: pksunkara: the easiest way is just to set it in the url, but you can also set the authorization header manually [16:34] isaacs: pksunkara: i.e., http://user:pass@foo.com/ [16:34] isaacs: request will parse it out properly [16:34] beawesomeinstead has joined the channel [16:34] pksunkara: thanks isaacs [16:34] jbrokc_ has joined the channel [16:34] garann has joined the channel [16:34] iaincarsberg has joined the channel [16:35] romainhuet has joined the channel [16:35] strax has joined the channel [16:35] matjas has joined the channel [16:36] JakeyChan: h ? [16:36] JakeyChan: hi ? [16:36] Aria: Hi [16:36] JakeyChan: do you have good idea for SEO ? [16:36] r04r has joined the channel [16:36] JakeyChan: because I build my site with backbone [16:36] JakeyChan: and the HTML are created by javascript [16:36] Aria: Heh. "don't do that" [16:36] JakeyChan: so, it's not friendly for SEO [16:36] JakeyChan: so ?? [16:36] JakeyChan: how can I ? [16:37] Aria: Have fallback server-side rendering that GoogleBot can see. [16:37] JakeyChan: how ? [16:37] Aria: There [16:37] tiglionabbit has joined the channel [16:37] Aria: Turn off javascript and make sure your site still works. [16:37] JakeyChan: no [16:37] Aria: Generate regular old URLs. [16:37] JakeyChan: it can't work [16:37] Aria: Then you have a problem. [16:38] Aria: Why'd you use backbone and do client-side rendering for a plain old site? [16:38] chunhao_ has joined the channel [16:38] JakeyChan: just for fun [16:38] Aria: That's a great technique for an app, where you don't want indexes and for it to act like regular old documents [16:38] Aria: But for a site. .. not so smart. You want to do progressive enhancement for a site. [16:38] JakeyChan: yeah yeah, that's I am thinking about [16:39] JakeyChan: thank your idea! [16:39] JakeyChan: by the way [16:39] daleharvey has joined the channel [16:39] Brozilla: since it's just javascript, can't you just use the client-side code and run it on the server? [16:39] JakeyChan: so I should render html in server side and send back to client side ? [16:39] soapyillusions has joined the channel [16:39] Aria: Yes. At least as a fallback. [16:39] ralph has joined the channel [16:40] Aria: Brozilla: Sure, with a DOM. It's slow unless you're clever. [16:40] niftylettuce has joined the channel [16:40] turboneat has joined the channel [16:41] dnyy has joined the channel [16:41] turboneat: so dudes [16:41] r04r has joined the channel [16:41] turboneat: yall be usin nodejs? [16:41] jeremyselier has joined the channel [16:41] bradwright has joined the channel [16:42] marcello3d has joined the channel [16:43] openpercept has joined the channel [16:43] dshaw_ has joined the channel [16:43] MooGoo: nodejs sux [16:44] jbrokc_ has joined the channel [16:44] skm has joined the channel [16:45] jtsnow has joined the channel [16:46] CIA-109: node: 03kyle@dontkry.com 07v0.6 * r34f34e4 10/ (7 files): [16:46] CIA-109: node: docs: fix typo [16:46] CIA-109: node: Fixes #2193. - http://git.io/UTMUXA [16:46] Kunda has joined the channel [16:49] dust-- has joined the channel [16:50] c4milo has joined the channel [16:51] gut4 has joined the channel [16:51] mandric has joined the channel [16:51] btipling has joined the channel [16:52] Aria has joined the channel [16:53] sorin has joined the channel [16:56] vguerra has joined the channel [16:56] chrisvwebdev has joined the channel [16:57] monokrome has joined the channel [17:00] jarek has joined the channel [17:00] lyte has joined the channel [17:00] jarek has joined the channel [17:00] lyte has joined the channel [17:00] piscisaureus_ has joined the channel [17:01] poincare101 has joined the channel [17:01] Bodil has joined the channel [17:02] devongovett has joined the channel [17:03] Neil has joined the channel [17:03] igl1 has joined the channel [17:03] Vennril has joined the channel [17:04] jbrokc_ has joined the channel [17:05] defunctzombie has joined the channel [17:06] r04r has joined the channel [17:06] turboneat has left the channel [17:07] Bodil has joined the channel [17:08] interrupt has joined the channel [17:09] Kunda has left the channel [17:10] Aria has joined the channel [17:11] CIA-109: node: 03koichik 07v0.6 * r6392eba 10/ test/fixtures/pass-cert.pem : test: update an expired certificate - http://git.io/b7QLXw [17:11] liar has joined the channel [17:11] Druid_ has joined the channel [17:13] r04r has joined the channel [17:15] autarch has joined the channel [17:16] autarch: are npm questions acceptable here, or is there another room for that? [17:17] franciscallo has joined the channel [17:18] r04r has joined the channel [17:18] Illusioneer has joined the channel [17:19] mmalecki has joined the channel [17:19] autarch: also a question about module naming ... let's say I'm making a new package to be called Brocket and I want a bunch of classes in said package [17:20] SamuraiJack has joined the channel [17:20] autarch: do I do something like lib/Brocket.js, lib/Brocket/Foo.js, lib/Brocket/Foo/Bar.js ? [17:20] brianseeders has joined the channel [17:20] ecin has joined the channel [17:20] Bodil has joined the channel [17:21] pksunkara: You can do anyhow you wish [17:21] autarch: I guess if I use the module pattern the name doesn't matter too much, since the module itself is just an object [17:21] pksunkara: you just need to require them correctly [17:21] ecin_ has joined the channel [17:23] r04r has joined the channel [17:24] ekryski has joined the channel [17:25] Bodil has joined the channel [17:25] SirFunk: so i'm new to node.. but how do i make a bit of code synchronous. Ex .using mongoose: User.find().all(function(user){}) .. that fires a call back with each user.. but i need to get a list of all the users [17:27] r04r has joined the channel [17:27] r04r has joined the channel [17:28] djcoin has joined the channel [17:29] Wizek has joined the channel [17:30] jaequery has joined the channel [17:30] fangel has joined the channel [17:31] Xano has joined the channel [17:33] r04r has joined the channel [17:33] r04r has joined the channel [17:33] MrNibbles has joined the channel [17:34] Aria: SirFunk: You don't. But you collect the results as they come in and fire ANOTHER callback with the whole list. [17:34] Aria: (Though one thing I don't know about Mongoose is whether that actually fires asynchronously each time, or once you get the result set if it fires them all in one go.) [17:34] Aria: (If the latter, the code is pretty easy.) [17:35] Aria: (If not, you need to know when you get 'em all, and that means a completion callback -- which would be super annoying if Mongoose doesn't provide it) [17:36] plutoniix has joined the channel [17:36] enmand has joined the channel [17:37] dshaw_ has joined the channel [17:38] r04r has joined the channel [17:38] r04r has joined the channel [17:39] devrim has joined the channel [17:39] mmalecki_ has joined the channel [17:39] mmalecki_ has joined the channel [17:40] patcito has joined the channel [17:42] mmalecki has joined the channel [17:43] SirFunk: Aria: oh yeah, it may be the later [17:43] SirFunk: .. i'm having trouble with mongoose right now though, not sure if it's querying on the right collection [17:43] catb0t: Exception: SyntaxError: Unexpected string [17:43] r04r has joined the channel [17:43] skm has joined the channel [17:46] Juan77 has joined the channel [17:50] jasonlfunk has joined the channel [17:50] Marko_ has joined the channel [17:50] r04r has joined the channel [17:51] jasonlfunk: How long should it take to install npm? I've been sitting here for a long time and it's consuming lots of resources so I would guess that it's still running? http://pastebin.com/uSvB7VEL [17:52] enigma1 has joined the channel [17:52] clithe has joined the channel [17:52] luke` has joined the channel [17:54] interrupt: how many persistent connections can nodejs manage? is there any benchmark data? [17:55] jstash has joined the channel [17:55] idefine has joined the channel [17:55] arcanis has joined the channel [17:57] jocafa has joined the channel [17:57] lzskiss has joined the channel [17:58] sorin has joined the channel [17:58] robb1e_ has joined the channel [17:58] Aria: interrupt: 10K+ -- you start running into OS limits, and it depends on which backend libuv is using. [17:59] Aria: interrupt: You can scale pretty high. It's efficient as it can be. [17:59] r04r has joined the channel [17:59] Dulak: interrupt: directly it's ram bound really, but if you set things up right, you can do 10k connections on even low grade hardware. [17:59] Aria: Yeah. RAM is one place; OS limits on file descriptors another. [18:00] Aria: If you're using an OS without well-optimized libuv backends (like if it falls to select() or something insane), you'll not scale that high. [18:00] Aria: Ephemeral port limits, too -- every TCP connection needs a free port. Some OSes need tuning to get more available for use. [18:00] Aria: And even so you're limited to 64K per IP. [18:00] kkszysiu has joined the channel [18:02] jldbasa has joined the channel [18:05] idl3 has joined the channel [18:05] craig has joined the channel [18:07] broofa has joined the channel [18:07] craig has left the channel [18:08] crcn has joined the channel [18:08] r04r has joined the channel [18:08] c4milo has joined the channel [18:09] jacobolu_ has joined the channel [18:10] jtsnow has joined the channel [18:10] ecin has joined the channel [18:11] astralab has joined the channel [18:12] AvianFlu has joined the channel [18:12] astralab has joined the channel [18:13] astralab has joined the channel [18:17] diogogmt has joined the channel [18:19] towski has joined the channel [18:21] chrisvwebdev has joined the channel [18:22] vandenoever has left the channel [18:24] nmtmason has joined the channel [18:26] k1ttty has joined the channel [18:27] Destos has joined the channel [18:28] arcanis has joined the channel [18:29] Juan77 has joined the channel [18:29] clithe has joined the channel [18:30] avalanche123 has joined the channel [18:32] bosphorus_ has joined the channel [18:33] astralab has joined the channel [18:35] jbrokc_ has joined the channel [18:37] jocafa has joined the channel [18:41] herrmannplatz1 has joined the channel [18:42] jack has joined the channel [18:46] SirFunk: anyone use mongoose? [18:46] cjm has joined the channel [18:49] tobias has joined the channel [18:50] Illusioneer has joined the channel [18:52] cody-- has joined the channel [18:53] bemson has joined the channel [18:53] bemson: Are there any tutorials on making a node CLI script? [18:53] jbrokc_ has joined the channel [18:54] bemson: I'd like to make my own node-based compiler, and need to output the result of processing a file [18:55] AvianFlu: bemson, I can link you a couple of articles, hang on a second [18:55] AvianFlu: actually, just look at the "command line" category here http://docs.nodejitsu.com/ [18:55] AvianFlu: that should give you lots of the basics [18:55] bemson: AvianFlu: will do, thx! [18:55] AvianFlu: and there are lots of libs to use for it, too [18:56] AvianFlu: those articles have some library recommendations in them, but there are always choices in node [18:56] bemson: AvianFlu: kewl! I'm on it :-) [18:59] jgornick has joined the channel [18:59] chrisvwebdev has joined the channel [19:00] __tosh has joined the channel [19:01] chrisvwebdev has left the channel [19:02] IrishGringo has joined the channel [19:04] bemson: AvianFlu: where can I learn about this "process" global? [19:05] AvianFlu: there's actually another article on docs.nodejitsu.com just about the process object, I think [19:05] AvianFlu: http://docs.nodejitsu.com/articles/getting-started/the-process-module [19:05] astralab has joined the channel [19:05] Dulak: bemson: http://nodejs.org/docs/v0.6.3/api/process.html [19:05] bemson: thx to you both [19:05] bemson: gotta run! Happy Turkey weekend! :-) [19:06] kiilo has joined the channel [19:08] kkszysiu has joined the channel [19:08] jasonlfunk has left the channel [19:08] c4milo1 has joined the channel [19:09] thax has joined the channel [19:10] koo3 has joined the channel [19:10] defunctzombie has left the channel [19:12] herrmannplatz has joined the channel [19:12] JasonJS has joined the channel [19:13] ekryski_ has joined the channel [19:13] joshthecoder has joined the channel [19:13] bingomanatee_ has joined the channel [19:14] jbrokc_ has joined the channel [19:15] seebees has joined the channel [19:15] tanepiper has joined the channel [19:18] Me1000 has joined the channel [19:19] MatthewS has joined the channel [19:20] seebees has joined the channel [19:25] cjm has joined the channel [19:25] slifty has joined the channel [19:25] Wizek-other has joined the channel [19:27] mrtazz has joined the channel [19:27] herbySk has joined the channel [19:30] Kunda has joined the channel [19:30] vikifor has joined the channel [19:32] astralab has joined the channel [19:33] garann has joined the channel [19:34] mattijs has joined the channel [19:36] avalanche123 has joined the channel [19:40] MatthewS has joined the channel [19:43] slifty has joined the channel [19:43] pixel13 has joined the channel [19:44] pixel13 has left the channel [19:44] seebees1 has joined the channel [19:44] serroba has joined the channel [19:45] cha0s has joined the channel [19:45] cha0s has joined the channel [19:46] insin has joined the channel [19:48] djcoin has joined the channel [19:48] r04r: Having problems compiling 0.6.3 from nodejs.org due to a max memory limit on my VPS. Any tips? [19:49] SirFunk: r04r: more swap space? [19:49] evxd: ro4r: Will your provider let you scale, even temporarily? I'm not sure if there are any settings you could pass to make to limit that. [19:49] alejandromgs has joined the channel [19:50] r04r: evxd: I don't think so, this is one of the lower quality cheaper ones [19:50] Bonuspunk: how many tests are supposed to fail at 0.6.3 [19:51] evxd: ro4r: http://aws.amazon.com/free/ :) [19:51] mmalecki: "tests supposed to fail" makes my angry >.< [19:51] mmalecki: Bonuspunk: not you. just this expression. tests shouldn't fail at all, really [19:52] Bonuspunk: yes they should if something is broken and known [19:52] r04r: evxd: I have an account there, but there's reasons that this vps is being used. [19:52] r04r: evxd: Though I think I just got it to work with some compiler flags [19:53] evxd: do share [19:53] mmalecki: Bonuspunk: one that I know of, I wrote it myself [19:53] mmalecki: test-stdin-pause-resume or so [19:53] mmalecki: setproctitle failed last time I checked [19:53] evxd: ro4r: Share with the class! [19:53] r04r: evxd: Share what? The compiler flags? They were '--param ggc-min-expand=0 --param ggc-min-heapsize=8192' [19:54] evxd: Awesome; Thanks. [19:54] jbrokc_ has joined the channel [19:55] r04r: Aah, nope. It ran longer but went out now [19:56] Aria has joined the channel [19:57] slifty has joined the channel [19:58] astralab has joined the channel [19:59] bbommarito: Have a quick question: Is there anyway, when using net.Socket, to identify the socket? Like, if I have 2 net.Socket, can I somehow tell them apart? [20:00] broofa has joined the channel [20:00] Aria: You can look at the port they use. [20:00] phiggins has joined the channel [20:00] Aria: Port + IP are a unique pair. [20:00] skm has joined the channel [20:01] cronopio has joined the channel [20:01] bbommarito: Aria: In the app they may not be a unique pair. Basically I am building an app to allow an arbitrary number of socket connections to potentially different or potentially the exact same address and port. [20:02] stride: npm -v 1.1.0-alpha-2 <- that's what's packaged with node stable currently, right? [20:03] mmalecki: yes [20:03] Aria: Wrong end you're looking at. [20:03] Aria: If you look at the client end of the socket, the IP + port it uses is unique. [20:04] stride: mmalecki: hmkay, thanks [20:04] bbommarito: Aria: Ah...yea [20:05] johnhamelink has joined the channel [20:05] jbrokc_ has joined the channel [20:05] johnhamelink has left the channel [20:05] bbommarito: So that will be simple. The nightmare will be creating variables to hold all the sockets. [20:05] turboneat has joined the channel [20:05] bbommarito: Well, nah that won't even be the nightmare... [20:05] turboneat: Guys. What's the deal with Node.js? [20:06] lifty: hi *; I am trying to understand how nodejs modules work and I cant find a way to define a constructor function for a module. Is anything like this even possible in nodejs modules? My main gripe is that I have to always do the initialization in two steps. something along the lines: 1. var m = require('module'); 2. m.init('value'). Is it possible to initialize a module from the [20:06] lifty: getgowith some valu es? [20:06] Aria: bbommarito: you may be able to not do so -- a closure might do the job. [20:06] Aria: turboneat: It's fast, it's light, it's low level and yet still highly usable. [20:06] cha0s has joined the channel [20:06] cha0s has joined the channel [20:06] r04r: lifty: You can do require('module').init('value') if that's what you wanted? [20:07] SirFunk: does node have a better supported orm/database than mongoose/mongodb ? [20:07] xeodox has joined the channel [20:07] lifty: yep, thats a possibility. so there no 'native' way of doing it [20:07] lifty: i guess im just tring to frame my understanding according to the old oop paradigm [20:08] r04r: lifty: Not exactly sure what you want. But, the require() syntax only ever creates one instance of the module you try to load, so if you call it multiple times it will return the same object. If you want code to run when it's first created, you can just put it in the module and that works. Or am I misunderstanding your intentions? [20:09] r04r: bbiab [20:10] MooGoo: hm [20:10] MooGoo: isn't module one of the variables exported to loaded module code [20:10] MooGoo: or some such.. [20:11] lifty: well, what I am trying to achieve is defining a class/function in a module, and use it to instantiate new objects with different values. I would want a new object with each require. [20:13] MooGoo: modules.exports = YourClass [20:13] Aria: SirFunk: There's lots of database access modules -- postgresql, mysql, mongo, couch, plus anything you can speak HTTP at. [20:13] Aria: SirFunk: ORMs are considered by many an anti-pattern, though, so there's fewer of those than you might expect. [20:13] MooGoo: var instance = new require('yourmodule') [20:13] MooGoo: @ lifty [20:14] lifty: MooGoo: great, that makes a lot of sense [20:14] gianp has joined the channel [20:14] MooGoo: module.exports that is [20:15] jbrokc_ has joined the channel [20:15] Sami_ZzZ_ has joined the channel [20:15] kiilo: "require.paths is removed." i don't like to see this anymore (node v0.6.3 / npm 1.0.106) any hint? [20:15] dilvie has joined the channel [20:16] MooGoo: most likely stop using require.paths [20:16] SirFunk: Aria: hmm [20:16] kiilo: howto? [20:16] MooGoo: dunno [20:16] SirFunk: Aria: well.. i need something fairly light... mongoose is ok, but i'm getting a little frustrated [20:16] kiilo: good coment [20:16] MooGoo: yar [20:16] Aria: SirFunk: The real question is "What are you doing?" [20:17] Wizek-other has joined the channel [20:18] DougCABJ has joined the channel [20:18] kiilo: try to get osc-web running but nope ... something very stupid for shure ~ but i have no idea [20:18] CarterL has joined the channel [20:19] SirFunk: Aria: well.. the problem i'm running into with mongoose.. is having objects 'relate' to other objects in the same collection.. doesn't seem to be a way to populate the dbref from inside a virtual property on the model (if that makes sense) [20:21] AvianFlu: kiilo: it means one of the libraries you're using is still using require.paths [20:22] AvianFlu: figure out which one and bug them to update, is your best course of action [20:23] Dulak: or just fix it and submit a patch to whatever repo they use as an issue/bug [20:23] turboneat has left the channel [20:23] kiilo: aha ~ mmmh i see ~ maybe i downgrade node to a version where it still works ;-) [20:23] Dulak: it's a crappy library if it was using it in the first place [20:24] gianp has left the channel [20:24] maxogden: node community: if you arent submitting pull requests ur doing it rong [20:24] davidascher has joined the channel [20:24] maxogden: im in ur repo contributing to ur doodz [20:27] stride: dulak: what? require.paths was pretty common last year.. [20:27] stride: imho [20:27] kiilo: mmmh anyone with a working osc-web solution / without requie.path bug? [20:28] Dulak: stride: common doesn't mean it was a good idea. [20:28] stride: yeah, true.. :) [20:28] Destos has joined the channel [20:29] wmage has joined the channel [20:30] swaj: I submitted a pull request to fix some stuff in postmark.js and it was accepted, but he hasn't released a new npm module, so I just pull from git for now :) [20:35] djcoin has joined the channel [20:36] Aria: kiilo: What's osc-web? (Why not fix the module you're using to not use require.paths? It's usually simple.) [20:37] rwasielewski has joined the channel [20:37] kiilo: just jump on the bandwagon ~ osc-web is an approach to enable web applications to comunicate with open sound control in realtime [20:37] Aria: Ah, interesting. [20:37] fly-away has joined the channel [20:37] Aria: Should be pretty easy to fix, I'd imagine. [20:38] kiilo: i made some gateways for social media towards OSC biderectional [20:38] subbyyy has joined the channel [20:39] kiilo: its also on github [20:42] maxogden: whoa what does osc have in common with social media? [20:44] kiilo: nothing ;-) just a protocol to connect software eg vvvv, puredata, maxmsp etc ... [20:45] kiilo: or arduino ... i use it extensively in media installations [20:48] davidascher has joined the channel [20:51] astralab has joined the channel [20:52] pita has joined the channel [20:52] maxogden: well ya i know what osc is, but im having a hard time figuring out why you would want to pipe twitter through it [20:53] pita: Does anyone have an example of how to do http basic authentication with express? [20:55] boltR has joined the channel [20:55] igl: pita: https://github.com/visionmedia/express/tree/master/examples/auth [20:55] igl: :x [20:56] kiilo: just to enable artist / designers to tinker with social media [20:56] kiilo: the gateway makes it a snap [20:58] frankey has joined the channel [21:03] jbrokc_ has joined the channel [21:05] kriskowal has joined the channel [21:07] augustl: I wonder what's most common of XP and Win7 for windows users that install node [21:08] jhurliman has joined the channel [21:08] Lingerance: I wonder what you're trying to ask there. [21:09] jesusabdullah: augustl: probably windows 7? xp's pretty old now [21:10] r04r has joined the channel [21:10] pita: igl: thx [21:10] augustl: Lingerance: just that :) [21:10] jesusabdullah: maxogden: procedurally generated twittermusic obviously [21:10] augustl: working on a project for developers to use while developing, implemented in node [21:10] lzskiss: jesusabdullah, but the more netbooks using xp [21:10] lzskiss: :) [21:10] jesusabdullah: Oh, do they? [21:11] augustl: wonder if I should test on both Xp and Win7 [21:11] lzskiss: yep [21:11] jesusabdullah: I'm a linux guy, so I have no idea [21:11] augustl: are new notebooks shipped with XP? [21:11] lzskiss: jesusabdullah, more people downgrade to xp after buyed with win7:D [21:11] augustl: I thought MS discontinued XP [21:11] augustl: can't buy it stand alone from Microsoft at least, afaik [21:12] lzskiss: augustl, here hungary u can buy xp sp3 oem [21:12] jesusabdullah: Well, I mean, I knew that vista was really unpopular and 7 was still too heavy for a lot of crapbooks when it came out, but even win7 is a few years old now right? [21:12] irclogger_com has joined the channel [21:12] jesusabdullah: I remember playing with the beta in like 2009 [21:12] jesusabdullah: maybe 08 [21:12] augustl: lzskiss: hmm, I see [21:12] Lingerance: are new notebooks shipped with XP? <-- no [21:13] augustl: I thought win7 scaled down quite good [21:13] lzskiss: augustl, if u have the 1Gig RAM the win7 isr running well [21:13] woeye: win7 is most common for new hardware these days [21:13] lzskiss: and the new netbooks shipped with min 1G [21:14] lzskiss: but i think when the win8 will be on the market the win7 is quick falling down [21:14] stalled has joined the channel [21:15] Gazler has joined the channel [21:15] irclogger_com has joined the channel [21:15] lzskiss: im testing node on win xp sp3 and working but im using linux for developing [21:15] IrishGringo has joined the channel [21:15] woeye: many big companies are still on xp though :) [21:16] reid has joined the channel [21:16] jesusabdullah: Oh yeah, the ennaprise [21:16] woeye: yeah [21:16] lzskiss: the enterprise policy is changing slowly [21:16] woeye: "will it run on IE6?" "wtf?!?!?" [21:16] lzskiss: exactly [21:17] akujin has joined the channel [21:18] chrisvwebdev has joined the channel [21:18] woeye: currently we're working on a redesign for a big company. really nice stuff. responsive design and all. but then there's those days when management comes along asking: "ok, and it will run on my IE6 and blackberry, right?" ... oh well :) [21:18] Draco_ has joined the channel [21:19] chrisvwebdev has left the channel [21:19] churp has joined the channel [21:19] irclogger_com has joined the channel [21:23] skm has joined the channel [21:24] pandeiro has joined the channel [21:24] Aria: SirFunk: I don't know mongoose well enough to know what that means. Virtual property? [21:24] JasonJS has joined the channel [21:24] andrewfff has joined the channel [21:24] airhorns has joined the channel [21:25] lzskiss: woeye, ie6 and blackberry is dead [21:26] lzskiss: the managment knows this information?:D [21:26] AAA_awright: Why has npm magically found it's way into the Node.js git tree? [21:26] augustl: AAA_awright: guess three times [21:26] AAA_awright: It utterly fails? Brain-dead developers? [21:27] Aria: Because it's been canonized. [21:27] Aria: (I, for one, am a fan) [21:28] AAA_awright: I swear some people have never actually used a decent package manager, and so get sucked into the wormhole of mediocrity [21:28] augustl: node is still in 0.x ;) [21:28] augustl: a lot of stuff is not yet decent [21:29] Aria: HEh. I've used every package manager out there. [21:29] Aria: npm makes me happy since it plays linker rather than package manager. [21:29] AAA_awright: the node binary itself is great, all the design mistakes seem to have been fixed [21:29] Aria: And DOESN'T take over the system. [21:29] jerrysv has joined the channel [21:29] jocafa has joined the channel [21:29] AAA_awright: The build system annoys me and npm wants to make me throw the server out the window if I was able to throw a VPS out a window [21:29] swaj: AAA_awright: next you're going to tell us that rubygems is a "real" package manager [21:30] AAA_awright: swaj: Absolutely not [21:30] AvianFlu: well at least we know you're sane, AAA_awright XD [21:30] Aria: Why so, AAA_awright? [21:31] woeye: Izkiss, I don't know. But it's really ridiculous. Asking for modern technology like responsive design, HTML5! and things like that and then demanding IE6 support. Problem is, imho, that we tried to support IE6/7 way too long with all kinds of workarounds and hacks. Now those people think: what's all the fuss about? On my IE6 everything just works fine! [21:32] phiggins has joined the channel [21:32] lzskiss: woeye, yep HTML5 and Javascirpt is enough [21:33] augustl: I'm pretty sure people that use IE6 see many broken web sites [21:33] gut4 has joined the channel [21:33] woeye: hopefully :) [21:33] slifty has joined the channel [21:33] woeye: it's good that many popular webapps have given up support on IE6 [21:34] secoif: AAA_awright what is a decent package manager? and what does it do that npm gets wrong? [21:34] Aria: Yeah. We finally killed it at work, and we're pretty conservative there. [21:34] AAA_awright: Aria: A lot of horrible design decisions that's going to stick around with it... Not that it was designed so much as horrible features seem to have been copied, and then written with a horrible API, at least initially [21:35] secoif: AAA_awright can you give concrete examples [21:35] AAA_awright: Getting there... I see my package managers and build systems as doing essentially the same thing, there's a whole different design paradigm they need [21:36] jocafa1 has joined the channel [21:36] swaj: it appears some middleware (and right now I'm pointing at connect-session) is sending a 200 OK response before my router code executes, so throwing a 404 from my router is bombing... [21:36] AAA_awright: The thing that made me really hate npm was just the API, or lack of it. It was a program very closely tied to static locations for file paths and there was just no way to ask it to "install this package in this location", absolutely impossible [21:36] TooTallNate has joined the channel [21:36] AAA_awright: Appearently that's changed, I can't see it [21:37] swaj: there isn't, really. You can install a package globally, or in ./node_modules/ (which node has standardized) [21:38] AAA_awright: My big issue with package managers npm included is that packages are barely even meaningful, when you install them they provide a package, and that's it. So you get these bizarre concepts like how npm packages can depend on an "engine" [21:38] corpix has joined the channel [21:38] AAA_awright: It certainly fixes the problem it intends to solve but it doesn't solve the underlying problem that package managers are stupid [21:38] AAA_awright: uh, [21:38] secoif: AAA_awright packages get broken when node api changes? [21:38] mike5w3c has joined the channel [21:39] secoif: thus the packages can specify which engine to run on [21:39] AAA_awright: So why not make node a package? [21:39] AAA_awright: It's the same thing, just a different namespace [21:39] AAA_awright: Except no, npm has entirely different code to handle engines versus packages [21:39] swaj: because node is necessary for npm to even run. why would the runtime be a package itself? [21:40] AAA_awright: It's like Drupal having three nearly identical APIs to handle users, nodes, and comments, even though they're the SAME THING [21:40] secoif: that's not a bad idea [21:40] secoif: AAA_awright drupal has the worst api in the world [21:40] swaj: s/drupal/php/ [21:40] AAA_awright: I use the Drupal API [21:40] AAA_awright: Barely [21:40] secoif: drupal is worse than php [21:41] secoif: php at least has some basic 'types' [21:41] AAA_awright: I was coding my CMS to work like Drupal, I figured it's bad but I can replace all the PHPisms with Nodejsisms and it'll be good [21:41] AAA_awright: BAD IDEA [21:42] Aria: Hehe. [21:42] churp: hey, is there such a thing as a global EventEmitter. I'm trying to listen to every event that is fired and not only the event that gets fired from one emitter. [21:42] Aria: I agree that a full-scope package manager enables a different set of tools. There's a reason I use RPM. [21:42] augustl: node isn't made for web apps, though [21:42] AvianFlu: churp: the process object is an event emitter [21:42] augustl: it's made for networking apps [21:42] Aria: But I actually really like the "link me an app" feeling of npm. I like that it doesn't really try very hard to be a system-wide package manager. [21:43] AvianFlu: but that won't help the second part of your question [21:43] secoif: churp but you can't capture events from different event emitters unless they are somehow linked [21:43] secoif: churp sounds like you need an event bus. [21:43] AvianFlu: churp: what secoif said [21:43] enmand has joined the channel [21:43] AAA_awright: Anyways, I mentioned I see my build systems and package managers as being the same thing, similar concept... They actually do the same thing at a higher level, they take resources and make them other types of resources. Build systems take source code and transform it into executable code, package managers take information resources and install them on your system. [21:43] AAA_awright: Note that both build systems and package managers let you install the software to your system, AND let you package it for shipping to someone else [21:43] AAA_awright: At least the good ones do [21:43] AAA_awright: Why are we replicating that code for two slightly different uses? [21:43] secoif: and you can use the process event emitter as an event bus. Though that smells bad to me. [21:44] AvianFlu: you could also use EventEmitter2, which has wildcards [21:44] AvianFlu: and namespaced events [21:44] swaj: I don't really buy the "node isn't made for web apps" line. That's one of the best use cases for it. [21:44] Aria: I've not yet met a build system I like. [21:44] Aria: swaj: The second half of the statement really shows what's up. Node is for networked apps. web apps are a subset of that. [21:44] AAA_awright: I use "good" in a relative sense [21:44] AAA_awright: Meaning sucks less than the others [21:44] secoif: a web app is a networking app? [21:45] mdel has joined the channel [21:45] Aria: Well, web without networking is kinda ... useless. [21:45] AAA_awright: Until Linus wrote Git the same was true for revision control systems [21:45] churp: AvianFlu, secoif, thanks. Event Bus sound good. Is there already on implemented? [21:46] secoif: AvianFlu you just need to make a single EventEmitter instance accessible to each of your modules [21:47] AvianFlu: secoif, yes, true [21:47] AvianFlu: personally, I'd enjoy having namespaces and wildcards for that, but you're right [21:47] AAA_awright: secoif: Here's the thing: Build systems and package managers need to understand resources, both information resources (the "tangable" ones like files and directories) and data resources (like functions, methods, variables, programs, package listings, etc) in terms of what functionality they provide, NOT a simple list of "Here's the commands you run to build this program, here's another list of commands you run to install it" [21:48] AAA_awright: So then you can say "Compile this program" and the build system looks at the resources and decides how to do that, which resources are used to build the program, and figure out what program will compile them [21:48] AAA_awright: You shouldn't ever have to know what gcc is [21:48] secoif: AAA_awright sounds like magic [21:48] AAA_awright: Except maybe to say "This program uses gcc-specific quirks" [21:49] Dulak: That's about 15 minutes before skynet launches the nukes.... [21:49] AAA_awright: Maybe it is [21:50] AAA_awright: But I have some amount of code already using that paradigm to generate webpages: http://magnode.org/ [21:50] secoif: churp just share EventEmitter/EventEmitter2 instance around. [21:50] AAA_awright: And here's my spec for a possible build system should look and feel: http://bzfx.net/guru/ [21:51] boltR has joined the channel [21:51] AAA_awright: And that's not just a build system, that's also a package manager, too. [21:51] cfq has joined the channel [21:51] Dulak: it's a noble goal, I wish you luck [21:52] secoif: AAA_awright i like the sound of guru [21:52] secoif: your magnode page needs a bit of design love [21:52] secoif: it's hard to read. [21:52] AAA_awright: I saw someone talk about their "build guru" at work, the only guy who knows how the darned compiler works [21:52] nmtmason has joined the channel [21:53] avalanche123 has joined the channel [21:53] jesusabdullah: XD [21:53] jesusabdullah: Maybe it [21:53] jesusabdullah: blegh [21:53] jesusabdullah: maybe it's "that" bad [21:54] jesusabdullah: AAA_awright: Were you the one thinking about building an rdf-based build system? [21:54] AAA_awright: Yeah [21:54] jesusabdullah: oh, yes, linked up there [21:54] AAA_awright: If you know people who know compilers inside and out, they're welcome to help, this requires defining what types of content a compiler can take in, and what it outputs, and the switches and arguments and such [21:54] jesusabdullah: I was looking at jake the other day, and I bet you could reach feature parity with *that* pretty quick [21:54] AAA_awright: But it's essentially the same as the website engine I have, it takes in a database entry and outputs a webpage [21:55] jesusabdullah: Where's that? [21:55] AAA_awright: And there's lots of types and subtypes and such that it processes and various different ways the inputs interact with each other but that's the overview [21:55] scttnlsn has joined the channel [21:55] AAA_awright: jesusabdullah: http://magnode.org/ [21:55] jesusabdullah: Oh, yeah, for every tool you support you would need to have a model for inputs and outputs and stuff [21:55] jesusabdullah: I bet starting out just supporting, like, a few js build tools would be handy [21:56] npa has joined the channel [21:56] AAA_awright: It's pretty basic, you just need to define "Okay here's how a gcc/icc/whatever works" and bam, you can now generate executables from source code [21:56] jesusabdullah: and later you can make it grok gcc and friends [21:56] boltR has joined the channel [21:56] AAA_awright: No need to invoke gcc yourself, it figures out what to use based on what it sees and what you ask the output to be [21:56] tilgovi has joined the channel [21:56] jesusabdullah: Yeah, but start with uglifyjs and things like browserify and codesurgeon [21:56] jesusabdullah: cause, I mean [21:56] mattijs has left the channel [21:56] jesusabdullah: we know javascript right? [21:57] jesusabdullah: It'd be like instantly useful without having to master gcc is what I'm sayin' [21:57] AAA_awright: As I said, the website does the same thing, I provide a URI and a database, and I ask for a complete webpage, and it uses a series of functions to generate it, I don't even specify what the functions are, it figures it out automatically by looking at the input types and requested output [21:57] Dulak: AAA_awright: you need to cut the copy in half for magnode, it's too wordy for most people. Sounds good though, just needs trimming. [21:57] AAA_awright: Dulak: Yeah... [21:58] jesusabdullah: haha, magnode.com is an aluminum extrusion manufacturing shop [21:58] jesusabdullah: and their site requires flash [21:58] secoif: AAA_awright so basically, rather than storing my package.json along with the module, it's stored in a db in your system? [21:58] mmalecki: AAA_awright: do you have some code? [21:58] AAA_awright: Yeah, that website is self-hosting, the code is... [21:59] jesusabdullah: http://git.bzfx.net/~aaa/magnode.git/ [21:59] AAA_awright: mmalecki: http://git.bzfx.net/~aaa/magnode.git/ It'll be thrown on Github when there's a release of some sort [21:59] jesusabdullah: I'm gonna mirror this on github >:o [22:00] Dulak: AAA_awright: on the /doc page I suggest moving the install info to the top of the page and telling the story under that [22:00] AAA_awright: I'll split apart the sections, they would be entirely different books if they were published as books [22:00] AAA_awright: But yeah, that's important [22:01] Dulak: AAA_awright: yeah just trying to make it easier for you to get users, people don't like to read, generally [22:01] secoif: AAA_awright I get real worried when I see any file with DB calls and inline HTML http://git.bzfx.net/~aaa/magnode.git/tree/lib/transform.DocumentHTML_BodyAuto_typeMongoDB_Form.js?id=59a7f4a6f5b823641cc1ca01682cb5940a129e7d [22:01] dubenstein has joined the channel [22:01] orospakr has joined the channel [22:01] jesusabdullah: AAA_awright: can I see the source for the magnode site somewhere? Like, not magnode itself, but what you feed to it? [22:02] AAA_awright: It's not really public... well let's see [22:03] AAA_awright: jesusabdullah: There's a magnode.org.js file that links all of those files together into something you can use, there's a format.n3 file that contains the info on each data type and how to format them, and some jade templates linked to in the format.n3 file [22:03] AAA_awright: It's not complex but certainly not trivial [22:03] jbrokc_ has joined the channel [22:04] pita has left the channel [22:05] jesusabdullah: Sure [22:05] jesusabdullah: it's just hard for me to evaluate something if I can't see an example [22:06] mattijs has joined the channel [22:06] dubenstein has joined the channel [22:06] orospakr has joined the channel [22:06] Rob has joined the channel [22:10] mraleph1 has joined the channel [22:11] Me1000 has joined the channel [22:13] liar has joined the channel [22:14] liar has joined the channel [22:14] jbrokc_ has joined the channel [22:15] chrisvwebdev has joined the channel [22:15] chrisvwebdev has left the channel [22:15] AAA_awright: jesusabdullah: I can't publish the live source without exposing a few HMAC secrets but I'll see what I can do [22:15] cfq_ has joined the channel [22:17] slifty has joined the channel [22:18] mmalecki: what's the good practice for writing modules both for browser and node? [22:19] tbranyen: don't [22:19] mmalecki: tbranyen: care to explain? [22:20] augustl: mmalecki: not that much really, I typically just do an if test [22:20] AAA_awright: jesusabdullah: http://magnode.org/src/magnode.org.js There's the actual program [22:20] mmalecki: augustl: if (window) ? [22:20] AAA_awright: jesusabdullah: http://magnode.org/src/data/format.n3 There's the data [22:20] tbranyen: mmalecki: if you don't care about browser support at all, writing code that works between the two is pretty easy [22:21] AAA_awright: http://magnode.org/src/template/ There's the templates it refers to [22:21] augustl: mmalecki: https://gitorious.org/buster/buster-core/blobs/1f8ac20/lib/buster-core.js#line76 [22:21] mmalecki: augustl: oh, thanks :) [22:21] joshkehn has joined the channel [22:21] mmalecki: tbranyen: hm. that's a simple module for text processing, what could go wrong? [22:22] tbranyen: mmalecki: famous last words [22:22] mmalecki: I know :) [22:22] AAA_awright: Watch out for commented old sections I should probably take those out... [22:22] tbranyen: mmalecki: you can take nearly everything for granted in Node, since v8 is pretty darn stable in terms of what it supports [22:22] augustl: mmalecki: another example https://github.com/cjohansen/Sinon.JS/blob/master/lib/sinon.js#L239 [22:22] tbranyen: complete opposite in the browser [22:23] tbranyen: also in the browser you can take for granted things that exist there, such as window.open, which exists in all browsers, but not in Node [22:23] augustl: mmalecki: and in a couple of weeks time you'll have busterjs.org for easy mode testing of the same code in both browsers and node ;) [22:23] rwasielewski has joined the channel [22:24] grekko has joined the channel [22:24] mmalecki: augustl: cool! :) [22:24] mmalecki: tbranyen: ok, I think I understand [22:25] tbranyen: mmalecki: some libs work fantastic in both environments, but i can see it turning into a rabbit hole, unless you take precautions and keep it generic [22:26] AAA_awright: Dulak: Moved the sections around, I like that better [22:27] Dulak: AAA_awright: yeah, much easier to 'jump right in' with that layout [22:27] maushu: Why does the 'ondata' method of a socket return a SlowBuffer and the 'data' event return a Buffer? [22:27] augustl: maushu: :O [22:28] Dulak: AAA_awright: now just cut your copy on the front page in half and up your contrast a bit on the headers and you'll be cooking with gas [22:28] AAA_awright: The afact it's named SlowBuffer suggests it's a peformance optimization [22:28] augustl: tbranyen: I think you're being pessimistic :P [22:28] augustl: and/or realistic [22:28] augustl: most cross node/browser modules don't do DOM stuff etc. [22:28] jarek has joined the channel [22:28] jarek has joined the channel [22:29] tbranyen: augustl: setTimeout/setInterval are technically DOM [22:29] tbranyen: but are implemented in Node luckily [22:29] augustl: not sure what your point is [22:29] tbranyen: its easy to use things that are DOM without even knowing it [22:29] maushu: AAA_awright, SlowBuffer is a C++ buffer, Buffer is a javascript implemented one that wraps around the SlowBuffer (and doesn't change it when its "sliced"). [22:30] augustl: what's part of which specification is irrelevant [22:30] augustl: what matters are the documented APIs [22:30] AAA_awright: Dulak: Yeah thanks! I'll give the front page some love once I have something released, probably a blog, so that'll all be re-worked to suit that [22:31] benlyng has joined the channel [22:31] tbranyen: augustl: well unfortunately based on which specification almost entirely determines how well its documented :) [22:31] Dulak: AAA_awright: g'luck with it, very interesting idea [22:32] tbranyen: specifically with how the browser can treat a DOM method from a user defined method [22:33] augustl: it's funny how the documentation of APIs in browsers is a hive mind collective intelligence type thing [22:33] tbranyen: Object.keys is the one method that kills me isn't in every browser. i think Opera just got it, pretty sure Safari still doesn't [22:35] nicholasf has joined the channel [22:35] joshkehn has joined the channel [22:35] joshkehn has left the channel [22:36] MooGoo: safari doesnt? [22:37] saadiq has joined the channel [22:37] maxogden: tbranyen: use underscore.js always and you wont have that problem evar [22:38] tbranyen: maxogden: right but that introduces a dependency [22:38] tbranyen: kinda sucks for things like a template engine [22:38] maxogden: you could just use the _.keys function [22:38] MooGoo: Object.keys is probably the easiest of all ECMA5 functions to implement [22:38] maxogden: also why are you writing your own template engine jeeze [22:39] maxogden: my grandma has her own templating engine. its called quilt.js and it lets you macrame together your DOM elements [22:39] tbranyen: well i already did, i just need to refactor it, and right now i got some bs compatibility polyfills [22:39] MooGoo: because every single template engine ever devised sucks [22:39] jesusabdullah: I'd totally use that maxogden [22:39] jesusabdullah: gotta make some websweaters [22:40] maxogden: ill write it after i implement breakfastscript [22:40] tbranyen: maxogden: i wrote a template engine before it was cool -__- [22:40] woeye has joined the channel [22:40] maxogden: tbranyen: 1940? [22:40] tbranyen: i'd like to think the 40's played a crucial influence [22:41] chjj: tbranyen: i wrote a template engine before they were invented [22:41] MooGoo: template engines are a bit far abstracted for 40s tech [22:41] augustl: I wrote a template before there were engines [22:41] chjj: MooGoo: you had to be there [22:41] MooGoo: the template engine for the ENIAC was it's circuit diagrams [22:42] tbranyen: http://combyne.github.com/ [22:42] chjj: augustl: i invented the engine before the big bang occurred [22:42] tbranyen: look how pretty dat is [22:42] maxogden: thats what im sayin, 1940s were the last time before they were cool [22:42] tbranyen: too bad it doesn't work especially well right now [22:42] MooGoo: punched tape/cards/blocks of wood were the original template engine [22:42] Rob__ has joined the channel [22:42] maxogden: wtf is {%--? the anchor operator? [22:43] piscisaureus__ has joined the channel [22:43] maxogden: {%-- land ho! [22:43] augustl: {½»» stuff here [22:43] tbranyen: anchor operator? [22:43] augustl: for one half iterations over double pointers [22:43] tbranyen: {% is for commands, follows django templating [22:43] tbranyen: {%-- is a comment [22:43] maxogden: its all about the muffin operator [) https://gist.github.com/1007605 [22:43] tbranyen: actually expressions [22:43] Draco_ has joined the channel [22:44] chjj: you are now officially cooler than a rails dev if you use node i think [22:44] chjj: been waiting for that ! [22:45] augustl: yay [22:45] maxogden: as long as the brogrammers stay away im cool with that [22:47] tbranyen: i'm raging a popped collar and a red bull [22:48] maxogden: im sending you my $10,000/day invoice from my standing desk + treadmill while doing pushups [22:48] e6nian has joined the channel [22:48] augustl: watch this: http://www.infoq.com/presentations/Simple-Made-Easy [22:49] augustl: paraphprasing: "nobody cares how good of a time you had while writing the software" [22:49] maxogden: hickdog is the man [22:49] augustl: absolutely [22:49] rwasielewski has joined the channel [22:50] maxogden: tbranyen: you should frealsies push that pull req [22:52] seebees has joined the channel [22:53] hornairs has joined the channel [22:53] tbranyen: maxogden: I will, tonight is backbone.layoutmanager tho, tomorrow I'm working on some phonegap stuff [22:53] tbranyen: i gotta fork that project like its hot [22:54] maxogden: tbranyen: werd [22:55] autarch has left the channel [22:55] Wizek-other2 has joined the channel [22:58] MatthewS has joined the channel [22:59] purr has joined the channel [22:59] Wizek-other2 has joined the channel [23:02] npa has joined the channel [23:03] jbrokc_ has joined the channel [23:04] Wizek-other has joined the channel [23:04] Draco_ has joined the channel [23:05] Me1000 has joined the channel [23:06] nicholasf has joined the channel [23:09] MatthewS has joined the channel [23:10] bnoordhuis has joined the channel [23:10] Wizek-other2 has joined the channel [23:11] bbommarito has left the channel [23:12] Wizek-other2 has joined the channel [23:15] simenbrekken has joined the channel [23:16] augustl: is there a generic way of testing for the presence of a command in PATH that works on both *nix and win32? [23:17] adrianmg has joined the channel [23:17] Draco_ has joined the channel [23:17] adrianmg has left the channel [23:18] Brozilla: if [command] else [not available] ? [23:18] nils_r has joined the channel [23:18] augustl: Brozilla: the [command] part is what I'm after ;) [23:19] Brozilla: if it returns something, it's there, if not, it's not there [23:19] augustl: I realize as much [23:19] augustl: my question is how to perform the actual test for wether or not a command is available in path [23:19] Daegalus has joined the channel [23:20] Brozilla: that is the test. at least that's how i do things in ruby [23:20] augustl: Brozilla: you're describing control flow in the language itself, right? [23:20] genexp has joined the channel [23:21] Brozilla: well no, if it doesn't return what you expect it to return, you can conclude that the command is not available, right? [23:21] plutoniiix has joined the channel [23:22] augustl: Brozilla: are you trolling, on drugs, or both? [23:22] jocafa has joined the channel [23:22] SirFunk: Anyone know any good docs for explaining how to organize your code in a object/module for using mongodb-native? [23:22] Kunda has left the channel [23:22] zivester has joined the channel [23:22] sstephenson: augustl: you can use something like this: https://github.com/sstephenson/execjs/blob/master/lib/execjs/external_runtime.rb#L146-157 [23:22] Brozilla: i'm being serious :/ [23:23] augustl: Brozilla: ok, how does "if [command] else [not available]" describe how to test the presence of a command in PATH? [23:23] slifty has joined the channel [23:23] sstephenson: windows doesn't have a `which` equivalent built-in, but you can implement it as a batch file: https://github.com/sstephenson/execjs/blob/master/lib/execjs/support/which.bat [23:23] robi42 has joined the channel [23:23] augustl: sstephenson: interesting, thanks [23:23] Brozilla: i think i've misunderstood you then :/ [23:23] augustl: seems I could use a package.json that specifies different "bin" entries on windows and on *nix [23:24] erichynds has joined the channel [23:26] dmitrig01 has joined the channel [23:26] davidascher has joined the channel [23:28] augustl: what's the value of os.platform() on windows? [23:28] sontek has joined the channel [23:28] augustl: win32? windows? [23:28] diogogmt has joined the channel [23:29] joshkehn has joined the channel [23:29] joshkehn has left the channel [23:31] AAA_awright: Just checking: There's no difference between double quotes and single quotes, right? [23:31] augustl: AAA_awright: other than escaping rules, no [23:31] AAA_awright: Of course [23:32] AAA_awright: er, escaping rules, anything change other than the quote characters themselves? [23:32] AAA_awright: I don't think so... [23:32] AAA_awright: I'm lazy and don't want to have to bother looking through the spec to find out... [23:33] satyr has joined the channel [23:33] pandeiro has joined the channel [23:33] sneak has joined the channel [23:34] augustl: not sure [23:34] augustl: but https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String doesn't say so probably no difference :) [23:34] jbrokc_ has joined the channel [23:36] brianseeders has joined the channel [23:37] koo5 has joined the channel [23:37] boltR has joined the channel [23:38] cjm has joined the channel [23:39] joshkehn has joined the channel [23:40] OBonio has joined the channel [23:43] OBonio: hello [23:44] jbrokc_ has joined the channel [23:44] OBonio: hallo [23:44] OBonio: bonjour [23:45] lzskiss: yo [23:45] OBonio: hi [23:48] OBonio: quick question, single threaded goodness appears to be good, and I can see that, but spawning processes with callbacks appears to me not to be single threaded [23:48] jaequery has joined the channel [23:48] tbranyen: OBonio: the event loop is single threaded [23:50] OBonio: so a process is not a thread? [23:51] robertj: processes are heavier than threads [23:51] robertj: each process will have at least one thread of its own [23:51] koo0 has joined the channel [23:53] simenbrekken has joined the channel [23:53] Daegalus has joined the channel [23:53] OBonio: from what I've seen, node.js needs to spawn processes to do 'things' [23:54] robertj: the event loop calls stuff outside node and then checks back on them to see when they are done [23:54] augustl: OBonio: "things" is pretty vague [23:54] robertj: it will manage a thread pull for all it's async stuff [23:55] jbrokc_ has joined the channel [23:56] OBonio: yes, 'things' is vague, the example I've seen uses 'ls' to display a list of files... ls is an executable necessitating a process? [23:56] robertj: OBonio, so your gonna call ls and have a callback when ls is done [23:56] augustl: OBonio: yes [23:56] robertj: it's gonna create a thread and run ls and keep going with your code [23:57] robertj: and then its gonna check back in on the status of that thread very often and run the hook when it fines ls is complete [23:57] MatthewS has joined the channel [23:57] augustl: OBonio: you don't need to spawn processes to list files, though [23:57] augustl: OBonio: you can stat "natively" with the fs module [23:58] augustl: as in, via system calls, not external programs [23:58] robertj: but basically its gonna check all the system calls after...every tick of the main loop? [23:58] robertj: err event loop? [23:58] chrislorenz has joined the channel [23:59] kkszysiu has joined the channel [23:59] augustl: not sure how node does system calls internally [23:59] OBonio: so sytem calls within the event loop? [23:59] augustl: I'd imagine it threads them and chunks them and what not, to avid blocking [23:59] augustl: OBonio: yes