« first day (2677 days earlier)      last day (2286 days later) » 

6:00 PM
"No, YOU'LL say sorry, eh?"
 
file a complaint with the ministry of government and consumer services
 
@Mosho what? holding a door for someone that is an appropriate distance away?
 
no that's too good for them
 
> Justin Trudeau is my father, I'll get you banned from Canada
 
if they only picked up the phone so I can do it
 
6:03 PM
Hello guys ii have a question about cors, is here a good place to ask it?
 
@John Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@John no, we drink real beer
 
not coors, cors Kappa
 
I'll admit, I did buy some bud light on sunday... I walked a block to the gas station, walked back, and got drunk.
sorry
 
you're not forgiven
you're 3given right now, gotta earn that next step
 
6:05 PM
@ndugger but how?
bud light isn't even alcoholic
 
Is there any room for http requests and stuff?
 
I SAID IM SORRY
 
@John you didn't listen to the bot
 
listen to the bot
 
6:06 PM
@rlemon
 
-1
 
@MadaraUchiha lmao
 
little lemon still has a allen's juicebox
 
What the cors header i have to allow request from a local file?
 
there isn't one
 
6:06 PM
@rlemon neuu
 
local files can't return custom headers.
 
@John file:/// is an entirely different protocol, one that's not recommended for use.
Your best bet is to setup a static file server, it's really not to big of a bother, and will allow you greater control over those things.
 
But i still can perform get put etc, so cors is not involved?
 
Depends on what you need to do.
 
6:07 PM
@John What does PUT on a local file mean?
 
@MadaraUchiha did you see the new abomination from netflix
 
@Mosho Do I want to?
 
I just need to do get put post and so on from a local file
 
@SaitamaSama :D
 
so setup a server
 
6:08 PM
http request PUT GET
 
everything works on localhost
and localhost is always assumed secure
 
yeah i have a server just wondered if i need to allow cross origin stuff as for localhost to localhost
 
if they're different origin, yes
 
@MadaraUchiha
 
localhost:80 and localhost:3000 are different origins
 
6:09 PM
if the client url's host is the same as the server host, then you do not need to enable cors, as it isn't a cors
 
If i don't setup a cors policy from localhost:4200 to localhost:443 cors will cry, so no it's not everything works on localhost :p
 
user1596138
Oh no...
 
@Mosho Ah, yeah.
 
user1596138
@Mosho that's going to get crazy af lol
 
Rumor has it that it's actually decent
 
6:09 PM
So you're saying i don't need cors for file, cool i'll try that
 
...
 
it's nice... or so I've heard
 
@John Kevin just said that those are completely different hosts/origins
 
6.3 on imdb
 
cors won't work for file
 
6:09 PM
But I refuse on principle to watch live actions of any cartoon since Avatar: TLA
 
nothing will work for file
file protocol isn't allowed
 
yh yh but request will work so it's cool
 
@MadaraUchiha dilly dilly
 
though death note is 4.6
 
6:10 PM
@MadaraUchiha boy are you missing out
 
@John Could you explain exactly what it is that you're missing?
 
ben ten live action is stellar
 
@rlemon :D ok I need to start using that. can it flash directly the cr-10 driver?
 
@rlemon Really?
 
no
it's terrible
 
6:11 PM
Didn't even know there was a ben 10 live action lol
 
worse than Eragon
 
I don't know what ben ten is
 
Let me guess, the actor is 16?
 
@MadaraUchiha @Mosho
 
6:11 PM
:D
 
the only decent anime on netflix this season is Violet Evergarden
 
@BenjaminGruenbaum lolwut
 
@MadaraUchiha I have an angular app that runs on localhost:4200 and a server that runs on localhost:443 In order to make it work i have to use a plugin 'cors everywhere' I want to remove that and allow cors for localhost:4200 so i wondered before doing that if file is concerned by thiis.
 
@Mosho Devtools, most likely.
 
you mean he didn't post it 14 hours before you came up with the idea?
 
6:12 PM
ffs if I use Object.assign(), the arrays handle undefined but the siteId gets written to defautl. if I use _.merge, everything works perfect except you can't unset an array with merge
 
@John You can allow CORS between localhost:4200 and localhost:443, but you can't add CORS to file:/// urls.
 
how tf
 
@MadaraUchiha holy shit they made more than one live action
looks like different actors tho
 
altered carbon was good
 
the movie was just bad. bad writing, bad cgi, bad acting.
 
6:13 PM
Right now with cors everywhere i can run requests from file aswell @MadaraUchiha
 
but ended on a lower note than the rest of it
 
@Mosho Just watching that now, it's so good
 
ben ten has had live actions?
 
@John from file is likely okay.
to file is not.
 
oh no not to file :P I just want from, my file isn't the server :p
 
6:14 PM
user image
8
@rlemon fixed
 
@BenjaminGruenbaum Did you send him that yet?
 
micro lemon still has an allen's
 
I wish castlevania wasn't so short
 
no
he doesnt
 
@MadaraUchiha going to now
 
6:14 PM
:D
 
I got lemons to the last pixel
 
I said micro. not mini
also, good job
 
369
Q: Lodash - difference between .extend() / .assign() and .merge()

JDillon522In the Lodash library, can someone provide a better explanation of merge and extend / assign. Its a simple question but the answer evades me nonetheless.

Is there a way to force _.merge to handle undefined rather than skip it?
_.assign      ({}, { a: 'a'  }, { a: undefined }) // => { a: undefined }
_.merge       ({}, { a: 'a'  }, { a: undefined }) // => { a: "a" }
_.defaults    ({}, { a: undefined }, { a: 'bb' }) // => { a: "bb" }
_.defaultsDeep({}, { a: undefined }, { a: 'bb' }) // => { a: "bb" }
 
@SterlingArcher Explicitly use null instead?
 
@MadaraUchiha that would require me defining every possible dynamic key though
 
6:16 PM
What do you mean?
 
basically I'm doing:
_.merge({}, { someKey: ['root'] }, { someKey: [] });
 
it is "handling" undefined, those properties aren't defined
 
It's treating the empty array like it does undefined, so root doesn't get overwritten, but obviously _.assign would do it, but using _.assign breaks more shit than using _.merge
 
hmm... missing edge
 
@SterlingArcher You can also pass a customizer to _.merge
Something akin to
 
6:19 PM
It's tricky because if I send it undefined, that's a good merge case because I'm not writing anything back. But if I send it [] I want to overwrite
 
(a,b) => { if (Array.isArray(a)) { return a.concat(b); } }
Then it won't override arrays.
@Wietlol No one cares about Edge.
 
I use Edge
 
No one cares about SaitamaSama
 
6:21 PM
/me cries in corner
 
@MadaraUchiha I think I want the opposite (a,b) => { if (Array.isArray(a) && !b.length) { return []; });
if a is an array and b is an empty array, the result merged should result in []
 
It's a general customizer for any two same-key properties
You shouldn't reference someKey in there
 
whoops I meant a
 
But sure, if you want [] to explicitly override, then yeah.
 
I'll give _.mergeWith a shot
ty bud
 
lol nice
 
function overrideArray(objValue, srcValue) {
  if (Array.isArray(objValue) && !srcValue.length) {
    return [];
  }
  if ((Array.isArray(objValue) && Array.isArray(srcValue)) && objValue.length > srcValue.length) {
    return srcValue;
  }
}
_.mergeWith(dbConfig, request.payload, overrideArray)
@MadaraUchiha thanks :)
 
@rlemon Was expecting things to go horribly wrong.
@SterlingArcher Huzzah
 
gifsthatendtoosoon
 
6:35 PM
yeah what the shit don't post things where people survive
 
pallet jacks look awesome
 
they are fun
but easy to over turn
not flip
 
oh I bet, narrow and heavy
 
@rlemon All it takes is a tiny stone
 
turn sharply
 
6:37 PM
source - experience
 
tiny front wheel
I ride the one at work around the back room all the time
 
@rlemon except one zip tie and you're fucked
 
they hurt like fuck if they run over your foot
 
We had a motorised one that we used to drift on
 
greensmithenergy.com/… press release :O
suck it tesla
 
6:38 PM
we have two of the ones in the gif and a walk behind blue giant
 
@SterlingArcher I mean, Elon does seem fairly open minded
 
!!s/minded/mouthed/
 
@SterlingArcher @SterlingArcher I mean, Elon does seem fairly open mouthed (source)
 
you double pinging whore
 
6:42 PM
@Loktar @Luggage closest corner fused again
 
nice
 
at 1mm distance?
 
no I forgot to change that before the print
 
does it come out?
ah
 
just picture documenting what I was bitching about before
 
6:43 PM
it looks like a lot of gap between the top of the support and the part, but that might just be the picture
and the top looks a bit underextruded and/or unsupported :(
 
god I hate taking pictures of print defects
I feel like AvE. "FOCUS YOU FUCK!"
ghad
 
@rlemon That thread made me so irrationally angry.
 
lol i love top gear
> I AM THE GOD OF HELLFIRE!
> ...he's got a chainsaw doesnt he
 
To be frank, I enjoy just listening to Jeremy Clarkson talk
 
who doesn't?
 
6:50 PM
 
it's like saying you hate david attenboroughs voice
 
@Luggage you can see where it fused by the break 'white' marks
 
idk if i spelled that right
 
SUPER satisfying when the supports come out in one piece tho
 
Damn. That's clean.
 
6:51 PM
how does the underside look?
 
Similar feeling when you get a brim right at the base and pull it off all the way around
 
still shitty
 
doh
 
but more organized shit
 
is that a work part?
 
6:52 PM
yea
doesn't really matter, just curious about it
I'm printing these at 4200mm/min @ .3
 
@rlemon I see a sharpened pencil, +1
 
@SaitamaSama found an electric sharpener at work
 
who the fuck uses pencils
 
me
 
sounds like you make a lot of mistakes
 
6:53 PM
pencils are better than pens, in many ways
 
@SterlingArcher I don't have an eraser
I just like pencils
 
i use a sharpie on a whiteboard because I'm perfect
@rlemon lmao
I hate soft pencils
the graphite is like... squeaky and dull
 
also, you can draw with pencils
 
@Luggage flipping around the supports made them 10X easier to get out tho
 
you can draw with pens too just don't fuck up
 
6:54 PM
@SterlingArcher Can't do shading with a pen
 
@hilli_micha yes you can
 
@hilli_micha yes you can
stipling, hash shades, etc
 
drawing with pen is not art per se
 
TIL
 
6:55 PM
@SaitamaSama sure it is
 
@SaitamaSama sure it is
 
Oh yeah..huh, sorry I was wrong, It seemed to me that with a pen it's fairly binary, you know? Either MAX INK or no ink
 
little Xs
 
@SaitamaSama neither is anime :^
 
#s or .s
 
6:56 PM
I draw with my initials
 
@Cereal TRIGGERED
literally every 2d anime ever is made by key animating hand drawn frames
so, it's kinda the ultimate form of art
 
0/10 he didnt stick the landing. fuckin amateur hour
 
@SaitamaSama Whoa, who said "animating hand drawn frames" was the ultimate form of art?
 
6:58 PM
well... not the animating part :B but drawing every frame .....is? imo; also, s/ultimate/one of the ultimate
I saw that
 
tfw someone's unironically arguing naruto is the ultimate form of art
 
there is art involved, the it's usually cheap labor that makes all the intermediate frames to fill in the animations
 
Naruto is shit
 
Can't be that shit if it's the ultimate form of art
 

« first day (2677 days earlier)      last day (2286 days later) »