These are chat archives for FreeCodeCamp/Help

16th
Jun 2018
anthonygallina1
@anthonygallina1
Jun 16 2018 00:46
:wave:
Hi @thekholm80
@xstable Did that work?
Kyle Holm
@thekholm80
Jun 16 2018 00:51
@anthonygallina1 :wave:
anthonygallina1
@anthonygallina1
Jun 16 2018 00:52
How are you?
Kyle Holm
@thekholm80
Jun 16 2018 00:53
pretty darn good, you?
anthonygallina1
@anthonygallina1
Jun 16 2018 00:53
MEh procrastinating on a node js blog I am making But I like to drop by and see people I know.
:smile:
Kyle Holm
@thekholm80
Jun 16 2018 00:54
procrastination is the 1 thing i'm good at
anthonygallina1
@anthonygallina1
Jun 16 2018 00:54
LOL
Kyle Holm
@thekholm80
Jun 16 2018 00:55
what's this node js blog you're working on?
I got the routes split out intoindividual files and much more now. But havent got everything done the way I want it yet.
DEV local mongo and testing win 10 and Ubuntu 16.04 sneaker net
Kyle Holm
@thekholm80
Jun 16 2018 00:59
awesome
anthonygallina1
@anthonygallina1
Jun 16 2018 00:59
LOL walking it between machines
Kyle Holm
@thekholm80
Jun 16 2018 01:00
at least it's not a stack of punchcards
anthonygallina1
@anthonygallina1
Jun 16 2018 01:01
:smile:
YA the one up is real rough like a wireframe Been working on the backend
Kyle Holm
@thekholm80
Jun 16 2018 01:02
that's my favorite part
anthonygallina1
@anthonygallina1
Jun 16 2018 01:02
Cool I like it too
mstellaluna
@mstellaluna
Jun 16 2018 01:05
@thekholm80 :wave:
Kyle Holm
@thekholm80
Jun 16 2018 01:05
@mstellaluna hi!
anthonygallina1
@anthonygallina1
Jun 16 2018 01:05
@mstellaluna :coffee:
Kyle Holm
@thekholm80
Jun 16 2018 01:05
how is your course going?
mstellaluna
@mstellaluna
Jun 16 2018 01:05
@anthonygallina1 :tea:
@thekholm80 kill me..
anthonygallina1
@anthonygallina1
Jun 16 2018 01:05
Thank you
Kyle Holm
@thekholm80
Jun 16 2018 01:05
that bad?
mstellaluna
@mstellaluna
Jun 16 2018 01:05
im drowning.. im doing several courses at the same time lol
Kyle Holm
@thekholm80
Jun 16 2018 01:06
yikes
mstellaluna
@mstellaluna
Jun 16 2018 01:06
tonight finishing up AWS and starting on Chef
anthonygallina1
@anthonygallina1
Jun 16 2018 01:06
:thumbsup:
Kyle Holm
@thekholm80
Jun 16 2018 01:06
i couldn't keep it all straight
mstellaluna
@mstellaluna
Jun 16 2018 01:06
in another course getting maven, artifactory and Jenkins running.. but Jenkins won't talk to artifactory so it fails … can't figure out why
and re-visiting bash scripting again
today i just backed away from it. stressing me out...
anthonygallina1
@anthonygallina1
Jun 16 2018 01:07
I actually installed vm and varant last night first time Was a kinda bumpy ride
mstellaluna
@mstellaluna
Jun 16 2018 01:07
u ?
@anthonygallina1 with virtualbox?
i mean virtualbox and vagrant?
anthonygallina1
@anthonygallina1
Jun 16 2018 01:08
YEs was way past time I need to know that stuff
Kyle Holm
@thekholm80
Jun 16 2018 01:08
I need to find a new project
mstellaluna
@mstellaluna
Jun 16 2018 01:08
if you get stuck let me know, i have several VM's created using virtualbox and vagrant
anthonygallina1
@anthonygallina1
Jun 16 2018 01:08
Yup taking mongo security
@mstellaluna :)
mstellaluna
@mstellaluna
Jun 16 2018 01:09
@thekholm80 i need to stay away from udemy
Kyle Holm
@thekholm80
Jun 16 2018 01:09
rofl
anthonygallina1
@anthonygallina1
Jun 16 2018 01:09
Thank you @mstellaluna
mstellaluna
@mstellaluna
Jun 16 2018 01:09
i have udemy sale issues
Kyle Holm
@thekholm80
Jun 16 2018 01:09
but soon you'll have them all
the full set
then you win
mstellaluna
@mstellaluna
Jun 16 2018 01:09
im paying for my devops course that i take 2 nights a week for 6 weeks. its an intensive course
problem is.. the hours of the course suck so im dead tired..
anthonygallina1
@anthonygallina1
Jun 16 2018 01:10
:thumbsup:
mstellaluna
@mstellaluna
Jun 16 2018 01:11
@thekholm80 do the new FCC
Kyle Holm
@thekholm80
Jun 16 2018 01:11
it's so much front end though
css is worse than death
mstellaluna
@mstellaluna
Jun 16 2018 01:11
i'd do it but i done it so many times testing it i don't have the want to do it
i hate that CSS section. its never ending
Kyle Holm
@thekholm80
Jun 16 2018 01:11
lol
mstellaluna
@mstellaluna
Jun 16 2018 01:12
i also grabbed myself a Hadoop training course
cuz i love to torture myself
Kyle Holm
@thekholm80
Jun 16 2018 01:12
that would be fun
mstellaluna
@mstellaluna
Jun 16 2018 01:13
hortonworks sandbox for virtualbox is 12GB
wtf!
Kyle Holm
@thekholm80
Jun 16 2018 01:13
dang
mstellaluna
@mstellaluna
Jun 16 2018 01:13
i have to set up a vm with windows and have my server run it
because my poor laptop.. i dunno
Kyle Holm
@thekholm80
Jun 16 2018 01:14
time to rent some aws time?
mstellaluna
@mstellaluna
Jun 16 2018 01:14
no
anthonygallina1
@anthonygallina1
Jun 16 2018 01:14
LOL they threw me a curve ball
mstellaluna
@mstellaluna
Jun 16 2018 01:14
@thekholm80 i have enterprise grade level servers at home doing nothing
Kyle Holm
@thekholm80
Jun 16 2018 01:15
oh nice
mstellaluna
@mstellaluna
Jun 16 2018 01:15
so, i don't need AWS per say unless the course asks me to do it
anthonygallina1
@anthonygallina1
Jun 16 2018 01:15
I set up on linux Because the instructions are usually for linux But no..... This time the instructions are for win LOL
mstellaluna
@mstellaluna
Jun 16 2018 01:15
@anthonygallina1 which instructions?
anthonygallina1
@anthonygallina1
Jun 16 2018 01:16
Oh I am taking mongo security at mongo university
mstellaluna
@mstellaluna
Jun 16 2018 01:16
aahh
Kyle Holm
@thekholm80
Jun 16 2018 01:16
and they suggest windows?
mstellaluna
@mstellaluna
Jun 16 2018 01:16
im surprised at that
anthonygallina1
@anthonygallina1
Jun 16 2018 01:16
And trying glitch on our sec class here and building a node blog :smile:
mstellaluna
@mstellaluna
Jun 16 2018 01:16
normally everyone is Linux.. im doing a course meant for Linux on windows for CI/CD pipeline.. its why im stuck with Jenkins and artifactory lol
anthonygallina1
@anthonygallina1
Jun 16 2018 01:17
yup
:)
mstellaluna
@mstellaluna
Jun 16 2018 01:17
i asked the Jenkins room here in gitter.. they weren't much help
:(
anthonygallina1
@anthonygallina1
Jun 16 2018 01:17
:(
mstellaluna
@mstellaluna
Jun 16 2018 01:18
@thekholm80 do some devops :) hehehhe
Kyle Holm
@thekholm80
Jun 16 2018 01:18
i'm not smart enough for devops
anthonygallina1
@anthonygallina1
Jun 16 2018 01:19
Jenkins is easy though I think I tried a few years back It is giving you a hard time?
Kyle Holm
@thekholm80
Jun 16 2018 01:20
devops would be fun, though
i'd like to learn about serverless systems
like aws lambda
mstellaluna
@mstellaluna
Jun 16 2018 01:21
yea
anthonygallina1
@anthonygallina1
Jun 16 2018 01:21
:thumbsup:
lamda?
Kyle Holm
@thekholm80
Jun 16 2018 01:23
yeah
i hope that's lesson one: how to spell lamda
anthonygallina1
@anthonygallina1
Jun 16 2018 01:23
@mstellaluna and devops :heart: She is humble.
mstellaluna
@mstellaluna
Jun 16 2018 01:24
lambda is right
@anthonygallina1 I have to keep myself busy lol
Kyle Holm
@thekholm80
Jun 16 2018 01:24
lol yeah i just googled it
mstellaluna
@mstellaluna
Jun 16 2018 01:24
@anthonygallina1 lambda is serverless so it means you are using AWS processing power rather than having a VM run and process it for u
Kyle Holm
@thekholm80
Jun 16 2018 01:25
it's kind of neat, there's a service listening and when requests come in it spins up a server to handle the request, then milliseconds later the request resolves and the server is destroyed
the web server exists only as long as it takes to fulfill the request, so you don't have tons of servers sitting idle
at least that's how netflix's dev blog explained it
anthonygallina1
@anthonygallina1
Jun 16 2018 01:27
@mstellaluna yup I have a small knowledge of it. I havent actually used it except in class
Sure would be nice I spent a month on this box CIS standard and making partitions the right way etc.
Would be way cool to have snapshots etc
mstellaluna
@mstellaluna
Jun 16 2018 01:30
I don't think aws does snapshots
anthonygallina1
@anthonygallina1
Jun 16 2018 01:30
Felt like i would never get it done
Well the cloud would be optimal But even local Then wouldnt need to start from scratch every time
mstellaluna
@mstellaluna
Jun 16 2018 01:32
well vagrant has plugins you can install
there is one for creating a snapshot
hold on a sec
anthonygallina1
@anthonygallina1
Jun 16 2018 01:33
OMG
I got scared last night
I got the boxes up
Then the satalite went down
I was like oh GOD I broke the internet
mstellaluna
@mstellaluna
Jun 16 2018 01:34
hehehhe
Kyle Holm
@thekholm80
Jun 16 2018 01:34
so that's why i couldn't watch youtube last night
way to ruin it for everyone
mstellaluna
@mstellaluna
Jun 16 2018 01:35
@anthonygallina1
anthonygallina1
@anthonygallina1
Jun 16 2018 01:36
sorry no there was some wierdness last night on you tube Mongo University couldnt serve me vids. And a link to like youtu.be or something
@mstellaluna AWESOME!
mstellaluna
@mstellaluna
Jun 16 2018 01:41
@thekholm80 lol
@anthonygallina1 :thumbsup:
taotl
@taotianli
Jun 16 2018 01:47
how to set the Monospace font
Kyle Holm
@thekholm80
Jun 16 2018 01:48
@taotianli in css? font-family: monospace
mstellaluna
@mstellaluna
Jun 16 2018 02:01
@thekholm80 @anthonygallina1 i have to go.. class starts in 30min.. i'll see you guys around .. ciao !
Kyle Holm
@thekholm80
Jun 16 2018 02:01
@mstellaluna knock em dead
mstellaluna
@mstellaluna
Jun 16 2018 02:01
more like me falling asleep...
10:30pm to 1AM is rough
Kyle Holm
@thekholm80
Jun 16 2018 02:01
that's inhumane
mstellaluna
@mstellaluna
Jun 16 2018 02:01
the teacher is in india
so technically its 8am in india
anthonygallina1
@anthonygallina1
Jun 16 2018 02:02
Your awesome Hang in there :smile:
Kyle Holm
@thekholm80
Jun 16 2018 02:02
that makes more sense.
mstellaluna
@mstellaluna
Jun 16 2018 02:02
this company, one of the teachers of their Hadoop course. he's in the top 2% on SO
my current teacher is chief architect for Philips medical in india
Kyle Holm
@thekholm80
Jun 16 2018 02:03
sounds like a good program
mstellaluna
@mstellaluna
Jun 16 2018 02:03
tbh I had to switch class
my previous group was a omfg what did I pay for
complete clueless on how to use a PC
Kyle Holm
@thekholm80
Jun 16 2018 02:03
rofl
mstellaluna
@mstellaluna
Jun 16 2018 02:04
this new group at least mostly windows and Linux admins, dba's .. technical group
Kyle Holm
@thekholm80
Jun 16 2018 02:04
i bet that's better
less "how do i mouse?"
mstellaluna
@mstellaluna
Jun 16 2018 02:04
i'll give you an example of clueless.. teacher is asking what OS people are running.. one person 'I am running windows on Linux' ..the person was referring to gnome
Kyle Holm
@thekholm80
Jun 16 2018 02:05
"well, my program is in a window, so it's windows. duh"
mstellaluna
@mstellaluna
Jun 16 2018 02:05
lol
I have to go login and attempt to put these kids to bed so I can some silence
see u guys tomorrow
Kyle Holm
@thekholm80
Jun 16 2018 02:05
have a good night
mstellaluna
@mstellaluna
Jun 16 2018 02:06
u too
Karma Drukpa
@coderkarma
Jun 16 2018 02:59
why $('h1')[0];
why can't i see my h1 element in my chrome console.?
@thekholm80
Kyle Holm
@thekholm80
Jun 16 2018 03:00
aliens?
i really couldn't say without seeing any of it
Karma Drukpa
@coderkarma
Jun 16 2018 03:01
i was just trying to see my h1 element tag with jquery in chrome console.
like < h1> hello</h1>
$('h1')[0];
this should work right?
Kyle Holm
@thekholm80
Jun 16 2018 03:03
i've never tried using jquery in a javascript console
it might work? i'm not sure. i'm assuming your project has imported the jquery library?
Karma Drukpa
@coderkarma
Jun 16 2018 03:04
yes
Kyle Holm
@thekholm80
Jun 16 2018 03:04
why do you want to see your h1 element in the console?
Karma Drukpa
@coderkarma
Jun 16 2018 03:04
jquery lib is linked in html .
instructor was showing in udemy course but when i typed that in my console, output was not the same, so thought to ask.
anyways just going introductory part of jquery.
After DOM
Ankit Tiwari
@anku255
Jun 16 2018 03:06
@coderkarma just do console.log($('h1'));and post the output
Karma Drukpa
@coderkarma
Jun 16 2018 03:07
alright. thanks
Kyle Holm
@thekholm80
Jun 16 2018 03:08
image.png
i can't make it work from inside the console
Karma Drukpa
@coderkarma
Jun 16 2018 03:08
you are right
@thekholm80
i got it.
Kyle Holm
@thekholm80
Jun 16 2018 03:09
:+1:
Karma Drukpa
@coderkarma
Jun 16 2018 03:09
but why we using index there
what are you working on currently @thekholm80 ?
Kyle Holm
@thekholm80
Jun 16 2018 03:09
because in jquery, selecting a type of elements like that will return an array of all of that type of elements on the page
i'm not working on anything, just watching a show on Amazon
Karma Drukpa
@coderkarma
Jun 16 2018 03:13
okay.
pls help with above problem!!!
Prakash Kumar
@ThePrakashKumar
Jun 16 2018 06:44
For the :before and :after selectors to function properly, do we need to have a defined content property?
Mehdi Amlal
@mehdiamlal
Jun 16 2018 08:02
Hey guys, how can I use res.render() to render an html file instead of an hbs one?
Ankit Tiwari
@anku255
Jun 16 2018 08:05
@mehdiamlal This stackoverflow post has many suggestions.
@mehdiamlal The easiest way to do with using any additional library would be to serve the html file directly using res.sendFile(pathToHtmlFile)
Olga
@OStefani
Jun 16 2018 08:07
hi guys, why does it work if arr2 should be undefined inside the function?
const arr1 = ['JAN', 'FEB', 'MAR', 'APR', 'MAY'];
let arr2;
(function() {
  "use strict";
  arr2 = [...arr1]; // change this line
})();
console.log(arr2);
Ankit Tiwari
@anku255
Jun 16 2018 08:10
@OStefani I am not sure if I understand your question.
@OStefani Are you asking that why that console.log is not printing undefined?
Olga
@OStefani
Jun 16 2018 08:13
@anku255 I solved it. I just confused scopes
Ankit Tiwari
@anku255
Jun 16 2018 08:14
@OStefani Great!
Mehdi Amlal
@mehdiamlal
Jun 16 2018 08:51
How can I fix the footer on the bottom of the page?
Nicolas Ramirez
@kamatheuska
Jun 16 2018 18:29
So, I am looking for a reporter or logger with mocha. Any recommendations?
Norvin Burrus
@ndburrus
Jun 16 2018 19:46
@kamatheuska this may be helpful :sparkles:
Mehdi Amlal
@mehdiamlal
Jun 16 2018 20:42
What is the difference between regular dependencies an dev ones?
Mehdi Amlal
@mehdiamlal
Jun 16 2018 21:02
It was indeed
Thank you!!
Megan Taylor
@megantaylor
Jun 16 2018 21:03
:thumbsup:
Nicolas Ramirez
@kamatheuska
Jun 16 2018 22:02
@ndburrus thanks for all that!!
koder3
@koder3
Jun 16 2018 22:09
let repeatNum = "42 42 42";
let reRegex = /(^\d{2,})\s\1\s\1$/; // Change this line
let result = reRegex.test(repeatNum);
console.log(result)
can someone please explain what line 2 does and why does this solve the capture groups challenge
Bjorn van de Peut
@bjorno43
Jun 16 2018 22:17

@koder3
( ... ) is just a capturing group
^ = The beginning of a string
\d = Matches a digit 0-9
{2,} = Between 2 and unlimited times. So it's true with 2 or more digits
\s = Any whitespace character, like a space for example
\1 = Is basicly a repeat of the previous capturing group. So in this case a copy of the above. This is done twice
$ = The end of a string

So this regex returns true if a string starts with at least 2 digits, followed by a space character, repeated 2 more times

Bjorn van de Peut
@bjorno43
Jun 16 2018 22:20
Well, as the whitespace character is outside of the capturing group, it doesn't require a whitespace at the end of the string. Should mention that
Norvin Burrus
@ndburrus
Jun 16 2018 22:26
@kamatheuska you're welcome! enjoy :palm_tree: