« first day (2600 days earlier)      last day (2573 days later) » 

15:00
they've been around for a while
ctvnews.ca/politics/… Canada is one step closer to legal pot.
Anyway
Typescript makes JS slighly more beareable
A lot, actually
just using vscode to write JS is a huge difference
from the type information it gives you
I only started using vscode when I switched to TS
15:04
VSCode is great ye
Anybody knows GraphQL here?
I have a philosophical question
I like philosophy
ask and folks will debate
ohh will we ever
I guess I don't have work to do for the next few hours.
Say a guest user (not logged in) can only use a specific subset of queries and mutations, should I show them in the public schema and then throw an "unauthorized" error if it attempts to use them without loggin in or should I just hide them entirely from the schema (since the schema can be generated dynamically)?
a debate? In which name would ya speak ssube?
15:06
brb need to stretch first
did I hear a crack there?
There's also the fact that tools like graphiql, I think, cache the schema.
I would have to try and see if there are issues
as the introspection query builds the schema, what hooks are available?
I haven't used introspection terribly much
what do you mean with "mutations"?
@Shoe Hiding them should provide no benefit
15:07
that seems like the place to implement ACLs
full row updates or specific updates
@KarelG GraphQL mutations
@OliverSalzburg Yeah. I was just wondering
Maybe it's cleaner from the point of view of the API user, since what he/she sees is what he/she can use
You can do that with a nicer UI for the schema
filter at that level
graphql looks so nice
I should start using it
hiding it from the schema would be convenience through obscurity, so meh
15:09
The API user is probably gonna be just me, but you never know
Good morning all.
I guess I don't get any philosophy today
You're going to return a 401/403 either way. So that is already done. Adjusting your interface in anticipation of a request result is another layer of complexity that is not worth it. You might ask yourself, why stop with authorization factors? Why not factor more things into the adjustment of the schema?
Because fuck that, that's why
Everyone who made a bunch of money in the recent cryptocurrency burst should show solidarity by posting their wallet addresses
Right
15:15
@Vap0r So you can send more money?
@OliverSalzburg hahaha no you can't rob a safe that you don't know the location
@Vap0r You can in cryptocurrency
@KendallFrey maybe I'm miscommunicating location, but I didn't think it's possible to take coin you don't know about
Unless you did some kind of weird redirect attack
depends on how you define "know about"
biblically
I know bitcoin biblically because it had sexual relations with me
15:19
lol, but like when parity lost all those coins, they were part of a multi-user contract but didn't consciously know about the coin
afaik you can be party to contracts without knowing or caring until they run
That's fair I suppose I was imagining a more traditional attack involving the bitcoin owner as the vector for "infiltration"
Not an actual zero-day (that wallet parity thing was technically an 0day right?)
well, it's a non-traditional medium, so we'll probably see non-traditional attacks
and that one was just a bug
You get to a bitcoin wallet the same way you get to any other wallet
Through the owner's pants
I wish I could remember the details, but I remember hearing about something where wallets were used by non-owners
15:22
@SterlingArcher You (https://stackoverflow.com/users/774078/sterling-archer) have 15002 reputation, earned 5 rep today, asked 100 questions, gave 573 answers, for a q:a ratio of 100:573.
avg. rep/post: 22.29. Badges: 10g 51s 83b
you got your grade 15, @SterlingArcher?
Got my 15. Now I just need 5k more to delete
> the project has generated over 3,000 trillion private keys and checked them against existing bitcoin addresses to see if they work, and has found three that do and contain bitcoin.
15:22
zz, spent 2 hours debugging my nginx config
turns out the dns hadn't propagated yet
I'm not smart enough for this server shit
@KendallFrey wow that's pretty significant.... What's the strength of the encryption used in bitcoin?
@ssube "You mark my words"?
@Vap0r I expect it's fairly standard integer factorization stuff, comparable to RSA
I don't actually know
15:25
I see
@KendallFrey Meaning they generated 3 private keys and (3000 trillion - 3) random strings that don't mean anything
So I'm guessing the idea that their are probably millions (billions?) of bitcoin addresses makes this more possible?
you must not have seen Trailer Park Boys
@ssube two smokes, lets go
@rlemon he looks like my brother with worse sideburns
15:26
@OliverSalzburg It's basically like grinding tons of keys and trying them on all the houses in the neighbourhood
TPB is like.. iconic.
!!s/iconic/ionic/
@ShrekOverflow That didn't make much sense. Use the !!/help command to learn more.
fail
@KendallFrey Yeah, I just didn't like the terminology :P
15:26
@ShrekOverflow TPB is like.. ionic. (source)
@OliverSalzburg what's wrong with the terminology
@KendallFrey except there's no neighborhood watch, but you do have to try every house in the world
@ssube having the ability to try every house in the world easily actually increases your chances of success tho, no?
@ssube Except that each house's address is generated from its key, so you don't need to guess and check
@Vap0r A random string of bytes only becomes a private key once it makes sense to keep the random string private, because it protects something. Until then, it doesn't mean anything
15:29
statistically, I think it's impossible to try every key without first having a solid understanding of how grilled cheese dynamics work.
@Vap0r your overall chance goes up, but the time it takes goes up more quickly
@OliverSalzburg ahhh gotcha. would pseudo-key be better? Or schrodingers key because it's thought to be a key until it's actually used?
@ssube good point
@Vap0r I dunno. I guess I just didn't like it because it made the whole thing sound like an achievement and I don't see it that way#
Where's that grilled cheese copy paste..
15:31
if it has copy or paste in it, it's a melt, not a grilled cheese
all grilled cheeses are melts, but not all melts are grilled cheese
I don't know why people have this argument. If there's bread then it's a grilled cheese sandwich. If there's no bread it's just grilled cheese
Is it an oxymoron to have a solid understanding of melted cheese?
A grilled cheese consists of only these following items. Cheese. Bread with spread (usually butter). This entire subreddit consist of "melts". Almost every "grilled cheese" sandwich i see on here has other items added to it. The fact that this subreddit is called "grilledcheese" is nothing short of utter blasphemy. Let me start out by saying I have nothing against melts, I just hate their association with sandwiches that are not grilled cheeses. Adding cheese to your tuna sandwich? It's called a Tuna melt. Totally different. Want to add bacon and some pretentious bread crumbs with spinach?
u r an oxymoron
15:33
@Vap0r if you grill it tho it is a cheese chip or cheese crisp
which are delicious btw
depends, are you british or free?
@Cereal instructions unclear, now eating cold cheese on a piece of bread
single, does it count?
MURICA
15:34
ok thats it, im grilling cheese when i get home
@towc idk, do you?
yea I think dinner tonight will be grilled cheese
@rlemon 1 2 3 BOOM!
@rlemon the above is called saganaki, it's greek cheese lit on fire as they bring it out to you
15:34
deep fried battered camembert with cranberry is where its at
grilled cheese made with brie
my mouth is watering already
Doesn't melting cheese make it undergo an non-reverseable chemical change?
sweet dreams are made of cheese ...
@Vap0r don't they solidify it by melting and pressing it?
@Vap0r vs nagasaki, the japanese cheese that lights you on fire
15:36
@rlemon i think its just pressing the cheese curds
I could be wrong tho
@rlemon I thought "normal" curd cheese just had the whey pressed out of it
string cheese would be done by melting maybe
@ssube HAHA holy fuck had to look it up to be sure but damn dude.... nice
I watched a video on how to make fresh mozzarella and he for sure had it on the stove for a while.
before pressing it
@rlemon i'm still not understanding. you initially said my solution of sending the index.html as a resource seemed wrong. what does that mean? do you mean sending it explicitly with sendFile in a route handler? I am now simply running app.use(express.static(__dirname + "dist")) but i'm still getting either a 404. or when i change something slightly (still not sure what i'm really doing)..
i'll get the index.html but then an "uncaught syntax error: <" . which seems like its sending the index.html again for the html's bundle.js script request
@rlemon you might be right but that could be to lower the moisture content?
15:37
I love the tiny fresh mozzarellas for sandwiches
My question is, is melted cheese actually a liquid?
I mean, it's pretty damn springy
the good stuff anyway
@KendallFrey isn't glass a liquid?
Maybe it's something like that?
I think that's a myth
well... crap
@Vap0r I think there's a word for it, let me look
15:39
amorphous solid
I know they're talking about glass but it really feels like they're taking a dig at me
I read amorphous solid and immediately felt indignant
ugh, I need to print that fan mod, I can't see small stuff as it prints
@ssube ehh I've heard that mod blows
it helps
15:40
@AlexBollbach check out express.static options
you wanna disable index to start
maybe specify extensions for your html content
Hey, so I just got skyrim for the switch... I never played morrowind or oblivion or skyrim and this game is sick! that's all
@Vap0r blowing mods? Are we talking about @MadaraUchiha? :D
but how you're doing it just seems messy to me. I'd have the static images/js/css (the assets) served and the view (the html) sent with res.sendFile and the proper headers
@SterlingArcher I've tried providing free fellatio to him multiple times and have been rebuked at every step
but that's how I learned how to do it back in like express 2
15:41
Not a team player at all IMO
nobody trusts free fellatio
So my date last night went better than expected
user1596138
Lol upgrading to webpack 2
user1596138
Reading about 3/4
15:42
@Jhoverit lol I'm with you
@SterlingArcher fancy, so you went out with Mrs. Frey?
blimey, he's changed
@rlemon i'm inclined to think something extra is going wrong. everything i've read seems to be straightforward. this shouldn't be so complex. I set my static.express directory from which to serve static files and i'm hitting those file paths in my browser.
user1596138
15:43
@KendallFrey Is that May lol
@MadaraUchiha you here for the free fellatio?
@Jhoverit indeed it is
@Vap0r Yes, get on your knees.
user1596138
Looks same to me just take the hair off lol
looks like a clinton-may cross
15:43
what is wrong with him?
@SterlingArcher I wasn't rebuked!
Madara is powerless if we keep moving our posts
i don't know why i should have to go into specifying file extension configurations and deep dive into static.express
user1596138
Oh I see it
first time I see him with a non-"top gear" hair
15:43
LOOPPPPHOOOOOOLLLEEEEE
every tutorial is like "here's a one liner to serve static assets" . yet i'm running into all these errors
Son of a bitch
Haha
@AlexBollbach because you're trying to send a view as a static resource, and that's not often how it is meant to be used
15:43
What was that @SterlingArcher? I couldn't quite get that.
It's cause his mouth is full
@rlemon this is literally what 101 react tutorials i've read said to do.
@MadaraUchiha iirc this is how WWII started
You just invaded poland my friend
Not sure if you remember correctly but I'll let you go with that
@AlexBollbach okay, I guess I'm reading different docs.
15:44
Exactly!
@SterlingArcher Except one side didn't have what amounts to godlike superpowers
@MadaraUchiha uh
blitzkrieg?
15:45
Uh
Preeeeeetty sure that's what Hitler thought
enough sex noises mmkay
@SterlingArcher Sheisse
I mean I might be paraphrasing here
@rlemon which docs? i've read the express docs on serving static files and it simply says set the dir from which to serve and call app.use
15:45
@KendallFrey make sure you never play Electronic Super Joy
Wait can we make paraphrasing a thing? @rlemon
although it's a fantastic platformer
@SterlingArcher I think there will be hundreds of thousands of people in the Houston area on December 4th
@AlexBollbach read the options link. expressjs.com/en/4x/api.html#express.static
just to let you know
15:45
but the sex noises every time you die are a bit much
bit more closely.
@TylerH well it turns out I'm flying into Dallas and not houston anyways
> index Sends the specified directory index file. Set to false to disable directory indexing.'
Poor Dallas, what did he ever do to you?
@ssube are we still talking about WW2?
15:46
you have an index file in your directory, and it's being served for all files, maybe that should set off some flags for you
@rlemon You Got Served
great movie, totally underrated
@KendallFrey If your name's debbie, quite a lot
@Vap0r Say what you like about Hitler, but he did kill Hitler
15:47
and "I shouldn't have to look into the options" is bullshit. OF COURSE you should have to look at the api's options if it isn't doing what you expect it to do
it's a rave, a platformer, and a porno
@ssube sfw
that's just stupid to assume otherwise
it is sfw
@KendallFrey damn, I never thought abou tthat
15:47
the trailer's sound might not be
@rlemon you should check out hapijs instead of express
it's pretty dope
@KendallFrey good point...
all I use express for today is to route the api endpoints and serve static content
I feel like Kendall is a supremacist
I could easily do without express, but it is super easy
15:48
not a white supremacist, just a supremacist
Like he's better than everyone and we should all die
@rlemon i'm not trying to be dense here. but i've been having express successfully serves up a index.html (that pulls in the bundle.js) for react apps for a few months now and have never had to concern myself with the options argument. oh well, I guess i've just been getting lucky. i clearly have no idea what i'm doing with express / serving files.
I'm a Kendall supremacist
@rlemon hapijs makes turning modules into plugins so you can easily implement ordered module loading
It's pretty fucking cool
hajjijs
15:49
@AlexBollbach Serving static files with express is a very clear sign of someone not knowing what they're doing
@SterlingArcher wat
why would you rely on module order?
all my server does is to send index.html and some icons. then serve my json from /api/blah
everything else is React
why would you implement module loading?
wrong word though
and my css is bundled with my js
very very little to do on the server
15:49
Express 5 has taken a very interesting way
@ssube so if you load a app config from a db like we do, it ends up being async, so since every module relies on that, we need to make sure the config plugin is loaded first
without making a wrapper callback for every other module
wat
why not use delayed init and IoC?
user1596138
My garage is collapsing on top of my car
15:50
wort wort wort
user1596138
:)
tawc
@Jhoverit did you ask it to stop?
HAMMERTIME!
@Jhoverit it shouldn't do that right?
user1596138
15:51
@SterlingArcher I'll have to snapchat you lol my ceiling/wall are like hummus
yeah it shouldn't be like that but it do
user1596138
Guess the neighbor got a pipe leaking or something.
Maybe you should call some greeks over to clean up?
user1596138
@Vap0r I don't think so but it has hapened twice since I got this one. So. Maybe
15:51
lul
@rlemon well thanks for your help. unfortunately i don't seem to possess the intelligence to work out how this server sending files business works. i'm not saying that to be a pest. i simply can't seem to grok it. which is weird considering i'm a well paid software engineer in a different area.
@Jhoverit lmao
@rlemon thanks baby
@SterlingArcher welcome to the club
to the club where I'm not
but welcome xD
@AlexBollbach I gave you hints. read the static options docs.
@ssube huh?
15:52
i will
i'm just defeated at this point.
past that, I gave you how I serve them.
and I know that works.
well thanks agian
Good luck Mr. Bollsach
i couldn't follow the help
@SterlingArcher it sounds like you/hapi are using modules to hack around a lack of DI
15:53
I think you're right
I don't think, you're right
It's rather clean though, so I don't mind. It's just how it is.
hm. I haven't used hapi much, so I can't say.
I've gone through their docs a few times, but can't find the claim as to why they're better than express
@SterlingArcher express ?
@ssube It provides more stuff, so the lock-in is tighter
15:55
@ShrekOverflow hapijs
It's express but with some extra sprinkles
Hello :)
@OliverSalzburg they made that clear, but for what benefit?
Good Evening:)
Yeah I know Auth0 backs HAPi
if I pulled out the router, and figured out my own middleware (should be simple enough at first glance) I could eliminate express today.
15:56
@ssube None. It's actually worse :P
their business proposition was unclear
just "express plus some more stuff"
express is great because it is small and concise and good at its job
why eliminate express?
ohh I won't be
I'm just pointing out that's all I really use it for. routing and I have some middleware on my api endpoints.
otherwise, there is no heavy lifting done by express
ruling out every hip new "we did X but better (because we fucked up Y)" tech is such a waste of time
Can someone point to me the best resources to study callback?
15:58
meh. lots of small things, I bet. Parsing the body, etc.
@Luggage Their inefficient route matching approach would be one reason
And the callback-based middleware approach
@rlemon check out pillarjs
@SurajJain what sort of research have you done?
passing a function is the mosy flexible way.
express is now broken down into multiple pillars
15:58
Google has lots of resources
I am reading may resources
@ShrekOverflow why?
but anyway @SterlingArcher I'd either use delayed init or have a middleware load hte config and make it available using some context
Thing is that many resources are often not correct
user1596138
Someone just welcomed me to the team lol. I've been here 3 years
15:59
@ShrekOverflow express has always been broken down into many parts
> if I pulled out the router, and figured out my own middleware (should be simple enough at first glance) I could eliminate express today.
@SurajJain what's wrong with what you're reading? Are you reading the documentation?
Ssube its further broken
for v5
@ShrekOverflow that doesn't mean I want to
even the router is moved out of core
15:59
No, i am not reading documentation
You should probably read the documentation
@SurajJain great place to start
It is too deep, I need some material by some credible author

« first day (2600 days earlier)      last day (2573 days later) »