[00:01] devaholic has joined the channel [00:01] AvianFlu has joined the channel [00:01] ryanj has joined the channel [00:03] CrypticSwarm_ has joined the channel [00:04] mynyml has joined the channel [00:06] cjheath has joined the channel [00:06] rootslab has joined the channel [00:06] abustin has joined the channel [00:07] balaa has joined the channel [00:08] brianseeders has joined the channel [00:10] chjj has joined the channel [00:11] zackattack has joined the channel [00:11] febits has joined the channel [00:12] alexh has joined the channel [00:12] MrNko has joined the channel [00:13] jellosea: node seems to be triggering a callback late. i am using wireshark and the response comes, but it takes upto 100ms for the callback to be triggered [00:14] malkomal_ has joined the channel [00:15] alnewkirk has joined the channel [00:16] DTrejo has joined the channel [00:16] bnoordhuis: abustin: depends - are you using libuv or the legacy backend? [00:16] theCole has joined the channel [00:16] abustin: i think it's libuv [00:17] bnoordhuis: abustin: what version of node? [00:17] joshthecoder has joined the channel [00:17] abustin: i'll have to get back to you on version .. it's either the stable or head [00:17] bengrue has joined the channel [00:17] bnoordhuis: okay [00:17] jerrysv has joined the channel [00:18] bnoordhuis: well, broadcast works with legacy and not yet with libuv [00:18] abustin: im trying to deploy a node app to an internal network on macs/pcs/linux boxes and finding cross platform issues along the way [00:18] bentkus has joined the channel [00:18] kkaefer has joined the channel [00:18] guybrush has joined the channel [00:18] abustin: which version of node has legacy ? [00:18] DJBouche has joined the channel [00:19] ollie has joined the channel [00:19] bnoordhuis: abustin: all - but after 0.5.5 libuv is the default [00:19] jacobolus has joined the channel [00:20] Kami_ has joined the channel [00:20] wang has joined the channel [00:20] _mdp has joined the channel [00:20] MrNko has joined the channel [00:20] nail_ has joined the channel [00:20] alexhanh has joined the channel [00:20] T0bsn: did anyone ever use html5 mobile boilerplate? [00:21] coffeecup has joined the channel [00:21] abustin: so it's a build option ? [00:21] febits has joined the channel [00:21] bnoordhuis: abustin: no, a command line switch [00:21] matyr_ has joined the channel [00:22] bnoordhuis: abustin: try --help, you either have a switch --use-uv or --use-legacy [00:22] abustin: maybe we'll try the stable build first and then look at the command [00:22] abustin: thanks the info :) [00:22] bnoordhuis: abustin: well yes, if you want stable go with 0.4.11 :) [00:23] stbuehler has joined the channel [00:23] theCole_ has joined the channel [00:24] eresair has joined the channel [00:24] skyler_brungardt has joined the channel [00:25] jellosea: node seems to be triggering a callback late. i am using wireshark and the response comes, but it takes upto 100ms for the callback to be triggered [00:25] MrNko has joined the channel [00:26] dscape: guys if you wanted to export different functions according to a system call in node how would you do it? [00:26] dscape: e.g. `whoami` [00:27] dscape: if local_user then local function gets exported [00:27] dscape: else production function gets exported [00:28] dscape: anyone? :) [00:29] sstephenson_: use process.env.USER instead [00:30] a_suenami has joined the channel [00:30] dscape: sstephenson: that works! :) [00:30] dscape: still doesn't answer the question, which I would like to know how it could be done [00:31] dscape: cause it looks to me like it can't? [00:31] sstephenson: you can't, really - require() is synchronous, spawn() is async [00:31] DTrejo: if statement with one export in one, and another in the other? [00:31] bengrue has joined the channel [00:31] schwab has joined the channel [00:31] dscape: sstephenson: that's what I was suspecting [00:31] DTrejo: dscape: when they first call the function, you decide which to use, and cache it [00:31] sstephenson: you can modify exports asynchronously, but there'd be no way to be notified in client code [00:31] DTrejo: can be async that way [00:32] dscape: hey DTrejo :) How are you doing buddy? [00:32] DTrejo: dscape: doing well :) [00:32] DTrejo: dscape: make sure to check out my entry: http://hollaback.no.de/ [00:32] dscape: long time since the bbq ;) [00:32] abravo has joined the channel [00:32] DTrejo: it tests all npm modules [00:32] DTrejo: yes, long time [00:32] DTrejo: still traveling all the time? [00:32] DTrejo: (school starts for me next week eheh) [00:32] dscape: nah, more settled. back from edinburgh last week though :) [00:33] isaacs: DTrejo: http://hollaback.no.de/modules/#semver [00:33] DTrejo: hmm [00:34] DTrejo: will rerun some of those tests/look into it [00:34] isaacs: however: [00:34] isaacs: ok semver.js .................... 686/686 [00:34] SubStack: DTrejo: what does hollaback use to run the tests? [00:36] DTrejo: SubStack: it uses the command listed in package.json scripts.test property [00:36] AvianFlu has joined the channel [00:36] SubStack: DTrejo: https://github.com/dominictarr/meta-test [00:37] SubStack: can figure out pretty well which test harness is being used without a scripts.test [00:37] isaacs: SubStack: but there's no need, since they're just doing pass/fail [00:37] isaacs: either it exits 0, or it doesn't [00:37] SubStack: oh [00:37] DTrejo: we also have handlers for vows and other popular frameworks [00:37] DTrejo: that parse their output [00:37] DTrejo: vows has json [00:38] DTrejo: and so does expresso, i think [00:38] MrNko has joined the channel [00:38] tjholowaychuk: something unified like TAP would be better [00:38] isaacs: yeeessss [00:38] isaacs: taaaapp! [00:38] dscape: DTrejo: how can I add my modules to it? :) [00:38] SubStack: tap tap tap [00:39] MrNko has joined the channel [00:39] dimroc has joined the channel [00:39] DTrejo: dscape: they are auto added when you publish to npm [00:39] tjholowaychuk: pat pat pat [00:39] DTrejo: tjholowaychuk: i agree [00:39] DTrejo: we parse tap [00:39] DTrejo: when it is outputted [00:39] DTrejo: if we know that it is tap, that is [00:39] isaacs: DTrejo: i think indexzero was going to make vows output tap if TAP=1 is in the env [00:39] dscape: I'm guessing I need to put some kind of info in the package.json file? [00:39] dscape: you are probably not going to read the readme file I added to the test/ directory ;) [00:39] isaacs: dscape: { "scripts": { "test": "do some stuff" }} [00:39] DTrejo: isaacs: that would be great, then we could find out more than just pass fail: # passed tests, etc [00:40] isaacs: dscape: that also enables the `npm test` command [00:40] dscape: cool, thanks isaacs . and hello to you too sir :) [00:40] DTrejo: dscape: and if you use expresso or vows, it will work. also tap works [00:40] isaacs: hello :) [00:40] dscape: lets try that out [00:40] DTrejo: I will make a test of supported modules [00:40] tjholowaychuk: if you supported make test [00:40] isaacs: dscape: also, you should make your test framework a devDependency [00:40] tjholowaychuk: that would be nice too [00:40] DTrejo: also the testing can take a bit, so yea [00:40] hankejh has joined the channel [00:40] blueadept` has joined the channel [00:40] DTrejo: tjholowaychuk: we would, if it exited with 0 or 1 exit code [00:41] tjholowaychuk: it does [00:41] DTrejo: oh [00:41] DTrejo: in that case it already supports it [00:41] DTrejo: :) [00:41] tjholowaychuk: the test framework just needs to exit(failures) [00:41] robi42 has joined the channel [00:42] DTrejo: we fall back to exit codes if its not vows or expresso [00:42] isaacs: DTrejo: there's modules on npm for parsing tap, and generating it [00:42] abustin has joined the channel [00:42] DTrejo: here is full list of supported frameworks: expresso.js jasmine-node.js tap.js whiskey.js [00:42] DTrejo: generic.js nodeunit.js vows.js [00:42] DTrejo: isaacs: I think we use those [00:42] isaacs: sweet [00:42] sridatta has joined the channel [00:42] jokil has joined the channel [00:43] Nuck has joined the channel [00:43] DTrejo: although I think tap does exit codes correctly [00:43] DTrejo: though in the future we will parse # passing / # total, etc [00:43] DTrejo: and give more info on the /modules/#semver page, etc [00:44] DTrejo: btw guys: vote for us! http://hollaback.no.de :) [00:44] jellosea: node seems to be triggering a callback late. i am using wireshark and the response comes, but it takes upto 100ms for the data event to be fired. does anyone know why or how i can investigate this issue? [00:46] MrWarGames has joined the channel [00:47] MrWarGames has joined the channel [00:48] abustin_ has joined the channel [00:49] dscape: DTrejo: what if my tests require you to have a couchdb in adminparty mode in localhost ? :P [00:49] dscape: any way for me to snif hey this is your machine and change it to run against iris couch or something? [00:49] DTrejo: then they will fail eheh [00:49] dscape: i can change it to iris couch [00:49] DTrejo: dscape: yea, that should work [00:49] dscape: just dont want to do it for everyone downloading [00:49] DTrejo: yea [00:49] dscape: what's ur username on the machine? [00:50] dscape: or something I can detect [00:50] DTrejo: ummm, at the moment we don't tell scripts anything special that they are being used [00:50] dscape: you have process.env [00:50] dscape: so if its in env it should be fine? [00:50] DTrejo: we run it on multiple machines [00:50] DTrejo: linux, solaris, mac, etc [00:50] captain_morgan: dscape: yes, that is the case [00:50] DTrejo: I will write this down, as we need to solve this issue [00:50] captain_morgan: we do process ANY=THING before the command [00:50] DTrejo: (once we are allowed to edit code again) [00:51] dscape: DTrejo: I'll commit to github as localhost [00:51] dscape: and commit to npm as iris couch [00:51] eyesUnclouded has joined the channel [00:51] captain_morgan: and add it to the spawn({env:{any:'thing'}) [00:51] dscape: cause i dont expect people to test the npm package [00:51] DTrejo: sounds good [00:51] DTrejo: we will see if we can work out a better solution after judging ends [00:51] dscape: real cool project btw [00:52] dscape: its awesome for anyone maintaing a package [00:52] captain_morgan: dscape: woot! thanks [00:52] DTrejo: :) [00:52] DTrejo: don't forget to vote for us http://hollaback.no.de/ :) [00:53] dscape: just did [00:53] dscape: still thinking on how to detect your machines and your machines alone [00:53] dscape: lol [00:53] DTrejo: hehe, we will add that soon [00:53] dscape: tinkering* [00:55] adelgado has joined the channel [00:56] wilmoore has joined the channel [00:56] MrWarGames has joined the channel [00:58] nerdy has joined the channel [00:58] beejeebus: what units does --max-old-space-size take? [00:58] jellosea: node seems to be triggering a callback late. i am using wireshark and the response comes, but it takes upto 100ms for the data event to be fired. does anyone know why or how i can investigate this issue? [00:59] DennisRas has joined the channel [00:59] jacobolus has joined the channel [00:59] beejeebus: ah, no matter, --max_old_space_size (max size of the old generation (in Mbytes)) [01:01] MrWarGames has joined the channel [01:01] abustin has joined the channel [01:02] JasonSmith: dscape: What's going on with Iris Couch? (Nice to see it spaced correctly too) [01:02] dscape: nothing much, just using it to test nano on hollaback [01:02] zemanel: foobar [01:02] dscape: :) [01:02] dscape: actually one test fails in iris and success in localhost [01:03] dscape: im trying to figure out why! [01:03] DTrejo: fun times :) [01:03] v01dless- has joined the channel [01:04] abiii has joined the channel [01:05] Acolyte has joined the channel [01:05] abiii: is it possible to make a blocking http (client) request in node? [01:06] CarterL has joined the channel [01:06] BenHall has joined the channel [01:06] JasonSmith: dscape: A couch unit (in Futon) or a test of your own code (Sorry, I joined mid-conversation) [01:06] BenHall: Hi, I have a problem. I had a nice working NodeJS + RabbitMQ application. However, after playing with RabbitMQ, I somehow have broken my application [01:06] Acolyte: is there a way in Express to 'partial' a template that uses other template? [01:07] MrNko has joined the channel [01:07] BenHall: while there are no errors, nothing seems to be publishde [01:07] dscape: JasonSmith: a test of my own code [01:08] jellosea: i'm trying to debug using node-inspector - however execution ends before the callback is reached [01:09] jellosea: liek the callback event is not being triggered [01:09] BenHall: deleting the queue solved the problem [01:11] enhydra has joined the channel [01:12] brianseeders has joined the channel [01:12] k1ttty has joined the channel [01:12] dscape: JasonSmith: any idea [01:12] dscape: why on asking for bulk docs on localhost I get [01:13] dscape: { ok: true, [01:13] dscape: id: 'e109e59cb8305a0c8c5a0f004b02f9f1', [01:13] dscape: rev: '1-f5f3f3e496c72307975a69c73fd53d42' } [01:13] BenHall: but no idea what the problem was :/ [01:14] dscape: and on iris I don't get the ok true? [01:14] Yuffster_work has joined the channel [01:15] jellosea: somebody please help me [01:15] jellosea: :( :( :( [01:15] BenHall: How come my queue doesn't show up with rabbitmqctl list_queues ? [01:17] zemanel: DTrejo: testing (mape node-wargames) [01:17] zemanel: ignore :) [01:18] newy has joined the channel [01:18] neoesque has joined the channel [01:18] dscape: DTrejo: now I wait? :) [01:18] DTrejo: zemanel: eh? [01:18] pen has joined the channel [01:19] DTrejo: dscape: hmm, checking for you to make sure it noticed you changed it [01:19] DTrejo: yep, it's updating nano [01:19] dscape: yup : http://search.npmjs.org/#/nano [01:19] DTrejo: hmm, I wonder if its gotten to the UI yet [01:19] dscape: i just defaulted tests to iris couch [01:19] dscape: realized no other default config could work [01:19] dscape: e.g. do you have a user name and password? admin party mode? [01:20] DTrejo: dscape: OH we have a bug that does not show results if the github repo URL is not in the package [01:20] optico has joined the channel [01:20] dscape: DTrejo: what do you want me to add [01:20] DTrejo: also, the mapping of module name --> github URL is not automatic hehe [01:20] tuhoojabotti: catb0t: lol [01:20] DTrejo: we did it in a batch with a command line program [01:21] tuhoojabotti: v8bot_: sup? [01:21] catb0t: lol , hmm, Might work, m looking for a statement in the body and just unpacking modules won't be surprised if they were namespaced [01:21] DTrejo: dscape: let me get an example [01:21] tuhoojabotti: jheusala: ^ [01:21] tuhoojabotti: :P [01:21] DTrejo: dscape: https://github.com/visionmedia/express/blob/master/package.json (ctrl-f for `repository` in the package.json ) [01:22] DTrejo: add a link to your github URL [01:22] jheusala: tuhoojabotti: we need a bot that will talk to people unasked :-P [01:22] pct has joined the channel [01:22] tuhoojabotti: random intervals and join events :P [01:23] DTrejo: dscape: so, it will still not show your results, because of that bug I wrote, where no github url--> results don't show. and can't update the github url thing, b/c can't edit entry until end of the week. apologies! [01:23] jerrysv has joined the channel [01:23] DTrejo: dscape: oh, you can still see your results on the billboard though! [01:23] DTrejo: let me see [01:24] dscape: DTrejo: [01:24] dscape: i just created version 0.7.3 [01:24] dscape: call it your own version of nano lol [01:25] DTrejo: nice [01:25] dscape: I should get some real pipe tests in there, to see when the couchdb/nodejs piping bug was fixed [01:25] dscape: and point that down [01:25] dscape: i know it works on 0.5 [01:25] DTrejo: sorry, this was a hackathon project, wish I could fix the bugs, so it would show your results [01:25] vicapow has joined the channel [01:26] wmage has joined the channel [01:26] jokil_ has joined the channel [01:26] sridatta_ has joined the channel [01:27] brianseeders has joined the channel [01:27] dscape: well it will eventually be there and I think it's a real cool thing [01:27] dscape: best project, got my vote :) [01:27] dscape: plus you helped me since i added a uniform way to run tests into the package which is also a net win [01:27] DTrejo: TY :) [01:27] DTrejo: yep [01:27] DTrejo: dscape: we are planning to send out an email to all module authors [01:27] marksoper has joined the channel [01:28] DTrejo: one time email, with results of their tests / how to fix [01:28] dawolf has joined the channel [01:28] 5EXAADEAV has joined the channel [01:28] Badababuba has joined the channel [01:28] d0k has joined the channel [01:29] H4ns` has joined the channel [01:29] facorreia has joined the channel [01:31] enhydra has joined the channel [01:31] dscape: DTrejo: what's your twitter handle? [01:31] H4ns`` has joined the channel [01:32] dscape: Are you called Denise ;) eheh [01:32] agnat has joined the channel [01:33] DTrejo: DTrejo: sadly, it's ddtrejo [01:34] safea has joined the channel [01:34] H4ns``` has joined the channel [01:34] Drakonite has joined the channel [01:34] DTrejo: oops [01:35] DTrejo: dscape: ddtrejo [01:35] Nuck: DTrejo: Silly schizophrenic :P [01:35] DTrejo: haha [01:36] dscape: DTrejo: got it :) [01:36] Acolyte: any idea if it is possible to include template reference inside another template, ala pass parameter value to partial as, for example, <%- body %>? [01:37] Acolyte: in EJS? [01:39] Nuck: Acolyte: Express's rendering functions accept an object containing variables for it [01:39] brianseeders has joined the channel [01:39] Nuck: And I know you can render into a variable [01:39] Nuck: (I've done it a couple times) [01:40] Acolyte: I am not calling Express rendering function, I look to be able to reference template inside partial [01:40] tmzt_: shoudl als be able to use =partial() at least in jade [01:40] tmzt_: read up on ejs [01:40] Acolyte: <%- partial('box'), {Title: 'Text box', Content: <%- body %>} %> [01:40] Acolyte: or, rather, <%- partial('box'), {Title: 'Text box', Content: '<%- body %>'} %> [01:40] Acolyte: where body is that from parent template [01:41] tjholowaychuk: Content: body [01:41] tjholowaychuk: ? [01:41] toki_kanno has joined the channel [01:41] tjholowaychuk: ACTION confused [01:41] Gojohnnyboi has joined the channel [01:42] Acolyte: good point, but when invoking it that way, it says Title is undefined ;) [01:42] Acolyte: http://test.acolyte.cloud9ide.com/ [01:43] tjholowaychuk: partial('box') [01:43] tjholowaychuk: remove that paren [01:43] tjholowaychuk: partial('box' [01:43] tjholowaychuk: :p [01:43] chud has joined the channel [01:44] Acolyte: thanks, almost there :) [01:46] balaa has joined the channel [01:47] Acolyte: SyntaxError: Unexpected token ; in EJS.. have I hit its limits? :D [01:48] MrNko has joined the channel [01:49] polyrhythmic has joined the channel [01:50] Murvin: my Http server has express.session running. every request will trigger the session and store or update the session (in Mongo DB). However, I only want certain request have session. not all. what should I do? [01:50] Murvin: e.g. app.get('/getSession'); will get or update a session. and app.get('/nosession') will not even trigger express.session at all [01:50] torsd has joined the channel [01:51] Acolyte: is there any way to prevent Express compiler from encoding compilation results? [01:52] bluesmoon has joined the channel [01:52] dgathright has joined the channel [01:53] phluffy has joined the channel [01:53] phluffy has joined the channel [01:53] te-brian: anyone know how to refresh an oauth access token using everyauth? [01:54] Nuck: te-brian: Use the refresh token? [01:54] Nuck: Does it give you that? [01:55] te-brian: Nuck: Gonna have to dig around.. not sure if that would be on the fetch user or what [01:55] Nuck: tjholowaychuk: Poke. Looks like you have fans. [01:55] Nuck: ;P [01:55] boltR has joined the channel [01:55] Nuck: Everybody asks about Express [01:56] Nuck: Acolyte: You mean HTML-encoding? [01:56] JasonSmith: dscape: Interesting, do you have code that I can try to run to duplicate this bug? [01:56] Nuck: &thing; and such? [01:57] JasonSmith: dscape: Also, do you get *no JSON at all* or is it only the ok:true pair that is missing from the JSON? [01:57] Nuck: Murvin: >:C GET SHOULD NEVAR UPDATE! [01:57] Acolyte: Nuck: yes, I've found it in EJS Git [01:57] tjholowaychuk: Acolyte it's a potential security flaw if you dont [01:57] tjholowaychuk: escape that [01:57] JasonSmith: (there was a bug recently with no JSON at all; however I thought it was fixed [01:57] tjholowaychuk: (if errors are exposed to the client at least) [01:57] devongovett has joined the channel [01:57] Acolyte: I use EJS in server-side and got to have an option to disaable it [01:58] dscape: yeah JasonSmith [01:58] dscape: npm install nano [01:58] dscape: cd node_modules/nano [01:58] dscape: npm install [01:58] dscape: cd tests [01:58] Nuck: dscape: Nano is my favorite CLI text editor. [01:58] dscape: node doc/bulk.js [01:59] dscape: Nuck: I like it too [01:59] dscape: and I like using nano to edit the nano source code [01:59] Nuck: :P [01:59] Nuck: lol [01:59] Murvin: Nuck: what? [01:59] te-brian has joined the channel [01:59] Nuck: Murvin: You used a GET request as "update" >:C [01:59] dscape: nano is the defacto text editor for small fast changes to package.json [01:59] Nuck: GET never changes server state [01:59] Murvin: Nuck: well, just an example [02:00] Nuck: Murvin: As far as I know, session only updates when you update session [02:00] Murvin: Nuck: ok. how's that.. app.get() will not create any session, or trigger express.session ... thus no entry in datastore. but only app.post() will create session or update session [02:01] Nuck: Am I wrong, tjholowaychuk? [02:01] tjholowaychuk: ? [02:01] brianseeders has joined the channel [02:01] Nuck: session [02:01] Murvin: Nuck: no. whenver I call something app.get or app.post.. express.session will run. [02:01] Nuck: Does it update on each pageload? [02:01] tjholowaychuk: yes [02:01] Murvin: Nuck: yes [02:01] Acolyte: Nuck: any recommendation about avoiding escaping "transclusion"ed templates? [02:01] tjholowaychuk: we would have to hash the object to see if there are changes etc [02:01] yokoaway has joined the channel [02:02] tjholowaychuk: i do plan on making that a bit smarter, and possibly implement a merging strategy [02:02] tjholowaychuk: but for now it's simply saving the session per request [02:02] Nuck: tjholowaychuk: Might be a good idea, to cache it locally, but I thought it only grabbed the session if I didn't change the object [02:02] Murvin: Nuck: so, is there a way to say only certain Post call will even touch the session.. but not others [02:02] tjholowaychuk: Nuck that doesnt scale [02:02] chud has joined the channel [02:02] JumpMast3r has joined the channel [02:03] tjholowaychuk: it's not like a GET from redis is slow [02:03] Nuck: tjholowaychuk: True, but a rotating log is good for caches, as memcached proved [02:03] bronson has joined the channel [02:03] Nuck: Murvin: I dunno if you can have middleware for only certain paths [02:03] tjholowaychuk: sure, as long as you can cap it so you dont bloat the process like mad, and if you flush properly [02:03] Nuck: That would be cool, though, I must admit. [02:03] Nuck: tjholowaychuk: Oh, certainly [02:03] meso_ has joined the channel [02:03] Nuck: Caching everything in RAM would be a horrible idea [02:03] tjholowaychuk: wouldn't want to lose that info when the process fails [02:04] Nuck: Well, just for faster retrieval [02:04] Murvin: tjholowaychuk: waht does express.session return? [02:04] Nuck: Maybe store hashes in RAM and on the store [02:04] JakeyChan has joined the channel [02:04] tjholowaychuk: it could definitely be improved [02:04] tjholowaychuk: in many cases we dont even really need a data store [02:04] Nuck: It's generally faster to retrieve a single field than to retrieve the whole object [02:04] Murvin: Can I do this? session = express.session (); and app.post('/update', session, function(req, res)); [02:05] tjholowaychuk: but from what i've profiled it's just not a bottleneck so i havent focused on it [02:05] Murvin: instead of setting the express.sssion in createServer [02:05] tjholowaychuk: Murvin it returns a function [02:05] tjholowaychuk: yeah [02:05] tjholowaychuk: you can do that [02:05] Murvin: ohohohoho [02:05] Murvin: thanks. [02:05] Murvin: let me try it later. [02:06] Murvin: tahnsk Nuck [02:06] Nuck: Don't thank me, thank tj ;) [02:06] Nuck: tjholowaychuk: Well, I'm using it as a shared state between all my servers, so I can't do in-memory stores [02:07] Nuck: I just toss it into my Mongo server, since that's already shared among all my Nodes. [02:07] tjholowaychuk: Nuck: for sure, im just saying a lot of cases do cookie -> grab uid with sid -> grab user [02:07] tjholowaychuk: when it could just be signed cookie -> grab user [02:07] Nuck: tjholowaychuk: Ah, yeah, I can see that being a common thing [02:07] Nuck: But what do you mean "signed cookie"? [02:07] Nuck: Just throw up the user account into the cookie? [02:08] Emmanuel` has joined the channel [02:08] Nuck: And sign it cryptographically? [02:08] tjholowaychuk: yeah there was a guy working on it for connect, not sure what happened to him haha [02:08] tjholowaychuk: i havent had time [02:08] tjholowaychuk: i also want to abstract out the session stuff [02:08] Nuck: brb fencehole >_> [02:08] eminion has joined the channel [02:08] tjholowaychuk: so you can grab the Session object [02:08] tjholowaychuk: whenever [02:09] eminion: just wondering if anyone knows whether a tool exists that can compile a node.js app? [02:10] lot49 has joined the channel [02:10] dscape: anyone knows how I can break a promisse in everyauth? [02:10] dscape: I want it to crash and burn if the user has not registered [02:10] tbranyen: lol [02:10] Acolyte: Nuck: any recommendation about avoiding escaping transcluded templates? [02:12] jellosea: how can i dump all the events my process is waiting for? [02:14] jbrokc has joined the channel [02:15] MrNko has joined the channel [02:17] slifty has joined the channel [02:17] eyesUnclouded has joined the channel [02:17] kurtzhong has joined the channel [02:18] eyesUnclouded has left the channel [02:19] slifty_corsair has joined the channel [02:19] lunks has joined the channel [02:19] CIA-69: libuv: 03Ryan Dahl 07multiplicity3 * r56dcaf9 10/ (38 files in 3 dirs): unix: multiplicity - http://git.io/y4sT1w [02:19] CIA-69: libuv: 03Bert Belder 07multiplicity3 * r3aec77f 10/ (31 files in 2 dirs): bring back uv_init - http://git.io/uTgWow [02:19] CIA-69: libuv: 03Bert Belder 07multiplicity3 * r78debf9 10/ (21 files in 2 dirs): win: multiplicity - http://git.io/ENNUWA [02:19] CIA-69: libuv: 03Bert Belder 07multiplicity3 * r8e3a860 10/ (5 files): update tests for multiplicity - http://git.io/WhjNpg [02:20] boltR has joined the channel [02:21] aude-wiki has joined the channel [02:21] te-brian: Nuck: Digging around, nothign is jumping out at me ... are you familiar with the module? [02:22] __sorin__ has joined the channel [02:22] kriszyp has joined the channel [02:22] brianseeders has joined the channel [02:22] hoodoos has joined the channel [02:23] MrNko has joined the channel [02:27] mikeal has joined the channel [02:28] igl has joined the channel [02:28] misterm has joined the channel [02:28] EyePulp has joined the channel [02:29] JasonSmith: dscape: Checking your bug now [02:29] Brian` has joined the channel [02:29] Nuck: te-brian: What module? [02:30] Nuck: So, WTF is this multiplicity3? [02:31] te-brian: Nuck: everyauth ... its what I'm using to get around my embarassing lack of oauth skills :) [02:32] dscape: te-brian: how do you break a promisse on find user? [02:32] JasonSmith: ok dscape I get a pass on tests/doc/bulk.js [02:32] dscape: JasonSmith: [02:33] dscape: oh sorry I changed the test [02:33] chjj has joined the channel [02:33] dscape: change those .id [02:33] te-brian: dscape: Not sure what you are asking? [02:33] dscape: to .ok [02:33] dscape: cause not getting the ok was what was breaking the test [02:33] colinsullivan has joined the channel [02:33] dscape: JasonSmith: then test localhost and iriscouch [02:33] dscape: and u should get different results [02:33] dexter_e has joined the channel [02:33] cpetzold has joined the channel [02:33] dscape: at least on 1.2.0a-b11df55-git [02:33] abravo has joined the channel [02:34] JasonSmith: dscape: You are the author of nano? I think we spoke on IRC a while back. Yes, I *think* the bug you reported previously (which your blog post assumed was fixed) is actually fixed now. If you still have incorrect responses from couch, please let me know. It is a top priority to fix that. [02:35] JasonSmith: I should say, I definitely closed one bug where couch truncated its response; maybe there are more :) [02:35] dscape: JasonSmith: this is it https://github.com/dscape/nano/blob/0.7.1/tests/doc/bulk.js [02:35] ajpiaNOU has joined the channel [02:35] dscape: thanks JasonSmith [02:35] joshkehn has joined the channel [02:35] Ratty_: When nano is the default editor on a server I get confused [02:35] dscape: I found a bug in node http interface too with the pipe stuff [02:36] dscape: seems like couch sets content-type headers with newlines in between the mimetype and permissions [02:36] dscape: that breaks in node 0.4 [02:36] dscape: but works in 0.5 [02:36] dscape: just try the blog post I wrote about piping [02:36] JasonSmith: dscape: mimetype and "permissions" -- what permissions? [02:36] dscape: but with a jpg from your computer [02:36] dscape: JasonSmith: like 777 [02:37] dscape: fs perms [02:37] dscape: if you try the pipe example with but from the filesystem [02:37] dscape: http://writings.nunojob.com/2011/08/nano-minimalistic-couchdb-client-for-nodejs.html [02:37] dscape: youll be able to replicate that [02:37] JasonSmith: dscape: Sorry, I confused myself. What does couch do that breaks node 0.4? [02:38] dscape: wait, let me just show you the bug report i filed [02:38] dscape: lol [02:38] dscape: sorry was being silly here [02:38] JasonSmith: dscape: Cool. In the meantime, I will work through your blog examples [02:39] dscape: JasonSmith: https://github.com/joyent/node/issues/1569 [02:39] jerrysv has joined the channel [02:40] JSManiacs has left the channel [02:40] hasenj has joined the channel [02:40] dscape: JasonSmith: because < Content-Type: image/jpeg; [02:40] dscape: < x-unix-mode=0600; [02:40] dscape: < name="IMG_20110517_093510-1.jpeg" [02:41] mcluskydodallas has joined the channel [02:43] jerrysv: heya jasonsmith :) [02:44] zinkem has joined the channel [02:44] brianseeders has joined the channel [02:45] oatkiller has joined the channel [02:45] amigojapan has joined the channel [02:46] oatkiller has left the channel [02:51] Deegie has joined the channel [02:52] bartt has joined the channel [02:52] slyphon has joined the channel [02:53] airportyh has joined the channel [02:53] slyphon: is there a way to customize the colors in the node repl? [02:53] skm has joined the channel [02:53] slyphon: ACTION can't read the dark blue [02:53] joshkehn has joined the channel [02:53] ryanj has joined the channel [02:54] meso has joined the channel [02:54] ecin_ has joined the channel [02:54] jeromegn has joined the channel [02:56] rurufufuss has joined the channel [02:56] jeromegn: looking for some feedback on a mongoose plugin I'm building, any mongoose user willing to check out the API and tell me what they think? http://github.com/jeromegn/mongoose-relationships [02:59] ChrisPartridge: jeromegn: looks good [02:59] ChrisPartridge: I'll give it a try after [02:59] skoom has joined the channel [03:00] jeromegn: yea, it doesn't do much right now. I'm still debating in my mind what to call the method to remove documents from the array (as in, also remove the referenced document)… MongooseArray already uses `remove` so I think I might name it `destroy` (also seems to catch the spirit of what it does better) [03:00] jeromegn: thanks [03:01] ecin has joined the channel [03:01] brianseeders has joined the channel [03:01] SubStack: EXTERMINATE [03:01] SubStack: in all caps [03:02] jeromegn: :) [03:03] PalmerEk has left the channel [03:03] gerard0 has joined the channel [03:05] jchris has joined the channel [03:06] ChrisPartridge: jeromegn: just to be different, maybe purge() ? :) [03:06] battlecollie has joined the channel [03:07] dscape: jeromegn: seriously why would anyone use a orm on a doc db? [03:07] dscape: other than that looks good [03:07] mikey_p: dscape: well in this case it's not really mapping anything, but it can still provide useful functionality for modeling [03:08] mikey_p: dscape: provide default values, validation, etc [03:08] dscape: argh you sound like an old school xml dude [03:08] jeromegn: dscape: not sure what you mean, but here's why I think: sometimes necessary! you don't want to duplicate (clone) your data as embedded documents all the time. it becomes difficult to manage [03:08] mikey_p: got I couldn't hate XML more [03:08] mikey_p: jeromegn: does this use DBrefs? [03:08] dscape: mikey_p: how bout html? [03:09] mikey_p: what about it? [03:09] dscape: also hate it? [03:09] dscape: i like xml, its awesome [03:09] dscape: also like json, its also awesome [03:09] jeromegn: mikey_p: no. Been reading about it, looks like it's not recommended if the field always contain the same model reference [03:09] dscape: just different use cases [03:09] sharkbird has joined the channel [03:10] jerrysv: um. wait. someone actually likes xml? [03:10] mikey_p: I like XML when it's used appropriately, I'm just in the middle of a project with another party that abuses XML quite a bit [03:10] mikey_p: I don't mind making my APIs support XML via RESTful techniques [03:10] dscape: i dont see much use for xml in the middle of code [03:10] dscape: unless u are coding in xslt and/or xquery [03:11] dscape: its good for stuff like html, describing annotated document so to speak [03:11] dscape: json is much better at stuff like code and apis [03:11] mikey_p: but this fulfillment/shipping company on this commerce project thinks that an API consists of 1 URL and all you do is post giant XML bodies to it, and figure out what to do with them based on the contents [03:11] sivy has joined the channel [03:12] jerrysv: mikey_p: you're in pdx, right? mind if i ask which company you work for? [03:12] freewil: mikey_p, reminds me of QBXML [03:12] dscape: yeah, there was a pretty heavy abuse of xml back in the day [03:12] dscape: doesnt mean it's bad, mean people did stupid things with it [03:12] shanebo: hey guys, anyone familiar with http://nodejs.org/docs/v0.4.11/api/fs.html#fs.ReadStream ? [03:13] dscape: like if I were to use json to describe html [03:13] dscape: shanebo: what do you want to do? [03:13] mykul|Home has joined the channel [03:13] shanebo: dscape I'm wanting to persistently watch a file for changes [03:13] bradleymeck has joined the channel [03:13] ChrisPartridge: freewil: QBXML .. *shudder* [03:14] dscape: I think there's a function that does that in globals [03:14] dscape: not sure cause i never used it [03:14] dscape: check the docs, or maybe someone here knows the answer [03:14] jtsnow has joined the channel [03:14] SubStack: globals D: [03:14] Nuck: watchFile [03:14] Nuck: IIRC [03:14] DTrejo: fs. [03:14] ChrisPartridge: only can watch dir's I thought [03:14] SubStack: fs.watchFile should return an object that you can .unwatch() on [03:15] SubStack: and listen for 'changed' events [03:15] SubStack: hmm [03:15] dscape: shanebo: http://nodejs.org/docs/v0.5.5/api/fs.html#fs.watchFile [03:15] Nuck: Yay I had it before SubStack :D [03:15] shanebo: Nuck +1 [03:15] shanebo: SubStack, what event fires with changes? [03:15] SubStack: Nuck: I was just responding to you, not to dscape's question [03:15] SubStack: shanebo: you pass in a callback to fs.watchFile [03:16] SubStack: and you get 2 stat objects [03:16] freewil: ChrisPartridge, QBXML wrapped in SOAP [03:16] SubStack: before and after [03:16] freewil: awesome [03:16] SubStack: when the file changes [03:16] vidi has joined the channel [03:16] SubStack: but being able to just do fs.watchFile(file).on('delete', fn) would be much nicer I think [03:17] shanebo: SubStack, "The callback listener will be called each time the file is accessed." that's a bit ambiguous, but I supposed "accessed" means changed? [03:17] SubStack: oh it already does return an event emitter, nifty! [03:17] SubStack: shanebo: yeah, modified [03:18] shanebo: SubStack so curr is after the modification and prev is before? [03:18] jtsnow has joined the channel [03:18] Nuck: Hopefully not every time the file is accessed, whenever an FD is generated on it [03:18] SubStack: shanebo: correct [03:18] sebastianedwards: anyone messed around with https://github.com/chriso/synchronous before? [03:18] jakehow_ has joined the channel [03:18] jakehow__ has joined the channel [03:18] jakehow has joined the channel [03:18] CIA-69: libuv: 03Bert Belder 07multiplicity3 * rb44ecf9 10/ (8 files): multiplicity: update benchmarks - http://git.io/5QU6Uw [03:18] Nuck: sebastianedwards: You should be banned for mentioning the word "synchonous" in chat >:C [03:19] tjholowaychuk: fibers != sync [03:19] Nuck: Synchronous even [03:19] sneakyne_ has joined the channel [03:20] dscape: tjholowaychuk: good point, people somehow seem to miss that all the time [03:20] jeromegn: ChrisPartridge: MongooseArray also has "push" for already existing objects, I was thinking of "add" (i.e.: user.posts.add(Document, callback)), thoughts? [03:20] StevenSoroka has joined the channel [03:20] DTrejo: anyone here have experience sending tons of emails? [03:20] DTrejo: programmatically [03:20] dscape: just sending some few [03:20] ksheurs has joined the channel [03:20] StevenSoroka: DTrejo: you mean like sendgrid? :) [03:20] Nuck: DTrejo: Come back in a few months and I will [03:20] dscape: DTrejo: use postmark [03:20] dscape: not sendgrid [03:20] Nuck: I'm using SMTP [03:20] dscape: and contact them [03:20] dscape: explain what u are doing and why its ok [03:20] DTrejo: ah ok [03:21] dscape: and they will make ur life easy to send that bunch of emails you want to send [03:21] Nuck: I'm debating if I wanna use to Haraka eventually [03:21] Nuck: DTrejo: Is this in response to events? [03:21] DTrejo: thanks for the advice guys [03:21] Nuck: DTrejo: For event-response emailing, postmark is unrivaled. [03:21] Nuck: For mass email, I suggest doing SMTP or something manually [03:22] DTrejo: it is related to http://hollaback.no.de/ [03:22] DTrejo: i think you can guess what I want to do :) [03:22] dscape: DTrejo: if you want to use their http api but you have scripted a node_mailer thingy [03:22] reid has joined the channel [03:22] dscape: i did the same thing, lol [03:22] dscape: and this was the monkey patched solution https://gist.github.com/1123036 [03:23] dscape: Alex Hillman is the guy to talk too, he's very nice [03:23] Nuck: I was gonna do postmark, but then I decided against it [03:23] Nuck: The thing is, it's not hard to set up my own mail servers [03:24] Nuck: And to configure them to make it to the user's inbox [03:24] stash1 has joined the channel [03:24] Nuck: And the whole "measuring bounces" thing is 90% horse-shit, since the email protocols don't provide for such in-depth analyses. [03:25] sneakyness has joined the channel [03:25] Nuck: dscape: You know there's already Node.js modules to deal with postmark, right? [03:25] dscape: Nuck: yeah [03:25] dscape: but i started with send_grid [03:25] dscape: which is smtp [03:25] dscape: and used node_mailer (i think) [03:25] dscape: then i had all the code set up [03:26] Nuck: dscape: And you do realize that postmark ALSO provides an SMTP interface? [03:26] dscape: and these guys at postmark say they will give me better errors and stuff on the http api [03:26] Nuck: Ah [03:26] Nuck: Well, that's highly unlikely [03:26] dscape: so i created a quick and dirty postmark make look like node mailer thing [03:26] Nuck: Since it's still the same mail protocols over the web [03:26] dscape: so i didnt need to change my code to test them out [03:26] Nuck: dscape: Seems to be a business built on lies sold cheap [03:26] dgathright has joined the channel [03:27] jhurliman has joined the channel [03:27] Nuck: I decided against them when I came to realize that. [03:27] dscape: what lies? [03:27] dscape: Nuck [03:27] dscape: SendGrid was terrible with me [03:27] Nuck: dscape: Their ability to detect bounces is 90% horseshit [03:27] dscape: but Postmark was reaaally awesome [03:27] Nuck: The mail delivery protocols don't provide for such things [03:28] Nuck: Though it would be nice if they did, it'd require a lot of work to get it adopted [03:28] dscape: well they are a startup and should be set in solving that, as they say they focus on transactional email [03:28] dscape: so I hope you are wrong Nuck [03:28] dscape: :) [03:28] sneakyne_ has joined the channel [03:28] Nuck: dscape: transactional email means when you have an event, you send off an email [03:28] dscape: so far I got no problems [03:28] Nuck: That's doable over any protocol [03:29] DTrejo: thanks for the advice guys, I have to get dinner, but thank you so much for the advice! dscape i'll be back on soon to ask you questions :) [03:29] Nuck: The thing that makes postmark and similar companies so popular is that they provide a simple API to send off an email :P [03:29] ChrisPartridge: jeromegn: could certainly be useful [03:29] dscape: DTrejo: 4:30AM is not really my best time but ok ;) [03:29] jeromegn: def [03:29] Nuck: That and their servers are generally set up flawlessly [03:30] Nuck: But to get to a 99.99999999% success rate, it takes very little configuration beyond setting up a server [03:30] kenperkins has joined the channel [03:30] Nuck: To get to 98%, you just set a single DNS entry (SPF) [03:30] Nuck: To get to 99.99999999%, you set up a feedback loop [03:30] dscape: well Nuck if I had you in my team I would not need postmark then :P [03:30] dscape: lol [03:31] dscape: I was told my some folks from companies that sens tons of emails a day that using them was a good choice [03:31] Nuck: dscape: I just did a lot of research when I was deciding on a route to take ;) [03:31] dscape: e.g. groupon uses send_grid [03:31] dscape: i think [03:31] sneakyness has joined the channel [03:31] Nuck: I was told about the feedback loop by somebody in here who has a company sending tons of emails a day [03:31] dscape: interesting [03:31] Nuck: They linked me to an article at AOL describing how to set up a feedback loop [03:31] Nuck: Well, they WORK for a company that does [03:31] Nuck: They don't have it :P [03:31] dscape: Nuck: I'll make sure to ping you when we hit volume [03:32] dscape: if we hit volume [03:32] dscape: :) [03:32] Nuck: dscape: lol volume? [03:32] dscape: emails per day [03:32] dscape: eheh [03:32] Nuck: I'm founding a startup myself, so I did a lot of research on how to best deal with sending mails [03:32] incredimike: I'm breaking my app up into multiple files. how do I automagically include a module (like underscore) in every file? [03:33] Nuck: incredimike: require() it [03:33] Nuck: I've been debating modding out Haraka to provide a RESTful API [03:33] incredimike: at the top of every file? [03:33] dscape: Nuck: also using haraka? [03:33] dscape: cool [03:33] dscape: we are using it but just to receive email [03:33] incredimike: that's what I'm trying to avoid :P [03:33] Nuck: dscape: Well, I figured that a NodeJS server for email could be really great [03:33] dscape: you should open source the code ;) [03:33] Nuck: incredimike: Well, how are you connecting them all together? [03:33] Nuck: dscape: I might :P [03:34] sneakyne_ has joined the channel [03:34] incredimike: rubber bands, elmers glue and lot of hope [03:34] Nuck: dscape: My current project, however, is a good, general-use, non-buffering, streaming multipart parser [03:34] dscape: the thing I deslike about haraka is the binary. i dont want a binary i would much rather have a project like express that is standalone [03:34] dscape: the thing i like about haraka is everything else [03:34] dscape: lol [03:34] colinsullivan has left the channel [03:34] Nuck: dscape: Binary? [03:35] dscape: Haraka -c . [03:35] dscape: kind of thing [03:35] dscape: i'de rather node app.js [03:35] Nuck: dscape: I was also thinking of doing that [03:35] dscape: I know I can do that by cloning the repo [03:35] incredimike: Nuck: in a similar fashion to this: http://kiwidev.wordpress.com/2011/08/16/node-js-express-mongoose-js-and-modules/ [03:35] Nuck: Separating the Haraka mail sending and recieving stuff into a separate thing [03:35] dscape: Nuck: yes [03:36] Nuck: incredimike: To have shared variables, you can wrap each file in a function on module.exports that takes the shared variables as arguments [03:36] incredimike: trying to keep app.js relatively sparse, only housing routes and such [03:36] Nuck: And then do require('file.js')(foo, bar) [03:36] incredimike: oh, really [03:36] Nuck: That's how I roll [03:36] Nuck: Can also do callbacks and such [03:36] tjholowaychuk: i use "app" as a global most of the time [03:36] incredimike: yea, I ws hoping for a more elegant solution [03:37] tjholowaychuk: it's much more convenient [03:37] incredimike: yeah I was considering that tj [03:37] incredimike: didn't know if it was bad form tho [03:37] Nuck: app as a global then requiring the files? [03:37] tjholowaychuk: despite what people will tell you [03:37] mikey_p: jerrysv: my shop: http://shomeya.com/ [03:37] tjholowaychuk: no it's not bad [03:37] Nuck: tjholowaychuk: Interesting idea, didn't even think of it [03:37] Nuck: But mine works a bit better with async stuff :P [03:38] tjholowaychuk: unless you work with "application" forms or something and often call those vars "app" etc haha [03:38] tjholowaychuk: then you'll run into trouble [03:38] incredimike: heh [03:38] Nuck: Fun to follow my async callback strings between files [03:38] davidbanham has joined the channel [03:38] tjholowaychuk: it's like C namespacing, everyone namespaces so you dont have to for your custom little programs [03:38] boltR has joined the channel [03:38] jerrysv: mikey_p: that's right, drupal [03:38] mikey_p: jerrysv: at least that's what pays the bills these days [03:38] Nuck: I've got a couple cases where a callback goes down through 3-4 files [03:38] c4milo has joined the channel [03:39] Nuck: require('./database.js')(callback); [03:39] mikeal has joined the channel [03:39] Ratty_: Blegh [03:39] incredimike: hmm [03:39] jerrysv: understand. we are in the middle of abandoning it for the front end [03:39] Spion_ has joined the channel [03:39] incredimike: well in my case I wanted a way to have underscore available in all my app files [03:40] sneakyness has joined the channel [03:40] Nuck: And then that callback is called when all my database connection code is done and my db functions are set [03:40] tjholowaychuk: underscore isnt really all that useful on the SS [03:40] incredimike: but even overriding app still adds a step [03:40] Nuck: async.js [03:40] incredimike: fair enough [03:40] tjholowaychuk: overriding? [03:40] incredimike: wrong choice of words [03:41] Nuck: That is THE lib for Node.js [03:41] MavJS has joined the channel [03:41] robotarmy has joined the channel [03:41] chrisdickinson: I wonder if anyone has packaged up async extensions for array.prototype as a library. [03:42] Nuck: Who was it in the knockout who asked me on turntable.fm about some good CC-licensed creepy music... [03:42] Nuck: I wonder if they ended up using the music I suggested... [03:43] tjholowaychuk: so we have res.setHeaders yet? [03:43] incredimike: I think I'll continue require()ing modules until some time when I'm not overtired and can think a bit more clearly [03:43] tjholowaychuk: or just setHeader [03:43] mikeal_ has joined the channel [03:43] incredimike: tonight me no brain good [03:44] sneakyne_ has joined the channel [03:44] mikeal-cloud: trying IRCloud [03:44] mikeal-cloud: er IRCCLoud [03:44] Nuck: lol [03:45] Nuck: eww ugly UI is ugly [03:45] Nuck: You wanna see a GOOD chat client? Look at http://joltproject.com/client/ [03:45] Nuck: Now THAT is a chat client [03:46] nardoo has joined the channel [03:46] incredimike: irssi ftw [03:46] sneakyness has joined the channel [03:46] Nuck: That's not a chat client, that's a chat pile of feces [03:47] jeromegn: Colloquy [03:47] Nuck: Eh, Colloquy Mobile is nice [03:47] JaKWaC has joined the channel [03:48] DTrejo: Nuck: your site? [03:48] DTrejo: joly [03:48] DTrejo: jolt [03:48] Nuck: DTrejo: I partook in the later times before it got abandoned [03:48] jro_ has joined the channel [03:48] DTrejo: ah [03:48] jtsnow has joined the channel [03:48] Nuck: It's not IRC [03:48] DTrejo: ah [03:48] Nuck: It's a custom-built protocol [03:48] Nuck: Uses a Python server [03:48] Nuck: Evented [03:48] Nuck: With Twisted, IIRC [03:48] DTrejo: mm [03:49] Nuck: The client is quite well-built [03:49] DTrejo: yea [03:49] sneakyne_ has joined the channel [03:49] DTrejo: pretty [03:49] Nuck: The server I intend to rebuild [03:49] DTrejo: you had a designer [03:49] DTrejo: :) [03:49] Nuck: Actually no [03:49] Nuck: That was the work of our previous JS coder :P [03:49] Nuck: The man who I was brought in to replace [03:49] Nuck: I wanna replace the transport with socket.io [03:49] Nuck: And replace the server with Node.js [03:50] mcluskydodallas has joined the channel [03:50] Nuck: And I'm gonna repurpose the client for my art community :D [03:50] incredimike: Nuck: it is certainly not excement ;/ [03:51] douglasgraves has joined the channel [03:52] abiii has joined the channel [03:52] douglasgraves: hi all, has anyone else had trouble installing the bcrypt package? [03:53] DTrejo: douglasgraves: yes, in the past [03:53] DTrejo: douglasgraves: do you have gcc installed and all that goodness? [03:53] Nuck: On Cygwin? [03:53] Nuck: Yes, very. [03:54] sneakyness has joined the channel [03:55] douglasgraves: i'm running node locally on osx, i don't believe i've installed gcc (unless it comes pre-packaged with osx) [03:55] davidbanham: gcc is installed automatically along with the apple dev tools. If you've got xcode, you've got gcc [03:57] synkro has joined the channel [03:58] douglasgraves: i see. i've definitely got the last version of the dev tools installed (though not the latest) [03:58] jerrysv has joined the channel [03:58] douglasgraves: this is the error that's kicking off the epic failure i'm getting in npm: /Users/douglasgraves/node_modules/bcrypt/wscript:16: error: could not configure a cxx compiler! [03:59] temp01 has joined the channel [03:59] infynyxx has joined the channel [04:00] piscisaureus has joined the channel [04:00] tmzt_: douglasgraves: actually clang now isn't it? [04:01] IndyToSF has joined the channel [04:02] douglasgraves: tmzt_: not quite sure [04:02] IndyToSF: If anyone has got a second, I am having quite the time with an install on a clean ubuntu install. Never had this issue before [04:03] sneakyne_ has joined the channel [04:04] sneakyness has joined the channel [04:04] abiii has joined the channel [04:05] Nuck: I didn't even notice that the music controls in the iOS multitasking panel work for more than just the iPod [04:06] jamesd2 has joined the channel [04:06] reid has joined the channel [04:06] nimstr has joined the channel [04:07] hunghuynh: hi all [04:07] tuhoojabotti: Hello [04:07] shanebo: SubStack, thanks for the help. One more related question, what's the best way to readFile on change of the watched file? [04:07] cognominal___ has joined the channel [04:08] tuhoojabotti: fs.readFileSync ":D" [04:09] chrislorenz has joined the channel [04:09] shanebo: yeah but I'm wondering if I already have access to it via the curr param in the callback [04:09] tuhoojabotti: Don't think so. [04:09] shanebo: (I'm trying to avoid being redundant but maybe I need to readFile within the callback) [04:09] tuhoojabotti: Yes. [04:10] tuhoojabotti: watchfile doesn't read the file afaik. [04:11] tuhoojabotti: shanebo: watchFile only gives you 2 fs.Stats objects. [04:11] shanebo: yep [04:12] jspiros has joined the channel [04:14] boltR has joined the channel [04:15] Bretzky has joined the channel [04:15] mike5w3c has joined the channel [04:15] sneakyne_ has joined the channel [04:15] sneakyness has joined the channel [04:15] DTrejo: just downloaded 17mb of package.json from npmjs.org :) [04:16] DTrejo: and it worked [04:16] DTrejo: <3 request and node [04:16] tuhoojabotti: lulz [04:16] DTrejo: request.get(url) [04:16] DTrejo: .pipe(fs.createWriteStream('./real.json')) [04:16] DTrejo: so ez [04:18] jacobolus has joined the channel [04:19] sneakyne_ has joined the channel [04:20] MrNko has joined the channel [04:22] confoocious has joined the channel [04:22] battlecollie has joined the channel [04:22] c4milo: any idea about how to use node-http-proxy with sticky sessions [04:22] c4milo: ? [04:22] sneakyness has joined the channel [04:23] c4milo: nvm I'm going to do it by myself [04:25] prettyrobots has joined the channel [04:27] luke` has joined the channel [04:27] JumpMast3r has joined the channel [04:27] CrypticSwarm has joined the channel [04:29] tk has joined the channel [04:30] gerad has joined the channel [04:30] shanebo: tuhoojabotti, thanks for the help [04:30] boehm has joined the channel [04:30] wookiehangover has joined the channel [04:31] IndyToSF: i don't remember "node cli.js install -g -f" taking forever last time... [04:32] clu3 has joined the channel [04:32] clu3_ has joined the channel [04:34] ryanfitz has joined the channel [04:35] ditesh|cassini has joined the channel [04:37] Qbix1 has joined the channel [04:37] cliffano has joined the channel [04:45] bartt has left the channel [04:46] MrNko has joined the channel [04:48] mykul_ has joined the channel [04:50] jellosea: does anyone know why there can be a lag between data coming from the network and the data event being fired in node? [04:50] pizthewiz_ has joined the channel [04:51] azend has joined the channel [04:52] wadey has joined the channel [04:54] gvz has joined the channel [04:54] ironlad has joined the channel [04:55] freewil has joined the channel [04:55] freewil has joined the channel [04:55] sridatta has joined the channel [04:55] jokil has joined the channel [04:55] amigojapan has joined the channel [04:59] binaryjohn_ has joined the channel [04:59] sivy has joined the channel [05:00] clu3 has joined the channel [05:01] clu3 has joined the channel [05:03] vidi has joined the channel [05:05] xerox has joined the channel [05:06] trentm has joined the channel [05:07] fitzgen has joined the channel [05:09] alek_br has joined the channel [05:11] blueadept`: how do you debug a stylus error? something is tripping up and all i see is "Internal Server Error" [05:11] _numbers has joined the channel [05:11] _numbers: with all these javascript mvc libraries that support routing with fragment hashes, how are ppl handling seo? doesnt that just destroy the page's ability to rank? [05:13] zmbmartin has joined the channel [05:14] sebastianedwards has joined the channel [05:14] ronnieboy has joined the channel [05:15] NetRoY has joined the channel [05:15] _numbers: i've heard of node.js frameworks like zappa which share code between front and back-end, so theoretically you maintain your models and controllers in one place, but if you were to visit the route as /user/1 or #/user/1 it could render the same. thats the only way i can think of to address the seo, but i can't say i've actually seen any examples of that [05:16] eddanger has joined the channel [05:17] FireFly|n900 has joined the channel [05:17] chjj has joined the channel [05:17] matyr has joined the channel [05:18] vidi has joined the channel [05:20] fangel has joined the channel [05:23] sneakyne_ has joined the channel [05:24] cliffano: numbers: re seo, google does ajax-crawl pages with #! [05:24] cliffano: numbers: http://code.google.com/web/ajaxcrawling/docs/getting-started.html [05:24] sneakyness has joined the channel [05:24] freewil has joined the channel [05:26] abustin has joined the channel [05:27] ptlo has joined the channel [05:30] mbthomas has joined the channel [05:30] torsd has joined the channel [05:30] meso_ has joined the channel [05:31] sneakyne_ has joined the channel [05:31] sivy has joined the channel [05:31] sneakyness has joined the channel [05:32] saikat has joined the channel [05:33] kon_ has joined the channel [05:33] Marak has joined the channel [05:33] beejeebus has left the channel [05:33] meso_ has joined the channel [05:35] ptlo has joined the channel [05:36] SamuraiJack has joined the channel [05:39] stonebranch has joined the channel [05:43] descipher has joined the channel [05:45] MrNko has joined the channel [05:46] tylerstalder has joined the channel [05:48] djazz has joined the channel [05:49] Acolyte: #define TRUE FALSE; // Good luck debugging, suckers! [05:53] matyr_ has joined the channel [05:54] garrensmith: morning all [05:54] mikeal has joined the channel [05:54] shanebo: morning [05:56] _numbers: cliffano: thx [05:56] matyr__ has joined the channel [05:56] FireyFly|n900 has joined the channel [05:58] amerine has joined the channel [05:59] _numbers: i'm still confused by a simple node/js concept: how to get things to go in order when there are some mandatory asynchronous operations like reading files [05:59] azend has joined the channel [05:59] stephank has joined the channel [05:59] _numbers: i know i would use callbacks but what about when i am waiting on multiple asynchronous operations [06:00] toki_kanno has joined the channel [06:00] _numbers: seems like i'd need a while() loop with a sleep to wait for them both to fire callbacks that set some variable to indicate they've completed [06:00] scas has joined the channel [06:00] _numbers: seems like a lot of code to write compared to standard procedural blocking functions [06:00] _numbers: is there any simple shortcut to convert async methods by wrapping them in some blocking function [06:01] freewil: _numbers, there are some libraries that can queue up function calls [06:02] _numbers: freewil: like? [06:02] freewil: https://github.com/substack/node-chainsaw [06:03] guidocalvano has joined the channel [06:03] meso has joined the channel [06:03] jchris has joined the channel [06:04] freewil: _numbers, also: http://thechangelog.com/post/516202796/step-control-flow-the-node-js-way [06:04] _numbers: i c. this reminds me of custom FIFO FILO LIFO etc buffers/stacks in c with pointers [06:05] trentm has joined the channel [06:05] freewil: yeah with step its just a FIFO queue of functions to be called [06:05] _numbers: i'd rather be able to say something like do( readfile1(), readfile2()).then(proceed()); [06:06] _numbers: anything that simple? [06:06] ChrisPartridge: _numbers: chekc out asyncjs [06:06] freewil: i think you can do that with chainsaw [06:06] _numbers: ChrisPartridge: ya async looks easy [06:06] fitzgen has joined the channel [06:07] _numbers: chainsaw seems confusing to me for some reason [06:07] _numbers: but now i know the keyword 'flow control' [06:07] freewil: ha yeah [06:07] cliffano: numbers: also check out Tame JS [06:09] djazz has left the channel [06:09] ryah: https://github.com/popular/watched closing in on jquery [06:11] DTrejo: ryah: woooo ;) [06:11] freewil: that's pretty amazing really [06:11] freewil: considering all the backends jquery spans across [06:12] DTrejo: I think the main thing is that ALL node ppl chill on github [06:12] freewil: ha that too [06:12] freewil: thats why im on github :) [06:12] DTrejo: no github == not a node user hah [06:12] ryah: world domination [06:13] DTrejo: ryah: and with npm pants, people will like node / npm even more [06:15] JSManiacs has joined the channel [06:16] raphdg has joined the channel [06:16] _numbers: pants? [06:17] abiii has joined the channel [06:17] _numbers: cliffano: thx i think i like tamejs the best [06:18] _bat has joined the channel [06:19] mcluskydodallas has joined the channel [06:19] JumpMast3r has joined the channel [06:20] sidorares has joined the channel [06:20] williamli has joined the channel [06:20] zgryw has joined the channel [06:21] fmeyer has joined the channel [06:24] jro_ has joined the channel [06:26] MrNko has joined the channel [06:27] shanebo: cliffano wow tamejs looks amazing, thanks for the idea [06:27] svnlto has joined the channel [06:28] cliffano: _numbers shanebo : np, it saves you from feeling like this http://i.imgur.com/mDFWY.jpg [06:29] shanebo: :) [06:29] simenbrekken has joined the channel [06:31] Nuck: SubStack: Goddamnit, that comment of "modifying require.paths" [06:31] jro_ has joined the channel [06:31] SubStack: Nuck: moo? [06:31] jro_: http://feeds.feedburner.com/~r/rss/cnn_topstories/~4/_Uv2LgRYDKQ (image) [06:31] Nuck: SubStack: On HN [06:31] navaru has joined the channel [06:31] Nuck: http://news.ycombinator.com/item?id=2944431 [06:32] Nuck: That one [06:32] nimstr has joined the channel [06:33] SubStack: oh hah I'm probably not even thinking of the right thing [06:33] Nuck: SubStack: Yeah, regarding "How does Rubygems modify the behavior of the Ruby interpreter? [06:33] SubStack: the hell is it called [06:33] Nuck: I was like "lolnoe" [06:33] SubStack: all the ruby folks do it [06:33] Nuck: *lolnode [06:33] Nuck: SubStack: Thank Ryan that require.paths is going away :D [06:33] SubStack: yeah totally [06:34] sneakyne_ has joined the channel [06:34] MrNko has joined the channel [06:34] sneakyness has joined the channel [06:35] SubStack: hah I meant "require_paths" [06:35] toki_kanno has joined the channel [06:35] kurtzhong has joined the channel [06:35] Nuck: SubStack: lol I don't know Ruby, but I saw that and immediately recognized it from Node [06:35] _numbers has left the channel [06:37] captain_morgan has joined the channel [06:38] SubStack: I did so much ruby one year [06:39] mbthomas has joined the channel [06:39] Nuck: I did so much Node one year [06:42] TheJH_phone has joined the channel [06:43] dob_ has joined the channel [06:43] amerine has joined the channel [06:43] blup has joined the channel [06:45] depy has joined the channel [06:45] jro_: oh [06:46] jro_: node can write web app? [06:46] SubStack: it can? [06:46] xerox: :o [06:46] mehlah has joined the channel [06:46] garrensmith: we need a bot that picks up super super newbie questions and refers them to an introduction to nodejs website [06:47] christkv has joined the channel [06:47] jro_: :) [06:47] TheJH_phone: ACTION has to do that [06:47] TheJH_phone: Unfortunately, i'm currently not in front of my PC :( [06:48] `3rdEden has joined the channel [06:48] freewil: true node hackers can write apps on their phone [06:49] TheJH_phone: freewil, I don't even have curlies [06:49] TheJH_phone: Lesson goes on [06:49] cliffano: true node hackers have chuck norris on speed dial [06:49] SubStack: I thought node was just some wrappers for v8 to talk to the network and disk :p [06:49] DTrejo: !insult node hackers [06:49] robotarmy has joined the channel [06:49] robotarmy has joined the channel [06:50] bartt has joined the channel [06:50] Nuck: cliffano: No, but they have me, and my internet handle is Nuck Chorris :D [06:51] Nuck: So I like to think that I'm Good Enough(tm) [06:51] cliffano: Nuck: lol, you're the node.js-implementation of Chuck [06:51] Nuck: Despite what some of the people in here may try to tell you, I am NOT a chatbot programmed in Node.js >:C [06:52] ronnieboy has joined the channel [06:52] robi42 has joined the channel [06:52] stride: sure you are [06:52] jobim: Nuck: Isn't that exactly what a chatbot programmed in node.js would say? [06:52] IndyToSF: Ok, so why would the node prompt run fine, but if it runs a file, it never executes but the process runs out of memory? [06:52] stride: I can tell by the pixels [06:52] emattias has joined the channel [06:53] ivanfi has joined the channel [06:53] IndyToSF: FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory [06:54] NuckingFuts has joined the channel [06:54] Nuck: No, IndyToSF is a bot, I'm not [06:54] Nuck: See, he just had an error! [06:54] IndyToSF: Damn, I'm found out [06:54] IndyToSF: Call me the error bot [06:55] Nuck: IndyToSF: YOU JUST DIED OF MEMORY LOSS HOW ARE YOU TALKING :U [06:55] IndyToSF: Quick recovery [06:56] Nuck|mobile: Yay for colloquy mobile 8D [06:56] jro_: ls [06:56] IndyToSF: but in all serious, anyone run into this on a clean install [06:56] CIA-69: libuv: 03Ryan Dahl 07master * re3f910d 10/ (src/unix/fs.c src/unix/internal.h src/uv-eio.c src/uv-unix.c): [06:56] CIA-69: libuv: Multiplicity update on unix [06:56] CIA-69: libuv: Does not yet support multithreaded use of the thread pool. (+5 more commits...) - http://git.io/EYXdWQ [06:56] meso has joined the channel [06:56] saikat has joined the channel [06:57] IndyToSF: or period [06:57] Nuck|mobile: IndyToSF: That's an issue in your code I think. I had it happen when I accidentally something one time. [06:57] IndyToSF: It happens with the cli.js that is included in npm [06:58] IndyToSF: As well as running the standard Hello World server code [06:58] zackattack has joined the channel [06:58] Nuck|mobile: Hmm now that's odd [06:58] IndyToSF: I knw [06:58] IndyToSF: I can't even install npm [06:58] IndyToSF: Or, oh yeah, test any node :-\ [06:59] Drakonite has joined the channel [06:59] Nuck|mobile: Eek! That sounds shitty. [06:59] Nuck|mobile: IndyToSF: You build 0.5.x or 0.4.x? [07:00] jamescarr has joined the channel [07:00] Nuck|mobile: Do the 4, it's stable ;) [07:00] JakeyChan has joined the channel [07:00] djcoin has joined the channel [07:00] navaru has left the channel [07:01] ttpva has joined the channel [07:01] grekko has joined the channel [07:02] NetRoY has joined the channel [07:02] fangel has joined the channel [07:03] guidocalvano has joined the channel [07:03] matyr has joined the channel [07:03] __doc__ has joined the channel [07:04] groom has joined the channel [07:05] AvianFlu has joined the channel [07:06] amerine_ has joined the channel [07:07] mikey_p has left the channel [07:07] mikey_p has joined the channel [07:08] Druid_ has joined the channel [07:09] IndyToSF has joined the channel [07:09] JaKWaC has joined the channel [07:10] sechrist has joined the channel [07:10] IndyToSF: And that was a stupid reboot thanks to our friends at Skype [07:10] japj has joined the channel [07:10] IndyToSF: Really need to find a better vid chat client for Ubuntu [07:10] hans` has joined the channel [07:11] jamescarr: IndyToSF, skype? [07:11] sechrist: If "npm install" with a valid package.json file (as far as I am aware, and as far as jitsu is aware) exists in the folder, and a node_module folder exists.. and npm install just returns " ", what do I look at? [07:11] MrNko has joined the channel [07:11] IndyToSF: Nuck|Mobile: I am running 0.5.6 [07:11] IndyToSF: jamescarr, don't judge me. My GF is simple peoples [07:11] Nuck: IndyToSF: git checkout v0.4.11 [07:11] Nuck: I think >_> [07:11] Nuck: Then rebuild on 0.4.11 [07:11] IndyToSF: And Gtalk video doesnt recognize any of my audio hardware [07:12] amigojapan_ has joined the channel [07:12] amigojapan__ has joined the channel [07:12] IndyToSF: Nuck, sounds like a plan [07:12] IndyToSF: just sudo make uninstall first, then rebuild and reinstall? [07:12] AvianFlu: sechrist: jitsu uses the npm tar utility, and the npm tar utility is hard-coded to ignore anything in your .gitignore or .npmignore [07:12] AvianFlu: does that help? [07:13] sechrist: my node_modules is in the gitignore [07:13] sechrist: hahahah [07:13] sechrist: AvianFlu++ [07:13] v8bot_: sechrist has given a beer to AvianFlu. AvianFlu now has 1 beers. [07:13] catb0t: AvianFlu now has 1 beer [07:13] AvianFlu: sechrist, there's a fix in the works [07:13] AvianFlu: but... yeah [07:13] AvianFlu: lulz [07:13] IndyToSF: Nuck, just sudo make uninstall first, then rebuild and reinstall? [07:13] Nuck: believe so [07:14] stagas has joined the channel [07:14] blueadept has joined the channel [07:14] sechrist: AvianFlu: actually, wait. It was. Now it isn't. [07:15] AvianFlu: npm config set loglevel info and try again maybe? [07:15] AvianFlu: but also, there's an npm install done after the jitsu deploy [07:16] AvianFlu: i.e. server side [07:16] sechrist: well that's 500ing [07:16] sechrist: heh [07:16] AvianFlu: try some jitsu logs [07:16] AvianFlu: make a gist, pm it to me [07:18] tylerstalder has joined the channel [07:18] __tosh has joined the channel [07:19] dob_ has joined the channel [07:22] booo has joined the channel [07:25] mraleph has joined the channel [07:25] stagas has joined the channel [07:25] ablomen has joined the channel [07:27] emattias_ has joined the channel [07:28] Creap: I'm testing socket.io, I might have missed something in my quick implementation, but is there some way to time out and stop sending heartbeats? Should I simply do that manually if the client has not done anything in the app for a while and send a socket disconnect event? [07:28] Creap: I accidentally left the app open on a mobile yesterday and the battery was drained this morning [07:29] zgryw has joined the channel [07:30] topaxi has joined the channel [07:33] skm has joined the channel [07:33] CIA-69: libuv: 03Ryan Dahl 07master * r1408ac4 10/ (76 files in 3 dirs): Move src/ev to src/unix/ev - http://git.io/QyeRig [07:33] zackattack_ has joined the channel [07:33] CIA-69: libuv: 03Ryan Dahl 07master * r5fd68a0 10/ (12 files in 3 dirs): Move unix platform files into src/unix - http://git.io/N7HgLQ [07:33] CIA-69: libuv: 03Ryan Dahl 07master * r231298a 10/ (44 files in 5 dirs): move eio stuff into src/unix - http://git.io/t99fNA [07:33] sneakyne_ has joined the channel [07:34] sneakyness has joined the channel [07:35] nahime has joined the channel [07:36] [AD]Turbo has joined the channel [07:36] [AD]Turbo: hi there [07:38] uchuff has joined the channel [07:38] toki_kanno has joined the channel [07:39] cpetzold has joined the channel [07:40] jokil has joined the channel [07:40] sridatta has joined the channel [07:41] IndyToSF: Oh, almost forgot [07:41] IndyToSF: Nuck++ [07:41] v8bot_: IndyToSF has given a beer to Nuck. Nuck now has 3 beers. [07:42] IndyToSF: Nuck, they'll be another one coming your way if everything goes well after the build [07:42] hackband has joined the channel [07:42] IndyToSF: But I'm off to bed. Thanks for the help, and Good Night all. [07:44] sounko has joined the channel [07:44] CIA-69: libuv: 03Ryan Dahl 07master * rb47c474 10/ (16 files in 3 dirs): Move private headers into include/uv-private - http://git.io/q5kMzA [07:44] Remoun has joined the channel [07:45] ronnieboy has joined the channel [07:45] tdegrunt has joined the channel [07:46] _kud has joined the channel [07:47] mykul|Home has joined the channel [07:47] bergie has joined the channel [07:47] MUILTFN has joined the channel [07:48] matyr_ has joined the channel [07:49] whitman has joined the channel [07:49] mc_greeny has joined the channel [07:49] tdegrunt has joined the channel [07:49] burningdog has joined the channel [07:52] mpavel has joined the channel [07:52] cosmincx has joined the channel [07:53] JakeyChan has joined the channel [07:55] ccare has joined the channel [07:57] dnjaramba has joined the channel [07:57] sidorares has left the channel [07:58] nXqd has joined the channel [07:58] nXqd: hello guys :) [07:58] kurtzhong has joined the channel [07:58] AvianFlu: sup d00d [07:59] radiodario has joined the channel [08:00] DrMcKay has joined the channel [08:03] abraxas: Does anyone here use Learnboost's cluster module? It seems really neat. Kinda curious about user experience and performance though. [08:03] mehlah has joined the channel [08:03] dgathright has joined the channel [08:03] aaronmcadam has joined the channel [08:04] cjheath has joined the channel [08:05] antubis has joined the channel [08:06] Druid_ has joined the channel [08:07] meso has joined the channel [08:08] ph^ has joined the channel [08:11] antubis: My first Node.js installation under Windows 7 ... (pround) [08:12] garrensmith: antubis: pround is that a combination or proud and pounding you fists in celebration :-) [08:12] __tosh has joined the channel [08:12] garrensmith: abraxas: I think a log of people use it [08:12] nXqd: garrensmith= : lolz :P [08:12] garrensmith: * a lot [08:13] abraxas: Is it popular, yeah? that's good :) [08:13] abraxas: I'm gonna try it out. [08:15] nXqd: abraxas= : you should write a guide about installing node in windows xD. How about nodejs npm ? [08:16] TomY has joined the channel [08:17] eldios has joined the channel [08:18] abraxas: Me? [08:20] Yoric has joined the channel [08:21] markwubben has joined the channel [08:21] DennisRasmussen has joined the channel [08:24] sneakyne_ has joined the channel [08:25] sneakyness has joined the channel [08:25] tdegrunt has joined the channel [08:26] sylvinus has joined the channel [08:26] robhawkes has joined the channel [08:28] jomoho has joined the channel [08:30] felixhummel has joined the channel [08:30] robotarmy has joined the channel [08:31] shapeshe1 has joined the channel [08:34] rachelderp has joined the channel [08:35] DrMcKay has joined the channel [08:37] nXqd: abraxas= : yup :P [08:37] abraxas: I think you probably mean antubis or ..? [08:38] bergelmir has joined the channel [08:38] nXqd: no :p do you have npm in windows install ? I haven't tried install complete nodejs in windows ;) [08:38] bergelmir has joined the channel [08:39] FireFly|n900 has joined the channel [08:40] garrensmith: I dont think npm is working on windows just yet [08:40] tcurdt has joined the channel [08:41] Martin1982 has joined the channel [08:43] CIA-69: libuv: 03Ryan Dahl 07master * rea4271f 10/ src/unix/fs.c : submit error to correct loop - http://git.io/3y5ZOQ [08:46] hellp has joined the channel [08:47] incon_ has joined the channel [08:49] Aiden has joined the channel [08:52] kulor-uk has joined the channel [08:53] zgryw1 has joined the channel [08:56] burningdog has joined the channel [08:57] emattias has joined the channel [08:59] CIA-69: node: 03Ryan Dahl 07master * r21cc4c4 10/ (215 files in 12 dirs): [08:59] CIA-69: node: Upgrade libuv to ea4271f [08:59] CIA-69: node: Required adding uv_default_loop() in many places. - http://git.io/De5Dpw [08:59] fitzgen has joined the channel [09:05] stonebranch has joined the channel [09:06] pen has joined the channel [09:07] skm has joined the channel [09:12] hebz0rl has joined the channel [09:12] nXqd: ryan is really working hard for node :) [09:12] markwubben has joined the channel [09:13] jetienne has joined the channel [09:13] radiodario: nXqd: does he get paid? or is he just *so* awesome? [09:14] CStumph has joined the channel [09:14] toabi: Is he not working for Joyent? [09:14] Nexxy: lol [09:14] DrMcKay: radiodario: both ;) [09:14] Nexxy: unpaid intern for sure [09:14] DrMcKay: lol [09:14] radiodario: so awesome. [09:15] MrNko has joined the channel [09:17] nXqd: he's awesome :) [09:18] nXqd: toabi= : what is that Joyent ? [09:19] MrNko has joined the channel [09:20] DrMcKay: nXqd: it's a company where node originated [09:20] mraleph has joined the channel [09:20] dgathright has joined the channel [09:20] toabi: nXqd: goto http://nodejs.org/ and scroll to the bottom of the page… [09:20] DrMcKay: nXqd: and, generally, they're doing lots of awesome stuff [09:21] nimstr has joined the channel [09:21] nimstr has joined the channel [09:22] netlemur has joined the channel [09:25] nXqd: so it must be a nest of briliiants x [09:27] andrewfff has joined the channel [09:28] XniX23 has joined the channel [09:29] DrMcKay: meh, this day isn't gonna be productive at all [09:30] DrMcKay: perhaps I should make a game? [09:30] meso has joined the channel [09:30] DrMcKay: any ideas for ass-kicking node-based games? [09:31] DrMcKay: and, oh, [09:32] netlemur: hehe, i always wanted to write a worms clone in node [09:33] DrMcKay: netlemur: sounds cool [09:33] DrMcKay: but it needs a physics engine and all [09:34] netlemur: yeah. but there's box2d... [09:34] DrMcKay: I guess I'll check out creationix's webgl stuff [09:34] netlemur: I'm way too stupid for webgl stuff :( [09:34] mikey_p: DrMcKay: correct me if I'm wrong, but I don't believe node.js was created at joyent, pretty sure they hired ryan after trying out node themselves [09:34] DrMcKay: netlemur: are there bindings for node.js for box2d? [09:35] DrMcKay: mikey_p: wait, lemme google that [09:35] mikey_p: DrMcKay: try starting with http://joyeur.com/2010/11/09/a-new-abode-for-node/ [09:36] netlemur: DrMcKay: perhaps take a look at this: https://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs [09:36] mendel_ has joined the channel [09:38] DrMcKay: mikey_p: ah, you're right [09:38] kulor-uk has joined the channel [09:39] irahgel has joined the channel [09:39] Raynos has joined the channel [09:39] DrMcKay: netlemur: and this realtime multiplayer looks nice [09:42] netlemur: DrMcKay: and it already has stuff like entity interpolation [09:42] cosmincx has joined the channel [09:43] DrMcKay: ACTION `git init` [09:43] DrMcKay: yeah, I'll write that [09:44] DrMcKay: (I think I should actually alias mkdir to mkdir and git init) [09:44] FireFly|n900 has joined the channel [09:46] Glenjamin: creating a project bootstrap script which creates a skeleton package.json, gitignore, npmignore etc is probably a decent idea [09:46] SubStack: Glenjamin: npm init! [09:47] Glenjamin: orly [09:47] DrMcKay: (and I was also supposed to write automatic dependency detection) [09:48] tuhoojabotti: Hello dear friends. [09:49] sylvinus has joined the channel [09:49] Glenjamin: automatic DI? [09:49] Glenjamin: sounds messy [09:49] DrMcKay: Glenjamin: detection [09:49] Glenjamin: i'm just doing it with a hash of defaults and an optional argument to merge over the top [09:49] DrMcKay: Glenjamin: you run it on your project and it finds out what you require, etc. [09:49] Glenjamin: oh [09:49] Glenjamin: i read dependency injection [09:49] Glenjamin: not detection [09:50] DrMcKay: Glenjamin: fully understandable [09:50] burningdog has joined the channel [09:52] hackband has joined the channel [09:52] matyr has joined the channel [09:52] booo has joined the channel [09:53] DrMcKay: I wonder if I can compile node on my phone [09:53] DrMcKay: not cross-compile, compile it on it [09:53] theCode has joined the channel [09:55] radiodario: DrMcKay: i assume it's not an iPhone. [09:55] DrMcKay: radiodario: now, I'm a sane person [09:55] DrMcKay: radiodario: Android 2.3, but I have a Fedora chroot set up in there [09:55] radiodario: cool cool. [09:56] nimstr has joined the channel [09:56] mendel_ has joined the channel [09:56] guidocalvano has joined the channel [09:57] radiodario: well on Fedora, it should compile right? [09:57] cp42 has joined the channel [09:57] cp42: hey folks [09:57] eldios: a good jquery tutorials/book/source noob2pro ? [09:58] Raynos: eidios ... [09:58] Raynos: There aren't any. Go learn JavaScript and the DOM [09:58] eldios: Raynos, that nick would have lead to many legal issues [09:58] DrMcKay: radiodario: I'm not sure about glibc in this chroot [09:58] eldios: Lara Croft would have shot me since years if that was my nick [09:59] cryptix has joined the channel [09:59] eldios: anyway.. tnx [09:59] cp42: how do i wait for a callback to be completed, to work with the result it produced? [09:59] eldios: cp42, you can't [09:59] eldios: use eventemitters [09:59] SubStack: cp42: the callback calls you back [10:00] Raynos: SubStack++ [10:00] v8bot_: Raynos has given a beer to SubStack. SubStack now has 5 beers. [10:00] catb0t: SubStack now has 1 beer [10:00] eldios: v8bot_++ [10:00] v8bot_: eldios has given a beer to v8bot_. v8bot_ now has 3 beers. [10:00] catb0t: v8bot_ now has 1 beer [10:00] radiodario: in soviet russia, you call the callback. [10:00] eldios: ROFL XD [10:01] DrMcKay: radiodario: in Soviet Russia EventEmitter emits you [10:01] eldios: chuck norris once has been called by a callback during a nap.. that callback cannot call anyone else now. [10:01] garrensmith: who is catb0t [10:01] catb0t: who can help you [10:02] eldios: you is catb0t [10:02] catb0t: you can use it for anything in npm that takes a bit of overhead in the server responds with and alert is [10:02] garrensmith: catb0t --help [10:02] catb0t: help writing a simple router and one for keys, keys [10:02] eldios: lol catb0t [10:02] DrMcKay: !help [10:02] catb0t: lol , just u know how to start the app [10:03] garrensmith: catb0t !help [10:03] catb0t: help appreciated [10:03] eldios: wooo sublime-text-2 new release [10:03] eldios: \o/ [10:03] fly-away has joined the channel [10:03] garrensmith: vim ftw [10:03] DrMcKay: eldios: I'm trying to understand what is it since I woke up [10:03] DrMcKay: it's an editor, right? [10:03] eldios: it's an editor.. it's a semi-IDE ... it's fantastic ^_^ [10:04] DrMcKay: vim. [10:04] eldios: well.. givinig it a go won't hurt you [10:05] DrMcKay: eldios: true [10:05] radiodario: idetor [10:07] mike5w3c_ has joined the channel [10:08] DrMcKay: seriously, I have to try that compilation [10:11] eldios: radiodario, you on g+? [10:11] radiodario: yes [10:11] eldios: k query [10:12] nimstr has joined the channel [10:16] azeroth__ has joined the channel [10:16] febits has joined the channel [10:17] nXqd has left the channel [10:19] DrMcKay: I have to scp it into my chroot -.- [10:20] eldios: DrMcKay, huh? [10:21] DrMcKay: eldios: I'm trying to compile node on my phone [10:21] eldios: eheh [10:23] DrMcKay: or maybe I could simply git clone it [10:23] DrMcKay: yeah, I wil; [10:25] necrodearia has joined the channel [10:26] cp42: how would i do something like this properly in node.js? http://pastie.org/2459248 [10:27] Glenjamin: cp42: https://github.com/caolan/async [10:27] DrMcKay: wow, my phone is fast [10:27] DrMcKay: it resolved deltas faster than my server [10:28] mikl has joined the channel [10:28] emattias has joined the channel [10:29] Mcilvena has joined the channel [10:29] cp42: Glenjamin: this would really help me. but is this the correct way to handle stuff like this in node.js, or is it a workaround for guys like me used to more sequential styles of coding? [10:29] jj0hns0n has joined the channel [10:29] radiodario: DrMcKay: dual core samsung ? [10:29] Glenjamin: it's pretty widely used - it's still callback based but it abstract common patterns out for you [10:30] matyr_ has joined the channel [10:30] Glenjamin: cp42: async.forEach(Series), async.series and async.parallel are the main ones I use. Also async.queue sometimes [10:30] DrMcKay: radiodario: HTC Desire HD [10:30] Vertice has joined the channel [10:31] yuwang has joined the channel [10:31] radiodario: Phones should have some sort of SETI at Phone thing [10:31] radiodario: as in, smartphones [10:31] matyr__ has joined the channel [10:31] radiodario: imagine! [10:31] radiodario: the possibilities! [10:31] DrMcKay: radiodario: I believe there's something like that [10:32] DrMcKay: radiodario: or at least I've heard about such a project [10:32] fermion has joined the channel [10:32] radiodario: cooool [10:32] radiodario: iPhones not allowed [10:32] DrMcKay: radiodario: http://pubs.cs.uct.ac.za/archive/00000659/01/MobiGridChapter.pdf [10:32] Glenjamin: SETI is a waste [10:32] Glenjamin: the protein folding one is a better goal really [10:33] jvduf has joined the channel [10:33] Raynos: cp42: Your looking for `.forEach` [10:33] Raynos: its a native method of Array [10:33] radiodario: DrMcKay: noice! [10:33] Raynos: eldios: use sublime-text-2-dev. A new release every day :P [10:34] eldios: lol [10:34] DrMcKay: btw, boinc should compile for ARM [10:35] DrMcKay: and these all computing apps as well [10:35] DrMcKay: unless they're using SSE explicitely [10:36] Gojohnnyboi has joined the channel [10:38] cp42: Raynos: in this case cursor would not be an array [10:38] shapeshe1 has joined the channel [10:38] JakeyChan has joined the channel [10:38] cp42: Raynos: and therefore iterating over its elements is only possible with a callback [10:38] mehlah has joined the channel [10:38] Raynos: Oh [10:40] cp42: Glenjamin: i will try that, thanks! [10:41] Raynos: cp42: http://jsfiddle.net/BpgC4/ [10:43] Aiden has joined the channel [10:45] malkomal_ has joined the channel [10:45] mrdoodles has joined the channel [10:45] DrMcKay: wasn't node supposed to come with openssl bundled? [10:45] cp42: Raynos: thanks, looks a bit complicated but should work! [10:46] Raynos: cp42: use require("after") instead [10:46] Glenjamin: Raynos: how does that compare to async.series / async.parallel [10:46] Raynos: http://jsfiddle.net/BpgC4/1/ [10:46] Raynos: Glenjamin it's significantly less feature rich [10:47] Raynos: It's simply async.parallel with a single callback at the end [10:47] Glenjamin: mm [10:47] Raynos: I'm working on some middleware abstraction to replace async.series [10:48] Raynos: http://jsfiddle.net/EVBpB/3/ is a replacement for async.series but it's under construction [10:48] Vertice has joined the channel [10:51] zastaph has joined the channel [10:53] robinduckett has joined the channel [10:53] robinduckett: hallo [10:54] _kud has joined the channel [10:54] matyr has joined the channel [10:55] AD7six has joined the channel [10:56] japj has joined the channel [10:56] dylang has joined the channel [10:57] jetienne has joined the channel [10:58] dylang has joined the channel [10:59] DrMcKay: well, wow, it configured [10:59] shipit has joined the channel [10:59] bosphorus has joined the channel [11:00] japj: ryah: is anyone fixing the windows breakage related to the uv loops yet? error C2660: 'uv_ref' : function does not take 0 arguments C:\github\node\src\node_stdio_win32.cc 473 [11:00] AphelionZ has joined the channel [11:01] okuryu has joined the channel [11:01] DrMcKay: it's building :D [11:03] cliffff has joined the channel [11:04] hackband has joined the channel [11:04] Glenjamin: Raynos: does that have any advantages over series? It looks a bit clunkier and at a glance seems like it'd be less performant [11:04] Raynos: Glenjamin: You can create and save a middleware stack. [11:05] Glenjamin: you can keep the array you're going to pass to series too :) [11:05] Glenjamin: but in general i find i'm closing over vars when using series [11:05] yogurt_truck has joined the channel [11:06] Raynos: The main advantage is that I try to be match the exact same middleware API connect & express use [11:06] sfoster has joined the channel [11:06] Raynos: And once it's ready I'll see whether I can get input from TJ on normalizing what "middleware" is exactly, but it's far from ready [11:06] hellp has joined the channel [11:06] Glenjamin: interesting concept [11:07] dominictarr has joined the channel [11:07] hackband_ has joined the channel [11:07] blueadept: would anyone know why i'm getting a TypeError undefined on this callback function? http://pastie.org/private/ihinhwp6e6xvlymcie9ew [11:07] Glenjamin: but from the way i've been using async, i'm not convinced that level of abstraction is necessary [11:08] Raynos: I dont think like that. [11:08] DrMcKay: now that's awesome [11:08] DrMcKay: it's compiling uv [11:09] iivvoo: blueadept callback is undefined? [11:09] Raynos: I dont see the need for calling async in line with closures, I see the need for defining operations as a flow through a middleware stack, to neaten code up [11:09] ashb has joined the channel [11:10] ashb has joined the channel [11:10] mikl has joined the channel [11:10] Glenjamin: interesting, do you have any examples of code using this style? [11:10] Aphelion has joined the channel [11:10] Glenjamin: I suspect we're writing somewhat different applications :) [11:11] adrianmg has joined the channel [11:11] blueadept: ivvoo: i know but the call back is in the above argument [11:11] mrdoodles: hey everyone, is there a node drop in for aptana? [11:11] blueadept: by all accounts it is defined, i know i have a syntax error, just not sure how to solve it [11:12] burningdog_ has joined the channel [11:12] stagas: Raynos: this is nice [11:14] ph^ has joined the channel [11:15] H4ns: blueadept: that looks like a runtime, not a compile-time error to me and it appears as if the callback argument that is passed to authenticate is undefined. [11:15] H4ns: blueadept: if that is legal as per your library, check callback before calling it. [11:15] robi42 has joined the channel [11:16] mrdoodles: what is everyone using as their text editor ? [11:16] blueadept: hm, H4ns, i think i might just work around it [11:16] Raynos: Glenjamin: no because it's not ready :p [11:16] blueadept: maybe 2 more lines of code [11:16] H4ns: mrdoodles: emacs [11:16] netlemur: mrdoodles: sublime text 2 [11:16] Raynos: Glenjamin: But I wrote up a use-case : https://gist.github.com/1178705#file_with_middleware.js [11:18] mrdoodles: hmm first day leading dev on this startup and they let me pick node/mongo :P - the CTO asked me what IDE i use … i'm like ughh aptana or espresso? :P [11:18] Glenjamin: Raynos: looks like heavy controller logic to me :s [11:19] DrMcKay: AvianFlu: ping? [11:19] rendar has joined the channel [11:19] Raynos: Glenjamin: That was part of nodeknockout [11:19] Raynos: I didnt have time to waste to worry about thin controllers fat models \o/ [11:19] Glenjamin: ah, i see [11:19] CarterL has joined the channel [11:19] DrMcKay: any forever developers here? [11:19] Raynos: nodeknockout was all about Y U NO HACK MORE. More code NOW. [11:20] Raynos: DrMcKay: ask #nodejitsu ? [11:20] DrMcKay: Raynos: yeah, I think I will [11:20] fdenbow has joined the channel [11:21] Glenjamin: I'm still don't see what benefits this has over async.series i'm afraid. :( [11:21] Glenjamin: i feel like i'm missing something [11:22] Raynos: It's all about keeping the API the same [11:22] mrdoodles: if i wrote a nice scaffolding setup, which doesn't even need to run a bin to generate the required files. it just reads from controllers powered by models … what do i call this? :P [11:22] Raynos: I want to heavily use middleware with express, and use the same middleware API and concepts with my database [11:23] Glenjamin: ah [11:23] Raynos: I'll let you know when it's ready [11:23] Glenjamin: I think perhaps that i'm not using express/connect - therefore i'm not seeing the use case [11:23] Glenjamin: thinks like caching middleware at any level? [11:25] Raynos: Why dont you use connect/express :( [11:26] schwab has joined the channel [11:26] Glenjamin: because i'm not writing web servers [11:26] blup has joined the channel [11:26] Glenjamin: i'm writing queue consumers that populate databases [11:28] Vertice_ has joined the channel [11:30] jarek has joined the channel [11:30] jarek has joined the channel [11:30] shiawuen has joined the channel [11:31] dimroc has joined the channel [11:31] mrdoodles: i like your coding style Raynos [11:31] Raynos: mrdoodles: What in particular? half of it is a mess [11:32] mrdoodles: i also use double quotes and am extremely anal about single quotes vs. double quotes, and commenting every single fucking line [11:32] aaronmcadam: why? [11:32] aaronmcadam: I always use single unless wrapping something containing them [11:33] Glenjamin: single saves space! [11:33] Raynos: I jump between double and single quotes because I don't bother normalizing them [11:33] aaronmcadam: makes it easier [11:33] Raynos: normally its double :P [11:33] aaronmcadam: you don't end up having to escape quotes as much, well at least I don't [11:34] mrdoodles: well we're using views so no escaping anything? :P [11:34] _root_ has joined the channel [11:34] aaronmcadam: oh well for node yeah i meant in general [11:35] aaronmcadam: I haven't written any node apps yet [11:35] mrdoodles: i also HATE the general style of commas on the next line [11:35] aaronmcadam: I do use templating as much as possible [11:35] Raynos: aaronmcadam: shame on you [11:35] mrdoodles: aaronmcadam: yeah im not hating :P [11:36] aaronmcadam: I'm in the middle of a jqmobile project, but moving onto node next [11:36] mrdoodles: for me seeing var x = "whatever" … \n , y = "huh?" [11:36] aaronmcadam: oh I always use one var statement [11:37] mrdoodles: it's my hesitance to contribute to node [11:37] aaronmcadam: but commas starting the next? [11:37] mrdoodles: bad example the one var [11:37] jkj_: why do people use one var statement? [11:37] jkj_: sedability/grepability suffers [11:37] aaronmcadam: faster [11:37] mrdoodles: but yeah commands on second line before next statement i find it …. nonintuitive [11:37] mrdoodles: speed [11:37] jkj_: speed of code, something else? [11:37] aaronmcadam: it's performance [11:38] aaronmcadam: I find it easier to read myself [11:38] sharkbird has joined the channel [11:38] aaronmcadam: one var and then indented var names works for me [11:38] Glenjamin: in the grand scheme of things [11:38] jkj_: uh. i thought that we were over picking syntax over another because of performance after compilers started optimizing properly but it is not the case with javascript? [11:38] Glenjamin: it makes very little difference [11:39] booo has joined the channel [11:39] mrdoodles: yes, well it is backend js [11:39] mrdoodles: on the frontend big diff [11:39] Glenjamin: var on each line is better for grep, one var saves you a few bytes - so i'd go with one var per line [11:39] Glenjamin: frontend not really, cos you'd always minify anyway [11:39] mrdoodles: ACTION high five to Glenjamin  [11:39] mrdoodles: ahh ok [11:40] jkj_: var per line works for me too [11:40] mrdoodles: oh speaking of minimize. what does everyone use to deploy? [11:40] robinduckett: Glenjamin++ [11:40] v8bot_: robinduckett has given a beer to Glenjamin. Glenjamin now has 1 beers. [11:40] catb0t: Glenjamin now has 1 beer [11:40] mrdoodles: should i write a node bin script? [11:40] aaronmcadam: uglify is nice [11:40] Aiden_ has joined the channel [11:40] mrdoodles: Glenjamin++ [11:40] v8bot_: Glenjamin is getting too many beers. Don't let Glenjamin get drunk! [11:40] catb0t: Glenjamin now has 1 beer [11:40] robinduckett: mrdoodles: I just do a forever start on that shit [11:40] robinduckett: node scripts love forever starts [11:41] mrdoodles: I've been using nodemon, but only because its what i found first - (i asked in the channel about a ruby style shotgun gem) [11:41] mrdoodles: also forever seems way cooler to type than nodemon, i sound like I'm a jamaiican coder about to get high [11:41] robinduckett: ja mon [11:42] aaronmcadam: forever start robinduckett ? [11:42] mrdoodles: by deploy i meant like style so "rake deploy:production" which would place everything in /public to backspace cloud files, after minifying and pngcrushing images [11:43] robinduckett: aaronmcadam: npm install -g forever [11:43] robinduckett: forever start scriptname.js [11:43] robinduckett: forever list [11:43] robinduckett: etc [11:43] aaronmcadam: what does it do? [11:43] aaronmcadam: soz for the rtfm hehe [11:43] robinduckett: it's like upstart but for node scripts rather than init scripts [11:43] booo: some one into node_redis? i try to handle errors and report them to the client via http 500 errors but the callback does not return a error or does return https://gist.github.com/1183264 [11:43] robinduckett: it will restart your script if it crashes, log output, etc [11:43] aaronmcadam: upstart? ha I'm a django guy [11:43] robinduckett: upstart as in ubuntu init script management :P [11:43] aaronmcadam: wow cool [11:44] aaronmcadam: hmm cool [11:44] pandeiro has joined the channel [11:44] secoif has joined the channel [11:45] robinduckett: does anyone here own a pair of Sony MDR-XB40s? [11:45] mehlah has joined the channel [11:45] Raynos: mrdoodles: It's the isaacs style, blame him [11:46] mrdoodles: oh no i love isaacs :/ [11:46] mrdoodles: isaacs-- [11:46] v8bot_: mrdoodles has taken a beer from isaacs. isaacs now has 1 beers. [11:46] catb0t: isaacs now has -1 beer [11:46] mrdoodles: hah [11:46] robinduckett: lol [11:46] robinduckett: those bots do not keep track of beers [11:47] robinduckett: robinducktt+ [11:47] robinduckett: robinducktt++ [11:47] v8bot_: robinduckett has given a beer to robinducktt. robinducktt now has 1 beers. [11:47] Raynos: mrdoodles: nodemon is great for dev, forever start is solid for servers [11:47] robinduckett: I had two beers the other day [11:47] mrdoodles: hah godamn bots! [11:47] v01dless- has joined the channel [11:47] robinduckett: Raynos: I usually use screen and keep the window open during dev :3 [11:47] mrdoodles: i wonder if i did a pull request for an express or node patch with double quotes, and commas same line ... [11:48] Raynos: I really need to use a makefile [11:48] mrdoodles: as someone who has been programming since a little kid but is still young and (i think hip?) and loveessss design. i think code aesthetics are extremely important [11:48] Raynos: for my testing and deployment >_< [11:48] mrdoodles: oh so before i head out to this awesome funded startup that brought me in first day today - what do most people use for deployment to rackspace/aws etc? [11:49] mrdoodles: git hooks with bash or node bins? [11:49] Glenjamin: Raynos: use a Rakefile, it's more readable :D [11:49] robinduckett: mrdoodles: get me a piece of that action [11:49] robinduckett: am quite tired of working in wales [11:49] aaronmcadam: you tried ant? [11:49] Glenjamin: until someone writes NodeMake or some such [11:49] Glenjamin: XML >.< [11:49] mcepl has joined the channel [11:49] robinduckett: hmm] [11:49] mrdoodles: robinduckett: super funded nyc startup incubator. they said "pick your architecture". [11:49] andref__ has joined the channel [11:49] mrdoodles: robinduckett: node and mongo f t w [11:50] DrMcKay: yay, it just compiled! [11:50] aaronmcadam: yeah yeah but it's a good tool [11:50] mrdoodles: mrdoodles++ [11:50] v8bot_: mrdoodles: Don't cheat! You can't give a beer to yourself. [11:50] catb0t: mrdoodles now has 1 beer [11:50] robinduckett: nodejitsu guys use a cli deploy thing called jitsu but it deploys directly to their system [11:50] mrdoodles: they use backspace, i can modify it - sweet [11:50] robinduckett: mrdoodles: I have experience in both, can you get me a H1-B? [11:51] fairwinds has joined the channel [11:51] robinduckett: :P [11:51] mrdoodles: question on patterns, I've worked on a system of m iddleware for express that sets up routes, controllers everything with mongoose defined models. it's all auto done. I'm thinking about just defining apps as json … built with models no scaffolding just some minor model parsing and custom actions with prototypes [11:52] mrdoodles: robinduckett: i'll ask - i actually don't know any node devs IRL [11:52] robinduckett: mrdoodles: I went to the london node knockout and was shocked at the amount of noders :P [11:52] Raynos: Glenjamin: but rubies :( I prefer C or cakefiles [11:52] mrdoodles: yeah i sold these guys based on the community support [11:53] Glenjamin: ruby's great for stuff like that. It's pretty much designed for writing DSLs [11:53] brianseeders has joined the channel [11:53] mrdoodles: http://bit.ly/r8F0yA [11:53] mrdoodles: communuty support! ^^^ [11:53] mrdoodles: mrdoodles++ [11:53] v8bot_: mrdoodles: Don't cheat! You can't give a beer to yourself. [11:53] catb0t: mrdoodles now has 1 beer [11:55] Raynos: mrdoodles: bah I thought you were mrdoob :( you cheated me somehow [11:55] tuhoojabotti: haha [11:55] Raynos: That's what you get for using the same 5 characters as someone else. I think this is not allowed [11:56] Raynos: I would be horrified if there was a Raynoodles [11:56] mrdoodles: lol [11:56] eee_c has joined the channel [11:56] mrdoodles: I'm out guys, wish me luck. [11:56] Raynos: good luck [11:56] robinduckett: bao [11:56] Raynoodles: Raynos: ;) [11:56] robinduckett: haha [11:56] mrdoodles: Raynoodles++ [11:56] v8bot_: mrdoodles has given a beer to Raynoodles. Raynoodles now has 1 beers. [11:56] catb0t: Raynoodles now has 1 beer [11:57] DrMcKay: identity stealing is a hard job [11:59] marksoper has joined the channel [12:00] EvRide: EvRide++ [12:00] v8bot_: EvRide: Don't cheat! You can't give a beer to yourself. [12:00] catb0t: EvRide now has 1 beer [12:01] robinduckett: v8bot_++ [12:01] v8bot_: robinduckett has given a beer to v8bot_. v8bot_ now has 4 beers. [12:01] catb0t: v8bot_ now has 1 beer [12:01] squeese has joined the channel [12:01] EvRide1: EvRide++ [12:01] v8bot_: EvRide1 has given a beer to EvRide. EvRide now has 1 beers. [12:01] DrMcKay: EvRide: sneaky [12:02] DrMcKay: I still wonder if I could overflow them [12:02] Raynos: Raynoodles: hate you [12:02] al3xnull has joined the channel [12:03] DrMcKay: Raynos: :D [12:05] DrMcKay: wow, now I can node on my phone [12:07] tuhoojabotti: DrMcKay: What phone? [12:07] DrMcKay: tuhoojabotti: Android 2.3, HTC Desire HD [12:07] tuhoojabotti: rooted obviously? [12:07] DrMcKay: tuhoojabotti: but it's still in Fedora chroot [12:07] tuhoojabotti: Yeah [12:08] robinduckett: DrMcKay: whaaaa [12:08] robinduckett: my phone aint rooted though [12:09] robinduckett: :( [12:09] DrMcKay: robinduckett: what are you waiting for? [12:09] robinduckett: DrMcKay: had to lay out £120 to get my phone fixed because rooting it voided the warranty [12:09] robinduckett: fucking power button failed [12:09] robinduckett: came back unrooted [12:09] robinduckett: rooted it again, power button failed again [12:09] radiodario: i see a pattern [12:10] robinduckett: sent it back to my carrier like "you are breaching my contract if you don't replace it" [12:10] robinduckett: they replaced it for free but now i'm scared to root it just in case it was a power button failure in software [12:10] DrMcKay: robinduckett: :( [12:10] radiodario: lol doesn't the concept of "software power button" really mess up with your heads? [12:11] radiodario: that means the thing is ON before it's ON! [12:11] robinduckett: radiodario: well the battery is always connected ;) [12:11] DrMcKay: btw, all these all rooting? why the hell do I have to do some magic to unlock *my* phone [12:11] robinduckett: I want an Xperia Play next anyway [12:11] tuhoojabotti: This is what happened to my phone after I rooted it! http://www.tuhoojabotti.com/r/share/kaenny.jpg (bit large) [12:12] AphelionZ has joined the channel [12:12] tuhoojabotti: (Now I have galaxy s2) [12:12] robinduckett: ouch [12:12] DrMcKay: tuhoojabotti: software failure at it's finest [12:12] tuhoojabotti: Yes. [12:12] DrMcKay: tuhoojabotti: can you reproduce :D ? [12:12] tuhoojabotti: Most certainly. [12:12] DrMcKay: wait, irssi? [12:13] tuhoojabotti: Ofc. [12:13] tuhoojabotti: Who could irc withour irssi? [12:13] tuhoojabotti: without* [12:13] DrMcKay: oh, so there's irssi for Android? [12:13] tuhoojabotti: Irssi ConnectBot. [12:13] tuhoojabotti: ConnectBot enhanced for irssi. [12:13] DrMcKay: ah, sneaky [12:14] tuhoojabotti: like swipe to hop channels. [12:14] tuhoojabotti: And double-tap for meta-a [12:14] kriszyp has joined the channel [12:14] robinduckett: no one [12:14] DrMcKay: looks good, I'll test it out [12:14] robinduckett: has made an SSH client for Windows Phone 7 yet [12:14] robinduckett: not on [12:14] robinduckett: *one [12:15] DrMcKay: robinduckett: who uses WP7 anyway? [12:15] tuhoojabotti: DrMcKay: The bonus is, it's finnish like irc. ;-) [12:15] bshumate has joined the channel [12:15] robinduckett: DrMcKay: I have two phones, one for WP7 dev and a Nexus One [12:15] DrMcKay: tuhoojabotti: :) [12:15] lunks has joined the channel [12:15] robinduckett: I actually prefer the WP7 UI [12:15] chovy has joined the channel [12:15] robinduckett: and the better camera than my N1 [12:16] stagas has joined the channel [12:16] DrMcKay: robinduckett: but it doesn't run node ;) [12:16] CarterL has joined the channel [12:16] robinduckett: DrMcKay: I don't see why it couldn't [12:16] robinduckett: DrMcKay: and to be fair, neither does anyone's unrooted android phone. [12:17] DrMcKay: robinduckett: true [12:17] robinduckett: right bbl [12:17] DrMcKay: only thing that runs node ootb is webos [12:18] DrMcKay: HOW MUCH?! [12:18] tuhoojabotti: DrMcKay: I also have node+tasker profile to check for awaylog every 30 mins ;D [12:19] DrMcKay: tuhoojabotti: lol :D [12:19] tuhoojabotti: It's nice, coz I got msn, fb, gtalk and so on in here too. [12:19] tuhoojabotti: With bitlbee. [12:19] DrMcKay: tuhoojabotti: but I'm afraid I won't be able to try it [12:20] DrMcKay: tuhoojabotti: I'll end up sitting on IRC whole night [12:20] tuhoojabotti: It's an added bonus! [12:20] DrMcKay: tuhoojabotti: well, what would I need my eyes for, anyway [12:21] EyePulp has joined the channel [12:21] burningdog has joined the channel [12:21] facorreia has joined the channel [12:23] DrMcKay: and there are almost none TouchPads on ebay :< [12:23] AphelionZ has joined the channel [12:23] DrMcKay: my procrastinacy will get me fired one day [12:23] _kud has joined the channel [12:24] jamesduncan has joined the channel [12:24] MUILTFN has joined the channel [12:24] sneakyne_ has joined the channel [12:25] sneakyness has joined the channel [12:26] DrMcKay_ has joined the channel [12:27] tiemonster has joined the channel [12:27] tiemonster: How do you find out more information about an npm package if it doesn't have a web address in the registry? [12:29] DrMcKay: !npm search test [12:29] jhbot: packages (short format, truncated): johnny-mnemonic, keyjson, m1test, node-assert-lint-free, node-casa, unittest-jslint, async_testing, jslitmus, macrotest, mjsunit.runner, node-build, nodeunit-dsl, patr, deckard, drain, plants.js, expressobdd, stories, bn-unit, gdata [12:29] DrMcKay: !npm info keyjson [12:29] DrMcKay: meh, no like that [12:29] DrMcKay: tiemonster: you want to search or what? [12:30] tiemonster: well I wrote a Node.js extension for doing geospatial arithmetic, and I'm wondering if it's worth publishing [12:30] DrMcKay: tiemonster: sure it is [12:30] tiemonster: there are several npm packages called geo something but there is little to no metadata [12:31] DrMcKay: tiemonster: they should have something like repo url [12:31] tiemonster: I don't see anything [12:31] tiemonster: like this one for example: http://search.npmjs.org/#/geoutils [12:31] garrensmith: !npm search couch [12:31] jhbot: packages (short format, truncated): endtable, coffeeapp, cradle-fixed, couchdb-tmp, memcouchd, knid, couch-client, cradle, kiokujs-backend-couchdb, lean, grave, couchdev, recline, couchy, couchlegs, cradle-init, couch-session, couch-cleaner, couchdb, dk-couchdb [12:31] DrMcKay: tiemonster: https://github.com/moshen/commonjs-geoUtils [12:32] DrMcKay: tiemonster: I googled description [12:32] tiemonster: hehe [12:32] tiemonster: ok. I guess I could try that. [12:32] bradleymeck has joined the channel [12:32] socketio\test\71 has joined the channel [12:33] __tosh has joined the channel [12:33] tiemonster: so yeah, similar to that package, except written in C++ [12:34] DrMcKay: tiemonster: publish it :) [12:35] tiemonster: I should probably match the API of that package so it's a drop-in replacement [12:35] tiemonster: geospatial arithmetic is CPU-bound, so writing it in C++ just made more sense [12:36] tiemonster: in our very unscientific benchmarks, it takes about 1/3 of the time [12:36] DrMcKay: tiemonster: wow, that's big [12:36] fumanchu182 has joined the channel [12:36] DrMcKay: tiemonster: what computations does it perform? [12:36] deoxxa: tiemonster: would the c++ portion live happily outside node? [12:36] DrMcKay: (I'm a noob when it comes to geospatial) [12:37] tiemonster: distance between points, adding distance to a point using bearing, etc [12:37] tiemonster: it's a self-sustaining C++ class with a node wrapper, yes [12:37] deoxxa: ah cool [12:38] DrMcKay: tiemonster: well, wow. [12:38] DrMcKay: tiemonster: I was just wondering, we have a project with few guys here [12:38] deoxxa: i'm writing a purpose-built database for geozone information at work, i'd love to take a look-see at it if for no reason other than to get some inspiration :) [12:38] tiemonster: we used it for a very serious scientific experiment using real-time geolocation... [12:38] al3xnull has joined the channel [12:38] tiemonster: Capture the flag [12:38] tiemonster: :) [12:38] Cromulent has joined the channel [12:39] DrMcKay: tiemonster: it's about disaster relief, preparedness and things [12:39] deoxxa: heh [12:39] DrMcKay: tiemonster: do you maybe have some spare time to help us? we need experts [12:39] tiemonster: spare time is something I don't have [12:39] MrNko has joined the channel [12:39] CarterL: or advice? [12:39] DrMcKay: tiemonster: I know it only too well [12:40] tiemonster: working two jobs, getting a degree, and raising a kid ;-) [12:40] DrMcKay: deoxxa: that DB will ob OSS? [12:40] DrMcKay: tiemonster: oh. I only have one job, and it's not fulltime and I sometimes can keep up [12:41] ryanfitz has joined the channel [12:41] DrMcKay: deoxxa: would you mind telling me a bit more about this DB? [12:41] tiemonster: here's the library, if you're interested: https://github.com/stetson/Capture-The-Flag/blob/master/modules/Algorithms.cc [12:41] tiemonster: it needs some work to be more generic and useful [12:42] tiemonster: not the least of which is using km throughout instead of mi [12:42] DrMcKay: tiemonster: have you though about using some parallel computation? [12:42] tiemonster: um, nope [12:43] DrMcKay: tiemonster: it may speed up computations [12:43] tiemonster: of distance? [12:43] DrMcKay: tiemonster: (I mean, SSE and things) [12:43] tiemonster: it takes like 4ms per computation [12:43] tiemonster: and could be faster if done with just km [12:44] tiemonster: SSE? [12:44] Glenjamin: really? [12:44] tiemonster: Glenjamin: it was fast, I remember that [12:44] Glenjamin: surely km/mi is just a scale factor? [12:44] DrMcKay: tiemonster: with SSE you could take, for example array of data and compute it all at once [12:44] tiemonster: not my area of expertise [12:45] DrMcKay: tiemonster: well, these algorithms can be optimized a bit with it [12:46] deoxxa: i am gay [12:46] DrMcKay: tiemonster: but after all, it'll be node to consume it, so I don't know if it makes sense [12:46] v01dless- has joined the channel [12:46] japj: ryah: ping [12:47] DrMcKay: deoxxa: xlock is your friend ;) [12:47] CarterL: ha [12:49] cp42: is there any cool node.js related planet? [12:49] torsd has joined the channel [12:50] roflmaoer has joined the channel [12:50] DrMcKay: cp42: well, Earth. [12:50] roflmaoer: awe [12:50] roflmaoer: DrMcKay are you always here? :P [12:50] devongovett has joined the channel [12:50] stagas has joined the channel [12:50] tuhoojabotti: I sure am. [12:50] cp42: DrMcKay: but earth aggregates also blogs which are unrelated to node.js :P [12:50] DrMcKay: roflmaoer: no, I sometimes sleep and eat [12:51] japj: and then he dreams of this place [12:51] DrMcKay: cp42: that's the con of not taking over the world yet [12:51] roflmaoer: aah, i see. I wont panic tonight than if I dont see ya as I did yesterday [12:51] jarek has left the channel [12:51] roflmaoer: then* [12:52] roflmaoer: btw are you a node fan or you iz a creator [12:52] tiemonster: cp42: http://www.planetnodejs.com/ [12:52] Sembiance: I published my first NPM module ever last night :) http://search.npmjs.org/#/mhash [12:53] DrMcKay: roflmaoer: fan [12:53] DrMcKay: Sembiance: congratulations :) [12:53] roflmaoer: : ) [12:53] Sembiance: DrMcKay: thanks :) [12:53] roflmaoer: yea congrats man [12:53] Sembiance: the npm package stuff was pretty darn simple :) [12:53] Sembiance: I was quite impressed :) [12:53] burningdog_ has joined the channel [12:54] hl7Guy has joined the channel [12:54] DrMcKay: Sembiance: I have to try [12:54] DrMcKay: I'll get my ngrep done today maybe [12:57] fangel has joined the channel [12:57] matyr_ has joined the channel [12:59] thomblake has joined the channel [13:00] thomblake has left the channel [13:01] agnat has joined the channel [13:01] Glenjamin: is that a pure-JS grep() function? [13:02] DrMcKay: Glenjamin: something like that [13:02] DrMcKay: Glenjamin: https://github.com/mmalecki/ngrep [13:02] emattias_ has joined the channel [13:04] Glenjamin: looks cool [13:04] jvduf has joined the channel [13:04] Glenjamin: oh, i'm thinking of glob, not grep [13:04] DrMcKay: Glenjamin: I'll give it some love (proper error handling, mutex, etc.) [13:05] DrMcKay: Glenjamin: ah, glob, no, it's far from glob [13:05] DrMcKay: !npm search glob [13:05] jhbot: packages (short format): glob-trie.js, iglob, noop, gex, node-api, tap-global-harness, store, ninjs, distribute.it, globalize, timeTraveller, process, global, node-secure, minimatch, buster-script-loader, jsonify, buster-configuration, glob [13:06] Loki_ has joined the channel [13:06] sfoster has joined the channel [13:07] brianseeders has joined the channel [13:08] Venom_X has joined the channel [13:08] nerdy has joined the channel [13:12] FireFly|n900 has joined the channel [13:13] Brian` has joined the channel [13:14] squeese has joined the channel [13:14] cliffff has joined the channel [13:16] thinkt4nk has joined the channel [13:17] gquental has joined the channel [13:17] bnoordhuis has joined the channel [13:18] DrMcKay: lol [13:18] DrMcKay: https://github.com/joyent/node/blob/master/lib/sys.js [13:18] DrMcKay: this, specifically: https://github.com/joyent/node/blob/master/lib/sys.js#L28 [13:18] Sembiance: hehehe [13:18] japj: yeah, there are some other "old"/deprecated stuff aswell in the node code (look for TODO) [13:19] DrMcKay: well, we're quite reaching 2011 [13:19] DrMcKay: oh, wait, it's 2011 already [13:19] japj: it is? [13:20] DrMcKay: japj: yeah, looks like [13:20] ceej has joined the channel [13:20] jomoho has joined the channel [13:21] jbrokc has joined the channel [13:21] daglees has joined the channel [13:21] daglees has joined the channel [13:22] AaronMT has joined the channel [13:23] arthurd has joined the channel [13:25] dmkbot has joined the channel [13:25] DrMcKay: umm, what? [13:25] DrMcKay: this bot is really unstable -.- [13:27] franck34: hi guys [13:27] franck34: i really need help [13:28] tuhoojabotti: Hello [13:28] JumpMast3r has joined the channel [13:28] franck34: for a financial app, i'm fetching realtime data using a persistant http request with stomp message [13:28] DrMcKay: bnoordhuis: ping? [13:28] bnoordhuis: DrMcKay: pong? [13:28] tuhoojabotti: pong! [13:28] DrMcKay: bnoordhuis: should lib/sys.js be there? [13:28] tuhoojabotti: I love that game. [13:29] bnoordhuis: DrMcKay: yes [13:29] DrMcKay: bnoordhuis: so should I just uncomment this error? [13:29] franck34: it's a kaazing gw, they recently change stomp message format and they are using binary structure. I'm a fucking noob regarding binary structure in an http persistant request [13:29] japj: bnoordhuis: https://github.com/joyent/node/pull/1616 fixes the win32 build after the latest libuv upgrade [13:30] bnoordhuis: DrMcKay: oh, i suppose [13:30] bnoordhuis: DrMcKay: we'll probably do that for 0.6 [13:30] DrMcKay: bnoordhuis: so, should I pull request? [13:30] bnoordhuis: japj: i can't verify that (easily) [13:31] sonnym has joined the channel [13:31] bnoordhuis: DrMcKay: if you feel it's worthwhile, it's not really a critical issue [13:31] DrMcKay: bnoordhuis: but hey, it's 2011 already ;) [13:31] japj: bnoordhuis: ok, we'll just have to wait for someone else to compile the latest master on windows then [13:31] japj: ;) [13:31] MUILTFN has joined the channel [13:32] bnoordhuis: DrMcKay: i found a comment in code of mine last year that said '// remove in 2005' [13:32] bnoordhuis: (still haven't removed it btw) [13:32] japj: ROFL [13:33] adnam: perhaps later [13:33] bnoordhuis: japj: i'll ping bert when he gets out of bed [13:33] dmkbot: *Show warning when using lib/sys.js* reported by mmalecki: https://github.com/joyent/node/issues/1620 [13:33] DrMcKay: bnoordhuis: ^ ;) [13:34] ksheurs has joined the channel [13:34] DrMcKay: bnoordhuis: I mark them as TODO, and tend to grep my home directory for those [13:34] rendar: #!/usr/bin/env node ...i saw this line, in an example..so 'node' is an executable which interprets javascript language..like bash, or perl?! [13:35] bnoordhuis: DrMcKay: i have a tab in eclipse that auto-lists the todos and fixmes [13:35] bnoordhuis: it goes on and on... [13:35] N0va` has joined the channel [13:35] bnoordhuis: rendar: yes [13:35] rendar: bnoordhuis: and its has its own js interpreter/engine, is _not_ related to google v8..right? [13:36] ablomen: rendar, http://nodejs.org/ [13:36] DrMcKay: bnoordhuis: I turned it off when I was using Eclipse, just to feel comfortable [13:36] ximic has joined the channel [13:37] japj: rendar: node uses the v8 javascript engine [13:37] tuhoojabotti: Yes. [13:37] tuhoojabotti: v8 rulz [13:37] v8bot_: tuhoojabotti: v8 is no longer supported (except in PM). Try v8: or v8> [13:37] tuhoojabotti: :D [13:37] rendar: i see [13:38] rendar: basically v8 transforms js code into executable code native..(like JIT) as what i read from srcs [13:39] deoxxa: note to self [13:39] bnoordhuis: rendar: that's essentially true [13:39] deoxxa: don't leave my desktop up [13:39] malletjo has joined the channel [13:39] deoxxa: when my jerk friend is in the room [13:39] dmkbot: *http.createClient is undocumented in 0.4.11 docs* reported by abi: https://github.com/joyent/node/issues/1613 [13:40] chia_ has joined the channel [13:42] febits has joined the channel [13:43] gquental: hello, is possible to request a external javascript library in nodejs? like the feed api from google [13:44] Nuck|mobile has joined the channel [13:45] Nuck|mobile: Dreamt that the node community forked in two and I was on the side with @ryah and we went to war. We jumped down from the trees an ambushed them, but they fought back well, using nothing but arrows for the most part, though one woman threw a fucking sword. Oh, and my side was named emailjs despite not being able to send emails. [13:45] Nuck|mobile: I swear I have the awesomest dreams. [13:46] daleharvey has joined the channel [13:46] franck34: does anybody got experience regarding bytebuffers and be able to reverse a proprietary binary structure ? :D [13:46] febits has joined the channel [13:47] MUILTFN has joined the channel [13:47] havenn has joined the channel [13:50] DrMcKay: Nuck|mobile: who was on the other side? [13:50] baudehlo: franck34: reverse the "structure [13:50] baudehlo: "? [13:51] Nuck|mobile: DrMcKay: Don't remember with that much detail. I just remember we had ryan. [13:52] vicapow has joined the channel [13:52] DrMcKay: Nuck|mobile: did we fight using pull requests :D ? [13:52] franck34: baudehlo: yep, it's stomp message but inside a binary structure and i don't have spec :( [13:52] uchuff has joined the channel [13:52] Nuck|mobile: DrMcKay: No, just threw arrows at eachother [13:52] baudehlo: OIC. Reverse engineering [13:53] DrMcKay: Nuck|mobile: that's sooo 5th century... [13:53] Nuck|mobile: We weren't even shooting them, we were throwing them [13:53] baudehlo: franck34: I mean that's just a matter of figuring out the structure. You must have some clue. [13:53] bnoordhuis: Nuck|mobile: for some reason i can't picture ryan in an actual fight... [13:53] Nuck|mobile: bnoordhuis: Nor could I lol [13:53] Nathan_ has joined the channel [13:54] Sembiance: franck34: so you need help reverse engineering a private binary structure that you don't know the format of? [13:54] Nuck|mobile: Also, we were all at close range but still just picked up arrows and threw em [13:54] Nuck|mobile: Not the most logical fighting technique [13:54] DrMcKay: Nuck|mobile: recycling? [13:55] Nuck|mobile: DrMcKay: Lol I guess so :P [13:55] franck34: baudehlo: or ... transform this js lib file into a node module : http://pastebin.com/FfrX1iUq (the bytebuffer part) [13:55] davidsklar has joined the channel [13:56] dmkbot: *http.js parser uses "this" and fails* reported by chowey: https://github.com/joyent/node/issues/1614 [13:56] franck34: baudehlo: i think it's easy for somebody who already played with binary stuff in websocket [13:56] DrMcKay: wat? bnoordhuis was faster than my bot? [13:56] franck34: Sembiance: yep, i've just sniff all, got all in hexa, i can see some stomp content in clear, but because of a performance stuff, they binary encode some things and honnestly i don't understand the hole lol [13:57] bnoordhuis: DrMcKay: i also shoot faster than my shadow [13:57] franck34: Sembiance: baudehlo: btw i asked in a forum dedicated to this websocket gw if they can provide a node module ;) [13:57] tbassetto has left the channel [13:57] DrMcKay: bnoordhuis: lol [13:58] Nuck|mobile: Also, it's a bit foggy but I'm pretty sure Sawyer from LOST was on our side, and was the guy who missed his target in the ambush alerting them of our presence. [13:58] DrMcKay: bnoordhuis: it sounded like from some western movie [13:58] guidocalvano has joined the channel [13:58] slyphon has joined the channel [13:58] Deebster has joined the channel [13:58] franck34: it's something related to AMPQ data format i think [13:58] DrMcKay: um, wait... [13:58] DrMcKay: this issue got created 10 hours ago [13:58] Nuck|mobile: Rofl [13:58] DrMcKay: it certainly shouldn't appear there [13:59] DrMcKay: it looks like bot checks updated_at [13:59] Nuck|mobile: Your bot dun goofed? [13:59] Nuck|mobile: Updated_at or created at? [13:59] Nuck has joined the channel [13:59] DrMcKay: yeah, but it doesn't [13:59] DrMcKay: it doesn't use any of them [13:59] DrMcKay: in fact, GH messed up, again [14:00] Nuck|mobile: Lol nasty API? [14:00] __sorin__ has joined the channel [14:00] DrMcKay: or it may be intentional [14:00] anuwidy has joined the channel [14:00] anuwidy: hi everyone [14:00] Nuck|mobile: Doesn't sound too intentional [14:01] DrMcKay: but it may be nice feature after all [14:01] anuwidy: need help on building node.js using cygwin [14:01] anuwidy: on last step have error [14:01] AphelionZ has joined the channel [14:01] DrMcKay: Nuck|mobile: yeah, I'll ping guy I've talked to before [14:01] anuwidy: task failed #1 [14:02] lmatteis has joined the channel [14:02] bnoordhuis: anuwidy: can you gist the complete build log? [14:02] lmatteis: Hi. how did you guys organize nodeknockout so efficiently? [14:02] AphelionZ: Good morning everybody! I have this code here: http://pastie.org/2460089 and if you look at line 43, I need to get the cookie data from connect's connect.sid cookie there but im not sure how. I don't mind refactoring a bit more or bringing express into the picture but I wonder if I'm structuring this/thinking about it right? [14:02] garrensmith: anuwidy: there is a windows binary [14:02] jtsnow has joined the channel [14:03] AphelionZ: Basically my res/req objects are in one module and i need to access them from another that's not contained within the server closure [14:03] japj: anuwidy: which node version are you trying to build? [14:03] AphelionZ has joined the channel [14:03] anuwidy: japj: the latest version, 0.5 i guess [14:04] anuwidy: garrensmith: win binary still have unstable [14:04] Emmanuel` has joined the channel [14:05] franck34: Sembiance: baudehlo: here is an example of response http://pastebin.com/stkDaiL1 [14:05] AphelionZ1 has joined the channel [14:05] CarterL has joined the channel [14:06] dmkbot: *A more robust util.isDate() function.* reported by TooTallNate: https://github.com/joyent/node/issues/1615 [14:07] sneakyness_wk has joined the channel [14:07] sneakyness_wk has joined the channel [14:07] Poetro has joined the channel [14:08] stash1 has joined the channel [14:08] Glenjamin: what's util.isDate :s [14:08] DrMcKay: !doc link util#isDate [14:08] dmkbot: http://nodejs.org/docs/latest/api/util.html#util.isDate [14:08] springmeyer has joined the channel [14:08] DrMcKay: Glenjamin: it doesn't exist [14:08] Glenjamin: i know [14:09] japj: !doc link util [14:09] dmkbot: http://nodejs.org/docs/latest/api/util.html [14:09] Glenjamin: oh i see [14:09] bnoordhuis: it's a helper for util.format() [14:09] Glenjamin: it's not exported [14:09] Glenjamin: but used internally [14:09] DrMcKay: ah [14:09] tuhoojabotti: util.isDate = function(){return "lol no."}; [14:09] cjm has joined the channel [14:10] Slayterson has joined the channel [14:10] nibblebot has joined the channel [14:10] DrMcKay: tuhoojabotti: :D [14:10] vipaca has joined the channel [14:10] vipaca has joined the channel [14:10] DrMcKay: Math.random = function () { return 42; }; [14:11] tuhoojabotti: Math.PI = 4; [14:11] DrMcKay: I bet that bots sandbox it, but worth trying [14:11] mehlah has joined the channel [14:11] tuhoojabotti: Troll your friends [14:11] garrensmith: anuwidy: sure but its stable enough for development or are you looking to run something in production with cygwin because that will be crazy slow [14:11] DrMcKay: .. Math.random = function () { return 42; } [14:11] catb0t: [Function] [14:11] japj: bnoordhuis: I get collect2: ld terminated with signal 11 [Segmentation fault], core dumped during build on cygwin (latest node master), I think that is probably the issue that anuwidy is having [14:11] DrMcKay: .. Math.random() [14:11] catb0t: 0.9200088523793966 [14:11] tuhoojabotti: Yup [14:11] DrMcKay: tuhoojabotti: http://xkcd.com/217/ [14:11] voodootikigod has left the channel [14:11] nphase has joined the channel [14:12] japj: bnoordhuis: https://github.com/joyent/node/issues/1599 [14:12] patrickgamer has joined the channel [14:12] Slayterson: Hey [14:12] japj: bnoordhuis: oh, anuwidy already left the chat is seems [14:13] tuhoojabotti: DrMcKay: I do not have to knowledge to understand that comic yet. [14:13] jchris has joined the channel [14:13] DrMcKay: tuhoojabotti: assume it's funny ;) [14:14] tuhoojabotti: Bed time soon! [14:15] dmkbot: *added additional properties to getPeerCertificate with test case* reported by niclashoyer: https://github.com/joyent/node/issues/1612 [14:15] patrickgamer has left the channel [14:15] FireFly has joined the channel [14:15] DrMcKay: nah, it can't be intentional [14:16] DrMcKay: it would be idiotic [14:16] bnoordhuis: japj: i haven't been able to reproduce that [14:16] japj: bnoordhuis: it just occured for me [14:17] daglees has joined the channel [14:17] daglees has joined the channel [14:18] japj: bnoordhuis: but I upgraded cygwin this week, I think there was also a binutils update [14:18] vikstrous has joined the channel [14:18] JJMalina has joined the channel [14:19] bnoordhuis: japj: so a cygwin bug? *closes issue* [14:19] japj: bnoordhuis: only if we can pinpoint it, and the issue was already closed [14:19] japj: bnoordhuis: apparently "We're going to remove cygwin support in 0.5/0.6. Node 0.6 will have full native windows support. If you really need cygwin, stick to v0.4. " [14:20] bnoordhuis: right, i was just about to say that :) [14:20] bnoordhuis: not worth the trouble of investigating [14:20] japj: makes me wonder if the current 9 cygwin labeled issues could be closed aswell [14:20] amigojapan has joined the channel [14:21] daglees__ has joined the channel [14:21] ryanfitz has joined the channel [14:21] JJMalina has joined the channel [14:22] japj: I'll go ahead and rebuild a 0.4.11 cygwin node and retest those [14:22] burningdog has joined the channel [14:22] pickels has joined the channel [14:22] balaa has joined the channel [14:23] dmkbot: *configure doesn't check for libz on Cygwin* reported by nponeccop: https://github.com/joyent/node/issues/1598 [14:23] EyePulp has joined the channel [14:24] ecin has joined the channel [14:25] mattp_ has joined the channel [14:25] [[zz]] has joined the channel [14:25] japj: bnoordhuis: I think we can close https://github.com/joyent/node/issues/696 due to lack of response [14:26] godzirra has joined the channel [14:26] prettyrobots has joined the channel [14:26] bnoordhuis: ACTION clicks the close button [14:26] godzirra: Howdy folks [14:26] godzirra: Can anyone help me figure out why my response is blank when I'm using hbs? http://pastie.org/2456889 There's my code, template and output [14:27] Slayterson: Does anyone have any tips/ideas on storing database config paramaters in a database.js file? [14:27] japj: bnoordhuis: https://github.com/joyent/node/issues/1171 is not a specific cygwin issue, it is actually a windows issue (and I think it's also a "TODO" item, so maybe close that one aswell?) [14:27] Slayterson: How would I import that into my other files? [14:28] dylang has joined the channel [14:28] ironlad has joined the channel [14:28] bnoordhuis: dylang: i just closed an issue you reported [14:29] bnoordhuis: have you had it happen since you originally reported it? [14:29] japj: bnoordhuis: https://github.com/joyent/node/issues/691 can also be closed (works ok on cygwin node 0.4.11) [14:30] bnoordhuis: japj: closed [14:30] jakehow_ has joined the channel [14:30] jakehow has joined the channel [14:30] jakehow__ has joined the channel [14:30] CoverSlide has joined the channel [14:31] sharkbird has joined the channel [14:31] postwait has joined the channel [14:31] Poetro has joined the channel [14:31] Poetro has joined the channel [14:33] k1ttty has joined the channel [14:33] dmkbot: *Node cannot resolve modules when outside /bin directory on cygwin* reported by sprocketonline: https://github.com/joyent/node/issues/1272 [14:33] godzirra: No handlebars people? :/ [14:34] Sembiance: godzirra: I used to use mustache, now I use dustjs [14:34] fdenbow has joined the channel [14:34] BillyBreen has joined the channel [14:35] CoverSlide: callbacks! fuck yeah! [14:36] dmkbot: *CYGWIN(XP) compiled NodeJS cannot use 'dgram.addMembership'.* reported by floras: https://github.com/joyent/node/issues/1092 [14:36] Sembiance: CoverSlide: https://github.com/creationix/step [14:36] industrial: Sembiance: I find https://github.com/substack/node-seq awesomer [14:36] godzirra: Sembiance: I just want to figure out what I'm doing wrong.. I'd rather not change templating systems again :/ [14:36] ckknight has joined the channel [14:36] ckknight has left the channel [14:37] nphase has joined the channel [14:37] nphase has joined the channel [14:39] jelveh has joined the channel [14:39] CoverSlide: i can write my app with no handlebars ... no handlebars ... no handlebars [14:39] kulor-uk has joined the channel [14:39] Glenjamin: Slayterson: database.js: module.exports = {host: 'localhost', port: 3306}; then var db_config = require('database') [14:39] slifty has joined the channel [14:40] FireFly|n900 has joined the channel [14:41] mailtruck has joined the channel [14:42] EyePulp: dusts looks slick [14:42] tmcw has joined the channel [14:42] sharkbird has joined the channel [14:42] maushu has joined the channel [14:42] maushu: http://nodejs.org/docs/v0.5.5/api/util.html#util.pump [14:42] bradleymeck has joined the channel [14:43] maushu: Why is the callback called when the writestream is closed and not when the readstream is closed? [14:43] tmpvar has joined the channel [14:43] mcluskydodallas has joined the channel [14:43] sub_pop has joined the channel [14:44] captain_morgan has joined the channel [14:44] CoverSlide: because there's a problem if you try to write to something that's closed [14:44] CoverSlide: a readable stream just emits events [14:44] CoverSlide: in node-land at least [14:45] blup has joined the channel [14:46] davidbanham has joined the channel [14:46] maushu: Hmmm. [14:47] maushu: So, to be able to write something a the end myself I need to write my own pump function, right? [14:47] cryptix has joined the channel [14:47] CoverSlide: or just intercept the error event [14:48] CoverSlide: no harm, no foul [14:48] maushu: error event? [14:48] maushu: What error? [14:48] godzirra: So no one knows why my handlebar templates aren't working? [14:48] simenbrekken has joined the channel [14:48] CoverSlide: the callback [14:48] CoverSlide: well i'll have to look at the internals of pump() [14:49] CoverSlide: i was assuming the callback was assigned to the `error` event [14:49] caolanm has joined the channel [14:49] godzirra: Ah, that wasn't to me. I was confused for a second there. [14:50] navaru has joined the channel [14:50] CoverSlide: godzirra: what's your question? [14:50] CIA-69: libuv: 03Ben Noordhuis 07master * rc23f789 10/ (AUTHORS .mailmap): Update AUTHORS, add .mailmap - http://git.io/QXMFBQ [14:50] navaru has left the channel [14:50] magda34 has joined the channel [14:50] mbthomas has joined the channel [14:50] godzirra: Can anyone help me figure out why my response is blank when I'm using hbs? http://pastie.org/2456889 There's my code, template and output [14:50] godzirra: CoverSlide: That :) [14:50] godzirra: I'm getting headers back, but no content. [14:51] CoverSlide: do you have a gist of your code? [14:51] CoverSlide: oh sorry, [14:51] maushu: According to source the pump calls the callback when the readstream ends... but this is v0.5.5, I'm using v0.4 [14:51] magda34: i can't to configure a cxx compiler ((( [14:51] godzirra: ;) [14:51] maushu: I will update and see if anything changes. [14:52] dob__ has joined the channel [14:52] CoverSlide: maushu: s/v0.4.11/v0.5.5/ << on the doc url [14:52] CoverSlide: dammit [14:52] CoverSlide: backwards [14:52] balaa has joined the channel [14:52] maushu: The interface doesn't seem to change. [14:52] CoverSlide: I don't think that function changed at all eitehr [14:52] MrNko has joined the channel [14:53] geetarista has joined the channel [14:54] sivy has joined the channel [14:54] maushu: Hmm, it seems to close the writestream when the end event is received and call the callback when the close event is received. [14:54] junkee[] has joined the channel [14:55] godzirra: CoverSlide: I'm fairly new to node.js, so if I'm doing something stupid and obvious, feel free to tell me. ;) [14:55] Orion- has joined the channel [14:55] Orion-: hello there [14:56] maushu: which is called first, end or close? [14:56] dylang: bnoordhuis: which issue? [14:56] maushu: if its end then I'm screwed. [14:57] TheJH has joined the channel [14:57] TheJH has joined the channel [14:57] hij1nx has joined the channel [14:57] ecin has joined the channel [14:58] CoverSlide: according to the docs, there is no `end` event for a writable stream [14:58] CoverSlide: `end` means `end of data has been reached` like an EOF or FIn [14:58] CoverSlide: there is technically no end to writable data [14:58] idefine has joined the channel [14:59] CoverSlide: usually some external handler that closes the stream for safety's sake [15:00] robertfw has joined the channel [15:00] Aco-: aa/1 [15:01] CoverSlide: aa/1 [15:01] CoverSlide: ? [15:01] brianc has joined the channel [15:01] brianc: howdy howdy [15:01] godzirra: Its code! He's saying "Timmy fell into the well!" [15:01] dylang_ has joined the channel [15:01] brianc: got a question about node v0.5.x [15:01] brianc: node_events.h is removed [15:01] brianc: and it looks like there is no c++ EventEmitter anymore? [15:01] pen_ has joined the channel [15:02] Nuck|mobile has joined the channel [15:02] brianc: am I right or am I right?! [15:02] CoverSlide: moving stuff from c++ to js is a good thing [15:02] zemanel: False Or False = False [15:02] brianc: I didn't say it was good or bad [15:02] zemanel: :) [15:03] brianc: and I would agree with you [15:03] godzirra: Can anyone help me figure out why my response is blank when I'm using hbs? http://pastie.org/2456889 There's my code, template and output. I've tried googling, but not getting any relevant results. [15:03] brianc: except now I'm not so sure how to create a c++ object which emits events... [15:03] jbutz has joined the channel [15:03] jvdev has joined the channel [15:03] brianc: I mean I can figure it out. it was just mucho easy w/ the event emitter in c++ [15:03] CoverSlide: I think isaac was saying the only reason ee was in c++ was because process was an eventemitter [15:04] CoverSlide: but process couldn't be pure js [15:04] pjacobs2 has joined the channel [15:04] jd has joined the channel [15:04] jbutz: I am having some issues compiling Node.js for AIX (ppc) and I was wondering if any one has some advice? [15:05] Qbix1 has joined the channel [15:05] reid has joined the channel [15:05] Guest11849: Hi [15:05] aheckmann has joined the channel [15:06] emattias has joined the channel [15:06] Guest11849: Does anybody knows if trunk is green? [15:06] jetienne has joined the channel [15:06] CoverSlide: green? [15:06] softdrink has joined the channel [15:06] Nuck|mobile has joined the channel [15:06] Guest11849: All test pass? Im having some test failures, and maybee is my env. [15:06] progme has joined the channel [15:07] Aikar: Guest11849: fail every time? [15:07] Aikar: i think a few has random failures [15:09] Guest11849: No, they pass yesterday, today after i pull from trunk started to fail [15:10] ben_alman_ has joined the channel [15:10] reid_ has joined the channel [15:10] reid_ has joined the channel [15:11] skunkape has joined the channel [15:11] zemm: Guest11849: there seems to be http://buildbot.nodejs.org/ with lots of red atm [15:11] ilya has joined the channel [15:12] Guest11849: Ty verry much zemm [15:12] Guest11849: Did not have that website [15:12] pifantastic has joined the channel [15:12] steffan_ has joined the channel [15:12] skunkape: hello [15:13] skunkape: I'm having problems setting up eclipse for v8 debugging [15:13] blup has joined the channel [15:13] skunkape: i get error "Failed to connect to Standalone V8 VM [15:13] skunkape: Failed to get version [15:13] skunkape: " [15:13] context: skunkape: well, your first problem is that you're using eclipse [15:13] Glenjamin: skunkape: i dunno about eclipse, but node-inspector works well as a debugger [15:14] skunkape: well, node-inspector does not see my controller file [15:14] marcosvm has joined the channel [15:14] skunkape: I cannot put breakpoints there [15:14] context: and what would eclipse know about JS ? [15:15] CoverSlide: it probably uses rhino for that [15:15] ryanfitz has joined the channel [15:15] skunkape: no, you install chromdevtools [15:15] context: i dont think you can put breakpoints into node period [15:15] skunkape: and it installs a v8 engine for you [15:15] CoverSlide: sure you can [15:15] skunkape: context, yes you can [15:15] CoverSlide: throw new Error("BREAK") [15:15] madsleejensen has joined the channel [15:16] CoverSlide: whether you can resume or not well ... [15:16] skunkape: CoverSlide, how would I inspect the variables using that method? [15:16] CoverSlide: you can't [15:16] CoverSlide: but it breaks [15:16] context: did you try this: https://github.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger [15:16] CoverSlide: and it works on every debugging platform [15:16] skunkape: yes, that is outdated slightly [15:17] context: heh [15:17] skunkape: It used to work [15:17] skunkape: I think it's a new bug [15:17] context: i prefer console.log() instead of throw [15:17] context: skunkape: ahh [15:17] softdrink: what about https://github.com/joyent/node/wiki/Using-Eclipse-as-a-Way-to-Limit-Available-System-Resources [15:17] softdrink: ¬¬ [15:17] fatjonny has joined the channel [15:17] bnoordhuis: dylang_: https://github.com/joyent/node/issues/696 [15:18] skunkape: well, i'm having trouble passing a collection from mongoose to jade [15:18] context: outdated? it was last updated july 19th, not that long ago :/ [15:18] skunkape: lol softdrink [15:18] zgryw has joined the channel [15:18] skunkape: contect, yes. the interface is different for me. [15:19] gazumps has joined the channel [15:21] tjholowaychuk has joined the channel [15:21] stalled has joined the channel [15:22] ceej has joined the channel [15:22] balaa has joined the channel [15:22] stelleg has joined the channel [15:23] matyr has joined the channel [15:23] gerad has joined the channel [15:23] skunkape: has anybody here used this: https://github.com/visionmedia/express-resource [15:24] jakehow_ has joined the channel [15:24] jakehow has joined the channel [15:25] jakehow__ has joined the channel [15:25] pizthewiz has joined the channel [15:26] JakeyChan has joined the channel [15:26] markwubben has joined the channel [15:26] JSManiacs has joined the channel [15:27] malletjo: Hello folks, i'm using node-mysql and i know Felix said we could not use multiple queries but does it "set" consider a query ( with a callback result) ? How can i do set foreign_key_check = 0 , delete , set foreign_key_check =1 ? [15:27] squeese has joined the channel [15:28] dmkbot: *Segmentation fault during NPM installation* reported by gashmish: https://github.com/joyent/node/issues/1618 [15:28] CoverSlide: those pesky segfaults [15:29] Slayterson: Does anyone know why I can't have mysql.createClient() outside of my functions in my module? I want all my functions to use the same one.. How can I do that? [15:29] kenperkins has joined the channel [15:29] bradleymeck has joined the channel [15:30] CarterL has joined the channel [15:33] fdenbow has joined the channel [15:35] vicapow: in mongoose, does validation happen after set is applied? [15:35] guillermo has joined the channel [15:37] v01dless- has joined the channel [15:37] smtlaissezfaire has joined the channel [15:39] Spion has joined the channel [15:40] CoverSlide: godzirra: i finally looked at your app [15:40] CoverSlide: what are you using for the layout? [15:40] stagas_ has joined the channel [15:42] sharkbird has joined the channel [15:43] CoverSlide: oh well, tried to help [15:43] khmer has left the channel [15:43] guidocalvano has joined the channel [15:44] broofa has joined the channel [15:45] necromancer has joined the channel [15:46] smathy has joined the channel [15:46] jtrudeau has joined the channel [15:46] paulwe has joined the channel [15:46] mikl has joined the channel [15:46] drudge has joined the channel [15:47] Deegie has joined the channel [15:47] godzirra: CoverSlide: handelbars? [15:48] godzirra: CoverSlide: Sorry… just had an emergency at work. give me a sec. :) [15:48] nphase has joined the channel [15:48] nphase has joined the channel [15:49] CoverSlide: yes, with express, no matter the engine, it expects a 'layout' view, or a 'layout' local variable, which maybe be false to denote `no layout` [15:49] stephank has joined the channel [15:49] geetarista has joined the channel [15:49] Ond: Or you can disable layouts in all routes in express [15:50] gxdssoft has joined the channel [15:50] Ond: set('view options', { layout:false }); [15:50] CoverSlide: Ond: o rly? [15:50] gxdssoft has joined the channel [15:51] godzirra: CoverSlide: oh soryr, I have a layout.hbs, its just empty. [15:51] stagas has joined the channel [15:51] CoverSlide: the layout needs a body variable [15:51] CoverSlide: unescaped [15:51] pct has joined the channel [15:51] CoverSlide: to render the layout [15:51] CoverSlide: like {{{body}}} [15:52] CoverSlide: because express will render the view, put that variable into body, then render the layout to the browser [15:53] CoverSlide: it won't render the view directly unless you disable the layout [15:53] _sorensen_: yep [15:53] balaa has joined the channel [15:53] malkomalko has joined the channel [15:55] paulwe has joined the channel [15:55] marksoper has joined the channel [15:56] godzirra: CoverSlide: Ahh. Okay. [15:56] jrgarcia has joined the channel [15:56] CoverSlide: as in {layout:false} [15:56] godzirra: Crap.. it works now, but it escapes my XML :) [15:57] micheil has joined the channel [15:57] godzirra: How do I get it to not escape everything? [15:57] ecin has joined the channel [15:58] Ond: XML huh [15:58] jrgarcia has joined the channel [15:58] CoverSlide: {{{body}}} [15:59] CoverSlide: {{}} <-- escaped {{{}}} <-- unescaped [15:59] MrWarGames has joined the channel [15:59] Lorant has joined the channel [15:59] Lorant has left the channel [15:59] godzirra: Ahhh. Neat! Didn't know that. [16:00] godzirra: Ond: Its for the twilio api. I don't have a choice. [16:00] CoverSlide: yay someone is playing with the wargames script [16:00] jtsnow has joined the channel [16:00] zentooo has joined the channel [16:01] godzirra: heh [16:01] franck34: need inspiration. Can someone give a name to this function ? function(v) {return (v & 255);} [16:01] xerox: lsb? [16:01] softdrink: franck34: "FF"? [16:01] jesster7 has joined the channel [16:02] felixhummel has joined the channel [16:02] xerox: as in least significant bytes [16:02] jkj_: franck34: getByte() [16:02] jkj_: dunno [16:02] xerox: *byte [16:02] softdrink: zeroExEffEff [16:02] softdrink: ¬¬ [16:02] jkj_: canHazBytePlz(v) [16:02] mikeal has joined the channel [16:03] softdrink: oneLittleTwoLittleThreeLittleEndians() [16:03] boltR has joined the channel [16:03] franck34: lol [16:03] dylang has joined the channel [16:03] xerox: http://en.wikipedia.org/wiki/Least_significant_bit [16:03] franck34: isFF() [16:03] xerox: maybe lsB then :) [16:04] xerox: oh no it says it is actually used as lsb both for bit and byte [16:04] blup has joined the channel [16:04] franck34: and this one ? return (v & 128) ? (v | - 256): v; [16:04] franck34: :D [16:04] bergelmir has joined the channel [16:04] jkj_: lsb versus lsB [16:04] franck34: i'm trying to refactor an obfuscated js code, the function global name is ByteOrder :) [16:05] softdrink: signedSealedDelivered() [16:05] CoverSlide: LsB() [16:06] scott_gonzalez has joined the channel [16:07] mike5w3c_ has joined the channel [16:08] toabi has left the channel [16:08] TooTallNate has joined the channel [16:09] slifty has joined the channel [16:09] marksoper has joined the channel [16:11] alvaro_o has joined the channel [16:13] stagas has joined the channel [16:14] burningdog has joined the channel [16:15] markdaws has joined the channel [16:15] markdaws has joined the channel [16:15] kylejginavan has joined the channel [16:16] gr-eg has joined the channel [16:17] amerine has joined the channel [16:17] metellus has joined the channel [16:18] ScottR4 has joined the channel [16:18] ScottR4: How do I get fs.readdir to look relative to the script calling it (i.e. an included module looking in its own subdirectory)? [16:19] xerox: __dirname [16:19] xerox: iirc [16:19] fdenbow has left the channel [16:19] xerox: you path.join that [16:19] ScottR4: xerox: thanks, I'll go try that! [16:20] ScottR4: xerox: yup, that worked - thanks! [16:20] Hansy_ has joined the channel [16:22] zackattack has joined the channel [16:23] ryan0x2 has joined the channel [16:23] balaa has joined the channel [16:26] shanebo has joined the channel [16:26] nrstott has joined the channel [16:27] chrelad has joined the channel [16:27] vidi has joined the channel [16:28] dshaw_ has joined the channel [16:29] guidocalvano has joined the channel [16:29] mavus has joined the channel [16:29] jiggliemon has joined the channel [16:29] mavus has joined the channel [16:29] jiggliemon: Anyone in here use the NVM w/ NPM? [16:30] jiggliemon: I would asume so [16:30] mavus: hi, I'm writing a library that has 2 files, and these 2 files need to require() each other [16:30] CoverSlide: nvm doesn't need to be installed via npm [16:30] mavus: but for some reason require() returns an empty object in one case [16:30] CoverSlide: in fact it's probably better if you didn't [16:30] jiggliemon: CoverSlide: I mean using them together [16:31] CoverSlide: hmm [16:31] CoverSlide: well npm is just local to the directory [16:31] drudge has joined the channel [16:31] CoverSlide: and nvm just uses aliases and envvars, they shouldn't conflict at all [16:31] jiggliemon: I had some version of Node installed but I needed 0.4.11, so I thought it would be cute to use nvm, but now my modules are all out of sync [16:31] TheJH: CoverSlide, not always (commands) [16:31] CoverSlide: ohh [16:32] jiggliemon: I assume cause nvm installes node to ~/.nvm/... [16:32] CoverSlide: true, true [16:32] pixel13 has joined the channel [16:32] jiggliemon: and NPM is in ~/local [16:32] pixel13 has left the channel [16:32] jiggliemon: So im wonderign is anyone has a working install w/ both [16:33] jiggliemon: NPM still in ~/local [16:33] CoverSlide: well [16:33] CoverSlide: wait [16:33] jiggliemon: I could add the path... [16:33] CoverSlide: are you using npm < 1.0.0 ? [16:33] shanez has joined the channel [16:33] jiggliemon: > [16:34] jiggliemon: 1.0.6 [16:34] mavus: anyone?? [16:36] Qbix1 has joined the channel [16:36] jiggliemon: mavus: I don't get the problem. [16:36] CoverSlide: circular dependency is really bad form [16:37] ecin has joined the channel [16:37] mavus: CoverSlide: what? [16:38] mpavel has left the channel [16:38] CoverSlide: https://github.com/joyent/node/issues/1418 << read [16:38] sylvinus has joined the channel [16:38] boehm has joined the channel [16:38] ronnieboy has joined the channel [16:39] necromancer` has joined the channel [16:40] al3xnull has joined the channel [16:41] fdenbow has joined the channel [16:42] fdenbow has left the channel [16:42] emattias_ has joined the channel [16:43] greg has joined the channel [16:43] zastaph has joined the channel [16:43] luke` has joined the channel [16:43] JSManiacs has joined the channel [16:44] leroybuckingham has joined the channel [16:44] cognominal___ has joined the channel [16:44] Poetro_ has joined the channel [16:44] Poetro_ has joined the channel [16:44] guillermo has joined the channel [16:45] JakeyChan has joined the channel [16:46] captain_morgan has joined the channel [16:47] aconbere has joined the channel [16:47] vidi has joined the channel [16:47] dgathright has joined the channel [16:48] JSManiacs has left the channel [16:49] wookiehangover has joined the channel [16:51] Metal3d has joined the channel [16:51] ironlad has joined the channel [16:51] hornairs has joined the channel [16:51] leroybuckingham has left the channel [16:51] nrstott: On line 816 of http.js it implies that at some point in the future arrays will no longer be accepted for headers. How will you do multiple set-cookie headers when this happens? [16:52] booo has joined the channel [16:52] bnoordhuis: nrstott: undecided so far [16:54] balaa has joined the channel [16:54] maushu: Hmm, I think leaving arrays for values is the solution. [16:54] jerrysv has joined the channel [16:55] nrstott: i can only see two options [16:55] nrstott: special-handle the set-cookie header key so that it can take an array as a value that will be treated specially [16:55] nrstott: or leave the array processing in.... [16:55] nrstott: i dont see what the problem wiht the headers as Array is [16:56] gqlewis has joined the channel [16:56] franck34 has joined the channel [16:57] bnoordhuis: nrstott: search the nodejs-dev ML, there's a reason but i forgot :) [16:58] franck34: why my fucking vim show everything with yellow background color grrrr [16:58] CoverSlide: colorscheme elflord [16:58] StanlySoManly has joined the channel [16:58] CoverSlide: elflord ftw!!!!! [16:58] CoverSlide: ACTION is naming his first son elflord [16:58] rootslab has joined the channel [16:59] jhurliman has joined the channel [17:00] franck34: CoverSlide: wow, thanks solved [17:01] jetienne__ has joined the channel [17:01] softdrink: iOS y u no support ? (屮゜Д゜)屮 [17:02] MrNko has joined the channel [17:02] bnoordhuis: https://github.com/popular/watched <- less than 20 behind jquery! [17:03] perezd has joined the channel [17:03] febits has joined the channel [17:04] kylejginavan: This position is an excellent opportunity to learn from one of the best in the industry. http://jobs.nodejs.org/a/jbb/job-details/549161 [17:04] trotter has joined the channel [17:04] mekwall has joined the channel [17:04] CoverSlide: but [17:04] CoverSlide: it's in kansas [17:04] kylejginavan: it is remote [17:04] bnoordhuis: i like the salary [17:05] kylejginavan: hehehe [17:05] MrNko has joined the channel [17:06] _sorensen_: why are so many people watching Spoon-Knife [17:06] CoverSlide: remote is cool [17:06] CoverSlide: cause [17:06] CoverSlide: there's no place like home [17:06] TheJH has joined the channel [17:06] CoverSlide: ACTION clicks heels together [17:07] kylejginavan: @CoverSlide: apply then [17:07] brianc1 has joined the channel [17:08] jproffer has joined the channel [17:08] jproffer: hi guys. [17:08] yept has joined the channel [17:08] jproffer: im kinda new to node.js - ive got it compiled here, and needed to install npm so i could get jsdom installed [17:08] krh: this is not supported API, is it?: [17:08] krh: var IOWatcher = process.binding('io_watcher').IOWatcher [17:08] Aikar: kylejginavan: "# Very proficient with CSS and/or Stylus/SASS. Preferably object oriented css." is def gonna hurt candidcancy for many people... [17:09] bnoordhuis: krh: no, it's internal and gone in 0.5x [17:09] tylerstalder has joined the channel [17:09] bnoordhuis: *0.5.x [17:09] Aikar: dev and design are 2 different jobs! [17:09] krh: bnoordhuis: is there another way to do something similar? [17:09] jproffer: i downloaded/installed npm, but it seems to be installed in a totally different directory than my node.js (npm is in ~/servers/lib/, and node.js is in ~/servers/nodejs) [17:09] bnoordhuis: kraft: depends, what do you want to do? [17:09] jproffer: will it work like that? [17:09] mikeal has joined the channel [17:09] bnoordhuis: jproffer: probably, node has a couple of library paths built in [17:09] kylejginavan: Aikar: roger. perhaps i can dial that down then [17:10] CIA-69: node: 03Jeroen Janssen 07master * rf013f15 10/ src/node_stdio_win32.cc : fix win32 uv loop breakage - http://git.io/E7LCVg [17:10] elijah has joined the channel [17:10] tjholowaychuk: kylejginavan they're out there! devs that have no sense of design fuck shit up [17:11] tjholowaychuk: specially if you're letting them do client-side work [17:11] tjholowaychuk: at all [17:11] _sorensen_: Aikar: what about dev'n someones design'n? [17:11] Aikar: while its def a winner if your dev is also partly a designer, i assure you its the minority :P I work for a medium sized company, our designers are great, but none of them are developers, and all our developers suck at design [17:11] _sorensen_: :D [17:11] vikstrous has joined the channel [17:11] jproffer: hmm ok. second problem, when i try to install jsdom i get a slew of errors, with "failed with 127" [17:11] N0va` has joined the channel [17:11] kylejginavan: tjholowaychuk: Aikar: we do not need a designer. rather just someone who can create css from a design [17:12] kylejginavan: i will clarify that in the listing [17:12] er1c_ has joined the channel [17:12] _sorensen_: kylejginavan: that'd be me [17:12] _sorensen_: :D [17:12] bnoordhuis: jproffer: gist the full npm output [17:12] Aikar: kylejginavan: thats still really a designers job to write css. at my work us devs will lay out the basic html (and in some cases basic css), and then the designers come in and make it perfect [17:12] jproffer: gist? [17:12] jproffer: pastebin? [17:12] bnoordhuis: jproffer: gist, pastie, pastebin [17:12] bnoordhuis: yes [17:13] kylejginavan: _sorensen_: you application is welcome here [17:13] MarkMenard has joined the channel [17:13] jproffer: http://pastebin.com/ENLrRkKZ [17:14] _sorensen_: from nebraska originally too [17:14] cpetzold has joined the channel [17:15] Nuck has joined the channel [17:15] bnoordhuis: jproffer: sh: node-waf: command not found <- node-waf is the build tool for native add-ons, it should be on your path [17:15] Cromulent has joined the channel [17:15] _sorensen_: just got moved out to WA, so i'm just being a tease =\ [17:15] jproffer: hmm i set my path to the nodejs/bin path [17:15] aoberoi has joined the channel [17:16] kylejginavan: i guess nobody in this irc likes driving BMW's : ) [17:16] jproffer: hmm its in the tools directory [17:16] bnoordhuis: kylejginavan: it won't fit next to my ferrari [17:16] _sorensen_: lol [17:16] mailtruck has joined the channel [17:17] CoverSlide: only people in the tools directory drive BMW's [17:17] _sorensen_: well, how much is a lot? [17:17] _sorensen_: :P [17:18] jproffer: now i get an error saying "python: no user 210443524" [17:20] _sorensen_: maybe i'll apply anyways [17:20] topaxi has joined the channel [17:20] bnoordhuis: jproffer: no idea what's causing that, must be something with your setup (i know that's not helping, sorry) [17:20] irahgel has left the channel [17:20] jd has joined the channel [17:20] jproffer: i installed npm via the one-line setup script [17:21] ryanj has joined the channel [17:24] balaa has joined the channel [17:24] godzirra has joined the channel [17:26] brion has joined the channel [17:26] pspeter3 has joined the channel [17:26] AphelionZ has joined the channel [17:27] JaKWaC has joined the channel [17:27] CIA-69: node: 03Maciej Małecki 07master * r8d70cc6 10/ lib/sys.js : Show warning when using lib/sys.js - http://git.io/mJDv7A [17:28] zgryw has joined the channel [17:30] jellosea: i'm having an issue where a callback is being triggered late [17:30] jellosea: can someone give me some direction on how to debug this? [17:31] creationix has joined the channel [17:32] facorreia has joined the channel [17:32] Vertice has joined the channel [17:33] zcopley has joined the channel [17:34] jellosea: http://pastie.org/2461078 [17:34] ryanfitz has joined the channel [17:35] eazyigz_ has joined the channel [17:35] creationix has left the channel [17:35] __sorin__ has joined the channel [17:35] apanda has joined the channel [17:36] mailtruck has joined the channel [17:36] mjr_ has joined the channel [17:36] CIA-69: libuv: 03Ben Noordhuis 07master * r9e657fa 10/ (.mailmap AUTHORS): Update .mailmap - http://git.io/vsg-jA [17:36] eazyigz_: does anybody use mongoose? I get this error "Cannot read property 'name' of undefined" that I just do not understand! [17:36] kevwil has joined the channel [17:36] ecin has joined the channel [17:37] captain_morgan has joined the channel [17:37] godzirra has joined the channel [17:38] mehlah has joined the channel [17:38] godzirra1 has joined the channel [17:40] skunkape: eazyigz_, it's gonna hard for anybody to answer that. It all depends on how you have your app laid out. maybe show us a pastebin of your router, controller, and model along with any console output you can [17:41] skunkape: also, check out node-inspector and node debug [17:42] jellosea: i have an issue where an event is being triggered late.. http://pastie.org/2461078 can anybody help me debug why this is??? [17:42] blup has joined the channel [17:42] captain__ has joined the channel [17:43] chrislorenz has joined the channel [17:43] Charuru has joined the channel [17:44] skunkape: jellosea, what does the Cache object look like? see http://nodejs.org/docs/v0.3.7/api/debugger.html [17:44] synkro has joined the channel [17:44] unguest has joined the channel [17:44] jellosea: skunkape: so i can't really use the debugger [17:45] jellosea: because the issue is that the callback is begin called late [17:45] unguest: since you're basically Java nerds [17:45] jellosea: so when i use the debugger, it looses the even that triggers the callback [17:45] skunkape: two things that will help you are obvious on that link [17:45] skunkape: first, setTimeout [17:45] skunkape: second, debugger; [17:46] jellosea: are you talking to me? [17:46] skunkape: yes [17:46] jellosea: i've already used debugger [17:46] zgryw has joined the channel [17:46] hybsch has joined the channel [17:46] jellosea: i can't use it, because the event that triggers the callback gets lost [17:46] unguest: thought you might want to sell some rainbow penises?? [17:46] skunkape: ok, did you place a "debugger;" break line where you want it to pause? [17:46] jellosea: i traced upto where the callback is supposed to be called and its all fine [17:46] jellosea: yes... [17:46] skunkape: if so, then you should be able to print the value [17:47] jellosea: man do you even know what the problem is [17:47] jellosea: i said the callback is getting called late [17:47] skunkape: not without seeing that Cache object [17:47] burningdog has joined the channel [17:47] jellosea: there is a delay between when the data comes frmo the nextwork [17:47] jellosea: and the event being triggered [17:47] dscape: anyone, how do you console.log a function? [17:47] jelveh has joined the channel [17:47] jellosea: dscape: f.toString() [17:48] jellosea: console.log(f.toString()); [17:48] dscape: thanks jellosea [17:48] unguest: for fuck's sake [17:48] tbranyen: console.dir(f)? [17:48] cp42 has joined the channel [17:48] tbranyen: mmm doesn't seem to work as i would have expected [17:48] unguest: theyr're talking about consoles [17:48] tbranyen: heh [17:48] jellosea: skunkape: i guess you don't know how to debug this [17:48] sneakyness has joined the channel [17:49] skunkape: jellosea, you have not provided enough intel... [17:49] v01dless- has joined the channel [17:49] unguest: seek helpp. seriously. [17:49] unguest has left the channel [17:49] jellosea: skunkape: the cache object implementation is irrelevant. its pretty complicated [17:49] huskyr has joined the channel [17:49] jellosea: jellosea: well mroe like its 3rd-Eden memcached client [17:49] mendel_ has joined the channel [17:49] jellosea: you can look at that code [17:49] tdegrunt has joined the channel [17:49] jellosea: i already traced through it [17:49] jellosea: the request goes out at the right time [17:49] nXqd has joined the channel [17:50] jellosea: and it uses a net socket [17:50] jellosea: when the response comes back, the second callback gets triggered late [17:50] vaheh has joined the channel [17:50] CoverSlide: Dreamcast was a good console [17:50] skunkape: Crazy Taxi was the shit! [17:51] robi42 has joined the channel [17:51] jro_ has joined the channel [17:51] sneakyne_ has joined the channel [17:51] dscape: thanks jellosea [17:51] dscape: im amazed [17:51] Poetro_ has joined the channel [17:52] dscape: hate oop [17:52] dscape: its sooooooooo demented [17:52] jellosea: haha [17:52] jellosea: np [17:53] jellosea: so skunkape ... [17:53] jellosea: nothing? [17:53] pspeter3: Is it possible to pass in a variable to a file and still use exports? I'm trying to pass in the mongoose object into my controller files for express [17:53] sneakyness has joined the channel [17:54] CoverSlide: exports is a reference to module.exports [17:54] CoverSlide: module.exports is what gets exported in the js file [17:54] sylvinus has joined the channel [17:55] kylejginavan has left the channel [17:55] dmkbot: *Support ssl session get/set in tls. Useful for client side session resume.* reported by scunningham: https://github.com/joyent/node/issues/1606 [17:55] CoverSlide: so module.exports = require('mongoose').Whatever should do what you need [17:56] kenperkins: ACTION is migrating clipboard.com to node 0.4.11 as we speak [17:56] kenperkins: compiling is slow [17:56] al3xnull_ has joined the channel [17:57] Celeb82 has joined the channel [17:57] v01dless- has joined the channel [17:57] prettyrobots has joined the channel [17:57] pspeter3 has joined the channel [17:57] skunkape: jellosea, I'm just grasping at straws here: http://nodetuts.com/tutorials/3-flush-the-cat-filesystem-reading-files-streams-slow-clients-and-syspump.html#video [17:57] skunkape: see about 13:20 [17:57] jasong_at_apache has joined the channel [17:57] jro_ has joined the channel [17:58] skunkape: I don't know what your get methods are actually doing but maybe you can use a similar tactic [17:58] cpetzold has joined the channel [17:58] jro_: cl [17:59] bradleymeck has joined the channel [17:59] raidfive has joined the channel [18:00] sneakyness has joined the channel [18:00] skunkape: jellosea, http://nodejs.org/docs/v0.4.11/api/all.html#util.pump [18:01] Celeb has joined the channel [18:01] kevwil has joined the channel [18:02] piscisaureus has joined the channel [18:04] `3rdEden has joined the channel [18:04] pspeter3: how do I pass in a global variable to a file and then export an object? [18:05] bradleymeck: w/e file you are passing to should export a function, make the function return an object [18:06] bradleymeck: module.exports = function(x) {return [x];} [18:06] indexzero has joined the channel [18:07] dnyy has joined the channel [18:07] Guest5980 has joined the channel [18:08] MikeW: Hey guys. With Google Closure one can build a template with logic and it can render and update on the client with new data, but it can also execute on the server and spit out all the logic and data pre-rendered into static html and serve that too. Is there anything like that for node? [18:08] jhurliman has joined the channel [18:09] burningdog has joined the channel [18:09] pspeter3: bradleymeck: thanks for the tips! [18:09] bradleymeck: mikew, now.js [18:09] dscape: any javascript guru can explain me why this happens? [18:09] dscape: https://gist.github.com/f39f5f8098ee58200991 [18:10] brainproxy: MikeW: you might take a look at socketstream also [18:10] brainproxy: just depending on what kind of app you're building [18:10] amerine has joined the channel [18:11] MikeW: brainproxy: Oh that kinda all sounds like a way to push updated logic from a server and have it excute on a client [18:11] bradleymeck: dscape you are using a global f? [18:11] brainproxy: MikeW: socketstream is an rpc-oriented framework that allows clients to execute methods on server and vice versa [18:11] dscape: bradleymeck: I would assume no, but :) [18:12] MikeW: brainproxy: I think for the most part I was looking for a way to do templating, but templates that can render on both the client and server [18:12] dscape: you think its because I didn't do var f instead of f? [18:12] matyr_ has joined the channel [18:12] MikeW: brainproxy: So the server can spit out completely rendered pages for downlevel clients like search engine crawlers [18:12] brainproxy: MikeW: ah, gotcha [18:13] balaa has joined the channel [18:14] bradleymeck: dscape yes, not having a var statement means it will be treated as a global, so the last assignment will be the only assignment [18:14] MrNko has joined the channel [18:14] jballanc has joined the channel [18:14] malletjo: There is any way i could do a mysql transaction over multiple node process ? [18:15] jacobolus has joined the channel [18:15] stride: not really afaik [18:15] dscape: thanks bradleymeck [18:15] stride: you'd have to designate one instance to talk to mysql if you really want a single transaction and communicate between the other processes and that one [18:15] dscape: adding var fixed it [18:16] maushu_ has joined the channel [18:17] azeroth___ has joined the channel [18:17] Twelve-60` has joined the channel [18:18] sneakyness has joined the channel [18:19] dgathright has joined the channel [18:19] malletjo: stride, would be more easy for me to be able to do a transaction over multiple node call. Just need to figure how i could share my connection over those process. [18:20] ckpcw has joined the channel [18:22] er1c_ has joined the channel [18:22] skunkape: malletjo, this sounds like an ungly attempt at replication or high availability. What exactly are you tying to do? [18:22] sneakyne_ has joined the channel [18:22] skunkape: why not rely on native mysql replication? [18:22] abiii has joined the channel [18:23] malletjo: skunkape, i have a script that parse XML files. ex: node parser file1 , node parser file2 ... but i want all those into a transaction. [18:23] CIA-69: libuv: 03Ryan Dahl 07master * rcec94ee 10/ include/uv.h : docs for uv_fs methods - http://git.io/T07qyQ [18:23] CIA-69: libuv: 03Ryan Dahl 07master * re97958a 10/ (5 files in 3 dirs): unix: Split out c-ares integration into separate file - http://git.io/gz6yuA [18:23] CIA-69: libuv: 03Ryan Dahl 07master * r58461d5 10/ (5 files in 3 dirs): split out unix's udp source - http://git.io/j0_h5w [18:23] CIA-69: libuv: 03Ryan Dahl 07master * r6144c93 10/ (config-unix.mk src/uv-unix.c uv.gyp src/unix/error.c): unix: split out error code into separate file - http://git.io/LQ7TDA [18:24] malletjo: the problem its hard for me to know when the first file is completed since all that stuff is async. I could use my queue.length and when its = 0 , my process is completed . but i dont like this [18:25] balaa has joined the channel [18:25] skunkape: why not use fs and iterate through the collection? you can then add logging and mysql stuff inside the loop. [18:26] malletjo: skunkape, but but will run at the same time. I need to wait until the other has complete [18:26] CIA-69: libuv: 03Ryan Dahl 07master * r490c83d 10/ (config-unix.mk uv.gyp src/unix/core.c src/uv-unix.c): move src/uv-unix.c to src/unix/core.c - http://git.io/XnVOdw [18:27] v01dless- has joined the channel [18:27] clifton has joined the channel [18:28] bengrue has joined the channel [18:28] sneakyness has joined the channel [18:30] hackband has joined the channel [18:30] skunkape: malletjo, check this out. [18:31] crash82 has joined the channel [18:31] skunkape: it's a little outdated but you sould get the idea [18:31] malletjo: ok [18:31] AvianFlu has joined the channel [18:31] patcito has joined the channel [18:31] skunkape: http://howtonode.org/step-of-conductor [18:32] skunkape: malletjo, also here: http://nodetuts.com/tutorials/4-step-by-step.html#video [18:33] malletjo: thx , let me read this [18:33] sneakyness has joined the channel [18:33] dmkbot: *Added some win32 platform functions* reported by Skomski: https://github.com/joyent/node/issues/1617 [18:34] ryah: who runs dmkbot? [18:34] AvianFlu: DrMcKay does [18:34] ryah: DrMcKay: ping [18:35] nibblebot: anyone using assetmanager in production? [18:35] ryah: DrMcKay: can we get the dmkbot show more information with the issue updates? [18:35] ecin has joined the channel [18:36] sneakyne_ has joined the channel [18:37] japj: ryah: the code is at https://github.com/mmalecki/dmkbot, you can do a patch and pull request ;) [18:37] devongovett has joined the channel [18:37] sneakyness has joined the channel [18:37] japj: ryah: what extra info are you looking for? [18:38] ryah: what exactly was updated [18:38] madsleejensen has joined the channel [18:38] ryah: im not sure wht the github feed gives [18:38] ryah: also colors [18:38] ryah: like CIA-69 [18:39] mikeal has joined the channel [18:39] japj: look at http://developer.github.com/v3/issues/ I am not sure if you can tell what has changed [18:40] burningdog has joined the channel [18:40] StevenSoroka_ has joined the channel [18:42] DrMcKay: ryah: sure [18:42] DrMcKay: ryah: what information do you need? [18:42] japj: https://github.com/mmalecki/dmkbot/issues/2 [18:42] bartt has joined the channel [18:43] DrMcKay: japj, ryah: sure, it can be done [18:43] DrMcKay: things like "closed", etc.? [18:43] sneakyness has joined the channel [18:43] japj: DrMcKay: I was wondering how the comments section looked like, maybe you can tell if a comment was added (if it matches the last updated_at) [18:44] elijah-mbp has joined the channel [18:44] japj: DrMcKay: unfortunately the github api page doesn't show an example of comments [18:45] japj: ah wait there is an seperate api for that [18:45] DrMcKay: japj: yeah, IIRC there is [18:46] simenbrekken has joined the channel [18:46] MarkMenard has joined the channel [18:46] godzirra has joined the channel [18:46] ryah: DrMcKay: when there is a comment it would be good to just display that in irc [18:47] sneakyne_ has joined the channel [18:47] ryah has joined the channel [18:48] DrMcKay: ryah: it currently displays any updates on issues, so comments as well [18:48] DrMcKay: ryah: it would be only about finding out why it got changed [18:48] hydrozen has joined the channel [18:48] gxdssoft has joined the channel [18:49] malletjo: skunkape, seems like its exactly what i need to , thank you [18:49] skunkape: you're welcome [18:50] reid_ has joined the channel [18:50] CIA-69: libuv: 03Ryan Dahl 07master * re553f96 10/ (5 files in 2 dirs): unix: split out uv_spawn into src/unix/process.c - http://git.io/r7yz5A [18:50] japj: DrMcKay: it currently always mentions only the title, user, url [18:50] sneakyness has joined the channel [18:51] facorreia_ has joined the channel [18:52] japj: DrMcKay: I think something like added comment: might be good? [18:52] rburke has joined the channel [18:52] japj: DrMcKay: also, I just realised the dmkbot only reports node issues, and doesn't do libuv issues (yet) [18:53] DrMcKay: japj: looks good, I'll change it [18:53] pspeter3 has left the channel [18:53] DrMcKay: and making it download issues for many repos is easy [18:53] vicapow has joined the channel [18:54] japj: DrMcKay: it should also state which repo it is telling stuff about (CIA does repos name:.... [18:55] Kingdutch has joined the channel [18:55] DrMcKay: japj: yeah, I'll just have to find out how to use these colors [18:55] abiii has joined the channel [18:55] balaa has joined the channel [18:56] fitzgen has joined the channel [18:56] TheJH: DrMcKay, send <0x02>stuff<0x02> for bold [18:56] DrMcKay: TheJH: k, thanks [18:56] te-brian has joined the channel [18:57] ph^ has joined the channel [18:57] v01dless- has joined the channel [18:57] japj: DrMcKay: http://forum.egghelp.org/viewtopic.php?t=3867 [18:57] sneakyness has joined the channel [18:57] sneakyness has joined the channel [18:58] sridatta has joined the channel [18:58] jokil has joined the channel [18:58] japj: DrMcKay: a whole lot of text about irc colour and formatting codes [18:59] DrMcKay: japj: thanks a lot [18:59] japj: DrMcKay: I'm wondering if that is something that should be added to node-irc [18:59] Charuru has joined the channel [18:59] sneakyne_ has joined the channel [18:59] DrMcKay: japj: yeah, looks good [19:00] japj: http://search.npmjs.org/#/irc-colors [19:00] indexzero has joined the channel [19:00] japj: https://github.com/fent/irc-colors.js [19:00] DrMcKay: japj: I have also few patches for node-irc, I will add these as well [19:00] japj: it seems there is a seperate irc color library [19:00] DrMcKay: it kinda sucks [19:01] japj: ah, ok.. just found it, never used it yet [19:02] kenperkins: hit me up if you want a clipboard.com invite [19:03] spasquali has joined the channel [19:03] DrMcKay: japj: no, I mean, having it seperate sucks [19:03] DrMcKay: japj: thanks for these libraries :) [19:03] spasquali: can Node create read/write streams on an NFS mount? if so, performant? [19:04] bnoordhuis: spasquali: as performant as any other app [19:04] dkris has joined the channel [19:04] jvdev has joined the channel [19:05] spasquali: bnoordhuis: great. [19:05] vipaca_ has joined the channel [19:05] Squax has joined the channel [19:06] Squax: hey all, I'm getting an Error: socket hang up exception quite a bit, any ideas? http://pastebin.com/4emQ15cE [19:06] brianc has joined the channel [19:07] Aikar: kenperkins: an invite only pastebin/gist? whats the point lol [19:07] Tobsn has joined the channel [19:07] kenperkins: it's not a pastebin Aikar, and we're in a limited beta [19:07] sneakyne_ has joined the channel [19:07] er1c_ has joined the channel [19:07] kenperkins: here's an example: http://www.clipboard.com/clip/LR4talL0AllnE_Qv [19:08] CIA-69: libuv: 03Ryan Dahl 07master * rb9120d0 10/ config-unix.mk : Simplify Unix makefile - http://git.io/jM29MQ [19:08] bnoordhuis: Squax: socket hang up mostly means that the other side has closed the connection [19:09] Squax: hm, any idea how I can handle it gracefully? [19:10] Tobsn has joined the channel [19:13] geetarista|away has joined the channel [19:14] Hansy_ has joined the channel [19:14] spasquali has left the channel [19:14] burningdog has joined the channel [19:14] devongovett has joined the channel [19:14] sneakyness_wk has joined the channel [19:15] bnoordhuis: Squax: listen for error events on the requests (if it's a ClientRequest) [19:15] jasong_at_apache has joined the channel [19:16] vicapow has joined the channel [19:18] Celeb has joined the channel [19:18] guidocalvano has joined the channel [19:18] schwab has joined the channel [19:19] al3xnull has joined the channel [19:20] mendel_ has joined the channel [19:21] charleyd has joined the channel [19:23] matbee: Anyone aware of a good FTPd done in nodejs? [19:23] charleyd has left the channel [19:25] dreamdust has joined the channel [19:26] kulor-uk has joined the channel [19:26] dgathright_ has joined the channel [19:27] eastender has joined the channel [19:27] v01dless- has joined the channel [19:28] indexzero has joined the channel [19:29] MrNko has joined the channel [19:29] MrNko has joined the channel [19:32] matyr has joined the channel [19:33] facorreia_: in Vows, does anyone know the syntax of passing options to run() to use a different reporter? I can't find documentation about this anywhere [19:34] balaa has joined the channel [19:34] ecin has joined the channel [19:36] ccare has joined the channel [19:37] markwubben has joined the channel [19:37] dmkbot has joined the channel [19:38] NetRoY has joined the channel [19:39] dmkbot has joined the channel [19:42] vipaca has joined the channel [19:42] vipaca has joined the channel [19:42] jamesd_laptop has joined the channel [19:47] mehlah has joined the channel [19:48] ji0n has joined the channel [19:49] kmiyashiro has joined the channel [19:50] tdegrunt has joined the channel [19:50] CarterL has joined the channel [19:51] NetRoY has joined the channel [19:51] cognominal_ has joined the channel [19:52] brianc: hi [19:52] CoverSlide: lo [19:52] brianc: question: creating an event emitter in C++ with node v0.5.x. Still possible? If so...anyone got an example on the github? [19:52] tdegrunt_ has joined the channel [19:53] Aikar: brianc: get a reference to the global object (theres some V8 func for that) then V8::Function = global->Get("EventEmitter") ? [19:53] bnoordhuis: brianc: search the nodejs / nodejs-dev ML, mscdex posted an example [19:53] brianc: bnoordhuis: muchas. once again for the help. [19:54] brianc: Aikar: I don't think EventEmitter is a global [19:55] mikeal has joined the channel [19:55] CoverSlide: it's not. it used to be attached to the process object, but that was removed [19:55] Aikar: whats the way to get it now? [19:56] Aikar: (in js) [19:56] CoverSlide: require('events').EventEmitter [19:56] jro_ has joined the channel [19:56] balaa has joined the channel [19:56] apanda has joined the channel [19:56] brianc: http://groups.google.com/group/nodejs/browse_thread/thread/ae6bc0e37e2edc39/df66c8724560aec2?lnk=gst&q=mscdex#df66c8724560aec2 <--- perfect [19:58] jro_ has joined the channel [19:58] v01dless- has joined the channel [19:58] tdegrunt has joined the channel [19:59] navaru has joined the channel [20:00] navaru has left the channel [20:00] shanez has joined the channel [20:00] chjj has joined the channel [20:02] vipaca_ has joined the channel [20:02] slickplaid: When using `crypto.createHmac(algorithm,key);`, is there any place to put the expiration? Is the expiration not used to calculate the `hmac.digest('hex')`? Transloadit wants an expiration and every time I call an hmac on the secret key, it returns the same value every time so I'm wondering how I can set an expiry on a hash that never changes (or at least not that I've found). Anyone knowledgable [20:02] slickplaid: in this area? [20:03] zeropx has joined the channel [20:05] godzirra: Is there a node.js equivalent of like, Data::Dumper in perl? I just want to look at all the fields of an object. Trying to figure out why I'm not able to look at the params in req.param.RecordingUrl [20:05] godzirra: And I don't know how to look at all the req.params() [20:06] stride: godzirra: http://nodejs.org/docs/latest/api/util.html#util.inspect might be what you're looking for [20:06] godzirra: Thanks! [20:06] godzirra: Thats' exactly what I needed. [20:06] tomtomaso has joined the channel [20:06] stride: :) [20:07] Skomski has joined the channel [20:07] zemanel has joined the channel [20:08] eastender has joined the channel [20:08] N0va` has joined the channel [20:09] godzirra: If I'm doing this: curl -i http://localhost:1337/handle-recording?RecordingUrl=qweqewqwe shouldn't I have a req.params.RecordingUrl? [20:10] mc_greeny has joined the channel [20:12] Charuru has joined the channel [20:12] eignerchris has joined the channel [20:12] elliottcable: Is there a module for building a quick REPL for Node? [20:12] elliottcable: i.e. starting a repl with a given library loaded or some particular stuff exposed? [20:13] elliottcable: … ignore me. It’s right there in the docs. [20:13] elliottcable: ACTION is soooo smart [20:13] SteveC has joined the channel [20:14] jerrysv has joined the channel [20:15] Renegade001 has joined the channel [20:15] Cromulent has joined the channel [20:15] dmkbot: *A more robust util.isDate() function.* reported by TooTallNate: https://github.com/joyent/node/issues/1615 [20:15] fangel has joined the channel [20:16] TooTallNate: wtf is that ^? [20:16] context: lgtm ? [20:17] bnoordhuis: context: looks good to me [20:17] CoverSlide: issue bot [20:17] CoverSlide: reports new comments on issues [20:17] kitt has joined the channel [20:17] godzirra: Hm. I'm definitely doing something wrong with my parameters. Not sure what ye.t [20:17] CoverSlide: although i think the intent was to report on newly generated issues [20:18] iammerrick has joined the channel [20:18] dylang: shit my node knockout entry is core dumping, how's that possible? [20:18] dylang: [root@doodle /home/node/node-service/current]# node server.js [20:18] dylang: Segmentation Fault (core dumped) [20:18] TooTallNate: dylang: native modules probably [20:18] dylang: if i run node --debug server.js it works [20:18] shipit has joined the channel [20:18] CoverSlide: DrMcKay: that issue is 13 hours old, are you reporting new issues or new comments? if comments maybe you should include some of the comment in the message [20:19] dylang: it's been working the last few days. i don' think i have any native modules. just the standards like express and mongodb. [20:19] TooTallNate: bnoordhuis: you want me to get a patch ready that exports those is*() functions from util? [20:19] bnoordhuis: TooTallNate: no, i don't really want to expose internals [20:20] bnoordhuis: TooTallNate: your next question is going to be 'how then' [20:20] bnoordhuis: TooTallNate: to which my answer is 'thinking about it' [20:20] TooTallNate: bnoordhuis: for writing a test? yeah [20:20] TooTallNate: ok sounds good :p [20:21] malletjo: Hello folks, i'm trying to use "Step" module from Tim but i get "process" undefined. I'm not even call the function where step is used. Any idea why ? ( node version 0.4.11 and 0.0.4 for step) [20:21] jfv has joined the channel [20:22] malkomalko: anybody use sinon or anything similar to stub out globals? [20:24] dylang: TooTallNate: rebooted the server, core dump stopped happening. [20:24] dylang: malkomalko: make sure you are calling step correctly - you don't pass it an array [20:24] TooTallNate: dylang: haha, go figure. still was probably due to a native module though [20:24] TooTallNate: assuming you're using any [20:25] dylang: TooTallNate: don't think i am. [20:25] dylang: TooTallNate: mongodb? [20:26] zackattack has joined the channel [20:26] balaa has joined the channel [20:27] mcepl has joined the channel [20:28] TooTallNate: bnoordhuis: we could have the util module conditionally export those function, if like a NODE_TESTING env flag is set or something [20:28] TooTallNate: and then set that when running the tests [20:28] TooTallNate: kinda sloppy, but idk [20:29] bnoordhuis: TooTallNate: let me think about it some more :) [20:30] bluesmoon has joined the channel [20:30] erikano has joined the channel [20:31] sylvinus has joined the channel [20:31] bluesmoon: hi all. [20:31] bluesmoon: I'm looking at the example for util.inherits [20:31] bluesmoon: http://nodejs.org/docs/v0.5.4/api/all.html#util.inherits [20:31] bluesmoon: in 0.5.4 [20:31] bluesmoon: and I've been trying to create a class that inherits from EventEmitter [20:31] bluesmoon: but also has a prototype [20:32] vipaca_ has joined the channel [20:32] aoberoi has joined the channel [20:32] bluesmoon: and it doesn't seem possible to do both [20:32] CIA-69: libuv: 03Ryan Dahl 07master * r510407c 10/ (5 files in 2 dirs): unix: split out tcp module - http://git.io/tK6qMQ [20:32] CIA-69: libuv: 03Ryan Dahl 07master * r38ce213 10/ (5 files in 2 dirs): unix: split out pipe - http://git.io/CiZosw [20:32] bluesmoon: if I set MyClass.prototype = {...}, it gets rid of the EventEmitter [20:32] bluesmoon: and if I set util.inherits(MyClass, EventEmitter) after creating the prototype, it gets rid of the prototype [20:32] bluesmoon: any ideas? [20:33] febits has joined the channel [20:33] er1c_ has joined the channel [20:33] bluesmoon: do I have to set each prototype method separately? [20:34] ecin has joined the channel [20:35] mattly has joined the channel [20:35] Agent_137 has joined the channel [20:37] `3rdEden has joined the channel [20:37] niko has joined the channel [20:37] abravo has joined the channel [20:38] slickplaid: When using `crypto.createHmac(algorithm,key);`, is there any place to put the expiration? Is the expiration not used to calculate the `hmac.digest('hex')`? Transloadit wants an expiration and every time I call an hmac on the secret key, it returns the same value every time so I'm wondering how I can set an expiry on a hash that never changes (or at least not that I've found). Anyone knowledgable [20:38] slickplaid: in this area? [20:38] jibay has joined the channel [20:39] al3xnull has joined the channel [20:40] TheJH: slickplaid, uhm, expiration? doesn't sound like HMAC-related stuff... [20:40] slickplaid: Oh... duh :D I'm thinking of something different [20:40] slickplaid: I forgot to call update() on the hmac [20:40] slickplaid: http://transloadit.com/docs/authentication [20:41] CIA-69: libuv: 03Ryan Dahl 07master * r6fd340b 10/ (6 files in 2 dirs): unix: split out stream into its own file - http://git.io/0ulgJg [20:45] jetienne has joined the channel [20:46] Vertice has joined the channel [20:47] malkomalko: when you do global.foo = 'bar'.. i know the global object itself isn't the same as the global scope.. is there a way to get at the global object for stubbing purposes? [20:48] TheJH: malkomalko, what are you trying to do? [20:48] rauchggg: dannycoates: im listening to a song by Peaches [20:48] rauchggg: it's awesome [20:48] reid has joined the channel [20:49] augustl: are there ways to preventDefault()-ish in the "request" event of a server? I want to write a library that can hook itself into an existing server. And if my library detects a request it can handle, I want it to stop any other request handlers from running. [20:49] malkomalko: peaches? lol [20:49] devongovett has joined the channel [20:49] malkomalko: TheJH, just looking for a way to override a global for a test.. which I know how to do, just trying to write a test helper to restore all of my stubbed globals before each test [20:49] augustl: malkomalko: you could use sinon [20:50] TheJH: augustl, that would be hooks, not listeners [20:50] malkomalko: I'm a big sinon user.. but I don't think it works very well with anything assigned via global. [20:50] dannycoates: rauchggg: awesome :) [20:50] augustl: sinon.stub(global) in setUp doesn't work? [20:50] TheJH: augustl, you *could* monkeypatch its emit function... but doesn't sound like a good idea [20:50] Agent_137 has left the channel [20:51] augustl: TheJH: there's https://github.com/jcoglan/faye/blob/master/javascript/adapters/node_adapter.js#L73 but that seems pretty nasty [20:51] TheJH: malkomalko, "for name in global"? [20:51] malkomalko: not really augustl.. brb [20:52] augustl: malkomalko: make sure you set up a sandbox of course [20:52] TheJH: augustl, I'd have suggested a nastier way to do it :D [20:52] ts__ has joined the channel [20:52] malkomalko: yah I already have a test helper that does that augustl [20:53] N0va has joined the channel [20:53] DrTeggy has joined the channel [20:53] augustl: malkomalko: that would be sinon.stub(global, "MyProperty") btw [20:54] mraleph has joined the channel [20:54] jesusabdullah: So, I just played with couchdb for the first time, and it looks pretty nice! [20:55] softdrink has left the channel [20:55] TheJH: jesusabdullah, it's cool and unbelievably crazy at the same time :D [20:55] softdrink has joined the channel [20:55] augustl: still looking for suggestions to "attach" and consume the request event of a http server btw [20:55] TheJH: jesusabdullah, did you know its database file is append-only and it is a "crash-only" database? [20:56] ralphholzmann: Heyo, whats the best way to test if a module is available? [20:56] TheJH: augustl, someServer.emit = ... [20:56] indexzero has joined the channel [20:56] augustl: hmz [20:56] malkomalko: ahh... I had to use the 3rd param to stub augustl since it was a property and not a function [20:56] malkomalko: I was trying to do sinon.stub(global, 'foo').returns({}) [20:56] othiym23 has left the channel [20:56] TheJH: ralphholzmann, try{require(...)}catch(e){didn't work} [20:56] ralphholzmann: TheJH: that works, seems hacky tho :/ [20:56] jesusabdullah: TheJH: What do you mean by crash-only? You mean, it doesn't do a whole lot to try to recover from errors? [20:57] TheJH: ralphholzmann, I don't think it's very hacky [20:57] jesusabdullah: Either it works or it stops? [20:57] balaa has joined the channel [20:57] jesusabdullah: Also: Any recommended way of using it with node, with respect to libraries? [20:57] jesusabdullah: just for my own derping around [20:57] jesusabdullah: this looks fun! [20:57] TheJH: jesusabdullah, no. the database file can't get corrupted just from incomplete writes :D [20:57] zgryw has joined the channel [20:57] jesusabdullah: Oh, that's good! [20:57] jesusabdullah: Nothing worse than a currcpted database [20:58] apanda has joined the channel [20:58] elliottcable: I can’t wholesale-replace the `context` object for a REPLServer? [20:58] elliottcable: ACTION sad [20:58] TheJH: jesusabdullah, crash-only means "you can pull the servers plug at any time and the db file is OK and all completed writes are in the DB" [20:59] TheJH: jesusabdullah, but that only works because couch will, even if you just change one character in a document, append the new document to the file, append a bunch of btree nodes to the file and append a new footer at the next 4096-byte-boundary (zero-padded to reach it) [20:59] jesusabdullah: That *is* awesome [21:00] TheJH: jesusabdullah, it's disk-filling :D [21:00] misterm has joined the channel [21:00] pickels has joined the channel [21:00] jesusabdullah: Is there a reasonable way to clean up your couch? [21:00] ajp has joined the channel [21:00] jesusabdullah: dig the quarters out, so to speak? [21:01] TheJH: jesusabdullah, yes, there's a method in the HTTP API. couch will then walk the whole db file and write a second one, and throw away the first one when it's done [21:01] indexzero has joined the channel [21:02] JJMalina has joined the channel [21:02] chapel: mikeal-cloud: you there? [21:02] TheJH: jesusabdullah, I think they wanted to automate that, but dunno whether they've already done it. just put it in a cronjob :D [21:02] jesusabdullah: I see [21:02] jesusabdullah: Time to build Kingdom of Nodeing [21:02] jesusabdullah: (instead of Kingdom of Loathing GET IT OHOHO) [21:03] TheJH: jesusabdullah, but I am not really an expert, join #couchdb :P [21:03] ironlad has joined the channel [21:03] Qbix1 has joined the channel [21:03] jesusabdullah: TheJH: CLOSE ENOUGH [21:03] jesusabdullah: I'm not trying to be an expert, just being like, "whoa that's kinda neat" [21:03] jesusabdullah: u noe [21:03] chapel: lol [21:03] chapel: jesusabdullah: couchdb is awesome [21:04] chapel: if you have any questions about using it, feel free to ask [21:04] MrNko has joined the channel [21:05] lightcap has joined the channel [21:09] jesusabdullah: a'ight [21:09] mbthomas has joined the channel [21:09] jesusabdullah: chapel: What do you use to make node and couch talk? Cradle? [21:09] chapel: Ive used cradle [21:09] chapel: straight http [21:09] chapel: request [21:09] CoverSlide: plain ol' http works fine too [21:09] chapel: depends on what you want to do [21:09] CoverSlide: although the request module is sweet [21:10] elliottcable: Okay, this is not working at all for me. [21:10] godzirra has left the channel [21:10] slifty has joined the channel [21:11] slifty_corsair has joined the channel [21:11] zackattack has joined the channel [21:11] augustl: this seems to work fine https://gitorious.org/buster/buster-server/blobs/master/lib/buster-server.js#line13 [21:12] Drakonite has joined the channel [21:12] zackattack_ has joined the channel [21:13] matyr has joined the channel [21:14] jro_ has joined the channel [21:14] ttilley has joined the channel [21:15] Wizek has joined the channel [21:15] broofa: What's the preferred module for managing multiple instances (multi-core) these days? Forever, spark2, cluster...? [21:15] augustl: broofa: I like to use monit [21:16] CoverSlide: spark2 is dead [21:16] topaxi has joined the channel [21:16] CoverSlide: cluster is preferred [21:16] tjholowaychuk: broofa forever is more like monit [21:16] jesusabdullah: yeah [21:17] CoverSlide: there is also multi-node, though I never tried it [21:17] broofa: cool, thx [21:18] mikeal has joined the channel [21:18] versicolor has joined the channel [21:18] tomtomaso has joined the channel [21:19] gerad has joined the channel [21:20] cjm has joined the channel [21:22] Benny_ has joined the channel [21:22] DrTeggy has joined the channel [21:22] Benny_: Hello there. Can you suggest me some good stuff about Node (screencasts)? [21:22] jokil_ has joined the channel [21:23] sridatta_ has joined the channel [21:24] DrMcKay has joined the channel [21:24] greg606 has joined the channel [21:24] greg606: hi [21:24] abjorn has joined the channel [21:24] greg606: how can I make node be active after reboot in ubuntu? [21:24] dshaw_1 has joined the channel [21:25] greg606: I must run source ./profile each time [21:25] Edsfnnnnmlop3 has joined the channel [21:25] booo: greg606, maybe add the profile to your bashrc? [21:25] booo: or the path [21:26] booo: depends on what you did before to get node up and running [21:26] augustl: is there a way to get the port a http server instance is bound to? [21:26] isaacs has joined the channel [21:27] balaa has joined the channel [21:27] CoverSlide: augustl: have you tried server.address() ? [21:27] greg606: booo: how to add profile to bashrc? [21:27] augustl: CoverSlide: ah, thanks [21:28] apanda has joined the channel [21:29] febits has joined the channel [21:29] booo: greg606, just use the command "source ./profile" in your bashrc? [21:29] mikeal has joined the channel [21:30] CoverSlide: or . ./profile [21:30] CoverSlide: . is an alias for source [21:30] greg606: it helps [21:30] CoverSlide: and thus kicks ass [21:30] greg606: but just until next reboot [21:30] DrMcKay: SubStack: ping? [21:31] Benny_: I can't install Express. Have you tried it on Ubuntu? It says "Not compatible with your version of node/npm: express@2.4.6 " [21:31] isaacs: Benny_: use node 0.4 [21:31] StanlySoManly1 has joined the channel [21:31] DrMcKay: Benny_: or npm install express --node-version 0.4.11 [21:31] isaacs: Benny_: tjholowaychuk usually doesn't bother to track unstable versions. i can't blame him. [21:32] isaacs: Benny_: yeah, or that ^ [21:32] tjholowaychuk: i did a bit the last time [21:32] tjholowaychuk: but i dont have time to keep up with both this time around [21:33] Benny_: And is there any chance that Express will be updated? I really like to use the latest versions. [21:33] Benny_: But thanks a lot [21:33] tjholowaychuk: that should be an npm thing [21:33] tjholowaychuk: IMO [21:33] tjholowaychuk: if you want to force it [21:33] CoverSlide: +1 [21:33] tjholowaychuk: otherwise you're stuck waiting for 0.6.0 [21:33] CoverSlide: npm install --justFuckingInstallAlready express [21:34] tjholowaychuk: hahaha [21:34] isaacs: CoverSlide, tjholowaychuk: so, you can do "--node-version null" and it'll just skip that check. [21:34] tjholowaychuk: ah [21:34] isaacs: CoverSlide, tjholowaychuk: the problem is that then you can end up in a bad place [21:34] tjholowaychuk: it's just not clear i guess [21:34] tjholowaychuk: even though half the people that get confused about it not working for 0.5.x, dont even know that odds are unstable [21:34] apanda has joined the channel [21:34] ecin has joined the channel [21:34] isaacs: foo@1 works on node 0.4, foo@2 works on node 0.5, bar@1 works on node 0.4, bar@2 works on node 0.4, bar@3 works on node 0.5, etc. [21:35] CoverSlide: see, --force would make more sense to me [21:35] isaacs: what you want to do is filter to all the versions of everything that work on version X [21:35] CoverSlide: but that's taken [21:35] isaacs: but there has to be some "target" node version that you're installing against, or else you'll end up in a bad place, where things that can never work together end up in the same install target. [21:36] tjholowaychuk: they'll end up in a bad place with untested stuff [21:36] tjholowaychuk: regardless [21:36] Benny_: From github - "Express 3.x (master branch) is compatible with node 0.6.x and connect 2.x" [21:36] CoverSlide: if you're in dev sometimes you want to test stuff out [21:36] MrNko has joined the channel [21:36] guillermo has joined the channel [21:36] captain_morgan has joined the channel [21:36] tjholowaychuk: Benny_ there is no 3.0 yet, 3.x is the trunk [21:36] tjholowaychuk: CoverSlide yeah i get that, or for the windows ppl [21:36] TheJH: meh. I want CTCP CODERSTATUS. and it should give me a response like "available", "away", "asleep" or "eating" :D [21:36] tjholowaychuk: --force should just work all the way down if possible [21:37] Benny_: tjholowaychuk: I see, thanks :-) [21:37] Anton_ has joined the channel [21:38] euforic has joined the channel [21:40] jtsnow_ has joined the channel [21:41] bartt has joined the channel [21:41] Squax has left the channel [21:41] mailtruck has joined the channel [21:41] mikeal: 4 tickets opened up from cancellations [21:41] mikeal: http://www.eventbrite.com/event/1767391315 [21:41] AAA_awright has joined the channel [21:41] mikeal: tjholowaychuk: Y U NO COME TO SUMMERCAMP! [21:42] tjholowaychuk: canada :D [21:42] tjholowaychuk: haha [21:42] tjholowaychuk: no time :( [21:42] CoverSlide: Y U NO MAKE ANOTHER NODEUP? [21:44] sebastianedwards has joined the channel [21:44] chia has joined the channel [21:44] bengrue has joined the channel [21:45] mikeal: i'll talk to your boss [21:45] mikeal: :) [21:45] k1ttty has joined the channel [21:45] mikeal: CoverSlide: we don't organize it [21:45] mikeal: the NODEUP that is [21:45] mikeal: this other dude who is usually pretty on top of it records it [21:45] mikeal: but he got buys or something [21:48] febits has joined the channel [21:49] supster has joined the channel [21:50] __sorin__ has joined the channel [21:50] mikl has joined the channel [21:50] supster has joined the channel [21:51] chapel: mikeal: you see my response to your vote on Looper for sponoders? [21:51] jibay has joined the channel [21:51] Benny_: Hey, you should do a Node meetup in the Czech republic. All beer is on me! [21:52] mikeal: possibly, i had to take a break from judging to get some work done [21:52] mikeal: Benny_: *you* should do a meetup in Czech :) [21:52] chapel: you did do a lot of voting [21:52] mikeal: i'll tweet about it :) [21:52] chapel: well please recheck it out, cause your scores were terrible :( [21:52] eastender has joined the channel [21:52] mikeal: was this the thing you think flash block was making fail? [21:52] guidocalvano has joined the channel [21:53] albertosheinfeld has joined the channel [21:53] chapel: yeah [21:53] jspiros has joined the channel [21:53] mikeal: should it work if i hit the play button in flashblock? [21:53] eee_c1 has joined the channel [21:53] Benny_: mikeal: OK, I'm inviting you :-) We are 2 yet :-D [21:53] chapel: just whitelist the site (not sure what flash blocker you are using) [21:54] chapel: you can delete it after if you care [21:54] slifty has joined the channel [21:54] mendel_ has joined the channel [21:54] ecin_ has joined the channel [21:55] sonnym has joined the channel [21:56] v01dless- has joined the channel [21:57] balaa has joined the channel [21:59] galaxywatcher has joined the channel [22:02] chrelad has left the channel [22:02] vipaca has joined the channel [22:03] albertosh has joined the channel [22:05] MrNko has joined the channel [22:09] MrNko has joined the channel [22:13] JSManiacs has joined the channel [22:14] mrchess has joined the channel [22:14] mendel_ has joined the channel [22:16] mike5w3c has joined the channel [22:16] mrchess: anyone have any advice on what to use to test browsers on websockets and flashsocket based sites? i tried using zombie but it refuses to return any connections. [22:17] chapel: mrchess: well you can use socket.io-client to test websockets on the server [22:18] mrchess: chapel: any thoughts on client side testing to test the browser states, and what the user sees? [22:19] chapel: umm, thats something harder [22:19] chapel: you could use `3rdEden's nko entry [22:19] albertosh has joined the channel [22:20] TheJH: mrchess, I think substack was building something like that - you send an URL and some javascript tests to a webservice, it opens your page and runs the tests on it for each browser it knows in VMs and finally, you get back the aggregated test results [22:20] TheJH: mrchess, dunno how far he is with that [22:20] robotarmy has joined the channel [22:21] versicolor has joined the channel [22:21] c4milo has joined the channel [22:22] godzirra has joined the channel [22:22] mrchess: yeah i see. thanks for the info [22:22] godzirra: Can anyone tell me why my handlebars if helper doesn't seem to ever fire? http://pastie.org/2462386 [22:22] sneakyness has joined the channel [22:22] mrchess: what are you all using for client side ui testing? selenium? or silktest or something? [22:22] greg606 has left the channel [22:23] godzirra: Oops.. the console log shows that the data variable is in fact populated. [22:23] godzirra: Forgot to add that part. [22:24] chapel: `3rdEden: I was pinging you hoping you would link mrchess [22:24] `3rdEden: OH [22:24] mendel_ has joined the channel [22:24] mrchess: godzirra: i dont think handelebars evaluates objects [22:24] shipit has joined the channel [22:24] `3rdEden: I only get a highlight when i'm highlighted multiple times chapel [22:24] godzirra: Ah. So I need an actual "true" or "false"? [22:24] chapel: oh [22:25] mrchess: godzirra: yeah i believe so. its not that smart [22:25] `3rdEden: mrchess take a look at http://observer.no.de/ which allows you to see what your users are seeing in real time, by following their browser sessions ;)? [22:25] mrchess: maybe pass in a has_recording_url : recording_url || false [22:26] mrchess: 3rdeden: hmm ill check it out. thanks [22:26] tjholowaychuk: `3rdEden nice! [22:26] godzirra: Thanks.. I'll try that. [22:26] chapel: :) [22:26] tjholowaychuk: i built something like that a few years ago [22:27] tjholowaychuk: nothing useful just a prototype [22:27] tjholowaychuk: but that's cool [22:27] tmpvar has joined the channel [22:27] chapel: tjholowaychuk: it logs javascript errors too [22:27] mrchess: this is a stupid irc question but you do you all prefix a username at the beginnig of a sentence? is everyone typing it manually or is it jsut me. [22:27] tjholowaychuk: nice :D [22:27] tjholowaychuk: that is slick [22:27] godzirra: mrchess: That didn't seem to do it. :/ [22:27] chapel: mrchess: tab complete [22:27] hornairs has joined the channel [22:27] chapel: mrchess: its to make sure you know I am addressing you [22:28] balaa has joined the channel [22:28] mrchess: chapel:ah didnt even realize you can tab complete [22:28] dmkbot: *v0.5.5/node-186364e.exe: listen UNKNOWN * reported by ellisgl: https://github.com/joyent/node/issues/1621 [22:28] Skomski: mrtazz [22:29] jj0hns0n_ has joined the channel [22:30] godzirra: mrchess: That's my new pastie: http://pastie.org/2462410 Same problem though. And I'm using "true" [22:30] indexzero has joined the channel [22:31] mrchess: godzirra: seems like the vars arent even going in there. what happens if you get rid of the conditional? does it even render the recording_url? [22:32] godzirra: let me try. [22:32] defeated: anyone about who's used browserify much? Have a quick question [22:32] godzirra: mrchess: Yup. [22:32] godzirra: It works fine without the conditional. [22:32] chapel: defeated: whats up? [22:33] defeated: chapel: if I have code that does "dynamic" requires (e.g. require("./something/" + foo)), there's no way to get browserify to recognize that, right, I'd have to change the code? [22:34] mendel_ has joined the channel [22:35] chapel: well, as far as I know it wouldn't see that, but it might, have you tried? [22:35] mrchess: godzirra: damn. sorry. im stumped then. it should work [22:35] defeated: yeah, I've tried, just wanted to be sure I wasn't missing something silly before I reworked the code [22:35] secoif has joined the channel [22:35] godzirra: mrchess: If I just output url_exists, its there as true as well. [22:36] `3rdEden: tjholowaychuk yeah I had allot of fun building it [22:36] mrchess: godzirra: yeah your hb template looks like how i would write it [22:36] godzirra: mrchess: Well darnit. I wish I wasn't such a noob. ;) [22:37] mrchess: could be a problem with express? [22:37] tjholowaychuk: `3rdEden ya man, looks slick too. we'll have to try it out some time, I always thought something like that would be super handy. cheap focus group haha [22:37] `3rdEden: tjholowaychuk I especiallly like that I can view a recording of someone that triggered a JavaScript error. [22:37] CIA-69: libuv: 03Ryan Dahl 07master * r836cc20 10/ (src/unix/cares.c src/unix/core.c test/test-gethostbyname.c): unix: Fix test-gethostbyname - http://git.io/YQwKnQ [22:37] mrchess: ive only used client side handlebars, not as a default compiler in express [22:37] adrianmg has left the channel [22:38] `3rdEden: So I have some steps of reproducing errors :) [22:38] tjholowaychuk: totally [22:38] facorreia has joined the channel [22:38] godzirra: I was told you can't use the #if helper in node hbs. :/ [22:39] bnoordhuis: https://github.com/popular/watched <- so close! [22:39] defeated: godzirra: It should work [22:39] godzirra: defeated: can you point out what I'm doing wrong in that pastie then? :) [22:39] godzirra: I'm not seeing it. [22:40] dgathright has joined the channel [22:40] defeated: godzirra: handlebars finally published an npm package within the past week or two, try doing something like: [22:40] defeated: var hbs = require("hbs"); [22:40] defeated: hbs.handlebars = require("handlebars"); [22:40] defeated: app.set("view engine"m hbs) [22:40] defeated: s/m/, [22:41] defeated: the default version of Handlebars that hbs links to is ancient [22:41] defeated: the npm package is 1.0.2.beta2 [22:41] mrchess: or maybe take the opportunity to ditch handlebars. i recently used it in production and it's really slow [22:41] godzirra: nice. That works defeated. [22:42] mrchess: i ended up dropping most of the stuff i was templated with it [22:42] defeated: godzirra: np [22:52] paulwe_ has joined the channel [22:52] matyr has joined the channel [22:56] matyr_ has joined the channel [22:56] mendel_ has joined the channel [22:58] AAA_awright_ has joined the channel [22:58] balaa has joined the channel [23:01] CIA-69: node: 03Ryan Dahl 07master * rc91ec22 10/ (16 files in 5 dirs): Upgrade libuv to 836cc20 - http://git.io/Qi5u7w [23:01] Kami_ has joined the channel [23:01] abiii_ has joined the channel [23:01] prettyrobots has joined the channel [23:01] AphelionZ has joined the channel [23:02] skm has joined the channel [23:03] wilmoore has joined the channel [23:03] MrNko has joined the channel [23:03] airhorns has joined the channel [23:03] dylang has joined the channel [23:05] hij1nx has joined the channel [23:06] alefnula has joined the channel [23:07] gerad: node knockout leader board is up! [23:07] gerad: please up vote http://news.ycombinator.com/item?id=2947977 [23:08] cconstantine: I have a node service whose performance is slowly degrading under production load. what would be the best way to get profiling to figure out where the inefficiencies in my code are? [23:08] jerrysv: gerad: working on it, i promise :/ [23:08] `3rdEden has joined the channel [23:09] gerad: jerrysv: cool thx [23:09] bnoordhuis: cconstantine: node / v8 has a profiler built in [23:10] cconstantine: is there a page describing it? [23:10] bnoordhuis: cconstantine: google for 'v8 profiler', that should point you in the right direction [23:10] Sorella has joined the channel [23:11] bnoordhuis: cconstantine: node-profiler lets you turn on/off the profiler at runtime [23:11] alefnula: Hi, this is maybe a stupid question but why is EventEmitter.emit blocking? Isn't that a little bit against the whole node async philosophy? Thanks in advance for explanation :) [23:11] CIA-69: node: 03Ryan Dahl 07master * r84cf0c5 10/ src/node_crypto.cc : [23:11] CIA-69: node: crypto: set data before sending to thread pool [23:11] CIA-69: node: fixes test-crypto - http://git.io/8nj14w [23:12] bnoordhuis: alefnula: emit isn't blocking [23:12] alefnula: it waits for all the callbacks to return [23:12] trotter has joined the channel [23:12] bnoordhuis: what else should it do? [23:13] alefnula: maybe just process.nextTick(callback ... ) and return [23:13] AaronMT has joined the channel [23:13] alefnula: I said that it's maybe a stupid question :) [23:14] cconstantine: bnoordhuis, the npm module? [23:14] bnoordhuis: cconstantine: yes [23:14] cconstantine: bnoordhuis, thanks [23:15] bnoordhuis: alefnula: why would you want to defer it to the next tick? (taking the socratic approach here) [23:15] bnoordhuis: your event listeners have to run anyway and delaying that until after the event is only confusing [23:16] edude03 has joined the channel [23:16] alefnula: one of the things that pop into my mind: because for some crazy reason one of the listeners is doing writeFileSync or something like that... Maybe he needs it to be sync, but I don't have to wait for that... [23:17] bnoordhuis: you never need to use writeFileSync [23:17] bnoordhuis: it's a convenience function, nothing more [23:18] Daegalus has joined the channel [23:19] alefnula: I know, but if something exist someone *will* use it :) but ok, it was just a question :) so basically the answer is: it's intended to be blocking :) [23:20] abiii_ has joined the channel [23:20] bnoordhuis: alefnula: yes [23:21] pandeiro has joined the channel [23:22] cconstantine: bnoordhuis, if I telnet into the server (with the repl module) and initiate the profiler it just locks the node process [23:22] bnoordhuis: cconstantine: you mean with node-profiler? [23:22] cconstantine: NODE_ENV=production nod--prof -prof_lazy server.js [23:23] cconstantine: yes [23:23] bnoordhuis: cconstantine: is your app being hit really hard? that's about the only reasonable explanation [23:23] cconstantine: bnoordhuis, yes [23:24] cconstantine: bnoordhuis, is there a way to have it start profiling at load, and dump the profile file when I ^C the node process? [23:24] steveC has joined the channel [23:24] jesusabdullah: Anybody here good at vows and willing to tell me what I did wrong? [23:24] bnoordhuis: cconstantine: you'd have to add a timer that checks os.loadavg() [23:25] jbrokc has joined the channel [23:25] cconstantine: hu? [23:25] steveC has left the channel [23:25] Daegalus: If I am new to Node.js, and want to start it, should I go with the 0.4.11 version or the newer 0.5.5 version? [23:26] bradleymeck has joined the channel [23:26] tmpvar: 0.4.11 [23:26] bnoordhuis: cconstantine: setInterval(checker, 1000) [23:26] bnoordhuis: cconstantine: where checker is a function that checks os.loadavg() [23:26] Daegalus: tmpvar: any reasoning on why? just curious [23:26] tmpvar: Daegalus, even versions are stable ;) [23:26] tjholowaychuk: haha see ^ no one gets it [23:26] cconstantine: bnoordhuis, setInterval isn't a bad idea.... but I don't understand what os.loadavg has to do with this [23:27] bnoordhuis: cconstantine: you want it to start profiling when the load rises, right? [23:27] cconstantine: meh [23:27] cha0s has joined the channel [23:27] cha0s has joined the channel [23:27] MrNko has joined the channel [23:27] bnoordhuis: i assume you meant system load [23:27] robotarmy has joined the channel [23:27] cconstantine: it becomes under load because of my stuff [23:28] ChrisPartridge has joined the channel [23:28] CrisO has joined the channel [23:28] dgathright_ has joined the channel [23:28] Daegalus: tmpvar: ok, but what kind of unstable? Stuff liek it crashing for no reason, or actual syntax/coding/etc unstable? Im asking because if its just the crashing kind, I don't mind. I like bleeding edge stuff. [23:28] cconstantine: I mostly want to do the profiling from start to when I'm done [23:29] mrchess: Daegalus: use 0.4.11 [23:29] mrchess: Daegalus: defintiely more battle tested [23:29] bnoordhuis: cconstantine: start is program startup? [23:29] cconstantine: bnoordhuis, I"ll just add and endpoint that calls profile.pause [23:29] cconstantine: bnoordhuis, yes [23:29] Daegalus: ok, thank you. Sorry, just wanted to make sure I get off to a good start. So far from what Ive read and tried, I am really liking node.js [23:30] guidocalvano has joined the channel [23:30] mrchess: yeah the 0.5 series is marked unstable.. so yea use at your own risk if you use 0.5 :) [23:32] neorab has joined the channel [23:33] Gregor has joined the channel [23:34] mehlah has joined the channel [23:34] dscape: any everyauth experts? [23:34] jakehow has joined the channel [23:34] jakehow_ has joined the channel [23:34] jakehow__ has joined the channel [23:35] lunks has joined the channel [23:36] cliffano has joined the channel [23:36] cconstantine: bnoordhuis, I'm calling resume and pause but I don't see the v8.log file [23:37] empt has joined the channel [23:38] bnoordhuis: cconstantine: is the location writable by the user node runs as? [23:38] bnoordhuis: location = directory [23:38] cconstantine: yes [23:38] cconstantine: does node have to be compiled specially to have the profiler? [23:39] indexzero has joined the channel [23:40] cconstantine: bnoordhuis, ah, asking the question fixed it somehow [23:40] Benny_: What should I install if I want to run multiple node applications on my VPS? I have a few friends and they wants to host their applications on my server. [23:40] Benny_: *want [23:41] bnoordhuis: cconstantine: v8's profiler is a little finicky, if you ctrl-c your app it might not write the log file [23:41] gxdssoft has joined the channel [23:41] cconstantine: bnoordhuis, I just added 2 endpoints start_profile, and stop_profile [23:43] mendel_ has joined the channel [23:44] DTrejo has joined the channel [23:44] DTrejo: PLEASE UPVOTE: http://news.ycombinator.com/item?id=2947977 [23:44] indexzero has joined the channel [23:45] cconstantine: bnoordhuis, when I try to run the profiler 'linux-tick-processor' it attempts to compile something and fails because it can't find 'gnu/stubs-32.h' any ideas? [23:46] bnoordhuis: cconstantine: what version of node is this? [23:46] bnoordhuis: i talked the v8 team out of auto-building stuff from inside linux-tick-processor [23:47] cconstantine: 4.10? [23:47] cconstantine: 0.4.10 [23:47] Destos has joined the channel [23:48] bnoordhuis: cconstantine: right, that one still has the auto-build stuff in it [23:49] cconstantine: is there a lib I need? [23:49] m_ has joined the channel [23:50] bnoordhuis: cconstantine: no, just apply this patch: https://github.com/v8/v8/commit/3d2e991 [23:50] bnoordhuis: bnoordhuis: but you'll need to build d8 with `scons tool=d8` [23:51] deoxxa: d8? [23:51] guidocalvano has joined the channel [23:51] bnoordhuis: oh, i talked to myself [23:51] bnoordhuis: cconstantine: ^ [23:51] bnoordhuis: deoxxa: a cli tool for v8 [23:51] WRAz has joined the channel [23:52] deoxxa: oh, i thought it was a typo [23:52] deoxxa: now i feel silly [23:52] cconstantine: I still don't have stubs [23:53] cconstantine: and apt-cache search isn't helping [23:53] Cromulent has joined the channel [23:53] bnoordhuis: cconstantine: i should fix that sometime... you don't really need d8 [23:54] bnoordhuis: let me see if i can fix it quickly [23:55] rbuck has joined the channel [23:55] mavus has joined the channel [23:56] cconstantine: got it to compile (sudo apt-get install g++-multilib) [23:57] spcshpopr8r has joined the channel [23:58] spcshpopr8r: please help (/me slow on the uptake, really), I've seen a lot of cool libraries like this: https://github.com/wdavidw/node-csv-parser [23:59] spcshpopr8r: but when I try to type in those commands at the repl they don't work...I'm sure this is something I should know, but is that preceeding '.' notation a sort of syntactic sugar that doesn't work interactively...alternatives? [23:59] mynyml has joined the channel [23:59] jesusabdullah: spcshpopr8r: Are you copy-pasting them? [23:59] spcshpopr8r: jesusabdullah: typing them in verbatim...at the node shell [23:59] cjheath has joined the channel