These are chat archives for FreeCodeCamp/Help

29th
Sep 2015
Daniel Drasdo
@danieldrasdo
Sep 29 2015 00:03
"Note that you can only add dist tags to the specific version numbers published in steps 8 and 10. If you receive a 403 or 404 error, run how-to-npm and try again."
Graham Whitley
@lotusgraham
Sep 29 2015 00:06
@frogmorton from what i can tell you at least need to complete all the bonfires before moving into the halfway point where you do the paired programming/non profit projects
I am in a similar situation, and would like to finish in 6 months. (been here for a few weeks) perhaps we could keep in touch through this and track each other's progress since we
we're both basically starting out
bonfire: check for palindrones
CamperBot
@camperbot
Sep 29 2015 00:09
Sorry, can't find a bonfire called check for palindrones. [ Check the map? ]
Reggie
@Reggie01
Sep 29 2015 00:15
@IsaacIzy here are two options.
  1. console.log your code in repl.it and then look at the results. You can not step through the execution b/c it's not a debugger.
  2. Use chrome dev tools
Graham Whitley
@lotusgraham
Sep 29 2015 00:20
Screen Shot 2015-09-28 at 8.19.48 PM.png
Having trouble with a newbie bonfire :-)
Moisés Man
@moigithub
Sep 29 2015 00:21
@lotusgraham u need to "clean" ur string first
Reggie
@Reggie01
Sep 29 2015 00:22
@IsaacIzy Create snippets and step through the snippet code.
More documentation on snippets. Read starting at Custom JavaScript Snippets sub-heading.
You can create watch expressions to look at while stepping through your code. Remember non-native js functions will cause you to step into their code base. i.e jquery functions, console.log, etc
DoRm
@DoRm
Sep 29 2015 00:22
You also dont need that for loop its just a simple true or false statement
Graham Whitley
@lotusgraham
Sep 29 2015 00:23
i'm having trouble with the bonfires in general, it seems like i'm sposed to know a lot more than I do.. this is just a solution i found online. I don't know enough to know how it works
done all the waypoints...
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:27
I've just been using console.log to debug. I'll try out snippets later tonight
DoRm
@DoRm
Sep 29 2015 00:28
@lotusgraham well copy and pasting random codes off the internet without knowing how they work won't help you either
Miguel Ramos
@MiguelRam
Sep 29 2015 00:29
Hi! can someone please explain me why this is not working please http://codepen.io/MiguelRam/pen/vNXjWP?editors=001
Graham Whitley
@lotusgraham
Sep 29 2015 00:29
lol, sory just frustrated... was moving pretty steadily through the bonfires, but i don't know how to do the easiest bonfires.... not sure how to learn how to do them
DoRm
@DoRm
Sep 29 2015 00:30
The javascript lessons before gave you pretty much all the answers to the first 10 bonfires it's just putting the information together and using it
Romeo Chua
@Rchua72
Sep 29 2015 00:32
hi all..I've got a problem completing this waypoint.."Waypoint: Target HTML Elements with Selectors Using jQuery"..I clicked on the "run tests" button and nothing happens..no error comes up
DoRm
@DoRm
Sep 29 2015 00:32
The only thing they kind of left you in the dark about is regular expressions you'll need to go study up on them a bit more
Romeo Chua
@Rchua72
Sep 29 2015 00:33
and the html is not being rendered on the phone
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:35
@lotusgraham Use a notebook and write some psuedocode before you start programming. It helps a lot to have a basic idea of what you want to do before you start coding. You have to think about how you can tackle the problem. Try solving a couple different inputs by hand to get an understanding of how you might design your algorithm
Graham Whitley
@lotusgraham
Sep 29 2015 00:36
any tutorials for working my way through psuedocode?
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:37
psuedocode is just for your use. Its to help you design an algorithm before actually worrying about syntax. It could simply be a list of steps written in plain english.
Graham Whitley
@lotusgraham
Sep 29 2015 00:38
oh ok
DoRm
@DoRm
Sep 29 2015 00:38
it's plain english then turn the english into code
Graham Whitley
@lotusgraham
Sep 29 2015 00:38
like : start a function{
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:39
sort of
If use the reverse a string bonfire as an example:
Graham Whitley
@lotusgraham
Sep 29 2015 00:39
make it turn the word around
make it make all the letters lowercase
make it output true if it does that
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:39
exactly
Graham Whitley
@lotusgraham
Sep 29 2015 00:39
okay, i can see that being helpful
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:40
also add in stuff like how you might loop through your data
Graham Whitley
@lotusgraham
Sep 29 2015 00:40
yeah we didn't cover loops in waypoint
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:40
what types of loop you will use, what conditions break the loop
are you sure?
Graham Whitley
@lotusgraham
Sep 29 2015 00:40
and now it seems like i'm sposed to know how to use them.
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:40
maybe you should go back and look at the waypoints
Graham Whitley
@lotusgraham
Sep 29 2015 00:41
i did all of them... i don't remember anyhting about loops
i could be wrong though
there are a bunch of waypoints that go over loops and conditionals
these are the bread and butter of algorithm design
Graham Whitley
@lotusgraham
Sep 29 2015 00:42
ooooo yaaaaa
Joel M. Swensen
@JoelMSwensen
Sep 29 2015 00:42
Hi all! Question: How do you get rid of the default padding around a page without using bootstrap?
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:42
haha hope that helps
Graham Whitley
@lotusgraham
Sep 29 2015 00:42
need that
yeah it looks like i completed those two (i only see two that talk about loops) one for for loops and one for while loops
i didn't really understand how to apply it at the time
so i guess it didn't stick
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:44
do you understand how arrays work?
and how to access them?
Graham Whitley
@lotusgraham
Sep 29 2015 00:44
no sadly, eventhough i completed the waypoints
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:45
you should go through the waypoints again and play around with the code a bit more
you HAVE to understand loops, conditionals, arrays, etc to complete the bonfires
Graham Whitley
@lotusgraham
Sep 29 2015 00:45
i'm going to do that.... here we go round two
yeah i'm seeing that. i get the conditionals a little bit. loops and arrays... nope
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:46
try and play with the code and see what kind of different results you get instead of just completing the exercises and moving on
Graham Whitley
@lotusgraham
Sep 29 2015 00:47
okay good idea, yeah i was literally just completing the code and moving forward, so i need to screw around with those things and try to understand how they work
Miguel Ramos
@MiguelRam
Sep 29 2015 00:47
Hi! can someone please explain me why this is not working. I am trying to use angular to do the last one of the basic from end development question. http://codepen.io/MiguelRam/pen/vNXjWP?editors=001
Graham Whitley
@lotusgraham
Sep 29 2015 00:48
thanks @IsaacIzy
CamperBot
@camperbot
Sep 29 2015 00:48
lotusgraham sends brownie points to @isaacizy :sparkles: :thumbsup: :sparkles:
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:48
Yeah the waypoints are hard to absorb if you don't take the time to fully understand what kind of different results you can get
CamperBot
@camperbot
Sep 29 2015 00:48
:star: 185 | @isaacizy | http://www.freecodecamp.com/isaacizy
Graham Whitley
@lotusgraham
Sep 29 2015 00:48
agreeeed
i even started doing some of codeacademy's javascript excercises to help repeat the same info with different excercises...
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:49
I find codeacademy to be much more beginner friendly
Graham Whitley
@lotusgraham
Sep 29 2015 00:49
hmmmmm
yeah i love the potiential to work with bonfires here, but i'm just not there yet
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:49
It will help you get a handle on the basics, then you can move on here to the bonfires
CamperBot
@camperbot
Sep 29 2015 00:49
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
Graham Whitley
@lotusgraham
Sep 29 2015 00:50
thx
CamperBot
@camperbot
Sep 29 2015 00:50
if you want to thank someone, put an @ before their name!
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:50
give it a couple hours and I bet you will be ready to solve most of the beginner bonfires
Graham Whitley
@lotusgraham
Sep 29 2015 00:50
:)
Isaac Mauro
@IsaacIzy
Sep 29 2015 00:53
Also one more thing, when the bonfires have documentation links at the bottom, make sure you read them. Using those functions makes the bonfires much easier, but don't worry about that until you have an understanding of the basics
Hans van Riet
@hansinla
Sep 29 2015 00:53
@MiguelRam You need to wrap all your code (or most of it in your controller. You set products to your final array which hasn’t been declared or populated yet.
CamperBot
@camperbot
Sep 29 2015 00:53
:trollface: troll problems? notify admins here
Graham Whitley
@lotusgraham
Sep 29 2015 00:53
yeah those links were haard to understand
because i didn't fully understand the waypoints, just completed them
Michael Green
@MichaelGreenNZ
Sep 29 2015 00:55
aahhh codecademy and your poorly made courses! :D only wrote half the code that is needed.. passed the section.. Huh???
Graham Whitley
@lotusgraham
Sep 29 2015 00:55
lol, there needs to be a disclaimer on the waypoints "just because you got it right doesnt mean anything, you still need to understand it"
Michael Green
@MichaelGreenNZ
Sep 29 2015 00:56
@lotusgraham yup with you on that, I got up to the first set of bonfires, attempted the first one, and noped out of there to learn some more Javascript.
Miguel Ramos
@MiguelRam
Sep 29 2015 00:56
@hansinla ok... I am not sure what you mean in the last part. however I'll correct the first part right away
Michael Green
@MichaelGreenNZ
Sep 29 2015 00:58

"Meet Bonfire". Oh this doesn't look so bad.

"Bonfire: Reverse a String". Oh I know this, don't I?? nope I do not!

Graham Whitley
@lotusgraham
Sep 29 2015 00:59
that's exactly what happend Michael
Craig Kofoed
@hIGH-aND-mIGHTY
Sep 29 2015 00:59
the read search ask suggestion really starts coming into play at that point.
Graham Whitley
@lotusgraham
Sep 29 2015 00:59
happened to you too, lol?
Michael Green
@MichaelGreenNZ
Sep 29 2015 00:59
me? Yup.
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:00
@lotusgraham and @MichaelGreenNZ Don't be discouraged by the beginner bonfires, they are actually quite difficult if you don't fully understand how loops, conditionals, arrays etc work. I suggest you guys work towards fully understanding how to use arrays as a first step. You can complete the reverse a string bonfire with no loops or conditionals
Graham Whitley
@lotusgraham
Sep 29 2015 01:00
we can complete them with no loops or conditionals?
Michael Green
@MichaelGreenNZ
Sep 29 2015 01:00
I've found the codecademy courses good to supplement what i've learned on FCC. except for when your solution passes.. but doesn't.
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:01
You can complete the reverse a string bonfire
with no loops
Michael Green
@MichaelGreenNZ
Sep 29 2015 01:01
var sleepCheck = function(numHours){
  if (numHours >= 8){
      return "You're getting plenty of sleep! Maybe even too much!";
  }
  else{
      return "Get some more shut eye!";
  }
};
This passed on codecademy. It shouldn't it's missing three lines of code and the function is written wrong.
function sleepCheck(numHours){
  if (numHours >= 8){
      return "You're getting plenty of sleep! Maybe even too much!";
  }
  else{
      return "Get some more shut eye!";
  }
};

sleepCheck(10);
sleepCheck(5);
sleepCheck(8);
It was mean't to be this.
Graham Whitley
@lotusgraham
Sep 29 2015 01:01
hmmm, sounds like you and I are in the same spot. i just ended up getting a bunch of hints on that one. still don't understand it
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:02
@MichaelGreenNZ you seem to understand how if-else statements work, your error is a simple syntax error
Michael Green
@MichaelGreenNZ
Sep 29 2015 01:02
if-else.. thanks Garrys mod!! :D
CamperBot
@camperbot
Sep 29 2015 01:02
if you want to thank someone, put an @ before their name!
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:03
don't be discouraged by syntax errors like that, you will get a handle on it over time
Michael Green
@MichaelGreenNZ
Sep 29 2015 01:03
Cheers @IsaacIzy
Rory Smith
@alanbuchanan
Sep 29 2015 01:06
i find LearnYouNode really challenging. most of the time i have absolutely no idea what they're asking me to do.
Craig Morrison
@frogmorton
Sep 29 2015 01:11
@WillieJohnson hey there, we could certainly do that
@lotusgraham yes, we should help each other along
Graham Whitley
@lotusgraham
Sep 29 2015 01:13
nice what part are you doing? have you made it to the bonfires yet?
Craig Morrison
@frogmorton
Sep 29 2015 01:15
I've gotten up to the easy front end projects... (Easiest ziplines?) After these come some more intermediate / advanced bonfires, though
Graham Whitley
@lotusgraham
Sep 29 2015 01:18
ahh, i see i'm just getting into the easy bonfires (which are very very hard for me)
having trouble with arrays and for loops at the moment, the waypoints didn't cover them very well. how did you get past that?
Craig Morrison
@frogmorton
Sep 29 2015 01:19
They were hard for me, too.
Well, I feel confident about for loops now, because I used them so darned much. Pairing is good, if you get with someone who knows the best way to guide you, and doesn't just hand you the answer
Graham Whitley
@lotusgraham
Sep 29 2015 01:21
how long have you been using FCC? did you use other sites to supplement your learning on some of those areas?
Rex Schrader
@SaintPeter
Sep 29 2015 01:21
@lotusgraham What aspects of arrays would you like to see get more coverage. I'm thinking about adding a couple more Waypoints on For loops, maybe more on Arrays too?
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:22
just keep chugging with the learning how arrays work. You will get a handle on it. Understand what array indices (index) are, understand how to access/change different array indices, understand why array.length is useful, then try and understand how the various other array functions can be useful
@SaintPeter I think the waypoints need to better explain array indexing and what it means
Graham Whitley
@lotusgraham
Sep 29 2015 01:23
well it seems like that would be a great idea @SaintPeter maybe break those little sections into some more complex section that gets harder to solve.. i felt like i wasn't being encouraged to delve into what arrays were, it was just fill in the blank
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:23
^
I can totally see how these guys got lost with no prior programming experience
Graham Whitley
@lotusgraham
Sep 29 2015 01:23
seems to be crucial understanding to even read the articles on first bonfire challenges
yeah, i'm super noob
Rex Schrader
@SaintPeter
Sep 29 2015 01:24
@lotusgraham @IsaacIzy Humm. I'll have to think about how we could make those a bit more challenging or add more content to cover them better.
Craig Morrison
@frogmorton
Sep 29 2015 01:24
Wrapping you head around those building blocks is key to more quickly solving future bonfires. I've done some study on my own, mostly with free sites like code academy, free stuff on code school and random YouTube tutorials...
Rex Schrader
@SaintPeter
Sep 29 2015 01:24
@lotusgraham @IsaacIzy I'll admit, it's been like 20 years since I've wondered how an array works, so I am not entirely sure what common misconceptions or foundational knowledge might look like.
Graham Whitley
@lotusgraham
Sep 29 2015 01:24
sure, i'm off using codeacademy at the moment just to get some more experience to be able to understand how to solve the bonfires
@MichaelGreenNZ seems to be doing the same
thanks @SaintPeter
CamperBot
@camperbot
Sep 29 2015 01:25
lotusgraham sends brownie points to @saintpeter :sparkles: :thumbsup: :sparkles:
:star: 758 | @saintpeter | http://www.freecodecamp.com/saintpeter
soham chakraborty
@syosoh06
Sep 29 2015 01:25
hi guys need some help on the stylize camper stories project - my angular is ok but my css / bootstrap is terrible
Graham Whitley
@lotusgraham
Sep 29 2015 01:25
well you can ask me about common misconceptions about fundemental knowledge ANYTIME i seem to have a plethora at the moment!
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:26
indices starting at 0 is a big thing that confused me when I first started 2 years ago, as well as realizing that array.length != the last index
Rex Schrader
@SaintPeter
Sep 29 2015 01:26
@lotusgraham @IsaacIzy How about something like this:
var arr = ['A', 'B', 'C', 'D', 'E'];
var x = ?;  
return arr[x];  //Set x above so that this function will return the element 'C'
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:27
yeah that seems like it might be helpful
I honestly think the waypoints just need a bit more text explaining the concepts
Graham Whitley
@lotusgraham
Sep 29 2015 01:27
yes to both
Rex Schrader
@SaintPeter
Sep 29 2015 01:28
I agree. That tiny little space does not give much room to really go into the details.
Craig Morrison
@frogmorton
Sep 29 2015 01:28
That's a nice basic index example, @SaintPeter
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:28
the exercises were pretty good if you played around with the code beyond just getting the right answer
Graham Whitley
@lotusgraham
Sep 29 2015 01:28
or just clearly state that it Doesn't have that and that i might need to check out some other "recommended resources" (such as codeacademy) before i get into the bonfires
point newbies in a certain direction? although i know it's not ideal to point them into another curriculum for too long... anyways i plan to come back because i don't see other courses that are offering things like the bonfires
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:31
@SaintPeter the bonfires are excellent, some of the best coding exercises I've done, making this website fantastic for someone like me who is an intermediate programmer. codeacademy is definitely way better for beginners, but doesn't have as good of exercises beyond the basics
SM
@nogo10
Sep 29 2015 01:31
Zipline #3: HTML UTF weather symbols really suck because they only work on newer browsers.. any better solutions?
Rex Schrader
@SaintPeter
Sep 29 2015 01:31
The older cirriculum used to actually pass you off to code acadamy - the new material pulls the JS basics into FCC Waypoints.
We almost need "campfires" or "campsites" or something that do some lesser degree of testing.
Graham Whitley
@lotusgraham
Sep 29 2015 01:32
as little as i know i'm gonna fully agree with @IsaacIzy because that is what impression i'm getting after doing my homework on how to start learning to code
Amber Camus
@aacam
Sep 29 2015 01:32
@lotusgraham I use code academy and http://eloquentjavascript.net//index.html to try to ease the transition between waypoints and bonfires
Rex Schrader
@SaintPeter
Sep 29 2015 01:32
Something less than a bonfore, but more than a waypoint
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:32
I think links to supplemental reading would help a lot
Hans van Riet
@hansinla
Sep 29 2015 01:32
@MiguelRam You also need a client ID to call twitch. In looked in console and your $http.get calls are failing. Also if you use $http in angular, you need to declare that in your function:
app.controller('ProfilersController',['$scope', '$http', function($scope, $http) {
CamperBot
@camperbot
Sep 29 2015 01:32
:trollface: troll problems? notify admins here
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:32
not necessarily harder waypoints
Rex Schrader
@SaintPeter
Sep 29 2015 01:33
Although, from what I've read, at SOME point you're going to go off that "Cliff of Confusion" - I think at best we're going to delay that point because the hardest part of programming to teach is how to approach problems on your own.
Graham Whitley
@lotusgraham
Sep 29 2015 01:33
nice @aacam how long have you been programming?
@SaintPeter Yes, something less than a bonfire but more than a waypoint
Rex Schrader
@SaintPeter
Sep 29 2015 01:33
I'm not sure that there CAN be a guide on how to do that.
I mean things like this
obviously the only way to actually learn programming is to program
Amber Camus
@aacam
Sep 29 2015 01:34
@lotusgraham not too long at all. about 2 weeks
Graham Whitley
@lotusgraham
Sep 29 2015 01:34
and that's fine too, maybe just something explaing that, and why that is
chantilly lovelace
@chantillylace
Sep 29 2015 01:35
@SaintPeter I'm agreeing with you on needing an intermediate step between waypoints and bonfires. I can look up stuff all day and not quite get all the pieces together. I chase down the answers and when I look them over, I understand what's going on, but to get there on my own is a struggle.
SM
@nogo10
Sep 29 2015 01:35
bonfires are puzzles ..puzzles for you to solve..like little rubiks cubes
Craig Morrison
@frogmorton
Sep 29 2015 01:35
Well, @SaintPeter , the best guide I've had, is a few of the more advanced campers who took seriously the role of mentor/ guide when pairing.
Rory Smith
@alanbuchanan
Sep 29 2015 01:36
@SaintPeter hi, i couldn't get through the first nodejs exercises and in my search came across FreeCodeCamp/freecodecamp#1326, and noticed you had posted there too. did you find a way around it?
Rex Schrader
@SaintPeter
Sep 29 2015 01:36
@frogmorton Yeah, but that doesn't scale. There will always be fewer mentors than there are new campers. I'd love to somehow make it a requirement but . . . can't see how that'd work.
Craig Morrison
@frogmorton
Sep 29 2015 01:37
The best pairing partner will NEVER hand you the answer, even if they know it. They will ask you leading questions, and make you explain why you're doing something
Rex Schrader
@SaintPeter
Sep 29 2015 01:37
@alanbuchanan I never did. I've seen some commentary about it, but I wasn't able to figure it out. I actually tried twice.
Graham Whitley
@lotusgraham
Sep 29 2015 01:38
:sparkles: looking for a pairing partner :sparkles:
Rory Smith
@alanbuchanan
Sep 29 2015 01:38
@SaintPeter wow. what a pain!
chantilly lovelace
@chantillylace
Sep 29 2015 01:38
I've done the entire JS course in CodeAcademy and have started reading http://eloquentjavascript.net//index.html I'll read more. Right now I'm wondering whether I have what it takes to get this.
Craig Morrison
@frogmorton
Sep 29 2015 01:38
Yes, I understand. Fair enough. Just sharing my experience, @SaintPeter
Rory Smith
@alanbuchanan
Sep 29 2015 01:38
@SaintPeter so the map is impossible to complete?
Rex Schrader
@SaintPeter
Sep 29 2015 01:38
@alanbuchanan There is a way to skip individual steps in the how-to-npm
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:38
Maybe some sort of javascript sandbox mode that it sends you into after completing a waypoint that encourages you to play with the code and see what kind of results you get as opposed to just launching you off onto the next waypoint?
That is one thing that bothers me about FCC
it doesnt encourage you to play around with the code yourself at all
Rex Schrader
@SaintPeter
Sep 29 2015 01:39
@IsaacIzy Well, there are plenty of those, like http://repl.it
@IsaacIzy I think the expectation is that if you think playing would be good for you, you'll go and do it yourself :D
Arami Guerra
@cowboy63
Sep 29 2015 01:39
How-to-npm dist tag help
Craig Morrison
@frogmorton
Sep 29 2015 01:40
I love that site! I use it religiously
SM
@nogo10
Sep 29 2015 01:40
@IsaacIzy js_bin or codepen.io
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:40
But you see, people like @lotusgraham were not aware that playing around would be a good strategy
Rex Schrader
@SaintPeter
Sep 29 2015 01:40
At some point FCC can't hold your hand - and it's certainly not restricting what you can do on your own.
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:41
I understand
I just think it would help beginners if there were a couple sentences and a link to repl.it in some of the waypoints
Graham Whitley
@lotusgraham
Sep 29 2015 01:42
yeah, i just assumed that the stuff you would learn by playing around would be covered after the easy peasy fill in the blank stuff... so i din't play
Isaac Mauro
@IsaacIzy
Sep 29 2015 01:42
only the very basic waypoints
im not saying you should add it to e onevery
Amber Camus
@aacam
Sep 29 2015 01:43
@SaintPeter I had a rough transition between waypoints and bonfires, but it also encourages folks to seek out help too. I lurked before but never chatted in the boards before I needed some serious help when I hit my first bonfire and had no idea what to do.
CamperBot
@camperbot
Sep 29 2015 01:43
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
Rex Schrader
@SaintPeter
Sep 29 2015 01:43
The Intro to Bonfires needs to say "WARNING: Thar BE DRAGONS HERE"
Craig Morrison
@frogmorton
Sep 29 2015 01:43
Haha!
Graham Whitley
@lotusgraham
Sep 29 2015 01:44
"WARNING: Newbies will get burned unless they are willing to get learned"
Rex Schrader
@SaintPeter
Sep 29 2015 01:47
@lotusgraham LOL, thank you for the bad poetry.
CamperBot
@camperbot
Sep 29 2015 01:47
saintpeter sends brownie points to @lotusgraham :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for lotusgraham
Rex Schrader
@SaintPeter
Sep 29 2015 01:47
Brownies: DENIED.
Arami Guerra
@cowboy63
Sep 29 2015 01:47
is there an issues with the Waypoint: Manage Packages with NPM : dist tag exercise?
Craig Morrison
@frogmorton
Sep 29 2015 01:47
time to create a few Sean Bean / Boromir memes "One does not simply learn JavaScript."
Rex Schrader
@SaintPeter
Sep 29 2015 01:47
@cowboy63 Yes. It is broken, has been broken, and is very confusing. You should be able to skip it.
Arami Guerra
@cowboy63
Sep 29 2015 01:48
@SaintPeter thanks
CamperBot
@camperbot
Sep 29 2015 01:48
cowboy63 sends brownie points to @saintpeter :sparkles: :thumbsup: :sparkles:
:star: 759 | @saintpeter | http://www.freecodecamp.com/saintpeter
Rex Schrader
@SaintPeter
Sep 29 2015 01:48
Details: nodeschool/discussions#995
Graham Whitley
@lotusgraham
Sep 29 2015 01:48
lol @SaintPeter how to set up a reciever to get my brownie to stick??
Abhisek Pattnaik
@abhisekp
Sep 29 2015 01:49
@lotusgraham just bind your github a/c with FCC
Graham Whitley
@lotusgraham
Sep 29 2015 01:51
@abhisekp how to do this?
Abhisek Pattnaik
@abhisekp
Sep 29 2015 01:51
@lotusgraham goto account settings by clicking your pic in FCC
Rex Schrader
@SaintPeter
Sep 29 2015 01:51
Abhisek Pattnaik
@abhisekp
Sep 29 2015 01:51
@lotusgraham sync github
Rex Schrader
@SaintPeter
Sep 29 2015 01:51
blob
Graham Whitley
@lotusgraham
Sep 29 2015 01:52
aiiight thanks @SaintPeter and @abhisekp
CamperBot
@camperbot
Sep 29 2015 01:52
lotusgraham sends brownie points to @saintpeter and @abhisekp :sparkles: :thumbsup: :sparkles:
:warning: lotusgraham already gave saintpeter points
Michael Green
@MichaelGreenNZ
Sep 29 2015 01:52
can I thank myself and get my own brownie points??
CamperBot
@camperbot
Sep 29 2015 01:52
:star: 509 | @abhisekp | http://www.freecodecamp.com/abhisekp
Abhisek Pattnaik
@abhisekp
Sep 29 2015 01:52
@MichaelGreenNZ try it
Michael Green
@MichaelGreenNZ
Sep 29 2015 01:52
hahah
damn camperbot wants all the brownies!
@MichaelGreenNZ thanks
CamperBot
@camperbot
Sep 29 2015 01:52
sorry michaelgreennz, you can't send brownie points to yourself! :sparkles: :sparkles:
Michael Green
@MichaelGreenNZ
Sep 29 2015 01:52
stink
Rex Schrader
@SaintPeter
Sep 29 2015 01:52
LOL
Graham Whitley
@lotusgraham
Sep 29 2015 01:52
haha yo hook me up with some points i think i am connected now
Abhisek Pattnaik
@abhisekp
Sep 29 2015 01:52
about @lotusgraham
CamperBot
@camperbot
Sep 29 2015 01:53
:star: 172 | @lotusgraham | http://www.freecodecamp.com/lotusgraham
Rex Schrader
@SaintPeter
Sep 29 2015 01:53
@lotusgraham Thanks for getting hooked up
CamperBot
@camperbot
Sep 29 2015 01:53
saintpeter sends brownie points to @lotusgraham :sparkles: :thumbsup: :sparkles:
:star: 173 | @lotusgraham | http://www.freecodecamp.com/lotusgraham
Rex Schrader
@SaintPeter
Sep 29 2015 01:53
Whoot Whoot!
Graham Whitley
@lotusgraham
Sep 29 2015 01:53
that's right
Rex Schrader
@SaintPeter
Sep 29 2015 01:53
@lotusgraham Now you just need to help people!
Graham Whitley
@lotusgraham
Sep 29 2015 01:53
or make bad poetry?
but i plan to do both
Michael Green
@MichaelGreenNZ
Sep 29 2015 01:53
if you do both at the same time.. double points?
Abhisek Pattnaik
@abhisekp
Sep 29 2015 01:54
@lotusgraham you can post bad poetries in main ch. and keep this ch. clean.
Michael Green
@MichaelGreenNZ
Sep 29 2015 01:54
have you been to main channel? that place is a scary place at the moment.
Rex Schrader
@SaintPeter
Sep 29 2015 01:54
Yikes
I think we may need a moderator
IT's the swifthawke and everyone show
Craig Morrison
@frogmorton
Sep 29 2015 01:55
Thanks for the blog link, @SaintPeter
CamperBot
@camperbot
Sep 29 2015 01:55
frogmorton sends brownie points to @saintpeter :sparkles: :thumbsup: :sparkles:
:star: 760 | @saintpeter | http://www.freecodecamp.com/saintpeter
Graham Whitley
@lotusgraham
Sep 29 2015 01:55
hahahahaha thanks @MichaelGreenNZ
CamperBot
@camperbot
Sep 29 2015 01:55
lotusgraham sends brownie points to @michaelgreennz :sparkles: :thumbsup: :sparkles:
:star: 207 | @michaelgreennz | http://www.freecodecamp.com/michaelgreennz
Michael Green
@MichaelGreenNZ
Sep 29 2015 01:56
@SaintPeter I tend to stay out of there now.
Rex Schrader
@SaintPeter
Sep 29 2015 01:57
@MichaelGreenNZ Yeah, that's not good
Michael Green
@MichaelGreenNZ
Sep 29 2015 01:57
"Back in my day, it was the room for discussing normal things!"
-Old man Jenkins
Rex Schrader
@SaintPeter
Sep 29 2015 01:57
I guess we could file an issue
feeling a bit passive aggressive
Craig Morrison
@frogmorton
Sep 29 2015 01:59
I just ducked my head in there... Yeah, it's a jungle at the moment
Michael Green
@MichaelGreenNZ
Sep 29 2015 02:01
Jungle?? I think "The lost amazon tribe" would describe it much better.
Craig Morrison
@frogmorton
Sep 29 2015 02:01
Touché, @MichaelGreenNZ
Michael Green
@MichaelGreenNZ
Sep 29 2015 02:02
:D
'FreeCodeCamp/Serious' would be an outstanding room. right I'm off to learn and stop filling the help page with OT rambling!
Brian
@bwobst
Sep 29 2015 02:12
Is anyone familiar with HTML5 audio functions?
Ben Botti
@vaquav
Sep 29 2015 02:23
any one have a second to take a look at my weatherapp zipline?
Rex Schrader
@SaintPeter
Sep 29 2015 02:24
@benbotti For sure
@benbotti Also, we have a room for that!
wiki help channels
CamperBot
@camperbot
Sep 29 2015 02:25

:point_right: help channels [wiki]

There are official help channels for each major section of FCC content:

Chat Room Description
Help get help with our Waypoint challenges from your fellow campers
HelpBonfires get help with our Bonfire challenges from your fellow campers
HelpZiplines get help with our Zipline challenges from your fellow campers
HelpBasejumps get help with our Basejump challenges from your fellow campers
NonprofitProjects get help with your Nonprofit Projects from your fellow campers
YouCanDoThis learning to code is hard - share your feelings and get moral support here

Choose the right channel for your question!
:pencil: read more about help channels on the FCC Wiki

Derek Alvarado
@derekalvarado
Sep 29 2015 02:25
Anyone else have errors running the how-to-npm "Login" module?
Ben Botti
@vaquav
Sep 29 2015 02:25
cool didn't know that - thank you
CamperBot
@camperbot
Sep 29 2015 02:25
if you want to thank someone, put an @ before their name!
Ben Botti
@vaquav
Sep 29 2015 02:25
thanks @SaintPeter
CamperBot
@camperbot
Sep 29 2015 02:25
benbotti sends brownie points to @saintpeter :sparkles: :thumbsup: :sparkles:
:star: 764 | @saintpeter | http://www.freecodecamp.com/saintpeter
Derek Alvarado
@derekalvarado
Sep 29 2015 02:26
npm adduser fails from cloud9
Rex Schrader
@SaintPeter
Sep 29 2015 02:26
@derekalvarado Try "sudo npm adduser"
Derek Alvarado
@derekalvarado
Sep 29 2015 02:27
nope. but I solved it on a hunch. my username was taken
Rex Schrader
@SaintPeter
Sep 29 2015 02:27
@derekalvarado Ah, ok, cool
Derek Alvarado
@derekalvarado
Sep 29 2015 02:27
"derek" > bad. "derek99999" > good
Rex Schrader
@SaintPeter
Sep 29 2015 02:30
@benbotti Feel free to post your zipline, here or in the /HelpZiplines, and I'll be happy to take a look at it.
Don Price
@KingHippo
Sep 29 2015 02:39
I have been having trouble on the Bonfire: Seek and Destroy. I ended up googling an answer, but I'm not understanding how the filter function is working in this solution. Can someone explains how the filter function is working in this example?
function destroyer(arr) {

  var args = [];
  for(var i = 0; i <arguments.length; i++) {
    args.push(arguments[i]);
  }

  var newArr = [];
  newArr = arr.filter(function(i){
    return args.indexOf(i) === -1;
  });

  return newArr;
}

destroyer([1, 2, 3, 1, 2, 3], 2, 3, "");
DJ
@qualitymanifest
Sep 29 2015 02:39
just read the above. i certainly agree with the statements about what has happened to the main room.
Rex Schrader
@SaintPeter
Sep 29 2015 02:40
Well, I asked them to calm down. We'll see if it sticks.
@KingHippo Sure, lemme explain.
Don Price
@KingHippo
Sep 29 2015 02:42
@SaintPeter thanks
CamperBot
@camperbot
Sep 29 2015 02:42
kinghippo sends brownie points to @saintpeter :sparkles: :thumbsup: :sparkles:
:star: 765 | @saintpeter | http://www.freecodecamp.com/saintpeter
Rex Schrader
@SaintPeter
Sep 29 2015 02:42
@KingHippo Filter runs the callback function once per value in the array. If that function returns true, then the element is kept. If it returns false, that element is discarded. Does that make sense so far?
Chris
@Shifthawke
Sep 29 2015 02:42
chat is about to get boring. Also, you might want to keep an eye out. Marc is trolling.
CamperBot
@camperbot
Sep 29 2015 02:42
:trollface: troll problems? notify admins here
Chris
@Shifthawke
Sep 29 2015 02:42
Just saying.
Rex Schrader
@SaintPeter
Sep 29 2015 02:43
@KingHippo So, looking inside the function, you can see just the one line:
return args.indexOf(i) === -1;
Don Price
@KingHippo
Sep 29 2015 02:44
That line mean loop through the whole array?
Daniel Creutz
@prykor
Sep 29 2015 02:44

'''
function getQuote(text, author) {
var forismaticURL = "http://api.forismatic.com/api/1.0/?method=getQuote&lang=en&format=jsonp&jsonp=?"
$.getJSON(forismaticURL, function(data) {
$("div.quote").html("<q>" + data.quoteText + "</q>");
if (data.quoteAuthor == "") {
$("div.author").html("-Anonymous");
} else {
$("div.author").html("-" + data.quoteAuthor);
}
})
}

$(function() {
var author = $("#author");
var text = $("#quote");
$("#getQuote").click(function(event) {
event.preventDefault();
getQuote(text, author);
var quoteContent = text + author;
var param = encodeURIcomponent(quoteContent);
var newUrl = "https://twitter.com/intent/tweet?" + param;
$(".btn-twitter").attr("href", newUrl);
})
})
'''
Does anyone know why this wont actually tweet the code that is being generated?

CamperBot
@camperbot
Sep 29 2015 02:44
:bulb: to format code use backticks! ``` more info
Daniel Creutz
@prykor
Sep 29 2015 02:44
Whoops sorry about that formatting
Rex Schrader
@SaintPeter
Sep 29 2015 02:46
@KingHippo Now, we know that args has all of the arguments, including the two elements to be destroyed, right? That means that if we were to find the value in i (which is each element of the array to search) in args, it needs to go away.
indexOf returns the index of an element in an array and -1 if it's not found. So saying indexOf(i) === -1 means "Return true if we don't find i in args"
@prykor For Zipline help:
wiki help channels
CamperBot
@camperbot
Sep 29 2015 02:47

:point_right: help channels [wiki]

There are official help channels for each major section of FCC content:

Chat Room Description
Help get help with our Waypoint challenges from your fellow campers
HelpBonfires get help with our Bonfire challenges from your fellow campers
HelpZiplines get help with our Zipline challenges from your fellow campers
HelpBasejumps get help with our Basejump challenges from your fellow campers
NonprofitProjects get help with your Nonprofit Projects from your fellow campers
YouCanDoThis learning to code is hard - share your feelings and get moral support here

Choose the right channel for your question!
:pencil: read more about help channels on the FCC Wiki

Don Price
@KingHippo
Sep 29 2015 02:52
@SaintPeter I think I am understanding it now. These last few bonfires in basic algorithm scripting have been pretty tough for me.
I failed big on this one. I had to find the answer online\
Rex Schrader
@SaintPeter
Sep 29 2015 02:54
@KingHippo They can be a bit rough - don't be afraid to ask for guidance when you're stuck. You don't have to get a full answer from the help channel, and articulating the area you're having an issue with can be helpful in an of itself.
OverTheNeptune
@OverTheNeptune
Sep 29 2015 02:54
@KingHippo Even though you had to find an answer online, you still came here looking for an explanation before moving on. :)
Rex Schrader
@SaintPeter
Sep 29 2015 02:54
@KingHippo There is even a name for it: Rubber Duck Debugging
Don Price
@KingHippo
Sep 29 2015 02:58
@OverTheNeptune that is true. It feels like wondering around in the dark sometimes until it's explained to me
soham chakraborty
@syosoh06
Sep 29 2015 02:59
anyone got this error on code pen
Mixed Content: The page at 'https://s.codepen.io/boomerang/7f73b4fe52bea7c18d44fedb589f74831443495378656/index.html' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.freecodecamp.com/news/hot'. This request has been blocked; the content must be served over HTTPS.
plunker is soo cool
Don Price
@KingHippo
Sep 29 2015 03:00
@SaintPeter haha I have heard about the ubber duck. I have been using a picture on my desk I though.
rubber^
Rex Schrader
@SaintPeter
Sep 29 2015 03:00
@KingHippo "Duck Shaped Object" ;)
Don Price
@KingHippo
Sep 29 2015 03:00
I need to do it more often though
Rex Schrader
@SaintPeter
Sep 29 2015 03:01
@syosoh06 Yes, you're getting that because you're visiting codepen at an https address, but your AJAX request is over http (Or visa versa)
@syosoh06 This can also happen if you're using something like "HTTPS Everywhere"
soham chakraborty
@syosoh06
Sep 29 2015 03:01
so solution?? and wy does it work on plunker??
Rex Schrader
@SaintPeter
Sep 29 2015 03:04
@syosoh06 Solution: Either use both https for your codepen AND your code, or use http for both. You can't really mix them. Check your codepen URL - is it HTTP or HTTPS?
OverTheNeptune
@OverTheNeptune
Sep 29 2015 03:05
@syosoh06 Ran into that problem as well. I do use "HTTPS Everywhere" and just disabled it on codepen.
soham chakraborty
@syosoh06
Sep 29 2015 03:06
@OverTheNeptune how would you do that??
Kevin Diem
@kgdiem
Sep 29 2015 03:07
Why does this crash?
function sumFibs(num) {
  var a = 0, b = 1, f = 0;
  var arr = [];
  for(var i = 0; i < num; i ++){
    f = a + b;
    a = f;
    b = a;
    arr.push(f);
  }
  return arr;
}

sumFibs(4);
Rex Schrader
@SaintPeter
Sep 29 2015 03:08
@kgdiem Lemme take a look
Kevin Diem
@kgdiem
Sep 29 2015 03:08
thanks @ saintPeter. It works for spitting out the requested fibonacci number but for some reason I can't push 'em so I can't sum 'em up either lol
CamperBot
@camperbot
Sep 29 2015 03:08
if you want to thank someone, put an @ before their name!
OverTheNeptune
@OverTheNeptune
Sep 29 2015 03:09
@syosoh06 I clicked on HTTPS Everywhere in my browser toolbar and lets me toggle it on/off for pages I have open.
Rex Schrader
@SaintPeter
Sep 29 2015 03:10
@kgdiem Humm not crashing for me
Michael Green
@MichaelGreenNZ
Sep 29 2015 03:10
@kgdiem @SaintPeter Same here. returns [1,2,4,8]
Kevin Diem
@kgdiem
Sep 29 2015 03:11
@SaintPeter weird. I have 16gb of RAM but maybe having like 30 tabs open is too much lol
Michael Green
@MichaelGreenNZ
Sep 29 2015 03:11
try in another browser?
30 tabs shouldn't really matter.
Debbie Brown
@astar9
Sep 29 2015 03:11
I need help with Line up Form Elements Responsively with Bootstrap. Here is my code:
Kevin Diem
@kgdiem
Sep 29 2015 03:11
I always use chrome, odd. I'll check it out in safari or sumthin
Debbie Brown
@astar9
Sep 29 2015 03:11
<div>
<div class="row">
<div class="col-xs-7"><input type="text" class="form-control" placeholder="cat photo URL" required></div>
<div class="col-xs-5"><button type="submit" class="btn btn-primary"><i class="fa fa-paper-plane"></i> Submit</button>
</div>
</div>
Kevin Diem
@kgdiem
Sep 29 2015 03:11
thanks @SaintPeter and @MichaelGreenNZ
CamperBot
@camperbot
Sep 29 2015 03:11
kgdiem sends brownie points to @saintpeter and @michaelgreennz :sparkles: :thumbsup: :sparkles:
:warning: kgdiem already gave saintpeter points
:star: 208 | @michaelgreennz | http://www.freecodecamp.com/michaelgreennz
Michael Green
@MichaelGreenNZ
Sep 29 2015 03:12
@astar9 and whats not happening?
Kevin Diem
@kgdiem
Sep 29 2015 03:13
Still crashes in safari, what the heck?!
Rex Schrader
@SaintPeter
Sep 29 2015 03:13
@kgdiem I just ran it on http://repl.it
Kevin Diem
@kgdiem
Sep 29 2015 03:14
maybe FCC bug?
Michael Green
@MichaelGreenNZ
Sep 29 2015 03:18
@astar9 Why do you have it as:
<div>
<div class="row">
@astar9 Currently you've not got enough closing </div> tags. Your missing one for <div class="col-xs-5">
mine looks like
<div class="row">
      <div class="col-xs-7"><input type="text" class="form-control" placeholder="cat photo URL" required></div>
      <div class="col-xs-5"><button type="submit" class="btn btn-primary"><i class="fa fa-paper-plane"></i> Submit</button></div>
    </div>
soham chakraborty
@syosoh06
Sep 29 2015 03:56
thanks @SaintPeter
CamperBot
@camperbot
Sep 29 2015 03:56
syosoh06 sends brownie points to @saintpeter :sparkles: :thumbsup: :sparkles:
:star: 771 | @saintpeter | http://www.freecodecamp.com/saintpeter
Craig Morrison
@frogmorton
Sep 29 2015 04:35
Bootstrap question here: is there a way to use the row / grid system in such a way that there ISN'T that ugly middle size where the last row element spills down to the next line?
Debbie Brown
@astar9
Sep 29 2015 04:38
@MichaelGreenNZ It is stuck on the error message "(X) Make sure each of your div elements has a closing tag." I cannot figure out which div element I haven't closed. Thank you for looking!
CamperBot
@camperbot
Sep 29 2015 04:38
astar9 sends brownie points to @michaelgreennz :sparkles: :thumbsup: :sparkles:
:star: 209 | @michaelgreennz | http://www.freecodecamp.com/michaelgreennz
soham chakraborty
@syosoh06
Sep 29 2015 04:38
@frogmorton do u have an example ?
thanks @MichaelGreenNZ
CamperBot
@camperbot
Sep 29 2015 04:38
syosoh06 sends brownie points to @michaelgreennz :sparkles: :thumbsup: :sparkles:
:star: 210 | @michaelgreennz | http://www.freecodecamp.com/michaelgreennz
Jason
@Jauble
Sep 29 2015 04:38
Hey guys. Any ideas on how I can improve this?
Craig Morrison
@frogmorton
Sep 29 2015 04:39
basically, I want to arrange my portfolio items in rows of 3 for md and larger, and switch to 2 items when I reach the breakpoint. Or do I have to code both rows and give them different visibility classes, depending on media queries... Yes I do, @syosoh06 ... Hang on, and I'll link you
Jason
@Jauble
Sep 29 2015 04:39
    var strArray = str.toLowerCase().split(' ');
    var newArray = [];
    for (var i = 0; i < strArray.length; i++) {
        for (var j = 0; j < strArray[i].length; j++) {
          var temp = "";
            if (j === 0) {
              temp = strArray[i][j].toUpperCase();
                newArray.push(temp);
            }
            else {
              newArray.push(strArray[i][j]);
            }
        }
        newArray.push(" ");
    }
    newArray.pop();
    newString = newArray.join("");
    return newString;
}

titleCase("I'm a little tea pot", "");
That was weird. I hit enter and it took me to another channel
Weird, it cut the top off: function titleCase(str) {
Craig Morrison
@frogmorton
Sep 29 2015 04:46
Don't worry about the broken HTML for the 1st portfolio item, or nav buttons... But just observe the behavior of the portfolio section as you make the full window narrower...
It's obvious that if the row has 3 items with col-md-4 in it, when the screen gets too narrow, that third item will spill down to the next line, and the next row will start below that, from the left side.
Craig Morrison
@frogmorton
Sep 29 2015 04:52
I'm not super experienced with Bootstrap, so maybe I'm asking it to do something it's not capable of.
srishi2110git
@srishi2110git
Sep 29 2015 04:53
function palindrome(str) {
str.toLowerCase()
if (str === str.split("").reverse().join("")) {
return true;
} else {
return false;
}
}
palindrome("eye");
var str = 'eye';
var newstr = str.replace('race');
whats wrong
??
hey
anyone who could
????
Jason
@Jauble
Sep 29 2015 04:55
@srishi2110git hit 3 backtaps () then enter, then paste your code, then three more () then enter. It'll format your code so it's easier to read
oops I guess they don't show up on here `
@srishi2110git this is a backtap ` it should be right below your esc key
try str = str.toLowerCase for one
you need a semicolon (;) after toLowerCase()
What is the code after your function call?
Craig Morrison
@frogmorton
Sep 29 2015 05:01
@syosoh06 Did you get a chance to take a look?
Reggie
@Reggie01
Sep 29 2015 05:03

@frogmorton I think you explain the issue with your code. So yeah that is the limitation. You could maybe change

col-xs-12

for smaller devices. So your portfolio is full length at small devices. Just to be clear columns can be defined in rows as you done. Due to you only having 3 items in each row at smaller sizes

col-sm-6

one portfolio will spill down . Same as you stated. Of course there could be a way to get around the issue if you play around with it long enough.

Debbie Brown
@astar9
Sep 29 2015 05:09
MichaelGreenNZ--I directly copied my code from 'Line up Form Elements Responsively with Bootstrap' for my message--the </div> in question is underneath the 'Submit</button>' of the "col-xs-5" line because there was no more space on the line, it automatically jumped to the line below.
Craig Morrison
@frogmorton
Sep 29 2015 05:10
My idea is to write two separate container / grid versions, and assign the HTML with JavaScript based on the size of the viewport... Not sure, we'll see how that goes. The thing about it is, when I get down to xs sizes, the items DO go to one column, because of this "spill" behavior we've talked about... So it looks fine, even though I left out the .col-xs-* classes.
Thanks for taking the time, @Reggie01
CamperBot
@camperbot
Sep 29 2015 05:12
frogmorton sends brownie points to @reggie01 :sparkles: :thumbsup: :sparkles:
:star: 201 | @reggie01 | http://www.freecodecamp.com/reggie01
Alexandrix Ikechukwu
@SpaghettiThots
Sep 29 2015 05:14
Could anyone see anything wrong with this? It returns the same every time.
function titleCase(str) {
  var words = str.split(' '); //split string and store in array.

  for(i = 0; i < words.length; i++){ //with a for loop, go over each item of words[].
    var word = words[i].charAt(0).toUpperCase(); //declare word to hold word with toUpperCase().
    var strFinal = []; //declare strFinal[]
    strFinal.push(word); //push each word to strFinal[].
  }

  return strFinal;
}

titleCase("I'm a little tea pot");
Jose E. Pimentel
@jedpimentel
Sep 29 2015 05:18
@IshMary you have two issues, first thing is you need for "word" to be first letter tu upper (as you made it), plus the rest of the characters as-is (charAt(0) is only the first character)
Reggie
@Reggie01
Sep 29 2015 05:18
@frogmorton There is a layout issue on small devices. I'm using chrome browser. I am viewing your codepen in fullpage mode. There is a mobile emulator on chrome if you hit F12, then look in left hand corner. The device I chose is Apple Iphone 4, device choices are in upper left hand corner in drop down menu. Your columns are uneven. 2 1 2 1 for portfolio section.
Jose E. Pimentel
@jedpimentel
Sep 29 2015 05:19
@IshMary the second, is that you have strFinal being re-initialized each time the for loop iterates, which will cause it to delete any old information (what was stored in the last "for" iteration. strFinal = []; would need to be declared once before the for loop, and you'll have to add some code so that that word will also include therest of the characters for each word
also, you'll need to be sure to return an array (I usually debug with console.log() statements every other line to confirm everything is what I was expecting it to be)_
Debbie Brown
@astar9
Sep 29 2015 05:23
@MichaelGreenNZ --I directly copied my code from 'Line up Form Elements Responsively with Bootstrap' for my message--the </div> in question is underneath the 'Submit</button>' of the "col-xs-5" line because there was no more space on the line, it automatically jumped to the line below.
Alexandrix Ikechukwu
@SpaghettiThots
Sep 29 2015 05:36
@jedpimentel Let me look at it with your suggestions.
@jedpimentel You're right on initializing strFinal = []; within the loop. but now my final output remains the array.
Jose E. Pimentel
@jedpimentel
Sep 29 2015 05:40
@IshMary yes, you'll have to join the array into a string
basicly the reverse of when you turned the string into an array
Alexandrix Ikechukwu
@SpaghettiThots
Sep 29 2015 05:40
True. A simple join()
Just tried it.
Thank you @jedpimentel
CamperBot
@camperbot
Sep 29 2015 05:40
ishmary sends brownie points to @jedpimentel :sparkles: :thumbsup: :sparkles:
:star: 322 | @jedpimentel | http://www.freecodecamp.com/jedpimentel
Jose E. Pimentel
@jedpimentel
Sep 29 2015 05:41
no prob,
Alexandrix Ikechukwu
@SpaghettiThots
Sep 29 2015 05:49
Brickwall here @jedpimentel
function titleCase(str) {
  var words = str.toLowerCase();
  var words = str.split(' '); //split string and store in array.

  var strFinal = []; //declare strFinal[]

  for(i = 0; i < words.length; i++){ //with a for loop, go over each item of words[].
    var letter = words[i].charAt(0).toUpperCase(); //declare word to hold word with toUpperCase().
    words[i] = letter + words[i].slice(1, 100);

    strFinal.push(words[i]); //push each word to strFinal[].
  }

  return strFinal.join(" ");
}

titleCase("I'm a little tea pot");
Jose E. Pimentel
@jedpimentel
Sep 29 2015 05:51
@IshMary as-per the test cases, anything after the first letter of each word should be lower case
Alexandrix Ikechukwu
@SpaghettiThots
Sep 29 2015 05:51
@evelynmitchell Could you help me out with this please?
Jose E. Pimentel
@jedpimentel
Sep 29 2015 05:52
it passes for the initial test, but fails for example if you imput in ALL CAPS
Alexandrix Ikechukwu
@SpaghettiThots
Sep 29 2015 05:52
yes @jedpimentel
Noticed that
DTing
@dting
Sep 29 2015 05:52
@IshMary you lowercase str and assign it to words
then yo overwite that assignement
with str.split(' ')
you either need to split words
or assign the lowercased str to itself and split that
also you shouldnt be declaring the variable twice.
Alexandrix Ikechukwu
@SpaghettiThots
Sep 29 2015 05:53
Could you do it in the code so I see what you mena?
*mean
DTing
@dting
Sep 29 2015 05:54
  var words = str.toLowerCase();
  var words = str.split(' '); //split string and store in array.
Jose E. Pimentel
@jedpimentel
Sep 29 2015 05:54
aaah, I see it now var words = str.split(' '); undoes the previous line since you're redeclaring "words" from scratch
Alexandrix Ikechukwu
@SpaghettiThots
Sep 29 2015 05:54
I've fixed that
Still same result
DTing
@dting
Sep 29 2015 05:54
var words = str.toLowerCase().split(' ');
or
str = str.toLowerCase();
var words = str.split(' ');
or
var words = str.toLowerCase();
words = words.split(' ');
Alexandrix Ikechukwu
@SpaghettiThots
Sep 29 2015 05:55
It worked @dting
But please slowly reexplain from scratch
Florian Peninon
@florianpnn
Sep 29 2015 05:56
Do I need to finish the 5 levels of CodeSchool or only the first one for the Waypoint « Get Started with Angularjs » ?
Jose E. Pimentel
@jedpimentel
Sep 29 2015 05:56
also, I'd suggest using .slice(1) over .slice(1, 100), it's not a good idea to use a big number to represent "the rest of" or "everything" (the second argument of .slice() is optional)
DTing
@dting
Sep 29 2015 05:56
the first line you declare a variable words and assign the value of str.toLowerCase() to that variable
the second line you declare that same variable again. then assign the value of str.split(' ') to that words variable
strings are immtuable. str.toLowerCase() dose nto mutate str. it returns the lowerCase string
wiki immutable
CamperBot
@camperbot
Sep 29 2015 05:57

:point_right: js immutable [wiki]

Immutable means unchangeable i.e. you can't change.

Javascript has lots of immutable types e.g. string primitive type. Try this in your console.

s = "red";
console.log(s[1]); //→ "e"
s[1] = "x";
console.log(s) //→ "red"

the s didn't change! WAT!

:pencil: read more about js immutable on the FCC Wiki

Alexandrix Ikechukwu
@SpaghettiThots
Sep 29 2015 05:59
@dting THANKS
CamperBot
@camperbot
Sep 29 2015 05:59
ishmary sends brownie points to @dting :sparkles: :thumbsup: :sparkles:
:star: 1277 | @dting | http://www.freecodecamp.com/dting
Craig Morrison
@frogmorton
Sep 29 2015 06:09
Ok, thanks for pointing that out, @Reggie01
CamperBot
@camperbot
Sep 29 2015 06:09
frogmorton sends brownie points to @reggie01 :sparkles: :thumbsup: :sparkles:
:warning: frogmorton already gave reggie01 points
Alexandrix Ikechukwu
@SpaghettiThots
Sep 29 2015 06:10
Thanks @jedpimentel
CamperBot
@camperbot
Sep 29 2015 06:10
ishmary sends brownie points to @jedpimentel :sparkles: :thumbsup: :sparkles:
:warning: ishmary already gave jedpimentel points
Jesse Croxford
@Jcroxford
Sep 29 2015 06:16
hey guys I am on bonfire arguments optional and I am not sure what to google to figure out how to use a function with separated parameters. example: if I were to call a function(a)(b) how do I gain access to the second set of parenthesis?
the(b) part I mean
Jason
@Jauble
Sep 29 2015 06:17
you can't function(a, b)?
Jesse Croxford
@Jcroxford
Sep 29 2015 06:18
it says you should be able to though
bonfire arguments optional
CamperBot
@camperbot
Sep 29 2015 06:18

:fire:Bonfire: Arguments Optional :link:

function add() {
  return false;
}

add(2,3);

Create a function that sums two arguments together. If only one argument is provided, return a function that expects one additional argument and will return the sum.

more info:  bf details | bf links | hint

Jesse Croxford
@Jcroxford
Sep 29 2015 06:18
in this case one of the tests it gives you is add(2,3) and another one is add(2)(3) and both should work and give you 5
my problem is I dont know how to call the (3)
Jason
@Jauble
Sep 29 2015 06:20
Yeah, I'm not sure either. Sorry
Jesse Croxford
@Jcroxford
Sep 29 2015 06:20
its ok thanks for trying :) anyone else here have any ideas?
CamperBot
@camperbot
Sep 29 2015 06:20
if you want to thank someone, put an @ before their name!
Jason
@Jauble
Sep 29 2015 06:21
no prob
Rex Schrader
@SaintPeter
Sep 29 2015 06:23

@AuricSlayer For arguments optional, what you need to do when you only get one argument is return a function. This is valid code:

funtion example(someValue) {
    return function(a) {
       return a + someValue;
   }
}

NOTE: This code is untested and may not actually work as written.

@AuricSlayer Remember that you can do this:

var someFunct = function(a) {
    return a;
}

So returning a function is basically the same as doing:

return someFunct;

@AuricSlayer So when I'm calling:

var answer = example(5);

then answer becomes a function. Similarly, I can go:

example(5)(4);

and it calls example(5), which returns a function, which then in turn gets called with a parameter of 4.

@AuricSlayer Anyway, hope that helps. I gotta go. Enjoy!
Jesse Croxford
@Jcroxford
Sep 29 2015 06:53
ok thanks @SaintPeter I get what they want now
CamperBot
@camperbot
Sep 29 2015 06:53
auricslayer sends brownie points to @saintpeter :sparkles: :thumbsup: :sparkles:
:star: 772 | @saintpeter | http://www.freecodecamp.com/saintpeter
lalalastyle
@lalalastyle
Sep 29 2015 07:37
Guys,hi. I'm new here, and i stuck in the html boarders exercise. really cant understand what did i do wrong. Tasks: Your img element should have the class thick-green-border.
Give your image a border width of 10px.
Give your image a border style of solid.
The border around your img element should be green.

</style>
.thick-green-border { border-color: green; border-width: 10px; border-style: solid; }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<img class="smaller-image" class= "thick-green-border" src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Jason
@Jauble
Sep 29 2015 07:41
@lalalastyle you could write that short hand as border: 10px solid green;
just so you know
that doesn't really help you with your problem though
your classes can be added together with a space between them like this like this class="smaller-image thick-green-border"
I think that might be your problem: having more than one class attribute
Just noticed I wrote: "like this like this" lol
Ankit Panwar
@coderNoob
Sep 29 2015 07:47

I need help understanding the functions. This does not work

$.get(weatherApi, function(){
        var temperature = main.temp;

I can't understand why do i need a variable passed as an argument in the function for this to work? like this

$.get(weatherApi, function(wee){
        var temperature = wee.main.temp;

@SaintPeter

Jason
@Jauble
Sep 29 2015 07:49
@coderNoob what language is that? I don't get the $.get. Just curious
Ankit Panwar
@coderNoob
Sep 29 2015 07:49
@Jauble jQuery
Jason
@Jauble
Sep 29 2015 07:50
Oh ok, I've been working on jQuery a little, guess I just haven't gotten that far. I always see parens after the $
srishi2110git
@srishi2110git
Sep 29 2015 07:52
code pen plans are not free ??
Jason
@Jauble
Sep 29 2015 07:52
Oh wait, you can just do $ instead of $(document) right?
@srishi2110git dunno
Reggie
@Reggie01
Sep 29 2015 07:56
@coderNoob The docs say "The success callback function is passed the returned data, which will be an XML root element, text string, JavaScript file, or JSON object, depending on the MIME type of the response. It is also passed the text status of the response."
The function is your callback. So it's receiving data.
@srishi2110git There is a free and paid version of codepen.
PavlosTheo
@PavlosTheo
Sep 29 2015 07:57
hello and good morning. im stuck at lesson 9 of java script and i cant figure why :P anyone can help ?
Jason
@Jauble
Sep 29 2015 08:00
@PavlosTheo the bracket notation one?
PavlosTheo
@PavlosTheo
Sep 29 2015 08:01
yup. it seems prety easy . cant find out what is wrong
Reggie
@Reggie01
Sep 29 2015 08:02

@coderNoob The first set of code would only work if you had something like this.

var main = {};
main.temp = 22;
$.get(weatherApi, function(){
        var temperature = main.temp; // this would require main object to be defined earlier in your code to work
}

The second set of code makes ajax call, then returns data, then your callback function uses the data.

Jason
@Jauble
Sep 29 2015 08:04
@PavlosTheo var thirdToLastLetterOfFirstName = firstName[firstName.length - 3];
firstName = Ava so firstName.length = 3
if you subtract 3 you get 0, so that's basically saying firstName[0] or index 0 of first name
lalalastyle
@lalalastyle
Sep 29 2015 08:07
@Jauble thnx!
CamperBot
@camperbot
Sep 29 2015 08:07
lalalastyle sends brownie points to @jauble :sparkles: :thumbsup: :sparkles:
:star: 181 | @jauble | http://www.freecodecamp.com/jauble
Jason
@Jauble
Sep 29 2015 08:07
You start counting at 0, so firstName[0] would be firsName[1] would be "v", and firstName[2] would be "a"
firstName[0] would be "A"
@lalalastyle No problem. Glad I could help!
@PavlosTheo does that make sense?
PavlosTheo
@PavlosTheo
Sep 29 2015 08:10
im on the phone ill see in a min
Jason
@Jauble
Sep 29 2015 08:10
Ok
Sasa Popovic
@Zunior
Sep 29 2015 08:11
Code is good, but need some help with construction
function steamroller(arr) {

  for(var i=0; i<arr.length; i++) {
    if(Array.isArray(arr)) {
      if(!Array.isArray(arr[i])) {
        flatten.push(arr[i]);
      } else { steamroller(arr[i]);}
    }
  }

  var final = flatten.filter(function(elem, pos) {
    return flatten.indexOf(elem) == pos;
  });

  return final;

}

function flat(arr1, arr2) {

}

var flatten = [];

steamroller([1, [2], [3, [[4]]]]);

oops, this is without garbage
``js
function steamroller(arr) {

for(var i=0; i<arr.length; i++) {
if(Array.isArray(arr)) {
if(!Array.isArray(arr[i])) {
flatten.push(arr[i]);
} else { steamroller(arr[i]);}
}
}

var final = flatten.filter(function(elem, pos) {
return flatten.indexOf(elem) == pos;
});

return final;

}

var flatten = [];

steamroller([1, [2], [3, [[4]]]]);
```

lol
function steamroller(arr) {

for(var i=0; i<arr.length; i++) {
if(Array.isArray(arr)) {
if(!Array.isArray(arr[i])) {
flatten.push(arr[i]);
} else { steamroller(arr[i]);}
}
}

var final = flatten.filter(function(elem, pos) {
return flatten.indexOf(elem) == pos;
});

return final;

}

var flatten = [];

steamroller([1, [2], [3, [[4]]]]);
Jason
@Jauble
Sep 29 2015 08:16
@Zunior where does flatten come from? I don't see it declared anywhere
wait, nevermind, it's at the bottom
I think you might need to put that inside your function
PavlosTheo
@PavlosTheo
Sep 29 2015 08:18
@Jauble got the first part of the task done but have an error on the 2nd
Jason
@Jauble
Sep 29 2015 08:18
Hmm, lemmie check it out again
What's your answer @PavlosTheo ?
PavlosTheo
@PavlosTheo
Sep 29 2015 08:20
@Jauble did that var secondToLastLetterOfLastName = lastName[8- 2 ];
Jason
@Jauble
Sep 29 2015 08:22
look at the one for firstName, you basically want the same thing but for secondName. You have the - 2 is right btw.
  • is*
I changed what I was writing, meant to take out the is
lol I meant lastName not secondName lol
PavlosTheo
@PavlosTheo
Sep 29 2015 08:27
hehe figure it that heheh., but honestly i cant find out what im doing wrong. its simple must be something really stupid
Jason
@Jauble
Sep 29 2015 08:27
@PavlosTheo you could do that with numbers like you are, but I think they want you to do it the way that they did for firstName to show that you understand it.
you just need to change the 8.
actually it might be because you have 8- 2 and not 8 - 2 or 8-2
but I think they really want you to format it like lastName[variable.length - 2];
you have the idea right, since Lovelace.length = 8
Jason
@Jauble
Sep 29 2015 08:33
@PavlosTheo you there?
Sasa Popovic
@Zunior
Sep 29 2015 08:34
@Jauble But the problem is that this is some kind of recursive function, so in that case I would always delete elements with flatten = []
PavlosTheo
@PavlosTheo
Sep 29 2015 08:34
yup . cant figure it out xaxa i did it with the numbers but not with .lenght
Jason
@Jauble
Sep 29 2015 08:35
@PavlosTheo what did you try with .length?
@Zunior I see
Sasa Popovic
@Zunior
Sep 29 2015 08:35
@Jauble And somehow it remember values and use it for next checkouts in lection
@Jauble Well, complicated codes = new type of problems :smile:
Jason
@Jauble
Sep 29 2015 08:39
@PavlosTheo you just need to replace "variable" var secondToLastLetterOfLastName = lastName[variable.length - 2]; (Hint: it's not firstName)
@Zunior Tell me about it. I'm stuck on one myself lol
Jason
@Jauble
Sep 29 2015 08:45
@PavlosTheo did you get it?
PavlosTheo
@PavlosTheo
Sep 29 2015 08:47
@Jauble nope.....
Jason
@Jauble
Sep 29 2015 08:50
ok, tell me what lastName.length
oops
tell me what the value of lastName.length is
PavlosTheo
@PavlosTheo
Sep 29 2015 08:51
@Jauble "Lovelace"
Jason
@Jauble
Sep 29 2015 08:51
what's the length of Lovelace?
PavlosTheo
@PavlosTheo
Sep 29 2015 08:52
8
Jason
@Jauble
Sep 29 2015 08:52
ok, so what's the value of lastName.length?
PavlosTheo
@PavlosTheo
Sep 29 2015 08:52
8
Jason
@Jauble
Sep 29 2015 08:53
right, so what do you think you can put to replace the 8 where you had lastName[8 - 2];?
@PavlosTheo don't disappear on me now lol
PavlosTheo
@PavlosTheo
Sep 29 2015 08:55
one sec
family got involved axaxa
Jason
@Jauble
Sep 29 2015 08:56
ok
PavlosTheo
@PavlosTheo
Sep 29 2015 08:57
lovelace?
Jason
@Jauble
Sep 29 2015 08:58
ok, so the value of lastName.length is 8 right?
PavlosTheo
@PavlosTheo
Sep 29 2015 08:58
yes
Jason
@Jauble
Sep 29 2015 08:58
so try replacing your 8 with lastName.length
PavlosTheo
@PavlosTheo
Sep 29 2015 09:00
its done
that was the first thing ive done
Jason
@Jauble
Sep 29 2015 09:00
and it didn't work?
PavlosTheo
@PavlosTheo
Sep 29 2015 09:01
nope
its obvious and so simple , unless i had some stupid typo
Jason
@Jauble
Sep 29 2015 09:02
var secondToLastLetterOfLastName = lastName[lastName.length - 2];
try copying and pasting that
PavlosTheo
@PavlosTheo
Sep 29 2015 09:03
i have done it . its ok . I
Jason
@Jauble
Sep 29 2015 09:04
Ok, well, that's the answer they were looking for
PavlosTheo
@PavlosTheo
Sep 29 2015 09:05
but cant find out what was my mistake before. i did the exact same thing over over and again
i mean it is so obvious ! anyway thanks for your time @Jauble thanks alot
CamperBot
@camperbot
Sep 29 2015 09:05
pavlostheo sends brownie points to @jauble :sparkles: :thumbsup: :sparkles:
:star: 182 | @jauble | http://www.freecodecamp.com/jauble
Jason
@Jauble
Sep 29 2015 09:05
weird, maybe it was a glitch or something
no problem, glad I could help!
PavlosTheo
@PavlosTheo
Sep 29 2015 09:06
im stuck more than a week . ofc not trying every day xexe, but since now everything was very straight forward and easy
*was stuck
Jason
@Jauble
Sep 29 2015 09:07
err I didn't really help, but i tried lol
Ya, I hate when that happens
I've been stuck on one tonight that's been driving me crazy. Hopefully it will make more sense after I get some sleep lol.
Andy Taylor
@theador0691
Sep 29 2015 09:09
dna help
Jason
@Jauble
Sep 29 2015 09:10
Well, I'm gonna call it a night. See ya @PavlosTheo
PavlosTheo
@PavlosTheo
Sep 29 2015 09:10
@Jauble thats crazy i type the var myself and its not working, the i paste your line is exacly the same letters spaces everything and then works
@Jauble have a good night and thanks again
CamperBot
@camperbot
Sep 29 2015 09:10
pavlostheo sends brownie points to @jauble :sparkles: :thumbsup: :sparkles:
:warning: pavlostheo already gave jauble points
Jason
@Jauble
Sep 29 2015 09:11
@PavlosTheo lol weird. That kinda stuff happens to me all the time lol.
Sasa Popovic
@Zunior
Sep 29 2015 09:12
Can someone confirm if this is a bug. Function is remembering values for next checkouts in Bonfire:Steamroller
function steamroller(arr) {

  for(var i=0; i<arr.length; i++) {
    if(Array.isArray(arr)) {
      if(!Array.isArray(arr[i])) {
        flatten.push(arr[i]);
      } else { steamroller(arr[i]);}
    }
  }

  var final = flatten.filter(function(elem, pos) {
    return flatten.indexOf(elem) == pos;
  });

  return final;

}

var flatten = [];

steamroller([1, [2], [3, [[4]]]]);
Jason
@Jauble
Sep 29 2015 09:12
@PavlosTheo No problem, Night
Sasa Popovic
@Zunior
Sep 29 2015 09:14
Actually sarrounding is working that way, but it should call again whole function for next checkouts!
And not using instances of recursive function for next checkouts
Jalita
@UsefulPixels
Sep 29 2015 09:33
Hello, I wonder if someone could please help me with this waypoint "Waypoint: Make Object Properties Private” ? I have been stuck on this for a week now… And have just finished 3.5h watching this video https://www.youtube.com/watch?v=Bv_5Zv5c-Ts&ab_channel=TonyAlicea that was supposed to help me with this challenge but I still can’t make it work.
//Let's create an object with a two functions. One attached as a property and one not.
var Car = function() {
  this.gear = 1;
  function addStyle(styleMe){
    return 'The Current Gear Is: ' + styleMe;
  }
  this.getGear = function() {
    return addStyle(this.gear);
  };
};

var Bike = function() {
  // Only change code below this line.
  this.speed = 100;
  function addUnit(value) {
    return value + "KM/H";
  }

  getSpeed = function () {
    return addUnit(speed);
  };

};

// Only change code above this line.
var myCar = new Car();
var myBike = new Bike();

if(myBike.hasOwnProperty('getSpeed')){(function() {return JSON.stringify(myBike.getSpeed());})();};
I have tried many different functions and attemt to solutions but that only removed the green mark. (2 more red marks to go)
Andy Taylor
@theador0691
Sep 29 2015 09:43
I am having trouble with the DNA exercise. I can get the array but it looks wrong [ 'AT', 'TA', 'CG', 'GC', 'AT' ]
. I need it so they are all separate arrays :(
function pair(str){
   var store = [];
  var split = str.split("");
  console.log(split);

 for(var i=0; i<split.length;i++){
    if(split[i] == "G"){
        store.push(split[i] + "C");
    }else if (split[i] == "A"){
        store.push(split[i] + "T");
      }else if (split[i] == "T"){
        store.push(split[i] + "A");
      }else{
        store.push(split[i] + "G");
      }
 }


  return(newsplit);
}



pair("ATCGA");
Amri91
@Amri91
Sep 29 2015 09:44

Hi, I am stuck at exercise 9/13 in learnyounode tutorial. I am trying to run pieces of code in series to achieve the exercise objectives.
'''
/*This problem is the same as the previous problem (HTTP COLLECT) in that you
need to use http.get(). However, this time you will be provided with three URLs
as the first three command-line arguments.

You must collect the complete content provided to you by each of the URLs and
print it to the console (stdout). You don't need to print out the length, just
the data as a String; one line per URL. The catch is that you must print them
out in the same order as the URLs are provided to you as command-line arguments.
*/
var http = require('http');
var async = require('async');

var dataCollection = '';

async.series([
http.get(process.argv[2], function(response)
{
response.on("data", function(data){
dataCollection = dataCollection.concat(data.toString());
})
response.on("end", function(){
console.log(dataCollection);
dataCollection = '';
})
}),
http.get(process.argv[3], function(response)
{
response.on("data", function(data){
dataCollection = dataCollection.concat(data.toString());
})
response.on("end", function(){
console.log(dataCollection);
dataCollection = '';
})
}),
http.get(process.argv[4], function(response)
{
response.on("data", function(data){
dataCollection = dataCollection.concat(data.toString());
})
response.on("end", function(){
console.log(dataCollection);
dataCollection = '';
})
})
]);
'''
I am getting this error.
/home/ubuntu/workspace/node_modules/async/lib/async.js:551
fn(function (err) {
^
TypeError: object is not a function

I checked https://www.npmjs.com/package/async#seriestasks-callback
but syntax seems sound. Can anyone please help :) ?

Sasa Popovic
@Zunior
Sep 29 2015 09:45
@theador0691 Try to push separately split[i] and letter
Amri91
@Amri91
Sep 29 2015 09:45
/*This problem is the same as the previous problem (HTTP COLLECT) in that you
need to use http.get(). However, this time you will be provided with three URLs
as the first three command-line arguments.

You must collect the complete content provided to you by each of the URLs and 
print it to the console (stdout). You don't need to print out the length, just
the data as a String; one line per URL. The catch is that you must print them
out in the same order as the URLs are provided to you as command-line arguments.
*/

var http = require('http');
var async = require('async');

var dataCollection = '';

async.series([
        http.get(process.argv[2], function(response)
        {
            response.on("data", function(data){
                dataCollection = dataCollection.concat(data.toString());
            })
            response.on("end", function(){
              console.log(dataCollection);
              dataCollection = '';
            })
        }),
        http.get(process.argv[3], function(response)
        {
            response.on("data", function(data){
                dataCollection = dataCollection.concat(data.toString());
            })
            response.on("end", function(){
              console.log(dataCollection);
              dataCollection = '';
            })
        }),
        http.get(process.argv[4], function(response)
        {
            response.on("data", function(data){
                dataCollection = dataCollection.concat(data.toString());
            })
            response.on("end", function(){
              console.log(dataCollection);
              dataCollection = '';
            })
        })
    ]);
ops
Andy Taylor
@theador0691
Sep 29 2015 09:48
@Zunior How do you mean?
Jalita
@UsefulPixels
Sep 29 2015 09:48
I found the solution! Finally!
Sasa Popovic
@Zunior
Sep 29 2015 09:49
push(split[i]);
push("C");
@theador0691
push(split[i]);
push("C");
Andy Taylor
@theador0691
Sep 29 2015 09:49
@Zunior ahhh I get it! Will have a go now
@Zunior actually that doesn't work because then the array looks like this [ 'A', 'T', 'T', 'A', 'C', 'G', 'G', 'C', 'A', 'T' ]
Sasa Popovic
@Zunior
Sep 29 2015 09:51
@theador0691 Sorry, that was just idea at a glance
@theador0691 I ll look at bonfire now
Andy Taylor
@theador0691
Sep 29 2015 09:51
@Zunior no worries :) I appreciate any help I get :D
Sasa Popovic
@Zunior
Sep 29 2015 09:54
@theador0691 You could do it with hard code
push([split[i], "C"])
Andy Taylor
@theador0691
Sep 29 2015 09:55
@Zunior tried that too, you get an error if you do that :(
oh no you don't
hang on a sec
@Zunior that worked will try and submit it now :D
Sasa Popovic
@Zunior
Sep 29 2015 09:59
@theador0691 Also you could try with usual coding
dont split string, just use str[i][0] to get only value
Andy Taylor
@theador0691
Sep 29 2015 09:59
@Zunior that is closer [ [ 'AT' ], [ 'TA' ], [ 'CG' ], [ 'GC' ], [ 'AT' ] ] but it needs to be [['A','T'],['T','A'],['C','G'],['G','C'],['A','T']],
Sasa Popovic
@Zunior
Sep 29 2015 10:01
@theador0691 wait, here is my code
@theador0691
function pair(str) {

  /*var at = ["A","T"];
  var cg = ["C","G"];
  var finalni = [];

  splitted = str.split("");
  for(var i=0; i<splitted.length; i++) {
    if(at.indexOf(splitted[i])!==-1) {
      if(at.indexOf(splitted[i])==0){
      finalni.push(at);
      } else { finalni.push(at.reverse()); }
    } else if(cg.indexOf(splitted[i])!==-1) {
      if(cg.indexOf(splitted[i])===0) {
      finalni.push(cg);
      } else { finalni.push(cg.reverse()); }
    } else { return "Pogresan unos"; }
  }

  return finalni;*/

  var final = [];
    for (var i = 0; i < str.length; i++) {
        switch(str[i])
        {
            case "G":
                final.push([str[i],"C"]);
                break;
            case "C":
                final.push([str[i],"G"]);
                break;
            case "A":
                final.push([str[i],"T"]);
                break;
            case "T":
                final.push([str[i],"A"]);
                break;
        };
    }
    return final;
}

pair("GCG");
Andy Taylor
@theador0691
Sep 29 2015 10:02
@Zunior that did work just wish I had been able to figure it out :( but I understand your code at least
Ankit Panwar
@coderNoob
Sep 29 2015 10:05
When i use the openweather api for retrieving the temperature, it gives me a value like 307.4. I can't understand what unit is it in. It's way too high to be in F or C.
Example
@SaintPeter
Sasa Popovic
@Zunior
Sep 29 2015 10:07
@theador0691 If you dont like this rigged solution, you could put pair into temp array, and temp array in final array. That way you will get what is asked with real coding
@theador0691 Then you will have arrays in array
Andy Taylor
@theador0691
Sep 29 2015 10:08
@Zunior I will have a look and see if I can do it another, thanks for your help :)
CamperBot
@camperbot
Sep 29 2015 10:08
theador0691 sends brownie points to @zunior :sparkles: :thumbsup: :sparkles:
:star: 235 | @zunior | http://www.freecodecamp.com/zunior
puneet sharma
@puneetpaliha
Sep 29 2015 10:23
i have an issue with Basic Algorithm Scripting(4:Bonfire: Check for Palindromes) there is a challenge to prove that "0_0 (: /-\ :) 0-0" is palindrome but i think this cannot be palindrome
Coira Ellison
@Coira
Sep 29 2015 10:24
after you've removed all the punctuation it becomes a palindrome
puneet sharma
@puneetpaliha
Sep 29 2015 10:26
if i will take it like this "0_0 (: /-/ :( 0-0" then it can be
emoticon can be replaced by //:( and
i am not able to move forward because of this challenge
Coira Ellison
@Coira
Sep 29 2015 10:28
after you remove the punctuation you'll end up with 0000, which is a palindrome
and removed spaces
puneet sharma
@puneetpaliha
Sep 29 2015 10:34
ok thanks
CamperBot
@camperbot
Sep 29 2015 10:34
if you want to thank someone, put an @ before their name!
Alexandrix Ikechukwu
@SpaghettiThots
Sep 29 2015 10:45
Hello. Anyone done the Largest Number in Array exercise?
tva10
@tva10
Sep 29 2015 10:50
@IshMary Hello
I done that
Alexandrix Ikechukwu
@SpaghettiThots
Sep 29 2015 10:57
Ok @tva. Heer's my code so far.
I know it won't work yet but I'm kinda stumped.
function largestOfFour(arr) {
  // You can do this!
  biggest = arr[0][0];

  for(i = 0; i < arr.length; i++){
    for(d = 0; d < arr[i].length; d++){
      if(biggest > arr[i][d]){

      }
    }
  }
  for(n in arr[i]){

  }
  return arr;
}

largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]], "");
tva10
@tva10
Sep 29 2015 11:01
@IshMary Hm, so my way on this point is: Looking througth arr (loop or foreach) and for every finded array I use Math.max.apply(null, foundedArray);
and then I found max element in foundedArray I put them into tempArray via .push(max)
@IshMary It is because we need to return an array which consists from max values of each foundedArray.
[max_1,max_2,max_3,max_4]
@IshMary something brightened?
Aleksander Gębicki
@Takumar
Sep 29 2015 11:07
@IshMary I think that you can also try to make it in your way. In first loop you you loop through your 4 subarrays and in the second you'll find the largest element of each subarray and push() it to your temporary array which you return as the result of your function on the end.
Of course you can work on the problem trying to solve it as @tva10 told you.
@IshMary I can only propose that you assign your temporary biggest value inside your first loop and at the end of the loop you push it to your arr.
var biggest = 0;
for (var i =0 .... ) {
  biggest = arr[i][0];
  for (var d = 0 ....) { // here you will check if current element is bigger than biggest  and if is bigger you assing it to biggest variable
}
myMaxes.push(biggest); }
tva10
@tva10
Sep 29 2015 11:24
uhh, my comp. crashed(
thefacilitator
@thefacilitator
Sep 29 2015 11:25
Hi, I'm finishing off the Bring your JavaScript Slot Machine to Life waypoint. I'm not sure what it's asking me to do
It says to use the jQuery selector $(".slot") to select all of the slots, then use bracket notation to access each individual slot: $($(".slot")[0]).html(slotOne);
I'm not sure what it's actually asking me to write - can anyone advise?
tva10
@tva10
Sep 29 2015 11:26
@thefacilitator and what code you wrote there?
thefacilitator
@thefacilitator
Sep 29 2015 11:27
selector $(".slot") { $($(".slot")[0]).html(slotOne); $($(".slot")[0]).html(slotTwo); $($(".slot")[0]).html(slotThree); }
tva10
@tva10
Sep 29 2015 11:27
@thefacilitator so, First
you only updates [0] slot
x34passenger
@x34passenger
Sep 29 2015 11:28
how do you create the regex for "1_" where the underscore represents a space?
tva10
@tva10
Sep 29 2015 11:28
\s - spacechar ... @x34passenger
thefacilitator
@thefacilitator
Sep 29 2015 11:29
@tva10 Sorry, I'm not sure what you mean
x34passenger
@x34passenger
Sep 29 2015 11:29
@tva10 that does not seem to work for "123**&!!asdf#"
Michal
@michalzareba0001
Sep 29 2015 11:29

Help pls. Bonfire Mutations. It's not working with first test - rest is ok.
code
function mutation(arr) {
var one = arr[0].toLowerCase().split('');
var two = arr[1].toLowerCase().split('');
l=two.length;
for (i=0; i<l; i++){
if (one.indexOf(two[i]) === -1){
return false;
}
else {
return true;
}
}
}

mutation(["hello", "hey"], "");
code

Why???

CamperBot
@camperbot
Sep 29 2015 11:29
no wiki entry for: pls bonfire mutations its not working with first test - rest is ok codefunction mutationarr var one arr0tolowercasesplit var two arr1tolowercasesplit ltwolength for i0 il i if oneindexoftwoi -1 return false else return true mutationhello hey codewhy
:pencil: click here to create one now!after creating your page type update to reload it here
tva10
@tva10
Sep 29 2015 11:29
@x34passenger may be you need /(1\s)/ something like this? may be...
x34passenger
@x34passenger
Sep 29 2015 11:30
@tva10 tried that still doesn't work
Binny Kim
@removed~BinnyK
Sep 29 2015 11:30
help markdown
CamperBot
@camperbot
Sep 29 2015 11:30
no wiki entry for: markdown
:pencil: click here to create one now!after creating your page type update to reload it here
Binny Kim
@removed~BinnyK
Sep 29 2015 11:30
This message was deleted
This message was deleted
x34passenger
@x34passenger
Sep 29 2015 11:31
@tva10 have you done the Bonfire: Validate US Telephone?
tva10
@tva10
Sep 29 2015 11:31
@thefacilitator I mean in that task you need to set number for every slot. It looks like this $($(".slot")[0]).html(slotOne); for first slot, $($(".slot")[1]).html(slotTwo); for second slot etc.
@x34passenger yes
Binny Kim
@removed~BinnyK
Sep 29 2015 11:31
@michalzareba0001 Try and put your code between 3 backticks (```)
Manish Gupta
@mformanish
Sep 29 2015 11:31

function bouncer(arr) {
// Don't show a false ID to this bouncer.
var arr1 = arr.filter(filterinvalid);
return arr1;
}

function filterinvalid(obj){
if(typeof(obj) === 'number' || typeof(obj) ==='string' || !(typeof(obj) === 'boolean') || !(obj == null))
return true
else
return false;
}

bouncer([7, "ate", "", false, 9], "");

help
CamperBot
@camperbot
Sep 29 2015 11:31

Hi, I'm CamperBot! I can help you in this chatroom :smile:

Basic Commands:

  • find TOPIC find all entries about topic. ex: find js
  • wiki TOPIC show contents of topic page
  • thanks @username send brownie points to another user
  • about @username shows info on that user
  • bonfire BONFIRENAME info on a bonfire

:speech_balloon: meet CamperBot in this room!

:pencil: read more about camperbot on the FCC Wiki

Manish Gupta
@mformanish
Sep 29 2015 11:32
hint
CamperBot
@camperbot
Sep 29 2015 11:32
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
x34passenger
@x34passenger
Sep 29 2015 11:32
@tva10 "123&!!asdf#", I don't know how to return false, right now it is returning true, can you show me the regex that would just return false for "123&!!asdf#"?
@tva10 I don't need the regex for the others
thefacilitator
@thefacilitator
Sep 29 2015 11:33
@tva10 Okay, I had put selector $(".slot") in when it wasn't necessary - it works once I remove that line. Thanks!
CamperBot
@camperbot
Sep 29 2015 11:33
thefacilitator sends brownie points to @tva10 :sparkles: :thumbsup: :sparkles:
:star: 264 | @tva10 | http://www.freecodecamp.com/tva10
tva10
@tva10
Sep 29 2015 11:33
@x34passenger so then you need to return true?
x34passenger
@x34passenger
Sep 29 2015 11:33
@tva10 yes just for that condition
Manish Gupta
@mformanish
Sep 29 2015 11:33

function bouncer(arr) {
// Don't show a false ID to this bouncer.
var arr1 = arr.filter(filterinvalid);
return arr1;
}

function filterinvalid(obj){
if(typeof(obj) === 'number' || typeof(obj) ==='string' || !(typeof(obj) === 'boolean') || !(obj == null))
return true
else
return false;
}

bouncer([7, "ate", "", false, 9], "");

I need help with this
x34passenger
@x34passenger
Sep 29 2015 11:33
@tva10 no return false, right now it is returning treu
true
Binny Kim
@removed~BinnyK
Sep 29 2015 11:34
@mformanish put your code block between ```
Michal
@michalzareba0001
Sep 29 2015 11:34

Help pls. Bonfire Mutations. It's not working with first test - rest is ok.

function mutation(arr) {
  var one = arr[0].toLowerCase().split('');
  var two = arr[1].toLowerCase().split('');
  l=two.length;
  for (i=0; i<l; i++){
    if (one.indexOf(two[i]) === -1){
      return false;
    }
    else {
      return true;
    }
  }
}

mutation(["hello", "hey"], "");

Why???

CamperBot
@camperbot
Sep 29 2015 11:34
no wiki entry for: pls bonfire mutations its not working with first test - rest is ok function mutationarr var one arr0tolowercasesplit var two arr1tolowercasesplit ltwolength for i0 il i if oneindexoftwoi -1 return false else return true mutationhello hey why
:pencil: click here to create one now!after creating your page type update to reload it here
Binny Kim
@removed~BinnyK
Sep 29 2015 11:34
@michalzareba0001 One thing is you haven't declared what l is
Manish Gupta
@mformanish
Sep 29 2015 11:35

''' function bouncer(arr) {
// Don't show a false ID to this bouncer.
var arr1 = arr.filter(filterinvalid);
return arr1;
}

function filterinvalid(obj){
if(typeof(obj) === 'number' || typeof(obj) ==='string' || !(typeof(obj) === 'boolean') || !(obj == null))
return true
else
return false;
}

bouncer([7, "ate", "", false, 9], ""); '''

CamperBot
@camperbot
Sep 29 2015 11:35
:bulb: to format code use backticks! ``` more info
tva10
@tva10
Sep 29 2015 11:36
@x34passenger really don't know that you want now from it.... but try this one: /(\d\s)/g.test("123&!!asdf#");
Manish Gupta
@mformanish
Sep 29 2015 11:36

```
function bouncer(arr) {
// Don't show a false ID to this bouncer.
var arr1 = arr.filter(filterinvalid);
return arr1;
}

function filterinvalid(obj){
if(typeof(obj) === 'number' || typeof(obj) ==='string' || !(typeof(obj) === 'boolean') || !(obj == null))
return true
else
return false;
}

bouncer([7, "ate", "", false, 9], "");

tva10
@tva10
Sep 29 2015 11:36
@mformanish you can edit message
@mformanish and you need new line after ticks
@mformanish and end code this ticks too
Manish Gupta
@mformanish
Sep 29 2015 11:38
function bouncer(arr) {
  // Don't show a false ID to this bouncer.
  var arr1 =  arr.filter(filterinvalid);
  return arr1;
}

function filterinvalid(obj){
  if(typeof(obj) === 'number' || typeof(obj) ==='string' || !(typeof(obj) === 'boolean') || !(obj == null))
    return true
  else 
    return false;
}

bouncer([7, "ate", "", false, 9], "");
Thanks @tva10
CamperBot
@camperbot
Sep 29 2015 11:38
mformanish sends brownie points to @tva10 :sparkles: :thumbsup: :sparkles:
:star: 265 | @tva10 | http://www.freecodecamp.com/tva10
Manish Gupta
@mformanish
Sep 29 2015 11:39
````
Binny Kim
@removed~BinnyK
Sep 29 2015 11:40
@michalzareba0001 Ok I think I can see your problem there. You're function is RETURNING when first first letter of TWO matches the first letter of ONE. When it returns... the whole function stops. It does not keep looking for the second letter, then the third etc.
tva10
@tva10
Sep 29 2015 11:43
@x34passenger If you want to check special characters in your string you can try this !/[^0-9]/g.test("123asdasd"); or
@x34passenger or this one !/[^0-9\(\)]/g.test("(123)asd");
Binny Kim
@removed~BinnyK
Sep 29 2015 11:45
@michalzareba0001 You're basically there. Your loop should... Loop through each letter of TWO and check if is in ONE. If it isn't in there RETURN false... Otherwise (after the loop) return true. So that you're checking all the letters.
tva10
@tva10
Sep 29 2015 11:48
@x34passenger this checking whitespace characters !/[^0-9\(\)\s]/g.test("(123) 123123");
Michal
@michalzareba0001
Sep 29 2015 11:49
thx @BinnyK - I've got in now ;-)
CamperBot
@camperbot
Sep 29 2015 11:49
michalzareba0001 sends brownie points to @binnyk :sparkles: :thumbsup: :sparkles:
:star: 129 | @binnyk | http://www.freecodecamp.com/binnyk
Maddy
@maddymaster
Sep 29 2015 12:00
Hi can anyone help me with Waypoint: Specify How Fonts Should Degrade
html
I cant get the h2 font to degrade when google font Lobster is not available

Waypoint: Specify How Fonts Should Degrade
There are several default fonts that are available in all browsers. These include Monospace, Serif and Sans-Serif. Leave Lobster as the font-family for your h2 elements. Make them "degrade" to Monospace when Lobster isn't available.

For example, if you wanted an element to use the Helvetica font, but also degrade to the Sans-Serif font when Helvetica wasn't available, you could use this CSS style: p { font-family: Helvetica, Sans-Serif; }.

Now comment out your call to Google Fonts, so that the Lobster font isn't available. Notice how it degrades to the Monospace font.

Waypoint: Specify How Fonts Should Degrade
There are several default fonts that are available in all browsers. These include Monospace, Serif and Sans-Serif. Leave Lobster as the font-family for your h2 elements. Make them "degrade" to Monospace when Lobster isn't available.

For example, if you wanted an element to use the Helvetica font, but also degrade to the Sans-Serif font when Helvetica wasn't available, you could use this CSS style: p { font-family: Helvetica, Sans-Serif; }.

Now comment out your call to Google Fonts, so that the Lobster font isn't available. Notice how it degrades to the Monospace font.

The above is the challenge

Below is the code i need help in** <link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

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

h2 {
font-family: Lobster;

}

p {
font-size: 16px;
font-family: Monospace;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>**

tva10
@tva10
Sep 29 2015 12:02
@maddymaster Hello
Maddy
@maddymaster
Sep 29 2015 12:03
Hello @tva10
tva10
@tva10
Sep 29 2015 12:03
you need to write in h2 font-family using , which Fonts you want to use where
like this example p { font-family: Helvetica, Sans-Serif; }
Maddy
@maddymaster
Sep 29 2015 12:03
aaah okay let me try that
tva10
@tva10
Sep 29 2015 12:04
if Helvetica not avaliable it use Sans
Maddy
@maddymaster
Sep 29 2015 12:04
oh okay that helped thank you but I still cant move to the next lesson it says
CamperBot
@camperbot
Sep 29 2015 12:04
if you want to thank someone, put an @ before their name!
Maddy
@maddymaster
Sep 29 2015 12:04
Comment out your call to Google for the Lobster font by putting <!-- in front of it.
tva10
@tva10
Sep 29 2015 12:04
@maddymaster So try how it works, you can off Lobster if you comment your link tag
Maddy
@maddymaster
Sep 29 2015 12:04
@tva10 I still cant clear this challenge Comment out your call to Google for the Lobster font by putting <!-- in front of it.
tva10
@tva10
Sep 29 2015 12:05
<!--<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">-->
<style>
  .red-text {
    color: red;
  }
Aleksander Gębicki
@Takumar
Sep 29 2015 12:05
@maddymaster maybe you didn't closed the comment with -->?
Maddy
@maddymaster
Sep 29 2015 12:05
@tva10 that worked thank you
CamperBot
@camperbot
Sep 29 2015 12:05
maddymaster sends brownie points to @tva10 :sparkles: :thumbsup: :sparkles:
:star: 266 | @tva10 | http://www.freecodecamp.com/tva10
Maddy
@maddymaster
Sep 29 2015 12:07
@Takumar thats right. I missed on that one too and @tva10 thank you so much for helping I am on to the next lesson
CamperBot
@camperbot
Sep 29 2015 12:07
maddymaster sends brownie points to @takumar and @tva10 :sparkles: :thumbsup: :sparkles:
:warning: maddymaster already gave tva10 points
:star: 365 | @takumar | http://www.freecodecamp.com/takumar
Aleksander Gębicki
@Takumar
Sep 29 2015 12:08
@maddymaster next time please put your code like @tva10 did - it is much easier to read. You can do that by adding three ticks (```) before and after your code.
tva10
@tva10
Sep 29 2015 12:08
help formatting
CamperBot
@camperbot
Sep 29 2015 12:08

:point_right: code formatting [wiki]

Inline code

This an inline `<paste code here>` code formatting with a single backtick(`) at start and end around the code.

Code Block

```js ⇦ Type 3 backticks, then type js or html and then press [shift + enter ⏎]

<paste your code here>,
then press [shift + enter ⏎]

``` ⇦ Type 3 backticks, then press [enter ⏎]

See also: ☛ How to type Backticks | ☯ Compose Mode | ❄ Gitter Formatting Basics

:pencil: read more about code formatting on the FCC Wiki

Aleksander Gębicki
@Takumar
Sep 29 2015 12:09
@tva10 full service :-)
givepizza @tva10
tva10
@tva10
Sep 29 2015 12:10
so Thanks to @camperbot
CamperBot
@camperbot
Sep 29 2015 12:10
tva10 sends brownie points to @camperbot :sparkles: :thumbsup: :sparkles:
:star: 279 | @camperbot | http://www.freecodecamp.com/camperbot
Aleksander Gębicki
@Takumar
Sep 29 2015 12:10
Hmm, there's no pizza left...
tva10
@tva10
Sep 29 2015 12:11
@Takumar pizza bot sleeps :zzz:
Aleksander Gębicki
@Takumar
Sep 29 2015 12:12
It seems so.
Jonathan Coleman
@jondcoleman
Sep 29 2015 12:14
botstatus
CamperBot
@camperbot
Sep 29 2015 12:14
All bot systems are go!
botVersion: 0.0.11
env: prod
botname: camperbot
Jonathan Coleman
@jondcoleman
Sep 29 2015 12:15
pbotstatus
pbot
Maddy
@maddymaster
Sep 29 2015 12:18
okay @Takumar I will do that. Thank you for the Tip. I am new to this. :smile:
CamperBot
@camperbot
Sep 29 2015 12:18
maddymaster sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:warning: maddymaster already gave takumar points
Marcus Eisele
@eiselems
Sep 29 2015 12:34
Just wrapped my head around using the MEAN stack. Can anybody verify if my toughs are correct?
With the MEAN stack, you build a nodeJS app using expressJS (mainly to define the routes), AngularJS is used to connect a Frontend to the Express REST API. As database MongoDB is used.
Ashley Drake
@aldraco
Sep 29 2015 12:37
@eiselems looks good! :)
some more understanding questions: How do you get the data out of the MongoDB? i.e. What do you use to interact with the database?
Marcus Eisele
@eiselems
Sep 29 2015 12:38
Sometimes it is pretty hard to get the big picture when learning everything independent
Ashley Drake
@aldraco
Sep 29 2015 12:38
agreed
it's really helpful to understand how things relate to one another
Marcus Eisele
@eiselems
Sep 29 2015 12:39
gut feeling says the server component should encapsulate access to the DB
:D
=> somewhere inside the express routes
Ashley Drake
@aldraco
Sep 29 2015 12:41
very close - the server component (node/express app) is the part that accesses the DB, and you fetch the data in the controllers
CamperBot
@camperbot
Sep 29 2015 12:41
:trollface: troll problems? notify admins here
ustafurkn
@ustafurkn
Sep 29 2015 12:41
This message was deleted
CamperBot
@camperbot
Sep 29 2015 12:41
:bulb: to format code use backticks! ``` more info
Ashley Drake
@aldraco
Sep 29 2015 12:41
@eiselems the routes that you specify in Express will call controller functions, though, so they are very closely related
CamperBot
@camperbot
Sep 29 2015 12:41
:trollface: troll problems? notify admins here
Ashley Drake
@aldraco
Sep 29 2015 12:41
haha camperbot
tva10
@tva10
Sep 29 2015 12:42
troll?
CamperBot
@camperbot
Sep 29 2015 12:42
:trollface: troll problems? notify admins here
Marcus Eisele
@eiselems
Sep 29 2015 12:42
that con-troller is everywhere :D
CamperBot
@camperbot
Sep 29 2015 12:42
:trollface: troll problems? notify admins here
Marcus Eisele
@eiselems
Sep 29 2015 12:43
well i see. I know MVC approaches from other languages so this shouldn't be a major problem :) thought you wanted to check if i try to access data from the client :D
tva10
@tva10
Sep 29 2015 12:43
@eiselems heh
ustafurkn
@ustafurkn
Sep 29 2015 12:43
i need help , who can help me ?
Ashley Drake
@aldraco
Sep 29 2015 12:44
bahaha the trolls is hilarious
CamperBot
@camperbot
Sep 29 2015 12:44
:trollface: troll problems? notify admins here
ustafurkn
@ustafurkn
Sep 29 2015 12:44
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<h2 class="red-text">CatPhotoApp</h2>


<style>
  .red-text {
    font-family: Lobster
  }

</style>





<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

<style>

  p {
        font-family: Monospace;
  }
</style>
i didnt pass " Your p element should still use the font Monospace."
Ashley Drake
@aldraco
Sep 29 2015 12:44
@eiselems oh, nice. sounds like you'll be fine :)
@ustafurkn CSS stands for 'cascading style sheet', and it typically evaluates things in order, hence the term 'cascade'
so if you define something at the top of a file, and then change it later in the file, the last definition will be the final version
Marcus Eisele
@eiselems
Sep 29 2015 12:45
@aldraco sounds like you have already completed a big portion of FCC, have you had any contact with the meteor framework?
Ashley Drake
@aldraco
Sep 29 2015 12:46
however, here, you've got two style tags, and I'm wondering if because you did the monospace font later, it's not applying to the HTML in between
@eiselems only a passing glance at the docs, but it looks pretty interesting
Jonathan Coleman
@jondcoleman
Sep 29 2015 12:47
@ustafurkn this will work
<style>
  p.red-text {
    font-family: Monospace;
  }

  .red-text {
    font-family: Lobster;
  }

</style>
tva10
@tva10
Sep 29 2015 12:48
@jondcoleman @ustafurkn this will work too
<style>
  .red-text {
    font-family: Lobster;
  }
  p {
    font-family: Monospace;
  }

</style>
Marcus Eisele
@eiselems
Sep 29 2015 12:55
@aldraco ok fine ;) thanks for your time
CamperBot
@camperbot
Sep 29 2015 12:55
eiselems sends brownie points to @aldraco :sparkles: :thumbsup: :sparkles:
:star: 226 | @aldraco | http://www.freecodecamp.com/aldraco
Ashley Drake
@aldraco
Sep 29 2015 12:55
@eiselems sure - enjoy MEAN stack. you working with Meteor as well?
Marcus Eisele
@eiselems
Sep 29 2015 12:58
@aldraco more and more converted to a frontend developer at my current workplace. With meteor i only looked at the docs and was wondering how it compares to the MEAN stack
Blauelf
@Blauelf
Sep 29 2015 12:58
@tva10 As .red-text is more specific than p, a <p class="red-text"> would still be Lobster. Is this what you intended?
Ashley Drake
@aldraco
Sep 29 2015 12:58
@eiselems oh cool!
Marcus Eisele
@eiselems
Sep 29 2015 12:59
Have a JavaEE background and recently had to write a webapp based on bootstrap/jquery with a python backend
Ashley Drake
@aldraco
Sep 29 2015 12:59
@eiselems as far as I understand, the main difference is how the back and front ends are wired together, there's a lot closer relationship between the two. I couldn't realiably explain more than that, though
nice
Marcus Eisele
@eiselems
Sep 29 2015 13:01
yeah think you often have to extend the MEAN stack with socket.io and meteor gives you that for 'free'
tva10
@tva10
Sep 29 2015 13:02
@Blauelf so Nope, I m forgot that redText class redefined fontFamily
Blauelf
@Blauelf
Sep 29 2015 13:05
Well, it shouldn't. At least not for the waypoint.
tva10
@tva10
Sep 29 2015 13:06
Of course
kaubin05
@kaubin05
Sep 29 2015 13:13
Hello
tva10
@tva10
Sep 29 2015 13:13
Hello @kaubin05
kaubin05
@kaubin05
Sep 29 2015 13:14
I was wondering if I could get some advice. I am on the twitch tv api exercise, and one my functions isn't returning what I expect, and I don't understand why...
How do I post code in that code box thing?
tva10
@tva10
Sep 29 2015 13:17
help formatting
CamperBot
@camperbot
Sep 29 2015 13:17

:point_right: code formatting [wiki]

Inline code

This an inline `<paste code here>` code formatting with a single backtick(`) at start and end around the code.

Code Block

```js ⇦ Type 3 backticks, then type js or html and then press [shift + enter ⏎]

<paste your code here>,
then press [shift + enter ⏎]

``` ⇦ Type 3 backticks, then press [enter ⏎]

See also: ☛ How to type Backticks | ☯ Compose Mode | ❄ Gitter Formatting Basics

:pencil: read more about code formatting on the FCC Wiki

kaubin05
@kaubin05
Sep 29 2015 13:20

Thank you. Here is the skeleton of the function I am working on now to get the status of the users, but it doesn't return the status. It works when I set it to giving me an alert or console logging the response, but I want to use the result in another function after...

```

CamperBot
@camperbot
Sep 29 2015 13:20
if you want to thank someone, put an @ before their name!
Aleksander Gębicki
@Takumar
Sep 29 2015 13:21
@kaubin05 very simple skeleton.
Just kidding ;-) You have to switch to compose mode to write longer texts. To the right you should see small keyboard.
kaubin05
@kaubin05
Sep 29 2015 13:22
var getStatus = function(name){
  this.name = name;
  var status = "";
  var url = 'https://api.twitch.tv/kraken/streams/';

$.getJSON(url + name + '?callback=?', function(data) {
  console.log(data)
  if(data.stream === null){
    status = "offline"
  }
  else{
    status = "online"
  }
});
  return status;
};
ah, got it! :D
I am hoping this will return either offline or online
tva10
@tva10
Sep 29 2015 13:23
@kaubin05 so try
to remove Callback
if you send to link like this https://api.twitch.tv/kraken/streams/kamiyu666
you got json
$.getJSON(url + name, function(data) {
  console.log(data)
  if(data.stream === null){
kaubin05
@kaubin05
Sep 29 2015 13:27
so I have the json, now I can use the data from it, right?
@tva10
tva10
@tva10
Sep 29 2015 13:28
@kaubin05 may be.... If you want
kaubin05
@kaubin05
Sep 29 2015 13:33
@tva10 I want to get a string saying "online" or "offline" depending on if the json.stream object is null or not, so I can later append the result to my html.
by removing the callback, do you mean for the anonymous function?
tva10
@tva10
Sep 29 2015 13:35
@kaubin05 I mean then you access https://api.twitch.tv/kraken/streams/kamiyu666?callback=? you got exception Bad Request
@kaubin05 now If you have Json you can parse It
and check stream to null or not to null
But I really think that your function with return status will not work
beacuse Ajax is async and you can got the answer after Minute
I Prefer this model....
var getStatus = function(name, callback){
  this.name = name;
  var status = "";
  var url = 'https://api.twitch.tv/kraken/streams/';

$.getJSON(url + name , function(data) {
  console.log(data)
  if(data.stream === null){
    callback( "offline");
  }
  else{
    callback("online");
  }
});
};
kaubin05
@kaubin05
Sep 29 2015 13:39
@tva10 That is correct, it doesn't work, but I do get the json in my console log. Kamiyu666 is streaming at the moment as well. So I should learn how to parse it now?
EngineeredEdge
@EngineeredEdge
Sep 29 2015 13:40
Hola everyone
tva10
@tva10
Sep 29 2015 13:40
for first time try to console.log('offline')
@EngineeredEdge Hello
@kaubin05 on my code it looks like this getStatus('kamiyu666', console.log);
it should work
EngineeredEdge
@EngineeredEdge
Sep 29 2015 13:41
I have a question about label elements and radio buttons
tva10
@tva10
Sep 29 2015 13:42
@EngineeredEdge Okay write your problem here
kaubin05
@kaubin05
Sep 29 2015 13:42
@tva10 ah, I will give that a try. At the moment I get errors
EngineeredEdge
@EngineeredEdge
Sep 29 2015 13:46
kaubin05
@kaubin05
Sep 29 2015 13:49

@tva10 I have an error
'''
Uncaught TypeError: Illegal invocation(anonymous function) @ pen.js:28n.Callbacks.j @ jquery.js:3094n.Callbacks.k.fireWith @ jquery.js:3206x @ jquery.js:8259n.ajaxTransport.k.cors.a.crossDomain.send.b @ jquery.js:8600

'''

I copied the function as you wrote it and invoked it with getStatus('kamiyu666', console.log)

CamperBot
@camperbot
Sep 29 2015 13:49
:bulb: to format code use backticks! ``` more info
tva10
@tva10
Sep 29 2015 13:51
@kaubin05 umm so may be I'm wrong. try this getStatus('kamiyu666', function(d){console.log(d);});
@kaubin05 Does it works or even other exception?
kaubin05
@kaubin05
Sep 29 2015 13:55
@tva10 That seems to have worked in the console log. Thanks a lot. I think I will try to take a rest and try it from here tomorrow. I think I know what to google for now :D
CamperBot
@camperbot
Sep 29 2015 13:55
kaubin05 sends brownie points to @tva10 :sparkles: :thumbsup: :sparkles:
:star: 267 | @tva10 | http://www.freecodecamp.com/tva10
tva10
@tva10
Sep 29 2015 13:56
@kaubin05 next step now is add in that call back function (there is console log) changin html
kaubin05
@kaubin05
Sep 29 2015 13:56
@tva10 it displays it in the console.log, now I just need to find out how to push it out as a string. I am still kind of new at this, but it's a place to start
tva10
@tva10
Sep 29 2015 13:56
@kaubin05 no problem
getStatus('kamiyu666', function(d){
   console.log(d);
   $(...)....html(d);
});
@kaubin05 I think you also need to update your html there in Callback
Sorry for broken English, if where it is not clear
kaubin05
@kaubin05
Sep 29 2015 13:59
@tva10 in the original function?
tva10
@tva10
Sep 29 2015 14:00
@kaubin05 in getStatus callback
this way can change html immediately when answer will come
kaubin05
@kaubin05
Sep 29 2015 14:01
@tva10 ah, that makes sense! That way I can save a step!
tva10
@tva10
Sep 29 2015 14:01
@kaubin05 may be....
Heh I did not start doing this ziplines
but know anything about this
EngineeredEdge
@EngineeredEdge
Sep 29 2015 14:03
is convention to put binary HTML attributes at the end?
kaubin05
@kaubin05
Sep 29 2015 14:03
@tva10 I will try it out tomorrow. I now have a new lead which is perfect! Thanks a lot again. I will comeback and let you know how it went :p
CamperBot
@camperbot
Sep 29 2015 14:03
kaubin05 sends brownie points to @tva10 :sparkles: :thumbsup: :sparkles:
:warning: kaubin05 already gave tva10 points
tva10
@tva10
Sep 29 2015 14:03
@kaubin05 Okay I want to see result
kaubin05
@kaubin05
Sep 29 2015 14:03
goodnight
tva10
@tva10
Sep 29 2015 14:04
@kaubin05 goodnight to you. But there is evening in Russia
@EngineeredEdge may be... I don't read convention
Abhisek Pattnaik
@abhisekp
Sep 29 2015 14:23
@jondcoleman @tva10 I guess pbot is in the main ch. only.
or maybe it's really sleeping :sleeping: :zzz:
Jonathan Coleman
@jondcoleman
Sep 29 2015 14:24
givepizza @abhisekp
looks like main channel only
Abhisek Pattnaik
@abhisekp
Sep 29 2015 14:25
@jondcoleman yep!
Abhisek Pattnaik
@abhisekp
Sep 29 2015 14:30
This message was deleted
John
@cookie-troll
Sep 29 2015 14:41
hello, could you please help me? What is the symmetric difference of these arrays: [1, 2, 5], [2, 3, 5], [3, 4, 5]?
Shair Mir
@ShairMir
Sep 29 2015 14:42
bf factorialize
CamperBot
@camperbot
Sep 29 2015 14:42
Sorry, can't find a bonfire called factorialize hint. [ Check the map? ]
Shair Mir
@ShairMir
Sep 29 2015 14:42
bf factorialize
CamperBot
@camperbot
Sep 29 2015 14:42

:fire:Bonfire: Factorialize a Number :link:

function factorialize(num) {
  return num;
}

factorialize(5);

Return the factorial of the provided integer.

more info:  bf details | bf links | hint

Shair Mir
@ShairMir
Sep 29 2015 14:42
hint
CamperBot
@camperbot
Sep 29 2015 14:42
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
tva10
@tva10
Sep 29 2015 14:44
@cookie-troll [1,5,4]
CamperBot
@camperbot
Sep 29 2015 14:44
:trollface: troll problems? notify admins here
John
@cookie-troll
Sep 29 2015 14:50
thanks
CamperBot
@camperbot
Sep 29 2015 14:50
if you want to thank someone, put an @ before their name!
Jessica Davis
@jessieinsidecode
Sep 29 2015 15:09
Hey y'all good morning!
Ashley Drake
@aldraco
Sep 29 2015 15:11
morning :)
Paul Simon Ongpin
@mochiii
Sep 29 2015 15:11

Can I get a feedback on my footers from my works i dont know if the footers are sticked to bottom on large screen resolutions. please check it for me pls. View it at full page. Thank you.

links: http://codepen.io/mochiii/full/PPPKjK
http://codepen.io/mochiii/full/EVNYPd
http://codepen.io/mochiii/full/XmKpVp

CamperBot
@camperbot
Sep 29 2015 15:11
if you want to thank someone, put an @ before their name!
Jessica Davis
@jessieinsidecode
Sep 29 2015 15:11
I need help with the waypoint "Javascript Modify Array Data with Indexes"

var ourArray = [1,2,3];
ourArray[1] = 3;
// ourArray[1] now equals [1,3,3].
var myArray = [1,2,3];
// Only change code below this line.
var myArray =[3,2,3];
ourArray [2]=3;
var myArray = [3,2,3];
myArray = //Can anyone help!!! Thanks!

// Only change code above this line.
// We use this function to show you the value of your variable in your output box.
// You'll learn about functions soon.
if(typeof(myArray) !== "undefined"){(function(){return myArray;})();}

CamperBot
@camperbot
Sep 29 2015 15:11
if you want to thank someone, put an @ before their name!
Ashley Drake
@aldraco
Sep 29 2015 15:12
@jessieinsidecode OK, what part do you need help with?
Jessica Davis
@jessieinsidecode
Sep 29 2015 15:12
This is the problem! I put in the var myArray =[3,2,3}; but I can't get the second portion of it
I believe I have to get it to equal the value of 3
tva10
@tva10
Sep 29 2015 15:13
@jessieinsidecode "Now modify the data stored at index 0 of myArray to the value of 3."
@jessieinsidecode it looks like ourArray[0] = 1;
but for myArray
and also you even have defined myArray... it is before comments
Jessica Davis
@jessieinsidecode
Sep 29 2015 15:15
so it would be ourArray [0] = 1; my Array [3,2,3];
tva10
@tva10
Sep 29 2015 15:16
@jessieinsidecode it would be myArray[0]=3;
if you will reset task
Jessica Davis
@jessieinsidecode
Sep 29 2015 15:16
okay let me go try it over....brb!
Maddy
@maddymaster
Sep 29 2015 15:19

I am not able to get through the task that says "Your image should have a src attribute that points to the kitten image. here is my code, can I please get some help in knowing what I am missing to move onto the next waypoint? '' <link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

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

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>
<img src ="https://s3.amazonaws.com/freecodecamp/relaxing-cat.jpg" alt="cat" ; >

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
""

tva10
@tva10
Sep 29 2015 15:20
@maddymaster help formatting
help formatting
CamperBot
@camperbot
Sep 29 2015 15:20

:point_right: code formatting [wiki]

Inline code

This an inline `<paste code here>` code formatting with a single backtick(`) at start and end around the code.

Code Block

```js ⇦ Type 3 backticks, then type js or html and then press [shift + enter ⏎]

<paste your code here>,
then press [shift + enter ⏎]

``` ⇦ Type 3 backticks, then press [enter ⏎]

See also: ☛ How to type Backticks | ☯ Compose Mode | ❄ Gitter Formatting Basics

:pencil: read more about code formatting on the FCC Wiki

ustafurkn
@ustafurkn
Sep 29 2015 15:20
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .smaller-image {
    width: 100px;
  }
  .thin-green-border { 
    border-color: green;
    border-width: 10px; 
    border-style: solid; }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<img class="smaller-image" src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
i sould do "Your img element should have the class thick-green-border.
Give your image a border width of 10px.
Give your image a border style of solid.
The border around your img element should be green."
Maddy
@maddymaster
Sep 29 2015 15:20
oh okay
got it!
Jessica Davis
@jessieinsidecode
Sep 29 2015 15:21
hmmmm, i don't know!
tva10
@tva10
Sep 29 2015 15:21
@ustafurkn add to your image this class using whitespace.... <img class='className1 className2 ...'>
Maddy
@maddymaster
Sep 29 2015 15:21
Thank you @ustafurkn :smile:
CamperBot
@camperbot
Sep 29 2015 15:21
maddymaster sends brownie points to @ustafurkn :sparkles: :thumbsup: :sparkles:
:star: 19 | @ustafurkn | http://www.freecodecamp.com/ustafurkn
ustafurkn
@ustafurkn
Sep 29 2015 15:22
okey i will try
tva10
@tva10
Sep 29 2015 15:22
@jessieinsidecode
var myArray = [1,2,3];
// Only change code below this line.
myArray[0]=3;

// Only change code above this line.
ustafurkn
@ustafurkn
Sep 29 2015 15:22
should i add the code in style ?
tva10
@tva10
Sep 29 2015 15:23
@ustafurkn in style tag you already hav thin-green-border class
@ustafurkn add it to your image
Jessica Davis
@jessieinsidecode
Sep 29 2015 15:25
@tva10 yeah, i put it in and its not working......
ustafurkn
@ustafurkn
Sep 29 2015 15:25
@tva10 i didnt do
SadiqueManzar
@SadiqueManzar
Sep 29 2015 15:25
<style>
<h2 style="color: blue">CatPhotoApp</h2>
</style>
help me out
CamperBot
@camperbot
Sep 29 2015 15:26
no wiki entry for: me out
:pencil: click here to create one now!after creating your page type update to reload it here
SadiqueManzar
@SadiqueManzar
Sep 29 2015 15:26
new in html
tva10
@tva10
Sep 29 2015 15:26
@ustafurkn
<img class="smaller-image thin-green-border" src="https://bit.ly/fcc-relaxing-cat">
@jessieinsidecode than exception does it write?
SadiqueManzar
@SadiqueManzar
Sep 29 2015 15:27
Remove the style attribute from your h2 element.
Create a style element.
Your h2 element should be blue.
Make sure all your style elements are valid and have a closing tag.
can any one help me to code this html
tva10
@tva10
Sep 29 2015 15:28
@SadiqueManzar look upper, there is one example
of using <style>
Aleksander Gębicki
@Takumar
Sep 29 2015 15:31
@SadiqueManzar I think that you look at an example not instruction. Shouldn't you make your <h2> header red? Maybe that's the reason why you cannot finish waypoint?
tinako97
@tinako97
Sep 29 2015 15:31
Hello. I'm doing the node package manager unit. I am stuck on adding a repository field to the package.json file.
ustafurkn
@ustafurkn
Sep 29 2015 15:32
@tva10 i do now , Your img element should have the class thick-green-border.
Give your image a border width of 10px. problem
tinako97
@tinako97
Sep 29 2015 15:32
{
  "name": "@tinako97/mydir",
  "version": "1.0.0",
  "description": "I don't know what this is",
  "main": "index.js",
  "scripts": {
    "test": "node test.js"
  },
  "keywords": [
    "test"
  ],
  "author": "tina",
  "license": "ISC",
  "dependencies": {
    "@linclark/pkg": "^1.0.2"
  },
  "devDependencies": {},
  "repository:": "https://ide.c9.io/tinako97/my-workspace-2"
}
I have no idea what the url is supposed to be. Is my syntax correct?
Wollfang Chipin
@thironechipin
Sep 29 2015 15:32
Hey someone: "The .parent() method should be called on the #target1 element." I am stuck with this
Jason Wood
@catapixel
Sep 29 2015 15:34
@tinako97 yes, that is how you do it but sometimes there is some "extra" syntax depending on where the repo is located. Github would be an example of this.
SadiqueManzar
@SadiqueManzar
Sep 29 2015 15:35
No idea
not able to do it
Ashley Drake
@aldraco
Sep 29 2015 15:35
there's a slightly different URL for what you would visit in your browser to view the code on github, and the URI you would put into git to clone the repo
SadiqueManzar
@SadiqueManzar
Sep 29 2015 15:35
h2 element to blue
Jason Wood
@catapixel
Sep 29 2015 15:35
@tinako97 Also, that unit is REALLY quirky so don't be afraid to skip some of the parts if they don't work for you...especially toward the end...
Ashley Drake
@aldraco
Sep 29 2015 15:35
you'll want the one that ends with .git probably for github
SadiqueManzar
@SadiqueManzar
Sep 29 2015 15:36
<style>h2 {color: blue;}</style>
Aleksander Gębicki
@Takumar
Sep 29 2015 15:36
@SadiqueManzar which waypoint it is? I will look at instruction.
Paul Simon Ongpin
@mochiii
Sep 29 2015 15:36
Hi! Can I get a feedback on my footers from my 3 works i dont know if the footers are sticked to bottom on large screen resolutions. please check it for me pls. View it at full page. Thank you. http://codepen.io/mochiii/
SadiqueManzar
@SadiqueManzar
Sep 29 2015 15:36
Waypoint: Use CSS Selectors to Style Elements
tinako97
@tinako97
Sep 29 2015 15:36
@aldraco @catapixel My code doesn't "reside" anywhere. There is no code that I know of. I'm just following the tutorial, having mostly no idea what it's about. What do you suppose they want me to put here? Or should I just skip it as you suggest?
SadiqueManzar
@SadiqueManzar
Sep 29 2015 15:37
@Takumar Waypoint: Use CSS Selectors to Style Elements
tva10
@tva10
Sep 29 2015 15:37
@ustafurkn hm I looking for it.... it should be done, but may be testcase broken...
Jason Wood
@catapixel
Sep 29 2015 15:37
@tinako97 mine didn't either but I used a fake github location...mine solution looked like this:
{
  "name": "npm-tutorial",
  "version": "1.0.2",
  "description": "My first npm project",
  "main": "index.js",
  "scripts": {
    "test": "node test.js"
  },
  "repository": {
    "type": "git",
    "url": "http://www.github.com"
  },
  "author": "Jason C. Wood",
  "license": "ISC",
  "dependencies": {
  },
  "devDependencies": {}
}
Ashley Drake
@aldraco
Sep 29 2015 15:37
@tinako97 it's referring to a github repo :) if you don't have one, don't worry about it
Jason Wood
@catapixel
Sep 29 2015 15:37
@tinako97 you see that the repo needed the "type" piece to pass
Scott Miller
@ScottMillerWesCoas
Sep 29 2015 15:38
Hi, everyone! I'm having a little javascript trouble, I need to reverse this:

function reverseString(str) {

reverseString("hello", "");

Ashley Drake
@aldraco
Sep 29 2015 15:38
when you use git commands like git clone or git push, it uses a URI internally to push that code to your repo. It usually ends with .git
Jason Wood
@catapixel
Sep 29 2015 15:38
@ScottMillerWesCoas you can only use the reverse method on an array. You need to convert it, reverse it, then convert it back
Scott Miller
@ScottMillerWesCoas
Sep 29 2015 15:39
I did this, but it's not quite right:
reverseString("hello", "");
var array = reverseString.split(' ');
array = array.reverse();
array = array.join();
return array;
thanks, @catapixel!
CamperBot
@camperbot
Sep 29 2015 15:39
scottmillerwescoas sends brownie points to @catapixel :sparkles: :thumbsup: :sparkles:
:star: 396 | @catapixel | http://www.freecodecamp.com/catapixel
Ashley Drake
@aldraco
Sep 29 2015 15:39
@ScottMillerWesCoas check the MDN articles for what each of those functions do :)
some of them return a new array, some do the work in place
that will help you debug what is happening at each step
Aleksander Gębicki
@Takumar
Sep 29 2015 15:40

@SadiqueManzar so in this waypoint you have to remove inline styling and add styling above the HTML code. You already wrote good code:

<style>
  h2 {color: blue;}
</style>
<h2>Some blue text</h2>

Maybe you haven't removed inline style and have something like that: <h2 style="color: blue">?

Jason Wood
@catapixel
Sep 29 2015 15:40
@ScottMillerWesCoas ^ you're not including all of the pieces you need when you're using your methods. You need to recheck the documentation
tinako97
@tinako97
Sep 29 2015 15:40
@aldraco @catapixel Thank you!
CamperBot
@camperbot
Sep 29 2015 15:40
tinako97 sends brownie points to @aldraco and @catapixel :sparkles: :thumbsup: :sparkles:
:star: 229 | @aldraco | http://www.freecodecamp.com/aldraco
:star: 397 | @catapixel | http://www.freecodecamp.com/catapixel
Moisés Man
@moigithub
Sep 29 2015 15:40
@ScottMillerWesCoas
reverseString("hello", ""); this is a test example how u call ur function...
all ur code should be INSIDE the function
to split on characters u need to pass an empty string "" <-- no spaces
join also needs an argument else it will default to comma ","
console.log( ...... ) help to debug ur code to check whats missing.. or what u need to change/fix
if u dont like devtools.. u could use http://repl.it ( or any other online tools )
Scott Miller
@ScottMillerWesCoas
Sep 29 2015 15:41
@aldraco - should I just google MDN articles? I dunno what that means...
SadiqueManzar
@SadiqueManzar
Sep 29 2015 15:41
@Takumar thnx got it
CamperBot
@camperbot
Sep 29 2015 15:41
sadiquemanzar sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 368 | @takumar | http://www.freecodecamp.com/takumar
Ashley Drake
@aldraco
Sep 29 2015 15:41
@ScottMillerWesCoas check the bonfire itself, it should have some MDN links on it
Scott Miller
@ScottMillerWesCoas
Sep 29 2015 15:41
thanks!
CamperBot
@camperbot
Sep 29 2015 15:41
if you want to thank someone, put an @ before their name!
Ashley Drake
@aldraco
Sep 29 2015 15:41
if not, yes, google 'MDN javascript array _' and replace iwth the method you want information about
MDN is very helpful
Scott Miller
@ScottMillerWesCoas
Sep 29 2015 15:42
thanks, @aldraco
CamperBot
@camperbot
Sep 29 2015 15:42
scottmillerwescoas sends brownie points to @aldraco :sparkles: :thumbsup: :sparkles:
:star: 230 | @aldraco | http://www.freecodecamp.com/aldraco
Jessica Davis
@jessieinsidecode
Sep 29 2015 15:44
w3schools!
okay its still not working! I have earthly idea how to get the second part of this javascript waypoint! ugh this is so frustrating!
tva10
@tva10
Sep 29 2015 15:48
@ustafurkn Hey. really I don't know what happens. But there is an issue with this task: https://github.com/FreeCodeCamp/FreeCodeCamp/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+Add+Borders
Mateja Trifunovski
@Matko95
Sep 29 2015 15:49
@jessieinsidecode what doesn't work?
Jessica Davis
@jessieinsidecode
Sep 29 2015 15:52
@Matko95 so I typed in var myArray = [3,2,3]; which is right, so now I have to set it equal to 3 so i typed in var myArray [0] =3; but that didn't work then I tried var myArray = [3]=3; which I know isn't right! I'm still stuck!
Mateja Trifunovski
@Matko95
Sep 29 2015 15:53
@jessieinsidecode is it this waypoint? Waypoint: Access Array Data with Indexes
Jessica Davis
@jessieinsidecode
Sep 29 2015 15:57
@Matko95 Yes, the Modify Access Array Data with Indexes
Mateja Trifunovski
@Matko95
Sep 29 2015 15:57
@jessieinsidecode try this
var myArray = [1,2,3];

myArray[0]=3;
Joanna Katsifaraki
@Jojokats
Sep 29 2015 15:58
Hi everyone, can someone please explain this code:
function factorialize(num) {
if (num === 0 || num == 1) { return 1; }
return num * factorialize(num-1);
} why (num-1)
Blauelf
@Blauelf
Sep 29 2015 15:58
var is function scope, so something declared by var once can be used anywhere in the current function (and inner functions). You wouldn't declare individual array elements by var, though. You want to declare myArray once (maybe with an assignment), and use it without var later.
@Jojokats It's the recursive definition of the factorial. n!=n * (n-1)!
Joanna Katsifaraki
@Jojokats
Sep 29 2015 15:59
Hi @Blauelf , I will try to understand what you wrote...
Jessica Davis
@jessieinsidecode
Sep 29 2015 16:00
@Matko95 it says "left side of assignment is not a reference"
Joanna Katsifaraki
@Jojokats
Sep 29 2015 16:00
@Blauelf why n-1 ???
Blauelf
@Blauelf
Sep 29 2015 16:01
Because it's the formula. 4!=4 3!=4 3 2!=4 3 2 1
Mateja Trifunovski
@Matko95
Sep 29 2015 16:01
@jessieinsidecode could you post the full code?
Joanna Katsifaraki
@Jojokats
Sep 29 2015 16:02
@Blauelf isn't the formula: 5! = 1 2 3 4 5
Mateja Trifunovski
@Matko95
Sep 29 2015 16:02
@Jojokats that is what he wrote
@Jojokats only step by step
Joanna Katsifaraki
@Jojokats
Sep 29 2015 16:02
1(x)2(x)3(x)4(x)5
Uhhh I don't get it :(
JackSparrowthethird
@JackSparrowthethird
Sep 29 2015 16:03
hi is _ the only expression that is excluded from /\W\?
besides [a-zA-Z0-9]
Joanna Katsifaraki
@Jojokats
Sep 29 2015 16:03
@Matko95 only step by step?
Blauelf
@Blauelf
Sep 29 2015 16:04
\w is [0-9a-zA-Z_] plus any language specific additions (our nice German umlauts for example! äöü), \W is what is not \w.
Joanna Katsifaraki
@Jojokats
Sep 29 2015 16:04
@Blauelf can you refer me to a good article...
JackSparrowthethird
@JackSparrowthethird
Sep 29 2015 16:05
@Blauelf Thank you very much!
CamperBot
@camperbot
Sep 29 2015 16:05
jacksparrowthethird sends brownie points to @blauelf :sparkles: :thumbsup: :sparkles:
:star: 316 | @blauelf | http://www.freecodecamp.com/blauelf
Blauelf
@Blauelf
Sep 29 2015 16:05
@Jojokats Try wikipedia article on factorial in your own language.
Joanna Katsifaraki
@Jojokats
Sep 29 2015 16:05
ok, thanks
CamperBot
@camperbot
Sep 29 2015 16:05
if you want to thank someone, put an @ before their name!
Joanna Katsifaraki
@Jojokats
Sep 29 2015 16:05
@Blauelf thanks
Jessica Davis
@jessieinsidecode
Sep 29 2015 16:06
var ourArray = [1,2,3];
ourArray[1] = 3;
// ourArray[1] now equals [1,3,3].
var myArray = [1,2,3];
// Only change code below this line.


// Only change code above this line.
// We use this function to show you the value of your variable in your output box.
// You'll learn about functions soon.
if(typeof(myArray) !== "undefined"){(function(){return myArray;})();}
code
I reset it
Mateja Trifunovski
@Matko95
Sep 29 2015 16:07
@jessieinsidecode ok, now just add this line
myArray[0]=3;
Oleg Cherkasky
@gunrunners-paradise
Sep 29 2015 16:25
Can I get some help here please?
Mateja Trifunovski
@Matko95
Sep 29 2015 16:25
@gunrunners-paradise shoot
Jonathan Coleman
@jondcoleman
Sep 29 2015 16:26
solid pun @Matko95
Mateja Trifunovski
@Matko95
Sep 29 2015 16:26
@jondcoleman :D
Oleg Cherkasky
@gunrunners-paradise
Sep 29 2015 16:26
I need to figure out how to write a way to switch between the metric system and the American system for my weather app. I've set up a button but it only changes the letter C to F.
Scott Miller
@ScottMillerWesCoas
Sep 29 2015 16:27

hey everybody, I'm still havin' trouble after reading the MDN articles. I think my trouble is in using the "str" that was in the original code provided. This is what I have: function reverseString(str) {

var array = str.split('');
array = array.reverse();
array = array.join('')
return str;
}

reverseString("hello", "");

Jonathan Coleman
@jondcoleman
Sep 29 2015 16:27
@gunrunners-paradise can you just call the API again with a different parameter when the button toggles?
Oleg Cherkasky
@gunrunners-paradise
Sep 29 2015 16:28
@jondcoleman Do I write the entire loadWeather function again?
Scott Miller
@ScottMillerWesCoas
Sep 29 2015 16:28
I defined the reverseString variable as "hello" in a different attempt and this code returned "olleh", but it wasn't what their looking for, so I couldn't move on.
Jonathan Coleman
@jondcoleman
Sep 29 2015 16:28
@gunrunners-paradise no just add a new parameter to your function 'units' or something
and then on btn.click call that function with the current parameter
Oleg Cherkasky
@gunrunners-paradise
Sep 29 2015 16:30
@jondcoleman That's too vague for me to understand, I don't know Javascript well enough. What kind of function?
What parameter would I need to add?
You mean the loadWeather function?
Scott Miller
@ScottMillerWesCoas
Sep 29 2015 16:31

here's the code where I get "olleh" at the end, but I know defining a variable in the function isn't what I'm supposed to be doing: function reverseString(str) {
var test = "hello"
var array = test.split('');
array = array.reverse();
array = array.join('')
return array;
}

reverseString("hello", "");

Coira Ellison
@Coira
Sep 29 2015 16:31
@ScottMillerWesCoas reverse() is an in-place function, that is you don't need to assign it's result to a variable
so you can do array.reverse() and it will reverse the actual array
Aleksander Gębicki
@Takumar
Sep 29 2015 16:31
@ScottMillerWesCoas in previous example you return str not array. So your result is the same what you get as parameter! In second example you return array, so you return reversed string.
Oleg Cherkasky
@gunrunners-paradise
Sep 29 2015 16:32
How do I set up a function that won't run until I call it, also I don't know what type of function it would have to be
I just know the end result
that I want
Scott Miller
@ScottMillerWesCoas
Sep 29 2015 16:33
thank you, @Takumar - man, I shoulda seen that!
CamperBot
@camperbot
Sep 29 2015 16:33
scottmillerwescoas sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star: 369 | @takumar | http://www.freecodecamp.com/takumar
Jonathan Coleman
@jondcoleman
Sep 29 2015 16:33
@gunrunners-paradise Unfortunately I gtg right now but I'll check back in with you and maybe we can screenhero if you haven't gotten it figured out yet
Aleksander Gębicki
@Takumar
Sep 29 2015 16:33
@ScottMillerWesCoas sometimes we are a little irritated why something is not working so we don't see some details.
Oleg Cherkasky
@gunrunners-paradise
Sep 29 2015 16:39
@Takumar I'm a little more than just irritated that I can't figure it out myself and I'm pissed that no one here is helping.
Aleksander Gębicki
@Takumar
Sep 29 2015 16:40
@gunrunners-paradise I can see that they are helping here very much, but sometimes you have to wait a while. Too many people are talking in any moment and sometimes your question is missing in this mess.
SadiqueManzar
@SadiqueManzar
Sep 29 2015 16:40
Waypoint: Change the Font Size of an Element can any body help me to fix the code
Mateja Trifunovski
@Matko95
Sep 29 2015 16:41
@gunrunners-paradise What API are you/will you be using for the weather app?
Oleg Cherkasky
@gunrunners-paradise
Sep 29 2015 16:41
@Matko95 simple weather
@Matko95 it has geolocation, which is really nice, allows me to avoid using any other apis
SadiqueManzar
@SadiqueManzar
Sep 29 2015 16:42
@Takumar could you please help me,
Aleksander Gębicki
@Takumar
Sep 29 2015 16:42
@SadiqueManzar what's your problem?
Show your code - what have you done till now.
SadiqueManzar
@SadiqueManzar
Sep 29 2015 16:42
Waypoint: Change the Font Size of an Element can any body help me to fix the code
Waypoint: Change the Font Size of an Element
Joanna Katsifaraki
@Jojokats
Sep 29 2015 16:43
Hi, can someone please tell me why in the function factorialize
(num === 0 || num == 1) why does num ===0 get 3 equals and not 2 equals (num==0)
Aleksander Gębicki
@Takumar
Sep 29 2015 16:44
@SadiqueManzar Have you created second paragraph? If yes. You have to create style for paragraphs.
Oleg Cherkasky
@gunrunners-paradise
Sep 29 2015 16:44
@SadiqueManzar is it in the jquery waypoints?
SadiqueManzar
@SadiqueManzar
Sep 29 2015 16:44
yes
Aleksander Gębicki
@Takumar
Sep 29 2015 16:45
@SadiqueManzar so, for the moment you should have <style> ... </style> section. Inside you should add another style for <p> - paragraph
Mateja Trifunovski
@Matko95
Sep 29 2015 16:45
@SadiqueManzar post the code
SadiqueManzar
@SadiqueManzar
Sep 29 2015 16:46

<style>
h1 { font-size: 16px; }
</style>

<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe,
</p>

<p>
shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
</p>

Aleksander Gębicki
@Takumar
Sep 29 2015 16:47
@SadiqueManzar almost good, but you deleted CSS style for 'red-text' and created style for <h1> not <p> tag. Change the <h1> to <p>
Oleg Cherkasky
@gunrunners-paradise
Sep 29 2015 16:47
the backticks are rught under the escape key on most keyboards. Not sure about the mac
right under*
Mateja Trifunovski
@Matko95
Sep 29 2015 16:47
@SadiqueManzar you changed the font size of h1
Oleg Cherkasky
@gunrunners-paradise
Sep 29 2015 16:47
Also, when will I get help with my weather app?
Aleksander Gębicki
@Takumar
Sep 29 2015 16:48
I would like to help you @gunrunners-paradise but I haven't done it yet.
Mateja Trifunovski
@Matko95
Sep 29 2015 16:48
@gunrunners-paradise if you could send your API documentation or something, it would help
SadiqueManzar
@SadiqueManzar
Sep 29 2015 16:49

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

<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe,
</p>

<p>
shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
</p>

where should i add fontsize?
Oleg Cherkasky
@gunrunners-paradise
Sep 29 2015 16:49
Mateja Trifunovski
@Matko95
Sep 29 2015 16:50
@SadiqueManzar
p{
font-size:16px
}
in your style element
Aleksander Gębicki
@Takumar
Sep 29 2015 16:50
@SadiqueManzar after style for your red-text class.
Joanna Katsifaraki
@Jojokats
Sep 29 2015 16:50
Hi, can someone please explain this formula, are we only comparing types, because here num is 5:
function factorialize(num) {
if (num === 0 || num == 1) { return 1; }
5 is not equal to 0 only in type as a number.
Can anyone please explain
Aleksander Gębicki
@Takumar
Sep 29 2015 16:51
@Matko95 is period needed? I thought it is needed only for classes created by ourselves.
Mateja Trifunovski
@Matko95
Sep 29 2015 16:51
@gunrunners-paradise http://codepen.io/fleeting/pen/xklfq check out this demo
@Takumar sorry, typo :)
@gunrunners-paradise and see on line 6, what happens when you change 'f' to 'c'
SadiqueManzar
@SadiqueManzar
Sep 29 2015 16:51
You need 2 p elements with Kitty Ipsum text.
Make sure each of your p elements has a closing tag.
Your p element should contain the first few words of the provided additional kitty ipsum text.
Give your p elements the font-size of 16px.
last one error
Oleg Cherkasky
@gunrunners-paradise
Sep 29 2015 16:52
@Matko95 I know that but how do I access it from the button?