00:00:00  * ircretaryquit (Remote host closed the connection)
00:00:03  * mirkokjoined
00:00:08  * ircretaryjoined
00:00:27  * arnedebreequit (Client Quit)
00:00:29  * pspeter3quit (Quit: Textual IRC Client: www.textualapp.com)
00:01:23  * JJMalinaquit (Ping timeout: 245 seconds)
00:01:24  * jcrugzzquit (Ping timeout: 248 seconds)
00:01:50  <CoverSlide>it could, or full compliance could make it run slower, you never know, __defineGetter__ might be faster than Object.defineProperty
00:02:11  * r0thaquit (Ping timeout: 248 seconds)
00:02:19  <Iszak>You're right.
00:02:26  <CoverSlide>also, being standard doesn't make it better
00:02:31  * snearchquit (Quit: Verlassend)
00:02:58  <CoverSlide>just a close enough adherence to the standard is enough. edge cases that noone cares about, well, who cares
00:03:16  <rfgarcia>anyone have experience working with https://github.com/dominictarr/event-stream or similar stream-composition/pipelining libs? event-stream looks nice but would be nice to know any alternatives
00:03:22  * JSONBjoined
00:03:24  <CoverSlide>chrome runs all the code out there that anyone cares about, i am fine with that
00:03:24  <Raynos>isaacs: so I can't `npm i npm@latest -g` because that's what I did
00:03:29  * aboudreaultjoined
00:03:38  * chomwittquit (Quit: Lost terminal)
00:04:00  <TooTallNate>Raynos: when you get into inception like that, i usually resort to the npmjs.org/install.sh script
00:04:06  * kelonyequit (Ping timeout: 272 seconds)
00:04:16  <Iszak>CoverSlide I am fine with that in chrome as well, but I think node.js can do better.
00:04:38  <CoverSlide>well, the node devs are busy working on more important things
00:04:48  * kppullinquit (Ping timeout: 252 seconds)
00:04:52  <TooTallNate>Iszak: people do use __proto__ and friends in node too, so disabling would break existing code as well
00:04:58  * AaronMTquit (Quit: Textual IRC Client: www.textualapp.com)
00:05:05  <TooTallNate>Iszak: we're not in the business of breaking people's apps
00:05:08  * r0tha_quit (Ping timeout: 248 seconds)
00:05:15  <Iszak>TooTallNate well you are when it comes to new version numbers :D
00:05:26  * Drodjoined
00:05:35  * nmtmasonquit (Ping timeout: 252 seconds)
00:05:42  <Iszak>TooTallNate and you're right, this is what spurred me into this discussion, why are people using __proto__ do they simply not know of the standard way? do they not care? do they want to type a few less characters ?
00:05:42  * Sicpjoined
00:06:19  <TooTallNate>Iszak: personally, i find it useful to replace the proto of existing objects
00:06:27  <TooTallNate>Iszak: and there's no Object.setPrototypeOf()
00:06:30  <TooTallNate>unfortunately
00:06:31  <Iszak>I know.
00:06:32  * vgrauperajoined
00:06:35  * virgilejolyquit (Quit: This computer has gone to sleep)
00:06:44  * Drodpart
00:06:46  * kelonyejoined
00:06:49  <Iszak>Do you think there should be?
00:07:05  <CoverSlide>well the standard's not gonna be reweitten anytime soon
00:07:19  <TooTallNate>Iszak: not particularly… i think the only time it's polite to set the prototype is immediately when an object is created
00:07:31  <TooTallNate>Iszak: see https://github.com/tootallnate/create
00:07:52  <TooTallNate>Iszak: Object.create() is good enough… i just want it for the rest of the built-ins
00:09:34  <Iszak>Isn't Array prototyping Object? How come it doesn't have that method?
00:09:58  <CoverSlide>Iszak: Array is prototyping Object.prototype, not Object
00:10:03  * wadeychanged nick to wadey|away
00:10:05  <Iszak>Ah
00:10:28  * joshonthewebquit (Quit: Computer has gone to sleep.)
00:10:38  * andewjoined
00:10:43  <CoverSlide>>> Object.getPrototypeOf(Array) == Function
00:10:44  * Scratjoined
00:10:44  <purr>CoverSlide: (boolean) false
00:10:49  <CoverSlide>oops
00:10:50  <CoverSlide>whatever
00:10:57  <Scrat>Can someone with validator installed try this? require('validator').check('ghfdghdfghdfghdfghfdghfdghhjfghj').len(5, 4096).isUrl();
00:11:02  <Iszak>>> Object.getPrototypeOf(Array) == Function.prototype
00:11:02  <Scrat>uses 100% cpu for me
00:11:02  <purr>Iszak: (boolean) true
00:11:13  * mirkokquit (Quit: mirkok)
00:11:59  <Raynos>TooTallNate: that's how I got unstuck. But `npm i npm@latest` should just work :p
00:12:16  <Iszak>TooTallNate Not that I disagree with the idea of having the Array.create and Function.create methods, what use case can you give me for these as I can't think of any.
00:12:23  * Kepquit (Ping timeout: 255 seconds)
00:12:54  <TooTallNate>Raynos: sure but sometimes npm breaks itself :)
00:13:25  <TooTallNate>Raynos: and/or you upgrade node and that npm version is now incompatible
00:13:27  * hansygjoined
00:13:31  * aheckmannquit (Quit: aheckmann)
00:13:50  * fusilliajoined
00:13:59  * rumpjoined
00:14:00  * hichaelmartquit (Remote host closed the connection)
00:14:09  <TooTallNate>Iszak: it's a small group of use-cases, but for example, NodObjC's objective-c objects are Function instances… and I needed a way to set the prototype of those
00:14:16  * jmanotojoined
00:14:22  <Scrat>someone please confirm this, I'm going crazy over here
00:14:27  * jocafaquit (Quit: Leaving.)
00:14:30  * wadey|awaychanged nick to wadey
00:14:30  * graeme_fquit (Quit: Computer has gone to sleep.)
00:14:37  * ashnurjoined
00:14:47  <CoverSlide>Scrat: let's just assume that noone here uses validator
00:14:49  <Iszak>TooTallNate that means nothing to me (don't know what NodObjC's objective-c objects is) but it kind of makes sense.
00:14:51  * hichaelmartjoined
00:14:55  <CoverSlide>Scrat: what do you do? just what do you do?
00:15:10  <Scrat>872 followers on github, somehow I doubt it
00:15:11  * pifantasticquit (Read error: Operation timed out)
00:15:11  * etceterajoined
00:15:18  <Scrat>run this
00:15:20  <Scrat>require('validator').check('ghfdghdfghdfghdfghfdghfdghhjfghj').len(5, 4096).isUrl();
00:15:26  <TooTallNate>http://lmgtfy.com/?q=NodObjC
00:15:29  <Scrat>hangs node with 100% cpu used
00:16:40  * codelotusjoined
00:16:48  * JSONBquit (Read error: Connection reset by peer)
00:17:05  * r0thajoined
00:17:18  * c4milo_quit (Remote host closed the connection)
00:17:19  <CoverSlide>sounds like a bug to me
00:17:28  <CoverSlide>you know what a bug is right and what to do with that?
00:17:37  * hansygquit (Ping timeout: 248 seconds)
00:17:45  <Scrat>I want someone else to confirm it to make sure I'm not doing anything stupid
00:17:51  <Scrat>dont be a condescending jerk
00:18:14  * fusilliaquit (Remote host closed the connection)
00:18:26  * geNAZtquit
00:18:38  <min|dvir|us>Yeah, stupid jerk.
00:18:55  * hansygjoined
00:19:13  * [Slick]quit
00:19:35  * Kepjoined
00:19:44  * techthumbjoined
00:19:55  * charurujoined
00:20:12  * tombquit
00:21:01  <Scrat>I can't really believe that an url check with the most popular validating library would hang on a random string
00:21:16  * Ziggy`quit (Ping timeout: 245 seconds)
00:21:29  * hansygquit (Read error: Connection reset by peer)
00:22:36  <CoverSlide>https://github.com/chriso/node-validator/blob/master/lib/validators.js#L31 << wow that is a terrible regex
00:22:52  * euoiajoined
00:22:59  * lohkeyquit (Ping timeout: 240 seconds)
00:24:17  * r0tha_joined
00:24:21  <Scrat>that's like a what, 300 char regex?
00:24:23  * jmanotoquit (Remote host closed the connection)
00:24:23  <Scrat>great software design
00:24:37  * jmar777joined
00:25:39  * r0thaquit (Ping timeout: 248 seconds)
00:25:42  * azylmanquit (Ping timeout: 252 seconds)
00:26:17  * codelotuspart ("Leaving")
00:26:32  * therealkoopaquit (Remote host closed the connection)
00:26:36  * tgriesserquit (Remote host closed the connection)
00:26:47  * etceteraquit
00:26:47  * logik-bombquit (Quit: Computer has gone to sleep.)
00:27:05  * therealkoopajoined
00:27:35  <Scrat>what to use for url validation?
00:27:41  * sandfoxjoined
00:28:01  * mrvisserjoined
00:28:07  <Sicp>regex?
00:28:26  * techthumb1joined
00:28:29  <Nexxy>Scrat, look for some slashes, a colon and maybe a dot or two
00:28:42  * motarojoined
00:28:48  <Scrat>oh you
00:28:52  * r0thajoined
00:28:52  * AdrienBraultquit (Ping timeout: 246 seconds)
00:29:04  <Sly>NEXXY
00:29:05  <Sly>ZOMG
00:29:09  <Nexxy>SLY
00:29:15  <Nexxy>OMFG
00:29:20  <Nexxy>Scrat, srsly
00:29:24  <CoverSlide>https://gist.github.com/4569859 << the regex by itself lags
00:29:48  <Sly>CoverSlide: that's nothing. One sec.
00:29:55  <Sly>https://gist.github.com/5bc85d800e9112c004f4
00:29:58  <Sly>That's a regex I wrote the other night.
00:30:01  <Sly>Gist hates it.
00:30:06  <Sly>271 bytes, and it suppresses it
00:30:07  <Sly>:3
00:30:25  <Nexxy>there's no need to regex urls
00:30:32  <xk_id>Guys, I need to code a crawler for scraping an Online Social Network consisting of ~1mil users. I plan to code the crawler in Node.js, and run it distributely over EC2. May I get some advice on this diagram, please? http://i.imgur.com/b75F9Hz.png
00:30:38  * mrvisserquit (Read error: Operation timed out)
00:30:39  <Sly>Nexxy: that's not for URLs.
00:30:51  <Nexxy>Sly, I was mostly talking to Scrat ;P
00:30:55  <Sly>Ah.
00:30:57  <Sly>:3
00:31:13  * stagasjoined
00:31:33  <Sly>And actually.. that regex I posted is the outdated one. :3
00:31:41  * kholladayquit (Remote host closed the connection)
00:31:45  <Sly>I kinda split it up and made it reparse, cause it was getting too long. x_x;
00:31:45  * defunctzombiechanged nick to defunctzombie_zz
00:32:01  * techthumbquit (Ping timeout: 248 seconds)
00:32:05  * r0tha_quit (Ping timeout: 260 seconds)
00:32:22  * kholladayjoined
00:32:38  * AdrienBraultjoined
00:32:41  * mykulquit (Quit: gg)
00:32:42  * mrwilsonjoined
00:32:49  * tombjoined
00:33:35  * nphasequit (Remote host closed the connection)
00:33:45  * r0tha_joined
00:34:07  * dguttmanquit (Quit: dguttman)
00:34:14  * FunnyLookinHatquit (Quit: Leaving)
00:34:25  * ruffjoined
00:34:32  <Sly>Er, maybe not..
00:34:37  <Sly>Didn't think I updated it, but apparently I did.
00:34:37  <Nexxy>NOPE
00:35:04  * arronhuntquit (Remote host closed the connection)
00:35:14  <Sly>YES HUH
00:35:16  <Sly>DUN TRICK ME
00:35:26  * soypiratequit (Ping timeout: 244 seconds)
00:35:33  <Scrat>Nexxy: I dont use regex at all. and I also dont want to reinvent the wheel
00:35:34  <Nexxy>too. late.
00:35:42  <Scrat>it's more involved than checking for a few dots and slashes
00:35:51  <Nexxy>how so?
00:36:04  * r0thaquit (Ping timeout: 248 seconds)
00:36:34  * euoiaquit (Ping timeout: 246 seconds)
00:36:36  * chreladquit (Ping timeout: 276 seconds)
00:36:37  * romainneutronquit (Quit: romainneutron)
00:36:48  * kholladayquit (Ping timeout: 245 seconds)
00:37:09  <Scrat>there _should_ be bug-free code to do that out there. I mean it's a common thing
00:38:46  * EyePulpquit (Quit: EyePulp)
00:39:02  * mrvisserjoined
00:39:24  * yorickquit (Remote host closed the connection)
00:39:24  <CoverSlide>wow so the author copy/pasted something he found on a gist and didn't bother to test it
00:39:34  <CoverSlide>wtg!
00:40:12  <Sly>CoverSlide: ?
00:40:14  <Sly>O_O
00:40:20  * Codynyxjoined
00:41:12  <CoverSlide>i'm talking about chriso
00:41:13  * sirkitree|afkquit (Quit: Leaving...)
00:41:22  <Sly>Ah.
00:41:23  * mrwilsonquit (Ping timeout: 245 seconds)
00:41:46  * eydaimonpart ("WeeChat 0.3.9")
00:41:53  * andewquit (Ping timeout: 252 seconds)
00:42:04  * jocafa1changed nick to jocafa
00:42:34  * superjoequit (Quit: Leaving)
00:42:48  <Nexxy>it's like today is "be a grumpy asshole" day or something
00:43:13  * jakehowquit (Ping timeout: 248 seconds)
00:43:31  * mattgiffordquit (Remote host closed the connection)
00:43:37  * euoiajoined
00:43:56  * darjeelingquit (Remote host closed the connection)
00:44:11  <Sly>I IZ BE CONFUZZLED
00:44:17  * Slyscurries away.
00:44:28  * tombquit (Ping timeout: 256 seconds)
00:44:55  <Nexxy>no scurrying!
00:45:15  * techthumb1quit (Ping timeout: 244 seconds)
00:45:35  <Sly>Why not?!
00:45:41  * ins0mniaquit (Ping timeout: 255 seconds)
00:45:42  * techthumbjoined
00:45:48  <Sly>YOU DON'T LET ME DO ANYTHING! GOD! YOU'RE RUINING MY LIFE!
00:45:52  * Slyslams bedroom door.
00:45:58  * cpgchanged nick to cpg|away
00:45:58  <Sly>:3
00:46:15  <xk_id>Sly: you can give advice on my diagram, if you want
00:46:27  * AdrienBraultquit (Quit: Computer has gone to sleep.)
00:46:28  <CoverSlide>woot! I just found my microsd-to-usb converter, it's been stuck in my work machine these past 4 months
00:46:30  * tombjoined
00:46:58  * rcrowleyquit (Quit: Computer has gone to sleep.)
00:47:18  <Scrat>CoverSlide: cant even arse myself to report it on github. you can do it if you want and thanks for the help
00:47:24  <Scrat>npm uninstall validator
00:47:30  * vgrauperaquit (Quit: vgraupera)
00:47:35  * paulbjensenjoined
00:47:55  * dafflquit (Remote host closed the connection)
00:48:05  <Scrat>npm should have a shoot-author-in-the-head option
00:48:23  * vgrauperajoined
00:48:29  <Sly>CoverSlide: I'm not so much offended by the regex that you highlighted in that code..
00:48:32  * stevegillquit (Quit: stevegill)
00:48:34  <Sly>As I am.. /^(\d?\d?\d)\.(\d?\d?\d)\.(\d?\d?\d)\.(\d?\d?\d)$/ right below it..
00:48:40  * eldiosquit (Quit: bye =))
00:48:42  <Sly>[\d]{1,3}
00:48:45  * stephenplusplusjoined
00:48:45  <Sly>HOW HARD IS THAT?!
00:48:46  <CoverSlide>oh wow
00:49:24  <Scrat>brb DoSing all node.js websites that accept urls
00:49:38  <Sly>/^(\d{1,3}\.){3}\d{1,3}$/
00:49:47  * Slybashes head on desk.
00:50:10  <Scrat>Sly: you are quite the character. can I pet you?
00:50:30  <Sly>I might purr, or I might hump your leg. It depends on how you pet me.
00:50:38  * robotmayquit (Remote host closed the connection)
00:50:42  * Scratpets Sly furiously
00:50:51  <Sly>O_O
00:50:56  <Sly>I didn't say molest me!
00:51:15  * xk_idrecords
00:51:23  <Nexxy>well that escalated quickly
00:51:32  <Sly>^
00:51:46  <xk_id>it all started from my diagram. funnily, it still didn't receive any feedback.
00:51:49  <Nexxy>for future reference, #JIFASNIF is a little more yiff-friendly
00:52:01  * bitmagejoined
00:54:44  <CoverSlide>#LIADASWAD Linus is a dick and so we are dicks
00:56:29  <Scrat>I want to be emperor of the universe and gather all furries and drop them in a volcano
00:56:42  * draginxquit (Quit: draginx)
00:56:50  <CoverSlide>if you use perl you can swap linux for larry
00:56:55  <CoverSlide>*linus
00:57:46  * mirzujoined
00:58:46  * paulbjensenquit (Quit: paulbjensen)
00:58:55  * LowValueTargetquit (Remote host closed the connection)
00:59:32  * wllmtrngjoined
01:00:17  * yzapquit (Ping timeout: 248 seconds)
01:00:19  * vanb777quit (Quit: vanb777)
01:00:22  * Scratpart
01:00:37  * esundahlquit (Remote host closed the connection)
01:00:57  * that4chanwolfjoined
01:02:30  * rumpquit (Quit: rump)
01:02:31  * allyrazajoined
01:03:16  * EyePulpjoined
01:03:22  * motaroquit (Quit: motaro)
01:03:57  * jmanotojoined
01:04:40  * subbyyyjoined
01:04:44  * necolasquit (Remote host closed the connection)
01:04:45  * vgrauperaquit (Remote host closed the connection)
01:05:06  * vgrauperajoined
01:05:45  * colinclarkquit (Quit: colinclark)
01:05:52  * wadeychanged nick to wadey|away
01:06:00  * jimtjoined
01:06:41  * supersymquit (Ping timeout: 248 seconds)
01:07:08  * taterbasejoined
01:08:04  * techthumbquit (Ping timeout: 248 seconds)
01:08:11  * mandricquit (Quit: Computer has gone to sleep.)
01:09:07  * shadejjoined
01:10:10  * terietorquit (Write error: Connection reset by peer)
01:10:26  * __underscorejoined
01:10:34  * __underscorepart
01:10:41  <shadej>hello
01:11:07  * zz_runningskullchanged nick to runningskull
01:11:12  <shadej><shadej>a
01:11:14  * techthumbjoined
01:11:51  * thealphanerdquit (Quit: thealphanerd)
01:11:55  <shadej>I dont know how to chat
01:12:06  <chridal>type then hit enter
01:12:07  * ivan\quit (Quit: ERC Version 5.3 (IRC client for Emacs))
01:14:01  * stagasquit (Ping timeout: 246 seconds)
01:14:02  * Zolrathquit
01:14:14  * rishabhmhjnjoined
01:14:30  * rishabhmhjnpart
01:14:32  * siksiaquit (Quit: Computer has gone to sleep.)
01:14:37  * rishabhmhjnjoined
01:14:44  <shadej>nobody in this room
01:14:54  * kuryakijoined
01:16:17  * Heboquit
01:16:25  * Bilgequit (Ping timeout: 260 seconds)
01:16:54  * ivan\joined
01:17:03  <mbalho>shadej: do /leave and then /join #jquery
01:17:11  <mbalho>that room is active
01:17:16  * Hebojoined
01:18:27  * daffljoined
01:19:14  * jmanotoquit (Remote host closed the connection)
01:19:17  * kenperkinsquit (Quit: Computer has gone to sleep.)
01:19:19  * wllmtrngquit (Quit: wllmtrng)
01:20:11  <chridal>mbalho: :D
01:20:17  * kirkstrobeckjoined
01:20:18  * Slipojoined
01:20:21  * kirkstrobeckquit (Client Quit)
01:20:22  * therealkoopaquit (Remote host closed the connection)
01:21:01  <shadej>@mbalho is jquery another room
01:21:09  <mbalho>yep
01:21:10  <chridal>it is, yes.
01:21:14  * jmanotojoined
01:21:16  * Heboquit (Client Quit)
01:21:21  * c4milojoined
01:21:28  * mynameisjoined
01:22:17  * rumpjoined
01:22:29  * bootstrapperquit (Remote host closed the connection)
01:23:46  * trevnorrisquit (Ping timeout: 245 seconds)
01:24:40  * aheckmannjoined
01:24:44  * aheckmannquit (Remote host closed the connection)
01:24:52  * sdoublequit (Ping timeout: 246 seconds)
01:25:20  * azylmanjoined
01:25:47  * r0tha_quit (Remote host closed the connection)
01:25:48  * jmar777quit (Read error: Connection reset by peer)
01:25:50  * springmeyerquit (Quit: springmeyer)
01:25:53  * Kepquit (Ping timeout: 248 seconds)
01:26:23  * chridalquit (Ping timeout: 245 seconds)
01:26:27  * jmar777joined
01:26:35  * dafflquit (Ping timeout: 244 seconds)
01:26:54  * wltsmrzquit (Quit: .)
01:26:58  * sdoublejoined
01:27:04  * isaacbwquit (Quit: Leaving)
01:28:17  * nicholasfquit (Remote host closed the connection)
01:28:56  * SvenDowideitquit (Ping timeout: 256 seconds)
01:29:29  * mansoor-squit (Remote host closed the connection)
01:30:05  <shadej>mbalho: what kina of application can I built using nodejs
01:30:06  * blueadeptquit (Quit: This computer has gone to sleep)
01:30:16  * serapathquit (Quit: Leaving.)
01:30:18  * jw___quit (Quit: jw___)
01:30:43  * jmar777quit (Ping timeout: 248 seconds)
01:31:04  * disnetquit (Quit: Computer has gone to sleep.)
01:31:15  * SvenDowideitjoined
01:31:26  * euforicquit (Quit: Linkinus - http://linkinus.com)
01:31:33  * Iszakquit
01:31:56  <mbalho>shadej: big data, enterprise, cat photos
01:31:59  <mbalho>etc
01:32:09  <mbalho>shadej: are you aware of http://nodejs.org/
01:32:16  <mbalho>shadej: the official internet website of node
01:33:13  * euforicjoined
01:33:26  * allyrazaquit (Read error: Connection timed out)
01:34:01  * jonno11quit (Quit: jonno11)
01:34:10  * allyrazajoined
01:34:43  * min|dvir|usquit (Ping timeout: 245 seconds)
01:35:14  * mulvaney1quit (Ping timeout: 252 seconds)
01:35:55  * min|dvir|usjoined
01:35:56  * min|dvir|usquit (Changing host)
01:35:56  * min|dvir|usjoined
01:36:00  * disnetjoined
01:36:36  * jonno11joined
01:36:57  * rknLAquit (Remote host closed the connection)
01:37:22  * c4miloquit (Remote host closed the connection)
01:38:05  * Lee--quit (Read error: Connection reset by peer)
01:38:36  * vgrauperaquit (Ping timeout: 252 seconds)
01:38:42  * Lee--joined
01:39:33  * min|dvir|usquit (Remote host closed the connection)
01:39:41  * mikolalysenkoquit (Read error: Connection reset by peer)
01:39:48  * mikolalysenkojoined
01:40:01  <Nexxy>mbalho, internet?
01:40:04  <Nexxy>I know that word.
01:40:23  <swaj>internet website... as opposed to... ?
01:40:26  * defunctzombie_zzquit (Ping timeout: 245 seconds)
01:40:35  <swaj>some other type of website?
01:40:38  * recurrencequit (Quit: Computer has gone to sleep.)
01:40:43  <Nexxy>legal pad?
01:41:47  * adrianFquit (Quit: bye)
01:42:46  * defunctzombie_zzjoined
01:42:46  * defunctzombie_zzchanged nick to defunctzombie
01:43:33  * jpderyquit (Quit: Leaving...)
01:44:15  * slloydquit (Quit: Leaving...)
01:44:16  * joshonthewebjoined
01:44:17  * jmar777joined
01:44:29  * addisonjquit (Remote host closed the connection)
01:44:31  <mistertwig>website as in a breeding ground for spiders
01:44:44  * mrvisserquit (Remote host closed the connection)
01:45:04  <mbalho>internet website as in atm machine
01:45:21  * jpderyjoined
01:46:50  * jpderyquit (Client Quit)
01:47:07  * rumpquit (Quit: rump)
01:47:51  * mulvaney1joined
01:47:56  * aboudreaultquit (Ping timeout: 245 seconds)
01:49:27  * draginxjoined
01:50:30  * aboudreaultjoined
01:51:27  * Sicpquit (Remote host closed the connection)
01:51:35  * Jamiltzjoined
01:52:20  * Sicpjoined
01:52:37  * jxsonquit (Remote host closed the connection)
01:52:52  * Codynyxquit (Ping timeout: 246 seconds)
01:53:10  * Asterokidjoined
01:53:12  * Lee--quit (Read error: Connection reset by peer)
01:54:07  <Asterokid>Is it OK to ask questions that I feel could be on the noob side?
01:54:38  <mbalho>Asterokid: yea totally
01:54:40  * mynameisquit (Quit: mynameis)
01:55:28  * Zakquit (Ping timeout: 252 seconds)
01:55:31  * jayz_joined
01:56:31  * Shayanjmquit (Quit: Leaving...)
01:56:59  * jahaquit (Quit: Leaving.)
01:58:09  * trypwire_joined
01:58:53  * woahquit (Ping timeout: 245 seconds)
01:59:09  <Asterokid>I have sort of a general question about good coding pratice with node. The asyncrhoneous nature of node make do stuff that I feel wrong. To give an example. Before I can respond to a request I need to load two files. For each of this file I need to check if they exist first. In Python I would check if the first file exist, capture the content, check if the second file exist, capture the content,
01:59:09  <Asterokid>respond... In node I end up with 4 nested call backs... Obviously my code is hard to read and I don't is this really the way it should be done?
01:59:29  * xonevjoined
01:59:55  <templaedhel>Asterokid https://github.com/caolan/async
02:00:00  <ChrisPaterson>Asterokid: Deferred Objects
02:00:37  <Asterokid>Sorry ChrisPaterson I dont know what deffered objects are
02:00:56  <Asterokid>templaedhel is it going to save me from some of that boiler plate?
02:01:09  <templaedhel>All of it :p
02:01:22  <Asterokid>templaedhel thx... I'll look into it
02:02:33  * maletorquit (Quit: Computer has gone to sleep.)
02:02:42  * darjeelingjoined
02:02:49  * TomyLoboquit (Quit: Standby mode...)
02:02:59  <ChrisPaterson>Asterokid: Just google around. It's used in jQuery and helps get rid of deep nesting with asynchronous code
02:03:06  * jocafaquit (Quit: Leaving.)
02:03:26  <ChrisPaterson>Asterokid: there are a few libraries for Node as well: https://github.com/kriszyp/node-promise
02:03:47  * jmar777quit (Remote host closed the connection)
02:03:47  * rumpjoined
02:03:52  <Asterokid>But asyncrhoneous does not make much sense in the case of response right...?
02:03:53  * ChrisPatersonquit (Quit: Leaving.)
02:04:05  <Asterokid>cause ultimatly i need to process all that stuff to be able to respond
02:04:12  <Asterokid>but I suppose its the nature of node.
02:04:22  * jmar777joined
02:04:29  * sdoublequit (Quit: Lost terminal)
02:04:35  <templaedhel>Asterokid But processing 2 files at a time makes more sense than doing and then the other
02:04:38  <Asterokid>So if I am not happy I should go fuck around with some python
02:05:11  <templaedhel>one and then the other*
02:05:17  <Asterokid>templaedhel true... I suppose it will be fastee
02:05:18  * gluxonjoined
02:05:20  <Asterokid>faster
02:05:24  <azylman>Asterokid: so do processing the files depend on each other?
02:05:28  <azylman>If not, it's faster to do it async
02:05:56  <azylman>Using async, you can process each file independently and then, once both are done processing, return your result.
02:06:05  <Asterokid>The file don't depend on eachother azylman.... but I can't send the response before they both exist and both loaded
02:06:17  * ChrisPatersonjoined
02:06:18  * intripoon_joined
02:06:42  <Asterokid>When u mean independently do you mean... multi threaded? or distributed to different cores at list?
02:06:48  <azylman>With async, you pass in some callback that runs when all your tasks are complete.
02:07:02  * ChrisPatersonquit (Client Quit)
02:07:21  <draginx>with mocha .. is each describe sync or async?
02:07:31  <Asterokid>yeah well that is what happen... first file exit > read the data > second file exist > read the data > respond...
02:07:45  * Ziggy`joined
02:07:46  <azylman>So basically you'd pass in an array of functions that read in your files and processed them, and your success function will respond
02:08:15  <azylman>Do first file exist > read the data happens concurrently with second file exist > read the data, and once those are both complete you respond
02:08:28  * jmar777quit (Ping timeout: 245 seconds)
02:08:34  <azylman>The async documentation is pretty good
02:08:40  * manuelbiehquit (Read error: Connection reset by peer)
02:08:45  * Virungaquit (Remote host closed the connection)
02:08:46  <azylman>I recommend checking out waterfall, series, and parallel to start off with
02:08:59  <azylman>They have a bunch of other functions that are really nice, as well, but those are the most common ones
02:09:13  <azylman>There's also forEach, auto, forEachSeries, forEachLimit, etc.
02:09:16  <Asterokid>are they patterns or modules?
02:09:29  * intripoonquit (Ping timeout: 240 seconds)
02:09:30  <azylman>https://github.com/caolan/async
02:09:32  <azylman>It's a module
02:10:02  * spenvojoined
02:10:21  <Asterokid>what you say make sense... have a function that runs parallely all these files and then respond on success.
02:10:29  * jlordquit (Quit: jlord)
02:10:38  * jocafajoined
02:10:45  <Asterokid>cause right now... I sort of rebuilding a syncrhoneous process out of an asyncrhoneous framework
02:10:50  <Asterokid>which does not really make sense
02:10:51  <Asterokid>right
02:11:36  <Asterokid>I'll try to learn about async, that might open my eyes
02:11:43  * mandricjoined
02:11:46  <Asterokid>thx guys
02:11:55  * jmanotoquit (Remote host closed the connection)
02:11:56  * trypwire_quit (Quit: trypwire_)
02:15:48  * thilluxjoined
02:15:59  * subbyyyquit (Ping timeout: 240 seconds)
02:16:11  * DarkXPhjoined
02:16:31  * liwenjoined
02:17:03  * addisonjjoined
02:17:27  * sdoublejoined
02:17:40  * EyePulpquit (Quit: EyePulp)
02:18:02  * liwenquit (Remote host closed the connection)
02:18:23  * daffljoined
02:18:26  * euforicquit (Quit: Linkinus - http://linkinus.com)
02:18:27  * subbyyyjoined
02:18:30  * liwenjoined
02:19:14  * dafflquit (Remote host closed the connection)
02:19:22  * mikealquit (Quit: Leaving.)
02:19:47  * ossarehquit (Ping timeout: 252 seconds)
02:20:15  * generalissimojoined
02:20:15  * grantbowjoined
02:20:27  * Xiphias3joined
02:21:32  * asterick_quit (Quit: Leaving...)
02:22:27  * thilluxquit (Remote host closed the connection)
02:23:03  * disnetquit (Quit: Computer has gone to sleep.)
02:23:27  * harthquit (Remote host closed the connection)
02:24:42  * nicholasfjoined
02:25:28  * mikealjoined
02:25:39  * rishabhmhjnpart
02:25:50  * esundahljoined
02:25:50  * jdunckquit (Quit: Computer has gone to sleep.)
02:25:55  <rfgarcia>draginx: no one really knows
02:26:28  * allyrazaquit (Quit: Leaving)
02:26:55  * inolenquit (Quit: Leaving.)
02:27:08  * Emmanuel`joined
02:27:25  * _marvin1joined
02:27:35  * blazes816quit (Quit: blazes816)
02:28:20  * TonkaTruckquit (Quit: TonkaTruck)
02:29:08  * DarkXPhquit (Ping timeout: 248 seconds)
02:29:22  * jolo2quit (Read error: Connection reset by peer)
02:29:33  * motiooon_joined
02:29:44  * _marvinquit (Ping timeout: 255 seconds)
02:30:29  * jjbohnjoined
02:30:37  * Sicpquit (Quit: Leaving)
02:30:43  * alexhancockquit (Remote host closed the connection)
02:31:47  * esundahlquit (Remote host closed the connection)
02:31:51  * brad-workquit (Quit: brad-work)
02:32:51  * kholladayjoined
02:32:56  * JumpMast3rquit (Quit: JumpMast3r)
02:32:57  * blakmatrixquit (Remote host closed the connection)
02:34:19  * parallelquit (Remote host closed the connection)
02:34:38  * jjbohnquit (Client Quit)
02:34:51  * paralleljoined
02:35:17  * mattgiffordjoined
02:35:17  * parallelquit (Read error: Connection reset by peer)
02:35:49  * paralleljoined
02:35:51  * looperquit (Ping timeout: 252 seconds)
02:37:13  * kholladayquit (Ping timeout: 245 seconds)
02:37:32  * looperjoined
02:38:03  * rorxpart ("Leaving")
02:39:40  * TroyMGjoined
02:39:42  <draginx>rfgarcia: story of a lot of things :P
02:41:20  <rfgarcia>in my experience mocha's describes and its are run consecutively
02:41:41  * calvinfo_quit (Remote host closed the connection)
02:41:52  <rfgarcia>but each one can be an asynchronous function
02:42:25  <rfgarcia>so it's like they load everything in an async.forEachSeries if that makes sense
02:42:56  * mynameisjoined
02:44:16  * spenvoquit (Quit: This computer has gone to sleep)
02:44:40  <draginx>yeah thats what it looks like to me
02:44:50  <draginx>but i just wanted to make sure :) and the actuals ource kind of confuses me, thanks! :)
02:45:12  * Xiphias3_joined
02:45:12  * Xiphias3quit (Disconnected by services)
02:46:20  * EyePulpjoined
02:46:22  * azylmanquit (Quit: Leaving...)
02:46:59  * jergasonquit (Quit: jergason)
02:47:33  * rknLAjoined
02:47:33  * rknLAquit (Changing host)
02:47:33  * rknLAjoined
02:47:35  * jergasonjoined
02:47:40  * barttquit (Quit: Leaving.)
02:47:46  * rumpquit (Read error: Connection reset by peer)
02:47:52  * Lee-joined
02:48:21  * rumpjoined
02:48:28  * spenvojoined
02:49:49  * thl0joined
02:49:51  * admcquit (Quit: Leaving.)
02:50:09  * thl0quit (Remote host closed the connection)
02:50:19  * mappum_joined
02:50:34  * TooTallNatequit (Quit: Computer has gone to sleep.)
02:50:59  * jibayquit (Quit: Leaving)
02:51:58  * rknLAquit (Ping timeout: 256 seconds)
02:52:20  * mattgiffordquit (Remote host closed the connection)
02:52:48  * mattgiffordjoined
02:52:48  * darjeelingquit (Read error: Connection reset by peer)
02:52:54  * darjeeli_joined
02:53:05  * rfgarciaquit (Quit: Leaving...)
02:53:15  * mynameisquit (Quit: mynameis)
02:53:38  * mharschjoined
02:53:40  * jpderyjoined
02:53:50  * azylmanjoined
02:54:33  * mappumquit (Ping timeout: 252 seconds)
02:54:48  * Rob_quit (Ping timeout: 256 seconds)
02:55:26  * Emmanuel`quit (Quit: Konversation terminated!)
02:55:34  * Rob_joined
02:55:49  * thl0joined
02:55:58  * mappum_changed nick to mappum
02:56:31  * indexzeroquit (Quit: indexzero)
02:57:15  * joshfinniequit (Read error: Connection reset by peer)
02:57:19  * mattgiffordquit (Ping timeout: 260 seconds)
02:57:40  * mharschquit (Client Quit)
02:57:57  * templaedhelquit (Quit: Leaving...)
02:58:20  * parallel_joined
02:58:25  * JSONBjoined
02:58:50  * paralle__joined
02:59:20  * mappumquit (Remote host closed the connection)
02:59:36  * JSONBquit (Client Quit)
03:00:08  * joshfinniejoined
03:00:08  * parallelquit (Ping timeout: 245 seconds)
03:00:52  * rumpquit (Quit: rump)
03:00:58  * jcrugzzjoined
03:00:58  * trevnorrisjoined
03:01:40  * darjeeli_quit (Remote host closed the connection)
03:02:16  * paul_kquit (Remote host closed the connection)
03:02:34  * boooquit (Ping timeout: 260 seconds)
03:02:38  * parallel_quit (Ping timeout: 245 seconds)
03:02:57  * mattgiffordjoined
03:03:36  * mykuljoined
03:03:58  * tombquit
03:04:47  * Omega_joined
03:04:57  * simongjoined
03:05:13  * booojoined
03:05:51  * mattgiffordquit (Remote host closed the connection)
03:06:18  * mattgiffordjoined
03:06:32  * GreenDogjoined
03:08:03  * cpg|awaychanged nick to cpg
03:08:04  * Shayanjmjoined
03:08:35  * Lee-quit (Read error: Connection reset by peer)
03:08:53  * mykulquit (Quit: gg)
03:08:59  * Lee-joined
03:09:37  * jonno11quit (Quit: jonno11)
03:10:23  * maqrquit (Ping timeout: 252 seconds)
03:10:36  * stevegilljoined
03:10:44  * mattgiffordquit (Ping timeout: 248 seconds)
03:10:57  * Orbitrixquit (Ping timeout: 248 seconds)
03:11:07  * jayz_quit (Remote host closed the connection)
03:11:14  * GreenDogquit (Ping timeout: 256 seconds)
03:11:39  * EvilPacketjoined
03:12:49  * EvilPacketquit (Client Quit)
03:13:12  * weiejoined
03:14:21  * esundahljoined
03:15:08  * pooyaquit (Quit: pooya)
03:15:17  * rodyhaddadjoined
03:16:09  * inolenjoined
03:16:18  * shadejquit (Ping timeout: 245 seconds)
03:16:38  * techthumbquit (Quit: Leaving.)
03:16:40  * mattgiffordjoined
03:16:48  * indexzerojoined
03:17:39  <rodyhaddad>Hey guys, if in Socket.IO, I do mySocket.emit("event", {obj: myObject}), where myObject is an object I created with "new". Does Socket.IO JSON.stringifies the object I passed to him? So if myObject has a toJSON method, would it be used to serialize my object?
03:18:17  * jjbohnjoined
03:18:30  * Jacky_changed nick to Jacky
03:18:58  * generalissimoquit (Remote host closed the connection)
03:18:59  * Jackychanged nick to Guest77252
03:18:59  * weiequit (Quit: Leaving...)
03:19:11  * mattgiffordquit (Remote host closed the connection)
03:19:38  * mattgiffordjoined
03:20:04  * kenperkinsjoined
03:20:07  * Guest77252changed nick to JackyAlcine
03:20:11  * JackyAlcinequit (Changing host)
03:20:11  * JackyAlcinejoined
03:20:12  * Shayanjmquit (Quit: Leaving...)
03:20:18  * JackyAlcinechanged nick to Jacky
03:21:31  * aut0mataquit (Quit: This computer has gone to sleep)
03:21:35  * esundahlquit (Remote host closed the connection)
03:22:13  * jxiejoined
03:23:09  <jcrugzz>rodyhaddad: thats a pretty good question. I'd just give it a try and see what happens
03:24:08  * mattgiffordquit (Ping timeout: 252 seconds)
03:27:44  * N3Xjoined
03:27:48  * jcrugzzquit (Ping timeout: 248 seconds)
03:27:54  <rodyhaddad>jcrugzz, Yeah, just setup-ed a socket.io project to test it. Seems to be working :D. I didn't know web sockets worked cross-domain, cool
03:28:11  * janmowerquit (Remote host closed the connection)
03:28:56  * indexzeroquit (Quit: indexzero)
03:30:15  * nicholas_joined
03:30:15  * thealphanerdjoined
03:30:22  * nicholas_quit (Read error: Connection reset by peer)
03:30:55  * nicholas_joined
03:33:28  * tphummelquit (Quit: tphummel)
03:33:52  * Slipoquit (Remote host closed the connection)
03:34:02  * motiooon_quit (Quit: motiooon_)
03:34:22  * Kepjoined
03:34:27  * jjbohnquit (Quit: Leaving...)
03:34:52  * rodyhaddadquit (Quit: This computer has gone to sleep)
03:35:14  * N3Xquit (Ping timeout: 260 seconds)
03:35:58  * azylmanquit (Ping timeout: 245 seconds)
03:36:37  * admcjoined
03:37:48  * Slipojoined
03:38:05  * Ziggy_joined
03:39:11  * Jackyquit (Quit: Quit)
03:39:16  * jjbohnjoined
03:39:29  * Ziggy`quit (Ping timeout: 240 seconds)
03:44:30  * rfgarciajoined
03:44:56  * EyePulpquit (Quit: EyePulp)
03:45:48  * rfgarcia_joined
03:46:43  * yacksjoined
03:47:06  * trevnorrisquit (Ping timeout: 245 seconds)
03:48:11  * pooyajoined
03:48:48  * rfgarciaquit (Ping timeout: 252 seconds)
03:49:46  * c3lquit (Quit: Leaving)
03:51:00  * Yuffsterquit (Remote host closed the connection)
03:51:11  * bentruymanquit (Quit: ZNC - http://znc.sourceforge.net)
03:51:20  * bentruymanjoined
03:54:04  * simongquit (Quit: Leaving...)
03:54:27  * TooTallNatejoined
03:57:27  <tjmehta>Anyone know of an quick/easy way to buffer stream data for a specific event until there a listener is attached, and then pass that data when a listener is attached (and stop buffering the data)?
03:57:51  * grantbowpart
03:58:16  * aboudreaultquit (Ping timeout: 260 seconds)
04:01:13  * TooTallNatequit (Quit: Computer has gone to sleep.)
04:01:17  * jergasonquit (Quit: jergason)
04:01:32  * lresende_joined
04:01:44  * jamesdean777joined
04:02:06  * spenvoquit (Quit: This computer has gone to sleep)
04:02:28  * lresendequit (Ping timeout: 248 seconds)
04:02:29  * lresende_changed nick to lresende
04:07:26  * jayz_joined
04:07:33  * Shayanjmjoined
04:07:43  * rfgarcia_quit (Quit: Leaving...)
04:08:11  * spenvojoined
04:09:18  * euoiaquit (Ping timeout: 256 seconds)
04:10:10  * motarojoined
04:10:15  * motaroquit (Client Quit)
04:10:32  * aboudreaultjoined
04:11:41  * gregmorenojoined
04:11:52  * kenperkinsquit (Remote host closed the connection)
04:12:17  * kenperkinsjoined
04:12:24  * dominictarrjoined
04:12:50  * lohkeyjoined
04:12:55  * addisonjquit (Remote host closed the connection)
04:13:04  * kenperkinsquit (Client Quit)
04:13:17  * trypwire_joined
04:13:38  * kenperkinsjoined
04:13:54  * esundahljoined
04:14:03  * Shayanjmquit (Read error: Connection reset by peer)
04:14:08  * shayanmohantyjoined
04:14:44  * horst_joined
04:17:04  * maqrjoined
04:19:00  * thealphanerdquit (Quit: thealphanerd)
04:19:10  * addisonjjoined
04:19:34  * uiureojoined
04:20:47  * kill-9_quit (Ping timeout: 252 seconds)
04:21:11  * rumpjoined
04:21:37  * petschmquit (Ping timeout: 246 seconds)
04:23:16  * maqrquit (Ping timeout: 248 seconds)
04:23:54  * indexzerojoined
04:25:18  * spenvoquit (Quit: This computer has gone to sleep)
04:25:31  * Kudosquit (Read error: Connection reset by peer)
04:25:45  * generalissimojoined
04:26:27  * bitmagequit (Quit: bitmage)
04:32:01  * tjmehtaquit (Remote host closed the connection)
04:32:41  * Ziggy_quit (Ping timeout: 276 seconds)
04:33:14  * kholladayjoined
04:33:36  * rcrowleyjoined
04:33:48  * petschmjoined
04:34:24  * lvivierjoined
04:34:27  * brainssquit (Quit: leaving)
04:34:57  * darjeelingjoined
04:34:59  * st_lukejoined
04:35:01  * Ziggy`joined
04:37:07  * andrehjrquit (Quit: ["Textual IRC Client: www.textualapp.com"])
04:37:08  * aslantquit (Remote host closed the connection)
04:37:38  * kholladayquit (Ping timeout: 245 seconds)
04:37:55  * aslantjoined
04:39:01  * templaedheljoined
04:39:07  * peteschaffnerquit (Quit: Be back later)
04:40:06  * rfgarciajoined
04:40:41  * szarapkajoined
04:41:28  * rfgarciaquit (Client Quit)
04:41:43  * aslantquit (Read error: Connection reset by peer)
04:44:34  * jslattsjoined
04:44:40  * taterbasequit (Remote host closed the connection)
04:44:58  * maqrjoined
04:46:39  * N3Xjoined
04:46:47  * TonkaTruckjoined
04:47:20  * DingoEatingFuzzjoined
04:47:39  * templaedhelquit (Quit: Leaving...)
04:48:06  * DingoEatingFuzzpart
04:49:45  * jslattsquit (Quit: zzzzzz)
04:49:51  * paralle__quit (Remote host closed the connection)
04:50:23  * paralleljoined
04:50:54  * admcquit (Quit: Leaving.)
04:51:23  * Lee-quit (Ping timeout: 245 seconds)
04:52:08  * k_89quit (Ping timeout: 252 seconds)
04:52:54  * Slipoquit (Remote host closed the connection)
04:53:45  * trypwire_quit (Quit: trypwire_)
04:54:01  * maleknetjoined
04:54:17  * rcrowleyquit (Quit: Computer has gone to sleep.)
04:54:23  * Jackyjoined
04:54:23  * Jackyquit (Changing host)
04:54:23  * Jackyjoined
04:54:28  * hipertracker-offjoined
04:54:42  * parallelquit (Ping timeout: 248 seconds)
04:55:33  * ruffquit (Ping timeout: 245 seconds)
04:55:50  * Lee-joined
04:56:52  * hipertrackerquit (Ping timeout: 248 seconds)
04:56:52  * hipertracker-offchanged nick to hipertracker
04:57:10  * Lee-quit (Read error: Connection reset by peer)
04:57:13  * horst_quit (Quit: horst_)
04:57:42  * Lee-joined
04:58:38  * taterbasejoined
04:58:41  * mikealquit (Quit: Leaving.)
04:59:47  * yewtonquit (Excess Flood)
05:00:25  * mykuljoined
05:00:33  * defunctzombiequit (Changing host)
05:00:33  * defunctzombiejoined
05:00:44  <Jamiltz>Hey. Anyone around? I was using the twitter api and read this article about their streaming api https://dev.twitter.com/docs/streaming-apis?
05:01:08  <Jamiltz>Can we use the streaming of content with any public api?
05:01:17  <Jamiltz>using node
05:01:53  * spenvojoined
05:01:55  * RLajoined
05:02:17  * yewtonjoined
05:02:42  * mikealjoined
05:03:43  * infynyxxjoined
05:05:09  * Emmanuel`joined
05:06:22  * jlordjoined
05:06:53  * GreenDogjoined
05:07:00  * nubaquit (Ping timeout: 276 seconds)
05:07:26  * mikealquit (Client Quit)
05:08:14  * euforicjoined
05:08:40  * nubajoined
05:08:55  * RLaquit (Remote host closed the connection)
05:09:00  * harthjoined
05:09:04  * Xiphias3_quit
05:09:24  * Xiphias3joined
05:10:28  * pooyaquit (Quit: pooya)
05:10:43  * spenvoquit (Quit: This computer has gone to sleep)
05:10:45  * ramprjoined
05:10:48  * fantasywind_joined
05:12:05  * ruffjoined
05:12:26  * RLajoined
05:13:28  * harthquit (Ping timeout: 245 seconds)
05:14:10  * jjbohnquit (Quit: Leaving...)
05:14:35  * liwenquit (Read error: Connection reset by peer)
05:14:49  * liwenjoined
05:15:46  * EyePulpjoined
05:16:06  * mikealjoined
05:19:40  * zalzanejoined
05:19:47  * EyePulpquit (Client Quit)
05:20:54  * xonevquit (Quit: Leaving.)
05:20:54  * urlwolfjoined
05:21:07  * william-squit (Ping timeout: 248 seconds)
05:22:04  * william-sjoined
05:22:34  <drug_motor>http://tinysong.com/LD1b
05:24:03  * shamaquit (Quit: shama)
05:24:56  * shayanmohantyquit (Quit: Linkinus - http://linkinus.com)
05:25:40  * jimbotquit (Ping timeout: 248 seconds)
05:26:10  * AvianFluquit (Remote host closed the connection)
05:27:00  * jimbotjoined
05:29:37  * thl0quit (Remote host closed the connection)
05:30:44  * SamuraiJackjoined
05:30:44  * dukojoined
05:30:51  * defunctzombiequit (Ping timeout: 245 seconds)
05:31:16  <duko>i want to create a request handler using express. Is there a way to do this?
05:31:22  * runningskullchanged nick to zz_runningskull
05:31:28  <duko>/path/to/*
05:31:35  <duko>something like that?
05:31:59  * ramprquit (Remote host closed the connection)
05:32:03  * sethetterjoined
05:32:24  <sethetter>Has anyone here used CompoundJS, and if so is it a fairly solid framework?
05:32:24  * APackjoined
05:32:44  * scott_switzerjoined
05:32:47  * defunctzombiejoined
05:32:52  * scott_switzerquit (Client Quit)
05:33:28  * infynyxxquit (Remote host closed the connection)
05:33:51  * yewtonquit (Excess Flood)
05:34:58  * fantasywind_quit (Remote host closed the connection)
05:35:24  * thl0joined
05:35:44  * spenvojoined
05:35:48  * Emmanuel`quit (Read error: Operation timed out)
05:36:17  * yewtonjoined
05:37:09  * thirdknifejoined
05:38:04  * addisonjquit (Remote host closed the connection)
05:39:41  * esundahlquit (Remote host closed the connection)
05:39:44  <othiym23>duko: app.get('/path/to/:id', function (req, res, next) { /* do stuff */ return next() }) <- like that?
05:40:20  * jayz_quit (Remote host closed the connection)
05:41:37  <duko>othiym23: I have tried that... I will give it a shot again.
05:41:43  * yewtonquit (Excess Flood)
05:42:35  * tjmehtajoined
05:42:51  <duko>express is not responding to that request after I've added it
05:43:04  * thl0quit (Remote host closed the connection)
05:43:06  * TooTallNatejoined
05:43:15  <duko>if I remove the /:id portion, I see content from /path/to
05:43:17  * yewtonjoined
05:43:30  * uiureoquit (Remote host closed the connection)
05:43:34  <duko>but express is not responding if I add that last part of the path
05:43:56  * thirdknifequit (Ping timeout: 252 seconds)
05:44:05  * azylmanjoined
05:45:15  <duko>does not respond to /.* or * either
05:46:02  * azylmanquit (Client Quit)
05:46:19  * trypwire_joined
05:46:50  * tjmehtaquit (Ping timeout: 252 seconds)
05:47:51  * azylmanjoined
05:48:05  * joehoylequit (Quit: Leaving...)
05:48:45  * thirdknifejoined
05:49:48  <othiym23>you'll need to request /path/to/id / /path/to/18 or whatever
05:50:00  <othiym23>not just the bare /path/to
05:50:11  * spenvoquit (Quit: This computer has gone to sleep)
05:50:34  <duko>othiym23: :*(
05:50:59  * sethetterquit (Quit: Lost terminal)
05:51:10  * darjeelingquit (Remote host closed the connection)
05:51:25  * indexzeroquit (Quit: indexzero)
05:51:34  <othiym23>well, if you just want /path/to, then you just want app.get('/path/to',...
05:52:22  * Dimatterjoined
05:54:00  <duko>i don't want '/path/to'
05:54:09  <duko>I want '/path/to/.*'
05:54:27  * paralleljoined
05:54:34  <duko>I see a stack overflow post that shows that only one char is matched with .*
05:54:56  <duko>so maybe there is not a good way to achieve what I want
05:56:01  * defunctzombiechanged nick to defunctzombie_zz
05:56:55  <duko>and now wildcard seems to be working
05:56:59  * Jackyquit (Ping timeout: 240 seconds)
05:56:59  <duko>how strange
05:57:05  * francisljoined
05:58:15  * parallelquit (Remote host closed the connection)
05:58:49  * paralleljoined
05:59:02  * blueadeptjoined
05:59:03  * blueadeptquit (Changing host)
05:59:03  * blueadeptjoined
05:59:10  * parallelquit (Read error: Connection reset by peer)
05:59:13  * rafmcjoined
05:59:37  * paralleljoined
06:00:17  * azylman_joined
06:01:07  * addisonjjoined
06:01:26  * caffinejoined
06:01:34  * parallelquit (Remote host closed the connection)
06:02:08  * paralleljoined
06:02:33  * parallelquit (Read error: Connection reset by peer)
06:03:04  * yewtonquit (Excess Flood)
06:03:27  * paralleljoined
06:04:17  * yewtonjoined
06:04:19  * azylmanquit (Ping timeout: 248 seconds)
06:04:43  * trypwire_quit (Quit: trypwire_)
06:04:57  * jayzjoined
06:05:10  * addisonjquit (Remote host closed the connection)
06:05:34  * SasanRosejoined
06:05:39  * francislquit (Quit: francisl)
06:06:17  * rafmcquit (Remote host closed the connection)
06:06:19  * mikealquit (Quit: Leaving.)
06:07:24  <lvivier>duko: the route '/path/to/*' will match /path/to/ but not /path/to, maybe that's why it wasn't responding as you expected
06:07:38  * azylman_quit (Quit: Linkinus - http://linkinus.com)
06:07:43  * jolo2joined
06:07:44  * parallelquit (Ping timeout: 256 seconds)
06:07:50  * Orbitrixjoined
06:07:52  * st_lukequit (Remote host closed the connection)
06:08:09  * sidd__joined
06:08:16  * jayzquit (Remote host closed the connection)
06:09:29  * sidd__quit (Client Quit)
06:09:45  * JumpMast3rjoined
06:10:02  * stevegillquit (Quit: stevegill)
06:10:13  * addisonjjoined
06:10:16  * shannonmoellerquit (Remote host closed the connection)
06:11:32  * rafmcjoined
06:11:37  * mattgiffordjoined
06:12:45  * joeytwiddlequit (Ping timeout: 260 seconds)
06:13:15  * yewtonquit (Excess Flood)
06:13:59  * jergasonjoined
06:14:55  <duko>lvivier: thanks
06:14:58  * dukopart
06:15:28  * mikealjoined
06:15:36  * Jackyjoined
06:15:36  * Jackyquit (Changing host)
06:15:36  * Jackyjoined
06:16:14  * domojoined
06:16:17  * yewtonjoined
06:16:41  * blueadeptquit (Quit: This computer has gone to sleep)
06:17:13  <domo>I have a script written in node where it's only job is to listen as an http server, taking incoming get requests containing a url and fetch the url's contents and return it back to the client as an http response
06:17:27  <domo>this script does a great job, but I notice if it's running for more than a few hours, it starts to slow down
06:17:52  * joeytwiddlejoined
06:17:58  <domo>I setup a cron script to restart it every hour and that's been a great bandaid so far. any ideas as to why this would happen? should i be doing something special with the handling of network connections?
06:19:28  * marcooliveiraquit (Ping timeout: 252 seconds)
06:20:09  <gildean>domo: i'd guess there's a leak somewhere
06:20:19  * lvivierquit (Quit: lvivier)
06:20:29  * N3Xquit (Remote host closed the connection)
06:20:32  <domo>how can I go about debugging the script for mem leaks? (havent done this in node)
06:21:15  <jheusala>it sounds quite simple code, I would think its possible to just see the error in the code...
06:21:42  * xonevjoined
06:21:47  <SinnerNyx>ok I ran "npm install -g cookies". I'm on windows, and it installed it into my AppData\Roaming\npm\node_modules\ folder. however node apps still complain about "Cannot find module 'cookies'"
06:21:49  <SinnerNyx>ideas?
06:21:55  * netjquit (Ping timeout: 260 seconds)
06:21:56  <jheusala>sometimes it helps to show the code to other people
06:23:08  <jheusala>SinnerNyx: you must go to your project folder and npm install it there as a library (or make a package.json and use npm install -d, or link it with npm link)
06:23:32  * francisljoined
06:23:38  <SinnerNyx>jheusala: is there some way to make it available to all projects, not just one of them?
06:24:28  <jheusala>I guess it may be possible to change it from npmrc but I personally think the default way is much better
06:25:18  * maletorjoined
06:25:30  <gildean>domo: there are multiple modules that can help you with that, like node-inspector or node-heap-dump
06:25:36  * netjjoined
06:25:54  * APackquit (Quit: APack)
06:26:08  * EyePulpjoined
06:26:53  * mattgiffordquit (Remote host closed the connection)
06:27:22  * ramprjoined
06:27:51  * jlord_joined
06:27:56  * jlordquit (Read error: Connection reset by peer)
06:27:56  * jlord_changed nick to jlord
06:28:18  * paralleljoined
06:28:35  <TehShrike>Whaaaaat is this I don't even https://github.com/creationix/brozula
06:28:53  * kelonyequit (Ping timeout: 245 seconds)
06:29:45  * xonevquit (Ping timeout: 252 seconds)
06:29:47  * EyePulpquit (Client Quit)
06:30:01  * rafmcquit (Remote host closed the connection)
06:30:09  * jocafaquit (Quit: Leaving.)
06:31:02  * TooTallNatequit (Quit: ["Textual IRC Client: www.textualapp.com"])
06:31:11  * thirdknifequit (Read error: Operation timed out)
06:32:59  * TonkaTruckquit (Quit: TonkaTruck)
06:32:59  * lohkeypart
06:33:35  * kholladayjoined
06:34:33  * tjmehtajoined
06:34:33  * IrishGringoquit (Read error: Connection reset by peer)
06:34:34  * dominictarrquit (Quit: dominictarr)
06:37:38  * kholladayquit (Ping timeout: 245 seconds)
06:38:03  * st_lukejoined
06:38:32  * mattgiffordjoined
06:41:20  * Kepquit (Remote host closed the connection)
06:41:46  * sreeixjoined
06:42:32  * rodyhaddadjoined
06:42:47  * jamesdean777quit (Quit: Leaving)
06:42:58  * wolfesjoined
06:43:22  * jiversonjoined
06:44:30  * mattgiffordquit (Remote host closed the connection)
06:44:44  * thirdknifejoined
06:46:44  * bqquit (Ping timeout: 248 seconds)
06:46:51  * domopart
06:47:20  * bqjoined
06:47:44  * jlordquit (Quit: jlord)
06:47:54  * mikealquit (Quit: Leaving.)
06:49:15  * jabberwockyjoined
06:49:20  * phonebook_joined
06:49:43  * thanpolas_joined
06:49:52  * joshfinniequit (Quit: Computer has gone to sleep.)
06:50:39  <phonebook_>does a node.js app get compiled into a single file or is the program that i write a collection of my js files?
06:50:56  * lresendequit (Quit: Zzzzzzz ...)
06:50:58  * weiejoined
06:51:00  * N3Xjoined
06:51:00  * thanpolasquit (Ping timeout: 248 seconds)
06:52:39  * mikealjoined
06:52:58  * lempajoined
06:53:19  <TehShrike>phonebook_: good question! There's no compiling, the file you run is interpreted by node.js/V8.
06:53:32  <TehShrike>phonebook_: when you require() other modules, they are also opened and interpreted
06:53:52  <TehShrike>phonebook_: before you go much farther, you well definitely want to read http://nodejs.org/api/modules.html
06:54:10  <phonebook_>okay nice. so how is an the (using phrase very loosely) application boundary defined? all files in a given directory? i need to write a package.js
06:54:41  <phonebook_>package.json, sry
06:54:43  <TehShrike>package.json? Another good thing to read about. That last link I posted will get you started.
06:55:25  * JumpMast3rquit (Quit: JumpMast3r)
06:55:32  * maletorquit (Quit: Computer has gone to sleep.)
06:55:39  * mrkurtquit (Read error: Connection reset by peer)
06:55:50  <TehShrike>After you've read that, this might be a useful thing to bookmark http://package.json.nodejitsu.com/
06:56:56  * SpXquit (Ping timeout: 256 seconds)
06:57:38  * joehoylejoined
06:57:57  * jlordjoined
06:58:00  <phonebook_>lol that's who im using. i'm struggling with how to define my program vs simply node c:\users\me\desktop\hellomarbles.js
06:58:22  * addisonjquit (Remote host closed the connection)
06:58:43  <TehShrike>That "main" property in package.json is probably the thing you want to look at.
06:59:07  * xeroraquit (Read error: Connection reset by peer)
06:59:18  * N3Xquit (Ping timeout: 245 seconds)
06:59:49  * mattgiffordjoined
07:00:07  * charuruquit (Remote host closed the connection)
07:01:53  * joehoylequit (Ping timeout: 248 seconds)
07:02:20  * addisonjjoined
07:02:42  * addisonjquit (Read error: Connection reset by peer)
07:03:27  * lempaquit (Quit: Leaving)
07:03:30  <phonebook_>allright. that first link actually had the answer. hopefuly will have it done soon. the exact answer for me was http://nodejs.org/api/modules.html#modules_folders_as_modules
07:03:34  * mirzuquit (Quit: mirzu)
07:03:47  * SpXjoined
07:05:21  * mirzujoined
07:05:30  * jnquit (Ping timeout: 264 seconds)
07:05:32  * rodyhaddadquit (Quit: This computer has gone to sleep)
07:06:10  <TehShrike>yarp!
07:06:23  * jabberwockyquit (Ping timeout: 245 seconds)
07:06:44  * charurujoined
07:07:28  * taterbasequit (Remote host closed the connection)
07:08:12  * jabberwockyjoined
07:08:45  * jayzjoined
07:10:24  * jlordquit (Quit: jlord)
07:11:31  * joeytwiddlequit (Ping timeout: 248 seconds)
07:11:32  <phonebook_>i think its working ship shape. concepts... dominated
07:11:44  * marcooliveirajoined
07:11:45  <phonebook_>not going through yet cause just registered the domain
07:11:54  * bhavesh_a_pjoined
07:12:01  <phonebook_>thx man
07:12:06  <TehShrike>BRAIN EMBIGGENED!
07:12:15  <TehShrike>Happy hacking! :-)
07:12:34  * mrkurtjoined
07:13:14  * vitsausquit (Ping timeout: 255 seconds)
07:13:15  * D4RK-PH0ENiXquit (Remote host closed the connection)
07:13:21  * vitsausjoined
07:13:24  * jayzquit (Ping timeout: 260 seconds)
07:14:44  * phonebook_quit (Quit: bye for meow)
07:14:59  * recurrencejoined
07:15:25  * joeytwiddlejoined
07:15:44  * TehShrike2joined
07:16:06  * dookquit (Quit: dook)
07:16:36  * TehShrikequit (Ping timeout: 256 seconds)
07:18:52  * DarkXPhjoined
07:20:00  * ashnurquit (Ping timeout: 256 seconds)
07:20:47  * maleknetquit (Ping timeout: 255 seconds)
07:20:55  * [[zzz]]joined
07:21:21  * phonebook_joined
07:21:27  <phonebook_>okay funny story
07:21:50  <phonebook_>it took like 60 minutes for the dns to update
07:22:03  * TehShrikejoined
07:22:42  * darjeelingjoined
07:23:11  * hatmorejoined
07:23:43  <phonebook_>but i thought i bought buildersoftware.com. however it says buildersofware on the receipt. so APPARANTLY i just bought a domain name that makes no sense. and that missing t costs $5000
07:24:07  * [[zz]]quit (Ping timeout: 244 seconds)
07:24:09  <brycebaril>doh!
07:24:18  * TehShrike2quit (Ping timeout: 245 seconds)
07:25:13  * rafmcjoined
07:25:19  * wllmtrngjoined
07:25:31  * SomeoneWeirdfacepalms
07:25:46  <GreenDog>i wonder if you can cancel that
07:26:51  <ckknight>phonebook_: that's terrible.
07:27:16  <phonebook_>well its not that bad. just $20. you can use a domain for something... maybe
07:27:52  <GreenDog>oh i see, buildersofware is 20 but buildersoftware is 5000?
07:28:04  <phonebook_>right right.
07:28:13  <GreenDog>phew ok
07:28:41  * _marvin1quit (Quit: Leaving.)
07:28:45  <phonebook_>...do any of you need a domain?
07:29:26  * _marvinjoined
07:30:34  * adrianlangjoined
07:31:02  * jiversonchanged nick to activepoison
07:31:03  * hatmorequit (Quit: Page closed)
07:32:06  * francislquit (Quit: francisl)
07:33:25  <SomeoneWeird>lmao
07:34:25  * templaedheljoined
07:35:18  * jackyalcinejoined
07:35:40  * DingoEatingFuzz1joined
07:36:23  * Jackyquit (Ping timeout: 245 seconds)
07:37:17  * jergasonquit (Quit: jergason)
07:37:23  * rendarjoined
07:37:27  * recurrencequit (Quit: Computer has gone to sleep.)
07:37:57  * taterbasejoined
07:38:39  * fantasywind_joined
07:40:08  * Dimatterquit (Quit: Leaving...)
07:40:52  * mattgiffordquit (Remote host closed the connection)
07:41:21  * Axsuulquit (Ping timeout: 276 seconds)
07:41:24  * tjmehtaquit (Remote host closed the connection)
07:42:29  * taterbasequit (Ping timeout: 240 seconds)
07:42:44  * yacksquit (Ping timeout: 248 seconds)
07:42:48  * euforicquit (Quit: Linkinus - http://linkinus.com)
07:42:58  * euforicjoined
07:43:59  * iZiMOjoined
07:44:11  * darjeelingquit (Remote host closed the connection)
07:44:36  * D4RK-PH0ENiXjoined
07:44:42  * D4RK-PH0ENiXquit (Remote host closed the connection)
07:45:09  * D4RK-PH0ENiXjoined
07:45:29  * yacksjoined
07:45:34  * rfgarciajoined
07:45:54  * draginxquit (Quit: draginx)
07:47:49  * Xiphias3_joined
07:47:50  * Xiphias3quit (Disconnected by services)
07:48:01  * AvianFlujoined
07:51:29  * mossplixquit (Quit: mossplix)
07:52:02  * iZiMOquit (Quit: iZiMO)
07:55:07  * zalzanepart ("[20:45] 18<29devast8a> Man, that's cheaper than a fur suit")
07:55:14  * jackyalcinequit (Quit: Quit)
07:55:15  * jackyalcine_joined
07:55:50  * sdoublequit (Ping timeout: 252 seconds)
07:56:45  * SinnerNyxquit (Read error: Connection reset by peer)
07:57:10  * SinnerNyxjoined
07:57:31  * sdoublejoined
07:57:47  * liwen_joined
07:58:28  * SpXquit (Read error: Operation timed out)
07:59:01  * addisonjjoined
07:59:22  * phonebook_quit (Quit: bye for meow)
07:59:43  * ashnurjoined
08:00:19  * mossplixjoined
08:00:42  * Xiphias3_quit
08:00:58  * liwenquit (Ping timeout: 245 seconds)
08:01:05  * Xiphias3joined
08:02:39  * uiureojoined
08:02:51  * fantasywind_quit (Remote host closed the connection)
08:02:57  * WotWherejoined
08:03:02  * uiureoquit (Remote host closed the connection)
08:03:15  * bhavesh_a_pquit (Ping timeout: 252 seconds)
08:03:45  * rafmcquit (Remote host closed the connection)
08:03:52  * bhavesh_a_pjoined
08:04:18  * bhavesh_a_pquit (Client Quit)
08:04:18  * addisonjquit (Ping timeout: 245 seconds)
08:04:36  * broossquit (Quit: Rage Quit)
08:05:51  * TehShrike2joined
08:06:23  * TehShrikequit (Ping timeout: 245 seconds)
08:06:27  * iZiMOjoined
08:06:40  * generalissimoquit (Remote host closed the connection)
08:06:43  * Dead-ijoined
08:06:47  * mossplixquit (Quit: mossplix)
08:06:59  * bqquit (Ping timeout: 248 seconds)
08:07:22  * jsilverjoined
08:10:24  * DarkXPhquit (Quit: Nettalk6 - www.ntalk.de)
08:10:41  * iZiMOquit (Client Quit)
08:10:43  * maleknetjoined
08:10:54  * fayimorajoined
08:11:28  <fayimora>what kind of ops do you really write with nodejs? I mean you are not just going to replace a whole rails app with node right?
08:12:12  <mbalho>node is good for reading files and talking to networks
08:13:08  * Jackyjoined
08:13:11  <fayimora>okkkkk
08:13:24  <fayimora>so say you own twitter or facebook
08:13:32  <fayimora>how will you use node?
08:13:43  * ramprquit (Ping timeout: 244 seconds)
08:13:51  * ramprjoined
08:13:57  <fayimora>a separate app that simple returns files?
08:14:03  <fayimora>*simply
08:14:47  <timeturner>fyi, no one here will answer a question of that nature
08:14:55  <timeturner>too ambiguous
08:15:46  * maleknetquit (Ping timeout: 246 seconds)
08:16:39  * mykulquit (Quit: gg)
08:16:40  <SomeoneWeird><fayimora> what kind of ops do you really write with nodejs? I mean you are not just going to replace a whole rails app with node right? < you might not, but you sure as hell could
08:17:11  * jackyalcine_quit (Ping timeout: 252 seconds)
08:18:56  * ericmuyserquit (Remote host closed the connection)
08:19:26  * dnolenquit (Remote host closed the connection)
08:19:31  * aliemjoined
08:20:17  * mikolalysenkoquit (Ping timeout: 248 seconds)
08:20:53  * hichaelmartquit (Remote host closed the connection)
08:21:05  <fayimora>SomeoneWeird: ok that clears a few things
08:21:13  * ecthienderjoined
08:21:24  * SpXjoined
08:22:12  <fayimora>timeturner: how about, is node(or just say express) like rails for js? a backend framework
08:22:35  <fayimora>I'm just trying to understand it's use cases
08:23:35  <SomeoneWeird>yes, express is
08:23:43  * poverthaijoined
08:23:46  <SomeoneWeird>(is rails a mvc?)
08:25:20  <fayimora>SomeoneWeird: so generally, why will you use it as opposed to the straightforward rails?
08:25:30  * SpXquit (Client Quit)
08:25:33  * graeme_fjoined
08:25:33  * pretty_functionjoined
08:25:41  * disnetjoined
08:25:52  <SomeoneWeird>IO intensive apps are amazing in node
08:25:57  <SomeoneWeird>and because it's JS
08:26:04  * jsilverquit (Quit: Leaving...)
08:26:33  * poverthaipart ("Leaving")
08:27:09  * xonevjoined
08:27:14  * maleknetjoined
08:27:19  * rafmcjoined
08:28:03  <st_luke>fayimora: node is a systems programming environment
08:28:14  * LEDfanjoined
08:28:29  <st_luke>so comparing it to rails is tricky since rails is a web framework
08:28:38  <RigidWig>has anyone here set up nginx to route subdomains to different node ports?
08:28:55  * Jackyquit (Ping timeout: 252 seconds)
08:29:07  <ckknight>fayimora: node can be used for a whole slew of use cases, including web but not necessarily. I've made a few command-line apps using it.
08:29:08  * SpXjoined
08:29:50  <ckknight>I'd say it's most popular for web primarily because that's where most of modern development takes place.
08:30:02  <fayimora>hmmm cool
08:30:23  <fayimora>think i'm getting the hang of it now
08:30:59  * addisonjjoined
08:31:15  <ckknight>someone could build a top-to-bottom rails-style framework for node.js, but the general drive of the community has been (from what I've seen), lots of pluggable components
08:31:29  * xonevquit (Ping timeout: 251 seconds)
08:31:45  <ckknight>if you use something like rails, you have a lot of opinions forced upon you from the get-go.
08:31:59  * listochkinjoined
08:32:00  * ramprquit (Remote host closed the connection)
08:32:04  <ckknight>especially during the older versions of rails, SQL was pretty much implied
08:32:14  <ckknight>for instance.
08:32:50  * robotmayjoined
08:34:00  * kholladayjoined
08:35:05  <ckknight>node.js does have some opinions forced on you (such as IO calls being async-by-default or the CommonJS module pattern), but that just provides an empowering framework to build upon.
08:35:57  <SomeoneWeird>(async-by-default is good)
08:35:58  * Morkeljoined
08:36:25  <fayimora>Hmmmm
08:36:57  <ckknight>oh yeah, I totally agree, SomeoneWeird
08:37:58  * nodenxjoined
08:38:03  * addisonjquit (Ping timeout: 245 seconds)
08:38:12  <ckknight>the less assumptions a framework makes, the more developers can be empowered to be creative. The more assumptions it makes can help streamline development. It's a trade-off.
08:38:13  * SoulRavenjoined
08:38:21  <SomeoneWeird>on the other hand I havn't used rails/ruby so I can't really compare
08:38:27  * kholladayquit (Ping timeout: 248 seconds)
08:38:37  <SoulRaven>>> (.1 === .10)
08:38:37  <purr>SoulRaven: (boolean) true
08:38:39  <SoulRaven>???
08:38:48  <ckknight>SoulRaven: what's wrong with that?
08:39:06  <ckknight>>> .1 + .2 === .3
08:39:07  <purr>ckknight: (boolean) false
08:39:08  <ckknight>;-)
08:39:42  <SoulRaven>i know, i float, but sometimes......:))
08:40:43  <SomeoneWeird>i'm pretty sure the extra 0 would be dropped by v8 before running the expression
08:40:45  * fantasywind_joined
08:41:03  <SoulRaven>for any special reason?
08:41:09  <ckknight>even still, .1 is .10 as far as floating point is concerned.
08:41:14  * wllmtrngquit (Quit: wllmtrng)
08:41:29  <SomeoneWeird>because the 0 serves no use
08:41:33  <fayimora>thanks guys
08:41:40  * swaagiejoined
08:41:47  <ckknight>now .1 is not .10000000000000000000, it's 0.10000000000000000555
08:41:53  <SomeoneWeird>lol
08:42:16  <SoulRaven>another problem for my self, is way bit wise operation are only in 32bit, even if the number are stored internaly in 64
08:42:43  <ckknight>SoulRaven: bitwise ops occurs in 32-bit integer realm only, JS's Number is 64-bit floating point
08:42:50  <ckknight>which are two very different realms
08:43:07  * ^escquit (Read error: Connection reset by peer)
08:43:21  <SomeoneWeird>he knows, he's saying that a problem
08:43:24  * Morkelquit (Quit: Morkel)
08:43:25  <SomeoneWeird>(if i'm reading correctly)
08:43:32  <SomeoneWeird>that's8
08:43:36  <SomeoneWeird>s/8/*/
08:43:37  <SomeoneWeird>gr
08:43:50  <SoulRaven>a, i undestand now, but will have webkit midi , we can't have bitwise in 64bit?
08:44:00  <ckknight>Javascript does not have 64-bit integers.
08:44:28  <ckknight>the max integer it has, through the 64-bit float is a 53-bit integer.
08:44:55  <SoulRaven>way 53, what is the reason?
08:45:07  <ckknight>that's how IEEE-576 is specced
08:45:17  <ckknight>the integer part of it is 53 bits, the mantissa is 11 bits
08:45:35  <ckknight>wait, the mantissa is 10 bits, the sign is 1 bit
08:46:00  <ckknight>so you can accurately describe integers up to 53 bits by having the mantissa be 0
08:46:22  <ckknight>also, it's IEEE-754, not 576
08:46:27  * robotmayquit (Remote host closed the connection)
08:46:44  <SoulRaven>http://en.wikipedia.org/wiki/IEEE_floating_point
08:47:22  * mikolalysenkojoined
08:47:36  * Jamiltzquit (Quit: Jamiltz)
08:47:40  <SoulRaven>is it true, i have read that webmysql will be depreciated, is true?
08:47:43  * liwen_quit (Remote host closed the connection)
08:47:57  <RLa>what is webmysql?
08:48:12  * liwenjoined
08:48:27  * culturelabsquit (Quit: culturelabs)
08:49:14  <SoulRaven>http://caniuse.com/#feat=sql-storage
08:49:23  * Perjoined
08:49:46  * Perchanged nick to Guest38469
08:50:59  * ^escjoined
08:51:29  * mikolalysenkoquit (Ping timeout: 240 seconds)
08:52:00  * tjmehtajoined
08:52:07  * wolfesquit (Quit: Leaving.)
08:54:51  * mappumjoined
08:54:57  * D4RK-PH0ENiXquit (Remote host closed the connection)
08:56:36  * tjmehtaquit (Ping timeout: 244 seconds)
08:59:17  * Zolojoined
08:59:26  * fcoury_quit (Ping timeout: 255 seconds)
08:59:36  * justicefriesquit (Ping timeout: 245 seconds)
08:59:37  * Fofr_quit (Read error: Operation timed out)
08:59:42  * BruNeXquit (Ping timeout: 276 seconds)
08:59:42  * sveisvei_quit (Ping timeout: 276 seconds)
08:59:47  * Tivs____quit (Ping timeout: 248 seconds)
08:59:57  * mappumquit (Remote host closed the connection)
09:00:01  * romainhuetquit (Ping timeout: 245 seconds)
09:00:01  * Fofr_joined
09:00:04  * garannquit (Ping timeout: 252 seconds)
09:00:21  * salazr__quit (Ping timeout: 276 seconds)
09:00:49  * wycats_quit (Ping timeout: 252 seconds)
09:00:51  * notelliottcablequit (Ping timeout: 245 seconds)
09:01:35  * wycats_joined
09:02:31  * Morkeljoined
09:03:58  * Morkelquit (Client Quit)
09:04:28  * addisonjjoined
09:04:48  * [[zzz]]changed nick to [[zz]]
09:05:37  * dominictarrjoined
09:08:59  * taterbasejoined
09:10:16  * mossplixjoined
09:11:39  * epiloquequit (Remote host closed the connection)
09:11:59  * rfgarciaquit (Quit: Leaving...)
09:12:25  <Industrial>Why does the order of vendor scripts matter with brunch.js ? doesnt require() solve that?
09:12:54  * addisonjquit (Ping timeout: 252 seconds)
09:13:08  * Frippejoined
09:13:23  * taterbasequit (Ping timeout: 252 seconds)
09:13:36  * jonno11joined
09:13:47  * jimtquit (Remote host closed the connection)
09:15:49  * culturelabsjoined
09:15:53  * medikoojoined
09:16:27  * adambeynonjoined
09:17:22  * mikolalysenkojoined
09:17:38  * templaedhelquit (Quit: Leaving...)
09:17:39  * epiloquejoined
09:18:34  * epiloquequit (Client Quit)
09:18:50  * jonno11quit (Quit: jonno11)
09:19:02  * gavin481joined
09:19:16  * epiloquejoined
09:19:36  * CTPAXjoined
09:19:41  * gavin481quit (Read error: Connection reset by peer)
09:19:48  * prosquarejoined
09:22:09  * Drexjoined
09:23:45  * kelonyejoined
09:25:14  * phun-kyjoined
09:25:22  * rafmcquit (Remote host closed the connection)
09:25:40  * mandricquit (Quit: Computer has gone to sleep.)
09:26:56  <Drex>Can anyone point me to an example site using express & passport? I'm going through the tuts but am missing how to string it all up
09:27:37  * pooyajoined
09:27:42  * pvankouterenjoined
09:28:01  * mikolalysenkoquit (Ping timeout: 248 seconds)
09:28:35  * mandricjoined
09:29:07  * pretty_functionquit (Remote host closed the connection)
09:29:55  * zeepicklerjoined
09:31:33  * yacksquit (Read error: Connection reset by peer)
09:31:57  * uiureojoined
09:32:13  * charuruquit (Quit: charuru)
09:32:25  * Frippequit (Quit: Computer has gone to sleep.)
09:32:36  * disnetquit (Quit: Computer has gone to sleep.)
09:32:36  * zeepicklerquit (Quit: WeeChat 0.3.5)
09:32:56  * charurujoined
09:34:09  * activepoisonquit (Remote host closed the connection)
09:34:34  * Juglonejoined
09:34:41  * zeepicklerjoined
09:34:44  * charuruquit (Client Quit)
09:34:58  * Piotrasjoined
09:35:03  * TonkaTruckjoined
09:35:22  * DingoEatingFuzz1part
09:35:23  * mborojoined
09:36:37  * zeepicklerpart
09:38:56  * ramprjoined
09:39:09  * addisonjjoined
09:39:13  * uiureoquit (Remote host closed the connection)
09:40:16  * charliesomejoined
09:41:31  * yacksjoined
09:42:16  * andewjoined
09:42:36  * rfgarciajoined
09:44:06  * ganglerijoined
09:44:35  * Kakerajoined
09:44:58  * darjeelingjoined
09:45:02  * gangleriquit (Client Quit)
09:45:11  * jack150joined
09:45:31  * ganglerijoined
09:47:14  * rfgarciaquit (Ping timeout: 244 seconds)
09:47:26  * st_lukequit (Remote host closed the connection)
09:47:29  * addisonjquit (Ping timeout: 255 seconds)
09:47:46  * geNAZtjoined
09:47:51  * rampr_joined
09:48:03  * ramprquit (Ping timeout: 245 seconds)
09:48:41  * Guest18603joined
09:48:49  * Aartsiejoined
09:48:54  <jack150>in socket.io: is there a way to authenticate a user before a socket connection with handshake etc is established? right now anyone can connect to my websocket-server, initialize a handshake and only after that I check if the user is allowed and if not I disconnect the socket
09:49:06  * nmtmasonjoined
09:49:36  <SomeoneWeird>afaik, the handshake is needed to start communicating
09:49:42  <SomeoneWeird>so they can't auth without doing that
09:49:59  * Guest48828quit (Ping timeout: 240 seconds)
09:50:10  <jack150>I'm just worried about wasting resources
09:50:34  * graeme_fquit (Read error: Connection reset by peer)
09:50:46  <RLa>damn oracle, their newsletter unsubscribe link gives error 400
09:50:49  <RLa>bastards
09:51:12  <SomeoneWeird>lol'd
09:51:13  * sreeixquit (Quit: sreeix)
09:51:28  <RLa>"Bad name in the request: not a legal PLSQL identifer"
09:51:45  * Maxanijoined
09:51:52  <RLa>someone is waiting for plsql injection
09:52:41  <SomeoneWeird>heh
09:52:50  <mboro>anyone with i18next/webtranslate experience? I've read the documentation over and over but I simply can't make my changes persistent. it doesn't update the files in my project. here's my code: http://pastie.org/private/a4uwgyydrd9aiew6jo0gg. can anyone see what I'm doing wrong?
09:53:55  * jimmyffjoined
09:53:57  <mboro>when changing/deleting translations it always returns 200 OK, which is the weird thing
09:54:31  * mikolalysenkojoined
09:54:37  * chridaljoined
09:55:28  * foofoobarjoined
09:55:56  <SomeoneWeird>why?
09:56:34  * graeme_fjoined
09:56:44  * gangleriquit (Quit: Leaving)
09:56:44  * adhipgquit (Remote host closed the connection)
09:56:51  <WotWhere>beginner quest : howto change the directory where npm installs the packages? I have Node dir in PATH, but when i do echo PATH ... i get C:\...\Roaming\npm.. want to change that as i
09:56:52  * joshgilliesjoined
09:56:53  <WotWhere>think the packages will be installed there.. had a look at nodejsvars.bat.. %~dp0 .. i'm guessing must refer to the node dir itself
09:57:08  * adhipgjoined
09:57:19  * Piotrasquit (Ping timeout: 260 seconds)
09:57:46  * joshgilliespart
09:58:18  <SomeoneWeird>WotWhere, npm installs directories to ./node_modules
09:58:22  * maleknetquit (Ping timeout: 252 seconds)
09:58:35  <SomeoneWeird>unless you're talking about global installs, try npm config
09:58:36  * rampr_quit (Remote host closed the connection)
09:59:15  <WotWhere>yes i missed that will try, thanks
09:59:19  <listochkin>WotWhere: just a suggestion: add .\node_modules\.bin to your path. That way you won't need to install packages globally
10:00:03  * mossplixquit (Quit: mossplix)
10:00:04  * darjeelingquit (Read error: Connection reset by peer)
10:00:30  * ecthienderquit (Quit: gotta go)
10:00:51  * jack150quit (Quit: Page closed)
10:01:04  <listochkin>WotWhere: also you can install modules in the root directory of all your node projects. read more here: http://nodejs.org/api/modules.html#modules_loading_from_node_modules_folders
10:01:29  * virgilejolyjoined
10:04:26  * mermeladasjoined
10:04:43  * StErMijoined
10:04:51  * geNAZtquit
10:05:02  * mikolalysenkoquit (Ping timeout: 255 seconds)
10:05:15  * TonkaTruckquit (Quit: TonkaTruck)
10:05:15  * phun-kyquit (Quit: Leaving.)
10:05:33  <StErMi>Hi guys, I'm new to nodejs and I'm a bit confused with all level of callbacks and async. Please look at this simple esample (iterating on a for and making web requests): https://gist.github.com/4ad8696984f83f447da3
10:05:41  <WotWhere> I do want to install the pkgs in ...\nodejs\node_modules easier to maintain? or is there a better way?
10:05:55  * Aartsiequit (Remote host closed the connection)
10:06:00  * phun-kyjoined
10:06:04  <StErMi>My actual problem is that I need the correct apod (podcast object) value in the request callbacks, how can I do it?
10:07:39  * TehShrikejoined
10:08:01  * rafmcjoined
10:08:06  * sreeixjoined
10:08:30  * SvenDowideitquit (Changing host)
10:08:30  * SvenDowideitjoined
10:08:33  * emkeijoined
10:08:45  * SvenDowideitquit (Excess Flood)
10:09:18  * TehShrike2quit (Ping timeout: 245 seconds)
10:09:36  * taterbasejoined
10:10:17  * SvenDowideitjoined
10:10:24  * dookjoined
10:11:05  <Guest38469>Hi everybody
10:11:19  * Drexquit (Ping timeout: 260 seconds)
10:11:24  * Guest38469quit (Quit: Page closed)
10:11:58  * caffinequit (Ping timeout: 256 seconds)
10:12:39  * maleknetjoined
10:14:04  * taterbasequit (Ping timeout: 246 seconds)
10:14:34  * addisonjjoined
10:15:41  * mtsrjoined
10:16:54  * ramprjoined
10:20:38  * luisbugjoined
10:21:06  * SoulRavenquit
10:22:08  * mossplixjoined
10:22:14  * Swizecquit (Quit: Leaving...)
10:22:30  * graeme_fquit (Quit: Computer has gone to sleep.)
10:22:55  * nsolsenjoined
10:23:30  * sreeixquit (Quit: sreeix)
10:23:40  * yashjoined
10:23:46  * Jamiltzjoined
10:23:48  <yash>hello world
10:23:49  * gf3quit (Quit: LOLeaving)
10:23:53  * addisonjquit (Ping timeout: 245 seconds)
10:23:59  <yash>Im a beginner with node
10:24:07  <yash>i ran into a problem
10:24:36  <yash>i used fs to write a html file to browser
10:24:58  <yash>the browsers loads the css also.
10:25:02  * Piotrasjoined
10:25:13  <yash>surprisingly, the styles are not reflecting on the bbrowser
10:25:18  * caffinejoined
10:25:26  <yash>hi caffine
10:26:41  * pooyaquit (Quit: pooya)
10:27:16  <yash>write to me at yashwanth34@gmail.com if u have a solution to it
10:27:29  <yash>thanks in advance
10:27:35  * yashquit (Client Quit)
10:28:19  * TheJHjoined
10:28:35  <SomeoneWeird>X_X
10:29:00  * azhwkd|awaychanged nick to azhwkd
10:29:06  * andewquit (Remote host closed the connection)
10:29:32  * emkei_joined
10:30:58  * prosquarequit (Ping timeout: 256 seconds)
10:31:40  * mikolalysenkojoined
10:32:51  <chridal>I just thought; how awesome would it be to simply have a CLI type of thing to do EVERYTHING. E-mail, IRC, reading news etc.
10:33:08  * emkeiquit (Ping timeout: 252 seconds)
10:33:08  * teffquit (Ping timeout: 252 seconds)
10:33:37  <chridal>But that it would use at least some typography to distinguish between things.
10:34:27  * kholladayjoined
10:35:31  * teffjoined
10:35:38  * TehShrike2joined
10:35:41  <WotWhere>SomeoneWeird: i do want to install it globally.. cant find the .npmrc or the global config file or the .configure .. I used the msi Installer which installed node to the C:\program files\folder
10:35:45  <chridal>Say, in this case he encouraged us to respond to his e-mail. So, now I am in IRSSI, I would just drop down to a shell by some keycombo, where I could do for instance: "email adress@isp.com subject text". I know there are programs for it, but like a suite of applications that work very well together.
10:35:47  * yacksquit (Ping timeout: 248 seconds)
10:35:58  <SomeoneWeird>oh windows, dunno, WotWhere
10:36:48  * TehShrikequit (Ping timeout: 245 seconds)
10:36:48  * nicholasfquit (Ping timeout: 245 seconds)
10:36:57  * joehoylejoined
10:37:06  * leo2007joined
10:37:07  <WotWhere>SomeoneWeird: so moved it by cutting n pasting will have to change it one-by-one?
10:37:20  <SomeoneWeird>what are you trying to achieve?
10:37:55  * gf3joined
10:38:20  * emkei_quit (Ping timeout: 255 seconds)
10:38:28  * kholladayquit (Ping timeout: 245 seconds)
10:38:42  * emkei_joined
10:39:56  * Piotrasquit (Ping timeout: 244 seconds)
10:39:56  * josdeha_rtjoined
10:40:15  <WotWhere>SomeoneWeird: want to install Express in the nodejs\node_module folder.. where it should go right? not in Appdata\Roaming\npm which is my user dir
10:40:33  <SomeoneWeird>well cd to nodejs
10:40:37  <SomeoneWeird>then run npm install express
10:40:39  <SomeoneWeird>and it will install there
10:40:51  <SomeoneWeird>modules get installed locally to each project
10:41:10  <SomeoneWeird>so project1/node_modules might have ejs and express, while project2/node_modules might have async and jade or something
10:42:05  * rumpquit (Quit: rump)
10:42:11  * mikolalysenkoquit (Ping timeout: 248 seconds)
10:43:00  * rfgarciajoined
10:43:46  <WotWhere>SomeoneWeird: yes but express should be installed in the root \nodejs\node_modules\ so that its accessible globally.. or am i wrong
10:43:55  <SomeoneWeird>you are wrong
10:44:05  <SomeoneWeird>you need to install it again for each program you're using
10:44:58  * thealphanerdjoined
10:45:16  * ramprquit (Remote host closed the connection)
10:45:26  * waoquit (Ping timeout: 245 seconds)
10:45:37  * AdrienBraultjoined
10:45:45  <WotWhere>SomeoneWeird: so itll be downlded every time i want i use express.. or do i have to set the path to another projects folder to access
10:46:03  <SomeoneWeird>you only need to download it once for each project
10:46:08  <SomeoneWeird>it's like <1mb
10:46:23  * narsicjoined
10:46:24  * narsicquit (Changing host)
10:46:24  * narsicjoined
10:47:15  <mboro>anyone with i18next/webtranslate experience? I've read the documentation over and over but I simply can't make my changes persistent. it doesn't update the files in my project. here's my code: http://pastie.org/private/a4uwgyydrd9aiew6jo0gg. can anyone see what I'm doing wrong?
10:47:30  * rfgarciaquit (Ping timeout: 260 seconds)
10:48:09  * emkei__joined
10:48:45  * TehShrikejoined
10:49:12  * _pidjoined
10:49:29  * epiloquequit (Ping timeout: 240 seconds)
10:49:37  * epiloquejoined
10:49:39  * emkei_quit (Ping timeout: 256 seconds)
10:50:06  * addisonjjoined
10:50:09  * TehShrike2quit (Ping timeout: 248 seconds)
10:50:59  * terietorjoined
10:51:06  <WotWhere>so giving it the path to another projects folder wont work ex : ..\..\project1\express
10:52:35  <SomeoneWeird>it will, but that code will look messy
10:52:41  * daedelothjoined
10:53:48  * lochermjoined
10:53:57  * Juglonepart
10:54:20  * gf3quit (Quit: ZNC - http://znc.in)
10:54:29  * adhipgquit (Remote host closed the connection)
10:54:32  * emkeijoined
10:54:43  * nafisjoined
10:54:54  * stagasjoined
10:54:57  * emkei__quit (Ping timeout: 248 seconds)
10:55:04  * adhipgjoined
10:55:29  * [AD]Turbojoined
10:55:44  * gf3joined
10:56:22  <WotWhere>point taken.. i guess will have to set the key-value pars one-at-a-time as cant find .npmrc or $PREFIX/etc/npmrc
10:57:03  <WotWhere>actually cant find the etc dir either
10:57:05  * nicholas_quit (Ping timeout: 248 seconds)
10:57:09  * BruNeXjoined
10:57:16  * justicefriesjoined
10:57:18  * salazr__joined
10:57:22  * romainhuetjoined
10:57:22  * Tivs____joined
10:57:24  * Maxaniquit (Ping timeout: 260 seconds)
10:57:26  * notelliottcablejoined
10:57:29  * adrianFjoined
10:57:32  * sveisvei_joined
10:58:09  <nafis>hey can anyone recommend an authentication module for express? I have tried everyauth and passport but I am not fully satisfied
10:58:14  * fcoury_joined
10:58:18  * nicholasfjoined
10:58:40  * garannjoined
10:58:56  <SomeoneWeird>what's wrong with passport?
10:59:08  <WotWhere>Big oops found the npmrc :)
10:59:14  * adhipgquit (Ping timeout: 252 seconds)
10:59:16  * switzquit (Quit: Leaving...)
10:59:18  * addisonjquit (Ping timeout: 245 seconds)
10:59:18  * [[zz]]quit (Ping timeout: 245 seconds)
10:59:32  * josdeha_rtquit (Ping timeout: 252 seconds)
10:59:45  * stagasquit (Ping timeout: 248 seconds)
11:01:54  * Maxanijoined
11:03:06  * [[zz]]joined
11:03:30  * ganglerijoined
11:03:31  * supersymjoined
11:04:05  * CMTegnerjoined
11:04:08  * romainneutronjoined
11:04:43  * kuryakiquit (Ping timeout: 245 seconds)
11:04:59  * luisbugquit (Ping timeout: 260 seconds)
11:06:18  * extrawurstjoined
11:06:24  * TheFuzzballjoined
11:06:37  * extrawurstpart
11:06:43  * darjeelingjoined
11:07:01  * rafmcquit (Remote host closed the connection)
11:07:16  * Stilojoined
11:07:44  * thealphanerdquit (Quit: thealphanerd)
11:07:47  * AvianFluquit (Remote host closed the connection)
11:08:49  * stagasjoined
11:08:52  * mikolalysenkojoined
11:08:58  * klaemojoined
11:09:34  * klaemoquit (Remote host closed the connection)
11:10:33  * alexkaarequit (Ping timeout: 245 seconds)
11:10:53  * switzjoined
11:11:23  * jibayjoined
11:12:46  * graeme_fjoined
11:13:23  * hendorejoined
11:13:58  * jimmyffquit (Remote host closed the connection)
11:14:36  * beakyjoined
11:14:40  <beaky>hello
11:14:47  * klaemojoined
11:15:14  * leoj3njoined
11:16:53  * slaskisjoined
11:16:54  * p_l_a_y2joined
11:16:54  * p_l_a_yquit (Read error: Connection reset by peer)
11:18:42  * aslantjoined
11:19:13  * mtsrquit (Remote host closed the connection)
11:19:24  * mikolalysenkoquit (Ping timeout: 256 seconds)
11:19:33  * stagas_joined
11:19:40  * graeme_fquit (Quit: Computer has gone to sleep.)
11:20:37  * Dead-iquit (Quit: Computer has gone to sleep.)
11:21:23  * leoj3npart
11:21:32  * aslantquit (Remote host closed the connection)
11:21:52  <chridal>Anyone knows about a way to turn off quit anouncements in irssi?
11:21:58  * stagasquit (Ping timeout: 252 seconds)
11:21:58  * stagas_changed nick to stagas
11:22:26  * Dead-ijoined
11:22:40  <chridal>googled it. thanks anyway.
11:23:36  * Ziggy`quit (Ping timeout: 245 seconds)
11:23:45  * aslantjoined
11:23:49  * klaemoquit (Remote host closed the connection)
11:24:30  * rafmcjoined
11:25:38  * addisonjjoined
11:26:23  * aslantquit (Remote host closed the connection)
11:27:01  * aslantjoined
11:27:34  * GreenDogquit (Ping timeout: 246 seconds)
11:27:49  * mirkokjoined
11:28:25  * adambeynonquit (Quit: ["Textual IRC Client: www.textualapp.com"])
11:29:15  <marlun>Can anyone recommend a server-side request router if I want the simplest one which look like: route.get('/user/:id', f(req, res))? :)
11:29:18  * culturelabsquit (Quit: culturelabs)
11:29:34  * CMTegnerquit (Quit: CMTegner)
11:30:23  * rickibalboajoined
11:31:06  * _pidquit (Quit: Leaving.)
11:31:37  * mossplixquit (Quit: mossplix)
11:31:54  * jmanotojoined
11:32:20  * aslantquit (Ping timeout: 248 seconds)
11:34:43  * addisonjquit (Ping timeout: 245 seconds)
11:35:49  * Frippejoined
11:36:12  * stonebranchjoined
11:36:16  * mainjoined
11:36:51  * D4RK-PH0ENiXjoined
11:37:27  * Guest18603part
11:38:26  * bidjoined
11:39:12  * szarapkaquit (Quit: szarapka)
11:39:34  * szarapkajoined
11:40:30  * taterbasejoined
11:40:51  * ceborjoined
11:41:17  <bid>hi, i want to create a "class" module that will use events, i want it to be able to emit events. how can i do that?
11:42:14  <gildean>bid: easiest way is to have the module to inherit from events.EventEmitter
11:42:49  <SomeoneWeird>var a = function() { }; require('util').inherits(a, require('events').EventEmitter);
11:42:59  <bid>yes, but i cant manage to do that, foo.prototype = new events.EvenEmitter
11:43:11  <bid>ohh
11:43:11  <gildean>do as SomeoneWeird said
11:43:12  <bid>thanks
11:43:14  * jez0990_quit (Ping timeout: 255 seconds)
11:43:17  * _br_quit (Excess Flood)
11:43:21  * rfgarciajoined
11:43:45  * vBmjoined
11:44:13  <gildean>marlun: is express too much? imo it's not
11:44:18  * maleknetquit (Ping timeout: 245 seconds)
11:44:43  * taterbasequit (Ping timeout: 246 seconds)
11:44:45  * _br_joined
11:45:29  * klaemojoined
11:46:00  <marlun>gildean: No, I actually like express, but this time I only want a router (that works just like the one in express).
11:46:02  * mikolalysenkojoined
11:46:32  <SomeoneWeird>then only app.use(express.router);
11:46:36  <SomeoneWeird>and don't use anything else
11:47:43  * sreeixjoined
11:47:45  * rfgarciaquit (Ping timeout: 248 seconds)
11:48:32  <gildean>marlun: also did you search npm for router, as there seems to be quite a few from which to pick from
11:48:52  * vBmpart
11:48:55  <gildean>if you don't want to add express just to use one attribute of it
11:49:13  * _br_quit (Excess Flood)
11:49:38  * cpgchanged nick to cpg|away
11:49:39  * aslantjoined
11:50:00  * phun-kyquit (Remote host closed the connection)
11:51:15  * _br_joined
11:51:56  * TehShrike2joined
11:52:13  * TehShrikequit (Ping timeout: 245 seconds)
11:52:33  * StErMiquit (Ping timeout: 245 seconds)
11:53:47  * joehoylequit (Quit: Linkinus - http://linkinus.com)
11:54:18  * rafmcquit (Remote host closed the connection)
11:55:21  * joehoylejoined
11:56:22  * jmanotoquit (Remote host closed the connection)
11:56:38  * mikolalysenkoquit (Ping timeout: 255 seconds)
11:56:49  * mandricquit (Quit: Computer has gone to sleep.)
11:56:50  <bid>SomeoneWeird,gildean: doing this: util.inherits(foo, require('events').EventEmitter); destroy my object :( i mean i have this in another file: function foo(){}; foo.prototype.bar = function(){alert(111);}; after i do inherits to foo i have no bar.
11:56:56  * jmanotojoined
11:57:04  * WotWherequit (Read error: Connection reset by peer)
11:57:25  <SomeoneWeird>you have to add the inherit line before you add any prototypes
11:57:44  * Sunil_joined
11:58:02  <Sunil_>Hi All
11:58:14  <bid>that will make my code look bad :(
11:58:22  <Sunil_>Any body Help to read node js
11:58:23  <SomeoneWeird>how?
11:58:24  <SomeoneWeird>it's 1 line
11:58:31  <SomeoneWeird>Sunil_, what's up?
11:58:39  * k_89joined
11:58:52  * szarapkaquit (Quit: szarapka)
11:59:01  <Sunil_>I want to know about node js
11:59:10  <SomeoneWeird>what do you want to know?
11:59:36  <Sunil_>learning this JS
11:59:57  <Sunil_>how its work and what is the process to writing the code for the same???
12:00:20  <SomeoneWeird>huh
12:00:47  <bid>Sunil_: youtube, nodejs.org, google...
12:00:48  * draginxjoined
12:01:04  <Sunil_>and also what is the difference between jquery and node js?
12:01:06  * jmanotoquit (Ping timeout: 245 seconds)
12:01:10  * addisonjjoined
12:01:41  <gildean>Sunil_: jquery is a client side lib, node.js is a platform
12:01:50  <bid>not every javascript lib is nodejs...
12:02:13  <Sunil_>how?
12:02:30  <gildean>how what?
12:02:33  <SomeoneWeird>v8
12:02:40  <SomeoneWeird>and ryah
12:03:28  <Sunil_>gildren: sorry wrong ping
12:03:32  <bid>where should i paste my code... pastebin ?
12:03:32  * kelonyequit (Ping timeout: 248 seconds)
12:04:11  <gildean>bid: or gist.github.com that's what most people here use
12:04:30  <gildean>but that doesn't really matter
12:04:34  * Jkureijoined
12:04:43  * thirdknifequit (Ping timeout: 245 seconds)
12:05:24  <bid>yes,
12:05:39  * listochkinquit (Remote host closed the connection)
12:07:07  <Sunil_>SomeoneWeird: any update?
12:07:13  * TehShrike2quit (Read error: Connection reset by peer)
12:07:20  <SomeoneWeird>?
12:07:42  * yuya_joined
12:07:43  <Sunil_>as you said earlier "[17:30] <SomeoneWeird> v8"
12:08:25  <SomeoneWeird>what about it?
12:08:47  * admcjoined
12:09:21  * Sunil_quit (Quit: Page closed)
12:09:27  * sreeixquit (Quit: sreeix)
12:09:47  * Guest48828joined
12:09:50  * bidquit (Ping timeout: 256 seconds)
12:09:54  * rafmcjoined
12:10:33  * addisonjquit (Ping timeout: 245 seconds)
12:10:54  * terietorquit (Remote host closed the connection)
12:11:03  * TehShrike2joined
12:11:35  * sreeixjoined
12:11:39  * bidjoined
12:11:57  <bid>damn ISP
12:12:59  * rafmcquit (Remote host closed the connection)
12:13:17  * Frippequit (Ping timeout: 252 seconds)
12:14:20  * Guest48828quit (Ping timeout: 252 seconds)
12:14:33  * arnedebreejoined
12:14:38  * hendorequit (Ping timeout: 255 seconds)
12:14:57  * b|lotusjoined
12:14:59  * hendorejoined
12:15:07  * tokuminejoined
12:15:25  * arnedebreequit (Client Quit)
12:15:48  * cesconixjoined
12:17:01  * aslantquit (Remote host closed the connection)
12:17:27  <bid>can you guys have a look here: https://gist.github.com/4572367 do i only need to move function maker(){} declaration from maker.js to main.js?
12:17:30  * Jkureiquit (Quit: Leaving)
12:18:03  <bid>forgot to put module.exports = maker at the end...
12:19:40  * tombjoined
12:20:09  * hendorequit (Quit: Leaving)
12:20:11  * arnedebreejoined
12:21:12  * urlwolfquit (Remote host closed the connection)
12:21:59  * TehShrikejoined
12:22:18  <bid>no help? :\
12:22:19  * ggordanjoined
12:23:01  <gildean>bid: yeah, in that case you're adding the EventEmitters prototype afterwards
12:23:07  * mikolalysenkojoined
12:23:28  <gildean>bid: just move the inherits to the module itself
12:23:53  * TehShrike2quit (Ping timeout: 245 seconds)
12:23:56  * sreeixquit (Quit: sreeix)
12:24:35  * CMTegnerjoined
12:25:37  * nicholasfquit (Remote host closed the connection)
12:26:12  <bid>gildean: in that case should i call it in the mosue constructor?
12:26:12  * euforicquit (Quit: Linkinus - http://linkinus.com)
12:26:28  * swaagiechanged nick to swaagie[BBL
12:26:35  * swaagie[BBLchanged nick to swaagie[BBL]
12:27:55  * yuya_quit (Remote host closed the connection)
12:27:58  * draginxquit (Quit: draginx)
12:27:58  * marcooliveiraquit (Ping timeout: 240 seconds)
12:28:13  * mossplixjoined
12:28:17  * Sicpjoined
12:28:26  * yuya_joined
12:28:48  * yuya_quit (Remote host closed the connection)
12:28:48  * aslantjoined
12:28:54  * yuya_joined
12:30:21  * yorickjoined
12:31:02  * parallelquit (Remote host closed the connection)
12:31:16  * abhishivjoined
12:31:36  * paralleljoined
12:32:40  <gildean>bid: you mean inside funcion maker() { util.inherits..... ?
12:32:44  <gildean>that won't work
12:33:03  * stagasquit (Ping timeout: 245 seconds)
12:33:28  * nodenxquit (Ping timeout: 252 seconds)
12:34:28  * mikolalysenkoquit (Ping timeout: 248 seconds)
12:34:30  * arnedebreepart
12:34:49  * jetiennejoined
12:34:51  <bid>yes, dosnt work, also inside maker.js right after decalrtion of maker(){} i did require('utils').inhirts(...) dosnt work either...
12:35:07  <bid>very lmiting
12:35:12  <bid>limiting*
12:35:58  * parallelquit (Ping timeout: 245 seconds)
12:36:27  * cateyejoined
12:36:34  <gildean>hmm?
12:36:40  <gildean>that should work
12:36:46  * SasanRosequit (Ping timeout: 256 seconds)
12:36:52  * addisonjjoined
12:38:23  <bid>umm when i do var m = new maker; m.on('event',function(){}); i am getting node error. that on is not define.
12:38:28  * TehShrike2joined
12:38:37  * wao__joined
12:38:39  * foofoobarquit (Quit: Computer has gone to sleep.)
12:39:38  * Maxaniquit (Ping timeout: 252 seconds)
12:40:18  <bid>sorry my bad, it says that can;t call on on undifined. i have a different error checking, thanks for the help
12:40:22  * jetiennequit (Quit: jetienne)
12:40:31  * lushiousquit (Remote host closed the connection)
12:41:01  * TehShrikequit (Ping timeout: 256 seconds)
12:41:03  * taterbasejoined
12:42:58  * jetiennejoined
12:43:45  * rfgarciajoined
12:43:54  * wao__changed nick to wao
12:44:18  <SomeoneWeird>bid, var m = new maker();
12:44:38  * leo2007quit (Quit: rcirc on GNU Emacs 24.2.92.1)
12:44:51  * aslantquit (Remote host closed the connection)
12:45:24  * jetiennepart
12:45:40  * taterbasequit (Ping timeout: 248 seconds)
12:46:08  * addisonjquit (Ping timeout: 255 seconds)
12:46:16  * jetiennejoined
12:46:22  * geNAZtjoined
12:46:24  * Maxanijoined
12:48:48  * rfgarciaquit (Ping timeout: 264 seconds)
12:48:50  * subbyyyquit (Ping timeout: 260 seconds)
12:49:08  * mossplixquit (Quit: mossplix)
12:51:56  * stagasjoined
12:54:12  * Maxaniquit (Read error: Operation timed out)
12:54:43  <bid>SomeoneWeird, yes i had new maker() but i concat it with other method. i mean somthing like this: var m = new maker().make(); m.on(...); my make() function didnt; return this... so m was actualy an array..
12:55:15  <bid>all is good now. thanks guys
12:55:29  <bid>or girls..
12:55:53  * Xiphias3quit
12:56:48  * pvankouterenquit (Quit: pvankouteren)
12:57:29  * graeme_fjoined
12:57:58  * Ziggy`joined
12:58:44  * TehShrike2quit (Read error: Connection reset by peer)
12:59:57  * TehShrikejoined
13:00:15  * graeme_fquit (Client Quit)
13:00:26  * mikolalysenkojoined
13:00:52  * aut0matajoined
13:01:21  * SasanRosejoined
13:02:37  * Xiphias3joined
13:03:32  * azhwkdchanged nick to azhwkd|away
13:04:54  * tokumine_joined
13:04:57  * Maxanijoined
13:05:56  * joehoylequit (Quit: Leaving...)
13:05:58  * gangleriquit (Ping timeout: 245 seconds)
13:06:05  * Me1000quit (Quit: Leaving...)
13:06:58  * Xiphias3quit (Ping timeout: 240 seconds)
13:07:09  * Stiloquit (Quit: Textual IRC Client: www.textualapp.com)
13:07:32  * jmanotojoined
13:08:28  * tokuminequit (Ping timeout: 245 seconds)
13:09:00  * mynameisjoined
13:10:06  * manuelbiehjoined
13:10:12  * yuya_quit (Remote host closed the connection)
13:11:32  * urlwolfjoined
13:11:44  * TehShrikequit (Read error: Connection reset by peer)
13:11:48  * mikolalysenkoquit (Ping timeout: 248 seconds)
13:11:52  * urlwolf_joined
13:11:56  * jmanotoquit (Ping timeout: 245 seconds)
13:11:58  * urlwolfquit (Remote host closed the connection)
13:12:14  * mynameisquit (Client Quit)
13:12:17  * Virungajoined
13:12:23  * Xiphias3joined
13:12:28  * addisonjjoined
13:12:43  * Frippejoined
13:13:08  * TehShrikejoined
13:14:23  * uiureojoined
13:15:04  * ganglerijoined
13:15:38  * uiureoquit (Remote host closed the connection)
13:15:38  * jjbohnjoined
13:16:22  * kill-9_joined
13:17:25  * jmar777joined
13:19:02  * jmar777quit (Remote host closed the connection)
13:19:39  * jmar777joined
13:21:48  * addisonjquit (Ping timeout: 245 seconds)
13:23:47  * jmar777quit (Ping timeout: 248 seconds)
13:24:05  * dominictarrquit (Ping timeout: 256 seconds)
13:25:07  * zykes-_quit (Quit: Reconnecting)
13:25:23  * zykes-joined
13:26:04  * nmtmason_joined
13:26:06  * TomyLobojoined
13:26:22  * virgilejolyquit (Quit: This computer has gone to sleep)
13:26:33  * klaemoquit (Remote host closed the connection)
13:28:12  * stephenplusplusquit (Quit: Leaving.)
13:28:15  * Shrinkjoined
13:28:15  * Shrinkquit (Changing host)
13:28:15  * Shrinkjoined
13:28:24  * Zoloquit (Remote host closed the connection)
13:28:34  * Sorellajoined
13:28:52  * nmtmasonquit (Ping timeout: 248 seconds)
13:28:58  * Shrinkquit (Remote host closed the connection)
13:29:07  * Stilojoined
13:30:04  * Sorellapart
13:30:15  * ins0mniajoined
13:30:56  * bhavesh_a_pjoined
13:31:18  * dominictarrjoined
13:31:54  * klaemojoined
13:32:19  * timmywiljoined
13:33:06  * jmar777joined
13:36:16  * nicholasfjoined
13:36:53  * Frippequit (Ping timeout: 252 seconds)
13:37:17  * mynameisjoined
13:37:56  * mikolalysenkojoined
13:38:36  * listochkinjoined
13:40:28  * nicholasfquit (Ping timeout: 240 seconds)
13:40:31  * admcquit (Quit: Leaving.)
13:40:38  * Zolojoined
13:41:56  * listochk_joined
13:41:56  * listochkinquit (Read error: Connection reset by peer)
13:42:10  * paralleljoined
13:42:58  * simongjoined
13:44:12  * rfgarciajoined
13:44:26  * switzquit (Quit: Leaving...)
13:44:38  * paulbjensenjoined
13:45:00  <paulbjensen>are there any Node devs here from Bangalore?
13:45:14  * dominictarrquit (Quit: dominictarr)
13:45:30  * therealkoopajoined
13:45:33  * aslantjoined
13:46:23  * parallelquit (Ping timeout: 245 seconds)
13:47:57  * dericjoined
13:47:58  * romainneutronquit (Read error: Connection reset by peer)
13:48:00  * addisonjjoined
13:48:27  * romainneutronjoined
13:49:04  * rfgarciaquit (Ping timeout: 260 seconds)
13:49:40  * mikolalysenkoquit (Ping timeout: 248 seconds)
13:50:14  * Dead-iquit (Quit: Computer has gone to sleep.)
13:50:47  * aliemquit (Quit: Sto andando via)
13:50:47  * adhipgjoined
13:51:07  * tokumine_quit (Quit: tokumine_)
13:51:08  * mwoelkerjoined
13:51:17  * aliemjoined
13:51:20  * pretty_functionjoined
13:52:22  * yhpark_talkquit (Remote host closed the connection)
13:52:31  * yhpark_talkjoined
13:54:23  * listochk_quit (Remote host closed the connection)
13:54:35  * SamuraiJack_joined
13:55:31  * Frippejoined
13:56:28  * [AD]Turboquit
13:57:13  * addisonjquit (Ping timeout: 245 seconds)
13:57:25  * SamuraiJackquit (Ping timeout: 252 seconds)
13:58:49  * Dead-ijoined
14:00:13  * thirdknifejoined
14:01:47  * Dead-iquit (Client Quit)
14:01:57  * cesconixquit (Quit: Computer has gone to sleep.)
14:02:03  * topekquit (Read error: Connection reset by peer)
14:02:31  * topekjoined
14:03:12  * ramprjoined
14:03:32  * tokuminejoined
14:03:43  * TehShrike2joined
14:04:18  * TehShrikequit (Ping timeout: 245 seconds)
14:04:23  * jtomasrljoined
14:04:50  * narsicquit (Quit: Lost terminal)
14:06:15  * sgallaghjoined
14:07:31  * jpderyquit (Quit: Leaving...)
14:08:03  * Glacer232joined
14:08:04  * Glacer232quit (Max SendQ exceeded)
14:08:14  * jpderyjoined
14:08:19  * thl0joined
14:08:25  <jtomasrl>is it possible to response with a .json?
14:08:41  <nafis>exit
14:08:44  * nafisquit (Quit: leaving)
14:08:55  <SomeoneWeird>res.writeHead('content/type', 'application/json'); res.end(JSON.stringify(jsonstring));
14:08:59  <SomeoneWeird>iirc
14:09:37  * yawntchanged nick to yawnt`
14:09:46  <jtomasrl>yeah but that doesnt give me a www.example.com/response.json
14:10:41  * swaagie[BBL]changed nick to swaagie
14:11:00  * bright_dayjoined
14:11:03  * thl0quit (Remote host closed the connection)
14:11:30  <SomeoneWeird>?
14:11:58  * gangleriquit (Quit: Leaving)
14:12:03  * taterbasejoined
14:12:09  * tokuminequit (Quit: tokumine)
14:12:39  * andrehjrjoined
14:13:33  <jtomasrl>i was looking at twitter API and they response with .json files, something like this "http://search.twitter.com/search.json?q=blue%20angels&rpp=5&include_entities=true&result_type=mixed" so i was looking for something similar using node
14:13:50  * Anton_quit (Ping timeout: 244 seconds)
14:14:24  <SomeoneWeird>that's just a route
14:14:31  * thl0joined
14:15:05  * Zoloquit (Remote host closed the connection)
14:15:29  * mikolalysenkojoined
14:16:54  * taterbasequit (Ping timeout: 260 seconds)
14:17:37  <jtomasrl>so doing server.get ("/search.json" .... should be the same
14:17:42  * thl0quit (Remote host closed the connection)
14:18:12  * Anton_joined
14:18:34  <gildean>jtomasrl: yeah, but there's no need for the .json if the files aren't actually static
14:18:37  * jetiennequit (Quit: i love javascript and webgl. see http://pacmaze.com)
14:19:38  <gildean>unless you want to use that as a route parameter, but even then i'd prolly do app.get('/seach/:responsetype'.....
14:20:06  <jtomasrl>right
14:20:28  * jabberwockyquit (Remote host closed the connection)
14:21:13  * Frippequit (Quit: Computer has gone to sleep.)
14:22:39  * liwen_joined
14:23:10  * liwen_quit (Remote host closed the connection)
14:23:35  * addisonjjoined
14:23:38  * liwen_joined
14:24:14  * jmar777quit (Remote host closed the connection)
14:24:35  * rickibalboaquit (Read error: Operation timed out)
14:24:37  * bnoordhuisjoined
14:24:38  * azhwkd|awaychanged nick to azhwkd
14:24:49  * jmar777joined
14:25:27  * Stiloquit (Quit: Computer has gone to sleep.)
14:25:31  * Frippejoined
14:25:33  * liwenquit (Ping timeout: 245 seconds)
14:25:59  * epiloquequit (Remote host closed the connection)
14:26:46  * mikolalysenkoquit (Ping timeout: 246 seconds)
14:27:58  * charliesomequit (Quit: Textual IRC Client: www.textualapp.com)
14:28:15  * hansygjoined
14:28:31  * rurufufussjoined
14:28:53  * jmar777quit (Ping timeout: 245 seconds)
14:29:40  * rcamerajoined
14:30:06  * yawnt`changed nick to yawnt
14:31:04  * Zolojoined
14:31:11  * jakehowjoined
14:31:50  * stephenplusplus1joined
14:31:51  * stephenplusplus1quit (Client Quit)
14:31:58  * gregmorenoquit (Ping timeout: 240 seconds)
14:32:05  * rafmcjoined
14:32:11  * stephenplusplus1joined
14:32:23  * hansygquit (Remote host closed the connection)
14:32:30  * mynameisquit (Read error: Connection reset by peer)
14:32:43  * Jackyjoined
14:32:47  * addisonjquit (Ping timeout: 255 seconds)
14:33:09  * mynameisjoined
14:33:19  * gregmorenojoined
14:35:06  * stephenplusplus1changed nick to stephenplusplus
14:36:25  * squeakytoyjoined
14:37:00  * TehShrikejoined
14:37:13  * superloujoined
14:37:58  * TehShrike2quit (Ping timeout: 246 seconds)
14:39:05  * frasnycjoined
14:40:00  * Zoloquit (Remote host closed the connection)
14:43:44  * bright_dayquit (Remote host closed the connection)
14:44:14  * bhavesh_a_pquit (Quit: Leaving)
14:44:34  * _pidjoined
14:44:48  * rfgarciajoined
14:44:55  * rafmcquit (Remote host closed the connection)
14:46:14  * cateyepart
14:46:32  * jakehowquit (Ping timeout: 252 seconds)
14:46:54  * Rob_quit (Ping timeout: 252 seconds)
14:47:16  * kuplatup1uchanged nick to kuplatupsu
14:49:08  * rfgarciaquit (Ping timeout: 252 seconds)
14:50:57  * jabberwockyjoined
14:51:20  * BrantB_quit (Ping timeout: 252 seconds)
14:52:28  * SasanRosequit (Ping timeout: 240 seconds)
14:52:56  * mikolalysenkojoined
14:53:05  * superlouquit (Quit: Leaving)
14:53:48  * BrantBjoined
14:53:50  * pretty_functionquit (Remote host closed the connection)
14:54:08  * arnedebreejoined
14:54:15  * tonylukasavagejoined
14:54:17  * TehShrike2joined
14:54:35  * Aartsiejoined
14:54:55  <tonylukasavage>if I force publish a version of a module, is there anyway to convey to developers already using that version that they need an upgrade?
14:55:05  <tonylukasavage>Are there any flags to pass in an update/install call?
14:55:28  * TehShrikequit (Ping timeout: 240 seconds)
14:55:31  * andrehjrquit (Ping timeout: 248 seconds)
14:55:37  * b|lotusquit (Quit: brb)
14:56:44  * francisljoined
14:57:40  * N3Xjoined
14:57:56  * rafmcjoined
14:58:06  * andrehjrjoined
14:59:04  * jtomasrlquit (Ping timeout: 260 seconds)
14:59:09  * addisonjjoined
14:59:32  * TehShrike2quit (Read error: Connection reset by peer)
14:59:40  <tonylukasavage>or i guess a better way to phrase it would be, I just force published version x.y.z, how do i tell developers already using version x.y.z to update again?
14:59:48  <tonylukasavage>is it even possible for them to update again
14:59:49  <tonylukasavage>?
14:59:58  <tonylukasavage>or do they need to delete the module and reinstall
15:00:49  * kill-9_quit (Ping timeout: 248 seconds)
15:01:12  * jabberwockyquit (Ping timeout: 252 seconds)
15:01:25  * minghaijoined
15:01:31  * TehShrikejoined
15:02:15  <SomeoneWeird>they just need to npm update, afaik
15:02:17  * sliftyjoined
15:02:31  * emkeichanged nick to emkei_
15:02:35  * listochkinjoined
15:04:28  * mikolalysenkoquit (Ping timeout: 240 seconds)
15:05:23  * listochkinquit (Remote host closed the connection)
15:05:57  * defunctzombie_zzchanged nick to defunctzombie
15:06:02  <tonylukasavage>ugh, sorry, been on a code bender and my mind is inexplicably looking for the complicated solution. Thanks for instilling common sense SomeoneWeird.
15:06:11  * dominictarrjoined
15:06:59  * sliftyquit (Client Quit)
15:08:02  <beaky>I love node.js
15:08:28  * addisonjquit (Ping timeout: 245 seconds)
15:08:47  * jjbohnquit (Quit: Leaving...)
15:09:08  * V1joined
15:09:28  * uiureojoined
15:09:39  * V1changed nick to `3rdEden
15:10:22  * pretty_functionjoined
15:11:09  * jjbohnjoined
15:11:10  * sreeixjoined
15:11:36  * LEDfanquit (Remote host closed the connection)
15:11:38  * ceborquit (Quit: Leaving)
15:12:19  * frasnycquit (Quit: Leaving.)
15:12:36  * taterbasejoined
15:12:40  * soypiratejoined
15:13:43  * LEDfanjoined
15:14:13  * N3Xquit (Remote host closed the connection)
15:14:17  * CTPAX_joined
15:14:19  * brettlangdonjoined
15:14:29  * lishainikjoined
15:15:33  * CTPAXquit (Ping timeout: 245 seconds)
15:15:40  * paulbjensenquit (Quit: paulbjensen)
15:16:06  * joshfinniejoined
15:16:07  * stagas_joined
15:16:09  <brettlangdon>hey, anyone here live in the bay area? I am taking a trip to santa clara in march for PyCon and am curious as to places to see/not see
15:16:34  * rafmcquit (Remote host closed the connection)
15:16:50  * Maarten__joined
15:16:58  * taterbasequit (Ping timeout: 252 seconds)
15:17:36  * Slyquit (Remote host closed the connection)
15:17:52  * stagasquit (Ping timeout: 246 seconds)
15:18:02  * stagas_changed nick to stagas
15:18:29  * minghaiquit (Quit: Colloquy for iPhone - http://colloquy.mobi)
15:19:24  * mharschjoined
15:20:33  * mharschpart
15:21:40  * Slyjoined
15:22:21  * klaemo_joined
15:23:16  * aslantquit (Remote host closed the connection)
15:23:23  * hortinsteinjoined
15:23:37  * bitmagejoined
15:24:17  * aslantjoined
15:24:45  * graeme_fjoined
15:25:09  * klaemoquit (Ping timeout: 260 seconds)
15:25:16  * sliftyjoined
15:26:08  * weie_joined
15:26:24  * aslantquit (Remote host closed the connection)
15:26:27  * rcrowleyjoined
15:27:41  * weiequit (Ping timeout: 255 seconds)
15:27:52  * aslantjoined
15:28:09  * abraxas_joined
15:28:20  * uiureoquit (Remote host closed the connection)
15:29:37  * sdoublequit (Ping timeout: 248 seconds)
15:29:40  * bitmagequit (Quit: bitmage)
15:29:44  * sliftyquit (Client Quit)
15:30:07  * jez0990joined
15:30:21  * mikolalysenkojoined
15:31:06  * Jacky_joined
15:31:16  * Jackyquit (Ping timeout: 252 seconds)
15:31:22  * zz_runningskullchanged nick to runningskull
15:31:31  * sdoublejoined
15:32:10  * nanashiReijoined
15:32:24  * abraxas_quit (Ping timeout: 252 seconds)
15:32:36  <nanashiRei>I have returned! :D
15:33:00  <nanashiRei>and i have questions *innocent*
15:33:18  * pretty_functionquit (Remote host closed the connection)
15:34:19  <geNAZt>then hi and ask :D
15:34:20  * addisonjjoined
15:34:24  * thl0joined
15:34:42  * nmtmason_quit (Ping timeout: 256 seconds)
15:34:49  <nanashiRei>If i wanted to run functions/methods in a running instance of whatever node app, how would i acomplish that? My goal is, that a php backend should be able to send "messages" to node without using sockets and the like
15:35:09  * swaagiechanged nick to swaagie[BBL]
15:35:18  <nanashiRei>been searching google for hours now but i think i'm just missing the right words for this ^^
15:35:22  <geNAZt>you mean something like IPC ?
15:35:38  <nanashiRei>IPC being what?
15:35:45  <geNAZt>Inter Process Communication
15:35:52  <nanashiRei>sounds right :)
15:36:01  * nmtmasonjoined
15:36:20  * thl0quit (Remote host closed the connection)
15:36:30  * ramprquit (Remote host closed the connection)
15:36:38  <nanashiRei>just a wild guess, because of your nick, are you german, by any chance?
15:36:41  <nanashiRei>^^
15:36:43  <geNAZt>the only thing you need is a shared memory block
15:36:44  * prosquarejoined
15:36:50  <geNAZt>yes
15:36:51  <geNAZt>:D
15:36:54  <nanashiRei>Haha sehr cool
15:37:25  <nanashiRei>Wie wuerde ich da ran gehen in NodeJS? Gibts da bekannte libs/npm packs fuer?
15:37:48  <geNAZt>https://github.com/coderz/node-sysv-ipc
15:38:09  <nanashiRei>danke schau ich mir direkt mal an :)
15:38:10  <geNAZt>http://php.net/manual/de/ref.sem.php
15:38:15  <geNAZt>so würde ich das machen
15:38:24  * txgruppijoined
15:38:32  <nanashiRei>ich lese mal schnell drueber
15:38:41  * txgruppiquit (Client Quit)
15:38:52  * soypiratequit (Remote host closed the connection)
15:38:55  <nanashiRei>bisher nur webseiten gebaut ^^" keine ahnung von der tieferen materie
15:39:03  * txgruppijoined
15:39:16  <geNAZt>ist auch nicht der normalste fall, das man IPC für webseiten braucht
15:39:20  * MEMutable1000joined
15:40:24  * average_drifterquit (Ping timeout: 264 seconds)
15:40:42  * MEMutable1000quit (Client Quit)
15:41:07  * pifantasticjoined
15:41:13  * average_drifterjoined
15:41:21  * jw___joined
15:41:26  * jabberwockyjoined
15:41:44  * bitmagejoined
15:42:02  * Maxaniquit (Quit: Computer has gone to sleep.)
15:42:24  <nanashiRei>prob ist, kunde hat nen php backend mit cakephp und will jetzt ne high performance RESTful API ... und dann soll die auch noch steuerbar sein vom backend aus. Und weil ich echt keine lust hab, da jetzt jobs ueber mysql/mongo whatever zu implementieren und ich das child_process messaging kenne, dachte ich, ich frag mal obs da nicht was simples gibt ^^
15:42:46  * mynameisquit (Read error: Connection reset by peer)
15:43:02  <geNAZt>ja das cpm ist fast das selbe
15:43:03  <geNAZt>:D
15:43:07  <nanashiRei>im prinzip wollen die nur module aktivieren und deaktivieren koennen da waere ein job queue ja nun wirklich overkill
15:43:26  * mynameisjoined
15:43:42  * qwerty|workchanged nick to qwerty|hangover
15:44:18  * bitmagequit (Client Quit)
15:44:34  <nanashiRei>IPC sieht aber ganz nett aus, gibts da sicherheits bedenken? httpd rennt als www-data und nodejs als node-app, haut das so hin?
15:44:44  * N3Xjoined
15:44:45  * simongquit (Quit: Linkinus - http://linkinus.com)
15:45:04  * rfgarciajoined
15:45:13  <geNAZt>das sollte klappen, das man wie auch auf dateien schreib und leserechte geben kann
15:45:30  <geNAZt>es könnte aber immer ein prozess der das handle kennst mitfunken
15:46:02  <nanashiRei>Super, dann danke viel mals, ich probiere das mal und schaue wie es so laeuft
15:46:03  * francislquit (Quit: francisl)
15:46:18  <yawnt>dafuq
15:46:20  <nanashiRei>damn us layout ^^ zum coden aber viel cooler :D
15:46:25  <yawnt>ist es #node.de :D ?
15:46:40  * sreeixquit (Quit: sreeix)
15:46:42  <nanashiRei>Nein es ist NICHT no.de
15:46:45  <nanashiRei>ha!
15:46:48  * rcrowleyquit (Quit: Textual IRC Client: http://www.textualapp.com/)
15:46:50  * prosquarequit (Quit: Leaving.)
15:46:53  <Engin>I'll learn the shit out of node.js, so brace yourself for mind mismatch questions (i.e. I don't get why somethnig is designed the way it is) :)
15:47:18  * TehShrike2joined
15:47:18  <yawnt>yay ich kann mein deutsch verbessern
15:47:37  * thl0joined
15:49:00  <Engin>I started studying a minimal facebook application template which uses express -- which I'm not sure if it's the best way to start studying node.js
15:49:01  <yawnt>nanashiRei: geNAZt ahahah ich hab node-sys-v gemacht
15:49:13  <yawnt>ich und meine kollegen
15:49:45  * rfgarciaquit (Ping timeout: 256 seconds)
15:49:45  <geNAZt>ja dann weiß nanashiRei ja wen er fragen kann
15:50:09  <nanashiRei>u serious?
15:50:16  <yawnt>such auf githu
15:50:17  * TehShrikequit (Ping timeout: 256 seconds)
15:50:20  <yawnt>*github
15:50:27  * aMonikerjoined
15:50:27  <nanashiRei>jithup?
15:50:30  <nanashiRei>:>
15:50:41  <yawnt>https://github.com/coderz/node-sysv-ipc/commit/0985fe9e2c4042e150eff9f4c8048142777bf30b
15:50:48  <yawnt>das bin ich :P
15:51:35  * b|lotusjoined
15:52:13  * toonketelsjoined
15:52:54  * Zolojoined
15:52:58  * N3Xquit (Ping timeout: 240 seconds)
15:53:16  * toonketelsquit (Remote host closed the connection)
15:53:20  * klaemo_quit (Remote host closed the connection)
15:53:29  * aMoniker_joined
15:53:31  * ralphtheninjajoined
15:53:41  * jakehowjoined
15:53:42  * stephenplusplusquit (Quit: Leaving.)
15:54:16  * stephenplusplusjoined
15:54:20  * Kakeraquit (Ping timeout: 252 seconds)
15:54:26  * maleknetjoined
15:54:43  * aMonikerquit (Ping timeout: 245 seconds)
15:54:43  * aMoniker_changed nick to aMoniker
15:55:21  * uiureojoined
15:56:00  * uiureoquit (Remote host closed the connection)
15:56:44  * tonylukasavagequit (Remote host closed the connection)
15:57:08  * kuryakijoined
15:57:48  <Engin>hmm looks like .env isnot in effect when node is launched within cygwin
15:58:10  * taterbasejoined
15:58:17  * jakehowquit (Ping timeout: 255 seconds)
15:58:35  * Iszakjoined
15:59:44  * Anton_quit (Read error: Connection reset by peer)
16:00:11  * Venom_Xjoined
16:00:16  * ovaillancourtjoined
16:00:47  * mboroquit (Quit: leaving)
16:01:17  * mikealquit (Quit: Leaving.)
16:01:29  * foofoobarjoined
16:01:42  <Engin>thanks for the tremendous support, I would expect nothing less from 850 users!
16:02:01  <brycebaril>Heh -- I've not used it with Cygwin, Engin
16:02:08  * tombquit
16:02:35  <Engin>node executable takes .env into account ? or is it just for some other app host ?
16:02:41  * JumpMast3rjoined
16:03:10  <SomeoneWeird>why are you using cygwin?
16:03:10  * Kakerajoined
16:03:15  <brycebaril>Node should take the env into account, not sure about the details when running on windows, though.
16:03:17  * ralphtheninjapart
16:03:21  <Engin>because I always use it on windows :/
16:03:28  <SomeoneWeird>and if you're using cygwin, why are you using the windows version of node
16:03:31  <Engin>let's try with cmd.exe
16:03:48  * aliemquit (Quit: Sto andando via)
16:03:49  <Engin>no go
16:04:05  <Engin>there's cygwin version too ?
16:04:06  * TheJHquit (Read error: Operation timed out)
16:04:07  <Iszak>oh god everytime I use cygwin I feel severely limited.
16:04:47  <SomeoneWeird>why are you even using cygwin?
16:04:51  <brycebaril>What are you trying to set with your .env
16:05:00  <Engin>the content of .env is KEY=VALUE in seprate lines and trying to access them via console.log(process.env.FACEBOOK_APP_ID+':'+process.env.FACEBOOK_SECRET);
16:05:04  <Engin>fails
16:05:12  <SomeoneWeird>why are you even using cygwin?
16:05:20  <Engin>note that I'm executing this command from the global scope (one of the top commands)
16:05:28  <SomeoneWeird>why are you even using cygwin?
16:05:33  <SomeoneWeird>plz respond
16:05:41  <Engin>I already did
16:05:48  <Engin>that's my dev environment for everything else, that's what I suse
16:05:49  <Iszak>SomeoneWeird probably because they're on windows.
16:06:05  <Iszak>I once tried to use ruby on windows, I nearly went insane.
16:06:06  <brycebaril>well for now you could try just at the command-line:
16:06:06  <brycebaril>FACEBOOK_APP_ID="..." FACEBOOK_SECRET="..." node app.js
16:06:07  <SomeoneWeird>but why
16:06:15  <SomeoneWeird>thats just insane
16:06:21  * aliemjoined
16:06:21  <SomeoneWeird>why use cygwin and not a proper OS?
16:06:25  <Engin>yeah we could see that if it env fails completely or just the e.vn
16:06:44  * maleknetquit (Ping timeout: 248 seconds)
16:06:55  <Engin>yeah it works when I set the env var in the command line
16:07:01  <Engin>but node does not take .env into acocunt
16:07:08  <brycebaril>That's a start I guess
16:07:10  <Engin>neither in cmd.exe nor cygwin bash
16:07:48  * lresendejoined
16:08:00  <Iszak>Okay, lets not debate why windows is crap for development because it's lack of command line, lets just help this guy.
16:08:05  * Anton_joined
16:08:14  * Venom_Xquit (Quit: Venom_X)
16:09:49  <SomeoneWeird>set FACEBOOK_APP_ID=<id>
16:09:55  <SomeoneWeird>set FACEBOOK_SECRET=<secret>
16:09:57  <SomeoneWeird>node app.js
16:09:59  <brycebaril>Engin -- you could try something like this maybe? https://github.com/nodefly/node-foreman
16:09:59  <Engin>so I gave up on .env
16:10:10  <SomeoneWeird>that's how you use .env on windows^
16:10:36  * innociv_joined
16:10:51  <Engin>brycebaril: actually that's what heroku readme.md suggest me to use, but i looked it up only to find out it's a ruby thing... so there's node.js prot
16:11:04  * cesconixjoined
16:11:17  <brycebaril>That one I linked is a node specific one
16:11:21  * jarekjoined
16:11:23  <Engin>yeah, installing it
16:11:25  * kuryakiquit (Ping timeout: 246 seconds)
16:11:30  <Engin>let's see how npm global installation works here
16:11:32  <jarek>Hi
16:11:35  <brycebaril>I've not used it
16:11:44  * aMoniker_joined
16:11:45  <jarek>is there a Node.js module that would allow me to implement JSON-based data store?
16:11:47  * aMonikerquit (Ping timeout: 248 seconds)
16:11:48  * aMoniker_changed nick to aMoniker
16:11:53  * Virungaquit (Remote host closed the connection)
16:12:00  <jarek>I mean something simillar to database, but without all the cruft
16:12:09  * joshfinniequit (Read error: Connection reset by peer)
16:12:13  <jarek>I would like to only query the JSON tree from client
16:12:46  * sliftyjoined
16:12:50  <brycebaril>what sort of data? MongoDB does essentially that, but it might be a little heavier than what you're thinking.
16:12:52  <jsonified>jarek: https://github.com/dominictarr/kv maybe
16:13:20  <Engin>defientely heaver that what he expects :)
16:13:26  * innocivquit (Ping timeout: 252 seconds)
16:13:26  <dominictarr>jarek: I recommend checking out leveldb
16:13:28  * mynameisquit (Ping timeout: 245 seconds)
16:14:00  <jarek>thanks, I haven't heard about those projects
16:14:12  <dominictarr>leveldb is awesome
16:14:16  <Engin>hmm ruby foreman has higher priority in the PATH, how do I see where npm -g installs stuff
16:14:17  * joshfinniejoined
16:14:35  <jarek>I'm looking for something really simple, databases such as MongoDB or CouchDB seem to have terrible APIs
16:15:19  * gnuwilliamjoined
16:15:38  * draginxjoined
16:15:39  * draginxquit (Changing host)
16:15:39  * draginxjoined
16:15:42  <geNAZt>but they work good with json based documents / data
16:15:48  <Engin>maybe I should just launch a ubuntu instance in a virtual machine
16:15:59  * Jamiltzquit (Quit: Jamiltz)
16:15:59  * _mute_quit (Read error: Connection reset by peer)
16:16:07  * gnuwilliamquit (Client Quit)
16:16:25  * mute_joined
16:16:32  <Engin>I'm getting crappy errors and wwarnings everywhere it's very discouring
16:16:38  <brycebaril>Engin do you have a production environment in mind?
16:16:39  <Engin>http://pastie.org/5726303
16:16:42  <jarek>leveldb doesn't support JSON, right?
16:16:58  <Engin>brycebaril: well, I'll go with heroku to learn that platform as well
16:16:58  * brettlangdonquit (Quit: Textual IRC Client: www.textualapp.com)
16:17:09  <Engin>usually I just use very small VPS instances
16:17:21  * intabulasjoined
16:17:21  * Kudosjoined
16:18:21  <jsonified>jarek: I looked at https://github.com/rvagg/node-levelup recently but haven't actually used it yet. There seem to be a number of leveldb shim libraries, maybe somebody can recommend one.
16:18:32  <jarek>how about Redis?
16:18:48  <SomeoneWeird>ask rvagg
16:18:51  <SomeoneWeird>he's normally around
16:18:52  <SomeoneWeird>lol
16:18:59  * lohkeyjoined
16:19:03  <jarek>http://redis.io/commands
16:19:05  <jsonified>ho, levelup depends on leveldb. there you go.
16:19:12  * Jamiltzjoined
16:19:13  <jarek>actually, I think I don't want to use Redis :)
16:19:17  <brycebaril>Redis "supports" JSON as in you can store whatever you want. You would have to pull back the whole JSON string to look into the individual values though
16:19:18  * foofoobarquit (Ping timeout: 245 seconds)
16:19:39  * akramquit (Remote host closed the connection)
16:19:48  <SomeoneWeird>translate json into a hash
16:19:50  <SomeoneWeird>then you don't have to
16:20:00  <jsonified>Engin: you can `SET PATH=C:\Engin\mypath;%PATH%` to work around that, and finally override it in either system environment (for services) or user environment if you want it everywhere
16:20:12  * akramjoined
16:20:14  <brycebaril>Well, until your hash isn't simple key-(number/string/bool) pairs
16:20:18  * rurufufussquit (Remote host closed the connection)
16:20:25  * maleknetjoined
16:20:31  * foofoobarjoined
16:21:06  * kozerojoined
16:21:42  <Engin>jsonified: i know how to work around that, I want it to work as it is designed -- though I have a off start I guess as cygwin is not a primary platform
16:22:01  <jarek>which database will allow me to query it with websockets?
16:22:02  * francisljoined
16:22:08  <jarek>do I need to implement custom wrapper for this?
16:22:20  <brycebaril>jarek I don't know of any, you'd probably need a wrapper
16:22:34  <Engin>jarek: exposing a database directly to clients is nt realyl desireable
16:23:04  * kramutilsjoined
16:23:33  <jarek>Engin: my plan is to write *everything* on the client side, except for the code for authentication and database
16:24:03  <Engin>I believe that the proper way t o do it is to code your interface for it
16:24:11  <jarek>Engin: I don't mean exposing it directly, there should be some bridge that denies requests if user does not have proper permissions
16:24:24  <Engin>yeah, that brdge is you :)
16:25:04  * jzacshquit (Ping timeout: 244 seconds)
16:25:10  <brycebaril>jarek maybe S3? Let Amazon handle the permissions
16:25:15  * jjbohnquit (Quit: Leaving...)
16:25:29  * epiloquejoined
16:25:31  * generalissimojoined
16:26:10  * jzacshjoined
16:26:10  <Engin>node executable itself is just meant for development ? because it is performing very badly
16:26:10  * jzacshquit (Changing host)
16:26:10  * jzacshjoined
16:26:12  <jarek>brycebaril: are you sure they allow websockets?
16:26:42  * memoryleakjoined
16:26:44  * epiloquequit (Client Quit)
16:26:47  * `3rdEdenquit (Remote host closed the connection)
16:26:51  <jarek>brycebaril: I would need to pass the data from Amazon to Node.js server and then to client which is IMHO too much overhead
16:26:56  <brycebaril>jarek I don't think they do, but they do have authenticated shared access controls from the client. It sounded like you were trying to do everything on the client
16:27:09  * rafmcjoined
16:27:11  * epiloquejoined
16:27:17  <Engin>http://gyazo.com/be6f370aeb73fe458688872832255ffa
16:27:43  * yorickquit (Remote host closed the connection)
16:28:17  * mynameisjoined
16:28:21  <geNAZt>Engin: no that should not be that high
16:28:24  * Nom-quit (Ping timeout: 264 seconds)
16:29:09  <jarek>how about not using database at all? I would keep the data in plain .json file which would be read by server on startup and saved in 2-3 hour intervals?
16:29:12  <Engin>on re-request it is like 800ms
16:29:13  * `3rdEdenjoined
16:29:23  * Virungajoined
16:29:34  * hellopatjoined
16:30:03  * jnjoined
16:30:08  <brycebaril>jarek I guess what are you trying to build? how much are you planning to store? How fast does it need to be queried? What granularity do you need to look into it? These questions and more are really what you'd need to know to select your backing store/db solution.
16:30:09  <jarek>I'm not planning to keep gigabytes of data on the server, loading everything upfront should just work fine
16:30:11  <geNAZt>Engin: then you should debug your application. it is too slow
16:30:35  <jarek>brycebaril: I building issue tracker for my app, it will store only text
16:30:36  <Engin>ok I'Ll write a minimal node.js thing myself, maybe it was a bad idea to start with this template heroku created for me (minimal fb app)
16:30:39  * boogymanjoined
16:31:02  <geNAZt>you do request to external services ?
16:31:10  <geNAZt>if so maybe they are extremly slow
16:31:47  * rafmcquit (Ping timeout: 244 seconds)
16:31:57  <jarek>if I load all data into memory (as plain JS objects), then it could accessed faster than with any database, right?
16:32:16  * paralleljoined
16:32:18  <brycebaril>yes, so long as you don't need shared accuracy or durability
16:32:18  * addisonjquit (Remote host closed the connection)
16:32:18  <geNAZt>not if u have to sort or to search in it
16:32:19  <jarek>s/it could/it could be
16:32:22  * yacksjoined
16:32:27  <Engin>geNAZt: yeah, simplest node.js app is fast
16:32:56  <brycebaril>jarek what about SQLite?
16:33:04  <Engin>geNAZt: actually, it is supposed to external requests to fb servers... but since the login is not working at the moment, it shouldn't do any requets... so it's just static files being served
16:33:12  * prosquarejoined
16:33:27  <dominictarr>jarek: github.com/rvagg/node-levelup
16:33:38  <dominictarr>https://github.com/rvagg/node-levelup/wiki/Modules
16:33:51  <jarek>brycebaril: I would like to work with JS objects and JSON, not with SQL queries and custom data types
16:33:52  * `3rdEdenquit (Remote host closed the connection)
16:33:53  * maleknetquit (Ping timeout: 245 seconds)
16:33:59  * emkei_changed nick to emkei
16:34:43  <geNAZt>ndirty ? https://github.com/felixge/node-dirty
16:34:48  * sliftyquit (Quit: Leaving...)
16:35:00  <Engin>jarek: what is your end-goal btw ?
16:35:23  <jarek>Engin: what do you mean by end-goal?
16:35:34  <Engin>the big picture
16:35:44  <Engin>maybe you are experiencing a xy-problem
16:35:46  * mute_quit (Remote host closed the connection)
16:36:01  <jarek>Engin: I want to build issue tracker that consists from fat client and minimal server
16:36:11  * aMonikerquit (Ping timeout: 256 seconds)
16:36:15  <Engin>ok, what sort of data you want to store ?
16:36:22  <jarek>server should be used only for data storage and authentication
16:36:27  <Engin>my point is, json won't scale well anyway, since there's no built i nway to index data
16:36:28  <jarek>Engin: JSON
16:36:42  <Engin>so, you might end up using mongo anyway
16:37:05  <Engin>or you can use mysql in a modern way, i.e. minimal columsn that you want to index and data as json in a blob column
16:37:05  <brycebaril>I.e. if you're making an issue tracker you may have a predefinted structure and something like SQL would probably work just fine. If it is only key-value access dominictarr's solution is probably great
16:37:11  * mute_joined
16:37:19  * that4chanwolfquit (Quit: leaving)
16:37:29  <dominictarr>jarek: don't use kv, use leveldb
16:37:58  <dominictarr>from what you are saying, the thing you are looking for is leveldb
16:37:59  <jarek>dominictarr: neither of them works with JSON-based data structures
16:38:21  * langdonjoined
16:38:33  <Engin>why do you think json is the best choice ?
16:38:36  <dominictarr>jarek: https://github.com/rvagg/node-levelup#json
16:38:50  * sliftyjoined
16:38:55  <jarek>"LevelUP will automatically stringify your objects and store them as utf8 and parse the strings back into objects before passing them back to you."
16:39:02  <jarek>does it stringify whole objects?
16:39:24  <Engin>i don't see how you gonna query on json later on
16:39:32  <Engin>unless you use a json aware database
16:39:36  <jarek>so each time when key from object is accessed, it has to de-stringify the whole object?
16:39:47  <Engin>you can destringify in the client
16:39:48  * parallelquit (Remote host closed the connection)
16:39:51  <Engin>anyway :)
16:40:15  <Engin>you can cope with key-value databases to, by creating keys for every index column you want to access
16:40:19  * paralleljoined
16:40:34  * average_drifterquit (Ping timeout: 244 seconds)
16:40:38  <Engin>but there'll be normlization issues and you'll need to sync your data ffor many keys I think
16:41:24  <Engin>quick question, does node support CORS ?
16:41:39  * average_drifterjoined
16:41:45  <Engin>or we use a thin layer on top of it to make it support that
16:42:07  * arnedebreequit (Quit: arnedebree)
16:42:08  <brycebaril>node doesn't care either way, you can make Restify or Express care though
16:42:11  <dominictarr>there is no perfect database
16:42:18  <Engin>ok
16:42:23  <dominictarr>if you want that… write your own database...
16:42:34  <dominictarr>or find a database you can customize
16:42:45  <jarek>I think I will write a wrapper for MongooseJS
16:42:45  <Engin>jarek: I think you are trying to tackle the problem in a wrong way
16:42:54  <brycebaril>jarek I think you may want to think more about your access patterns and general requirements
16:42:59  <jarek>as it has the most JSON-like structures
16:43:36  <gildean>jarek: i'd go with a lighter module like mongojs instead
16:43:53  * abe_joined
16:43:56  <brycebaril>gildean I think he's considering mongoose without mongo behind it
16:43:58  * langdonquit (Quit: Leaving)
16:43:59  <jarek>well, I'm frontend developer so I might be a bit biased towards client
16:43:59  * sliftyquit (Quit: Leaving...)
16:44:02  * klaemojoined
16:44:02  <brycebaril>like just for the ORM
16:44:09  <Engin>eheh
16:44:28  <jarek>my ideal storage system would allow me to access it like regular JS object
16:44:34  <Engin>jarek: fat clients are the modern way to go, but your server side approach is not open minded
16:44:52  * parallelquit (Ping timeout: 248 seconds)
16:45:10  * pringlescanjoined
16:45:15  * mansoor-sjoined
16:45:19  * rfgarciajoined
16:45:53  <gildean>jsdb - a flatfile db that uses native js objects
16:45:53  * abe_quit (Read error: Connection reset by peer)
16:45:58  <gildean>now someone implement that
16:46:11  * abe_joined
16:46:17  <gildean>if you use the name, give credits to me
16:46:27  <Engin>:)
16:46:29  * blueadeptjoined
16:46:32  * paralleljoined
16:46:52  <Engin>well, mongo db pretty much did that actually
16:46:54  <Engin>hehe
16:46:59  * azhwkdchanged nick to azhwkd|away
16:49:36  * rfgarciaquit (Ping timeout: 245 seconds)
16:50:10  * Zoloquit (Remote host closed the connection)
16:50:27  * Frippequit (Quit: Computer has gone to sleep.)
16:51:19  * maleknetjoined
16:51:25  <jarek>too bad, it's already taken http://www.jsdb.org/
16:51:55  * jmar777joined
16:52:31  <jarek>I like the fact that schemas in MongoDB are JS objects
16:52:37  * Proditor_changed nick to Proditor
16:53:08  <jarek>I mean nogoosejs
16:53:16  <jarek>mongoosejs
16:53:20  <jarek>sorry for typos
16:53:46  * Nom-joined
16:55:03  <iksik>jarek: did You try jugglingdb? :)
16:55:10  <dominictarr>jarek: your ideal database is localStorage
16:55:23  * Slyquit (Remote host closed the connection)
16:55:31  <dominictarr>you should just make your server a proxy to a special browser, and use localStorage
16:55:46  <jarek>localStorage is flat and allows only strings
16:55:46  <iksik>it is (in my opinion), pretty nice wrapper for mongoose and few other modules
16:55:53  * slaskisquit (Quit: slaskis)
16:55:53  * Iszakquit
16:55:57  <jarek>but I like its minimalism
16:57:55  <jarek>iksik: isn't Mongoose already a wrapper for MongoDB?
16:58:06  * tombjoined
16:58:12  <jarek>so it's like a wrapper for a wrapper
16:58:35  <jarek>and I would write another wrapper on top of that that supports WebSockets :)
16:59:14  <iksik>jarek: exactly, but using jugglingdb you are using pretty the same models syntax for all database types - mysql, redis (afair), etc.
16:59:45  * bigkevmcdquit (Quit: outta here)
16:59:55  <iksik>another pretty nice solution is livedata + mongolite(?) in meteor ;-D
16:59:57  * wllmtrngjoined
17:00:32  <jarek>but I want to keep things simple...
17:00:43  * dominictarrquit (Quit: dominictarr)
17:01:20  * txgruppiquit
17:01:40  <iksik>[17:58:31] < jarek> | and I would write another wrapper on top of that that supports WebSockets :)
17:01:43  <iksik>no You don't ;P
17:02:21  * rodyhaddadjoined
17:02:32  <jarek>iksik: is it possible to query jugglingdb via WebSockets?
17:02:45  <iksik>nvm, any one is using express perhaps? i'm dealing with some kind of interlan redirect in it, where user will be redirected from /foo/bar to index.html (which is static file in public directory), but without changing url in browser
17:02:59  * aut0mataquit (Ping timeout: 248 seconds)
17:03:19  * kozeroquit (Read error: Connection reset by peer)
17:03:24  <iksik>jarek: there is demo on jugglingdb website which works in your browser - perhaps it is using websockets, humm unless it is using some kind of localstorage - wait -_-
17:03:47  * b1rkh0ffjoined
17:03:50  * liwenjoined
17:04:15  * liwen_quit (Read error: Connection reset by peer)
17:04:18  <Engin>does V8 has reflection support ?
17:04:20  * prosquarequit (Quit: Leaving.)
17:04:25  * `3rdEdenjoined
17:04:31  * codypchristianjoined
17:05:09  * codypchristianpart
17:05:10  <iksik>damn, i can't remember what was the address, lol ;-D
17:05:30  * kozerojoined
17:06:55  <pullonpoh>TL;DR. Are you talking about sockets saving to mongodb for example?
17:07:12  * stagasquit (Read error: Connection timed out)
17:07:16  <iksik>ehhh it was on railwayjs website, but it seems that this framework is changing into compundjs and they removed it ;S
17:07:49  * swaagie[BBL]changed nick to swaagie
17:07:55  * aut0matajoined
17:08:21  * jergasonjoined
17:09:16  * stagasjoined
17:09:23  * gregmorenoquit (Remote host closed the connection)
17:09:29  * rodyhaddadquit (Quit: Leaving)
17:10:39  * dnolenjoined
17:10:43  * rafmcjoined
17:11:41  * adrianlang1joined
17:11:48  * utf1000quit (Ping timeout: 248 seconds)
17:12:35  * Slyjoined
17:12:38  * `3rdEdenquit (Ping timeout: 245 seconds)
17:13:53  * adrianlangquit (Ping timeout: 245 seconds)
17:14:25  * addisonjjoined
17:14:47  * recamiliojoined
17:14:58  * johnkpaulquit (Ping timeout: 240 seconds)
17:15:47  * jmar777quit (Remote host closed the connection)
17:16:22  * jmar777joined
17:16:43  * Guest48828joined
17:17:07  * draginxquit (Quit: draginx)
17:17:53  * liwenquit (Remote host closed the connection)
17:18:16  * CMTegnerquit (Quit: CMTegner)
17:18:20  * bidquit (Ping timeout: 260 seconds)
17:18:23  * liwenjoined
17:18:36  * lohkeyquit (Quit: lohkey)
17:19:49  * D4RK-PH0ENiXquit (Remote host closed the connection)
17:20:22  * johnkpauljoined
17:20:29  <jarek>pullonpoh: yeah, I'm talking about accessing server storage from client via WebSockets
17:20:35  * jmar777quit (Ping timeout: 248 seconds)
17:21:27  * fantasywind_quit (Remote host closed the connection)
17:21:43  * pifantasticquit (Quit: Sleeeeeeeep)
17:21:51  <iksik>oh, jarek i was using websockets to get access to local mysql server (installed on clients machine) from my website
17:22:00  * fantasywind_joined
17:22:05  * salsamontesquit (Read error: Connection reset by peer)
17:22:51  <jarek>iksik: MySQL is plain ugly
17:22:54  * pretty_functionjoined
17:23:07  * rafmcquit (Remote host closed the connection)
17:23:16  <iksik>http://www.screencast.com/t/qex3PNzH
17:23:16  <iksik>;-D
17:23:30  * lwicksjoined
17:24:21  * jimbotquit (Ping timeout: 256 seconds)
17:24:42  <jarek>iksik: are you sure this is secure solution? :P
17:24:54  * z_joined
17:25:17  * jmar777joined
17:25:18  <nanashiRei>geNAZt: Funktioniert super :) danke nochma'
17:25:18  * z_changed nick to Guest11380
17:25:22  * jmar777quit (Remote host closed the connection)
17:25:29  <jarek>which Node.js module allows you to write database queries in client-side code?
17:25:30  <iksik>jarek: yup, it is ussing secure connection, and thata are encrypted on both sides
17:25:35  * Guest48828quit (Ping timeout: 255 seconds)
17:25:56  * utf1000joined
17:25:58  * jmar777joined
17:26:01  <pullonpoh>jarek: I just made a guestbook with node and mongodb. I used websockets, do you want the link?
17:26:01  <iksik>and still mysql (or other database) is installed on localhost of each client
17:26:07  * jimbotjoined
17:26:07  <pullonpoh>I dont know how much it serves you
17:26:20  * Guest48828joined
17:26:20  <jarek>pullonpoh: sure!
17:26:21  * bitmagejoined
17:26:32  * mikealjoined
17:26:44  <nanashiRei>jarek: srsly? db-mysql and stuff lets you do that, but ..
17:28:00  * jjbohnjoined
17:28:32  * gregmorenojoined
17:28:57  * cesconixquit (Quit: Computer has gone to sleep.)
17:29:10  * addisonjquit (Remote host closed the connection)
17:29:29  * daedelothquit (Remote host closed the connection)
17:29:40  * CMTegnerjoined
17:30:35  * jmar777quit (Ping timeout: 260 seconds)
17:30:36  * hortinsteinquit (Quit: Page closed)
17:30:55  * stephenplusplusquit (Quit: Leaving.)
17:31:16  * wllmtrngquit (Quit: wllmtrng)
17:31:32  <graeme_f>hey guys, I'm trying to use Basic auth with request - has it changed from the sample in the readme? looking in the code i can't see the auth() function or where it uses auth from the options - looks like it only checks the uri! :S
17:32:43  * Maarten__quit (Quit: Maarten__)
17:33:03  * wllmtrngjoined
17:33:10  * tjholowaychukjoined
17:33:19  * stonebranchquit (Remote host closed the connection)
17:33:44  <Engin>I liked it how node.js is a very thin layer
17:34:03  <Engin>the whole idea of having an app host as JS seemed very stupid at first though
17:34:05  * parallelquit (Remote host closed the connection)
17:34:21  <Engin>I still doN't get exactly how it is born
17:34:25  * jjbohnquit (Ping timeout: 248 seconds)
17:34:29  <Engin>I believe that it could be done in Java or C# too
17:34:31  <Engin>no ?
17:34:41  * paralleljoined
17:34:45  * SasanRosejoined
17:35:25  <graeme_f>ah - looks like this changed very recently…
17:35:38  <Engin>if V8 had reflection support, another thin layer could be written too actually, that'd make service implementation easier
17:35:42  * Omega_quit (Quit: Leaving.)
17:36:34  * foofoobarquit (Quit: Computer has gone to sleep.)
17:36:36  * TonkaTruckjoined
17:36:56  * Frippejoined
17:36:59  * mynameisquit (Quit: mynameis)
17:37:10  * addisonjjoined
17:37:22  <Engin>comments ?!
17:37:30  * PY1NBquit (Quit: Leaving.)
17:37:37  * jonno11joined
17:37:48  * pretty_f_joined
17:38:47  * jolleyjoejoined
17:38:50  * PY1NBjoined
17:39:15  * parallelquit (Ping timeout: 248 seconds)
17:39:27  * D4RK-PH0ENiXjoined
17:39:32  <jolleyjoe>hi... i am trying to install node.js from install.sh and it's trying to install a
17:39:48  <jolleyjoe>oops. install into /usr, can i specify prefix with this script? looking through it I couldn't find an easy place to change this.
17:40:06  <jolleyjoe>err... rather, i am actually installing npm... not node.js :)
17:40:07  * APackjoined
17:40:26  * pretty_functionquit (Ping timeout: 255 seconds)
17:41:15  * rafmcjoined
17:41:28  * Sembiancequit (Quit: brb)
17:42:29  <jarek>jolleyjoe: last time I installed node there was no install.sh
17:42:41  <jarek>jolleyjoe: I have just run ./configure --prefix=/usr/local
17:42:57  * jmar777joined
17:42:58  * fantasywind_quit (Remote host closed the connection)
17:43:05  <jolleyjoe>sorry, i made a mistake, i am actually installing npm, not node.js :P
17:43:11  * fantasywind_joined
17:43:12  <jolleyjoe>i installed node.js from apt-get
17:43:20  <jarek>jolleyjoe: NPM is part of Node.js now
17:43:26  <nanashiRei>jarek, git clone .... then configure and make install...
17:43:35  <jolleyjoe>oh...? maybe I have an older version of node.js in repo
17:43:42  <jarek>jolleyjoe: most Linux distros ship with outdates versions of Node.js
17:43:54  <nanashiRei>in 90% of all cases that works.
17:43:56  <jarek>jolleyjoe: building Node from source is very easy and fast
17:44:23  * adhipgquit (Remote host closed the connection)
17:44:45  * abe_quit (Remote host closed the connection)
17:44:48  <Engin>is there a packag of node that you could just extarct and use away when you added that to path -- i.e. that'd be your global npm repo
17:44:57  * adhipgjoined
17:45:03  * yacksquit (Quit: Leaving)
17:45:15  * rhojoined
17:45:15  * rhoquit (Changing host)
17:45:15  * rhojoined
17:45:33  * maleknetquit (Ping timeout: 245 seconds)
17:45:54  * rfgarciajoined
17:46:42  * mynameisjoined
17:47:20  * CTPAX_quit (Ping timeout: 252 seconds)
17:47:21  * Maarten__joined
17:47:48  * APackquit (Quit: APack)
17:48:58  * adhipgquit (Ping timeout: 240 seconds)
17:49:07  * lishainikquit (Quit: leaving)
17:49:13  * TheJHjoined
17:49:57  <AAA_awright>jarek: Technically it's a seperate project, like other libraries like zlib and openssl, npm ships with Node.js by default
17:51:23  * SasanRosequit (Ping timeout: 245 seconds)
17:51:54  * kuryakijoined
17:52:15  * tjmehtajoined
17:52:27  * gnuwilliamjoined
17:52:49  * gregmorenoquit (Remote host closed the connection)
17:52:52  * rcrowleyjoined
17:53:08  * rafmcquit (Remote host closed the connection)
17:53:16  * subbyyyjoined
17:53:20  * taterbasequit (Remote host closed the connection)
17:53:30  * CTPAX_joined
17:53:35  * rcrowleyquit (Client Quit)
17:53:52  * epiloquequit (Remote host closed the connection)
17:54:24  * mermeladasquit (Read error: Connection reset by peer)
17:54:44  * bDigitsjoined
17:54:50  <Engin>is is possible that expression doc is out of sync with the implementation
17:54:55  * mermeladasjoined
17:54:57  <Engin>because the example in the guide nor reference does not work
17:55:08  <Engin>as in `var app = express();
17:55:13  <Engin>`but express.createServer() works
17:55:37  * generalissimoquit (Remote host closed the connection)
17:56:05  <jolleyjoe>sweet, jarek i just build it from source
17:56:26  <jolleyjoe>I was running 0.6.12~dfsg1-1ubuntu1 before...
17:56:49  * Guest48828quit (Ping timeout: 248 seconds)
17:57:01  * lwicksquit (Remote host closed the connection)
17:57:10  * thl0quit (Remote host closed the connection)
17:57:13  * ovaillancourtquit (Remote host closed the connection)
17:57:25  * lwicksjoined
17:58:01  * maleknetjoined
17:58:30  * ovaillancourtjoined
17:58:35  * tonylukasavagejoined
17:58:46  * Inoperablejoined
17:59:55  * listochkinjoined
18:00:31  * jjbohnjoined
18:00:36  * addisonjquit (Remote host closed the connection)
18:04:04  * kuryakiquit (Ping timeout: 248 seconds)
18:05:00  * isaacbwjoined
18:05:42  * jimmyffjoined
18:05:56  * DoniRSquit (Remote host closed the connection)
18:06:22  * chorrelljoined
18:06:26  * Dead-ijoined
18:06:48  * tonylukasavagequit (Ping timeout: 245 seconds)
18:06:54  <xk_id>http://pastebin.com/XjCPW29K <-- Help! I get not "a"s, although there are <div class = "medk_gray layout gridViewDiv"> in 'body'.
18:07:10  * mikealquit (Quit: Leaving.)
18:07:35  * DoniRSjoined
18:07:53  * johnkpaulquit (Quit: ZNC - http://znc.sourceforge.net)
18:08:25  * jarekquit (Quit: jarek)
18:10:17  * ovaillancourtquit (Remote host closed the connection)
18:10:24  * jjbohnquit (Ping timeout: 264 seconds)
18:11:56  * mandricjoined
18:12:08  <mscdex>xk_id: iirc your selector there will look for an element hierarchy instead of a div with 3 classes
18:12:55  * CMTegnerquit (Quit: CMTegner)
18:13:19  <xk_id>mscdex: Thanks. I'll try to understand better what hierarchically means.
18:13:35  * stephenplusplusjoined
18:13:52  * johnkpauljoined
18:13:53  * Anton_quit (Ping timeout: 248 seconds)
18:13:56  * Maxanijoined
18:14:44  <mscdex>well, in this case it's looking for 'gridViewDiv' elements that are children of 'layout' elements that are children of elements with the 'medk_gray' class that are children of 'div' elements
18:15:10  <xk_id>Oh, I understand!
18:16:18  * cuttoothpart ("Leaving...")
18:16:20  * chovyquit (Ping timeout: 248 seconds)
18:16:21  * kishoreyekkantijoined
18:16:58  * qwerty|hangoverchanged nick to qwerty|thc|oxy
18:17:16  <xk_id>I think $('div .medk_gray, .layout, .gridViewDiv') will work :)
18:17:21  * Jamiltzquit (Quit: Jamiltz)
18:17:21  * lwicksquit (Ping timeout: 252 seconds)
18:18:12  * Jamiltzjoined
18:18:12  <xk_id>mscdex: Thanks!
18:18:25  * chovyjoined
18:18:48  * Inoperablequit (Quit: Rectified )
18:19:00  * Jamiltzpart
18:19:41  * draginxjoined
18:19:41  * draginxquit (Changing host)
18:19:41  * draginxjoined
18:20:02  * Anton_joined
18:20:20  * gregmorenojoined
18:20:24  * Inoperablejoined
18:20:26  * crwquit (Remote host closed the connection)
18:20:34  <mscdex>xk_id: i'm not sure just how many jquery selectors that cheerio supports, but you might try something like 'div[class="medk_gray layout gridViewDiv"]' for divs with exactly those classes in that order
18:21:01  * kozeroquit (Read error: Connection reset by peer)
18:21:09  * stafamusjoined
18:21:13  * phun-kyjoined
18:21:14  <skope>i returned back to jsdom because somehow cheerio killed my app
18:21:21  <xk_id>mscdex: I actually tried something similar, but forgot to add the double quotes (hence it didn't work). Thanks a bunch!
18:21:32  <mscdex>skope: how?
18:21:41  <skope>but i don't remember the error anymore. so pointless to discuss
18:21:41  * k_89quit (Quit: Leaving)
18:22:02  <mscdex>ok heh
18:22:14  * k_89joined
18:22:32  * recamilioquit (Ping timeout: 252 seconds)
18:22:34  <skope>it was way better tho. gotta figure it out some day
18:22:53  * sliftyjoined
18:23:01  * chorrellpart
18:23:07  <k_89>i am a fan of node, but not a big fan of mongo, are there any best practices established around dealing with sql databases using node, and are there some orm-like packages
18:23:14  <mistertwig> yes
18:23:16  * jeromegnjoined
18:23:26  <mistertwig>http://www.sequelizejs.com/
18:23:45  <mistertwig>k_89: http://www.sequelizejs.com/
18:24:10  <k_89>ok, thanks
18:24:14  <k_89>:D
18:24:43  * CTPAX_quit (Ping timeout: 245 seconds)
18:24:45  <mistertwig>i am also not a fan of using mongo for relational data :P
18:25:00  * sliftyquit (Client Quit)
18:25:02  <mistertwig>i like the idea of using hybrid solutions where they're fit
18:25:13  * Sicp`joined
18:25:24  <TonkaTruck>I see mongo misused in that way so often…more misuse with embedded docs than with relational data.
18:25:25  * emkeichanged nick to emkei_
18:25:28  * Sicpquit (Ping timeout: 240 seconds)
18:25:42  <skope>yes. sequelize is what i want
18:25:46  <k_89>yeah, same here. sql databases really help me at least to nail down business requirements
18:25:47  <mistertwig>nothing wrong with embedding documents
18:25:52  * DoniRSquit (Remote host closed the connection)
18:25:54  * jalcine_joined
18:25:54  * jalcine_quit (Changing host)
18:25:54  * jalcine_joined
18:25:54  <mistertwig>that's one of the huge benefits of it
18:26:01  <mistertwig>but lack of joins makes relational data a pain
18:26:02  <TonkaTruck>Mongo performs well as a relational db, too. Also, for scaling purposes, you're joining at the app level anyway…even with postgres, mysql, etc.
18:26:09  * Jacky_quit (Ping timeout: 248 seconds)
18:26:16  <mistertwig>not a fault with mongo
18:26:28  * wllmtrngquit (Quit: wllmtrng)
18:26:41  <mistertwig>i can fit some data much better into a relational database
18:27:17  * mute_quit (Remote host closed the connection)
18:27:32  <TonkaTruck>mistertwig: The rule I go by with mongo I learned at a mongo talk… store data as it's usually presented.
18:27:34  * DoniRSjoined
18:27:52  <mistertwig>a problem i encountered was something like storing forum posts
18:27:58  <mistertwig>yeah embedding posts into topic makes sense
18:28:05  <mistertwig>even storing the username instead of id makes sense
18:28:10  <mistertwig>in those embedded docs
18:28:14  * jw___quit (Quit: jw___)
18:28:21  <mistertwig>but then grabbing user info (post count, online)
18:28:32  <mistertwig>i couldn't really find an elegant solution in mongo for that
18:28:42  * mute_joined
18:29:18  <mistertwig>mongo's also missing a lot of random features i find useful like lack of min & max
18:30:09  <ins0mnia>mistertwig: take a look at http://orientdb.org
18:30:10  <mistertwig>like there are solutions for that but not as elegant
18:30:20  <mistertwig>ins0mnia: i think rethinkdb looks pretty interesting :P
18:30:33  * pooyajoined
18:30:38  <ins0mnia>mistertwig: rethinkdb is super awesome, missing acid transactions though
18:30:38  <mistertwig>site you linked me to is down right now ins0mnia
18:30:46  <mistertwig>oh nvm
18:30:47  <mistertwig>just slow
18:31:01  <TonkaTruck>mistertwig: max = db.myCollection.find().sort({"DATE":-1}).limit(1) heh
18:31:08  <ins0mnia>mistertwig: oh that should be http://www.orientdb.org/
18:31:11  <mistertwig>TonkaTruck: yeah but that isn't very efficient
18:31:24  * gregmorenoquit (Remote host closed the connection)
18:31:32  * generalissimojoined
18:31:33  <TonkaTruck>mistertwig: Is it less efficient than mysql? I'm asking.
18:31:37  <mistertwig>i didn't say it was impossible, just not as elegant a solution
18:31:44  <mistertwig>probably
18:32:03  * erichoceanjoined
18:32:08  <TonkaTruck>because it's more typing?
18:32:32  <mistertwig>no
18:32:51  <TonkaTruck>I have no idea how either of these stores work under the hood haha...
18:33:24  * Guest48828joined
18:33:35  <mistertwig>i'm not a mongo hater though
18:33:36  * qXs-webjoined
18:33:54  <TonkaTruck>All I know about data stores is: Make sure the data you access frequently is in memory.
18:33:57  * fayimoraquit (Quit: fayimora)
18:34:46  * listochkinquit (Remote host closed the connection)
18:34:51  <TonkaTruck>I use it all the time…and redis, mysql, postgres, and sql server. Working with it in node.js with mongoose is hard to beat heh.
18:35:02  * fayimorajoined
18:35:10  <mistertwig>sequelize is pretty good
18:35:19  <mistertwig>but i can never remember how to spell it
18:35:22  <mistertwig>for some reason
18:35:38  <Engin>express looks like it is designed to serve static content too and templates and stuff which is I'm not interseted at all. Is there a web service framework ?
18:35:40  <TonkaTruck>You spelled it right!
18:35:44  <Engin>with authorization support
18:35:50  <mistertwig>TonkaTruck: i copied and pasted off the website
18:35:57  <mistertwig>Engin: you can still use express with some modules
18:35:57  <tjholowaychuk>Engin we use it for rest only
18:35:59  <tjholowaychuk>FWIW
18:36:00  <TonkaTruck>Engin: testify is awesome…not sure about auth but easy to implement.
18:36:09  * CrawfordComeauxjoined
18:36:12  <mistertwig>there are auth modules that work in express
18:36:15  <TonkaTruck>"restify"
18:36:18  <mistertwig>or anything for that matter
18:36:18  * recamiliojoined
18:36:36  * epiloquejoined
18:36:48  <Engin>let me see
18:36:50  * gregmorenojoined
18:36:55  <TonkaTruck>I meant Restify not Testify, sorry. Restify + Mongoose is awesome if you just want a bad ass rest service.
18:37:13  <mistertwig>but yeah TonkaTruck how would you solve the forum post issue?
18:37:24  <Engin>I don't believe a strictly restfull interface is ideal but I'll check them
18:37:32  <Engin>(I don't think using PUT and DELETE is good)
18:37:51  * richcollinsjoined
18:38:26  <tjholowaychuk>why?
18:38:29  <tjholowaychuk>it's just a string
18:38:32  <tjholowaychuk>do whatever you want
18:38:48  <CrawfordComeaux>Can anyone see why the ntwitter stream isn't working here: https://github.com/crawfordcomeaux/superdash/blob/master/app.js#L116
18:38:51  <Engin>because requests with PUT and DELETE would require a preflight request
18:38:57  <tjholowaychuk>no
18:39:15  <TonkaTruck>Engin: I think what you're saying is for the purpose of cached fields, like "username" etc. Frankly, I would cache that with an rdbms, too. People don't realize how expensive joins are. Just make sure your app updates them when required, like when a user changes their username, etc. It's tedious but will run so much faster with such less resources.
18:39:20  * nmtmasonquit (Ping timeout: 252 seconds)
18:39:39  <mistertwig>TonkaTruck: but it's not even that sort of stuff
18:39:50  <mistertwig>i mean just displaying post count, online status, signature
18:39:55  <gildean>Engin: then just use post, it's not like rest actually means anything
18:40:02  <Engin>TonkaTruck: I don't know what you are talking about
18:40:09  <mistertwig>think he meant highlight me Engin
18:40:33  * mynameisquit (Ping timeout: 245 seconds)
18:40:35  <Engin>gildean: yeah, I believe in post only interfaces :)
18:40:37  * Guest48828quit (Remote host closed the connection)
18:40:48  <TonkaTruck>Engin: PUT and DELETE are part of HTTP/1.1 since 1999.
18:41:00  * Guest48828joined
18:41:03  * SpXquit (Read error: No route to host)
18:41:11  * V1joined
18:41:21  <TonkaTruck>Engin: Sorry, I typed that to mistertwig.
18:41:34  <Engin>TonkaTruck: if you care you can see what I wrote about it: http://ea.tl/2012/12/11/design-approaches-to-web-applications-revisited/
18:41:40  * V1changed nick to `3rdEden
18:42:10  <Engin>TonkaTruck: long story short, CORS specification dictates that any "non simple request" requires a pre-flight requets which is another roundtrip to the server
18:42:21  * tjmehtaquit (Remote host closed the connection)
18:42:25  <tjholowaychuk>Engin sounds more like you want jsonrpc or something
18:42:26  <Engin>anything other than HEAD, GET, POST is autmatically non-simple
18:42:30  <tjholowaychuk>something more abstract
18:42:31  * _br_quit (Excess Flood)
18:42:50  <TonkaTruck>Engin: I disagree. I think they're incredibly simple.
18:43:15  <tjholowaychuk>plus you can cache those pre-flight requests
18:43:17  <tjholowaychuk>not a big deal
18:43:24  <tjholowaychuk>premature optimization!
18:43:32  <Engin>you can't cache them
18:43:32  * tonylukasavagejoined
18:43:37  <tjholowaychuk>yes you can
18:43:39  <Engin>you can only cache them per resource
18:43:41  * tonylukasavagequit (Client Quit)
18:43:42  * Virungaquit (Remote host closed the connection)
18:43:53  <Engin>if resource is different i.e. foo.com/api/user/5
18:44:01  <Engin>if you operate on user/6 it is not in cache
18:44:16  <Engin>so ideal implementation is post only and single api entry point
18:44:27  <Engin>POST foo.com/api
18:44:52  <Engin>or you strictly stick with simple requests and use resources as you please, because it guarantees that no preflight will be made
18:45:11  * paralleljoined
18:45:31  <Engin>(though, some framework by default makes all the requests non-simple -- by introducing custom HTTP headers which is another clause for simple request -- you can only use a small subset of http headers in simple requests)
18:46:27  * zodiakquit (Remote host closed the connection)
18:46:36  <Engin>my reference implementation on (what I think of an) ideal web service framework is here https://github.com/engina/zita
18:46:47  * _br_-joined
18:46:56  <Engin>I'm considering porting it to node.js atm actually, to learn node.js mostly
18:47:40  * _br_-quit (Excess Flood)
18:47:44  * Guest48828quit (Remote host closed the connection)
18:48:03  * Guest48828joined
18:48:09  * tombquit
18:48:33  * mynameisjoined
18:48:50  * emkei_changed nick to emkei
18:49:02  * medikooquit (Quit: medikoo)
18:49:02  <TonkaTruck>Engin: https://github.com/engina/the-internet-book/blob/master/exports/clock.png did you make this?
18:49:04  * epiloquequit (Quit: leaving)
18:49:08  * rfgarciaquit (Quit: Leaving...)
18:49:11  <Engin>yes
18:49:18  * parallelquit (Ping timeout: 245 seconds)
18:49:22  <TonkaTruck>It's a really good illustration.
18:49:32  <Engin>it's kind of standard way of showing it actually
18:49:40  * epiloquejoined
18:49:43  * tombjoined
18:49:56  <TonkaTruck>Yeah, I've never seen it laid out like that…very simple and easy to understand.
18:50:20  <Engin>thank you, I appreciate it, because I wanted to make it in a way for laymen to understand
18:50:39  <TonkaTruck>I don't know anyone who wouldn't understand this.
18:50:55  * C0deMaver1ckjoined
18:51:04  <Engin>that's good to hear
18:51:17  * ahojoined
18:51:54  * tjmehtajoined
18:51:57  * slaskisjoined
18:52:04  * Guest11380quit (Remote host closed the connection)
18:52:16  * _br_joined
18:52:39  * z_joined
18:52:56  * _br_quit (Excess Flood)
18:53:06  * z_changed nick to Guest54729
18:53:46  * _br_joined
18:54:11  * skebcioquit (Quit: No Ping reply in 180 seconds.)
18:54:34  * disnetjoined
18:54:53  * skebciojoined
18:55:05  * mickabrig7joined
18:55:24  * pifantasticjoined
18:55:26  * mickabrig7quit (Killed (idoru (Spam is off topic on freenode.)))
18:55:33  * adhipgjoined
18:55:38  <CrawfordComeaux>Engin: did you happen to see a slidedeck from Instagram on how they improved their app's usability?
18:55:59  <CrawfordComeaux>UX, not usability
18:56:39  <TonkaTruck>mistertwig: you can also just do a manual reference to your user and join them in your app. So, don't embed the user in the post.
18:56:52  <Engin>CrawfordComeaux: I have no idea ?
18:57:08  * Guest54729quit (Ping timeout: 248 seconds)
18:57:12  <TonkaTruck>You'll _still_ beat the leading open source forum software haha…which makes like 1 billion queries per thread page.
18:58:09  * _br_quit (Excess Flood)
18:58:14  <TonkaTruck>I'm hyperbolizing…vBulletin makes 100 million queries per thread page.
18:58:17  <Engin>CrawfordComeaux: anything interseting ?
18:58:32  * stephenplusplusquit (Quit: Leaving.)
18:59:44  <mistertwig>TonkaTruck: but you'd need to do a query
18:59:46  <TonkaTruck>mistertwig: I guess my point is: if you want something that scales, you're not going to be using rdbms joins anyway…you're going to be joining at the app level. Mongo still has performance benefits over mysql in this case, and you'll _still_ have the option to embed docs where appropriate/convenient.
18:59:46  <mistertwig>for each post
18:59:48  <mistertwig>to get the user
18:59:57  * sideshowcoderjoined
19:00:02  <mistertwig>meh i don't think JOINs ruin scale
19:00:35  * adhipgquit (Ping timeout: 244 seconds)
19:00:36  <mistertwig>that's some major premature optimization :P
19:00:46  * _br_joined
19:00:51  <CrawfordComeaux>Engin: trying to find it right now, but the big takeaway for me was that they started trying to anticipate uploads/downloads (which I've seen before, but old habits tend to pull me toward the strictly A->B->C way )
19:01:15  <isaacbw>if you're comparing mongo to mysql, the crux is that you are gaining a lot in speed and ease of use and sacrificing a bit of functionality
19:01:16  * qXs-webDiego "meh"
19:01:17  * Stilojoined
19:01:29  <qXs-web>** digo
19:01:46  <isaacbw>there *are* situations where you want a relational database, but most web applications don't end up using those features anyway
19:01:51  <Engin>CrawfordComeaux: that does not make sense to me, care to elaborate ?
19:02:08  <mistertwig>isaacbw: i am not a mongo hater though, i see using them both in some cases would be a good solution
19:02:08  * zodiakjoined
19:02:14  * Exx2xxOjoined
19:02:28  * gregmorenoquit (Remote host closed the connection)
19:02:33  <isaacbw>mistertwig, the big thing for me is that mongo is just plain fun to use
19:02:38  <isaacbw>regardless of everything else
19:02:39  <TonkaTruck>http://stackoverflow.com/questions/1020847/mysql-joins-are-evil-cal-henderson
19:02:45  <mistertwig>i would agree :P
19:02:51  <CrawfordComeaux>Basically, take a pic & while you're modifying/tagging/commenting it, the app's already started uploading. They take a small hit on the backend when the have to scrap what's been received, but the outcome is typically that when you finally submit the rest of the metadata for the pic in the UI, you don't have to wait any further.
19:02:54  <TonkaTruck>I agree haha
19:03:26  * _br_quit (Excess Flood)
19:03:32  <isaacbw>if you have huge amounts of complex data then joins are probably going to be better optimized than what you can do at the application level
19:03:38  <mistertwig>yeah
19:03:50  * jimmyffquit (Quit: Computer has gone to sleep.)
19:04:00  <mistertwig>i mean i'm just trying to see this certain situation where the solution is pretty easy if you're using a relational database
19:04:04  * klaemoquit (Remote host closed the connection)
19:04:11  * gregmorenojoined
19:04:17  * qXs-webquit (Quit: Leaving)
19:04:24  <Engin>CrawfordComeaux: well, that only makes sense :)
19:04:28  <mistertwig>but with non-relational databases, the solution would be pretty inelegant and unoptimized
19:04:31  * francislquit (Quit: francisl)
19:04:50  <Engin>I'm getting crazy when people introduce plain stuff like rocket science
19:04:51  <CrawfordComeaux>Engin: interesting sidenote to that...CPUs do the same thing when "branching" (eg. processing if-else) and see a performance boost as long as they're right more than 50% of the time
19:05:16  * _br_joined
19:05:21  <isaacbw>wait, what CrawfordComeaux
19:05:32  <isaacbw>I want to read more about that
19:05:45  <CrawfordComeaux>isaacbw: about instagram or CPUs?
19:05:49  <Engin>yeah, CPUs nowadays do those stuff
19:05:53  <isaacbw>CPUs and guessing
19:06:05  <isaacbw>does it have a name I can search for?
19:06:08  <CrawfordComeaux>Engin: lol...sorry for my mundane convo contribution ;)
19:06:09  <Engin>prefetch maybe
19:06:11  <Exx2xxO>Hello ! I got a problem: I made a html-site, with external css and Jquery scripts etc...now I wanted to show the user when he/she is browsing to localhost:8124 this html I allready tried "fs.readFile" and then sending the data to the client...works pretty fine, but the html seems to be saved anywhere else when read and send so it can't find and use the .css and .js files which are linked in...
19:06:13  <Exx2xxO>...the page...?
19:06:29  <CrawfordComeaux>isaacbw: http://en.wikipedia.org/wiki/Branch_predictor http://en.wikipedia.org/wiki/Branch_predication
19:06:36  * stonebranchjoined
19:06:39  <isaacbw>that's really neat CrawfordComeaux
19:06:44  <Engin>http://en.wikipedia.org/wiki/Instruction_prefetch
19:06:47  <TonkaTruck>Mongo is also "so just cloud" http://itssojustcloud.com/
19:06:55  * jimmyffjoined
19:06:58  * SasanRosejoined
19:06:58  * beakyquit (Quit: Lost terminal)
19:06:59  <phun-ky>isaacbw: got yer coffee on yet? :P
19:07:07  * frogstarr78quit (Remote host closed the connection)
19:07:09  <isaacbw>two cups so far
19:07:28  <phun-ky> I'm on the wine now
19:07:35  <isaacbw>hah
19:07:38  * medikoojoined
19:07:53  * frogstarr78joined
19:08:03  <isaacbw>I'm planning on starting to homebrew, which will probably mark the start of a very steep health decline
19:08:16  * gnuwilliamquit (Quit: gnuwilliam)
19:08:41  * frogstarr78quit (Client Quit)
19:08:42  * _br_quit (Excess Flood)
19:08:48  <phun-ky>isaacbw: ah, becoming a hop head, (yes, pun on dope)
19:08:51  <phun-ky>sound nice
19:08:53  <Engin>CrawfordComeaux: in the old days, programmers were adviced to put the higher possbility if clause to the top, so that you avoid branching most of the time :)
19:09:52  <Engin>1) if X == 0 branch to A 2) B: do stuff that is more likely to happen 3) A: less likely to happen
19:10:05  <Engin>this is pseudo CPU instructions
19:10:12  <Engin>so you save the branch there bla bla bla
19:10:14  <CrawfordComeaux>Engin/isaacbw: slightly diff from prefetch. Prefetching is about taking instructions from memory and putting them in a cache (eg. L1 cache) because the cache can be accessed faster
19:10:15  <Engin>mciro optimizations
19:10:34  * akojoined
19:10:47  * _br_-joined
19:10:51  <Engin>CrawfordComeaux: prefetch is a subset of branch prediction I think... you predict, then prefetch :)
19:11:02  * infynyxxjoined
19:11:12  * addisonjjoined
19:11:12  * jtomasrljoined
19:11:41  <CrawfordComeaux>Engin: you might be right...or backwards. Been too long since my architecture classes to remember the order of ops ;)
19:11:51  <jtomasrl>how can i check for routes after redirecting to actions depending on the method and other params?
19:11:58  * jimmyffquit (Quit: Computer has gone to sleep.)
19:12:00  <jtomasrl>before*
19:12:38  * ahoquit (Ping timeout: 245 seconds)
19:12:49  * kelonyejoined
19:12:52  <CrawfordComeaux>Engin: I learned about little things like that long ago when I was trying to learn asm from old online tutorials. Virus writing & software cracking tutorials of old had all kinds of optimization gems in them :)
19:13:06  <Engin>you are a bad boy
19:13:20  <CrawfordComeaux>I didn't do either of those things. Just read up on them.
19:13:26  * sideshowcoderquit (Ping timeout: 252 seconds)
19:13:31  <Engin>want a classic article
19:13:35  * chakritjoined
19:13:36  <Engin>that is very fun to read ?
19:13:37  * chakritquit (Changing host)
19:13:37  * chakritjoined
19:13:44  <Engin>smashing the stack for fun and profit
19:13:45  <CrawfordComeaux>Plus, that stuff was always more interesting than standard asm tutorials
19:13:50  <Engin>it does not apply in todays technologies though
19:13:57  * _br_-quit (Excess Flood)
19:14:02  * jalcine_changed nick to Jacky
19:14:15  <CrawfordComeaux>Engin: Been there, read that ;) Totally classic.
19:14:16  * _br_joined
19:14:25  <Engin>yeah I was blown away when I read that one haha
19:14:32  * Sembiancejoined
19:14:40  <cainus>hey all.. does anyone have experience writing an auto-reconnecting network client? I'm just wondering what is usually done with all new client requests while it reconnects...
19:14:44  * nubaquit (Ping timeout: 248 seconds)
19:14:49  <Engin>but today OSes and CPUs prevent that to a large degree
19:14:51  <CrawfordComeaux>wait...doesn't apply in today's technologies? stack overflows?
19:14:59  <CrawfordComeaux>to a large degree, sure
19:15:10  * astureljoined
19:15:26  <asturel>hi, anyone knows a basic forum 'module' for nodejs?
19:15:32  <asturel>i havent found anything at all
19:15:34  * addisonjquit (Ping timeout: 244 seconds)
19:15:35  <CrawfordComeaux>but I'd say it's not an outdated article, but the seminal article for learning about the new techniques
19:15:39  <isaacbw>what do you mean cainus
19:16:00  <CrawfordComeaux>he wants a message board, I think
19:16:00  <Engin>CrawfordComeaux: yup, a must read.
19:16:07  * mute_quit (Remote host closed the connection)
19:16:16  * SpXjoined
19:16:18  <CrawfordComeaux>So...who wants to help build an app for the super bowl press room?
19:16:23  <asturel>yeah, like phpbb / punbb
19:16:25  <isaacbw>whaaat
19:16:32  <asturel>just for node :D
19:16:41  <cainus>isaacbw: say I'm writing a mysql driver, for example... I want it to auto-reconnect when it disconnects. what do I do with all the SQL calls it gets while it's reconnecting. I can imagine some possibilities, but is there a standard pattern?
19:16:49  * EyePulpjoined
19:17:16  * fantasywind_quit (Remote host closed the connection)
19:17:30  <isaacbw>cainus, it sounds like you should just buffer the SQL calls and then send them once it reconnects
19:17:35  <geNAZt>cainus: queue them up till the new connetion is established ?
19:17:39  * mute_joined
19:17:40  * nubajoined
19:17:42  <isaacbw>assuming you want reconnects to be transparent
19:17:50  <cainus>meaning all the asynch SQL calls should wait until reconnect
19:18:10  <isaacbw>make sure to preserve order
19:18:14  * blueadeptquit (Quit: Leaving)
19:18:17  <cainus>yeah... that's what I was thinking... do you think people are writing drivers like that though?
19:18:17  * fantasywind_joined
19:18:19  <isaacbw>why are you writing a mysql driver though
19:18:22  <CrawfordComeaux>dear github: please let me sort my search results!
19:18:37  <cainus>it's just an example... I'm writing a kafka driver
19:18:38  <isaacbw>cainus, if you're making something new, there's no reason to try to copy what's out there
19:18:41  <isaacbw>do something new
19:18:42  <isaacbw>!
19:18:51  * gregmorenoquit (Remote host closed the connection)
19:18:52  <CrawfordComeaux>mysql? I thought that was deprecated :P
19:18:54  <Engin>cainus: I think it is a complicated issue. What if the connection is because the server is restarted. That might introduce horrible bugs.
19:19:02  <isaacbw>CrawfordComeaux, what do you mean about a superbowl press room app?
19:19:12  * boogymanpart
19:19:13  * _br_quit (Excess Flood)
19:19:37  * gregmorenojoined
19:19:39  <cainus>Engin: I'd have to put a conenct timeout still of course. what other horrible bugs are you imagining?
19:19:46  <Engin>cainus: i mean in the case of a statefull server, it is a dangerous concept.
19:19:49  <jtomasrl>what good connect url router is out there
19:20:01  <CrawfordComeaux>isaacbw: I mean a social media dashboard for approx 5k journalists to see on two 42" tv screens, as well as a personal dashboard with a few very simple/cool/powerful features
19:20:09  <cainus>Engin: got an example?
19:20:14  <Engin>cainus: imagine a transaction is started and halfo f the commands are sent... and you sent the rest to the server after reconnect
19:20:16  * _br_joined
19:20:17  * tobmasterquit (Quit: No Ping reply in 180 seconds.)
19:20:22  <isaacbw>CrawfordComeaux, and you're looking for help?
19:20:28  <CrawfordComeaux>isaacbw: and a mobile interface that consists of a login page that leads to one big ass button
19:20:39  * tobmasterjoined
19:20:55  <CrawfordComeaux>isaacbw: Yep. I need help finishing the prototype today so I can negotiate the budget for the next two weeks (goes live in 7 days)
19:21:02  <CrawfordComeaux><----node n00b
19:21:23  * st_lukejoined
19:21:30  <isaacbw>mind if I PM you?
19:21:31  <CrawfordComeaux>I can pay a little for help on the prototype and pay a lot once a budget's agreed upon
19:21:35  <CrawfordComeaux>be my guest
19:21:38  <cainus>Engin: usually the database knows to roll-back failed transactions. In any case, I don't have transactions in this server (which is not really a database).
19:21:45  * tobmasterquit (Remote host closed the connection)
19:21:50  <Engin>cainus: it won't roll back the rest since there is no transaction
19:21:59  <Engin>cainus: it will execute them immediately
19:22:08  <Engin>but the commit as the last command will fail
19:22:23  <CrawfordComeaux>(why is it that unsolicited IRC PMs are so frowned upon these days? is it leftover from back when spambots rules the chat nets?)
19:22:35  * romainneutronquit (Quit: romainneutron)
19:22:40  * defunctzombiechanged nick to defunctzombie_zz
19:22:41  * dguttmanjoined
19:22:44  * TroyMGquit (Ping timeout: 248 seconds)
19:22:48  <Engin>CrawfordComeaux: 1) it does not let you show off 2) it is less efficient, information is passed one-on-one
19:22:55  * defunctzombie_zzchanged nick to defunctzombie
19:22:56  * coderarityjoined
19:23:03  <Engin>those are the reasons in proper order :)
19:23:10  * Aartsiequit (Remote host closed the connection)
19:23:11  <cainus>Engin: ahhh yeah... I see what you mean... still not a problem I'll have
19:23:43  <Engin>cainus: that approach is dangerous if you do "statefull" communication, if each of them are atomic, it looks safe.
19:23:52  <cainus>yeah they're all atomic
19:24:01  * ognyjoined
19:24:26  * TroyMGjoined
19:24:27  * _br_quit (Excess Flood)
19:24:43  * Frippequit (Quit: Textual IRC Client: www.textualapp.com)
19:24:46  * _br_joined
19:25:13  * ognyquit (Client Quit)
19:25:46  <coderarity>hey, I'm trying to attach a node debugger to a running process to debug some hard to find issue. it looks like I can get it into debug mode by sending it SIGUSR1, but how do I attach the debugger after that?
19:25:54  * rhoquit (Ping timeout: 256 seconds)
19:26:15  * ognyjoined
19:26:15  * ognyquit (Changing host)
19:26:16  * ognyjoined
19:26:19  * joshSzepjoined
19:26:19  <CrawfordComeaux>Engin: fair enough
19:26:48  <CrawfordComeaux>Well if anyone wants to take a look at the current state of the prototype, it's right here: https://github.com/crawfordcomeaux/superdash
19:27:09  * qwerty|thc|oxychanged nick to qwerty|SLIMER
19:27:29  <CrawfordComeaux>and if you figure out how to make this twitter stream work, I'll pay you $20: https://github.com/crawfordcomeaux/superdash/blob/master/app.js#L116
19:27:36  * eddybjoined
19:27:42  <eddyb>seriously
19:27:42  * tobmasterjoined
19:27:47  <eddyb>someone fix this already
19:27:50  <CrawfordComeaux>...says the guy who has about $600 to his name
19:27:58  * Industrialquit (Quit: WeeChat 0.3.7)
19:28:02  <Engin>haha
19:28:07  <Engin>that's a generous offer
19:28:08  <eddyb>2012-12-21: Version 3.16.0
19:28:19  <eddyb>^^ that v8 version broke node+npm+node-gyp+ffi
19:28:20  <Engin>unfortunetely I have nothing about this ecosystem :)
19:28:28  <CrawfordComeaux>Engin: not sure if serious about offer
19:28:34  <Engin>hahaha
19:29:18  <CrawfordComeaux>Correct me if I'm wrong, but you're just hanging out in here to troll us over our standard web frameworks?
19:29:43  * _br_quit (Excess Flood)
19:29:44  <Engin>no, I'm planning to do a little toy project with node.js to see what it's all about
19:29:54  <eddyb>I'm thinking node-gyp doesn't use system v8 when the installed node.js does
19:30:23  * gregmorenoquit (Remote host closed the connection)
19:30:40  <Engin>CrawfordComeaux: I don't call this trolling though, I'm asking questions that does not make perfect sense to me to understand design choices
19:31:03  <Engin>CrawfordComeaux: this is a project with many eyes on it, so I suppose, everything has a reason
19:31:08  <CrawfordComeaux>Engin: fair enough, though I was just jabbing with the "trolling" part ;)
19:31:17  <Engin>good :)
19:31:41  <CrawfordComeaux>referring to the project you're working on? can you share it?
19:31:59  <Engin>there's no code worth of sharing yet
19:32:07  * langworthyjoined
19:32:23  <CrawfordComeaux>what about the concept or why there are many eyes?
19:32:29  * woahjoined
19:32:32  <Engin>many eyes on nodejs
19:32:44  <coderarity>CrawfordComeaux: he's being literal
19:32:49  <coderarity>O_o
19:33:16  * _br_joined
19:33:17  * tjholowaychukquit (Quit: Leaving...)
19:33:22  * mikolalysenkoquit (Ping timeout: 246 seconds)
19:35:00  * _br_quit (Excess Flood)
19:35:01  <CrawfordComeaux>ooooh ok
19:35:17  <CrawfordComeaux>soooo...concept? :P
19:35:18  <Engin>I should avoid using pronouns on written communications :)
19:35:22  * `3rdEdenquit (Remote host closed the connection)
19:36:35  * fayimoraquit (Ping timeout: 248 seconds)
19:36:37  <Engin>it's a very simple idea which can be written in any technology with ease but I reather keep it to myself right now, telling things before you do it takes your motivation away :)
19:36:44  * Virungajoined
19:36:51  <Engin>(it's a scientific fact)
19:37:09  * dguttmanquit (Ping timeout: 260 seconds)
19:38:09  <eddyb>oh
19:38:13  <eddyb>THIS IS FUCKING GREAT
19:38:17  <jtomasrl>does this still work for connect? http://www.senchalabs.org/connect/middleware-router.html
19:38:37  <eddyb>I got node.js 0.8.12 built for v8 3.16
19:38:40  * dguttmanjoined
19:38:43  * dguttmanquit (Client Quit)
19:38:57  * taterbasejoined
19:38:58  <eddyb>node-gyp fails because it doesn't know it needs to use system v8
19:39:16  * _br_joined
19:39:24  <eddyb>if I downgrade system v8 to match node-gyp, then node doesn't work
19:39:25  * DrShoggothjoined
19:39:31  <CrawfordComeaux>true, though good collaboration requires it...not an issue here, but I hate that those two things compete against each other
19:40:03  * caffinequit (Quit: Leaving.)
19:40:16  * _br_quit (Excess Flood)
19:40:22  * RLaquit (Quit: Leaving)
19:41:04  <Engin>:) Alright, gotta hit the roads to go home now, later!
19:41:12  * jonno11quit (Quit: jonno11)
19:41:26  * DatumDropjoined
19:42:36  * SamuraiJack_quit (Remote host closed the connection)
19:43:26  * fantasywind_quit (Remote host closed the connection)
19:43:43  <CrawfordComeaux>isaacbw: thx for pointing me to http://progrium.com/localtunnel/ !!
19:44:04  <isaacbw>I nerdgasmed when I discovered it
19:44:47  * _br_joined
19:45:11  <phun-ky>Oo
19:45:32  * _br_quit (Excess Flood)
19:45:43  * fermion_quit (Quit: Textual IRC Client: http://www.textualapp.com/)
19:45:58  * dguttmanjoined
19:46:09  <phun-ky>i see possibilities there
19:46:27  <phun-ky>for producing staging environments with node and localtunnel
19:46:30  * tornadquit (Ping timeout: 252 seconds)
19:46:48  * timeturnerquit (Ping timeout: 245 seconds)
19:46:59  * st_lukequit (Remote host closed the connection)
19:47:11  <CrawfordComeaux>phun-ky: right?! stick THAT in your pipeline and jenkins it!
19:47:25  * klaemojoined
19:47:36  * Me1000joined
19:47:41  <phun-ky>I'm sticking it in my build environment project i'm working on
19:47:54  * MEMutable1000joined
19:48:10  * ognyquit (Quit: WeeChat 0.3.8)
19:48:18  * emkeiquit (Quit: Brain freeze)
19:49:27  <CrawfordComeaux>phun-ky: anything you can share?
19:49:46  * _br_joined
19:49:52  <phun-ky>CrawfordComeaux: beta is planned in february if all goes well
19:50:24  <TonkaTruck>that localtunnel site needs overflow: hidden; on the html tag.
19:50:24  <phun-ky>will add you to the list of people to notify
19:50:36  <phun-ky>TonkaTruck: details, details! :P
19:50:47  * _br_quit (Excess Flood)
19:51:09  * SasanRosequit (Ping timeout: 260 seconds)
19:51:33  * ognyjoined
19:51:34  * ognyquit (Changing host)
19:51:34  * ognyjoined
19:51:36  <TonkaTruck>haha I only bother pointing things like that out when the rest of it is so awesome.
19:51:48  * Me1000quit (Ping timeout: 245 seconds)
19:51:57  <CrawfordComeaux>soooo....an app for the super bowl press room...who wants to work on it with me for the next 2 weeks (either remotely or possibly by flying you into new orleans & housing you w/a local dev)? the audition/interview: help me finish the prototype today. Work beyond prototype will be paid, but unsure how much cause the client is too busy to negotiate budget without a prototype.
19:52:04  * urlwolf_quit (Ping timeout: 248 seconds)
19:52:11  * tjholowaychukjoined
19:52:47  <TonkaTruck>It's like when you meet a really cute girl…the first thing you say should be "omg you have the cutest little overbite"
19:53:09  * abejoined
19:53:11  * Xiphias3quit
19:53:49  * dguttmanquit (Quit: dguttman)
19:54:16  * _br_joined
19:54:17  <phun-ky>CrawfordComeaux: if you cover the flight from Norway and have a REALLY good reason to my wife and kid why I have to suddenly fly over to the US, yeah, I'm in :P
19:54:20  <isaacbw>so is kim dotcom no longer in trouble?
19:54:22  * DatumDropquit (Read error: Connection reset by peer)
19:54:22  * infynyxxquit (Remote host closed the connection)
19:54:47  * weiejoined
19:54:50  * DatumDropjoined
19:54:51  * akramquit (Read error: Connection reset by peer)
19:55:14  * akramjoined
19:55:18  * mattgiffordjoined
19:56:02  * _br_quit (Excess Flood)
19:56:46  * _br_joined
19:56:47  * chakritquit (Quit: leaving)
19:57:12  <CrawfordComeaux>phun-ky: out of OSL?
19:57:15  * jpderyquit (Quit: Leaving...)
19:57:45  * eschnoujoined
19:57:59  * weie_quit (Ping timeout: 252 seconds)
19:58:05  <phun-ky>CrawfordComeaux: hehe. yeah (you know that im kidding right?) :P
19:58:49  <CrawfordComeaux>lol I know
19:59:09  * motiooon_joined
19:59:22  <CrawfordComeaux>I was just curious to see the price, cause I may need to fly some people in, depending on what the budget winds up being
19:59:24  <phun-ky>hm. i think i really need a vacation tbh
19:59:42  <CrawfordComeaux>$882 round trip
19:59:56  <phun-ky>going to the netherlands in the easter, that should work, cheep beer, cheep food
19:59:59  <CrawfordComeaux>I think that's really pushing it, but for a short-notice int'l flight, that's pretty damned amazing
20:00:11  * sreeixjoined
20:00:11  * sreeixquit (Client Quit)
20:00:20  * motiooon_quit (Client Quit)
20:00:21  <CrawfordComeaux>come to NOLA & it'll all be free
20:00:28  <phun-ky>nola?
20:00:34  <CrawfordComeaux>New Orleans, Louisiana
20:00:43  <phun-ky>ah, hurricane city
20:00:47  * `3rdEdenjoined
20:01:08  <isaacbw>gumbo city
20:01:09  <phun-ky>great food, but you might want to pick up the check before water levels get to yer wallet
20:01:16  * _br_quit (Excess Flood)
20:01:20  <CrawfordComeaux>What? I thought NYC is the new hurricane city
20:01:38  * defunctzombiechanged nick to defunctzombie_zz
20:01:38  * joshfinniequit (Read error: Connection reset by peer)
20:01:39  <isaacbw>only the poor parts
20:01:47  <isaacbw>times square even kept power on through the damned thing
20:01:52  <CrawfordComeaux>phun-ky: if you cover the cost of flying wife/kid out, we'll house/feed you :)
20:02:05  <phun-ky>hehe, good to know
20:02:07  <CrawfordComeaux>and the two of them
20:02:16  <isaacbw>the only parts that were damaged were the parts where people couldn't afford to keep warm
20:02:19  * stevegilljoined
20:02:21  <xk_id>I am coding a crawler using Node.js. Does anybody have any advice how I can monitor what my crawler does while I'm waiting for the scraped output?
20:02:24  <CrawfordComeaux>though you wouldn't have any time to spend with them :P
20:02:29  * SpXquit (Quit: Leaving)
20:02:30  * pooyaquit (Quit: pooya)
20:02:31  <phun-ky>isaacbw: the hurricane in new york is similar to daily wind gusts in norway..
20:02:35  <phun-ky>they say
20:02:37  * SpXjoined
20:02:49  <isaacbw>we just didn't have the infrastructure to survive it
20:02:55  <isaacbw>(I'm in NYC)
20:03:06  <CrawfordComeaux>xk_id: what do you want to monitor and how often would the events you're monitoring occur?
20:03:09  * SpXquit (Client Quit)
20:03:10  <isaacbw>lower manhattan had no power for a week. It was eerie
20:03:27  * SpXjoined
20:03:36  * joshfinniejoined
20:03:43  <isaacbw>and the rain and flooding shut down the subways
20:03:43  <xk_id>CrawfordComeaux: Just the HTTP conversations, really. My crawler gets stuck before outputting the scrapings, so I'm trying to figure out exactly what my code does.
20:04:00  * pretty_f_quit (Remote host closed the connection)
20:04:06  * owen1quit (Ping timeout: 252 seconds)
20:04:08  <CrawfordComeaux>xk_id: console.log?
20:04:28  <geNAZt>xk_id: debugger ?
20:05:24  * xk_idslaps forehead.
20:05:35  * memoryleakquit (Quit: Linkinus - http://linkinus.com)
20:05:38  * stevegill_joined
20:05:45  <xk_id>Well, of course. Cheers :)
20:05:47  * _br_joined
20:06:07  <CrawfordComeaux>geNAZt: nodejs debugging?
20:06:12  * EyePulpquit (Quit: EyePulp)
20:06:18  <geNAZt>yes
20:06:20  * intabulasquit (Remote host closed the connection)
20:06:20  <isaacbw>I sometimes want to move to the netherlands because I miss the snow
20:06:33  * _br_quit (Excess Flood)
20:06:42  <isaacbw>global warming seems to be catching up to new england
20:06:43  * stevegillquit (Remote host closed the connection)
20:06:47  <phun-ky>isaacbw: better snow in norway
20:06:48  * thirdknifequit (Ping timeout: 245 seconds)
20:06:54  * stevegilljoined
20:06:54  * mykuljoined
20:07:06  <isaacbw>norway then!
20:07:22  <xk_id>London, too.
20:07:41  * stevegill_quit (Read error: Connection reset by peer)
20:07:44  <isaacbw>how would it be to only speak english in norway phun-ky?
20:07:53  <phun-ky>you can have 35 degrees celsius in the summer, and still travel to another place in norway to skii in + 4 celsiues ;)
20:08:04  * tkaemmingjoined
20:08:16  * _br_-joined
20:08:26  <phun-ky>isaacbw: well, not hard, since english is mandatory from 3rd grade (8yo)
20:08:33  <isaacbw>does london usually get snow? I thought it wast just rainy and dreary in the winter
20:09:02  <isaacbw>or you mean it's not as snowy as it used to be
20:09:20  <jtomasrl>is there a significant difference here? https://gist.github.com/4574789
20:09:21  <isaacbw>phun-ky, but people usually speak norwegian in day to day life, right?
20:09:43  * wolfesjoined
20:10:18  * thl0joined
20:10:26  <xk_id>isaacbw: plenty, plenty of snow in London atm :) which is entirely unusual for London.
20:10:50  <phun-ky>isaacbw: yes. but if you plan to work here, we offer a multitude of norwegian courses. we hired (at previous employer) a british dude and a tamil indian, sent them to the norwegian course, and that worked fine. but that really didnt matter, since we communicated in english every day none the less
20:11:06  <isaacbw>oh cool
20:11:42  <isaacbw>this is what central park is supposed to look like now :,( http://upload.wikimedia.org/wikipedia/commons/3/3a/Central_Park_walkway_under_snow%2C_NYC%2C_February_2010.jpg
20:11:48  * _br_-quit (Excess Flood)
20:11:58  * pooyajoined
20:12:53  * mattgiffordquit (Remote host closed the connection)
20:13:01  <phun-ky>nah, no more coding for tonight, gonna hit the sofa. talks
20:13:24  * phun-kyquit (Quit: Leaving.)
20:13:26  * caffinejoined
20:13:27  <coderarity>isaacs: hey, i'm working on this st bug, and i'm trying to set a breakpoint in st.js, but it says it's ambiguous. check this out: https://gist.github.com/dcea5462020b0bcc7fa3
20:13:50  <coderarity>i had to attach a debugger with a signal, and i can't restart it or the bug will go away
20:13:53  * wolfesquit (Ping timeout: 248 seconds)
20:13:55  * stonebranchquit (Remote host closed the connection)
20:14:13  * klaemoquit (Remote host closed the connection)
20:14:15  * jsilverjoined
20:14:59  * wizonesolutionsquit (Ping timeout: 248 seconds)
20:15:16  * _br_joined
20:15:38  * phun-kyjoined
20:15:47  <phun-ky>with the laptop of course ;)
20:15:58  * Exx2xxOquit (Quit: ChatZilla 0.9.89 [Firefox 18.0/20130104151925])
20:16:02  <phun-ky>hitchhikers guide to the galaxy is on
20:16:07  <geNAZt>does someone know a good memory snapshot module ?
20:17:13  * _br_quit (Excess Flood)
20:17:14  * lpinjoined
20:17:15  * serapathjoined
20:17:17  * wizonesolutionsjoined
20:17:17  * wizonesolutionsquit (Changing host)
20:17:17  * wizonesolutionsjoined
20:17:19  * richcollinsquit (Quit: richcollins)
20:17:23  * ggordanquit (Remote host closed the connection)
20:17:25  * N3Xjoined
20:17:44  * abequit (Remote host closed the connection)
20:17:44  * klaemojoined
20:17:45  * switzjoined
20:18:36  * No9quit (Ping timeout: 256 seconds)
20:18:49  * owen1joined
20:18:55  * MEMutable1000changed nick to Me1000
20:19:39  * infynyxxjoined
20:19:45  * No9joined
20:19:55  * Sembiancequit (Quit: be right back)
20:19:59  * Dead-iquit (Quit: Computer has gone to sleep.)
20:21:04  * BrantBquit (Quit: ["Textual IRC Client: www.textualapp.com"])
20:21:16  * _br_-joined
20:22:03  * AvianFlujoined
20:22:20  * _br_-quit (Excess Flood)
20:23:05  * BrantBjoined
20:24:07  * infynyxxquit (Remote host closed the connection)
20:26:03  * Sembiancejoined
20:26:44  * klaemoquit (Remote host closed the connection)
20:26:46  * _br_joined
20:27:00  * maleknetquit (Remote host closed the connection)
20:27:18  * MrNibblesquit (Excess Flood)
20:27:36  * _br_quit (Excess Flood)
20:27:49  * JumpMast3rquit (Quit: JumpMast3r)
20:28:33  * s3shsquit (Quit: s3shs)
20:29:58  <Engin>geNAZt: cat /dev/mem > snapshot :)
20:30:33  <geNAZt>and on windows :D ?
20:30:46  * _br_-joined
20:30:47  * abejoined
20:30:58  <Engin>hibernate the system :)
20:31:00  <Engin>hahah
20:31:03  * bradgignacjoined
20:31:28  * TheJHquit (Ping timeout: 240 seconds)
20:31:30  * N3Xquit (Remote host closed the connection)
20:31:40  * ephialtes480joined
20:31:41  <geNAZt>no :D
20:32:52  * _br_-quit (Excess Flood)
20:33:01  * Aartsiejoined
20:33:06  * fayimorajoined
20:33:35  * prosquarejoined
20:33:45  * addisonjjoined
20:34:10  * YoYquit (Ping timeout: 252 seconds)
20:34:15  * st_lukejoined
20:35:02  * abequit (Ping timeout: 256 seconds)
20:35:02  * aslantquit (Remote host closed the connection)
20:36:10  * thanpolas_quit (Ping timeout: 256 seconds)
20:36:17  * _br_joined
20:36:32  * kholladayjoined
20:36:33  * phun-kyquit (Quit: Leaving.)
20:37:04  * pringlescanquit (Quit: Leaving.)
20:37:15  * Dead-ijoined
20:37:42  * mynameisquit (Read error: Connection timed out)
20:38:08  * _br_quit (Excess Flood)
20:38:37  * mynameisjoined
20:38:54  <Engin>geNAZt: it indeed looks like overcomplicated
20:39:07  <Engin>I couldn't resist looking up myself :)
20:39:14  <Engin>http://www.forensicswiki.org/wiki/Tools:Memory_Imaging
20:39:23  <Engin>livekd looks like the best way
20:39:58  * memoryleakjoined
20:40:07  * jonno11joined
20:40:20  * wizonesolutionsquit (Ping timeout: 248 seconds)
20:40:33  * kholladayquit (Ping timeout: 245 seconds)
20:40:36  * YoYjoined
20:41:19  * piscisaureus_joined
20:41:30  * z_joined
20:41:48  * lresendequit (Quit: Zzzzzzz ...)
20:41:52  * wizonesolutionsjoined
20:41:52  * wizonesolutionsquit (Changing host)
20:41:52  * wizonesolutionsjoined
20:41:54  * z_changed nick to Guest85325
20:41:56  * charurujoined
20:42:16  * _br_-joined
20:42:18  * MrNibblesjoined
20:43:24  * _br_-quit (Excess Flood)
20:43:49  * Guest48828quit (Ping timeout: 256 seconds)
20:44:04  * woahquit (Ping timeout: 248 seconds)
20:44:36  * culturelabsjoined
20:44:55  * abejoined
20:45:51  * jocafajoined
20:46:47  * mykulquit (Quit: gg)
20:46:47  * abequit (Read error: Connection reset by peer)
20:46:58  * abejoined
20:47:20  * RigidWigquit (Ping timeout: 272 seconds)
20:47:47  * _br_joined
20:47:48  * subbyyyquit (Ping timeout: 248 seconds)
20:48:28  * woahjoined
20:48:38  * Yuffsterjoined
20:48:40  * _br_quit (Excess Flood)
20:48:48  * addisonjquit (Remote host closed the connection)
20:49:14  * EhevuTovjoined
20:49:48  * dook_joined
20:49:48  * dookquit (Read error: Connection reset by peer)
20:49:48  * dook_changed nick to dook
20:50:16  * kishoreyekkantiquit (Quit: kishoreyekkanti)
20:50:39  * richweskusjoined
20:51:05  * langworthy_joined
20:51:30  * timeturnerjoined
20:52:46  * _br_-joined
20:53:00  * Dead-iquit (Quit: Computer has gone to sleep.)
20:53:56  * _br_-quit (Excess Flood)
20:54:02  * fantasywind_joined
20:54:38  * langworthyquit (Ping timeout: 252 seconds)
20:54:38  * langworthy_changed nick to langworthy
20:55:56  * Dead-ijoined
20:57:12  * geNAZtquit
20:57:33  * intabulasjoined
20:58:17  * _br_joined
20:58:28  * fantasywind_quit (Ping timeout: 245 seconds)
20:59:13  * _br_quit (Excess Flood)
20:59:14  * recyclejoined
20:59:53  * Swadqjoined
21:00:02  * dericquit (Quit: deric)
21:00:20  <jtomasrl>connecting to mongodb each time i need to perform a query is the only way to work with?
21:00:36  * woahquit (Ping timeout: 248 seconds)
21:00:47  * DatumDropquit (Remote host closed the connection)
21:01:11  * Stiloquit (Quit: Textual IRC Client: www.textualapp.com)
21:01:17  * cleos_freyjoined
21:01:22  * recyclepart
21:01:47  * _br_joined
21:01:56  <isaacbw>jtomasrl, not at all
21:02:00  <isaacbw>why do you think that
21:02:20  <Virunga>jtomasrl: i think you can store a db reference after the connection, and use the keepAlive option
21:02:33  <isaacbw>(I'm not trying to be condescending, I just want to know your thought process so I can explain you properly)
21:02:39  <isaacbw>*to
21:02:51  <jtomasrl>couse every blog i read they do that, but i dont think is the best way
21:02:58  * subbyyyjoined
21:03:25  <isaacbw>you just need to connect once when your server starts up, then use that connection with each request
21:03:49  <isaacbw>I don't know if that leads to issues with a high volume of requests
21:03:57  <isaacbw>but it works fine
21:04:15  <jtomasrl>so i can store the connection in the global variable like server.db and then use that var?
21:04:15  * RigidWigjoined
21:04:28  * _br_quit (Excess Flood)
21:04:30  <isaacbw>yup
21:04:41  <isaacbw>the connection stays open and you can use it as many times as you want
21:04:41  <jtomasrl>i'll try
21:04:56  <isaacbw>why would you have it in server.db though? db is sufficient
21:04:58  * phrearchjoined
21:05:15  <isaacbw>try not to mess with existing objects in case you screw with internals
21:05:21  <jtomasrl>how can i access to it from another file?
21:05:28  * weiequit (Quit: Leaving...)
21:05:35  <phrearch>hi
21:05:48  * John[a]joined
21:05:55  <isaacbw>jtomasrl, you would put it in the exports object
21:06:05  <phrearch>does anyone know how to recreate an image from a Buffer when sending raw pixeldata from html5 canvas over the wire?
21:06:16  * _br_joined
21:06:25  <isaacbw>if you want many modules to use the same db connection, you could have a db.js module which connects to mongo on initialization, then exports the db object
21:06:35  <isaacbw>and every modules which requiers db.js will be using the same connection
21:06:37  <jtomasrl>and requre ir everytime i want to use it?
21:06:43  <isaacbw>yup
21:06:51  <jtomasrl>ok
21:06:55  <isaacbw>it will reuse the same object every time you require
21:07:04  * John[a]quit (Changing host)
21:07:04  * John[a]joined
21:07:09  <isaacbw>that's explained in the docs under 'modules' I think
21:07:29  <jtomasrl>how can i ensure that it's the same connection and not a new one
21:07:49  <nanashiRei>Does anyone know a really good and helpful EventEmitter + Domain tutorial?
21:08:00  * kuryakijoined
21:08:19  <isaacbw>jtomasrl, you don't have to ensure it. require("") will only execute the module once and every subsequent require() will use the same exports
21:08:23  * tokuminejoined
21:09:20  * blazes816joined
21:09:44  * _br_quit (Excess Flood)
21:10:02  * listochkinjoined
21:10:26  * intabulasquit (Remote host closed the connection)
21:12:12  * John[a]changed nick to John
21:12:23  * Johnchanged nick to lo
21:12:53  * lochanged nick to Guest93713
21:13:18  <isaacbw>what's the equivalent of a <script src="myscript.js"></script> tag in jade?
21:13:22  * addisonjjoined
21:13:33  <isaacbw>bafjdasfjdsaflhsa jade seems to make things harder
21:13:36  * abequit (Read error: Connection reset by peer)
21:13:39  * Guest93713changed nick to John
21:13:44  * jol02joined
21:13:44  * jol02quit (Client Quit)
21:14:00  * abejoined
21:14:15  <isaacbw>jtomasrl, http://nodejs.org/api/modules.html
21:14:16  * _br_joined
21:14:23  <xk_id>Can anybody tell why this jumps from line 12 to line 30 (i.e completely skips all instructions in between). http://pastebin.com/BNAtUqVD
21:14:32  <asturel>isaacbw script(src='/javascripts/application.js')
21:14:39  <isaacbw>thanks asturel
21:14:41  <asturel>maybe + type='text/javascript'
21:14:42  <jtomasrl>isaacbw: thx im reading and trying to make things work :P
21:14:45  * admcjoined
21:15:01  * _br_quit (Excess Flood)
21:15:01  <isaacbw>jtomasrl, the docs are really good, so if you run into something new just read through them
21:15:35  * b1rkh0ffquit (Quit: Leaving)
21:15:36  * recamilioquit (Ping timeout: 252 seconds)
21:16:08  <jtomasrl>btw, is there a diference between this ways of calling a function? https://gist.github.com/4574789
21:16:11  * thanpolas_joined
21:16:13  <isaacbw>bleh bleh, is there a way to get jade to spit out formatted markup instead of putting everything on one line
21:16:22  <asturel>pretty=true
21:16:24  * Necrs1mia84joined
21:16:25  <asturel>or something like that
21:16:25  <isaacbw>thanks
21:16:37  * Necrs1mia84part
21:16:48  * dwhittlejoined
21:17:04  * lvivierjoined
21:17:16  <asturel>http://stackoverflow.com/questions/5276892/expressjs-how-to-output-pretty-html
21:17:46  * _br_joined
21:18:02  * shuaibjoined
21:19:19  * rickibalboajoined
21:19:33  <niggler>has anyone played with silkjs
21:19:40  <eddyb>jtomasrl: well, the only visible difference is the fact that *this* will be routes.store in the first one and global in the second one
21:19:47  * tim_smart|awaychanged nick to tim_smart
21:20:02  * jsilverquit (Remote host closed the connection)
21:20:05  * nsolsenquit (Read error: Connection reset by peer)
21:20:16  * _br_quit (Excess Flood)
21:20:27  <eddyb>jtomasrl: also the first one allows you to customize the routing function by passing arguments to routes.store.index (which creates the routing function)
21:20:27  * nsolsenjoined
21:20:28  <jtomasrl>eddyb: ok
21:20:39  <jtomasrl>eddyb: so no performance difference
21:20:58  <jtomasrl>great
21:21:13  <eddyb>the first one would be a bit slower when called in a hot loop or something
21:21:23  <eddyb>but you're only calling it once
21:21:23  * lvivierquit (Ping timeout: 245 seconds)
21:21:39  * mikolalysenkojoined
21:21:41  <jtomasrl>yes
21:22:06  <eddyb>the routing function it creates is as fast as the routing function in the second one
21:22:42  * lwicksjoined
21:23:16  * _br_joined
21:23:34  * stonebranchjoined
21:23:50  * shuaibquit (Quit: Textual IRC Client: http://www.textualapp.com/)
21:23:54  * jonno11quit (Quit: jonno11)
21:24:03  * JJMalinajoined
21:24:26  * addisonjquit (Remote host closed the connection)
21:24:54  * crewmossjoined
21:24:54  * b|lotusquit (Read error: Connection reset by peer)
21:25:11  * b|lotusjoined
21:25:18  * bitmagequit (Quit: bitmage)
21:25:33  * _br_quit (Excess Flood)
21:26:11  * EhevuTovquit (Quit: This computer has gone to sleep)
21:26:47  * sdoublequit (Read error: Operation timed out)
21:27:40  * recamiliojoined
21:27:46  * _br_joined
21:28:04  * dwhittlequit (Quit: ...)
21:28:22  * darklotusjoined
21:28:27  * b|lotusquit (Read error: Connection reset by peer)
21:30:04  * s3shsjoined
21:30:48  * _br_quit (Excess Flood)
21:30:59  * Sonderbladejoined
21:31:16  * _br_joined
21:31:36  * sdoublejoined
21:32:19  * TooTallNatejoined
21:33:27  * crewmossquit (Quit: ["Textual IRC Client: www.textualapp.com"])
21:33:42  <asturel>anyone have idea how can i prevent ' Error: socket hang up' ?
21:34:02  * mermeladasquit (Quit: Leaving.)
21:34:53  <asturel>i use http.request but i dont want the keepalive thing
21:35:11  <isaacbw>why not
21:35:14  * generalissimoquit (Remote host closed the connection)
21:35:23  * jabberwockyquit (Remote host closed the connection)
21:35:27  <asturel>i need only one result then i want to close it
21:35:41  <asturel>i did req.setSocketKeepAlive(false); but i still run into sockets hangup
21:35:50  <isaacbw>it will close as soon as you call end()
21:35:57  * geNAZtjoined
21:35:57  <isaacbw>keep alive just makes sure it doesn't close prematurely
21:36:03  * _br_quit (Excess Flood)
21:36:04  <isaacbw>and it's the default
21:36:05  * aslantjoined
21:36:30  <asturel>http://pastebin.com/cgM5e2dg
21:37:07  * listochkinquit (Remote host closed the connection)
21:37:07  * memoryleakquit (Quit: Linkinus - http://linkinus.com)
21:37:16  * _br_-joined
21:37:37  * stonebranchquit (Remote host closed the connection)
21:38:19  * vanb777joined
21:38:46  <xk_id>Can anybody tell why this very simple code that contains an http request, doesn't produce any output? http://pastebin.com/aadfTn0c
21:39:10  <slaskis>can it be that the endianness of the typed arrays in node and chrome are different?
21:39:43  * Guest48828joined
21:40:02  * phrearchquit (Quit: Leaving)
21:40:07  <asturel>xk_id check my pastebin above :D
21:40:28  <niggler>webgl endianness is different
21:40:43  * adhipgjoined
21:40:51  * xerorajoined
21:40:55  <niggler>slaskis you should be using a dataview
21:41:14  * jonno11joined
21:41:17  <slaskis>niggler: i am actually
21:41:18  <xk_id>asturel: have you considered using the 'request' library? It's simpler.
21:41:19  * _br_-quit (Excess Flood)
21:41:31  * LEDfanquit (Remote host closed the connection)
21:41:40  <slaskis>my DataView#getUint16() returns differently in chrome from node
21:41:40  <geNAZt>xk_id did you debug it ?
21:42:16  * _br_joined
21:42:21  * paulbjensenjoined
21:42:23  * graeme_fquit (Quit: Computer has gone to sleep.)
21:42:37  <slaskis>but setting the second argument to true fixes it in node but makes it fail in chrome. and vice versa
21:42:57  <niggler>do you have a code sample?
21:43:15  <slaskis>yeah, but let me see if i can make a smaller one
21:43:19  <xk_id>geNAZt: yes. it doesn't seem to start running the instructions in function (error, response, body) {. It keep looping between 'while (', and 'var req ='.
21:43:20  <asturel>xk_id didnt know about it :d
21:43:34  * supersymquit (Read error: No route to host)
21:43:42  <asturel>anyway its an npm module or builtin?
21:43:53  * aslantquit (Ping timeout: 245 seconds)
21:43:55  * Bilgejoined
21:44:11  <xk_id>asturel: I don't remember. try npm require -v
21:44:25  <xk_id>*npm request -v
21:44:25  <xk_id>sorry
21:44:38  * Tierneyjoined
21:44:42  <Tierney>Hello.
21:44:45  * damienklinnertjoined
21:45:03  <geNAZt>yes that one is easy :D
21:45:24  <geNAZt>dont wrap async in functions if the only break is the ending of the async call
21:45:37  * tim_smartchanged nick to tim_smart|away
21:45:46  <Tierney>I know this sounds stupid, but how do I start my Node server? I just picked up learning Node again today, but I can't run the .js file I've got.
21:45:47  <geNAZt>in this case you end up using 100% in one event loop and start blocking the node process
21:45:57  <xk_id>geNAZt: may I request layman terms? :)
21:46:28  <gildean>Tierney: with node, as in "node somefile.js" or just "node somefile"
21:46:30  <geNAZt>?
21:46:31  <asturel>wow
21:46:34  * _br_quit (Excess Flood)
21:46:43  * aslantjoined
21:46:56  <Tierney>You start the server by running the file? I did that and got an error.
21:46:59  * enaqxjoined
21:47:12  <xk_id>geNAZt: I don't understand how to fix the problem. Could you please explain it to me again?
21:47:20  <asturel>btw anyone knows a board/forum module for nodejs?
21:47:35  <gildean>Tierney: you started it with node, or just tried to run the script on it's own?
21:47:55  <Tierney>Ah, silly me. I wasn't using the right path.
21:47:59  <geNAZt>xk_id: you have a loop running, the only exit out of the loop is that the page variable is set to 2 or higher
21:48:00  <Tierney>Thanks gildean.
21:48:01  <geNAZt>right ?
21:48:07  * Bilgequit (Client Quit)
21:48:08  <xk_id>geNAZt: that is correct
21:48:16  * _br_joined
21:48:27  <gildean>np
21:48:32  * Tierneyquit (Client Quit)
21:48:32  <geNAZt>the increament of the variable page is done in the async callback of the request lib
21:48:49  <xk_id>I'm following.
21:48:58  * jtomasrlquit (Ping timeout: 252 seconds)
21:48:59  <geNAZt>but in this time where node usually waits for the callback, you are executing the loop
21:49:04  <geNAZt>cause page is 1
21:49:17  <xk_id>ooh
21:49:19  <xk_id>haha
21:49:21  <geNAZt>and node never has the chance to call the async callback in the next lopp
21:49:26  <xk_id>live by the sword, die by the sword, as it were.
21:49:29  <geNAZt>so you lock yourself
21:49:30  * lwicksquit (Quit: lwicks)
21:49:39  * Bilgejoined
21:49:40  * Kakeraquit (Ping timeout: 248 seconds)
21:49:42  <xk_id>I understand now :)
21:49:48  <xk_id>wow, interesting.
21:50:11  * rickibalboa`joined
21:50:19  <geNAZt>but why do u want to do this in a loop ?
21:50:53  <xk_id>I need to change something in the URL in each loop.
21:50:58  * rickibalboaquit (Ping timeout: 256 seconds)
21:51:04  * graeme_fjoined
21:51:09  <xk_id>like, /p=1, /p=2 and /p=3
21:51:15  * mrvisserjoined
21:51:19  <geNAZt>a okay
21:51:50  * _br_quit (Excess Flood)
21:52:01  * recurrencejoined
21:52:03  * recurrencequit (Max SendQ exceeded)
21:52:11  * gebquit (Excess Flood)
21:52:34  * recurrencejoined
21:52:36  * recurrencequit (Max SendQ exceeded)
21:52:46  * TonkaTruckquit (Quit: TonkaTruck)
21:52:52  * gebjoined
21:52:52  * gebquit (Excess Flood)
21:53:05  * ack006joined
21:53:14  * recurrencejoined
21:53:32  * gebjoined
21:53:33  * gebquit (Excess Flood)
21:53:43  * standoojoined
21:53:51  * fayimorapart
21:53:52  * gebjoined
21:54:14  <geNAZt>https://gist.github.com/4575430
21:54:16  * _br_-joined
21:54:18  <geNAZt>something like that
21:54:20  * Maxaniquit (Quit: Computer has gone to sleep.)
21:54:43  <gildean>i'd do it like this: https://gist.github.com/4575431
21:54:51  <gildean>but basically the same thing
21:54:56  <mistertwig>yes
21:55:00  <mistertwig>someone who doesn't show dogballs
21:55:06  <geNAZt>gildean: nice my next gist id :D
21:55:23  <gildean>haha
21:55:37  <mistertwig>i like this guy ^
21:55:49  <geNAZt>which ?
21:55:50  <geNAZt>:D
21:55:56  <mistertwig>both
21:55:58  <gildean>mistertwig: i shove those balls so deep so they don't show
21:56:05  * prosquarequit (Quit: Leaving.)
21:56:10  <mistertwig>yess
21:56:45  <xk_id>geNAZt: that's gorgeous. Thanks a bunch!
21:57:03  <geNAZt>does it work ?
21:57:05  * _br_-quit (Excess Flood)
21:57:31  * Bilgequit (Ping timeout: 245 seconds)
21:58:10  * lwicksjoined
21:59:07  <xk_id>I think they both work :)
21:59:32  * mrvisserquit (Remote host closed the connection)
21:59:33  * lwicksquit (Remote host closed the connection)
21:59:36  <xk_id>but I'm actually considering doing all pages at the same time, without iteration.
21:59:36  <xk_id>I mean, at the same time, instead of sequentially.
22:00:03  <geNAZt>use async then
22:00:11  <xk_id>yep.
22:00:21  * eddybpart ("Konversation terminated!")
22:00:46  * _br_joined
22:01:29  * rmillchanged nick to smplstk
22:01:39  <geNAZt>well you need to create dynamic functions for this than
22:01:43  * smplstkchanged nick to serio
22:01:46  * trevnorrisjoined
22:02:21  * _br_quit (Excess Flood)
22:02:40  * TonkaTruckjoined
22:03:23  * langworthyquit (Ping timeout: 252 seconds)
22:03:45  <xk_id>I'm trying to figure out how :)
22:03:49  * Johnquit (Quit: User divided by zero)
22:04:08  * listochkinjoined
22:04:17  * paralleljoined
22:04:22  <xk_id>I've never done async before
22:04:28  <geNAZt>its easy
22:04:46  * _br_-joined
22:04:56  * maletorjoined
22:05:02  <xk_id>you basically return a function?
22:05:09  <xat->ddd
22:05:49  * prosquarejoined
22:06:13  * jtomasrljoined
22:06:27  <darklotus>xk_id, read nodemanual
22:06:41  <jtomasrl>how can i catch events emitted on "new Object()"?
22:06:48  * Stilojoined
22:06:51  * pringlescanjoined
22:07:10  <SinnerNyx>if i'm using cypto.createHash('sha1'), is there some way to reuse that object or should I create a new Hash object everytime I need to generate a hash?
22:07:10  * rcamerapart
22:07:22  <xk_id>darklotus: it's actually been offline for the past few days
22:07:36  * _br_-quit (Excess Flood)
22:07:46  * seriochanged nick to rmill
22:07:47  * _br_joined
22:07:55  * langworthy_joined
22:08:21  <slaskis>niggler: ok, finally figured it out. it seems to be a regression in node 0.9
22:08:46  <slaskis>in 0.8 it works the same as chrome (although it lacks part of the api in 0.8)
22:08:50  <slaskis>here's a test: https://gist.github.com/0a1e7479ec9ddaaf2caf
22:08:52  <segomos>jtomasrl: object.on("eventyourlisteningfor", function(){});
22:09:22  * mwoelkerquit (Remote host closed the connection)
22:09:34  <jtomasrl>im doing that but i get "{"code":"InternalError","message":"Uncaught, unspecified 'error' event."}"
22:09:54  <jtomasrl>even tho i have an "error" event
22:10:19  <segomos>jtomasrl: is it your object or from something you installed via npm?
22:10:40  <jtomasrl>mine
22:10:52  * jabberwockyjoined
22:10:57  * N3Xjoined
22:10:59  <segomos>do you have some code you can make a gist from?
22:11:24  * prosquarequit (Quit: Leaving.)
22:11:24  * DatumDropjoined
22:11:34  * wolfesjoined
22:11:55  * wolfesquit (Client Quit)
22:12:05  <jtomasrl>segomos: https://gist.github.com/4575545
22:12:12  <darklotus>SinnerNyx, var hash = crypto.createHash('sha1')
22:12:27  <geNAZt>xk_id: https://gist.github.com/4575550
22:12:34  <jtomasrl>the first is the one beeing emitted
22:12:35  <geNAZt>Now all load at the "same" time
22:12:49  <SinnerNyx>darklotus: ya ok, that's what I figured. Thanks :).
22:12:52  * _br_quit (Excess Flood)
22:12:55  <darklotus>SinnerNyx, np
22:13:09  <segomos>jtomasrl: are you inheriting the EventEmitter from 'utils' somewhere?
22:13:26  <slaskis>niggler: i went ahead and posted an issue about this https://github.com/joyent/node/issues/4626
22:13:30  <jtomasrl>right after the module.exports
22:13:36  <jtomasrl>util.inherits(User, EventEmitter);
22:13:53  * marcosvmjoined
22:14:02  <segomos>i don't see that in your gist
22:14:06  * damienklinnerjoined
22:14:17  <xk_id>geNAZt: Ok, so async is a module :) thanks, man. I'll get studying about async, and if I get stuck, I'll always have your code to save my ass :D
22:14:37  * taterbasequit (Remote host closed the connection)
22:14:37  <geNAZt>https://github.com/caolan/async#parallel
22:14:53  <jtomasrl>segomos: reload
22:14:53  <geNAZt>you can ask whenever you fell you need to :D
22:14:54  * mirkokquit (Quit: mirkok)
22:14:58  <xk_id>I thought async was just a general characteristic, not an actual module.
22:15:16  * _br_joined
22:15:17  <segomos>xk_id: it is both
22:15:26  <geNAZt>async is a module that helps you with control flows in javascript
22:15:26  * graeme_fquit (Quit: Computer has gone to sleep.)
22:15:44  * xk_idnods
22:15:50  * mirkokjoined
22:15:58  * DatumDropquit (Ping timeout: 245 seconds)
22:16:19  * JumpMast3rjoined
22:16:23  * Sicp`changed nick to Sicp
22:16:27  * Cronohquit
22:16:35  * Sicpquit (Changing host)
22:16:35  * Sicpjoined
22:17:03  <geNAZt>well you got me on an idea. Load benchmarking via node and asnyc
22:17:29  <xk_id>what do you expect to find?
22:17:39  * paulbjensenquit (Quit: paulbjensen)
22:18:06  * _br_quit (Excess Flood)
22:18:09  * damienklinnertquit (Ping timeout: 260 seconds)
22:18:15  * salsamontesjoined
22:18:29  <slaskis>oh maybe it's related to this commit https://github.com/joyent/node/commit/9fe3734f15c822d6efc5d0e07d2a9dfd41632d7c
22:18:36  * jabberwockyquit (Ping timeout: 256 seconds)
22:18:40  <slaskis>compiling older version of node 0.9 now
22:18:52  * Bilgejoined
22:19:16  * _br_joined
22:20:30  * marcosvmquit (Ping timeout: 252 seconds)
22:20:46  * recurrencequit (Quit: Computer has gone to sleep.)
22:20:56  * EhevuTovjoined
22:21:16  * _iorquit (Ping timeout: 245 seconds)
22:21:17  * keetoquit (Ping timeout: 245 seconds)
22:21:17  * nutcasequit (Ping timeout: 245 seconds)
22:21:58  * isaacbwquit (Ping timeout: 240 seconds)
22:22:05  * ephialtes480quit (Ping timeout: 244 seconds)
22:22:12  * shihanquit (Quit: So long)
22:22:18  * KBmequit (Quit: KBme kthxbye)
22:22:24  * Blorbquit (Ping timeout: 260 seconds)
22:22:26  * richardthemaltesjoined
22:22:27  * tim_smart|awayquit (Ping timeout: 276 seconds)
22:22:31  * myndziquit (Ping timeout: 245 seconds)
22:22:32  * freeformzquit (Ping timeout: 245 seconds)
22:22:35  * jocafaquit (Quit: Leaving.)
22:22:47  * runningskullchanged nick to zz_runningskull
22:22:57  * isaacbwjoined
22:22:58  * Omega_joined
22:23:19  * keetojoined
22:23:20  * _br_quit (Excess Flood)
22:23:21  * Bilgequit (Ping timeout: 245 seconds)
22:23:30  * sir_tyrionquit (Ping timeout: 264 seconds)
22:23:33  * tim_smart|awayjoined
22:23:36  * jabberwockyjoined
22:23:49  * KBmejoined
22:23:52  * Blorbjoined
22:23:56  * tim_smart|awaychanged nick to tim_smart
22:24:06  * APackjoined
22:24:06  * sir_tyrionjoined
22:24:08  * shihanjoined
22:24:21  * myndzijoined
22:24:22  * freeformzjoined
22:24:30  * klaemojoined
22:24:38  * macmicjoined
22:25:26  * chridalquit (Read error: Operation timed out)
22:25:31  * brainssjoined
22:25:43  * nutcasejoined
22:25:56  <MI6>joyent/node: Fedor Indutny master * 00abc24 : child_process: remove .track option Since net.Server's `connection` prop - http://git.io/heK-MQ
22:26:11  * echoquit (Remote host closed the connection)
22:26:26  * echojoined
22:26:46  * _br_joined
22:27:04  * intabulasjoined
22:27:17  * slaskisquit (Quit: slaskis)
22:27:24  * recurrencejoined
22:27:27  * listochkinquit (Remote host closed the connection)
22:27:33  * rendarquit
22:29:59  * tjmehta_joined
22:30:06  * _br_quit (Excess Flood)
22:30:20  * AdrienBraultquit (Quit: Computer has gone to sleep.)
22:30:30  * francisljoined
22:30:30  * francislquit (Client Quit)
22:31:36  * ogny1joined
22:31:46  * _br_-joined
22:33:04  * listochkinjoined
22:33:37  * Dead-iquit (Quit: Textual IRC Client: http://www.textualapp.com/)
22:33:50  * _br_-quit (Excess Flood)
22:34:23  * gregmore_joined
22:34:24  * eschnouquit (Remote host closed the connection)
22:34:59  * addisonjjoined
22:35:03  * maletorquit (Quit: Computer has gone to sleep.)
22:35:19  * AvianFluquit (Remote host closed the connection)
22:36:51  * azhwkd|awaychanged nick to azhwkd
22:37:09  * Swadqquit (Ping timeout: 256 seconds)
22:37:19  * richardthemaltespart
22:37:37  * akramquit (Remote host closed the connection)
22:37:46  * _br_joined
22:38:44  * bitmagejoined
22:39:08  * _br_quit (Excess Flood)
22:39:14  * listochkinquit (Remote host closed the connection)
22:39:18  * addisonjquit (Ping timeout: 245 seconds)
22:39:32  <zip_>what's the safest way to test the validity of a string you are passing to the mongo.ObjectID() constructor?
22:39:32  * AvianFlujoined
22:39:45  * joehoylejoined
22:43:30  <jtomasrl>why return is not getting out of the function
22:43:37  * st_lukequit (Remote host closed the connection)
22:43:47  * _br_joined
22:44:22  * _br_quit (Excess Flood)
22:44:36  * piscisaureus_quit (Quit: ~ Trillian Astra - www.trillian.im ~)
22:44:41  * bDigits_joined
22:45:10  * taterbasejoined
22:45:27  * culturelabsquit (Quit: culturelabs)
22:46:10  * bDigitsquit (Ping timeout: 260 seconds)
22:46:20  * bDigits_changed nick to bDigits
22:46:55  * YoYquit (Ping timeout: 246 seconds)
22:47:35  * macmicquit (Quit: Textual IRC Client: www.textualapp.com)
22:48:09  * blueadeptjoined
22:48:10  * blueadeptquit (Changing host)
22:48:10  * blueadeptjoined
22:48:20  * maletorjoined
22:48:28  * sgallaghquit (Remote host closed the connection)
22:48:34  <timeturner>is there a way to use module.exports and exports at the same time
22:49:17  * _br_joined
22:49:28  * taterbasequit (Ping timeout: 244 seconds)
22:49:37  * _br_quit (Excess Flood)
22:49:43  <recamilio>Is there some way of counting HTTPS packets via a Node.js proxy?! We offer a service that needs to count users data usage...
22:50:16  * _br_-joined
22:50:19  * YoYjoined
22:50:21  * woahjoined
22:50:49  <mistertwig>timeturner: for what case
22:51:13  <timeturner>to require a module and use it as a function
22:51:15  * rickibalboa`quit (Read error: Connection reset by peer)
22:51:27  * rickibalboa`joined
22:51:28  * lpinquit (Quit: Leaving)
22:51:32  <timeturner>and to access other functions and objects by property access on the required module
22:51:39  * s3shsquit (Quit: s3shs)
22:51:55  <timeturner>var a = require('a'); a(); a.somethingElse()
22:52:06  <mistertwig>i don't think so
22:52:19  <mistertwig>i don't know for sure
22:52:42  <mistertwig>i think if you did var a = require('a');
22:52:46  * EhevuTovquit (Quit: This computer has gone to sleep)
22:52:47  <mistertwig>and you had a function on module.exports
22:52:51  <mistertwig>a will be the result of that function
22:53:12  <mistertwig>so i don't see how you'd call other things unless you returned it in the initialize function
22:53:36  <mistertwig>so if module.exports returned an object with somethingElse in it, then yes
22:53:45  <SinnerNyx>if I do http.createServer(function(){...}), how do I access the modules i've 'require'd in the base scope inside of the server function?
22:54:08  * nicholasfjoined
22:54:52  * _br_-quit (Excess Flood)
22:54:56  <Guest48828>SSinnerNyx: var foo = require('foo'); inside your function just use foo
22:54:58  <klaemo>timeturner: check this out https://gist.github.com/4248176
22:55:16  * jsilverjoined
22:55:16  <SinnerNyx>Guest22529: I have to require the module on every request?
22:55:24  <mistertwig>yes
22:55:25  * jmar777quit (Remote host closed the connection)
22:55:27  <SinnerNyx>erm Guest48828
22:55:51  <Guest48828>you require it once
22:56:28  * rickibalboa`quit (Ping timeout: 240 seconds)
22:56:36  <gildean>SinnerNyx: just require it at a higher scope and it will be usable within the deeper scope
22:56:56  <SinnerNyx>Guest48828: I see. oh, i misunderstood your response. I think there is a problem somewhere else in my program then. seems like the require call is returning undefined.
22:56:56  * SvenDowideitquit (Changing host)
22:56:56  * SvenDowideitjoined
22:57:06  <gildean>if you require it within the global-level, then it'll be usable anywhere within that file (or module per se)
22:57:10  * SvenDowideitquit (Excess Flood)
22:57:16  * Guest48828changed nick to bid
22:57:27  * Bilgejoined
22:58:41  * cleos_freyquit (Quit: leaving)
22:59:12  * `3rdEdenquit (Remote host closed the connection)
22:59:16  * MrNkoquit (Remote host closed the connection)
22:59:17  * _br_joined
22:59:28  <SinnerNyx>if I require something and node doesn't give me an error, then it shouldn't be undefined right?
22:59:41  * recurrencequit (Quit: Computer has gone to sleep.)
22:59:57  <bid>no syntax error
23:00:09  * _br_quit (Excess Flood)
23:00:24  <klaemo> SinnerNyx, well if the module that you require exports undefined, you'll get undefined
23:01:19  * SvenDowideitjoined
23:02:08  * kramutilspart
23:02:42  <SinnerNyx>klaemo: I've done npm install cookies, I'm using cookies. I'm trying require('cookies') and all I get is undefined... is this intended? Am I missing something?
23:02:47  * _pidquit (Quit: Leaving.)
23:02:58  * JJMalinaquit (Quit: JJMalina)
23:02:59  * mirkokquit (Quit: mirkok)
23:03:26  * wolfesjoined
23:03:55  * pringlescanquit (Quit: Leaving.)
23:04:18  * _br_-joined
23:04:27  <klaemo>if the files are in the right directories, it should work
23:04:27  * Sorellajoined
23:05:23  * _br_-quit (Excess Flood)
23:05:52  * abequit (Read error: Connection reset by peer)
23:06:02  <klaemo>i'm guessing your already doing this, but you have to assign the required module to a variable
23:06:02  * abejoined
23:06:26  * mykuljoined
23:06:30  * addisonjjoined
23:06:31  * zorlaxjoined
23:06:53  <isaacbw>does anyone know why I would be getting a disconnect event from the twitter api through ntwitter upon connection and then receiving my stream like normal?
23:07:11  <gildean>SinnerNyx: the module itself might not export anything on the lowest level, but only export the methods
23:07:17  <isaacbw>AvianFlu, oh, you wrote it didn't you?
23:07:22  * listochkinjoined
23:07:29  * AvianFluquit (Remote host closed the connection)
23:07:32  <isaacbw>haha
23:07:53  <isaacbw>"oh shit, someone's talking to me. better leave"
23:08:05  * jtomasrlquit (Quit: Bye!)
23:08:18  * piscisaureus_joined
23:08:28  * tobmasterquit (Ping timeout: 245 seconds)
23:08:44  <gildean>isaacbw: not even a quit, but a panicy close of the window
23:08:57  <SinnerNyx>oh really? I didn't realize that would work. so I should try using the functions directly.. I know it should grant access to a function called Cookies. So typeof Cookies should give me function right? or do I have to specify something before Cookies? Like in a browser I might try window.Cookies
23:09:42  <gildean>SinnerNyx: did you check the docs on how to use the module?
23:09:48  * _br_joined
23:10:03  * mrvisserjoined
23:10:40  * _br_quit (Excess Flood)
23:10:57  * yorick_joined
23:11:55  <isaacbw>so are you supposed to use something like json-stream with ntwitter?
23:12:11  <klaemo>SinnerNyx: you do var Cookies = require('cookies') and then you can do cookies = new Cookies(...) afaik
23:12:38  <SinnerNyx>klaemo: that's what I'm trying to do :(
23:13:00  * vanb777quit (Quit: vanb777)
23:13:06  * yorick_changed nick to yorick
23:13:10  <SinnerNyx>gildean: I did, but their example doesn't have a require statement. I thought it was just assumed knowledge.
23:13:28  * s3shsjoined
23:14:15  * switzquit (Quit: Leaving...)
23:14:18  * _br_joined
23:14:19  * admcquit (Quit: Leaving.)
23:14:21  <klaemo>it's really not that hard. are you sure you understand the basics?
23:14:36  <isaacbw>okay, so that 'end' at the beginning of the stream is the previous connection being closed by the new one
23:14:41  * mrvisserquit (Ping timeout: 248 seconds)
23:14:48  * addisonjquit (Remote host closed the connection)
23:14:51  <isaacbw>because I'm restarting my node process a lot
23:14:55  <isaacbw>i.e. harmless
23:15:03  <isaacbw>I think
23:15:11  <jsilver>no
23:15:14  <jsilver>it should not be crashing
23:15:16  <jsilver>fix the bug
23:15:21  <jsilver>instead
23:15:28  <isaacbw>who what
23:15:30  <isaacbw>me?
23:15:31  * tjmehta_quit (Remote host closed the connection)
23:15:36  <jsilver>if it crashes, theres a bug
23:15:41  <jsilver>shouldnt have to restart
23:15:44  <jsilver>i never restart my node
23:15:47  <isaacbw>no, I'm doing that myself
23:15:54  * _br_quit (Excess Flood)
23:15:57  <isaacbw>for development.
23:16:02  <jsilver>oh, ok, nvm then
23:16:02  <jsilver>:)
23:16:05  <isaacbw>:P
23:16:09  <jsilver>hehe
23:16:09  * addisonjjoined
23:16:12  <jsilver>gj then
23:16:18  <isaacbw>though it *does* seem like a bug in ntwitter, but I don't know if it can be avoided
23:16:19  * zz_runningskullchanged nick to runningskull
23:16:21  <SinnerNyx>klaemo: ouch. :P. I thought I did. before I was doing var _cookies = require('cookies'); _cookies = new _cookies.Cookies(...), but I got it working now I think. I had to change _cookies.Cookies to Cookies. I'm still not sure why typeof _cookies would return undefined though. Shouldn't it be function?
23:16:48  <SinnerNyx>erm change _cookies.Cookies to _cookies
23:16:48  * lwicksjoined
23:16:49  * p_l_a_y2quit (Read error: Connection reset by peer)
23:17:01  * p_l_a_yjoined
23:17:22  * lwicksquit (Remote host closed the connection)
23:17:25  * culturelabsjoined
23:17:31  <gildean>SinnerNyx: you're not overwriting the same var are you?
23:17:54  <SinnerNyx>gildean nope. In the http function I do var cookie = new _cookie(...)
23:17:56  * listochkinquit (Remote host closed the connection)
23:18:18  * _br_joined
23:18:29  <SinnerNyx>I even stripped eveything else out and tride just the require followed immediately by a console.log
23:18:59  <SinnerNyx>are require calls done asynchronously as well?
23:19:05  * mykulquit (Quit: gg)
23:19:44  * mykuljoined
23:20:09  * stephenplusplusjoined
23:20:14  <SinnerNyx>nvm
23:20:29  * listochkinjoined
23:20:35  <SinnerNyx>I'm not sure what I was doing wrong before but now it says function. I'm sorry I've been bothering you guys unnecessarily.
23:20:36  * listochkinquit (Remote host closed the connection)
23:20:48  * JJMalinajoined
23:20:54  * mynameisquit (Quit: mynameis)
23:21:11  * _br_quit (Excess Flood)
23:21:32  * culturelabsquit (Client Quit)
23:21:40  * tjmehta_joined
23:22:15  <isaacbw>does anyone have experience with the twitter API? will a duplicate stream error go away if I wait a while?
23:23:01  <iksik>is there any (experimental even) imap server written in nodejs?
23:23:03  * _br_joined
23:23:07  * Jacky_joined
23:23:22  <klaemo>SinnerNyx: don't worry about it :) glad it's working now
23:23:35  * mynameisjoined
23:23:37  <SinnerNyx>:)
23:23:56  * Jackyquit (Read error: Connection reset by peer)
23:24:05  * mikolalysenkoquit (Ping timeout: 244 seconds)
23:24:39  <SinnerNyx>any ideas whats going on with nodemanual?
23:25:06  * luisbugjoined
23:25:08  * mykulquit (Quit: gg)
23:25:36  <mscdex>iksik: nope
23:25:39  * trevnorrisquit (Quit: Leaving)
23:25:45  <isaacbw>actually the disconnect message at the beginning was just me being stupid
23:25:49  <isaacbw>and had nothing to do with ntwitter
23:26:11  <mscdex>iksik: what's your use case?
23:26:28  * _br_quit (Excess Flood)
23:26:40  * drug_motorquit (Quit: .)
23:27:47  * darklotusquit (Read error: Connection reset by peer)
23:27:53  * lotus__joined
23:29:04  * landoquit (Read error: Connection reset by peer)
23:29:18  * _br_joined
23:29:27  <MI6>joyent/node: Ben Noordhuis master * 2dd3738 : typed arrays: fix DataView endianness regression Fix an off-by-one error - http://git.io/hgMbxQ
23:29:43  * echoquit (Remote host closed the connection)
23:29:48  <iksik>mscdex: it's just for fun actually.... i'm using haraka as smtp server, and i'm writing my emails into mongodb, now it would be nice to read them with thunderbird -_-
23:29:51  * Me1000quit (Quit: Bye!)
23:30:00  * echojoined
23:30:37  * Me1000joined
23:30:42  * addisonjquit (Remote host closed the connection)
23:31:08  * Iszakjoined
23:31:26  <Iszak>Does node.js have the harmony flag enabled by default?
23:31:34  * Jacky_changed nick to Jacky
23:31:43  * _br_quit (Excess Flood)
23:31:53  * tjmehta_quit (Remote host closed the connection)
23:32:01  * adrianlang1quit (Quit: Leaving.)
23:32:03  * Jackychanged nick to Guest67037
23:32:06  * drug_motorjoined
23:34:18  * _br_joined
23:34:39  <mscdex>iksik: writing a good imap server would be quite an undertaking
23:34:41  <isaacbw>is there a way to broadcast to every socket io connection without keeping track of the connections myself?
23:34:56  <mscdex>isaacbw: yeah
23:35:05  <isaacbw>I know there's socket.broadcast, but that's an 'all but this one' sort of thing
23:35:12  <isaacbw>mscdex, do you know the function call?
23:35:24  * stagas_joined
23:35:30  * flexdquit (Ping timeout: 255 seconds)
23:35:35  * carlmroquit (Ping timeout: 260 seconds)
23:35:45  <mscdex>i think it's just `io.sockets.broadcast()` or something
23:35:55  * TonkaTruckquit (Quit: TonkaTruck)
23:35:57  <isaacbw>oh cool, thanks
23:36:14  <isaacbw>oh, looks like it's io.sockets.emit
23:36:59  * _br_quit (Excess Flood)
23:37:15  * rudeboyjoined
23:37:35  * jw___joined
23:37:35  <mscdex>there you go
23:37:37  <mscdex>:-)
23:37:48  * _br_joined
23:37:59  * stagasquit (Ping timeout: 252 seconds)
23:38:04  * stagas_changed nick to stagas
23:38:29  * dominictarrjoined
23:38:58  * rudeboyquit (Client Quit)
23:39:08  * Sorella_joined
23:41:12  * ognyquit (Quit: WeeChat 0.3.8)
23:41:18  * adhipgquit (Remote host closed the connection)
23:41:20  * leoncamelquit (Ping timeout: 255 seconds)
23:41:54  * adhipgjoined
23:42:13  * Sorellaquit (Ping timeout: 245 seconds)
23:42:16  * _br_quit (Excess Flood)
23:43:39  * standooquit (Max SendQ exceeded)
23:43:59  <isaacbw>how do I get a timestamp?
23:44:05  <isaacbw>nvm
23:44:10  <isaacbw>fsalfjjhsdfkjsadfkdfs
23:44:11  <isaacbw>adshjdsafhjfadsadfskjadfs
23:44:12  * Guest67037changed nick to jalcine
23:44:12  <isaacbw>caffeine
23:44:17  * jalcinequit (Changing host)
23:44:17  * jalcinejoined
23:44:17  <isaacbw>my blood is coffee
23:44:20  <isaacbw>sd;ljadfsadfsdfsadfskjdfsadfsdfsdfskjlsadfkdsafkjldsaf
23:44:24  * jalcinechanged nick to Jacky
23:44:41  <geNAZt>is there a pattern or module that allows me to handle something like half global objects ? i want to share ressources between config files like a socket.io configure or a express configure
23:44:42  * standoojoined
23:44:58  * standooquit (Max SendQ exceeded)
23:45:10  * marlun_joined
23:45:14  <isaacbw>half global
23:45:16  <isaacbw>what
23:45:20  <geNAZt>not global.
23:45:34  <isaacbw>you could have a module that's just a container for properties
23:45:36  <isaacbw>and no functions
23:45:40  <geNAZt>i search something like a container that a range of modules can access to
23:45:42  <isaacbw>and then just have those other things require it
23:45:52  <isaacbw>like resources.js
23:46:01  <isaacbw>exports.myproperty1 = 'I am a butterfly';
23:46:04  * marlun__joined
23:46:16  * Bilgequit (Ping timeout: 245 seconds)
23:46:22  * standoojoined
23:46:27  * adhipgquit (Ping timeout: 256 seconds)
23:46:35  <geNAZt>wait a moment i will show you what i want
23:46:37  * standooquit (Max SendQ exceeded)
23:46:37  <isaacbw>are there any twitter bots that tweet a lot
23:46:39  * jp232joined
23:46:40  <isaacbw>for testing
23:46:43  <draginx>if i have a variable that has [{hello: 'world'},{yup: 'jello'}] typeof is "object" and .isArray gives me undefined.. any ideas why? (it should be an array...)
23:47:08  * igljoined
23:47:12  <isaacbw>typeof would be object
23:47:15  <isaacbw>not sure about isArray
23:47:18  * _br_joined
23:47:26  <isaacbw>but arrays are just obejcts whose keys are "0" "1" "2" "3" etc
23:47:31  * _br_quit (Excess Flood)
23:47:32  * standoojoined
23:47:39  * marlun_quit (Disconnected by services)
23:47:50  * jw___quit (Quit: Colloquy for iPhone - http://colloquy.mobi)
23:47:54  * standoopart
23:47:56  * Guest48828joined
23:48:08  <draginx>ill try instanceof
23:48:10  * marlun__part
23:48:36  <draginx>yup instance of works :) thanks
23:48:36  * No9quit (Ping timeout: 248 seconds)
23:48:44  * marlun_joined
23:48:44  <isaacbw>or just https://github.com/substack/node-quack-array
23:48:46  * bradgignacquit (Quit: bradgignac)
23:48:52  * thl0quit (Remote host closed the connection)
23:48:54  <isaacbw>alright cool
23:49:34  * thl0joined
23:49:35  <geNAZt>https://gist.github.com/4575866
23:49:40  * thl0quit (Remote host closed the connection)
23:49:51  * jsilverquit (Ping timeout: 256 seconds)
23:49:52  * bidquit (Ping timeout: 256 seconds)
23:49:55  * luisbugquit (Ping timeout: 246 seconds)
23:50:08  * igl1quit (Ping timeout: 245 seconds)
23:50:23  * thl0joined
23:50:33  * No9joined
23:50:39  <geNAZt>sry wrong gist: https://gist.github.com/4575869
23:50:48  * jsilverjoined
23:51:18  * _br_joined
23:51:21  * Jackyquit (Ping timeout: 252 seconds)
23:52:03  * ack006quit (Quit: Leaving)
23:52:13  <isaacbw>this is what happens with too much coffee and the need to test a twitter streaming API https://twitter.com/humongobot
23:52:24  * xk_idquit (Read error: Connection reset by peer)
23:52:33  <mscdex>draginx: you want `Array.isArray(someobj);`
23:52:42  * luisbugjoined
23:52:46  <draginx>ahh i see
23:52:48  * _br_quit (Excess Flood)
23:52:53  <draginx>is that faster than instanceof ?
23:53:11  <isaacbw>the difference would be minimal
23:53:19  <mscdex>i dunno, but i always use Array.isArray and assume it's safer
23:53:19  <isaacbw>unless you were doing it hundreds of thousands of times a second
23:53:33  <draginx>isaacbw: :) isnt that the point of node? ;)
23:53:40  <isaacbw>fdsjfaslfkhadsfhasdklfjshdklfjh
23:53:42  <isaacbw>COCOFFEFEEEE
23:53:51  <coderarity>man
23:53:56  * jp232quit (Remote host closed the connection)
23:54:03  <coderarity>you gotta cut back on the caffeine
23:54:24  <recamilio>Is there some way of counting HTTPS packets via a Node.js proxy?! We offer a service that needs to count users data usage...
23:55:35  <coderarity>recamilio: count HTTPS data? just count the data with like res.on('data') or something, actual TCP frames seems like a lot to ask for
23:55:48  * _br_-joined
23:55:57  <geNAZt>draginx: instanceof is faster
23:56:24  <Leeol>In express, if an app was mounted via `app.use('/foo', other_app)`, is there a way for other_app to get the full address of requests? `req.url` only returns the relative path to the root of `other_app`. eg: if you request `/foo/bar/baz`, other_app gets `req.url === '/bar/baz'`. Thoughts?
23:56:42  * JJMalinaquit (Quit: JJMalina)
23:56:43  <geNAZt>draginx: https://gist.github.com/4575884
23:57:06  * lotus__quit (Quit: brb)
23:57:44  * gru2joined
23:58:04  * _br_-quit (Excess Flood)
23:58:18  * carlmrojoined
23:58:27  <recamilio>coderarity: I'm not sure if I got what you mean, but, proxies has no access to HTTPS data, I just can't figure out how to measure data usage... It works nice for HTTP, the trouble is HTTPS...
23:59:36  * stephenplusplusquit (Quit: Leaving.)
23:59:43  * marlun_quit (Ping timeout: 245 seconds)