00:00:07  <Aljone>i cant really install JAVA
00:00:31  <GreenJello>yes you can, and if you haven't, why would you expect running java to work?
00:01:13  * fourqquit (Ping timeout: 255 seconds)
00:02:25  <Aljone>ok so how do i do it
00:02:30  <Aljone>node-gyp ?
00:02:34  <Aljone>i have it installed...
00:03:20  * Kylo-Renjoined
00:03:29  * Kylo-Renpart
00:03:48  <j4f-shredder>GreenJello
00:03:50  <j4f-shredder>you are right
00:03:54  <j4f-shredder>process.env.DATABASE_URL
00:04:00  <j4f-shredder>I have a problem though
00:04:02  * mscdexjoined
00:04:15  <j4f-shredder>Do I have to make a connection on my model folder
00:04:21  <j4f-shredder>or on the app.js file?
00:04:38  <j4f-shredder>on every request should I open the connection or just one time when the app starts?
00:05:47  * RLaquit (Quit: Leaving)
00:06:00  <j4f-shredder>it's a postgres database
00:06:09  * antiPoPquit (Ping timeout: 276 seconds)
00:06:55  <GreenJello>j4f-shredder, I think you connect once and it'll manage a connection pool for you
00:07:19  <GreenJello>but read the docs for your driver
00:07:40  * _andyj_joined
00:07:43  * _andyj_quit (Changing host)
00:07:43  * _andyj_joined
00:07:43  * _andyj_quit (Changing host)
00:07:43  * _andyj_joined
00:08:05  * antiPoPjoined
00:08:19  <j4f-shredder>how do I pass the db variable from the app.js to my models?
00:08:27  <j4f-shredder>cause this is the path that follows
00:08:30  <j4f-shredder>starts on app.js
00:08:40  * bendmanquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:08:46  <j4f-shredder>var connectionString = process.env.DATABASE_URL; var knex = require('knex')({ client: 'pg', connection: connectionString, searchPath: 'knex,public' });
00:09:01  <j4f-shredder>then it goes to index.js on the routes folder
00:09:15  <j4f-shredder>where I have a line to include a file with the model
00:09:17  <j4f-shredder>router.use('/api/flocks', require('./flocks'));
00:09:48  <j4f-shredder>the file flocks.js have a route handling router.get('/user/id/:id_user/latitude/:latitude/longitude/:longitude/within/:within', function(req, res, next) {
00:10:03  <j4f-shredder>and inside there it goes to another file
00:10:09  * spronkajoined
00:10:12  <j4f-shredder>on a models folder
00:10:20  <j4f-shredder> var promise = Flock.getUserFlocks(id_user,latitude,longitude,within);
00:10:45  <j4f-shredder>and on the models/Flock.js folder I query the database
00:10:51  <j4f-shredder>but I need the knex variable
00:10:58  <j4f-shredder>how do I make it get there?
00:11:09  <j4f-shredder>I never knew how to do that
00:12:00  <GreenJello>j4f-shredder, you can stick it on req
00:12:05  <GreenJello>via a middleware
00:12:34  <GreenJello>or you can just have a module that creates the connection and exports it, and then require() that where needed, but DI is usually preferred
00:13:04  * theRealGentjoined
00:13:11  <j4f-shredder>app.set('knex', db);
00:13:21  <j4f-shredder>app.set('db', knex);
00:13:22  <j4f-shredder>I mean
00:13:26  <j4f-shredder>like that?
00:13:35  <j4f-shredder>on the app.js
00:14:10  * iFirejoined
00:14:25  * Guest19530quit (Ping timeout: 265 seconds)
00:17:06  <j4f-shredder>I think that doesn't work, I don't have a clue on how to implement that
00:17:54  <GreenJello>app.use((res, res, next) => { req.db = db; next() })
00:17:56  * WizJinjoined
00:17:59  <GreenJello>above your other routes
00:18:10  <GreenJello>then you can access req.db anywhere
00:18:49  <GreenJello>so your route handlers will pass it to the functions that talk to the database
00:18:55  * tristanpjoined
00:19:44  <j4f-shredder>ohhh
00:19:48  <j4f-shredder>that's quite clean
00:20:07  * e14joined
00:20:26  * knksmith57joined
00:20:41  * Guest61334part
00:20:47  * sz0quit (Quit: Connection closed for inactivity)
00:21:16  * ljharbjoined
00:21:54  * fsalgojoined
00:22:36  * M-leocjoined
00:22:36  * appelgriebsch[m]joined
00:22:36  * M-shinejoined
00:22:47  * M-test12345joined
00:22:48  * Ineentho[m]joined
00:24:37  * theonefooquit (Quit: theonefoo)
00:25:57  * NetersLandreaujoined
00:26:42  * j4f-shredderquit (Ping timeout: 240 seconds)
00:27:03  * bendmanjoined
00:27:55  * tristanpquit (Remote host closed the connection)
00:27:58  * Guest19530joined
00:28:21  * inVINCEablejoined
00:30:51  * harryhjoined
00:34:13  * Ikziquit (Quit: No Ping reply in 180 seconds.)
00:34:35  * NoirSoldats_quit (Quit: No Ping reply in 180 seconds.)
00:35:37  * jgornick_quit (Ping timeout: 265 seconds)
00:36:12  * NoirSoldatsjoined
00:36:19  * jgornickjoined
00:36:44  * Ikrijoined
00:37:17  * AustinIncognitoquit (Remote host closed the connection)
00:37:34  * AustinMathernejoined
00:38:35  * SwiftMattquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
00:39:12  * zhallajoined
00:41:28  * NoirSoldatsquit (Quit: No Ping reply in 180 seconds.)
00:42:34  * NoirSoldatsjoined
00:44:44  * zhallaquit (Remote host closed the connection)
00:46:18  * alxlujoined
00:49:56  * munch_quit (Remote host closed the connection)
00:50:43  * alxluquit (Ping timeout: 255 seconds)
00:51:14  * qrestlovequit (Read error: Connection reset by peer)
00:52:47  * NomadJim_joined
00:53:05  * Fohlenquit (Ping timeout: 265 seconds)
00:53:28  * fsalgo_joined
00:53:34  * jellycodequit (Ping timeout: 265 seconds)
00:53:34  * TitanThirstyquit (Ping timeout: 265 seconds)
00:53:47  * jellycodejoined
00:53:48  * jellycodequit (Client Quit)
00:54:32  * fsalgoquit (Ping timeout: 265 seconds)
00:54:32  * _andyj_quit (Ping timeout: 265 seconds)
00:54:32  * garann______quit (Ping timeout: 265 seconds)
00:55:01  * wagnerfranciscoquit (Ping timeout: 265 seconds)
00:55:01  * 7ITAAMETRquit (Ping timeout: 265 seconds)
00:55:01  * janxquit (Ping timeout: 265 seconds)
00:55:02  * Lartzaquit (Ping timeout: 265 seconds)
00:55:02  * jednorozecquit (Ping timeout: 265 seconds)
00:55:26  * EvilJStokerquit (Ping timeout: 265 seconds)
00:55:30  * bhughesquit (Ping timeout: 265 seconds)
00:55:30  * killtheliteratequit (Ping timeout: 265 seconds)
00:55:30  * _th_nquit (Ping timeout: 265 seconds)
00:55:55  * mtquit (Ping timeout: 265 seconds)
00:56:28  * navidrquit (Ping timeout: 265 seconds)
00:56:28  * NomadJimquit (Ping timeout: 265 seconds)
00:56:28  * 7ITAAMCUSquit (Ping timeout: 265 seconds)
00:56:46  * navidr_joined
00:57:01  * janxjoined
00:57:08  * bhughesjoined
00:57:15  * _th_njoined
00:57:26  * mvenquit (Ping timeout: 265 seconds)
00:57:30  * mven_joined
00:57:31  * mven_quit (Excess Flood)
00:57:55  * _andyj_joined
00:57:55  * heyimwillquit (Ping timeout: 265 seconds)
00:58:10  * Lartzajoined
00:58:38  * garann______joined
00:58:56  * TitanThirstyjoined
00:59:13  * tristanpjoined
00:59:28  * tristanpquit (Remote host closed the connection)
00:59:51  * TotempaaltJquit (Ping timeout: 265 seconds)
01:00:35  * EvilJStokerjoined
01:00:49  * danjenkinsquit (Ping timeout: 265 seconds)
01:01:00  * killtheliteratejoined
01:01:09  * netwoodlejoined
01:01:16  * TotempaaltJjoined
01:01:18  * jbudquit (Ping timeout: 265 seconds)
01:01:47  * lolmacquit (Ping timeout: 265 seconds)
01:01:53  * jednorozecjoined
01:02:03  * wagnerfranciscojoined
01:02:27  * Fohlenjoined
01:03:33  * danjenkinsjoined
01:05:50  * SwiftMattjoined
01:06:51  * asteelejoined
01:07:46  * Urbanyjoined
01:08:38  * jbudjoined
01:08:53  * ibashjoined
01:10:27  * bendmanquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
01:10:42  * wtigerjoined
01:10:43  * Havvyjoined
01:10:50  <wtiger>Hi!
01:10:51  * plutoniixquit (Quit: Leaving)
01:10:59  * lolmacjoined
01:11:21  * hyeonujoined
01:11:28  <wtiger>I want to validate the json input to my rest api written with express, have looked at a couple of validators, but none of them (apparently) support nested objects..
01:12:11  <wtiger>do I have to extract objects and then validate, or am I missing something?
01:12:29  * k0nslquit (Ping timeout: 272 seconds)
01:13:01  * heyimwilljoined
01:13:11  <GreenJello>wtiger, check out joi
01:13:29  * spronkaquit (Quit: My MacBook Air has gone to sleep. ZZZzzz…)
01:13:32  * NetersLandreauquit (Quit: NetersLandreau)
01:13:34  <GreenJello>but if you mean recursive structures, I'm not sure it can handle that well
01:14:15  <wtiger>GreenJello: I did check joi, but could not find a way to check nested objects
01:14:25  <wtiger>recursion is not needed for now
01:15:01  * ibashquit (Ping timeout: 255 seconds)
01:15:11  * SwiftMattquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
01:15:16  <GreenJello>wtiger, Joi.object().keys({
01:15:28  * drpjoined
01:15:38  * Rodya_quit (Remote host closed the connection)
01:16:27  <wtiger>GreenJello: yes, but how do I define another object/array in there?
01:17:19  <GreenJello>wtiger, you can just do another Joi.object() as the value of one of the keys
01:17:38  <wtiger>GreenJello: I see
01:17:40  * themimequit (Quit: Connection closed for inactivity)
01:18:00  * ironfroggyquit (Remote host closed the connection)
01:18:08  <GreenJello>they do mention that things are optional by default, which is super weird
01:18:18  * tristanpjoined
01:18:33  * NetersLandreaujoined
01:18:38  * ironfroggyjoined
01:18:45  <wtiger>yeah, i did make a nested schema, didn't work
01:18:53  <wtiger>validates even an empty array
01:19:26  * atatsujoined
01:20:00  * ed209quit (Remote host closed the connection)
01:20:07  * ed209joined
01:21:39  * M-keyvanjoined
01:23:18  * ironfroggyquit (Ping timeout: 264 seconds)
01:23:52  * mtjoined
01:24:19  * tristanpquit (Remote host closed the connection)
01:24:53  * tristanpjoined
01:25:25  * knksmith57quit (Quit: Leaving.)
01:26:15  * fourqjoined
01:26:15  * knksmith57joined
01:26:30  * heartburnjoined
01:26:30  * heartburnquit (Read error: Connection reset by peer)
01:26:38  * heartburnjoined
01:27:15  <heartburn>sup. may i bitch about npm here a little, or there's another place for that?
01:28:00  <Literphor>heartburn: #npm
01:28:02  * ibashjoined
01:28:05  <heartburn>thanks
01:28:08  * heartburnpart
01:28:11  <Literphor>lol
01:28:30  <Literphor>Mission Accomplished. **signs off**
01:28:47  <GreenJello>good work today Literphor!
01:28:52  * ed209quit (Ping timeout: 244 seconds)
01:29:01  * ed209joined
01:29:02  <GreenJello>keep it up, and you might get a 25% pay raise
01:29:22  * Literphorsolemn nod
01:29:24  <Literphor>Just doing my job
01:29:25  * tristanpquit (Ping timeout: 255 seconds)
01:29:27  * e14quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
01:30:39  * jellycodejoined
01:30:57  * Fleuvquit (Quit: Ciao)
01:31:21  * AlexxNicaquit (Quit: AlexxNica)
01:31:59  * pyiosjoined
01:32:50  * tristanpjoined
01:33:29  * ibashquit (Ping timeout: 240 seconds)
01:34:12  * ahmed_elgabriquit (Quit: WeeChat 1.5)
01:39:43  * NomadJim_changed nick to NomadJim
01:40:09  * plutoniixjoined
01:41:30  * fsalgo_quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
01:42:00  <jellycode>hey guys, super novice question: I'm doing require('otherjsonfile'); and getting Cannot find module 'otherjsonfile'
01:42:27  <jellycode>otherjsonfile.js is in the same directory
01:42:43  <ljharb>jellycode: `require('./otherjsonfile')`
01:42:54  <ljharb>jellycode: if the path doesn't start with a dot or a slash, it looks in node_modules for an npm-installed module
01:43:10  <jellycode>always have to include path with other files?
01:43:51  * ed209quit (Ping timeout: 244 seconds)
01:44:00  * ed209joined
01:45:09  <ljharb>jellycode: yes
01:45:18  * jasnelljoined
01:45:18  <ljharb>jellycode: relative requires need a relative path
01:45:23  * jasnellquit (Remote host closed the connection)
01:45:24  <jpstone>why would one choose "eval" as a webpack devtool
01:45:28  <jellycode>Ok thanks.
01:45:37  * SwiftMattjoined
01:45:38  * jasnelljoined
01:46:03  * morenoh149joined
01:46:18  * alxlu_joined
01:48:23  * ibashjoined
01:48:46  * e14joined
01:49:11  * wtigerquit (Quit: leaving)
01:49:36  <jellycode>i have an empty mocha before function: "before(function(done){});" And it gives me error: "before all" hook: Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.
01:49:47  * JRajamaaquit (Quit: Konversation terminated!)
01:50:02  <jellycode>done() is being called, and when i comment out the before hook, the tests pass
01:50:41  * fsalgojoined
01:50:48  * morenoh149quit (Ping timeout: 276 seconds)
01:51:13  * knksmith57quit (Quit: Leaving.)
01:51:19  <jellycode>i just added console.log('test'); and it still failed
01:52:10  <jpstone>if it's empty, how is done being called
01:52:20  <jpstone>just remove done from the arguments
01:52:20  <jellycode>ok, it just hit me
01:52:27  * mvenjoined
01:52:27  <jellycode>done has to be called in the before hook as well
01:52:34  <jellycode>i thought it had to be called only in the actual test
01:52:38  * ed209quit (Ping timeout: 244 seconds)
01:52:47  * ed209joined
01:53:10  * ibashquit (Ping timeout: 260 seconds)
01:53:10  <ljharb>jellycode: if you declare the callback with "done", you always have to call it
01:53:24  * tubuliferousquit (Ping timeout: 276 seconds)
01:53:39  <jellycode>tbh, callbacks are new to me
01:53:40  * jasnellquit (Remote host closed the connection)
01:53:45  <jellycode>only dealt with them a little bit
01:54:03  <ljharb>jellycode: in this case i just mean "function"
01:54:06  <jellycode>but i'm starting to pick up fast now :)
01:54:55  * quakephil_quit (Ping timeout: 250 seconds)
01:55:10  * tristanpquit (Remote host closed the connection)
01:55:31  * fourqquit (Ping timeout: 255 seconds)
01:55:33  * alxlu_quit (Ping timeout: 272 seconds)
01:55:42  * tristanpjoined
01:56:20  <jellycode>Ok now, on to the next one, can u tell me whats wrong with this: https://codeshare.io/t4B1f
01:57:10  <ljharb>yes
01:57:19  <ljharb>jellycode: the call on line 4 needs to be in a before or beforeEach
01:57:27  <ljharb>jellycode: otherwise the test runs before that async thing comes back
01:57:37  * e14quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
01:57:57  <ljharb>jellycode: also, in the "it", you need to call `done` inside the callback, on line 18
01:57:58  * EMChampjoined
01:58:14  <jellycode>well i'm only trying to run lines 15 - 26
01:58:15  <ljharb>jellycode: that callback on line 18 comes back many thousands of milliseconds after lines 23 and 25 run
01:58:23  * inVINCEablequit
01:58:29  <jellycode>oh i see what u saying
01:58:32  <ljharb>jellycode: you can only ever get at `credentials` INSIDE the callback
01:58:37  <ljharb>returning from an async callback does nothing
01:58:44  <jellycode>ok
01:59:46  * tubuliferousjoined
02:00:01  * tristanpquit (Ping timeout: 255 seconds)
02:00:11  <jellycode>so is it even possible to do a test of "loginWithUsernamePassword without also doing the new someAzureServiceClient part?
02:00:27  <jellycode>i just trying to break it up
02:00:52  <ljharb>probably not
02:01:23  <jellycode>ok, because it NEEDS a function that returns credentials
02:01:29  <jellycode>it doesn't return credentials itself
02:01:43  <jellycode>no, wait, thats not right
02:02:01  <jellycode>it does return credentials, and it needs a function that TAKES those credentials.
02:02:37  * lemoinemquit (Ping timeout: 250 seconds)
02:03:29  * lemoinemjoined
02:03:42  * harryhquit (Quit: My Mac has gone to sleep. ZZZzzz…)
02:04:16  * navidr_quit (Quit: Connection closed for inactivity)
02:04:33  * NetersLandreauquit (Quit: NetersLandreau)
02:04:47  <ljharb>it doesn't "return" credentials
02:04:54  <ljharb>it passes them to your callback function
02:06:33  <jellycode>is it possible to return the client var on line 7?
02:07:10  <ljharb>jellycode: return it to where
02:07:33  <jellycode>just capture it as a variable so that i can apply a should. statement to it
02:07:44  <jellycode>make sure it's valid
02:07:49  * e14joined
02:08:00  <ljharb>jellycode: line 9 will verify that by throwing an exception if it's not :-p
02:09:17  <jellycode>but line 9 could also fail because my subscription id on line 7 is invalid
02:10:16  <jellycode>maybe i just need to adjust to all the closures and callbacks, but i'm used to unit testing each function and method. when they're nested like this, it's especially hard to debug
02:11:41  <ljharb>you don't have to test `someAzureServiceClient` tho
02:11:43  <ljharb>that's not your coe
02:11:44  <ljharb>*code
02:12:18  <jellycode>i guess thats true
02:12:32  <jellycode>thx
02:13:18  * tristanpjoined
02:13:50  * braincra-joined
02:16:02  * wagnerfranciscoquit (Quit: Ex-Chat)
02:16:25  * braincrashquit (Ping timeout: 244 seconds)
02:16:52  * tristanpquit (Remote host closed the connection)
02:16:58  * ibashjoined
02:17:24  * tristanpjoined
02:17:30  * tristanpquit (Remote host closed the connection)
02:17:43  * tristanpjoined
02:17:54  * j4f-shredderjoined
02:17:57  * ed209quit (Ping timeout: 244 seconds)
02:18:06  * ed209joined
02:18:09  * tristanpquit (Remote host closed the connection)
02:18:14  <j4f-shredder>hey I could deploy to heroku and I know the code works, but the port assignment is failing or something
02:18:33  <j4f-shredder>error r10 (boot timeout) web process failed to bind to $PORT within 60 seconds of launch
02:18:42  * tristanpjoined
02:18:58  <j4f-shredder>var port = normalizePort(process.env.PORT || '3000'); app.set('port', port); /** * Create HTTP server. */ var server = http.createServer(app); /** * Listen on provided port, on all network interfaces. */ server.listen(port);
02:19:00  * tristanpquit (Read error: Connection reset by peer)
02:19:06  <j4f-shredder>I'm using that on a www script
02:19:25  * tristanpjoined
02:19:33  <j4f-shredder>on my package json I have . "scripts": { "start": "supervisor ./bin/www" }
02:19:53  <j4f-shredder>the code is working properly on localmachine
02:21:13  <ljharb>j4f-shredder: and supervisor is a dep in package.json?
02:22:20  * ibashquit (Ping timeout: 260 seconds)
02:22:47  * theRealGentquit (Ping timeout: 272 seconds)
02:23:00  <j4f-shredder>no
02:23:16  <j4f-shredder>"dependencies": { "bcrypt": "^0.8.7", "bluebird": "^3.4.1", "body-parser": "^1.13.3", "cookie-parser": "~1.3.5", "debug": "~2.2.0", "express": "~4.13.1", "jade": "~1.11.0", "knex": "^0.11.7", "knex-logger": "^0.1.0", "knex-postgis": "^0.1.9", "morgan": "~1.6.1", "pg": "^4.5.5", "serve-favicon": "^2.3.0" },
02:23:32  * chjjjoined
02:23:43  <ljharb>j4f-shredder: if "start" requires X, then X is a dependency
02:23:47  <ljharb>so that's why it's failing
02:24:12  <j4f-shredder>will an npm install --save supervisor will do?
02:24:19  * tristanpquit (Ping timeout: 255 seconds)
02:25:19  <ljharb>should do, yes
02:25:32  * iFirequit (Read error: Connection reset by peer)
02:26:25  * iFirejoined
02:26:46  * robo7quit (Read error: Connection reset by peer)
02:26:47  <jellycode>ljharb, so here's my test now.... https://codeshare.io/t4B1f (21-34). line 32 is failing
02:26:48  * ibashjoined
02:27:05  * robo7joined
02:27:12  <ljharb>jellycode: right. that line, and the done() call, must ONLY be inside the callback
02:27:30  <ljharb>jellycode: i moved them for you
02:27:34  * sector_0quit (Quit: Ex-Chat)
02:27:40  * sector_0_joined
02:27:43  <jellycode>testing...
02:27:53  * sector_0_part
02:28:03  <ljharb>jellycode: sorry, one more move
02:28:13  * grill_joined
02:28:21  * Asandariquit (Ping timeout: 240 seconds)
02:29:12  <jellycode>Well i'm sure thats right, but now i have new error
02:29:13  <jellycode>Uncaught ReferenceError: ResourceManagementClient is not defined
02:29:50  <ljharb>did you import it?
02:29:59  <jellycode>im fixing now
02:30:01  <j4f-shredder>ljharb that is not working
02:30:04  <jellycode>i had it in before
02:30:08  <j4f-shredder>even with supervisor dependeny
02:30:11  <j4f-shredder>it still says
02:30:38  <j4f-shredder>Error R10(Boot timeout)- Web process failed to bind to $PORT within 60 seconds of launch
02:30:49  <ljharb>j4f-shredder: you may need to ask heroku
02:30:51  * bayedquit (Quit: Connection closed for inactivity)
02:30:57  <j4f-shredder>var port = normalizePort(process.env.PORT || '3000'); app.set('port', port); /** * Create HTTP server. */ var server = http.createServer(app); /** * Listen on provided port, on all network interfaces. */ server.listen(port);
02:31:00  <j4f-shredder>is that the right way
02:31:05  <j4f-shredder>of assigning the port?
02:31:12  <j4f-shredder>I used express generator
02:31:40  * ibashquit (Ping timeout: 260 seconds)
02:32:13  <j4f-shredder>maybe is that normalize port function that makes it fail
02:32:30  * Asandarijoined
02:36:13  * ibashjoined
02:37:17  <j4f-shredder>ljharb
02:37:26  <j4f-shredder>I changed something and it worked
02:37:30  <j4f-shredder>on the ProcFile
02:37:47  <j4f-shredder>the one that heroku use to take the initial command
02:37:52  <jellycode>ljharb : i still can't get it to requires(). Tried var ResourceManagementClient = require('ResourceManagementClient'); and var ResourceManagementClient = require('resourceManagementClient');
02:37:54  <j4f-shredder>worker: node app
02:38:06  <j4f-shredder>I used that instead of web: node app
02:38:41  <jellycode>ljharb nvm, i got it
02:39:05  <j4f-shredder>apparently web node app makes mandatory to listen to a port and if you use express generator uses a different http module rather than the native http from node
02:39:26  <j4f-shredder>I don't know if that's the real reason but it worked
02:41:00  * ibashquit (Ping timeout: 260 seconds)
02:41:07  <jellycode>Now it's saying that credentials is null: Uncaught Error: 'credentials' cannot be null.
02:41:12  * ed209quit (Ping timeout: 244 seconds)
02:41:21  <jellycode>i'm passing in valid username and password
02:41:30  <jellycode>and it's not generating valid credentials
02:42:18  <jellycode>ok ok, i added console.log(err) and got the deets
02:44:24  * Diamond_changed nick to Diamond
02:45:30  * speediojoined
02:46:18  * alxlujoined
02:46:19  * robo7_joined
02:47:48  * j4f-shredderquit (Quit: Page closed)
02:49:05  * robo7quit (Ping timeout: 240 seconds)
02:50:55  * Xiti`joined
02:51:19  * mr-foobarjoined
02:52:05  * mr-fooba_quit (Ping timeout: 252 seconds)
02:54:06  * fsalgoquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
02:54:17  * Pixi_quit (Ping timeout: 252 seconds)
02:55:21  * ibashjoined
02:55:43  * smccarth_joined
02:58:08  * pimlujoined
02:59:03  * Fleeboxjoined
02:59:18  * e14quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
02:59:25  * ZZRMikepart
02:59:48  * ibashquit (Ping timeout: 244 seconds)
03:00:09  * smccarthyquit (Ping timeout: 272 seconds)
03:01:24  * grill__joined
03:02:51  * cultherojoined
03:02:52  * cultheroquit (Remote host closed the connection)
03:03:30  * cultherojoined
03:04:06  * grill_quit (Ping timeout: 264 seconds)
03:04:58  * ibashjoined
03:05:47  * braincra-quit (Quit: bye bye)
03:10:10  * ibashquit (Ping timeout: 260 seconds)
03:10:13  * harryhjoined
03:10:21  * antiPoPquit (Ping timeout: 265 seconds)
03:11:40  * cultheroquit
03:12:01  * antiPoPjoined
03:12:56  <jellycode>so ljharb, the right thing to do was just put the done and should.exist(credentials) inside the closure all along
03:13:13  <jellycode>that lets me test the single function
03:13:32  * harryhquit (Client Quit)
03:14:13  * harryhjoined
03:14:52  * ibashjoined
03:16:25  * cultherojoined
03:17:39  * e14joined
03:17:57  * braincrashjoined
03:18:12  * cspotcodejoined
03:19:10  * e14quit (Client Quit)
03:19:32  * ibashquit (Ping timeout: 265 seconds)
03:19:53  * zoLquit (Quit: Leaving)
03:29:08  * joshsynjoined
03:29:55  * cagedwisdomquit (Ping timeout: 272 seconds)
03:33:22  * necro666quit (Read error: Connection reset by peer)
03:33:22  * fcanelaquit (Quit: No Ping reply in 180 seconds.)
03:33:42  * ibashjoined
03:33:54  * oojacobooquit (Ping timeout: 244 seconds)
03:34:01  * necro666joined
03:34:28  * fcanelajoined
03:34:41  * morenoh149joined
03:36:52  * WiseOldDJjoined
03:38:04  * oojacoboojoined
03:38:45  * ibashquit (Ping timeout: 260 seconds)
03:38:50  * nerdystreetratjoined
03:39:05  * morenoh149quit (Ping timeout: 240 seconds)
03:39:35  * jdewaldjoined
03:41:39  * fn00dlequit (Ping timeout: 244 seconds)
03:43:38  * ibashjoined
03:43:49  * yoshokatanaquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
03:43:50  * fn00dlejoined
03:44:11  * Arguejoined
03:44:26  * k0nsljoined
03:44:40  * WiseOldDJquit (Ping timeout: 265 seconds)
03:45:04  * yoshokatanajoined
03:45:22  * yoshokatanaquit (Client Quit)
03:45:25  * plutoniixquit (Quit: Leaving)
03:46:40  * yoshokatanajoined
03:46:58  * yoshokatanaquit (Client Quit)
03:47:04  * cagedwisdomjoined
03:47:25  * yoshokatanajoined
03:47:46  * yoshokatanaquit (Client Quit)
03:48:05  * ibashquit (Ping timeout: 260 seconds)
03:48:14  * yoshokatanajoined
03:48:34  * yoshokatanaquit (Client Quit)
03:48:35  * jbudquit (Quit: leaving)
03:49:04  * yoshokatanajoined
03:49:22  * yoshokatanaquit (Client Quit)
03:49:51  * yoshokatanajoined
03:50:10  * yoshokatanaquit (Client Quit)
03:50:39  * yoshokatanajoined
03:50:58  * yoshokatanaquit (Client Quit)
03:52:46  * FIFOdquit (Quit: My Mac has gone to sleep. ZZZzzz…)
03:53:13  * dk0rquit (Ping timeout: 250 seconds)
03:53:55  * chjjquit (Ping timeout: 260 seconds)
03:56:37  * Literphorquit (Quit: Literphor)
03:57:27  * melvsterquit (Ping timeout: 250 seconds)
03:57:49  * nerdystreetratquit (Remote host closed the connection)
03:58:11  * nerdystreetratjoined
03:58:34  * atatsupart ("WeeChat 1.5")
04:00:34  * captain_morganjoined
04:02:27  * ibashjoined
04:05:26  * joshsynquit (Ping timeout: 244 seconds)
04:06:50  * Cabanossiquit (Ping timeout: 265 seconds)
04:07:20  * ibashquit (Ping timeout: 260 seconds)
04:09:19  * Cabanossijoined
04:12:21  * ibashjoined
04:13:29  * Castor_Troyjoined
04:14:18  * Castor_Troyquit (Changing host)
04:14:19  * Castor_Troyjoined
04:14:44  <Castor_Troy>hello
04:16:08  * fodquit (Quit: Connection closed for inactivity)
04:17:03  * antiPoPquit (Ping timeout: 265 seconds)
04:17:15  * ibashquit (Ping timeout: 260 seconds)
04:18:05  * e14joined
04:18:12  * inflamesjoined
04:19:01  * antiPoPjoined
04:20:27  * nerdystr1joined
04:21:34  * nerdystr1quit (Client Quit)
04:21:40  * e14quit (Client Quit)
04:21:43  * ibashjoined
04:22:39  * silencedquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
04:26:35  * ibashquit (Ping timeout: 260 seconds)
04:30:41  * kuldeep__joined
04:31:37  * ibashjoined
04:33:00  * grill__quit (Quit: Goodnight)
04:34:17  * kuldeep_quit (Ping timeout: 250 seconds)
04:34:31  * chokiquit (Ping timeout: 272 seconds)
04:36:30  * ibashquit (Ping timeout: 260 seconds)
04:37:19  * e14joined
04:40:14  * chjjjoined
04:41:15  * e14quit (Client Quit)
04:43:34  * NeverDiequit (Quit: http://radiux.io/)
04:44:17  * tubuliferousquit (Ping timeout: 240 seconds)
04:45:35  * djmaxjoined
04:48:06  * e14joined
04:50:27  * ibashjoined
04:50:30  * djmaxquit (Ping timeout: 260 seconds)
04:51:10  * LouisTjoined
04:51:10  * e14quit (Read error: Connection reset by peer)
04:51:45  * e14_joined
04:52:22  * craigp_joined
04:53:37  * Castor_Troyquit (Quit: Leaving)
04:54:40  * jonasenjoined
04:55:04  * craigpquit (Ping timeout: 250 seconds)
04:55:10  * ibashquit (Ping timeout: 260 seconds)
04:55:21  * e14_quit (Client Quit)
04:56:23  * plutoniixjoined
04:59:50  * oojacobooquit (Quit: Computer has gone to sleep.)
05:00:10  * e14joined
05:00:50  * plutoniixquit (Client Quit)
05:01:24  * nishu-tryinghardjoined
05:01:51  * qws-user-1229joined
05:01:51  * harryhquit (Quit: My Mac has gone to sleep. ZZZzzz…)
05:05:03  * qws-user-1228quit (Ping timeout: 250 seconds)
05:07:18  * Apocx_changed nick to Apocx
05:08:03  * reaper8055joined
05:08:18  * ibashjoined
05:08:26  * nerdystreetratquit (Quit: Textual IRC Client: www.textualapp.com)
05:08:42  * nerdystreetratjoined
05:08:45  * z4pTud0joined
05:11:17  * z4pTud0part
05:12:30  * joshsynjoined
05:13:01  * Thornjoined
05:13:28  * niemalquit (Remote host closed the connection)
05:14:28  * ibashquit (Ping timeout: 260 seconds)
05:15:13  * harryhjoined
05:15:46  * e14quit (Ping timeout: 255 seconds)
05:16:42  * e14joined
05:18:30  * nishu-tryinghardquit (Ping timeout: 264 seconds)
05:19:05  * joshonthewebjoined
05:19:18  <jellycode>i've got a mocha test... something like: var list = client.applications.list(function (err, result) {done();}}); should.exist(list);
05:19:42  * NomadJimquit (Quit: Leaving)
05:20:09  <jellycode>My problem is that list always has content. When my function returns an HTTP error instead of the actual list, list is just set to the json body of the http error.
05:20:24  <jellycode>what is the proper way to validate responses are a json list
05:20:26  <chovy>how do i use a fork on github of a package in package.json?
05:20:26  <ljharb>jellycode: the "should" must be INSIDE the callback
05:20:39  <ljharb>jellycode: in an async program, the entire program has to continue *inside* the async callback
05:20:51  * captain_morganquit (Ping timeout: 265 seconds)
05:20:52  <ljharb>chovy: you point to the URL for the repo/branch you want
05:20:54  <jellycode>sorry yes, ok
05:20:54  <chovy>this doedsn't appear to work: http://blog.ilovacha.com/2014/01/17/fork-and-patch-npm-moduels-hosted-on-github/
05:21:02  <ljharb>chovy: note that installing from github won't let you use semver
05:21:27  <ljharb>chovy: you shouldn't need the sha, you can just link to the branch
05:21:46  <chovy>ljharb: can you give me an example link?
05:21:59  * lpinjoined
05:22:16  <GreenJello>also no tall packages can be installed directly from github since they require a build step
05:22:19  <GreenJello>not all*
05:22:23  <chovy>npm ERR! fetch failed https://github.com/chovy/node-m3u8/archive/cf7deccd6696837462bb802d2e3bc03774cad9cd
05:22:26  <chovy>npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 404
05:22:31  <chovy>i keep getting errors using these instructions
05:22:47  <jellycode>So, what sorts of should. statements do i use in this example: https://codeshare.io/t4B1f
05:22:48  <GreenJello>chovy, you can just npm install <clone url>
05:22:51  <jellycode>on line 9
05:23:03  <chovy>GreenJello: ok. thanks
05:23:34  <ljharb>chovy: add "#branch" at the end if it's not the master branch
05:23:37  * morenoh149joined
05:23:38  <chovy>npm ERR! Unsupported URL Type: github.com:chovy/node-m3u8.git
05:24:16  <ljharb>you need a protocol