These are chat archives for FreeCodeCamp/Help

1st
Feb 2018
Joseph A. Sangine
@HTML-joe
Feb 01 2018 01:20
very basic quick question
Does vs studio have bootstrap already enabled?
artbohr
@artbohr
Feb 01 2018 01:32
@HTML-joe you got to import it I think
artbohr
@artbohr
Feb 01 2018 04:40
I like my first ever issue submit :D
gmojo/fcc-vote#1
Sweet Coding :)
@SweetCodingInc
Feb 01 2018 04:41
@artbohr Because the way they've set it up, it requires two separate builds
one for backend and one for front end
It's they the way they have set it up. It is one of the many 100 ways to do that
artbohr
@artbohr
Feb 01 2018 04:44
ye got that already @SweetCodingInc ty, just seems a bit strange
CamperBot
@camperbot
Feb 01 2018 04:44
artbohr sends brownie points to @sweetcodinginc :sparkles: :thumbsup: :sparkles:
:cookie: 219 | @sweetcodinginc |http://www.freecodecamp.org/sweetcodinginc
GiioBass
@GiioBass
Feb 01 2018 05:34
Hi!! i can't resolve this exercise, the result is wrong, i not idea how make this.
image.png
thanks
Aditya
@ezioda004
Feb 01 2018 05:37
@GiioBass You have var d = "I am a" instead of c
Aniculaesei
@Aniculaesei
Feb 01 2018 06:46
<body>
  <header>
    <h1>Real Coding Ninjas</h1>
  </header>
  <main>
    <p>A sound clip of Zersiax's screen reader in action.</p>
    <audio controls>
      <source src="https://s3.amazonaws.com/freecodecamp/screen-reader.mp3"type="audio/mpeg"/>
    </audio>
     </main>
</body>
What is the problem?It tells me it needs and closig tag the audio element :(
thank you
Claudio Restifo
@Marmiz
Feb 01 2018 06:57
@Aniculaesei try with controls=""
Aniculaesei
@Aniculaesei
Feb 01 2018 06:58
Nope...
Darren
@DarrenfJ
Feb 01 2018 08:17
evening fCC

@daddycardona come visit us on our GitHub journey ;) https://forum.freecodecamp.org/t/git-and-github-practice-for-all-us-noobies/171808

sorry I have not been here lately I have been taking up a mini bootcamp but the only thing I am learning so far from it is the github section unfortunately soon I will have to leave again

ahmed-issa-mohd
@ahmed-issa-mohd
Feb 01 2018 09:49
I don't understand why web worker doesn't by google chrome ?!
I don't understand why web worker doesn't by google chrome ?!
Aniculaesei
@Aniculaesei
Feb 01 2018 11:14
Can you help me please.It tells me I dont have and aending audio tag....What I have to do to pass
Thank you

<body>
  <header>
    <h1>Real Coding Ninjas</h1>
  </header>
  <main>
    <p>A sound clip of Zersiax's screen reader in action.</p>
    <audio controls>
      <source src="https://s3.amazonaws.com/freecodecamp/screen-reader.mp3" type="audio/mpeg"/>
    </audio>


  </main>
</body>
Spacetime
@justinemar
Feb 01 2018 11:26
What editor are you using?
Spacetime
@justinemar
Feb 01 2018 11:31
Oh are you testing your project and the test says you need a close tag for audio?
@Aniculaesei freeCodeCamp/freeCodeCamp#16419
Aniculaesei
@Aniculaesei
Feb 01 2018 12:00
@justinemar yes
thank you man!
Juli Cheng
@julicheng
Feb 01 2018 12:39
Does anyone have experience with php? Would appreciate some help understanding it!
GiioBass
@GiioBass
Feb 01 2018 13:38
blob
and now what? the result is wrong @ezioda004
Sweet Coding :)
@SweetCodingInc
Feb 01 2018 13:39
@GiioBass i should be I
GiioBass
@GiioBass
Feb 01 2018 13:44
oh seriously? I thought the mistake was another
thanks @SweetCodingInc
CamperBot
@camperbot
Feb 01 2018 13:44
giiobass sends brownie points to @sweetcodinginc :sparkles: :thumbsup: :sparkles:
:cookie: 220 | @sweetcodinginc |http://www.freecodecamp.org/sweetcodinginc
Sweet Coding :)
@SweetCodingInc
Feb 01 2018 13:46
@GiioBass :+1:
Darren
@DarrenfJ
Feb 01 2018 16:43
morning fCC
Sweet Coding :)
@SweetCodingInc
Feb 01 2018 16:44
@DarrenfJ Ser Darren :wave:
Kyle Holm
@thekholm80
Feb 01 2018 16:44
@DarrenfJ :wave:
Sweet Coding :)
@SweetCodingInc
Feb 01 2018 16:45
@thekholm80 Ser Kyle:wave:
Kyle Holm
@thekholm80
Feb 01 2018 16:45
@SweetCodingInc hiya
Darren
@DarrenfJ
Feb 01 2018 16:47
hey guys :D
what up?
Kyle Holm
@thekholm80
Feb 01 2018 16:47
another day, another $0.75
Darren
@DarrenfJ
Feb 01 2018 16:48
inflation :P
Kyle Holm
@thekholm80
Feb 01 2018 16:48
:smile:
Kaz Baig
@kbaig
Feb 01 2018 17:45
Another day, another session of bashing my head against the wall till I learn something
I have a love/hate relationship with our documentation
Stephen James
@sjames1958gm
Feb 01 2018 17:53
Another day another 0.0001120838 bitcoin
Darren
@DarrenfJ
Feb 01 2018 19:41
tide comes in, tide goes out
Daniel
@dkapexhiu
Feb 01 2018 21:02
hi! i need to ask about a game. in this game two players can select a weapon and can battle together. the problem is that i have only one switch statement for selecting weapons and i set the selected weapon on sessionStorage and when another weapon is selected on map the weapon is updated. this is very good for player1. the problem is that i want the same thing for player2, but the weapon get replaced by a new one. and in the end i want the weapons choosed to be displayed on a div. thank you
Player.prototype.add_weapon = function(weapon) {
    switch(weapon) {
        case 1:
            // Increases strength by 3
            console.log('strength + 3: star');
            sessionStorage.clear();
            this.strength + 3;
            sessionStorage.setItem("weapon", "star");
            break;
        case 2:
            // Increases strength by 5
            console.log('strength + 5: cake');
            sessionStorage.clear();
            this.strength + 5;
            sessionStorage.setItem("weapon", "cake");
            break;
        case 3:
            // Increases strength by 7
            console.log('strength + 7: bread');
            sessionStorage.clear();
            this.strength + 7;
            sessionStorage.setItem("weapon", "bread");
            break;
        case 4:
            // Increases strength by 10
            console.log('strength + 10: laser');
            sessionStorage.clear();
            this.strength + 10;
            sessionStorage.setItem("weapon", "laser");
            break;
    }
}
artbohr
@artbohr
Feb 01 2018 22:41
@dkapexhiu you need to set a separate storage item for player1 and player2
JBallin
@JBallin
Feb 01 2018 23:32
does anyone know where I can make sense of things like "-g" and "-s" in terminal? I think they're called "flags" but I can't find anything explaining what they all do? thanks!
actually they may be called "command line options"?
Kyle Holm
@thekholm80
Feb 01 2018 23:35
@JBallin do you mean with npm?
JBallin
@JBallin
Feb 01 2018 23:36
hmm possibly
for example you can do ls -a to list hidden files
where do i find info on those other options such as '-a'
Kyle Holm
@thekholm80
Feb 01 2018 23:37
the flags all depend on the program you're using
Stephen James
@sjames1958gm
Feb 01 2018 23:37
@JBallin They are basically options for whatever commands you are running. They usually modify the command you are running.
npm install express is a basic command that installs locally
npm install -g express tells npm to install globally rather than the default locally
JBallin
@JBallin
Feb 01 2018 23:37
is there a place that explains all of them?
Kyle Holm
@thekholm80
Feb 01 2018 23:37
if i use apt-get the flags might do different things than with npm or yarn
so i'd refer to the documentation of the program you're using
JBallin
@JBallin
Feb 01 2018 23:38
more specifically whats the difference between brew cleanup and brew cleanup -s
Stephen James
@sjames1958gm
Feb 01 2018 23:38
@JBallin Each individual command has different flags or options. Sometimes a command without options or using the -h or --help will show the options
Kyle Holm
@thekholm80
Feb 01 2018 23:38
Stephen James
@sjames1958gm
Feb 01 2018 23:38
@JBallin Try brew cleanup --help and see
JBallin
@JBallin
Feb 01 2018 23:39
ok and npm update vs npm update -g?
what do you mean by global vs local
JBallin
@JBallin
Feb 01 2018 23:39
ok i think this is makign some sense now
where can i find info on bash options?
such as ls -a
JBallin
@JBallin
Feb 01 2018 23:43
ok cool thanks for the man pages. still don't understand npm update -g?
is it bad if i ran npm update without -g?
i have npm installed through homebrew
Kyle Holm
@thekholm80
Feb 01 2018 23:43
without the flag it would run update on the current directory's packages
global (-g)would update packages installed globally, iirc
JBallin
@JBallin
Feb 01 2018 23:43
but what does that mean in english haha
Kyle Holm
@thekholm80
Feb 01 2018 23:44
when you start a new project in node, you first call npm init this walks you through simple set up, and creates a package.json file
npm update from this directory updates all packages in package.json
if you add the -g flag it updates the packages you've installed system-wide
for example, i love nodemon
i use it a lot
so i installed it globally
with npm install -g nodemon
Din
@DinShpati
Feb 01 2018 23:46
why
oh
can you tell em what you think about my vid
ok thanks
i didnt know
i deleted it
JBallin
@JBallin
Feb 01 2018 23:47
@thekholm80 so when is a situation where you wouldn't update globally?
Kyle Holm
@thekholm80
Feb 01 2018 23:48
when the package is installed to a project
JBallin
@JBallin
Feb 01 2018 23:48
meaning it isnt installed anywhere else
and would raise some kind of error?
or maybe you have differing versions or something?
Kyle Holm
@thekholm80
Feb 01 2018 23:49
here's a package.json from one of my projects:
{
  "name": "timestamp",
  "version": "1.0.0",
  "description": "FCC Timestamp Microservice",
  "main": "timestamp.js",
  "dependencies": {
    "express": "^4.15.3"
  },
  "devDependencies": {},
  "scripts": {
    "run": "node timestamp.js"
  },
  "author": "Kyle Holm",
  "license": "ISC"
}
here i've installed express
if i want to update express, i'd use npm update
if I had installed express globally, it wouldn't be listed in the project
then i'd use the -g flag
JBallin
@JBallin
Feb 01 2018 23:50
well why didnt you install express globally?
Kyle Holm
@thekholm80
Feb 01 2018 23:50
because i need it installed on the server i deploy to
so it needs to be listed as a dependency
JBallin
@JBallin
Feb 01 2018 23:50
hmm ok that's starting to make some sense
sounds like i'll understand better when actually building
Kyle Holm
@thekholm80
Feb 01 2018 23:51
100%
JBallin
@JBallin
Feb 01 2018 23:51
but i appreciate the time. thanks @thekholm80 !
CamperBot
@camperbot
Feb 01 2018 23:51
jballin sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1683 | @thekholm80 |http://www.freecodecamp.org/thekholm80
Kyle Holm
@thekholm80
Feb 01 2018 23:51
i wish i could explain it better for you
JBallin
@JBallin
Feb 01 2018 23:51
thanks @sjames1958gm
CamperBot
@camperbot
Feb 01 2018 23:51
jballin sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8926 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
JBallin
@JBallin
Feb 01 2018 23:51
all good @thekholm80 i just wanted the gist
learning terminal is super fun but sometimes i'm like wait wtf did i just type!!!
Kyle Holm
@thekholm80
Feb 01 2018 23:52
i love using the command line
JBallin
@JBallin
Feb 01 2018 23:52
but i think as long as i don't type rm -r with the system after i'll be fine
or whatever that bad command is
Kyle Holm
@thekholm80
Feb 01 2018 23:52
lol and no preserve root or whatever it is
removes all directories recursively
JBallin
@JBallin
Feb 01 2018 23:53
yea doesnt sound like the best idea
alright well im gonna continue this terminal tutorial
thanks for helping me!
Kyle Holm
@thekholm80
Feb 01 2018 23:53
best of luck!
JBallin
@JBallin
Feb 01 2018 23:53
thanks you too
Stephen James
@sjames1958gm
Feb 01 2018 23:57
@JBallin :+1:
JBallin
@JBallin
Feb 01 2018 23:58
@thekholm80 @sjames1958gm I realized the best way to figure out something for bash specifically is by looking at the man page for the specific command. for ls -a i could do man ls and see -a Include directory entries whos names begins with a dot (.).
Kyle Holm
@thekholm80
Feb 01 2018 23:59
linux is awesome that way
Stephen James
@sjames1958gm
Feb 01 2018 23:59
@JBallin I usually try --help first as you usually get a summary
ls --help