These are chat archives for FreeCodeCamp/Help

5th
Jul 2017
Sam Goldberg
@sgoldber61
Jul 05 2017 00:11
Question on getting json from a quote api for the random quote machine project. Apparently codepen can only make https requests but not http requests. I could get the json from the api as described here https://quotesondesign.com/api-v4-0/ working correctly but I couldn't get the json from some of the other api's I've tried. Using https://crossorigin.me/ in front of the page i.e. as in https://crossorigin.me/http://quotes.stormconsultancy.co.uk/random.json didn't work. Was anyone able to get it to work?
Kyle Holm
@thekholm80
Jul 05 2017 00:12
i'm not certain you're going to be able to get http apis in codepen even with https://crossorigin.me
my suggestion is find an api served over https
Sam Goldberg
@sgoldber61
Jul 05 2017 00:14
yeah, that's what i could do with https://quotesondesign.com and it worked. I guess we just have to use apis that are given through https. Thanks.
John Gabriel Simmons
@sosmaniac-FCC
Jul 05 2017 00:20
Node.js question: $ npm config get registry prints http://localhost:15443/, but I want it to print https://registry.npmjs.org/. I tried using $ npm config set registry, but that did not work and it still prints http://localhost:15443/. What am I missing here?
Kyle Holm
@thekholm80
Jul 05 2017 00:23
very strange
Steven Nyeo
@limpingstone
Jul 05 2017 00:33
How do you use regExp to express the four basic arithmetic symbols +-*/ ? This? : /+-\*\//
John Gabriel Simmons
@sosmaniac-FCC
Jul 05 2017 00:35
/([+-*/])/ should work, try it out on http://regexr.com/
/([+-*/])/ actually
oh, it's deleting the backslash I am trying to type before the minus sign
add that and it should work
Alex
@upinsmok
Jul 05 2017 00:40
Hi guys
Steven Nyeo
@limpingstone
Jul 05 2017 00:40
@sosmaniac-FCC The * and / seems to not work :/
This \+\-\*\/
John Gabriel Simmons
@sosmaniac-FCC
Jul 05 2017 00:44
hmm, are you trying to detect all instances of the arithmetic operations or just one at a time?
because it's working just fine for me with the global search index g. Do you also have what you just tried parenthesized and bracketed? /([\arithmetic_operand])/g
Eric Miller
@ericmiller777
Jul 05 2017 00:53
how you guys feel about this: https://codepen.io/eric_miller/pen/jwxYOP ?
still in progress btw
John Gabriel Simmons
@sosmaniac-FCC
Jul 05 2017 00:58
You're doing well. You got the buttons to quick scroll which is some nice progress. I'd say continue to refine the look of the portfolio and maybe after that try animating that quick scroll so that it slides rather than snaps to the programmed position on the portfolio page.
Eric Miller
@ericmiller777
Jul 05 2017 00:58
okay, ill try and look up how to do that
@sosmaniac-FCC thanks
CamperBot
@camperbot
Jul 05 2017 00:58
ericmiller777 sends brownie points to @sosmaniac-fcc :sparkles: :thumbsup: :sparkles:
:cookie: 315 | @sosmaniac-fcc |http://www.freecodecamp.com/sosmaniac-fcc
Alex
@upinsmok
Jul 05 2017 01:03
I just did this <script>
$(document).ready(function() {});
</script> -what does this do i finished the challenge yet i have no idea what this is
FullstopCoding
@FullstopCoding
Jul 05 2017 01:07
hi guys, I'm currently trying to understand Regex!
let ohRegex = /h{2,4}h no/;
that's my code
John Gabriel Simmons
@sosmaniac-FCC
Jul 05 2017 01:07
all the html/css of the window is loaded before the javascript starts running
FullstopCoding
@FullstopCoding
Jul 05 2017 01:07
do I assume that there is an h on each side and include them in the range?
Kyle Holm
@thekholm80
Jul 05 2017 01:10
@upinsmok
 <script>
$(document).ready(function() {
  // any code you put here will execute once your page is fully loaded
});
</script>
FullstopCoding
@FullstopCoding
Jul 05 2017 01:11
Nevermind I understood my error!
Alex
@upinsmok
Jul 05 2017 01:14
@thekholm80 thank you
CamperBot
@camperbot
Jul 05 2017 01:14
upinsmok sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1272 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Alex
@upinsmok
Jul 05 2017 01:15
so that is jQuery ?
Kyle Holm
@thekholm80
Jul 05 2017 01:15
yes
you can do the same thing with vanilla javascript of course, it's just a bit different
Steven Nyeo
@limpingstone
Jul 05 2017 01:16
@sosmaniac-FCC I had one more -> % to include, but I think either way is fine. Thanks bro
CamperBot
@camperbot
Jul 05 2017 01:16
limpingstone sends brownie points to @sosmaniac-fcc :sparkles: :thumbsup: :sparkles:
:cookie: 316 | @sosmaniac-fcc |http://www.freecodecamp.com/sosmaniac-fcc
Robert Robbins
@rwrobbins
Jul 05 2017 01:39
Good evening everyone
I'm looking for some suggestions
Not about my code, per se, more about what I should be using to code (what app)
Kyle Holm
@thekholm80
Jul 05 2017 01:41
have you done all of the FCC projects?
Robert Robbins
@rwrobbins
Jul 05 2017 01:42
Nope..... pretty much still getting started....I'm only in Responsive Design.....
Kyle Holm
@thekholm80
Jul 05 2017 01:42
oh, you mean where should you write your code?
like, text editors or whatnot?
Robert Robbins
@rwrobbins
Jul 05 2017 01:43
Well..... there's that.... but if I want to work some additional exersices outside of the camp (which is what I had in mind) is there something I should be using more or less than something else?
Kyle Holm
@thekholm80
Jul 05 2017 01:44
i'm trying to understand what it is you're asking
Robert Robbins
@rwrobbins
Jul 05 2017 01:44
Yes..... I know a text editor can be used and "saved as" HTML.....
Like would something such as visual studio or another app be useful as well
Kyle Holm
@thekholm80
Jul 05 2017 01:45
i don't know if visual studio would be the best choice for front end web projects, some folks really like VS Code, which I believe is similar
then again, i know some folks who use IDEs and like them, so I guess it's up to you?
Robert Robbins
@rwrobbins
Jul 05 2017 01:46
Thought it might come in handy to start getting familiar with those too
... regarless of it being VS, or some other IDE
Kyle Holm
@thekholm80
Jul 05 2017 01:47
I mostly write code in a text editor. I like atom, others prefer vs code or sublime text. I've never seen the need for an IDE for web development
Robert Robbins
@rwrobbins
Jul 05 2017 01:48
Understood. Was hoping exposure to something like that would go beyond just web dev.....
Thanks for the input Kyle..... I really appreciate it
Kyle Holm
@thekholm80
Jul 05 2017 01:50
np
pan zu liang
@csuzuliangpan
Jul 05 2017 02:29
Create a Set of Radio Buttons
Bprakash123456
@Bprakash123456
Jul 05 2017 02:31
Hey my coding fellas, does any one know about and how to create web chat application?
Any suggested links ?
Claudio Restifo
@Marmiz
Jul 05 2017 02:33
@Bprakash123456 if you're gonna use Node, socket.io is great for this!
full of examples of chat program as well :D
RickArora
@RickArora
Jul 05 2017 02:38
https://pastebin.com/8keUYFpW can anyone help me debug why the value of x is NaN? please?
Ryan Draves
@RyanDraves
Jul 05 2017 03:06
Hello, how can I use exponents in FreeCodeCamp's challenges? Math.power(a, b) isn't working, nor is a**b
Kyle Holm
@thekholm80
Jul 05 2017 03:08
i believe it's Math.pow() not Math.power()
Ogundele Olumide
@Lumexralph
Jul 05 2017 03:08
@RyanDraves Math.pow should work except FCC doesn't want you using it
Ryan Draves
@RyanDraves
Jul 05 2017 03:09
@Lumexralph in the "Binary Agents" challenge, would I need 2 raised to incremental powers to convert my string of 0's and 1's to numerical values?
Bprakash123456
@Bprakash123456
Jul 05 2017 03:10
@Marmiz thank you
CamperBot
@camperbot
Jul 05 2017 03:10
bprakash123456 sends brownie points to @marmiz :sparkles: :thumbsup: :sparkles:
:cookie: 981 | @marmiz |http://www.freecodecamp.com/marmiz
Ryan Draves
@RyanDraves
Jul 05 2017 03:10
I was attempting to convert each string into its value without going number by number... this would make it much easier to translate if you knew of a workaround for exponents!
Ogundele Olumide
@Lumexralph
Jul 05 2017 03:10
@RyanDraves you can use parseInt
@RyanDraves parseInt('binary string', 2); will return a binary number to a number in base 10
Ryan Draves
@RyanDraves
Jul 05 2017 03:12
@Lumexralph that's.... useful. I'll give it a shot and let you know how it goes!
Ogundele Olumide
@Lumexralph
Jul 05 2017 03:12
@RyanDraves :+1:
Ryan Draves
@RyanDraves
Jul 05 2017 03:13
that might be useful to @RickArora too
he was using it in his pastebin link that returned "NaN"
Ogundele Olumide
@Lumexralph
Jul 05 2017 03:14
@RyanDraves it'll return NaN if the string passed can't be converted to it's number equivalent
Ryan Draves
@RyanDraves
Jul 05 2017 03:15
@Lumexralph it appears to be working for me! thanks for the tip, I'll keep this in mind. Not sure exactly what it's doing, however. Have the time for a brief rundown?
CamperBot
@camperbot
Jul 05 2017 03:15
ryandraves sends brownie points to @lumexralph :sparkles: :thumbsup: :sparkles:
:star2: 2019 | @lumexralph |http://www.freecodecamp.com/lumexralph
Ryan Draves
@RyanDraves
Jul 05 2017 03:17
thanks!
shivam gupta
@shivamg11000
Jul 05 2017 03:44
can anyone tell me about pomodro clock
and what is break length in it
Kyle Holm
@thekholm80
Jul 05 2017 03:48
i think generally the default lengths are 25 min work and 5 min break, but you should let the user change the length of both to whatever they like
shivam gupta
@shivamg11000
Jul 05 2017 03:48
@thekholm80 5 min break after 25 min work?
Kyle Holm
@thekholm80
Jul 05 2017 03:49
as a default, yeah
kingsniper10
@kingsniper10
Jul 05 2017 04:23
I don't know how I'm so-post to my h2 element should have the class red-text.
Claudio Restifo
@Marmiz
Jul 05 2017 04:24
@kingsniper10
<h2 class="your-class-here">Some Text</h2>
CamperBot
@camperbot
Jul 05 2017 04:42
ygordantas sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1276 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Dhaval
@Dhavalc2012
Jul 05 2017 04:51
my breaks last longer than your break lol
but i take breaks afte some long time
CallMeOrange
@EgnaroDev
Jul 05 2017 05:04
Can someone help me with Seek and Destroy?
Im really close but can't figure out
wonder
@wonder2991
Jul 05 2017 05:14
let's see your code
Amit Patel
@AmitP88
Jul 05 2017 05:15

hey guys, I'm revisiting my previously completed algorithm challenges for a refresh. I'm on the factorial alg and here's my code so far:
function factorialize(num) {

for(i=1; i<=num; i++){
num *= i;
}

return num;
}

factorialize(5);
however, I'm struggling to think of what statement to put inside my for loop to make this work

John Gabriel Simmons
@sosmaniac-FCC
Jul 05 2017 05:19
is the goal to return the multiplied sum of the factorial?
Mukul Agrawal
@mukul09
Jul 05 2017 05:29
@AmitP88 initialize the num=1 before the loop
Alex
@upinsmok
Jul 05 2017 05:30
i just did "Target the Parent of an Element Using jQuery" however i am still confused what a parent is. I searched up what it is on w3 but i still don't quite understand.
Amit Patel
@AmitP88
Jul 05 2017 05:30
@mukul09 @sosmaniac-FCC oh I got help for it. function factorialize(num) {
var res=1;
for(i=1; i<=num; i++){
res *= i;
}
return res;
}
@mukul09 @sosmaniac-FCC thank you though :)
CamperBot
@camperbot
Jul 05 2017 05:30
amitp88 sends brownie points to @mukul09 and @sosmaniac-fcc :sparkles: :thumbsup: :sparkles:
:cookie: 490 | @mukul09 |http://www.freecodecamp.com/mukul09
:cookie: 317 | @sosmaniac-fcc |http://www.freecodecamp.com/sosmaniac-fcc
Amit Patel
@AmitP88
Jul 05 2017 05:31
@mukul09 you were right, seems all I was missing was to initialize the variable before the loop
Mukul Agrawal
@mukul09
Jul 05 2017 05:38
@AmitP88 :+1:
Yonatan
@Yonatan1
Jul 05 2017 05:41
I'm looking at my page on my iphone, and it doesn't look anything like my page on my computer, it's bugging out pretty bad. Does anyone know why this might be happening?
https://codepen.io/YonatanG/full/dRmdYo/
Darren
@DarrenfJ
Jul 05 2017 05:43
just popping in to spread the brownie lurve
thanks @Manish-Giri @Marmiz @Dhavalc2012 @thekholm80 too tired to help out will come back and help tomorrow.. be well roomies
CamperBot
@camperbot
Jul 05 2017 05:44
darrenfj sends brownie points to @manish-giri and @marmiz and @dhavalc2012 and @thekholm80 :sparkles: :thumbsup: :sparkles:
:cookie: 356 | @dhavalc2012 |http://www.freecodecamp.com/dhavalc2012
:cookie: 982 | @marmiz |http://www.freecodecamp.com/marmiz
:star2: 1277 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:star2: 6188 | @manish-giri |http://www.freecodecamp.com/manish-giri
Claudio Restifo
@Marmiz
Jul 05 2017 05:54
@DarrenfJ thanks.
Spread the :heart: and knowledge :computer:
CamperBot
@camperbot
Jul 05 2017 05:54
marmiz sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1878 | @darrenfj |http://www.freecodecamp.com/darrenfj
CallMeOrange
@EgnaroDev
Jul 05 2017 05:55
@Marmiz
Can you help me with Seek and Destroy?
Claudio Restifo
@Marmiz
Jul 05 2017 05:56
@Yonatan1 no responsive class ha been added...
and the column are instructed for medium screen up (col-md-*)
You have to specify the layout for smaller screen as well
MightyGarhem
@MightyGarhem
Jul 05 2017 05:56
This is a start of my tribute page, do you guys like it? I chose for an old school pixel theme https://codepen.io/MightyGarhem/pen/LLQoxG
Claudio Restifo
@Marmiz
Jul 05 2017 05:57
you can see it just by resizing the browser :) @Yonatan1
@MCTwoDigitZero sure thing
CallMeOrange
@EgnaroDev
Jul 05 2017 05:57
Here is my code
function destroyer(arr) {

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

   for (var j = 0; j < array.length; j++) {
     var args = array[j];
   }

 arr = arr.filter(function(destroy) {
    return destroy !== args;
  });
  return arr;
}

destroyer([1, 2, 3, 5, 1, 2, 3], 2, 3);
Yonatan
@Yonatan1
Jul 05 2017 05:59
@Marmiz where should i put a responsive class?
CallMeOrange
@EgnaroDev
Jul 05 2017 05:59
@MightyGarhem Is it a font?
Claudio Restifo
@Marmiz
Jul 05 2017 05:59
@Yonatan1 because you never tell your elements how to be displayed for smaller screen
they don't "know" what to do
MightyGarhem
@MightyGarhem
Jul 05 2017 05:59
@MCTwoDigitZero Check the code
Yonatan
@Yonatan1
Jul 05 2017 06:00
@Marmiz where should i put a responsive class?
Claudio Restifo
@Marmiz
Jul 05 2017 06:01
@MCTwoDigitZero
```
function destroyer(arr) {

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

/* every loop changes the value of the args variable */
   for (var j = 0; j < array.length; j++) {
     var args = array[j];  // args is scoped to this function. It does not exist outside of it
   }

 arr = arr.filter(function(destroy) {
    return destroy !== args;  // what is args? 
  });
  return arr;
}

destroyer([1, 2, 3, 5, 1, 2, 3], 2, 3);
CallMeOrange
@EgnaroDev
Jul 05 2017 06:01
really? it didnt say that args is used out of scope
Claudio Restifo
@Marmiz
Jul 05 2017 06:02
@MCTwoDigitZero how. You are comparing destroy is different to undefined, for the browser is fine
CallMeOrange
@EgnaroDev
Jul 05 2017 06:02
I see..
But I cant have loop inside filter function right?
Claudio Restifo
@Marmiz
Jul 05 2017 06:04

@Yonatan1 there is no responsive class.
It means that you have to instruct your elements how to position, width, height, font-size.... for different screen size.

For starter in a col-md-6 means that this column should take 6 spaces in a medium size device... but what about small devices?
You can

<div class="col-md-6 col-xs-12">

And tell the browser to occpuy half the screen for medium and all the screen for smaller and extra-small devices

@MCTwoDigitZero actually correction, Since all the function are scoped inside destroyer function `args is defined since it's all in the scope
Yonatan
@Yonatan1
Jul 05 2017 06:06
@Marmiz Ok thanks. is the responsive class just <div responsive>?
CamperBot
@camperbot
Jul 05 2017 06:06
yonatan1 sends brownie points to @marmiz :sparkles: :thumbsup: :sparkles:
:cookie: 983 | @marmiz |http://www.freecodecamp.com/marmiz
CallMeOrange
@EgnaroDev
Jul 05 2017 06:06
@Marmiz So thats fine?
Claudio Restifo
@Marmiz
Jul 05 2017 06:06
@MCTwoDigitZero the point is that the variable is changing with the loop, so at the end args is and always be the last number
CallMeOrange
@EgnaroDev
Jul 05 2017 06:06
yeah since loop end at 1
redrun
@xiaolou-yang
Jul 05 2017 06:06
<a href="http://freecatphotoapp.com">
<img class="smaller-image thick-green-border" src="/images/relaxing-cat.jpg">
</a>哪里错了?
CallMeOrange
@EgnaroDev
Jul 05 2017 06:07
Can I have a loop inside filter function instead?
Claudio Restifo
@Marmiz
Jul 05 2017 06:08

@MCTwoDigitZero this is telling:

   for (var j = 0; j < array.length; j++) {
     var args = array[j];  // keep on changing the value of args equal to array[j]
   }

So at the end of the day args is the last element inside array. No other value

CallMeOrange
@EgnaroDev
Jul 05 2017 06:08
But console.log(j) will return 0 few times
Claudio Restifo
@Marmiz
Jul 05 2017 06:08
@Yonatan1 there is no "responsive" class. Responsive is a term that means "bahave" differently for different size.
CallMeOrange
@EgnaroDev
Jul 05 2017 06:09
What do you mean by no other value?
Claudio Restifo
@Marmiz
Jul 05 2017 06:10

@MCTwoDigitZero you are overcomplicating:
you already have array which is an array containing the elements...
in this case array = [2, 3]

Which one is the method to see if an element is inside an array? :)

CallMeOrange
@EgnaroDev
Jul 05 2017 06:11
indexOf?
Claudio Restifo
@Marmiz
Jul 05 2017 06:12
Bingo
CallMeOrange
@EgnaroDev
Jul 05 2017 06:12
return destroy !== arr.indexOf(array);
Claudio Restifo
@Marmiz
Jul 05 2017 06:12

@MCTwoDigitZero anyway in your function:

  let array = [1 ,2 , 5, 0]
  let args;

   for (var j = 0; j < array.length; j++) {
    args = array[j];  
   }

  console.log(args)

What is the value of args?

CallMeOrange
@EgnaroDev
Jul 05 2017 06:12
0?
Claudio Restifo
@Marmiz
Jul 05 2017 06:13
so args will always be the last element
CallMeOrange
@EgnaroDev
Jul 05 2017 06:13
Yeah
Claudio Restifo
@Marmiz
Jul 05 2017 06:13
what about the others?
CallMeOrange
@EgnaroDev
Jul 05 2017 06:13
So indexOf is only way?
well, 1, 2, 5 stays in array?
Claudio Restifo
@Marmiz
Jul 05 2017 06:16
@MCTwoDigitZero I'll let you figure it out the filter function yourelf
CallMeOrange
@EgnaroDev
Jul 05 2017 06:16
Alright
Claudio Restifo
@Marmiz
Jul 05 2017 06:16
you are already in a good place ^^
CallMeOrange
@EgnaroDev
Jul 05 2017 06:16
@Marmiz What about my remaining code?
Claudio Restifo
@Marmiz
Jul 05 2017 06:16
?
CallMeOrange
@EgnaroDev
Jul 05 2017 06:17
Well I changed my code
Viktor Tiutiun
@vittorioVT
Jul 05 2017 06:17
hello everybody
CallMeOrange
@EgnaroDev
Jul 05 2017 06:17
Not sure if its still in good place
Claudio Restifo
@Marmiz
Jul 05 2017 06:17
@MCTwoDigitZero you are, just get the logic of what you are doing :)
you have an array. You have to filter out values for a second array that are not in the first array.
You already knows that indexOf is a good way to check if a value is inside an array...
You have everything you need
I won't spoon feed the answer
you have the tools, find it yourself
Bomee
@Bomulacious
Jul 05 2017 06:26
I installed atom-terminal & terminal plus packages in the atom editor but it still doens't do anything after I input any code... what else am I supposed to do? :S
Claudio Restifo
@Marmiz
Jul 05 2017 06:27
@Bomulacious what do you mean by do anything?
John
@jchritton
Jul 05 2017 06:27
Is there a way to have JS trigger on scrolling past a certain #id or something? Trying to figure out how to make an onscroll event responsive :/
Claudio Restifo
@Marmiz
Jul 05 2017 06:27
What do you expect atom to do?
__mifflin__
@cdrainxv
Jul 05 2017 06:27
You might have to restart atom before the changes can take effect. Try quitting and then relaunching atom.
Bomee
@Bomulacious
Jul 05 2017 06:28
@Marmiz like if I input some code and ask it to return, it should return something, but it doesn't respond
Claudio Restifo
@Marmiz
Jul 05 2017 06:28
@JaxomofRuatha if you are using Bootstrap they have already a scroolspy method declared for you
John
@jchritton
Jul 05 2017 06:29
I'm not using bootstrap, but I can check out the CSS for that definition :)
Claudio Restifo
@Marmiz
Jul 05 2017 06:29
@Bomulacious atom is a text editor. Same as word, notepad, evernote and such.
You can create a file, and edit it with Atom.
But then you need something to run that file
Bomee
@Bomulacious
Jul 05 2017 06:30
@Marmiz right... so my understanding is that it has to be connected to Terminal for that?
Claudio Restifo
@Marmiz
Jul 05 2017 06:30

@Bomulacious for example in atom you can:

create new file and name it helloworld.html
write inside <h1>Hello World</h1>
open that file with Chrome/Firefox....

See the result

@Bomulacious the terminal is just a place where you ask your computer to do stuff.
for simple, imagine that the terminal is doing the same thing as you do by clicking icons... but writing them
Sarcasm
@krnaik-58
Jul 05 2017 06:32
<img class="smaller-image thick-black-border" src="http://aryakesari.files.wordpress.com/2011/10/veer-savarkar.jpg" align="centre" >
Bomee
@Bomulacious
Jul 05 2017 06:32
@Marmiz hmmmmm so the page where "returned" value shows up is not terminal, but Chrome?
Claudio Restifo
@Marmiz
Jul 05 2017 06:32
@Bomulacious yep
Sarcasm
@krnaik-58
Jul 05 2017 06:33
i want to align the image to the centre
CallMeOrange
@EgnaroDev
Jul 05 2017 06:33
@krnaik-58 center
Viktor Tiutiun
@vittorioVT
Jul 05 2017 06:33
@krnaik-58 you should add class "text-center" if this bootstrap
Claudio Restifo
@Marmiz
Jul 05 2017 06:34

@Bomulacious if you want to write and easy test JS functions I suggest you to use
https://repl.it/languages/javascript

Otherwise you need to use the developer console of the browsers

CallMeOrange
@EgnaroDev
Jul 05 2017 06:34
@Marmiz Can you take a look at my code before I work on it further?
Sarcasm
@krnaik-58
Jul 05 2017 06:35
no it is html
Claudio Restifo
@Marmiz
Jul 05 2017 06:35
@MCTwoDigitZero depends :stuck_out_tongue:
CallMeOrange
@EgnaroDev
Jul 05 2017 06:35
I'll just post it then..
Claudio Restifo
@Marmiz
Jul 05 2017 06:35
how many :cookie: are at stakes?
CallMeOrange
@EgnaroDev
Jul 05 2017 06:35
function destroyer(arr) {

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

   return arr.filter(function(destroy) {
  return destroy !== arr.indexOf(array);
    });
}

destroyer([1, 2, 3, 5, 1, 2, 3], 2, 3);
Me?
maybe 2-3?
arr.indexOf(array); return -1
Claudio Restifo
@Marmiz
Jul 05 2017 06:36
@MCTwoDigitZero it was a joke.
I'm just pissed that I helped you 15 minutes and you never say not even a single gratitude aprreciation, like if my time is given for granted
It's not nice, you know
Viktor Tiutiun
@vittorioVT
Jul 05 2017 06:36
@krnaik-58 then add just any class and give it in css .class {text-align: center; }
CallMeOrange
@EgnaroDev
Jul 05 2017 06:36
:/
@Marmiz Thanks for the tip for using .indexOf() but can you please take a look at my code?
CamperBot
@camperbot
Jul 05 2017 06:37
:cookie: 984 | @marmiz |http://www.freecodecamp.com/marmiz
mctwodigitzero sends brownie points to @marmiz :sparkles: :thumbsup: :sparkles:
CallMeOrange
@EgnaroDev
Jul 05 2017 06:38
:P
Momozor
@momozor
Jul 05 2017 06:38
hello, what is going on today?
CallMeOrange
@EgnaroDev
Jul 05 2017 06:38
Today is what going on today
Claudio Restifo
@Marmiz
Jul 05 2017 06:38

@MCTwoDigitZero anyway:

destroy !== arr.indexOf(array);

you may want to look at how indexOf works.
you want to know if: is the element inside array present?

And remember that filter loops inside arr.

Bomee
@Bomulacious
Jul 05 2017 06:38
@Marmiz ohhhhhhhh, thanks a lot.
CamperBot
@camperbot
Jul 05 2017 06:38
bomulacious sends brownie points to @marmiz :sparkles: :thumbsup: :sparkles:
:cookie: 985 | @marmiz |http://www.freecodecamp.com/marmiz
CallMeOrange
@EgnaroDev
Jul 05 2017 06:39
@Marmiz I think I know how .indexOf works, if it does exist it will return 0, if not return -1
Sarcasm
@krnaik-58
Jul 05 2017 06:39
it is not working
Claudio Restifo
@Marmiz
Jul 05 2017 06:39
@MCTwoDigitZero in other word:
arr.indexOf(array); // you are asking if [2,3] is present inside arr
CallMeOrange
@EgnaroDev
Jul 05 2017 06:39
yeah
but it should return 0 but -1
oh... 2,3 is arguments not array?
2,3 dont really exist in arr?
Claudio Restifo
@Marmiz
Jul 05 2017 06:40
@MCTwoDigitZero you cannot pass an array to indexOf
CallMeOrange
@EgnaroDev
Jul 05 2017 06:40
Never mind
Claudio Restifo
@Marmiz
Jul 05 2017 06:41
you're almost there
Viktor Tiutiun
@vittorioVT
Jul 05 2017 06:41
@krnaik-58 show what you wrote
CallMeOrange
@EgnaroDev
Jul 05 2017 06:41
I see, so I just need to ask like arr.indexOf(2); or 3
Claudio Restifo
@Marmiz
Jul 05 2017 06:42
@MCTwoDigitZero
return arr.filter(function(destroy) {
//filter is already looping inside arr.
// have you tried console.log(destroy)?
    });
John
@jchritton
Jul 05 2017 06:42
Is there a way to get the current height in pixels of what something like 100vh would be?
Or I suppose I just realized it would just be the height lol
CallMeOrange
@EgnaroDev
Jul 05 2017 06:42
oh let me try it :/, I have try most of console.logs but destroy
John
@jchritton
Jul 05 2017 06:42
Not totally certain how to get that responsively either
CallMeOrange
@EgnaroDev
Jul 05 2017 06:43
destroy return items from arr
Claudio Restifo
@Marmiz
Jul 05 2017 06:43
@Bomulacious is it getting clearer?
Bomee
@Bomulacious
Jul 05 2017 06:44
@Marmiz ummm in theory, yea haha I'm just trying to figure out how to use chrome console
Sarcasm
@krnaik-58
Jul 05 2017 06:44

<style>
.red-text{color:#830303;}
h1{font-family:Roman}
.smaller-image{width:500px;}
.thick-black-border{
border-color: #000000;
border-width: px;
border-style: solid;}
.silver-background{
background-color: silver;
}
.align{text-align:centre;}
</style>

<div class="silver-background "><h1 class="red-text"> VINAYAK DAMODAR SAVARKAR </h1>
<a href="#"><img class="smaller-image thick-black-border align" src="http://aryakesari.files.wordpress.com/2011/10/veer-savarkar.jpg"></a>

John
@jchritton
Jul 05 2017 06:44
@Manish-Giri aha, so that would be innerHeight then if I'm looking for the equivalent of 100vh?
Claudio Restifo
@Marmiz
Jul 05 2017 06:44
@Bomulacious imho firefox console is easier to use.
But I use repl.it even at work a lot of time :)
CallMeOrange
@EgnaroDev
Jul 05 2017 06:44
yeah repl.it is really great
That is where Im coding right now..
Viktor Tiutiun
@vittorioVT
Jul 05 2017 06:45
@krnaik-58 center don't centre
CallMeOrange
@EgnaroDev
Jul 05 2017 06:45
I thought I said center :/
Manish Giri
@Manish-Giri
Jul 05 2017 06:45
@JaxomofRuatha think so, yeah
CallMeOrange
@EgnaroDev
Jul 05 2017 06:45
@Marmiz so console.log(destroy); is arr?
Viktor Tiutiun
@vittorioVT
Jul 05 2017 06:46
@krnaik-58 and here how many px? border-width: px;
Sarcasm
@krnaik-58
Jul 05 2017 06:46
still not working
John
@jchritton
Jul 05 2017 06:46
@Manish-Giri perfect, thanks! It doesn't seem to be understanding yet but going to see if I can figure out why :)
CamperBot
@camperbot
Jul 05 2017 06:46
jaxomofruatha sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6189 | @manish-giri |http://www.freecodecamp.com/manish-giri
Viktor Tiutiun
@vittorioVT
Jul 05 2017 06:46
@krnaik-58 your code in CodePen?
Sarcasm
@krnaik-58
Jul 05 2017 06:46
yeah
Bomee
@Bomulacious
Jul 05 2017 06:47
@Marmiz yes repl.it seems very useful
CallMeOrange
@EgnaroDev
Jul 05 2017 06:47
@krnaik-58 then move all code inside style tags to CSS editor
Claudio Restifo
@Marmiz
Jul 05 2017 06:47
@MCTwoDigitZero it's every element of the arr... looped one at the time.
That's how filter works.
It look one at a time to each value of the array and returns the one that are true for the condition
CallMeOrange
@EgnaroDev
Jul 05 2017 06:47
Yeah
Viktor Tiutiun
@vittorioVT
Jul 05 2017 06:47
@krnaik-58 put here link please
John
@jchritton
Jul 05 2017 06:47
@Manish-Giri AH nevermind, I didn't define the <var> derp
Working now :+1:
Manish Giri
@Manish-Giri
Jul 05 2017 06:49
:+1:
CallMeOrange
@EgnaroDev
Jul 05 2017 06:49
@krnaik-58 Move all code inside style tags to CSS editor
Then remove style tags
Claudio Restifo
@Marmiz
Jul 05 2017 06:49
@Manish-Giri :+1:
__mifflin__
@cdrainxv
Jul 05 2017 06:50
@Bomulacious: You can use node’s repl on a terminal:
mrs_zahedi
@marygol
Jul 05 2017 06:50
Hi
Can you help me about testassist?!
Bomee
@Bomulacious
Jul 05 2017 06:51
@cdrainxv what does that do?
CallMeOrange
@EgnaroDev
Jul 05 2017 06:52
@krnaik-58 copied codepen
Look at CSS
Manish Giri
@Manish-Giri
Jul 05 2017 06:52
@Marmiz :+1:
Sarcasm
@krnaik-58
Jul 05 2017 06:53
?
Viktor Tiutiun
@vittorioVT
Jul 05 2017 06:54
@krnaik-58 you connected bootstrap, now put your html-code in <div class="container">.......</div>
Yonatan
@Yonatan1
Jul 05 2017 06:54
Can someone pleaseeee help me!?!? I dont understand why my paragraphs are being pushed down into the next section when I make the page smaller? And why does my picture move under my first paragraph? How do I make it stay on the right???
https://codepen.io/YonatanG/pen/dRmdYo?editors=1000
Viktor Tiutiun
@vittorioVT
Jul 05 2017 06:55
@krnaik-58 and you should put each section in <div class="row">....</div>
wonder
@wonder2991
Jul 05 2017 06:55
@MCTwoDigitZero indexOf returns the index / position if the value exist not zero otherwise returns -1 if not found
CallMeOrange
@EgnaroDev
Jul 05 2017 06:55
yeah
I said that :p
Manish Giri
@Manish-Giri
Jul 05 2017 06:56
@cdrainxv tried out angular2?
__mifflin__
@cdrainxv
Jul 05 2017 06:56
Yeah...
Wow… that gif took ten years to load… sigh...
CallMeOrange
@EgnaroDev
Jul 05 2017 06:58
lol
Viktor Tiutiun
@vittorioVT
Jul 05 2017 06:59

@krnaik-58 for example: <div class="container">

<div class="row" >
<h1>..</h1>
<img... class="text-center">
</div>

<div class="row" >
<h2>....</h2>
<ul>....</ul>
</div>

<div class="row" >
<p>....</p>
</div>

</div>

Sarcasm
@krnaik-58
Jul 05 2017 06:59
@vittorioVT got it thank u
CamperBot
@camperbot
Jul 05 2017 06:59
krnaik-58 sends brownie points to @vittoriovt :sparkles: :thumbsup: :sparkles:
:cookie: 764 | @vittoriovt |http://www.freecodecamp.com/vittoriovt
wonder
@wonder2991
Jul 05 2017 06:59
'''
CamperBot
@camperbot
Jul 05 2017 06:59
:bulb: to format code use backticks! ``` more info
Viktor Tiutiun
@vittorioVT
Jul 05 2017 07:00
@krnaik-58 welcome
CallMeOrange
@EgnaroDev
Jul 05 2017 07:04
again?
Manish Giri
@Manish-Giri
Jul 05 2017 07:04
@cdrainxv how far into the course are you?
CallMeOrange
@EgnaroDev
Jul 05 2017 07:04
Is it that gif is slower or your typing @cdrainxv
Tai Jones
@taiJones00
Jul 05 2017 07:05
anybody good with linux
?
CallMeOrange
@EgnaroDev
Jul 05 2017 07:06
ab, linux vf pynffvsvrq
@cdrainxv ?
__mifflin__
@cdrainxv
Jul 05 2017 07:11
@Manish-Giri: I got through maybe a third of the course and just started reading the docs… They are pretty good. I’ve read a lot of books these last few weeks DS, algorithms, node, webpack, css, functional JS, TS, Redux, etc.
Manish Giri
@Manish-Giri
Jul 05 2017 07:12
nice
pm me the names of the ds and algo books pls
CallMeOrange
@EgnaroDev
Jul 05 2017 07:12
Not answering my question? oh well...
I gtg
Manish Giri
@Manish-Giri
Jul 05 2017 07:12
even I'm looking for some reading material on those
@cdrainxv
Mark Paul
@sprinter4
Jul 05 2017 07:12
bye]
__mifflin__
@cdrainxv
Jul 05 2017 07:15

Learning Javascript Data Structures and Algorithms.

I suppose I now have to read Addy Osmani’s JS design patterns book now… sigh… been holding it off since I found out about… which was last year.

Momozor
@momozor
Jul 05 2017 07:21
@taiJones00 I use Linux quite extensively, what do you need?
Tai Jones
@taiJones00
Jul 05 2017 07:22
@faraco npm doesnt seem to be working
Manish Giri
@Manish-Giri
Jul 05 2017 07:24
that's...specific.
Ayush Mahajan
@ay2306
Jul 05 2017 07:32
hello. I wrote this code and this is what I have noticed. If I remove &nbsp then my player button works in xs screens but if I dont it doesn't. However it is working on big screens as normal.. my code
<button id="player" class='btn btn-primary col-md-5 col-xs-12 firstMove_choice_compartment'><center>Player</center></button>
    <div class="col-md-2 col-xs-0"><center>&nbsp</center></div>
    <button id="computer" class='btn btn-primary col-xs-12 col-md-5 firstMove_choice_compartment'><center>Computer</center></button>
Dhaval
@Dhavalc2012
Jul 05 2017 07:46
i dont understand your problem. Can you please explain it again @ay2306
Ayush Mahajan
@ay2306
Jul 05 2017 07:48
@Dhavalc2012
it is working fine when screen is big i.e. in laptop or desktop but not when screen is small i.e. reduced window in laptop, desktop or mobile
but if I remove <div class="col-md-2 col-xs-0"><center>&nbsp</center></div> then everything goes fine
but that messes up design
Dhaval
@Dhavalc2012
Jul 05 2017 07:48
there are bootstrap hidden classes
for particular screen
like sm-hidden like that
there is no such thing as col-xs-0
it is col-xs-hidden
it will keep ur design consistent
sorry
its .hidden-xs
not col-xs-hidden
@ay2306
Ayush Mahajan
@ay2306
Jul 05 2017 07:52
@Dhavalc2012 let me try that out
Momozor
@momozor
Jul 05 2017 07:53
I'm not great at oop, but compared to directly accessing class attributes, why and when we should use getter and setter instead?
Ayush Mahajan
@ay2306
Jul 05 2017 07:54
@Dhavalc2012 thanks bro, it is working
CamperBot
@camperbot
Jul 05 2017 07:54
ay2306 sends brownie points to @dhavalc2012 :sparkles: :thumbsup: :sparkles:
:cookie: 357 | @dhavalc2012 |http://www.freecodecamp.com/dhavalc2012
Dhaval
@Dhavalc2012
Jul 05 2017 07:54
ahh np @ay2306
Ogundele Olumide
@Lumexralph
Jul 05 2017 07:58
@faraco because the way you can access the class attributes is through a method of that constructor accessing that attribute
@faraco the instance of that class/constructor will be able to access the class variable through the method that have access to the class variable/private variable inherited by the instances of that constructor
Yonatan
@Yonatan1
Jul 05 2017 08:07
Why when I click on one of the tabs it highlights then name and then when i scroll it highlights the page im on but the tab that i clicked is still highlighted too??? https://codepen.io/YonatanG/pen/dRmdYo?editors=1000
Momozor
@momozor
Jul 05 2017 08:08
@Lumexralph I see. I'm actually redoing a 'classy' project in Python. After doing a bit research based on your answer, the results I got are 'Do not use getter and setter in Python'.
Ogundele Olumide
@Lumexralph
Jul 05 2017 08:14
@faraco i didn't talk about using getter or setter, but you can access the private variable/class attribute through the method of that constructor or class created to access that attribute
shivam gupta
@shivamg11000
Jul 05 2017 08:15
@shivamg11000
how to make the setInterval pause for my pomodro clock,
https://codepen.io/shivamg11000/pen/VWdYqR?editors=0011
Mile
@AuroraNorth
Jul 05 2017 08:25
注册不了CodePen怎么办
shivam gupta
@shivamg11000
Jul 05 2017 08:29
@AuroraNorth aur ladke
Mile
@AuroraNorth
Jul 05 2017 08:32
how to sign up codepen?
shivam gupta
@shivamg11000
Jul 05 2017 08:33
@AuroraNorth use the same id on github to login on codepen
google 'codepen
wonder
@wonder2991
Jul 05 2017 08:33
good question
shivam gupta
@shivamg11000
Jul 05 2017 08:33
:shipit:
Mile
@AuroraNorth
Jul 05 2017 08:33
You can no longer verify your account via email. Contact support@codepen.io.
Momozor
@momozor
Jul 05 2017 08:55
follow what @shivamg11000 recommends via github.
shivam gupta
@shivamg11000
Jul 05 2017 08:55
@faraco ?
Momozor
@momozor
Jul 05 2017 08:56
I'm telling that to @AuroraNorth ........
Dhaval
@Dhavalc2012
Jul 05 2017 08:58
code war mai kaunsa challenge pe hai tu @Manish-Giri
Fernando
@ClassyFD
Jul 05 2017 09:23
hello, can I get feedback on my random quote machine? https://codepen.io/ClassyFD/full/XgYepB/
Tim Bakker
@ixava
Jul 05 2017 09:23
Anyone here have experience allowing remote connections to a mysql server on linux ( debian) ? I am listening on 0.0.0.0 and verified it but I still cant connect to the server from remote. A little lost as to how to fix this
heroiczero
@heroiczero
Jul 05 2017 09:24
@ClassyFD nice job :+1:
Fernando
@ClassyFD
Jul 05 2017 09:26
thanks @heroiczero
CamperBot
@camperbot
Jul 05 2017 09:26
classyfd sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1458 | @heroiczero |http://www.freecodecamp.com/heroiczero
Ene Catalin
@EneCatalin
Jul 05 2017 09:26
@ixava not in this chat room most likely
bluesbonewong
@bluesbonewong
Jul 05 2017 09:29
hello,everyone,i think i met a bug.there's no tips.
Ene Catalin
@EneCatalin
Jul 05 2017 09:29
was the bug friendly ?
but seriously, ostrich can help, maybe
bluesbonewong
@bluesbonewong
Jul 05 2017 09:31
thank u so much,but i think i should skip it...
Ene Catalin
@EneCatalin
Jul 05 2017 09:31
what's the problem ?
bluesbonewong
@bluesbonewong
Jul 05 2017 09:31
i can't "run tests"
Ene Catalin
@EneCatalin
Jul 05 2017 09:31
huh ?
refresh
use chrome
bluesbonewong
@bluesbonewong
Jul 05 2017 09:32
yes,my code is right,but i can't run tests....
Ene Catalin
@EneCatalin
Jul 05 2017 09:32
show me a screenshot
bluesbonewong
@bluesbonewong
Jul 05 2017 09:32
wait a minute~~
sorry,how to send a screenshot?
Ene Catalin
@EneCatalin
Jul 05 2017 09:36
well
if on windows
just press print screen
(on keyboard)
then ctrl+v here
it should work, I think
worst case put it on imgur
bluesbonewong
@bluesbonewong
Jul 05 2017 09:41
thank u so much,u are really a kind man,thank u!but i have solved my problems,i rebuild my browser...cause the refresh is not work.thank u,have a good day.
Tim Bakker
@ixava
Jul 05 2017 09:42
@EneCatalin Ok thanks for the tip ;p
CamperBot
@camperbot
Jul 05 2017 09:42
ixava sends brownie points to @enecatalin :sparkles: :thumbsup: :sparkles:
:cookie: 429 | @enecatalin |http://www.freecodecamp.com/enecatalin
May Kittens Devour Your Soul
@diomed
Jul 05 2017 09:46
'hello'.repeat(7)
Alexandar B
@ace1122sp
Jul 05 2017 09:53
hello people :D
Tim Bakker
@ixava
Jul 05 2017 10:05
Morning
Ene Catalin
@EneCatalin
Jul 05 2017 10:06
cat
cat
cat
May Kittens Devour Your Soul
@diomed
Jul 05 2017 10:07
:fish:
Ene Catalin
@EneCatalin
Jul 05 2017 10:08
who the hell is fish
May Kittens Devour Your Soul
@diomed
Jul 05 2017 10:08
:cat: :fish:
Nketsia
@Nketsia
Jul 05 2017 10:08
lol
May Kittens Devour Your Soul
@diomed
Jul 05 2017 10:08
what is it, big bird?
Ene Catalin
@EneCatalin
Jul 05 2017 10:09
nothing
May Kittens Devour Your Soul
@diomed
Jul 05 2017 10:12
Microsoft Word is now playing Gypsy - Stevie Nicks
shivam gupta
@shivamg11000
Jul 05 2017 10:27
james umali
@indefinite0212
Jul 05 2017 10:33
Hello! :smile:
May Kittens Devour Your Soul
@diomed
Jul 05 2017 10:34
Hello :cookie:
james umali
@indefinite0212
Jul 05 2017 10:36
what's up @diomed
May Kittens Devour Your Soul
@diomed
Jul 05 2017 10:38
It's summer and I'm so groggy. All I wana do is sleep.ugh :dizzy_face:
james umali
@indefinite0212
Jul 05 2017 10:39
hahaha
MightyGarhem
@MightyGarhem
Jul 05 2017 10:50
Why isnt my background showing up? I was playing around with the settings, what did it cause? https://codepen.io/MightyGarhem/pen/LLQoxG
May Kittens Devour Your Soul
@diomed
Jul 05 2017 10:54
delete this: <body></body>
and link should always be in head
<link async href="http://fonts.googleapis.com/css?family=VT323" data-generated="http://enjoycss.com" rel="stylesheet" type="text/css"/>
MightyGarhem
@MightyGarhem
Jul 05 2017 10:59
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
Cirediallo
@Cirediallo
Jul 05 2017 11:08
hello
is there a bug with the challenge Profile Lookup
because if i write for(var i =0; i< contacts.length;i++){ if(contacts[i].firstName === firstName){ console.log("Ok c"); }else{ console.log("No"); } }
it shows Ok c and No in the console
cykins4good
@cykins4good
Jul 05 2017 11:23
How can i set my form, which now has the id attribute of cat-photo-form, a green background color
Ronald T. Casili
@nvlled
Jul 05 2017 11:24
@Cirediallo Well, yes if contacts.length is greater than 1
cykins4good
@cykins4good
Jul 05 2017 11:26
How can i give my form element , which now has the id attribute of cat-photo-form, a green background color
wonder
@wonder2991
Jul 05 2017 11:29
@MightyGarhem you have two body classes
the one with the solid background below is overidding the one with the image above
wonder
@wonder2991
Jul 05 2017 11:36
@cykins4good #cat-photo-form{background-color:green;}
Momozor
@momozor
Jul 05 2017 11:38
Hmm, Gitter went open sourced just recently - https://gitlab.com/gitlab-org/gitter/webapp
Saahil Trivedi
@saahil777
Jul 05 2017 12:07

https://codepen.io/saahil777/pen/XgZLeM?editors=1100

This is my Portfolio page. I want the "Send" button to take it to another page I created. How do I do that?

Ravi Kishore Thella
@ravikishorethella
Jul 05 2017 12:08
@saahil777 use target=_blank
Saahil Trivedi
@saahil777
Jul 05 2017 12:12
doesn't work. but it's a page i created on notepad so is it because it'n not hosted?
it's*
Byron Scott
@bwscott08
Jul 05 2017 12:13
How do you guys know what size image to choose in order to scale correctly? Does img-responsive supposed to do that?
Ravi Kishore Thella
@ravikishorethella
Jul 05 2017 12:14
@saahil777 what value did you give for the <a> tag href ?
@bwscott08 img-responsive is a bootstrap class which helps to scale the image according to the screen size
Saahil Trivedi
@saahil777
Jul 05 2017 12:15
@bwscott08 use background-reapeat: no-repeat background-size: cover in the css class you create for the image. the will scale the image correctly
@ravikishorethella opened the file with a browser and put the URL that showed
```
<a href="file:///C:/Users/Saahil/Desktop/thanks.html" target="_blank">
Byron Scott
@bwscott08
Jul 05 2017 12:16
Thank you! will try
Saahil Trivedi
@saahil777
Jul 05 2017 12:16
<a href="file:///C:/Users/Saahil/Desktop/thanks.html" target="_blank">
wonder
@wonder2991
Jul 05 2017 12:17
no. won't work in codepen
madhuri soni
@sonimadhuri
Jul 05 2017 12:18
@saahil777 the file is stored locally you cant view notepad files like a webpage
Saahil Trivedi
@saahil777
Jul 05 2017 12:18
then what do I have to do to make it work? make a page on codepen and put that link in the href
madhuri soni
@sonimadhuri
Jul 05 2017 12:19
yes
Saahil Trivedi
@saahil777
Jul 05 2017 12:19
okay i'll try that
wonder
@wonder2991
Jul 05 2017 12:20
that will open another pen. why don't you use a pop up modal?
Saahil Trivedi
@saahil777
Jul 05 2017 12:21
how do i do that?
Saahil Trivedi
@saahil777
Jul 05 2017 12:24
@wonder2991 thanks!
CamperBot
@camperbot
Jul 05 2017 12:24
saahil777 sends brownie points to @wonder2991 :sparkles: :thumbsup: :sparkles:
:cookie: 387 | @wonder2991 |http://www.freecodecamp.com/wonder2991
wonder
@wonder2991
Jul 05 2017 12:24
:thumbsup:
Ravi Kishore Thella
@ravikishorethella
Jul 05 2017 12:30
@saahil777 that won't work
Ravi Kishore Thella
@ravikishorethella
Jul 05 2017 12:31
@saahil777 that should be a webpage
Johnny
@JohnnyBizzel
Jul 05 2017 12:39
about @musasesay
CamperBot
@camperbot
Jul 05 2017 12:39
:cookie: 193 | @musasesay |http://www.freecodecamp.com/musasesay
Saahil Trivedi
@saahil777
Jul 05 2017 12:42
@wonder2991 so it worked. but what codepen does is that it shows the modal for just one second and then reloads the page. how to prevent that?
Sweet Coding :)
@SweetCodingInc
Jul 05 2017 13:04

@saahil777 There are two options

1) Change the type of button#send to button. Instead of doing

<button type="submit" class="btn btn-primary" id="send">Send</button>

do

<button type="button" class="btn btn-primary" id="send">Send</button>
OR
keep type="submit" and in your js change your span.onclick to following
btn.onclick = function(e) {
    e.preventDefault();
    modal.style.display = "block";
}
Saahil Trivedi
@saahil777
Jul 05 2017 13:10
@SweetCodingInc thanks!
CamperBot
@camperbot
Jul 05 2017 13:10
saahil777 sends brownie points to @sweetcodinginc :sparkles: :thumbsup: :sparkles:
:cookie: 70 | @sweetcodinginc |http://www.freecodecamp.com/sweetcodinginc
musa B sesay
@musasesay
Jul 05 2017 13:26
@JohnnyBizzel
Johnny
@JohnnyBizzel
Jul 05 2017 13:26
@musasesay Afternoon
musa B sesay
@musasesay
Jul 05 2017 13:28
@JohnnyBizzel how are you
Johnny
@JohnnyBizzel
Jul 05 2017 13:30
@musasesay Ok. I am watching an Angular2 video.
John Wilfred
@ewojjowe
Jul 05 2017 13:30
@judgejab you already get it?
musa B sesay
@musasesay
Jul 05 2017 13:30
@JohnnyBizzel ok that's great
Johnny
@JohnnyBizzel
Jul 05 2017 13:31
@musasesay It's harder than REACT so far :/
musa B sesay
@musasesay
Jul 05 2017 13:32
@JohnnyBizzel yeah
@JohnnyBizzel just matter of keep working
Johnny
@JohnnyBizzel
Jul 05 2017 13:32
@musasesay Yes. Slowly but surely!
musa B sesay
@musasesay
Jul 05 2017 13:33
@JohnnyBizzel yes hahaha
Jonathan Cunanan
@jcunanan05
Jul 05 2017 13:35
hello i just finished the mutations scripting.. i just wondered on how to improve my code. i think i might have code longer. :)
function mutation(arr) {
  for(var i = 0; i < arr[1].length; i++) {
     if(arr[0].toLowerCase().indexOf(arr[1][i].toLowerCase())  === -1){
       return false;
     }
   }
  return true;
}
John Wilfred
@ewojjowe
Jul 05 2017 13:40
@jcunanan05 that's shorter than mine
@jcunanan05
function mutation(arr) {
  var firstStr = arr[0].toLowerCase().split('');
  var secondStr = arr[1].toLowerCase().split('');
  var ind = "";
  for (var x = 0; x < secondStr.length; x++){
    if (firstStr.indexOf(secondStr[x]) != -1){
      ind = true;
    }else {
      return false;
    }
  }
  return ind;
}

mutation(["floor", "for"]);
musa B sesay
@musasesay
Jul 05 2017 13:50
i wanna creat cloud9 account
Kyle Holm
@thekholm80
Jul 05 2017 13:53
go for it
Lance
@texas2010
Jul 05 2017 13:55
@diomed ohh. are you goat now?
musa B sesay
@musasesay
Jul 05 2017 13:57
image.png
Ene Catalin
@EneCatalin
Jul 05 2017 13:59
he's still cat
but friends call him serb :P
May Kittens Devour Your Soul
@diomed
Jul 05 2017 14:04
only emu calls me serb
how rude . ban him Lance @texas2010
Kyle Holm
@thekholm80
Jul 05 2017 14:04
ban him twice, just to make sure it works
Altin Rrahmani
@DevKosov
Jul 05 2017 14:04
no wait
he is ostrich god
:wave: @EneCatalin @thekholm80 @diomed @texas2010
May Kittens Devour Your Soul
@diomed
Jul 05 2017 14:05
gotta hand it to you @DevKosov
Altin Rrahmani
@DevKosov
Jul 05 2017 14:06
Ooo
wait i just realised that i am rap god :laughing:
you cant hand it to me
Kyle Holm
@thekholm80
Jul 05 2017 14:09
@DevKosov :wave:
Ene Catalin
@EneCatalin
Jul 05 2017 14:10
cat shouldn't joke about ostrich ban
ostrich offends a lot of users lol
May Kittens Devour Your Soul
@diomed
Jul 05 2017 14:16
@thekholm80 seen this? https://github.com/intercellular/cell
Kyle Holm
@thekholm80
Jul 05 2017 14:20
@diomed that looks pretty cool
I've been playing a little with handlebars, which is kind of fun too
this is really cool
May Kittens Devour Your Soul
@diomed
Jul 05 2017 14:22
what does it all mean?
Zehur Elmi
@zelmi
Jul 05 2017 14:29
Hey guys, what happened to the help button at the bottom of each assignment? All I see is a hint button now.
GeorgeII
@GeorgeII
Jul 05 2017 14:29
Hello! Can anyone explain me how to get Wiki API callback? I mean what URL should I use? For example this link:
https://en.wikipedia.org/w/api.php?action=query&titles=Wild%20World&prop=revisions&rvprop=content&format=jsonfm
So I can open this link in my browser (it exists) but can't get JSON from it
May Kittens Devour Your Soul
@diomed
Jul 05 2017 14:31
@ZehurElmi they removed it
it's been said that diomed gets too much cookies due to that one
Zehur Elmi
@zelmi
Jul 05 2017 14:32
@diomed Too bad. I liked that feature
May Kittens Devour Your Soul
@diomed
Jul 05 2017 14:32
@GeorgeII what if u delete last 2 letters
Ene Catalin
@EneCatalin
Jul 05 2017 14:33
it's a good feature for ostrich
they read his mind
GeorgeII
@GeorgeII
Jul 05 2017 14:34
@diomed doesn't work
Zehur Elmi
@zelmi
Jul 05 2017 14:35
image.png
Ravi Kishore Thella
@ravikishorethella
Jul 05 2017 14:36
@ZehurElmi inside the style tags select your silver-background class and give the background-color
Zehur Elmi
@zelmi
Jul 05 2017 14:36
Can anyone see that clearly? I was wondering what was wrong with my code
I cant get the background to change color
@ravikishorethella Its what I did but the color is not changing
Ravi Kishore Thella
@ravikishorethella
Jul 05 2017 14:37
@ZehurElmi show your full code
Zehur Elmi
@zelmi
Jul 05 2017 14:38
@ravikishorethella alright but I don't actually know how to send a full code. Ill take a screenshot again
Ravi Kishore Thella
@ravikishorethella
Jul 05 2017 14:38
@ZehurElmi no
copy your code and paste here
@ZehurElmi where is your </div>?
Zehur Elmi
@zelmi
Jul 05 2017 14:41
Ummm. I sorta just messed up my whole code. I'll fix it and get back to you @ravikishorethella
Ravi Kishore Thella
@ravikishorethella
Jul 05 2017 14:43
@ZehurElmi I think </div> should be after the </ol> tag.
jason.song
@sxj1011
Jul 05 2017 14:45
```
Vue.component('currency-input', {
  template: '\
    <div>\
      <label v-if="label">{{ label }}</label>\
      $\
      <input\
        ref="input"\
        v-bind:value="value"\
        v-on:input="updateValue($event.target.value)"\
        v-on:focus="selectAll"\
        v-on:blur="formatValue"\
      >\
    </div>\
  ',
I need help
what does the "\" mean?
Zehur Elmi
@zelmi
Jul 05 2017 14:54

@ravikishorethella

<link href="https://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;
}

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

.smaller-image {
width: 100px;
}
.silver-background {
background-color: slver;
}
</style>

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

<p>Click here for <a href="#">cat photos</a>.</p>

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

<div class="silver-background">
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
</div>

<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality" checked> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Energetic</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>

Ravi Kishore Thella
@ravikishorethella
Jul 05 2017 14:55
@ZehurElmi check the spelling of silver
@ZehurElmi here background-color: slver;
Zehur Elmi
@zelmi
Jul 05 2017 14:56
You can see that I followed the instructions. I've even gotten a bit right, see
Ravi Kishore Thella
@ravikishorethella
Jul 05 2017 14:57
@ZehurElmi there is a typo. :smile:
Createx
@Createx
Jul 05 2017 14:57
hi guys
I want to make an image colapsing to show info about the image and doesnt work
It’s because the image it is in Bootstrap Grid?
  <div class="container-fluid">
    <div class="image row img-responsive">
      <div class="col-md-4 col-xs-4">
        <a href="#demo" data-toggle="collapse"><img src="https://ptitmadlife.files.wordpress.com/2015/11/infinite.jpg?w=240" alt="Infinite Cover-1996" ></a>
        <div id="demo" class="collapse">
          <p>Info image …………….</p>
        </div>
        </div>
Zehur Elmi
@zelmi
Jul 05 2017 14:57
@ravikishorethella LOL. I can't believe I've kept making that same mistake. Thanks!
CamperBot
@camperbot
Jul 05 2017 14:57
zehurelmi sends brownie points to @ravikishorethella :sparkles: :thumbsup: :sparkles:
:cookie: 912 | @ravikishorethella |http://www.freecodecamp.com/ravikishorethella
Ravi Kishore Thella
@ravikishorethella
Jul 05 2017 14:57
@ZehurElmi :thumbsup: :smile:
John Wilfred
@ewojjowe
Jul 05 2017 14:59
@ZehurElmi hahaha, you need to be more precise in your spelling.
May Kittens Devour Your Soul
@diomed
Jul 05 2017 15:01
May the lambs I burn
light the way
Createx
@Createx
Jul 05 2017 15:03
Why Bootstrap colapse doesn't work in codepen.io ?
Kyle Holm
@thekholm80
Jul 05 2017 15:04
because you've probably not added something you need
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:04
@Createx probably you work wiht difference versions
Createx
@Createx
Jul 05 2017 15:05
<a href="#demo" class="btn btn-info" data-toggle="collapse">Simple collapsible</a>
<div id="demo" class="collapse">
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</div>
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:05
@Createx put here youR link on cODEpEN
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:06
@diomed hi
Createx
@Createx
Jul 05 2017 15:06
@vittorioVT i’v added both bootstrap 3 and 4
https://codepen.io/createx/pen/VWQOyP?editors=1100
May Kittens Devour Your Soul
@diomed
Jul 05 2017 15:06
hello @vittorioVT :cat2:
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:07
@Createx you need only one version of Bootstrap
Kyle Holm
@thekholm80
Jul 05 2017 15:07
@Createx delete bootstrap 4 from css then settings => javascript => quick-add => jquery => quick-add => bootstrap 3
May Kittens Devour Your Soul
@diomed
Jul 05 2017 15:07
@Createx delete html , head and body tags
Kyle Holm
@thekholm80
Jul 05 2017 15:07
@diomed that's a great list, thanks
CamperBot
@camperbot
Jul 05 2017 15:07
thekholm80 sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:star2: 5143 | @diomed |http://www.freecodecamp.com/diomed
Kyle Holm
@thekholm80
Jul 05 2017 15:08
@diomed x
May Kittens Devour Your Soul
@diomed
Jul 05 2017 15:08
@DevKosov oh look, some1 made a Tribut page 4 u
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:09
@Createx or remove v.3.3.7 and leave v.4.0.0 :smile:
May Kittens Devour Your Soul
@diomed
Jul 05 2017 15:09
lol, how did that :balloon: survive?
Kyle Holm
@thekholm80
Jul 05 2017 15:09
:sparkles: magic :sparkles:
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:10
@Createx this cheatsheet for v.4.0.0: https://hackerthemes.com/bootstrap-cheatsheet/
Kyle Holm
@thekholm80
Jul 05 2017 15:10
how do you know 4.0 won't change in the future?
May Kittens Devour Your Soul
@diomed
Jul 05 2017 15:11
coz bootstrap is set in stone
Kyle Holm
@thekholm80
Jul 05 2017 15:11
is that how "under development" works?
May Kittens Devour Your Soul
@diomed
Jul 05 2017 15:11
when nothing is released for months - yes
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:12
@thekholm80 it has been unchanged for a year already
Createx
@Createx
Jul 05 2017 15:12

<p>
<a class="btn btn-primary" data-toggle="collapse" href="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
Link with href
</a>
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
Button with data-target
</button>
</p>

why a and button element are in <p> and not in <div> ?

May Kittens Devour Your Soul
@diomed
Jul 05 2017 15:14
dunno u tell us
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:14
@Createx you should add bootstrap in section JS as said @thekholm80
May Kittens Devour Your Soul
@diomed
Jul 05 2017 15:14
u wrote it like that
Createx
@Createx
Jul 05 2017 15:15
i copied from that page
this*
Ene Catalin
@EneCatalin
Jul 05 2017 15:15
wow that's nice
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:16
@Createx this link for v 4.0.0 but you leaved v 3.3.7
Tasleem Sage
@TasleemSage
Jul 05 2017 15:16
Hi Everyone, i am in need of desperate help. i have been stuck on my wikipedia project for some time now. my code just wont work. can someone please tell me what i am doing wrong. my data just wont show. https://codepen.io/tasleemsage/pen/NgXwKK?editors=0001
Createx
@Createx
Jul 05 2017 15:17
@thekholm80 if i remove bootstrap 3.3.7 then the class="img-responsive” on the image stop working
Kyle Holm
@thekholm80
Jul 05 2017 15:17
yeah, that's how that works
please note i never advocated for you to remove bootstrap 3
quite the opposite
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:18
@Createx besides you should add bootstrap in section JS in settings your codepen, don't css
Createx
@Createx
Jul 05 2017 15:18
@vittorioVT ohh ok
i done that and yeah…..still dont work
Santosh Vijapure
@santoshvijapure
Jul 05 2017 15:21
@thekholm80 hey how to add fa-fa buttons in web pen i'm stucded thr
Kyle Holm
@thekholm80
Jul 05 2017 15:21
@santosh62 did you add font awesome in your css settings?
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:21
@Createx define with version and work with one
Createx
@Createx
Jul 05 2017 15:21
@vittorioVT what means that?
Santosh Vijapure
@santoshvijapure
Jul 05 2017 15:22
@thekholm80 nope how to add tht
any link
Santosh Vijapure
@santoshvijapure
Jul 05 2017 15:23
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:23
@Createx in js you have v4.0.0 and in css you have v.3.3.7
Createx
@Createx
Jul 05 2017 15:23
yes
@vittorioVT
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:24
@Createx you need same
Createx
@Createx
Jul 05 2017 15:24
so in js if its 4 then in css should be 4 too?
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:25
@Createx yes of course
Tom Gause
@Tom-Gause
Jul 05 2017 15:25

Good morning everyone. I'm stuck on the javascript lesson "Accessing Objects Properties with Bracket Notation"
var testObj = {
"an entree": "hamburger",
"my side": "veggies",
"the drink": "water"
My code follows:
var entreeValue = ["an entree"];
var drinkValue = ["the drink"];

When I run it, it only returns "an entree" and "the drink" instead of "hamburger" and "water." What exactly am I missing?

May Kittens Devour Your Soul
@diomed
Jul 05 2017 15:25
@santosh62 you sure didn't forget to includeevery possible library there is
Kyle Holm
@thekholm80
Jul 05 2017 15:25
the reference to the object is missing @Tom-Gause
testObj['an entree']
Tom Gause
@Tom-Gause
Jul 05 2017 15:26
/facepalm
Santosh Vijapure
@santoshvijapure
Jul 05 2017 15:26
@diomed yes
Tom Gause
@Tom-Gause
Jul 05 2017 15:26
Thanks so much @thekholm80
CamperBot
@camperbot
Jul 05 2017 15:26
tom-gause sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1280 | @thekholm80 |http://www.freecodecamp.com/thekholm80
May Kittens Devour Your Soul
@diomed
Jul 05 2017 15:26
well, thats wrong @santosh62
Santosh Vijapure
@santoshvijapure
Jul 05 2017 15:26
huh???
May Kittens Devour Your Soul
@diomed
Jul 05 2017 15:26
u should code with 1 library, not 10 of them
Santosh Vijapure
@santoshvijapure
Jul 05 2017 15:27
ohhh shit i added all libs. thr avilale
Createx
@Createx
Jul 05 2017 15:27
@vittorioVT well doesnt work with the same version in both
May Kittens Devour Your Soul
@diomed
Jul 05 2017 15:27
u shouldn't have bootstrap 3,4 materialize and bulma all in the same pen
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:27
@Createx put your link again
Santosh Vijapure
@santoshvijapure
Jul 05 2017 15:27
i need only one right
May Kittens Devour Your Soul
@diomed
Jul 05 2017 15:28
yes, bootstrap 3
Santosh Vijapure
@santoshvijapure
Jul 05 2017 15:28
kk
ill change wait
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:31
@Createx you need <div class="container"> here all your code </div>
Createx
@Createx
Jul 05 2017 15:33

;)

doesnt work either

Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:35
@Createx and also <div class="container">
<div class="row">
<div id="title">
<h1>..</h1>
</div>
<div class="row"> <h2 id="discography">...... </div> </div>
<div class="row"> ........... </div>
</div> you should put in sections
@Createx you can add navbar (https://hackerthemes.com/bootstrap-cheatsheet/#navbar) to your project
Createx
@Createx
Jul 05 2017 15:40
@vittorioVT i want colapse so when you click on an the cover img colaps a little info about the album
and i created a separet pen doc and doesn work
the colapse thing
https://codepen.io/createx/pen/eRKoBz this is the new pen doc with only the colpase “element"
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:49
@Createx why do you need a new page? post it on your page
Sibusiso
@Sbu211
Jul 05 2017 15:49
Sup guys almost finished my portfolio webpage(want to add some jQuery effects to it a bit),also can yal help me fill up the white spaces on some of my pages.Also give me an your opinion on what you think i should add or take out
Createx
@Createx
Jul 05 2017 15:50
@vittorioVT i made a new pen just to see if the colapse thing works
and doesnt at alll
Viktor Tiutiun
@vittorioVT
Jul 05 2017 15:52
@Createx just add this code (https://hackerthemes.com/bootstrap-cheatsheet/#collapse) on your page with responding links
Createx
@Createx
Jul 05 2017 15:53
@Sbu211 well the wildlife photo and app phones try to make them to fill all the space cause both are moved to left
Move contact on the same line with home about me portofolio
make it responsive for all devices
@vittorioVT doesnt work
@Sbu211 and be shure that all images have credit so no copyright or so just sayng
Margaret
@Margaret2
Jul 05 2017 15:58

u shouldn't have bootstrap 3,4 materialize and bulma all in the same pen

oh wow :joy: :joy:

Kyle Holm
@thekholm80
Jul 05 2017 15:59
if one library is good, all the libraries is best
Margaret
@Margaret2
Jul 05 2017 15:59
i'm still laughing hahaha :joy:
Kyle Holm
@thekholm80
Jul 05 2017 15:59
npm install --save everything
Timothy Hoang
@timh1203
Jul 05 2017 15:59
Hi guys, I'm having some problems with the JSON API call request for the Random Quote Machine. It's not pulling the quotes.
https://codepen.io/timh1203/pen/LLrqGM/
Kyle Holm
@thekholm80
Jul 05 2017 16:00
@Margaret2 there was a vue question earlier if you want to scroll up a bit
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:00
pls god , no
Santosh Vijapure
@santoshvijapure
Jul 05 2017 16:01
using of more than one libs itll affect the programm???
Viktor Tiutiun
@vittorioVT
Jul 05 2017 16:01
@Createx doesn't work because it isn't in container. I already wrote to you how to do it. see above
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:01
@Sbu211
.container-fluid{ margin:0;padding:0;}
@santosh62 of course it will- it will mess your code up so bad
Kyle Holm
@thekholm80
Jul 05 2017 16:02
@santosh62 some libraries can conflict, but it's best to only include libraries you're actually using
Margaret
@Margaret2
Jul 05 2017 16:02
@sxj1011 in that code, you're writing HTML as a "" string, so i'm pretty sure that the \ is used at the end of a line to mean that the string keeps going
Santosh Vijapure
@santoshvijapure
Jul 05 2017 16:03
thts bcoz i failled to add icons on portfolio
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:03
and going\
and going\
and going
I thought that means new line
Margaret
@Margaret2
Jul 05 2017 16:03
well, a multi-line string
Margaret
@Margaret2
Jul 05 2017 16:03
\n means new line specifically
Kyle Holm
@thekholm80
Jul 05 2017 16:04
I love `` for multi-line strings
Margaret
@Margaret2
Jul 05 2017 16:04
not best practice to do your template like that though :stuck_out_tongue_closed_eyes:
so ugly
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:04
@Margaret2
What problems this solves
1. There is No God (There is No Framework)
Are u interested now?
Margaret
@Margaret2
Jul 05 2017 16:04
hmm maybe
what is that
Margaret
@Margaret2
Jul 05 2017 16:05
oh, just another anti-framework framework
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:05
łoł
Margaret
@Margaret2
Jul 05 2017 16:06
łełłł
you gonna learn it?
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:06
how do I save anything in my local storage?
Margaret
@Margaret2
Jul 05 2017 16:07
right click and select "Save As ..." :smiling_imp:
Kyle Holm
@thekholm80
Jul 05 2017 16:07
localStorage.set('name', {content}) i think?
or is it setItem()?
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:08
guyse, my pudding:0; doesn't work
Margaret
@Margaret2
Jul 05 2017 16:09
window.localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(xyz)) example i've saved
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:09

@thekholm80 so if I had this:

lol = {
  $cell: true,
  $init: function(){
    this._editor = new MediumEditor([this]);
  }
}

how would I save text in local storage

Margaret
@Margaret2
Jul 05 2017 16:09
@diomed try margarine: 60in; instead
Ene Catalin
@EneCatalin
Jul 05 2017 16:09
hi brit
Margaret
@Margaret2
Jul 05 2017 16:10
hi italian
Kyle Holm
@thekholm80
Jul 05 2017 16:10
@diomed it's a mystery
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:10
I'll try Margo:20px;
@thekholm80 I'm serious :/
pls help me
Ene Catalin
@EneCatalin
Jul 05 2017 16:10
what does ostrich have in common with italians ?
you like tea => brit
ostrich is not really much of a pasta eater
nor part of the mob
Kyle Holm
@thekholm80
Jul 05 2017 16:11
window.localStorage.setItem('diomedStoringStuff', JSON.stringify(lol))
Margaret
@Margaret2
Jul 05 2017 16:11
@EneCatalin Romania => Rome => Italian
Ene Catalin
@EneCatalin
Jul 05 2017 16:11
not really ?
Margaret
@Margaret2
Jul 05 2017 16:11
:smile:
Ene Catalin
@EneCatalin
Jul 05 2017 16:11
I mean romania and rome have nothing in common
bad stereotype
Margaret
@Margaret2
Jul 05 2017 16:11
first 3 letters...
Kyle Holm
@thekholm80
Jul 05 2017 16:11
romainia => romaine => lettuce
Ene Catalin
@EneCatalin
Jul 05 2017 16:11
gypsy is much more insulting, racist and generally great for making romanians hate you
so call me that
Margaret
@Margaret2
Jul 05 2017 16:12
i didn't wanna go that far lol
lettuce, i like it
Ene Catalin
@EneCatalin
Jul 05 2017 16:12
at least make some effort guys
Margaret
@Margaret2
Jul 05 2017 16:12
how about just Roman, there we go :D
Ene Catalin
@EneCatalin
Jul 05 2017 16:12
again, nothing in common
Margaret
@Margaret2
Jul 05 2017 16:12
Roman is a good guy's name
Ene Catalin
@EneCatalin
Jul 05 2017 16:12
patriots would love it
I mean they raped and pillaged
nice guys
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:13
@thekholm80 what is 'diomedStoringStuff' in that?
Createx
@Createx
Jul 05 2017 16:13
and this is a code help chat not politics and social thing
Ene Catalin
@EneCatalin
Jul 05 2017 16:13
but yes, patriots love rome and all that biip
Kyle Holm
@thekholm80
Jul 05 2017 16:13
@diomed you have to name what you store
that's the name i picked
Ene Catalin
@EneCatalin
Jul 05 2017 16:13
@Createx are you stuck ?
cause margaret is an expert
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:14
do I need to call it then somehow? - like, to display @thekholm80
Ene Catalin
@EneCatalin
Jul 05 2017 16:14
as for us, we're trying to insult each other in appropriate ways
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:14
u're the only insulter here, emu
Createx
@Createx
Jul 05 2017 16:14
@EneCatalin doesnt work the Colapse Bootstrap code in codepen
Kyle Holm
@thekholm80
Jul 05 2017 16:14
@diomed JSON.parse(localStorage.getItem('diomedStoresStuff'))
Margaret
@Margaret2
Jul 05 2017 16:14
^^
Ene Catalin
@EneCatalin
Jul 05 2017 16:15
@diomed well I am not stopping you nor do I mind :P
@Createx and I'd help if I knew enough bootstrap
best I can do is this
Margaret
@Margaret2
Jul 05 2017 16:17
@EneCatalin you need to take a break from dota and play Neko Atsume, you'd feel much nicer :smile_cat:
Createx
@Createx
Jul 05 2017 16:17
@EneCatalin the problem is that i got the code but doesnt work
Ene Catalin
@EneCatalin
Jul 05 2017 16:17
margaret wants ostrich to suicide
not nice brit, not nice
@Createx the page from the official docs doesn't work ?
90% you imported it wrong
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:17
Neko Atsume
Ene Catalin
@EneCatalin
Jul 05 2017 16:18
DO NOT use codepen
use your local env
then just upload it to that site
Viktor Tiutiun
@vittorioVT
Jul 05 2017 16:18
and it really doesn't work :smile:
Margaret
@Margaret2
Jul 05 2017 16:18
@Createx bootstrap 4 isn't compatible with bootstrap 3... getbootstrap.com is BS3
just fyi
Createx
@Createx
Jul 05 2017 16:19
@EneCatalin i dont manage to use bootstrap in my text editor either xD :(
Kyle Holm
@thekholm80
Jul 05 2017 16:19
@Createx like i said about an hour ago, you need jquery
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:19
What am I doing wrong????
mlem = {
  $cell: true,
  $init: function(){
    this._editor = new MediumEditor([this]);
  }
}

window.localStorage.setItem('diomedStoringStuff', JSON.stringify(mlem));
JSON.parse(localStorage.getItem('diomedStoringStuff'))
Kyle Holm
@thekholm80
Jul 05 2017 16:19
you have to import jquery before bootstrap.js
Ene Catalin
@EneCatalin
Jul 05 2017 16:19
@Createx print screen
of editor import stuffy
and what holm said too
Kyle Holm
@thekholm80
Jul 05 2017 16:20
@diomed i have no idea what you're trying to do
JSON.parse(localStorage.getItem('diomedStoresStuff')) returns the parsed item, you should catch it in a variable or something
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:22
I simply want that it shows same text upon reload
but nope
Ransford
@dexter34
Jul 05 2017 16:22
hi guys,i get this margin when in insert <h1> element on a page, how can i get rid of it? https://codepen.io/Dexter34/pen/JJZraQ
Createx
@Createx
Jul 05 2017 16:24
@thekholm80 ❤❤❤
@thekholm80 Thanks!
CamperBot
@camperbot
Jul 05 2017 16:24
createx sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1281 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Createx
@Createx
Jul 05 2017 16:24
@thekholm80 i miss your message i guess, i’m sorry
Margaret
@Margaret2
Jul 05 2017 16:24
@diomed so maybe you should have some sort of event... like when the text is updated, you call a function to set it in local storage
Kyle Holm
@thekholm80
Jul 05 2017 16:25
local storage? event handlers? @diomed is finally learning JS?
Margaret
@Margaret2
Jul 05 2017 16:26
then include getItem as part of your component to pull the text from local storage when the component is created...
diomed @diomed just wanna saves
Kyle Holm
@thekholm80
Jul 05 2017 16:26
@Margaret2 x
Margaret
@Margaret2
Jul 05 2017 16:27
@thekholm80 :joy: :joy: :joy:
that reminds me, i was walking this morning and there was a bird on the sidewalk looking up at me suspiciously....
Kyle Holm
@thekholm80
Jul 05 2017 16:28
were you on it's lawn?
Margaret
@Margaret2
Jul 05 2017 16:28
I said "Hi bird-bird" and he FREAKED OUT, squawking and flying in random directions :joy:
Ygor Dantas
@ygordantas
Jul 05 2017 16:28

any hint ?
var count = 0;

function cc(card) {
// Only change code below this line
switch(card){
case 2:
case 3:
case 4:
case 5:
case 6: return +1 ;break;
case 7:
case 8:
case 9:return 0;break;
case 10:
case "J":
case "Q":
case "k":
case "A" return -1;break;
}

Margaret
@Margaret2
Jul 05 2017 16:29
@ygordantas you shouldn't be returning in the switch statement
Kyle Holm
@thekholm80
Jul 05 2017 16:29
@ygordantas instead of return you should change the value of count
Ygor Dantas
@ygordantas
Jul 05 2017 16:29
aaah make sense. let me try it out
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:30
Hi brid
bwaaaaaaahhhhh!!!
Margaret
@Margaret2
Jul 05 2017 16:31
:joy:
Margaret2 @Margaret2 will go look at this cell non-framework thingy
NIKHILESHWARI NASIKA
@nikhileshwarinasika
Jul 05 2017 16:32
hey all
:smile:
Wiktor
@victorcodecamp
Jul 05 2017 16:33
Hello. I am currently doing my personal portfolio page. I am almost finished, I only need to replace the placeholder image with mine. However, one thing is bothering me a lot. Why is there a scrolling panel on the bottom of the page? I didnt insert any elements wider than 100vw, maybe it's because of excessive margins? I checked all of them and they seemed fine. I'd appreciate it if anyone could have a look and tell me what causes the problem. https://codepen.io/victorfreecodecamp/full/OgvRwR/
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:33
Hi Buddha
NIKHILESHWARI NASIKA
@nikhileshwarinasika
Jul 05 2017 16:34
lol
Kyle Holm
@thekholm80
Jul 05 2017 16:34
@Margaret2 x
Margaret
@Margaret2
Jul 05 2017 16:35
aww that's cute :D
Altin Rrahmani
@DevKosov
Jul 05 2017 16:35
@diomed omg somone made tribute for me!
@Margaret2 :wave:
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:35
omg
Altin Rrahmani
@DevKosov
Jul 05 2017 16:36
omgomg
NIKHILESHWARI NASIKA
@nikhileshwarinasika
Jul 05 2017 16:36
what's happening
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:37
@Margaret2 I can stand behind these instructions. This makes sense to me
When defining a Genotype variable, it really doesn't matter what you name it. To demonstrate this, we'll name it ಠᴥಠ.
ಠᴥಠ = {
    $cell: true,
    $type: "span",
    $text: "Hello"
}
Margaret
@Margaret2
Jul 05 2017 16:37
haha, i copied their list example and i'm gonna try to make it use local storage
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:38
:+1:
NIKHILESHWARI NASIKA
@nikhileshwarinasika
Jul 05 2017 16:38
what is the language ur using ?@diomed
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:38
cell
Margaret
@Margaret2
Jul 05 2017 16:38
haven't really coded in a while, so i'll see how it goes :sweat_smile:
NIKHILESHWARI NASIKA
@nikhileshwarinasika
Jul 05 2017 16:38
i mean ... ur at what level in coding?
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:38
n00b
Altin Rrahmani
@DevKosov
Jul 05 2017 16:39
guys do you know any app which auto refreshes like codepen but in local
Wiktor
@victorcodecamp
Jul 05 2017 16:39
Hello. I am currently doing my personal portfolio page. I am almost finished, I only need to replace the placeholder image with mine. However, one thing is bothering me a lot. Why is there a scrolling panel on the bottom of the page? I didnt insert any elements wider than 100vw, maybe it's because of excessive margins? I checked all of them and they seemed fine. I'd appreciate it if anyone could have a look and tell me what causes the problem. https://codepen.io/victorfreecodecamp/full/OgvRwR/
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:40
yes @DevKosov
Altin Rrahmani
@DevKosov
Jul 05 2017 16:41
@diomed :heart: thanks
CamperBot
@camperbot
Jul 05 2017 16:41
devkosov sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:star2: 5144 | @diomed |http://www.freecodecamp.com/diomed
akashskycodder
@akashskycodder
Jul 05 2017 16:48
Wiktor check responsiveness of ur page it's looking little bit different in mobile
Nick Janne
@njanne19
Jul 05 2017 16:48
@njanne19
Hey, I'm working on recipe box, but I'm having a lot of issues. Currently, when trying to close the modal, I get the error "performUpdateIfNecessary: Unexpected batch number (current 16, pending 9)"
I think it's a problem I have with updating state. Can someone help?
Wiktor
@victorcodecamp
Jul 05 2017 16:49
@akashskycodder isn't that because I used col-md-6? md stands for middle sized screens, right? for smartphones its xs, is that why its looking different?
SaiChand Duppala
@saichandd
Jul 05 2017 16:50

.to_the_left {
  padding-left: 800px;
}
i changed 800 and it worked @victorcodecamp
i mean worked*
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:50
SaiChand Duppala
@saichandd
Jul 05 2017 16:51
stopped*
Wiktor
@victorcodecamp
Jul 05 2017 16:51
@imRadioactive but changed to what?
SaiChand Duppala
@saichandd
Jul 05 2017 16:51
@victorcodecamp decreased it
Ygor Dantas
@ygordantas
Jul 05 2017 16:53
—'

var count = 0;

function cc(card) {
// Only change code below this line
switch(card){
case 2:
case 3:
case 4:
case 5:
case 6: count++ ;break;
case 10:
case "J":
case "Q":
case "K":
case "A":count-- ;break;
}
if (count >= 1){
return count +" Bet";
} else{
return count +" Hold";
}

SaiChand Duppala
@saichandd
Jul 05 2017 16:53
@victorcodecamp I guess the total width of those li's and padding is exceddding 100vw
Ygor Dantas
@ygordantas
Jul 05 2017 16:53
it says” it cant find variable J
Wiktor
@victorcodecamp
Jul 05 2017 16:55
@imRadioactive when i decreased it to 400px, it didn't work. the bar was still there, but "about portfolio contact" moved a little bit to the right
SaiChand Duppala
@saichandd
Jul 05 2017 16:56
@victorcodecamp just checked, at 400px its working fine for me
SaiChand Duppala
@saichandd
Jul 05 2017 16:58
@victorcodecamp you've changed something else I guess use this css (your old old) and its fine
body {
  margin: 0;
  padding: 0;
  font-family: Arial;
  overflow-x : hidden;
}

.nav {
  background-color: #55d6aa;
  color: #444;
  list-style: none;
  text-align: center;
  padding: 20px 0 20px 0;
  top:0;
  left:0;
  right:0;
  position:fixed;
  z-index: 9999;
  margin-top: 0px;
}

.nav > li {
  display: inline-block;
  padding-right: 50px;
}

.nav > li > a {
  text-decoration: none;
  color: #444;
}

.nav > li > a:hover {
  color: #444;
  font-weight: 600;
}

.to_the_left {
  padding-left: 400px;
}

.gototop {
  width: 100vw;
  height: 40px;
  background-color: black;
}

.h1 {
  font-family: 'Arial', serif;
}

.myimg {
  border-color: #55d6aa;
  border-width: 20px;
  border-radius: 50%;
  border-style: solid;
  margin-top: 50px;
  margin-left: 100px;
  margin-bottom: 50px;
}
.hello {
  margin: 80px 0px 50px 90px;
}

p {
  font-size: 20px;
}

.hor_line {
  background-color: #55d6aa;
  width: 60vw;
  height: 7px;
  margin-top: 15px;
  float: left;
}
.h2 {
  color: #55d6aa;
  text-decoration: underline;
  margin-left: 120px;
}
.smaller-image {
  width: 400px;
  height: auto;
  border-style: solid;
  border-color: #55d6aa;
  border-width: 5px
}
.toleft {
  margin-left: 130px;
  margin-top: 60px;
}
.even {
  margin-left: 130px;
}
.wanker {
  background-color: white;
  width: 100vw;
  height: 100px;
}
.quoraimg {
  margin-left: 80px;
  margin-top: 60px;
  border-style: solid;
  border-color: #55d6aa;
  border-width: 10px;
  border-radius: 50%;
  width: 300px;
  height: auto;
}
.contact-text {
  margin-top: 150px;
  margin-left: 100px;
  margin-right: 0px;
}
.copyright {
  width: 100vw;
  height: 30px;
  background-color: #55d6aa;
  margin-top: 100px;
}
.quoraimg:hover {
  border-color: #417ee0;
}
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:59
thanks @Margaret2
CamperBot
@camperbot
Jul 05 2017 16:59
diomed sends brownie points to @margaret2 :sparkles: :thumbsup: :sparkles:
:star2: 2836 | @margaret2 |http://www.freecodecamp.com/margaret2
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:59
I'll take a look :+1:
Margaret
@Margaret2
Jul 05 2017 16:59
:sparkles: :blue_heart:
May Kittens Devour Your Soul
@diomed
Jul 05 2017 16:59
:heart:
Wiktor
@victorcodecamp
Jul 05 2017 16:59
@imRadioactive wow that worked. I dont know why, maybe a typo or I accidentaly deleted something. thanks a lot
CamperBot
@camperbot
Jul 05 2017 16:59
victorcodecamp sends brownie points to @imradioactive :sparkles: :thumbsup: :sparkles:
:cookie: 304 | @imradioactive |http://www.freecodecamp.com/imradioactive
SaiChand Duppala
@saichandd
Jul 05 2017 17:00
:thumbsup:
May Kittens Devour Your Soul
@diomed
Jul 05 2017 17:00
no white :hearts:
Margaret
@Margaret2
Jul 05 2017 17:00
:soon: :orange_heart:
Lance
@texas2010
Jul 05 2017 17:00
oh.. that is really long of code...
probably better use gist. just saying. @imRadioactive
Margaret
@Margaret2
Jul 05 2017 17:00
yep too long for chat ...
May Kittens Devour Your Soul
@diomed
Jul 05 2017 17:02
was there some firework in Texas yesterday
Margaret
@Margaret2
Jul 05 2017 17:02
lol yeah, i could hear them
Lance
@texas2010
Jul 05 2017 17:02
oh.. i didnt noticed her..
Margaret
@Margaret2
Jul 05 2017 17:02
hahahaa
Lance
@texas2010
Jul 05 2017 17:02
until now..
Ygor Dantas
@ygordantas
Jul 05 2017 17:02

Can anybody help me ? “It keeps saying “error : can’t find varible “J” —‘

var count = 0;

function cc(card) {
// Only change code below this line
switch(card){
case 2:
case 3:
case 4:
case 5:
case 6: count++ ;break;
case 10:
case "J":
case "Q":
case "K":
case "A":count-- ;break;
}
if (count >= 1){
return count +" Bet";
} else{
return count +" Hold";
}
// Only change code above this line
}

// Add/remove calls to test your function.
// Note: Only the last will display
cc(10); cc(J); cc(Q); cc('K'); cc('A');

SaiChand Duppala
@saichandd
Jul 05 2017 17:03
@texas2010 at time0 I opened Wiktor's codepen, at time1 he made some unkown changes to his code, I was giving him his code, thought this was better than saving it in codepen
Margaret
@Margaret2
Jul 05 2017 17:03
@ygordantas you can't do cc(J) and cc(Q) at the end, it has to be like cc("J")
SaiChand Duppala
@saichandd
Jul 05 2017 17:03
his old code*
Lance
@texas2010
Jul 05 2017 17:03
oh ok. no problem.
SaiChand Duppala
@saichandd
Jul 05 2017 17:04
:smiley:
Ygor Dantas
@ygordantas
Jul 05 2017 17:06
@Margaret2 OMG I did not know I had to change values on that last line as well. Thanks for your help I was going crazy with this challenge :P
CamperBot
@camperbot
Jul 05 2017 17:06
ygordantas sends brownie points to @margaret2 :sparkles: :thumbsup: :sparkles:
:star2: 2837 | @margaret2 |http://www.freecodecamp.com/margaret2
Darren
@DarrenfJ
Jul 05 2017 17:08
go'day fCC
Margaret
@Margaret2
Jul 05 2017 17:12
@DarrenfJ hello hello :wave:
Yvonne
@FirnSage
Jul 05 2017 17:17
hello
May Kittens Devour Your Soul
@diomed
Jul 05 2017 17:17
hello @DarrenfJ :cat:
Yvonne
@FirnSage
Jul 05 2017 17:18

can anyone explane to me why the answer of challenge 160 Access MultiDimensional Arrays With Indexes is these // Setup
var myArray = [[1,2,3], [4,5,6], [7,8,9], [[10,11,12], 13, 14]];

// Only change code below this line.
var myData = myArray[2][1];

Ogundele Olumide
@Lumexralph
Jul 05 2017 17:19
@Margaret2 :zap:
Margaret
@Margaret2
Jul 05 2017 17:19
@Lumexralph oh hi! i've been thinking about coming back to the js room :D
May Kittens Devour Your Soul
@diomed
Jul 05 2017 17:20
has JS have got no mercy? :disappointed: :dizzy_face:
Margaret
@Margaret2
Jul 05 2017 17:21
just for a visit ... wouldn't stay there :D
Darren
@DarrenfJ
Jul 05 2017 17:24
@Margaret2 hello hello Margaret!
hi diomed.. and hi @FirnSage as well :D
@Margaret2 i haven't been to the js room for a while? Is it a ruthless wasteland of js warlords vie-ing for scarce post-apocalyptic resources?
madhuri soni
@sonimadhuri
Jul 05 2017 17:25
@FirnSage arrays are indexed from 0 this way at first let us index the numbers
0 -> [1,2,3]
1 -> [4,5,6]
2 -> [7,8,9] and so on... 
we want to search the element 8 which is present in the index 2 then again let us number the array at index 2:
[2][0]->7
[2][1]->8
[2][2]->9 
from the above 8 is found at position array_name[2][1]
Margaret
@Margaret2
Jul 05 2017 17:26
@DarrenfJ idk, you should ask @Manish-Giri, i think he's moved there permanently :laughing:
Darren
@DarrenfJ
Jul 05 2017 17:27
@FirnSage it's a set of arrays inside an array.. so the first number is counting from 0 which array the 8 is in.. then the second number is the position in that second array (counting from 0 as well)
@Margaret2 oh yah? oh that's good. a few months back he was saying he wanted more challenging questions and i was all go to the js room
plus now late at night EST this place is a tumbleweed town
Margaret
@Margaret2
Jul 05 2017 17:29
yeah, i work at night, so i can't get on much then
but we're doing our best :)
Darren
@DarrenfJ
Jul 05 2017 17:30
@FirnSage and plus @sonimadhuri gave you a good run down above.. can you see how it's the third array that has to 8 (and so it's the 0, 1, 2nd) and then inside that array it's the second position (the 0, 1st) so [2][1]
Yvonne
@FirnSage
Jul 05 2017 17:30
@sonimadhuri wow thank u so much
CamperBot
@camperbot
Jul 05 2017 17:30
firnsage sends brownie points to @sonimadhuri :sparkles: :thumbsup: :sparkles:
:cookie: 308 | @sonimadhuri |http://www.freecodecamp.com/sonimadhuri
Yvonne
@FirnSage
Jul 05 2017 17:30
@DarrenfJ thanks
CamperBot
@camperbot
Jul 05 2017 17:30
firnsage sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1879 | @darrenfj |http://www.freecodecamp.com/darrenfj
Darren
@DarrenfJ
Jul 05 2017 17:30
@Margaret2 yah i used to come on around 2 to 3ish EST but there's not much going on since the help button vent vamooosh
Margaret
@Margaret2
Jul 05 2017 17:31
oh wow 2-3am? :o what a night owl
Darren
@DarrenfJ
Jul 05 2017 17:31
@FirnSage eventually you get used to thinking in things starting at zero and it becomes easier... generally with code it counts from 0
@Margaret2 shrug i like to think in code at night
in the day I'm all business...
madhuri soni
@sonimadhuri
Jul 05 2017 17:32
@FirnSage :smile:
Darren
@DarrenfJ
Jul 05 2017 17:32
well, more like all BAing
thank for helping out @sonimadhuri brownies for you :D
CamperBot
@camperbot
Jul 05 2017 17:32
darrenfj sends brownie points to @sonimadhuri :sparkles: :thumbsup: :sparkles:
:cookie: 309 | @sonimadhuri |http://www.freecodecamp.com/sonimadhuri
Yvonne
@FirnSage
Jul 05 2017 17:32
yes very good exaplation from @sonimadhuri and @DarrenfJ
Darren
@DarrenfJ
Jul 05 2017 17:33
and brownies for the two who help out day after day for free ;)
thanks @Margaret2 @diomed
CamperBot
@camperbot
Jul 05 2017 17:33
darrenfj sends brownie points to @margaret2 and @diomed :sparkles: :thumbsup: :sparkles:
:star2: 2838 | @margaret2 |http://www.freecodecamp.com/margaret2
:star2: 5145 | @diomed |http://www.freecodecamp.com/diomed
Darren
@DarrenfJ
Jul 05 2017 17:33
that hard working help room miners.. digging up all those nuggets of knowledge for the newbs
Amit Patel
@AmitP88
Jul 05 2017 17:34
@AmitP88
hey guys, I'm trying to solve the Find the Longest Word in a String algorithm and I need some help figuring out how to get my solution to work:

function findLongestWord(str) {

  str = str.split(' ');

  var wordLength =  str.map(function(word) {
    var length = word.length;

    for(i=0; i < str; i++){
      return Math.max(word.length);
    }


  });


}

findLongestWord("The quick brown fox jumped over the lazy dog");
Margaret
@Margaret2
Jul 05 2017 17:34
@DarrenfJ ty :sparkles: :yellow_heart:
CamperBot
@camperbot
Jul 05 2017 17:34
margaret2 sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1880 | @darrenfj |http://www.freecodecamp.com/darrenfj
madhuri soni
@sonimadhuri
Jul 05 2017 17:34
@DarrenfJ thankyou for beig awesome
CamperBot
@camperbot
Jul 05 2017 17:34
sonimadhuri sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1881 | @darrenfj |http://www.freecodecamp.com/darrenfj
Margaret
@Margaret2
Jul 05 2017 17:35
@AmitP88 the way i did that one was to sort the array by word length, then you can just get the first word in the array
DarrenfJ @DarrenfJ sneaks off to Ba and QA
Amit Patel
@AmitP88
Jul 05 2017 17:36
@Margaret2 ah I see. I'll check out the docs for sort method. thanks for the tip! :)
CamperBot
@camperbot
Jul 05 2017 17:36
amitp88 sends brownie points to @margaret2 :sparkles: :thumbsup: :sparkles:
:star2: 2839 | @margaret2 |http://www.freecodecamp.com/margaret2
iduvancho303
@iduvancho303
Jul 05 2017 18:03
holaa !
theclayster
@theclayster
Jul 05 2017 18:17
hellow everyone
Yvonne
@FirnSage
Jul 05 2017 18:21
hi see ya later
theclayster
@theclayster
Jul 05 2017 18:26
everyone sleep again? lol
Bilal Ahmed
@connectwithbilalahmed
Jul 05 2017 18:26
Hi
theclayster
@theclayster
Jul 05 2017 18:27
i could use a little help @MUHAMMAD-BILAL-AHMED
Bilal Ahmed
@connectwithbilalahmed
Jul 05 2017 18:27
yes
theclayster
@theclayster
Jul 05 2017 18:28
im starting my portfolio but im kinda stumped as to what to put first
Bilal Ahmed
@connectwithbilalahmed
Jul 05 2017 18:28
@theclayster
make your design first
Coy Sanders
@coymeetsworld
Jul 05 2017 18:29
@theclayster make your sections first
theclayster
@theclayster
Jul 05 2017 18:30
you mean the colums?
Coy Sanders
@coymeetsworld
Jul 05 2017 18:30
well, probably rows
theclayster
@theclayster
Jul 05 2017 18:30
they never tought me any of this thats why im kinda lost
<div class="row"> ?
Coy Sanders
@coymeetsworld
Jul 05 2017 18:30
its not a straight line to projects, you generally have to learn more outside of FCC to get a better idea
but, you don't have to use anything that you haven't learned in the curriculum thus far
Manish Giri
@Manish-Giri
Jul 05 2017 18:31
@coymeetsworld have you tried angular 2?
Coy Sanders
@coymeetsworld
Jul 05 2017 18:31
The page might not look that great but whatever
@Manish-Giri no I don't think so, just v1
theclayster
@theclayster
Jul 05 2017 18:31
take a look for me
Manish Giri
@Manish-Giri
Jul 05 2017 18:31
okay
Coy Sanders
@coymeetsworld
Jul 05 2017 18:32
what am I looking at?
Manish Giri
@Manish-Giri
Jul 05 2017 18:32
I've been going over Ang 2 over the last week or so, and I'm liking it so far
theclayster
@theclayster
Jul 05 2017 18:32
my tribute
Kyle Holm
@thekholm80
Jul 05 2017 18:32
heresy
Coy Sanders
@coymeetsworld
Jul 05 2017 18:32
I understand, but why am I looking at it?
Manish Giri
@Manish-Giri
Jul 05 2017 18:32
:smiling_imp:
theclayster
@theclayster
Jul 05 2017 18:32
lol just sharing it
Coy Sanders
@coymeetsworld
Jul 05 2017 18:33
@thekholm80 spent most of the weekend trying out jest, the snapshots are helpful
Manish Giri
@Manish-Giri
Jul 05 2017 18:33
@thekholm80 it's a lot less code to do trivial things, as compared to react..
Kyle Holm
@thekholm80
Jul 05 2017 18:33
I still haven't tried it, but the lightning talk i heard about it at a meet up was pretty awesome @coymeetsworld
@Manish-Giri you're dead to me
Manish Giri
@Manish-Giri
Jul 05 2017 18:34
:smirk:
Kyle Holm
@thekholm80
Jul 05 2017 18:34
lol
Manish Giri
@Manish-Giri
Jul 05 2017 18:34
oh pls
Kyle Holm
@thekholm80
Jul 05 2017 18:34
I have a few more projects then I'll look into it
Manish Giri
@Manish-Giri
Jul 05 2017 18:34
even you're gonna do Ang 2 after this, and you know it
:smiling_imp:
Kyle Holm
@thekholm80
Jul 05 2017 18:35
but not vue. i have to draw the line somewhere
Manish Giri
@Manish-Giri
Jul 05 2017 18:35
yeah i'm not doing vue either
Coy Sanders
@coymeetsworld
Jul 05 2017 18:35
@thekholm80 you mean snapshots? or jest?
Kyle Holm
@thekholm80
Jul 05 2017 18:35
@coymeetsworld both
Coy Sanders
@coymeetsworld
Jul 05 2017 18:35
what? I used jest on your recommendation
lol ugh
Kyle Holm
@thekholm80
Jul 05 2017 18:36
I still want to try it, i should do it now since i'm just starting my front end
Coy Sanders
@coymeetsworld
Jul 05 2017 18:36
I haven't used it for front end UI components yet
Kyle Holm
@thekholm80
Jul 05 2017 18:36
one of the tech companies here did a presentation about how they were incorporating it into their workflow
Coy Sanders
@coymeetsworld
Jul 05 2017 18:36
just testing business logic
Manish Giri
@Manish-Giri
Jul 05 2017 18:37
is @Margaret2 here
Coy Sanders
@coymeetsworld
Jul 05 2017 18:37
my output can have hundreds of rows of objects
Kyle Holm
@thekholm80
Jul 05 2017 18:37
@Manish-Giri she was earlier
Coy Sanders
@coymeetsworld
Jul 05 2017 18:37
so, snapshots are nice to have to test. Still have to verify all the rows but saves you the trouble of inputting the test case yourself
Kyle Holm
@thekholm80
Jul 05 2017 18:37
yeah
Coy Sanders
@coymeetsworld
Jul 05 2017 18:37
also has nice feature of showing coding coverage
Kyle Holm
@thekholm80
Jul 05 2017 18:37
I have a bad habit of side-effects when i change stuff
Manish Giri
@Manish-Giri
Jul 05 2017 18:38
@thekholm80 I tuned in into Vivaldi's live stream early morning today, they were implementing the sync feature and were streaming the coding live..
Margaret
@Margaret2
Jul 05 2017 18:38
A wild Manish Giri appears :o
Manish Giri
@Manish-Giri
Jul 05 2017 18:38
They use React, and tbh, their code isn't all that good
Margaret
@Margaret2
Jul 05 2017 18:38
Long time no see
Manish Giri
@Manish-Giri
Jul 05 2017 18:38
Long time no see
Kyle Holm
@thekholm80
Jul 05 2017 18:38
are they going to make it usable?
Manish Giri
@Manish-Giri
Jul 05 2017 18:39
I'm changing my pic soon
Margaret
@Margaret2
Jul 05 2017 18:40
what are they syncing again? ... mobile + PC?
Manish Giri
@Manish-Giri
Jul 05 2017 18:40
sync between vivaldi browsers across different PCs
like chrome has
Margaret
@Margaret2
Jul 05 2017 18:40
oh
for those rich ppl with more than one pc :joy:
Manish Giri
@Manish-Giri
Jul 05 2017 18:41
the code is in C++
:sweat:
x
iduvancho303
@iduvancho303
Jul 05 2017 18:42
<form action="/submit-cat-photo"> <input type="text" placeholder="cat photo URL"> <button type="submit">Submit</button> </form>
Manish Giri
@Manish-Giri
Jul 05 2017 18:42
this is what the new pic will be
iduvancho303
@iduvancho303
Jul 05 2017 18:42
whats the funciont of form ? pleease anyone
Manish Giri
@Manish-Giri
Jul 05 2017 18:42
@Margaret2 won't be impressed
Margaret
@Margaret2
Jul 05 2017 18:42
:( :(
Kyle Holm
@thekholm80
Jul 05 2017 18:43
lol
Margaret
@Margaret2
Jul 05 2017 18:43
why would you do that :(
Manish Giri
@Manish-Giri
Jul 05 2017 18:43
because I saw Southpaw yesterday
and the Phenomenal track is just :fire:
Margaret
@Margaret2
Jul 05 2017 18:44
@iduvancho303 like when you go to a website and you have to put information into a form, like to sign up for something or create something
Manish-Giri @Manish-Giri wonders if he can join @Margaret2 one day in her class to teach the kids
Manish Giri
@Manish-Giri
Jul 05 2017 18:45
should be fun
Margaret
@Margaret2
Jul 05 2017 18:45
hmm i think you would be bored
Ene Catalin
@EneCatalin
Jul 05 2017 18:45
if they're little kids you can traumatize them
with scary stories about animals
Manish Giri
@Manish-Giri
Jul 05 2017 18:46
lol why just animals
I've got more evil things in mind
:smiling_imp:
Ene Catalin
@EneCatalin
Jul 05 2017 18:46
I had one ran away from my cat
Kyle Holm
@thekholm80
Jul 05 2017 18:46
"and then this romanian emu appeared and started insulting everyone. the end"
Ene Catalin
@EneCatalin
Jul 05 2017 18:46
:D
Margaret
@Margaret2
Jul 05 2017 18:46
i think @EneCatalin has had some traumatizing animal experiences :joy:
Ene Catalin
@EneCatalin
Jul 05 2017 18:46
didn't insult
I love my cat, kids and animals don't mix
so I pretty much made stuff up
and yes I've been beaten by a few birds
Manish Giri
@Manish-Giri
Jul 05 2017 18:47
what did you do
iduvancho303
@iduvancho303
Jul 05 2017 18:47
@Margaret2 thank you rayita LOL
CamperBot
@camperbot
Jul 05 2017 18:47
iduvancho303 sends brownie points to @margaret2 :sparkles: :thumbsup: :sparkles:
:star2: 2840 | @margaret2 |http://www.freecodecamp.com/margaret2
Ene Catalin
@EneCatalin
Jul 05 2017 18:47
one provoked, others just hated everyone. Oh and a cat sort of cut my veins, or was close at least
Manish Giri
@Manish-Giri
Jul 05 2017 18:47
rayita?
Kyle Holm
@thekholm80
Jul 05 2017 18:48
a female ray?
Ene Catalin
@EneCatalin
Jul 05 2017 18:48
didn't even realize it, felt my hand warm then looked and saw the blood near the veiny part
iduvancho303
@iduvancho303
Jul 05 2017 18:48
rayita = line in spanish...
my spanish lol
Kyle Holm
@thekholm80
Jul 05 2017 18:49
ah
my spanish is bad
Margaret
@Margaret2
Jul 05 2017 18:49
raya = ray = stingray
Kyle Holm
@thekholm80
Jul 05 2017 18:49
mi gato es muy gordo
iduvancho303
@iduvancho303
Jul 05 2017 18:49
my english is bad..and here we are....so we good
Kyle Holm
@thekholm80
Jul 05 2017 18:49
:smile:
Margaret
@Margaret2
Jul 05 2017 18:50
should change it to lil' stingyray
Manish Giri
@Manish-Giri
Jul 05 2017 18:50
:baby:
Joseph
@revisualize
Jul 05 2017 18:50
Hello.
Kyle Holm
@thekholm80
Jul 05 2017 18:50
lil' Oww-Oww
Margaret
@Margaret2
Jul 05 2017 18:50
Hi.
iduvancho303
@iduvancho303
Jul 05 2017 18:51
ray = rayo ?
lil rayo ?
that kind of ray ^
Manish Giri
@Manish-Giri
Jul 05 2017 18:53
La Tiggy
iduvancho303
@iduvancho303
Jul 05 2017 18:53
@Margaret2 ohhh got it ! mantaraya in Spanish
Margaret
@Margaret2
Jul 05 2017 18:54
La Tiggy loll
you miss when i was a :tiger: ?
Manish Giri
@Manish-Giri
Jul 05 2017 18:55
always
Createx
@Createx
Jul 05 2017 18:55
I’m tryng to center a card block
$(document).ready(function(){
$("#theslimshady").css("center-block")
});
Kyle Holm
@thekholm80
Jul 05 2017 18:55
oh, i didn't know there was a Marvel character named Tigra
Createx
@Createx
Jul 05 2017 18:55
and doesn't work
Manish Giri
@Manish-Giri
Jul 05 2017 18:55
hey slim shady
Margaret
@Margaret2
Jul 05 2017 18:56
@thekholm80 :o
Charlotte N.
@clnquacky
Jul 05 2017 18:56
Regex Specify Upper and lower number of matches Challenge question: let ohStr = "Ohhh no";
let ohRegex = /h{3,6}\s/i; // Change this line
let result = ohRegex.test(ohStr);
I am getting all but the last test to pass... and have tried a variety of combinations for the let ohRegex = but the test says "Ohhhhhhh no" should not pass.. but keeps giving me an error. What syntax did I miss?
Createx
@Createx
Jul 05 2017 18:58
@Manish-Giri hi
Manish Giri
@Manish-Giri
Jul 05 2017 18:58
hi
Joseph
@revisualize
Jul 05 2017 18:59
@clnquacky Which challenge?
Charlotte N.
@clnquacky
Jul 05 2017 18:59
Regular expressions: Specify Upper and lower number of matches
Margaret2 @Margaret2 swims away into the deep :ocean:
Joseph
@revisualize
Jul 05 2017 19:00
@clnquacky I'm searching for that lesson... No results found. Happy Coding!
Charlotte N.
@clnquacky
Jul 05 2017 19:00
It is on the beta side :)
Joseph
@revisualize
Jul 05 2017 19:00
@clnquacky Oh ... beta.
Charlotte N.
@clnquacky
Jul 05 2017 19:01
It is a Regex challenge.
Manish Giri
@Manish-Giri
Jul 05 2017 19:01
@Margaret2 :open_mouth:
@Margaret2 x
Margaret
@Margaret2
Jul 05 2017 19:02
you should have come here earlier instead of watching that stream :laughing:
Pavel Sokolov
@nevaljawko
Jul 05 2017 19:02
Hi chaps! Why toUpperCase function wont work?
function titleCase(str) {
  var splitedStr = str.toLowerCase().split(' ');

  for (var i = 0; i < splitedStr.length; i++) {
    if (splitedStr[i][0]) {
      splitedStr[i][0].toUpperCase(); // << the problem is here
    }
  }

  var result = splitedStr.join(' ');

  return result;
}

titleCase("I'm a little tea pot");
Joseph
@revisualize
Jul 05 2017 19:02
@nevaljawko Strings are Immutable.
Manish Giri
@Manish-Giri
Jul 05 2017 19:02
@nevaljawko you're not saving the value anywhere..
Joseph
@revisualize
Jul 05 2017 19:03
@nevaljawko splitedStr[i][0].toUpperCase(); // << the problem is here ... .toUppercase doesn't mutate the string
Pavel Sokolov
@nevaljawko
Jul 05 2017 19:03
@Manish-Giri i.e. I need write something like this: splitedStr[i][0] = splitedStr[i][0].toUpperCase(); ?
Joseph
@revisualize
Jul 05 2017 19:04
@nevaljawko yes and more
Manish Giri
@Manish-Giri
Jul 05 2017 19:04
@nevaljawko first create a variable to save the return value of the uppercase
then you can combine with it the rest of the letters of the word
and put the formed word back in the array
Joseph
@revisualize
Jul 05 2017 19:05
@nevaljawko splitedStr[i][0] =... doesnt work.
Joseph
@revisualize
Jul 05 2017 19:06
@Manish-Giri When did the Help room become all help?
Manish Giri
@Manish-Giri
Jul 05 2017 19:07
@revisualize what do you mean?
Joseph
@revisualize
Jul 05 2017 19:08
@Manish-Giri Well, I thought HelpJavaScript was for JS challenges and Help was for HTML/CSS/jQuery
Kyle Holm
@thekholm80
Jul 05 2017 19:08
image.png
Charlotte N.
@clnquacky
Jul 05 2017 19:08
Look I am posting the question in the link the challenge brought me to... if it is a problem, and you don't know. Then politely say so.
MightyGarhem
@MightyGarhem
Jul 05 2017 19:09
How do I make the font-size smaller of the last text without changing the complete css? https://codepen.io/MightyGarhem/pen/LLQoxG
Manish Giri
@Manish-Giri
Jul 05 2017 19:09
@clnquacky lemme try that challenge.
iduvancho303
@iduvancho303
Jul 05 2017 19:09
there is not that many chat rooms :/
Pavel Sokolov
@nevaljawko
Jul 05 2017 19:10
@Manish-Giri how to get another letters except the first one?
Manish Giri
@Manish-Giri
Jul 05 2017 19:10
@nevaljawko you can use .slice()
to get the letters
Kyle Holm
@thekholm80
Jul 05 2017 19:10
@coymeetsworld trying to set up jest now. for some reason it's not finding my test files
Pavel Sokolov
@nevaljawko
Jul 05 2017 19:11
@Manish-Giri @revisualize thx guys, I'll try to cope with it
CamperBot
@camperbot
Jul 05 2017 19:11
nevaljawko sends brownie points to @manish-giri and @revisualize :sparkles: :thumbsup: :sparkles:
:star2: 4306 | @revisualize |http://www.freecodecamp.com/revisualize
:star2: 6190 | @manish-giri |http://www.freecodecamp.com/manish-giri
Joseph
@revisualize
Jul 05 2017 19:12
@nevaljawko .slice() .substr() .. you should look those up.
theclayster
@theclayster
Jul 05 2017 19:12
quick question
Coy Sanders
@coymeetsworld
Jul 05 2017 19:12
@thekholm80 you put the test cases in the same directory as the source, by default
theclayster
@theclayster
Jul 05 2017 19:12
what was the element for an anchor so i can click my button?
Pavel Sokolov
@nevaljawko
Jul 05 2017 19:13
@revisualize ok, thank you
CamperBot
@camperbot
Jul 05 2017 19:13
nevaljawko sends brownie points to @revisualize :sparkles: :thumbsup: :sparkles:
:warning: nevaljawko already gave revisualize points
Charlotte N.
@clnquacky
Jul 05 2017 19:13
@MightyGarhem in your css for the class of enjoycss2 add a font-size:10px; That will change the font size for that particular element.
MightyGarhem
@MightyGarhem