These are chat archives for FreeCodeCamp/Help

26th
Jul 2017
Coy Sanders
@coymeetsworld
Jul 26 2017 00:38
I used 2
streams and users
Joseph
@revisualize
Jul 26 2017 00:48
Hello.
mstellaluna
@mstellaluna
Jul 26 2017 01:19
@artoodeeto I used streams and channels
Uriel Guzmán
@Burinson
Jul 26 2017 01:45
@levyian Sorry, I had to leave, I'm back
Levyian
@levyian
Jul 26 2017 01:49
@Burinson no worries. I'm here if you still need help :)
RyanHuang06
@RyanHuang06
Jul 26 2017 01:54
var Car = function() {
  //Change this constructor
  this.wheels = wheels;
  this.seats = seats;
  this.engines = engines;
};

//Try it out here
var myCar = new Car(3,1,2);
Why isn't it working?
korzo
@korzo
Jul 26 2017 01:55
@RyanHuang06 You have to pass parameters to properties
Jill Lee
@jill-lee
Jul 26 2017 01:55
Hi can anyone help me with the nav bar? I want the arrow dropdown to float on the left (mobile view)
https://codepen.io/phoenix-burn/pen/bRRaEO
korzo
@korzo
Jul 26 2017 01:56
@RyanHuang06
var Car = function(wheels, seats, engines) {
  //Change this constructor
  this.wheels = wheels;
  this.seats = seats;
  this.engines = engines;
};
@phoenix-burn I see the dropdown on the left side
Jill Lee
@jill-lee
Jul 26 2017 02:01
@korzo I'm sorry I mean the arrow I was trying to place it on the left side
cos the dropdown is on the right
korzo
@korzo
Jul 26 2017 02:03
@phoenix-burn
this?
  .navbar-toggle {
    float:left;
  }
Jill Lee
@jill-lee
Jul 26 2017 02:07
@korzo It doesnt work. When you resize your browser the nav bar arrow is on the right side . I want to place it on the left bcos the dropdown list floats on the left side.
korzo
@korzo
Jul 26 2017 02:13
@phoenix-burn It works. but looks like you have missing } somewhere
https://codepen.io/korzo/pen/brNQVb?editors=0100
@phoenix-burn I think @media screen and (min-width: 900px) { on line 69 has no closing }
Jill Lee
@jill-lee
Jul 26 2017 02:14
@korzo it worked! thank you :D
CamperBot
@camperbot
Jul 26 2017 02:14
phoenix-burn sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 300 | @korzo |http://www.freecodecamp.com/korzo
korzo
@korzo
Jul 26 2017 02:15
@phoenix-burn Glad to help
Jill Lee
@jill-lee
Jul 26 2017 02:19
@korzo thanks for pointing that out I was wondering why it wasnt working lol but the nav bar returned to its original state
CamperBot
@camperbot
Jul 26 2017 02:19
phoenix-burn sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:warning: phoenix-burn already gave korzo points
korzo
@korzo
Jul 26 2017 02:23
@phoenix-burn now you have one extra } . Delete the one before snippet you added (line 266)
Jill Lee
@jill-lee
Jul 26 2017 02:31
@korzo fixed it but its still not working what am i missing here?
also the class .intro2 in css the color: #fff; isnt working either
Igor Amidzic
@igoramidzic
Jul 26 2017 02:32
What is another backend language/framework other than PHP/laravel and nodejs/express?
korzo
@korzo
Jul 26 2017 02:34
@phoenix-burn You have still one extra } at line 266
@phoenix-burn color: #fff is only for @media screen and (min-width: 900px)
Jill Lee
@jill-lee
Jul 26 2017 02:39

took it off complete now it's just

button.navbar-toggle {
float: left;
}

@korzo got it now thanks again :D
CamperBot
@camperbot
Jul 26 2017 02:41
phoenix-burn sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:warning: phoenix-burn already gave korzo points
Uriel Guzmán
@Burinson
Jul 26 2017 02:46
@levyian thanks
CamperBot
@camperbot
Jul 26 2017 02:46
burinson sends brownie points to @levyian :sparkles: :thumbsup: :sparkles:
:cookie: 445 | @levyian |http://www.freecodecamp.com/levyian
Uriel Guzmán
@Burinson
Jul 26 2017 02:48

Wow, I can't believe I did all this

function getIndexToIns(arr, num) {
  // Find my place in this sorted array.
  arr.sort(function(a, b) {

  return a - b;
});
  // sort numbers from smallest to greatest
  var placeholder = arr.indexOf(num);
  // index value
  for (var i=0; i < arr.length; i++) {
  if (placeholder == -1|| Math.abs(arr[i]-num)<Math.abs(arr[placeholder]-num)) { placeholder = i+1; }   
  } if (placeholder >-1) return arr.indexOf(arr[placeholder]);
  // if index is not found, return the nearest smallest number of num

}

getIndexToIns([2, 20, 10], 11);

and the answer was as simple as this

function getIndexToIns(arr, num) {
  // Find my place in this sorted array.
  arr.push(num);
  arr.sort(function(a, b) {

  return a - b;
});
  return arr.indexOf(num);
}

getIndexToIns([2, 20, 10], 11);

I feel really dumb now

Timothy Javins
@timjavins
Jul 26 2017 02:51
@Burinson That's just part of the process. I've been there several times myself and I will be there again shortly! haha
That's the beauty of seeing other people's code. And that's the beauty of peer review.
If you're dumb, we're all dumb.
Uriel Guzmán
@Burinson
Jul 26 2017 02:52
@timjavins Sometimes we gotta think simple
Haha
Timothy Javins
@timjavins
Jul 26 2017 02:52
yup
Yuserah Din
@YuserahN
Jul 26 2017 03:25
I'm having a bit of trouble with the Twitchtv JSON API project. They've updated it and we can now use this url: https://wind-bow.gomix.me/twitch-api
to get the data. However, it's not working for me. Here is a link to my project: (I just started and I'm just trying to get the basics working for now.)
https://codepen.io/Yuserah/pen/GvgwNL
Any help would be appreciated.
korzo
@korzo
Jul 26 2017 03:26
@YuserahN You have to use https://wind-bow.glitch.me instead of https://wind-bow.gomix.me/twitch-api
Yuserah Din
@YuserahN
Jul 26 2017 03:28
@korzo Still not working
Thanks though
korzo
@korzo
Jul 26 2017 03:32
@YuserahN correct url for streams is https://wind-bow.glitch.me/twitch-api/streams/freecodecamp
@YuserahN you are missing twitch-api part
Yuserah Din
@YuserahN
Jul 26 2017 03:33
@korzo Oh I see. Thanks. It's working now.
CamperBot
@camperbot
Jul 26 2017 03:33
yuserahn sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 303 | @korzo |http://www.freecodecamp.com/korzo
korzo
@korzo
Jul 26 2017 03:34
@YuserahN Glad to help
Joseph
@revisualize
Jul 26 2017 03:53
Hello.
Raj Patel
@rajp1847
Jul 26 2017 04:02
help plz
how do i make my form half the size of the page and the other half with text?
heroiczero
@heroiczero
Jul 26 2017 04:12
are you trying to make it responsive. you may have to change it depending on the screen size
Raj Patel
@rajp1847
Jul 26 2017 04:56
yes but i want it on the right side of the page and the left shoud be text how do i do that?
Jamie Morrow
@jamiemorrow
Jul 26 2017 04:59
Shouldn't you use a table with percentages to do that?
heroiczero
@heroiczero
Jul 26 2017 05:02
@rajp1847 you could either use bootstrap grid, float in CSS, or display:inline with two divs
wonder
@wonder2991
Jul 26 2017 05:05
@rajp1847 use two containers 50% width each. one for form and one for text
.form_table {
    width: 50%;
    float: left;
}
Jamie Morrow
@jamiemorrow
Jul 26 2017 05:08
Really it's simpler to use a simple table with td. Makes it work and be more responsive.
iftikhar ahmad
@IA4726
Jul 26 2017 05:25
How to Resize the Image in css
wonder
@wonder2991
Jul 26 2017 05:30
@IA4726 use the height and width props
Eric Miller
@ericmiller777
Jul 26 2017 05:42
hey guys could someone help me with useing this api for quote machine?
what am i missing to load the quote
Victor Popescu
@VicPopescu
Jul 26 2017 05:55
@ericmiller777 the link is ok, but you don't have $(".message") in DOM
Eric Miller
@ericmiller777
Jul 26 2017 05:55
I thought that refered to a class?
Victor Popescu
@VicPopescu
Jul 26 2017 05:55
@ericmiller777 ah you have it, yea I saw it now
so you get the response from the api ok
Eric Miller
@ericmiller777
Jul 26 2017 05:56
I get nothing
Victor Popescu
@VicPopescu
Jul 26 2017 05:56
@ericmiller777 this is your link
so it's ok
Eric Miller
@ericmiller777
Jul 26 2017 05:57
.>;
How can i link that to the page?
so quote shows up in the box?
been trying to read about it but mostly i find info on harder apis
Darren
@DarrenfJ
Jul 26 2017 05:59
morning fCC
Eric Miller
@ericmiller777
Jul 26 2017 05:59
@VicPopescu why is the append not doing anything?
Darren
@DarrenfJ
Jul 26 2017 05:59
or evening
Eric Miller
@ericmiller777
Jul 26 2017 06:00
@DarrenfJ good morning
Victor Popescu
@VicPopescu
Jul 26 2017 06:00
@ericmiller777 actually it does
Eric Miller
@ericmiller777
Jul 26 2017 06:01
@VicPopescu wtf nothing happens in firefox for me.....
@VicPopescu did you change somthing
Victor Popescu
@VicPopescu
Jul 26 2017 06:02
@ericmiller777 for me is working on firefox too, the fidlle i gave you
@ericmiller777 not really, I just took part of the script down in the script section
Eric Miller
@ericmiller777
Jul 26 2017 06:02
why does it not work for me i tryed chrome and IE
Victor Popescu
@VicPopescu
Jul 26 2017 06:02
the fiddle is not working for you?
Eric Miller
@ericmiller777
Jul 26 2017 06:02
the fiddle works
Victor Popescu
@VicPopescu
Jul 26 2017 06:02
ah
Eric Miller
@ericmiller777
Jul 26 2017 06:02
but not in browser
Victor Popescu
@VicPopescu
Jul 26 2017 06:03
well you have a mess there, try to organize some things
get the scripts out at the end of the body
Eric Miller
@ericmiller777
Jul 26 2017 06:04
@VicPopescu okay I pushed that
still nothing
Victor Popescu
@VicPopescu
Jul 26 2017 06:05
   //scripts here
</body>
ok let me see
@ericmiller777 so, that was the problem
Eric Miller
@ericmiller777
Jul 26 2017 06:09
hmm?
Victor Popescu
@VicPopescu
Jul 26 2017 06:09

move

<script>
$("#getQuote").on("click", function(){
$.ajaxSetup({cache:false});
$.getJSON("https://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1&callback=", function(a) {
  $(".message").append(a[0].content + "<p>&mdash; " + a[0].title + "</p>")
});
});</script>

before the body close

Eric Miller
@ericmiller777
Jul 26 2017 06:09
:o it works
@VicPopescu THANKS
CamperBot
@camperbot
Jul 26 2017 06:09
ericmiller777 sends brownie points to @vicpopescu :sparkles: :thumbsup: :sparkles:
:cookie: 521 | @vicpopescu |http://www.freecodecamp.com/vicpopescu
Eric Miller
@ericmiller777
Jul 26 2017 06:09
oops
Victor Popescu
@VicPopescu
Jul 26 2017 06:10
@ericmiller777 you should keep all of your scripts there
Eric Miller
@ericmiller777
Jul 26 2017 06:10
@VicPopescu okay
Victor Popescu
@VicPopescu
Jul 26 2017 06:11
or you can put everything in a document ready function, that should work too
good luck!
Darren
@DarrenfJ
Jul 26 2017 06:12
good work buddy... :D
thanks @VicPopescu
CamperBot
@camperbot
Jul 26 2017 06:12
darrenfj sends brownie points to @vicpopescu :sparkles: :thumbsup: :sparkles:
:cookie: 522 | @vicpopescu |http://www.freecodecamp.com/vicpopescu
Darren
@DarrenfJ
Jul 26 2017 06:16
@brisourceful i checked out that 404 then went and did some other junk and came back and kept thinking i heard distant screaming then realized it was my headphones and that goat!
Victor Popescu
@VicPopescu
Jul 26 2017 06:18
I just leave this here https://findtheinvisiblecow.com/
Eric Miller
@ericmiller777
Jul 26 2017 06:22
wow
Darren
@DarrenfJ
Jul 26 2017 06:24
now i know what I'm gonna do for the next hour ;)
goatgoatgoatGOAT!
Ravi Kishore Thella
@ravikishorethella
Jul 26 2017 06:29
@DarrenfJ :wave: ty
CamperBot
@camperbot
Jul 26 2017 06:29
ravikishorethella sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1933 | @darrenfj |http://www.freecodecamp.com/darrenfj
Darren
@DarrenfJ
Jul 26 2017 06:35
@ravikishorethella hey buddy :D
thanks @ravikishorethella for the brownies
CamperBot
@camperbot
Jul 26 2017 06:35
darrenfj sends brownie points to @ravikishorethella :sparkles: :thumbsup: :sparkles:
:cookie: 975 | @ravikishorethella |http://www.freecodecamp.com/ravikishorethella
Ravi Kishore Thella
@ravikishorethella
Jul 26 2017 06:35
still awake?
Eric Miller
@ericmiller777
Jul 26 2017 06:38
getting there
Victor Popescu
@VicPopescu
Jul 26 2017 06:39
@ericmiller777 good :D
Eric Miller
@ericmiller777
Jul 26 2017 06:40
@VicPopescu thanks
CamperBot
@camperbot
Jul 26 2017 06:40
ericmiller777 sends brownie points to @vicpopescu :sparkles: :thumbsup: :sparkles:
:warning: ericmiller777 already gave vicpopescu points
Eric Miller
@ericmiller777
Jul 26 2017 06:45
fev ;mjk/iv; i/hjgw;JK EGFQ vo; j'erga o[
Pethaf
@Pethaf
Jul 26 2017 06:56
I know, this is a tired old question. But when do you know when you have enough experience to start looking for a job?
Victor Popescu
@VicPopescu
Jul 26 2017 06:57
@Pethaf when you actually start looking, you will
Pethaf
@Pethaf
Jul 26 2017 06:58
Alla ads I have found so far say things like "Must have at least 3 years of experience".
Victor Popescu
@VicPopescu
Jul 26 2017 06:58
don't wait for "enough experience", just start looking
and you will see what they want from you
and you know what you need to improve
Pethaf
@Pethaf
Jul 26 2017 06:58
I even found one from last year that asked for at least two years experience working with react.
Victor Popescu
@VicPopescu
Jul 26 2017 06:58
this is the fastest way
yea they all ask things like that
Pethaf
@Pethaf
Jul 26 2017 06:59
React was released in 2014.
So it seems the only people who could have had 2 years experience working with react professionally are the development team.
Victor Popescu
@VicPopescu
Jul 26 2017 07:00
i think its 2013 actually :D
but yes, 2 years working with react it's a lot for a beginner dev
my advice, make use of github and keep all of your "learning" projects visible
because you can tell you know potato programming, but if you can't show me, I won't believe it
Pethaf
@Pethaf
Jul 26 2017 07:01
March 2013.
But still.
Victor Popescu
@VicPopescu
Jul 26 2017 07:02
the one big mistake I made, because I done a lot of small projects and no one told me to keep them safe for future reference
Pethaf
@Pethaf
Jul 26 2017 07:03
That is asking for someone who has worked professionally with a technology for half of that technology's lifetime.
I have a github account.
Victor Popescu
@VicPopescu
Jul 26 2017 07:03
yes, I know it's absurd. you can ask a senior dev to know, but not a junior dev
cowCrazy
@cowCrazy
Jul 26 2017 07:03
@Pethaf if you feel that you can do what they are asking for then offer yourself.... in 2014 I saw someone searching for developers with at least 5y exp in html5.... so.... they didn't really knew what they were asking for..... make projects as @VicPopescu say.... and offer yourself to whatever you feel comfortable with doing, eventually you would fish something :)
Pethaf
@Pethaf
Jul 26 2017 07:04
@cowCrazy I am at the level where I have finished the electronic calculator project, and the pomodoro clock.
So I would say I have some experience.
Victor Popescu
@VicPopescu
Jul 26 2017 07:05
if you understand basic javascript, html, css and jquery you are good to go. but make sure you have some things to show, because usually they want to see working projects, not just words
Pethaf
@Pethaf
Jul 26 2017 07:05
@VicPopescu No one seems to look for junior developers.
So I have some projects to show.
Victor Popescu
@VicPopescu
Jul 26 2017 07:06
good! I had a c++ game :)) for UI/UX junior position
and they hired me
:))
Pethaf
@Pethaf
Jul 26 2017 07:06
@VicPopescu C++ is cool.
I have real college credits in C++.
Victor Popescu
@VicPopescu
Jul 26 2017 07:06
the thing that matters is that I could show that I love to do this, and that I can learn anything. That was all
cowCrazy
@cowCrazy
Jul 26 2017 07:07
I started a project with someone a couple of weeks ago, he showed me things not so crazy that he did for existing websites like adding a few buttons or changing their images and got some money for it...... keep searching while keep adding more projects :) you will get there!!!
Pethaf
@Pethaf
Jul 26 2017 07:07
Even a graduate course that only covered the intricacies of C++. Like how multiple inheritance works, and fun things one can do with templates.
Victor Popescu
@VicPopescu
Jul 26 2017 07:07
because after you get hired, usually they tell you what they need you to do, and you have to adapt to that
Pethaf
@Pethaf
Jul 26 2017 07:07
CRTP is still the weirdest design pattern I have ever seen.
Victor Popescu
@VicPopescu
Jul 26 2017 07:08
so you understand the basic OOP concepts
then start looking for jobs
and go to interviews
Pethaf
@Pethaf
Jul 26 2017 07:08
Well, I know about things like prefer composition over inheritance.
And the object pool pattern. And MVC.
Victor Popescu
@VicPopescu
Jul 26 2017 07:08
doesn't matter if you fail first ones, you will be sure what to do for the next one
I use MVC on my current project
Pethaf
@Pethaf
Jul 26 2017 07:09
It's a nice pattern.
Cuts down on a lot of spaghetti code.
Victor Popescu
@VicPopescu
Jul 26 2017 07:09
can't say I like or dislike, it was on the project when I started, so we continued with that
when you work in this business you have to learn any framework, library ,pattern or tool that they want
if you switch projects, you might get another set
so you just need to be adaptable
In 4 years of college I didn't had so much information learned like in 4 months of working :))
Pethaf
@Pethaf
Jul 26 2017 07:12
So you did CS in college?
Victor Popescu
@VicPopescu
Jul 26 2017 07:13
college was for nothing, for me. only a waste of time
Pethaf
@Pethaf
Jul 26 2017 07:13
I got a master's degree.
Didn't prepare me for real world work.
Victor Popescu
@VicPopescu
Jul 26 2017 07:13
that is good, but usually that will help you just to get the interview
from that point, it's you
Pethaf
@Pethaf
Jul 26 2017 07:13
It is in math.
Victor Popescu
@VicPopescu
Jul 26 2017 07:14
good, math is good
Pethaf
@Pethaf
Jul 26 2017 07:14
So as someone said "All the workload of engineering, and then some and all the employability of a phillosophy degree".
Adish Jain
@Adishjain58
Jul 26 2017 07:14
can anyone help me with this challenge https://www.freecodecamp.org/challenges/profile-lookup
Pethaf
@Pethaf
Jul 26 2017 07:14
Have you identified the two cases that should return an error?
Adish Jain
@Adishjain58
Jul 26 2017 07:14
this is my code and it is not working
Victor Popescu
@VicPopescu
Jul 26 2017 07:15
@Adishjain58 can't see your code
Pethaf
@Pethaf
Jul 26 2017 07:15
I need some more coffee.
Time to make some.
Adish Jain
@Adishjain58
Jul 26 2017 07:16

function lookUpProfile(firstName, prop){
// Only change code below this line
if(firstName===contacts.firstName){
if(contacts.hasOwnProperty[prop]){
return contacts[prop];
}
}
else if(firstName!=contacts.firstName){
return "No such contact";
}
else
return "No such property";
// Only change code above this line
}

// Change these values to test your function
lookUpProfile("Akira", "likes");

Victor Popescu
@VicPopescu
Jul 26 2017 07:18
@Pethaf I switched to black tea... because I started to drink 4-5 mugs of coffee a day...
Pethaf
@Pethaf
Jul 26 2017 07:18
@Adishjain58 OK, so what code have you implemented?
Adish Jain
@Adishjain58
Jul 26 2017 07:19
@Pethaf i have sent it
look above
Pethaf
@Pethaf
Jul 26 2017 07:20
I can't see any code except the code provided by the assignment.
Victor Popescu
@VicPopescu
Jul 26 2017 07:21
he pasted the code bellow
@Adishjain58 try formatting your code pls ```
Adish Jain
@Adishjain58
Jul 26 2017 07:21

//Setup
var contacts = [
{
"firstName": "Akira",
"lastName": "Laine",
"number": "0543236543",
"likes": ["Pizza", "Coding", "Brownie Points"]
},
{
"firstName": "Harry",
"lastName": "Potter",
"number": "0994372684",
"likes": ["Hogwarts", "Magic", "Hagrid"]
},
{
"firstName": "Sherlock",
"lastName": "Holmes",
"number": "0487345643",
"likes": ["Intriguing Cases", "Violin"]
},
{
"firstName": "Kristian",
"lastName": "Vos",
"number": "unknown",
"likes": ["Javascript", "Gaming", "Foxes"]
}
];

function lookUpProfile(firstName, prop){
// Only change code below this line
if(firstName===contacts.firstName){
if(contacts.hasOwnProperty[prop]){
return contacts[prop];
}
}
else if(firstName!=contacts.firstName){
return "No such contact";
}
else
return "No such property";
// Only change code above this line
}

// Change these values to test your function
lookUpProfile("Akira", "likes");

Victor Popescu
@VicPopescu
Jul 26 2017 07:23
@Adishjain58 else if(firstName!=contacts.firstName){ can be just else
@Adishjain58 in fact I don't thing you need that else if at all
Adish Jain
@Adishjain58
Jul 26 2017 07:23

function lookUpProfile(firstName, prop){
// Only change code below this line
if(firstName===contacts.firstName){
if(contacts.hasOwnProperty[prop]){
return contacts[prop];
}
}
else if(firstName!=contacts.firstName){
return "No such contact";
}
else
return "No such property";
// Only change code above this line
}

// Change these values to test your function
lookUpProfile("Akira", "likes");

here it is function lookUpProfile(firstName, prop){
// Only change code below this line
if(firstName===contacts.firstName){
if(contacts.hasOwnProperty[prop]){
return contacts[prop];
}
}
else if(firstName!=contacts.firstName){
return "No such contact";
}
else
return "No such property";
// Only change code above this line
}

// Change these values to test your function
lookUpProfile("Akira", "likes");

Victor Popescu
@VicPopescu
Jul 26 2017 07:24
@Adishjain58 and you need a for loop through object
@Adishjain58 please edit your post and don't repost
it's confusing
Darth Skywalker
@AdiSkywalker
Jul 26 2017 07:24
@VicPopescu :wave:
Victor Popescu
@VicPopescu
Jul 26 2017 07:25
@AdiSkywalker you slap me? =))
@AdiSkywalker hello :D
Darth Skywalker
@AdiSkywalker
Jul 26 2017 07:25
Spank would be a better terminology ;)
JK
Just waved hi
Victor Popescu
@VicPopescu
Jul 26 2017 07:25
@AdiSkywalker hi hi :))
Darth Skywalker
@AdiSkywalker
Jul 26 2017 07:25
:laughing:
Victor Popescu
@VicPopescu
Jul 26 2017 07:27
@Adishjain58 so, first do a for loop to get through all items from your collection. then check if(contacts[i].firstName === firstName), if that passes check if(contacts[i].hasOwnProperty(prop)) and if that passes too return contacts[i][prop];
Pethaf
@Pethaf
Jul 26 2017 07:27
I just realized I am looking through a video tutorial while wearing cheap in-ear headphones.
Victor Popescu
@VicPopescu
Jul 26 2017 07:27
@Adishjain58 else, just return No such property"
Pethaf
@Pethaf
Jul 26 2017 07:28
All the while I have a pair of Sennheiser HD600s just beside me.
Adish Jain
@Adishjain58
Jul 26 2017 07:28
@VicPopescu ok
Victor Popescu
@VicPopescu
Jul 26 2017 07:28
@Adishjain58 at the end of executionreturn "No such contact"; in case none of the cases above doesn't pass
@Pethaf i love Sennheiser... 4 years of constant wearing and still going
@AdiSkywalker how is the coding working?
Darth Skywalker
@AdiSkywalker
Jul 26 2017 07:32
All good mate...
How about you?
Pethaf
@Pethaf
Jul 26 2017 07:32
@VicPopescu I have replaced lots of parts on these ones.
New cushions, new foam pad, new cable, new grills.
Victor Popescu
@VicPopescu
Jul 26 2017 07:33
@AdiSkywalker same, I have some free time until next project starts
Darth Skywalker
@AdiSkywalker
Jul 26 2017 07:34
@VicPopescu You give me an impression that you're a penguin from Madagascar movie :laughing:
Victor Popescu
@VicPopescu
Jul 26 2017 07:34
@AdiSkywalker I think that was what I wanted :)) or a penguin from happy feet
Darth Skywalker
@AdiSkywalker
Jul 26 2017 07:35
aww.. I don't know penguins of happy feet :(
Victor Popescu
@VicPopescu
Jul 26 2017 07:35
it's a movie, it's cute
Darth Skywalker
@AdiSkywalker
Jul 26 2017 07:35
I'm gonna watch it on my next flight
Victor Popescu
@VicPopescu
Jul 26 2017 07:35
or Mr. Popper's penguins, that is another funny movie
I think I saw all movies/cartoons with penguins that were ever made:))
Darth Skywalker
@AdiSkywalker
Jul 26 2017 07:36
I love the funny!
Adish Jain
@Adishjain58
Jul 26 2017 07:38
@VicPopescu first part is working but others are not
Victor Popescu
@VicPopescu
Jul 26 2017 07:39
@Adishjain58 ok paste the code here, make sure you format it so it can be read easily
@Adishjain58 paste only the code you put, not the entire challenge please
Adish Jain
@Adishjain58
Jul 26 2017 07:40

function lookUpProfile(firstName, prop){
// Only change code below this line
for(var i=0;i<contacts.length;i++){
if(contacts[i].firstName===firstName){
if(contacts[i].hasOwnProperty(prop)){
return contacts[i][prop];
}
}
else{
return "No such property";
}
}
return "no such contact";

// Only change code above this line
}

Victor Popescu
@VicPopescu
Jul 26 2017 07:41
the else need to be from if(contacts[i].hasOwnProperty(prop)){
for "No such property";
you need to check if the prop exist and else return "No such property";
Adish Jain
@Adishjain58
Jul 26 2017 07:46
@VicPopescu what about "No such contact"
Victor Popescu
@VicPopescu
Jul 26 2017 07:47
@Adishjain58 that will remain out of the for loop
@Adishjain58 "No such contact" need to be returned only if the for loop doesn't output anything
Adish Jain
@Adishjain58
Jul 26 2017 07:48
thnx @VicPopescu
CamperBot
@camperbot
Jul 26 2017 07:48
:cookie: 523 | @vicpopescu |http://www.freecodecamp.com/vicpopescu
adishjain58 sends brownie points to @vicpopescu :sparkles: :thumbsup: :sparkles:
Victor Popescu
@VicPopescu
Jul 26 2017 07:48
@Adishjain58 you got it? good job!
Adish Jain
@Adishjain58
Jul 26 2017 07:48
@VicPopescu yes
thanks
Victor Popescu
@VicPopescu
Jul 26 2017 07:49
@Adishjain58 np, good luck!
okayaj
@okayaj
Jul 26 2017 08:38
I am working on a python challenge to create a program that asks the user their name and age, and returns a personalized message telling them when they will turn 100. I have only just started learning python but have hit some walls already. Can anyone detangle this and set me on the right track?
user_name = input("Welcome! Please enter your name.")

user_age = input("Thank you! Now please enter your age.")

def age_calc(user_age):
  years_til = 100 - user_age
  return 2017 + years_til

print("Congratulations, {}! You will turn 100 in the year {}!".format(user_name, age_calc()))
i have not learned much on functions but i assume my problem is either in how i set it up, or how i called it
Huỳnh Trần Khanh
@khanh2003
Jul 26 2017 09:00
@okayaj input() function returns a string, so you have to convert user_age to int like so:
user_age = int(input("Thank you! Now please enter your age."))
then call it: age_calc(user_age)
okayaj
@okayaj
Jul 26 2017 09:01
@khanh2003 I had just cracked the mystery of converting the input to an integer, but i was still trying to figure out the function. that did it! thank you :D
CamperBot
@camperbot
Jul 26 2017 09:01
okayaj sends brownie points to @khanh2003 :sparkles: :thumbsup: :sparkles:
:cookie: 104 | @khanh2003 |http://www.freecodecamp.com/khanh2003
okayaj
@okayaj
Jul 26 2017 09:04
just out of curiosity, if i had a second input asking for their brothers age ie: user_brother_age = int(input("Please enter your brother's age:")), could i use the same age_calc function to calculate their age by typing age_calc(user_brother_age)?
Huỳnh Trần Khanh
@khanh2003
Jul 26 2017 09:06
@okayaj yes of course
okayaj
@okayaj
Jul 26 2017 09:07
@khanh2003 Thank you for the help, much appreciated.
CamperBot
@camperbot
Jul 26 2017 09:07
okayaj sends brownie points to @khanh2003 :sparkles: :thumbsup: :sparkles:
:warning: okayaj already gave khanh2003 points
Huỳnh Trần Khanh
@khanh2003
Jul 26 2017 09:08
@okayaj btw, are you new to python or programming in general?
Ran XuYang
@ranxuyang
Jul 26 2017 09:28
https://codepen.io/ranxuyang/pen/NvPEoR Help me find out what went wrong !
Huỳnh Trần Khanh
@khanh2003
Jul 26 2017 09:37
@ranxuyang can you tell me what doesnt work?
May Kittens Devour Your Soul
@diomed
Jul 26 2017 09:37
ty @Margaret2
CamperBot
@camperbot
Jul 26 2017 09:37
diomed sends brownie points to @margaret2 :sparkles: :thumbsup: :sparkles:
:star2: 2861 | @margaret2 |http://www.freecodecamp.com/margaret2
Ran XuYang
@ranxuyang
Jul 26 2017 09:40
@khanh2003 when i Press the “newspeak” button,but nothing、
happen
@khanh2003 can you help me
Huỳnh Trần Khanh
@khanh2003
Jul 26 2017 09:44
Ran XuYang
@ranxuyang
Jul 26 2017 09:45
@khanh2003 i take a look
okayaj
@okayaj
Jul 26 2017 11:08
@khanh2003 to answer your earlier question, i took a run at javascript last year but i would consider myself new to both programming and python.
Andrei Bratu
@andreibratu26
Jul 26 2017 11:09
Is it possible to style a ul in css but omit spans inside item lists ? ?
Stanley Su
@stanley-su
Jul 26 2017 11:11
@pwnsterrr What do you mean omit spans?
Andrei Bratu
@andreibratu26
Jul 26 2017 11:12
Restyle the whole ul without the elemens inside spans
Stanley Su
@stanley-su
Jul 26 2017 11:14
@pwnsterrr I don’t understand your question, you haven’t posted your code. Show your code please. Also you can always try it yourself
Stephen James
@sjames1958gm
Jul 26 2017 11:32
@pwnsterrr You mean you don't want the spans in the list to get the styles assigned to the ul.
Here is an article talking about inheritance and ways to control it.
https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Cascade_and_inheritance#Inheritance
Andrei Bratu
@andreibratu26
Jul 26 2017 11:32
Thanks you @sjames1958gm but i already solved that issue by using CSS .not selector :)
CamperBot
@camperbot
Jul 26 2017 11:32
pwnsterrr sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8164 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Stephen James
@sjames1958gm
Jul 26 2017 11:33
@pwnsterrr :+1:
Andrei Bratu
@andreibratu26
Jul 26 2017 11:33
Can you tell me how can i leave more space between 2 words inside a li ?
Stephen James
@sjames1958gm
Jul 26 2017 11:45
@pwnsterrr There is a letter-spacing property
https://developer.mozilla.org/en-US/docs/Web/CSS/letter-spacing
Stephen James
@sjames1958gm
Jul 26 2017 11:46
Well there you go, word spacing, new one on me :)
Amit Patel
@AmitP88
Jul 26 2017 11:47
hey guys, I need help getting my evaluate function to work in my JS calculator. I keep getting '2 arguments required but only 1 present' in the console, even when I try to divide two numbers: https://codepen.io/AmitP88/pen/NgMLdP?editors=0010
Stephen James
@sjames1958gm
Jul 26 2017 11:49
@AmitP88 I did notice one thing you have =+ in one case, which should likely be += ?
@AmitP88 evalutate is a function already on document - and that is the one it is trying to run - try giving yours a different name
Amit Patel
@AmitP88
Jul 26 2017 11:55
@sjames1958gm it works now, thank you :)
CamperBot
@camperbot
Jul 26 2017 11:55
amitp88 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8165 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Andrei Bratu
@andreibratu26
Jul 26 2017 11:56
If i put a background after a hr it will only apply below the line right?
Stephen James
@sjames1958gm
Jul 26 2017 11:56
@AmitP88 :+1:
heroiczero
@heroiczero
Jul 26 2017 11:59
@pwnsterrr i would try to separate with a div and give the div a background to separate it
Andrei Bratu
@andreibratu26
Jul 26 2017 12:00
@heroiczero thanks you
CamperBot
@camperbot
Jul 26 2017 12:00
pwnsterrr sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1531 | @heroiczero |http://www.freecodecamp.com/heroiczero
KinderPreet Singh
@kindercappy
Jul 26 2017 12:05
Can anybody help on how do I go about the tic tac toe game with the computer?
heroiczero
@heroiczero
Jul 26 2017 12:07
@kindercappy you can try making an AI with this specification: https://www.quora.com/Is-there-a-way-to-never-lose-at-Tic-Tac-Toe or you can make them go crazy and try to make it with random
KinderPreet Singh
@kindercappy
Jul 26 2017 12:08
@heroiczero thanks :)
CamperBot
@camperbot
Jul 26 2017 12:08
kindercappy sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1532 | @heroiczero |http://www.freecodecamp.com/heroiczero
Stephen James
@sjames1958gm
Jul 26 2017 12:13
@kindercappy You can make some simple rules, I did:
  • play center if not taken
  • win if possible
  • block if needed
  • random
    This way it is not unbeatable, but it does play to win
KinderPreet Singh
@kindercappy
Jul 26 2017 12:14
@sjames1958gm okay. thanks :)
CamperBot
@camperbot
Jul 26 2017 12:15
kindercappy sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8166 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
falowo gbolahan
@falowo95
Jul 26 2017 12:23
.
Kevin
@Multipass5000
Jul 26 2017 12:33
Good Morning everyone!

I was hoping someone could help me figure out what I was doing wrong with the following

https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-line-up-form-elements-responsively-with-bootstrap/18225/11

dyon3334
@dyon3334
Jul 26 2017 12:37
javascript:literal objects(literals) vs constructor functions
Andrei Bratu
@andreibratu26
Jul 26 2017 12:43
Guys , i just put a background image to my website but it splits the photo in smaller pictures , how can i solve this ?
May Kittens Devour Your Soul
@diomed
Jul 26 2017 12:47
@Multipass5000 your code looks good
did u try resetting and doing it all over again
Kevin
@Multipass5000
Jul 26 2017 12:47
yes :( many times
May Kittens Devour Your Soul
@diomed
Jul 26 2017 12:47
@pwnsterrr it's probably smoll
Andrei Bratu
@andreibratu26
Jul 26 2017 12:47
@diomed how to make it larger?
Kevin
@Multipass5000
Jul 26 2017 12:48
HOLY SHIT
it finally worked
i've been trying it for days!!!
haha thank you @diomed
CamperBot
@camperbot
Jul 26 2017 12:48
multipass5000 sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:star2: 5187 | @diomed |http://www.freecodecamp.com/diomed
May Kittens Devour Your Soul
@diomed
Jul 26 2017 12:49
@Multipass5000 u lacked last div
it closes container-fluid
Kevin
@Multipass5000
Jul 26 2017 12:49
wowww
ok
thanks again :)
May Kittens Devour Your Soul
@diomed
Jul 26 2017 12:49
it was like in a box without a bottom
no problem :yum:
Kevin
@Multipass5000
Jul 26 2017 12:49
ok!
I know, i just couldn't figure out where that </div> was supposed to go
May Kittens Devour Your Soul
@diomed
Jul 26 2017 12:50
@pwnsterrr did u try to position image as cover
Eric Weiss
@eweiss17
Jul 26 2017 12:50
some IDE's will automatically add closing tags... useful to avoid that confusion
May Kittens Devour Your Soul
@diomed
Jul 26 2017 12:50
Michael DaSilva
@ProgrammedMikey
Jul 26 2017 12:53
hello, I am trying to do the filter function challenge and not sure what is wrong here
Andrei Bratu
@andreibratu26
Jul 26 2017 12:53
@diomed that worked but it lost it's quality , i guess i have to find a larger picture?
Michael DaSilva
@ProgrammedMikey
Jul 26 2017 12:53

// the global Array
var s = [23, 65, 98, 5];

Array.prototype.myFilter = function(callback){
var newArray = [];
// Add your code below this line
this.forEach(function(elm, ind){
if (ind === callback(elm)) {
newArray.push(ind);
}
});
// Add your code above this line
return newArray;

};

var new_s = s.myFilter(function(item){
return item % 2 === 1;
});

''
May Kittens Devour Your Soul
@diomed
Jul 26 2017 12:56
@pwnsterrr yes, u have to find larger picture for background, if u don't want it to be tiled
Andrei Bratu
@andreibratu26
Jul 26 2017 12:57
@diomed Allright,thanks you
CamperBot
@camperbot
Jul 26 2017 12:57
pwnsterrr sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:star2: 5188 | @diomed |http://www.freecodecamp.com/diomed
May Kittens Devour Your Soul
@diomed
Jul 26 2017 12:59
@AmitP88 stop using talbes, u're not in 90es anymore
no1 will hire u if u use tables to code
Eric Weiss
@eweiss17
Jul 26 2017 12:59
lul company i am at right now has tables within tables
Amit Patel
@AmitP88
Jul 26 2017 12:59
@diomed ok, I'll refactor my code
@diomed I'll use form instead
May Kittens Devour Your Soul
@diomed
Jul 26 2017 13:00
@eweiss17 does it Excel? :smile:
Eric Weiss
@eweiss17
Jul 26 2017 13:00
no but this html was probably orignally added in the 90s
May Kittens Devour Your Soul
@diomed
Jul 26 2017 13:01
@eweiss17 impress them by converting it to flexbox :smile:
or is that not your job? :yum:
Eric Weiss
@eweiss17
Jul 26 2017 13:03
I'v sense learned to not question defects in the styling..... if that explains anything
May Kittens Devour Your Soul
@diomed
Jul 26 2017 13:03
Grid might even be the best answer for making calculator
@eweiss17 coz u'd have to fix it, huh?
Amit Patel
@AmitP88
Jul 26 2017 13:04
@diomed thanks for the resources
CamperBot
@camperbot
Jul 26 2017 13:04
amitp88 sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:star2: 5189 | @diomed |http://www.freecodecamp.com/diomed
May Kittens Devour Your Soul
@diomed
Jul 26 2017 13:04
are u working for :heart: enterprise maybe?
Eric Weiss
@eweiss17
Jul 26 2017 13:04
no the client does not want anything to change unless they explicitly state so
Stephen James
@sjames1958gm
Jul 26 2017 13:11
@ProgrammedMikey Which challenge is that?
Stephen James
@sjames1958gm
Jul 26 2017 13:20
@ProgrammedMikey Do you need to pass index and array to the callback function?
Ayush Mahajan
@ay2306
Jul 26 2017 13:21
hey guys this is my html body code
https://pastebin.com/aN48u8c1
and this is css for it
https://pastebin.com/x7kGSR1F
Why isnt body taking a background color?
Stephen James
@sjames1958gm
Jul 26 2017 13:25
@ay2306 Looks like to me, on quick study, the only thing that is showing is topBar, so you get topBar background color.
Ayush Mahajan
@ay2306
Jul 26 2017 13:27
@sjames1958gm actually in html code, only loader box is being shown. I change both topBar and mainBox to show. They are showing but body not taking background color
image.png
May Kittens Devour Your Soul
@diomed
Jul 26 2017 13:27
@sjames1958gm how would I make my navigation less gray and more some other color?
Eric Weiss
@eweiss17
Jul 26 2017 13:29
@diomed thought you were a master at html/css
May Kittens Devour Your Soul
@diomed
Jul 26 2017 13:29
I'm new here
:yum:
Stephen James
@sjames1958gm
Jul 26 2017 13:30
@ay2306 Use the browser inspector to see where the background color is coming from.
May Kittens Devour Your Soul
@diomed
Jul 26 2017 13:30
@eweiss17 I'm unstealthiest css ninja
Eric Weiss
@eweiss17
Jul 26 2017 13:32
This is the problem with adding external styles.... you get some unwanted that is a pain to change
May Kittens Devour Your Soul
@diomed
Jul 26 2017 13:32
It's like popping pills
it helps u but also kills you a bit
or so they say
@diomed Otherwise you have to bring out the !important qualifier and add classes to your uk-tab elements :(
Eric Weiss
@eweiss17
Jul 26 2017 13:38
using !important makes me cry :cry:
May Kittens Devour Your Soul
@diomed
Jul 26 2017 13:38
why doesn't it make u important?
Kyle Holm
@thekholm80
Jul 26 2017 13:44
@diomed i think you're pretty important
Eric Weiss
@eweiss17
Jul 26 2017 13:46
probably #1 croatian coder in FreeCodeCamp/Help (at least top 5, if not 1) @diomed
Kyle Holm
@thekholm80
Jul 26 2017 13:50
omg i got my first star on github. i guess you could say i'm pretty important now, too
Kyle Holm
@thekholm80
Jul 26 2017 14:05
@diomed x
SwampyPk
@SwampyPk
Jul 26 2017 14:07
Hey guys, can i get some help with my shitty htmlandcss?
Eric Weiss
@eweiss17
Jul 26 2017 14:08
what type of help
SwampyPk
@SwampyPk
Jul 26 2017 14:08
The helping kind :)
One sec
I'll write something a bit more concise.
Am I allowed to post gyazo links here for visual aid?
Eric Weiss
@eweiss17
Jul 26 2017 14:09
gyazo?
SwampyPk
@SwampyPk
Jul 26 2017 14:09
Screenshot tool
Isaac Torres Michel
@isaactorresmichel
Jul 26 2017 14:10

Hi guys, I hope you're having a nice day. I have a question about Angular 4. I'm doing a proyect for a school to help kids to learn English, that project involves taking a quiz. One of the types o question is to fill text fields to complete a phrase that they heard on an audio. My question is, how can I generate dynamically a text field and replace it a pattern like "%text_field%" on a string like the next:

Rodrigo went to the %text_field% last night.

Sorry for my bad English too :D

Eric Weiss
@eweiss17
Jul 26 2017 14:10
u can just drag them into here
yes post screenshots
SwampyPk
@SwampyPk
Jul 26 2017 14:12

This is currently what I have: https://gyazo.com/dc15a4a8f34ff176f0930d5251351a31

I'm trying to remove the whitespace between the placeholder logo and a bit on the right hand side by 'REF4'. I've got boostrap hookedup so I'm currently using a fluid container to hold it together. I've tried to remove padding by using negative values but it's just really messy and doesn't really do the job.

I can drag in screens?
Just redirects to the link, it's all done web-based so I don't have the file on my machine unless I download it.
Eric Weiss
@eweiss17
Jul 26 2017 14:14
u can just take a snip and drag it in
didn't do anything.jpg
SwampyPk
@SwampyPk
Jul 26 2017 14:14
Would you rather I do that? Or can I stick to gyazo
Eric Weiss
@eweiss17
Jul 26 2017 14:15
idk whatever is easier
SwampyPk
@SwampyPk
Jul 26 2017 14:15
I don't really like snipping tool, makes too many dump files
trash*
Any ideas?
Eric Weiss
@eweiss17
Jul 26 2017 14:16
snipping tool is great man
SwampyPk
@SwampyPk
Jul 26 2017 14:16
It's tolerable. With gyazo all I have to do is windows key then gyaz hit enter drag the region and copypasta the link
otherwise i have to rummage around and look for the file i want to send
upload it
then relink
Eric Weiss
@eweiss17
Jul 26 2017 14:17
then just do that man
SwampyPk
@SwampyPk
Jul 26 2017 14:17
anyway, sorry losing sight of my question.... :/ I've been at this for so long. Webdev isn't really my strong suit
yeye dw about it :/
Eric Weiss
@eweiss17
Jul 26 2017 14:18
it's hard for me to know if it's just screenshots, inspecting it is gonna give u the most info on what is causing it
SwampyPk
@SwampyPk
Jul 26 2017 14:18
would it help if i pastebin the code?
Eric Weiss
@eweiss17
Jul 26 2017 14:18
If it's not padding i'm gonna guess margin?
SwampyPk
@SwampyPk
Jul 26 2017 14:18
tried it too
I think its something to do with the properties of the fluid container
Can't really do anything about that because im using a CDN link
ill pastebin my code
Andrei Bratu
@andreibratu26
Jul 26 2017 14:19
How do i get rid of blank space at bottom of my page?
Eric Weiss
@eweiss17
Jul 26 2017 14:20
margin: 0; @pwnsterrr
  • {
* {
   margin: 0;
}
sets margin of everything to 0. use cautiously
SwampyPk
@SwampyPk
Jul 26 2017 14:21
@eweiss17 It's actually complete trash code so don't laugh too hard-> HTML: https://pastebin.com/VzwWBMZa -> CSS: https://pastebin.com/K3JzxrxV
Andrei Bratu
@andreibratu26
Jul 26 2017 14:22
@eweiss17 it still remains a little blank space at end of page :(
SwampyPk
@SwampyPk
Jul 26 2017 14:22
@eweiss17 oops *normal container not fluid
Eric Weiss
@eweiss17
Jul 26 2017 14:24
@pwnsterrr padding then maybe? i don't know unless you show the page visually
Andrei Bratu
@andreibratu26
Jul 26 2017 14:24
@eweiss17
Eric Weiss
@eweiss17
Jul 26 2017 14:25
@SwampyPk you messed up. container is not a tag, it's a class, switch it with <div class="container">
SwampyPk
@SwampyPk
Jul 26 2017 14:25
omg didnt even notice....
rip me
also @pwnsterrr the ul tag by default has some margin on the bottom maybe try ul { margin-bottom: 0px; }
idk im total noob but I had an issue like that before.
Eric Weiss
@eweiss17
Jul 26 2017 14:27
@pwnsterrr your <body> should be the start and end of all your tags... you should not end on a </div>
the <head> tag is outside the body , that is the exception
Andrei Bratu
@andreibratu26
Jul 26 2017 14:27
The ending div is for the first one with container fluid
Should i end it before body ?
But i applied the margin 0 to that div tho
Eric Weiss
@eweiss17
Jul 26 2017 14:28
from w3

The <body> tag defines the document's body.

The <body> element contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists, etc.

Andrei Bratu
@andreibratu26
Jul 26 2017 14:29
So i should add the div container fluid inside the body ?
@SwampyPk Thanks you swampy but that didn't worked
CamperBot
@camperbot
Jul 26 2017 14:30
pwnsterrr sends brownie points to @swampypk :sparkles: :thumbsup: :sparkles:
:warning: @swampypk's account is not linked with freeCodeCamp. Please visit the settings and link your GitHub account.
SwampyPk
@SwampyPk
Jul 26 2017 14:31
@pwnsterrr :) Ty. @eweiss17 Added modification <container> and </container> is now <div class="container"> </div> but issue still persists.
CamperBot
@camperbot
Jul 26 2017 14:31
swampypk sends brownie points to @pwnsterrr and @eweiss17 :sparkles: :thumbsup: :sparkles:
:cookie: 115 | @pwnsterrr |http://www.freecodecamp.com/pwnsterrr
:cookie: 566 | @eweiss17 |http://www.freecodecamp.com/eweiss17
Eric Weiss
@eweiss17
Jul 26 2017 14:32
@pwnsterrr ya of course.
@pwnsterrr your UL has a margin bottom of 16
try to make your html cleaner... it will make fixing things easier
Andrei Bratu
@andreibratu26
Jul 26 2017 14:35
@eweiss17 well this is my first ever project :D
@eweiss17 where did u found my UL borrom is 16 , i cant even see it lol
madhuri soni
@sonimadhuri
Jul 26 2017 14:39
Hey guys why arent the Skycons appearing in my pen?https://codepen.io/madhurisoni12/pen/xLxpGo?editors=0010
Eric Weiss
@eweiss17
Jul 26 2017 14:39
ali.PNG
the .text-right also has a margin bottom
it looks alright as first project. just gotta clean it up a bit
Andrei Bratu
@andreibratu26
Jul 26 2017 14:40
so how do i set that bottom margin to 0 ?
Eric Weiss
@eweiss17
Jul 26 2017 14:41
find it in your html
CamperBot
@camperbot
Jul 26 2017 14:41
find it in your html
nothing found
Eric Weiss
@eweiss17
Jul 26 2017 14:41
press F12 - dev tools, to get what i just did
i gtg for now i'll be back later gl
Andrei Bratu
@andreibratu26
Jul 26 2017 14:42
F12 not working for me
madhuri soni
@sonimadhuri
Jul 26 2017 14:56
So it appears on other peoples browser .Thanks anyway
Eric Weiss
@eweiss17
Jul 26 2017 15:14
@pwnsterrr right click - > inspect
May Kittens Devour Your Soul
@diomed
Jul 26 2017 15:15
@thekholm80 damn, that dog knows how to live
Andrei Bratu
@andreibratu26
Jul 26 2017 15:16
@eweiss17 u there?
@eweiss17 i finaly did it , is it looking good now ? https://codepen.io/andreibratu/full/PKwPaP
Stephen Passero
@stephenpassero
Jul 26 2017 15:22
find filter
CamperBot
@camperbot
Jul 26 2017 15:22
find filter
nothing found
knight2
@knight2
Jul 26 2017 15:28

Does anyone know the basic code to just get json data using fetch with react within componentDidMount?

https://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en

Right now i'm just trying to get it to return the json data before I try to set state...

componentDidMount() {    
  let url = 'https://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en';

  fetch(url)
  .then(function(data) {
    console.log(data);
  })
  };
componentDidMount() {    
  this.fetchData();
}

    fetchData() {
    fetch('https://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en')
      .then((response) => response.json())
      .then((responseData) => {
      console.log(responseData);
        this.setState({
          data: responseData
        });
      })
      .done();
  };
knight2
@knight2
Jul 26 2017 15:33
Better question, why is random quote machine in FCC beta projects listed before Data Visualization: JSON APIs and Ajax?
Kyle Holm
@thekholm80
Jul 26 2017 15:50
@knight2 there's nothing in the beta instructions that says you have to use an api to complete the challenge
knight2
@knight2
Jul 26 2017 15:51
@thekholm80 True, I can just make an arrayof quotes and authors
Kyle Holm
@thekholm80
Jul 26 2017 15:51
a lot of folks do just that
apis are easier, imo lol
knight2
@knight2
Jul 26 2017 15:51
From looking at the forums, a majority of people are just copying other people's project's codes
and doing an api call instead
Kyle Holm
@thekholm80
Jul 26 2017 15:52
have you looked at axios? it's my favorite api client
i've never used fetch
knight2
@knight2
Jul 26 2017 15:52
Just tried it
componentDidMount() { axios.get('https://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en') .then(response => { console.log(response); }) .catch(error => { console.log('Error fetching and parsing data', error); }); } -- it throws an error
    componentDidMount() {
axios.get('https://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en')
  .then(response => {
      console.log(response);
  })
  .catch(error => {
    console.log('Error fetching and parsing data', error);
  });
  }
Kyle Holm
@thekholm80
Jul 26 2017 15:53
strange, the api is working
{
    "quoteText": "There are people who have money and people who are rich. ",
    "quoteAuthor": "Coco Channel",
    "senderName": "",
    "senderLink": "",
    "quoteLink": "http://forismatic.com/en/d74a42636e/"
}
did you type in the same code as mine?
Kyle Holm
@thekholm80
Jul 26 2017 15:54
i wonder if it's a codepen thing
knight2
@knight2
Jul 26 2017 15:54
It might be
Kyle Holm
@thekholm80
Jul 26 2017 15:55
oh, no it's cors
XMLHttpRequest cannot load https://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://s.codepen.io' is therefore not allowed access.
knight2
@knight2
Jul 26 2017 15:56
So the forismatic website is blocking codepen?
Kyle Holm
@thekholm80
Jul 26 2017 15:58
i'm trying to get around it, but you may have to use another api
Darth Skywalker
@AdiSkywalker
Jul 26 2017 15:59
@knight2 You can't do anything since forismatic needs to set that header
knight2
@knight2
Jul 26 2017 15:59
but going to this https://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en in browser shows the json data just fine
Darth Skywalker
@AdiSkywalker
Jul 26 2017 15:59
you can, however, change the way you make fetch call to something like
fetch('https://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en', {
  mode: 'no-cors'
})
but be advise that this will give you opaque response
@knight2 Hitting that API from browser is one thing and requesting that as ajax request is another
(either using XMLHttpRequest or fetch api)
knight2
@knight2
Jul 26 2017 16:03
why does
return $.getJSON('https://randomuser.me/api/') .then((data) => { console.log(data); }); work then?
and not forismatic json
Darth Skywalker
@AdiSkywalker
Jul 26 2017 16:04
could be because forismatic doesn't set Access-Control-Allow-Origin header on the response
Kelechi Chinaka
@ke1echi
Jul 26 2017 16:04
should i wait till beta is live or start now?
May Kittens Devour Your Soul
@diomed
Jul 26 2017 16:08
try now, start when live
Kyle Holm
@thekholm80
Jul 26 2017 16:08
@kelechy do you want to start learning now, or wait until later?
May Kittens Devour Your Soul
@diomed
Jul 26 2017 16:08
your progress in beta wont be saved
@thekholm80 don't u hate those
Kyle Holm
@thekholm80
Jul 26 2017 16:09
@diomed lol
SwampyPk
@SwampyPk
Jul 26 2017 16:11
Hey anyone still alive in here?
knight2
@knight2
Jul 26 2017 16:11
ok thanks @thekholm80 and @AdiSkywalker
CamperBot
@camperbot
Jul 26 2017 16:11
knight2 sends brownie points to @thekholm80 and @adiskywalker :sparkles: :thumbsup: :sparkles:
:cookie: 239 | @adiskywalker |http://www.freecodecamp.com/adiskywalker
:star2: 1373 | @thekholm80 |http://www.freecodecamp.com/thekholm80
May Kittens Devour Your Soul
@diomed
Jul 26 2017 16:11
barely
SwampyPk
@SwampyPk
Jul 26 2017 16:12
I've been trying to remove this white space for hours
I know I'm bad but still, this is pathetic
May Kittens Devour Your Soul
@diomed
Jul 26 2017 16:12
what white space?
After REF 6 and before placeholder
May Kittens Devour Your Soul
@diomed
Jul 26 2017 16:13
@thekholm80 today I downloaded samsung emoji pack on my android, then downloaded extra keyboard to use them,
before I realized my phone IS in fact samsung. if u need any insight in my reasoning.
Kyle Holm
@thekholm80
Jul 26 2017 16:13
rofl
SwampyPk
@SwampyPk
Jul 26 2017 16:15
Is there some simple fix for making containers just fit to the size of the stuff inside them?
Sorin Ruse
@sorinr
Jul 26 2017 16:15
@SwampyPk have u tried in css html,bod{y margin: 0;} ?
SwampyPk
@SwampyPk
Jul 26 2017 16:16
@sorinr I've tried it everywhere but I'm still pretty sure that is a solution to it
I'll pastebin my stuff, its pretty trash code but yeah.
May Kittens Devour Your Soul
@diomed
Jul 26 2017 16:16
@SwampyPk u've tried everywhere but u totally didn't try to give us our code yet
Sorin Ruse
@sorinr
Jul 26 2017 16:16
@SwampyPk can u share the code
SwampyPk
@SwampyPk
Jul 26 2017 16:17
Sharethe code?
If there is a more efficient way to view it i can do that too
May Kittens Devour Your Soul
@diomed
Jul 26 2017 16:18
got codepen
?
SwampyPk
@SwampyPk
Jul 26 2017 16:18
I can get it
Sorin Ruse
@sorinr
Jul 26 2017 16:18
give us alink to ur code. better upload it to codepen and share the link so we can see whats goin' on
Kyle Holm
@thekholm80
Jul 26 2017 16:18
or put it in jsbin
SwampyPk
@SwampyPk
Jul 26 2017 16:19
doing it now
What can I do about the resources that are used in codepen
They're placeholder but otherwise its hard to see what is being achieved
May Kittens Devour Your Soul
@diomed
Jul 26 2017 16:25
just make sure u upload those pics online
somewhere , and link to them
SwampyPk
@SwampyPk
Jul 26 2017 16:25
ahh good idea
Kelechi Chinaka
@ke1echi
Jul 26 2017 16:27
i want to start now @thekholm80
Kyle Holm
@thekholm80
Jul 26 2017 16:28
@kelechy then why would you wait?
Kelechi Chinaka
@ke1echi
Jul 26 2017 16:28
dunno...was just thinking @thekholm80
whats your advice @thekholm80
Kyle Holm
@thekholm80
Jul 26 2017 16:29
listen to your heart, follow your dreams. keep your head in the clouds and your feet on the ground. dance as if nobody is watching, love like it's the last time
if you want to start now, start now ...
SwampyPk
@SwampyPk
Jul 26 2017 16:30
@diomed @sorinr This is my best attempt at working codepen: https://codepen.io/SwampyPk/pen/eENdaX
Idk im probably missing something, images are mashed, beats me why but I need to get something to drink first
Alexander R Bott
@Abott1222
Jul 26 2017 16:31
@thekholm80 that was pretty deep right there
Sorin Ruse
@sorinr
Jul 26 2017 16:34
@SwampyPk ok. where is the white space u wanna get rid off?
Kelechi Chinaka
@ke1echi
Jul 26 2017 16:35
i think i would start @thekholm80 ty
CamperBot
@camperbot
Jul 26 2017 16:35
kelechy sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1374 | @thekholm80 |http://www.freecodecamp.com/thekholm80
SwampyPk
@SwampyPk
Jul 26 2017 16:35
@sorinr Right of REF6 and left of the TEST image.
Kyle Holm
@thekholm80
Jul 26 2017 16:35
@kelechy i just wouldn't work on the beta right now, do the live curriculum
SwampyPk
@SwampyPk
Jul 26 2017 16:35
@sorinr I haven't made dealt with it being in a smaller window atm
@sorinr That's a whole other challenge... :(
Kelechi Chinaka
@ke1echi
Jul 26 2017 16:36
why not beta @thekholm80
Kyle Holm
@thekholm80
Jul 26 2017 16:37
@kelechy 1. beta is still buggy because it's under development 2. any progress you make will not be saved when it goes live 3. you have enough time to earn a cert or two from the current curriculum so why not do it?
Kelechi Chinaka
@ke1echi
Jul 26 2017 16:38
ok @thekholm80
zealsham
@zealsham
Jul 26 2017 16:42
after transpiling to es6 with babel do i delete the previous es6 file or i keep it
SwampyPk
@SwampyPk
Jul 26 2017 16:44
@sorinr Any ideas? :(
madhuri soni
@sonimadhuri
Jul 26 2017 16:48
@SwampyPk the space at the left of TEST image is because of 40px left padding
SwampyPk
@SwampyPk
Jul 26 2017 16:49
@sonimadhuri Is that something I wrote? I can't see any 40px padding
madhuri soni
@sonimadhuri
Jul 26 2017 16:49
@SwampyPk
ul.a {
  padding-left:0px;
}
@SwampyPk when you inspect the element there it shows this padding so remove it off using the above code
SwampyPk
@SwampyPk
Jul 26 2017 16:52
remove the whole padding line?
Sorin Ruse
@sorinr
Jul 26 2017 16:52
@SwampyPk something like this ?
madhuri soni
@sonimadhuri
Jul 26 2017 16:53
@SwampyPk the padding is aplied as part of the user agent stylesheet which is nothing but the default styles the browser applies to a webpage
Ayush Mahajan
@ay2306
Jul 26 2017 16:54
Is something wrong here?
<script type="text/javascript">
$('#reso').html('Width: ' + screen.width);
</script>

<div id='reso'></div>
SwampyPk
@SwampyPk
Jul 26 2017 16:54
https://gyazo.com/1f86f0a09955d04a9b1afdff43c97ca5 <---- is what im trying to achieve
@sorinr I'll have a look now. @sonimadhuri Keeping it or removing it it still appears to make no difference though. Unless I'm misunderstanding you :/
madhuri soni
@sonimadhuri
Jul 26 2017 16:56
SwampyPk
@SwampyPk
Jul 26 2017 16:56
@sorinr If I add your modifications to my code it appears like this: https://gyazo.com/015c905a5ba718b0008bfdc106827357 :/ Still whitespace :'(
@sonimadhuri I'll look now :)
@sonimadhuri It doesn't appear to have changed anything: https://gyazo.com/aa8ad9490c7cd470db16dac4e5e49365
Sorin Ruse
@sorinr
Jul 26 2017 17:04
@SwampyPk try reload my forked pen
SwampyPk
@SwampyPk
Jul 26 2017 17:05
ok:)
The resource is loading now @sorinr
nvm
It's still posing the same issue
does it look different to you guys?
Or am i just blind
May Kittens Devour Your Soul
@diomed
Jul 26 2017 17:09
CSS is a mofo
Kyle Holm
@thekholm80
Jul 26 2017 17:09
today i learned that if your username has thanks in it, cbot will give you cookies any time people mention you
SwampyPk
@SwampyPk
Jul 26 2017 17:11
im 100% cry right now
idk why ive made such a meal of this
May Kittens Devour Your Soul
@diomed
Jul 26 2017 17:13
@sonimadhuri .
@thekholm80 u live, u learn. I've seen that1 already
madhuri soni
@sonimadhuri
Jul 26 2017 17:15
check it out in the full page view
SwampyPk
@SwampyPk
Jul 26 2017 17:15
omgogm
thats soo close
May Kittens Devour Your Soul
@diomed
Jul 26 2017 17:15
close
cringes
SwampyPk
@SwampyPk
Jul 26 2017 17:15
lol allow urself
probs 100% ocd
but who isnt be hoenst
the white on the leftside
that's the only part
fullpage view?
@sonimadhuri You have helped soo much my dude https://gyazo.com/8fff88d0261c60b749a332d6182afd99 but pls <3
May Kittens Devour Your Soul
@diomed
Jul 26 2017 17:18
it's times like these when I think to myself... hmm... those idiots should have allowed negative padding
SwampyPk
@SwampyPk
Jul 26 2017 17:19
believe me, ive tried :(
May Kittens Devour Your Soul
@diomed
Jul 26 2017 17:20
@SwampyPk negative padding is not allowed, nor suppported
here u go, knock yourself out:
.nv_head_fixedbar {
  width: auto;
  margin: 0 auto;
  background-color: #fff;
}

width: :car:
:yum:
SwampyPk
@SwampyPk
Jul 26 2017 17:23
no change unfortunately :/
May Kittens Devour Your Soul
@diomed
Jul 26 2017 17:24
SwampyPk
@SwampyPk
Jul 26 2017 17:25
my
god
is changed ther
ebut
trauma intensifies
one momento
senpai
thank you
May Kittens Devour Your Soul
@diomed
Jul 26 2017 17:26
de nada
SwampyPk
@SwampyPk
Jul 26 2017 17:26
gets up from chair and flips through the door
Pixel-Trader
@Pixel-Trader
Jul 26 2017 17:38
hello, I'm rying to download APTANA Studio 3 but i'm having difficulty, it won't let me download the IDE for windows
Mahmoud R Habeeb
@MahmoudRhabeeb
Jul 26 2017 17:49
Hi i have a proplem here
Storing Values with the Assignment Operator
Please help me
,
May Kittens Devour Your Soul
@diomed
Jul 26 2017 17:54
Eric Weiss
@eweiss17
Jul 26 2017 18:02
helpjavascript is still active?
DaX
@daxdax89
Jul 26 2017 18:23
It's not that active
Kyle Holm
@thekholm80
Jul 26 2017 18:26
@diomed x
dhruvjadvani
@dhruvjadvani
Jul 26 2017 18:26
can you please check his code is this right or wrong
function isLess(a, b) {
// Fix this code
switch(true) {
case a<b: answer="true"; break;} switch(false){ case a>b:
answer="false";
break;}

function isLess(a, b) {
// Fix this code
switch(true) {
case a<b: answer="true"; break;} switch(false){ case a>b:
answer="false";
break;}

return answer;}
// Change these values to test
isLess(15, 10);

Joshua Arnett
@josha5
Jul 26 2017 18:29
Hey could anyone help me the first element of my array is a string and the rest are integers and I don't know why. I want the entire array to be integers
function descendingOrder(n){
var string = n.toString();
var splitStr = string.split("");
for(var i = 0; i < splitStr.length; i++) {
splitStr[i] = +splitStr[i];
splitStr.sort(function(a,b) {
return b-a;
});
}
return splitStr;
}
John Tendik
@JohnTendik
Jul 26 2017 18:52
@josha5 parseInt(val);
dont use string as a variable name
May Kittens Devour Your Soul
@diomed
Jul 26 2017 18:55
@thekholm80 yeah, that happened over my place today
Kyle Holm
@thekholm80
Jul 26 2017 18:56
you drank too much, or a cloud?
May Kittens Devour Your Soul
@diomed
Jul 26 2017 19:07
it rained. rained today, rained yesterday
Kyle Holm
@thekholm80
Jul 26 2017 19:08
sounds dreary
May Kittens Devour Your Soul
@diomed
Jul 26 2017 19:08
nah. it's nice that temperature dropped to enjoyable
Kyle Holm
@thekholm80
Jul 26 2017 19:10
oh, good deal then :)
Joshua Arnett
@josha5
Jul 26 2017 19:12
@JohnTendik When I use parseInt its only returning the first integer and not the entire integer because the first character of my array is still a string
Kelechi Chinaka
@ke1echi
Jul 26 2017 19:40
https://codepen.io/kelechichinaka/pen/MbGLew pls checkout my tribute page
parseInt() coerce a string to a number
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:06
where is @Manish-Giri
Yash Bhardwaj
@imyashbhardwaj
Jul 26 2017 20:06
can anyone help me that why my C button is not working??
Kyle Holm
@thekholm80
Jul 26 2017 20:06
@diomed hiding
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:07
grrrr
@imyashbhardwaj I'd say press harder, but it's probably JS problem
Yash Bhardwaj
@imyashbhardwaj
Jul 26 2017 20:08
@diomed :smile: do u kniw how to fix it??
know*
Kyle Holm
@thekholm80
Jul 26 2017 20:08
image.png
@imyashbhardwaj you might try clearing up this error and see if that helps
Yash Bhardwaj
@imyashbhardwaj
Jul 26 2017 20:10
@thekholm80 my console doesnt show any such error and all other buttons work instead of this one???
Kyle Holm
@thekholm80
Jul 26 2017 20:11
are you looking at codepen's console or the real one?
Yash Bhardwaj
@imyashbhardwaj
Jul 26 2017 20:11
and all other buttons have same design as this
codepen
Kyle Holm
@thekholm80
Jul 26 2017 20:11
because codepen's console is a liar
press ctrl shift j
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:11
codepen has no real console . it's a toy
Yash Bhardwaj
@imyashbhardwaj
Jul 26 2017 20:11
ok i will keep that in mind next time
@diomed @thekholm80 can u tell me what should i do now or exactly what is the problem??
Kyle Holm
@thekholm80
Jul 26 2017 20:14
no clue, sorry. debugging takes time and google
with practice, you'll get to debug even bigger bugs
Yash Bhardwaj
@imyashbhardwaj
Jul 26 2017 20:16
ok @thekholm80
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:19
@thekholm80 how's it going with electron?
Kyle Holm
@thekholm80
Jul 26 2017 20:20
@diomed I had a great app idea, thinking about shelving what i'm working on now to give it a go
and building it in electron, of course
John Tendik
@JohnTendik
Jul 26 2017 20:22
electron + sql = nightmare
just sayin
Kyle Holm
@thekholm80
Jul 26 2017 20:22
sql? what century is this?
John Tendik
@JohnTendik
Jul 26 2017 20:22
built an accounting app for my work with electron and sqlite
kek
not many options with electron when i built the app
Kyle Holm
@thekholm80
Jul 26 2017 20:23
sql has full node capabilities so i'd use mongodb if i needed a db
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:23
mysql
:heart:
Kyle Holm
@thekholm80
Jul 26 2017 20:23
postgres if i HAD to have a rdb
John Tendik
@JohnTendik
Jul 26 2017 20:23
mongo would have been great
Kyle Holm
@thekholm80
Jul 26 2017 20:23
I really like mongo
so user friendly
John Tendik
@JohnTendik
Jul 26 2017 20:23
hehehe at the time though, i went with what was readily avail
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:23
I dunno db
why mongo doesnt come in xampp
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:24
mongo is gud
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:24
wampp
or whatever amp I hav
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:24
sup world
Kyle Holm
@thekholm80
Jul 26 2017 20:24
wait, what am i thinking ... the answer is always neo4j
@NahuelOvejero :wave:
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:24
sup @NahuelOvejero :cat:
John Tendik
@JohnTendik
Jul 26 2017 20:24
@NahuelOvejero :wave:
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:24
where are u from ? @NahuelOvejero
Kyle Holm
@thekholm80
Jul 26 2017 20:24
he's from the future
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:25
My name is McFly
I'm from Argentina
Kyle Holm
@thekholm80
Jul 26 2017 20:25
I'd love to live in south america
John Tendik
@JohnTendik
Jul 26 2017 20:25
@thekholm80 are u building a pokemon GO tracker?
Kyle Holm
@thekholm80
Jul 26 2017 20:26
@JohnTendik haha no
John Tendik
@JohnTendik
Jul 26 2017 20:26
oh
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:26
@NahuelOvejero I have a task for you :smiling_imp:
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:26
Why is that, Kayle?
@diomed sure
John Tendik
@JohnTendik
Jul 26 2017 20:26
i did something something with pokemon GO when it was possible :D
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:26
damn pokemon go
Kyle Holm
@thekholm80
Jul 26 2017 20:26
@NahuelOvejero because i think it would be great
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:26
F....
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:27
In what aspect I mean
Kyle Holm
@thekholm80
Jul 26 2017 20:28
lower cost of living, nicer people
heaven
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:29
oh well, if you come here with dollars or almost any other currency, you are GOD
Kyle Holm
@thekholm80
Jul 26 2017 20:29
I don't want to be god, but if i could have a little bit of beach to sit on every day i'd be happy
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:31
with 1000 dollars month you can live a luxury life x)
Kyle Holm
@thekholm80
Jul 26 2017 20:31
that wouldn't even pay rent here
Ahmed Tarek
@ahmedtarek2134
Jul 26 2017 20:31

Hello BEBOLE

Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:32
rent here is about 120 dollars
and I mean a good house, with 2 floors
Kyle Holm
@thekholm80
Jul 26 2017 20:32
oh wow
Ahmed Tarek
@ahmedtarek2134
Jul 26 2017 20:33
in egypt with 1000 dollars you can rent a villa
Kyle Holm
@thekholm80
Jul 26 2017 20:33
a small 2 bedroom apt here is $1300 / mo
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:33
The problem here is the good salaries rounds arround 800 dollar
@ahmedtarek2134 :wave:
Kyle Holm
@thekholm80
Jul 26 2017 20:33
we need to start our own web design firm, then we can get the big money
we'll hire some croatian cats to do all the work
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:34
Yeah, most people work as freelancer because is the best... like both wins.
They pay you really cheap, but means a lot here
Ahmed Tarek
@ahmedtarek2134
Jul 26 2017 20:34
I can't work as a freelancer
they require a credit card
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:34
me neither, I'm not experienced enough x)
Ahmed Tarek
@ahmedtarek2134
Jul 26 2017 20:34
I don't have one and can't have one yet
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:34
oh, well
Burocracy stuff?
Kyle Holm
@thekholm80
Jul 26 2017 20:34
not old enough stuff lol
Ahmed Tarek
@ahmedtarek2134
Jul 26 2017 20:34
I am still 16 that's why
I need to be at least 18
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:35
oh lol
any familiar ?
Kyle Holm
@thekholm80
Jul 26 2017 20:35
just a wee tyke
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:35
@thekholm80 you should consider coming some day :P just learn some spanglish and you will be fine
at least for holidays
Kyle Holm
@thekholm80
Jul 26 2017 20:35
that would be awesome
i'd get fat on dulce de leche and barbacoa
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:36
Think that you will only need the tickets / travel, and everything will be almost free here
yeah but... it's fucking worth it, trust me
hahaha
Kyle Holm
@thekholm80
Jul 26 2017 20:36
hahaha
Ahmed Tarek
@ahmedtarek2134
Jul 26 2017 20:36
@NahuelOvejero what country are you from?
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:36
Argentina
Ahmed Tarek
@ahmedtarek2134
Jul 26 2017 20:37
ohhh nice!

MESSI

May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:38
hellooooooou @ahmedtarek2134 :cat:
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:38
Exactly haha
Ahmed Tarek
@ahmedtarek2134
Jul 26 2017 20:38
@diomed meow :shipit:
@NahuelOvejero one question
why is basically most of the team left footed
not just like this generation
if you look at it now
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:39
they train them that way to confuse the opponents
Ahmed Tarek
@ahmedtarek2134
Jul 26 2017 20:39
even maradona was left footed
Kyle Holm
@thekholm80
Jul 26 2017 20:40
@NahuelOvejero oh dang, flight + hotel in buenos aires for 9 days is actually not that expensive
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:41
Yeah, it depends more on the people, but lefties are a pretty much screw to rigth left players. Because when both players are looking each other , and figthing for the ball control, and they both use the rigth foot, they can move more freely and almost the same wide as the oponent rigth foot
but the left is in advantage in that position
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:42
@thekholm80 there was a case of a guy who went on a plane , in another country and stayed there for few hours then got to a place he was supposed to , all that cheaper than train with direct line to his destination :smile:
it's a mad world out there
Ahmed Tarek
@ahmedtarek2134
Jul 26 2017 20:42
@NahuelOvejero yeah true, I am left footed myself and I can see the advantages
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:42
@thekholm80 yeah, I'm living in a more "campish" or "rustic" town, far away, but BSAS is something that you need to see, I would recommend something with a beach, mar del plata is preeetty popular and pretty nice
Kyle Holm
@thekholm80
Jul 26 2017 20:42
@diomed did you see the guy who legally changed his name to match his plane ticket because it's cheaper than changing the ticket to match his name?
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:43
lol
changing name is 20$ these days
Ahmed Tarek
@ahmedtarek2134
Jul 26 2017 20:43
@thekholm80 oh btw I tried react-native with styled-components yesterday
Kyle Holm
@thekholm80
Jul 26 2017 20:43
Ahmed Tarek
@ahmedtarek2134
Jul 26 2017 20:43
it's amazing
Kyle Holm
@thekholm80
Jul 26 2017 20:44
cool
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:44
I've read it on reddit
lol
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:44
@thekholm80 just ask this guy, this guy knows:
.
Kyle Holm
@thekholm80
Jul 26 2017 20:44
lol
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:44
oh yeah
I read that he was banned from his home
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:45
only idiots greater than him are politicians who didn't do anything to stop that kind of nonsense
Kyle Holm
@thekholm80
Jul 26 2017 20:49
image.png
that's insane. I pay that per night in Denver
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:51
Lol
Told you
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:53
@NahuelOvejero what's the secret?
is your country maybe poor like mine? :smile:
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:54
Yup
dollar value is too high here
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:54
thought so
Kyle Holm
@thekholm80
Jul 26 2017 20:54
oh man i wouldn't have a prayer of getting around croatia
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:54
like, literally, if you are comming with euros or dollar , you can live like a king
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:54
@NahuelOvejero what's the ratio
Andrei Bratu
@andreibratu26
Jul 26 2017 20:54
Why html auto hyperlinked my h1 text without me actually using the <a> tag ?
Kyle Holm
@thekholm80
Jul 26 2017 20:54
1 US Dollar equals
17.51 Argentine Peso
May Kittens Devour Your Soul
@diomed
Jul 26 2017 20:55
@pwnsterrr coz u didn't close your a tag before, most likely
Nahuel Ovejero
@NahuelOvejero
Jul 26 2017 20:56
a pretty good/standar salaries are arround 800 dollars, and if you live alone, you can live pretty well with that money
Andrei Bratu
@andreibratu26
Jul 26 2017 20:56
@diomed you were right , thanks you
CamperBot
@camperbot
Jul 26 2017 20:56
pwnsterrr sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:star2: 5190 | @diomed |http://www.freecodecamp.com/diomed
Veronica Eulenberg
@HappyViki
Jul 26 2017 21:02

Why is this logging the same "#btn(num from 0-3)" instead of each individual?

  function runLights() {
    console.log(arr)
    for (var i in arr) {
      var lightUp = "#btn" + arr[i];
      $(lightUp).css("border", "dotted black");
      setTimeout(function() {
        console.log(lightUp)
        $(lightUp).css("border", "none");
      }, 1000);
    }
  }

https://codepen.io/HappyViki/pen/qXBqop

Screen Shot 2017-07-26 at 1.58.40 Moon.png
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:08
@HappyViki whereare u from?
Veronica Eulenberg
@HappyViki
Jul 26 2017 21:08
@diomed Huh? Why are you asking?
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:08
are u from Ireland maybe?
Veronica Eulenberg
@HappyViki
Jul 26 2017 21:09
I’m Californian.
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:09
cool. never mind then.
Veronica Eulenberg
@HappyViki
Jul 26 2017 21:09
Are you in Ireland?
Kyle Holm
@thekholm80
Jul 26 2017 21:09
that's kind of like Ireland, isn't it?
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:10
that's like opposite of Ireland
Veronica Eulenberg
@HappyViki
Jul 26 2017 21:10
Are you trying to steal my identity?
Kyle Holm
@thekholm80
Jul 26 2017 21:10
does that mean i have to call @diomed "Viki" now?
Veronica Eulenberg
@HappyViki
Jul 26 2017 21:11
I need help with timing. The timer thing is not working the way I want it to. It spits the same thing out over and over!
Yup
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:11
I'd ask for your social security number if I wanted to do that. But that's a cute thought tho :smile:
Veronica Eulenberg
@HappyViki
Jul 26 2017 21:11
@diomed Are you in Ireland?
croita
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:12
what is croita? lol
Veronica Eulenberg
@HappyViki
Jul 26 2017 21:12
I have short term memory, ok! I can’t spell too

Why isn’t this workinggggggg

  function runLights() {
    console.log(arr)
    for (var i in arr) {
      var lightUp = "#btn" + arr[i];
      $(lightUp).css("border", "dotted black");
      setTimeout(function() {
        console.log(lightUp)
        $(lightUp).css("border", "none");
      }, 1000);
    }
  }

I wanna knoooooowwwww

Kyle Holm
@thekholm80
Jul 26 2017 21:14
your loop runs fast
so you have 1 timer for every element in the array
Veronica Eulenberg
@HappyViki
Jul 26 2017 21:16
Why can’t the loop wait until the timer is finished?
Kyle Holm
@thekholm80
Jul 26 2017 21:16
because you didn't tell it to
async is super awesome, but takes some getting used to
your timer event happens asynchronously
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:17
@thekholm80 do you know that @Margaret2 has a new nickname?
Kyle Holm
@thekholm80
Jul 26 2017 21:17
does she?
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:17
yeah
Kyle Holm
@thekholm80
Jul 26 2017 21:17
no more turquoise stingray?
Veronica Eulenberg
@HappyViki
Jul 26 2017 21:17
@thekholm80 oh. so I should do this?
(function myLoop (i) {          
   setTimeout(function () {   
      alert('hello');          //  your code here                
      if (--i) myLoop(i);      //  decrement i and call myLoop again if i > 0
   }, 3000)
})(10);                        //  pass the number of iterations as an argument
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:18
au contraire!
it's because of it
that she is now called Sea pancake
Kyle Holm
@thekholm80
Jul 26 2017 21:19
@HappyViki that's one way to do it
@diomed that sounds oddly appropriate
Eric Miller
@ericmiller777
Jul 26 2017 21:23
hey guys
So I know I could just make just a blank page and id be done, but why cant i get the box to stay in the screen
Veronica Eulenberg
@HappyViki
Jul 26 2017 21:26
@thekholm80 hey look! it sorta works! https://codepen.io/HappyViki/pen/qXBqop
Eric Miller
@ericmiller777
Jul 26 2017 21:26
@HappyViki congrats on your certificate in advance :)
Kyle Holm
@thekholm80
Jul 26 2017 21:27
@HappyViki very cool
Veronica Eulenberg
@HappyViki
Jul 26 2017 21:27
@ericmiller777 I’m not done yet. I have to finish tic tac toe. But thanks :) This is exciting! I shall reward myself with some boba tea :)))
CamperBot
@camperbot
Jul 26 2017 21:27
happyviki sends brownie points to @ericmiller777 :sparkles: :thumbsup: :sparkles:
:cookie: 257 | @ericmiller777 |http://www.freecodecamp.com/ericmiller777
Kyle Holm
@thekholm80
Jul 26 2017 21:28
eww, floaties
drinks shouldn't have to be chewed
:P
Veronica Eulenberg
@HappyViki
Jul 26 2017 21:30
I love black starchy balls!
Kyle Holm
@thekholm80
Jul 26 2017 21:30
lol
Veronica Eulenberg
@HappyViki
Jul 26 2017 21:30
My favorite is a papaya smoothie with em
rose is also soooo good
I like rose ice cream more though….
Kyle Holm
@thekholm80
Jul 26 2017 21:31
every time i see boba tea i think of Crazy Ex Girlfriend
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:32
oh, u watched that?
Mike Batista
@mbmontana
Jul 26 2017 21:33
I have a bunch of PDFs that I'd like to make accessible with one button. They're all in Dropbox right now. Any thoughts on how I can do that?
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:33
link to dropbox folder
the public one, where all that pdf's should be
Andrei Bratu
@andreibratu26
Jul 26 2017 21:35
Any idea why my hr isnt showing up ?
When i load the page i can see it there for ~2 sec but then it dissapears
Eric Miller
@ericmiller777
Jul 26 2017 21:37
@thekholm80 i also hate boba tea or anything boba texture
Kyle Holm
@thekholm80
Jul 26 2017 21:38
@diomed it's a funny show
MoDLiFe
@moddedlife
Jul 26 2017 21:38
@mbmontana <a href="#"><button>Link Text</button></a>
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:38
@pwnsterrr for better understanding of why that happens see this video
@thekholm80 I am aware of that
I kinda stopped watching it. dunno why
Kyle Holm
@thekholm80
Jul 26 2017 21:39
you don't like funny things
Andrei Bratu
@andreibratu26
Jul 26 2017 21:39
Watched it . Instructions unclear. Accidentaly deleted my whole html file
MoDLiFe
@moddedlife
Jul 26 2017 21:40
@mbmontana your "#" should be your link like this, <a href="https://www.google.com/"><button>Link Text</button></a>
Mike Batista
@mbmontana
Jul 26 2017 21:40
@moddedlife I know how to make buttons into links but what I'm trying to figure out is how to make it work for a collection of PDFs. Looking into the Dropbox method now.
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:40
@mbmontana I told u to link it to one folder
Andrei Bratu
@andreibratu26
Jul 26 2017 21:41
So for real , do you guys know how to make my <hr> show ?
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:42
well u didn't even show us any link to problem so no1 cares yet
Mike Batista
@mbmontana
Jul 26 2017 21:42
@diomed Will try
Andrei Bratu
@andreibratu26
Jul 26 2017 21:42
Sorry i'm newbie
here is the link
eeflores
@eeflores
Jul 26 2017 21:46
what's the hr?
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:46

that
eeflores
@eeflores
Jul 26 2017 21:47
oh
Eric Miller
@ericmiller777
Jul 26 2017 21:47
So in the workplace, how much git is needed? just basic clone/commit/push
?
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:48
I doubt that
eeflores
@eeflores
Jul 26 2017 21:48
@pwnsterrr I see it before it's wiped out by the image
Andrei Bratu
@andreibratu26
Jul 26 2017 21:48
@eeflores yeah me too
but how do i solve this
eeflores
@eeflores
Jul 26 2017 21:49
maybe make that image a background one? I dunno how
Andrei Bratu
@andreibratu26
Jul 26 2017 21:49
z-index perhaps?
let me try
not working
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:50
@thekholm80 made u a t-shirt
Screenshot_16.png
Kyle Holm
@thekholm80
Jul 26 2017 21:50
lol love it
May Kittens Devour Your Soul
@diomed
Jul 26 2017 21:51
:panda_face:
Andrei Bratu
@andreibratu26
Jul 26 2017 21:54
@eeflores i did it , i had to use position: absolute :)
eeflores
@eeflores
Jul 26 2017 21:54
@pwnsterrr good stuff, I was trying different things and couldn't get it to change
Eric Miller
@ericmiller777
Jul 26 2017 22:03
<button  id = "tweet" class = "btn btn-primary"><i class="fa fa-twitter" aria-hidden="true"></i>
Tweet</button>
whys that not bringing up the twitter icon?
<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
in head
May Kittens Devour Your Soul
@diomed
Jul 26 2017 22:03
did u include font-awesome?
that is wrong link
Eric Miller
@ericmiller777
Jul 26 2017 22:04
yep
just dsaw that
lol
@diomed thanks
CamperBot
@camperbot
Jul 26 2017 22:04
ericmiller777 sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:star2: 5191 | @diomed |http://www.freecodecamp.com/diomed
May Kittens Devour Your Soul
@diomed
Jul 26 2017 22:04
u can go to setttings - css and write font-awesome
then select it
Veronica Eulenberg
@HappyViki
Jul 26 2017 22:20
BOOM! DONE! I can drink my starch ball tea now! https://codepen.io/HappyViki/pen/qXBqop
Kyle Holm
@thekholm80
Jul 26 2017 22:25
@HappyViki well done, congrats
Veronica Eulenberg
@HappyViki
Jul 26 2017 22:26
@thekholm80 I actually kinda like this game, so I’ll add my own sounds and different graphics later.
Maybe a harder version with more buttons.
May Kittens Devour Your Soul
@diomed
Jul 26 2017 22:27
no1 will play it
Kyle Holm
@thekholm80
Jul 26 2017 22:28
@HappyViki make it look like a simon game! all round and what-not
Veronica Eulenberg
@HappyViki
Jul 26 2017 22:29
@thekholm80 no! that’s too minsteam!
Kyle Holm
@thekholm80
Jul 26 2017 22:29
you're a true visionary
revolutionizing the whole concept of Simon
Veronica Eulenberg
@HappyViki
Jul 26 2017 22:30
YUP
ok I’m actually leaving now, to redeam my reward tootles! :D
Kyle Holm
@thekholm80
Jul 26 2017 22:30
:grin:
May Kittens Devour Your Soul
@diomed
Jul 26 2017 22:36
where can I exchange cookies for goods and services?
Kyle Holm
@thekholm80
Jul 26 2017 22:37
seseme street
May Kittens Devour Your Soul
@diomed
Jul 26 2017 22:40
hmmm.. mby cookie monster can make me a good deal
Ross Scarborough
@SourceHorse
Jul 26 2017 22:47
Good evening, everyone. I'm still working on the Random Quote Generator, but I can'y get ajax to work with this API: https://quotesondesign.com/api-v4-0/
Here is my current code
it's supposed to load a quote when you load the page, which it does, but when you click the button to add the new quote nothing happens?
korzo
@korzo
Jul 26 2017 22:54
@SourceHorse bootstrap js have to be loaded after jquery
@SourceHorse You don't pass event in callback function
$("#quoteMaker").on("click", function() {
should be
$("#quoteMaker").on("click", function(e) {
Ross Scarborough
@SourceHorse
Jul 26 2017 22:56
aha, thanks @korzo I'll give that a try
CamperBot
@camperbot
Jul 26 2017 22:56
sourcehorse sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 305 | @korzo |http://www.freecodecamp.com/korzo
korzo
@korzo
Jul 26 2017 22:57
@SourceHorse In ajax call, you have wrong url (missing domain and protocol)
Ross Scarborough
@SourceHorse
Jul 26 2017 22:57
so i need to add https://quotesondesign.com?
Oh my god, it's working!
Thanks so much @korzo
CamperBot
@camperbot
Jul 26 2017 22:58
sourcehorse sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:warning: sourcehorse already gave korzo points
Ross Scarborough
@SourceHorse
Jul 26 2017 22:58
It's alive!
SwampyPk
@SwampyPk
Jul 26 2017 23:04
heya boys
anyone alive in here?
Coy Sanders
@coymeetsworld
Jul 26 2017 23:04
define alive
SwampyPk
@SwampyPk
Jul 26 2017 23:04
alive is unspecified
gotem
yoyo so im having some trouble with a little cheeky thing
Trying to get this navbar to stick to the top of the page when scrolling
here is the catch
I'm using a fluid container, the question is, do i need to modify the properties of the containing container or the navbar itsself?
May Kittens Devour Your Soul
@diomed
Jul 26 2017 23:06
navbar
Coy Sanders
@coymeetsworld
Jul 26 2017 23:06
just navbar
SwampyPk
@SwampyPk
Jul 26 2017 23:06
does it not matter will the container be dragged along for the ride or?
Ross Scarborough
@SourceHorse
Jul 26 2017 23:07
position: fixed
i think
Coy Sanders
@coymeetsworld
Jul 26 2017 23:07
yup
SwampyPk
@SwampyPk
Jul 26 2017 23:08
yo, so i just found this online is this for real?
uhh how do i copy code here
<div data-spy="affix" data-offset-top="121">
... your navbar ...
</div>
rip that didnt work ohwell
korzo
@korzo
Jul 26 2017 23:09
@SwampyPk wrap code with 3 backticks
there's a simple navbar i made in css
with a responsive button using some js
SwampyPk
@SwampyPk
Jul 26 2017 23:09
My navbar isnt at the top when it starts off, will that be a problem? There is some margin.
I need it to kind of 'catch' it if you know what i mean
Ross Scarborough
@SourceHorse
Jul 26 2017 23:10
maybe a @media query
so when you scroll a certain amount it snaps to the top
SwampyPk
@SwampyPk
Jul 26 2017 23:11
uhh @SourceHorse btw im a total noob, so I'm not sure how to go about that
It would probably help if I showed you what im working with
one moment
https://codepen.io/SwampyPk/pen/VzLrPd dw about the pictures, don't mean much just placeholder
Coy Sanders
@coymeetsworld
Jul 26 2017 23:12
you should learn how to code HTML and CSS before you start building something like that @SwampyPk
or else you're just going to be hacking something together w/o understanding how to do anything
SwampyPk
@SwampyPk
Jul 26 2017 23:13
@coymeetsworld I think I have a basic understanding, this isn't my first time programming (not to come off as rude)
As for hacking, right now, this is only me trying to get to grips with trying to develop something like this on my own
It isn't for a site.
Coy Sanders
@coymeetsworld
Jul 26 2017 23:14
you just said you're a total noob
not trying to come off rude either, just my opinion
SwampyPk
@SwampyPk
Jul 26 2017 23:14
I might have understated myself, I didn't want people to get the wrong idea
Coy Sanders
@coymeetsworld
Jul 26 2017 23:14
ok
SwampyPk
@SwampyPk
Jul 26 2017 23:15
So you're saying to modify the properties of the navbar rather than the container right? I'll keep trying that approach.
Coy Sanders
@coymeetsworld
Jul 26 2017 23:15
margin shouldn't matter if you fix the position
i think so, but try both and experiment
i don't know bootstrap particularly well, im not sure if navbar is supposed to be in or out of the container
SwampyPk
@SwampyPk
Jul 26 2017 23:16
Properties of the container would be much harder to access, unless im wrong. I'm using a boostrap CDN rather than dling the files
Coy Sanders
@coymeetsworld
Jul 26 2017 23:16
should be the same
SwampyPk
@SwampyPk
Jul 26 2017 23:16
I'm pretty sure inside the container, otherwise it would not be constricted by its bounds.
Coy Sanders
@coymeetsworld
Jul 26 2017 23:16
yeah probably
or i mean no its probably outside
but idk check documentation i guess for that
it may be inconsequential
Dre'Sean Williams
@dresean
Jul 26 2017 23:17
@gvoncheap
Hey guys, I'm trying to complete the tribute page challenge. I'm going for a Myspace band page theme and I want to make the "friends list" image grid have captions on the bottom and spaces around them. can anyone help me?
https://codepen.io/gvoncheap/pen/OjVObG
SwampyPk
@SwampyPk
Jul 26 2017 23:18
Took a look, It doesn't say that it matters.
Ross Scarborough
@SourceHorse
Jul 26 2017 23:25
anyone know how to turn html into a string?
FCC has a lesson on how to do the opposite, but not this way around
Coy Sanders
@coymeetsworld
Jul 26 2017 23:26
not sure I understand, html to string?
what FCC lesson are you referring to?
Ross Scarborough
@SourceHorse
Jul 26 2017 23:26
need to post a random quote on twitter
thinking of ways to get a string that will constantly be changing
Coy Sanders
@coymeetsworld
Jul 26 2017 23:29
if you're using jQuery there's text() and html() you should look at
Ross Scarborough
@SourceHorse
Jul 26 2017 23:29
I am
my current code
remisky
@remisky
Jul 26 2017 23:53
who knows how to remove this chat?
It totally kills my pc loading time in the beginning.
I like free Camp Code. But I know own a internet marketing company. I use Fcc When i can.
Sigh, well i guess Ill search google lo
aRtoo
@artoodeeto
Jul 26 2017 23:58
hey guys. question. i have a HTML on my JS and it annoys me because i need to use them on one line and if i need to trace something it confuses me so need to run them on HTML or console just to see the output. any framework template that you can recommend that is easy for beginners i know mustache and handlebars but i think theyre for experienced already.
  //global decleration
  var html = "";
  //function to display the users using html
  function displayHtml(json){
    html += "<div class='card'><img class='card-img-top' src=" + json.logo + "> <div class='card-block'>" + "<h4 class='card-title'>" + json.display_name + "</h4><p class='card-text'>" + json.status + "</p></div><div class='card-footer'>" + "<small class='text-muted'>" + 'Last updated 3 mins ago' + "</small></div></div>";
    $('.card-deck').html(html);
    }
  });