Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Coy Sanders
@coymeetsworld
typo @zarruk var definirTiempo: "4";
Jessi L Wasell
@JessiW
Hi - I'm needing some help with a DataViz React project - but there doesn't seem to be anyone in that room - could someone help me?
I'm working on my Camper Leaderboard - and right now I'm trying to get just one username to display on the page at the moment to test my code. Problem is its not displaying on the page and I'm not sure why. I don't have any errors to show me why.
Here's my pen if anyone would like to take a look:
Salomon
@zarruk
@coymeetsworld argggghh hahahaha i was having a tough time. thanks!
CamperBot
@camperbot
zarruk sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star2: 1923 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
Jessi L Wasell
@JessiW
I wondered if things are rendering before its received the info from the API - but I kind of don't think so because I can console.log() any of the info and get it back from the API in the console.
Tyler Moeller
@TylerMoeller
blob
@JessiW I haven't started looking at your code yet, but what are you trying to do with these resources?
Plus, you have html, head, and body tags in your html - codepen can do some odd things if you include those.
Jessi L Wasell
@JessiW
Well, I don't really need the jquery library anymore - I had been working with jquery until another camper told me that wasn't a good idea to do with react - I'll remove that one and come back - hold on.
@TylerMoeller
Okay - its removed - anyway - I had the non minified version of react in there to get more descriptive error messages
I eventually planned on taking all but minified out for the finished product - the non-minified versions are just there for debugging purposes right now - does that make sense?
@TylerMoeller
Tyler Moeller
@TylerMoeller
Yes, I just saw both minified and uniminifed, from different sources and thought you might want to clean it up before debugging further
Jessi L Wasell
@JessiW
Well, they are actually there for debugging - should I take the non-minified out now?
@TylerMoeller
Tyler Moeller
@TylerMoeller
@JessiW From what I know, you shouldn't use the minified react and react-dom until you are finished with the code
Jessi L Wasell
@JessiW
okay - I'll take it out and we'll see what happens then :) @TylerMoeller
Tyler Moeller
@TylerMoeller
Hopefully, it provides some meaningful message :)
I will try to take a look in a bit - just noticed that right away as I was going to eat dinner :pizza:
Salomon
@zarruk
would you guys use the setInterval() function for the pomodoro clock project?
Jessi L Wasell
@JessiW
okay just the non-minified there now.... I have no error tho! okay - Thank you and have a great dinner :) @TylerMoeller
CamperBot
@camperbot
jessiw sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
:star2: 1403 | @tylermoeller |http://www.freecodecamp.com/tylermoeller
Tom
@moT01
@zarruk i think thats what i used
it is
John Nunns
@johnnunns
var obj = {
  key: [1000, 10, 50, 10]
}
function getElementsThatEqual10AtProperty(obj, key){
for (var i = 0; i<obj[key].length; i++){
    return i
}

return i
}
getElementsThatEqual10AtProperty(obj, 'key');
why am I returning 0 here?
Tom
@moT01
@johnnunns the second return i ...i shouldn't be available there
Brandon Armstrong
@calmcoolcollected
Could someone help me with my pomodoro clock? Right now the problem is that when the clock switches to the break time ("Relax"), I can't seem to pause the clock (done by clicking the big button) and then clicking it again makes it go faster. There's something wrong with the break interval but I can't seem to figure it out. Possibly a scope problem or things being out of order? http://codepen.io/brandon327/pen/mREZaN/?editors=0010
Tom
@moT01
youre not testing anything, it just returns 0 in the first loop
@calmcoolcollected you got it working for the session, you would think you could replicate it for the break
Tom
@moT01
@calmcoolcollected i feel like something is slipping through in the logic on your pomo.click
Brandon Armstrong
@calmcoolcollected
Definitely possible. I'm not following with the returning 0 part, what do you mean exactly?
Tom
@moT01
ha, yea that's for the previous question
Brandon Armstrong
@calmcoolcollected
Ah ok. But yeah, for some reason clearInterval() doesn't work on the break part. It does have an effect, but not the one that's intended. I've messing with it for a while but I'm getting nowhere.
themixedcoder
@themixedcoder
Set the placeholder value of your text input to "cat photo URL?
some help
Tom
@moT01
@calmcoolcollected yea, im taking a look, ...let me know if you figure it out
Brandon Armstrong
@calmcoolcollected
@moT01 Ok, will do.
Chadd Williams
@chaddd980
hey everyone. i am new to react and i'm having an issue with something that seems simple enough, but i just can't fully get it.
render() {
    var className = this.state.currentTurn === "X" ? "red" : "blue"
    return (
      <div className="board">
        {this.state.board.map((cell, index) => {
          return <div onClick={() => this.handleClick(index)} className={"square " + className}>{cell}</div>;
        })}
      </div>
    );
  }
so basically whats supposed to happen here, is that on click the currentTurn state changes from X to Y and vice versa. and then if its X i give the div a classname of red or blue if its Y. All of that is happening, except every single div is getting the red or blue classname. So basically it seems that every div is getting re-rendered. and i can't for the life of me figure out how to get it done for just one
Tom
@moT01
@calmcoolcollected im getting close i think
alexbuster
@alexbuster
I have a question in my attribute page my picture no longer shows can somebody tell my why?
Salomon
@zarruk
Hello. Does anybody know why my clock is starting to run without me pressing the botonoabutton (start button)?