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
Tom
@moT01
do you have a pen?
J.Chechelski
@SupaSaiyan
Hello guys, fast question. I'm typing my first portfolio. Shall I use CSS variables? IE doesn't support. What do you think?
Tom
@moT01
css variables?
Markus Kiili
@Masd925
@SupaSaiyan You should make it so that it also works in IE.
GabriRa
@GabriRa
Me? I am doing it here
https://codepen.io/GabriRa/pen/XeqXmX but I diont get hw should I update everything
Tom
@moT01
do you know the rules?
you need to make an algorithm to find out how many neighbors each cell has
GabriRa
@GabriRa
Its done, with some conditions so it takes only good neighbors
but I dont know how to update every cell, let me comment more my code
Tom
@moT01
good neighbors
? ha, the bad neighbors get shunned from the neighborhood?
Jose Diaz
@jsd540
Good morning all, I want to create an array of arrays - stuff[{'name':name, 'live':live},{'name':name, 'live':live},{'name':name, 'live':live}] but I'm getting 0:{'name':name, 'live':live}, 1:{'name':name, 'live':live}, etc my code is var stuff = []; stuff.push({
'name':name,
'live':live
})
What am I doing wrong?
Tom
@moT01
@jsd540 you're making an array of objects there
GabriRa
@GabriRa
the first row should not use the state of the neighbors that are above, as they don't have one
Tom
@moT01
@GabriRa it's not supposed to be playing yet, is it?
GabriRa
@GabriRa
I dont know hoe to make it start
Tom
@moT01
is that a question?
Jose Diaz
@jsd540
@moT01 but its showing up as an array for each user and the length for stuff is always 0
GabriRa
@GabriRa
no
It should be running
but i have done something wrong, so it does not starts
or rerender the cell
Tom
@moT01
change the state to the new array @GabriRa
GabriRa
@GabriRa
my god
I think you are right
Tom
@moT01
@jsd540 stuff should have 3 length i think
Jose Diaz
@jsd540
so var stuff = new.array(); ?
@jsd540
i think it's getting stuck looking for variables named live and name
need to make them strings in the object, or create variables with those names
GabriRa
@GabriRa
Why when I use setState it doesn't triggers ComponentDidMount again?
Jose Diaz
@jsd540
thats what I want to end up with but it seems to be pushing to individual arrays
Tom
@moT01
@GabriRa i dont think it's supposed to trigger that
@jsd540 check it again
Marc
@MWBauer
Anyone have a moment?
Tom
@moT01
@MWBauer whats up
Marc
@MWBauer
I'm working on the Random Quote Generator. Once I've gone and pulled a random quote from the web, it needs to be displayed. Do I need a special field for that to display in, or make a button and have the message display there?
Tom
@moT01
@GabriRa i dont know spanish (i think that's spanish), so it's tough for me to find out what's going wrong there, but there should be single array that you map to the html in the return() and then in the function to update the grid you should change the state at the end, and it will automatically update the screen
pretty sure that's how i did it
@MWBauer make an html element to put it in
and use .html to put the quote in it
(if you're using jquery)
Marc
@MWBauer
thx
@moT01 thanks
CamperBot
@camperbot
sorry mot01, you can't send brownie points to yourself! :sparkles: :sparkles:
Jose Diaz
@jsd540
@moT01 yep still get 0 length, and [] in the console...