These are chat archives for MontCode/GeneralChat

15th
Jun 2016
Lily Romano
@Lilyheart
Jun 15 2016 00:01
8:01! I can go to sleep now!
Michael Irwin
@dcpking_twitter
Jun 15 2016 00:01
Good night!
(I have to go now too - need to try to get my beast to boot properly and update itself )
Lily Romano
@Lilyheart
Jun 15 2016 00:03
I had switched to the laptop on the couch and I keep closing my eyes. Well, I was doing that at the desk too, so I made the desk taller so I’d have to stand.
Robert Maylie
@rmaylie9560
Jun 15 2016 00:07
Night lil
Jonathan Herman
@lantech19446
Jun 15 2016 00:12
hey @Lilyheart just one question pass a pen do we continue to work on the site after we give you the url?
Lily Romano
@Lilyheart
Jun 15 2016 00:14
Yup yup! Giving me the URL serves as “signing up” for the game. You work on it for I two weeks (don’t have the date in front of me.
Jonathan Herman
@lantech19446
Jun 15 2016 00:14
cool cool
Lily Romano
@Lilyheart
Jun 15 2016 00:16
I tweaked the first bullet on the flyer so it will be a bit clearer.
Jonathan Herman
@lantech19446
Jun 15 2016 00:17
awesome, now I just need an idea
Robert Maylie
@rmaylie9560
Jun 15 2016 00:20
What are you thinking John?
Jonathan Herman
@lantech19446
Jun 15 2016 00:20
not a clue, I have 2 other people sitting around me right now that I just asked for ideas lol
Lily Romano
@Lilyheart
Jun 15 2016 00:21
I’m sure you saw them already, but there are a few ideas at the bottom of the flyer as well.
Jonathan Herman
@lantech19446
Jun 15 2016 00:22
yea, just kinda want to do something original
Robert Maylie
@rmaylie9560
Jun 15 2016 00:26
Pink unicorns!
Lily Romano
@Lilyheart
Jun 15 2016 00:27
PURPLE UNICORNS
Jonathan Herman
@lantech19446
Jun 15 2016 00:27
lol my wife would second purple ones lol
Lily Romano
@Lilyheart
Jun 15 2016 00:27
it is the best color
It was surprising just how HARD it was coming up with that list at the bottom. I solicited help!
Jonathan Herman
@lantech19446
Jun 15 2016 00:29
lol
Dave Reaser
@reaser
Jun 15 2016 00:31
Sorry I missed the chat, daughter with fever very needy tonight.
Lily Romano
@Lilyheart
Jun 15 2016 00:31
So sorry to hear that Dave. Many of us never leave the chat room, so it’s never to late!
Jonathan Herman
@lantech19446
Jun 15 2016 00:32
hope she's doing better, having a fever sucks when you're young
Lily Romano
@Lilyheart
Jun 15 2016 00:32
I’ll repost the only announcement type thing that happened tonight.
At the meetup last week I started to introduce a new event. Afterwards I was not feeling well so I didn't get a change to put together the post for the Facebook group. I have regrouped and reposted the event with new dates. http://montco.de/pass-a-pen-rules-1
Untitled.png
All Skill Levels Welcome
Dave Reaser
@reaser
Jun 15 2016 00:35
Thanks, I have left the chat open for the most part as well. I'll catch up on the reading
Robert Maylie
@rmaylie9560
Jun 15 2016 00:35
She throwing up Dave?
purple is definitely a better call.
Dave Reaser
@reaser
Jun 15 2016 00:38
Nope just a fever at this point, went away most of the day and just came back around dinner.
Robert Maylie
@rmaylie9560
Jun 15 2016 00:40
Bummer, maybe tommorow will be a better day for her.
And a revised idea. The cultural differences between pink vs purple unicorns.
Jonathan Herman
@lantech19446
Jun 15 2016 00:46
lol
Robert Maylie
@rmaylie9560
Jun 15 2016 01:27
Found a few cool sites. https://www.hackerearth.com Annnnnd
hold on gotta copy
Annnnnnnnnd
Lily Romano
@Lilyheart
Jun 15 2016 01:46
I’ll have to find it. Posted several of these in the MCCC group.
Robert Maylie
@rmaylie9560
Jun 15 2016 01:56
I must of completely missed it. Have you considered compiling a list of cool sites and post it to MONCODES fb?
maybe by catergory
Dave Reaser
@reaser
Jun 15 2016 01:57
Could even add a file that gets revised via FB group if that would be easier
Lily Romano
@Lilyheart
Jun 15 2016 01:57
Eventually there will be on the website once we have a website xD I post all cool links that would benefit MontCoders to the facebook as soon as I find it.
David Castner
@davidjcastner
Jun 15 2016 01:57
Hey @Lilyheart do you know of any tools for in depth github contributions?
Robert Maylie
@rmaylie9560
Jun 15 2016 01:59
Ahhh awesome idea Dave
Lily Romano
@Lilyheart
Jun 15 2016 02:01
I’ve not had luck with Facebook files. They are a great idea but then nobody maintains them or looks at them so it ends up a waste of effort. But that has just been my past XP. It’s just not the place people think to go to look for the answer to a question.
David Castner
@davidjcastner
Jun 15 2016 02:01
@rmaylie9560 I need a way to visualize contributions to show my boss. And the amount of lines of code, under the graph tab, is not an accurate way of showing that
Lily Romano
@Lilyheart
Jun 15 2016 02:01
@davidjcastner you mean something that explains pull requests and the like?
ooooh
ummm..
David Castner
@davidjcastner
Jun 15 2016 02:01
@Lilyheart I need something that shows who wrote what code
Lily Romano
@Lilyheart
Jun 15 2016 02:01
lemme peek
David Castner
@davidjcastner
Jun 15 2016 02:02
I'm just searching on google right now for tools
Lily Romano
@Lilyheart
Jun 15 2016 02:02
more than what the contributor’s page shows?
David Castner
@davidjcastner
Jun 15 2016 02:03
yes, those numbers are not accurate because if you include a library in your repo in counts those lines
they should of been in the gitignore file but no
Lily Romano
@Lilyheart
Jun 15 2016 02:04
true. I’m not sure what there would be for that as whatever tool it is would need to analyze every commit no?
David Castner
@davidjcastner
Jun 15 2016 02:04
yes it would which is tracked by github
I'll send to a private screenshot of what I mean
like this?
Lily Romano
@Lilyheart
Jun 15 2016 02:08
If they used the pushed version of RSS it would be called the PubSubHubbub pubnub.
David Castner
@davidjcastner
Jun 15 2016 02:09
lol
Lily Romano
@Lilyheart
Jun 15 2016 02:20
@rmaylie9560 looks like it only gets realtime information, not backdated as far as my sleepy brain has figured.
it’s a webhook which notifies on new things.
Robert Maylie
@rmaylie9560
Jun 15 2016 03:30
Hey How do i use filter() with isNaN(array). I need to filter out NaN values, but i cant get it to make the exception for text values... if that makes sense
David Castner
@davidjcastner
Jun 15 2016 03:33
arr.filter(function (item) { return isNumber(item); })
Robert Maylie
@rmaylie9560
Jun 15 2016 03:35
im filtering the actual keyword NaN
in that FCC challenge "Falsy Bouncer"
David Castner
@davidjcastner
Jun 15 2016 03:36
Where isNumber is function to test if not a number
This message was deleted
Or just return item;
Robert Maylie
@rmaylie9560
Jun 15 2016 03:38
Ooooooh i see...
lemme try
David Castner
@davidjcastner
Jun 15 2016 03:39
The value of the return on a filter is checked for truthyness or whatever it's called
I'm on my phone but i can take a better look tomorrow morning on my laptop
Robert Maylie
@rmaylie9560
Jun 15 2016 03:40
no worries, thanks for the help dave
Robert Maylie
@rmaylie9560
Jun 15 2016 03:55
typeof "string" did the trick
  return arr.filter(function(array){return array !== "" && array !== false && array !== null && (typeof "number"&& array) && typeof "string" && array !== undefined && array !== 0;});
Lily Romano
@Lilyheart
Jun 15 2016 04:55
short answer
  return arr.filter(function(val){return val;});
Robert Maylie
@rmaylie9560
Jun 15 2016 10:42
Whaaaaaaaat?!?! You're kidding me😩
Can you explains please...
David Castner
@davidjcastner
Jun 15 2016 13:17

@rmaylie9560 This site explains what truthy and falsy values are https://www.sitepoint.com/javascript-truthy-falsy/ .

filter() calls a provided callback function once for each element in an array, and constructs a new array of all the values for which callback returns a value that coerces to true. callback is invoked only for indexes of the array which have assigned values; it is not invoked for indexes which have been deleted or which have never been assigned values. Array elements which do not pass the callback test are simply skipped, and are not included in the new array. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter

In basic terms filter is looking for a function that runs a test on each element, in @Lilyheart 's case she used the variable val. I used item but it can be called whatever you want, the function function(val){return val;} will be called with each element in the array as the first argument. Filter is going to look for a falsy or truthy value. Since the challenge was to find a truthy value returning the element itself is enough. If it was truthy it would pass the test. If it was falsy, it would fail the test. Does that make sense?

Lily Romano
@Lilyheart
Jun 15 2016 13:36
@rmaylie9560 I fall victim of overcomplicate-itis many many times as well. I hope you didn’t mind me point it out. I found that, for me, finding out where I overcomplicate things helps to to recognize it sooner so that I catch it before it goes “live”. Many time now I still write it out, but I always step back and see if anything can be streamlined.
Lily Romano
@Lilyheart
Jun 15 2016 14:22
Unrelated to tech: Does anyone here know about geocaching? I have a tracker out in the wild that recently crossed the 15k mile mark. Too exciting https://www.geocaching.com/track/details.aspx?id=4189394
Jonathan Herman
@lantech19446
Jun 15 2016 14:22
I have the app but never get the time to go hunting
Lily Romano
@Lilyheart
Jun 15 2016 14:25
I haven’t been in over a year (maybe two at this point) but I’m hoping to get back to it after I make some progress on this house.
Jonathan Herman
@lantech19446
Jun 15 2016 14:25
Nice
Robert Maylie
@rmaylie9560
Jun 15 2016 14:51
I love critism lil. No worries, thank you. It's how people improve. What would I learn if you said. Cool, good job?
so filter() has a default constructor that rejects falsely values?
I was under the assumption that the callback had to be manually defined.
Lily Romano
@Lilyheart
Jun 15 2016 14:55
This is a valid manually defined function.
function test(val) {
   return val;
}
That is the function that is wrapped inside filter.
filter then wraps whatever is returned in it’s callback function (the case above, the value) in an if statement.
Robert Maylie
@rmaylie9560
Jun 15 2016 14:59
And it filters out NaN, 0, undefined ect automatically?
Lily Romano
@Lilyheart
Jun 15 2016 15:00
Sorry, slow typing, still typing you info!
David Castner
@davidjcastner
Jun 15 2016 15:01

@rmaylie9560 yes, basically it does this

var myFilterFunction = function (val) {
    // val is the element in the array
    return val; // <-- just returning the element in the array
};

arr.filter(myFilterFunction); // <-- running the filter

// same as arr.filter(function(val){return val;});

// pseudo code
// this is what filter is doing in the background

Array.prototype.filter = function(filterFunction) {
    var arr = this; //<-- this is the array
    var newArr = [];
    for (var i = 0; i < arr.length; i++) {
        if(filterFunction(arr[i])) {
            newArr.push(arr[i]);
        }
    }
    return newArr;
};

which is it only includes items with truthy values

Lily Romano
@Lilyheart
Jun 15 2016 15:01
Open your java console and type if (0) {console.log("true");} else {console.log("false");} and you will get false, because 0 is falsey
Open your java console and type if (NaN) {console.log("true");} else {console.log("false");} and you will get false, because NaN is falsey
Open your java console and type if (5) {console.log("true");} else {console.log("false");} and you will get true, because 5 is truthy
The “boolean” portion of an if statement can be urnary.
David Castner
@davidjcastner
Jun 15 2016 15:04
you can also run
var myVar;
console.log(!!myVar); //this will tell you what is a truthy val or a falsy val
//it works because ! (not) is a logical operator and converts into a boolean
Robert Maylie
@rmaylie9560
Jun 15 2016 15:04
wow!
Lily Romano
@Lilyheart
Jun 15 2016 15:05
David’s is the faster less explict way!
Robert Maylie
@rmaylie9560
Jun 15 2016 15:07
So my code was pointless, all it did was bypass the default value that was doing the same thing more efficiently.
David Castner
@davidjcastner
Jun 15 2016 15:09
@rmaylie9560 when javascript is looking for a boolean and a non boolean is given, it tries to convert into a boolean using the rules that it describes as truthy and falsy. Sadly falsy and truthy are actual technical terms when it comes to javascript
Lily Romano
@Lilyheart
Jun 15 2016 15:11
most normal uses we would use the callback function in filter to return a true or false at that level, but it’s not necessary. As you can see in David’s larger callback, the prototype of filter does the boolean after returning the value.
David Castner
@davidjcastner
Jun 15 2016 15:17

you can also run

var myVar;
console.log(!!myVar); //this will tell you what is a truthy val or a falsy val
//it works because ! (not) is a logical operator and converts into a boolean

Sorry the code above is a bad way of doing it.

Should actually be doing this:

var myVar;
console.log(Boolean(myVar)); // this actually converts to a boolean based upon what it describes as truthy and falsy
Lily Romano
@Lilyheart
Jun 15 2016 15:17
oooooooh boolean… that’s a sexy way of doing it.
David Castner
@davidjcastner
Jun 15 2016 15:18
I believes that's what it runs on the input of an if statement anyways
Lily Romano
@Lilyheart
Jun 15 2016 15:19
that sounds truthy to me!
David Castner
@davidjcastner
Jun 15 2016 15:20
lol
Lily Romano
@Lilyheart
Jun 15 2016 15:23
I have zero motivation today
Jonathan Herman
@lantech19446
Jun 15 2016 16:28
you're not the only one. I'm troubleshooting a computer that seems to only have issues when it's downstairs
Lily Romano
@Lilyheart
Jun 15 2016 16:30
That is one of the worst
Jonathan Herman
@lantech19446
Jun 15 2016 16:31
I've streamed 25 minutes of youtube videos continuously without an issue but down there it freezes every chance it gets, it's irksome to say the least
Lily Romano
@Lilyheart
Jun 15 2016 16:32
different network? ip address? etc?
Jonathan Herman
@lantech19446
Jun 15 2016 16:32
nope same network same subnet on a dhcp reservation, only differences are the physical port
Lily Romano
@Lilyheart
Jun 15 2016 16:33
If you are still fighting with it tonight, I can ask my roommate. He has been studing for his network certifications.
Jonathan Herman
@lantech19446
Jun 15 2016 16:35
if i'm still fighting it tonight i'm going to set it back downstairs logging every communication it sends and receives to make sure it isn't the physical cable in the wall. I've been the sys admin here for 8yrs and some of these problems were getting now are so ghost that i'm not sure it could be anything else
Lily Romano
@Lilyheart
Jun 15 2016 16:35
spooky! :ghost:
Jonathan Herman
@lantech19446
Jun 15 2016 16:44
yea lol
I think I need to code a page about AR-15's lol i'm so sick of having these arguments with people
David Castner
@davidjcastner
Jun 15 2016 16:51
Jonathan Herman
@lantech19446
Jun 15 2016 16:52
there isn't much the onion can do that i won't laugh at but I still miss satirewire
David Castner
@davidjcastner
Jun 15 2016 16:55
Idk why but this is my favorite one, its not funny and it's terrible, but I just can't help it, I crack up every time https://www.youtube.com/watch?v=cQ7J7UjsRqg
Jonathan Herman
@lantech19446
Jun 15 2016 16:55
lol
David Castner
@davidjcastner
Jun 15 2016 16:58
@lantech19446 that's great!
Jonathan Herman
@lantech19446
Jun 15 2016 16:59
there was another one I used to love on there too but i can't think of what it was
as i'm reading that artical it's not like the point is lost but i just keep thinking to myself, the worse our choices get at election time the worse this issue is going to get. Gun sales almost quadrupled over Obama's presidency how many of them were people who said I'll never own a gun but then decided that they didn't like the direction the country was going...I remember a poll about 4yrs ago where 30% of the people polled said they thought armed revolution would become absolutely necessary before their lives were over
Jeff Fritz
@csharpfritz_twitter
Jun 15 2016 17:42
@dcpking_twitter sorry about that - my code for WIntellectNow is "FRITZ-2016" -- anyone can use that to get the free hours of content deal
Jonathan Herman
@lantech19446
Jun 15 2016 17:43
yay! you're back lol, it's like a bad cliff hanger when you leave Jeff
Jeff Fritz
@csharpfritz_twitter
Jun 15 2016 17:45
lol.. I can't stay connected on Gitter -- too many communication things distract me.
Jonathan Herman
@lantech19446
Jun 15 2016 17:48
o ok
Jonathan Herman
@lantech19446
Jun 15 2016 17:57
@Lilyheart I think i'm inheriting your lack of motivation
Lily Romano
@Lilyheart
Jun 15 2016 18:00
Nope! Still have all of it :D
Jonathan Herman
@lantech19446
Jun 15 2016 18:07
lol
Jonathan Herman
@lantech19446
Jun 15 2016 18:17
are you also at that point where the lack of motivation means looking at chat, seeing no conversation but not really having the energy to start one either lol
David Castner
@davidjcastner
Jun 15 2016 18:17
let's talk automatic deployment!
Jeff Fritz
@csharpfritz_twitter
Jun 15 2016 18:18
Continuous Deployment?
David Castner
@davidjcastner
Jun 15 2016 18:18
@csharpfritz_twitter yes
Jeff Fritz
@csharpfritz_twitter
Jun 15 2016 18:18
That's a very fun approach, but feels risky for conservative organizations
David Castner
@davidjcastner
Jun 15 2016 18:19
first one to get a node.js server automatically deployed to an aws instance upon a pull request on github wins
any takers on this challenge?
Jeff Fritz
@csharpfritz_twitter
Jun 15 2016 18:20
ha!
I can do it with Azure in less than a minute
David Castner
@davidjcastner
Jun 15 2016 18:20
it will be fun :sparkles:
Jeff Fritz
@csharpfritz_twitter
Jun 15 2016 18:20
... because there are deployment hooks in Azure for GitHub
David Castner
@davidjcastner
Jun 15 2016 18:21
@csharpfritz_twitter does Azure have ubuntu servers?
Jeff Fritz
@csharpfritz_twitter
Jun 15 2016 18:22
Sure does...
Docker orchestration too
Hmm... sounds like a topic I could run a talk on: Getting Started with Azure
David Castner
@davidjcastner
Jun 15 2016 18:23
hmm... very tempting perhaps next project unfortunately part of my project in tided into aws infrastructure atm
oh that sounds fantastic!
Jeff Fritz
@csharpfritz_twitter
Jun 15 2016 18:23
No worries..
David Castner
@davidjcastner
Jun 15 2016 18:24
aws has codepipeline which is suppose to have webhooks, but I haven't looked too into it very much yet, but I'm going to over the next couple days
Jonathan Herman
@lantech19446
Jun 15 2016 18:27
and totally missed all this lol, @csharpfritz_twitter do you know a lot about AWS?
Jeff Fritz
@csharpfritz_twitter
Jun 15 2016 18:27
Its been a while since I've done AWS... I should spend more time with it
but Azure? I know it VERY well
Jonathan Herman
@lantech19446
Jun 15 2016 18:29
I'm just trying to find someone who can put the free account into perspective. The last time I looked at it Amazon explained it in such a conveluded way I couldn't be sure I wouldn't be on the hook for billing
David Castner
@davidjcastner
Jun 15 2016 18:32
TL;DR -> AWS free tier is free for small scale testing for about a year
@lantech19446 after that it depends on the scale of what you are doing. AWS lets you do a lot of stupid stuff, so if you're not paying attention or don't shutdown services after using them it can cost a lot. But if you manage it well it's relatively cheap
Jonathan Herman
@lantech19446
Jun 15 2016 18:39
the fact that it's only free for a year makes it a little less attractive, I thought there was a permanent free account.
David Castner
@davidjcastner
Jun 15 2016 18:40
the account itself is free
it provides various services for a limited time or usage
it varies from tool to tool
Jonathan Herman
@lantech19446
Jun 15 2016 18:41
yea I'd be looking for something that stayed free
David Castner
@davidjcastner
Jun 15 2016 18:41
but for servers it's one year
what are you looking to do?
for client-only apps (also referred to static websites, or front-end only) there are lots of services that are free
such as gh-pages
but in the server market I don't any good ones that are completely free
Jonathan Herman
@lantech19446
Jun 15 2016 18:46
I'd be looking to mess around with servers, even if I change career fields I want to be able to mess around with stuff like that
maybe google will build a competitor eventually lol
its the compute engine not the app engine
Jonathan Herman
@lantech19446
Jun 15 2016 19:03
looks like they got rid of the light usage option
Robert Maylie
@rmaylie9560
Jun 15 2016 19:39
I am still in awe about our filter convo this morning. Is it ok to run a few other previous problems past you guys to see how I could of done them more efficiently?
Dave Reaser
@reaser
Jun 15 2016 19:46
What kind of server are you looking for?
Hosting? or something else
Lily Romano
@Lilyheart
Jun 15 2016 19:47
@rmaylie9560 of course! You can also stalk our FCC pages and see how we did it and just ask if you have questions.
@lantech19446 If you are just wanting a server to use while learning and not host live code for the world to use, I recommend cloud9
Jonathan Herman
@lantech19446
Jun 15 2016 19:56
I really just want a server I can mess around with not just for code
David Castner
@davidjcastner
Jun 15 2016 20:07
@rmaylie9560 this chat is made exactly for that purpose
Lily Romano
@Lilyheart
Jun 15 2016 20:09
@lantech19446 if you are looking for something free that is not stored inhouse, then you may have to go to different places for different purposes. No one stop shopping without cost that I'm aware of.
Jonathan Herman
@lantech19446
Jun 15 2016 20:18
used to be able to find stuff like that but i think most of them got knocked out by aws
David Castner
@davidjcastner
Jun 15 2016 20:21
aws is really cheap for experimenting because you pay an hourly fee, so you can start a server, play with it, and then brutally murder it out of existence. And you only pay for the hours it was happy and alive, which is at the low price of $0.0065 per hour for the smallest instance. A whole month cost less than $5
Jonathan Herman
@lantech19446
Jun 15 2016 20:32
ok so maybe i'll put aside like 25 or 50 dollars and mess with it
Lily Romano
@Lilyheart
Jun 15 2016 20:54
why is it so much work to put a pillow in a pillow case. ugh
And, why do I need so many pillows on my bed!
Jonathan Herman
@lantech19446
Jun 15 2016 20:56
I have 4 on my side, johanna only needs 1 I ask myself all the time if there isn't a better way
Lily Romano
@Lilyheart
Jun 15 2016 20:58
Ha! I sleep with 1, use 2 when I’m on the laptop in bed… and have 6 (not counting the cutsie little ones).
Jonathan Herman
@lantech19446
Jun 15 2016 20:58
oi
Lily Romano
@Lilyheart
Jun 15 2016 20:59
The little ones are actually shoved somewhere at the moment… balancing a stack of boxes...
Jonathan Herman
@lantech19446
Jun 15 2016 20:59
lol
Lily Romano
@Lilyheart
Jun 15 2016 21:02
Best way to describe my house. It's boxes all the way down.
Jonathan Herman
@lantech19446
Jun 15 2016 21:25
nice
Lily Romano
@Lilyheart
Jun 15 2016 21:41
I'm going through the Colt Steele udemy bootcamp. To explain a concept he goes to reddit to show how they are doin' something (dunno why yet, I paused the video). Before going into the lesson he says "For those of you who aren't familiar with reddit, I highly recommend you avoid it all costs. Don't listen to what I'm about to say, you will lose all productivity in your life".
Jonathan Herman
@lantech19446
Jun 15 2016 21:51
lol