These are chat archives for FreeCodeCamp/Help

29th
Sep 2018
May Kittens Devour Your Soul
@diomed
Sep 29 2018 07:25
@psyperl it's <lable> :smiling_imp:
psyperl
@psyperl
Sep 29 2018 07:58
@diomed holy nice catch
psyperl
@psyperl
Sep 29 2018 08:07
i was having difficulty with the terms to explain / differentiate between
< opening html tag and <label> opening label tag ( <html> opening html tag? )
jtoloyede
@jtoloyede
Sep 29 2018 08:14
Hi guys, I'm new here.
I'm trying to use the mock URL "https://www.freecodecamp.com/email-submit" for form in the project "Product Landing Page" but I'm getting( Refused to display 'https://www.freecodecamp.org/email-submit?' in a frame because it set 'X-Frame-Options' to 'sameorigin'. ) as an error. Can someone please help me out?
psyperl
@psyperl
Sep 29 2018 08:14
feels like dejavu
psyperl @psyperl do not understand the question, but do understand that understanding the question is the first step to find the solution, what will happen if @psyperl skip the first step to find the solution??
May Kittens Devour Your Soul
@diomed
Sep 29 2018 08:39
I have an I that narrates my life.
This I insists on being I even though I observe it.
Which leads me to ask, is I us?
Or is us a bifurcated I?
And finally, if consciousness is a multiplicity of selves, is self
itself an illusion?
We think maybe.
Aditya
@ezioda004
Sep 29 2018 08:40
:thought_balloon:
Niraj Nandish
@Nirajn2311
Sep 29 2018 10:55
@diomed :clap: :clap: :clap: :tada:
ifysucre
@ifysucre
Sep 29 2018 11:02
Hi everyone.
ijust want to find out if the FCC certificate has helped nyone on here actually get a job
May Kittens Devour Your Soul
@diomed
Sep 29 2018 11:17
@Nirajn2311 pls tell me in which folder on my pc did I put those images that I need
stupidme2.gif
nathu jaipal
@Natharam
Sep 29 2018 12:33
Give your form element the id cat-photo-form.
please help me solve this
Aditya
@ezioda004
Sep 29 2018 12:36
<form id = "cat-photo-form">
  //stuff
</form>
Kranti Nebhwani
@darkphotonKN
Sep 29 2018 12:46
@diomed best thing i read all week, and i have been reading js news weekly
@ezioda004 hows it going man, what keeping you busy these days ? :D
Aditya
@ezioda004
Sep 29 2018 12:52
@darkphotonKN Mostly college work, so C and theoretical stuff. What about you?
Kranti Nebhwani
@darkphotonKN
Sep 29 2018 13:24
@ezioda004 been decent i guess, working on learning vue and getting better at react. Trying to get a job now had a few interviews :P. It's cool that you are learning those at school, so computer science theories along with C programming? Are you more interested in web dev yourself though or
Aditya
@ezioda004
Sep 29 2018 13:36
@darkphotonKN Oh nice, hows interview coming? I'm just trying finish up this semesters coursework/assignment before I start applying for jobs myself. I like web development especially working with JS though I wont mind trying out other programming related field, except data-science, that bored the hell outta me.
Btw is Vue in demand where you live? I see no Vue jobs here, but companies love Angular, though React is catching up
May Kittens Devour Your Soul
@diomed
Sep 29 2018 13:45
@darkphotonKN learn me vue
May Kittens Devour Your Soul
@diomed
Sep 29 2018 15:39
@ezioda004 happy 💖day to you!
Aditya
@ezioda004
Sep 29 2018 15:47
Not on my calendar
May Kittens Devour Your Soul
@diomed
Sep 29 2018 16:12
Aditya
@ezioda004
Sep 29 2018 16:15
Ironically I didnt eat healthy today
BuntyBru
@BuntyBru
Sep 29 2018 19:44
@ezioda004
React is catching up with startups
But Angular is premium thing
I believe Angular is like the C language
you learn that
all others seem easy to you

Vue is catching up
Two years down the line Vue would have the same status like "React" is having now

But as i said
if you know Angular, other frameworks will come easy

Henry
@GitHub-Henry
Sep 29 2018 19:49
React is strongly in demand, Vue is so not in contention
Python and lagging behind Python is JavaScript, both behind React
in terms of in demand job skills
Aditya
@ezioda004
Sep 29 2018 20:23
@BuntyBru Its all based on location, npm trends suggests React is far ahead
I probably wont learn Angular unless its absolute necessary
Soumyojyoti Majumdar
@SoumyoNawab8
Sep 29 2018 20:36
Hey can anyone here ...
Know how to add .png image to html5 canvas?
Soumyojyoti Majumdar
@SoumyoNawab8
Sep 29 2018 21:01
@pdurbin not working....it worked for jpg but not png
Philip Durbin
@pdurbin
Sep 29 2018 21:01
huh, weird
Kyle Holm
@thekholm80
Sep 29 2018 21:05
that is weird. i've only ever used pngs and that's how i do it
Bjorn van de Peut
@bjorno43
Sep 29 2018 21:18
:wave:
Kyle Holm
@thekholm80
Sep 29 2018 21:18
hey bob
how's life?
Bjorn van de Peut
@bjorno43
Sep 29 2018 21:19
Guess what.. Someone got a ticket for driving 568 Mph (914 Kph) close to where I live :joy: He kindly asked if he got a guinness world record with that :joy:
Kyle Holm
@thekholm80
Sep 29 2018 21:20
i bet that was expensive
jsjoe82
@jsjoe82
Sep 29 2018 21:20
Likely the vehicle lol. Also shame they'll likely never get the chance to try to make it officially in the book.
Bjorn van de Peut
@bjorno43
Sep 29 2018 21:20
Nah. He was asked to appear in court for that xD But it was a technical error, lol
Kyle Holm
@thekholm80
Sep 29 2018 21:21
i was gonna say, a new land speed record like that, tons of companies would love to pay his ticket in exchange for learning how he did it
Bjorn van de Peut
@bjorno43
Sep 29 2018 21:21
Ye exactly, lol!
jsjoe82
@jsjoe82
Sep 29 2018 21:21
That too
Kyle Holm
@thekholm80
Sep 29 2018 21:22
that bugatti veyron goes just over 300mph i think, and it goes through an entire tank of gas in 9 min
and a set of tires last 12 min
jsjoe82
@jsjoe82
Sep 29 2018 21:23
Sounds like endangerment might be a factor in that, too. If so, that makes it much worse.
Depending on where this happene, though, I suppose?
Bjorn van de Peut
@bjorno43
Sep 29 2018 21:24
Well in Germany their are roads with no speed limits. But at those kind of speeds, you can't see anything except that what's exactly in front of you. So ye, you'll crash very fast
jsjoe82
@jsjoe82
Sep 29 2018 21:25
Ah yeah. Right on. Sounds just bad all around lol
Philip Durbin
@pdurbin
Sep 29 2018 21:26
sounds fun
Bjorn van de Peut
@bjorno43
Sep 29 2018 21:29
Meh. The fastest I've ever tried was 70 Mph (110 Kph) on a scooter and that was scary as hell. Those things aren't build for that kind of speed so just a small gust of wind is enough to knock you off, lol
jsjoe82
@jsjoe82
Sep 29 2018 21:29
Oh geez. Yeah, that sounds like nope to me
Bjorn van de Peut
@bjorno43
Sep 29 2018 21:30
Ye. The only reason I did it was because it was on a closed off road with no other drivers
Kyle Holm
@thekholm80
Sep 29 2018 21:57
@bjorno43 i've done a bit faster than that on a motorcycle. it's still scary even when they're built to go that fast
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:04
@thekholm80 I believe ya. It's all fun and games untill you're the one behind the wheel and actually notice how extremely fast it is
Kyle Holm
@thekholm80
Sep 29 2018 22:04
when you're young you don't think about those things
Philip Durbin
@pdurbin
Sep 29 2018 22:05
We're talking about going 70 MPH?
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:05
True that
Ye. On a scooter or motorcycle though. In a car it's different @pdurbin
Kyle Holm
@thekholm80
Sep 29 2018 22:05
@pdurbin bob is, i was saying i'd gone a bit faster than that on a motorcycle
Philip Durbin
@pdurbin
Sep 29 2018 22:07
ok, doesn't seem especially fast in a car
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:07
No because a car has a lot more grip and protects you from the wind. You don't really notice it
Philip Durbin
@pdurbin
Sep 29 2018 22:08
yeah
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:13
But ye, just stick your hand out of a car window when driving that fast and imagine feeling that wind on your entire body with just a bit more stability than a bycicle, ghehe
Kyle Holm
@thekholm80
Sep 29 2018 22:13
my bike is made to go fast, but it can get squirrely above a certain speed
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:15
Still reminds me of that cop that stopped me at some point though. Telling me I wasn't wearing my seatbelt :joy:
I honestly asked him if he could use a cup of coffee, ghehe
Kyle Holm
@thekholm80
Sep 29 2018 22:19
lol
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:21
Well it was early in the morning, haha. Once he realised his mistake we both had a good laugh about it
Sometimes cops here in the Netherlands can be quite chill. I also had one late at night pulling over next to me at a traffic light. Told me that I was lucky he was off duty cuz my scooter was driving way too fast. Then the lights turned green and he just hit the gas like crazy to show off that he was faster :joy:
Kyle Holm
@thekholm80
Sep 29 2018 22:26
lol
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:28
Most memerable thing that happend to me though was when they raided my house
Kyle Holm
@thekholm80
Sep 29 2018 22:29
did they find your meth lab?
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:29
Ghehe no :P
Kyle Holm
@thekholm80
Sep 29 2018 22:29
you must have hid it well
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:30
You know it, ghehe
Nah I just brought my gf home back then. Walked up to my house and I here a cop behind me yell "here it is!". Turned around I see like 20 / 25 cops running towards me while I just opened the door
I just stepped aside. No one paid any attention to me, they just all run in looking around with their flashlights. So ye, I just stepped in said "I've got lights you know, and turned them on" :joy:
Kyle Holm
@thekholm80
Sep 29 2018 22:33
did they say what they were looking for?
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:33
Ye
They had a call about a couple that was in a fight and kids were involved. Since I didn't have any kids and sure wasn't in a fight with my gf, it couldn't be me
Seriously, when I told that cop I didn't have any kids, he scared the shit out of me
He said "Are you sure?"
Kyle Holm
@thekholm80
Sep 29 2018 22:35
maybe he knows something you don't?
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:35
Ye exactly!
jsjoe82
@jsjoe82
Sep 29 2018 22:35
lol oh boy
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:37
Anyway, they decided it must've been a prank call. I kinda felt bad for them so asked if they wanted a coffee or something. But they didn't have time so they all left again :joy:
Kyle Holm
@thekholm80
Sep 29 2018 22:37
coffee for 25? that would take forever to make
unless you have instant, i guess
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:38
I've got Senseo. That works
But ye, the worst part though was that it wasn't a prank call
It turned out they were told to go to number 19, and I live on number 9
Well lived
I moved later on
Kyle Holm
@thekholm80
Sep 29 2018 22:42
that's crazy
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:52
True. Ah well, on the bright side, it's good to know they take such calls very seriously
Kyle Holm
@thekholm80
Sep 29 2018 22:52
for the next time you fight kids in your house?
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:53
lol. I'd rather jump of a cliff than ever hurting a kid
Kyle Holm
@thekholm80
Sep 29 2018 22:53
depends on the kid
Bjorn van de Peut
@bjorno43
Sep 29 2018 22:53
:joy:
And the situation
I mean, like a school shooting for example. You gotta do what you gotta do to neutralize such a threat. Even if it's a kid
Karma Drukpa
@coderkarma
Sep 29 2018 23:27
Hello
@bjorno43
this question is fairly simple just to multiple of each element in array. I have tried doing reduce, could you take on look on this, why some test are failing
function product(values) {
  if(values.length === 0  && values === null)  return null;
  return values.reduce((accumulator, currentValue) => {
      return accumulator * currentValue ;
  })
    return values;

}
Kyle Holm
@thekholm80
Sep 29 2018 23:32
If the array is null or is empty, the function should return null.
you're returning the empty array if it's empty
oh wait
no you need || instead of && in your if statement
that should do it
Karma Drukpa
@coderkarma
Sep 29 2018 23:34
nope, it did or first and then i changed to and
@thekholm80 it say's cannot read property of length
Kyle Holm
@thekholm80
Sep 29 2018 23:35
right
because if it's null there won't be a lenght
try switching those
if (!values || !values.length)
Bjorn van de Peut
@bjorno43
Sep 29 2018 23:36
@coderkarma Sorry, I was busy doing some detective work here :P
Karma Drukpa
@coderkarma
Sep 29 2018 23:36
@bjorno43 it's all good.
Bjorn van de Peut
@bjorno43
Sep 29 2018 23:37
Was asked to find the full vid source of a small mp4.. and prevaled, yay me
Karma Drukpa
@coderkarma
Sep 29 2018 23:37
@thekholm80 am i doing it right with reduce?
Kyle Holm
@thekholm80
Sep 29 2018 23:37
yep
you got that part perfect
Karma Drukpa
@coderkarma
Sep 29 2018 23:44
function product(values) {
  if(!values.length || !values)  return null;
  return values.reduce((accumulator, currentValue) => {  accumulator * currentValue ;
  })
    return currentValue;

}
Kyle Holm
@thekholm80
Sep 29 2018 23:44
now get rid of the extra return statement
Karma Drukpa
@coderkarma
Sep 29 2018 23:45
@thekholm80 I need to return currentValue right not the values?
Kyle Holm
@thekholm80
Sep 29 2018 23:45
nope
Karma Drukpa
@coderkarma
Sep 29 2018 23:45
what
Kyle Holm
@thekholm80
Sep 29 2018 23:45
what what?

@coderkarma
@thekholm80 I need to return currentValue right not the values?

@thekholm80
nope

Karma Drukpa
@coderkarma
Sep 29 2018 23:46
why ?
Kyle Holm
@thekholm80
Sep 29 2018 23:46
how many times can you return from a function?
Karma Drukpa
@coderkarma
Sep 29 2018 23:46
just one
Kyle Holm
@thekholm80
Sep 29 2018 23:46
and how many return statements does your function have?
also, currentValue only exists inside the callback in your reduce() function, so there's no way to return it outside the reduce() method
scope, my dude. scope
Karma Drukpa
@coderkarma
Sep 29 2018 23:48
okay sir
Kyle Holm
@thekholm80
Sep 29 2018 23:48
but you should check for null before checking length if (values == null || values.length == 0)
otherwise you'll get that "Can't read property 'length' of null" error
Karma Drukpa
@coderkarma
Sep 29 2018 23:49
yes, i am getting that error
@thekholm80 damnn...
@thekholm80 thank you sir checking null first was the key
Kyle Holm
@thekholm80
Sep 29 2018 23:53
super
Karma Drukpa
@coderkarma
Sep 29 2018 23:53
@thekholm80
following you on twitter now
Kyle Holm
@thekholm80
Sep 29 2018 23:54
that's a horrible idea
Karma Drukpa
@coderkarma
Sep 29 2018 23:55
lol
doing 100 days code challenge to.
Kyle Holm
@thekholm80
Sep 29 2018 23:55
all i post is Taylor Swift song lyrics
Karma Drukpa
@coderkarma
Sep 29 2018 23:55
lol
I see your last post was in june
Kyle Holm
@thekholm80
Sep 29 2018 23:55
i mostly just try to encourage people who are learning to code
unless they're learning PHP
Karma Drukpa
@coderkarma
Sep 29 2018 23:56
hahahah Php
please do encourage me as well.
I am already encouraged but just need some guidance lol
NO PHP
Kyle Holm
@thekholm80
Sep 29 2018 23:58
lol
Bjorn van de Peut
@bjorno43
Sep 29 2018 23:59
PHP is love. PHP is live!