Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • 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
well, i wanted to see where you were setting the autoIncrement - or where - or the code you were using to grab that info
it says undefined there, i think thats an async issue
or sync
How do you send a script instead of just copy-pasting?
Chris Rutherford

Yes, the code for the Auto Increment is here:

'use strict';
module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.createTable('Outsiders', {
      id: {
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        type: Sequelize.INTEGER
      firstName: {
        type: Sequelize.STRING,
        allowNull: false

this is supposed to handle the auto increment of table keys on it's own, but I guess it's borked.

I'll link you my repo so you can take a look.
@cjrutherford yea, im not sure
if the first one works
try the second again
look for typos
is the file the right structure
im sure you did all that
Chris Rutherford
yeah, it's a quagmire, I'm going to look up another tutorial and start from scratch. they're really no help over there.
Kaz Baig
@alpox do you do sass
@kbaig I did do some
Long not anymore
Marius Nicolae
hi guys, i have a little issue, im trying to link in my JSON some objects
does someone here have some experience?
@bytao7mao can you provide some details or code example?
Marius Nicolae
Before i provide the code i want to give some info
of what i want to do
i want to link my winner or looser ID with ID of Country
Marius Nicolae
the logic is: if points of x.inv is > than x.def (see var x) then link the ID with countries ID (var y)
i get this now but it is not ok :)) because i getting only the index 1 from all
"85 > 37 Winner is: Brazil"
Guys, i'm trying the simon challenge, but i'm having an issue with playing my audio queue
but the problem is, my sound is waiting for the previous sound to finish so that it could play
Aleksander Gębicki
Hello campers,
this weekend (17-19 November) CodeSchool is offering free learning for everybody.
There is a lot of interesting content to study, so tell your mothers and girls that you are absent ;-)

CodeSchool - free weekend

@bytao7mao get it figured out?
@newnewb have any code? so the audio goes into a queue?
Marius Nicolae
@moT01 i'm struggling
can i show the code ?
isnt the code there in the codepen?
yeah is in codepen
so where are you stuck
are you able to get the ids of the winner and loser
Marius Nicolae
yes i'm getting the ids, but now i have to implement the condition that the ID of COuntry to be equal to the ID of the Winner / loser
i made a while statement but it doesnt work
@bytao7mao It's already solved, someone on frontend help saw it through with me!
Marius Nicolae
what O_o
oh sorry i meant tom
countries is an object and the id is used as the key it looks like
so if you found the winner id, and it's 171
you should be able to do something like...
var winningCountry = c[winningID].name
no looping needed
Marius Nicolae
but i have so many countries ID's how should i not make it without loops
Looping means looking through, from what i understand to pick a winner... you just need to pick one out