These are chat archives for FreeCodeCamp/Help

21st
Feb 2015
Alex Dixon
@alex-dixon
Feb 21 2015 00:31
function checkWin (moves) {
        function makeCheck (moves) {
            return function (input) {
                return moves.some(function (element) {
                        return element === input;
                });
            };
        }
        var check = makeCheck(moves);
this appears to do what I was trying to do :D
Vince
@Vince33
Feb 21 2015 00:34
Hey guys maybe someone could just reassure me that it is possible to iterate over a collection objects stored in an array with map , and test for values ?
Cristián Berríos
@crisberrios
Feb 21 2015 00:36
yes
but make sure you need test
and not .forEach , .filter or .reduce
I mean .map
or maybe .sort
Vince
@Vince33
Feb 21 2015 00:40
ok great! I just need to know I am barking up the right tree at least
Cristián Berríos
@crisberrios
Feb 21 2015 00:41
yeah, most likely you are if using that instead of for...in :P
Vince
@Vince33
Feb 21 2015 00:42
yeah for in seems like it is more for purely objects maybe?
"for in"
if that makes sense
and it digs up alot of unwanted stuff too ?
Cristián Berríos
@crisberrios
Feb 21 2015 00:43
that's right
Vince
@Vince33
Feb 21 2015 00:45
@crisberrios cool thanks again!
Chris Dziewa
@chrisdziewa
Feb 21 2015 06:23
@terakilobyte I believe there is an error in the Drop it like it's hot bonfire challenge. It seems to be only passing when set to find the first false value instead of a true one.
Nathan
@terakilobyte
Feb 21 2015 06:26
thanks, yeah it definitely looks like the logic in the tests isn't right
Chris Dziewa
@chrisdziewa
Feb 21 2015 06:27
It was funny, all I had to do was put an exclamation point in my if statement and it worked. I thought I was going crazy until I looked closer at the test results
and no problem
Shane Dutcher
@sdkask
Feb 21 2015 06:39
Needing help on dash PROJECT 3 checkpoint 6 (slide 37) unsure on it.
Angelica Ferdinand
@ESOComputing
Feb 21 2015 06:39
@DevKask Sure
Let me pull up my code and then shoot away. :)
Shane Dutcher
@sdkask
Feb 21 2015 06:40
alright
Angelica Ferdinand
@ESOComputing
Feb 21 2015 06:40
project three which section
Shane Dutcher
@sdkask
Feb 21 2015 06:40
first
Angelica Ferdinand
@ESOComputing
Feb 21 2015 06:40
ok
ok, so what are you having trouble with?
Shane Dutcher
@sdkask
Feb 21 2015 06:42
The entire question just doesn’t make sense to me
Angelica Ferdinand
@ESOComputing
Feb 21 2015 06:42
Ok so go back one slide
Shane Dutcher
@sdkask
Feb 21 2015 06:42
i have this for paragraph background: rgba(0, 0, 0, 0.1);
Angelica Ferdinand
@ESOComputing
Feb 21 2015 06:42
It gives you the links to three images
then it says to set the images as the background for the 3 classes you create
if you go to slide 35
it actually previews the code they are looking for
you want to create 3 classes each name exactly as they as
*ask
then set the backgrounds accordingly.
Shane Dutcher
@sdkask
Feb 21 2015 06:45
Awesome it worked thank you
Angelica Ferdinand
@ESOComputing
Feb 21 2015 06:45
You're welcome.
Shane Dutcher
@sdkask
Feb 21 2015 06:45
i had put linear-gradient in but didn’t work was missing the bottom and another regba
rgba*
Angelica Ferdinand
@ESOComputing
Feb 21 2015 06:46
With dash if you don't put exactly what they are asking for it won't register.
Shane Dutcher
@sdkask
Feb 21 2015 06:48
yeah
Jonathan
@jonathantimm
Feb 21 2015 17:51
Anybody around for a question?
Kapil Dutta
@duttakapil
Feb 21 2015 17:52
What is it?
Jonathan
@jonathantimm
Feb 21 2015 17:53
Just something on the Dash css robot challenge - it's telling me to define the blink animation and I think I have the code in there right but it's not registering so something must be off
@keyframes blink {
  50% {
    background: radial-gradient(circle, red 15%, transparent 40%), #cc5;
  }
Kapil Dutta
@duttakapil
Feb 21 2015 17:53
Just a sec
Jonathan
@jonathantimm
Feb 21 2015 17:54
thank you. the slide is 86
Cristián Berríos
@crisberrios
Feb 21 2015 17:54
if it's right and doesn't work, don't stress
blinking eyes don't work in firefox too well
and they are also buggy in chrome
Jonathan
@jonathantimm
Feb 21 2015 17:55
well it's that dash isn't recognizing it - normally it gives you the little green check icon if you did it right
but yeah, i guess it's not a huge deal anyway
Cristián Berríos
@crisberrios
Feb 21 2015 17:55
oh
maybe it's asking to add vendor prefixes?
Jonathan
@jonathantimm
Feb 21 2015 17:56
well that's the next step apparently
but in this step for some reason it didn't like my code above
Cristián Berríos
@crisberrios
Feb 21 2015 17:57
hmm
it might be asking to put the css at the top of the document
or just buggy
Jonathan
@jonathantimm
Feb 21 2015 17:57
but it shows the example exactly where i put it
Cristián Berríos
@crisberrios
Feb 21 2015 17:57
if you are copy-pasting what it's asking just move forward
Jonathan
@jonathantimm
Feb 21 2015 17:57
okay
the irony!
Kapil Dutta
@duttakapil
Feb 21 2015 18:00
You did put the closing bracket for the '@ keyframe blink' right?
Jonathan
@jonathantimm
Feb 21 2015 18:01
maybe that was it
thank you guys
Kapil Dutta
@duttakapil
Feb 21 2015 18:02
Ya the code you put above is missing the closing bracket, other than that everything seems to be right.
Jonathan
@jonathantimm
Feb 21 2015 18:04
much appreciated
Jonathan
@jonathantimm
Feb 21 2015 18:45
hey @duttakapil , if you don't mind, i have yet another issue with these keyframes
or anyone else
@keyframes dance {
  from {
    left: 800px;
  }
}
@webkit-keyframes dance {
  from {
    left: 800px;
  }
}
@moz-keyframes dance {
  from {
    left: 800px;
  }
}
is something there wrong?
Kapil Dutta
@duttakapil
Feb 21 2015 18:48
I think you missed a hyphen (-) before the webkit and moz key words
Jonathan
@jonathantimm
Feb 21 2015 18:52
that was it. that's annoying cause they tell you to "include a @webkit-keyframes animations with the same values"
so i was just writing it the way they did
trickery!
Kapil Dutta
@duttakapil
Feb 21 2015 19:06
Ya, you have to be careful. Even professional programmers miss simple stuff like that sometimes.
John Hampton
@jjhampton
Feb 21 2015 23:18
anyone available to answer a question I had about FCC challenge #15?
Angelica Ferdinand
@ESOComputing
Feb 21 2015 23:39
Sorry I didn't see this earlier. Have you gotten any help?
@jjhampton I can help on that definitely.
John Hampton
@jjhampton
Feb 21 2015 23:45
n/p @ESOComputing, thanks for replying. i actually posted a msg on the forum about it - here is the link, question at the bottom: http://forum.freecodecamp.com/t/challenge-15-please-help/949/6
Angelica Ferdinand
@ESOComputing
Feb 21 2015 23:50
Ok. I'll take a look .
John Hampton
@jjhampton
Feb 21 2015 23:51
k. i thought maybe it was just a glitch. i totally understand why the offered solution works, was just confused why my alternative didn't.
Angelica Ferdinand
@ESOComputing
Feb 21 2015 23:54
Hmmm... let me check.
So on the jQuery API they have a page about .appendTo();
It definitely explains stuff better than I can. :)
John Hampton
@jjhampton
Feb 21 2015 23:59
thx. i read through that link too, but couldn't find anything explaining why append() would produce a different result than appendTo(), assuming content and target are placed correctly