These are chat archives for FreeCodeCamp/Help

18th
Oct 2018
Elias Curran
@eliascurran
Oct 18 2018 00:10
im having trouble getting past this challenge because the console says that input is not defined
class ControlledInput extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      input: ''
    };
    // change code below this line
this.handleChange = this.handleChange.bind(this);
    // change code above this line
  }
  // change code below this line
  handleChange(event){
  this.setState({
    input:input.target.value
  });
}
  // change code above this line
  render() {
    return (
      <div>
        { /* change code below this line */}
         <input type="text" value={this.state.input} onChange={this.handleChange} />
        { /* change code above this line */}
        <h4>Controlled Input:</h4>
        <p>{this.state.input}</p>
      </div>
    );
  }
};
can someone tell me why?
Aditya
@ezioda004
Oct 18 2018 00:10
input:input.target.value
Did you mean event.target.value?
Elias Curran
@eliascurran
Oct 18 2018 00:11
whoops, i think my brain turned of for a second. thanks for pointing that out, i always get caught on little things like that
OblivioNemon
@OblivioNemon
Oct 18 2018 00:12

Hello! I am trying to test how an anonymous function works using a button so in my html document I placed this

<body>
        <script>

        var myButton = document.querySelector('button');

        myButton.onclick = function() {
        alert('hello');
        }
        </script>
        <p>
            <button id = 'button'>
                button
            </button>
        </p>
    </body>

However, the message I get in the console says Uncaught TypeError: Cannot set property 'onclick' of null at FnU.html:11 and the 'hello' alert does not pop up when I press the button.
Does anyone know why this is not working?

Aditya
@ezioda004
Oct 18 2018 00:12
No problem
@OblivioNemon Move the script at the end of the body tag.
Right now it executes before the DOM has initialized.
OblivioNemon
@OblivioNemon
Oct 18 2018 00:13
Okay i'll try that
Awesome thanks @ezioda004
Aditya
@ezioda004
Oct 18 2018 00:14
:thumbsup:
Anand Potukuchi
@anandpotukchi
Oct 18 2018 03:35
good morning
Momozor
@momozor
Oct 18 2018 03:38
morning people of middle-earth
Anand Potukuchi
@anandpotukchi
Oct 18 2018 03:44
@faraco morning you muggle
morning muggles
Anand Potukuchi
@anandpotukchi
Oct 18 2018 03:50
is calling someone a muggle offensive
Momozor
@momozor
Oct 18 2018 03:55
You gotta ask J.K Rowling on that.
Anand Potukuchi
@anandpotukchi
Oct 18 2018 03:56
there's this youtuber who calls people muggles
I think his name's ryan (youtube: bucky)
@faraco which lotr charecter are you
Anand Potukuchi
@anandpotukchi
Oct 18 2018 04:01
Cats didn’t need to evolve from Middle Earth. They were perfect already.
Anand Potukuchi
@anandpotukchi
Oct 18 2018 04:22
does anyone knwo how to play sound in react
Anand Potukuchi
@anandpotukchi
Oct 18 2018 04:28
you do realize tyourgiving me the entire code
Amit Patel
@AmitP88
Oct 18 2018 04:29
@anandpotukchi I know
Anand Potukuchi
@anandpotukchi
Oct 18 2018 04:31
@AmitP88 where did you get the documentation
Anand Potukuchi
@anandpotukchi
Oct 18 2018 04:35
@AmitP88 found out what was wrong
Claudio Restifo
@Marmiz
Oct 18 2018 04:35
@anandpotukchi browsers support audio media content :)
Anand Potukuchi
@anandpotukchi
Oct 18 2018 04:36
fcc audio files not working
:laughing:
in firefox
Claudio Restifo
@Marmiz
Oct 18 2018 04:38
firefox doesn't support mp3
Amit Patel
@AmitP88
Oct 18 2018 04:38
lol idk, I kinda stopped with revamping my Drum Machine in react. I'm currently working on a project my friend wants me to build to improve my react skills
Claudio Restifo
@Marmiz
Oct 18 2018 04:38
as far as i recall
@anandpotukchi try with an ogg :)
Anand Potukuchi
@anandpotukchi
Oct 18 2018 04:40
@Marmiz got chromium as backup
Anand Potukuchi
@anandpotukchi
Oct 18 2018 04:47
button is nin redner method
still not working
@AmitP88
tried your code
Anand Potukuchi
@anandpotukchi
Oct 18 2018 04:53
HELPPPPPPPPPPPPPPPPP
oops
missed the vinding part
Amit Patel
@AmitP88
Oct 18 2018 04:55
@anandpotukchi does it work now?
Anand Potukuchi
@anandpotukchi
Oct 18 2018 04:56
yes
Amit Patel
@AmitP88
Oct 18 2018 04:58
nice
Anand Potukuchi
@anandpotukchi
Oct 18 2018 05:06
@AmitP88 can you show me yourpen
did you add the display part
when you clickk a button show which sound is playing
Amit Patel
@AmitP88
Oct 18 2018 05:10
@anandpotukchi I don't have a codepen but I'll upload the file
Anand Potukuchi
@anandpotukchi
Oct 18 2018 05:10
did you add the laebl taht shows, the name of the drum
like Heater-1
for ex
and volume control
Amit Patel
@AmitP88
Oct 18 2018 05:11
yeah, but I didnt add volume control
Anand Potukuchi
@anandpotukchi
Oct 18 2018 05:13
@AmitP88 noooooooooooooooooo
you are sharing classified information
Amit Patel
@AmitP88
Oct 18 2018 05:21
sorry, i'm lazy today :P
Anand Potukuchi
@anandpotukchi
Oct 18 2018 05:23
delete ar once
Anand Potukuchi
@anandpotukchi
Oct 18 2018 05:40
@AmitP88 the reason why i'm askign you to delete is because soemoen got a cert copying other people's code
Karma Drukpa
@coderkarma
Oct 18 2018 05:44
hello folks .
Anand Potukuchi
@anandpotukchi
Oct 18 2018 05:45
hi
Karma Drukpa
@coderkarma
Oct 18 2018 05:45
What's up Anand?
Anand Potukuchi
@anandpotukchi
Oct 18 2018 05:45
been a long time sicne you've said something
Karma Drukpa
@coderkarma
Oct 18 2018 05:45
how you doing?
Anand Potukuchi
@anandpotukchi
Oct 18 2018 05:45
working on the drum machine
im good. you?
Karma Drukpa
@coderkarma
Oct 18 2018 05:47
hahahah yeeah.. I am not on gitter these days. Quite busy.
I am doing alright though, learning everyday.
Anand Potukuchi
@anandpotukchi
Oct 18 2018 05:48
so what did you learn/
Amit Patel
@AmitP88
Oct 18 2018 05:48
@anandpotukchi oh I see. Thanks for letting me know bro. I'll delete whatever code I posted above
Anand Potukuchi
@anandpotukchi
Oct 18 2018 05:48
are you still working on fcc?
Karma Drukpa
@coderkarma
Oct 18 2018 05:48
doing online courses at TreeHouse.
Anand Potukuchi
@anandpotukchi
Oct 18 2018 05:48
hmm
Karma Drukpa
@coderkarma
Oct 18 2018 05:49
and onsite free programming class
was lately learning DOM and ajax and jquery
Aditya Dehal
@aditya2000
Oct 18 2018 05:49
Hey I need a little help.... I was trying to retrieve an audio file from mongodb using nodejs but I'm getting this error everytime MongoError: file with id 5bbb5f138bd5b8642f76e6fd not opened for writing
Karma Drukpa
@coderkarma
Oct 18 2018 05:50
I did two hours of basic react online video , I need to dig deep on that.
Anand Potukuchi
@anandpotukchi
Oct 18 2018 05:50
@aditya2000 does the id exist
@anandpotukchi yeah
it exists
Karma Drukpa
@coderkarma
Oct 18 2018 05:52
why filter function is not working?
Anand Potukuchi
@anandpotukchi
Oct 18 2018 05:53
where
Karma Drukpa
@coderkarma
Oct 18 2018 05:54
just simple fittering stuff.
I don't know why.
function keep(array, keeper) {
  // your code here
   let newArr = [];
   return array.filter((ele) => {
      if(ele === keeper)){
        newArr.push(ele);
      }
      return newArr;
   })

}
console.log(keep([1, 2, 3, 2, 1], 2))
// console.log(output); --> [2, 2]
Claudio Restifo
@Marmiz
Oct 18 2018 05:58
@coderkarma includes test for the whole array. So your includes will always be (in this case) true.
Your function will always have either all the elements or none according if includes is tre or false. You are not really filtering
Karma Drukpa
@coderkarma
Oct 18 2018 05:58
oh i should have used indexOf then right
Claudio Restifo
@Marmiz
Oct 18 2018 05:58
not really, filter already does that
filter create a new array with the element that pass the callback
so what's your goal?
Karma Drukpa
@coderkarma
Oct 18 2018 05:59
[2,2]
Claudio Restifo
@Marmiz
Oct 18 2018 05:59
your array should have only keeper?
Karma Drukpa
@coderkarma
Oct 18 2018 06:00
yes
Claudio Restifo
@Marmiz
Oct 18 2018 06:00
so filter cb is true if ele === keeper
ie:
1 === 2 
2 === 2
3 === 2

// and so on
Karma Drukpa
@coderkarma
Oct 18 2018 06:00
yeah i tried doing that to but it didn't seem working so i had to change my strategies
let me tried. thanks
@Marmiz i am such a foolish man.
thanks man
Claudio Restifo
@Marmiz
Oct 18 2018 06:03
i mean, it's just array.filer(x => x === keeper) :smile:
Karma Drukpa
@coderkarma
Oct 18 2018 06:03
lol
@Marmiz how are you ?
Anand Potukuchi
@anandpotukchi
Oct 18 2018 06:07
@Marmiz where are you from
Claudio Restifo
@Marmiz
Oct 18 2018 06:11
Italy
troncarter
@troncarter
Oct 18 2018 06:28
does it include asynchronous javascript?
in curriculum?
Bang Ben
@Beniauliaabd_twitter
Oct 18 2018 07:31
please help The main element should have two paragraph elements as children.

I have an issue of one of these tests where I need to make the

element as a child of the element. Problem is I don’t know how to make this into a child element for main. Could someone help?

https://gyazo.com/dc6e2e9de6105154bbb9bf504f4011a9 572 Screenshot link to my code since I don’t know how to share it properly

Bang Ben
@Beniauliaabd_twitter
Oct 18 2018 07:36
hei anybody
please help
Claudio Restifo
@Marmiz
Oct 18 2018 07:45
@Beniauliaabd_twitter a child means that is "inside" another element:
<div>
  <p></p> <!-- this paragraph is a child of <div> -->
</div>
Aditya
@ezioda004
Oct 18 2018 09:27
@troncarter There is some AJAX challenges in the d3 section but thats about it. I'm working on adding Promises and async-await challenges to the curriculum.
Claudio Restifo
@Marmiz
Oct 18 2018 09:41

@ezioda004 explain async-await? jeez that's a challenge.

Promise I can see it. But explaining function generator sounds like a true challenge

Aditya
@ezioda004
Oct 18 2018 09:45
@Marmiz I was thinking starting from callback, having the camper know its con we can introduce Promises. After few Promises challenges, we can simply introduce async-await, that its built on top of promises. Even though async-await uses function generator I dont think we need a challenge for that essentially, maybe a note? Do you think function generator is important?
The restriction is that we only have 9 challenges to do so, maybe it can be extended by convincing Quincy but I'd try to wrap it all up in those challenges if possible
Claudio Restifo
@Marmiz
Oct 18 2018 09:48

@ezioda004 depends on the scope. You want to teach how to use them or how they works?
Cos if you want to explain how they works then yes, you need to know about generators.

But if that's not the case a simply:

Oh btw the Promise.then().then() we did before can be written as async f, const x await, const y await

Promise on the other hand I don't think they are hard to get. It's litterally:

Look program, I don't have this value know, but I promise (eh!) I'll have it at some point, can we move on for now?

There's not too much "magic" behind like in async

Aditya
@ezioda004
Oct 18 2018 09:52
@Marmiz First priority would be to teach how to use them. So I was thinking like 2 challenges for callback, 5 challenges for promises (introduction, resolve, reject, chaining, error handling) and 2 challenges for async-await (introduction/use, error handling)
Claudio Restifo
@Marmiz
Oct 18 2018 09:53
Seems reasonable :)
Aditya
@ezioda004
Oct 18 2018 09:57
Yeah, I guess this could be discussed with Quincy, maybe if he gives permission for 2 more challenges then we can fit generators before async-await, would IMO give more clarity on how async-await works and may help people remember it
Daniel Simeonov
@dbsimeonov
Oct 18 2018 09:58
Guys I have 2 sections on the page where the first one is constantly rendering new elements till the end of array. My task is to create a button that will scroll down to the second container window.scrollTo(0, el.offsetTop) won't do the job as on scroll new elements are rendering on section 1. Any ideas?
Claudio Restifo
@Marmiz
Oct 18 2018 10:14
you can implement an infinite scroll for section 1, so section 2 will always be in the same position.
Then a nice lazyload on section 1 and you can also up performances
Amit Patel
@AmitP88
Oct 18 2018 10:31
hey @Marmiz , have you ever worked with WebSockets before with React? I need help :(
Claudio Restifo
@Marmiz
Oct 18 2018 10:33
I did @AmitP88 , a while ago tbh
Amit Patel
@AmitP88
Oct 18 2018 10:35
a friend of mine has me working on a server loglist project
the project basically allows the user to create new logs and submit them to a server (which my friend created), and on submission, it'll also generate a list of logs that are on the server to the UI
the thing is, I have to use websockets to send the client-side data to the server, and to retrieve the server data and render it to the UI
So far, I've coded a form that stores the user input in the component state, then displays that data upon submission
but I'm struggling on how to send that data to the server
send.png

my friend said that the server works like this:

Basically, it is a real time json server that allows you to use the API to create a collection that you can subscribe to, and then when you use the api to add json to the collection, it will send a message to the subscriber with the json in the message.

Amit Patel
@AmitP88
Oct 18 2018 10:41
@Marmiz here's my full code for the UI part:
import React, { Component } from 'react';

export default class Form extends Component {
    constructor (props) {
        super(props);
        this.state = {
            id: '',
            age: 1,
            dangerous: true,
            name: '',
            title: '',
            type: '',
            uid: '',
            submitted: {
                data: {}
            }
        }

        this.handleChange = this.handleChange.bind(this);
        this.handleSubmit = this.handleSubmit.bind(this);
    }

    handleChange(event) {
        const target = event.target;
        const value = target.value;
        const name = target.name;

        this.setState({
            [name]: value
        });
    }

    handleSubmit(event) {
        event.preventDefault();

        // insert state inside "submitted-log" div
        this.setState({
            submitted: {
                id: this.state.id,
                data: {
                    age: this.state.age,
                    dangerous: this.state.dangerous.toString(),
                    name: this.state.name
                },
                title: this.state.title,
                type: this.state.type,
                uid: this.state.uid
            }
        }, () => {
            console.log(this.state.submitted);


            const socket = new WebSocket('wss://rtjson-vysaahrznr.now.sh');

            // Connection opened
            socket.addEventListener('open', function (event) {
                const log = {
                    name: '1st log',
                    data: 'some data'
                };

                socket.send(log);
            });

            // Listen for messages
            socket.addEventListener('message', function (event) {
                console.log('Message from server ', event.data);

            });



        });

    }


    render() {
        return (
            <div className="form-container">
                <h1>Create a new log</h1>
                <form onSubmit={this.handleSubmit}>
                    <div className="question">
                        <label>ID</label>
                        <input type="text" name="id" value={this.state.id} onChange={this.handleChange} />
                    </div>

                    <div className="question">
                        <label> Age</label>
                        <input type="number" min="1" max="150" name="age" value={this.state.age} onChange={this.handleChange} />
                    </div>



                    <input className="submit-button" type="submit" value="Submit" />
                </form>
Claudio Restifo
@Marmiz
Oct 18 2018 10:45
@AmitP88 I'll give it a look in a moment. sorry
Amit Patel
@AmitP88
Oct 18 2018 10:45
@Marmiz it's ok
Atulsinghm
@Atulsinghm
Oct 18 2018 11:08
hello world
need urgent help on this
myFirstName should be a string with at least one character in it.
myLastName should be a string with at least one character in it.
Aditya
@ezioda004
Oct 18 2018 11:10
@Atulsinghm What have you tried?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 11:37
I have tried contacting you @ezioda004
Atulsinghm
@Atulsinghm
Oct 18 2018 11:39

// Example
var firstName = "Alan";
var lastName = "Turing";

// Only change code below this line

var firstName = "Atul";

var lastName = “Singh”;

May Kittens Devour Your Soul
@diomed
Oct 18 2018 11:39
it should be : myFirstName
where is your my
Atulsinghm
@Atulsinghm
Oct 18 2018 11:43
please explain breifly
May Kittens Devour Your Soul
@diomed
Oct 18 2018 11:43
I did. you're missing letters
Atulsinghm
@Atulsinghm
Oct 18 2018 11:44
which letter
May Kittens Devour Your Soul
@diomed
Oct 18 2018 11:44
myFirstName should be a string with at least one character in it.
your task doesn't say give var firstName = "Atul"; your task says give var myFirstName = "Atul";
Atulsinghm
@Atulsinghm
Oct 18 2018 11:45
please write your code here
got it
May Kittens Devour Your Soul
@diomed
Oct 18 2018 11:50
where did I leave my guillotine instructions?
Niraj Nandish
@Nirajn2311
Oct 18 2018 11:50
@diomed how good are you at vue
May Kittens Devour Your Soul
@diomed
Oct 18 2018 11:51
I'm like 0.5% good at vue
Anand Potukuchi
@anandpotukchi
Oct 18 2018 11:52
@diomed @Nirajn2311 I'm on the imaginary side. Want my help?
Atulsinghm
@Atulsinghm
Oct 18 2018 11:52
problem same

// Example
var firstName = "Alan";
var lastName = "Turing";

// Only change code below this line

var myfirstName = "Atul";

var mylastName = “Singh”;

Victor Popescu
@VicPopescu
Oct 18 2018 11:53
potato potatoing
Anand Potukuchi
@anandpotukchi
Oct 18 2018 11:53
@Atulsinghm wgstbjd this
May Kittens Devour Your Soul
@diomed
Oct 18 2018 11:53
@Atulsinghm javascript is case sensitive
if you write small letters where you need big, it won't let you pass
Niraj Nandish
@Nirajn2311
Oct 18 2018 11:54
@anandpotukchi i just started learning vue this week
May Kittens Devour Your Soul
@diomed
Oct 18 2018 11:55
@Nirajn2311 how do you like it so far?
Atulsinghm
@Atulsinghm
Oct 18 2018 11:55
guys i can do anything
Anand Potukuchi
@anandpotukchi
Oct 18 2018 11:56
Like I said, I'm on the imaginary side. On a scale of 1 to 100, my skill is around √-100
Atulsinghm
@Atulsinghm
Oct 18 2018 11:56
right now i just need your help
please explain me whats wrong with this code
Anand Potukuchi
@anandpotukchi
Oct 18 2018 11:56
@Atulsinghm he did help you
Victor Popescu
@VicPopescu
Oct 18 2018 11:57
@Atulsinghm camelCaseVariables
Anand Potukuchi
@anandpotukchi
Oct 18 2018 11:57
@Atulsinghm JavaScript is case sensitive
May Kittens Devour Your Soul
@diomed
Oct 18 2018 11:57
I shall resort to insulting you very soon @Atulsinghm
Anand Potukuchi
@anandpotukchi
Oct 18 2018 11:57
There's a difference between first and
*myFirstName and myFirstName
Crap
Victor Popescu
@VicPopescu
Oct 18 2018 11:58
I see no difference :))
@anandpotukchi
Niraj Nandish
@Nirajn2311
Oct 18 2018 11:58
I see a :star:
Anand Potukuchi
@anandpotukchi
Oct 18 2018 11:58
myFirstName
Never EVER use gitter on phone
It sucks
myfirstname and myFirstName
Anand Potukuchi
@anandpotukchi
Oct 18 2018 11:59
@Atulsinghm
Lol
Atulsinghm
@Atulsinghm
Oct 18 2018 12:00
@diomed i dont care
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:00
@VicPopescu
Did you get it @Atulsinghm
Victor Popescu
@VicPopescu
Oct 18 2018 12:01
that clip relate to many situations here =)
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:01
?
Atulsinghm
@Atulsinghm
Oct 18 2018 12:01
not yet
studying since long time
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:02
you'll get a slap from me
Aditya
@ezioda004
Oct 18 2018 12:02
:corn: :fire:
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:03
@Atulsinghm .
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:03
@ezioda004 pls help me.
Aditya
@ezioda004
Oct 18 2018 12:03
No, you slap people.
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:03
I wanna merge bunch of sass into unique css file
Aditya
@ezioda004
Oct 18 2018 12:04
Write a bash script
Atulsinghm
@Atulsinghm
Oct 18 2018 12:04
@diomed are you serious ?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:04
@ezioda004 what the heck is that?
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:05
@diomed guess you scared him
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:05
I wanna merge it all into bulma.css
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:09
@diomed since when did ctrl +c , ctrl +. + V
Victor Popescu
@VicPopescu
Oct 18 2018 12:09
@diomed gulp/grunt tasks?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:09
@ezioda004 - das man -das mit -das legend
@VicPopescu I send, you slam. ok?
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:09
*Ctrl + v stop working
@Atulsinghm have you figured it out yet
Aditya
@ezioda004
Oct 18 2018 12:10
@diomed Pick a main sass file, do @import sassFiles in them, then compile this sass file into css
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:11
@ezioda004 u mod?
how does one report a spammer these days?
Aditya
@ezioda004
Oct 18 2018 12:12
Just github, go to admins channel
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:12
@Atulsinghm "
Aditya
@ezioda004
Oct 18 2018 12:12
@Atulsinghm Delete the previous files, you're spamming, most likely would get banned if any mod sees that
You have unicode quotes, its different from regular "quotes"
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:15
have u tried gardening instead? @Atulsinghm u never know
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:15
@Atulsinghm we're serious. Gonna get bsnned. Real soon. Please delete all the pics
Add a code snippet
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:16
I think it's fair to assume that pictures on gitter upload in really silly stupid pace, so if you're not sure if it passed you send another and another, and you get this result
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:17
What happens if we report someone on gitter
Atulsinghm
@Atulsinghm
Oct 18 2018 12:18
there was a fault with my smartphone
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:18
@ezioda004
And not on GitHub?
Aditya
@ezioda004
Oct 18 2018 12:18
?
Atulsinghm
@Atulsinghm
Oct 18 2018 12:19
omg
Aditya
@ezioda004
Oct 18 2018 12:19
@anandpotukchi Gitter and github arent related
Atulsinghm
@Atulsinghm
Oct 18 2018 12:19
there was a single semicolumn mistake
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:20
@anandpotukchi he gets banned from chatroom and has to explain himself.
been there, done that
Aditya
@ezioda004
Oct 18 2018 12:20
:hammer:
@diomed How many times?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:20
umm... multiple
@ezioda004 u know when you order a custom t-shirt
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:22
@ezioda004 I know that. But there's a report button on gitter too. My finger has been aching to push that
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:23
I clicked that. let's see what happens
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:23
Always wondered
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:23
hmmm... nothing is happening
it's just you being reported, that's all @anandpotukchi
:smile_cat:
Aditya
@ezioda004
Oct 18 2018 12:24
@anandpotukchi No clue, gitter may/maynot have a team who looks at reports
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:24
I wonder why the lobby channel was removed
Any admins here?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:24
because they were too chatty
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:26
That's what it's meant for, right
Aditya
@ezioda004
Oct 18 2018 12:26
That channel was too offtopic and they'd generally not help out
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:27
Shouldn't join unless all you want to do is chat
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:27
mostly because it was not help channel. lol. still, people did help out most of the time
Aditya
@ezioda004
Oct 18 2018 12:28
@diomed Yeah but many times that channel didnt seem welcoming towards newbies
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:29
lets not kid ourselves, the only truth about why that channel was killed is because there was a fight with mods.
difference of opinion in how they should run things.
Aditya
@ezioda004
Oct 18 2018 12:31
I wasnt there when it happened but I can see that being a reason, people argued quite a bit
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:31
Hm
Gossip?
Or are you sure @diomed
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:32
pretty sure that was 1 of main resons.
whatever. lets leave that in the past, where it belongs. it is what it is
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:32
People fighting? Over what exactly?
My laptop's f ed
So all I San do now is chat
*can
Aditya
@ezioda004
Oct 18 2018 12:33
Yeah, lets talk about JS!
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:33
over whether we should help people like @anandpotukchi who ask for every answer or should we leave them to drown
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:33
Yeah
What's noscript
Eric Weiss
@eweiss17
Oct 18 2018 12:33
for browsers that do not have javascript
probably contains a message saying "hey get some javascript"
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:33
ha! LAMEO
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:33
What about ejs?
Aditya
@ezioda004
Oct 18 2018 12:34
There should be an OS made with JS
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:34
Yeah. Was thinking of that today
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:34
there should be an OS made with Haskell
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:34
After which my laptop crashed
Aditya
@ezioda004
Oct 18 2018 12:34
I believe theres an electron app for windows 98
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:34
yup
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:35
What?!
Who still uses 98
Who uses windows in the first place
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:35
which reminds me - gotta go see what's new in world of electron apps
Eric Weiss
@eweiss17
Oct 18 2018 12:36
i agree windows is absolute garbage
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:36
Oh I thought you meant an app on 95
It is the app
Cool
Aditya
@ezioda004
Oct 18 2018 12:36
@diomed x
Eric Weiss
@eweiss17
Oct 18 2018 12:36
I only use the most obscure of OS, you probably have never heard of it
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:37
How many of know about this
How a self-taught teenager built an operating system that runs in your browser by Peter Gleeson https://link.medium.com/qqoChTxc7Q
This isn't a fully functional is. But...
@eweiss17 try me
Eric Weiss
@eweiss17
Oct 18 2018 12:39
ubuntu 18.04
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:40
Really? I thought I was using 19
Eric Weiss
@eweiss17
Oct 18 2018 12:40
thought 18 was the latest
Momozor
@momozor
Oct 18 2018 12:40
18 was the latest stable release
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:41
@eweiss17 You tried to okay one on me , i reversed it
Eric Weiss
@eweiss17
Oct 18 2018 12:41
I also have a windows 10 laptop and desktop
i'v commited the cardinal sin
Aditya
@ezioda004
Oct 18 2018 12:41
/r/doublewoosh
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:41
18.10 is latest
Too bad
I use windows only for Photoshop
Eric Weiss
@eweiss17
Oct 18 2018 12:42
No Mac for design?
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:42
And illustrator. Maybe xdyahd InDesign
Can't afford one
Eric Weiss
@eweiss17
Oct 18 2018 12:42
Thought Mac's had the best design software
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:42
And wouldn't bother even if I could
Photoshop is the best
Momozor
@momozor
Oct 18 2018 12:43
:eyes:
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:43
The most well known
May Kittens Devour Your Soul
@diomed
Oct 18 2018 12:43
:cat:
Momozor
@momozor
Oct 18 2018 12:43
sitting in the dark corner while using GIMP and Inkscape
Anand Potukuchi
@anandpotukchi
Oct 18 2018 12:43
I'm gonna go watch something on Youtube. Getting bored
Momozor
@momozor
Oct 18 2018 12:45
:cat2:
Momozor
@momozor
Oct 18 2018 13:39

there should be an OS made with Haskell

Are you insane? You will need Gandalf to forge such thing!

petrockwd
@petrockwd
Oct 18 2018 13:40
@petrockwd
Hey all...I passed all the tests in the responsive web design certification, but it is not giving me the certificate (i.e. I log back in and it doesn't say i've earned it)
Am I doing something wrong
?
Kyle Holm
@thekholm80
Oct 18 2018 13:41
@petrockwd go to settings -> scroll down -> click "Claim my certificate"
petrockwd
@petrockwd
Oct 18 2018 13:43
thanks Kyle! is there any way to view it?
oops
Kyle Holm
@thekholm80
Oct 18 2018 13:44
after you claim it, the button changes to "show certification"
petrockwd
@petrockwd
Oct 18 2018 13:44
answered that myself...thanks again
Anand Potukuchi
@anandpotukchi
Oct 18 2018 14:01
Congratulations on the cert @petrockwd
troncarter
@troncarter
Oct 18 2018 14:14
is async-await in the frrecodecamp youtube videos?
Kelechi Chinaka
@ke1echi
Oct 18 2018 14:14

https://learn.freecodecamp.org/front-end-libraries/react/pass-an-array-as-props

const List= (props) => {
  { /* change code below this line */ }
  return <p>{props.tasks.join(", ")}</p>
  { /* change code above this line */ }
};

class ToDo extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    return (
      <div>
        <h1>To Do Lists</h1>
        <h2>Today</h2>
        { /* change code below this line */ }
        <List/>
        <h2>Tomorrow</h2>

        <List tasks ={["walk dog", "workout"]} />
        { /* change code above this line */ }
      </div>
    );
  }
};

what am I doing wrongly

Niraj Nandish
@Nirajn2311
Oct 18 2018 14:19
@ke1echi You are missing the props in the first List component
And there should be three items in the second tasks in the second List component
Kelechi Chinaka
@ke1echi
Oct 18 2018 14:23
oh yea, tnx @Nirajn2311
May Kittens Devour Your Soul
@diomed
Oct 18 2018 14:45
I also got certificate from FCC
unsure why it says certified idiot on it, tho.
:cat: is finally a boy now
Christopher McCormack
@cmccormack
Oct 18 2018 14:50
@diomed All recognition is good recognition?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 14:51
I guess
@cmccormack can I send you some sass files for you to compile
Christopher McCormack
@cmccormack
Oct 18 2018 14:52
haha no
did you try just running node-sass against the file?
Aditya
@ezioda004
Oct 18 2018 14:56
@troncarter kinda
Christopher McCormack
@cmccormack
Oct 18 2018 15:01
@diomed I just tested locally in a new folder, very easy.
npm i -D node-sass
touch myscssfile.scss  # Edit this file with some scss
npx node-sass myscssfile.scss -o ./styles
you can also install it globally and just run node-sass myscssfile.scss -o ./output I believe but I don't usually install packages globally
You can write it like this if you want to change the filename
npx node-sass myscssfile.scss output.css
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:04
@cmccormack 'touch' is not recognized as an internal or external command,
operable program or batch file.
Christopher McCormack
@cmccormack
Oct 18 2018 15:04
is this Windows?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:04
yup
Christopher McCormack
@cmccormack
Oct 18 2018 15:04
if so just make the file manually however windows does it
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:04
Why does :cat: use cmdline
When git bash is better
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:04
what else should I use? @Nirajn2311
Aditya
@ezioda004
Oct 18 2018 15:04
You can use bash commands in powershell just fine
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:05
I think I dont have git installed
I got NPM and that's that
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:06
:cat: is useless without git, how will he keep track of his lives
Aditya
@ezioda004
Oct 18 2018 15:06
@diomed Node also installs their own cmd line, it supports bash commands too
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:07
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:07
Aditya
@ezioda004
Oct 18 2018 15:07
You must use hyper.js
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:07
@ezioda004 IDK how to work in node :P
Christopher McCormack
@cmccormack
Oct 18 2018 15:07
hyper is in my guide above
Christopher McCormack
@cmccormack
Oct 18 2018 15:07
it uses hyper with WSL, ZSH and Oh-my-ZSH
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:08
so , if I download hyper am I a wizard now?
Aditya
@ezioda004
Oct 18 2018 15:08
@cmccormack Oh awesome, I gotta check it out
Christopher McCormack
@cmccormack
Oct 18 2018 15:08
you probably need a shell if you want to use linuxy commands
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:08
@cmccormack could you post a screenshot of your oh-my-zsh terminal
Christopher McCormack
@cmccormack
Oct 18 2018 15:08
but you don't need any of this to do the node-sass stuff
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:08
As I dont get the colours clearly in mine
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:09
I just wanna fucking compile into 1 css file
Christopher McCormack
@cmccormack
Oct 18 2018 15:09
@Nirajn2311 it's basically a black screen but I can paste it in a sec, on another computer atm
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:09
why is this so hard
Aditya
@ezioda004
Oct 18 2018 15:09
@diomed Y u no use powershell, you dont have to download anything
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:09
what is powershell, for gods sake
I thought cmd is powershell :stuck_out_tongue:
:cat: is a n00b
Aditya
@ezioda004
Oct 18 2018 15:09
No, cmd is cmd, powershell is cmd + bash
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:10
wtf is bash
Aditya
@ezioda004
Oct 18 2018 15:10
Type powershell in the search bar and it should pop up
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:10
ok I'm in
now what
Aditya
@ezioda004
Oct 18 2018 15:10
Thats it :joy_cat:
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:10
I mean what should I do in it?
Christopher McCormack
@cmccormack
Oct 18 2018 15:11
@Nirajn2311 has some junk in it but here it is
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:11
you type
Aditya
@ezioda004
Oct 18 2018 15:11
Whatever @cmccormack told you to, do that
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:11
ok. let me see
Christopher McCormack
@cmccormack
Oct 18 2018 15:11
why is that so small..?
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:12
@cmccormack i was using agnoster theme but it seems its not properly working for me
Christopher McCormack
@cmccormack
Oct 18 2018 15:12
@Nirajn2311 did you install the powerline fonts?
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:12
yeah
Aditya
@ezioda004
Oct 18 2018 15:12
@cmccormack I used to use hyper.js a lot but I already have 4 chrome/electron apps running all the time, I had to switch to git bash
Such is 8gb life :sob:
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:13
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check t
he spelling of the name, or if a path was included, verify that the path is correct and try again.
Christopher McCormack
@cmccormack
Oct 18 2018 15:13
@ezioda004 I have 6GB is that why it's always slow??
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:13
lol, same :shit: different program
Christopher McCormack
@cmccormack
Oct 18 2018 15:13
@diomed just create the file in notepad or whatever
touch is just a way in the shell to create a new empty file
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:13
:ballot_box_with_check:
Christopher McCormack
@cmccormack
Oct 18 2018 15:13
windows probably has an equivielent
Aditya
@ezioda004
Oct 18 2018 15:14
@cmccormack My VSC takes a gig ram, chrome takes 2gb ram, slack takes another gb, discord and spotify takes 500 each, even i7 cant handle so much v8 engine
Christopher McCormack
@cmccormack
Oct 18 2018 15:14
@ezioda004 haha
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:14
@cmccormack which theme so you use
Christopher McCormack
@cmccormack
Oct 18 2018 15:14
Are you using VSC Insider?
@Nirajn2311 custom
Aditya
@ezioda004
Oct 18 2018 15:15
Nah, regular VSC, but I have a lot extensions install :D
Christopher McCormack
@cmccormack
Oct 18 2018 15:15
I spent a few weeks really messing with my prompt
Aditya
@ezioda004
Oct 18 2018 15:15
At this points its an IDE
Christopher McCormack
@cmccormack
Oct 18 2018 15:15
@ezioda004 try Insiders
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:15
I got literally nothing
Christopher McCormack
@cmccormack
Oct 18 2018 15:15
I find it a lot less buggy and still supports all the extensions
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:16
but this error:
PS C:\Users\Parsifal\mybulma> npx node-sass bulma.scss -o ./styles
npx: installed 1 in 4.526s
Path must be a string. Received undefined
C:\Users\Parsifal\AppData\Roaming\npm-cache\_npx\12084\node_modules\node-sass\bin\node-sass
Rendering Complete, saving .css file...
Wrote CSS to C:\Users\Parsifal\mybulma\styles\bulma.css
fs.js:1061
  return binding.unlink(pathModule._makeLong(path));
                 ^

Error: EPERM: operation not permitted, unlink 'C:\Users\Parsifal\AppData\Roaming\npm-cache\_npx\12084\node_modules\node-sass\vendor\win32-x64-57\binding.node'
    at Object.fs.unlinkSync (fs.js:1061:18)
    at fixWinEPERMSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:211:13)
    at rimrafSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:311:28)
    at C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:342:5
    at Array.forEach (<anonymous>)
    at rmkidsSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:341:26)
    at rmdirSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:334:7)
    at fixWinEPERMSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:209:5)
    at rimrafSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:311:28)
    at C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:342:5
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:16
@cmccormack could you send me a photo of how it would look with agnoster theme
Aditya
@ezioda004
Oct 18 2018 15:16
@cmccormack Is that like beta? I dont trust Microsoft, their windows 10 insider deleted peoples documents
Christopher McCormack
@cmccormack
Oct 18 2018 15:17
@ezioda004 it is
Aditya
@ezioda004
Oct 18 2018 15:17
@cmccormack this lol
Christopher McCormack
@cmccormack
Oct 18 2018 15:18
Yeah I heard about that
not good haha
you could always keep both versions around, I do
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:18
@cmccormack ssssoooooouuuuu....
:interrobang:
Aditya
@ezioda004
Oct 18 2018 15:18
Scary stuff, I installed linux just in case windows ever mess up
Christopher McCormack
@cmccormack
Oct 18 2018 15:18
@diomed did it write?
I see the error but I also see Wrote CSS to C:\Users\Parsifal\mybulma\styles\bulma.css
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:18
no. I told you about error above
no. 0 kb
nothing in it
Christopher McCormack
@cmccormack
Oct 18 2018 15:19
and your source file does have something in it right?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:19
by source file u mean bulma.scss?
Christopher McCormack
@cmccormack
Oct 18 2018 15:20
yes
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:21
no. it's empty
Christopher McCormack
@cmccormack
Oct 18 2018 15:22
well put something in it
Aditya
@ezioda004
Oct 18 2018 15:22
Then what are you compiling?
Christopher McCormack
@cmccormack
Oct 18 2018 15:22
put something nested in like
body {
    main {
        background-color: red;
    }
}
@Nirajn2311 apparently agnoster was the theme I modified to make a custom theme :)
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:24
I guess I skipped this part;
@charset "utf-8";
@import "../bulma-0.7.2/bulma/bulma.sass";
right?
should that be in it?
Christopher McCormack
@cmccormack
Oct 18 2018 15:24
I don't know
I've not compiled external sass before sorry
I usually just write my scss and let node-sass compile it to css for me
usually as part of parcel.js or webpack toolchain
Aditya
@ezioda004
Oct 18 2018 15:25
@cmccormack You tried parcel?
Christopher McCormack
@cmccormack
Oct 18 2018 15:25
@ezioda004 yeah
it's pretty great
Aditya
@ezioda004
Oct 18 2018 15:26
Is it really 0 config?
Christopher McCormack
@cmccormack
Oct 18 2018 15:26
mostly
there are probably a few plugins you would want to install as well
and you still need configs for babel and stuff
but you can toss it all in your package.json
Aditya
@ezioda004
Oct 18 2018 15:27
That makes sense
Christopher McCormack
@cmccormack
Oct 18 2018 15:27
@ezioda004 I used it in this project if you want to check it out
The caching can occassionally cause issues but you can disable it optionally
I think it will even install all your dependencies for you if you didn't do it already and just had the import statements
Aditya
@ezioda004
Oct 18 2018 15:29
@cmccormack Thanks, will check it out :D
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:29
@cmccormack do i have to install any linux disto from store
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:30
I'm a failure at this :disappointed:
Christopher McCormack
@cmccormack
Oct 18 2018 15:36
@Nirajn2311 what do you mean? WSL is technically a Linux distro running on Windows, so if that's what you're asking then yes
@diomed try it with a test file first
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:37
but when i type bash in cmdline, i get the following output
C:\WINDOWS\system32>bash
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Christopher McCormack
@cmccormack
Oct 18 2018 15:38
did you install WSL?
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:39
yeah\
Momozor
@momozor
Oct 18 2018 15:40
Can we all just agree that doing Linux thing on Windows is just pain in the ass in general?
Christopher McCormack
@cmccormack
Oct 18 2018 15:40
it's not so bad
I use it pretty often
only things that are a little odd are having different home directories, even different from what git bash uses
otherwise it was pretty easy to setup and works pretty well
@ezioda004 I really like the plugin idea, you just install the plugin via npm and parcel knows to use it.
Momozor
@momozor
Oct 18 2018 15:42
I prefer other alternative. Fire up a virtual machine, and run any kind of Linux flavor you want. Then use the file sharing feature to transfer file from host system to virtual machine OS and vice versa.
Anne L
@mathisme
Oct 18 2018 15:44
This is a Gitter question, not a FCC question. I see a lot of people posting code. How do you post code in Gitter? Or is it just pics?
Christopher McCormack
@cmccormack
Oct 18 2018 15:44
@mathisme
```
code
```
there is a little button on the bottom right that shows you the different markdown options
Anne L
@mathisme
Oct 18 2018 15:45
Thanks!
Christopher McCormack
@cmccormack
Oct 18 2018 15:45
ctrl + shift + m should open it
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:45
@faraco Virtual machine requires RAM
Aditya
@ezioda004
Oct 18 2018 15:45
I've never had problem using linux thing on windows, partly because I have ubuntu, mingw shell installed in windows :D
@cmccormack Yeah that feature sounds handy for sure
Christopher McCormack
@cmccormack
Oct 18 2018 15:46
I think running a virtual machine is away overkill for some of this stuff
I mean, you can do most of the work in native Windows, so if you're using LInux it's probably for a more familiar command line, which WSL does a pretty great job with
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:47
@cmccormack and a lot of RAM
Momozor
@momozor
Oct 18 2018 15:47
@Nirajn2311 I able to run TinyCore under 256 MB RAM and ToriOS around 0.5 GB RAM. Of course, if your RAM is limited to around 1-4 GB, then it may cause issues.
Niraj Nandish
@Nirajn2311
Oct 18 2018 15:47
I have 6gb
1-2 gb is taken away by vsc, another 1-2 by chrome
so sometimes npm and yarn takes lots of time to install
Aditya
@ezioda004
Oct 18 2018 15:48
@Nirajn2311 You're even in worse condition than me
Christopher McCormack
@cmccormack
Oct 18 2018 15:50
I think npm just takes a long time regardless
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:51
aaaand this is why I loathe / despise / hate any terminal whatsoever. it can go to hell
Kyle Holm
@thekholm80
Oct 18 2018 15:51
i use vms because i want it all compartmentalized
Momozor
@momozor
Oct 18 2018 15:52
I'm not familiar with npm & nodejs ecosystem. Is there any switch to make it use all cores in parallel?
make npm*
May Kittens Devour Your Soul
@diomed
Oct 18 2018 15:54
it's hard to call nodejs ecosystem
more like a PC pollution system
Aditya
@ezioda004
Oct 18 2018 15:55
Err does it not already do that? Idk how npm works internally
Momozor
@momozor
Oct 18 2018 15:57
Probably? I can't tell. I'm still using a single core machine.

more like a PC pollution system

Javascript itself makes my eyes bleed, but let's save that for bedtime story.

May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:04
@cmccormack how can I compile minified
Christopher McCormack
@cmccormack
Oct 18 2018 16:05
@diomed --output-style compressed
May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:05
ayo - thank you!
Christopher McCormack
@cmccormack
Oct 18 2018 16:06
@diomed more options:
--output-style             CSS output style (nested | expanded | compact | compressed)
May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:07
so
npx node-sass myscssfile.scss output.css --output-style compressed
?
Niraj Nandish
@Nirajn2311
Oct 18 2018 16:07
@cmccormack i did everything as mentioned for setting up zsh in windows
But how will I make sure hyper opens directly to bash or zsh
Christopher McCormack
@cmccormack
Oct 18 2018 16:09

@Nirajn2311 should be a setting in the preferences you can adjust:

    // Powershell on Windows
    // - Example: `C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`
    shell: 'C:\\Windows\\System32\\bash.exe',

that's mine

Anand Potukuchi
@anandpotukchi
Oct 18 2018 16:12
@diomed terminals mdje your life easier
Niraj Nandish
@Nirajn2311
Oct 18 2018 16:12
Screenshot (5).png
May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:12
I didn't notice
Niraj Nandish
@Nirajn2311
Oct 18 2018 16:12
@cmccormack will the final be like that
May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:13
lol notepad++
Christopher McCormack
@cmccormack
Oct 18 2018 16:13
@Nirajn2311 is that your final?
Niraj Nandish
@Nirajn2311
Oct 18 2018 16:13
@cmccormack yeah
Christopher McCormack
@cmccormack
Oct 18 2018 16:13
@diomed don't laugh that's my favorite windows app!
Aditya
@ezioda004
Oct 18 2018 16:14
Think thats default bash
Christopher McCormack
@cmccormack
Oct 18 2018 16:14
when you need some quick scripting done notepad++ is reliable and quick
Niraj Nandish
@Nirajn2311
Oct 18 2018 16:14
@diomed in case vscode crashes or too much ram is being used
Momozor
@momozor
Oct 18 2018 16:14
I second notepad++
May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:14
in that case you should use SublimeText
Christopher McCormack
@cmccormack
Oct 18 2018 16:15
aren't the same
Aditya
@ezioda004
Oct 18 2018 16:15
Does notepad++ have dark theme?
Niraj Nandish
@Nirajn2311
Oct 18 2018 16:15
@cmccormack what is not the same
Christopher McCormack
@cmccormack
Oct 18 2018 16:15
I use notepad++, sublime, and VS Code
each serve different purposes
Aditya
@ezioda004
Oct 18 2018 16:15
Sublime for something quick
May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:15
I use Brackets
it serves purpose of me makin themes for brackets
Christopher McCormack
@cmccormack
Oct 18 2018 16:16
it's a personal thing but when it comes to quick scripting and text editing I find sublime heavier than notepad++
and i've been using notepad++ forever so I have a lot of really convenient plugins already
May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:16
lol . what's so heavy?
Momozor
@momozor
Oct 18 2018 16:16
Is it because the launch time of Sublime?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:17
what is Electron Fiddle? @Nirajn2311
Christopher McCormack
@cmccormack
Oct 18 2018 16:17
@faraco some of it is just personal preference really, I like the way notepad++ handles certain tasks more
Niraj Nandish
@Nirajn2311
Oct 18 2018 16:18
Anand Potukuchi
@anandpotukchi
Oct 18 2018 16:18
*make
May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:19
are u fiddling a lot?
Momozor
@momozor
Oct 18 2018 16:20
@cmccormack the default stock notepad++ is relatively wonderful. I can agree with that. Hey as a bonus (if you do care), it is not a proprietary closed-source program like Sublime \o/
Christopher McCormack
@cmccormack
Oct 18 2018 16:20
@faraco agreed
I did pay for Sublime but find myself using it rarely
Aditya
@ezioda004
Oct 18 2018 16:21
Paying for sublime, thats like paying for winrar
May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:22
yup
Christopher McCormack
@cmccormack
Oct 18 2018 16:22
Before VS Code sublime was the shit, and I don't like donation requests
Momozor
@momozor
Oct 18 2018 16:22
While other people substitute the 'evaluation time' to 'forever' instead and justify the usage :P
May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:22
@ezioda004 there are literally dozens of people dozens
Aditya
@ezioda004
Oct 18 2018 16:22
Time to spam @cmccormack email with donation
Christopher McCormack
@cmccormack
Oct 18 2018 16:23
haha
I still use it every day so it's not like I'm not getting its worth
@ezioda004 don't be Wikipedia haha I donate to them and they STILL spam me!
Aditya
@ezioda004
Oct 18 2018 16:24
@cmccormack No, I'll be nice, donate to me and I'll only send reminder once a month :D
Christopher McCormack
@cmccormack
Oct 18 2018 16:25
See you'd be smarter to just ask for a single reoccuring payment I'll forget about :)
Momozor
@momozor
Oct 18 2018 16:30
urm...is that really Turbo C++?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:30
some jokes are short and sweet, unlike my uncle ._.
Niraj Nandish
@Nirajn2311
Oct 18 2018 16:30
@faraco yeah it is
CBSE made us learn it
Momozor
@momozor
Oct 18 2018 16:31
T.T
May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:45
@faraco Ya like dags?
Augustas
@AugustasV
Oct 18 2018 16:53
https://codepen.io/AugustasV/pen/rZpdBB why radio buttons doesnt work?
      <input type="checkbox" class="radio" name="test" value="checkbox">1</input>          
   <input type="checkbox" class="radio" name="test" value="checkbox">2</input>      

<input type="checkbox" class="radio" name="test" value="checkbox">3</input>            
   <input type="checkbox" class="radio" name="test" value="checkbox">4</input>
Christopher McCormack
@cmccormack
Oct 18 2018 16:55
@AugustasV radio buttons or checkboxes?
you appear to be mixing terms
@AugustasV inputs are self closing tags, you may want to use <label for="[id]">label text</label> instead
@AugustasV radio buttons should share the same name
Aditya
@ezioda004
Oct 18 2018 16:57
Think its because of those closing tags
May Kittens Devour Your Soul
@diomed
Oct 18 2018 16:58
@cmccormack still didnt get it :(
Christopher McCormack
@cmccormack
Oct 18 2018 16:58
@diomed get what?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 17:01
proper way of command to minify bulma when creating .css file @cmccormack
Christopher McCormack
@cmccormack
Oct 18 2018 17:03
so is it at least creating the css?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 17:04
yeah. I managed that
Christopher McCormack
@cmccormack
Oct 18 2018 17:04
@ezioda004 for the radio? They worked fine when I changed names to be the same
but there are errors with closing tags all over that file
Aditya
@ezioda004
Oct 18 2018 17:05
@cmccormack But in his example its the same name?
Christopher McCormack
@cmccormack
Oct 18 2018 17:06
@ezioda004 /shrug not sure if he meant the actual checkboxes or the radio buttons, but the radio buttons weren't working until I changed the name attributes
Augustas
@AugustasV
Oct 18 2018 17:06
yea this is checkboxes, but I added same name to radio buttons - still not working
Aditya
@ezioda004
Oct 18 2018 17:09
The radio button above checkboxes work if you make the name attribute same
Christopher McCormack
@cmccormack
Oct 18 2018 17:09
@AugustasV AssertionError: All your radio-buttons must have a value attribute
I don't know what's wrong with your checkboxes but I don't see a failed test due to them

but I do know that

      <input type="radio" class="radio" name="ok"> Maybe<br>
      <input type="radio" class="radio" name="ok"> Definitely<br>
      <input type="radio" class="radio" name="ok"> Not sure<br>

don't have value attributes

May Kittens Devour Your Soul
@diomed
Oct 18 2018 17:14
      <input type="radio" class="radio" name="ok"> Yes<br>
      <input type="radio" class="radio" name="ok">No<br>
      <input type="radio" class="radio" name="ok"> Maybe<br>
      <input type="radio" class="radio" name="ok"> IDK<br>
      <input type="radio" class="radio" name="ok"> Can you repeat the question?
Augustas
@AugustasV
Oct 18 2018 17:16
@cmccormack but task doesn't ask for values
for radio buttons
Christopher McCormack
@cmccormack
Oct 18 2018 17:18
@AugustasV it could be more explicit, but inputs aren't very useful without the value attribute most of the time
@AugustasV if you wanted to actually make a decision in your Javascript based on the radio buttons, how do you get the decision? value is used for that.
you can make value exactly the same text as your label if you want
Rosa
@LiliRosa
Oct 18 2018 17:19
hello! can somone give me a hand with flexbox. I am learning about justify-content. I am testing 'Stretch'. I am under the impression that it is supposed to stretch the items in a row, but whatever I am doing is stretching my items and creating a column. Here is my code: https://codepen.io/lili13/pen/NOyQOw
Christopher McCormack
@cmccormack
Oct 18 2018 17:21
@LiliRosa not sure I understand what you want it to do, would this work for what you want?
.item1, .item2, .item3 {
  border: 1px solid red;
  flex: 1 0 auto;
}
you wouldn't need justify content for that
Rosa
@LiliRosa
Oct 18 2018 17:22
I am just following along the examples. 'Stretch' shows the items stretched to the parents width.
It does that plus turning my row into a column
Christopher McCormack
@cmccormack
Oct 18 2018 17:24
@LiliRosa wrapping it will make new rows
Aditya
@ezioda004
Oct 18 2018 17:24
I dont think theres a value called "stretch" for justify-content
Christopher McCormack
@cmccormack
Oct 18 2018 17:24
there is
it's the default
( I didn't know that until just 1 min ago :) )
Rosa
@LiliRosa
Oct 18 2018 17:25
oh... yeah. removing the wrap sorted the column part
Aditya
@ezioda004
Oct 18 2018 17:26
@cmccormack Cant find it here
Rosa
@LiliRosa
Oct 18 2018 17:26
so if i want that 'stretch' effect, I will need to use flex: 1 0 auto etc
Aditya
@ezioda004
Oct 18 2018 17:26
The default is initial
Rosa
@LiliRosa
Oct 18 2018 17:26
@ezioda004 check the medium link I sent
Christopher McCormack
@cmccormack
Oct 18 2018 17:26
oh I was looking at align-items, you're right
Aditya
@ezioda004
Oct 18 2018 17:27
I dont think w3school is reliable, but I cant find on MDN either
That article is wrong
Christopher McCormack
@cmccormack
Oct 18 2018 17:27
Yeah medium is just blog posts
could be wrong
May Kittens Devour Your Soul
@diomed
Oct 18 2018 17:29
Issues. Every webdev has them
Rosa
@LiliRosa
Oct 18 2018 17:29
@cmccormack that article is a chapter from the author's book
on CSS
May Kittens Devour Your Soul
@diomed
Oct 18 2018 17:30
poor author
he probably made a mistake
any1 got medium to ask him?
Aditya
@ezioda004
Oct 18 2018 17:31
@diomed Its fine, CSS is hard
Christopher McCormack
@cmccormack
Oct 18 2018 17:32
it's in MDN
justify-content: stretch;       /* Distribute items evenly
                                   Stretch 'auto'-sized items to fit
                                   the container */
Rosa
@LiliRosa
Oct 18 2018 17:33
yeah... I have seen it in other places
while trying to understand this
Christopher McCormack
@cmccormack
Oct 18 2018 17:34
hah apparently MDN may be flawed as well
Aditya
@ezioda004
Oct 18 2018 17:34
@cmccormack Where? I checked here couldnt find it
Aditya
@ezioda004
Oct 18 2018 17:38
Its too early for CSS crisis
May Kittens Devour Your Soul
@diomed
Oct 18 2018 17:38
did any1 try this in real life?
coz I can't get it to work
Aditya
@ezioda004
Oct 18 2018 17:38
What is real life?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 17:40
opening some kind of code editor and applying property in code
Rosa
@LiliRosa
Oct 18 2018 17:40
I am happy I understood it. Thank you for the tip @cmccormack
May Kittens Devour Your Soul
@diomed
Oct 18 2018 17:40
then seeing result
May Kittens Devour Your Soul
@diomed
Oct 18 2018 17:48
justify-content: space-evenly;
huh!
Rosa
@LiliRosa
Oct 18 2018 18:00
not the same result xD
this flexbox thing is just crazy
Christopher McCormack
@cmccormack
Oct 18 2018 18:07
@LiliRosa I run through this every so often https://flexboxfroggy.com/
May Kittens Devour Your Soul
@diomed
Oct 18 2018 18:12
@cmccormack that doesnt even have those new :question: properties
Christopher McCormack
@cmccormack
Oct 18 2018 18:12
hah
Aditya
@ezioda004
Oct 18 2018 20:04
@cmccormack In d3, .style("width") and .attr("width") are same right?
Christopher McCormack
@cmccormack
Oct 18 2018 20:05
uh I don't think so, one is for CSS and the other is an attribute of the SVG isn't it?
Aditya
@ezioda004
Oct 18 2018 20:07
Oh is it?
Christopher McCormack
@cmccormack
Oct 18 2018 20:09

@ezioda004

Generally, though - position and size are .attr, and all other decoration is .style...

http://jonathansoma.com/tutorials/d3/using-attr-and-style/
Not necessarily a definitive source but I would agree

but it looks like there can be overlap
Aditya
@ezioda004
Oct 18 2018 20:11
@cmccormack Ah so should this challenge also work with style()?
The result in the preview are same
Christopher McCormack
@cmccormack
Oct 18 2018 20:13
@ezioda004 yeah looks like those overlap
but the test is probably parsing on exact syntax minus whitespace
Aditya
@ezioda004
Oct 18 2018 20:13
The tests are like this $("svg").attr("width") == "500"
Christopher McCormack
@cmccormack
Oct 18 2018 20:14
"assert($('svg').attr('width') == '500', 'The <code>svg</code> element should have a <code>width</code> attribute set to 500.');"
oh dang too slow haha
Aditya
@ezioda004
Oct 18 2018 20:15
The difference I can see by inspecting the element is with .style() it does like style="width: 500px; height: 100px;" but with .attr() it does like width = "500px"
So seems like they are similar
Christopher McCormack
@cmccormack
Oct 18 2018 20:15
yeah
seems odd they allow that overlap
Aditya
@ezioda004
Oct 18 2018 20:15
Worth reporting?
Christopher McCormack
@cmccormack
Oct 18 2018 20:15
I would say no
they specifically call out attribute in the test
Aditya
@ezioda004
Oct 18 2018 20:16
Thats true, but at the same time I feel its too restrictive, if the behavior is same then the test should pass
That text could also be updated
Christopher McCormack
@cmccormack
Oct 18 2018 20:16
did you do the d3 projects yet?
Aditya
@ezioda004
Oct 18 2018 20:16
I'm learning with the lessons :D
Christopher McCormack
@cmccormack
Oct 18 2018 20:16
Could add a note to it with the details on the style
The projects are even more picky about how you handle the position haha
Aditya
@ezioda004
Oct 18 2018 20:17
Oh boy
Christopher McCormack
@cmccormack
Oct 18 2018 20:17
like don't use css to intially place, use your attributes then use transform
they do tell you that somewhere but it's easy to forget
if you don't do that then the tests will fail for example when testing the bar height against the y-axis tick or whatever
a LOT of people run into that in the D3 projects
Aditya
@ezioda004
Oct 18 2018 20:18
Seems like those tests also need to update
Christopher McCormack
@cmccormack
Oct 18 2018 20:18
I mean, I assume it's a lot, considering that's the most asked question I've seen in D3 here
it may be harder for those tests, i'm not sure how they do it. They may just plug in a coordinate to your scale function and compare it to the x or y of your bar
which kind of makes sense from a testing perspective but doesn't give you flexibility to implement your own way
Aditya
@ezioda004
Oct 18 2018 20:21
Hmm yeah
Anyway I'll open an issue, and see how discussion goes
Christopher McCormack
@cmccormack
Oct 18 2018 20:22
couldn't hurt
Aditya
@ezioda004
Oct 18 2018 20:23
Could be a good way for first timers to contribute in the least
Christopher McCormack
@cmccormack
Oct 18 2018 20:23
is hacktoberfest still ongoing?
Aditya
@ezioda004
Oct 18 2018 20:23
Idk whats with today but we received around 500PRs in the past 4-5 hours.
Christopher McCormack
@cmccormack
Oct 18 2018 20:23
oh jeeze
Aditya
@ezioda004
Oct 18 2018 20:23
Yeah its till end of the month
Christopher McCormack
@cmccormack
Oct 18 2018 20:24
500?
wow
Aditya
@ezioda004
Oct 18 2018 20:24
Its weird because its not even weekend so idk where this supply came from
Christopher McCormack
@cmccormack
Oct 18 2018 20:24
it was floating around 400 last I saw
probably a podcast or video or something
Aditya
@ezioda004
Oct 18 2018 20:24
Its 800+ now, I saw 5hrs ago, we had around 300PRs
Yeah something like that
Christopher McCormack
@cmccormack
Oct 18 2018 20:25
what about all the other repos, who maintains those?
like the boilerplates for projects, etc...
Aditya
@ezioda004
Oct 18 2018 20:26
¯_(ツ)_/¯
We definitely need more people maintaining
Christopher McCormack
@cmccormack
Oct 18 2018 20:27
I saw some PRs/issues on some of them that went unnoticed for a long time
probably still are
I wouldn't mind cleaning them up a bit
Aditya
@ezioda004
Oct 18 2018 20:30
Did you talk to Quincy?
Christopher McCormack
@cmccormack
Oct 18 2018 20:35
@ezioda004 I did not
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:36
¯\(ツ)
Christopher McCormack
@cmccormack
Oct 18 2018 20:36
Now I did
@diomed looks like you're missing your upper arms
Aditya
@ezioda004
Oct 18 2018 20:37
@cmccormack Hopefully you'll get access
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:37
I'm missing shoulders
never had shoulders ._.
Aditya
@ezioda004
Oct 18 2018 20:37
@cmccormack Then you can merge my PR's 😈
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:38
@ezioda004 so... you in education?!
Christopher McCormack
@cmccormack
Oct 18 2018 20:38
:rejected:
Not enough style
Aditya
@ezioda004
Oct 18 2018 20:38
2irl4meirl
@diomed Wot
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:39
are algorithms just bunch of functions?
Christopher McCormack
@cmccormack
Oct 18 2018 20:40
I'm going to make my first PR a new route to redirect forums.freecodecamp.com to forum.freecodecamp.com and save everyone the trouble
Aditya
@ezioda004
Oct 18 2018 20:40
Algorithms are just steps of how to solve a problem, it may/maynot be a function
Christopher McCormack
@cmccormack
Oct 18 2018 20:40
@ezioda004 is the 8GB RAM requirement a hard requirement for cloning the repo?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:41
so when people say route - what they really mean is : link?
Christopher McCormack
@cmccormack
Oct 18 2018 20:41
@diomed link is how you get directed to a route
Aditya
@ezioda004
Oct 18 2018 20:41
@cmccormack At the moment its suggested to not even bother cloning the repo locally
Christopher McCormack
@cmccormack
Oct 18 2018 20:41
technically a link would be like an edge in a graph though
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:41
@cmccormack SILENCE! *ELI5
Christopher McCormack
@cmccormack
Oct 18 2018 20:42
@ezioda004 so how are people making pull requests?
Aditya
@ezioda004
Oct 18 2018 20:42
@cmccormack Directly on github lol
Christopher McCormack
@cmccormack
Oct 18 2018 20:42
I knew it!
Aditya
@ezioda004
Oct 18 2018 20:42
For guide and fixing small stuff, its fine
Christopher McCormack
@cmccormack
Oct 18 2018 20:42
all this time I've been holding back because I thought I had to clone it ...
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:42
it clones, only in your github acc
that's how I edit just about everything
Aditya
@ezioda004
Oct 18 2018 20:43
@cmccormack You think people would go through the trouble to clone and what not just to make a PR such as this
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:43
:cat: ain't got space for github repos on pc
Aditya
@ezioda004
Oct 18 2018 20:44
@diomed Use a cloud env, c9 particularly is good for stuff like this
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:44
@ezioda004 there goes his t-shirt
wut?
Aditya
@ezioda004
Oct 18 2018 20:45
Cloud 9
Christopher McCormack
@cmccormack
Oct 18 2018 20:45
I mean, they aren't wrong
Aditya
@ezioda004
Oct 18 2018 20:45
@diomed So many lost
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:47
lol. was just about to post that one
Christopher McCormack
@cmccormack
Oct 18 2018 20:47
@ezioda004 how do you see more info on that PR, like who closed it?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:47
graveyard of the fallen heroes :smile_cat:
Aditya
@ezioda004
Oct 18 2018 20:48
@cmccormack It should say in the "conversations" tab, at the bottom
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:48
@Asjas is pretty merciless
Christopher McCormack
@cmccormack
Oct 18 2018 20:49
gotcha thanks
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:50
@ezioda004 that LoXx0n guy is obviously a spammer. should totally ban him
Aditya
@ezioda004
Oct 18 2018 20:51
@diomed We dont ban people, only higher ups do
Christopher McCormack
@cmccormack
Oct 18 2018 20:51
@ezioda004 do you skip the PRs that haven't completed the Travis CI build?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:52
@ezioda004 well, call someone higher up. coz it's clear as a day
Aditya
@ezioda004
Oct 18 2018 20:52
@cmccormack Yeah, travis checks completes in 10-15 mins on avg, today there are lot of PR's so its taking a lot of time
@diomed Link?
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:54
@ezioda004 Asjas keep closing them : freeCodeCamp/freeCodeCamp#20432
but it's obviously he's posting all over the place
A-J Roos
@Asjas
Oct 18 2018 20:54
Holy crap the influx of PRs is shocking :scream:
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:54
@Asjas ban him
A-J Roos
@Asjas
Oct 18 2018 20:54
From 300 to 900
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:54
half of it is probably that spammer
A-J Roos
@Asjas
Oct 18 2018 20:55
I can't. Only a select few people can ban someone on github
He only opened 5 PRs. All are closed
Aditya
@ezioda004
Oct 18 2018 20:55
@Asjas Why today? Did Quincy make an announcement or something?
@diomed Yeah thats not worth banning IMO.
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:55
people are like - let me fix some typos.
A-J Roos
@Asjas
Oct 18 2018 20:56
I have absolutely no idea. He posted on the forum and medium a few days ago. It doesn't explain why today is so crazy
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:56
@ezioda004 it is since he's deliberately spamming.
Christopher McCormack
@cmccormack
Oct 18 2018 20:56
Ok so like this one - it's a bad PR, doesn't make sense, what would you do with it? freeCodeCamp/freeCodeCamp#20305
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:56
close, I guess
what else
A-J Roos
@Asjas
Oct 18 2018 20:57
Yup. Mark as invalid so it doesn't count and then close it
Aditya
@ezioda004
Oct 18 2018 20:57
@cmccormack Close it, its not a substantial change
A-J Roos
@Asjas
Oct 18 2018 20:57
That is not nearly a substantial change
xD
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:57
lol. guy put dot. FFS
Aditya
@ezioda004
Oct 18 2018 20:57
2fast
A-J Roos
@Asjas
Oct 18 2018 20:57
2FURIOUSSS
Christopher McCormack
@cmccormack
Oct 18 2018 20:57
and it makes it wrong
dot should be in the comment too if you're going to change it
Aditya
@ezioda004
Oct 18 2018 20:58
@diomed I understand that, but I'm sure we're missing something, the PR flux is for a reason and banning people who probably read some article and have no clue doesnt seem right IMO.
A-J Roos
@Asjas
Oct 18 2018 20:58
Okay. So I'm off to bed. It's 11pm here. I cannot wait to wake up tomorrow to the hell that will be the amount of PRs on that repo
Christopher McCormack
@cmccormack
Oct 18 2018 20:58
You need to get access to close a PR first right?
Aditya
@ezioda004
Oct 18 2018 20:58
@cmccormack Yeah
@Asjas Lol, see ya
Christopher McCormack
@cmccormack
Oct 18 2018 20:59
@Asjas see ya
May Kittens Devour Your Soul
@diomed
Oct 18 2018 20:59
lol, if you guys need any help just give :cat: moderator
Christopher McCormack
@cmccormack
Oct 18 2018 21:00
@diomed I bet you'd close them all
and it would probably be better for it haha
May Kittens Devour Your Soul
@diomed
Oct 18 2018 21:00
:smiling_imp:
Aditya
@ezioda004
Oct 18 2018 21:01
@cmccormack Look at this beautiful PR that no one is merging :sob:
May Kittens Devour Your Soul
@diomed
Oct 18 2018 21:01
this is what happens when you go out with the idea that every contribution matters.
@ezioda004 why dont u merge it?
Christopher McCormack
@cmccormack
Oct 18 2018 21:02
OK I have a question about that too @ezioda004 - if someone fills in a stub with SOME information, and it look OK, do we need to validate it or let the community do that and just approve it?
Aditya
@ezioda004
Oct 18 2018 21:02
@diomed Pff what am I? Desperate?
Christopher McCormack
@cmccormack
Oct 18 2018 21:02
Can't merge your own PR
May Kittens Devour Your Soul
@diomed
Oct 18 2018 21:02
intro to vue?
Aditya
@ezioda004
Oct 18 2018 21:03
You can merge your own PR, but its better if someone else verifies too
A-J Roos
@Asjas
Oct 18 2018 21:03
@ezioda004 I assigned myself to it. I'll review it tomorrow morning :+1:
Christopher McCormack
@cmccormack
Oct 18 2018 21:03
@ezioda004 I thought I read you weren't supposed to in the Moderator Guidelines
Aditya
@ezioda004
Oct 18 2018 21:03
@cmccormack If the information is relevant and if it looks good to you then yeah you can merge it
@Asjas Thanks :D
@cmccormack Wait really? Didnt know that
May Kittens Devour Your Soul
@diomed
Oct 18 2018 21:04
it's ridiculous. if something's good just merge. don't be a :cat:
Christopher McCormack
@cmccormack
Oct 18 2018 21:04
@ezioda004 isn't head usually used instead of front?
or is that different in a Queue
Aditya
@ezioda004
Oct 18 2018 21:05
@cmccormack It could be either, but its from this challenge
Christopher McCormack
@cmccormack
Oct 18 2018 21:07
ah I see it's the get a hint link
Aditya
@ezioda004
Oct 18 2018 21:07
Yeah, its solutions
Christopher McCormack
@cmccormack
Oct 18 2018 21:13
Ahh Quincy sent out his email today, maybe that's why
Probably staggered release
Aditya
@ezioda004
Oct 18 2018 21:15
About Hacktoberfest?
Aditya
@ezioda004
Oct 18 2018 21:16
Ah it all makes sense now
Christopher McCormack
@cmccormack
Oct 18 2018 21:17
I got it about 13 minutes ago but I bet others got it earlier
Aditya
@ezioda004
Oct 18 2018 21:17
@diomed @cmccormack Lol the gif is literally about adding "my changes" and people are simply following this
Christopher McCormack
@cmccormack
Oct 18 2018 21:17
maybe 14:00 globally or something
Mystery solved
Aditya
@ezioda004
Oct 18 2018 21:18
I also got the mail, like 3hrs ago
Maybe its in batches
Christopher McCormack
@cmccormack
Oct 18 2018 21:19

@ezioda004 Found it

Other Rules Governing Moderators

...

you should never accept your own PRs. They must be QA-ed by another moderator, just like with any other PR.

Aditya
@ezioda004
Oct 18 2018 21:20
@cmccormack Makes sense, and also common sense (which I'm missing)
Christopher McCormack
@cmccormack
Oct 18 2018 21:21
Probably easy to do right now with all the other stuff going on but I wouldn't risk it haha
May Kittens Devour Your Soul
@diomed
Oct 18 2018 21:22

all those people waiting for free t-shirt
Aditya
@ezioda004
Oct 18 2018 21:24
@cmccormack Its actually the worst time, travis check is dead for past 2 hrs so cant merge any other stuff and it'll be visible in the repo lol
@diomed They can make PR's in their own repo but yeah sucks for people who directly follow a tutorial
Christopher McCormack
@cmccormack
Oct 18 2018 21:37
@ezioda004 So what happens when two people make the exact same PR, one gets approved and merged before the other is reviewed? Will that be apparent in the open PR?
Aditya
@ezioda004
Oct 18 2018 21:38
@cmccormack If the first one gets approved then you close the other one. Officially you should review the older PR's but that rarely happens, the newest PR's get reviewed first
Christopher McCormack
@cmccormack
Oct 18 2018 21:39
right but does the open PR reflect the updated code once the reviewer opens the request?
does the diff become no diff I guess?
Aditya
@ezioda004
Oct 18 2018 21:41
@cmccormack I'm not sure I get you 100% but suppose the other PR have some content same as the merged one, in that case there might be some merge conflict. If you can resolve it, then you can merge it otherwise you can ask the person to resolve and open a new PR
Christopher McCormack
@cmccormack
Oct 18 2018 21:42
That would make sense, I would hope that github would show you the diff of the current branch and not the branch when the PR was originally submitted, but I wasn't sure
Aditya
@ezioda004
Oct 18 2018 21:44
It shows the diff of the current branch
Bjorn van de Peut
@bjorno43
Oct 18 2018 22:51
Evening :wave:
Christopher McCormack
@cmccormack
Oct 18 2018 22:56
@bjorno43 heya
Bjorn van de Peut
@bjorno43
Oct 18 2018 23:00
@cmccormack :wave: How's life?
Christopher McCormack
@cmccormack
Oct 18 2018 23:07
@bjorno43 good man learning about all this PR stuff for FCC today
Bjorn van de Peut
@bjorno43
Oct 18 2018 23:12
Ah cool :)
Christopher McCormack
@cmccormack
Oct 18 2018 23:15
@bjorno43 what about you?
Bjorn van de Peut
@bjorno43
Oct 18 2018 23:19
@cmccormack I'm working on that chatsystem of mine. I've progressed a lot on it and I want to get it finished
Currently working on the part where it makes sure users can't login more than once with the same username using different browsers
Not that it would block it, but it would kill the other connection
Or perhaps merge them. At least to make sure the same username doesn't end up twice in the list of online users :P
Christopher McCormack
@cmccormack
Oct 18 2018 23:23
Why though?
Bjorn van de Peut
@bjorno43
Oct 18 2018 23:25
Because of the way the system works internally
Each user has a unique id, obviously
If the same user logs in twice and that unique id ends up in the system twice, you'll end up with lots of issues
Like currently I've already made it so it merges them. So even if you login twice, the system still sees you as 1 user
It works almost perfectly fine. The only issue is that if someone sends an IM to the user, it's received on 1 browser, but not the other
Bjorn van de Peut
@bjorno43
Oct 18 2018 23:31
Oh. There's one more issue that is much worse
If the user logs out on 1 browser, the other one remains logged in, but the system no longer sees that person as online. In other words: The user becomes invisible
Christopher McCormack
@cmccormack
Oct 18 2018 23:33
Can't you do periodic checks or shut down the session or anything?
Bjorn van de Peut
@bjorno43
Oct 18 2018 23:39
No. It's a websocket. So at best I could "ping" the user to check if he's still online. Obviously that would give a response so it wouldn't help
What I can do is if the user tries to send a message while invisble, verify is the user is in the userlist of that room. If not, refuse the message
Christopher McCormack
@cmccormack
Oct 18 2018 23:41
What about maintaining all sockets in the users's db document and kill them all if they log out?
Bjorn van de Peut
@bjorno43
Oct 18 2018 23:45
That might work.. and it might not. I would have to push a message to each browser / client of that user to force a logout. You know as well as I do that you can't rely on client side data for doing what you expect it to do. All I could do is at least try to close all connections so the client wouldn't receive any more updates
Kyle Holm
@thekholm80
Oct 18 2018 23:49
i think you should randomly select recipients when people send IMs
Bjorn van de Peut
@bjorno43
Oct 18 2018 23:49
:joy:
Kyle Holm
@thekholm80
Oct 18 2018 23:49
so i try to whisper you and who knows where it will end up?
kind of a chat roulette kind of thing
Bjorn van de Peut
@bjorno43
Oct 18 2018 23:50
No. With chat roulette you can at least talk to the person you end up with. With your idea, each message would just be send around at random. So you most likely won't be able to answer any message at all :P
Kyle Holm
@thekholm80
Oct 18 2018 23:50
exactly
maybe when a user logs in, you can create a room for that user id. then broadcast all IMs to that room
Bjorn van de Peut
@bjorno43
Oct 18 2018 23:52
Honestly, I think it would be much more fun to build in certain keywords and if they're used, the message will be made available publicly for everyone to see
Kyle Holm
@thekholm80
Oct 18 2018 23:52
then every instance of that user will get the IM