These are chat archives for FreeCodeCamp/Help

13th
Sep 2017
Randell Dawson
@RandellDawson
Sep 13 2017 00:06
@ericmiller777 - Did you solve your problem?
Eric Miller
@ericmiller777
Sep 13 2017 00:06
no i just switched it to a int
do you know the correct way?
might make it a boolean
Randell Dawson
@RandellDawson
Sep 13 2017 00:08
Are you talking about
if($("#status").html() == "Work"){
$("#status").html(Break);
or something else?
I just got in here, so I need some info on what you are trying to accomplish.
Eric Miller
@ericmiller777
Sep 13 2017 00:12
pretty much but that if statemnt doesnt work i dont think?
Randell Dawson
@RandellDawson
Sep 13 2017 00:13
I looked at your github link, but did not see that code.
Eric Miller
@ericmiller777
Sep 13 2017 00:14
yea i ahvent pused it in a bit
Randell Dawson
@RandellDawson
Sep 13 2017 00:14
Where exactly were you going to put it?
Eric Miller
@ericmiller777
Sep 13 2017 00:14
1 sec
Amit Patel
@AmitP88
Sep 13 2017 00:15
hey guys, I'm trying to make an 8 x 8 grid using html canvas and javascript. I think I almost got it, as in the console I have a total of 64 cells in the grid, but for some reason there are two extra columns and two extra rows. I've inspected my code and made sure that each column and each row are really generating 8 cells.
grid.png
Randell Dawson
@RandellDawson
Sep 13 2017 00:20
@AmitP88 - It would be much better if we could see all the code (post a url to it) instead of screenshot of only part of the code.
Amit Patel
@AmitP88
Sep 13 2017 00:20
@randelldawson ok, hang on a sec
Eric Miller
@ericmiller777
Sep 13 2017 00:22
@randelldawson sorry
weird thing is, my bool always seem to come up as false
Eric Miller
@ericmiller777
Sep 13 2017 00:24
it works once
but not for teu
true
Randell Dawson
@RandellDawson
Sep 13 2017 00:25
@ericmiller777 Let me take a look and see what is going on.
Eric Miller
@ericmiller777
Sep 13 2017 00:25
@randelldawson thanks
CamperBot
@camperbot
Sep 13 2017 00:25
ericmiller777 sends brownie points to @randelldawson :sparkles: :thumbsup: :sparkles:
:cookie: 304 | @randelldawson |http://www.freecodecamp.com/randelldawson
Eric Miller
@ericmiller777
Sep 13 2017 00:28
its really weird because i can tell it goes through it, just it doesnt seem to care that i set isWork = true
i should be able to use just else{
Amit Patel
@AmitP88
Sep 13 2017 00:30
Nvm guys, I resolved my problem! :)
Eric Miller
@ericmiller777
Sep 13 2017 00:32
nice
Randell Dawson
@RandellDawson
Sep 13 2017 00:33
@ericmiller777 - What seems to be the problem? When I set the break to 1 minute and the work to 1 minute and click the Start button, it displays Work for 1 minute and then Break for 1 minute and then repeats the process over and over (switching back and forth from Work to Break and Back to Work).
Eric Miller
@ericmiller777
Sep 13 2017 00:33
what
for me it goes work
to break
then stays at break
Randell Dawson
@RandellDawson
Sep 13 2017 00:34
I am watching it right now as we chat.
Let me test something. brb
Eric Miller
@ericmiller777
Sep 13 2017 00:35
weird
working for me now too
mustve needed to close the tab
@randelldawson thanks
CamperBot
@camperbot
Sep 13 2017 00:36
ericmiller777 sends brownie points to @randelldawson :sparkles: :thumbsup: :sparkles:
api offline
Randell Dawson
@RandellDawson
Sep 13 2017 00:36
Probably a cache issue in the browser.
Eric Miller
@ericmiller777
Sep 13 2017 01:23
Hey guys
if you guys could look at my pomodoro clock all feedback is appreciated
I havnt added a noise yet
but its pretty much done
Gersho
@Gersho
Sep 13 2017 01:23
we can make the value negatives, breaking it
Eric Miller
@ericmiller777
Sep 13 2017 01:24
yea
doing that and checking if its not 0 at the start im going to do next
gtg
should only tak eme a sec to fix
Eric Miller
@ericmiller777
Sep 13 2017 02:33
@Gersho file:///C:/Users/Eric/Github/Pomodoro_Clock_freeCodeCamp/index.html
oh wait
Albert Cardona II
@daddycardona
Sep 13 2017 04:01
\\ can someone explain how this works?

var reduced = sum.filter(function(item, index, inputArray) {
        return inputArray.indexOf(item) === index;
    });

because it works but if i

var reduced = sum.filter(function(item, index, inputArray) {
        console.log('the item is: ' + item) // do this
        console.log('the index is : ' + index)// this
        console.log(inputArray.indexOf(item) === index)// and this
        return inputArray.indexOf(item) === index;
    });

it does not add up or give me the same number I thought it would give me and if it is === index then shouldn't it also add the extra 1,2, the other arrays ? so confused with this

not add but include the other arrays 1 and 2
Coy Sanders
@coymeetsworld
Sep 13 2017 04:15
im confused @daddycardona, could you explain it more specifically? the console.logs shouldn't matter
Albert Cardona II
@daddycardona
Sep 13 2017 04:17
well if I see item as 1 and then index as 0 how could inputArray.indexOf(item) === index
Coy Sanders
@coymeetsworld
Sep 13 2017 04:18
inputArray = [2, 1, 3]? indexOf(1) will return 1 which is the first index with the value 1
edited
Albert Cardona II
@daddycardona
Sep 13 2017 04:22
okay now if i have an array like this [1,3,2,1] how does it know not to add the last 1 to the reduced array
Coy Sanders
@coymeetsworld
Sep 13 2017 04:22
indexOf will never return the index of the second 1
indexOf finds the first instance of what you're looking for
Albert Cardona II
@daddycardona
Sep 13 2017 04:23
Oh okay so you are telling me that indexOf(item) just looks for the first instance of the sum array and puts it in the reduced array
Coy Sanders
@coymeetsworld
Sep 13 2017 04:24
no, that won't get included
Albert Cardona II
@daddycardona
Sep 13 2017 04:24
or will not add a value for index if is the same as a value already in an array?
Coy Sanders
@coymeetsworld
Sep 13 2017 04:24
anything where the return statement is false gets filtered out
im not sure exactly what you're doing, but I don't think its the right way to go about it
Albert Cardona II
@daddycardona
Sep 13 2017 04:25
I am filtering out the values in an array that are the same as the other value
Coy Sanders
@coymeetsworld
Sep 13 2017 04:27
I think you need a little more than what you have
Albert Cardona II
@daddycardona
Sep 13 2017 04:27

i am still doing
Sorted Union
Write a function that takes two or more arrays and returns a new array of unique values in the order of the original provided arrays.

In other words, all values present from all arrays should be included in their original order, but with no duplicates in the final array.

function uniteUnique(arr, arr2, arr3) {
    var sum = [];

    for (var i = 0; i < arguments.length; i++) {
        for (var j = 0; j < arguments[i].length; j++) {
            sum.push(arguments[i][j]);
        }
    }
    //console.log(sum)

    var reduced = sum.filter(function(item, index, inputArray) {
        console.log('the item is: ' + item)
        console.log('the index is : ' + index)
        console.log(inputArray.indexOf(item) === index)
        return inputArray.indexOf(item) === index;
    });
    //console.log(reduced)

    return reduced;
}

uniteUnique([1, 3, 2], [5, 2, 1, 4], [2, 1]);
this is the whole code so I was just trying to figure out how that worked becuase it did the job
Coy Sanders
@coymeetsworld
Sep 13 2017 04:30
because indexOf returns the same index for duplicate values
Albert Cardona II
@daddycardona
Sep 13 2017 04:31
?
Coy Sanders
@coymeetsworld
Sep 13 2017 04:32
work out what happens with [1,2,1,3,4]
what happens when you get to the 2nd 1
Albert Cardona II
@daddycardona
Sep 13 2017 04:33
let me see because my sum array already does that it haves uniteUnique as one long array not separated arrays
Coy Sanders
@coymeetsworld
Sep 13 2017 04:33
that part doesn't matter right now
just look specifically at that example, what will your filter function do on that array?
and why?
Albert Cardona II
@daddycardona
Sep 13 2017 04:34
so [1,3,2,5,2,1,4,2,1] is my sum array that I filtered and it makes it false
like every duplicated number returns false
Coy Sanders
@coymeetsworld
Sep 13 2017 04:35
yep
Albert Cardona II
@daddycardona
Sep 13 2017 04:35
so that is why it is not passed into reduced because it says this has already been accounted for have a good day next
Coy Sanders
@coymeetsworld
Sep 13 2017 04:36
?
Albert Cardona II
@daddycardona
Sep 13 2017 04:37
well the in your example the 2nd 1 will not be passed because it is basically a duplicated answer so the indexOf(item) is saying sorry it is already added to the reduced array
Coy Sanders
@coymeetsworld
Sep 13 2017 04:38
sort of, its not saying its already added
Albert Cardona II
@daddycardona
Sep 13 2017 04:38
it is already in the array
Coy Sanders
@coymeetsworld
Sep 13 2017 04:39
at an earlier position, so you can assume that yes it is a duplicate
and can be removed
or rather not included in the new array
Albert Cardona II
@daddycardona
Sep 13 2017 04:39
oh okay
now I am about to go look at indexOf and understand it better this javascript makes my brain hurt lol
Coy Sanders
@coymeetsworld
Sep 13 2017 04:40
:thumbsup:
Albert Cardona II
@daddycardona
Sep 13 2017 04:41
how would I have done this using reduce() I can't even think about trying that
I hate when I ask google how to say if(one array already haves something skip that entry for the new array) then get this answer
korzo
@korzo
Sep 13 2017 05:00
@daddycardona Similar the filter, but instead of returning true/false, you would push truthy values to array provided by reduce
function uniteUnique(arr) { 
  return Array.prototype.concat.apply([], arguments)
    .reduce((a, e, i, arr) => {
      if(arr.indexOf(e) === i) a.push(e);
      return a;
  }, []);
}

uniteUnique([1, 3, 2], [5, 2, 1, 4], [2, 1]);
Darren
@DarrenfJ
Sep 13 2017 05:08
evening fCc
Jill Lee
@jill-lee
Sep 13 2017 05:41
help pls, why is the text-decoration not working? I'm trying to get rid of the line in hyperlink.
https://codepen.io/phoenix-burn/pen/VzWOpa
Darren
@DarrenfJ
Sep 13 2017 05:56
@phoenix-burn ah sorry, stepped away for a second...
will give'er a look-see
@phoenix-burn I think it's text-decoration: none;, no? I only see color: none; for a:hover
lemme play around with it a bit
Long Nguyen
@longnt80
Sep 13 2017 06:10
@phoenix-burn
a:focus, a:hover {
    text-decoration: none;
}
Darren
@DarrenfJ
Sep 13 2017 06:10
got it to work unsing this line instead of just a:hover had to narrow it down to html item and class @phoenix-burn
@phoenix-burn
div.category a:hover {
  text-decoration: none !important; 
}
you only need !important there if yer using Bootstrap
Jill Lee
@jill-lee
Sep 13 2017 06:28
@DarrenfJ yea that worked thanks! :)
@longnt80 thanks for helping
CamperBot
@camperbot
Sep 13 2017 06:28
phoenix-burn sends brownie points to @darrenfj and @longnt80 :sparkles: :thumbsup: :sparkles:
:cookie: 551 | @longnt80 |http://www.freecodecamp.com/longnt80
:star2: 2021 | @darrenfj |http://www.freecodecamp.com/darrenfj
Darren
@DarrenfJ
Sep 13 2017 06:28
@phoenix-burn :D
css.. a real pain in the butt ;)
Jill Lee
@jill-lee
Sep 13 2017 06:32
@DarrenfJ ikr! haha
Darren
@DarrenfJ
Sep 13 2017 06:36
yah :D when people come with css issues i'm also a little afeared thinking "it's gonna be something easy we all overlooked but take 3 hours to find' ;)
ok gonna sneak off to bed
thanks @phoenix-burn for the challenge :D
CamperBot
@camperbot
Sep 13 2017 06:39
darrenfj sends brownie points to @phoenix-burn :sparkles: :thumbsup: :sparkles:
:cookie: 161 | @phoenix-burn |http://www.freecodecamp.com/phoenix-burn
Darren
@DarrenfJ
Sep 13 2017 06:39
and thanks @longnt80 for helping out too
CamperBot
@camperbot
Sep 13 2017 06:39
darrenfj sends brownie points to @longnt80 :sparkles: :thumbsup: :sparkles:
:cookie: 552 | @longnt80 |http://www.freecodecamp.com/longnt80
Jake
@JakeDVirus
Sep 13 2017 07:03
@randelldawson see the line-10 and line-65
https://codepen.io/neel111/pen/oeKGJL?editors=1011
Jake
@JakeDVirus
Sep 13 2017 07:42

suppose i have a code like this

function rough1(){
    followingList[i];
   //some other statements
};

function rough2(){
    var followingList =[Array];
   //some other statements
    function rough3(){
          rough1(){};
    }
}

according to name-resolution lookup and execution context, the function rough1 will have access to the variable followingList when called inside the function rough3.
Am i right or wrong?
Actually in my specific piece of code(given below the link) the variable followingList is said to be not defined when called in this manner. check out the line-10 and line-65 here and check the browser console https://codepen.io/neel111/pen/oeKGJL?editors=1011

BuntyBru
@BuntyBru
Sep 13 2017 08:52
AUTHENTICATION is borrrring and HARD
Johnny
@JohnnyBizzel
Sep 13 2017 09:12
@BuntyBru Unfortunately yes. Shame we need passwords, shame we need keys, but there are people out there happy to steal from others.
@BuntyBru I used this for my latest project which is working (mostly) https://vladimirponomarev.com/blog/authentication-in-react-apps-jwt
Johnny
@JohnnyBizzel
Sep 13 2017 09:48
Thanks for your input
BuntyBru
@BuntyBru
Sep 13 2017 10:09
@JohnnyBizzel
You are correct
Its boring but yet we need to gain knowledge about it
Will read the blog later
:)
Johnny
@JohnnyBizzel
Sep 13 2017 10:13
@BuntyBru And every computer system has been hacked into at some time. :O
Remember the things we are making on this course are not to protect users personal details, but to give friendly messages and make the user experience better.
BuntyBru
@BuntyBru
Sep 13 2017 10:39
@JohnnyBizzel
Hmm Actually i am going through COLT Web development Bootcamp.
In there there is this lesson regarding "Authentication"
thats seems to be boring
Bashir Harrell
@bookofbash
Sep 13 2017 10:50
im working on backend the first thing. and "npm init" isnt working
ok that time was spelled wrong, but hasnt worked at all. Any suggestonis?
bookofbash:~/workspace/new_directory $ npm init
module.js:471
    throw err;
    ^

Error: Cannot find module 'process-nextick-args'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/ubuntu/.nvm/versions/node/v6.11.2/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_readable.js:26:23)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
bookofbash:~/workspace/new_directory $
Stephen James
@sjames1958gm
Sep 13 2017 11:23
You might need to upgrade your node/npm to a later version
This might work for npm init as well
1LifeLess
@1LifeLess
Sep 13 2017 12:41
Hello, is there a build in Function the turns other Latin languages character to their English form (example: é ---> e) (preference for C# library)
Razvan
@razvanlikespizza
Sep 13 2017 13:44
:| really?
image.png
Razvan
@razvanlikespizza
Sep 13 2017 13:59

function rot13(str) { // LBH QVQ VG!
  /* put the string into an array, apply that function to every elements */
  str = str.split("").map(convertBitch).join("");
  /* return the string*/
  return str;  
  function convertBitch(letter) {
    /* if any of these is not a letter I will return it */
    var filterIt = /[^a-zA-Z]/g;
    if (filterIt.test(letter)) {
    return letter;
    }
    /* transform it to ASCII*/
    var ascii = letter.charCodeAt(0);
   if (ascii > 77) {
     ascii -= 13;
   } else {
     ascii += 13;
   }
    /* convert it back*/
    return String.fromCharCode(ascii);
  }

}
// Change the inputs below to test
rot13("SERR PBQR PNZC");
Did it watching a tutorial, not the perfect way..but here we are..
I understand how that ASCII thing work.
Stephen James
@sjames1958gm
Sep 13 2017 15:18
@razvanlikespizza :+1:
Razvan
@razvanlikespizza
Sep 13 2017 15:18
@sjames1958gm :)
Stephen James
@sjames1958gm
Sep 13 2017 15:18
@1LifeLess I don't think so in javascript
Jan Shah
@JanShah
Sep 13 2017 15:45

can anyone help with this ?
https://codepen.io/centropy/pen/gGOZgB

the dots behind the globe appear as if in the front, I can't see a clear way of hiding them from view

Greta Piliponytė
@gpiliponyte
Sep 13 2017 15:51
are there any git experts?
Sandip Shrestha
@saninmersion
Sep 13 2017 15:51
@JanShah you mean the light green circles, on top of the map? If so are not you trying to show them?
Jan Shah
@JanShah
Sep 13 2017 15:52
if you hover over some of them, you will find they relate to locations on the other side of the map @saninmersion
it's like the globe is transparent to the dots.
it happens because I rendered the map first and locations later, the application has no way of knowing which dots are in the back and which in the front, as it's just translating to the globe
artbohr
@artbohr
Sep 13 2017 18:21
can someone help me to understand how to event handlers arguments works?
How this works? when I don't pass the argument but call it from the onClick method pressing a button (what does this index means)
deleteRecipe(index){
    let recipes = this.state.recipes;
    recipes.splice(index, 1);
    this.setState({recipes});
  }
in ReactJS
Moisés Man
@moigithub
Sep 13 2017 18:22
probably u need to check HOW that deleteRecipe method/function is called
artbohr
@artbohr
Sep 13 2017 18:24

@moigithub it's called from the onClick

onClick={this.props.deleteRecipe}

the thing I meant is, how react knows what is the argument, and what it is exactly?

my code works, but I don't understand exactly how it does
here is all my project, maybe it's more clear from there
I don't understand this exact part I'm asking, not all the code, to be clear.
rscales02
@rscales02
Sep 13 2017 18:34
can someone help me understand the wikipedia api?
I do not understand why it is erroring https://codepen.io/rscales02/pen/xXbGra?editors=1111
max#237
@maximilientoumi
Sep 13 2017 18:45
please how to make my iframe to be scrolled by the main page. can anyone help
max#237
@maximilientoumi
Sep 13 2017 18:58
How do you get iFrames to scroll with the content of a web page?
artbohr
@artbohr
Sep 13 2017 19:05
@rscales02 try this
var url = 'https://en.wikipedia.org//w/api.php?action=opensearch&search=' + searchTerm + '&format=json&callback=?';

    $.ajax({
    type: 'GET',
        url: url,
    async: false,
    dataType: 'json',
    success: function(data){
     console.log(data);
    } 
    });

@rscales02 just replace your :

'&utf8=1'
with
'&format=json&callback=?'

at the end of url, this seems to work

Yash Bhardwaj
@imyashbhardwaj
Sep 13 2017 19:12
@daddycardona thanks bro i will make sure i wont cheat the whole thing
CamperBot
@camperbot
Sep 13 2017 19:12
imyashbhardwaj sends brownie points to @daddycardona :sparkles: :thumbsup: :sparkles:
:cookie: 342 | @daddycardona |http://www.freecodecamp.com/daddycardona
artbohr
@artbohr
Sep 13 2017 19:12
@maximilientoumi not an expert in this matter, but would be better if you post your code or your question in a more expanded way. Maybe try to look at this article about positions: https://www.w3schools.com/cssref/pr_class_position.asp
Moisés Man
@moigithub
Sep 13 2017 19:22

@artbohr event handlers (functions) is always called with an event object (always as last parameter)
ur current delete method not working as it should
slice takes indices as parameter
IF when u call delete method u dont pass any value
onClick={this.props.deleteRecipe}>Delete</button> only param ur delete function will take is the event object
which u can check by adding console.log

 deleteRecipe(index){
    console.log(index); //<< this index is not really a "index"/number
    let recipes = this.state.recipes;

another check.. if u add multiple recipes.. and try to delete the last .. it always delete the first

artbohr
@artbohr
Sep 13 2017 19:26
@moigithub actually the funny thing is, the delete method works, you can try to press the delete button and it deletes the recipe
Moisés Man
@moigithub
Sep 13 2017 19:27
add multiple recipes.. take note what u adding.. try to delete the last or second...
artbohr
@artbohr
Sep 13 2017 19:27
@moigithub ye, that's right about the first
@moigithub so how can I take the index of the desired recipe then?
Moisés Man
@moigithub
Sep 13 2017 19:29
<button className="btn btn-danger" onClick={()=>this.props.deleteRecipe(999)}>Delete</button>
one way to pass values is when u call the method on Recipe object
but probably since u need to know specific index.. u will also need to pass down the index from map from ur previous component
another way would be binding values to the delete function before passing it down
const recipeOrder = this.props.recipeList.map((recipe,index)=>{
      return (
           <Recipe title={recipe.title} 
             ingridients={recipe.ingridients} 
             internalIndex={recipe.internalIndex} 
             deleteRecipe={this.props.deleteRecipe.bind(null, index)}   />
         );
    });
<button className="btn btn-danger" onClick={this.props.deleteRecipe}>Delete</button>
or create a inline function before passing down
deleteRecipe={()=>this.props.deleteRecipe(index)} />
artbohr
@artbohr
Sep 13 2017 19:36
@moigithub is there any reason to do it with bind instead of plain index? and about the inline function you mean in the onClick event right? Thank you very much
CamperBot
@camperbot
Sep 13 2017 19:36
artbohr sends brownie points to @moigithub :sparkles: :thumbsup: :sparkles:
:star2: 3630 | @moigithub |http://www.freecodecamp.com/moigithub
Moisés Man
@moigithub
Sep 13 2017 19:37
bind method return a "new" function with values attached
soo it will behave similarly to the last example
function add(num1, num2){
   return num1 + num2
}
var add2fun= add.bind(null, 10);
add2fun(3); //<-- will log 13
or like this
function boo(name){
  console.log(name);
}
var test = boo.bind(null, "yoo");
test() // will log "yoo"
artbohr
@artbohr
Sep 13 2017 19:42
@moigithub thanks, so it basicly attaches an argument to the variale to be used later?
CamperBot
@camperbot
Sep 13 2017 19:42
artbohr sends brownie points to @moigithub :sparkles: :thumbsup: :sparkles:
api offline
Moisés Man
@moigithub
Sep 13 2017 19:44
yep.. cuz u need to keep "index" depending which recipe u gonna delete
soo the place u have this value is on the map function
u can pass down index as property or just bind it directly on the function
soo if u bind.. whenever u call the functin it will already have a value attached
if u dont like bind.. u can do like this
deleteRecipe={()=>this.props.deleteRecipe(index)} />
it should work the same way
create a inline function ( using fat arrow es6) and set a parameter
artbohr
@artbohr
Sep 13 2017 19:47
@moigithub got it all now, thanks again, very helpful info
CamperBot
@camperbot
Sep 13 2017 19:47
artbohr sends brownie points to @moigithub :sparkles: :thumbsup: :sparkles:
api offline
leonaaa
@leonaaa
Sep 13 2017 20:32
function myLastIndexOf(arr, searchElem, fromIndex){
  if (fromIndex === undefined) {
    fromIndex = arr.length-1;
    console.log(fromIndex);
  }

  for(i = fromIndex; i >= 0; i--) {
    if(arr[i] === searchElem) {
      return i;
    }
  }
  return -1;
}



myLastIndexOf([1,2,1], 1)    // => 2
myLastIndexOf([1,2,1], 1, 1)    // => 0
can anyone explain to me why the last test case returns 0?
Moisés Man
@moigithub
Sep 13 2017 20:50
@leonaaa cuz u passing 1 as fromIndex
soo it start checking
2 == 1
1 == 1 <-- return 0
(it skips the index 2)
Coy Sanders
@coymeetsworld
Sep 13 2017 20:50
@leonaaa arrays indexs start at 0
the item at index 1 on [1,2,1] is 2,
leonaaa
@leonaaa
Sep 13 2017 20:50
yeah
Coy Sanders
@coymeetsworld
Sep 13 2017 20:51
so then your for loop iterates again
i=0
your if statement will return true there
leonaaa
@leonaaa
Sep 13 2017 20:52
Got it, thanks
Coy Sanders
@coymeetsworld
Sep 13 2017 20:52
yw, and wb :thumbsup:
leonaaa
@leonaaa
Sep 13 2017 20:53
thanks!! lol wait you remember me?
i’ve last signed on a year ago …..
you and hnry were both really helpful. i don’t know if you remember him
Coy Sanders
@coymeetsworld
Sep 13 2017 20:53
yeah he hasn't been around in a while either
ive been on less lately too though
leonaaa
@leonaaa
Sep 13 2017 20:54
glad to still see you on this chat haha def resourceful
Yeah it’s pretty inactive here compared to the good ol slack days
i recently read up on what happened. Lol can’t believe it
Coy Sanders
@coymeetsworld
Sep 13 2017 20:55
they took out the chat option on the page so its harder for people to find
less noise but also less ppl overall
leonaaa
@leonaaa
Sep 13 2017 20:55
yeah, definitely
Coy Sanders
@coymeetsworld
Sep 13 2017 20:55
they're also trying to push the forum, make it like a pseudo Stack Overflow
Gersho
@Gersho
Sep 13 2017 20:56

they took out the chat option on the page so its harder for people to find

ooh, that's why we stopped having easy html/css question 50times a day

was wondering what has happened
leonaaa
@leonaaa
Sep 13 2017 20:57
ooh
Gersho
@Gersho
Sep 13 2017 20:58
i'd rather have a more active chat than a forum, while it's true a forum allows saving stuff to avoid repeating yourself, chatting is better for the little everyday troubles
and there's already stackoverflow :P
leonaaa
@leonaaa
Sep 13 2017 21:00
lol, i agree. definitely more personable plus you get to interact with everyone else within the learning community
Gersho
@Gersho
Sep 13 2017 21:00
and you often learn stuff by seeing other with their troubles
Coy Sanders
@coymeetsworld
Sep 13 2017 21:01
yeah at first I thought it was good, but now its gotten stale in chat
because there used to be alot of noise
stackoverflow for specific FCC issues, which are hard to find on SO sometimes
Gersho
@Gersho
Sep 13 2017 21:01
it was a bit much i admit yes, i spend june/july avoiding the chat to get stuff done on my front end projects :P
Coy Sanders
@coymeetsworld
Sep 13 2017 21:04
oh well, theres still enough ppl here to help out
and always good to see less "Someone do this for me" requests
Gersho
@Gersho
Sep 13 2017 21:05
it was good cookie farm tho :p
and it helped me burn basic css/html in my mind (i had trouble with basic syntax early on)
Engjell Bislimi
@Engjell00
Sep 13 2017 21:09
anyone can tell me how to generate the lipsum dummy text in sumblime text
Kyle Holm
@thekholm80
Sep 13 2017 21:09
how do i write hello world?
Coy Sanders
@coymeetsworld
Sep 13 2017 21:10
you just did
Kyle Holm
@thekholm80
Sep 13 2017 21:10
why isn't my text pink?
i miss old help
kind of
Coy Sanders
@coymeetsworld
Sep 13 2017 21:10
Gersho
@Gersho
Sep 13 2017 21:11
@thekholm80 lol
you guys like my clock?
im on the tic tac toe project now, but not really sure where to start
i mean if i load up unity, i can make one in a few min lol
should it just be a grid with buttons? or should i use some kind of framework
Gersho
@Gersho
Sep 13 2017 22:09
hi Eric, what do you mean you don't know where to start ? for the graphics or the code ?
Eric Miller
@ericmiller777
Sep 13 2017 22:14
for the graphics
Ive made game in android and in java
both have specific things for that
actully java*
never made a game in android, but ive made soem basic apps
Gersho
@Gersho
Sep 13 2017 22:15
i only played around a bit in unity3d and yeah they have a lot of built in stuff
Eric Miller
@ericmiller777
Sep 13 2017 22:15
Yea not really sure how to do it in javascri[t
Gersho
@Gersho
Sep 13 2017 22:16
for the graphics i went for dumb html/css with grid (
Eric Miller
@ericmiller777
Sep 13 2017 22:17
i see
i notice there is a canvas and update function
i might just make a grid too tho
Gersho
@Gersho
Sep 13 2017 22:19
i've only started canvas, but yeah you could get something really cool looking
Engjell Bislimi
@Engjell00
Sep 13 2017 22:51
I got a little problem. How come the side bar at the left doesn't go in the container but stay below?
Alexandar B
@ace1122sp
Sep 13 2017 22:51
hello :wave: .. i'm having problem with canvas apparently causing 'maximum stack size exceeded' in my react app.. how is that even possible if react does not recognize non-dom changes? does anyone had similar problems and what is the solution?
rscales02
@rscales02
Sep 13 2017 22:52
 var searchTerm = $('#search-term').val();
        var url = 'https://en.wikipedia.org/w/api.php?action=opensearch&search=' + searchTerm;

        $.ajax({
                type: 'GET',
                url: url,
                dataType: 'json',
                data: {
                    format: 'json',
                    origin: '*'
                },
                success: function(response) {
                    data = response;
                    console.log(data);

                }
            })
@artbohr was fixed with this thanks for the input!
CamperBot
@camperbot
Sep 13 2017 22:52
rscales02 sends brownie points to @artbohr :sparkles: :thumbsup: :sparkles:
:cookie: 307 | @artbohr |http://www.freecodecamp.com/artbohr
rscales02
@rscales02
Sep 13 2017 22:55
@Engjell00 are you asking about "read me baby"?
Engjell Bislimi
@Engjell00
Sep 13 2017 22:56
@rscales02 thank you for your reply! I just fixed it could you take a look if it's a good way
CamperBot
@camperbot
Sep 13 2017 22:56
engjell00 sends brownie points to @rscales02 :sparkles: :thumbsup: :sparkles:
:cookie: 265 | @rscales02 |http://www.freecodecamp.com/rscales02
Engjell Bislimi
@Engjell00
Sep 13 2017 22:57
I put position absolute of that container and relative of the sidebar so I move it on top
rscales02
@rscales02
Sep 13 2017 23:00
Cool! Looks like it still needs some style tweaking and content, but you seem to be on the right path. Also, you have a typo it should be *Portfolio
Engjell Bislimi
@Engjell00
Sep 13 2017 23:06
@rscales02 thanks!
CamperBot
@camperbot
Sep 13 2017 23:06
engjell00 sends brownie points to @rscales02 :sparkles: :thumbsup: :sparkles:
api offline
Why my Portfolio word isn't center like About and Contact
Tassie-Tom
@Tassie-Tom
Sep 13 2017 23:24
Hey guys, why would you use jQuery to change CSS? Why not just change the CSS?
Manish Giri
@Manish-Giri
Sep 13 2017 23:28
@Tassie-Tom if you need to dynamically
for instance - change color of a div on double click
Tassie-Tom
@Tassie-Tom
Sep 13 2017 23:29
ah @Manish-Giri thank you. So you're unable to do that sort of stuff with CSS?
CamperBot
@camperbot
Sep 13 2017 23:29
tassie-tom sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6535 | @manish-giri |http://www.freecodecamp.com/manish-giri
Manish Giri
@Manish-Giri
Sep 13 2017 23:30
@Tassie-Tom css has very limited pseudo classes, like :hover, :focus, etc which lets you do some of that stuff
but not everything
Tassie-Tom
@Tassie-Tom
Sep 13 2017 23:31
@Manish-Giri understood, thanks for your help, much appreciated.
CamperBot
@camperbot
Sep 13 2017 23:31
tassie-tom sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
api offline
Manish Giri
@Manish-Giri
Sep 13 2017 23:31
:+1: