These are chat archives for FreeCodeCamp/Help

6th
Sep 2017
Chris
@The1987
Sep 06 2017 00:36 UTC
is the site down?
Coy Sanders
@coymeetsworld
Sep 06 2017 00:36 UTC
yes
I believe it's some issue with their database
Chris
@The1987
Sep 06 2017 00:37 UTC
@coymeetsworld Thanks
CamperBot
@camperbot
Sep 06 2017 00:37 UTC
the1987 sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
api offline
that would've been my 3000'th brownie :cry:
Kyle Holm
@thekholm80
Sep 06 2017 00:55 UTC
@coymeetsworld thanks
CamperBot
@camperbot
Sep 06 2017 00:55 UTC
thekholm80 sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
api offline
Kyle Holm
@thekholm80
Sep 06 2017 00:56 UTC
:cry:
Coy Sanders
@coymeetsworld
Sep 06 2017 00:57 UTC
at least you tried @thekholm80 lol
Albert Cardona II
@daddycardona
Sep 06 2017 01:16 UTC
thanks @coymeetsworld
CamperBot
@camperbot
Sep 06 2017 01:16 UTC
daddycardona sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
api offline
Albert Cardona II
@daddycardona
Sep 06 2017 01:16 UTC
noooooo LOL
Coy Sanders
@coymeetsworld
Sep 06 2017 01:18 UTC
:/
Kyle Holm
@thekholm80
Sep 06 2017 01:23 UTC
@daddycardona thanks
CamperBot
@camperbot
Sep 06 2017 01:23 UTC
thekholm80 sends brownie points to @daddycardona :sparkles: :thumbsup: :sparkles:
api offline
Kyle Holm
@thekholm80
Sep 06 2017 01:23 UTC
i'd have died if he got cookies
ded
Albert Cardona II
@daddycardona
Sep 06 2017 01:23 UTC
LMAO
I am starting to understand this filter function maybe lol
Kyle Holm
@thekholm80
Sep 06 2017 01:24 UTC
that's a good one to learn
Albert Cardona II
@daddycardona
Sep 06 2017 01:24 UTC
.filter(e,i,array)
Kyle Holm
@thekholm80
Sep 06 2017 01:25 UTC
the 2 important things for those types of methods:
  1. what does it return
  2. does it mutate the original
Albert Cardona II
@daddycardona
Sep 06 2017 01:25 UTC
yeah that is what I am trying to figure out my mind is going crazy with it lol
Kyle Holm
@thekholm80
Sep 06 2017 01:25 UTC
lol
Albert Cardona II
@daddycardona
Sep 06 2017 01:26 UTC
this stupid challenge, will we ever see a challenge like that in the real world of web design or even back end
Kyle Holm
@thekholm80
Sep 06 2017 01:27 UTC
which?
Albert Cardona II
@daddycardona
Sep 06 2017 01:27 UTC
wherefor art thou
It is like so confusing to understand
Kyle Holm
@thekholm80
Sep 06 2017 01:28 UTC
i use arrays of objects often
learning to search through them is useful
Albert Cardona II
@daddycardona
Sep 06 2017 01:28 UTC
yeah but it is like I am trying to search throuh them the wrong way with filter
Kyle Holm
@thekholm80
Sep 06 2017 01:29 UTC
then don't use filter lol
Albert Cardona II
@daddycardona
Sep 06 2017 01:29 UTC
it is like I am not figuring out what I have to ask, just when I thought I had it boom it bends me over and lifts up my kilt and you know LOL
the same thing is true with for loops
Kyle Holm
@thekholm80
Sep 06 2017 01:31 UTC
it looks like i used filter() when i did it
Albert Cardona II
@daddycardona
Sep 06 2017 01:31 UTC
it says to use for loops and filter or for loops
you know what I mean and this is the closest I got to it
Coy Sanders
@coymeetsworld
Sep 06 2017 01:32 UTC
I can't see the challenge, but I believe the for loop is used to iterate through the array
Kyle Holm
@thekholm80
Sep 06 2017 01:32 UTC
i used filter() and inside the filter callback i used Object.keys() and every()
Albert Cardona II
@daddycardona
Sep 06 2017 01:33 UTC
yeah I tried to use every too lol and object.keys() too
Coy Sanders
@coymeetsworld
Sep 06 2017 01:33 UTC
and with each item in the array you filter it out
Albert Cardona II
@daddycardona
Sep 06 2017 01:33 UTC
function whatIsInAName(collection, source) {
    // What's in a name?
    var arr = [];
    // Only change code below this line

    var sourceKeys = Object.keys(source);
    var sourceVals = Object.values(source);

    for (var i = 0; i < collection.length; i++) {

        for (var j = 0; j < sourceKeys.length; j++) {
            if (collection[i].hasOwnProperty(sourceKeys[j])) {
                if (collection[i][sourceKeys[j]] === sourceVals[j]) {
                    arr.push(collection[i]);
                    console.log(collection[i][sourceKeys[j]]);
                }

            }
        }
    }

    console.dir(arr);
    // Only change code above this line
    return 'arr';
}
Coy Sanders
@coymeetsworld
Sep 06 2017 01:34 UTC
oh wait yeah its a little more complicated than that
Albert Cardona II
@daddycardona
Sep 06 2017 01:34 UTC
the problem with this it worked fine with the first 2 and then when they have the dam c:2 it just was like nooooo lol
Coy Sanders
@coymeetsworld
Sep 06 2017 01:35 UTC
return 'arr'; ?
Albert Cardona II
@daddycardona
Sep 06 2017 01:35 UTC
that is for the fcc challenge
Coy Sanders
@coymeetsworld
Sep 06 2017 01:35 UTC
thats returning a string 'arr'
not the variable arr
Albert Cardona II
@daddycardona
Sep 06 2017 01:35 UTC
well 'arr' was because I was fixing something
Coy Sanders
@coymeetsworld
Sep 06 2017 01:35 UTC
ok
Albert Cardona II
@daddycardona
Sep 06 2017 01:36 UTC
and forgot to change it back lol
but it was I had to reload my browser 2 times and that is what fixed it lol
Coy Sanders
@coymeetsworld
Sep 06 2017 01:38 UTC
i think one problem is you're pushing duplicates into your array
Albert Cardona II
@daddycardona
Sep 06 2017 01:38 UTC
I was then trying to use the filter and every methods or functions and just got confused
Coy Sanders
@coymeetsworld
Sep 06 2017 01:39 UTC
and also you're not verifying all properties are in each object
whatIsInAName([{ "a": 1, "b": 2 }, { "a": 1 }, { "a": 1, "b": 2, "c": 2 }], { "a": 1, "b": 2 }); for this one when you first check the a property ` in this one the 2nd element will get pushed into arr, because both have a property with a and the value to 1
but it doesn't have a property b, so it shouldn't be added
Albert Cardona II
@daddycardona
Sep 06 2017 01:40 UTC
blob
this is my issue with that code lol
yes that is what I am trying to check right now @coymeetsworld I am trying to figure out how to say in code check the second property as well and that is why I decided to try the filter() method and every() but because I simply am not understanding them well enough or how to check it I am stuck I just want to cuss at javascript lol
so I was trying to use every() so it could say check all properties but I am slightly stuck on that too in how to go about that
ankorGH
@ankorGH
Sep 06 2017 01:44 UTC

hello, I have this code is there a way i can nest filter and map methods
` ``
var filter = watchList.filter((value) => {
return value.imdbRating.valueOf() >= 8.0;

})

var filteredList = filter.map((value) => {
return {Title:value["Title"], imdbRating:value["imdbRating"]};
});
```

Coy Sanders
@coymeetsworld
Sep 06 2017 01:46 UTC
@daddycardona the filter method is used to remove elements in the array that match a certain criteria
Kyle Holm
@thekholm80
Sep 06 2017 01:46 UTC
bleh i can't get it less than 7 lines without making it stupid ugly
Coy Sanders
@coymeetsworld
Sep 06 2017 01:47 UTC
so that would be a good use of it here. Instead of pushing into a new array, it would be better to just use the array you have and filter that out
for instance, if source object has a property of a, filter all objects out of collection that don't have that property
then you're left with only objects that have a property of a, next thing you do is compare the value of property a in the source object to the property a values of the objects inside collection
Albert Cardona II
@daddycardona
Sep 06 2017 01:49 UTC
oh okay I get that but that is what I was trying to do with it but I was confused
Coy Sanders
@coymeetsworld
Sep 06 2017 01:49 UTC
Object.keys, hasOwnProperty, and filter were the 3 key functions I used
Stephen James
@sjames1958gm
Sep 06 2017 01:49 UTC
@ankorGH You probably want to chain them rather than nest them.
watchList.filter().map()
Albert Cardona II
@daddycardona
Sep 06 2017 01:50 UTC
hmm I tried all that and now I am back to the begining again with this challenge @coymeetsworld
Coy Sanders
@coymeetsworld
Sep 06 2017 01:51 UTC
@daddycardona maybe start over, and try to work through the challenge incrementally
first thing you need to do is have a way to go through each object in the collection array.
Albert Cardona II
@daddycardona
Sep 06 2017 01:52 UTC
that is what I am doing now with the filter method, to trully understand it but it is like I don't understand it all now and I am like wt#
Stephen James
@sjames1958gm
Sep 06 2017 01:52 UTC
@daddycardona item.hasOwnProperty(key) && item[key] === source[key]; so this is the condition that you want to test for each key
keys.every() will return true if every key passes the condition as true
@daddycardona
var valid = true
for each key 
   if no key or value doesnt match - valid = false
endfor
if (valid) push
Kyle Holm
@thekholm80
Sep 06 2017 01:54 UTC
omg i'm so dumb, i forgot arrow functions had implicit return
so it can be done in single line without looking horrible
Coy Sanders
@coymeetsworld
Sep 06 2017 01:54 UTC
yeah its nice
when I refactored my d3 projects they looked alot cleaner
Kyle Holm
@thekholm80
Sep 06 2017 01:55 UTC
my d3 is just a ton of chained methods
looks like jquery gone wrong
Albert Cardona II
@daddycardona
Sep 06 2017 01:55 UTC
Okay I see @sjames1958gm but i am like about to try what you are saying
ankorGH
@ankorGH
Sep 06 2017 01:55 UTC
@sjames1958gm thanks it worked :smile:
CamperBot
@camperbot
Sep 06 2017 01:55 UTC
ankorgh sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
api offline
Albert Cardona II
@daddycardona
Sep 06 2017 01:55 UTC
lol @thekholm80
Coy Sanders
@coymeetsworld
Sep 06 2017 01:56 UTC
yeah you still have to chain
but like the callbacks can look alot more simplified
Kyle Holm
@thekholm80
Sep 06 2017 01:57 UTC
i bet, especially for like the scale and all that
man, i haven't thought about d3 in a while
Coy Sanders
@coymeetsworld
Sep 06 2017 01:57 UTC
let minQtr = d3.min(gdpData.data, function(d) { return d[0]; }); goes to let minQtr = d3.min(gdpData.data, d => d[0]);
var bar = chart.selectAll("g")
                   .data(gdpData.data)
                   .enter().append("rect")
                   .attr("title", "GDP")
 -                 .attr("x", function(d) { return x(d[0]); })
 -                 .attr("y", function(d) { return y(d[1]); })
 -                 .attr("height", function(d) { return chartHeight - y(d[1]); })
 +                 .attr("x", (d) => x(d[0]))
 +                 .attr("y", (d) => y(d[1]))
 +                 .attr("height", (d) => CHART_HEIGHT - y(d[1]))
                   .attr("width", barWidth - 1)
                   .on("mouseout", function() {
                     hideTooltip();
Kyle Holm
@thekholm80
Sep 06 2017 01:59 UTC
i see

i was just looking at

node.style('left', (d) => { return d.x + 'px'; })
          .style('top', (d) => { return d.y + 'px'; })
          .call(force.drag);

      link.attr('x1', (d) => { return d.source.x })
          .attr('y1', (d) => { return d.source.y })
          .attr('x2', (d) => { return d.target.x })
          .attr('y2', (d) => { return d.target.y });

would look a lot cleaner with implicit return

Coy Sanders
@coymeetsworld
Sep 06 2017 02:02 UTC
yeah a little
Albert Cardona II
@daddycardona
Sep 06 2017 02:03 UTC
so I was trying to understand what you are saying agian @sjames1958gm and now I just am more confused well time to watch something relax my mind it has been a crazy weekend thanks to @thekholm80 @coymeetsworld @sjames1958gm
CamperBot
@camperbot
Sep 06 2017 02:03 UTC
daddycardona sends brownie points to @sjames1958gm and @thekholm80 and @coymeetsworld :sparkles: :thumbsup: :sparkles:
api offline
api offline
api offline
Albert Cardona II
@daddycardona
Sep 06 2017 02:03 UTC
stupid api
Kyle Holm
@thekholm80
Sep 06 2017 02:03 UTC
@daddycardona don't give up, you'll get it
this challenge for me was my first taste of callback hell
that sideways pyramid is a pain in the butt
Albert Cardona II
@daddycardona
Sep 06 2017 02:04 UTC
I hope so it is like I get it one minute and then bam i forgot everything we were talking about the next lol
Coy Sanders
@coymeetsworld
Sep 06 2017 02:05 UTC
just try and focus on one thing at a time, revisit those functions and make sure you understand how they work. That should help too
Albert Cardona II
@daddycardona
Sep 06 2017 02:44 UTC
I have one more question, when I do the filter() method I should use the every() method on the inside of it? also should I filter the collection array of objects or source object? I am guessing collection? @coymeetsworld @sjames1958gm @thekholm80
Jake
@JakeDVirus
Sep 06 2017 02:45 UTC

I am getting a strange quirk.
postion: absolute hides the element even after i added z-index: 99.
the above mentioned statement is on line-138 in the given codepen below.
https://codepen.io/neel111/pen/EvMmgZ

by removing the position: absolute the element show up. Why position: absolute is hidding the element?

Kyle Holm
@thekholm80
Sep 06 2017 02:45 UTC
@daddycardona i filtered the collection, then in the callback used every on the keys and returned where key & value matched the search value
Albert Cardona II
@daddycardona
Sep 06 2017 02:47 UTC
Okay so I have this but it is not done make sure I get this
var something = collection.filter(function(e, i) {
        Object.keys(source).every(function(key, item) {
Kyle Holm
@thekholm80
Sep 06 2017 02:47 UTC
close
not sure what the item is
Albert Cardona II
@daddycardona
Sep 06 2017 02:48 UTC
just like element, item, array in filter but key, item, array?
Kyle Holm
@thekholm80
Sep 06 2017 02:50 UTC
in this wouldn't item be the index of the current element?
i have to look up every()
yeah every(element, index, array)
and filter as well
Albert Cardona II
@daddycardona
Sep 06 2017 02:52 UTC
oh yeah I was reading it as well dammit lol
Callback parameter    Definition
value    The value of the array element.
index    The numeric index of the array element.
array1    The array object that contains the element.
Kyle Holm
@thekholm80
Sep 06 2017 02:54 UTC
so
function whatIsInAName (collection, source) {
  var arr = [];

  // ...

  return arr;
}
filter will return an array so we can assign the output of filter to arr
function whatIsInAName (collection, source) {
  var arr = [];

  arr = collection.filter(function(item) {
    // ...
  });

  return arr;
}
Albert Cardona II
@daddycardona
Sep 06 2017 02:56 UTC
so I don't need var something lol
Oh I don't need the second parameter here either okay
Kyle Holm
@thekholm80
Sep 06 2017 02:56 UTC
the criteria for the filter should look at each key of the item
and compare it to what is in source
if all the keys and values match
the element should be returned
Albert Cardona II
@daddycardona
Sep 06 2017 02:58 UTC
You should do a video to something close to something like these challenges but not the actual challenges lol
Kyle Holm
@thekholm80
Sep 06 2017 02:58 UTC
haha
i'm way too lazy
remember that to get the objects out of the filter() you have to return them, so
function whatIsInAName (collection, source) {
  var arr = [];

  arr = collection.filter(function(item) {
   return  // ...
  });

  return arr;
}
Albert Cardona II
@daddycardona
Sep 06 2017 02:59 UTC
so now is when you would look into every ()
Kyle Holm
@thekholm80
Sep 06 2017 03:00 UTC
right
for every() to work, you need an array
which is where Object.keys(source) comes in
Albert Cardona II
@daddycardona
Sep 06 2017 03:00 UTC
so you have to break down soure
Kyle Holm
@thekholm80
Sep 06 2017 03:01 UTC
Object.keys(source) will create an array of the keys in source
then every() will let you look at each element in that array and check it against item
Albert Cardona II
@daddycardona
Sep 06 2017 03:01 UTC
yeah okay so your return for filter should be Object.keys(source).every(fn//)
Kyle Holm
@thekholm80
Sep 06 2017 03:01 UTC
remember to get any values out of every() you need to return them

yes

yeah okay so your return for filter should be Object.keys(source).every(fn//)

so now you're at
function whatIsInAName (collection, source) {
  var arr = [];

  arr = collection.filter(function(item) {
   return Object.keys(source).every(fn//)
  });

  return arr;
}
just put in the comparison in every() and you should be there
Albert Cardona II
@daddycardona
Sep 06 2017 03:03 UTC
okay that makes sense, however every returns true or false
Oh okay so it will return true if every key and value is okay therefor the filter return will return that array object to arr
Kyle Holm
@thekholm80
Sep 06 2017 03:04 UTC
there you go
filter requires true or false, so that's what we're feeding it
Albert Cardona II
@daddycardona
Sep 06 2017 03:05 UTC
Oh shoot I am stupid lol
Kyle Holm
@thekholm80
Sep 06 2017 03:05 UTC
nah, you're almost there
this is not the simplest problem, and not the simplest solution
Albert Cardona II
@daddycardona
Sep 06 2017 03:06 UTC
dammit that is why if you put return a string it just saying that it is true and returns it
Kyle Holm
@thekholm80
Sep 06 2017 03:06 UTC
yep
strings are 'truthy'
so your every() should just check the 2 values and return whether they're a match or not
and bam, you're done
Albert Cardona II
@daddycardona
Sep 06 2017 03:08 UTC
I was so confused, and i read the dam mdn and msn and looked at a hundred videos because I did not understand it is a true or false boolean type crap it needs to say true or false no maybes or possibly lol
Kyle Holm
@thekholm80
Sep 06 2017 03:08 UTC
rofl
since JS isn't a typed language, a lot of weird stuff can happen
Albert Cardona II
@daddycardona
Sep 06 2017 03:11 UTC
I see now maybe I cand understand this now I hope because I have to get the rest of the solution inside .every(function
I am hoping I understand what you all are saying now lol I am a lost sheep looking for it's flock
Kyle Holm
@thekholm80
Sep 06 2017 03:14 UTC
the last thing to remember is that Object.keys() is going to create an array of keys from source so every() is going to look at each key. To compare the values you need to use the [] notation on the objects since you're going to be using a variable
so if
var source = {a: 1, b: 2};

var arr = Object.keys(source);

console.log(arr)  // => [a, b]
then
arr.every(function(key) {
  console.log(source[key])  // => 1   2
});
Albert Cardona II
@daddycardona
Sep 06 2017 03:19 UTC
oh okay thank you
Kyle Holm
@thekholm80
Sep 06 2017 03:20 UTC
compare that to the current item in collection and you're there
thanks @Manish-Giri
CamperBot
@camperbot
Sep 06 2017 03:20 UTC
api offline
thekholm80 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
Albert Cardona II
@daddycardona
Sep 06 2017 03:31 UTC
are you freaking kidding me thats all it was
thanks the kolm you really help me understand the every() and filter() :)
Albert Cardona II
@daddycardona
Sep 06 2017 03:37 UTC
thanks @thekholm80
CamperBot
@camperbot
Sep 06 2017 03:37 UTC
api offline
daddycardona sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
Kyle Holm
@thekholm80
Sep 06 2017 03:37 UTC
@daddycardona did you get it?
Manish Giri
@Manish-Giri
Sep 06 2017 03:38 UTC
help me understand too
array functions
Albert Cardona II
@daddycardona
Sep 06 2017 03:38 UTC
yes once I understood what I was doing wrong lol
Kyle Holm
@thekholm80
Sep 06 2017 03:38 UTC
function array() { ... }
pretty simple
Manish Giri
@Manish-Giri
Sep 06 2017 03:38 UTC
@thekholm80
Kyle Holm
@thekholm80
Sep 06 2017 03:38 UTC
@daddycardona congrats!
Albert Cardona II
@daddycardona
Sep 06 2017 03:39 UTC
I actually had done something before but it did not work because I am an idiot lmao
Kyle Holm
@thekholm80
Sep 06 2017 03:39 UTC
i hope i didn't just feed you the answer
Albert Cardona II
@daddycardona
Sep 06 2017 03:39 UTC
it is like a weight lifted off my shoulder, next time I will just ask stackoverflow lmao
Kyle Holm
@thekholm80
Sep 06 2017 03:39 UTC
the important thing is that you understand why it works
Albert Cardona II
@daddycardona
Sep 06 2017 03:40 UTC
No I did a check before but I never did understand that filter was an true or false and so I never was able to make filter work lmao
I did it with a for loop before lol
Kyle Holm
@thekholm80
Sep 06 2017 03:41 UTC
basically filter is asking "should i return the current value?"
that's why the callback should be true/false
Albert Cardona II
@daddycardona
Sep 06 2017 03:42 UTC
I need to re read it I bet it says exactly what you did lol
Albert Cardona II
@daddycardona
Sep 06 2017 03:47 UTC
@thekholm80 this is what happens when I skim and to tired to read properly callback Function is a predicate, to test each element of the array. Return true to keep the element, false otherwise, taking three arguments: exactly what I have been missing this whole time was right in my face lol
Kyle Holm
@thekholm80
Sep 06 2017 03:48 UTC
lol yeah that happens
they could make it a little easier to understand though
Albert Cardona II
@daddycardona
Sep 06 2017 03:48 UTC
I read this before but my brain did not work lol
I feel as though I should pay for treehouse because I think it is more indepth on subjects for me. Like I flew by all the other challenges but i got to the api bs and all inbetween this one and api and was confused. I didn't learn enough to do the projects but if they had videos and I could follow along it would have been easier. Some of these force feed you the answers lol
Kyle Holm
@thekholm80
Sep 06 2017 03:52 UTC
I'm not familiar with treehouse, but if you're serious about learning this stuff i'd totally agree that it's good to look at sources outside freecodecamp, especially if freecodecamp isn't presenting the information in a way that works well for you
after i finished front end i started taking courses all over the place. I think you have to if you want to continue
Albert Cardona II
@daddycardona
Sep 06 2017 03:55 UTC
yes this is definitely a good starting point but I am slow lmao so I need to get more understanding and I hate when I look something up and it's someone comepleting the challenge its like wt#
codeacademy seems pretty similar to here as well
knight2
@knight2
Sep 06 2017 04:33 UTC
beta website down for anyone else?
Darren
@DarrenfJ
Sep 06 2017 04:44 UTC
evening fCC
hey guys :D :wave: @thekholm80 @daddycardona
@knight2 the main website was down for a bit today for me
Albert Cardona II
@daddycardona
Sep 06 2017 04:45 UTC
@DarrenfJ :wave:
Darren
@DarrenfJ
Sep 06 2017 04:45 UTC
then i heard they locked away sign-in til they fixed a db bug
@daddycardona how goes the night?
knight2
@knight2
Sep 06 2017 04:47 UTC
@DarrenfJ ah thought it might be related to that, thanks for confirming!
CamperBot
@camperbot
Sep 06 2017 04:47 UTC
knight2 sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
api offline
Albert Cardona II
@daddycardona
Sep 06 2017 04:47 UTC
good I am about to get off soon Just figured out something because someone showed me the error of my ways lol
Darren
@DarrenfJ
Sep 06 2017 04:47 UTC
cool...

oh yah look it must still be down:

api offline

just a test.
thanks @daddycardona
CamperBot
@camperbot
Sep 06 2017 04:49 UTC
darrenfj sends brownie points to @daddycardona :sparkles: :thumbsup: :sparkles:
api offline
Darren
@DarrenfJ
Sep 06 2017 04:49 UTC
somethings still down for sure
Albert Cardona II
@daddycardona
Sep 06 2017 04:50 UTC
dammit fcc why are you down lol
Darren
@DarrenfJ
Sep 06 2017 04:51 UTC
:D overworked and underpaid ;)
Albert Cardona II
@daddycardona
Sep 06 2017 04:53 UTC
LOL
just1witness
@just1witness
Sep 06 2017 04:56 UTC
@DarrenfJ @daddycardona thank you, testing testing 123
CamperBot
@camperbot
Sep 06 2017 04:56 UTC
just1witness sends brownie points to @darrenfj and @daddycardona :sparkles: :thumbsup: :sparkles:
api offline
api offline
just1witness
@just1witness
Sep 06 2017 04:56 UTC
Boo
Albert Cardona II
@daddycardona
Sep 06 2017 04:56 UTC
LOL
Darren
@DarrenfJ
Sep 06 2017 04:56 UTC
boo is right :D
probably part of teh ole crash today
just1witness
@just1witness
Sep 06 2017 04:57 UTC
Must be pretty gnarly, whatever it is.
Albert Cardona II
@daddycardona
Sep 06 2017 04:58 UTC
gn yall
Darren
@DarrenfJ
Sep 06 2017 04:59 UTC
@daddycardona later brutha
have a good one
i'll save up all the brownies for ya'all for when cbot is back :D
just1witness
@just1witness
Sep 06 2017 04:59 UTC
Ditto
Darren
@DarrenfJ
Sep 06 2017 05:17 UTC
cbot test test
CamperBot
@camperbot
Sep 06 2017 05:17 UTC
you called?
Darren
@DarrenfJ
Sep 06 2017 05:17 UTC
well hes here at least :D
Coy Sanders
@coymeetsworld
Sep 06 2017 05:32 UTC
about @coymeetsworld
CamperBot
@camperbot
Sep 06 2017 05:32 UTC
api offline
Darren
@DarrenfJ
Sep 06 2017 05:41 UTC
i guess we're finally alone in the universe ;)
santhoshbalaguru001
@santhoshbalaguru001
Sep 06 2017 06:19 UTC

<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;
}

.class1smaller-image {
width: 100px;
}
.class2thick-green-border{
border-color:green;
border-width:10px;
border-style:solid;

}
</style>

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

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

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

i cannot able to add border
Prabu Rangki
@praburangki
Sep 06 2017 06:20 UTC
have you tried: border: solid green 10px; ?
santhoshbalaguru001
@santhoshbalaguru001
Sep 06 2017 06:21 UTC
ya i added
Prabu Rangki
@praburangki
Sep 06 2017 06:21 UTC
<img class="class1smaller-image" "class2thick-green-border"
put it in one quote
<img class="class1smaller-image class2thick-green-border">
santhoshbalaguru001
@santhoshbalaguru001
Sep 06 2017 06:22 UTC
Your img element should have the class smaller-image.
Your img element should have the class thick-green-border.
im still getting this error
Darren
@DarrenfJ
Sep 06 2017 06:30 UTC
@santhoshbalaguru001 because the name of each class is: smaller-image and thick-green-border without the class 1 class 2 part
in both the CSS and html parts
santhoshbalaguru001
@santhoshbalaguru001
Sep 06 2017 06:30 UTC
thank you issue resolved!
Darren
@DarrenfJ
Sep 06 2017 06:31 UTC
:D
Jake
@JakeDVirus
Sep 06 2017 06:31 UTC
i am in dilemma. need suggestion.
Shall i learn bootstrap4 or semantic ui?
Coy Sanders
@coymeetsworld
Sep 06 2017 06:32 UTC
whichever you prefer @NeelDVirus, FCC covers bootstrap so unless you really like semantic i would stick with that.
but dont invest a lot of time in either of them, as eventually you should move away from those frameworks and implement the CSS/JS on your own
Jake
@JakeDVirus
Sep 06 2017 06:36 UTC
@coymeetsworld yeah i learned bootstrap3 and boostrap3 doesn't seems so fascinating to me. Bootstrap 4 is fascinating but it is still in beta version(risky to use), and on the other side semantic ui is much fascinating but more harder to get used to it.
Now this is where i am confused :D :D
yeah i am not gonna be reliant on either one
Coy Sanders
@coymeetsworld
Sep 06 2017 06:38 UTC
I don't know anything about Semantic UI, but seems to be similar
if you really want to use it because of some features it has over BS then go for it
santhoshbalaguru001
@santhoshbalaguru001
Sep 06 2017 06:39 UTC

<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;
}
</style>

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

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

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
<p>Here's a <a href="http://freecatphotoapp.com">"catphotos"</a> for you to follow.</p>

everthing is correct but showing error!
ro0tkit
@ro0tkit
Sep 06 2017 08:36 UTC
How doi upgrade to windows 10? Do i need to download it? No idea.
help??
OracleOU
@OracleOU
Sep 06 2017 09:07 UTC
<p class="red-text";font-size: 16px;> set font-size to 16px, is the code right?
can anyone help?
I've solved this problem myself,thanks.
Tiago Correia
@tiagocorreiaalmeida
Sep 06 2017 09:12 UTC
does anyone here does codefights exercises?

Given two strings, find the number of common characters between them.

Example

For s1 = "aabcc" and s2 = "adcaa", the output should be
commonCharacterCount(s1, s2) = 3.

Strings have 3 common characters - 2 "a"s and 1 "c".

function commonCharacterCount(s1, s2) {
    s1 = s1.split("");
    s2 = s2.split("");
    var s1Length = s1.length;
    var s2Length = s2.length;
    var count = 0;
    for(let i = 0; i < s1Length; i++){
        for(let j = 0; j < s2Length; j++){
            if(s1[i] === s2[j] && s1[i] != null){
                console.log(s1[i]+" is equal to "+s2[j]);
                s1.splice(i,1);
                s2.splice(j,1);
                count ++;
            }
        }
    }
    console.log(s1,s2);
    return count;
}
shoulnd this work?
dertiuss323
@dertiuss323
Sep 06 2017 09:47 UTC
hello guys i,m having problem with this code study (title="Ultimate Oscillator Bars [LazyBear]", shorttitle="UOBARS [LazyBear]")
length7 = input(7, minval=1),
length14 = input(14, minval=1),
length28 = input(28, minval=1)
lengthSlope = input(1)
average(bp, tr
, length) => sum(bp, length) / sum(tr, length)
high
= max(high, close[1])
low = min(low, close[1])
bp = close - low

tr = high - low
avg7 = average(bp, tr
, length7)
avg14 = average(bp, tr, length14)
avg28 = average(bp, tr
, length28)
out = 100 (4avg7 + 2*avg14 + avg28)/7
plot(out, color=red, title="UO")
bgcolor(falling(out, lengthSlope) ? red : (rising(out, lengthSlope) ? green : blue), transp=50)
}
Always getting errors -- study declaration without type
KISS
@KJKSLOVE
Sep 06 2017 09:53 UTC
hello ,I am new here
Stephen James
@sjames1958gm
Sep 06 2017 10:01 UTC
@KJKSLOVE hello
@tiagocorreiaalmeida Isn't splicing the s1 array going to mess up the outer loop indexing?
heroiczero
@heroiczero
Sep 06 2017 10:04 UTC
@KJKSLOVE Welcome to Free code Camp Community
Tiago Correia
@tiagocorreiaalmeida
Sep 06 2017 10:10 UTC
hey @sjames1958gm yeah it will In this case I only need to splice the second one ssince I will run the first 1 from start till the end
Stephen James
@sjames1958gm
Sep 06 2017 10:11 UTC
@tiagocorreiaalmeida Also, if you get a match you should break; from inner loop or you will get multiple matches
Tiago Correia
@tiagocorreiaalmeida
Sep 06 2017 10:33 UTC
yeah was thinking about return but it would stop the entire function so yeah loop is the trick, thanks
break
Tiago Correia
@tiagocorreiaalmeida
Sep 06 2017 10:43 UTC
@sjames1958gm can you point me some good ideas of projects or little exercise about node / express cause Im allready at the mongodb part of the course but I feel like I need to pratice what I did before it will fade, but usual no ideas of what to create
heroiczero
@heroiczero
Sep 06 2017 10:45 UTC
yeah i like doing CodeWars too and the katas its fun and nice review
GothicV
@GothicV
Sep 06 2017 11:01 UTC
 <div class="row">

    <div class="col-xs-6>"><label><input type="radio" name="indoor-outdoor"> Indoor</label></div>

    <div class="col-xs-6>"><label><input type="radio" name="indoor-outdoor"> Outdoor</label></div>


    </div>
Each of your radio buttons is nested in your own div element, and the div contains the class property col-xs-6
Please tell me why not
Tiago Correia
@tiagocorreiaalmeida
Sep 06 2017 11:02 UTC
what's the problem @GothicV ?
GothicV
@GothicV
Sep 06 2017 11:03 UTC
I'm a newbie
Each of your radio buttons is nested in your own div element, and the div contains the class property col-xs-6
Is there anything wrong with my code?
Tiago Correia
@tiagocorreiaalmeida
Sep 06 2017 11:06 UTC
 <div class="row">

    <div class="col-xs-6>"><input type="radio" name="indoor-outdoor"> Indoor</div>

    <div class="col-xs-6>"><input type="radio" name="indoor-outdoor"> Outdoor</div>


    </div>
change it to this
maybe they dotn want you to use label?
dont knos
know
oh yes
there is a error im blind
<div class="col-xs-6>">
should be
<div class="col-xs-6">
sorry
GothicV
@GothicV
Sep 06 2017 11:07 UTC
Thanks for your help.
Let me have a shot at it.
Oh, my God, I didn't see that >
Tiago Correia
@tiagocorreiaalmeida
Sep 06 2017 11:09 UTC
np happens to us all
GothicV
@GothicV
Sep 06 2017 11:11 UTC
Thank you very much!
Ahmad Abdolsaheb
@ahmadabdolsaheb
Sep 06 2017 12:22 UTC
hi everyone, I have a stupid question regarding linking stylesheet to html
I link the css file in the head of the html file which is in the same directory with this
```<link rel="stylesheet" type="text/css" href="styles.css">
Pethaf
@Pethaf
Sep 06 2017 12:23 UTC
Yes.
Yes.
Go on.
Ahmad Abdolsaheb
@ahmadabdolsaheb
Sep 06 2017 12:23 UTC
and style the body in the css file however nothing happens
@Pethaf here is the code, it is very short
Pethaf
@Pethaf
Sep 06 2017 12:31 UTC
Have you tried adding a custom class in your css and on your webpage? Just to check that your css is loaded properly?
It could be bootstrap interfering.
I.e. add something like .test { color: maroon; min-width: 80vw;} to your styles.css and a <div class="test"></div> to your html.
Tiago Correia
@tiagocorreiaalmeida
Sep 06 2017 12:39 UTC
For a = [-1, 150, 190, 170, -1, -1, 160, 180], the output should be
sortByHeight(a) = [-1, 150, 160, 170, -1, -1, 180, 190]. how can I avoid chaging those array positions?
Tiago Correia
@tiagocorreiaalmeida
Sep 06 2017 13:37 UTC
@sjames1958gm you around?just a little question about .slcie
slice
Stephen James
@sjames1958gm
Sep 06 2017 14:33 UTC
@tiagocorreiaalmeida yes
Darren
@DarrenfJ
Sep 06 2017 14:37 UTC
morning fCC
Stephen James
@sjames1958gm
Sep 06 2017 14:40 UTC
@DarrenfJ Hola
Darren
@DarrenfJ
Sep 06 2017 14:40 UTC
@sjames1958gm hey buddy :D how goes the helpRoom? it was quiet last night
Stephen James
@sjames1958gm
Sep 06 2017 14:40 UTC
Relatively quiet.
Darren
@DarrenfJ
Sep 06 2017 14:42 UTC
ah...
as usual
welp, i'll lurk...
:D
Gustavo Santana
@santanaG
Sep 06 2017 15:11 UTC
@tiagocorreiaalmeida You can avoid changing those array positions by ignoring anything that is not a positive number
Mukul Agrawal
@mukul09
Sep 06 2017 15:37 UTC
could anyone please help me in front end. In the given codepen link I want to make them blink. how can i do that?
https://codepen.io/mukul09/pen/KvYYEG?editors=1010
Joseph
@revisualize
Sep 06 2017 15:38 UTC
<blink></blink>
LOL!
Kyle Holm
@thekholm80
Sep 06 2017 15:46 UTC
@DarrenfJ :wave: sorry missed you last night
@Manish-Giri thanks
CamperBot
@camperbot
Sep 06 2017 15:46 UTC
thekholm80 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
api offline
Kyle Holm
@thekholm80
Sep 06 2017 15:47 UTC
cbot's taking a long vacation
Mukul Agrawal
@mukul09
Sep 06 2017 15:47 UTC
@revisualize its not working though
Supra01
@Supra01
Sep 06 2017 15:53 UTC
function largestOfFour(arr) {
  for (var i = 0; i < arr.length; i++) {
    var max = Math.max(...arr[i]);
  }
  return max; 
}

largestOfFour([
  [4, 5, 1, 3],
  [13, 27, 18, 26],
  [32, 35, 37, 39],
  [1000, 1001, 857, 1]
]);
I'm working on the Return Largest Numbers in Arrays section and so far my code gets the largest number which is 1001. I just need to return the rest of it's sub-array ([1000,857,1]). Is there a way for me to use the value (1001) to get the sub-array that it is in? Can someone point me in the right direction?
Stephen James
@sjames1958gm
Sep 06 2017 15:54 UTC
@Supra01 You need to build up the array max, not just write the last element
Emmanuel Akodia
@akodiaemma
Sep 06 2017 15:58 UTC
@akodiaemma
can any one tell me why this cant connect to my database...i seem to have everything working well
function executeQuery($query){
    $db_host = "localhost";
    $db_user = "people";
    $db_pass = "PEWA{D!cC-]i";
    $db_name = "expo";


    $dbCon = mysqli_connect($db_host,$db_user,$db_pass,$db_name) or die("Database Connection Failed");
    //check db connection state
    if (empty($dbCon))
        echo "Database connection failed";
    else {
        $result = $dbCon->query($query);
        //close db connection
        mysqli_close($dbCon);

        //if query was successful
        if($result)
            return $result;
        else
            return 0;
    }
Darren
@DarrenfJ
Sep 06 2017 15:59 UTC
testing
thanks @Manish-Giri
CamperBot
@camperbot
Sep 06 2017 16:00 UTC
darrenfj sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
api offline
Supra01
@Supra01
Sep 06 2017 16:06 UTC
@sjames1958gm I see thank you
CamperBot
@camperbot
Sep 06 2017 16:06 UTC
supra01 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
api offline
Albert Cardona II
@daddycardona
Sep 06 2017 16:34 UTC
I got the one after wherfore are thou
Kyle Holm
@thekholm80
Sep 06 2017 16:34 UTC
:tada:
Albert Cardona II
@daddycardona
Sep 06 2017 16:34 UTC
search and replace was very easy I couldn't sleep so it took me like 20 minutes and boom LOL
Kyle Holm
@thekholm80
Sep 06 2017 16:34 UTC
good job!
Albert Cardona II
@daddycardona
Sep 06 2017 16:35 UTC
Now I have an issue with a switch case in pig latin
 switch (str.charAt(0)) {
        case 'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U':
            str += 'way';
            break;
should that work?
Kyle Holm
@thekholm80
Sep 06 2017 16:36 UTC
switch (str.charAt(0)) {
  case 'a':
  case 'e':
  ....
Albert Cardona II
@daddycardona
Sep 06 2017 16:36 UTC
Or should I be using something else like charcode numbers for this instead
Oh I have to use it like that then break after "u"
okay I don't know what I a m thinking lol
I swore you could do it like the way I was doing lol
Kyle Holm
@thekholm80
Sep 06 2017 16:38 UTC
i've never seen it that way
that doesn't necessarily mean it won't work, just that i've never seen it
Darren
@DarrenfJ
Sep 06 2017 16:38 UTC
hey guys :D @daddycardona @thekholm80 :wave:
Kyle Holm
@thekholm80
Sep 06 2017 16:39 UTC
hey buddy
how's the great frozen north?
Darren
@DarrenfJ
Sep 06 2017 16:39 UTC
getting cooler finally
Albert Cardona II
@daddycardona
Sep 06 2017 16:39 UTC
hey buuuuudddy In my Polly Shore voice
Darren
@DarrenfJ
Sep 06 2017 16:39 UTC
summer's mostly over
but weirdly it's been humid
Albert Cardona II
@daddycardona
Sep 06 2017 16:39 UTC
Oh you more north than I am, you use to hang out with the weekend lol
Kyle Holm
@thekholm80
Sep 06 2017 16:39 UTC
it was 95 here yesterday but we're supposed to be in the high 80s this weekend
I guess that's an improvement
Albert Cardona II
@daddycardona
Sep 06 2017 16:40 UTC
Dude its 80 here
Kyle Holm
@thekholm80
Sep 06 2017 16:40 UTC
i hate anything over 70 lol
Darren
@DarrenfJ
Sep 06 2017 16:40 UTC
i hate anything over 25
certainly hate anything near the boiling point of water
:P
jenkuy
@jenkuy
Sep 06 2017 16:41 UTC
Hey there! Is anyone else unable to sign into the beta? I'm getting an error message, but I can view the beta map while not signed in
Kyle Holm
@thekholm80
Sep 06 2017 16:41 UTC
pfft you think you're so cool with your metric system
Darren
@DarrenfJ
Sep 06 2017 16:41 UTC
@jenkuy they disabled beta sign-in if you don't already have a login
Kyle Holm
@thekholm80
Sep 06 2017 16:41 UTC
anyway, i've got to go yell at some people, back later
jenkuy
@jenkuy
Sep 06 2017 16:42 UTC
@DarrenfJ I already have an account, I just haven't logged into it in 2 weeks
that worked for me when i was locked out
Albert Cardona II
@daddycardona
Sep 06 2017 16:44 UTC
translatePigLatin("glove") should return "oveglay". why lol
it don't say that in the description
jenkuy
@jenkuy
Sep 06 2017 16:44 UTC
@DarrenfJ Yeah, that is what I am using and am getting the error from: "Oops! Something went wrong. Please try again later"
If it is just me, then I'll try again tomorrow or so :)
Albert Cardona II
@daddycardona
Sep 06 2017 16:45 UTC
stupid pig latin which is basically english
Supra01
@Supra01
Sep 06 2017 16:46 UTC

@sjames1958gm

function largestOfFour(arr) {
  var largestNum =[];
  for (var i = 0; i < arr.length; i++) {
    largestNum.push(Math.max.apply(null, arr[i]));

  }
  return largestNum;
}



largestOfFour([
  [4, 5, 1, 3],
  [13, 27, 18, 26],
  [32, 35, 37, 39],
  [1000, 1001, 857, 1]
]);

Thanks again I was able to figure it out!

CamperBot
@camperbot
Sep 06 2017 16:46 UTC
supra01 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
api offline
Stephen James
@sjames1958gm
Sep 06 2017 16:46 UTC
@Supra01 :+1:
@Supra01 A more functional way would be to use .map rather than for loop and push
Darren
@DarrenfJ
Sep 06 2017 16:48 UTC
@jenkuy somebody last night said the beta was down when/around when the main site went down.. possibly related? And they haven;t gotten to fixing it yet?
the api is offline here and they haven't gotten to fixing that either...
and since them are us the volunteers, it's no wonder ;)
Supra01
@Supra01
Sep 06 2017 16:49 UTC
@sjames1958gm Ok I will look into it :smile:
jenkuy
@jenkuy
Sep 06 2017 16:49 UTC
@DarrenfJ Ah gotcha, gotcha. :) Thank you!
CamperBot
@camperbot
Sep 06 2017 16:49 UTC
jenkuy sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
api offline
Albert Cardona II
@daddycardona
Sep 06 2017 16:52 UTC
So @DarrenfJ why the hell did they ad glove to oveglay it did not say that in the description lol
Darren
@DarrenfJ
Sep 06 2017 16:57 UTC
don't they have some rule about taking two constenants if the vowel is after them?
Albert Cardona II
@daddycardona
Sep 06 2017 16:59 UTC
I know I am confused with this I had the whole dam thing working lol
I just added a switch case for g if( charAt(1) == 'l') that fixed it
Albert Cardona II
@daddycardona
Sep 06 2017 17:15 UTC
Okay I realized I read it wrong, I did not know what a consanant cluster is lol
But I researched it oh well I will redo it later :)
ajhernandez95
@ajhernandez95
Sep 06 2017 17:20 UTC
Help please?
I am trying to make a submit button that submits an email to "https://www.freecodecamp.com/email-submit" i added this into an action like so action="action="https://www.freecodecamp.com/email-submit"" but it will not work with the submit button ive made
Darren
@DarrenfJ
Sep 06 2017 17:22 UTC
@daddycardona i thin i did some run pullin out the start of the array... running through the array (split str into an array) and found the first vowel (having saved the constenants or something)
probably over thinking it myself though now
lemme go check
yah.. had a vowel check and basically peeled off the first letter until i hit a vowel than adddedit to 'ay' on the back.. had the special case of if starting with a vowel add 'way' at the back
ajhernandez95
@ajhernandez95
Sep 06 2017 17:26 UTC
anybody?
Darren
@DarrenfJ
Sep 06 2017 17:28 UTC
brb gonna check it some more
Lance
@texas2010
Sep 06 2017 17:29 UTC
@ajhernandez95 is that challenge or something?
ajhernandez95
@ajhernandez95
Sep 06 2017 17:29 UTC
@texas2010 yeah its a project for a product landing page
Lance
@texas2010
Sep 06 2017 17:32 UTC
oh
ajhernandez95
@ajhernandez95
Sep 06 2017 17:36 UTC
yeah so any help?
Kyle Holm
@thekholm80
Sep 06 2017 17:36 UTC
@ajhernandez95 why do you have action twice?
ajhernandez95
@ajhernandez95
Sep 06 2017 17:37 UTC
i just copied and pasted that was my bad but its not like that in the code
Grigor Minasyan
@gogminsam
Sep 06 2017 17:40 UTC
can someone say why is this while loop infinite? this is the cash in drawer problem
      while (change>0 && cid[0][1]>0) {
        switch (true) {
          case (change >= 100):
            if (cid[8][1]>0) {
              change -=100;
              changearr[0][1] += 100;
              cid[8][1] -= 100;
              break;
            }
          case (change >= 20):
            if (cid[7][1]>0) {
              change -=20;
              changearr[1][1] += 20;
              cid[7][1] -= 20;
              break;
            }
          case (change >= 10):
            if (cid[6][1]>0) {
              change -=10;
              changearr[2][1] += 10;
              cid[6][1] -= 10;
            break;
            }
          case (change >= 5):
            if (cid[5][1]>0) {
              change -=5;
              changearr[3][1] += 5;
              cid[5][1] -= 5;
              break;
            }
          case (change >= 1):
            if (cid[4][1]>0) {
              change -=1;
              changearr[4][1] += 1;
              cid[4][1] -= 1;
              break;
            }
          case (change >= 0.25):
            if (cid[3][1]>0) {
              change -=0.25;
              changearr[5][1] += 0.25;
              cid[3][1] -= 0.25;
              break;
            }
          case (change >= 0.1):
            if (cid[2][1]>0) {
              change -=0.1;
              changearr[6][1] += 0.1;
              cid[2][1] -= 0.1;
              break;
            }
          case (change >= 0.05):
            if (cid[1][1]>0) {
              change -=0.05;
              changearr[7][1] += 0.05;
              cid[1][1] -= 0.05;
              break;
            }
          case (change >= 0.01):
            if (cid[0][1]>0) {
              change -=0.01;
              changearr[8][1] += 0.01;
              cid[0][1] -= 0.01;
              break;
            }
          default:
            break;
        }
      }
this switch is decreasing change due, increasing change array, and decreasing cash in drawer
Stephen James
@sjames1958gm
Sep 06 2017 17:56 UTC
@gogminsam It could be precision problem if the result ends up < 0.01 it will never end, if you hit the default: then console.log the value and set change to 0
Grigor Minasyan
@gogminsam
Sep 06 2017 17:58 UTC
@sjames1958gm i did that already, infinite loop is fixed now, but now i get one less penny at the end, is this the precision problem? how can ii overcome this problem?
Stephen James
@sjames1958gm
Sep 06 2017 17:59 UTC
@gogminsam I converted everything to pennies (multiplied everything by 100) then converted back at the end.
Grigor Minasyan
@gogminsam
Sep 06 2017 18:01 UTC
@sjames1958gm thanks, ill try that one
CamperBot
@camperbot
Sep 06 2017 18:01 UTC
gogminsam sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
api offline
elminsterrr
@elminsterrr
Sep 06 2017 18:28 UTC
Hi, Is here native english present? :smile:
I need small help with short text :worried:
Engjell Bislimi
@Engjell00
Sep 06 2017 20:13 UTC
quick question : $("#right-well").children().css("color", "orange");
$("#left-well").children().css("color", "green");
$(".target:nth-child(2)").addClass("animated bounce");
$('.target:odd').addClass('animated shake');
$('.target:even').addClass("shake");
Why the 2 last code didnt work with the " " but with only ' '
Darren
@DarrenfJ
Sep 06 2017 20:18 UTC
testing thanks @Manish-Giri
CamperBot
@camperbot
Sep 06 2017 20:18 UTC
darrenfj sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
api offline
Darren
@DarrenfJ
Sep 06 2017 20:18 UTC
dang
Kyle Holm
@thekholm80
Sep 06 2017 20:18 UTC
i love that @Manish-Giri gets all the testing spam
Darren
@DarrenfJ
Sep 06 2017 20:20 UTC
testing rawk-salutes @thekholm80
dang
Kyle Holm
@thekholm80
Sep 06 2017 20:20 UTC
lol
Darren
@DarrenfJ
Sep 06 2017 20:20 UTC
still not working
;)
Manish Giri
@Manish-Giri
Sep 06 2017 20:24 UTC
i love that @Manish-Giri gets all the testing spam
:sob:
all spam and no cookies
lol
maybe cbot just hates me
@DarrenfJ ty
CamperBot
@camperbot
Sep 06 2017 20:24 UTC
manish-giri sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
api offline
Manish Giri
@Manish-Giri
Sep 06 2017 20:24 UTC
ugh
Kyle Holm
@thekholm80
Sep 06 2017 20:24 UTC
@Manish-Giri thanks
CamperBot
@camperbot
Sep 06 2017 20:24 UTC
thekholm80 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
api offline
Manish Giri
@Manish-Giri
Sep 06 2017 20:25 UTC
well
goodbye streak
Kyle Holm
@thekholm80
Sep 06 2017 20:25 UTC
:cookie:
turn in a project
Manish Giri
@Manish-Giri
Sep 06 2017 20:25 UTC
lol
@thekholm80 sign in is still disabled
so there goes that
Kyle Holm
@thekholm80
Sep 06 2017 20:26 UTC
I'm logged in
weird
Manish Giri
@Manish-Giri
Sep 06 2017 20:27 UTC
I too was logged in, but now somehow i'm not
and when I go to sign in
:boom:
Kyle Holm
@thekholm80
Sep 06 2017 20:27 UTC
i think they're just trying to kill your streak
Manish Giri
@Manish-Giri
Sep 06 2017 20:28 UTC
lol
Kyle Holm
@thekholm80
Sep 06 2017 20:29 UTC
@Manish-Giri x
Manish Giri
@Manish-Giri
Sep 06 2017 20:30 UTC
rofl
:joy:
I love the python and java ones
and html lol
Darren
@DarrenfJ
Sep 06 2017 20:31 UTC
streak-killers
Lance
@texas2010
Sep 06 2017 20:31 UTC
sorry about camperbot. it seems it is still disable for reason. but i did send message to Quincy about. i told him it need to be enable again.
Kyle Holm
@thekholm80
Sep 06 2017 20:31 UTC
@texas2010 thanks
CamperBot
@camperbot
Sep 06 2017 20:31 UTC
thekholm80 sends brownie points to @texas2010 :sparkles: :thumbsup: :sparkles:
api offline
Darren
@DarrenfJ
Sep 06 2017 20:32 UTC
thanks @texas2010
CamperBot
@camperbot
Sep 06 2017 20:32 UTC
darrenfj sends brownie points to @texas2010 :sparkles: :thumbsup: :sparkles:
api offline
Kyle Holm
@thekholm80
Sep 06 2017 20:32 UTC
no cookie for you
Lance
@texas2010
Sep 06 2017 20:32 UTC
...
Kyle Holm
@thekholm80
Sep 06 2017 20:32 UTC
:grinning:
Darren
@DarrenfJ
Sep 06 2017 20:33 UTC
i think manish has finished most of the projects anyway.. only way to keep his streak is through the lerve of the helping people out
Kyle Holm
@thekholm80
Sep 06 2017 20:33 UTC
surely there's an unfinished D3 or something he could turn in
Manish Giri
@Manish-Giri
Sep 06 2017 20:33 UTC
lol
Kyle Holm
@thekholm80
Sep 06 2017 20:33 UTC
a quick microservice
Manish Giri
@Manish-Giri
Sep 06 2017 20:34 UTC
hehe
yeah I have one last d3 left and the dungeon
then i'll finish data viz
Kyle Holm
@thekholm80
Sep 06 2017 20:34 UTC
some of those microservice projects take like an hour
Manish Giri
@Manish-Giri
Sep 06 2017 20:34 UTC
then I can retire and settle in nepal
Darren
@DarrenfJ
Sep 06 2017 20:34 UTC
image.png
lookit that streak!
566 days
starting tomorrow: day 1
Manish Giri
@Manish-Giri
Sep 06 2017 20:35 UTC
aw come on yours would be 586 days
Kyle Holm
@thekholm80
Sep 06 2017 20:35 UTC
they should reset his cookies too
Darren
@DarrenfJ
Sep 06 2017 20:35 UTC
but like i said then we'll be freeeeeee!!!!
Manish Giri
@Manish-Giri
Sep 06 2017 20:35 UTC
@DarrenfJ
Darren
@DarrenfJ
Sep 06 2017 20:35 UTC
that's if you don't log in
logged in it's something ridiculous like almost 800 days
but i'm good i got one in for today
but since ye ole days of yore when the helpRoom was actually active I've not felt like I've really earned it anymore :/
Kyle Holm
@thekholm80
Sep 06 2017 20:37 UTC
I don't miss seeing the same question 30x a day, but it was nice having some activity here
Manish Giri
@Manish-Giri
Sep 06 2017 20:37 UTC
str.png
@DarrenfJ look at that
logged in or not, you'll be the reigning champion
:bow:
Darren
@DarrenfJ
Sep 06 2017 20:38 UTC
i read about a guy who had 1000 days in GitHub back when they tracked streaks and he wrote a nice post about choosing to give it up so he could focus on quality and not doing something every day.. so he could pick and choose when to work on stuff
the streaks at least kept me working one something everyday.. but giving it up might be a good thang :D
Manish Giri
@Manish-Giri
Sep 06 2017 20:39 UTC
lol
@DarrenfJ we always have our side gig to fall back on
:smiling_imp:
Darren
@DarrenfJ
Sep 06 2017 20:39 UTC
i know!
Kyle Holm
@thekholm80
Sep 06 2017 20:39 UTC
This message was deleted
Manish Giri
@Manish-Giri
Sep 06 2017 20:39 UTC
si senor
Darren
@DarrenfJ
Sep 06 2017 20:39 UTC
gotta get cracking on that myself
@thekholm80 oui!
Kyle Holm
@thekholm80
Sep 06 2017 20:40 UTC
lol
i'm afraid to imagine the people who would actually pay me for that
Darren
@DarrenfJ
Sep 06 2017 20:41 UTC
ha!
welp.. back to the funFun world of testing :/
Kyle Holm
@thekholm80
Sep 06 2017 20:43 UTC
:wave:
Darren
@DarrenfJ
Sep 06 2017 20:43 UTC
laters
Manish Giri
@Manish-Giri
Sep 06 2017 20:43 UTC
:wave:
Kyle Holm
@thekholm80
Sep 06 2017 20:45 UTC
stupid node
every project i have needs to have node-sass rebuilt because i upgraded node
Manish Giri
@Manish-Giri
Sep 06 2017 20:46 UTC
oh wow
that's a pain
but I remember there was a -g you could use
Kyle Holm
@thekholm80
Sep 06 2017 20:46 UTC
it takes like 1 second to install the module, 2 minutes to rebuild it lol

on the node install or the node-sass package?

but I remember there was a -g you could use

Tiago Correia
@tiagocorreiaalmeida
Sep 06 2017 20:49 UTC
https://codepen.io/tiagocorreia/full/JyqOQm/ can someone help me? no idea why the hover on the contact button doesnt work got a nimation there
Manish Giri
@Manish-Giri
Sep 06 2017 20:49 UTC
Kyle Holm
@thekholm80
Sep 06 2017 20:51 UTC

I wonder how many hipsters cry when they see this?

Note that OS X is just a flavour of Unix

Manish Giri
@Manish-Giri
Sep 06 2017 20:51 UTC
lol
Kyle Holm
@thekholm80
Sep 06 2017 20:56 UTC
@Manish-Giri x
Q: Will you hand-deliver this to London, England. If so, will you agree to a public fist fight?
Eric Miller
@ericmiller777
Sep 06 2017 20:58 UTC
hey guys
ive done i+1 in an array before and it worked fine
why doesnt it work here?
function spinalCase(str) {
  // "It's such a fine line between stupid, and clever."
  // --David St. Hubbins
  str = str.split("");
  for (let i = 0; i < str.length; i++){
    if(str[i] == str[i].toLowerCase() && str[i+1] == str[i+1].toUpperCase()){
      str[i+1] = "-";
    }
    if(str[i] == str[i].toUpperCase()){
      str[i] = str[i].toLowerCase();
    }
    if(str[i] == " "||str[i] == "_"){
      str[i].split(i, 1);
      str[i] = "-";
    }
  }
  return str.join("");
}

spinalCase('thisIsSpinalTap');
I know this is probably not the most efficient way of doing this
Adam Bohannon
@abohannon
Sep 06 2017 20:59 UTC
Hi all - can anyone help me get my react recipe app deployed on Heroku? I've linked the github repository, but confused on where to go from here.
Kyle Holm
@thekholm80
Sep 06 2017 21:00 UTC
@abohannon do you have the heroku cli installed?
Adam Bohannon
@abohannon
Sep 06 2017 21:00 UTC
@thekholm80 yea. And I started going through the tutorial, but it seems its starting from scratch. I just want to deploy my already existing app.
Manish Giri
@Manish-Giri
Sep 06 2017 21:00 UTC
@thekholm80 lol wow
Kyle Holm
@thekholm80
Sep 06 2017 21:00 UTC
@abohannon actually, this is the guide i followed
the syntax is similar to git
Adam Bohannon
@abohannon
Sep 06 2017 21:01 UTC
@thekholm80 rad i'll check it out thanks
CamperBot
@camperbot
Sep 06 2017 21:01 UTC
abohannon sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
api offline
Kyle Holm
@thekholm80
Sep 06 2017 21:02 UTC
i lied that isn't the guide i used
I can't find the one i did use
@Manish-Giri if i were rich i'd pay $250k to punch that guy in the face
Manish Giri
@Manish-Giri
Sep 06 2017 21:04 UTC
@thekholm80 lol
:joy_cat:
Adam Bohannon
@abohannon
Sep 06 2017 21:04 UTC
so my package.json file has this
"scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  },
and the heroku tutorial is asking for this:
 "scripts": {

  "start": "node server.js"

  }
Kyle Holm
@thekholm80
Sep 06 2017 21:05 UTC
you should make a Procfile
wait, are you deploying without bundling?
also, do you have a server or is this front end only?
Adam Bohannon
@abohannon
Sep 06 2017 21:09 UTC
@thekholm80 I got tired of using codepen for react projects because my files were crazy long. Figured deploying on Heroku would allow me to showcase my work utilizing the standard one component one file practice. But maybe I'm wrong.
Kyle Holm
@thekholm80
Sep 06 2017 21:09 UTC
@abohannon i see
Adam Bohannon
@abohannon
Sep 06 2017 21:09 UTC
that is linked
Kyle Holm
@thekholm80
Sep 06 2017 21:10 UTC
heroku, as far as i know, requires a back end
i use firebase for my react only projects
Adam Bohannon
@abohannon
Sep 06 2017 21:11 UTC
cool, i'll check it out. thank you
Kyle Holm
@thekholm80
Sep 06 2017 21:11 UTC
i'll see if i can find an easy write-up for deployment there
Adam Bohannon
@abohannon
Sep 06 2017 21:12 UTC
sweet
Manish Giri
@Manish-Giri
Sep 06 2017 21:19 UTC
@thekholm80
The quick brown fox jumps over the lazy dog.
do you find the letter "v" here
Kyle Holm
@thekholm80
Sep 06 2017 21:19 UTC
yep
oVer
Manish Giri
@Manish-Giri
Sep 06 2017 21:20 UTC
fk
i'm going blind
Kyle Holm
@thekholm80
Sep 06 2017 21:20 UTC
it's a tricky letter
you got the other 25 though, right?
still a good score
Manish Giri
@Manish-Giri
Sep 06 2017 21:20 UTC
lol
trying to do this
Kyle Holm
@thekholm80
Sep 06 2017 21:22 UTC
looks rough
where's that guy that's ranked 2kyu? he could tell you how to do it without even looking at the problem
Manish Giri
@Manish-Giri
Sep 06 2017 21:23 UTC
:joy:
did you know he's no longer ranked 2 kyu
he's moved on to 1 kyu
Kyle Holm
@thekholm80
Sep 06 2017 21:23 UTC
1?
Manish Giri
@Manish-Giri
Sep 06 2017 21:23 UTC
:fire:
geniouuus
Kyle Holm
@thekholm80
Sep 06 2017 21:24 UTC
Manish Giri
@Manish-Giri
Sep 06 2017 21:24 UTC
lol
oh wow I finished the kata and lemme show you the top solution
Kyle Holm
@thekholm80
Sep 06 2017 21:25 UTC
i bet his first whiteboard interview will be fun
Manish Giri
@Manish-Giri
Sep 06 2017 21:25 UTC
public class PangramChecker {
  public static boolean check(String sentence) {
        String MaleLitery = "qwertyuiopasdfghjklzxcvbnm", DuzeLitery = "QWERTYUIOPASDFGHJKLZXCVBNM";
        char[] TablicaCharow = new char[sentence.length()];
        char[] MaleLitery1 = new char[MaleLitery.length()];
        char[] DuzeLitery1 = new char[DuzeLitery.length()];
        int[] TablicaIlosciLiter = new int[MaleLitery.length()];
        boolean[] TablicaPrawdy  = new boolean[MaleLitery.length()];
        boolean result = true;


        for (int i = 0; i < sentence.length(); i++) {
            TablicaCharow[i] = sentence.charAt(i);
        }

        for (int i = 0; i < MaleLitery.length(); i++) {
            MaleLitery1[i] = MaleLitery.charAt(i);
            DuzeLitery1[i] = DuzeLitery.charAt(i);
            TablicaIlosciLiter[i] = 0;
        }

        for (int i = 0; i < sentence.length(); i++) {
            for (int j = 0; j < MaleLitery.length(); j++) {
                if (TablicaCharow[i] == MaleLitery1[j]||TablicaCharow[i] == DuzeLitery1[j]) {
                    TablicaIlosciLiter[j]++;
                }
            }
        }
        for (int i = 0; i < TablicaIlosciLiter.length; i++) {
            if (TablicaIlosciLiter[i] >0)
            {
                TablicaPrawdy[i]=true;
            }
            else
            {
                TablicaPrawdy[i]=false;
            }
            result=result&&TablicaPrawdy[i];
        }
        return result;
    }
}
this is the current top solution
this is mine
import java.util.*;
public class PangramChecker {
  public boolean check(String sentence){
    //code
    String replaced = sentence.replaceAll("[^A-Za-z]", "");
    Set<String> letters = new HashSet<>(Arrays.asList(replaced.split("")));
    return letters.size() >= 26;
  }
}
rofl
Kyle Holm
@thekholm80
Sep 06 2017 21:26 UTC
pfft anyone can just import the answer
Manish Giri
@Manish-Giri
Sep 06 2017 21:26 UTC
:joy_cat:
Kyle Holm
@thekholm80
Sep 06 2017 21:27 UTC
import java.kata.answer;
Manish Giri
@Manish-Giri
Sep 06 2017 21:27 UTC
but yeah you're right his whiteboard interview would be fun
lol
Kyle Holm
@thekholm80
Sep 06 2017 21:27 UTC
luckily he's still like 5 years away from that
Manish Giri
@Manish-Giri
Sep 06 2017 21:27 UTC
i'm trying to imagine what he would write
on the board
Kyle Holm
@thekholm80
Sep 06 2017 21:28 UTC
"wait, can i look at stack overflow?"
Manish Giri
@Manish-Giri
Sep 06 2017 21:28 UTC
lol
Kyle Holm
@thekholm80
Sep 06 2017 21:29 UTC
i wish i had saved the conversations i had with him back in the day
Manish Giri
@Manish-Giri
Sep 06 2017 21:29 UTC
lol
yea
Kyle Holm
@thekholm80
Sep 06 2017 21:30 UTC
like "why did you paste an entire tic-tac-toe game into your simon game?"
because I wanted the pop-up on the page
Manish Giri
@Manish-Giri
Sep 06 2017 21:30 UTC
:joy:
Kyle Holm
@thekholm80
Sep 06 2017 21:30 UTC
1kyu lol
Manish Giri
@Manish-Giri
Sep 06 2017 21:30 UTC
such intelligence
much art
wow
Adam Bohannon
@abohannon
Sep 06 2017 21:32 UTC
@thekholm80 hmm i must be missing something. Went through and deployed but it's not working. Do I need firebase database features if I'm not using a database?
Kyle Holm
@thekholm80
Sep 06 2017 21:34 UTC
i've never used the database
do you have a link to your new page?
Adam Bohannon
@abohannon
Sep 06 2017 21:34 UTC
ah looks like i have to create a production build
Kyle Holm
@thekholm80
Sep 06 2017 21:35 UTC
yeah, if you're using webpack make sure you build before you deploy
Adam Bohannon
@abohannon
Sep 06 2017 21:35 UTC
the treasure hunt of being a new dev. Pieces of helpful info scattered all over the web =)
Kyle Holm
@thekholm80
Sep 06 2017 21:35 UTC
haha
Adam Bohannon
@abohannon
Sep 06 2017 21:35 UTC
but never in one place lol
Kyle Holm
@thekholm80
Sep 06 2017 21:35 UTC
fortunately React is popular enough now that there's lots of help available
when i get stuck i just ask @Manish-Giri
Adam Bohannon
@abohannon
Sep 06 2017 21:36 UTC
definitely. The docs and forums are awesome.
Kyle Holm
@thekholm80
Sep 06 2017 21:36 UTC
they have a discord for react devs too, that's super helpful
Christopher McCormack
@cmccormack
Sep 06 2017 21:41 UTC
@Manish-Giri @thekholm80 I know you're way past this but this was my js solution - any way to make it better?
let isPangram=(s)=>!(new Set(s.replace(/[^a-z]/ig, '')).size < 26)
Adam Bohannon
@abohannon
Sep 06 2017 21:42 UTC
@thekholm80 radical, firebase worked. Thanks for the help!
CamperBot
@camperbot
Sep 06 2017 21:42 UTC
abohannon sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
api offline
Kyle Holm
@thekholm80
Sep 06 2017 21:42 UTC
@abohannon i've never hit a limit on how many pages you can host there for free
glad it worked for you
@cmccormack i've not done that one yet, but your solution looks concise
and similar to the solution @Manish-Giri did in Java
Christopher McCormack
@cmccormack
Sep 06 2017 21:45 UTC
ah didn't see his answer
I sure don't miss all that type declaring in Java
Kyle Holm
@thekholm80
Sep 06 2017 21:45 UTC
lol
this is why i'll never learn typescript
Christopher McCormack
@cmccormack
Sep 06 2017 21:48 UTC
How do you get to the React discord server? Not used Discord much
Kyle Holm
@thekholm80
Sep 06 2017 21:49 UTC
i can send you an invite if you'd like
Christopher McCormack
@cmccormack
Sep 06 2017 21:49 UTC
Yeah sure
Kyle Holm
@thekholm80
Sep 06 2017 21:50 UTC
pm'd
Darren
@DarrenfJ
Sep 06 2017 21:58 UTC
test
thanks @thekholm80 @Manish-Giri
CamperBot
@camperbot
Sep 06 2017 21:58 UTC
darrenfj sends brownie points to @thekholm80 and @manish-giri :sparkles: :thumbsup: :sparkles:
api offline
api offline
Darren
@DarrenfJ
Sep 06 2017 21:59 UTC
got a confirm in twitter that Quincy is now aware so shrug might be fixed soon
:crosses-fingers:
Eric Miller
@ericmiller777
Sep 06 2017 22:06 UTC
function spinalCase(str) {
  // "It's such a fine line between stupid, and clever."
  // --David St. Hubbins
  str = str.split("");
  for (let i = 0; i < str.length; i++){
    if(str[i] == " " && str[i] != "-" && str[i+1] != str[i+1].toLowerCase() || str[i] == "_"){
      str.splice(i, 1);
    }
    if(str[i] == str[i].toUpperCase()){
      if(str[i] != str[0] && str[i] != "-"){
      str[i] = "-" + str[i];
      }
      str[i] = str[i].toLowerCase();
    }
  }
  return str.join("");
}

spinalCase('Teletubbies say Eh-oh');
i am one space off lol
Christopher McCormack
@cmccormack
Sep 06 2017 22:18 UTC
@DarrenfJ I don't think they like the chat room any more, seems like they would prefer people use the forums, but I don't know why both can't be supported
Eric Miller
@ericmiller777
Sep 06 2017 22:29 UTC
got it (still used regex lol
@cmccormack @DarrenfJ i actully met Quincy not long ago :) and yes he said gitter is pretty much abandonware :(
Christopher McCormack
@cmccormack
Sep 06 2017 22:31 UTC
Would be great if we could move everything to Slack or Discord if that's the stance, Forums aren't nearly the same experience
Eric Miller
@ericmiller777
Sep 06 2017 22:31 UTC
he said discord is more gaming oriented
because it was made more for gaming then for programming or somthing like that
he said slack is not good for large groups
Was a a fcc meetup, he was there to talk about new stuff coming
Christopher McCormack
@cmccormack
Sep 06 2017 22:34 UTC
Anything good?
Eric Miller
@ericmiller777
Sep 06 2017 22:38 UTC
Yes
pretty much redoing everything
those of us that have certificates can continue working on our certificates
but full stack will now require 6 certificates
but the requirement of then will be 5 projects
but you no longer have to do 800 hours of open source work
which he said no one has done because onlyone who comes close gets a job
Christopher McCormack
@cmccormack
Sep 06 2017 22:39 UTC
Yup that makes sense haha
Eric Miller
@ericmiller777
Sep 06 2017 22:40 UTC
um
fata visualization will stay i think
front and and back end being split up
and a algorithm certificate
eventually there will be many many algoriths you can do to learn
not for certificate
also their own version of mdn
that is beginner friendly
Prabu Rangki
@praburangki
Sep 06 2017 22:41 UTC
when is this going to be up?
Eric Miller
@ericmiller777
Sep 06 2017 22:41 UTC
no date
said theyve missed to many dates before
sorry about typos
the algorithm and mdn thing are a "eventually" type thing
the new certificates are coming tho
oh and no one after dec 31 of this year will be able to get the current front end and back end certificates
but we will keep ours
verified link will remain
Christopher McCormack
@cmccormack
Sep 06 2017 22:45 UTC
I better get my backend done then!
Eric Miller
@ericmiller777
Sep 06 2017 22:46 UTC
No rush
I think
as long as your account
was made before dec 31st*
Kyle Holm
@thekholm80
Sep 06 2017 22:56 UTC
that's good to hear
i'm having trouble motivating myself to finish my last projects
Manish Giri
@Manish-Giri
Sep 06 2017 22:59 UTC
i'm having trouble motivating myself to finish my last projects
me too
Darren
@DarrenfJ
Sep 06 2017 23:04 UTC
yah.. most of this is part of the beta post in the forum.. which most of us over here hate to go into, ironically
Gersho
@Gersho
Sep 06 2017 23:06 UTC
hello everyone !
Darren
@DarrenfJ
Sep 06 2017 23:07 UTC
@Gersho buddy!
but the good news is we all get the old certs if we finish them off
which was really one of the tings i waiting out.. the new certs
but now shrug why wait
Gersho
@Gersho
Sep 06 2017 23:07 UTC
what was the address for the beta again ?
Gersho
@Gersho
Sep 06 2017 23:08 UTC
thanks @DarrenfJ
CamperBot
@camperbot
Sep 06 2017 23:08 UTC
gersho sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
api offline
Gersho
@Gersho
Sep 06 2017 23:10 UTC
https://beta.freecodecamp.org/map won't load for me "No Super Blocks"
Darren
@DarrenfJ
Sep 06 2017 23:11 UTC
if you already have a login: https://beta.freecodecamp.org/en/email-signin
and if you signed in with GitHub: https://beta.freecodecamp.org/en/signin
ok.. shower me with brownie!
Gersho
@Gersho
Sep 06 2017 23:12 UTC
api in on smoke break
Darren
@DarrenfJ
Sep 06 2017 23:12 UTC
thanks @Gersho @thekholm80 @Manish-Giri
CamperBot
@camperbot
Sep 06 2017 23:12 UTC
darrenfj sends brownie points to @gersho and @thekholm80 and @manish-giri :sparkles: :thumbsup: :sparkles:
api offline
api offline
api offline
Darren
@DarrenfJ
Sep 06 2017 23:12 UTC
daaaaaaaaaaaaaaang.. still down
Gersho
@Gersho
Sep 06 2017 23:14 UTC
they might be doing something on it at the moment, when i use the url you provided i get redirected to the stable version with a "Oops! Something went wrong. Please try again later" message ^^
Darren
@DarrenfJ
Sep 06 2017 23:14 UTC
ef the new beta layout looks tiny and weird
yah last night someone came on and said it was down and this morning too (the beta)
Gersho
@Gersho
Sep 06 2017 23:15 UTC
my internet was down until a few hours ago
Manish Giri
@Manish-Giri
Sep 06 2017 23:17 UTC
@DarrenfJ tbh
I've lost interest in their curriculum
be it beta or the current ones
it's like meh
Manish Giri
@Manish-Giri
Sep 06 2017 23:23 UTC

@Manish-Giri @thekholm80 I know you're way past this but this was my js solution - any way to make it better?

let isPangram=(s)=>!(new Set(s.replace(/[^a-z]/ig, '')).size < 26)

@cmccormack good solution :clap:

that's also the first thing I thought of

lol
Darren
@DarrenfJ
Sep 06 2017 23:24 UTC
yah.. i like algo challenges like codewars and hackerrank now.. still working through the intro stuff from Hackreactor too
Gersho
@Gersho
Sep 06 2017 23:26 UTC
the more i learn about react the more i feel i lost my time learning jquery
Kyle Holm
@thekholm80
Sep 06 2017 23:27 UTC
jquery has it's place
but it's not nearly as fun as react
Manish Giri
@Manish-Giri
Sep 06 2017 23:28 UTC
learn java
:muscle:
Gersho
@Gersho
Sep 06 2017 23:28 UTC
so many things to learn, so little time
Darren
@DarrenfJ
Sep 06 2017 23:29 UTC
no time in fact
that's why i learn nothing
there is no spoon
i'm off to watch some marvel universe fake kung-fu stuff
ttyl
Gersho
@Gersho
Sep 06 2017 23:30 UTC
procastination
have fun
Engjell Bislimi
@Engjell00
Sep 06 2017 23:32 UTC
https://codepen.io/EngjellBislimi/full/gxJoKg/ My first project from the FCC .. Doesn't even ressemble the real tribute lol
Gersho
@Gersho
Sep 06 2017 23:34 UTC
i don't see anything wrong with it
dyon3334
@dyon3334
Sep 06 2017 23:56 UTC
@dyon3334
$` Inserts the portion of the string that precedes the matched substring.
$' Inserts the portion of the string that follows the matched substring.
replace()
what do they mean ?
Randell Dawson
@RandellDawson
Sep 06 2017 23:57 UTC
@dyon3334 - ???
Gersho
@Gersho
Sep 06 2017 23:58 UTC
@rmdawson71 String.prototype.replace()
Randell Dawson
@RandellDawson
Sep 06 2017 23:58 UTC
@Gersho - I did not want to assume.
Gersho
@Gersho
Sep 06 2017 23:59 UTC

i'm assuming too, but

Specifying a string as a parameter
The replacement string can include the following special replacement patterns:

Pattern    Inserts
$$    Inserts a "$".
$&    Inserts the matched substring.
$`    Inserts the portion of the string that precedes the matched substring.
$'    Inserts the portion of the string that follows the matched substring.
$n    Where n is a positive integer less than 100, inserts the nth parenthesized submatch string, provided the first argument was a RegExp object. Note that this is 1-indexed.

is the exact same text from the doc