These are chat archives for FreeCodeCamp/HelpJavaScript

31st
Aug 2018
Simon Cordova
@gbsimon87
Aug 31 2018 00:14
hey all
Brad
@bradtaniguchi
Aug 31 2018 00:22
@JLuboff C ya
@gbsimon87 hey hows it goin
Simon Cordova
@gbsimon87
Aug 31 2018 00:41
I'm good man working away
enjoying the night
may go for a drink actually I think I deserve it
juicy
Brad
@bradtaniguchi
Aug 31 2018 00:44
when something is called extreme it better be good hehe
Pagnito
@Pagnito
Aug 31 2018 01:36
Screenshot from 2018-08-30 21-34-48.png
apperentl these are all the starbucks location in us
i thought there were all over us
but apperentl only northeast
Brad
@bradtaniguchi
Aug 31 2018 01:39
@Pagnito I legit can look out my window at work and see at least 3, i'd be left to assume they are limiting how much shows up haha
otherwise you computer would explode :P
Pagnito
@Pagnito
Aug 31 2018 01:40
nah i dont think so, it said All locations in us
this is the api i used
oh wait
it was updated in 2013
god knows what they built in the last 5 yrs
my math might b wrong tho
most likely
cuz their map shows it diffirent
Pagnito
@Pagnito
Aug 31 2018 01:45
lol nop i just skimmed thru the whole json
the api must be funky
Ronique Ricketts
@RoniqueRicketts
Aug 31 2018 02:54
@JLuboff you bitcoin will go up. My bitcoin that I had last year now worth $15 if I was it out and trade some more until it reach $100
2199088044
@2199088044
Aug 31 2018 05:24
helpclick here please
Francois Beyers
@Blusoup
Aug 31 2018 12:41
Hoping someone can help... How can I limit key-value pairs in an Object. I'm writing a cookie for every product viewed and then put that product into an Object. I want to display the last 5 products viewed, however at the moment the cookie will just keep capturing all the products viewed. Hope this makes sense?
Tiago Correia
@tiagocorreiaalmeida
Aug 31 2018 13:22
Maybe an array and pick the last 5 positions?
Jason Luboff
@JLuboff
Aug 31 2018 15:05
Morning :wave:
Tiago Correia
@tiagocorreiaalmeida
Aug 31 2018 15:26
hey @JLuboff
Jason Luboff
@JLuboff
Aug 31 2018 15:26
@tiagocorreiaalmeida Whats up bud?
Tiago Correia
@tiagocorreiaalmeida
Aug 31 2018 15:27
nothing special justwork but since its friday :D, how about you?
Jason Luboff
@JLuboff
Aug 31 2018 15:28
Ya just got into work a bit ago. Doing some refactoring currently
Tiago Correia
@tiagocorreiaalmeida
Aug 31 2018 15:31
still haven't seen that one working, will be there a day that it becomes public?:D
Jason Luboff
@JLuboff
Aug 31 2018 15:32
Oh I'm done with that project :) At this point its just maintenance/small changes as needed. But no, most likely not public
I'm fixing up some issues with the conference room sign app I have
Keggatron
@Keggatron
Aug 31 2018 15:41
Hey guys, I'm getting an error that pops up in my terminal when I have a project running. One of my coworkers was saying it had to do with using Yarn with Windows 10
Error: ENOENT: no such file or directory, uv_resident_set_memory
    at process.memoryUsage (internal/process.js:103:5)
    at ConsoleReporter.checkPeakMemory (/usr/share/yarn/lib/cli.js:34148:40)
    at Timeout._onTimeout (/usr/share/yarn/lib/cli.js:34141:13)
    at ontimeout (timers.js:498:11)
    at Timer.unrefdHandle (timers.js:611:5)
If anyone knows what the fix is for that that would be awesome
alpox
@alpox
Aug 31 2018 16:08
@Keggatron you can use npm instead of yarn then
Pagnito
@Pagnito
Aug 31 2018 16:19
hey my api was working, but suddenly i got a cross origin error and it doesnt work anymore
im tryin to understand if its my browser or heroku
Jason Luboff
@JLuboff
Aug 31 2018 16:22
Are you accessing it differently than you did before?
Pagnito
@Pagnito
Aug 31 2018 16:37
nop
it just suddenly stopped working
i opened it up to fix some bugs, i havent touched the code in about a week
tundeiness
@tundeiness
Aug 31 2018 16:41

hi guys. I'm trying to export a variable using this approach:

export const foo;
export const bar;
but it's not working on my terminal...what am I doing wrong?

korzo
@korzo
Aug 31 2018 16:47
@tundeiness Node.js support for ES6 modules is experimental
https://nodejs.org/api/esm.html
tundeiness
@tundeiness
Aug 31 2018 16:48
@korzo sorted it out...another FCC way of misdirection
Pagnito
@Pagnito
Aug 31 2018 16:51
@JLuboff it seems its the api server thats not letting it throught, because i turned on extenson for allowing cors in my browser and im not getting that error anymore, but im still getting an internal server error, so maybe it is heroku, i dunno lol
wait no
cnt be heroku cuz it doesnt work in dev either
Jason Luboff
@JLuboff
Aug 31 2018 16:57
@Pagnito Probably best to implement this https://www.npmjs.com/package/cors I've never had issues with CORS but I know thats what most people use
Pagnito
@Pagnito
Aug 31 2018 16:58
that link doesnt seem to work, i seen on forums too
Screen Shot 2018-08-31 at 12.58.33 PM.png
hmmm this is odd
no npm package link is workign for me
Jason Luboff
@JLuboff
Aug 31 2018 16:59
Sounds like you have a local issue then...
Turn off whatever extension you turned on
Pagnito
@Pagnito
Aug 31 2018 17:11
it was like that before the extension
i saw the link earlier
Jason Luboff
@JLuboff
Aug 31 2018 17:14
Well the link works fine and if you can't access it, then it sounds like you have something going on locally. Try a different browser
Pagnito
@Pagnito
Aug 31 2018 17:14
yeai think there is something wrong on my end, because i tried to log into my mlab
and it said
Screen Shot 2018-08-31 at 1.14.20 PM.png
Pagnito
@Pagnito
Aug 31 2018 17:19
hmm it suddenly logged me in now
what it is HAPPENING T.T
May Kittens Devour Your Soul
@diomed
Aug 31 2018 17:20
just a minor glitch in matrix
pls move on
Bannon Tanner
@bannon-tanner
Aug 31 2018 17:21
has anyone done the weather app using the fcc weather api for the icons?
the usage says the image links are included in the JSON under weather[0].icon but that does not exist in my JSON
Jason Luboff
@JLuboff
Aug 31 2018 17:25
@Marijunjnja weather[1] and weather[2] both have an icon. So either the API didn't supply one for weather[0] for whatever reason or something goofy with how FCC has it setup
Bannon Tanner
@bannon-tanner
Aug 31 2018 17:26
@JLuboff I saw those, but they are just random strings "11d" and "50d"
https://fcc-weather-api.glitch.me/ is the page that states there should be an icon, and the sample JSON on there shows an actual link, so maybe they have changed it since making that page
Jason Luboff
@JLuboff
Aug 31 2018 17:29
@Marijunjnja If you provid whole numbers like their example, it will return the icon https://fcc-weather-api.glitch.me/api/current?lon=-90&lat=29 given this is not as accurate (of a location)
Bannon Tanner
@bannon-tanner
Aug 31 2018 17:29
I was actually just about to try that but you beat me to it. Thanks!
alpox
@alpox
Aug 31 2018 17:34
@Marijunjnja http://openweathermap.org/img/w/50d.png would be the full url if you want the precise numbers and get only those icon names. You can just put there the weather icon as name for the png
The fcc weather api endpoint is just a proxy for openweathermap
Bannon Tanner
@bannon-tanner
Aug 31 2018 17:35
@alpox Great! was about to hack together a solution. Thanks so much
Simon Cordova
@gbsimon87
Aug 31 2018 17:45
Hey all
Markus Kiili
@Masd925
Aug 31 2018 17:46
Hi.
Jason Luboff
@JLuboff
Aug 31 2018 17:49
@alpox @gbsimon87 @Masd925 :wave:
alpox
@alpox
Aug 31 2018 17:53
@JLuboff :wave:
Jason Luboff
@JLuboff
Aug 31 2018 17:55
Whats up
Pagnito
@Pagnito
Aug 31 2018 17:56
Screen Shot 2018-08-31 at 1.56.05 PM.png
seems there is a error on the techcrunch servers for the endpoint
Brad
@bradtaniguchi
Aug 31 2018 17:57
hullo
Jason Luboff
@JLuboff
Aug 31 2018 17:58
@bradtaniguchi Sup
Brad
@bradtaniguchi
Aug 31 2018 17:58
Hows everyone doing today :D
Jason Luboff
@JLuboff
Aug 31 2018 17:59
Its Friday ahead of a 3 day weekend..so good lol
Markus Kiili
@Masd925
Aug 31 2018 18:02
Just ate so no stress here.
Jason Luboff
@JLuboff
Aug 31 2018 18:03
Eating is good
Brad
@bradtaniguchi
Aug 31 2018 18:03
Oh yea I keep forgetting haha
Jason Luboff
@JLuboff
Aug 31 2018 18:08
Ya..we'll see if they let us out earlier today too
I have my doubts since they sent us home earlier last week due to no water in the building
Brad
@bradtaniguchi
Aug 31 2018 18:31
I couldn't leave work early even if I wanted to haha
Jason Luboff
@JLuboff
Aug 31 2018 18:31
Why?
Markus Kiili
@Masd925
Aug 31 2018 18:33
Slavery?
Jason Luboff
@JLuboff
Aug 31 2018 18:35
Possibly
Simon Cordova
@gbsimon87
Aug 31 2018 18:37
ITS SO NIIIIICE here
I love it
Jason Luboff
@JLuboff
Aug 31 2018 18:37
Where? In this chatroom? I mean..I guess its not bad
Markus Kiili
@Masd925
Aug 31 2018 18:38
He must be in Nice.
Brad
@bradtaniguchi
Aug 31 2018 18:39
Traffic = death
Jason Luboff
@JLuboff
Aug 31 2018 18:41
Oh..ya..you're screwed this weekend
Pagnito
@Pagnito
Aug 31 2018 18:45
am i the only one who cant acces npmjs.com right now
Jason Luboff
@JLuboff
Aug 31 2018 18:46
Yes
Pagnito
@Pagnito
Aug 31 2018 18:50
yea its weird, i cant access it off m bros wifi
not gonna spend time on that right now tho
Jason Luboff
@JLuboff
Aug 31 2018 18:50
Have you tried a different device
Pagnito
@Pagnito
Aug 31 2018 18:51
yea jus tried m phone
Jason Luboff
@JLuboff
Aug 31 2018 18:52
Could be a DNS issue with your ISP
Pagnito
@Pagnito
Aug 31 2018 18:52
yea thats what it said somethin about dns
npmjs.com’s server IP address could not be found.
im not gonna mess with it, m brother can fix it when he gets home
Simon Cordova
@gbsimon87
Aug 31 2018 18:59
The weather in T.O lol
It's amazing!
Sorry big delay there
I need a drink, some scotch on ice, code away, life
Jason Luboff
@JLuboff
Aug 31 2018 19:02
@gbsimon87 T.O = Toronto?
Simon Cordova
@gbsimon87
Aug 31 2018 19:06
Oh yeah, sorry
How's it going with you out there?
Jason Luboff
@JLuboff
Aug 31 2018 19:08
Its going. Just finished making a few changes to my work app. Earlier had finished fixing up another work app (conference room sign). So, no complaints
Simon Cordova
@gbsimon87
Aug 31 2018 19:15
I am taking a break from my actual work to work on my personal project - got a deadline for work by Monday so I'll be at on the weekend anyway
Jason Luboff
@JLuboff
Aug 31 2018 19:29
@gbsimon87 You're allowed to work remotely with the whole visa thing?
Simon Cordova
@gbsimon87
Aug 31 2018 19:30
Yeah, as an outsourced contractor right now :)
Seeing that I'm not in the UK its a common thing to do
Jason Luboff
@JLuboff
Aug 31 2018 19:31
Ah
Your lady still in the UK?
Simon Cordova
@gbsimon87
Aug 31 2018 19:40
yeah
coming here next week eactually to meet the parents
oh my
actually**
I guess I'm a grown man now?
Jason Luboff
@JLuboff
Aug 31 2018 19:41
haha yup
Simon Cordova
@gbsimon87
Aug 31 2018 19:52
easier to talk to you guys on this schedule I must say
Jason Luboff
@JLuboff
Aug 31 2018 19:52
I imagine so
I think you're still a couple hours ahead of me?>
Simon Cordova
@gbsimon87
Aug 31 2018 19:54
yeah two or three, same time as NY
Where's @cmccormack these days?
Jason Luboff
@JLuboff
Aug 31 2018 19:55
Ya so 3 hours ahead of me.
Hasn't been on today
Brad
@bradtaniguchi
Aug 31 2018 20:30
I'll probably be trying to start on a side project this weekend, working with a few other folks so see how things go
Brad
@bradtaniguchi
Aug 31 2018 20:58
Its half a good feeling when your tests fail because they are written wrong. The good part is cuse your code works, the bad is you still wasted a good five minutes staring at the wrong thing :/
Simon Cordova
@gbsimon87
Aug 31 2018 22:08
five minutes sounds like a blessing compared to the time I waste
@bradtaniguchi
Brad
@bradtaniguchi
Aug 31 2018 22:27
maybe you should test more :P
Jason Luboff
@JLuboff
Aug 31 2018 22:55
Gotta know how to test before you test
Brad
@bradtaniguchi
Aug 31 2018 22:57
dats true
Jason Luboff
@JLuboff
Aug 31 2018 23:05
Clean office before 3 day weekend.. :ok_hand: