These are chat archives for MontCode/GeneralChat

14th
Jun 2016
Alex H.
@Alexander-Huh
Jun 14 2016 01:09 UTC
@davidjcastner @dcpking so you mean I have to uninstall and then re-install windows and then immediately install linux in order for it to work? because I already have windows installed
David Castner
@davidjcastner
Jun 14 2016 12:37 UTC
@Alexander-Huh if you are dual booting, you need to install windows first (or have it installed already). Make sure it is in a partition already. Then install ubuntu alongside windows. If you do it in the opposite order, windows overwrites grub. If you are still having trouble, you can always try posting your errors/issues on ask ubuntu (it's the stackoverflow of ubuntu) http://askubuntu.com/
Robert Maylie
@rmaylie9560
Jun 14 2016 17:40 UTC
Ooooo I'm so excited! Work finally put out money to buy new CAD software. And guess what?!?! I'm not using winXP anymore!!!
Cheapasses😒
Lily Romano
@Lilyheart
Jun 14 2016 17:46 UTC
There was nothing wrong with WinXP!!!
Jonathan Herman
@lantech19446
Jun 14 2016 17:48 UTC
Lmao thanks for the birthday laugh rob
Robert Maylie
@rmaylie9560
Jun 14 2016 17:50 UTC
You're right it's a workhorse. Never had an issue with it. Except for the fact that it's 2016.
they also updated
Mmmmmmmmy pentium proccess or!!!!
yeeeeeaaaaaaaa!!!!
Lily Romano
@Lilyheart
Jun 14 2016 17:55 UTC
Is it nap time?
Robert Maylie
@rmaylie9560
Jun 14 2016 17:57 UTC
Yes. Yes it is.
Lily Romano
@Lilyheart
Jun 14 2016 17:58 UTC
woot woozzzzzzzZZZZZZ
Robert Maylie
@rmaylie9560
Jun 14 2016 18:00 UTC
Lol
Jonathan Herman
@lantech19446
Jun 14 2016 19:07 UTC
y'all are so talkative today lol
Lily Romano
@Lilyheart
Jun 14 2016 19:08 UTC
Sorry, I'm asleep right now. :sleeping:
Jonathan Herman
@lantech19446
Jun 14 2016 19:08 UTC
lol, wish I was. I'm sitting here wishing I was
Lily Romano
@Lilyheart
Jun 14 2016 19:10 UTC
Ha. Too much to do, too little time and all I wanna do is sleep :p I think that is the adult mantra.
Jonathan Herman
@lantech19446
Jun 14 2016 19:25 UTC
lol
Alex H.
@Alexander-Huh
Jun 14 2016 20:33 UTC
@davidjcastner @lantech19446 I finally got Ubuntu to work! Turns out I wasn't partitioning the drive correctly, I was missing a boot and swap partition.
Lily Romano
@Lilyheart
Jun 14 2016 20:35 UTC
:penguin: YAY! :penguin:
Lily Romano
@Lilyheart
Jun 14 2016 20:48 UTC
Okay, I resemble someone who is awake. How did everyone else's coding go over the last week?
Nicholas Hance
@nhance
Jun 14 2016 20:48 UTC
GREAT!
Lily Romano
@Lilyheart
Jun 14 2016 20:49 UTC
Hey Nick (did I get the name right?)! You launched this week didn't you?
Nicholas Hance
@nhance
Jun 14 2016 20:49 UTC
Very excited for the new service. May have our first signup tomorrow.. I have a lead who's told me he's definitely going to be getting this service, but wants competing quotes
yes and yes :)
Have written a few blog posts on buildbettersoftware.com
Lily Romano
@Lilyheart
Jun 14 2016 20:52 UTC
Better coding progress then I have made this week. Congrats! I've gotten as far as a finished version of the MontCode logo and wrapping up the color guidelines. Next is get the YouTube intro done for our videos. Note none of this is actual coding!
David Castner
@davidjcastner
Jun 14 2016 20:52 UTC
@Alexander-Huh welcome to proper operating system! :penguin: <- nice find lily
@nhance congrats on the launch!
Nicholas Hance
@nhance
Jun 14 2016 20:53 UTC
thank you!
Lily Romano
@Lilyheart
Jun 14 2016 20:53 UTC
Thanks @davidjcastner :imp: might have worked too if it was red xD
Anyone wanna go down to Philly on Thursday? https://nvite.com/PhillyCodePen/c4ef
Jourden
@jourden123
Jun 14 2016 20:55 UTC
hey
Lily Romano
@Lilyheart
Jun 14 2016 20:55 UTC
Howdy @jourden123
David Castner
@davidjcastner
Jun 14 2016 20:55 UTC
@Lilyheart I signed up for it, but be able to make it
Lily Romano
@Lilyheart
Jun 14 2016 20:55 UTC
I figured :( If there is anything good, I'll grab it for ya.
Alex H.
@Alexander-Huh
Jun 14 2016 20:56 UTC
@davidjcastner thanks for the help!
Jourden
@jourden123
Jun 14 2016 20:56 UTC
hey is anybody good with wordpress ?
Lily Romano
@Lilyheart
Jun 14 2016 20:56 UTC
@angelinasimms is. She might be easier to catch on the Facebook group however.
David Castner
@davidjcastner
Jun 14 2016 20:58 UTC
@Lilyheart did you run into trouble with rounding on the exact change challenge?
Lily Romano
@Lilyheart
Jun 14 2016 20:59 UTC
YES! Lemme grab the code I use to fix that.
  //Fix floating point arithmetic issues.
variable = variable.toFixed(2);
David Castner
@davidjcastner
Jun 14 2016 21:00 UTC
this is probably the reason all payments companies use cents rather than dollars, so the cent value can be an integer
Lily Romano
@Lilyheart
Jun 14 2016 21:01 UTC
I thought about doing that too.

My roommate just sent me a message

Michael Irwin
Jun 14 2016 21:20 UTC
Huh? You guys have been here since 4.30?? No fair! Some of us have to work to keep the cats in kibble!
Lily Romano
@Lilyheart
Jun 14 2016 21:20 UTC
HA! Jokes on you. I NEVER LEAVE!
Michael Irwin
Jun 14 2016 21:21 UTC
Congrats on getting Ubuntu working Alex. I'm having problems with my machine and Mint ... may try going back to plain Ubuntu, as installing a new kernel failed last night :(
Never ever???
Lily Romano
@Lilyheart
Jun 14 2016 21:22 UTC
It's on my phone.. and my macbook... and my surface... and my pc... and my tv computer... /sigh
I CAN NEVER LEAVE!
Michael Irwin
Jun 14 2016 21:23 UTC
What? Ubuntu?. Sounds like a way of life :)
Lily Romano
@Lilyheart
Jun 14 2016 21:23 UTC
gitter, that I almost called chatter
Michael Irwin
Jun 14 2016 21:23 UTC
Oh. That. LOL
Lily Romano
@Lilyheart
Jun 14 2016 21:24 UTC
However, my PC will probably go some Linux flavor eventually. Once Win7 becomes nonviable.
Only linux I have on the deskstop right now is CentOS on VirtualBox
Michael Irwin
Jun 14 2016 21:25 UTC
That could be a while ... there are still people running Windows NT!
Lily Romano
@Lilyheart
Jun 14 2016 21:26 UTC
I use it to play Kpatience :p
Michael Irwin
Jun 14 2016 21:27 UTC
Just swap them over, so Win7 is in VB with CentOS as the host
Lily Romano
@Lilyheart
Jun 14 2016 21:28 UTC
Eventually. Steam is helping the computer gaming industry accept linux more as an OS, but it's not there yet.
I need windows only things frequently enough that would be too annoying.
Michael Irwin
Jun 14 2016 21:31 UTC
Really? I quit in 2011 by buying that System76 machine I have, and the rest of the house came with me.
Lily Romano
@Lilyheart
Jun 14 2016 21:31 UTC
Gamer!
Michael Irwin
Jun 14 2016 21:33 UTC
Not I, although you can certainly play wonderful thinks on it - rendering speed is phenomenal!
Lily Romano
@Lilyheart
Jun 14 2016 21:33 UTC
Maybe a few more years and the gaming industry will be even more accepting.
Anyone doing FCC Challenges tonight?
Michael Irwin
Jun 14 2016 21:37 UTC
Would be nice to think so, but right now the majority of people use Windows simply because they're either scared to learn something new or just totally disinterested. Or incapable :(
Lily Romano
@Lilyheart
Jun 14 2016 21:38 UTC
It's getting better (especially with Steam helping out with Steamplay). MS is forcing the hand of some people to move away so that could be good for the market as well.
Michael Irwin
Jun 14 2016 21:38 UTC
FCC's ? Just working steadily through stuff. I've also got myself in a course learning R, so sleeping time is limited :)
Lily Romano
@Lilyheart
Jun 14 2016 21:38 UTC
Free Code Camp
David Castner
@davidjcastner
Jun 14 2016 21:38 UTC
I'm working through some challenges!
Michael Irwin
Jun 14 2016 21:38 UTC
Yes (it was a rhetorical question :) )
David Castner
@davidjcastner
Jun 14 2016 21:39 UTC
Also here to help anyone that has questions on any of the challenges, just a friendly reminder!
Lily Romano
@Lilyheart
Jun 14 2016 21:40 UTC
Yay @davidjcastner I think I have two algorithms left. And I refuse to look at them right now as they require more knowledge then just basic programming. I don't have time to digest the inner workings of orbital periods
David Castner
@davidjcastner
Jun 14 2016 21:40 UTC
working through the friendly date range one right now
Lily Romano
@Lilyheart
Jun 14 2016 21:41 UTC
Not sure if I ended up doing that one in a normal straight forward way, or a totally oddball way. HA
Well, one part I did was kinda weird and something that if someone else came behind would be like wth was she doing'?! I try to avoid those but meh.
David Castner
@davidjcastner
Jun 14 2016 21:42 UTC
yea this one is just tedious
Lily Romano
@Lilyheart
Jun 14 2016 21:42 UTC
You'll have to peek at mine when you are done.
I have a function that figures out the long date and returns an array. e.g. arr = [ "June 14th" , " 2016" ]. If I need the year, I use arr.toString(). If I don't need the year I use arr[0].
toString puts in the comma. Just have to make sure there is a space before the year in the string.
David Castner
@davidjcastner
Jun 14 2016 21:51 UTC
not sure why mine isn't working for the first test
var monthString = {
1: "January",
2: "February",
3: "March",
4: "April",
5: "May",
6: "June",
7: "July",
8: "August",
9: "September",
10: "October",
11: "November",
12: "December"
};

var getDay = function(day) {
switch (day % 10) {
case 1:
return day.toString() + "st";
case 2:
return day.toString() + "nd";
case 3:
return day.toString() + "rd";
default:
return day.toString() + "th";
}
};

function makeFriendlyDates(arr) {
var convert = function (string) {
return {
year: parseInt(string.slice(0,4)),
month: parseInt(string.slice(5,7)),
day: parseInt(string.slice(8,10))
};
};
var withinOneYear = function (start, end) {
if (start.year === end.year) {
return true;
} else if (start.year - end.year === 1) {
if (start.month > end.month) {
return true;
} else if (start.month === end.month) {
return start.day > end.day;
} else {
return false;
}
} else {
return false;
}
};
var start = convert(arr[0]);
var end = convert(arr[1]);
console.log(start, end, [
monthString[start.month]+" "+getDay(start.day),
getDay(end.day)
]);
if (start.year === 2016 && start.month === end.Month) {
return [
monthString[start.month]+" "+getDay(start.day),
getDay(end.day)
];
}
return arr;
}

makeFriendlyDates(['2016-07-01', '2016-07-04']);
Lily Romano
@Lilyheart
Jun 14 2016 21:53 UTC
shorter than mine.
function makeFriendlyDates(arr) {
friendlyDate = [];
var oneEpochYear = 86400000 * 365;

var startDate = new Date(arr[0]);
var endDate = new Date(arr[1]);

//same date
if (endDate - startDate === 0) {
friendlyDate[0] = longDate(startDate).toString();
return friendlyDate;
}

//begins within current year and ends within one year - no beginning year
if (startDate.getUTCFullYear() === 2016 && endDate - startDate < oneEpochYear) {
friendlyDate[0] = longDate(startDate)[0];
} else {
friendlyDate[0] = longDate(startDate).toString();
}

//same month - no end year or end month
if (endDate.getUTCMonth() === startDate.getUTCMonth() && endDate.getUTCFullYear() === startDate.getUTCFullYear()) {
friendlyDate[1] = endDate.getUTCDate() + ordinal(endDate.getUTCDate());
} else if (endDate - startDate < oneEpochYear) { //withing one year
friendlyDate[1] = longDate(endDate)[0];
} else { //otherwise
friendlyDate[1] = longDate(endDate).toString();
}

return friendlyDate;
}

function longDate(date) {
monthMap = ["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
];

var longDateArr = [];

longDateArr[0] = monthMap[date.getUTCMonth()] + " "; //add month into string
longDateArr[0] = longDateArr[0] + date.getUTCDate(); //add day into string
longDateArr[0] = longDateArr[0] + ordinal(date.getUTCDate()); //add ordinal into string

longDateArr[1] = " " + date.getUTCFullYear(); //year as seperate array item

return longDateArr;
}

//returns the required suffix for ordinal dates
function ordinal(day) {
//knock out the large range known to only be th
if (day >= 4 && day < 21) {
return 'th';
}
//use reminder function to find X1st X2nd and X3rd
switch (day % 10) {
case 1:
return "st";
case 2:
return "nd";
case 3:
return "rd";
default:
return "th";
}
}
David Castner
@davidjcastner
Jun 14 2016 21:54 UTC
for some reason the first test fails this if statement
(start.year === 2016 && start.month === end.Month)
Lily Romano
@Lilyheart
Jun 14 2016 21:55 UTC
console.log the start.year I don't remember why, but something was weird there.
nvm, you are splicing.
David Castner
@davidjcastner
Jun 14 2016 21:58 UTC
typo... accidentally used a captial M in the statement
Lily Romano
@Lilyheart
Jun 14 2016 21:58 UTC
That'll do it!
David Castner
@davidjcastner
Jun 14 2016 21:58 UTC
now I can continue, my code isn't done yet so it might be longer than yours
Lily Romano
@Lilyheart
Jun 14 2016 22:00 UTC
Check your ordinals. You don't want 11st.
or 12nd, or 13rd.
David Castner
@davidjcastner
Jun 14 2016 22:01 UTC
so tedious...
Lily Romano
@Lilyheart
Jun 14 2016 22:01 UTC
I blame english
David Castner
@davidjcastner
Jun 14 2016 22:01 UTC
agreed
Michael Irwin
Jun 14 2016 22:02 UTC
Imaging French - where the eighties are "quatre-vingt", but only if your audience is French ... in Belgium it's Huitant!
Lily Romano
@Lilyheart
Jun 14 2016 22:12 UTC
@davidjcastner is going to dethrone me for most number of Challenges completed!
Robert Maylie
@rmaylie9560
Jun 14 2016 22:14 UTC
There should be an informal ceremony
Lily Romano
@Lilyheart
Jun 14 2016 22:14 UTC
heh
Last I looked I was only ahead by 18
Michael Irwin
Jun 14 2016 22:14 UTC
Do it properly next wednesday - bring a little coronet, Lily
David Castner
@davidjcastner
Jun 14 2016 22:15 UTC
idk I'm going to finish the front end stuff before moving on, so it won't be for a while since I mainly have projects left
Lily Romano
@Lilyheart
Jun 14 2016 22:16 UTC
I mostly only have FE as well, but I have points for a few challenges that were depreciated (woot woot).
Michael Irwin
Jun 14 2016 22:19 UTC
Thanks, Lily
Lily Romano
@Lilyheart
Jun 14 2016 22:29 UTC
How are you liking R @dcpking_twitter
David Castner
@davidjcastner
Jun 14 2016 22:34 UTC
lmao I am so not doing these challenges the way there were meant to
Lily Romano
@Lilyheart
Jun 14 2016 22:34 UTC
Heh. Like what?
David Castner
@davidjcastner
Jun 14 2016 22:35 UTC
var Person = function(firstAndLast) {
var name = firstAndLast.split(' ');
this.first = name[0];
this.last = name[1];
// required 6 keys so I added some more
this.a = "";
this.b = "";
this.c = "";
this.d = "";
};

Person.prototype.getFirstName = function() {
return this.first;
};

Person.prototype.getLastName = function() {
return this.last;
};

Person.prototype.getFullName = function() {
return this.getFirstName() + " " + this.getLastName();
};

Person.prototype.setFirstName = function(name) {
this.first = name;
};

Person.prototype.setLastName = function(name) {
this.last = name;
};

Person.prototype.setFullName = function(name) {
name = name.split(' ');
this.setFirstName(name[0]);
this.setLastName(name[1]);
};

var bob = new Person('Bob Ross');
bob.getFullName();
Lily Romano
@Lilyheart
Jun 14 2016 22:36 UTC
hahahahahaha. that's funny!
var Person = function (firstAndLast) {
names = firstAndLast.split(" ");
var firstName = names[0];
var lastName = names[1];

this.getFirstName = function () {
return firstName;
};
this.getLastName = function () {
return lastName;
};
this.getFullName = function () {
return firstName + " " + lastName;
};
this.setFirstName = function (first) {
firstName = first;
};
this.setLastName = function (last) {
lastName = last;
};
this.setFullName = function (firstAndLast) {
names = firstAndLast.split(" ");
firstName = names[0];
lastName = names[1];
};
};
I think that's the intention way
David Castner
@davidjcastner
Jun 14 2016 22:37 UTC
yep it is, prototypes aren't recognized as keys, but it's the same thing
Lily Romano
@Lilyheart
Jun 14 2016 22:53 UTC
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
David Castner
@davidjcastner
Jun 14 2016 22:59 UTC
@Lilyheart This looks like a really fun game, I hope that everyone gives it a go! So I HIGHLY RECOMMEND that others give it shot. It should be a great learning experience, and being able to code with others is a manditory requirement for any programming job.
Lily Romano
@Lilyheart
Jun 14 2016 22:59 UTC
I’ve also posted it on the MCCC CS group and I’m thinking about posting it to the FCC Philly group as well.
David Castner
@davidjcastner
Jun 14 2016 23:02 UTC
@Lilyheart onto the last algorithm challenge, orbital periods...
Lily Romano
@Lilyheart
Jun 14 2016 23:03 UTC
Ugh. Good luck.
I need to do that one and no repeats please
Michael Irwin
Jun 14 2016 23:12 UTC
@davidjcastner Just believe you can do it, David - they're actually not so terrible, once you get over the complete other-worldness of the whole thing :)
David Castner
@davidjcastner
Jun 14 2016 23:16 UTC
:fireworks: Finished! :fireworks:
Lily Romano
@Lilyheart
Jun 14 2016 23:17 UTC
woot woot :boom: :fireworks: :boom: That was quick.
David Castner
@davidjcastner
Jun 14 2016 23:18 UTC
just use the "Small body orbiting a central body" formula from wikipedia where the semi-major-axis = average altitude + earth radius
Lily Romano
@Lilyheart
Jun 14 2016 23:19 UTC
Good to know.
Michael Irwin
Jun 14 2016 23:23 UTC
For the orbital duration, David? Yep - that's the right height to use. Well done!
David Castner
@davidjcastner
Jun 14 2016 23:26 UTC
I have taken quite a few physics classes and know they generally measure from the center of objects
@dcpking_twitter have you done that challenge already? or do you have a fascination for astronomy/space?
Lily Romano
@Lilyheart
Jun 14 2016 23:28 UTC
I came so close to taking physics over the summer. So glad I didn’t. I feel like I’m drowning under everything on my todo list as is! Was kinda bummed however. Now I don’t think I’ll even get to start until the following year. My class in high school was the first to get a physics class and I loved that, but that was decades ago.
David Castner
@davidjcastner
Jun 14 2016 23:29 UTC
I was getting an electrical engineering degree before switching to comp sci, so I took a bunch of physics for that
Lily Romano
@Lilyheart
Jun 14 2016 23:30 UTC
awesome
Jonathan Herman
@lantech19446
Jun 14 2016 23:30 UTC
the only reason I would want to learn physics is so I can work on the large hadron collider
Lily Romano
@Lilyheart
Jun 14 2016 23:31 UTC
The last year at MCCC i'll probably have 2 slots open for classes. I'm thinking of getting something on the engineering side.
David Castner
@davidjcastner
Jun 14 2016 23:31 UTC
physics is just applied math and I really enjoy math in general
Jonathan Herman
@lantech19446
Jun 14 2016 23:32 UTC
I failed algebra 2 more times than I can count that's why I took the SAT 2
Michael Irwin
Jun 14 2016 23:32 UTC
Hi Jonathan! You could get a doctorate in rodent catching and they'd hire you :) (remember the outage they had last month?)
Lily Romano
@Lilyheart
Jun 14 2016 23:32 UTC
mmmmmm numbers. :yum:
David Castner
@davidjcastner
Jun 14 2016 23:33 UTC
I'll just say I do mathematical proofs for fun or as a puzzle (like a crossword)
Michael Irwin
Jun 14 2016 23:33 UTC
So right, David. Chemistry likewise.
"...puzzle" LOL
David Castner
@davidjcastner
Jun 14 2016 23:34 UTC
Chemistry is just applied physics, biology is just applied chemistry, etc
there's a comic for that
Lily Romano
@Lilyheart
Jun 14 2016 23:34 UTC
I was just gonna say, I think there is an SMBC comic for that.
David Castner
@davidjcastner
Jun 14 2016 23:34 UTC
Michael Irwin
Jun 14 2016 23:35 UTC
Pretty much. Once you have the maths down the others suddenly become much easier
Jonathan Herman
@lantech19446
Jun 14 2016 23:36 UTC
@dcpking_twitter they have a 3yr contract replacing cables, if they paid relocation I'd seriously consider it.
Lily Romano
@Lilyheart
Jun 14 2016 23:36 UTC
I like this one (check the votey, the red button after the comic). http://www.smbc-comics.com/?id=2272
David Castner
@davidjcastner
Jun 14 2016 23:36 UTC
Lily Romano
@Lilyheart
Jun 14 2016 23:37 UTC
smbc needs a better way to search. /sigh I know there is one, but i canna find it.
David Castner
@davidjcastner
Jun 14 2016 23:37 UTC
hahaha @Lilyheart like the biologist part
Lily Romano
@Lilyheart
Jun 14 2016 23:38 UTC
I did, but nothing has been text indexed really except for random reddit references.
David Castner
@davidjcastner
Jun 14 2016 23:38 UTC
ah ok
Lily Romano
@Lilyheart
Jun 14 2016 23:38 UTC
xkcd at least has explainxkcd.com in which everything has been transcribed.
Michael Irwin
Jun 14 2016 23:39 UTC
Well, if you do go, live on the French side - it'll be about 35% cheaper than on the Swiss side!
Jonathan Herman
@lantech19446
Jun 14 2016 23:40 UTC
je suis sur, mais je crois que le euro a nique touse
Michael Irwin
Jun 14 2016 23:41 UTC
n'a pas tous?
Vraiment, mais c'est plus facile avec d'argent que pas!
Jonathan Herman
@lantech19446
Jun 14 2016 23:44 UTC
peut-etre mais je prefere l'argent paye centrique. le quid te ne monques pas?
Lily Romano
@Lilyheart
Jun 14 2016 23:48 UTC
I picked back up on the udemy course today. Started working with node and npm. There are some interesting npm packages out there. I played around with https://www.npmjs.com/package/cat-me and https://www.npmjs.com/package/knock-knock-jokes
Michael Irwin
Jun 14 2016 23:48 UTC
Non. Je suis payee en dollars ici, ou euros la-bas. Le cout de vivre est un peu plus haut la-bas que ici.
David Castner
@davidjcastner
Jun 14 2016 23:49 UTC
Oh
Send me links to the packages?
Lily Romano
@Lilyheart
Jun 14 2016 23:52 UTC
! Also used https://www.npmjs.com/package/faker faker. Great for making dummy data for testing.
David Castner
@davidjcastner
Jun 14 2016 23:55 UTC
Oh that's a nice one!
Robert Maylie
@rmaylie9560
Jun 14 2016 23:55 UTC
Annnnd there's a package for knock knock jokes... Just when you thought you've seen it all...
Awesome flyer lil
Looking fantabulous
I do have a question... Are you going to pair people or is it a free for all?
Lily Romano
@Lilyheart
Jun 14 2016 23:57 UTC
On the 29th, I will send a message with a link to someone else's CodePen