These are chat archives for FreeCodeCamp/Help

22nd
Sep 2018
Long Nguyen
@longnt80
Sep 22 2018 00:10

one don't need bed time stories for kid .. give them code!

@psyperl I think I'm gonna be more sleep deprived if given code before bedtime
I'm trying to avoid working before bedtime now

psyperl
@psyperl
Sep 22 2018 00:25
strange how code does the opposite for me
i can woke up after a sleep, open up code trying to solve a function, and in less than an hour got pushed back to sleep again by the code
Kyle Holm
@thekholm80
Sep 22 2018 00:35
my code puts me to sleep
psyperl
@psyperl
Sep 22 2018 00:36
so i guess that doesn't only happen to me
Aditya
@ezioda004
Sep 22 2018 02:14
@diomed I'm now
Hall
@channinghall
Sep 22 2018 04:21
  .blue-text {
    color: blue;

  #orange-text{
    color:orange;
  }
  }
</style>
<h1 class="pink-text blue-text" id="orange-text">Hello World!</h1>
why the "Hello World" are still in BLUE COLOR not ORANGE COlOR?
Manish Giri
@Manish-Giri
Sep 22 2018 04:26
your css styles are enclosed/nested
Hall
@channinghall
Sep 22 2018 04:28
yes,yes, thanks! next time I will check throughly
Manish Giri
@Manish-Giri
Sep 22 2018 04:29
:thumbsup:
May Kittens Devour Your Soul
@diomed
Sep 22 2018 07:55
good morning, FreeCodeCamp! :cat:
May Kittens Devour Your Soul
@diomed
Sep 22 2018 08:03
it's more silent than in Vietnam, lol
Xarri Jorge
@xarrijorge
Sep 22 2018 08:20
Is it really silent I'm Vietnam?
Good morning @diomed
psyperl
@psyperl
Sep 22 2018 08:23
internet is a bunch of lies,.. it's afternoon now
May Kittens Devour Your Soul
@diomed
Sep 22 2018 08:26
ha! that would mean u're usually up in the night, like an owl and no1 is up in the night, like an owl . except @Manish-Giri , he's omniup
@alpox could u help me with css?
I get undesired background image all over the place
Manish Giri
@Manish-Giri
Sep 22 2018 08:31
:smiling_imp:
May Kittens Devour Your Soul
@diomed
Sep 22 2018 08:31
can't locate what's causing it
help me, wizard @Manish-Giri :cat:
did you emerge from nothingness, again?
Manish Giri
@Manish-Giri
Sep 22 2018 08:32
I iz cat
I emerge from the darkness
psyperl
@psyperl
Sep 22 2018 08:32

can't locate what's causing it

problem lies between keyboard and chair

May Kittens Devour Your Soul
@diomed
Sep 22 2018 08:32
if u start talking like that that they gonna deport you :yum:
ok, condescending @psyperl
as u say so
Manish Giri
@Manish-Giri
Sep 22 2018 08:33
Maybe try background-position: center center;
May Kittens Devour Your Soul
@diomed
Sep 22 2018 08:33
I wanna get rid of it completely: http://fiber.p4o.net/lav/
Manish Giri
@Manish-Giri
Sep 22 2018 08:33
Or directly in the background property
May Kittens Devour Your Soul
@diomed
Sep 22 2018 08:33
shouldn't be background of that
Manish Giri
@Manish-Giri
Sep 22 2018 08:38
that flashing thing
when you scroll
.post-card-image {
    width: auto;
    height: 200px;
    background: #c5d2d9 no-repeat 50%;
    background-size: cover; 
    display: none;
}
May Kittens Devour Your Soul
@diomed
Sep 22 2018 08:40
yes
Manish Giri
@Manish-Giri
Sep 22 2018 08:40
:smiling_imp:
May Kittens Devour Your Soul
@diomed
Sep 22 2018 08:43
@Manish-Giri u do get that this is actually something that displays card images
and I dont want them to disappear, I just want background image to disappear
they all draw from the same source ._.
Xarri Jorge
@xarrijorge
Sep 22 2018 10:41
I bought a Galaxy Note 9 cuz they said it's "All the power you need" but it won't run my TV.
psyperl
@psyperl
Sep 22 2018 11:02
won't run your fridge either
May Kittens Devour Your Soul
@diomed
Sep 22 2018 16:00
won't run your nun
May Kittens Devour Your Soul
@diomed
Sep 22 2018 17:18

wow! did someone say saturday? lop-lop!

Elias Curran
@eliascurran
Sep 22 2018 17:37
can someone help me with this challenge, its supposed to increase the item count by 1 every time i click the button.
class MyComponent extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      itemCount: 0
    };
    // change code below this line
this.addItem = this.addItem.bind(this);
    // change code above this line
  }
  addItem() {
    this.setState({
      itemCount: this.state.itemCount + 1
    });
  }
  render() {
    return (
      <div>
        { /* change code below this line */ }
        <button onclick = {this.addItem}>click me</button>

        { /* change code above this line */ }
        <h1>Current Item Count: {this.state.itemCount}</h1>
      </div>
    );
  }
};
glitz20
@glitz20
Sep 22 2018 21:18
anybody who knows how to make vertical carousel?
RaspberryLime
@RaspberryLime
Sep 22 2018 21:30
Has anyone completed the new CSS challenge at https://learn.freecodecamp.org/responsive-web-design/basic-css/improve-compatibility-with-browser-fallbacks/ and not see it as completed on their profile timeline?
Or, perhaps a faster option, can someone go to https://www.freecodecamp.org/raspberrylime and tell me what the last challenge is
which I apparently completed?
Tom
@moT01
Sep 22 2018 22:02
@RaspberryLime yea, it's not showing on my timeline either
newmoon
@newmoon
Sep 22 2018 22:54
@sabin20 There are a bunch of examples on codepen if you need a good reference to see one working: https://codepen.io/danbhala/pen/eNZrQW?editors=1100
If you have one you are building and need some help, happy to take a look if you share the code.
Karma Drukpa
@coderkarma
Sep 22 2018 23:23
@psyperl @Manish-Giri @thekholm80 are you folks online?
need help?
Kyle Holm
@thekholm80
Sep 22 2018 23:24
from all of us?
Karma Drukpa
@coderkarma
Sep 22 2018 23:24
hahahhaha
whoever is available
Kyle Holm
@thekholm80
Sep 22 2018 23:24
i'm cooking so i'm only kind of here
Karma Drukpa
@coderkarma
Sep 22 2018 23:24
what you cooking .
okay here's I need help with.
pdurbin @pdurbin is curious what's cooking too
mine some test are not passing I was trying out various combinations
any hints
function longestConsec(strarr, k) {
    let currentLongest = '';
    if (strarr.length === 0 || k > strarr.length){
        return '';
    }

    // 
    for (let i = 0; i < strarr.length - k; i++) {
        let currentCos = '';
        // doing inner loop  up to k times
        for (let j = 0; j < k; j++) {
            currentCos += strarr[i + j];
            console.log(currentCos);

        }
        // checking out the loonestStr
        if (currentLongest.length < currentCos.length) {
            currentLongest = currentCos;
        }


    }
    return currentLongest;

}
console.log(longestConsec(["zone", "abigail", "theta", "form", "libe", "zas", "theta", "abigail"], 2));

// "abigailtheta"

console.log(longestConsec(["it","wkppv","ixoyx", "3452", "zzzzzzzzzzzz"], 15))
console.log(longestConsec(["it","wkppv","ixoyx", "3452", "zzzzzzzzzzzz"], 3)) //, "ixoyx3452zzzzzzzzzzzz")
that was my attempt
could you help me kyle
Kyle Holm
@thekholm80
Sep 22 2018 23:38
oh man
it'll take me a bit just to figure out what the kata is trying to do
but first i'm gonna finish cooking, then eat
and it's stir-fried noodles since everyone's curious lol
Karma Drukpa
@coderkarma
Sep 22 2018 23:40
oh ! I guess it will take forever then @thekholm80 anyway thanks
lol
enjoy your cooking and food
Tom
@moT01
Sep 22 2018 23:55
your i loop isnt going far enough @coderkarma
Karma Drukpa
@coderkarma
Sep 22 2018 23:56
@moT01 meaning?
Tom
@moT01
Sep 22 2018 23:57
i < strarr.length - k this line is wrong, it doesnt get to test the last value
Karma Drukpa
@coderkarma
Sep 22 2018 23:59
ohh!!