These are chat archives for FreeCodeCamp/Help

21st
Jul 2017
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 00:00
@razvanlikespizza :wave:
Kyle Holm
@thekholm80
Jul 21 2017 00:00
@thekholm80 :wave:
oh wait you didn't wave at yourself lol
thekholm80 @thekholm80 's reading comprehension has improved! [6]
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 00:01
@thekholm80 :wave:
Kyle Holm
@thekholm80
Jul 21 2017 00:01
hi Ravi
how's life?
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 00:02
hectic
Kyle Holm
@thekholm80
Jul 21 2017 00:02
@Manish-Giri could use some bos vids!
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 00:03
where is he?
Kyle Holm
@thekholm80
Jul 21 2017 00:03
in ohio
lol
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 00:03
lol
Razvan
@razvanlikespizza
Jul 21 2017 00:03
@ravikishorethella Hey brother :wave:
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 00:03
how are you?
Kyle Holm
@thekholm80
Jul 21 2017 00:04
I'm good! haven't done much coding this week, but i needed a break
Manish Giri
@Manish-Giri
Jul 21 2017 00:05
yiss I wantz bos videos
Gulsvi
@gulsvi
Jul 21 2017 00:06
image.png
tao
@Azerop
Jul 21 2017 00:07
thank you. @sjames1958gm
CamperBot
@camperbot
Jul 21 2017 00:07
azerop sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8125 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 00:07
@Manish-Giri did you copy the url?
Manish Giri
@Manish-Giri
Jul 21 2017 00:08
um no It was gone by the time I came back
can you pm?
Gulsvi
@gulsvi
Jul 21 2017 00:08
I did not realize we have to register for those videos now...they are pretty useful
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 00:08
@Manish-Giri done
aRtoo
@artoodeeto
Jul 21 2017 00:10
yow bro. why is my z-index doesnt work?? i have a div with a class of intro and set the index to z-index:1 and a div with a class of content set index to z-index:10 but i wont overlap after the animation is done. help. :(
Kyle Holm
@thekholm80
Jul 21 2017 00:11
@ravikishorethella thanks
CamperBot
@camperbot
Jul 21 2017 00:11
thekholm80 sends brownie points to @ravikishorethella :sparkles: :thumbsup: :sparkles:
:cookie: 967 | @ravikishorethella |http://www.freecodecamp.com/ravikishorethella
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 00:11
@thekholm80 ty
Manish Giri
@Manish-Giri
Jul 21 2017 00:11
@ravikishorethella ty
CamperBot
@camperbot
Jul 21 2017 00:11
manish-giri sends brownie points to @ravikishorethella :sparkles: :thumbsup: :sparkles:
:cookie: 968 | @ravikishorethella |http://www.freecodecamp.com/ravikishorethella
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 00:11
@thekholm80 thanks
wtf
Kyle Holm
@thekholm80
Jul 21 2017 00:11
cbot hates me lol
CamperBot
@camperbot
Jul 21 2017 00:11
you called?
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 00:12
@thekholm80 @Manish-Giri ty
CamperBot
@camperbot
Jul 21 2017 00:12
ravikishorethella sends brownie points to @thekholm80 and @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 1353 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:star2: 6290 | @manish-giri |http://www.freecodecamp.com/manish-giri
knight2
@knight2
Jul 21 2017 00:31
What exactly happens if you add an event listener in componentDidMount(), but then you do not remove it in componentWillUnmount()?
Kyle Holm
@thekholm80
Jul 21 2017 00:32
the end of the internet as we know it
i generally try to remove them in the unmount, but if you're only using a few it's not a huge deal
I believe the garbage collector will get them
when your app scales up, though, it becomes more necessary
knight2
@knight2
Jul 21 2017 00:35
So if you don't remove them, they are a memory leak as long as the web page/element it is in is active?
Kyle Holm
@thekholm80
Jul 21 2017 00:36
i'm not 100% certain, but i believe the garbage collector sees that they're a dead process and cleans them up. it will tie up a small amount of resources until then, and of course the GC takes it's own set of resources when it runs
knight2
@knight2
Jul 21 2017 00:39
Interesting. Thanks @thekholm80
CamperBot
@camperbot
Jul 21 2017 00:39
knight2 sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1354 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Kyle Holm
@thekholm80
Jul 21 2017 00:39
this is a good watch
i liked it, anyway
knight2
@knight2
Jul 21 2017 00:41
watching it now :D
Dante Galindo Cruz
@dantegalindocruz
Jul 21 2017 00:53
just a heads up I want to help elucidate the section on “Condense arrays with reduce"
so this was the example they had
var singleVal = array.reduce(function(previousVal, currentVal) {
return previousVal - currentVal;
}, 0);
nevermind. For some weird reason it displayed correctly here but now on my page lol
I just realized I didn’t scorll over. But hey they didn’t make that very obvious

usererror hahaha

Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 01:02
@thekholm80 I lost my streak after 56 days :worried:
Kyle Holm
@thekholm80
Jul 21 2017 01:04
mine's gone too. but i needed a few days off
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 01:05
my case is pretty weird
Kyle Holm
@thekholm80
Jul 21 2017 01:06
did you get kidnapped by hillbillies and held for ransom?
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 01:06
blob
lol
Nahuel Ovejero
@NahuelOvejero
Jul 21 2017 01:06
streak are for weaklings
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 01:06
@NahuelOvejero I don't think so
Kyle Holm
@thekholm80
Jul 21 2017 01:07
@NahuelOvejero is just mad that Manish has the longest streak ever
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 01:07
that motivates you to code daily atleast that's my opinion
Nahuel Ovejero
@NahuelOvejero
Jul 21 2017 01:08
Manish is crazy
Kyle Holm
@thekholm80
Jul 21 2017 01:08
520 days
Nahuel Ovejero
@NahuelOvejero
Jul 21 2017 01:08
that is why, the Manish sempai
lol wuuuuuut
Kyle Holm
@thekholm80
Jul 21 2017 01:08
he's on a whole different level
Nahuel Ovejero
@NahuelOvejero
Jul 21 2017 01:08
yeah...
what is your streak Kyle?
Manish Giri
@Manish-Giri
Jul 21 2017 01:08
:smiling_imp:
my streak will go away soon
Ravi Kishore Thella
@ravikishorethella
Jul 21 2017 01:09
good joke
Kyle Holm
@thekholm80
Jul 21 2017 01:11
My streak is 2 days
longest is 72 days
Nahuel Ovejero
@NahuelOvejero
Jul 21 2017 01:12
lol
you seem like me
good job
Bryan Reese
@breese8009
Jul 21 2017 01:28
@Manish-Giri yo yo
what u guys mean streak??? days coding?
Gulsvi
@gulsvi
Jul 21 2017 01:50
@breese8009 The number of days in a row where you have gotten a brownie point here in FCC.
(really important stats :p)
Kyle Holm
@thekholm80
Jul 21 2017 01:58
it's pretty much the most important thing ever
Gregory Cheng
@gregorytcheng
Jul 21 2017 02:02
Currently working on my Wikipedia viewer and I’m having a bit of trouble with getting text from my search box. Googling around hasn’t solved my problem thus far. Any advice how I should go about this? https://codepen.io/gregorytcheng/pen/bWPVaB
Manish Giri
@Manish-Giri
Jul 21 2017 02:07
@gregorytcheng document.getElementById('#searchBox').
inside getElementById
you don't put the #, just the ID name
@breese8009 hola
Bryan Reese
@breese8009
Jul 21 2017 02:08
@Manish-Giri hey man, how are u with handlebarsJS?
Manish Giri
@Manish-Giri
Jul 21 2017 02:09
yikes, never used them
@thekholm80 has, I think
Gregory Cheng
@gregorytcheng
Jul 21 2017 02:09
@Manish-Giri Took out the #, but I still can’t get it to register. I’m trying to log my variable into the console so that I can confirm that it’s being recognized.
Manish Giri
@Manish-Giri
Jul 21 2017 02:09
@gregorytcheng $("searchButton")
what's this?
an ID? a class?
how will jQuery know what you're asking it to select?
Gregory Cheng
@gregorytcheng
Jul 21 2017 02:10
It’s an ID. I forgot the “#” in front of it. Just saw it and fixed it
Manish Giri
@Manish-Giri
Jul 21 2017 02:10
cool
should work now
Gregory Cheng
@gregorytcheng
Jul 21 2017 02:10
@Manish-Giri Thanks for pointing that out. I got it to work!
CamperBot
@camperbot
Jul 21 2017 02:10
gregorytcheng sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6291 | @manish-giri |http://www.freecodecamp.com/manish-giri
Manish Giri
@Manish-Giri
Jul 21 2017 02:10
also if you're using jQuery, why not stick to it all the way
Gregory Cheng
@gregorytcheng
Jul 21 2017 02:13
Wait, I keep getting “null” in my console without using ‘’’#’''
Kasi1998
@Kasi1998
Jul 21 2017 02:13
Hey guys! I need help but forgot how to copy my code (screen) to get help...
Gulsvi
@gulsvi
Jul 21 2017 02:13
@gregorytcheng I was going to say, try to stick to either jQuery or pure JS, it makes things a bit easier. Your text is returning null at the moment. Try this instead:
  $("#searchButton").on("click", function() {
    var text = $('#searchBox').val();
    console.log(text);
  });
Gregory Cheng
@gregorytcheng
Jul 21 2017 02:14
@SkyC0der This works, thanks!
CamperBot
@camperbot
Jul 21 2017 02:14
gregorytcheng sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:star2: 2171 | @skyc0der |http://www.freecodecamp.com/skyc0der
Gulsvi
@gulsvi
Jul 21 2017 02:14
Or, to get your current JS + Pure JS solution working:
  $("#searchButton").on("click", function() {
    text = document.getElementById("searchBox").value
    console.log(text);
  });
Kyle Holm
@thekholm80
Jul 21 2017 02:14
what's that about handlebars?
aRtoo
@artoodeeto
Jul 21 2017 02:19
hello guys. is there a way that you could stick or fixed the footer that it wont move?? i have div in the middle that when you click it will slide to the right but the footer on load it will be on top.
Sam Moradi
@sammymm
Jul 21 2017 02:24
Hi everyone, I'm working on the weather app challenge. I'm not sure why my weather pattern image does not load. I'm using jQuery to change src
not sure what I'm doing wrong
aRtoo
@artoodeeto
Jul 21 2017 02:26
@sammymm if its an image try
$(element).attr('img','url');
Kasi1998
@Kasi1998
Jul 21 2017 02:30

I'm doing the Use Spans for Inline Elements but the point:

  • Your span element should have the text love.
  • Your span element should have class text-danger.

I don't understand how to do those...

Kasi1998
@Kasi1998
Jul 21 2017 02:39

I'm just missing to do Your span element should have class text-danger...

I've try everything and nothing is working

Gulsvi
@gulsvi
Jul 21 2017 02:42
@sammymm For a hint, the <img> element has a src attribute, not a href attribute, and it does not have a closing tag </img>

@sammymm For another hint, when you do this:

$('#weatherPattern').html(data.weather[0].main)

You overwrite the entire contents of the #weatherPattern div. That div includes your img, so you are overwriting your image.

Kasi1998
@Kasi1998
Jul 21 2017 02:45

there is my code

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>

h2 {
font-family: Lobster, Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.text-danger {
color: red;
}

</style>

<div class="container-fluid">
<h2 class="text-primary text-center">CatPhotoApp</h2>

<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>

<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary">Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info">Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger">Delete</button>
</div>
</div>
<p>Things cats <span class: "text-danger"> love:</span>/<p>

CamperBot
@camperbot
Jul 21 2017 02:45
:bulb: to format code use backticks! ``` more info
Kasi1998
@Kasi1998
Jul 21 2017 02:49
I got it
aRtoo
@artoodeeto
Jul 21 2017 02:49
@SkyC0der yow bro i have a question
Ruben Debbarma
@Rubendebbarma
Jul 21 2017 02:50
@Kasi1998 you did not input any span yet
@Kasi1998 sorry u inputed it but the way is wrong
Kasi1998
@Kasi1998
Jul 21 2017 02:51
@Rubendebbarma yes I did I just forget to put one letter and my code wasn't working
I got it now
Ruben Debbarma
@Rubendebbarma
Jul 21 2017 02:51
@Kasi1998 great than!
Gulsvi
@gulsvi
Jul 21 2017 02:52
@artoodeeto What's up?
Ruben Debbarma
@Rubendebbarma
Jul 21 2017 02:52
@Kasi1998 need help just mention me
Gulsvi
@gulsvi
Jul 21 2017 02:52
And what is this @artoodeeto ? :) $(element).attr('img','url');
the img attribute?
Ruben Debbarma
@Rubendebbarma
Jul 21 2017 02:52
@SkyC0der feeling great what about u?
Kasi1998
@Kasi1998
Jul 21 2017 02:52
@Rubendebbarma nice thank you
CamperBot
@camperbot
Jul 21 2017 02:52
kasi1998 sends brownie points to @rubendebbarma :sparkles: :thumbsup: :sparkles:
:cookie: 182 | @rubendebbarma |http://www.freecodecamp.com/rubendebbarma
Gulsvi
@gulsvi
Jul 21 2017 02:53
Hello @Rubendebbarma Doing great too. Where does everyone go to make cool avatars like yours?
I've seen them everywhere lately :p
aRtoo
@artoodeeto
Jul 21 2017 02:53
@SkyC0der for passing img. is my syntax wrong?? hahaha
Eric Weiss
@eweiss17
Jul 21 2017 02:54
img isn't an attribute
its a tag, ya?
Gulsvi
@gulsvi
Jul 21 2017 02:54
^^ Right
Eric Weiss
@eweiss17
Jul 21 2017 02:54
i think you may mean... 'src' instead of img
Ruben Debbarma
@Rubendebbarma
Jul 21 2017 02:55
@SkyC0der here you go https://pickaface.net/
Gulsvi
@gulsvi
Jul 21 2017 02:55
@Rubendebbarma Thanks :)
CamperBot
@camperbot
Jul 21 2017 02:55
skyc0der sends brownie points to @rubendebbarma :sparkles: :thumbsup: :sparkles:
:cookie: 183 | @rubendebbarma |http://www.freecodecamp.com/rubendebbarma
Eric Weiss
@eweiss17
Jul 21 2017 03:00
@SkyC0der is this going to be the end of beer / pencil icon...
Sam Moradi
@sammymm
Jul 21 2017 03:01
@SkyC0der thank you
CamperBot
@camperbot
Jul 21 2017 03:01
sammymm sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:star2: 2173 | @skyc0der |http://www.freecodecamp.com/skyc0der
Sam Moradi
@sammymm
Jul 21 2017 03:01
can you also tell me what the difference between an attribute and a tag is
thanks
Eric Weiss
@eweiss17
Jul 21 2017 03:02
a div is a tag
a class is an attribute
<tag anythingThatGoesInHereIsAttribute>
Sam Moradi
@sammymm
Jul 21 2017 03:16
thanks @eweiss17
CamperBot
@camperbot
Jul 21 2017 03:16
sammymm sends brownie points to @eweiss17 :sparkles: :thumbsup: :sparkles:
:cookie: 546 | @eweiss17 |http://www.freecodecamp.com/eweiss17
Kasi1998
@Kasi1998
Jul 21 2017 03:18
@Rubendebbarma Is it normal that at some place in my code when I start writing the code I've got right behind is erasing??
Or if anyone can answer my question will be big help!
rushendra
@rushendrarushi
Jul 21 2017 04:03
var oldArray =[1,2,3,4,5]

var oldArray = [1,2,3,4,5];

// Only change code below this line.
oldArray = oldArray.map(function(val){
return val +3;
});
var newArray = oldArray;

i need some help with this code
i should not change the original array
so i did this
var oldArray=[1,2,3,4,5]
newArray = oldArray.map(function(val){
return val + 3;
});
var newArray = oldArray;
__mifflin__
@cdrainxv
Jul 21 2017 04:21

@rushendrarushi: map takes an array, changes its elements and returns a new array. Then you want to store that new array ina variable newAarray. So you should only need:

var newArray = oldArray.map(function(val){
  return val + 3;
});

with all your extra code, especially this one: var newArray = oldArray;, you are resetting newArray back to the original array (oldArray) and not the new one that ws returned from the map function.

Viktor Tiutiun
@vittorioVT
Jul 21 2017 04:31
hello everybody
Momozor
@momozor
Jul 21 2017 04:32
:wave: @vittorioVT
Viktor Tiutiun
@vittorioVT
Jul 21 2017 04:32
@faraco hi :smile:
Kasi1998
@Kasi1998
Jul 21 2017 04:40
@vittorioVT Hi!
Viktor Tiutiun
@vittorioVT
Jul 21 2017 04:41
@Kasi1998 hi
Kasi1998
@Kasi1998
Jul 21 2017 04:42
Does anyone know how to put the h3 element center in the Create a Bootstrap Headline??
Viktor Tiutiun
@vittorioVT
Jul 21 2017 04:42
@Kasi1998 add class="text-center"
Kasi1998
@Kasi1998
Jul 21 2017 04:43
@vittorioVT I've try this. Give me one sec I will send you my code
"<h3 class="text-primary" class="text-center">jQuery Playground</h3>"
Viktor Tiutiun
@vittorioVT
Jul 21 2017 04:45
@Kasi1998 show please
Kasi1998
@Kasi1998
Jul 21 2017 04:46
<h3 class="text-primary" class="text-center">jQuery Playground</h3>
Mukul Agrawal
@mukul09
Jul 21 2017 04:46
@Kasi1998 you do not have to write two "class". do it like this
class="class-name-1 class-name-2"
there is a space between the two class name
Viktor Tiutiun
@vittorioVT
Jul 21 2017 04:46
@Kasi1998 you need this <h3 class="text-primary text-center">jQuery Playground</h3>
Kasi1998
@Kasi1998
Jul 21 2017 04:47
oh ok @vittorioVT thanks!
CamperBot
@camperbot
Jul 21 2017 04:47
kasi1998 sends brownie points to @vittoriovt :sparkles: :thumbsup: :sparkles:
:cookie: 795 | @vittoriovt |http://www.freecodecamp.com/vittoriovt
Viktor Tiutiun
@vittorioVT
Jul 21 2017 04:47
@Kasi1998 you're welcome
kiran JD
@kiranjd
Jul 21 2017 05:34
The javascript file is not working when I host the index.html file along with javascript and css file. I'm able to link the CSS file. Here's the hosted page
madhuri soni
@sonimadhuri
Jul 21 2017 05:50
@kiranjd i guess you havent added the js file because while inspecting the page under the sources there isnt any js file
kiran JD
@kiranjd
Jul 21 2017 05:50
@sonimadhuri The js file is file11.js
madhuri soni
@sonimadhuri
Jul 21 2017 05:51
but where have you added th file11 file
madhuri soni
@sonimadhuri
Jul 21 2017 05:57
@kiranjd alright you have added it now .you dont need to include thistype="text/javascript
kiran JD
@kiranjd
Jul 21 2017 05:57
@sonimadhuri Okay
@sonimadhuri Yes, It is working fine
Thanks you @sonimadhuri
CamperBot
@camperbot
Jul 21 2017 05:59
kiranjd sends brownie points to @sonimadhuri :sparkles: :thumbsup: :sparkles:
:cookie: 331 | @sonimadhuri |http://www.freecodecamp.com/sonimadhuri
madhuri soni
@sonimadhuri
Jul 21 2017 06:11
@kiranjd :+1:
saurabh216
@saurabh216
Jul 21 2017 06:56
Use CSS Selectors to Style Elements....I am stuck in that challenge..Not able to change the color to blue....Help me
Jake
@JakeDVirus
Jul 21 2017 06:57
The statement console.log(document.getElementsByClassName("buttonQ")[0]); placed in specific position executes successfully, but the same statement when placed at another specific position executes undefined. whats going on here ??
Statements in both positions are marked via comment in the code
//quotes
(function(){

  window.addEventListener("load", makeRequest);

  function makeRequest(){ 
      //-----the below statement "console.log" executes succesfully----
      console.log(document.getElementsByClassName("buttonQ")[0]); 
    document.getElementsByClassName("buttonQ")[0].addEventListener("click", makeRequest);
    function reqListener() {
      if(httpR.readyState === XMLHttpRequest.DONE) {
        var quote;
        if(httpR.status === 200) {
            quote = JSON.parse(httpR.responseText);
          document.getElementsByClassName("quote")[0].innerHTML = quote[0].body;
        } else {
          alert("There was a problem with the request!")
        }
      }
    }    
    var httpR;
    httpR = new XMLHttpRequest();
    httpR.onreadystatechange = reqListener
    httpR.open("GET", "https://quote-api.glitch.me/pull/1", true);
    httpR.send();
  }

  //----------------------tweet-------------------

  //------the below statement "console.log" gives the result "undefined"----
  console.log(document.getElementsByClassName("buttonQ")[0]);


  //document.getElementsByClassName("buttonT")[0].addEventListener("click", tweetEvent);
  function tweetEvent() {
    document.getElementsByClassName("quote")[0].normalize();
    var tweetToShare = document.getElementsByClassName("quote")[0].childNodes[0].nodeValue;
    var urlForTweetButton = document.getelementsByClassName("twitter-share-button")[0].getAttribute("href");
    urlForTweetButton = urlForTweetButton + "?hashtags=quotes&text=" + encodeURIComponent(tweetToShare);
  }

})();
sparlkle4000
@sparlkle4000
Jul 21 2017 06:57
Hello! I'm doing the selecting from many options with switch statements challenge. The hints don't help at all. Can anyone offer any other hints?
Kasi1998
@Kasi1998
Jul 21 2017 07:00
Hey guys! I was wondering where can I take picture from the Internet that I will appear on my page and not doing a weird thing?? I have the right code (I think) but none of the image I've try want to work...
Mukul Agrawal
@mukul09
Jul 21 2017 07:02
@Kasi1998 share ur code
Kasi1998
@Kasi1998
Jul 21 2017 07:02
@mukul09 ok give me one minà

" <h1 class="text-primary text-center">Alain Salembier</h1>
<img src="http://www.encyclopediecanadienne.ca/fr/article/le-drapeau-national-du-canada/">

<h2 class="text-center"> An man who serve is country!</h2>

<p>Today Alain is out of the army after 25 years of services. He should be proud because:</p>
<ol>
<li>It's hard to be in the army with all the physical requirement.</li>
<li>He have the muscular dystrophie so it's harder on the physic.</li>
<li>It's not everyone that is mentaly fit to go to the war and come back to his regular life without any consequence.</li></ol>
<h4>Proud husband of Mélissa Salembier for almost 10 years and 21 years of life togther (I think)... And dad of four kids! Kasandra, Alicia (18 years old), Emmanuel (7 years old) and Myriam (4 years old). His wife and his kids love him so much!</h4>

<p>For anyone who want to know more about him you can connect with him at his <a href="https://www.linkedin.com/in/alainsalembier/?ppe=1"><target="blank">LinkenIn profil.</a></p> "

@mukul09 I'm sorry I don't know how to edit my code when I copy it so it be clearer to see
Pieter Stokkink
@forkerino
Jul 21 2017 07:08
@sparlkle4000 You'll have to use something that looks like the example code. In that pseudocode example in the instructions, num is the thing being tested. If it is equal to value1, statement1 will be executed. Equal to value2? statement2, etc. Now see if you can write one where you test val to see what number it equals to. For each of the 4 cases assign the right value to answer
@Kasi1998 ''' more info below
CamperBot
@camperbot
Jul 21 2017 07:08
:bulb: to format code use backticks! ``` more info
Mukul Agrawal
@mukul09
Jul 21 2017 07:09
@Kasi1998 image link should be in .jpg format, but the link you choose is not in .jpg format like
http://res.cloudinary.com/demo/image/upload/w_500,f_auto/sample.jpg
Pieter Stokkink
@forkerino
Jul 21 2017 07:09
@Kasi1998 that img src doesn't look like an image, it looks like a webpage.
.jpg .gif .png is the extension of some popular image file formats. If that is at the end, it usually works.
you can often right click on an image to copy the image address.
Kasi1998
@Kasi1998
Jul 21 2017 07:10
@forkerino ok!
Eric Miller
@ericmiller777
Jul 21 2017 07:13
hey guys\
how can i jujst return the arguments
var ar = Array.prototrype.slice.call(arguments);
?
how would i just return them?
Kasi1998
@Kasi1998
Jul 21 2017 07:13

@forkerino
'''<style>
.text-center

<h1 class="text-primary text-center">Alain Salembier</h1>
<img src="https://lh3.googleusercontent.com/-o3tHyOKBGCY/UVZK6xYTfpI/AAAAAAAAACU/yQnkhKlEn1g/s530-p/photo.jpg">

<h2 class="text-center"> An man who serve is country!</h2>

<p>Today Alain is out of the army after 25 years of services. He should be proud because:</p>
<ol>
<li>It's hard to be in the army with all the physical requirement.</li>
<li>He have the muscular dystrophie so it's harder on the physic.</li>
<li>It's not everyone that is mentaly fit to go to the war and come back to his regular life without any consequence.</li></ol>
<h4>Proud husband of Mélissa Salembier for almost 10 years and 21 years of life togther (I think)... And dad of four kids! Kasandra, Alicia (18 years old), Emmanuel (7 years old) and Myriam (4 years old). His wife and his kids love him so much!</h4>

<p>For anyone who want to know more about him you can connect with him at his <a href="https://www.linkedin.com/in/alainsalembier/?ppe=1"><target="blank">LinkenIn profil.</a></p>'''

I think there's stile something wrong cause the image won't show and I lost all my text

CamperBot
@camperbot
Jul 21 2017 07:13
:bulb: to format code use backticks! ``` more info
Kasi1998
@Kasi1998
Jul 21 2017 07:15

'''

<style>
.text-center

<h1 class="text-primary text-center">Alain Salembier</h1>
<img src="https://lh3.googleusercontent.com/-o3tHyOKBGCY/UVZK6xYTfpI/AAAAAAAAACU/yQnkhKlEn1g/s530-p/photo.jpg">

<h2 class="text-center"> An man who serve is country!</h2>

<p>Today Alain is out of the army after 25 years of services. He should be proud because:</p>
<ol>
<li>It's hard to be in the army with all the physical requirement.</li>
<li>He have the muscular dystrophie so it's harder on the physic.</li>
<li>It's not everyone that is mentaly fit to go to the war and come back to his regular life without any consequence.</li></ol>
<h4>Proud husband of Mélissa Salembier for almost 10 years and 21 years of life togther (I think)... And dad of four kids! Kasandra, Alicia (18 years old), Emmanuel (7 years old) and Myriam (4 years old). His wife and his kids love him so much!</h4>

<p>For anyone who want to know more about him you can connect with him at his <a href="https://www.linkedin.com/in/alainsalembier/?ppe=1"><target="blank">LinkenIn profil.</a></p>
'''

CamperBot
@camperbot
Jul 21 2017 07:15
:bulb: to format code use backticks! ``` more info
Kasi1998
@Kasi1998
Jul 21 2017 07:15
The backticks just doesn't want to know nothing with me!
Pieter Stokkink
@forkerino
Jul 21 2017 07:16
@ericmiller777 you can return arguments
@Kasi1998 ' is not `
@Kasi1998 do you have a link to a codepen or something?
Kasi1998
@Kasi1998
Jul 21 2017 07:17
@forkerino yes I think?? I've just started to use it 1/2 hours ago... I don't know how to share...
sparlkle4000
@sparlkle4000
Jul 21 2017 07:18
@forkerino Thanks! I looked at that example many times and still missed the most important part. I'll try it again! Hopefully I'll have it correct.
CamperBot
@camperbot
Jul 21 2017 07:18
sparlkle4000 sends brownie points to @forkerino :sparkles: :thumbsup: :sparkles:
:star2: 2878 | @forkerino |http://www.freecodecamp.com/forkerino
Pieter Stokkink
@forkerino
Jul 21 2017 07:18
@Kasi1998 just the link from the address bar should work.
@eladonline you need 3 `s
Also you can delete those double posts.
Kasi1998
@Kasi1998
Jul 21 2017 07:20
@forkerino I just send the link in private
Pieter Stokkink
@forkerino
Jul 21 2017 07:20
yes
elad ben aderet
@eladonline
Jul 21 2017 07:20
i hate when it happens
<style>
.text-center
<h1 class="text-primary text-center">Alain Salembier</h1>
<img src="https://lh3.googleusercontent.com/-o3tHyOKBGCY/UVZK6xYTfpI/AAAAAAAAACU/yQnkhKlEn1g/s530-p/photo.jpg">
<h2 class="text-center"> An man who serve is country!</h2>
<p>Today Alain is out of the army after 25 years of services. He should be proud because:</p>
<ol>
<li>It's hard to be in the army with all the physical requirement.</li>
<li>He have the muscular dystrophie so it's harder on the physic.</li>
<li>It's not everyone that is mentaly fit to go to the war and come back to his regular life without any consequence.</li></ol>
<h4>Proud husband of Mélissa Salembier for almost 10 years and 21 years of life togther (I think)... And dad of four kids! Kasandra, Alicia (18 years old), Emmanuel (7 years old) and Myriam (4 years old). His wife and his kids love him so much!</h4>
<p>For anyone who want to know more about him you can connect with him at his <a href="https://www.linkedin.com/in/alainsalembier/?ppe=1"><target="blank">LinkenIn profil.</a></p>
made it
Pieter Stokkink
@forkerino
Jul 21 2017 07:21
@Kasi1998 I can see the mistake: you don't close the <style> tag.

as you don't do anything in it yet, better remove

<style>
.text-center

altogether

elad ben aderet
@eladonline
Jul 21 2017 07:22
<a href="https://www.linkedin.com/in/alainsalembier/?ppe=1"><target="blank">LinkenIn profil.</a>
what is this?
Kasi1998
@Kasi1998
Jul 21 2017 07:22
Ya thanks I just realize that! @forkerino Thanks!
CamperBot
@camperbot
Jul 21 2017 07:22
kasi1998 sends brownie points to @forkerino :sparkles: :thumbsup: :sparkles:
:star2: 2879 | @forkerino |http://www.freecodecamp.com/forkerino
Pieter Stokkink
@forkerino
Jul 21 2017 07:22
@Kasi1998 You can add style to the CSS tab in codepen, without <style> tags.
it will automatically apply the styles to the page
Kasi1998
@Kasi1998
Jul 21 2017 07:23
@forkerino Ok I didn't know! I'm still learning how to use this website
elad ben aderet
@eladonline
Jul 21 2017 07:23
<a href="https://www.linkedin.com/in/alainsalembier/?ppe=1" target="_blank" > </a>
do like thr above
Pieter Stokkink
@forkerino
Jul 21 2017 07:25
@Kasi1998 @eladonline has a good point about the link!
May Kittens Devour Your Soul
@diomed
Jul 21 2017 07:25
@eladonline what's the point of this line .text-center
Kasi1998
@Kasi1998
Jul 21 2017 07:26
@eladonline to put the text in the center under the picture
@forkerino what point do you like?? I just don't see what you mean??
May Kittens Devour Your Soul
@diomed
Jul 21 2017 07:28
@Kasi1998 u can't just write class name
u have to apply that class to element
elad ben aderet
@eladonline
Jul 21 2017 07:28
@Kasi1998 you dont need to make a class to make a text center
if you do somthing like body{
text-align :center;
}
the all text will center
Kasi1998
@Kasi1998
Jul 21 2017 07:29
@eladonline No?? How then?? Cause the way I understand from the course was like that.
@eladonline The thing is I don't want all my text center... Just the title an the line under the picture...
Pieter Stokkink
@forkerino
Jul 21 2017 07:30

@Kasi1998 what @eladonline said:

<a href="https://www.linkedin.com/in/alainsalembier/?ppe=1" target="_blank" > </a>
do like thr above

Kasi1998
@Kasi1998
Jul 21 2017 07:31
@forkerino Yes I saw that put I don't understand the comment he has done...
elad ben aderet
@eladonline
Jul 21 2017 07:33
@Kasi1998 send mr a link to your project
pls
Kasi1998
@Kasi1998
Jul 21 2017 07:34
@eladonline done send in private
Kasi1998
@Kasi1998
Jul 21 2017 08:03
Does anyone know how to change the background colour to something that look like military green?
Darren
@DarrenfJ
Jul 21 2017 08:09
evening fCC
Eric Miller
@ericmiller777
Jul 21 2017 08:15
hey guys
function rot13(str) { // LBH QVQ VG!
  var array = [];
  var array2 = [];
  array.push(str);
  array = array.toString();
  for (var i = 0; i < array.length; i++){
    array2.push(array.charCodeAt(i));
  }
  array2.toString();
  return String.fromCharCode(array2);
}

// Change the inputs below to test
rot13("SERR PBQR PNZC");
this should word?
work
Pieter Stokkink
@forkerino
Jul 21 2017 08:31
@ericmiller777 no
Eric Miller
@ericmiller777
Jul 21 2017 08:31
@forkerino why?
Pieter Stokkink
@forkerino
Jul 21 2017 08:31
first of all, you do not store the result of array2.toString()
Eric Miller
@ericmiller777
Jul 21 2017 08:31
it cant takle a varible?
Pieter Stokkink
@forkerino
Jul 21 2017 08:32
second, String.fromCharCode requires numbers as arguments, not a string
Eric Miller
@ericmiller777
Jul 21 2017 08:32
since ive posted this ive made it array2 = array2.toString();
Pieter Stokkink
@forkerino
Jul 21 2017 08:32
@ericmiller777 that would solve the first issue
but still you have a problem with the second.
Eric Miller
@ericmiller777
Jul 21 2017 08:32
I understand kinda
Pieter Stokkink
@forkerino
Jul 21 2017 08:32
@ericmiller777 and with the fact that you do no rotation through the alphabet.
@ericmiller777 I don't really understand why you put the string in an array and turn it back to a string.
that seems superfluous
Eric Miller
@ericmiller777
Jul 21 2017 08:34
@forkerino thanks I think its time for bed
CamperBot
@camperbot
Jul 21 2017 08:34
ericmiller777 sends brownie points to @forkerino :sparkles: :thumbsup: :sparkles:
:star2: 2880 | @forkerino |http://www.freecodecamp.com/forkerino
Pieter Stokkink
@forkerino
Jul 21 2017 08:36
@ericmiller777 ok. If you need more help, there will be plenty of people here waiting when you get back to it
Darren
@DarrenfJ
Jul 21 2017 08:54
thanks @Manish-Giri for the PM discussion :D
CamperBot
@camperbot
Jul 21 2017 08:54
darrenfj sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6292 | @manish-giri |http://www.freecodecamp.com/manish-giri
Mohamed Wahshey
@mohamedwahshey
Jul 21 2017 09:39
Can someone please teach me responsive design for free? I need someone to talk to me and teach me how to make any website work on any device, i already read about it but couldn't do it
Momozor
@momozor
Jul 21 2017 09:49
hello
Tejas B N
@tejasbanga
Jul 21 2017 10:03
@mohamedwahshey fcc's courses are better than one on one teaching, just work through the courses and you'll be there in no time, wish you the best
Mohamed Wahshey
@mohamedwahshey
Jul 21 2017 10:05
@tejasbanga i already gome through the responsive design course on fcc but still stuck on my design
@tejasbanga thanks for ur reply by the way
CamperBot
@camperbot
Jul 21 2017 10:06
mohamedwahshey sends brownie points to @tejasbanga :sparkles: :thumbsup: :sparkles:
:cookie: 250 | @tejasbanga |http://www.freecodecamp.com/tejasbanga
dikea7
@dikea7
Jul 21 2017 10:08

<style>
.red-text {
color: blue;
}
</style>

<h2 class="red-text">我家的猫咪</h2>
哪里有错啊???

heroiczero
@heroiczero
Jul 21 2017 10:16
@dikea7 Not color: blue;, but red
dikea7
@dikea7
Jul 21 2017 10:17
我试试
@heroiczero
不行
@heroiczero
heroiczero
@heroiczero
Jul 21 2017 10:20
@dikea7 sorry, I do not understand chinese. Maybe https://gitter.im/FreeCodeCamp/chinese?source=suggested-menu can help you.
Rahul Tiwari
@invinciblycool
Jul 21 2017 10:30
how do I edit the height property of the navbar for freecodecamp/guides
cowCrazy
@cowCrazy
Jul 21 2017 10:35
@invinciblycool you wanna edit the fcc navbar in your current page?
Rahul Tiwari
@invinciblycool
Jul 21 2017 10:37
Anyways got it.Sorry
Raigo
@Raigos
Jul 21 2017 11:37
Can I be wrong but it seems like on FreeCodeCamp beta the tutorials on basic css is buggy as hell.
heroiczero
@heroiczero
Jul 21 2017 11:38
Well it is a beta. There are bound to be bugs and stuff
Raigo
@Raigos
Jul 21 2017 11:42
Well I can't finish about 70% of css course.
Maybe it's just me
heroiczero
@heroiczero
Jul 21 2017 11:46
@Raigos no its me too dont know why though
cowCrazy
@cowCrazy
Jul 21 2017 11:51
@Raigos for me it worked fine, can you paste the code of your style element?
Ken Haduch
@khaduch
Jul 21 2017 11:55
@Raigos - I also had it work for me - if you can paste the top part of your code, showing the <style> as well as the HTML through the <h2> element, maybe we can help?
Tejas B N
@tejasbanga
Jul 21 2017 12:44
@mohamedwahshey well then try going through these certified courses and sorry for the late response https://medium.freecodecamp.org/460-free-online-programming-computer-science-courses-you-can-start-in-july-ea767bb22092
kalikota ssv teja
@tejakali
Jul 21 2017 12:46
max1=largestofFour[0][0];
Tejas B N
@tejasbanga
Jul 21 2017 12:51
@tejakali you need help?
Mohamed Wahshey
@mohamedwahshey
Jul 21 2017 12:53
@tejakali thanks mate and no worries
CamperBot
@camperbot
Jul 21 2017 12:53
mohamedwahshey sends brownie points to @tejakali :sparkles: :thumbsup: :sparkles:
:cookie: 243 | @tejakali |http://www.freecodecamp.com/tejakali
Raj Patel
@rajp1847
Jul 21 2017 13:13
need help
Tejas B N
@tejasbanga
Jul 21 2017 13:14
@rajp1847 sure i'll see if i can help
Ken Haduch
@khaduch
Jul 21 2017 13:37
@rajp1847 - post your questions and code and you'll get help...
FlorentAlam
@FlorentAlam
Jul 21 2017 13:41
Hi, I'm beginning with React and I already got a question, is it possible to change the state of a component by clicking on another component ?
cowCrazy
@cowCrazy
Jul 21 2017 13:45
@FlorentAlam yes! As long as they are connected through a parent component.
FlorentAlam
@FlorentAlam
Jul 21 2017 13:50
@cowCrazy How can a parent know the state of one of his childs ? I mean I know how to pass a prop/state from a parent to a child but I can't see how I can do the opposite
cowCrazy
@cowCrazy
Jul 21 2017 13:54
@FlorentAlam you also pass the eventHandler function as a prop, the the event is processed at the parent, changing the state and the automaticly the new state is sent to the other child component
@FlorentAlam take a look at this part of the official react tutorial
georgebatton
@georgebatton
Jul 21 2017 14:13
In this for loop
for
(var i = 0; i <
10
; i += 1) {
document.write(i); Why isn't i<10 i<9 to make it run 10 times? Doesn't it start counting at 0 1 2 3 4 5 6 7 8 9? It's that 10 counts?
FlorentAlam
@FlorentAlam
Jul 21 2017 14:15
@cowCrazy thanks, not easy to "think react" but I guess I'll figure it out ^^ Anyway I'm taking a look at your link
CamperBot
@camperbot
Jul 21 2017 14:15
florentalam sends brownie points to @cowcrazy :sparkles: :thumbsup: :sparkles:
:cookie: 297 | @cowcrazy |http://www.freecodecamp.com/cowcrazy
Eric Weiss
@eweiss17
Jul 21 2017 14:16
@georgebatton that will run 10 times, 0 through 9
@georgebatton use i++ instead of i += 1
same functionality, but looks better
cowCrazy
@cowCrazy
Jul 21 2017 14:17
@FlorentAlam if you have the power to sit down on those official tutorials they are extremely useful :)
FlorentAlam
@FlorentAlam
Jul 21 2017 14:18
@georgebatton yes it starts counting at 0, but the 10 is excluded, because of the i<10, if you want it included in your count you should use i <= 10
@cowCrazy Actually I was learning with this site right now, but with the docs directly instead of the tutorial, should have done that first !!
georgebatton
@georgebatton
Jul 21 2017 14:20
Eric Weiss ok so If I want it to run 10 times, statement 2 needs to be i < 9? What about ,= 9? Is there a reason it would be 10?
Eric Weiss
@eweiss17
Jul 21 2017 14:21
@georgebatton you want 1 through 10 to display?
georgebatton
@georgebatton
Jul 21 2017 14:22
@eweiss17 no I just want it to run 10 times
Eric Weiss
@eweiss17
Jul 21 2017 14:22
it was already running 10 times
georgebatton
@georgebatton
Jul 21 2017 14:22
if the 2nd statement reds <9 or < 10?
FlorentAlam
@FlorentAlam
Jul 21 2017 14:22
@georgebatton no because with i < 9, your for loop is stopping if i = 9, so your last value for i will be 8, so running 9 time (including the 0), not sure if I'm clear though
Eric Weiss
@eweiss17
Jul 21 2017 14:22
int i = 1; i <= 10; i++ , runs 10 times, displays 1 - 10
FlorentAlam
@FlorentAlam
Jul 21 2017 14:23
woops, not you @eweiss17
georgebatton
@georgebatton
Jul 21 2017 14:23
@eweiss17 no statement 1 is i = 0;
Eric Weiss
@eweiss17
Jul 21 2017 14:23
oh ya sorry, the for loops breaks when the second condition provides false, so i < 9 will break on i being 9
i want 5x loop, i = 0; i < 5
oops
Stephen James
@sjames1958gm
Jul 21 2017 14:25

@georgebatton The for loop can be represented as

var i = 0;
while (i < 10) {
   // code
   i++
}

The loop check is done before entering the next loop.
So if it were i < 9 then only 0 - 8 would enter the loop

Eric Weiss
@eweiss17
Jul 21 2017 14:27
if you think that is confusing, you can use i = 1, and i <= 10, that will be 10 iterations and is more clear
Stephen James
@sjames1958gm
Jul 21 2017 14:29
@georgebatton The reason you generally see loops from 0 - n is that arrays are indexed starting at 0
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 14:33
Alternatively, you could do something like this as well
var i = 0;
while (i++ < 10) {
   // code
}
shivam gupta
@shivamg11000
Jul 21 2017 14:35
so I have made a e-commerce like site, I have two main components Shop and Cart which contains subcomponents and their respective states at the top level respectively.
So I want these two main components shair some data.
How to do that
to use redux or flux
see the repo
Stephen James
@sjames1958gm
Jul 21 2017 14:36
@shivamg11000 redux would be the modern way.
@shivamg11000 You could have a parent to these two that stored the state, and received state updates through functions
That the parent passed to the children and the the children called on state changes.
shivam gupta
@shivamg11000
Jul 21 2017 14:37
@sjames1958gm
yeah it can be done that way but I want these two main components to be independent of each other
Stephen James
@sjames1958gm
Jul 21 2017 14:40
You want them independent but sharing state, hmm.
Then you will need to have global state - redux is for that
shivam gupta
@shivamg11000
Jul 21 2017 14:40
what about MOBx
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 14:51
@shivamg11000 So you have two main components. Have you defined which data belongs to which component?
If that is defined, you could use Rx observables to share data seamlessly
shivam gupta
@shivamg11000
Jul 21 2017 14:51
@SweetCodingInc whats a Rx
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 14:51
Reactive Extensions
RxJS
Stephen James
@sjames1958gm
Jul 21 2017 14:54
@shivamg11000 Haven't used MOBx
georgebatton
@georgebatton
Jul 21 2017 14:54
I have a question:Here are 2 separate for loops: for (var j = 0; j <= 100; j += 10) {
console.log( j );
} (var i = 0; i <
10
; i += 1) { The first one runs 11 times before it reaches 100 and the second one runs 10 times. I don't understand why the second one wouldn't run 9 times. Hopefully someone here can help me understand this because it's really confusing me.
Raj Patel
@rajp1847
Jul 21 2017 14:55
@khaduch plz help
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 14:56
@georgebatton becuase you have j <= 100;
so when j becomes 100 it is still true
Raj Patel
@rajp1847
Jul 21 2017 14:56
help plz
georgebatton
@georgebatton
Jul 21 2017 14:56
@shivamg11000 They both start from 0
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 14:56
@rajp1847 what's your question
Raj Patel
@rajp1847
Jul 21 2017 14:56
how do i make it so my image is the exact size of my laptop?
Stephen James
@sjames1958gm
Jul 21 2017 14:57
@georgebatton The first code will enter the loop when j is 100, the second loop will not enter the loop when i is 10
That is the difference
Raj Patel
@rajp1847
Jul 21 2017 14:57
how do i make the cover tag?
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 14:57
@rajp1847 size of laptop or size of your browser window?
Raj Patel
@rajp1847
Jul 21 2017 14:57
browser window
georgebatton
@georgebatton
Jul 21 2017 14:58
@sjames1958gm is it because the 2nd statement on both are different?
one is <= the other is just <?
Stephen James
@sjames1958gm
Jul 21 2017 14:58
@georgebatton Yes, the comparison statement because of the =
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 14:58
@rajp1847 somethinglike this
.cover-bg { 
    background-image: url("path/to/img.jpg");
    height: 100%; 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
shivam gupta
@shivamg11000
Jul 21 2017 14:58
@SweetCodingInc So RxJS provides two way data binding
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 14:59

@georgebatton

one is <= the other is just <?

No.

a = 5
b = 5

a < b // false
a<=b // true
@shivamg11000 : Nope. It follows flux architecture (in a way)
since you're just observing the entity you're subscribed to and reacting to the new values
You are, in no way, able to change the values you're observing
georgebatton
@georgebatton
Jul 21 2017 15:01
@SweetCodingInc But that is the main difference correct the ,= and the < on bothe examples?
I mean <=
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 15:02
@georgebatton Yes
if you make j<100 it will run the loop 10 times
Raj Patel
@rajp1847
Jul 21 2017 15:04
@SweetCodingInc where do i put this?
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 15:04
because
Iteration 1 -   j = 0   ( 0   <=100 ?  Yes)
Iteration 2 -   j = 10  ( 10  <=100 ?  Yes)
Iteration 3 -   j = 20  ( 20  <=100 ?  Yes)
Iteration 4 -   j = 30  ( 30  <=100 ?  Yes)
Iteration 5 -   j = 40  ( 40  <=100 ?  Yes)
Iteration 6 -   j = 50  ( 50  <=100 ?  Yes)
Iteration 7 -   j = 60  ( 60  <=100 ?  Yes)
Iteration 8 -   j = 70  ( 70  <=100 ?  Yes)
Iteration 9 -   j = 80  ( 80  <=100 ?  Yes)
Iteration 10 -  j = 90  ( 90  <=100 ?  Yes)
Iteration 11 -  j = 100 ( 100 <=100 ?  Yes)
Iteration 12 -  j = 110 ( 110 <=100 ?  No)
@georgebatton
Raj Patel
@rajp1847
Jul 21 2017 15:05
.cover-bg { background-image: url("path/to/img.jpg"); height: 100%; background-position: center; background-repeat: no-repeat; background-size: cover; }
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 15:06
@rajp1847 in your css section
Raj Patel
@rajp1847
Jul 21 2017 15:06
but do i change the URL?
@SweetCodingInc ?
hello??
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 15:08
@rajp1847 yes. The url should be the url of the image that you want to have as a background
Raj Patel
@rajp1847
Jul 21 2017 15:09
it doesnt work
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 15:09
@rajp1847 do you have codepen?
Raj Patel
@rajp1847
Jul 21 2017 15:09
yes
Darren
@DarrenfJ
Jul 21 2017 15:10
morrning fCC
Joseph
@revisualize
Jul 21 2017 15:10
So.... I learned something new.. There are no else if's in JavaScript. There are just if / else statements. else if statements are actually just nested if statements inside of the parent if statements else statement block.
Darren
@DarrenfJ
Jul 21 2017 15:11
@revisualize good to know.... thanks for sharing :D
CamperBot
@camperbot
Jul 21 2017 15:11
darrenfj sends brownie points to @revisualize :sparkles: :thumbsup: :sparkles:
:star2: 4367 | @revisualize |http://www.freecodecamp.com/revisualize
Darren
@DarrenfJ
Jul 21 2017 15:11
I would have thought also, that they were else if's
Joseph
@revisualize
Jul 21 2017 15:12
@DarrenfJ it has something to do with the optional block scoping of a statement. And because there is a space between the else if it is treated like a new command statement.
Raj Patel
@rajp1847
Jul 21 2017 15:13
help
Stephen James
@sjames1958gm
Jul 21 2017 15:13
@DarrenfJ :wave:
madhuri soni
@sonimadhuri
Jul 21 2017 15:14
@revisualize thanks for the info!is it the same for all other programming languages.
CamperBot
@camperbot
Jul 21 2017 15:14
sonimadhuri sends brownie points to @revisualize :sparkles: :thumbsup: :sparkles:
:star2: 4368 | @revisualize |http://www.freecodecamp.com/revisualize
Joseph
@revisualize
Jul 21 2017 15:14
@sonimadhuri No.
madhuri soni
@sonimadhuri
Jul 21 2017 15:15
@revisualize :+1:
Joseph
@revisualize
Jul 21 2017 15:15
@sonimadhuri Some languages ... like Python ... Do have a command set for elseif
@sonimadhuri I don't really know any other languages ... So, I can't comments. But, I do know of 1 so... all other.. is no.
madhuri soni
@sonimadhuri
Jul 21 2017 15:16
@revisualize okay any specific reason why js treats else if like that
Joseph
@revisualize
Jul 21 2017 15:16
@sonimadhuri No idea.
Darren
@DarrenfJ
Jul 21 2017 15:17
cool
Joseph
@revisualize
Jul 21 2017 15:17
Don't really care.
I just know it does.
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 15:17

@rajp1847 in your css change

.cover-bg { background-image: url("https://upload.wikimedia.org/wikipedia/commons/e/ec/Beautiful_Home_with_roof_and_green_Lawns_in_Dallas.jpg"); height: 100%; background-position: center; background-repeat: no-repeat; background-size: cover; }

to

body { background-image: url("https://upload.wikimedia.org/wikipedia/commons/e/ec/Beautiful_Home_with_roof_and_green_Lawns_in_Dallas.jpg"); height: 100%; background-position: center; background-repeat: no-repeat; background-size: cover; }
Joseph
@revisualize
Jul 21 2017 15:18

Writing this code:

if (condition0) {
     // condition0 true statement
} else if (condition1) {
     // condition0 is false && condition1 true statement
} else {
     // condition0 && condition1 false statement
}

is the same as writing:

if (condition0) {
     // condition0 true statement
} else {
     // condition0 false statement
     if (condition1) {
           // condition1 true statement
     } else {
           // condition0 && condition1 false statement
     }
}

Ergo:
(condition0) ? con0_true : (condition1) ? con1_true : false;
Is the same according to the JavaScript Engine.
Because the else if is an if statement within the parent if's else statement block.
So, technically, there are no else if's in JavaScript... here are only if/else statements.

Darren
@DarrenfJ
Jul 21 2017 15:19
@sjames1958gm hey buddy! :D
Raj Patel
@rajp1847
Jul 21 2017 15:22
help
can i make my html image size smaller?
Joseph
@revisualize
Jul 21 2017 15:22
@rajp1847 Yes
Raj Patel
@rajp1847
Jul 21 2017 15:23
how?
Joseph
@revisualize
Jul 21 2017 15:23
@rajp1847 You can only make them smaller by height and width. Not by file size
@rajp1847 Use the height and width CSS
May Kittens Devour Your Soul
@diomed
Jul 21 2017 15:24
@rajp1847 do u even go here?
Joseph
@revisualize
Jul 21 2017 15:25
@sonimadhuri Did you private message me?
@sonimadhuri I don't read unsolicited private messages.
May Kittens Devour Your Soul
@diomed
Jul 21 2017 15:26
it's a trap.
:yum:
madhuri soni
@sonimadhuri
Jul 21 2017 15:26
@revisualize ah yes about the else if thing
Boby Y.
@Boobsled
Jul 21 2017 15:26
can someone tell me whats wrong with this piece of code? ```

function caseInSwitch(val) {
  var answer = "";
  // Only change code below this line
 switch (val){
    case 1:
      console.log('alpha');
      break;
    case 2:
      console.log('beta');
      break;



 }     


  // Only change code above this line  
  return answer;  
}
madhuri soni
@sonimadhuri
Jul 21 2017 15:27
@revisualize i didnt know that
Boby Y.
@Boobsled
Jul 21 2017 15:27
it doesn't work when I plug in different values for val
May Kittens Devour Your Soul
@diomed
Jul 21 2017 15:29
@Boobsled say task name
Boby Y.
@Boobsled
Jul 21 2017 15:29
@diomed wdym
May Kittens Devour Your Soul
@diomed
Jul 21 2017 15:29
imstn
Andrew Spirea
@andrewspirea
Jul 21 2017 15:34
hello I am at tribute page stage and I have a problem. I used bootstrap to arrange 3 photos and instead to be horizontal they are vertical. https://codepen.io/AndreiSpirea/pen/vZMpgb?editors=1100
Joseph
@revisualize
Jul 21 2017 15:37
@Boobsled Your function needs to return a value. the variable answer is being returned and console.log doesn't change the value of answer
Your function has declared and initialized the variable answer to "". You are not modifying answer and your function is returning answer. Ergo, you're returning "". You need to modify answer to be the value that you need to return.
rushendra
@rushendrarushi
Jul 21 2017 15:38
anyone done with javascript here?
Joseph
@revisualize
Jul 21 2017 15:38
Define done.
rushendra
@rushendrarushi
Jul 21 2017 15:39
i mean anyone completed challenges in javascript?
Joseph
@revisualize
Jul 21 2017 15:39
Which?
rushendra
@rushendrarushi
Jul 21 2017 15:39
including algorithms?
May Kittens Devour Your Soul
@diomed
Jul 21 2017 15:39
@andrewspirea u didn't include bootstrap at all
Joseph
@revisualize
Jul 21 2017 15:39
I've completed everything except the projects through the intermed algorithms (except 1)
Alexander Køpke
@alexanderkopke
Jul 21 2017 15:40
who got banned yesterday?
May Kittens Devour Your Soul
@diomed
Jul 21 2017 15:40
when u include it, it'll all be good @andrewspirea
just some irrelevant racist , @alexanderkopke
Andrew Spirea
@andrewspirea
Jul 21 2017 15:40
@diomed ok I will check
rushendra
@rushendrarushi
Jul 21 2017 15:40
@revisualize i have doubt
why do we need to use split reverse and join to reverse a string?
Joseph
@revisualize
Jul 21 2017 15:40
@rushendrarushi Because strings are immutable.
rushendra
@rushendrarushi
Jul 21 2017 15:41
@revisualize i really want to know what is happening
Joseph
@revisualize
Jul 21 2017 15:41
@rushendrarushi There is no way to actually reverse a string.
rushendra
@rushendrarushi
Jul 21 2017 15:41
@revisualize jeez i forgot that
Joseph
@revisualize
Jul 21 2017 15:41
@rushendrarushi You can reverse an array.
Andrew Spirea
@andrewspirea
Jul 21 2017 15:41
2
rushendra
@rushendrarushi
Jul 21 2017 15:41
no we have to reverse the string
Joseph
@revisualize
Jul 21 2017 15:41
So, you split your string to make it an array. You reverse the array. Then join the array back into a string.
A string is input and a string is output.
rushendra
@rushendrarushi
Jul 21 2017 15:42
but i didnt define any array
Joseph
@revisualize
Jul 21 2017 15:42
No.
May Kittens Devour Your Soul
@diomed
Jul 21 2017 15:42
basically - complicated gig
Joseph
@revisualize
Jul 21 2017 15:42
Because of method chaining.
Andrew Spirea
@andrewspirea
Jul 21 2017 15:42
@diomed I have to put a <div class="row"> to every photo ?
May Kittens Devour Your Soul
@diomed
Jul 21 2017 15:42
@andrewspirea no, u have to go to settings and quickadd Bootstrap library
lol
forr the love of god
rushendra
@rushendrarushi
Jul 21 2017 15:43

here is my code
function reverseString(str){
return str.split('').reverse().join('');
}
reverseString("hello");

i got olleh as output

Joseph
@revisualize
Jul 21 2017 15:43
@rushendrarushi You cannot reverse a string in JavaScript. Strings are immutable. ... You can split your string to make it an array. You reverse the array. Then join the array back into a string. Ergo, a string is input into the function as an argument. And a string is output from your function. So, in a sense you're function is reversing a string.
@rushendrarushi Correct.
@rushendrarushi Method chaining.
@rushendrarushi What does the .split() method return?
An Array
What does the .reverse() method return?
Andrew Spirea
@andrewspirea
Jul 21 2017 15:44
@diomed OOOO I thought I selected bootstrap ... oh god
rushendra
@rushendrarushi
Jul 21 2017 15:44
but here i didnt declare any array so does it take by default? @revisualize
Joseph
@revisualize
Jul 21 2017 15:44
What does .join() return?
@rushendrarushi Method Chaining.
rushendra
@rushendrarushi
Jul 21 2017 15:45
join and split return strings
Joseph
@revisualize
Jul 21 2017 15:45
@rushendrarushi Incorrect.
join returns a string.
split returns an array
rushendra
@rushendrarushi
Jul 21 2017 15:45
sorry reverse and join return strings right?
Joseph
@revisualize
Jul 21 2017 15:45
@rushendrarushi Look up JavaScript method chaining.
rushendra
@rushendrarushi
Jul 21 2017 15:46
@revisualize you really helped me alot today can you suggest me a good book to master on javascript
i'm just following fcc that's it i'm not studying much about javascript
@revisualize thank you so much
CamperBot
@camperbot
Jul 21 2017 15:47
rushendrarushi sends brownie points to @revisualize :sparkles: :thumbsup: :sparkles:
:star2: 4369 | @revisualize |http://www.freecodecamp.com/revisualize
Joseph
@revisualize
Jul 21 2017 15:47
@rushendrarushi Look. str.split('') returns an array ... that return value is passed to the next method in the chain. Array .reverse() is processed and the returned value is passed to the next method in the chain. The Array is .join()ed back together into a string... And in the end the returned value is returned by your function.
rushendra
@rushendrarushi
Jul 21 2017 15:48
so we do not need to declare an array seperately?
Joseph
@revisualize
Jul 21 2017 15:49
Method Chaining
rushendra
@rushendrarushi
Jul 21 2017 15:49
ok i got it now
Joseph
@revisualize
Jul 21 2017 15:53
I do not read unsolicited private messages.
rushendra
@rushendrarushi
Jul 21 2017 15:58
ok then how can i be in touch with you?
Joseph
@revisualize
Jul 21 2017 16:01
@rushendrarushi How are you?
rushendra
@rushendrarushi
Jul 21 2017 16:02
i'm good :smile:
how are you?
Manish Giri
@Manish-Giri
Jul 21 2017 16:10
@rushendrarushi You don't necessarily need to split a string into an array to reverse it..
there are other ways too.
Andrew Spirea
@andrewspirea
Jul 21 2017 16:12
https://codepen.io/AndreiSpirea/full/vZMpgb/ What I should do to make the first img same height ? If I modify it it looks bad, I used height: auto;
Joseph
@revisualize
Jul 21 2017 16:12
That's true.
why my background image is not changing for cloudy weather?
by default image is clouds with tree but it should change to a rainy photo
Manish Giri
@Manish-Giri
Jul 21 2017 16:16

@kpbro

Uncaught ReferenceError: url is not defined

check out your console.
Kamal
@kpbro
Jul 21 2017 16:17
@Manish-Giri yup . u r right. but that is the only way i can change background image using jquery
Manish Giri
@Manish-Giri
Jul 21 2017 16:18
@kpbro nope
Jan Shah
@JanShah
Jul 21 2017 16:18
@kpbro you can use javascript, not necesarry to use jquery
Manish Giri
@Manish-Giri
Jul 21 2017 16:19
the way you have it, url is treated as a variable, instead of a string
Kamal
@kpbro
Jul 21 2017 16:19
@Manish-Giri yea i forgot to put ' ' around url
@CentropyIT how can i access and change dom elements directly with js?
Jan Shah
@JanShah
Jul 21 2017 16:22
@kpbro I think document.getElementById will get anything with the matching ID
getElementsByClassName?? can't remember if I spelt it right, will pick up anything matching the class
Kamal
@kpbro
Jul 21 2017 16:22
@CentropyIT thanks for this information. i didnt know that
CamperBot
@camperbot
Jul 21 2017 16:22
kpbro sends brownie points to @centropyit :sparkles: :thumbsup: :sparkles:
:cookie: 471 | @centropyit |http://www.freecodecamp.com/centropyit
Manish Giri
@Manish-Giri
Jul 21 2017 16:23
anything you can do with jQuery, you can also do with JS..
@kpbro
Kamal
@kpbro
Jul 21 2017 16:23
oh..
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 16:23
And if you want to use css selectors to query dom, you can use document.querySelector and document.querySelectorAll
Manish Giri
@Manish-Giri
Jul 21 2017 16:24
var body = document.getElementsByTagName('body')[0];
body.style.backgroundImage = 'url(http://localhost/background.png)';
Kamal
@kpbro
Jul 21 2017 16:24
wow. thats amazing
rushendra
@rushendrarushi
Jul 21 2017 16:25
@Manish-Giri but they asked for it
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 16:25
Same thing when done with querySelector and querySelectorAll
var body = document.querySelector('body');
body.style.backgroundImage = 'url(http://localhost/background.png)';

var body = document.querySelectorAll('body')[0];
body.style.backgroundImage = 'url(http://localhost/background.png)';
Manish Giri
@Manish-Giri
Jul 21 2017 16:25
@rushendrarushi they asked you to use an array specifically? to reverse a string?
Kamal
@kpbro
Jul 21 2017 16:27
so same way can i use document.getElementsByClass?
Manish Giri
@Manish-Giri
Jul 21 2017 16:27
yep
Jan Shah
@JanShah
Jul 21 2017 16:27
halfway or more through my roguelike project, I've got a very rough game going (no start and no end but there is a middle)
fcc.physify.com/rogue. could anyone please check it out and give me some initial feedback, any immediate issues that you notice?
Manish Giri
@Manish-Giri
Jul 21 2017 16:27
it returns an array though, so you need to get the index
Kamal
@kpbro
Jul 21 2017 16:28
@Manish-Giri hmm. gotcha
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 16:32
@kpbro There is no such thing as getElementsByClass. You need to do getElementsByClassName
Charles
@GUITARPLRC
Jul 21 2017 16:32
I'm trying the game of life react project and I can't wrap my head around how to set it up, meaning using a grid to know what the neighbors of each cell is.. can anyone suggest some articles?
Jan Shah
@JanShah
Jul 21 2017 16:34
there's a lot of pseudocode you can use to think of a structure for your program
@GUITARPLRC
Stephen James
@sjames1958gm
Jul 21 2017 16:34
@CentropyIT looks awesome. I assume the screen goes dark as you are dying, but I healed and it didn't come back.
Jan Shah
@JanShah
Jul 21 2017 16:35
@sjames1958gm there's no healing yet :) at the moment, no point of death either, it goes into negative numbers
Stephen James
@sjames1958gm
Jul 21 2017 16:35
@CentropyIT Ah. Everything is moving pretty quickly.
Jan Shah
@JanShah
Jul 21 2017 16:36
that's another issue I'm trying to resolve, I my timings are off and they're sensitive to different environments, so on my dual core it runs slow but on the i7 it's very fast
right now it's set to crazy fast and very numerous enemies, but testing only, I can reduce that to a much lower figure and it will be part of game options
I do have a problem in onerespect, I've got an endgame button that kills the game and brings me back to a 'main menu' of sorts, but there's something going wrong when I start a new game, some data is being retained from the previous game and it messes up the right menu
but I can't figure out what it is yet.... I'll carry on until it's close to finished then revisit that issue
Kamal
@kpbro
Jul 21 2017 16:42
how can i know what string my api returns for different types of weather?
like cloudy, sunny, thunderstorm, snow etc
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 16:43
@kpbro console.log ?
Jan Shah
@JanShah
Jul 21 2017 16:43
@sjames1958gm thanks for the feedback :)
CamperBot
@camperbot
Jul 21 2017 16:43
centropyit sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8128 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Kamal
@kpbro
Jul 21 2017 16:43
but these are only clouds at my location
Sweet Coding :)
@SweetCodingInc
Jul 21 2017 16:44
teleport to difference city, may be? ;)
Kamal
@kpbro
Jul 21 2017 16:44
and i can know what are those strings only if my location is in that particular weather
Jan Shah
@JanShah
Jul 21 2017 16:44
@kpbro if you're using an api, there's usually documentation that gives you details of the various options you have
what api are you using?
Kamal
@kpbro
Jul 21 2017 16:45
but i m using fcc api
i 1st tried openweather api, darksky api but both of them didnt work
Jan Shah
@JanShah
Jul 21 2017 16:49
@kpbro I've just realised you don't need to know the exact string, just pass back whatever the icon is and it should appear correctly for anyone else
Kamal
@kpbro
Jul 21 2017 16:58
@CentropyIT what it means by pass back icon?
Kasi1998
@Kasi1998
Jul 21 2017 16:58
Hey guys! I was wondering does anyone know how to add a colour in the background style military colour??
Or even how to put an image in the background??
Jan Shah
@JanShah
Jul 21 2017 17:00
@kpbro you get an icon when you get the json. as long as you refer to the variable rather than it's explicit content, you don't need to know what the content is, only that it will be an image that the user sees
so you refer to the part of the json object that you need to render and the right image will be shown to the right user
if you want to test you can put in some random lat lon values, or wait for the sun to come out :) but you needn't
Kamal
@kpbro
Jul 21 2017 17:02
you have a codepen account? @CentropyIT
Jan Shah
@JanShah
Jul 21 2017 17:03
@kpbro yes I do :) codepen.io/centropy
Kamal
@kpbro
Jul 21 2017 17:04

https://codepen.io/kamalpancholi/pen/jwepBw?editors=0010

can you fork it and show me what u want to say? i am not able to understand

@CentropyIT
Jan Shah
@JanShah
Jul 21 2017 17:08
@kpbro you want the icon or your own background image?
Kamal
@kpbro
Jul 21 2017 17:08
my own background image. not icon
Garrus Napp
@GarrusNapp
Jul 21 2017 17:09
github pages has https and I want to use http API. How could I avoid getting mixed content error?
May Kittens Devour Your Soul
@diomed
Jul 21 2017 17:10
by using https api :yum:
Jan Shah
@JanShah
Jul 21 2017 17:10
that's a different answer to a different question. You're evaluating the weather and want to know all the possible outcomes in advance so you can alter your picture accordingly
@kpbro
Garrus Napp
@GarrusNapp
Jul 21 2017 17:10
@diomed you think you're helpful, right? :D
Gulsvi
@gulsvi
Jul 21 2017 17:10
It's really best to find an API that supports HTTPS, but you can hack around it with a proxy server if you don't mind your app going offline randomly @GarrusNapp
Kamal
@kpbro
Jul 21 2017 17:11
@CentropyIT yes. thats what i want to do. thats why i want to know all weather strings
Garrus Napp
@GarrusNapp
Jul 21 2017 17:12
@SkyC0der i've used https://cors-anywhere.herokuapp.com but isn't there any other way around?
May Kittens Devour Your Soul
@diomed
Jul 21 2017 17:12
@GarrusNapp write a message to your chosen API leaders [aka congress] to switch it to HTTPS via letsencrypt
Gulsvi
@gulsvi
Jul 21 2017 17:13
@GarrusNapp That's the only way around, unless it's a smaller API and you can just grab all the JSON to host on github instead for serving over HTTPS.
That cors-anywhere is a demo server though - it goes up and down without notice
Jan Shah
@JanShah
Jul 21 2017 17:13
@kpbro there's no documentation that I can see, so you're probably going to have to enter values manually to get as many variations as you can
https://fcc-weather-api.glitch.me/api/current?lat=35&lon=139 << just change the lon lat and get the main
Kamal
@kpbro
Jul 21 2017 17:14
@CentropyIT yup
Gulsvi
@gulsvi
Jul 21 2017 17:14
@kpbro The weather codes that come back from that API are listed here: https://openweathermap.org/weather-conditions
Jan Shah
@JanShah
Jul 21 2017 17:14
@kpbro it's not a great idea, if you miss one it shows no image or errors out, at least for some users. I would just use the icon and get it looking good as is
Garrus Napp
@GarrusNapp
Jul 21 2017 17:15
@SkyC0der yea, its open source though so I thought I could host it myself on free heroku account
Gulsvi
@gulsvi
Jul 21 2017 17:15
@GarrusNapp You can definitely set up your own proxy server, but I don't know if heroku will give you HTTPS for free, I haven't tried it.
Kamal
@kpbro
Jul 21 2017 17:16
@CentropyIT yes. but i want to according to challenge. and i cant fit that small icon on big screen
Darren
@DarrenfJ
Jul 21 2017 17:16
@diomed hey brutha! :D
Gulsvi
@gulsvi
Jul 21 2017 17:17
@kpbro Compare the codes at https://openweathermap.org/weather-conditions with what you get back from: value.weather[0].id, you can then choose a background image based on the weather condition code that comes back from the API.
May Kittens Devour Your Soul
@diomed
Jul 21 2017 17:17
hi @DarrenfJ :cat:
Jan Shah
@JanShah
Jul 21 2017 17:17
idk man, I just put my icon near the top somewhere. I did do the picture thing in a previous version but I didn't like my pictures so scrapped it. @kpbro
Garrus Napp
@GarrusNapp
Jul 21 2017 17:17
yea, I checked and they won't
FML
Kamal
@kpbro
Jul 21 2017 17:17
@SkyC0der yea i am trying same
@CentropyIT np
Darren
@DarrenfJ
Jul 21 2017 17:17
@Kasi1998 did you get your question answered?
Garrus Napp
@GarrusNapp
Jul 21 2017 17:17
@SkyC0der @diomed thanks
CamperBot
@camperbot
Jul 21 2017 17:17
garrusnapp sends brownie points to @skyc0der and @diomed :sparkles: :thumbsup: :sparkles:
:star2: 2175 | @skyc0der |http://www.freecodecamp.com/skyc0der
:star2: 5179 | @diomed |http://www.freecodecamp.com/diomed
Garrus Napp
@GarrusNapp
Jul 21 2017 17:22
btw. what about sharing API key on github projects
I wanted to host it with github pages so I can't not provide it
WOULD YOU KILL FOR SUCH UNHOLY DEED
Darren
@DarrenfJ
Jul 21 2017 17:27
probably no go so far as to kill
maybe just maim or even slightly bruise
Stephane
@overmelo
Jul 21 2017 17:36
anyone started ES6?
Darren
@DarrenfJ
Jul 21 2017 17:36
@overmelo hey man haven't seen you around for a while :D
what do you mean by started? Started using?
Stephane
@overmelo
Jul 21 2017 17:38
@DarrenfJ hi man, yea started programming with their principles
Darren
@DarrenfJ
Jul 21 2017 17:38
took a few tutorials on it and some hackerrank challenges but really not using it all that much yet...isn't 8 out now or comeing soon?
Stephane
@overmelo
Jul 21 2017 17:38
it looks a bit like Pascal
have just started it last week in beta FCC, it's quite weird. i do not really know about it
Darren
@DarrenfJ
Jul 21 2017 17:40
I havne't use pascal for a few years now.. and even then it was mostly for tutorials or coursera courses when they wanted you to program simulations... most of it's already left my head ;)
you starting to utilize it?
Roxroy
@roxroy
Jul 21 2017 17:42
@Thayyebsalim, works great. Good use of html, css and javascript. Good work.
Stephane
@overmelo
Jul 21 2017 17:43
beta freecodecamp has its challenges @DarrenfJ actually. i am starting a bit to understand.
Darren
@DarrenfJ
Jul 21 2017 17:44
oh yah forgot.. they have ES6 in there too now...
Pieter Stokkink
@forkerino
Jul 21 2017 17:45
@overmelo I'm using it almost exclusively
Stephane
@overmelo
Jul 21 2017 17:45
it is like switching languages. does'nt look at all like javascript
Darren
@DarrenfJ
Jul 21 2017 17:45
yah i do remember liking what i saw/played around with
seemed easier in some ways once you got the syntax down
Stephane
@overmelo
Jul 21 2017 17:46
@forkerino i find it quite different
Pieter Stokkink
@forkerino
Jul 21 2017 17:47
I think for the most part it is a big improvement. Makes some code a lot easier to read.
Stephane
@overmelo
Jul 21 2017 17:47
exact, it helps u to write less
Darren
@DarrenfJ
Jul 21 2017 17:49
i just remember thinking 'ah-ha! Finally looks like a computer language!' ;)
Stephane
@overmelo
Jul 21 2017 17:51
why is this chat dead now, people stop working on challenges or what?
Darren
@DarrenfJ
Jul 21 2017 17:52
they removed the help button in the exercises
so new people do not know how to get here anymore
Stephane
@overmelo
Jul 21 2017 17:53
ohh
apparently blah blah [insert reason]
Stephane
@overmelo
Jul 21 2017 17:53
folks were just distributing solutions instead of thinking
Darren
@DarrenfJ
Jul 21 2017 17:54
something about it being too much activity and too many logins

true to some extent.. most of the people here were very careful to only coach and not feed answers..

folks were just distributing solutions instead of thinking

and now when people ask Q's on the furm they just get fed an answer.. shrug
Stephane
@overmelo
Jul 21 2017 17:56
oh, i guess it was a good move
Darren
@DarrenfJ
Jul 21 2017 17:56
for a while now they've been pushing the forum though... I think they just think gitter/chat isn't as good a way to build community
Pieter Stokkink
@forkerino
Jul 21 2017 17:57
Humbug!
Stephane
@overmelo
Jul 21 2017 17:57
what is going to be the best solution in the future? Chat or Forum?
Darren
@DarrenfJ
Jul 21 2017 17:57
i personally prefer the chat.. but that's just me.. people learn in different ways so I feel you need different avenues.. (videos, exercises, discussions, forums, chats...) but the prevailing feeling now with fCC is push it to the forum...
chingu ;)
Pieter Stokkink
@forkerino
Jul 21 2017 17:58
I think forums are very old school. Good for persistent info, but too formal to have quick interactions.
Stephane
@overmelo
Jul 21 2017 17:58
the Chat is quick and easy to access.
Darren
@DarrenfJ
Jul 21 2017 17:59
agreed on both counts
Stephane
@overmelo
Jul 21 2017 17:59
forums sometimes don't give you the hint you are looking for
Darren
@DarrenfJ
Jul 21 2017 18:00
too easy to find a complete solution.. and not get help on the one thing yer actually stuck on
the one part i mean
Stephane
@overmelo
Jul 21 2017 18:00
i do not like to read 50 answers to get what i like
Darren
@DarrenfJ
Jul 21 2017 18:00
ha! yah.. i hear yah on that one ;)
welp, i usually give out brownies to people who've been hardore helping out but it's so sloooow today
i'm going to go test.... have fun
Pieter Stokkink
@forkerino
Jul 21 2017 18:03
@DarrenfJ On the chat it is definitely easier to pinpoint someone's problem and address that step by step.
Darren
@DarrenfJ
Jul 21 2017 18:03
and have some brownies ;)
totally agree @forkerino
Stephane
@overmelo
Jul 21 2017 18:03
@forkerino exact
Darren
@DarrenfJ
Jul 21 2017 18:04
thanks @forkerino @overmelo @roxroy @diomed @SkyC0der @CentropyIT @sjames1958gm @Manish-Giri
CamperBot
@camperbot
Jul 21 2017 18:04
darrenfj sends brownie points to @forkerino and @overmelo and @roxroy and @diomed and @skyc0der and @centropyit and @sjames1958gm and @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 1066 | @roxroy |http://www.freecodecamp.com/roxroy
:star2: 2178 | @skyc0der |http://www.freecodecamp.com/skyc0der
:cookie: 669 | @overmelo |http://www.freecodecamp.com/overmelo
:star2: 5180 | @diomed |http://www.freecodecamp.com/diomed
:cookie: 472 | @centropyit |http://www.freecodecamp.com/centropyit
:star2: 2883 | @forkerino |http://www.freecodecamp.com/forkerino
:star2: 8129 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
:star2: 6293 | @manish-giri |http://www.freecodecamp.com/manish-giri
Pieter Stokkink
@forkerino
Jul 21 2017 18:04
@DarrenfJ ty :+1:
CamperBot
@camperbot
Jul 21 2017 18:04
forkerino sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1923 | @darrenfj |http://www.freecodecamp.com/darrenfj
Darren
@DarrenfJ
Jul 21 2017 18:04
pop back in later.. have fun :D
Stephane
@overmelo
Jul 21 2017 18:04
@DarrenfJ merci
Pieter Stokkink
@forkerino
Jul 21 2017 18:05
wait, cbot, don't you understand French?
I know you speak Portuguese, why not French?
Stephane
@overmelo
Jul 21 2017 18:06
i'm wondering, he is not giving it anymore
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:09
All men's miseries derive from not being able to sit in a quiet room alone.
Thayyeb salim
@Thayyebsalim
Jul 21 2017 18:09
thanks @roxroy
CamperBot
@camperbot
Jul 21 2017 18:09
thayyebsalim sends brownie points to @roxroy :sparkles: :thumbsup: :sparkles:
:star2: 1067 | @roxroy |http://www.freecodecamp.com/roxroy
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:12
@Manish-Giri make me a semicolon inserter:
Semicolon automatic insertion possibly. JavaScript engine reads your code character by character and if there isn’t a semicolon where it expects one it will add it as it determines what’s valid syntax.
Timothy Javins
@timjavins
Jul 21 2017 18:17
Chat, for sure. The forum that everybody should be paying attention to is StackOverflow.
For this context, chat. For permanence, StackOverflow.
Pieter Stokkink
@forkerino
Jul 21 2017 18:20
@diomed Pascal?
All men's miseries derive from not being able to sit in a quiet room alone.
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:21
yes.that's 1 for you :yum:
Pieter Stokkink
@forkerino
Jul 21 2017 18:22
@diomed that Philosophy degree sometimes is useful.
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:22
sometimes
Pieter Stokkink
@forkerino
Jul 21 2017 18:23
@diomed when I'm alone in a quiet room.
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:23
no use of thinking about philosophy
just about code
Timothy Javins
@timjavins
Jul 21 2017 18:25
"No use of thinking about philosophy" - An appropriate message from someone named may kittens devour your soul
;)
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:27
I cheated on my metaphysics exam...
I looked into a soul of the boy sitting next to me
Pieter Stokkink
@forkerino
Jul 21 2017 18:29
and all that stared back was a deep abyss?
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:30
not every1 has that what u see in my soul @forkerino
Timothy Javins
@timjavins
Jul 21 2017 18:32
Uh-oh. It got really philosophical. Code? Who's got the code?
Questions?
Issues?
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:32
@timjavins I got question and issue
it's all about me in the evening :smile:
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:39
so who wants to hear my question?
@timjavins @forkerino if I had this: https://codyhouse.co/demo/animated-sign-up-flow/index.html
how could I make it so that it opens different content in different modal.
and not the same content in all 3 modals
Timothy Javins
@timjavins
Jul 21 2017 18:41
Can you expound on that a bit?
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:41
Any1 got any useful tips and snippets for me?
@timjavins it's simple - there are 3 modals
when u click on each, it opens the same content
Timothy Javins
@timjavins
Jul 21 2017 18:42
The reason is because each of them is set to activate the exact same link.
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:42
I want a content for first modal b content for 2nd
how to overcome this?
Timothy Javins
@timjavins
Jul 21 2017 18:45
<footer class="cd-pricing-footer">
<a href="#0">Select</a>
</footer>
That's the html part
(that's what you have)
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:46
ok... and?
so I need to basically cp all 3 big divs and change that Select link, right? @timjavins
do I need to change anything in JS as well????
Timothy Javins
@timjavins
Jul 21 2017 18:48
I'm looking through the CSS
I'm looking for the code that calls the box up.
Haven't found it yet and I can't see the JS
Do you have the JS?
So here's one of the CSS pieces:
.cd-pricing-footer a, .cd-form input[type='submit'] {
display: inline-block;
padding: 1em 1.8em;
border-radius: 50em;
text-transform: uppercase;
font-size: 1.3rem;
font-weight: bold;
}
It's line 856
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:51
why are u looking at css?
there is velocity
Timothy Javins
@timjavins
Jul 21 2017 18:52
I
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:52
Timothy Javins
@timjavins
Jul 21 2017 18:52
I'm looking at what I have available to me.
May Kittens Devour Your Soul
@diomed
Jul 21 2017 18:52
this is custom, and I think that's what it should call it
Timothy Javins
@timjavins
Jul 21 2017 18:56
Basically, they're all calling the same .cd-form function or whatever
So I think (I could be wrong) you'll need to create .cd-formA, .cd-formB, .cd-fromC to have each modal customized. Each modal calls its corresponding form.
I went through the JS and found the same .cd-form as referenced in the CSS.
It looks like that is what's calling the credit card form.
In addition to the .cd-credit-card one.
Timothy Javins
@timjavins
Jul 21 2017 19:04
I also just found a .cd-plan-info element in the JS. I haven't seen it anywhere else, so I'm can't see exactly what it does, but I wonder if you'll also need to give each modal it's own .cd-plan-info .
What's going on with this thing in the JS?
'code'h=l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000(d),
code h=
h=l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000(d),
I guess I'm a markdown newb
Eric Weiss
@eweiss17
Jul 21 2017 19:07
```
code
```
or just 1, looks like u did that
BrewCoffeeSplash
@BrewCoffeeSplash
Jul 21 2017 19:09
Eric Weiss
@eweiss17
Jul 21 2017 19:09
@diomed what is your expertise in coding?
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:09
@timjavins are u saying that I need to change css?!?!??
I thought only thing I need to change are JS&HTML
@eweiss17 n00b
Eric Weiss
@eweiss17
Jul 21 2017 19:09
i can respect that
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:09
I am new here
nice to meet you all
Eric Weiss
@eweiss17
Jul 21 2017 19:10
@diomed how do i remove comments in html? I can't figure out this challenge
BrewCoffeeSplash
@BrewCoffeeSplash
Jul 21 2017 19:11
@CodeDraken Cold Brew? Check out Funranium labs stuff. Lots of different types, plus delicious. I need to get another bottle soon
@eweiss17 the challenge is a bit odd since it shows you how to make comments. Just do the opposite
so remove those comment markers
@diomed New...yeah me too
Timothy Javins
@timjavins
Jul 21 2017 19:12
You might shoot an email over to one of the instructors so they can help, but I say to follow the trail where it leads and duplicate anything that looks like it needs duplication for your custom modals.
@eweiss17
whoops
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:12
ok thank you @timjavins
CamperBot
@camperbot
Jul 21 2017 19:12
diomed sends brownie points to @timjavins :sparkles: :thumbsup: :sparkles:
:cookie: 57 | @timjavins |http://www.freecodecamp.com/timjavins
Timothy Javins
@timjavins
Jul 21 2017 19:12
Ignore that @
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:12
if only there is more cookies I could give u
@eweiss17 u ask me, and u're an expert
Eric Weiss
@eweiss17
Jul 21 2017 19:13
@timjavins custom modals?
i'm 100% not an expert
Timothy Javins
@timjavins
Jul 21 2017 19:13
@eweiss17
HTML comment:
<!-- comment -->
Delete the <!-- and the --> and it's no longer a comment.
Eric Weiss
@eweiss17
Jul 21 2017 19:14
@timjavins okay thanks
CamperBot
@camperbot
Jul 21 2017 19:14
eweiss17 sends brownie points to @timjavins :sparkles: :thumbsup: :sparkles:
:cookie: 58 | @timjavins |http://www.freecodecamp.com/timjavins
Timothy Javins
@timjavins
Jul 21 2017 19:14
Thanks, guys
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:15
@timjavins he is lying to you, he is advanced coder
Timothy Javins
@timjavins
Jul 21 2017 19:15
hmmm
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:15
such a :trollface:
Timothy Javins
@timjavins
Jul 21 2017 19:15
I like your trollface.
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:15
u canmake it too :trollface:
Eric Weiss
@eweiss17
Jul 21 2017 19:16
i was testing timothy's knowledge, he knew how to do it and got a cookie
Timothy Javins
@timjavins
Jul 21 2017 19:16
@diomed Yeah, I saw that.
As far as being a developer, I'm at that weird phase where you can get stuff done and figure stuff out, but you feel like nobody would hire you yet. I'm slow, but I can see what the code is doing.
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:18
@eweiss17 is solver of algorithm problems
Timothy Javins
@timjavins
Jul 21 2017 19:19
I like algorithms. I really enjoy logic.
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:19
@timjavins make me modals. pls :yum:
Eric Weiss
@eweiss17
Jul 21 2017 19:19
they are fun until you get stuck
Timothy Javins
@timjavins
Jul 21 2017 19:19
yeah! ahha
Eric Weiss
@eweiss17
Jul 21 2017 19:19
which is about 5 mins into them
Timothy Javins
@timjavins
Jul 21 2017 19:19
But for the modals, I need to spend my time on my own projects. :(
Sorry!
Eric Weiss
@eweiss17
Jul 21 2017 19:20
bro you will always feel like you don't know enough i do 90% of the time
Timothy Javins
@timjavins
Jul 21 2017 19:20
That's what I hear! haha
Eric Weiss
@eweiss17
Jul 21 2017 19:21
@diomed no interest in js?
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:22
I'd have more interest if I met people who know what they're doing :yum:
Timothy Javins
@timjavins
Jul 21 2017 19:23
Have you met the instructors or any graduates?
These right here are your peers.
Eric Weiss
@eweiss17
Jul 21 2017 19:24
80% of my code is jank so i cannot fill that role
Kasi1998
@Kasi1998
Jul 21 2017 19:25
Hey guys! Can someone help me? I want to change the background color... How do I do this?
Timothy Javins
@timjavins
Jul 21 2017 19:25
@Kasi1998 Which lesson are you on?
It's done different ways depending on the lesson.
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:25
those who know don't tell
Eric Weiss
@eweiss17
Jul 21 2017 19:25
you on code pen @Kasi1998
Kasi1998
@Kasi1998
Jul 21 2017 19:26
@diomed The Get Set our Front End Development Projects
@eweiss17 Yes I am
Eric Weiss
@eweiss17
Jul 21 2017 19:27
well there is a ton of different ways
body {
    background-color: silver;
}
is usually what i do
Kasi1998
@Kasi1998
Jul 21 2017 19:28
@eweiss17 ok thanks!
CamperBot
@camperbot
Jul 21 2017 19:28
kasi1998 sends brownie points to @eweiss17 :sparkles: :thumbsup: :sparkles:
:cookie: 550 | @eweiss17 |http://www.freecodecamp.com/eweiss17
Eric Weiss
@eweiss17
Jul 21 2017 19:28
pick whatever color you want
Kasi1998
@Kasi1998
Jul 21 2017 19:35
@eweiss17 How do I put writing in bold??
Timothy Javins
@timjavins
Jul 21 2017 19:35
@Kasi1998 , why not start at the beginning?
Eric Weiss
@eweiss17
Jul 21 2017 19:35
well there are several different ways
<strong> is a tag that does it
Timothy Javins
@timjavins
Jul 21 2017 19:36
<b>text</b>
Eric Weiss
@eweiss17
Jul 21 2017 19:36

or you can

font-style: bold;

in your style sheet

@timjavins nah <b> isn't good
Kasi1998
@Kasi1998
Jul 21 2017 19:36
@timjavins I did start at the beginning...
@eweiss17 Thanks! I remember now that you have show it to me!
CamperBot
@camperbot
Jul 21 2017 19:36
kasi1998 sends brownie points to @timjavins and @eweiss17 :sparkles: :thumbsup: :sparkles:
:cookie: 62 | @timjavins |http://www.freecodecamp.com/timjavins
:warning: kasi1998 already gave eweiss17 points
Timothy Javins
@timjavins
Jul 21 2017 19:37
It used to be, a long time ago. :)
Eric Weiss
@eweiss17
Jul 21 2017 19:37
@Kasi1998 you can easily google 'html bold font', or 'html background color
and find some easy examples
not trying to be rude, just letting you know
glitz20
@glitz20
Jul 21 2017 19:38
hey guys I am having a hard time uploading my backend project to glitch. Can anyone help me out?https://glitch.com/edit/#!/cotton-parcel?path=client/systemjs.config.js:5:20
_
Timothy Javins
@timjavins
Jul 21 2017 19:39
@eweiss17 <b>jsdjlf</b> Still works, but what's the reasoning for moving to <strong>?
__mifflin__
@cdrainxv
Jul 21 2017 19:40
You should just strong tags instead: <strong></strong>... It's more semantic and SEO reasons.
Eric Weiss
@eweiss17
Jul 21 2017 19:40
@timjavins i'm surprised <strong> isn't deprecated.
i wouldn't even use strong tags,
Timothy Javins
@timjavins
Jul 21 2017 19:40
It affects SEO? I had no idea.
Eric Weiss
@eweiss17
Jul 21 2017 19:41

@timjavins

According to the HTML 5 specification, the <b> tag should be used as a LAST resort when no other tag is more appropriate.

May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:41
<b> :bee: </b>
Travis Boss
@travisboss
Jul 21 2017 19:41
For anyone who uses wordpress the default bold is strong, this is used for screen readers but strong does not associate just with bold
Timothy Javins
@timjavins
Jul 21 2017 19:43
@eweiss17 thanks
CamperBot
@camperbot
Jul 21 2017 19:43
timjavins sends brownie points to @eweiss17 :sparkles: :thumbsup: :sparkles:
:cookie: 551 | @eweiss17 |http://www.freecodecamp.com/eweiss17
Timothy Javins
@timjavins
Jul 21 2017 19:43
@travisboss thanks
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:44
@timjavins do u vue?
Timothy Javins
@timjavins
Jul 21 2017 19:47
@diomed no
Should I?
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:47
yes
Timothy Javins
@timjavins
Jul 21 2017 19:48
Why?
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:49
so u can solve my problems with your knowledge :yum: :smile:
also, coz it's "in" required, future... and stuff like that
Timothy Javins
@timjavins
Jul 21 2017 19:50
Very funny. :smile: I use TeamViewer a lot for stuff like that.
Eric Weiss
@eweiss17
Jul 21 2017 19:54
vue.js?
Pethaf
@Pethaf
Jul 21 2017 19:55
@diomed No help from ossifrage?
May Kittens Devour Your Soul
@diomed
Jul 21 2017 19:56
@eweiss17 yue.vs
Aita Kane
@aita-kane
Jul 21 2017 20:06
hello i have one question why in some website you see a div inside a div like wrapper then container after content?
Tom DeFrank
@TomDeFrank
Jul 21 2017 20:09
anyone good with firebase?
Kasi1998
@Kasi1998
Jul 21 2017 20:15
Is there a way on codepen to share what I've done with my friends for exemple but don't show them the code just the finish page?
Eric Weiss
@eweiss17
Jul 21 2017 20:15
right corner
Full page mode
Timothy Javins
@timjavins
Jul 21 2017 20:15
E is the man
Eric Weiss
@eweiss17
Jul 21 2017 20:16
now tim is the man cause i gtg
Kasi1998
@Kasi1998
Jul 21 2017 20:16
@eweiss17 ok but to put it on Facebook for exemple
Timothy Javins
@timjavins
Jul 21 2017 20:16
I can't be the man until I grow up.
Too many things I don't know.
Kasi1998
@Kasi1998
Jul 21 2017 20:17
ok got it!
Alexander Køpke
@alexanderkopke
Jul 21 2017 21:14
blob
Max Datsun
@datmax
Jul 21 2017 21:18
@thekholm80 some time ago i asked how to fix a problem that i had(a page crashed because of infinite recursion) and you helped me, at least i think so
Kyle Holm
@thekholm80
Jul 21 2017 21:25
@datmax :+1:
Andrew Spirea
@andrewspirea
Jul 21 2017 21:36
Hey, my navbar is behind content. I want to be over content.
Alexander Køpke
@alexanderkopke
Jul 21 2017 21:39
@andrewspirea you can give the navbar class a z-index of 1
Andrew Spirea
@andrewspirea
Jul 21 2017 21:41
@alexanderkopke thanks I found same thing on stack overflow bu is was z-index: 9;
CamperBot
@camperbot
Jul 21 2017 21:41
andrewspirea sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:star2: 1626 | @alexanderkopke |http://www.freecodecamp.com/alexanderkopke
Kyle Holm
@thekholm80
Jul 21 2017 21:41
why not z-index 11?
Andrew Spirea
@andrewspirea
Jul 21 2017 21:42
?
idk
what happen if I put 9 or 11
I can't see any difference
Kyle Holm
@thekholm80
Jul 21 2017 21:42
i'm messing with you lol you just want the fore-most element to have the highest number
Andrew Spirea
@andrewspirea
Jul 21 2017 21:43
oh lol
Alexander Køpke
@alexanderkopke
Jul 21 2017 21:45
@andrewspirea you might also consider giving the body a margin-top of 59px. The images are tugged under the navbar and you can push the content down this way
@andrewspirea btw nice choice on tribute! :+1:
Andrew Spirea
@andrewspirea
Jul 21 2017 21:46
@alexanderkopke thanks :+1: for the help
CamperBot
@camperbot
Jul 21 2017 21:46
andrewspirea sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:warning: andrewspirea already gave alexanderkopke points
Alexander Køpke
@alexanderkopke
Jul 21 2017 21:47
it was my pleasure
Razvan
@razvanlikespizza
Jul 21 2017 21:50
Sorry for asking this here,but I dont have any ideea where. Do somebody know how to use Ubuntu? :|
Kyle Holm
@thekholm80
Jul 21 2017 21:50
which part are you struggling with?
Razvan
@razvanlikespizza
Jul 21 2017 21:52
@thekholm80 Can you tag who are you talking to ? :) That would be great,thanks.
CamperBot
@camperbot
Jul 21 2017 21:52
razvanlikespizza sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1356 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Kyle Holm
@thekholm80
Jul 21 2017 21:53
I'm sure i could, but I don't want to
Razvan
@razvanlikespizza
Jul 21 2017 21:53
:| ...
Stephen James
@sjames1958gm
Jul 21 2017 22:01
@razvanlikespizza use it for what?
Alexander Køpke
@alexanderkopke
Jul 21 2017 22:01
@razvanlikespizza what you need help with?
Razvan
@razvanlikespizza
Jul 21 2017 22:02
@alexanderkopke Removing the dock applications,I dont know what is its name. That menu like on MAC.
image.png
Stephen James
@sjames1958gm
Jul 21 2017 22:03
@razvanlikespizza If you right click it should give you an option to remove from launcher, or unlock from launcher
Depends on the desk manager you are using of course
Razvan
@razvanlikespizza
Jul 21 2017 22:03
@sjames1958gm Nope...I dont know how to unistall this thing.
John Wilfred
@ewojjowe
Jul 21 2017 22:07
Hi All, please help, Why I get potential infinite loop in line 8 here?
function sumPrimes(num) {
  var res = 0;
  function getPrimes(nums){
    var filters = [];
    var x;
    var primes = [];
      for(var i = 0; i <= nums; i++){
        console.log(i);
          if(!filters[i]){
            primes.push(i);
            for(x = i << 1; x <= nums; x += i){
              filters[x] = true;
            }
          }
      }
    return primes;
  }
  var allPrime = getPrimes(num);
    for (var q = 0; q < allPrime.length; q++) {
    res += allPrime[q];
  }
  return res;
}

sumPrimes(10);
Kyle Holm
@thekholm80
Jul 21 2017 22:08
@ewojjowe ignore that
John Wilfred
@ewojjowe
Jul 21 2017 22:08
@thekholm80 What should I do?
Kyle Holm
@thekholm80
Jul 21 2017 22:08
i'm 1/2 asleep here
John Wilfred
@ewojjowe
Jul 21 2017 22:08
aws
Coy Sanders
@coymeetsworld
Jul 21 2017 22:09
what's this? for(x = i << 1; x <= nums; x += i){
Kyle Holm
@thekholm80
Jul 21 2017 22:09
really, really less than
John Wilfred
@ewojjowe
Jul 21 2017 22:10
@coymeetsworld marking those not prime
Alexander Køpke
@alexanderkopke
Jul 21 2017 22:11
less in both type and value
Coy Sanders
@coymeetsworld
Jul 21 2017 22:11
<< is a bitwise operator, I don't think thats what you want there
John Wilfred
@ewojjowe
Jul 21 2017 22:11
oh, it should be what? :)
Coy Sanders
@coymeetsworld
Jul 21 2017 22:11
thats what you need to figure out
Kyle Holm
@thekholm80
Jul 21 2017 22:11
For example, 9 << 2 yields 36:
didn't know that existed
Coy Sanders
@coymeetsworld
Jul 21 2017 22:13
yeah I don't think I've ever used it outside of C
Kyle Holm
@thekholm80
Jul 21 2017 22:13
I've not got into the lower level stuff
John Wilfred
@ewojjowe
Jul 21 2017 22:15
@thekholm80 @coymeetsworld It works now and my bitwise operator is right.
The solution is I should start my first loop with 2.
by the way, thank you both @thekholm80 @coymeetsworld
CamperBot
@camperbot
Jul 21 2017 22:15
ewojjowe sends brownie points to @thekholm80 and @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star2: 1357 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:star2: 2982 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
Coy Sanders
@coymeetsworld
Jul 21 2017 22:15
why do you even need a bitwise operator?
Stephen James
@sjames1958gm
Jul 21 2017 22:17
@ewojjowe You first loop starts with 0 and your inner loop does x += i , so that inner loop will never advance x
@sjames1958gm Your outer loop should start at 2 not 0
@ewojjowe Oh, I see you resolved that - never mind
@coymeetsworld i << 1 is the same as i * 2
Kind of obfuscates the code
John Wilfred
@ewojjowe
Jul 21 2017 22:21
@sjames1958gm yeah you're right, it multiplies to value of i
@coymeetsworld
Coy Sanders
@coymeetsworld
Jul 21 2017 22:21
yeah I just don't understand why that's needed either
but if it works it works I guess
Stephen James
@sjames1958gm
Jul 21 2017 22:22
@coymeetsworld The code is eliminating the multiples of i starting with 2 * i
Coy Sanders
@coymeetsworld
Jul 21 2017 22:22
I see
John Wilfred
@ewojjowe
Jul 21 2017 22:24
@coymeetsworld @sjames1958gm Thanks for your time folks :)
CamperBot
@camperbot
Jul 21 2017 22:24
ewojjowe sends brownie points to @coymeetsworld and @sjames1958gm :sparkles: :thumbsup: :sparkles:
:warning: ewojjowe already gave coymeetsworld points
:star2: 8130 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Coy Sanders
@coymeetsworld
Jul 21 2017 22:24
np
Sam Goldberg
@sgoldber61
Jul 21 2017 22:50
I'm making plans for the calculator project. In dealing with arithmetical order of operations, is there a way to store the expression elements, that is, the numbers and the operations, into a linked list? Like turning 2 + 3 * 5 + 4 into 2 + 15 + 4? If I stored all the numbers and operations in an array I would have a lot of "holes"...
Sam Goldberg
@sgoldber61
Jul 21 2017 23:04
never mind, i think i figured it out. sorry about that.
Aita Kane
@aita-kane
Jul 21 2017 23:54


    $(window).bind('scroll', function() {
     if ($(window).scrollTop() > 5px) {
         $('.cnav').hide();
     }
     else {
         $('.cnav').show();
     }
});
I want to make a div disappear when I scroll down 10px and then reappear when within those 10px again from the top of the browser window.
so that's my scripts but it's not working