00:00:58  * orbyt_quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:01:27  * Caspinolquit (Ping timeout: 240 seconds)
00:02:37  * DeltaHeavyquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:03:05  * DeltaHeavyjoined
00:03:21  * deadbeatjoined
00:03:23  * DeltaHeavyquit (Client Quit)
00:03:50  * DeltaHeavyjoined
00:03:55  * BD64joined
00:04:09  * DeltaHeavyquit (Client Quit)
00:04:15  * HaZ7quit (Ping timeout: 265 seconds)
00:04:34  * DrFeelGoodjoined
00:04:34  * marthinaljoined
00:04:36  * DeltaHeavyjoined
00:04:56  * DeltaHeavyquit (Client Quit)
00:05:19  * DeltaHeavyjoined
00:05:22  * ahmedelgabriquit (Quit: WeeChat 2.1)
00:05:42  * DeltaHeavyquit (Client Quit)
00:07:45  * HaZ7joined
00:07:57  <neo4>lord|: wrapper
00:08:09  <neo4>for working in loop we have to do wrappers
00:08:09  <cryptopsy>how do i res render instead of the default express Cannot GET
00:08:26  <neo4>cryptopsy: res.send("hello world");
00:08:41  <cryptopsy>neo4: the point is doing it when a file is not found
00:09:01  <neo4>app.get('/', function(req, res) { res.send('hello world'); });
00:09:12  * marthinalquit (Ping timeout: 268 seconds)
00:09:16  <neo4>there exists 404
00:09:26  * goodenoughquit (Read error: Connection reset by peer)
00:10:02  * goodenoughjoined
00:10:37  <neo4>cryptopsy: I recall, you need after all middleware function make this app.get('*', function( req, res ) { send('file not exists' ); });
00:10:48  <lord|>cryptopsy: I might be getting koajs and expressjs behavior mixed, but...
00:10:56  <lord|>shouldn't you just be able to add more middleware
00:10:59  <neo4>cryptopsy: oh no it's for page
00:11:02  <lord|>to handle everything that didn't suceed
00:11:33  <lord|>an app.get('*') handler like that should deal with it proper
00:11:42  <neo4>cryptopsy: check manually, if ( !file_exists(paht)) { redirect user to page that is show him it }
00:11:47  <lord|>neo4: can you post your code
00:11:59  <cryptopsy>res.status(404) doesnt seem to be including css for the 404 page
00:12:37  <neo4>lord|: https://gist.github.com/kselax/cf16d5aaf17dae2b47cfa5129b88fe50
00:13:13  <neo4>lord|: it's now works normally only i always 3
00:13:52  * pdubquit (Remote host closed the connection)
00:14:06  <lord|>neo4: you didn't change much functionally though
00:14:12  <lord|>you need Promise.all
00:14:14  * mizu_no_oto_workjoined
00:14:16  <cryptopsy>file_exists is not defined
00:14:18  <lord|>just ignore that loop
00:14:26  <neo4>lord|: ordinary promise have all?
00:14:33  <lord|>I mean
00:14:45  <lord|>Promise.all(mass_prom).then(array => ...)
00:14:52  * darkhanbquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:14:55  <lord|>instead of lines 39-47
00:15:16  <neo4>cryptopsy: https://stackoverflow.com/questions/17699599/node-js-check-exist-file/35353898
00:15:26  <neo4>cryptopsy: https://stackoverflow.com/questions/4482686/check-synchronously-if-file-directory-exists-in-node-js
00:15:53  <cryptopsy>its fileExists
00:15:55  <cryptopsy>no underscore
00:16:19  <neo4>ok :)
00:16:52  <neo4>I meant when said file_exists about algorithm, it's php finction
00:17:09  <neo4>node.js and other languages have their equal
00:17:12  * danecandojoined
00:17:15  <cryptopsy>dont know how to use .FileExists though ,it requires an object
00:17:18  * danecandoquit (Client Quit)
00:17:53  <neo4>cryptopsy: var path = require('path');
00:17:57  <cryptopsy>mm
00:18:01  <neo4>this is object
00:18:07  <cryptopsy>req.path.fileExists worked
00:20:40  * nodweberquit (Ping timeout: 260 seconds)
00:21:38  * SrPxjoined
00:22:04  * doodadjsjoined
00:22:32  <jaawerth>it's worth noting that fs.exists and such are deprecated in favor of just using fs.stat/fs.statSync
00:22:58  <jaawerth>or fs.access
00:23:11  * m00dyjoined
00:23:31  * goodenoughquit (Read error: Connection reset by peer)
00:25:22  <ljharb>"deprecated"
00:26:50  <jaawerth>ljharb: you don't think they'll pull it in node 12?
00:27:03  <jaawerth>it's been listed as deprecated since at least 8
00:27:57  * m00dyquit (Ping timeout: 240 seconds)
00:28:23  <neo4>lord|: yes, we've got it
00:28:24  <neo4>https://gist.github.com/kselax/cf16d5aaf17dae2b47cfa5129b88fe50
00:28:24  <neo4>thank :)
00:28:26  <neo4>Here we are
00:28:27  <ljharb>jaawerth: i do not
00:28:36  <neo4>here I am :)
00:28:42  <jaawerth>annoying of them to deprecate it, then, lol
00:29:23  <neo4>entrance point
00:29:44  <neo4>that promise is entrance point form our middleware function
00:29:48  <dman777>ljharb: do you personally ever use the switch statement?
00:30:11  <neo4>I'm going to place this code to npm...
00:30:30  <neo4>suddenly somebody will need it
00:31:09  * hph^joined
00:31:09  * hph^quit (Max SendQ exceeded)
00:31:17  <neo4>guys, normally we cant get data from callback?
00:31:27  <neo4>only promises?
00:31:30  * hph^joined
00:31:31  * hph^quit (Max SendQ exceeded)
00:31:50  * hph^joined
00:31:51  * hph^quit (Max SendQ exceeded)
00:32:05  <neo4>are promises important?
00:32:12  * hph^joined
00:32:12  * hph^quit (Max SendQ exceeded)
00:32:15  <ljharb>dman777: nope
00:32:18  <ljharb>dman777: switch is terrible
00:32:19  <lord|>promises are the way to do things nowadays
00:32:25  <lord|>worth learning
00:32:26  <neo4>let's overview other way to get data from callback
00:32:29  <ljharb>!promises @ neo4
00:32:29  <ecmabot>neo4: Promises are placeholders for values that'll be provided in the future. They allow composing asynchronous operations like synchronous ones. See http://robotlolita.me/2015/11/15/how-do-promises-work.html and https://blog.domenic.me/youre-missing-the-point-of-promises/. Contrast with !cps & see https://bevacqua.github.io/promisees/. Another guide: http://www.javascriptkit.com/javatutors/javascriptpromises.shtml
00:32:32  <neo4>we don't have
00:32:34  * hph^joined
00:32:34  * hph^quit (Max SendQ exceeded)
00:32:42  * goodenoughjoined
00:32:54  * hph^joined
00:32:54  * hph^quit (Max SendQ exceeded)
00:32:58  * Forlorn_quit (Quit: leaving)
00:33:12  <emilsedgh>neo4: you need to understand promises. Callbacks are still used a lot but a lot of ecosystem is now using promises. Most people are not writing callbacks anymore.
00:33:15  * Aztec03joined
00:33:17  <emilsedgh>And they are quite similar
00:33:23  <neo4>ljharb: it's do more, you see in Promise.all I got all data, Can I do the same with callback? Seems like now
00:33:34  <neo4>in past I used timer function
00:34:19  <neo4>make delay and then continue doing, but promisses much better, it's exactly show when function finished
00:34:23  <cryptopsy>jaawerth: fs.stat gets all sorts of stats, wouldn't it be slower?
00:34:29  <neo4>I used delay in my parser on phantomejs
00:34:46  <neo4>there we don't know when function return data, now need to rebuild it with promises
00:35:30  * Laptop_miniquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:35:41  <cryptopsy>can i res.render a 404 page on 404 wihout havin to parse paths and check if files exist?
00:35:59  <cryptopsy>to replace the default express 404 message iwth a res.rensder
00:36:23  <neo4>yes, req.redirect('404.php')
00:36:44  <neo4>I don't know, you have to create 404 page, and redirect user there, with header 404
00:36:58  <cryptopsy>where do i put req.redirect?
00:37:00  <neo4>nessessary send header 404
00:37:11  * Mutterjoined
00:37:18  <neo4>res.redirect, might in middlewire
00:37:55  <lord|>neo4: is this project you're doing for learning?
00:37:57  <cryptopsy>neo4: else
00:37:59  <lord|>if so
00:38:00  <cryptopsy>neo4: https://i.imgur.com/lvL4dAq.png
00:38:04  <lord|>I'd recommend making the switch to koajs
00:38:06  <cryptopsy>"else" was a typ
00:38:09  <cryptopsy>o
00:38:25  * bergelinjoined
00:38:30  <lord|>both koajs and expressjs are mature at this point, but koa is way more promise-friendly
00:38:40  <neo4>lord|: for learning, I want to use it in chat
00:39:00  <neo4>lord|: this is my current chat http://american-chat.ru
00:39:21  * deadbeatquit (Ping timeout: 264 seconds)
00:39:43  * Mutterquit (Client Quit)
00:39:52  * dman777quit (Ping timeout: 256 seconds)
00:40:47  * deadbeatjoined
00:41:27  * dman777joined
00:41:33  <neo4>cryptopsy: see, better do this, specify in the very bottom
00:41:34  <neo4>app.get("*", function(req, res) { here your header and page });
00:42:07  <neo4>all other pages will show, in top middlewire and if somebody reach this function you send 404 and show needed page
00:43:40  <cryptopsy>so its oustide the middleware
00:43:40  <dman777>ljharb: ok, thanks
00:43:48  <lord|>18:31 <neo4> guys, normally we cant get data from callback?
00:43:50  <lord|>18:31 <neo4> only promises?
00:43:57  <lord|>well, no, technically you didn't need promises
00:44:18  <lord|>you could have just had a counter that checked that a certain # of callbacks have been called
00:44:38  <lord|>which is a very manual process compared to just a single Promise.all
00:45:04  <neo4>lord|: yes, I've thought about, global counter and in each callback check
00:45:06  * renloquit (Ping timeout: 260 seconds)
00:45:06  <lord|>Promise.all is probably using a counter variable under the hood
00:45:07  <cryptopsy>neo4: its no longer including my css
00:45:09  <neo4>Promisses better
00:45:19  * smccarth_quit (Remote host closed the connection)
00:45:20  <cryptopsy>neo4: and it has an annoying message 'redirecting ...'
00:45:32  * jmdrawneekjoined
00:45:42  <cryptopsy>.get("*", function(req, res) { res.redirect(404, '/404.pug') });
00:45:48  <neo4>cryptopsy: you need to show your html page
00:45:52  * smccarthyjoined
00:45:56  <neo4>cryptopsy: no
00:46:21  <cryptopsy>pages that used to include css no longer include it
00:46:47  <neo4>cryptopsy: get("*", function(req, res) { Here you have to send 404 header and render page, or like you did redirect });
00:47:20  <neo4>cryptopsy: no you must create router for 404, which is url after ridirect, /yorusite/404 ?
00:47:41  * GreenJellojoined
00:47:46  * mezodjoined
00:48:22  <neo4>if yes, create app.get('404', function(req, res) {res.sendFile(__dirname./public/404.html); });
00:48:40  <neo4>you need to create 404 file
00:49:06  <neo4>cryptopsy: I don't know how there it implement on your app
00:50:10  * jmdrawneekquit (Ping timeout: 264 seconds)
00:50:15  * smccarthyquit (Ping timeout: 245 seconds)
00:50:57  <lord|>neo4: yeah it looks like that's exactly what promise.all does under the hood, except it counts down instead of up https://github.com/stefanpenner/es6-promise/blob/master/lib/es6-promise/enumerator.js#L86-L97
00:51:05  <neo4>after you have done you can test 404 anser on facebook or google services or here https://httpstatus.io/
00:51:14  <lord|>it decrements this._remaining every time a promise resolves
00:51:31  <lord|>when this._remaining is 0, it resolves the promise returned from Promise.all()
00:51:44  * goodenoughquit (Read error: Connection reset by peer)
00:52:32  * nodweberjoined
00:52:36  <neo4>lord|: yes, might increment after each promise created and decrement, and then run promise all when zero
00:52:38  * GreenJelloquit (Ping timeout: 276 seconds)
00:53:29  <lord|>that would be quite pointless
00:53:51  <lord|>by the time your counter hits zero, you'll have an array of resolved promises
00:53:57  * smccarthyjoined
00:54:18  <lord|>what I described is what Promise.all actually does under the hood, lol
00:54:31  <lord|>at least, in this particular polyfill for Promise
00:54:35  <cryptopsy>the page it gets redirected to, 404.pug , is no longer including css
00:54:55  <lord|>cryptopsy: sounds like you're using relative paths
00:55:03  <lord|>just use an absolute path for the css
00:55:10  * darkhanbjoined
00:55:28  * Sharaaljoined
00:55:29  <cryptopsy>lord|: its absolute
00:55:34  <cryptopsy> link(href="/css/text.css" rel="stylesheet")
00:55:45  * mizu_no_oto_workquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:55:48  <cryptopsy>which is in head.pug ,which is "include /head" in 404.pug
00:56:03  * macwinn__quit (Remote host closed the connection)
00:56:10  <lord|>if there's a problem loading CSS then it should show up in your browser's console
00:56:20  <lord|>press f12, go to the network tab
00:56:23  <lord|>refresh the page
00:56:37  * goodenoughjoined
00:56:46  * macwinnerjoined
00:57:57  * nodweberquit (Ping timeout: 264 seconds)
00:58:07  <cryptopsy>its breaking includes on valid pages too
00:58:08  <neo4>lord|: what is koajs ?
00:58:19  <cryptopsy>add/removing that line turns this functioanlity on/off
00:58:24  <neo4>https://koajs.com/
00:59:12  <lord|>neo4: it's a more minimal framework than express, but more importantly, it works really nicely with `async`/`await` syntax
00:59:42  <systemfault>It's possible to be more minimal than express?
00:59:47  <systemfault>Express already does NOTHING.
01:00:04  <lord|>so if you wanted to grab something from redis from koajs middleware, it would literally just be `let something = await client.get('keyname');`
01:00:12  * Sharaalquit (Ping timeout: 260 seconds)
01:00:21  <neo4>ok
01:00:48  <lord|>also, in koajs, middleware isn't really middleware
01:00:53  <neo4>lord|: I'm going to do this cookie modul and add there possibilits pass session to php
01:00:55  <cryptopsy>i had to move it under expres-static line and under locals.basedir line
01:00:56  <lord|>it's middleAndAfterware
01:01:05  <cryptopsy>now its the last item before .listen
01:01:06  <neo4>I saw this module not exists in npm
01:01:08  <cryptopsy>and it works
01:01:10  <neo4>my will first
01:01:14  <neo4>:)
01:01:22  <lord|>if you define koajs middleware and have more stuff after `next();`
01:01:35  <lord|>it will actually happen after the next middleware has executed
01:01:51  <neo4>install my modull you will able to use socket.io+php
01:02:03  <neo4>socket.io+redis+php
01:02:55  <neo4>lord|: recently I've seen php framework that is copy of express, the same app. middleware
01:02:56  <lord|>systemfault: express does URL routing, which koa has in a separate package `koa-router`
01:03:06  <lord|>and express comes with static file serving, koa it's a separate middleware
01:03:18  <neo4>might this design popular, if you know one you will know many
01:03:37  <lord|>neo4: yeah I believe a lot of it started with Sinatra
01:03:47  <lord|>a super small web framework for ruby
01:04:06  <neo4>lord|: I'm use wordpress instead php framework
01:04:13  <neo4>:)
01:04:58  * Caspinoljoined
01:05:08  * darkhanbquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
01:05:24  <neo4>this framework looks like express https://silex.symfony.com/
01:05:27  * nomoney4uquit (Ping timeout: 240 seconds)
01:05:59  * nodweberjoined
01:06:03  <neo4>I don't know any php framework :(
01:06:04  <cryptopsy>how can i res.render (404, {variable}) but make variable to be req.url inside that res.render ?
01:06:23  <neo4>this node.js express first, and might others php frameworks the same
01:06:39  * nomoney4ujoined
01:07:06  <neo4>cryptopsy: no, maybe you can't
01:07:15  <neo4>you want to do redirect using javascript?
01:07:30  * spicerackjoined
01:07:48  <cryptopsy>i want to passs req.url as a variable named reqpath to my pug file
01:08:22  * AlexPortablequit (Quit: Connection closed for inactivity)
01:09:13  <lord|>cryptopsy: have you looked at the docs...
01:09:21  * Caspinolquit (Ping timeout: 240 seconds)
01:09:37  <cryptopsy>dont know what to search for
01:09:42  <lord|>https://expressjs.com/en/api.html#res.render
01:09:49  <lord|>the `locals` argument
01:10:10  <lord|>res.render('404page', { url: req.url });
01:10:16  <cryptopsy>thats better ^
01:10:19  <cryptopsy>locals sets it globally
01:10:27  <neo4>cryptopsy: I use handlebars. pug don't know, similar res.render({var1: value, var2: value, var3: value});
01:10:32  * darkhanbjoined
01:10:52  * nodweberquit (Ping timeout: 268 seconds)
01:11:00  <lord|>cryptopsy: there's also res.locals
01:11:12  <lord|>which you might want to set in middleware
01:11:38  <lord|>i.e. after validating someone's session, you set res.locals.username so that the templates display their username
01:11:49  <neo4>confused words, don't know pug*
01:11:51  <neo4>:)
01:11:59  <cryptopsy>lord|: TypeError: Cannot read property 'url' of undefined
01:12:02  <lord|>pug is jade but renamed
01:12:02  <neo4>everybody who not native understood )
01:12:10  <lord|>because someone tried to sue them idk
01:12:12  <lord|>I liked the old name
01:13:10  * stormbytesquit (Ping timeout: 260 seconds)
01:13:12  <cryptopsy>pug got renamed when jade became jade2
01:14:19  <lord|>cryptopsy: where's that error happening, inside of a pugjs template?
01:14:25  * JaredCEjoined
01:14:25  <cryptopsy>its passing the variable i dont know why im getting that
01:14:38  <cryptopsy>lord|: in the middleware res.render('404', { url: req.url.substring(1) } );
01:14:50  <cryptopsy>the page is getting the var
01:15:11  <cryptopsy>reqpath was an object so i changed it to url thinking it might have been a collision
01:16:24  * Cthujoined
01:19:00  * JaredCEquit (Ping timeout: 260 seconds)
01:20:01  * ed209quit (Remote host closed the connection)
01:20:07  * ed209joined
01:20:50  * goodenoughquit (Read error: Connection reset by peer)
01:21:17  <cryptopsy>function f404 (url) { res.render('404', { url } ); }
01:21:23  <cryptopsy>ReferenceError: res is not defined
01:21:31  <cryptopsy>i call it f404(req.url)
01:21:42  <cryptopsy>dont understand why this error
01:22:03  * b7hd6yz01quit (Quit: Konversation terminated!)
01:22:28  <cryptopsy>function is defined above the middleware: s.use(function (req, res, next) {
01:22:33  <jaawerth>req and res are just function arguments that get passed to your middleware/route handlers, they don't magically exist. so if you want to call res.render, you have to pass res to your function
01:22:40  <lord|>^
01:22:54  * bergelinquit (Quit: leaving)
01:23:08  <cryptopsy>function f404 (res, url) { res.render('404', { url } ); }
01:23:10  <cryptopsy>like this?
01:23:43  <cryptopsy>hmm yes
01:23:51  <cryptopsy>still getting that TypeError: Cannot read property 'url' of undefined
01:24:04  * bergelinjoined
01:24:05  <lord|>cryptopsy: that should work just fine...
01:24:10  <lord|>how are you calling f404
01:24:17  * m00dyjoined
01:24:23  <lord|>just pass res and req to the function for ergonomics
01:24:28  <cryptopsy>i had forgottne to comment out the lines below it
01:24:33  <cryptopsy>it works :D
01:24:36  <lord|>neato
01:24:54  <cryptopsy>still, my initial intent was for those lines to work, but this is better
01:25:47  * goodenoughjoined
01:26:03  <cryptopsy>are there any methods for parsing a url to tell if its a folder? for example, ending in / is a folder, but also all url not ending in / that dont hav an extension are also probably folders
01:26:37  <cryptopsy>parsing the string is probably faster than calling fstat, or at least more cpu efficient
01:26:45  * nodweberjoined
01:26:54  <cryptopsy>i just need to know if its a dir so i can res.render index.pug in that dir
01:26:57  * starz0rjoined
01:27:07  * LudusLightquit (Quit: LudusLight)
01:27:38  <cryptopsy>function name cannot be just a number ... interesting
01:28:15  <jaawerth>I would either use fs.stat or pre-load the dirs accessible from your static/public dir in memory so you can do a quick lookup
01:28:29  * LudusLightjoined
01:28:46  <jaawerth>probably I would write a wrapper so you could start with fs.stat and optimize later by preloading
01:29:13  <cryptopsy>its like, i add 1 feature and next thing i'm refactoring code all ovre again
01:29:17  * m00dyquit (Ping timeout: 256 seconds)
01:29:42  * sysragequit (Quit: Computer has gone to sleep.)
01:29:51  * starz0rquit (Client Quit)
01:30:11  <jaawerth>that's why I'd write a wrapper function. don't worry about optimizing until after you have it working
01:30:57  * starz0rjoined
01:31:04  <cryptopsy>everyone's using filesys calls
01:31:20  * leviyatanjoined
01:31:44  * nodweberquit (Ping timeout: 265 seconds)
01:32:09  <lord|>19:26 <cryptopsy> are there any methods for parsing a url to tell if its a folder? for example, ending in / is a folder, but also all url not ending in / that dont
01:32:13  <lord|>sounds like an XY problem
01:32:22  <lord|>are you sure you don't just need res.baseUrl
01:32:37  <lord|>req*
01:32:53  * Cthu_joined
01:33:03  <jaawerth>that's a good point. why do you need to check folders if you aren't serving static files?
01:33:40  * Cthuquit (Read error: Connection reset by peer)
01:33:41  * Caspinoljoined
01:35:03  <cryptopsy>baseUrl always return a dir, i need to server an index.pug only when a dir is req.url
01:35:12  <cryptopsy>when a file is req.url, then i serve file.pug
01:36:01  * chalker_quit (Ping timeout: 248 seconds)
01:36:03  * doodadjsquit (Quit: Leaving)
01:36:22  <cryptopsy>i havent had his much fun since first programming triggres in starcraft custom maps 20 years ago
01:37:32  * lord|quit (Quit: WeeChat 2.1)
01:37:41  <x7C3>what are some good linting presets i can use that doesn't conflict with prettier?
01:38:00  * lord|joined
01:38:05  * Caspinolquit (Ping timeout: 240 seconds)
01:38:10  <cryptopsy>which linter?
01:38:58  <cryptopsy>i have perfectly working 404 pages now :P
01:39:00  <cryptopsy>i mean
01:39:02  <cryptopsy>:O
01:39:14  <x7C3>eslint
01:40:00  <cryptopsy>what can you do with 404 pages? throw recommended pages, something like this? acquire data? push adds?
01:40:05  * nodweberjoined
01:40:05  * OmkARjoined
01:40:19  * InFlamesjoined
01:40:33  * darkSeidjoined
01:40:53  * chalker_joined
01:41:16  <lord|>cryptopsy: anything but redirect the page automatically :)
01:41:30  <lord|>but yeah no
01:41:37  <lord|>I don't think users want much from a 404 page
01:41:42  <lord|>except for your site to work in the first place
01:41:55  <lord|>keep your URLs backwards compat and all that snazz
01:42:09  <cryptopsy>maybe throw up a notification when the last time that file was on the folder, or if it has been renamed
01:42:31  <cryptopsy>i would like to throw up a porn pic on 404 to sympatize w/ the user's frustration
01:42:38  <cryptopsy>or internet cat if you prefer
01:42:39  <lord|>if a permalink changes, 301 redirect
01:42:54  <cryptopsy>how does it know if a permalink has changed?
01:43:11  <lord|>well, preferably that's something you, the developer, keep track of
01:43:32  <lord|>reddit for example has had forwards compatible links from the very beginning
01:43:37  <cryptopsy>in sql?
01:43:44  * kakashiA1joined
01:43:48  <cryptopsy>what is a forward compatible link?
01:43:49  <lord|>the first permalink format they used still works properly
01:44:00  <lord|>and properly redirects to the modern locations
01:44:44  <cryptopsy>lets say i wanted to log the request file in green, but the includes it then goes to GET in another color, how would i do that?
01:45:02  * nodweberquit (Ping timeout: 256 seconds)
01:45:29  <lord|>no clue what you mean lol
01:46:25  <cryptopsy>if i req.url page.html
01:46:35  <cryptopsy>thats the requested file
01:46:44  <cryptopsy>but then it goes to GET whatever stuff is included, like css
01:46:53  <cryptopsy>so i want to tell those two GET's apart
01:47:14  <cryptopsy>here's an example:
01:47:15  * kakashiALquit (Ping timeout: 268 seconds)
01:47:17  <cryptopsy>https://i.imgur.com/O2KdEII.png
01:47:26  <cryptopsy>bugs.html was the request.url, everything else is from include
01:47:38  <lord|>not sure why your logs matter that much
01:47:47  <lord|>you can always grep them later instead of filter them now
01:47:47  <cryptopsy>for fun
01:47:59  <cryptopsy>its console.log stuff
01:48:18  <cryptopsy>because in interesed which user makes which request
01:48:27  <cryptopsy>and i dont want it to get confused by the includes
01:48:31  <cryptopsy>because i'm*
01:48:35  <lord|>so like
01:48:43  <lord|>deactivate `morgan` when it's a static content
01:48:56  <lord|>or when the mimetype is css or js?
01:49:00  * OmkARpart
01:49:04  * OmkARjoined
01:49:13  <cryptopsy>maybe the users tries to request a css or js directly
01:49:36  <cryptopsy>maybe there's a .url
01:49:52  <cryptopsy>i remember seeing something slightly different to req.url
01:50:42  <cryptopsy>perhaps req.originalUrl
01:51:46  <lord|>originalUrl is for when you're doing url rewrites usually
01:53:05  * SenasOzysquit (Ping timeout: 255 seconds)
01:54:18  * SrPxquit (Remote host closed the connection)
01:54:51  * horseyjoined
01:55:55  <lord|>cryptopsy: !['.js', '.css'].includes(path.parse('/something/something.js'))
01:56:05  <lord|>oops
01:56:07  <lord|>cryptopsy: !['.js', '.css'].includes(path.parse('/something/something.js').ext)
01:56:23  <lord|>n> path.parse('/something/something.js')
01:56:25  <jellobot>(okay) undefined:1 path.parse('/something/something.js') ^ ReferenceError: path is not defined at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/load ...
01:56:28  * spicerackquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
01:56:36  <lord|>n> JSON.stringify(require('path').parse('/something/something.js'))
01:56:38  <jellobot>(okay) '{"root":"/","dir":"/something","base":"something.js","ext":".js","name":"something"}'
01:56:45  * disordleroyquit (Ping timeout: 264 seconds)
01:58:00  <cryptopsy>does .extname return 0 if theres no extension?
01:58:03  <cryptopsy>or undefined
01:58:58  <lord|>it's all documented lol
01:59:00  <lord|>https://nodejs.org/docs/latest/api/path.html#path_path_extname_path
01:59:02  <lord|>returns ''
01:59:12  <cryptopsy>i thought extname was part of js not nodejs
01:59:35  * horseyquit (Ping timeout: 276 seconds)
02:00:19  * theWhisper_joined
02:00:43  * goodenoughquit (Read error: Connection reset by peer)
02:01:37  * CaribGuyquit (Quit: No Ping reply in 180 seconds.)
02:02:43  * CaribGuyjoined
02:05:41  * pdubjoined
02:05:43  * IanLiujoined
02:06:11  * Slyda1quit (Ping timeout: 276 seconds)
02:06:45  * Slyda1joined
02:07:38  * Mattiaslndstrmquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
02:07:47  <cryptopsy>extname solved that question about detecting if a path is a dir or not
02:07:48  * Sharaaljoined
02:08:13  * tridnguyenquit (Quit: ZNC - http://znc.in)
02:08:18  <cryptopsy>previously i was using if (req.url.endsWith('/') )
02:08:38  <cryptopsy>is path.* stuff slow?
02:10:14  * goodenoughjoined
02:12:17  * Sharaalquit (Ping timeout: 245 seconds)
02:13:14  * tridnguyenjoined
02:13:50  * Lynxiumjoined
02:13:51  * chalker_quit (Ping timeout: 260 seconds)
02:14:20  * chalker_joined
02:14:37  <cryptopsy>does morgan do color logging?
02:15:10  * bdunavantjoined
02:15:58  * brosjoined
02:16:09  <bros>https://github.com/brandonros/distribute/tree/master/example Can somebody tell me if they see any inherent flaws in this?
02:18:46  <cryptopsy>lord|: regarding those includes, they're 304s
02:19:00  * LiftLeftquit (Ping timeout: 245 seconds)
02:19:23  <cryptopsy>ah wait, the original file get is 304 too
02:21:21  * nodweberjoined
02:22:03  <cryptopsy>npm i npm says npm was updated to [email protected] but npm version still shows { npm: '5.6.0',
02:23:11  <cryptopsy>morgan is cute, ... but pretty crappy
02:23:40  * sz0quit (Quit: Connection closed for inactivity)
02:24:03  * Caspinoljoined
02:24:51  <cryptopsy>can i generate package.json based on a server.js's require()? automatically?
02:24:56  * darkhanbquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
02:25:29  * m00dyjoined
02:25:51  <cryptopsy>ah, npm init can
02:26:09  * nodweberquit (Ping timeout: 248 seconds)
02:27:14  * orbyt_joined
02:28:02  <cryptopsy>why does npm init pull morgan in? i dont have that in my file
02:28:17  * Caspinolquit (Ping timeout: 248 seconds)
02:28:29  * nelsnelsonjoined
02:29:54  * bdunavantquit (Remote host closed the connection)
02:30:35  * m00dyquit (Ping timeout: 240 seconds)
02:30:45  * GreenJellojoined
02:31:02  * disordleroyjoined
02:31:29  * theWhisper_quit (Ping timeout: 248 seconds)
02:31:41  * LiftLeftjoined
02:31:42  * OmkARpart
02:31:53  <bros>@GreenJello https://github.com/brandonros/distribute/tree/master/example Can somebody tell me if they see any inherent flaws in this?
02:32:10  * tmquit (Ping timeout: 264 seconds)
02:32:39  * OmkARjoined
02:34:32  * patlvjoined
02:35:14  * GreenJelloquit (Ping timeout: 260 seconds)
02:35:25  * tmjoined
02:35:39  * cryptopsyquit (Quit: WeeChat 2.1)
02:36:00  * goodenoughquit (Read error: Connection reset by peer)
02:36:02  * din0joined
02:36:36  * goodenoughjoined
02:36:52  <x7C3>hrm, i'm wanting to drop bluebird as a dependency for a lib, any examples on running Promise.all([...]) with concurrency?
02:36:52  * dino82quit (Ping timeout: 245 seconds)
02:37:36  * RLaquit (Quit: Leaving)
02:41:27  * Aquaziquit (Quit: Leaving)
02:44:37  * mizu_no_oto_workjoined
02:47:37  * Slyda1quit (Ping timeout: 265 seconds)
02:47:56  * patlvquit (Ping timeout: 256 seconds)
02:48:04  * Slyda1joined
02:48:26  * hdonquit (Ping timeout: 255 seconds)
02:49:09  * glijoined
02:51:23  * plutoniixjoined
02:52:38  * braapjoined
02:53:16  * goodenoughquit (Read error: Connection reset by peer)
02:53:24  * danecandojoined
02:53:43  * LudusLightquit (Read error: Connection reset by peer)
02:53:43  * BD64quit (Read error: Connection reset by peer)
02:53:43  * kjartanquit (Read error: Connection reset by peer)
02:54:00  * BD64Brandonjoined
02:54:01  * LudusLightjoined
02:54:11  * mizu_no_oto_workquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
02:54:12  * ffx_joined
02:55:49  * kjartanjoined
02:56:37  * stormbytesjoined
02:57:35  * ffxquit (Ping timeout: 260 seconds)
02:57:43  * ne018joined
02:58:10  * mizu_no_oto_workjoined
02:59:19  * nodweberjoined
02:59:33  * u0m3_joined
03:00:57  * u0m3quit (Ping timeout: 240 seconds)
03:02:17  * darkhanbjoined
03:02:27  * goodenoughjoined
03:03:19  * LudusLightquit (Remote host closed the connection)
03:03:19  * BD64Brandonquit (Remote host closed the connection)
03:03:37  * BD64Brandonjoined
03:03:38  * LudusLightjoined
03:03:57  * nodweberquit (Ping timeout: 264 seconds)
03:04:34  * Cthujoined
03:05:06  * Cthu_quit (Read error: Connection reset by peer)
03:05:36  * braincrashquit (Quit: bye bye)
03:09:00  * \mSg_minijoined
03:09:05  * bdunavantjoined
03:09:41  * braincrashjoined
03:10:39  <earendel>003.300
03:11:27  * \mSgquit (Ping timeout: 245 seconds)
03:11:27  * \mSg_minichanged nick to \mSg
03:13:19  * eckhardtjoined
03:13:35  * Renarijoined
03:14:21  * bdunavantquit (Remote host closed the connection)
03:14:38  * darkhanbquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
03:19:33  * darkSeidquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
03:20:05  * nodweberjoined
03:20:44  * brosquit (Ping timeout: 260 seconds)
03:21:52  * mizu_no_oto_workquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
03:21:56  * kingarmadilloquit (Ping timeout: 256 seconds)
03:22:18  * goodenoughquit (Read error: Connection reset by peer)
03:24:55  * Sharaaljoined
03:24:55  * GreenJellojoined
03:24:58  * nodweberquit (Ping timeout: 264 seconds)
03:25:03  * goodenoughjoined
03:25:29  * Cthuquit (Read error: Connection reset by peer)
03:25:34  * kingarmadillojoined
03:25:58  * Roughyquit (Quit: Meadow Fresh milk)
03:26:05  * Cthujoined
03:26:53  * m00dyjoined
03:26:58  <jaawerth>x7C3: this is my concurrency-supporting Promise.map https://gist.github.com/jaawerth/291a998094b2c813326dcae9c698143a
03:27:08  <jaawerth>x7C3: there are also existing modules out there like p-map and p-map-series
03:27:58  * eckhardtquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
03:29:03  <jaawerth>and with that, I sleep
03:29:44  * Sharaalquit (Ping timeout: 256 seconds)
03:29:56  * GreenJelloquit (Ping timeout: 276 seconds)
03:31:45  * m00dyquit (Ping timeout: 248 seconds)
03:34:25  * Cthu_joined
03:37:50  * Cthuquit (Ping timeout: 260 seconds)
03:37:58  * Caspinoljoined
03:37:59  * hdonjoined
03:39:08  * goodenoughquit (Read error: Connection reset by peer)
03:39:14  * danecandoquit (Quit: My MacBook Air has gone to sleep. ZZZzzz…)
03:40:15  * Cthujoined
03:40:22  <x7C3>huh neat
03:40:24  <x7C3>thanks jaawerth
03:40:55  * nodweberjoined
03:40:57  * Cthu_quit (Ping timeout: 240 seconds)
03:42:05  * Caspinolquit (Ping timeout: 240 seconds)
03:42:05  * Bendrquit (Ping timeout: 240 seconds)
03:42:42  * McNugitjoined
03:46:16  * nodweberquit (Ping timeout: 268 seconds)
03:46:20  * McNugitquit (Client Quit)
03:48:17  * goodenoughjoined
03:48:41  * hdonquit (Ping timeout: 256 seconds)
03:50:48  * hdonjoined
03:52:49  * pdubquit (Remote host closed the connection)
03:54:39  * pdubjoined
03:55:20  * kingarmadilloquit (Ping timeout: 260 seconds)
03:58:29  * Guest30000quit (Remote host closed the connection)
03:59:54  * goodenoughquit (Read error: Connection reset by peer)
04:00:48  * namll`joined
04:00:53  * cthulchu_joined
04:00:58  * hdonquit (Ping timeout: 264 seconds)
04:01:31  * hdonjoined
04:01:34  * fas3rquit (Ping timeout: 260 seconds)
04:01:46  * nodweberjoined
04:04:05  * cthulchuquit (Ping timeout: 260 seconds)
04:04:06  * namllquit (Ping timeout: 260 seconds)
04:04:28  * Aztec03quit (Ping timeout: 265 seconds)
04:05:01  * marthinaljoined
04:07:00  * nodweberquit (Ping timeout: 276 seconds)
04:09:57  * MrAbaddonquit (Ping timeout: 240 seconds)
04:10:14  * marthinalquit (Ping timeout: 276 seconds)
04:17:17  * mrBen2k2k2kquit (Remote host closed the connection)
04:17:39  * goodenoughjoined
04:18:09  * pdubquit (Remote host closed the connection)
04:19:00  * GreenJellojoined
04:20:54  * IanLiuquit (Quit: IanLiu)
04:21:28  * keepLearning512joined
04:21:41  * jmdrawneekjoined
04:22:18  * MrAbaddonjoined
04:22:46  * nodweberjoined
04:23:30  * GreenJelloquit (Ping timeout: 260 seconds)
04:24:55  * asteelejoined
04:25:33  * tsglovequit (Read error: Connection reset by peer)
04:26:19  * tsglovejoined
04:26:49  * al-damiriquit (Quit: Connection closed for inactivity)
04:27:27  * nodweberquit (Ping timeout: 240 seconds)
04:27:46  * eckhardtjoined
04:28:07  * m00dyjoined
04:28:31  * goodenoughquit (Read error: Connection reset by peer)
04:28:49  * supernov1hquit (Ping timeout: 248 seconds)
04:29:17  * goodenoughjoined
04:29:28  * Sharaaljoined
04:31:13  * xkapastelquit (Quit: Connection closed for inactivity)
04:31:17  * jmdrawneekquit (Ping timeout: 268 seconds)
04:32:19  * eckhardtquit (Ping timeout: 256 seconds)
04:32:34  * keepLearning512quit (Remote host closed the connection)
04:33:16  * m00dyquit (Ping timeout: 260 seconds)
04:33:35  * Sharaalquit (Ping timeout: 245 seconds)
04:35:41  * sauvinjoined
04:40:53  * goodenoughquit (Read error: Connection reset by peer)
04:42:43  * dman777quit (Quit: Lost terminal)
04:43:37  * nodweberjoined
04:45:06  * Caspinoljoined
04:48:33  * nodweberquit (Ping timeout: 248 seconds)
04:49:16  <neo4>on freelancer I almost got first node.js work 400$ rebuild chat, but seems I scare employ said that I have 2 months experience with node.js :(
04:49:33  <neo4>I will say that I have 3 years
04:49:37  * Caspinolquit (Ping timeout: 248 seconds)
04:49:41  * marthinaljoined
04:50:04  * goodenoughjoined
04:50:14  <neo4>I've been working with node.js for 3 years, It was silly of me to tell truth :( :( :(
04:50:35  <neo4>rebuild site*
04:50:37  <neo4>not chat
04:50:45  <neo4>there internet shop
04:50:48  * led_ir22quit (Quit: led_ir22)
04:51:06  * howdoijoined
04:51:34  <neo4>work relate to node.js easer get than php
04:51:48  * smccarthyquit (Remote host closed the connection)
04:52:02  <neo4>less competitor, only there requires always skillful from from at least 3 years experience
04:52:25  * smccarthyjoined
04:52:44  <neo4>in general people dont know about you anything, and you can say whatever you want, I will say I have 4 years experience with node.js or 5
04:53:58  * kingarmadillojoined
04:54:08  <neo4>guys, if you say somebody that you have only 2 months experience, nobody will hire you
04:54:49  <neo4>yes, that guy disappeared only I wrote him about 2 months
04:55:42  <neo4>I sure next will do the same, right to say 3 years experience and I am very skillful, now many frameworks etc, and ask about prepay 10%
04:55:46  <neo4>10 or 20%
04:55:52  <neo4>This is right way
04:56:19  <neo4>if client leave you you will have some money and will not spend time in wain
04:57:00  * smccarthyquit (Ping timeout: 256 seconds)
04:57:07  <neo4>Need to use this approach to work. "I know everything", "I'm very experienced developer", "I can do everything", "prepare prepay!"
04:57:18  <neo4>and you have to be serious
04:57:33  <neo4>it will make good expression
04:58:13  <neo4>the more you will praise yourself the more clients will pay you, and opposite less.
04:58:40  <neo4>if you don't know something, don't say about, be confident
04:58:56  <neo4>say yes, it's simple thing
04:59:09  <neo4>yes, I know.
04:59:31  * kingarmadilloquit (Ping timeout: 256 seconds)
04:59:33  <neo4>my first client disappeared, because I do errors in speak :(
05:00:02  <neo4>need to create strict plan what to say and what never to say
05:00:58  * supernov1hjoined
05:01:04  * goodenoughquit (Read error: Connection reset by peer)
05:01:37  * goodenoughjoined
05:02:35  * liondancerquit (Ping timeout: 240 seconds)
05:04:06  * MrAbaddonquit (Ping timeout: 260 seconds)
05:04:32  * nodweberjoined
05:05:15  * supernov1hquit (Ping timeout: 245 seconds)
05:06:30  * kakashiA1quit (Ping timeout: 260 seconds)
05:07:45  <neo4>guys what to say clients?
05:07:59  <neo4>if they ask about have you experience with something?
05:08:14  <neo4>somethign like with AWS? or with some framework?
05:08:42  <neo4>What shall we say for not scaring employee?
05:08:56  * Slyda1quit (Read error: Connection reset by peer)
05:09:15  * Slyda1joined
05:09:43  * nodweberquit (Ping timeout: 265 seconds)
05:10:01  * lilhercquit (K-Lined)
05:10:18  * lilhercjoined
05:10:53  * gloomyjoined
05:12:53  * liondancerjoined
05:13:13  * GreenJellojoined
05:15:49  * mr_louquit (Remote host closed the connection)
05:16:02  * hdonquit (Ping timeout: 245 seconds)
05:17:50  * GreenJelloquit (Ping timeout: 255 seconds)
05:19:27  * MrAbaddonjoined
05:20:21  * orbyt_quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
05:22:36  * sliktsquit (Remote host closed the connection)
05:22:53  * goodenoughquit (Read error: Connection reset by peer)
05:23:08  * darkSeidjoined
05:23:11  * CaribGuyquit (Remote host closed the connection)
05:24:35  * goodenoughjoined
05:26:22  * take_flightjoined
05:26:24  * Avinashjoined
05:27:06  * lpinjoined
05:27:16  * SenasOzysjoined
05:27:25  * supernov1hjoined
05:28:25  * pnepe6joined
05:29:15  * m00dyjoined
05:30:05  * Caspinoljoined
05:31:39  * darkSeidquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
05:31:45  * gloomyquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
05:32:43  * fnuttjoined
05:32:47  * supernov1hquit (Ping timeout: 276 seconds)
05:33:05  <fnutt>How do I update Node.js on Ubuntu?
05:33:10  <fnutt>curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
05:33:16  <fnutt>sudo apt-get install -y nodejs
05:33:22  <fnutt>Those two does not work. :/
05:33:27  <fnutt>https://hastebin.com/fuxoruxibi
05:34:44  * m00dyquit (Ping timeout: 276 seconds)
05:34:54  * grr12314quit (Ping timeout: 260 seconds)
05:34:57  * Caspinolquit (Ping timeout: 260 seconds)
05:35:57  * grr12314joined
05:36:54  * bsaboiajoined
05:38:35  * Sharaaljoined
05:40:10  * ch007m_2joined
05:40:41  * goodenoughquit (Read error: Connection reset by peer)
05:42:40  * MrAbaddonquit (Ping timeout: 260 seconds)
05:42:41  * ch007mquit (Ping timeout: 260 seconds)
05:42:58  * nodweberjoined
05:43:02  * LudusLightquit (Quit: LudusLight)
05:43:33  * mihaelejoined
05:43:50  * LudusLightjoined
05:45:10  * Sharaalquit (Ping timeout: 260 seconds)
05:47:31  * keepLearning512joined
05:47:45  * nodweberquit (Ping timeout: 268 seconds)
05:48:49  * ffx_quit (Quit: Leaving...)
05:49:54  * goodenoughjoined
05:52:38  <geirha>fnutt: you're using an ubuntu release that is no longer supported. And the packages for that release has probably just been removed from the main repos
05:53:27  * Kalpatitoojoined
05:53:52  <fnutt>Found that out. Also found out it's "#¤&"#/)=!T&"#! to update to newer Ubuntu. But 'do-release-upgrade' is doing something, even though all the other 'sudo apt-get' commands failed, as multiple websites told me to run first.
05:54:14  <fnutt>17.04.... It's one year and 2 months ago it was released.
05:54:25  <fnutt>Had no idea this would give me such an issue.
05:56:32  <saul>https://stackoverflow.com/questions/27096587/node-js-chai-mocha-should-running-multiple-tests-against-the-same-response
05:56:39  * horseyjoined
05:56:40  <saul>i'm having the same problem
05:56:49  * gloomyjoined
05:56:54  <geirha>fnutt: regular releases are only supported for 9 months, Consider sticking with LTS, which are supported for 5 years
05:57:07  <fnutt>Too Many Requests - Stack Exchange
05:57:11  <saul>wanna do multiple tests on the same http response
05:57:28  * MrAbaddonjoined
05:57:53  * marlunpart ("WeeChat 2.0.1")
05:58:15  * Cthuquit (Read error: Connection reset by peer)
05:58:34  * Cthujoined
06:00:17  <fnutt>geirha: If I ever get this 17.04 updated to 18.04, then I'll stick with the LTE.
06:00:33  <fnutt>LTS*
06:01:05  * horseyquit (Ping timeout: 240 seconds)
06:03:50  * nodweberjoined
06:04:59  * neo4quit (Quit: neo4)
06:06:30  * neo4joined
06:07:39  * goodenoughquit (Read error: Connection reset by peer)
06:08:39  * nodweberquit (Ping timeout: 256 seconds)
06:09:22  * goodenoughjoined
06:13:01  * ch007m_2quit (Remote host closed the connection)
06:13:35  * ch007mjoined
06:16:19  * Limarsonjoined
06:17:13  * Keanu73joined
06:20:35  * jmdrawneekjoined
06:21:51  * CoolerZquit (Quit: Leaving)
06:22:43  * Avinashquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
06:23:14  * Avinashjoined
06:23:28  * supernov1hjoined
06:24:46  * nodweberjoined
06:24:48  * goodenoughquit (Read error: Connection reset by peer)
06:25:07  * jmdrawneekquit (Ping timeout: 265 seconds)
06:25:22  * Jetimonjoined
06:25:43  * groomjoined
06:27:26  * Avinashquit (Client Quit)
06:29:21  * nodweberquit (Ping timeout: 248 seconds)
06:29:45  * goodenoughjoined
06:30:21  * Cthuquit (Ping timeout: 240 seconds)
06:30:23  * m00dyjoined
06:32:09  * kevireillyjoined
06:33:58  * dineshnagarjoined
06:34:03  * duderonomyquit (Quit: Textual IRC Client: www.textualapp.com)
06:35:24  * kbckjoined
06:35:36  * m00dyquit (Ping timeout: 256 seconds)
06:37:58  * mihaelequit (Quit: My MacBook has gone to sleep. ZZZzzz…)
06:38:15  * kevinburkequit (Quit: Connection closed for inactivity)
06:38:27  * mihaelejoined
06:38:34  * mihaelequit (Client Quit)
06:38:34  * dineshnagarquit (Client Quit)
06:39:07  * mihaelejoined
06:39:22  * mihaelequit (Client Quit)
06:39:44  * mihaelejoined
06:40:09  * mihaelequit (Client Quit)
06:40:40  * mihaelejoined
06:40:56  * mihaelequit (Client Quit)
06:41:35  * mihaelejoined
06:41:44  * mihaelequit (Client Quit)
06:42:19  * mihaelejoined
06:42:32  * goodenoughquit (Read error: Connection reset by peer)
06:42:32  * mihaelequit (Client Quit)
06:43:04  * mihaelejoined
06:43:20  * mihaelequit (Client Quit)
06:43:22  * Caspinoljoined
06:43:54  * mihaelejoined
06:44:07  * mihaelequit (Client Quit)
06:44:42  * mihaelejoined
06:44:55  * mihaelequit (Client Quit)
06:45:37  * nodweberjoined
06:47:44  * take_flightquit (Remote host closed the connection)
06:47:45  * Caspinolquit (Ping timeout: 256 seconds)
06:50:28  * nodweberquit (Ping timeout: 256 seconds)
06:51:41  * goodenoughjoined
06:52:32  * darutokojoined
06:52:38  * SenasOzysquit (Remote host closed the connection)
06:53:12  * SenasOzysjoined
06:55:12  * kingarmadillojoined
06:57:55  * m1m3-50joined
06:59:55  * Keanu73quit (Read error: Connection reset by peer)
07:00:05  * kingarmadilloquit (Ping timeout: 240 seconds)
07:00:14  * neonpastorquit (Quit: ZNC 1.6.1 - http://znc.in)
07:00:50  * SenasOzysquit (Ping timeout: 260 seconds)
07:01:24  * GreenJellojoined
07:01:36  * neonpastorjoined
07:02:14  * earendelquit (Ping timeout: 256 seconds)
07:02:43  * rezettajoined
07:03:38  <neo4>How to bee a good freelancer https://kselax.ru/en/how-to-be-good-freelancer/
07:03:43  <fnutt>How to be a good freelancer
07:03:43  * kjartanquit (Read error: Connection reset by peer)
07:03:48  * kevireillyquit (Quit: kevireilly)
07:06:09  * kjartanjoined
07:06:23  * GreenJelloquit (Ping timeout: 276 seconds)
07:06:31  * nodweberjoined
07:06:41  * Alina-malinaquit (Ping timeout: 260 seconds)
07:07:47  * liondanc_joined
07:08:08  * goodenoughquit (Read error: Connection reset by peer)
07:08:51  * ne018quit (Ping timeout: 240 seconds)
07:08:59  * ne018joined
07:09:19  * goodenoughjoined
07:11:26  * liondancerquit (Ping timeout: 256 seconds)
07:11:29  * nodweberquit (Ping timeout: 248 seconds)
07:13:27  * kevireillyjoined
07:13:28  * mr_loujoined
07:14:05  * rxmthquit (Ping timeout: 240 seconds)
07:15:12  * tymczenkojoined
07:15:38  * m1m3-50quit (Remote host closed the connection)
07:18:11  * InFlamesquit (Quit: Konversation terminated!)
07:18:17  * vasujoined
07:18:21  * InFlamesjoined
07:19:18  * vasuquit (Client Quit)
07:20:19  * kevireillyquit (Quit: kevireilly)
07:20:23  * puddlejoined
07:23:57  * ne018quit (Read error: Connection reset by peer)
07:24:23  * ne018joined
07:25:41  * ne018quit (Read error: Connection reset by peer)
07:26:43  * ne018joined
07:27:27  * nodweberjoined
07:28:51  * GreenJellojoined
07:30:43  * jjidojoined
07:31:29  * m00dyjoined
07:32:16  * nodweberquit (Ping timeout: 256 seconds)
07:33:04  * jmdrawneekjoined
07:33:18  * jmdrawneekquit (Read error: Connection reset by peer)
07:33:26  * jmdrawneekjoined
07:33:55  * ams__joined
07:34:16  * mr_louquit (Remote host closed the connection)
07:35:03  * rendarjoined
07:35:33  * jjidoquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
07:36:26  * zumba_addictquit (Read error: Connection reset by peer)
07:36:26  * m00dyquit (Ping timeout: 255 seconds)
07:37:38  * ekmartinquit (Ping timeout: 260 seconds)
07:37:38  * techietrashquit (Ping timeout: 260 seconds)
07:38:06  * rubillquit (Ping timeout: 260 seconds)
07:38:06  * geirhaquit (Ping timeout: 260 seconds)
07:38:40  * ne018quit (Read error: Connection reset by peer)
07:38:47  * ne018_joined
07:38:56  * goodenoughquit (Read error: Connection reset by peer)
07:39:04  * smccarthyjoined
07:40:49  * rubilljoined
07:41:27  * supernov1hquit (Read error: Connection reset by peer)
07:41:52  * ne018_quit (Read error: Connection reset by peer)
07:42:29  * ne018joined
07:42:34  * techietrashjoined
07:43:07  * smccarthyquit (Ping timeout: 245 seconds)
07:43:33  * ext0joined
07:43:33  * ext0quit (Changing host)
07:43:33  * ext0joined
07:43:35  * ext0changed nick to pry
07:43:46  * dre_joined
07:44:55  * Venemojoined
07:45:46  * ekmartinjoined
07:47:38  * pryquit (Max SendQ exceeded)
07:48:08  * Sharaaljoined
07:48:15  * goodenoughjoined
07:48:21  * nodweberjoined
07:49:46  * geirhajoined
07:53:20  * nodweberquit (Ping timeout: 260 seconds)
07:53:46  * kingarmadillojoined
07:54:44  * camilasanjoined
07:57:17  * TheMadcapperquit (Ping timeout: 245 seconds)
07:57:20  * tristonjoined
07:57:20  * tristonquit (Max SendQ exceeded)
07:57:25  * horseyjoined
07:58:27  * kingarmadilloquit (Ping timeout: 240 seconds)
08:00:32  * goodenoughquit (Read error: Connection reset by peer)
08:00:44  * MrAbaddonquit (Remote host closed the connection)
08:01:37  * horseyquit (Ping timeout: 248 seconds)
08:03:56  * dodobrainquit (Quit: Leaving)
08:06:53  * mr_loujoined
08:07:51  * ecmabotquit (Ping timeout: 256 seconds)
08:08:15  * ecmabotjoined
08:09:13  * nodweberjoined
08:09:34  * ecmabotquit (Client Quit)
08:09:46  * goodenoughjoined
08:09:56  * ecmabotjoined
08:10:40  * toijoined
08:10:46  * DukeDrakejoined
08:11:28  * DukeDrake_mobjoined
08:14:03  * stormbytesquit (Quit: My Mac Mini has gone to sleep. ZZZzzz…)
08:14:31  * nodweberquit (Ping timeout: 268 seconds)
08:15:19  * DukeDrakequit (Ping timeout: 265 seconds)
08:18:32  * m00dyjoined
08:20:42  * toiquit (Ping timeout: 268 seconds)
08:22:04  * Caspinoljoined
08:26:20  * goodenoughquit (Read error: Connection reset by peer)
08:27:06  * liondanc_quit (Remote host closed the connection)
08:28:06  * Sharaalquit (Remote host closed the connection)
08:30:15  * Sharaaljoined
08:31:15  * goodenoughjoined
08:34:30  * d10n-workquit (Quit: Connection closed for inactivity)
08:35:57  * ahmedelgabrijoined
08:36:07  * ahmedelgabriquit (Client Quit)
08:36:29  * philzzjoined
08:37:05  * jottrjoined
08:37:29  * ahmedelgabrijoined
08:38:17  * Lynxium[]joined
08:40:00  * Kalpatitooquit (Ping timeout: 260 seconds)
08:41:16  * jottrquit (Client Quit)
08:41:41  * Avinashjoined
08:42:15  * DukeDrake_mobquit (Quit: Leaving)
08:42:22  * Lynxiumquit (Ping timeout: 264 seconds)
08:42:35  * DukeDrakejoined
08:43:23  * goodenoughquit (Read error: Connection reset by peer)
08:46:44  * supernovahjoined
08:47:24  * gregf_quit (Ping timeout: 260 seconds)
08:47:42  * toijoined
08:47:56  <supernovah>Anyone know if it's possible to use the sqlite3 module with a database loaded into a Buffer
08:48:03  * Venemoquit (Quit: Communi 3.5.0 - http://communi.github.com)
08:48:09  * Avinashquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
08:48:10  * Stevermanjoined
08:48:35  * nodweberjoined
08:48:51  * Venemojoined
08:49:52  <joepie91>supernovah: not sure, but I doubt it - afaik the entire DB handling routine exists in the native module part and doesn't talk back to Node
08:50:21  * Kalpatitoojoined
08:51:07  * Avinashjoined
08:51:11  <supernovah>Damn because I need to encrypt a database and load it on a per-user basis
08:52:34  * goodenoughjoined
08:53:23  * nodweberquit (Ping timeout: 255 seconds)
08:53:33  * dre_quit (Remote host closed the connection)
08:53:47  * kingarmadillojoined
08:58:21  * kingarmadilloquit (Ping timeout: 240 seconds)
08:59:59  * Avinashquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:00:04  * pkoldjoined
09:03:16  <joepie91>supernovah: can you explain more about your usecase?
09:04:00  * pkoldquit (Quit: 离开)
09:04:10  <supernovah>no
09:04:25  * earendeljoined
09:04:28  * jmdrawneekquit (Remote host closed the connection)
09:04:35  <supernovah>Hey what's the deal with npm telling me about packages with vulnerabilities and what versions those are patched in, but having the latest versions already?
09:04:44  <joepie91>well, okay, then I can't really help you with the issue :P
09:04:54  * jmdrawneekjoined
09:04:56  * JaredCEjoined
09:04:56  <joepie91>how are you determining that you have the latest versions already?
09:06:15  * toiquit (Ping timeout: 260 seconds)
09:06:58  <supernovah>npm tells e I do
09:07:18  <supernovah>found 10 vulnerabilities (3 low, 5 moderate, 2 high) in 4771 scanned packages, All dependencies match the latest package versions :)
09:08:56  * nodweberjoined
09:09:01  * jottrjoined
09:09:02  * goodenoughquit (Read error: Connection reset by peer)
09:09:21  * jmdrawneekquit (Ping timeout: 240 seconds)
09:09:37  * goodenoughjoined
09:09:53  * InFlamesquit (Ping timeout: 248 seconds)
09:11:46  <joepie91>supernovah: ah, the npm audit *itself* says you have the latest versions?
09:11:58  <joepie91>that sounds like you have dependencies in your tree that simply never got patched, then
09:12:06  <joepie91>ie. there exists no non-vulnerable version]
09:12:23  * DukeDrakequit (Quit: Leaving)
09:13:05  * Kalpatitooquit (Ping timeout: 248 seconds)
09:13:25  <supernovah>it also says patched in <some version> and my package.json has ^<that version> and update has been run
09:14:15  <joepie91>eh..
09:14:21  <joepie91>supernovah: do you have the latest npm version?
09:14:23  <joepie91>might be an npm bug
09:14:28  <supernovah>I don't know
09:14:34  <supernovah>says I have 6.1.0
09:14:59  <joepie91>yeah, that's latest
09:15:01  <joepie91>wtf
09:15:17  <joepie91>supernovah: hold on, you mention package.json...
09:15:28  <joepie91>are you sure that the vuln is in a top-level dep, and not in a different nested one that's at a different version?
09:15:39  <supernovah>it is a dep of a dep yea
09:16:11  <supernovah>I added the vulnerable packages as dependencies and updated and audited again but same output
09:16:25  * Alina-malinajoined
09:17:16  * Alina-malinaquit (Changing host)
09:17:16  * Alina-malinajoined
09:17:40  * kakashiA1joined
09:21:54  <supernovah>is there a package that lets me make a virtual file descriptor that sqlite3 can read from perhaps
09:23:09  * gan[m]joined
09:24:19  <supernovah>eh I might just do it on a per-field basis instead
09:27:56  * ne018quit (Read error: Connection reset by peer)
09:28:55  * MrAbaddonjoined
09:31:25  * Rashadjoined
09:32:32  * ne018_joined
09:33:19  * Bendrjoined
09:36:38  * kevireillyjoined
09:36:45  * puddlequit (Quit: Leaving)
09:36:54  * bergelinquit (Quit: leaving)
09:38:30  * falafelquit (Ping timeout: 260 seconds)
09:38:41  * gliquit (Quit: Leaving)
09:38:47  * sxajoined
09:39:55  * kevireillyquit (Read error: Connection reset by peer)
09:40:15  * goodenoughquit (Read error: Connection reset by peer)
09:40:35  * falafeljoined
09:43:31  * hemstockquit (Read error: Connection reset by peer)
09:44:51  * Sharaalquit (Remote host closed the connection)
09:45:10  * kevireillyjoined
09:45:23  * hemstockjoined
09:46:18  * Sharaaljoined
09:46:51  <grr12314>https://github.com/kripken/sql.js/ re: in-memory sqlite db file
09:47:13  <deadbeat>supernovah: adding it to your package.json won't fix it. npm installs several different versions of a package if different versions are required as sub dependencies.
09:47:40  <grr12314>but it is probably slower
09:49:28  * goodenoughjoined
09:53:03  * EyePulpjoined
09:53:08  * gan[m]part
09:54:56  * mariusquit (Quit: baj)
09:55:07  * tymczenkoquit (Remote host closed the connection)
09:55:42  * jmdrawneekjoined
09:56:12  * gregf_joined
09:57:24  * mezodquit (Remote host closed the connection)
09:57:51  * mezodjoined
09:58:00  * hollusionjoined
09:58:02  * EyePulpquit (Ping timeout: 260 seconds)
09:58:25  * horseyjoined
10:00:08  <supernovah>grr12314: thx for that, it doesn't need to be fast, just encrypted
10:00:16  <supernovah>as such this is a nice solution
10:01:09  * goodenoughquit (Read error: Connection reset by peer)
10:01:54  * horseyquit (Read error: No route to host)
10:02:08  * horseyjoined
10:04:22  * Caspinolquit (Remote host closed the connection)
10:04:50  * Caspinoljoined
10:07:47  * m00dyquit (Remote host closed the connection)
10:10:06  * kevireillyquit (Quit: kevireilly)
10:10:14  * m00dyjoined
10:10:21  * goodenoughjoined
10:11:41  * mariusjoined
10:12:28  * m00dyquit (Remote host closed the connection)
10:12:55  * hdonjoined
10:13:01  * m00dyjoined
10:13:04  * neo4quit (Quit: neo4)
10:17:05  * m00dyquit (Ping timeout: 240 seconds)
10:17:12  * plutoniixquit (Quit: Leaving)
10:17:46  * hdonquit (Ping timeout: 264 seconds)
10:20:00  * ed209quit (Remote host closed the connection)
10:20:08  * ed209joined
10:20:43  * tvwjoined
10:21:02  <grr12314>i guess you've noticed https://github.com/mapbox/node-sqlite3#building-for-sqlcipher as well
10:22:08  * toijoined
10:23:56  * Bendrquit (Remote host closed the connection)
10:25:11  * mylesborinsquit (Quit: farewell for now)
10:25:41  * mylesborinsjoined
10:26:03  * Caspinol_joined
10:26:36  * goodenoughquit (Read error: Connection reset by peer)
10:26:43  * gloomyquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:27:05  * chovy_quit (Ping timeout: 240 seconds)
10:27:11  * gloomyjoined
10:27:28  * gloomyquit (Client Quit)
10:27:56  * horseyquit (Remote host closed the connection)
10:28:28  * keepLearning512quit (Read error: Connection reset by peer)
10:29:05  * Lynxium[]quit (Ping timeout: 240 seconds)
10:29:09  * Caspinolquit (Ping timeout: 264 seconds)
10:29:24  * goodenoughjoined
10:30:01  * kakashiA1quit (Quit: WeeChat 2.0.1)
10:30:16  * kakashiALjoined
10:31:47  * keepLearning512joined
10:36:14  * plexigrasjoined
10:38:57  * toiquit (Ping timeout: 240 seconds)
10:39:03  * apparitionjoined
10:41:11  * jmdrawneekquit (Remote host closed the connection)
10:43:14  <supernovah>yeah that's a package which has vulnerable dependencies
10:48:28  * Venemoquit (Quit: Communi 3.5.0 - http://communi.github.com)
10:49:05  <Sharaal>supernovah: thats normal and nothing new, only the hints you get now are new ^^
10:52:56  * m00dyjoined
10:53:37  * koggequit (Quit: Leaving)
10:54:34  * kingarmadillojoined
10:54:49  * goodenoughquit (Read error: Connection reset by peer)
10:54:57  * Stevermanquit (Ping timeout: 264 seconds)
10:56:09  * Kalpatitoojoined
10:59:25  * kingarmadilloquit (Ping timeout: 260 seconds)
11:00:30  * Sharaalquit (Remote host closed the connection)
11:04:00  * goodenoughjoined
11:05:10  * tymczenkojoined
11:06:46  * SenasOzysjoined
11:10:00  * platonic_joined
11:10:00  * platonicquit (Read error: Connection reset by peer)
11:10:18  * chovyjoined
11:10:18  * chovyquit (Changing host)
11:10:18  * chovyjoined
11:12:45  * kjeldahlquit (Ping timeout: 245 seconds)
11:14:18  * kjartanquit (Read error: Connection reset by peer)
11:14:53  * kjeldahljoined
11:16:00  * kjartanjoined
11:16:35  * Kalpatitooquit (Ping timeout: 240 seconds)
11:17:25  * Lynxiumjoined
11:17:26  * psychicist__joined
11:17:38  * gloomyjoined
11:18:05  * Kalpatitoojoined
11:18:52  * Rashadquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
11:20:32  * Stevermanjoined
11:20:40  * ahmedelgabriquit (Ping timeout: 245 seconds)
11:21:04  * goodenoughquit (Read error: Connection reset by peer)
11:21:39  * goodenoughjoined
11:21:56  * mr_louquit (Quit: Ex-Chat)
11:23:13  * jottrquit (Ping timeout: 248 seconds)
11:24:17  * igemnacejoined
11:24:41  * fnuttpart
11:24:50  * AndroidKitKatjoined
11:25:27  * jmdrawneekjoined
11:26:36  <AndroidKitKat>What would be the best way to get all the objects from a json file and store them?
11:27:10  <AndroidKitKat>heres my json, and sorry if im pretty bad at node https://www.irccloud.com/pastebin/suaslY7t/
11:28:50  <AndroidKitKat>I know python better, but can i get a list of just "joke, source, and help" ?
11:29:48  * toijoined
11:30:01  * IanLiujoined
11:31:04  * Sharaaljoined
11:32:24  * ahmedelgabrijoined
11:33:51  <bsaboia>how should I document a child class with JSDoc in Node.js? I couldn't find any good examples of a fully documented class (with an inherited constructor, etc)
11:33:54  <stennowork>AndroidKitKat, the keys, or the keys and values?
11:33:58  <stennowork>or just the values?
11:34:08  <AndroidKitKat>i assume just the keys
11:34:21  <AndroidKitKat>that would be the parts in quotes followed by a colon?
11:34:46  <stennowork>yeah
11:34:55  <stennowork>so JSON itself is just a string, right?
11:34:57  * toiquit (Quit: Leaving.)
11:35:00  <AndroidKitKat>yea
11:35:07  * toijoined
11:35:09  <stennowork>so you have to parse it to a javascript object first
11:35:23  * Sharaalquit (Ping timeout: 255 seconds)
11:35:27  <stennowork>so let result = JSON.parse(thejsonstring);
11:35:45  <stennowork>and then you can call Object.keys to get an array of just the keys:
11:35:46  <AndroidKitKat>ya
11:35:49  <AndroidKitKat>ah
11:36:01  <stennowork>let keysArray = Object.keys(result);
11:36:04  <stennowork>thats it
11:36:30  * tymczenkoquit (Read error: Connection reset by peer)
11:36:57  * ffxjoined
11:37:08  <stennowork>and that will return a JS array with ["joke", "source", "help"]
11:37:11  * ahmedelgabriquit (Ping timeout: 255 seconds)
11:37:19  <AndroidKitKat>thats easier than i thought
11:37:41  <AndroidKitKat>im not very comfortable or familiar with any of the node/java/derivatives
11:37:44  <stennowork>apart from comprehension, list manipulation is just as straightforward in js as it is in python
11:38:16  * igemnacequit (Read error: Connection reset by peer)
11:38:32  <lohfu>reading the documentation, it is clear that `npm publish` by default overwrites the latest tag. when publishing a patch for version 1 while version 2 is actually stable i do not want to overwrite latest... but i cannot find anywhere in the documentation where it says how to not do this
11:38:53  * smccarthyjoined
11:38:59  * DukeDrakejoined
11:39:52  * toiquit (Ping timeout: 268 seconds)
11:40:29  * goodenoughquit (Read error: Connection reset by peer)
11:41:42  * goodenoughjoined
11:42:57  * smccarthyquit (Ping timeout: 240 seconds)
11:45:21  * Stevermanquit (Ping timeout: 264 seconds)
11:45:27  * Sharaaljoined
11:47:57  * doodadjsjoined
11:49:31  * m00dyquit (Remote host closed the connection)
11:50:46  * m00dyjoined
11:50:47  * m00dyquit (Remote host closed the connection)
11:51:02  * m00dyjoined
11:51:21  * hsaliak_joined
11:53:27  * hsaliakquit (Ping timeout: 240 seconds)
11:55:43  * igemnacejoined
11:56:17  * gli|wfhjoined
11:56:17  * hsaliak_quit (Ping timeout: 276 seconds)
11:56:22  * hsaliakjoined
11:56:37  * gli|wfhquit (Client Quit)
11:56:54  * gli|wfhjoined
11:58:00  * goodenoughquit (Read error: Connection reset by peer)
11:58:28  * igemnacequit (Read error: Connection reset by peer)
11:59:59  * Typoquit (Ping timeout: 256 seconds)
12:00:00  <grr12314>--tag ??
12:00:08  * Venemojoined
12:00:15  * Venemoquit (Client Quit)
12:01:46  * Sharaalquit (Remote host closed the connection)
12:05:21  * kakashiALquit (Ping timeout: 248 seconds)
12:07:12  * goodenoughjoined
12:08:33  * ahmedelgabrijoined
12:09:18  * jottrjoined
12:10:02  * patlvjoined
12:10:53  * goodenoughquit (Read error: Connection reset by peer)
12:11:47  * goodenoughjoined
12:13:03  * hdonjoined
12:13:35  * earendelquit (Ping timeout: 256 seconds)
12:15:02  * igemnacejoined
12:17:38  * hdonquit (Ping timeout: 260 seconds)
12:19:45  * bitmaskjoined
12:20:38  * Lauvenjoined
12:22:42  <supernovah>is it possible to generate a known error, such as ENOENT for example