« first day (2593 days earlier)      last day (2349 days later) » 

5:00 PM
Guys, need some help with Node js, abit urgent :(
 
!!welcome
 
@KevinB 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.
 
My Question is a bit lengthy and is available at stackoverflow.com/questions/47417595/…. Can somesome please look into it...Thanks
Hi @KevinB and @CapricaSix
 
your for loop is logically wrong
it's performing an asynchronous action, and then expecting all of the actions to be complete at the end of the loop.
 
That's an Async call...
 
5:05 PM
right
 
Yes. That's what I'm unable to know on how to do, I'm basically from Java BG :( and these callbacks and promises seems new to me :(
 
console.log("From inner " + z); is never going to output the right information
 
How can I change to fix it?
 
the calls are all happening.
there's nothing wrong
the console.log above will just be inaccurate
 
Yes, but I want to return this z to my main function, that will be used to create another object and call another function
 
5:07 PM
that's not possible
 
returning z/?
 
yea
z will never be set soon enough for it to be returned with data
because it's being set asynchronously
 
Hmm. How do i fix it?
that's where I'm stuck in
 
you'll need to either use callbacks, or promises, as described at the dupe question.
 
I already have a call back in my second function, right?
 
5:09 PM
 
you don't have one that runs when all of the callbacks in the functions called by the for loop are done.
 
You can do it in one line import { MyModule: { MySubmodule }} from 'react-native' --- edit: nopeevolutionxbox 4 mins ago
I thought you could import-destructure like this?
 
Isn't the syntax different?
 
user2620028
@jhoverit @rlemon using @action, runInAction, and use strict and same behavior
 
@Kev
 
5:10 PM
@KendallFrey i mean, probably
 
*@KevinB I didn't get you exactly'
 
import { MyModule as MySubModule } innit
 
user1596138
@HatterisMad No clue. I always use action lol
 
you have a for loop
 
user1596138
@action for class method
 
5:11 PM
Hey who here is Canadian? Here are some round trip flights to all over the US that I've found if you are interested in travel. gist.github.com/michaelrwiley/175ca6e9263936a5b17ef5be1914d7c6
 
user1596138
action(function(){}) otherwise
 
@rlemon haha was just about to say you found it
 
@Loktar rlemon is afk: lunch thyme
 
user1596138
Decorators are kind of silly lol
 
inside the for loop you're performing an asynchronous action. So you're performing n asynchronous actions, and you aren't waiting for any of them to complete
 
5:11 PM
It's from a mailing list that had no "online" version
 
@SterlingArcher nope
 
you're sending 10 people out to buy pizza then looking at the table and wondering why there isn't pizza there yet
 
@SterlingArcher @Zirak touched on this in a talk.
 
But they're round-trip flights to all over the US starting at like 100
 
It confused me at first
 
5:12 PM
Who did @Zirak touch?
 
user2620028
@KevinB you aren't talking to me right lol
 
Cap
 
no
 
@SterlingArcher You mean who didn't he?
 
5:12 PM
Zirak never touches me anymore :(
 
@KevinB, got it, can you please help me with some promise code to do the task?
 
From Calgary, Edmonton, Vancouver, Toronto, Quebec, and Montreal
To like every major and semi-major airport in the US
 
user2620028
@Jhoverit yeah i was just saying that i decorated each one of those class methods with action, and then used the runInAction inside of them for anything that modified the mobx state like rlemon suggested. and threw use strict at the top of the file
 
@Jhoverit tbh I don't love them
they are easy at least but feel a bit dirty
 
there's many others
 
5:13 PM
@HatterisMad runInAction is not for everything.
 
!!afk lunch
 
Just when needed
 
@Vap0r "semi-major airport" just makes me think of half the length of a runway
 
user2620028
i thought you were saying whenever you lose access to the parent scope
 
!!afk dunch
 
5:14 PM
bush planes
 
the fuck is dunch
 
@KendallFrey lunch with the Dutch
 
> A small meal between lunch and dinner in the late afternoon or early evening (about 3-5 p.m.)
It's fifteen minutes after noon jordan, you're not that late
 
thats just Dinner...
Supper is after 5
 
lunch for dummies?
 
5:16 PM
@Loktar I've never heard of "lunch, dinner, and supper"
 
old people say it
it's weird
 
Ugh. Supper === dinner. You crazy people and trying to make one of them lunch.
 
I though an afternoon meal was called tea
 
93
A: "Lunch" vs. "dinner" vs. "supper" — times and meanings?

matthiasDinner is considered to be the "main" or largest meal of the day. Whether it takes place at noon or in the evening is mostly a cultural thing. For instance, many people who grew up in the American South and/or on farms traditionally ate larger meals at noontime to give them the strength to keep w...

 
I may have a bit too much british in me
 
5:17 PM
breakfast brunch lunch noonsies supper dinner
 
user2620028
@rlemon the crazy thing is the for loop in the initial promise runs a single time and adds the first value to the array, and then the program stops. If i remove observable from the category variable then everything runs smoothly
 
@KendallFrey new boyfriend eh?
 
what if I said girlfriend
 
@Loktar just @BenFortune
 
@KendallFrey then I know you pay high dollar for your toys?
since I assume 90% of sex toys are made in Asian countries, and I would assume you're using some kind of British sex contraption.. unless your GF has a penis
 
5:19 PM
I'm Canadian. I pay high dollar for everything.
 
then, well I mean if that's your thang
 
@Loktar And what if she did?
 
you guys are cornering the market on butt plugs
 
We tried making sex toys in Canada. But wouldn't you know, hockey puck rubber makes a terrible dildo
 
lol
hockey sticks though..
 
5:21 PM
Splinters
 
A bunch of people were talking about selling 3d printed stuff... apparently sex toys sell really well on etsy
tons of them make molds for silicon
 
@rlemon Your mistake is not knurling it.
 
@Loktar molds I assume right?
 
@Loktar sex toys have to be so easy to print
 
"tailored" fit toys
 
5:25 PM
@KendallFrey yeah man that's what I was thinking
@rlemon yea
or some people were printing in PLA and dipping them
but I think a mold would be more cost effective and save time
 
I can't think of solid stuff with a lot of tiny sharp edges caused by the step size that would work as a sex toy, but then I probably don't want to ask
 
its a negative cast impression mold
 
Wouldn't just plain PLA be ok?
 
regardless I'm not getting into that business
 
Maybe not the best texture but what do I know
 
5:26 PM
@KendallFrey apparently not due to bacteria build up
 
@KendallFrey it's permeable
 
same reason you shouldn't use it for food
 
it also degrades in moisture
 
there is some though you can actually put in the washing machine
 
Well, you can always print another one amirite
 
5:27 PM
like $30 a roll though, food safe
 
replacing it is less of a problem
the bits it left are more
 
@Loktar That's a good price for normal PLA for me
(CAD)
 
!!run or dinner
 
ah yea
 
@towc run
 
5:27 PM
yeah for me like $20-ish is what I pay
I've been buying hatchbox lately it's pretty good
 
i print a fresh one everytime
 
but it's like 22-40
 
because i lose them (absorb it?)
 
PLA cost me about $25-$28/kg
for normal stuff
$40-50 for special stuff
 
@rlemon AMZ3D?
I think I'll have to try theirs next time I buy
 
5:29 PM
ye
 
it's decent
I REALLY liked the orange actually
not loving the blue and red though too much
I didn't realize it's Amazons brand actually
makes sense with the name now
but I assumed it was short for Amazing 3d
 
I thought someone said they were Canadian
I repeated it, but I read it somewhere first
 
the translucent stuff is pretty sweet
 
@ssube oh nice what brand?
 
I really fucking hate these hex screws. The threads are all fucked.
 
5:34 PM
every brand I look at for translucent I see a bunch of poor ratings
 
It shouldn't take me 15 minutes to put in 11 screws
 
I did have to bump the temp to 210, and it says right on the side 190-220
but it wasn't sticking and coming out like spiderweb at 200
it has a nice gloss finish and you can see the supports
 
@ssube you should do temperature towers
I usually do for each new filament
just to see about where it's good temp wise
I mean if that turns out fine, nbd, I just do it now to save time is all
 
I should, haven't heard of those
 
5:38 PM
@rlemon omg, he finally got rid of the restraining order?
 
I think I got it dialed on, though, since this came out well:
some bubbles and spots on the bottom, but otherwise great
 
I think I need to redesign the control box.
It's fucking terribad
 
^ you just have to set the layers manually in your slicer
like 1-100 210C, 101-200 205C
etc.
but once you do it once, you can use it forever obviously
 
cool
I'll chop that up later
 
I think the one I use only goes down to 180
seems kind of unsafe to go below that idk
ah that one
but I mean there are plenty to choose from
 
5:45 PM
I just got an e-mail from an unknown e-mail address with pictures of a rich middle age man. What's the scam?
 
@BadgerCat just to be jealous of him
 
lol
 
that's the new thing rich people send out pictures to make others jealous
shakes fist
 
shakes fist
 
lol that is odd though no text at all?
 
5:46 PM
I mean
fist bump
 
look at them, rich enough to afford photos
 
It says "Hello my dear hope you're doing great today? I hope you had a great day?"
 
lmao
 
you should commission an oil portrait in response
 
> AS you can see from the photos I'm having a fantastic day with my wealth.
typical.
lol now I want to do that to people
 
5:47 PM
totally
 
rent a Lamborghini put it in my garage and make videos cc @KendallFrey
 
hence my "fist bump"
 
haha
 
well I def need to redo the fan mount
 
@Loktar Did you see my quality Tai meme earlier today?
 
5:47 PM
print a lambo and use some forced perspective
 
my print head has wiggle room
:(
 
no! I missed it
 
3 hours ago, by Kendall Frey
congratulations your brain is pregnant
that's the context
 
ffs
my fang is like disintigrating on the printer
the screw holes are all cracked (were not when I installed it) and a screw is half out
 
add some washers to the next one?
and maybe reinforce the holes
 
5:50 PM
the screws are not long enough :(
 
bigger holes maybe
 
print some new ones noob
 
were those the screws you couldn't find at the despot?
 
no
cant find the screws I need for the y axis belt adjuster
 
5:50 PM
ah
 
well, gonna try a print with a janky head
:(
5 minute print. gonna take longer to heat the bed
 
@KendallFrey LOL
 
keep your house at 60c and the bed won't need to heat up
 
@BadgerCat damn he's ugly too
 
And very old, why don't they use young models
 
5:52 PM
@BadgerCat That's Ben Carson? My, he's changed.
 
if they used young models, young tech-savvy people might respond
if they use old models, only grandmothers will reply, so they're less likely to get busted :D
 
@KendallFrey yeah he's black now
 
oh that was a before picture?
 
Good strategy
 
5:53 PM
First time I see this kind of scam
 
^ Ben Carson
 
ohh yea @Loktar so I printed two fangs right? well the fang that takes the 40mm noctua fan .. the second fan is designed to be 10mm thick. not 20mm thick
so my 'alt' fang won't work with the new fans either
I hate fans
 
damn
yeah I'm still using stock fans
mines printing well now I don't want to screw with it at all
 
mine sound like a poorly configured jet engine
 
haha
yeah the fans they use are cheeeap
They are so damn loud
 
5:55 PM
can't find a quality 50mm fan on amazon prime.
the quality ones are all like 3-6 weeks shipping
 
what about Newegg?
 
so I bought some cheap 50mm and hope they don't fail
 
not sure how that is in CA
 
@Loktar I'm super impatient
newegg in Canada isn't great
 
check Ebay as well man
some people do 2 day shipping
 
5:56 PM
I'll probably just pick some up on Amazon once these cheap ones come in
I just need something for now
mine sound so bad I'm afraid they will just up and die
 
@AbrarAhmed 13 or older please.
/me jokes..
 
@Loktar lol
 
also holy shit my son could actually be on here at some point. Not that he ever would but he's 14 now
 
How can I write multi line paragraph into variable string?
 
check out template literals
 
5:57 PM
@AbrarAhmed Use `` instead of "" or ''
 
nahh, be cool and escape the new line
 
const foo = "hello \
world \
this \
works";
 
@Loktar All I could imagine him saying is "OMG daaaad"
 
lol
good or bad, my son is too cool for tech chats 😒
 
5:58 PM
that's good for you
you don't have to censor yourself
 
good point
 
you can admit to which kid is your favorite :P
 
not that I would anyway
 
So you do have a favourite
 
@lok
 
5:59 PM
lol yeah they all say its my daughter
 
@Loktar thanks
 
@AbrarAhmed np
 

« first day (2593 days earlier)      last day (2349 days later) »