These are chat archives for FreeCodeCamp/Help

19th
Nov 2018
Quilty Kim
@quiltykim
Nov 19 2018 02:35
hello. I was wondering if anyone here can help with android development
小曹
@MySmiLeNO
Nov 19 2018 04:00
@edhood 你行内属性写错了
BuntyBru
@BuntyBru
Nov 19 2018 06:24
I have a datalist which is hidden
i cannot style it when it is hidden
I can only style it when it is in display block
How do i make it possible
How do i style hidden elements?
BuntyBru
@BuntyBru
Nov 19 2018 06:31
.datalist {
  height:100px !important;
  max-height:80px !important;
  overflow-y:auto;
  display:block !important;
}
This style works but as you can see that the display is block in here
The style only works then
Claudio Restifo
@Marmiz
Nov 19 2018 07:42
@BuntyBru if it's not on the page, how can you style it?
what is your ultimate goal?
BuntyBru
@BuntyBru
Nov 19 2018 07:55
@Marmiz i just want to decrease the size of the datalist
Its like a dropdown
*Its a dropdown, and there are lot of items in there
Claudio Restifo
@Marmiz
Nov 19 2018 07:56
but if it's not displayed, it should not take any space
BuntyBru
@BuntyBru
Nov 19 2018 07:56
so i want to just decrease the size of it
see the datalist
The same kind of implementation i have done
but the contents of the list is near about 50
so that is a problem for me
I just want to decrease the size of it
rest is fine
Claudio Restifo
@Marmiz
Nov 19 2018 08:06
oh Datalist accept very few css property (if not none at all). I don't think you can actually style them
BuntyBru
@BuntyBru
Nov 19 2018 08:06
Is there any other option
Claudio Restifo
@Marmiz
Nov 19 2018 08:07
I think with a classic select tag you'd have more freedom
or perhaps an input + some JS :)
kinopotato
@kinopotato
Nov 19 2018 08:52
Hi, anyone using vs code live server? I'm trying to get it to run but at the step where I'm supposed to click "open with live server" there's no option like that. I tried typing the command but it just opened a tab in my browser but not the html file
Aditya
@ezioda004
Nov 19 2018 09:00
It should be at the apps footer, right side
kinopotato
@kinopotato
Nov 19 2018 09:02
the "go live" button?
I clicked that, it would open a tab with the port and nothing else, the option still doesn't appear to open with live server :|
Aditya
@ezioda004
Nov 19 2018 09:06
Err
That is the live server
Make sure you are using that in a .html file
If it still doesnt work, screenshot the page
kinopotato
@kinopotato
Nov 19 2018 09:10
it just gives me my local IP (I think) and the port it uses
http://127.0.0.1:5500/
apart from that, nothing, it's an empty browser
Untitled.jpg
and this is the right click options, nothing to do with live server
Aditya
@ezioda004
Nov 19 2018 09:12
Whats on the localhost? http://127.0.0.1:5500/?
kinopotato
@kinopotato
Nov 19 2018 09:12
nothing
just blank,
it's supposed to be <p>testing testing</p>
Aditya
@ezioda004
Nov 19 2018 09:12
Well your HTML seems empty so
Hmm
Try restarting the IDE
kinopotato
@kinopotato
Nov 19 2018 09:13
the only ide I know is the socket type for old hard drives
what's that?
Aditya
@ezioda004
Nov 19 2018 09:13
I mean restart text editor :D
kinopotato
@kinopotato
Nov 19 2018 09:14
oh, I've already reloaded multiple times. Also manual close it then start it again. So unless restarting my pc will do anything???
Aditya
@ezioda004
Nov 19 2018 09:16
I dont think that'll do anything, do you have any other projects that you can test live server on?
kinopotato
@kinopotato
Nov 19 2018 09:16
No, I was setting up all this stuff to try and make stuff xD well I guess I won't die from not using this
I hope
John
@taloloy18
Nov 19 2018 09:32
Hi
can you check the code if it was running..
Basic JavaScript: Profile Lookup
*for (var i = 0; i < contacts.length; x++){
if (contacts[i].firstName === firstName) {
if (contacts[i].hasOwnProperty(prop)) {
return contacts[i][prop];
} else {
return "No such property";
}
}
}
return "No such contact";
it was not working
kinopotato
@kinopotato
Nov 19 2018 09:34
it says firstname is not defined
Aditya
@ezioda004
Nov 19 2018 09:34
@taloloy18 x++ should be i++ and contacts[i].firstName === name
John
@taloloy18
Nov 19 2018 09:38
Thanks, I already Know my error earlier.
@ezioda004
@kinopotato @kinopotato
Niraj Nandish
@Nirajn2311
Nov 19 2018 10:23
@kinopotato did you get live server to work? I might be able to help you with that
Xraycat
@Xraycat
Nov 19 2018 11:09
So a random anyone who have tried to make a offline version of a e-commerce site? i have tried with HTTrack with no luck.
Niraj Nandish
@Nirajn2311
Nov 19 2018 12:21
Can anyone explain how someone gets the verified tag next to the commits in any PR
8BitPit
@8bitpitRBX_twitter
Nov 19 2018 12:54
can you do filter operation on react's prevState? or is this against mutability
    socket.on('note', (data) => {
      this.setState(
        prevState => ({
          notes: prevState.notes.filter(obj => obj._id !== data._id),
        }),
      );
    });
Aditya
@ezioda004
Nov 19 2018 12:58
Filter never mutates, it always creates a new array hence adhering to immutability.
8BitPit
@8bitpitRBX_twitter
Nov 19 2018 13:02
You are right, perhaps i need to re-word my question. I'm concern about doing the filtering directly on the state. I read somewhere (forgot where and the topic is about) that doing operations directly on state is bad. Do you know what this rule is?

This is acceptable and common

    const { notes } = this.state;
    const copyOfNotes = [...notes];
    socket.on('note', (data) => {
      const filtered = copyOfNotes.filter(obj => obj._id !== data._id);
      this.setState({
          notes:  filtered
        })
    });

but i wonder if this is fine and is not going against the rule that the above code is solving..

    socket.on('note', (data) => {
      this.setState(
        prevState => ({
          notes: prevState.notes.filter(obj => obj._id !== data._id),
        }),
      );
    });
Aditya
@ezioda004
Nov 19 2018 13:09
prevStateis given for reference.
In the first example you're creating shallow copy of the state and then filtering that copy whereas as in 2nd one you are creating a copy directly, both examples are completely fine.
8BitPit
@8bitpitRBX_twitter
Nov 19 2018 13:12
I see i'm worried cause most answers i found on stackoverflow uses the first code and not using prevState when in need of filtering, thanks @ezioda004
Aditya
@ezioda004
Nov 19 2018 13:19
@8bitpitRBX_twitter As long as the other part of your states are independent it should be fine.
Spread operator only creates a shallow copy of the array/object. Filter also copies reference so you should be vary of situations like these:
var x = [1, 2, ["a", "b"]];
var y = [...x];
x === y; // false
x[2] === y[2]; // true

var z = x.filer(val => val !== 1);
z[1] === x[2]; // true
z[1] === y[2]; // true
x[2].includes("c"); // false

//Mutates the referenced array
z[1].push("c"); 

x[2].includes("c"); //true, array gets mutated because same array in memory
May Kittens Devour Your Soul
@diomed
Nov 19 2018 13:23
wow, today I got email from github support - no linking
:-\
Aditya
@ezioda004
Nov 19 2018 13:24
What about?
May Kittens Devour Your Soul
@diomed
Nov 19 2018 13:24
like how to avoid corrs error. and apparently I can't
can't link to files on github
Aditya
@ezioda004
Nov 19 2018 13:25
Pff I get emails about how vulnerable my projects are - in junk they go.
May Kittens Devour Your Soul
@diomed
Nov 19 2018 13:26
@ezioda004 they're too harsh for your projects to see them
you're just trying to protect them, right?
Aditya
@ezioda004
Nov 19 2018 13:27
Exactly - I dont want to visit the horrors that are my projects
Niraj Nandish
@Nirajn2311
Nov 19 2018 15:02
@ezioda004 when you do any commit, does it automatically sign it for you using your GPG key
kinopotato
@kinopotato
Nov 19 2018 15:18
@Nirajn2311 no I wasn't able to
anyone here tried colt steele's web developer bootcamp? it's 10$ right now and I'm awfully tempted
also, how are you born with the name Colt Steele and not be a porn star?
Niraj Nandish
@Nirajn2311
Nov 19 2018 15:19
@kinopotato Could you just go over the steps you did
kinopotato
@kinopotato
Nov 19 2018 15:20
@Nirajn2311 I installed it, reloaded, clicked on go live, it went live and opened a tab in my browser with only IP and Port (no html) then I right clicked on my html file to click "open in server" or something like that as per instructions but no option is available
Niraj Nandish
@Nirajn2311
Nov 19 2018 15:31
@kinopotato Is your vscode opened to a folder or are you just opening files
Smootimus
@Smootimus
Nov 19 2018 15:33
:wave:
Niraj Nandish
@Nirajn2311
Nov 19 2018 15:34
@Smootimus :wave: Long time no see
Smootimus
@Smootimus
Nov 19 2018 15:34
Yeah it's been awhile, how's things @Nirajn2311
Niraj Nandish
@Nirajn2311
Nov 19 2018 15:34
Nothing much, next 4 months will be a mess
Smootimus
@Smootimus
Nov 19 2018 15:34
yeah? What's goin' on
Niraj Nandish
@Nirajn2311
Nov 19 2018 15:36
Final exams along with a lot of model exams(3 of them :tired_face: :tired_face: )
Smootimus
@Smootimus
Nov 19 2018 15:36
I just signed up for my other classes so C# and Advanced Javascript are coming up in the next 5 weeks or so
Ah dang yeah I just got over my midterms
I know what ya mean there
Niraj Nandish
@Nirajn2311
Nov 19 2018 15:36
And also college applications this month
Smootimus
@Smootimus
Nov 19 2018 15:38
Fun times
That was pretty stressful when I was going through it
Now that I'm settled into college it's better
Niraj Nandish
@Nirajn2311
Nov 19 2018 15:39
Once everything is done then it's fun times
Smootimus
@Smootimus
Nov 19 2018 15:39
Yes
Niraj Nandish
@Nirajn2311
Nov 19 2018 15:40
@Smootimus Cya around some other time
Smootimus
@Smootimus
Nov 19 2018 15:40
Yeah I'll be around my dude I'm on break now
So I'll probably make more appearances
Aditya
@ezioda004
Nov 19 2018 15:48
@Nirajn2311 I dont use GPG key - only SSH
May Kittens Devour Your Soul
@diomed
Nov 19 2018 15:53
wild @Smootimus appeared
@ezioda004 @Smootimus @Nirajn2311 riddle me this:
_ _ T T _ _ _ _ _ _
Niraj Nandish
@Nirajn2311
Nov 19 2018 15:56
@diomed A
Aditya
@ezioda004
Nov 19 2018 15:58
@diomed E
Christopher McCormack
@cmccormack
Nov 19 2018 15:58
ay morning
BOTTOMLESS
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:00
_ _ T T E _ _ _ _ _
only Aditya was right this time :yum:
Christopher McCormack
@cmccormack
Nov 19 2018 16:00
O
Aditya
@ezioda004
Nov 19 2018 16:00
@diomed N
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:00
morningg, @cmccormack
_ _ T T E N _ O O _
Aditya
@ezioda004
Nov 19 2018 16:01
@diomed I
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:01
@ezioda004 if you know it, say it
Aditya
@ezioda004
Nov 19 2018 16:01
:D
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:01
_ I T T E N _ O O _
Aditya
@ezioda004
Nov 19 2018 16:01
I dont, I'm making guesses
@diomed M
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:02
no M
Aditya
@ezioda004
Nov 19 2018 16:03
@diomed K?
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:03
ah yes, very good, yes, yes, yes
K I T T E N _ O O _
Christopher McCormack
@cmccormack
Nov 19 2018 16:04
KITTENHOOD
Aditya
@ezioda004
Nov 19 2018 16:05
I'm betting for kittenwood
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:05
KITTENMOOD
Christopher McCormack
@cmccormack
Nov 19 2018 16:05
kittenhoop
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:05
well done @cmccormack :smile_cat:
Christopher McCormack
@cmccormack
Nov 19 2018 16:05
oh
:D
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:05
@cmccormack :clap: :clap:
Aditya
@ezioda004
Nov 19 2018 16:05
@diomed Thats like...your opinion
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:05
K I T T E N H O O D
it was
@ezioda004 @Nirajn2311 @cmccormack https://www.youtube.com/watch?v=J67hpSCXqvA
Christopher McCormack
@cmccormack
Nov 19 2018 16:07
Kittens are damn cute
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:08
Is this what the internet has become into, making words related to kittens :smile_cat: :smile_cat:
Christopher McCormack
@cmccormack
Nov 19 2018 16:08
yes
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:09
internet was made for cats
Christopher McCormack
@cmccormack
Nov 19 2018 16:09
could be more literal
Smootimus
@Smootimus
Nov 19 2018 16:09
Bahaha dang I came back and it's solved
Christopher McCormack
@cmccormack
Nov 19 2018 16:11
Things move fast around here!
Smootimus
@Smootimus
Nov 19 2018 16:11
Thats' for sure
Aditya
@ezioda004
Nov 19 2018 16:12
@cmccormack Interesting data
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:12

@diomed As Abe once said

Internet was made of cats, by cats , for cats

May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:12
ah yes, that Lincoln guy was totally right
@cmccormack why's my generator broken?
won't submit
Christopher McCormack
@cmccormack
Nov 19 2018 16:13
@ezioda004 really nice
someone likes D3
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:14
@ezioda004 That connection graph is good
@diomed nothing seems to submit
Aditya
@ezioda004
Nov 19 2018 16:17

@cmccormack Lol

Most Liked Aspects of ES6
⚙️ Elegant programming style & patterns

Most Disliked Aspects of ES6
🐞 Buggy, error-prone code

Christopher McCormack
@cmccormack
Nov 19 2018 16:17
error prone how I wonder
promises?
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:17
@Nirajn2311 lol yeah.. that's my point.
Aditya
@ezioda004
Nov 19 2018 16:19
@cmccormack Thats kinda general statement, people will always hate x about buggy code
Christopher McCormack
@cmccormack
Nov 19 2018 16:19
@diomed maybe move your buttons into your form
you have a submit type on your input but that only works when within the form itself. I tested locally and it worked
@ezioda004 but was it only ES6 or all JS including ES6 I wonder
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:22
Screenshot (15).png
Aditya
@ezioda004
Nov 19 2018 16:22
¯_(ツ)_/¯
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:22
@diomed look at vue, around 50% want to learn it
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:23
meanwhile - no1 ever heard of ember. lol
Christopher McCormack
@cmccormack
Nov 19 2018 16:23
I'm in that 50% that's for sure, if only to understand the syntax when reviewing others' code
but not angular
Aditya
@ezioda004
Nov 19 2018 16:23
Ember? Isnt that the framework you use to write glorious to-do lists?
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:23
And 1/3 dont want to use angular
Its way too complex for me
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:24
arnt all frameworks just for that?
every day someone somewhere publishes some effin to-do list
Christopher McCormack
@cmccormack
Nov 19 2018 16:24
React isn't a framework I wonder why they keep calling it that
Aditya
@ezioda004
Nov 19 2018 16:25
Oh no
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:26
what is it?
Christopher McCormack
@cmccormack
Nov 19 2018 16:27
Library
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:27
:smack_head_emoji:
Screenshot (16).png
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:28
lol
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:28
@diomed Clumsy Programming style for vue, who are the people they chose for interviewing
You can read the vue docs and understand it
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:29
I read any documents and dont understand it :yum:
@Nirajn2311 how's my library going? :stuck_out_tongue:
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:33
I havent started yet :stuck_out_tongue_winking_eye:
Screenshot (17).png
Woah, VSCode has taken over the text editors
Aditya
@ezioda004
Nov 19 2018 16:36
I dont think their data set is that big, SO surveys are way better - though the next one will come out in March

Most Disliked Aspects of Electron
⚡ Poor performance

We know who to blame for that
stares at chrome

Niraj Nandish
@Nirajn2311
Nov 19 2018 16:38
:laughing: :laughing:
Darren
@DarrenfJ
Nov 19 2018 16:38
@Nirajn2311 it was rainy and snowy here but now it's all melted and just normal fall coldness..
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:38

I dont think their data set is that big, SO surveys are way better - though the next one will come out in March

they mentioned that they collected from 20k devs

@DarrenfJ So did you study in canada
Darren
@DarrenfJ
Nov 19 2018 16:39
yah.. been in Toronto for many years now...
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:39
Sorry if it's too personal, but I am thinking of studying there for Bachelors and Masters
Which university @DarrenfJ
Darren
@DarrenfJ
Nov 19 2018 16:40
How's Dubai this time of year? I imagine it's one of those places that is always [insert hot temperature]
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:40
Now its ok
Darren
@DarrenfJ
Nov 19 2018 16:40
I went to Ottawa U but took tons of con ed courses at U ofT and Ryerson and George Brown and York U
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:40
mid-June to mid-Oct = too hot
Darren
@DarrenfJ
Nov 19 2018 16:41
so you get a mild season// how cool is it? like 25 deg Cish?
is it one of those deserts where it gets really cool at night?
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:42
Now it fluctuates between 25 to 30 Cels
How was York U and U of T
Darren
@DarrenfJ
Nov 19 2018 16:43
I liked both.. U Of T had great profs.. but took electronics and radio/acoustic courses there..
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:43

is it one of those deserts where it gets really cool at night?

At winters, it sometimes reaches around 10 - 15 Celsius

Darren
@DarrenfJ
Nov 19 2018 16:43
and York was their graduate studies.. their MBA school but they also do Con Ed for any ole manager type
that's a nice cool evening :smirk:
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:44
@Nirajn2311 lol. 10-15. you're gonna freeze in Canada
Darren
@DarrenfJ
Nov 19 2018 16:45
only for 8 of the 12 months
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:45
Nah, i'll manage
Darren
@DarrenfJ
Nov 19 2018 16:45
the other 4 you'll be mildly annoyed at the humidity
Niraj Nandish
@Nirajn2311
Nov 19 2018 16:45
@DarrenfJ thx for the reviews
Humidity, :smirk: we'll see if it's worse than UAEs
Darren
@DarrenfJ
Nov 19 2018 16:47
Ryerson is the up and comer... they were a polytechnique (a technical college) who upgraded to a University in the Canadian system.. but because they came from the college side all the engineer I worked with from there were miles ahead on hands on compared to the U of T engineers who could do complex calculus but no idea how to screw something into something else..
the classic "I am an Engineer but I have no idea how an engine works" but they can describe the thermodynamic cycles but can't fix anything for shit
not sure how Ryerson's CompSci scene is though
this was all on the mech/Elec engineering side.
Humidity, :smirk: we'll see if it's worse than UAEs
is it really humid in UAE?
May Kittens Devour Your Soul
@diomed
Nov 19 2018 16:49
is hummus in any relation with humidity?
Darren
@DarrenfJ
Nov 19 2018 16:50
that was the name of my poetry jam band: how's my hummus?
Aditya
@ezioda004
Nov 19 2018 16:50
Thats like Java to Javascript
Niraj Nandish
@Nirajn2311
Nov 19 2018 18:17
is it really humid in UAE?
@DarrenfJ especially in summer and sometimes in winter also
Niraj Nandish
@Nirajn2311
Nov 19 2018 18:48
@diomed x
Kaz Baig
@kbaig
Nov 19 2018 19:44
:wave:
Karma Drukpa
@coderkarma
Nov 19 2018 19:45
:wave:
Kaz Baig
@kbaig
Nov 19 2018 19:48
@DarrenfJ how's it goin my dude
Shane
@ShaneB26
Nov 19 2018 23:35
Hi everyone, stepped away, I'm struggling with the trombone static page on the responsive web section projects and needed a break. Just found the litter channel!
Bjorn van de Peut
@bjorno43
Nov 19 2018 23:37
Need a little help guys. Working on a login / register page using Materialize CSS. If you check this pen: https://codepen.io/bjorno43/pen/PxOmQG Click on the big blue circle for adding a user. Just ignore the fields there and click Next. Now if you try to select a Gender, the female option is "unclickable" because of the element underneath it. I can't figure out what's causing this so any help would be appreciated!