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
Chris Rutherford
@cjrutherford
I assume the Next is something in the pipeline for Sequelize.
oh sorry this is the wrong chat.....
Thanks anyway Tom
Tom
@moT01
what
you can chat wherever you want
Chris Rutherford
@cjrutherford
lol, I was looking for the Sequelize chat. though.... lol all good
Tom
@moT01
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
whatever
Matt
@DaftlyPunkish
How do you send a script instead of just copy-pasting?
Chris Rutherford
@cjrutherford

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.
Tom
@moT01
@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
@cjrutherford
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
@kbaig
@alpox do you do sass
alpox
@alpox
@kbaig I did do some
Long not anymore
Marius Nicolae
@bytao7mao
@bytao7mao
hi guys, i have a little issue, im trying to link in my JSON some objects
does someone here have some experience?
Harut
@harut-g
@bytao7mao can you provide some details or code example?
Marius Nicolae
@bytao7mao
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
@bytao7mao
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"
Hammad
@newnewb
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
@Takumar
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

Tom
@moT01
@bytao7mao get it figured out?
@newnewb have any code? so the audio goes into a queue?
Marius Nicolae
@bytao7mao
@moT01 i'm struggling
can i show the code ?
Tom
@moT01
isnt the code there in the codepen?
yeah is in codepen
Tom
@moT01
so where are you stuck
are you able to get the ids of the winner and loser
Marius Nicolae
@bytao7mao
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
Hammad
@newnewb
@bytao7mao It's already solved, someone on frontend help saw it through with me!
help*
Marius Nicolae
@bytao7mao
what O_o
Hammad
@newnewb
oh sorry i meant tom
Tom
@moT01
countries is an object and the id is used as the key it looks like