00:00:16  * charlesquit (Ping timeout: 246 seconds)
00:00:29  * charlesjoined
00:00:29  * charlesquit (Changing host)
00:00:29  * charlesjoined
00:00:30  * joepie91fights with his scraping code in the meantime
00:00:36  <joepie91>or well, rather, with the site I'm scraping :P
00:00:47  <joepie91>stupid thing stores stuff in session data that should be in the URL...
00:00:56  <joepie91>makes my life difficult :(
00:01:19  * zedsjoined
00:01:22  <joepie91>and it stores the session ID in the URL, because ~reasons~
00:01:32  * zedspart
00:03:04  <et09>joepie91: 4:04 in that video
00:03:11  * platonicjoined
00:03:52  * cnsvcjoined
00:04:28  <et09>is it actually in the URL or a query param... if you write a scraper from scratch you can just control for it either way really
00:05:55  <joepie91>et09: in the URL :P and I'm trying to squeeze this into a general-purpose scraping 'framework' that I'm working on
00:06:05  <joepie91>but it's just generally a pain
00:06:10  <joepie91>because there's no way to say "show me page 2 of this category"
00:06:15  * aananevquit (Ping timeout: 250 seconds)
00:06:17  <joepie91>only "show me page 2 of whatever category is currently in my session data"
00:06:33  <joepie91>also, will look at video later, currently playing music :P
00:07:27  <joepie91>(specifically, https://www.youtube.com/watch?v=_VfmkgqbZv8 )
00:07:30  * platonicquit (Ping timeout: 250 seconds)
00:08:16  <et09>i'll check back in 12 hours then lol
00:08:30  <joepie91>hahaha
00:08:37  <et09>oh i know some of these artists
00:08:55  <joepie91>et09: also, the site in question is http://lidl-service.com/ if you want to see firsthand how janky it is
00:09:01  <joepie91>also, sessions expire in like 5.1 femtoseconds
00:09:03  <et09>sounds like a freelance job
00:09:08  <joepie91>nah
00:09:11  <joepie91>personal project
00:09:18  * Boobiejoined
00:09:27  <et09>this looks awful yeah
00:09:37  <joepie91>the language is also stored in the session of course
00:09:54  <joepie91>like an hour ago I finished implementing 'session recovery'
00:10:12  <joepie91>so that after a scraper crash, it walks back through the ancestors of the first item in the URL queue, retracing the steps how it got there
00:10:16  <joepie91>and redoing all requests leading up to the URL
00:10:19  <joepie91>before continuing the queue
00:10:21  <joepie91>to deal with this BS :P
00:10:26  <et09>:(
00:10:34  <joepie91>it works though!
00:10:41  <joepie91>and more importantly, works generically
00:10:46  <joepie91>it's not specific to this scraper
00:10:49  <et09>i've written code like this too
00:11:05  <joepie91>it's all depth-first too, for similar reasons
00:11:06  <et09>medical interoperability software, "abstract every possible way we will have to interop with an EHR"
00:11:12  <joepie91>ha
00:11:20  <joepie91>yeah, data format wrangling is fun
00:11:22  <joepie91>"fun"
00:11:22  <et09>which i spent 8 months doing, and then someone got promoted over me and threw it out >>::((((
00:11:28  <joepie91>blah
00:11:38  <et09>"we should just write a new scraper for each EHR"
00:11:43  <joepie91>well at least I don't have that problem with my personal projects :P
00:11:44  <et09>no actually... we shouldn't
00:11:58  * SirPolequit (Ping timeout: 250 seconds)
00:11:59  <et09>oddly i think i may have seen that guy today
00:12:54  * carifjoined
00:13:28  * Forsaken87quit (Ping timeout: 258 seconds)
00:13:37  * Laptop_minijoined
00:13:49  * orbyt_joined
00:14:08  * charlesquit (Ping timeout: 250 seconds)
00:14:29  * ijashquit (Read error: Connection reset by peer)
00:14:30  * charlesjoined
00:14:30  * charlesquit (Changing host)
00:14:30  * charlesjoined
00:14:31  * ijash_joined
00:16:50  <et09>joepie91: in healthcare it's basically like, there's one standard which like 40% of people implement like 80% correctly, and then everyone else does like, hey let's store our database in a proprietary .miajxxx format
00:17:13  <joepie91>hahaha
00:17:19  <joepie91>sounds like most industries
00:17:24  <supernovah>> talking about nodejs anywhere near the medical field
00:17:38  * mgolquit (Ping timeout: 246 seconds)
00:17:42  <joepie91>et09: funny story, you know why blockchains are getting hyped so much despite being totally unsuitable for commercial data storage?
00:17:57  <et09>well i work in ethereum land lol
00:18:07  <joepie91>then you might actually recognize this one :)
00:18:08  <et09>you don't store data on the primary chain, rule of thumb
00:18:15  <supernovah>guys honestly take it to pms
00:18:50  <joepie91>et09: so it /seems/ that the interest in blockchain-y stuff is primarily because, as a side-effect of having a centralized storage thing, it also introduces a centralized storage *format*, and gives developers an excuse to finally unfuck the pile of wildly deviating data formats
00:19:07  <joepie91>(centralized between organizations, that is)
00:19:33  <joepie91>supernovah: what is the issue?
00:20:35  * electronicmajiquit (Quit: My Mac has gone to sleep. ZZZzzz…)
00:20:59  <supernovah>just the unrelated conversation in the channel
00:21:29  <joepie91>unrelated to what? this is not strictly a help channel, and it's common for general technical conversations to happen when it's quiet
00:21:44  <joepie91>so long as it doesn't interfere with support things, it's not an issue
00:22:04  <supernovah>I didn't suggest it was a strictly help channel, and I grow sick and tired of these channels becoming full of nonsense conversation
00:22:41  * _xodquit (Remote host closed the connection)
00:22:59  * _xodjoined
00:23:45  * DeltaHeavyquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:24:37  * charlesquit (Ping timeout: 245 seconds)
00:25:20  <joepie91>general social conversation is what keeps this channel alive and helpful
00:25:27  * DeltaHeavyjoined
00:25:36  <joepie91>without loosely-on-topic conversation being allowed, you will not grow a community of regulars
00:25:48  <joepie91>and you will end up with a channel full of hit-and-run questions that don't get answered
00:25:52  <joepie91>like almost every other major language channel
00:25:56  <supernovah>general social conversation is a problem higher level language users such as yourself suffer from
00:26:23  <joepie91>supernovah: you are treading dangerously close to bannable behaviour
00:26:37  <supernovah>then the rules are lacklustre
00:26:58  <joepie91>I really have very little patience for personal attacks on this matter
00:27:04  * charlesjoined
00:27:04  * charlesquit (Changing host)
00:27:04  * charlesjoined
00:27:08  <supernovah>there was never one
00:27:18  <joepie91>[01:25] <supernovah> general social conversation is a problem higher level language users such as yourself suffer from
00:27:42  <supernovah>you and me see personal attacks differently then
00:28:07  <supernovah>I see this as a personal attack > and you will end up with a channel full of hit-and-run questions that don't get answered
00:29:11  <DeltaHeavy>That's a personal attack
00:29:20  <DeltaHeavy>Pretending it's not is just thinking we're fuckign stupid :p
00:29:53  <joepie91>supernovah: okay, let me put it more bluntly: loosely-on-topic conversation is allowed here so long as it does not interfere with the support function of the channel, as it helps maintain a healthy and helpful community. *that is the channel policy*. given that you're not taking a constructive stance, I have no interest in further discussing your views on the matter, and you get the choice of either accepting that that is the channel policy, or
00:29:55  <joepie91>finding yourself a different channel that better matches your expectations.
00:29:57  <supernovah>its an attack on the governance of the channel
00:30:02  <supernovah>not personal
00:30:18  <supernovah>you can generalise about other channels, I can too
00:31:08  <supernovah>is there a proper forum for this
00:31:16  <supernovah>talking about admin of this channel
00:31:23  * charlesquit (Read error: Connection reset by peer)
00:31:42  <joepie91>sure. PM me with *constructive and good-faith* comments.
00:32:03  * charlesjoined
00:32:03  * charlesquit (Changing host)
00:32:03  * charlesjoined
00:34:35  <colwem>joepie91: can I set a timeout on bhttp? will it cause the 'end' event to be emitted?
00:38:51  * AtumTquit (Quit: AtumT)
00:39:45  * DeltaHeavyquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:40:27  * carifquit (Ping timeout: 250 seconds)
00:41:54  * Dbuggerquit (Quit: Leaving)
00:42:10  * Dbuggerjoined
00:44:10  * RoriconKnightquit (Quit: So, it has come to this.)
00:47:11  * Dbuggerquit (Ping timeout: 268 seconds)
00:52:44  * sternsjoined
00:53:14  <ThePendulum>so knex by default makes seed files that first remove all entries. are you never supposed to run a seed file more than once?
00:53:30  <ThePendulum>it'd be nice if they're incremental, not sure if I'm supposed to modify them for that
00:53:41  * charlesquit (Ping timeout: 246 seconds)
00:53:55  * charlesjoined
00:53:55  * charlesquit (Changing host)
00:53:55  * charlesjoined
00:53:58  <ThePendulum>so it runs an insert-or-update instead of wiping everything, including entries not created with the seedfile
00:55:22  * carifjoined
00:57:03  * Mavericksjoined
00:57:26  <Mavericks>Is there a separate IRC channel for mocha ? mochajs ?
00:58:13  <supernovah>Mavericks: doesn't appear to be
00:58:28  <supernovah>Mavericks: you can /msg alis list mocha -min 10 to search for channels btw
00:58:30  <Mavericks>supernovah: where do you recommend asking questions on it ?
00:58:40  <Mavericks>supernovah: nice will try that
00:58:59  <supernovah>Mavericks: I just did, that's why I wrote 'doesn't appear to be', so here I guess is the answer
00:59:12  <Mavericks>supernovah: yes i just realized that :|
00:59:16  <Mavericks>supernovah: thanks again a lot
01:02:53  * Laptop_miniquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
01:04:01  * Mavericksquit (Quit: Page closed)
01:04:04  * platonicjoined
01:04:09  * Jessidhiaquit (Disconnected by services)
01:04:13  * deviantferoquit (Ping timeout: 245 seconds)
01:04:37  * carifquit (Ping timeout: 245 seconds)
01:05:16  * jimleiquit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
01:06:04  * charlesquit (Ping timeout: 246 seconds)
01:06:18  * dlwicksellquit (Ping timeout: 246 seconds)
01:06:21  * deviantferojoined
01:07:26  * sandeepjjoined
01:07:57  * charlesjoined
01:07:57  * charlesquit (Changing host)
01:07:57  * charlesjoined
01:08:23  * platonicquit (Ping timeout: 245 seconds)
01:12:54  * Axyjoined
01:12:54  * Axyquit (Changing host)
01:12:54  * Axyjoined
01:13:40  * electronicmajijoined
01:15:37  * Miaquit (Ping timeout: 255 seconds)
01:16:44  * mgoljoined
01:16:58  * charlesquit (Ping timeout: 255 seconds)
01:16:59  * charles_joined
01:16:59  * charles_quit (Changing host)
01:16:59  * charles_joined
01:20:01  * ed209quit (Remote host closed the connection)
01:20:08  * ed209joined
01:22:20  * schneid3306quit (Quit: ZZZzzz…)
01:24:35  * plutoniixquit (Quit: Leaving)
01:25:16  * slajaxjoined
01:26:12  * antsmartianjoined
01:28:11  * esrsejoined
01:30:55  * renlolojoined
01:33:56  * carifjoined
01:40:14  * renloloquit (Ping timeout: 250 seconds)
01:44:00  * julianduquejoined
01:44:36  * userxquit (Quit: userx)
01:47:26  * promethquit (Quit: My Mac Mini has gone to sleep. ZZZzzz…)
01:49:28  * mgolquit (Ping timeout: 250 seconds)
01:49:53  * Nicmavrquit (Read error: Connection reset by peer)
01:51:29  * Jessidhiajoined
01:51:36  * Nicmavrjoined
01:52:02  * mnemonicjquit (Quit: bye!)
01:52:34  * renlolojoined
01:52:39  <ThePendulum>so in sqlite, I got a table with tags with a column id and a self-referring column alias_for. I want to write a join that maps all tags with an alias_for to the original in the same table, any ideas?
01:53:21  <ThePendulum>using knex
01:54:30  * mnemonicjjoined
01:56:39  * slajaxquit (Ping timeout: 244 seconds)
01:59:38  * carifquit (Ping timeout: 245 seconds)
02:01:05  * userxjoined
02:04:36  <supernovah>is it a fully featured sqlite package?
02:08:06  <joepie91>what the hell... I insert a row into my DB, and after that completes, I do a query against that table, and then the row isn't there... but if I insert a delay before querying against the table, then it is
02:08:17  * joepie91stares
02:09:18  * jimleijoined
02:09:21  * heyitsramaquit (Remote host closed the connection)
02:09:53  * heyitsramajoined
02:10:06  * mezodquit (Remote host closed the connection)
02:10:13  * _xodquit (Remote host closed the connection)
02:10:17  * Laptop_minijoined
02:10:28  * heyitsramaquit (Read error: Connection reset by peer)
02:11:00  * heyitsramajoined
02:11:39  <joepie91>okay, quick sanity check
02:11:42  * renloloquit (Ping timeout: 245 seconds)
02:11:47  <joepie91>if I insert a thing in PostgreSQL, and wait for that operation to complete
02:12:00  <joepie91>then a subsequent SELECT at that moment that would match that row, is guaranteed to return that row, correct?
02:12:04  * Laptop_miniquit (Client Quit)
02:12:08  <joepie91>once the insert has been acknowledged
02:12:57  * chowmeinedquit (Read error: Connection reset by peer)
02:13:41  * chowmeinedjoined
02:13:45  * heyitsramaquit (Remote host closed the connection)
02:14:25  * heyitsramajoined
02:14:57  <shinzo>yes, ACID and all that
02:15:12  <joepie91>okay, so I'm not going crazy
02:15:17  <shinzo>unless the insert failed somewhere
02:15:18  <joepie91>what
02:15:21  <joepie91>now it is working fine
02:15:21  * carifjoined
02:15:22  <joepie91>???
02:15:34  <joepie91>shinzo: it didn't fail, the row eventually showed up one query later
02:15:35  * electronicmajiquit (Quit: My Mac has gone to sleep. ZZZzzz…)
02:16:05  <joepie91>hold up...
02:16:07  <shinzo>is the database on high load?
02:16:14  <deltab> joepie91: uncommitted transaction?
02:16:32  <joepie91>hm no, it's not that either
02:16:35  <joepie91>deltab: not using transactions
02:16:37  <joepie91>shinzo: zero load
02:16:45  <joepie91>but I can't repro anymore :/
02:16:47  <shoky_>ThePendulum: something like this? knex('tags').as('a').leftJoin(knex('tags').as('b'), 'a.alias_for', 'b.id').select('a.*', 'b.tag as original_tag')
02:17:16  <joepie91>aaaand there it fails again
02:17:16  <deltab>implicit transaction?
02:17:17  <shoky_>oh that's not what you asked for i guess
02:18:52  <joepie91>deltab: dunno
02:19:23  <deltab>joepie91: subsequent as in executed using the same connection, after the insert has completed?
02:19:58  <joepie91>hold on
02:20:05  * joepie91is trying to narrow down the issue
02:20:10  <joepie91>I have trouble believing it is a postgres issue
02:21:04  <joepie91>okay, I think I've found the issue, mistakenly mapped directly on an array somewhere instead of using Promise.map
02:21:22  <shoky_>ThePendulum: but you can use ifnull() or coalesce() i suppose, if you want to do it in the query
02:21:28  <joepie91>and the debug log I was looking at announced that it was *going to* store the entry, not when it had been successfully stored
02:21:38  <joepie91>and apparently the time difference was enough that it sometimes failed
02:21:40  <joepie91><.<
02:22:06  <joepie91>for the sake of my sanity, I'm going to declare that the cause of the issue unless it reoccurs :P
02:23:11  <deltab>"when multiple transactions are running concurrently, each one should not be able to see the incomplete changes made by others" -- https://www.postgresql.org/docs/8.3/tutorial-transactions.html
02:23:54  <joepie91>aye
02:24:05  <joepie91>but see above, I think it was just an async orchestration fuckup
02:24:17  <deltab>and "PostgreSQL actually treats every SQL statement as being executed within a transaction. If you do not issue a BEGIN command, then each individual statement has an implicit BEGIN and (if successful) COMMIT wrapped around it."
02:24:17  * hemstockquit (Read error: Connection reset by peer)
02:25:18  <deltab>so I think you had the SQL statements running overlapped, in separate implicit transactions
02:25:22  * carifquit (Ping timeout: 255 seconds)
02:25:29  <joepie91>yes
02:26:17  * hemstockjoined
02:27:21  * _xodjoined
02:27:32  * ijash_quit (Remote host closed the connection)
02:28:50  * johnny56quit (Ping timeout: 272 seconds)
02:29:35  <joepie91>deltab: it's working now \o/ https://i.imgur.com/vFVF8nk.png
02:31:48  * _xodquit (Ping timeout: 250 seconds)
02:36:21  * electronicmajijoined
02:36:21  <shoky_>ThePendulum: knex('tags as a').leftJoin('tags as b', 'a.alias_for', 'b.id').select(knex.raw('ifnull(b.id, a.id) as id'), knex.raw('ifnull(b.tag, a.tag) as tag')) https://www.db-fiddle.com/f/JWfsSYUwtP3j7fSERLSZm/0
02:38:00  <shinzo>pfft, golang allows you to approach concurrency synchronously
02:38:26  <shinzo>joepie91: ^^
02:41:36  * lvnsjoined
02:43:26  * tombusbyquit (Remote host closed the connection)
02:43:39  * tombusbyjoined
02:46:25  * glijoined
02:47:45  <ThePendulum>shoky_: let me see
02:47:45  * kjartanquit (Read error: Connection reset by peer)
02:47:49  * dlwickselljoined
02:50:12  * mgoljoined
02:50:43  * antsmartianquit (Remote host closed the connection)
02:52:10  * CrazyEddyjoined
02:52:15  <ThePendulum>woah that might just work
02:52:22  * kjartanjoined
02:52:40  * lvnsquit (Quit: Leaving...)
02:54:26  <ThePendulum>shoky_: that's what I was looking for, neat, thanks :)
02:54:34  <ThePendulum>feel free to pm me your paypal or something
02:54:45  * _xodjoined
02:55:56  * carifjoined
02:59:34  * _xodquit (Ping timeout: 255 seconds)
03:00:01  * kannarfrquit (Quit: ZNC 1.7.1 - https://znc.in)
03:00:04  * trevorquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
03:01:30  * kannarfrjoined
03:04:35  * tmquit (Ping timeout: 246 seconds)
03:05:40  * platonicjoined
03:06:19  * _xodjoined
03:07:45  * orbyt_quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
03:08:16  * tmjoined
03:10:22  * platonicquit (Ping timeout: 255 seconds)
03:10:27  * ^escquit (Ping timeout: 245 seconds)
03:11:25  * ^escjoined
03:11:30  * ^escquit (Excess Flood)
03:12:10  * ^escjoined
03:14:18  * DeltaHeavyjoined
03:15:27  * johnny56joined
03:16:26  <shoky_>ThePendulum: yw ;]
03:18:22  * carifquit (Ping timeout: 245 seconds)
03:18:48  * mgolquit (Ping timeout: 245 seconds)
03:23:30  * orbyt_joined
03:27:29  * et09quit (Quit: leaving)
03:28:56  * duderonomyquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
03:29:15  * _xodquit (Remote host closed the connection)
03:29:33  * _xodjoined
03:31:24  * macwinnerjoined
03:33:59  * carifjoined
03:34:45  * Roughyquit (Quit: Meadow Fresh milk)
03:35:56  * macwinnerquit (Ping timeout: 250 seconds)
03:36:14  * renlolojoined
03:36:41  * akivajoined
03:41:08  * borhquit (Ping timeout: 250 seconds)
03:42:27  * bitmaskquit (Read error: Connection reset by peer)
03:45:32  * Grymanjoined
03:46:05  * _xodquit (Remote host closed the connection)
03:48:04  * carifquit (Ping timeout: 250 seconds)
03:51:42  * circ-user-kM1qfjoined
03:53:34  * orbyt_quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
03:54:14  * slajaxjoined
03:56:03  * circ-user-kM1qfquit (Ping timeout: 246 seconds)
03:57:07  * ahmed_elgabriquit (Ping timeout: 245 seconds)
03:57:33  * Chamezzquit (Quit: Connection closed for inactivity)
03:57:41  * orbyt_joined
03:58:54  * q-u-a-njoined
04:00:32  * q-u-a-nquit (Remote host closed the connection)
04:01:56  * orbyt_quit (Ping timeout: 250 seconds)
04:05:39  * braincrashquit (Quit: bye bye)
04:06:34  * platonicjoined
04:07:11  * _xodjoined
04:08:14  * kevireilly_joined
04:09:17  * braincrashjoined
04:11:10  * platonicquit (Ping timeout: 250 seconds)
04:11:25  * _xodquit (Remote host closed the connection)
04:11:37  * _xodjoined
04:12:28  * dlwicksellquit (Ping timeout: 250 seconds)
04:13:23  * carifjoined
04:16:01  * Grymanquit (Quit: Konversation terminated!)
04:16:59  * circ-user-kM1qfjoined
04:17:45  * mgoljoined
04:18:24  * i1nfusionquit (Remote host closed the connection)
04:18:52  * i1nfusionjoined
04:27:04  * slajaxquit (Ping timeout: 250 seconds)
04:30:51  * sarafjoined
04:36:07  * Cabanoss-quit (Ping timeout: 240 seconds)
04:38:20  * q-u-a-n2joined
04:39:57  * userxquit (Quit: userx)
04:41:12  * deviantferoquit (Ping timeout: 246 seconds)
04:43:35  * deviantferojoined
04:46:40  * carifquit (Ping timeout: 255 seconds)
04:48:22  * Cabanossijoined
04:50:43  * mgolquit (Ping timeout: 255 seconds)
04:57:34  * i1nfusionquit (Remote host closed the connection)
04:58:04  * i1nfusionjoined
04:59:42  * renloloquit (Ping timeout: 250 seconds)
05:01:55  * carifjoined
05:07:23  * platonicjoined
05:10:07  * Arcaelyxquit (Quit: Textual IRC Client: www.textualapp.com)
05:11:36  * plutoniixjoined
05:11:39  * platonicquit (Ping timeout: 246 seconds)
05:12:00  * carifquit (Ping timeout: 246 seconds)
05:13:08  * nahtnamjoined
05:14:06  * kakashiA1joined
05:14:48  * duderonomyjoined
05:17:29  * renlolojoined
05:17:59  * circ-user-kM1qfquit (Ping timeout: 268 seconds)
05:22:39  * Stephen66quit (Quit: Connection closed for inactivity)
05:22:40  * renloloquit (Ping timeout: 250 seconds)
05:25:50  * electronicmajiquit (Quit: My Mac has gone to sleep. ZZZzzz…)
05:26:10  * electronicmajijoined
05:26:19  * renlolojoined
05:26:37  * electronicmajiquit (Client Quit)
05:26:55  * electronicmajijoined
05:27:08  * on3pkquit (Ping timeout: 245 seconds)
05:27:25  * electronicmajiquit (Client Quit)
05:27:42  * electronicmajijoined
05:28:13  * electronicmajiquit (Client Quit)
05:28:28  * led_dark_1quit (Quit: led_dark_1)
05:30:30  * slajaxjoined
05:30:54  * renloloquit (Ping timeout: 250 seconds)
05:31:12  * carifjoined
05:36:06  * carifquit (Ping timeout: 250 seconds)
05:38:13  * TMinus36quit (Quit: Lost terminal)
05:39:51  * GreenJelloquit (Quit: Ugh, I appear to have been pulled away from my computer...)
05:41:20  * unlink__quit (Ping timeout: 268 seconds)
05:44:41  * bitmaskjoined
05:46:52  * toijoined
05:48:40  * carifjoined
05:50:35  * mgoljoined
05:51:28  * willcquit (Ping timeout: 255 seconds)
05:52:38  * carb0n_joined
05:57:30  * xuibquit (Ping timeout: 246 seconds)
05:57:38  * sillysluxquit (Ping timeout: 250 seconds)
06:00:19  * neonpastorquit (Quit: ZNC 1.8.x-nightly-20190102-481fdb5a - https://znc.in)
06:02:06  * carifquit (Ping timeout: 250 seconds)
06:03:01  * nivedhasjoined
06:05:03  * cotko4joined
06:05:50  * nivedhasquit (Client Quit)
06:08:06  * platonicjoined
06:08:22  * heyitsramaquit (Remote host closed the connection)
06:08:42  * duckpupp-quit (Ping timeout: 246 seconds)
06:08:46  * fatalhaltquit (Quit: fatal halt)
06:08:58  * lpinjoined
06:10:18  * heyitsramajoined
06:10:58  * neonpastorjoined
06:11:25  * _xodquit (Remote host closed the connection)
06:12:33  * platonicquit (Ping timeout: 246 seconds)
06:15:24  * heyitsramaquit (Ping timeout: 250 seconds)
06:17:01  * carifjoined
06:17:52  * duckpuppyjoined
06:20:10  * mgolquit (Ping timeout: 250 seconds)
06:20:38  * bitmaskquit (Quit: Gone to sleep...)
06:28:24  * shinzoquit (Quit: leaving)
06:30:06  * al-damiriquit (Quit: Connection closed for inactivity)
06:30:46  * carifquit (Ping timeout: 272 seconds)
06:34:37  * a_sarafjoined
06:35:02  * kakashiA1quit (Ping timeout: 245 seconds)
06:37:06  * reberjoined
06:37:18  * sarafquit (Read error: Connection reset by peer)
06:37:38  * a_sarafquit (Read error: Connection reset by peer)
06:38:09  * a_sarafjoined
06:38:09  * YangGang2020joined
06:38:51  * YangGangBangquit (Ping timeout: 250 seconds)
06:39:27  * OrangeManBadjoined
06:40:53  * renlolojoined
06:41:56  * heyitsramajoined
06:42:24  * slajaxquit (Ping timeout: 250 seconds)
06:42:32  * slajaxjoined
06:42:47  * YangGang2020quit (Ping timeout: 240 seconds)
06:44:07  * martianboyjoined
06:45:28  * renloloquit (Ping timeout: 244 seconds)
06:46:11  * YangGang2020joined
06:46:49  * gxtquit (Ping timeout: 255 seconds)
06:48:47  * OrangeManBadquit (Ping timeout: 240 seconds)
06:49:12  * proasyncquit (Ping timeout: 245 seconds)
06:50:04  * proasyncjoined
06:50:40  * carifjoined
06:54:46  * slajaxquit (Ping timeout: 244 seconds)
06:54:54  * slajaxjoined
06:57:10  * carifquit (Ping timeout: 255 seconds)
06:59:25  * slajaxquit (Ping timeout: 244 seconds)
07:00:02  * kannarfrquit (Quit: ZNC 1.7.1 - https://znc.in)
07:01:30  * kannarfrjoined
07:02:20  * slajaxjoined
07:03:38  * circ-user-kM1qfjoined
07:03:55  * darutokojoined
07:05:17  * Guest26203joined
07:07:30  * slajaxquit (Ping timeout: 272 seconds)
07:07:39  * slajaxjoined
07:08:43  * martianboy1joined
07:09:09  * platonicjoined
07:09:31  * martianboyquit (Ping timeout: 268 seconds)
07:09:31  * martianboy1changed nick to martianboy
07:13:36  * platonicquit (Ping timeout: 250 seconds)
07:14:32  * marthinaljoined
07:14:37  * slajaxquit (Ping timeout: 246 seconds)
07:16:34  * slajaxjoined
07:17:08  * _xodjoined
07:17:30  * satoriprintsjoined
07:17:40  * carifjoined
07:19:04  * kakashiA1joined
07:19:18  * sQVejoined
07:21:17  * slajaxquit (Ping timeout: 245 seconds)
07:21:28  * _xodquit (Ping timeout: 255 seconds)
07:21:32  * Forsaken87joined
07:22:40  * slajaxjoined
07:22:46  * chargenjoined
07:24:26  * carifquit (Ping timeout: 250 seconds)
07:28:52  * groomjoined
07:29:38  * gambl0r3quit (Ping timeout: 250 seconds)
07:31:45  <satoriprints>i need help with streams, i dont know how to reead properly and with async etc
07:32:55  * macwinnerjoined
07:33:18  * dre_joined
07:34:31  * pathroclejoined
07:35:53  * slajaxquit (Ping timeout: 245 seconds)
07:36:29  * m0therquit (Remote host closed the connection)
07:37:36  * macwinnerquit (Ping timeout: 246 seconds)
07:39:28  * carifjoined
07:40:35  * slajaxjoined
07:40:43  * Half-Wordjoined
07:41:06  * amrquit (Ping timeout: 246 seconds)
07:41:48  * akivaquit (Ping timeout: 246 seconds)
07:41:58  <pagios>hello, so i would like to write a javascript (node) api to delete folders in a given path /opt for example. I am afraid someone abuses the api and deleted something outside /opt/ so i need to sanitize the input to the rm command, any suggestions on hosw to do that securely?
07:42:44  * Forsaken87quit (Ping timeout: 258 seconds)
07:45:24  * slajaxquit (Ping timeout: 244 seconds)
07:45:33  * slajaxjoined
07:48:19  * Notijoined
07:48:44  * amrjoined
07:49:58  * carifquit (Ping timeout: 246 seconds)
07:57:27  * SirPolejoined
08:02:30  * Ergojoined
08:06:09  * sarafjoined
08:06:12  * alem0larsjoined
08:09:30  * a_sarafquit (Ping timeout: 250 seconds)
08:10:01  * carifjoined
08:10:04  * platonicjoined
08:10:18  * sarafquit (Read error: Connection reset by peer)
08:10:24  * a_sarafjoined
08:10:36  * Chuguniyjoined
08:12:23  * rendarjoined
08:14:42  * platonicquit (Ping timeout: 250 seconds)
08:15:54  * dre_quit (Remote host closed the connection)
08:16:26  * Booster2ooojoined
08:17:42  <Booster2ooo>'morning
08:17:44  * b44joined
08:17:45  * b44quit (Client Quit)
08:25:38  * marthinalquit (Remote host closed the connection)
08:26:24  * slajaxquit (Ping timeout: 250 seconds)
08:26:31  * cnsvcquit (Ping timeout: 256 seconds)
08:27:04  * slajaxjoined
08:28:32  <pagios>anyone?
08:30:19  * OnkelTemjoined
08:31:13  * freetolquit (Ping timeout: 255 seconds)
08:31:57  * wonko7quit (Ping timeout: 250 seconds)
08:33:30  * reactormonkjoined
08:35:27  * heyitsramaquit (Ping timeout: 245 seconds)
08:35:45  <DeltaHeavy>pagios What are they deleting for what purpose?
08:36:34  <pagios>DeltaHeavy, deleting jpeg pictures, i need to provide a way for them to delete their files
08:36:44  <pagios>so they would call an API to delete some files there..
08:37:07  <pagios>i am worried about directory traversal and stuff like that
08:37:08  * mgoljoined
08:37:14  <DeltaHeavy>pagios Can't they just give you the UUID of pictures and give the pictures said UUID as a file name, and you can reference the session's user to see if they're allowed?
08:37:20  <DeltaHeavy>Why have multiple directories?
08:37:55  <pagios>DeltaHeavy, there is a directory structure for each client/subclient
08:38:04  * espBerryquit (Quit: espBerry)
08:38:09  <DeltaHeavy>Why not do what I suggested instead?
08:38:22  <pagios>i am checking on the token sent and validating
08:38:31  <pagios>the issue is more on the input (filename sent)
08:38:53  <pagios>input can be maybe something like test.mp4; rm -rf ../../*
08:38:54  <DeltaHeavy>I make all my file names UUIDs and store the file name in the DB to send to the user
08:38:56  * darkSeidjoined
08:40:01  <DeltaHeavy>Same goes for folder names
08:40:14  <DeltaHeavy>But I wouldn't use directories for that, I'd just relate the data via DB
08:40:28  <DeltaHeavy>Either work though
08:40:35  <spuun>Trying to get ssh2 to use my signed key (user cert) for authentication, but i cant get it to work. Anyone knows if its possible? Dunno if my terminology is correct, but i have a signed id_rsa (id_rsa-cert) with a limited life time. I've added it to ssh-agent, and it works with normal ssh cli.
08:41:00  <pagios>so you check if the file exist in the db, if it exists you would delete the static uuid from the fs
08:42:03  <DeltaHeavy>And check if said user can delete it
08:42:09  <DeltaHeavy>Using the session ID to see who they are
08:42:38  * renlolojoined
08:45:09  * carifquit (Ping timeout: 246 seconds)
08:46:11  * kevireilly_quit (Quit: kevireilly_)
08:47:24  * renloloquit (Ping timeout: 244 seconds)
08:51:42  * threenucjoined
08:52:49  <pagios>DeltaHeavy, how about i parse the input, check regex on it, and unlink
08:53:42  * slajaxquit (Ping timeout: 250 seconds)
08:54:10  <DeltaHeavy>Too error prone
08:55:10  * circ-user-kM1qfquit (Ping timeout: 272 seconds)
08:57:46  * marthinaljoined
08:57:56  * sozubajoined
09:00:36  * carifjoined
09:00:46  * ahmedelgabrijoined
09:02:43  * userxjoined
09:03:40  * reactormonkquit (Ping timeout: 250 seconds)
09:04:09  * kjartanquit (Read error: Connection reset by peer)
09:05:56  * Notiquit (Quit: Konversation terminated!)
09:09:24  * kjartanjoined
09:09:43  * freetoljoined
09:10:04  * heyitsramajoined
09:10:45  * platonicjoined
09:12:03  * userxquit (Quit: userx)
09:12:33  * carifquit (Ping timeout: 245 seconds)
09:12:50  * mgolquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:13:20  * Forsaken87joined
09:13:50  * mgoljoined
09:15:14  * platonicquit (Ping timeout: 250 seconds)
09:16:43  * esrsequit (Ping timeout: 245 seconds)
09:17:10  * wonko7joined
09:20:48  * marthinalquit (Remote host closed the connection)
09:22:51  * marthinaljoined
09:24:13  * Lucas_Grayjoined
09:24:32  * kpattichajoined
09:25:03  * circ-user-kM1qfjoined
09:25:23  * userxjoined
09:27:07  * marthinalquit (Ping timeout: 245 seconds)
09:28:23  * carifjoined
09:29:33  * userxquit (Client Quit)
09:30:00  * circ-user-kM1qfquit (Ping timeout: 272 seconds)
09:30:38  * marthinaljoined
09:33:20  * xcpep_part
09:35:05  * setpilljoined
09:36:03  * reactormonkjoined
09:36:39  * xcpepjoined
09:39:30  * carifquit (Ping timeout: 250 seconds)
09:39:38  * hellauerjoined
09:46:10  * duderonomyquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:49:14  * Lucas_Grayquit (Read error: Connection reset by peer)
09:49:47  * Lucas_Grayjoined
09:52:50  * tymczenkojoined
09:53:18  * sozubaquit (Quit: bye bye)
09:53:45  * sozubajoined
09:54:20  * Venemojoined
09:54:20  * carifjoined
09:54:26  * espBerryjoined
09:54:30  * ZincFerritequit (Read error: Connection reset by peer)
09:56:25  * darkSeidquit (Read error: Connection reset by peer)
09:57:39  * tarkusjoined
09:58:42  * darkSeidjoined
09:59:05  * AlHafoudhquit (Quit: ZNC - http://znc.in)
10:00:24  * heyitsramaquit (Ping timeout: 246 seconds)
10:01:34  * Aquazijoined
10:04:34  * darkSeidquit (Remote host closed the connection)
10:06:14  * ginnijoined
10:06:48  * carifquit (Ping timeout: 250 seconds)
10:07:02  * gliquit (Remote host closed the connection)
10:08:57  * kapil____joined
10:09:16  * asymptoticallyjoined
10:09:37  * kpattichaquit (Ping timeout: 246 seconds)
10:10:53  * ginniquit (Client Quit)
10:11:18  * kegsterquit (Quit: Shiner, TX makes good beer.)
10:11:44  * kegsterjoined
10:14:43  * kegsterquit (Client Quit)
10:17:06  * kegsterjoined
10:17:42  * kegsterquit (Changing host)
10:17:43  * kegsterjoined
10:18:01  * circ-user-kM1qfjoined
10:20:01  * ed209quit (Remote host closed the connection)
10:20:08  * ed209joined
10:20:25  * kpattichajoined
10:21:25  * carifjoined
10:22:24  * circ-user-kM1qfquit (Ping timeout: 250 seconds)
10:28:17  * plutoniixquit (Quit: Leaving)
10:30:05  * sxajoined
10:30:36  * Notijoined
10:31:15  * carifquit (Ping timeout: 268 seconds)
10:31:23  * mezodjoined
10:31:54  * mazulajoined
10:33:19  * kegsterquit (Quit: Shiner, TX makes good beer.)
10:33:40  * kegsterjoined
10:38:22  * hellauerquit (Quit: WeeChat 2.2)
10:39:49  * heyitsramajoined
10:42:04  * circ-user-kM1qfjoined
10:42:27  * circ-user-kM1qfquit (Remote host closed the connection)
10:43:42  * circ-user-kM1qfjoined
10:44:28  * renlolojoined
10:46:12  * carifjoined
10:49:16  * renloloquit (Ping timeout: 250 seconds)
10:49:53  * homaarjoined
10:51:08  * carifquit (Ping timeout: 250 seconds)
10:53:06  * mezodquit (Remote host closed the connection)
10:53:30  * mezodjoined
10:53:46  * feelextrajoined
10:55:02  * ByteCrunchquit (Ping timeout: 250 seconds)
10:55:16  * slajaxjoined
10:57:08  * tarkusquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:57:30  * ByteCrunchjoined
10:59:33  * trevorjoined
11:00:01  * kannarfrquit (Quit: ZNC 1.7.1 - https://znc.in)
11:01:31  * kannarfrjoined
11:02:08  * kpattichaquit (Ping timeout: 245 seconds)
11:03:19  * SirPolequit (Ping timeout: 268 seconds)
11:03:22  * carifjoined
11:05:49  * mazulaquit (Ping timeout: 256 seconds)
11:05:52  * threenucquit (Ping timeout: 250 seconds)
11:07:09  * Notiquit (Quit: Konversation terminated!)
11:10:49  * Notijoined
11:11:38  * promethjoined
11:11:56  * platonicjoined
11:12:30  * circ-user-kM1qfquit (Ping timeout: 246 seconds)
11:13:35  * Forsaken87quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
11:15:13  * Forsaken87joined
11:16:28  * platonicquit (Ping timeout: 246 seconds)
11:17:20  * homaarquit (Quit: Leaving)
11:18:06  * carifquit (Ping timeout: 246 seconds)
11:18:10  * marthinalquit (Read error: Connection reset by peer)
11:19:09  * marthinaljoined
11:21:31  * blackbabajoined
11:23:38  * slajaxquit (Ping timeout: 250 seconds)
11:24:01  * blackbabapart
11:24:04  * marthinalquit (Ping timeout: 250 seconds)
11:24:59  * SirPolejoined
11:25:35  * tombusbyquit (Ping timeout: 256 seconds)
11:25:54  * tombusbyjoined
11:28:24  * marthinaljoined
11:29:04  * aerexquit (Ping timeout: 246 seconds)
11:33:30  * carifjoined
11:34:14  * toiquit (Quit: Leaving.)
11:34:37  * marthinalquit (Remote host closed the connection)
11:34:42  * macwinnerjoined
11:34:56  * toijoined
11:37:04  <Nicmavr>Hi all, is there a way to get a list of all my registered routes in Express 4? I've previously developed with Ruby on Rails and used "rake routes" with that so I'm looking for something similar for Node...
11:38:10  * carifquit (Ping timeout: 246 seconds)
11:39:32  * macwinnerquit (Ping timeout: 250 seconds)
11:39:34  * circ-user-kM1qfjoined
11:42:46  * nahtnamquit (Quit: Connection closed for inactivity)
11:45:19  * tarkusjoined
11:45:51  * maogradyjoined
11:48:29  * marthinaljoined
11:50:49  * mazulajoined
11:50:57  <prometh>Nicmavr: i'm not an avid express user, but you could try manually searching your express instance with a console.log using node's --inspect cli option
11:51:06  * carifjoined
11:56:05  * threenucjoined
11:56:08  * Starz0rquit (Ping timeout: 250 seconds)
11:56:25  * heyitsramaquit (Ping timeout: 255 seconds)
11:57:04  * Mattiaslndstrmjoined
11:57:42  * Starz0rjoined
11:58:39  * heyitsramajoined
11:59:46  * Sharaaljoined
12:04:07  * trevorquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:04:24  * ahmed_elgabrijoined
12:05:21  * threenucquit (Ping timeout: 246 seconds)
12:06:16  * threenucjoined
12:06:22  * Catalysmquit (Quit: Bye 👋)
12:07:16  * ahmedelgabriquit (Ping timeout: 250 seconds)
12:09:37  * elichai2joined
12:11:36  * heyitsramaquit (Ping timeout: 250 seconds)
12:14:39  * jrollquit (Quit: brb)
12:15:33  * jrolljoined
12:15:39  * paulcarrotyjoined
12:17:18  * kpattichajoined
12:17:39  * kpattichaquit (Remote host closed the connection)
12:17:54  * kpattichajoined
12:18:28  * kpattichaquit (Client Quit)
12:18:49  * kpattichajoined
12:20:14  * Kaivojoined
12:20:26  * Lucas_Grayquit (Read error: Connection reset by peer)
12:20:39  * Forsaken87quit (Ping timeout: 258 seconds)
12:20:56  * Forsaken87joined
12:21:21  * Lucas_Grayjoined
12:29:54  * Nicmavrquit (Read error: Connection reset by peer)
12:31:30  * marthinalquit (Remote host closed the connection)
12:31:46  * Nicmavrjoined
12:35:53  * carifquit (Ping timeout: 245 seconds)
12:40:08  * zfigzjoined
12:40:22  <satoriprints>swp
12:40:38  * danecandojoined
12:44:05  * heyitsramajoined
12:45:04  * threenucquit (Ping timeout: 268 seconds)
12:46:12  * renlolojoined
12:48:01  * trevorjoined
12:49:07  * Jetimonjoined
12:49:33  * Jetimonquit (Remote host closed the connection)
12:50:44  * renloloquit (Ping timeout: 250 seconds)
12:50:48  <mazula>promise.all return a promise?
12:51:55  * carifjoined
12:52:28  * circ-user-kM1qfquit (Ping timeout: 250 seconds)
12:52:44  <_rgn>documentation
12:53:13  <avu>Nicmavr: https://stackoverflow.com/questions/14934452/how-to-get-all-registered-routes-in-express - first hit when googling for 'express get all routes'
12:53:30  <avu>Nicmavr: or https://www.npmjs.com/package/express-list-endpoints - second hit
12:53:37  <avu>mazula: yes
12:54:45  * SirPolequit (Disconnected by services)
12:54:47  <mazula>it's weird in my case items it not a promise https://gist.github.com/kindles/0aa9894de1b8ee375dbd255e3e65d01e
12:56:41  <avu>mazula: sure it isn't because you already await the promise returned by Promise.all
12:57:37  * carifquit (Ping timeout: 255 seconds)
12:57:49  * kapil____quit (Quit: Connection closed for inactivity)
13:00:32  * rendar_joined
13:01:28  * rendarquit (Ping timeout: 246 seconds)
13:02:19  * furyjoined
13:02:45  * tarkusquit (Ping timeout: 246 seconds)
13:03:10  * ferlzcjoined
13:04:15  * hemstockquit (Read error: Connection reset by peer)
13:06:20  * hemstockjoined
13:09:03  * plutoniixjoined
13:09:12  <mazula>https://gist.github.com/kindles/f80fc87df28a4c5d8977aafd31df5e29 any shortcut? (in a reduce ^^)
13:12:55  * carifjoined
13:13:32  * platonicjoined
13:14:31  * alem0larsquit (Ping timeout: 244 seconds)
13:14:50  * mezodquit (Read error: Connection reset by peer)
13:15:17  * mezodjoined
13:15:19  * KidSk8quit
13:17:05  * kjartanquit (Read error: Connection reset by peer)
13:17:32  * heyitsramaquit (Ping timeout: 245 seconds)
13:18:34  * martianboyquit (Read error: Connection reset by peer)
13:19:15  * kjartanjoined
13:19:16  * platonicquit (Ping timeout: 272 seconds)
13:20:35  * supernov1hjoined
13:21:00  * slajaxjoined
13:28:11  <DeltaHeavy>mazula I'd simplify that
13:28:23  <DeltaHeavy>I'd make it...less shorter
13:28:39  <mazula>current state
13:28:39  <mazula>https://gist.github.com/kindles/985bc04053cb0d53c16ba42ae3e8b264
13:28:51  <DeltaHeavy>mazula Btw you can't await in a map really
13:28:53  <mazula>not finished :'(
13:28:58  <mazula>ah?
13:32:02  * hollusionjoined
13:33:00  * devc_joined
13:33:01  * devcquit (Remote host closed the connection)
13:34:14  * marthinaljoined
13:35:25  <DeltaHeavy>mazula https://repl.it/@mpalmr/InsidiousNaiveSquares
13:39:23  * iclonquit (Remote host closed the connection)
13:40:05  * iclonjoined
13:40:19  * supernov1hquit (Quit: leaving)
13:41:19  * edrocksjoined
13:43:02  * carb0n_quit (Ping timeout: 250 seconds)
13:44:42  * Starz0rquit (Read error: Connection reset by peer)
13:44:53  * Starz0rjoined
13:45:35  * kerrangjoined
13:46:33  * heyitsramajoined
13:48:10  * espBerryquit (Quit: espBerry)
13:48:38  * marthinalquit (Remote host closed the connection)
13:50:58  * carifquit (Ping timeout: 250 seconds)
13:51:13  * Sharaalquit (Remote host closed the connection)
13:52:30  * geoffo_joined
13:52:48  * slajaxquit (Ping timeout: 246 seconds)
13:53:16  * bsanfordjoined
13:53:26  * geoffoquit (Ping timeout: 268 seconds)
13:53:47  * satoriprintsquit (Quit: Lost terminal)
13:55:00  * geoffo_changed nick to geoffo
13:55:20  * xieyuhengjoined
13:56:02  <xieyuheng>where to look for typescript typedoc of nodejs ?
13:57:23  <xieyuheng>the only doc is source code of @types/node ?
13:58:03  * jottrjoined
13:58:14  * herme5quit (Quit: learning to speak the language of lightning)
13:58:30  * herme5joined
13:59:01  * herme5quit (Client Quit)
13:59:47  <DeltaHeavy>xieyuheng That would be it
14:00:06  <DeltaHeavy>Like idk why you'd need typedocs for it really. There are user docs, and there's your type definitions right there
14:00:40  * marthinaljoined
14:01:52  * marthinalquit (Remote host closed the connection)
14:05:02  <xieyuheng>ok
14:06:05  * carifjoined
14:06:16  * bsanfordquit (Quit: Leaving)
14:07:03  * darkSeidjoined
14:07:43  * mazulaquit (Ping timeout: 256 seconds)
14:09:51  * on3pkjoined
14:10:07  * marthinaljoined
14:10:10  * marthinalquit (Remote host closed the connection)
14:11:01  <joepie91>welp, and this would be precisely why I was telling people that signing of updates should happen offline for any large deployments: https://twitter.com/KimZetter/status/1110167942749052928
14:11:21  * a_sarafquit (Ping timeout: 246 seconds)
14:11:24  * marthinaljoined
14:11:52  * martianboyjoined
14:12:36  <_rgn>what do you mean by signing of updates should happen offline and how is it a remedy here?
14:12:38  * carifquit (Ping timeout: 250 seconds)
14:12:55  * Keytapquit (Read error: Connection reset by peer)
14:12:58  * marthinalquit (Remote host closed the connection)
14:13:05  * martianboyquit (Client Quit)
14:13:06  * feelextraquit (Ping timeout: 272 seconds)
14:13:06  <joepie91>_rgn: the signing certificate should never touch an internet-connected computer, basically
14:13:22  * martianboyjoined
14:13:29  <joepie91>signing should happen on a computer that is not connected to the internet, preferably also not directly, as this introduces a significant barrier for certificate theft/abuse
14:13:39  <joepie91>(talking about release signing here ofc)
14:14:14  * herme5joined
14:14:19  * Roughyjoined
14:14:21  <_rgn>can you be certain hackers didn't get their hands on the certificate physically?
14:14:30  <joepie91>because if you sign offline, an adversary needs to either a) mount a physical attack on the signing system, or b) mount a much more complex attack that persists on USB thumbdrives and whatnot and compromises multiple heterogeneous systems, to survive its trip to the offline system
14:14:31  * herme5quit (Client Quit)
14:14:41  * xieyuhengquit (Remote host closed the connection)
14:14:49  <joepie91>which is waaaaay more difficult than "pop a random webapp, pop an oudated samba server, hey we have access to the cert now"
14:15:01  * marthinaljoined
14:15:01  <joepie91>_rgn: no, but it is very unlikely
14:15:07  <joepie91>given the description of events
14:15:19  * herme5joined
14:15:42  <joepie91>so the thing with vendors is that, almost without exception, when something gets compromised, they want to do damage-control by reiterating all the good parts of their security and ignoring all the bad parts
14:15:56  <joepie91>which means that /if/ there were offline signing, it's extremely likely that ASUS would have extolled that in their public statement
14:16:04  <joepie91>because it's a very powerful argument to claim "not our fault"
14:16:18  <joepie91>the fact that they've remained silent on it suggests that offline signing was not done here
14:16:42  <joepie91>that doesn't totally rule out that it was signed offline and the system was attacked physically, it's just very very unlikely
14:17:26  <joepie91>also, according to Kaspersky...
14:17:28  <joepie91>“ASUS was one of the primary targets of the CCleaner attack,” Raiu said. “One of the possibilities we are taking into account is that’s how they intially got into the ASUS network and then later through persistence they managed to leverage the access … to launch the ASUS attack.”
14:20:00  * heyitsramaquit (Ping timeout: 250 seconds)
14:21:31  * sarafjoined
14:23:40  * yakizajoined
14:24:11  <yakiza>Hello guys I am trying to work with google's API for BigQuery and i struggle to find a good tutorial on how to insert stream data etc
14:24:29  <yakiza>anyone has a resource or a bit of guidance for a mere mortal like my self
14:27:28  * carifjoined
14:27:48  * deviantferoquit (Ping timeout: 250 seconds)
14:29:52  * djddutyquit (Ping timeout: 255 seconds)
14:35:13  * toothlessgjoined
14:35:45  <_rgn>joepie91: see your point, thanks
14:36:09  * dh128_quit (Ping timeout: 244 seconds)
14:37:58  * carifquit (Ping timeout: 255 seconds)
14:40:32  * dh128joined
14:43:37  * EREVANjoined
14:46:57  * spacesuitdiverjoined
14:47:44  * Lucas_Grayquit (Ping timeout: 250 seconds)
14:48:28  * toiquit (Ping timeout: 250 seconds)
14:49:45  * silvanjoined
14:52:09  * Lucas_Grayjoined
14:52:27  * sarafquit (Read error: Connection reset by peer)
14:54:41  * Dbuggerjoined
14:55:42  * bluezonejoined
14:55:46  * sarafjoined
14:55:55  * kerrangquit (Remote host closed the connection)
14:56:48  * Guest26203quit (Ping timeout: 272 seconds)
14:57:11  * willcjoined
14:58:47  * Wryhderjoined
14:59:34  * Lucas_Grayquit (Ping timeout: 255 seconds)
14:59:45  * Wryhderchanged nick to Lucas_Gray
15:00:02  * kannarfrquit (Quit: ZNC 1.7.1 - https://znc.in)
15:01:31  * kannarfrjoined
15:01:53  * alexge50joined
15:01:56  * carifjoined
15:03:11  * wsierocijoined
15:03:34  * feelextrajoined
15:03:37  * tymczenkoquit (Ping timeout: 246 seconds)
15:05:22  * robin___joined
15:05:58  <robin___>Hello! How can I make a good project structure when I have a lot of event listeners which calls a lot of functions, example: https://pastebin.com/raw/37DGNhZQ
15:06:16  <robin___>can I move the eventlisteners from the app.js file to another? :)
15:06:38  * carifquit (Ping timeout: 244 seconds)
15:10:34  * Lucas_Grayquit (Ping timeout: 250 seconds)
15:11:10  * threenucjoined
15:11:13  * Lucas_Grayjoined
15:11:18  * martianboyquit (Ping timeout: 245 seconds)
15:12:03  * sarafquit (Quit: Leaving)
15:15:32  * kakashiA1quit (Ping timeout: 268 seconds)
15:15:50  * platonicjoined
15:15:54  * rendar_quit
15:16:12  * rendarjoined
15:16:12  * rendarquit (Changing host)
15:16:12  * rendarjoined
15:17:03  * codebamjoined
15:17:34  <hollusion>how do i do raw queries in sequelize that have multiple operations? like: "SET @var = 1; SELECT ..."
15:18:12  * Notiquit (Quit: Konversation terminated!)
15:18:18  <hollusion>atm it crashes with "You have an error in your SQL syntax" but i can run the same query in workbench without any problem
15:18:22  * Lucas_Grayquit (Read error: Connection reset by peer)
15:19:41  * Lucas_Grayjoined
15:20:25  * platonicquit (Ping timeout: 246 seconds)
15:22:19  * heyitsramajoined
15:23:00  * SGroverjoined
15:23:35  * spacesuitdiverquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:24:04  * CoderForLifequit (Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)
15:25:02  * renlolojoined
15:26:10  * carifjoined
15:28:02  * FunnyLookinHatjoined
15:29:37  * alem0larsjoined
15:31:17  * jottrquit (Ping timeout: 245 seconds)
15:33:14  * carifquit (Ping timeout: 250 seconds)
15:34:47  * tymczenkojoined
15:36:19  * jottrjoined
15:36:58  <codebam>why are these api calls returning all the same data? https://0x0.st/zK_L.txt
15:37:06  <codebam>does node-fetch have some sort of cache?
15:39:45  * computer2000joined
15:41:04  * Mattiaslndstrmquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:41:44  * CoderForLifejoined
15:43:27  * aananevjoined
15:44:09  <deadbeat>codebam: from a first look, "await getQuote().then(await sleep(delay))" will not return whatever it gets from getQuote, but the result of the sleep, which should be the delay amount
15:45:06  <codebam>deadbeat: well I mean it works fine when I give it 1
15:45:32  <codebam>it returns one quote, and sends it to the telegram api properly
15:46:15  <codebam>but um, how should I write that then?
15:48:00  * carifjoined
15:48:25  * Lucas_Grayquit (Max SendQ exceeded)
15:49:21  * proasyncquit (Read error: Connection reset by peer)
15:49:28  * AtumTjoined
15:49:31  * martianboyjoined
15:49:59  <deadbeat>hm, then ignore my comment, seems i missed something in that flow if it works.
15:51:14  * proasyncjoined
15:51:26  * Lucas_Grayjoined
15:52:44  * carifquit (Ping timeout: 250 seconds)
15:53:04  <deadbeat>ooh, yeah, Array.fill only executes getQuote once, and uses that to fill the Array, that's the problem :)
15:53:44  * pknulljoined
15:54:00  * munsterbergjoined
15:54:37  * codebamquit (Ping timeout: 245 seconds)
15:54:43  <robin___>I added my question to stack overflow: https://stackoverflow.com/questions/55341702/structure-event-listeners-in-node-js thanks for any potential future replies :)
15:54:54  * threenucquit (Ping timeout: 250 seconds)
15:55:15  * slajaxjoined
15:55:18  * pathroclequit (Ping timeout: 246 seconds)
15:55:45  * devcjoined
15:56:13  * devc_quit (Remote host closed the connection)
15:56:44  * kevireilly_joined
15:56:51  * renloloquit (Ping timeout: 268 seconds)
15:57:16  * Lucas_Grayquit (Ping timeout: 244 seconds)
15:57:33  * GreenJellojoined
15:58:08  <deadbeat>robin___: well, write a js file containing func1, export func1. In app.js import func1 and use like before. What exactly did you try, what is the problem?
15:58:38  <robin___>deadbeat: can I move the event.on(...) part from app.js into another file?
15:59:06  <robin___>sure i can move the functions to a separate file, but app.js will still be huge :)
15:59:20  * silvanquit (Ping timeout: 244 seconds)
16:00:31  <deadbeat>to move that part, you have to give the other file(module) the apiXEvents instance on which it should add the eventlistener. This means either: Doing the import and call to ApiX directly in that file, or expose a method whic takes it as an argument
16:01:11  * renlolojoined
16:01:15  <robin___>hmm. I am not 100% sure how you mean. Do you have a simple example?
16:01:44  <deadbeat>if you have time, i will come back later, have to leave now
16:01:51  <robin___>sure! thanks
16:01:55  * Chuguniyquit (Ping timeout: 244 seconds)
16:02:32  * kevireilly_quit (Quit: kevireilly_)
16:02:45  * Chuguniyjoined
16:03:00  * computer2000quit (Remote host closed the connection)
16:04:55  * edrocksquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:05:06  * carifjoined
16:06:18  * yaoxujoined
16:07:29  * groomquit (Quit: Leaving.)
16:09:22  * gambl0r3joined
16:09:35  * antsmartianjoined
16:11:15  * chargenquit (Quit: BBL)
16:11:31  * sQVequit (Quit: Bye!)
16:13:22  * renloloquit (Ping timeout: 255 seconds)
16:15:00  * aerexjoined
16:17:16  * wsierociquit (Remote host closed the connection)
16:18:01  * macwinnerjoined
16:18:33  * circ-user-kM1qfjoined
16:20:16  * circ-user-kM1qfquit (Remote host closed the connection)
16:21:02  * circ-user-kM1qfjoined
16:21:09  * fatalhaltjoined
16:21:11  * proasyncquit (Ping timeout: 246 seconds)
16:21:52  * tymczenkoquit (Remote host closed the connection)
16:21:57  * proasyncjoined
16:22:11  * tymczenkojoined
16:22:33  * marthinalquit (Remote host closed the connection)
16:22:57  * slajaxquit (Ping timeout: 246 seconds)
16:23:49  * Mattiaslndstrmjoined
16:26:06  * Half-Wordquit (Ping timeout: 246 seconds)
16:26:14  * Laptop_minijoined
16:26:19  * marthinaljoined
16:26:57  * marthinalquit (Remote host closed the connection)
16:27:15  * paulcarrotyquit (Remote host closed the connection)
16:28:04  * yaoxuquit (Quit: Quit - Yaoxu)
16:28:33  * yaoxujoined
16:28:54  * robin___quit (Remote host closed the connection)
16:29:12  * yaoxuquit (Max SendQ exceeded)
16:29:48  * yaoxujoined
16:31:14  * Guest26203joined
16:34:12  * tymczenkoquit (Quit: Leaving)
16:34:28  * ahmed_elgabriquit (Ping timeout: 268 seconds)
16:34:46  * gambl0r3quit (Ping timeout: 250 seconds)
16:36:04  * wonko7quit (Ping timeout: 250 seconds)
16:36:23  * cthulchu_joined
16:38:32  * kriskropdquit (Ping timeout: 250 seconds)
16:39:26  * iam730joined
16:41:25  * sinapintojoined
16:41:51  * leatherface416joined
16:43:09  * yakizaquit (Quit: WeeChat 2.4)
16:45:12  * antsmartianquit (Remote host closed the connection)
16:46:44  * circ-user-kM1qfquit (Ping timeout: 246 seconds)
16:47:11  * conyersquit (Read error: Connection reset by peer)
16:48:17  * shinzojoined
16:48:27  * yaoxuquit (Quit: I have to go. ZZZzzz…)
16:50:40  * renloljoined
16:51:31  * orbyt_joined
16:51:58  * carifquit (Ping timeout: 250 seconds)
16:52:06  * duderonomyjoined
16:54:59  * led_dark_1joined
16:57:01  * EREVANquit (Ping timeout: 246 seconds)
16:57:36  * orbyt_quit (Ping timeout: 250 seconds)
16:58:43  * wsierocijoined
16:59:33  * EREVANjoined
17:00:08  * marthinaljoined
17:01:27  * maogradyquit (Remote host closed the connection)
17:02:04  * ragecryxjoined
17:03:10  * wsierociquit (Ping timeout: 258 seconds)
17:04:15  * marthinalquit (Ping timeout: 246 seconds)
17:04:39  * marthinaljoined
17:06:08  * javascriptninja2joined
17:06:56  * carifjoined
17:07:00  * javascriptninja2quit (Client Quit)
17:07:25  * big_reggiejoined
17:07:40  <big_reggie>is there anyway to map a dependency of a main dependency using npm link?
17:07:51  <big_reggie>i know its possible for a main dependency but
17:08:36  * keytapjoined
17:09:09  * Chuguniyquit (Ping timeout: 246 seconds)
17:09:09  * reactormonkquit (Ping timeout: 246 seconds)
17:09:53  * codebamjoined
17:10:54  <danneu>"await getQuote().then(await sleep(delay))" is wrong. you want .then((x) => sleep(delay).then(() => x))
17:12:09  <danneu>.then(await sleep(delay)) executes right now, before even getQuote() is evaluated, not in the future tick of .then()
17:12:40  * darkSeidquit (Quit: My MacBook Air has gone to sleep. ZZZzzz…)
17:12:42  <keytap>Good afternoon all. Seeking a bit of clarification on an issue I"m a bit confused about. According to the docs for implementing a readable stream (https://nodejs.org/api/stream.html#stream_readable_push_chunk_encoding), the push method should only be called from within the _read method. Yet literally in the first example they give for using it, they're calling push from an event callback. While I know
17:12:48  <keytap>that works, I'm confused about why the docs mention that it must be called from within the _read method.
17:12:51  * marthinalquit (Remote host closed the connection)
17:13:12  * Laptop_miniquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
17:13:24  * gambl0r3joined
17:13:40  <keytap>Should they not be queueing the chunks up in an internal queue and then push the data from that queue when _read is called?
17:14:38  * charles_quit (Ping timeout: 250 seconds)
17:14:47  * wonko7joined
17:14:51  * ahmed_elgabrijoined
17:16:34  <codebam>danneu: oh, okay. thank you!
17:16:44  * Booster2oooquit (Quit: Lost ... the game)
17:17:41  * platonicjoined
17:18:34  * marthinaljoined
17:18:41  * marthinalquit (Remote host closed the connection)
17:19:24  * ahmed_elgabriquit (Ping timeout: 250 seconds)
17:19:24  * macwinnerquit (Ping timeout: 250 seconds)
17:19:34  <danneu>keytap: node streams are universally confusing, but it's just trying to stress that .push() is for internal impl. if push() was part of your external api, you'd want a writeable or duplex stream.
17:20:44  <danneu>for example, the key word is "intended" in "intended to be used inside _read()"
17:21:19  <codebam>danneu: .fill(await getQuote().then(x) => sleep(delay).then(x));
17:21:21  <codebam>is that right?
17:21:29  <codebam>it's giving me a syntax error on the first =>
17:21:59  <danneu>.then(fn) takes a function. arrow fn syntax is `(x) => y`
17:22:00  <keytap>danneu: Man you are telling me... Been trying to wrap my head around streams for the last week or so... Anyways, that makes sense. Thanks for the response.
17:22:18  * platonicquit (Ping timeout: 250 seconds)
17:22:20  <codebam>is this what you meant? .fill(await getQuote().then(x => sleep(delay).then(x)));
17:22:28  <danneu>codebam: so replace .then(fn) with (x) => y and you get .then((x) => y). you had .then(x) => y
17:22:33  * carifquit (Ping timeout: 245 seconds)
17:22:51  <codebam>danneu: yeah I fixed that
17:23:06  * mateusbs17changed nick to mateusbs17|brb
17:23:55  <danneu>keytap: node streams are hard even for people who have been using it for years. one reason is the attempted unification of a streams2 -> streams3 api under the same api.
17:24:22  <danneu>but you kinda arrive at your own patterns/cookbook from experimentation
17:24:28  * Fictionjoined
17:24:34  * i1nfusionquit (Remote host closed the connection)
17:24:42  * shokyjoined
17:25:01  * i1nfusionjoined
17:25:03  * al-damirijoined
17:25:03  * waffelnquit (Ping timeout: 245 seconds)
17:25:21  <danneu>hell, i have to read the docs every time to remember what the diff is between "end", "close" and "finish"
17:25:27  * plutoniixquit (Quit: Leaving)
17:25:38  * waffelnjoined
17:25:53  <codebam>danneu: that code you sent isn't waiting at all
17:25:59  <keytap>danneu: Stop it you're giving me PTSD flashbacks!
17:26:00  <codebam>and the promises aren't being resolved
17:26:04  * shoky_quit (Ping timeout: 246 seconds)
17:26:17  <codebam>the array is full of null
17:27:00  <danneu>codebam: oh, didn't see the original code til now. yeah, because Array().fill(x) is synchronous and will not wait on the result of .fill(await promise)
17:27:07  * kjartanquit (Read error: Connection reset by peer)
17:27:14  <codebam>oh, how can I fill async?
17:27:17  * beefjoejoined
17:27:28  * Llama052joined
17:27:38  <danneu>you can .then(x => Array().fill(x))
17:27:40  <Llama052>What's good my dudes.
17:27:58  <codebam>oh, okay. will try that thanks!
17:28:01  <codebam>:)
17:28:11  <danneu>codebam: for example, your code that depends on async stuff basically is pulled into the 'async world' too.
17:28:37  <codebam>yeah so I have to make sure all the code I write is async
17:29:34  * kjartanjoined
17:29:35  * Fictionquit (Quit: Page closed)
17:30:34  <danneu>one simple way to get things working is to write everything inside `async function run() { ... }; run().catch(console.error)` so that you can await code. i often start there when exploring ideas.
17:30:51  * feelextraquit (Ping timeout: 246 seconds)
17:30:53  * Dan_joined
17:31:11  <codebam>danneu: oh that's a good idea
17:31:15  * edrocksjoined
17:31:17  <codebam>I'm going to do that, thank you!
17:31:17  * Dan_changed nick to Guest46912
17:31:21  * EREVANquit
17:34:56  * Sweepyofacequit (Quit: The Lounge - https://thelounge.chat)
17:35:00  * Altrajoined
17:35:18  * Sweepyofacejoined
17:38:25  * carifjoined
17:38:31  * Guest46912quit (Ping timeout: 256 seconds)
17:39:08  * setpillquit (Quit: o/)
17:39:36  * toijoined
17:42:52  * codebamquit (Ping timeout: 246 seconds)
17:44:27  * wsierocijoined
17:45:32  * edrocksquit (Ping timeout: 246 seconds)
17:47:04  * carifquit (Ping timeout: 246 seconds)