These are chat archives for MontCode/GeneralChat

24th
Jun 2016
Lily Romano
@Lilyheart
Jun 24 2016 00:00
Might be able to pick up from here tho! @SimplyPhy
Robert Maylie
@rmaylie9560
Jun 24 2016 00:05
For you struggle with folder navigation. Cd into a folder and dir will let you search for the folder name. You can take it step by step until you get into your desired folder
Eric Phy
@SimplyPhy
Jun 24 2016 00:06
is dir = ls more or less?
Robert Maylie
@rmaylie9560
Jun 24 2016 00:06
dir will give you all the folder names in that directory. Then cd into the next folder.
Lily Romano
@Lilyheart
Jun 24 2016 00:06
windows vs *nix. That’s exactly it @SimplyPhy
windows dir is like ls
Eric Phy
@SimplyPhy
Jun 24 2016 00:07
:sparkles:
Robert Maylie
@rmaylie9560
Jun 24 2016 00:07
that works for Linux to lil?
Lily Romano
@Lilyheart
Jun 24 2016 00:07
pretty much all unix/linux/etc.
Robert Maylie
@rmaylie9560
Jun 24 2016 00:08
/ vs \ for folder paths is a big difference
screws me up all the time
Lily Romano
@Lilyheart
Jun 24 2016 00:08
truth
Eric Phy
@SimplyPhy
Jun 24 2016 00:09
is there any shorthand cd notation in git bash?
obviously a good question for google, but figure wth
Lily Romano
@Lilyheart
Jun 24 2016 00:10
not sure what kinda of shorthand you are looking for??? you can type cd fo and then hit tab and if folder is the only file/folder you have that starts with fo it will prefill
Eric Phy
@SimplyPhy
Jun 24 2016 00:12
hmm, neat. Oddly it only seems to work sometimes for me. Thanks :D
Lily Romano
@Lilyheart
Jun 24 2016 00:13
if it matches more than one thing, it won’t work. Hit tab twice back to back and it’ll give you a list of all the possibles so you can be more specific
Robert Maylie
@rmaylie9560
Jun 24 2016 00:13
i completely messed up that file read/write
Lily Romano
@Lilyheart
Jun 24 2016 00:13
The file transfer lab @rmaylie9560 ?
Robert Maylie
@rmaylie9560
Jun 24 2016 00:14
yea.
Eric Phy
@SimplyPhy
Jun 24 2016 00:14
oh wow ha yeah that's really cool! (I was screwing up for me before because I was ignoring case sensitivity).
Lily Romano
@Lilyheart
Jun 24 2016 00:14
That’ll do it @SimplyPhy. It’s VERY case sensitive.
Eric Phy
@SimplyPhy
Jun 24 2016 00:14
that'll probably save me a few days or so of life in the long term, thanks :+1:
Robert Maylie
@rmaylie9560
Jun 24 2016 00:15
i was trying ReadFile(filepath);
Eric Phy
@SimplyPhy
Jun 24 2016 00:20
Question: Aside from downloading packages, what utilities does node.js, if any, to a typical front-end dev?
have* :leaves:
Lily Romano
@Lilyheart
Jun 24 2016 00:21
David’s answering that for you.
Eric Phy
@SimplyPhy
Jun 24 2016 00:21
"someone" pshh
:P
Lily Romano
@Lilyheart
Jun 24 2016 00:22
but.. but.. but… we dunt know ur name :squirrel:
Eric Phy
@SimplyPhy
Jun 24 2016 00:23
Phy
Lily Romano
@Lilyheart
Jun 24 2016 00:23
hmmm.. I think you lie… I think it's….
ERIC!
Eric Phy
@SimplyPhy
Jun 24 2016 00:23
that's my first name, but nobody calls me that
Lily Romano
@Lilyheart
Jun 24 2016 00:24
heh
Eric Phy
@SimplyPhy
Jun 24 2016 00:24
well, people that don't know me do, i guess
Lily Romano
@Lilyheart
Jun 24 2016 00:24
h
Eric Phy
@SimplyPhy
Jun 24 2016 00:24
ha xD
Thank you for the apology :D
Lily Romano
@Lilyheart
Jun 24 2016 00:25
David is the best :)
Eric Phy
@SimplyPhy
Jun 24 2016 00:28
We should do a session on AJAX /w APIs soon :D
Lily Romano
@Lilyheart
Jun 24 2016 00:29
I'll add it to the list!
Eric Phy
@SimplyPhy
Jun 24 2016 00:31
I'm currently trying to figure out CORS implementations...it's really annoying so far.
Robert Maylie
@rmaylie9560
Jun 24 2016 00:31
id it good protocol to always use admin when accessing node modules ?
Eric Phy
@SimplyPhy
Jun 24 2016 00:36
anybody here use udacity?
Lily Romano
@Lilyheart
Jun 24 2016 00:36
back when it was in beta. a very very very long time ago.
Eric Phy
@SimplyPhy
Jun 24 2016 00:36
it might as well still be in beta, imo
Lily Romano
@Lilyheart
Jun 24 2016 00:37
they have change soooo much since then it’s not funny
Robert Maylie
@rmaylie9560
Jun 24 2016 00:37
i just realized how far behind i was on the stream
Eric Phy
@SimplyPhy
Jun 24 2016 00:37
but alas, I'm finishing their front end web dev nano now, and starting the senior web dev nano within 2 weeks
Robert Maylie
@rmaylie9560
Jun 24 2016 00:37
sorry
im going silent
Eric Phy
@SimplyPhy
Jun 24 2016 00:43
Hmmmm, since we're going over HTTP...any chance we can touch on CORS..? :fire: :cake:
Lily Romano
@Lilyheart
Jun 24 2016 00:48
I should have typed it here as well. David mentioned he would talk about CORS after the stream which should be soonish
Eric Phy
@SimplyPhy
Jun 24 2016 00:49
Yeah I can hear you guys, but thanks
Is there a command within bash to cancel out of a running server, without terminating the window/tab?
Lily Romano
@Lilyheart
Jun 24 2016 00:53
ctrl+c
that works on a LOT of terminal things that run.
Eric Phy
@SimplyPhy
Jun 24 2016 00:55
oh wow that actually works :D I was using ngrok the other day with python simplehttp, and didn't think to use control c, even though it worked in ngrok :octocat:
Lily Romano
@Lilyheart
Jun 24 2016 00:55
:boom:
Eric Phy
@SimplyPhy
Jun 24 2016 00:55
I suck at these emojis
i'll get there
Lily Romano
@Lilyheart
Jun 24 2016 00:55
It's linked over there :arrow_left: http://www.emoji-cheat-sheet.com/
Eric Phy
@SimplyPhy
Jun 24 2016 00:56
ha no time to study that, but thanks (insert emoji here)
Lily Romano
@Lilyheart
Jun 24 2016 00:56
I'm lazy tho so I just type : and then start to type something to see if I can find something that works.
Eric Phy
@SimplyPhy
Jun 24 2016 00:56
yeah ha that's what i was doing
Lily Romano
@Lilyheart
Jun 24 2016 00:56
like I wanted an arrow, so I typed :a
Eric Phy
@SimplyPhy
Jun 24 2016 00:56
octocat was the result
Lily Romano
@Lilyheart
Jun 24 2016 00:56
heh! nice
Eric Phy
@SimplyPhy
Jun 24 2016 00:56
:octocat:
Lily Romano
@Lilyheart
Jun 24 2016 00:56
we love :octocat: here
Feel free to work through workshop in the future and post questions here and we'll get you an answer. You can also post an issue on the repo but the answer might be a bit more delayed.
Lily Romano
@Lilyheart
Jun 24 2016 01:02
@SimplyPhy incoming info!
Eric Phy
@SimplyPhy
Jun 24 2016 01:02
w00t
preface: it's a pain in my ass, though everywhere online keeps claiming it's easy
aww
:'(
haha xD
Lily Romano
@Lilyheart
Jun 24 2016 01:03
(we have a 30 second delay between what you hear)
Eric Phy
@SimplyPhy
Jun 24 2016 01:04
Answers that include "I don't know" are infinitely better than those involving pretense of knowledge
Lily Romano
@Lilyheart
Jun 24 2016 01:04
heh. We try to be as honest as possible here. Tell you what we know and send you along if we don’t :)
Eric Phy
@SimplyPhy
Jun 24 2016 01:04
brevity coupled with lack of insight is infinitely preferable to timestaking bloat
That looks cool, thanks David
Thanks all <3
Mike
@dcpking
Jun 24 2016 01:09
Ditto! Thanks David!!
Robert Maylie
@rmaylie9560
Jun 24 2016 01:16
Thank Dave. You rock!
Like those cool stalagtite rocks
Lily Romano
@Lilyheart
Jun 24 2016 01:49
heh
Jonathan Herman
@lantech19446
Jun 24 2016 15:23
hey everyone how goes it
Lily Romano
@Lilyheart
Jun 24 2016 15:24
sneezefest over here
Jonathan Herman
@lantech19446
Jun 24 2016 15:27
That sucks
I'm completely indecisive right now, I feel like doing something different with that pen but I have no idea what
Lily Romano
@Lilyheart
Jun 24 2016 15:32
when i get like that I backburner it and learn something new. That usually triggers some idea.
Jonathan Herman
@lantech19446
Jun 24 2016 15:34
I'm thinking I'm going to try the JS lessons you posted yesterday and see if I like them better, I'm still stuck on that and it's getting annoying now. I always feel indecisive about this stuff, I don't know if it's just because I still feel really limited in my capabilities or what
Lily Romano
@Lilyheart
Jun 24 2016 15:35
If they are good, lemme know and I'll add them to the welcome slides
Jonathan Herman
@lantech19446
Jun 24 2016 15:35
ok will do
Jonathan Herman
@lantech19446
Jun 24 2016 17:05
@Lilyheart @davidjcastner @rmaylie9560 what are your opinions on plunker?
Lily Romano
@Lilyheart
Jun 24 2016 17:07
It’s kinda like codepen but it allows more than one person to edit the same code whereas with codepen you have to fork the code.
This can be useful. However, I’ve heard of recruiters looking at codepen to find potential hires, not plunker. That’s why I tend to develop more on codepen.
Jonathan Herman
@lantech19446
Jun 24 2016 17:09
ok so it may be beneficial to know both though because it sounds like there's pros and cons to both. That watch and code uses plunker, chrome, and github pretty much exclusively.
Jonathan Herman
@lantech19446
Jun 24 2016 17:54
haven't gotten very far into it yet but so far the series seems pretty good.
Lily Romano
@Lilyheart
Jun 24 2016 18:01
I signed up to the course so I could see what you were talkin' about. That is a lot of video for free!
Jonathan Herman
@lantech19446
Jun 24 2016 18:02
it really is and the first thing he does is create an array and show how to use it for something which is fantastic he's going to get my biggest road block out of the way first
Jonathan Herman
@lantech19446
Jun 24 2016 18:25
so far this is really good
Lily Romano
@Lilyheart
Jun 24 2016 19:06
That's awesome! I'll add it to the list to add! fantastic :octocat:
Jonathan Herman
@lantech19446
Jun 24 2016 20:15
I'm trying to delve deeper into it now while I'm doing these classes but I can't see why this keeps telling me that firstName is undefined, do you see what I'm doing wrong?
http://codepen.io/lantech19446/pen/YWNVVK
Lily Romano
@Lilyheart
Jun 24 2016 20:16
When something with a = is evaluated, the right side is calculated then assigned to the left. sum = 2 + 2;
Try switching your document.getElementById("first").value = firstName; around
I'm not sure why you have the push in there.
Jonathan Herman
@lantech19446
Jun 24 2016 20:20
I tried switching them before and still got that error that was why I flipped them the push was in there because it's the only way I could figure out to get it to pass the value into the array
Lily Romano
@Lilyheart
Jun 24 2016 20:22
firstName is actually a string at the moment, let me fork it and show you how you can test it.
Jonathan Herman
@lantech19446
Jun 24 2016 20:25
ok thanks
Jonathan Herman
@lantech19446
Jun 24 2016 20:34
switched that back around and defined firstName as an empty array still get reference error firstName undefined. Seeing the right way to do this should remove a big road block
Lily Romano
@Lilyheart
Jun 24 2016 20:34
almost done. just asec
Jonathan Herman
@lantech19446
Jun 24 2016 20:34
k
Lily Romano
@Lilyheart
Jun 24 2016 20:38
Maybe @davidjcastner can add onto this http://codepen.io/lilyheart/pen/GqrEmM/
If you are wanting something that will keep adding to the array, here is a fork of the fork. (see my comments at the bottom of the js to explain a little more. http://codepen.io/lilyheart/pen/gMgRXv
Jonathan Herman
@lantech19446
Jun 24 2016 20:44
nice
Jonathan Herman
@lantech19446
Jun 24 2016 20:50
so am I understanding this correctly that part of the problem is that I need to have a scope that the array is contained within?
Lily Romano
@Lilyheart
Jun 24 2016 20:57
Scope is a problem is two ways.
A variable declared in the function is only in scope when the function is running and the variable disappears as soon as the function is done.
A variable declared outside the function is only in scope for as long as the page is loaded. A button (submit or <button>) refreshes your page thus resetting your scope.
Jonathan Herman
@lantech19446
Jun 24 2016 21:05
ok that makes sense not necessarily why it was designed that way but that it'll happen but I need to have a scope and the array must be a method within that scope it can't exist on it's own.
Check that out at least up to where he talks about hoisting. Don't need to worry about that yet but feel free to read it if you wanna xD
Jonathan Herman
@lantech19446
Jun 24 2016 21:09
ok
thanks Lily
Lily Romano
@Lilyheart
Jun 24 2016 21:10
As to why it was designed that way: The purpose of a button is to take that information from the page and send it somewhere via an HTTP request. It just happens to be that your page sends you back to itself and the function is grabbing the result.
Jonathan Herman
@lantech19446
Jun 24 2016 21:12
interesting
Lily Romano
@Lilyheart
Jun 24 2016 21:15
Less then 5 hours of the Colt Steele bootcamp left. Whoa.
Jonathan Herman
@lantech19446
Jun 24 2016 21:16
awesome!, I think I'm sticking with the watchandcode. I might not have been able to accomplish that on my own but it's the closest I've gotten through any of them
Lily Romano
@Lilyheart
Jun 24 2016 21:16
Awesome!!! We can always fill in the blanks for you here!
Jonathan Herman
@lantech19446
Jun 24 2016 21:17
yea you guys are great at that
Lily Romano
@Lilyheart
Jun 24 2016 21:17
I have yet to find the "perfect" training. At least not for free. I combined many many resources to try to get a complete picture.
David Castner
@davidjcastner
Jun 24 2016 21:40
Had a busy day at work, only seeing stuff now. @lantech19446 I've never heard of plunker before, so nothing of value that I can say.
David Castner
@davidjcastner
Jun 24 2016 21:48
I see that you are starting to work with forms, how fun... and I see you are having some trouble with form submit, don't worry though, you can always overwrite the default behavior or a form. I'll put together an example
Jonathan Herman
@lantech19446
Jun 24 2016 21:52
the forms were honestly just the easiest way I could think of to input random data into an array, I learned the array stuff a little better on watchandcode googled to fill in some blanks and then ran into some other issues that I posted here
Lily Romano
@Lilyheart
Jun 24 2016 21:53
That second pen shows how you can make anything "onclick"
David Castner
@davidjcastner
Jun 24 2016 21:53
@lantech19446 is there a specific task you were trying to accomplish?
Jonathan Herman
@lantech19446
Jun 24 2016 21:54
I just wanted to take whatever I submitted into the form and have it add it to the array and then spit it back
David Castner
@davidjcastner
Jun 24 2016 22:08
Here is how to overwrite the form behavior and add to a list http://codepen.io/davidjcastner/pen/RRKZWB
You can overwrite any event or event listener in js
Jonathan Herman
@lantech19446
Jun 24 2016 22:16
awesome, and I actually understand what you did there which makes me incredibly happy
David Castner
@davidjcastner
Jun 24 2016 22:16
one sec changing it real quick to demonstrate an alternative way
Jonathan Herman
@lantech19446
Jun 24 2016 22:16
ok
David Castner
@davidjcastner
Jun 24 2016 22:17
btw you can also you us the jquery library but knowing the pure javascript way is better and more informational
Jonathan Herman
@lantech19446
Jun 24 2016 22:20
yea, I'm doing the watchandcode lessons Lily posted last night and when I finish that I'm going to do an outside course on jquery, I understood it when I went through it but nowhere near as well as I'd like too.
David Castner
@davidjcastner
Jun 24 2016 22:21
@lantech19446 nevermin, what I was trying didn't work, but that's the way to do it in pure js
Jonathan Herman
@lantech19446
Jun 24 2016 22:22
that's pretty cool, I notice that you have a way to clear the list and it looked like i just needed to submit an empty field but that didn't quite work. What was I missing there
David Castner
@davidjcastner
Jun 24 2016 22:26
@lantech19446 technically forms by default don't actually clear inputs, instead there default behavior is to reload the page which in turn clears the inputs. We have to clear the inputs manually since we overwrote the default behavior. You could simplify this process by looping over all of the form inputs and setting their value to an empty string. Also overwriting form behavior is extremely common
hope that helps, let me know if you have more questions about forms
about 75% of my work day is dealing with the little devils
Jonathan Herman
@lantech19446
Jun 24 2016 22:29
so what you're accomplishing by input.value = ''; is overwriting the value assigned to input not actually providing a way to clear the items that have been fed to the list
David Castner
@davidjcastner
Jun 24 2016 22:34
yea there is a value attribute for input elements http://www.w3schools.com/tags/att_input_value.asp
Jonathan Herman
@lantech19446
Jun 24 2016 22:37
ok
David Castner
@davidjcastner
Jun 24 2016 22:37

you can use this to set the value of the input when the page first loads too

<input type="text" value="hello world">

this input will start with hello world

Note: this is different from the placeholder attribute which is like a fake version of value. The value of the input is still an empty string, and as soon as you start typing the placeholder value will disapppear.

Example:

<input type="text" placeholder="enter your name">
Jonathan Herman
@lantech19446
Jun 24 2016 22:41
right
David Castner
@davidjcastner
Jun 24 2016 22:46

Just looked this up, but a"more correct" way to clear inputs is to use

inputElement.value = null;

this has the added benefit (if this is want you want to happen of course) of removing the focus on the input. I've always used an empty string though and never had a problem

Jonathan Herman
@lantech19446
Jun 24 2016 22:47
dave, do you have your own copy of the ecma standard?
David Castner
@davidjcastner
Jun 24 2016 22:49
No I do not, but I usually read the articles that comes out about the changes to ecmascript
Jonathan Herman
@lantech19446
Jun 24 2016 22:50
o ok when you said you looked it up I was like well hell does he actually have like a printed out copy of ecma5 he uses as a desk reference lol
David Castner
@davidjcastner
Jun 24 2016 22:53

and here is the "correct way" to clear an entire form:

<form id="form">
    <input id="input">
</form>
//document.getElementById('input').value = null; // sinlge input
document.getElementById('form').reset(); //all inputs

again this has the added action of removing the focus from the form (prevents double submissions)

Jonathan Herman
@lantech19446
Jun 24 2016 22:54
interesting
Mike
@dcpking
Jun 24 2016 22:55
Printed copy, Jonathan? Nope. It's all in a small USB plug located just behind his left ear :)
Jonathan Herman
@lantech19446
Jun 24 2016 22:55
lol
David Castner
@davidjcastner
Jun 24 2016 22:56
hah
Jonathan Herman
@lantech19446
Jun 24 2016 22:57
if only that were true and I could just download the knowledge about javascript lol David would be the giver
David Castner
@davidjcastner
Jun 24 2016 22:57
I am always learning new things, I think I will implement this at work starting monday
Jonathan Herman
@lantech19446
Jun 24 2016 22:57
btw @dcpking have you ever been so happy to be on this side of the pond as you are today?
David Castner
@davidjcastner
Jun 24 2016 22:58
you mean Britain leaving the EU?
Mike
@dcpking
Jun 24 2016 22:58
Total shock! First thought was "where are all the birth certs and all ... time to head down to D.C. and the Irish Embassy to get my citizenship !
David Castner
@davidjcastner
Jun 24 2016 22:59
@dcpking do you know how this affects citizenship, I was born in london and am a British/UK citizen too
Jonathan Herman
@lantech19446
Jun 24 2016 23:00
I'd assume since the UK and Britain still exist and Ireland is still a member of the UK you're both good, one of the upsides of not having an actual EU passport
Mike
@dcpking
Jun 24 2016 23:01
@davidjcastner Are you actually a citizen, or were you just born there? I don't believe the UK is a country where you get citizenship by birth (though I'll check)
@lantech19446 There isn't such a thing as a EU passport or citizenship
David Castner
@davidjcastner
Jun 24 2016 23:02
I have a UK passport, I'm a dual citizen since my parents lived there for 7 years
Jonathan Herman
@lantech19446
Jun 24 2016 23:02
right I'm saying it's a good thing there isn't
Mike
@dcpking
Jun 24 2016 23:03
Ah. Ok - you omitted that bit :) In that case you're a Brit unless youexplicitly renounce your citizenship
The Brexit will take about 2 years, so you can go and work in Europe at least for that long!
David Castner
@davidjcastner
Jun 24 2016 23:04
yea I forget the part about birth not counting sometimes, if i remember correctly it's residency and having another non blood related citizen vouch for you
Jonathan Herman
@lantech19446
Jun 24 2016 23:05
it sounds like they want them out faster, David Cameron was going to leave the exit to his successor and they basically said screw you guys we're starting now
Mike
@dcpking
Jun 24 2016 23:05
Ireland isn't part of the UK - Northern Ireland is, but the other 3/4 of the island is The Republic Of Ireland. A completely different country.
@davidjcastner Yep. But if you went far enough to get a passport then you are "in" ... make sure you keep the passport alid (renew it when needed)
BTW, good info here: http://www.marketplace.org/
David Castner
@davidjcastner
Jun 24 2016 23:08
alright, this might have an impact on my sister though, she's taking full advantage of the EU and has been working in Italy for almost 5 years now
@dcpking thanks that looks like a good place to start reading
Mike
@dcpking
Jun 24 2016 23:09
Well, there's no way of knowing what the effect on Brits in Europe will be - she's American too?
David Castner
@davidjcastner
Jun 24 2016 23:09
yea all my siblings and I are dual citizens
Jonathan Herman
@lantech19446
Jun 24 2016 23:09
good stuff someone else who listens to npr
Mike
@dcpking
Jun 24 2016 23:12
@lantech19446 :) @davidjcastner Out of a British population of 70 million, about 4.5 million live and work overseas, and about 1.5 million in Europe. I think I read somewhere that Britain has the highest proportion of people with passports who have travelled overseas of any country aside from places like Luxembourg, Singapore, and Andorra!
So there's going to be a lot of people in the same position as your sister, David
Mike
@dcpking
Jun 24 2016 23:19
(breaking news! Unicode Institute added 72 new things this week ...... what things?)
Lily Romano
@Lilyheart
Jun 24 2016 23:19
birds
Mike
@dcpking
Jun 24 2016 23:19
(Lily would know this, I'm shure!)
[you're here ??? ] nope
David Castner
@davidjcastner
Jun 24 2016 23:20
aren't they always adding new things?*
Mike
@dcpking
Jun 24 2016 23:20
@davidjcastner yes, but what?
Lily Romano
@Lilyheart
Jun 24 2016 23:20
BIRDS!
THREE OF 'ME
'EM
Mike
@dcpking
Jun 24 2016 23:20
There are some in there ...
Mike
@dcpking
Jun 24 2016 23:21
Apparently 72 new emojis! ........
(I said Lily would know!)
Mike
@dcpking
Jun 24 2016 23:23
They mentioned it on Marketplace Tech!
David Castner
@davidjcastner
Jun 24 2016 23:35
@dcpking Thanks I'll pass it onto to her, although I'm sure she's probably read way more into the situation that I have
Jonathan Herman
@lantech19446
Jun 24 2016 23:47
on a cool note about England though they get to play Iceland in the final game of euro 2016 though I might be a bit afraid, after their last win they took to the streets of Reykjavik and made offerings to Odin