These are chat archives for MontCode/GeneralChat

14th
Jun 2016
Alex H.
@Alexander-Huh
Jun 14 2016 01:09
@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
@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
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
There was nothing wrong with WinXP!!!
Jonathan Herman
@lantech19446
Jun 14 2016 17:48
Lmao thanks for the birthday laugh rob
Robert Maylie
@rmaylie9560
Jun 14 2016 17:50
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
Is it nap time?
Robert Maylie
@rmaylie9560
Jun 14 2016 17:57
Yes. Yes it is.
Lily Romano
@Lilyheart
Jun 14 2016 17:58
woot woozzzzzzzZZZZZZ
Robert Maylie
@rmaylie9560
Jun 14 2016 18:00
Lol
Jonathan Herman
@lantech19446
Jun 14 2016 19:07
y'all are so talkative today lol
Lily Romano
@Lilyheart
Jun 14 2016 19:08
Sorry, I'm asleep right now. :sleeping:
Jonathan Herman
@lantech19446
Jun 14 2016 19:08
lol, wish I was. I'm sitting here wishing I was
Lily Romano
@Lilyheart
Jun 14 2016 19:10
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
lol
Alex H.
@Alexander-Huh
Jun 14 2016 20:33
@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
:penguin: YAY! :penguin:
Lily Romano
@Lilyheart
Jun 14 2016 20:48
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
GREAT!
Lily Romano
@Lilyheart
Jun 14 2016 20:49
Hey Nick (did I get the name right?)! You launched this week didn't you?
Nicholas Hance
@nhance
Jun 14 2016 20:49
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 :)
Exploring ads on adwords right now
Have written a few blog posts on buildbettersoftware.com
Lily Romano
@Lilyheart
Jun 14 2016 20:52
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
@Alexander-Huh welcome to proper operating system! :penguin: <- nice find lily
@nhance congrats on the launch!
Nicholas Hance
@nhance
Jun 14 2016 20:53
thank you!
Lily Romano
@Lilyheart
Jun 14 2016 20:53
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
hey
Lily Romano
@Lilyheart
Jun 14 2016 20:55
Howdy @jourden123
David Castner
@davidjcastner
Jun 14 2016 20:55
@Lilyheart I signed up for it, but be able to make it
Lily Romano
@Lilyheart
Jun 14 2016 20:55
I figured :( If there is anything good, I'll grab it for ya.
Alex H.
@Alexander-Huh
Jun 14 2016 20:56
@davidjcastner thanks for the help!
Jourden
@jourden123
Jun 14 2016 20:56
hey is anybody good with wordpress ?
Lily Romano
@Lilyheart
Jun 14 2016 20:56
@angelinasimms is. She might be easier to catch on the Facebook group however.
David Castner
@davidjcastner
Jun 14 2016 20:58
@Lilyheart did you run into trouble with rounding on the exact change challenge?
Lily Romano
@Lilyheart
Jun 14 2016 20:59
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
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
I thought about doing that too.

My roommate just sent me a message

You should always keep your .bat files in your \belfry folder.

Michael Irwin
@dcpking_twitter
Jun 14 2016 21:20
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
HA! Jokes on you. I NEVER LEAVE!
Michael Irwin
@dcpking_twitter
Jun 14 2016 21:21
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
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
@dcpking_twitter
Jun 14 2016 21:23
What? Ubuntu?. Sounds like a way of life :)
Lily Romano
@Lilyheart
Jun 14 2016 21:23
gitter, that I almost called chatter
Michael Irwin
@dcpking_twitter
Jun 14 2016 21:23
Oh. That. LOL
Lily Romano
@Lilyheart
Jun 14 2016 21:24
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
@dcpking_twitter
Jun 14 2016 21:25
That could be a while ... there are still people running Windows NT!
Lily Romano
@Lilyheart
Jun 14 2016 21:26
I use it to play Kpatience :p
Michael Irwin
@dcpking_twitter
Jun 14 2016 21:27
Just swap them over, so Win7 is in VB with CentOS as the host
Lily Romano
@Lilyheart
Jun 14 2016 21:28
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
@dcpking_twitter
Jun 14 2016 21:31
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
Gamer!
Michael Irwin
@dcpking_twitter
Jun 14 2016 21:33
Not I, although you can certainly play wonderful thinks on it - rendering speed is phenomenal!
Lily Romano
@Lilyheart
Jun 14 2016 21:33
Maybe a few more years and the gaming industry will be even more accepting.
Anyone doing FCC Challenges tonight?
Michael Irwin
@dcpking_twitter
Jun 14 2016 21:37
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
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
@dcpking_twitter
Jun 14 2016 21:38
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
Free Code Camp
David Castner
@davidjcastner
Jun 14 2016 21:38
I'm working through some challenges!
Michael Irwin
@dcpking_twitter
Jun 14 2016 21:38
Yes (it was a rhetorical question :) )
David Castner
@davidjcastner
Jun 14 2016 21:39
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
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
working through the friendly date range one right now
Lily Romano
@Lilyheart
Jun 14 2016 21:41
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
yea this one is just tedious
Lily Romano
@Lilyheart
Jun 14 2016 21:42
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
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
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
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
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
typo... accidentally used a captial M in the statement
Lily Romano
@Lilyheart
Jun 14 2016 21:58
That'll do it!
David Castner
@davidjcastner
Jun 14 2016 21:58
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
Check your ordinals. You don't want 11st.
or 12nd, or 13rd.
David Castner
@davidjcastner
Jun 14 2016 22:01
so tedious...
Lily Romano
@Lilyheart
Jun 14 2016 22:01
I blame english
David Castner
@davidjcastner
Jun 14 2016 22:01
agreed
Michael Irwin
@dcpking_twitter
Jun 14 2016 22:02
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
@davidjcastner is going to dethrone me for most number of Challenges completed!
Robert Maylie
@rmaylie9560
Jun 14 2016 22:14
There should be an informal ceremony
Lily Romano
@Lilyheart
Jun 14 2016 22:14
heh
Last I looked I was only ahead by 18
Michael Irwin
@dcpking_twitter
Jun 14 2016 22:14
Do it properly next wednesday - bring a little coronet, Lily
David Castner
@davidjcastner
Jun 14 2016 22:15
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
I mostly only have FE as well, but I have points for a few challenges that were depreciated (woot woot).
Michael Irwin
@dcpking_twitter
Jun 14 2016 22:19
Thanks, Lily
Lily Romano
@Lilyheart
Jun 14 2016 22:29
How are you liking R @dcpking_twitter
David Castner
@davidjcastner
Jun 14 2016 22:34
lmao I am so not doing these challenges the way there were meant to
Lily Romano
@Lilyheart
Jun 14 2016 22:34
Heh. Like what?
David Castner
@davidjcastner
Jun 14 2016 22:35
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
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
yep it is, prototypes aren't recognized as keys, but it's the same thing
Lily Romano
@Lilyheart
Jun 14 2016 22:53
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
David Castner
@davidjcastner
Jun 14 2016 22:59
@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
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
@Lilyheart onto the last algorithm challenge, orbital periods...
Lily Romano
@Lilyheart
Jun 14 2016 23:03
Ugh. Good luck.
I need to do that one and no repeats please
Michael Irwin
@dcpking_twitter
Jun 14 2016 23:12
@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
:fireworks: Finished! :fireworks:
Lily Romano
@Lilyheart
Jun 14 2016 23:17
woot woot :boom: :fireworks: :boom: That was quick.
David Castner
@davidjcastner
Jun 14 2016 23:18
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
Good to know.
Michael Irwin
@dcpking_twitter
Jun 14 2016 23:23
For the orbital duration, David? Yep - that's the right height to use. Well done!
David Castner
@davidjcastner
Jun 14 2016 23:26
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
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
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
awesome
Jonathan Herman
@lantech19446
Jun 14 2016 23:30
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
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
physics is just applied math and I really enjoy math in general
Jonathan Herman
@lantech19446
Jun 14 2016 23:32
I failed algebra 2 more times than I can count that's why I took the SAT 2
Michael Irwin
@dcpking_twitter
Jun 14 2016 23:32
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
mmmmmm numbers. :yum:
David Castner
@davidjcastner
Jun 14 2016 23:33
I'll just say I do mathematical proofs for fun or as a puzzle (like a crossword)
Michael Irwin
@dcpking_twitter
Jun 14 2016 23:33
So right, David. Chemistry likewise.
"...puzzle" LOL
David Castner
@davidjcastner
Jun 14 2016 23:34
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
I was just gonna say, I think there is an SMBC comic for that.
David Castner
@davidjcastner
Jun 14 2016 23:34
Michael Irwin
@dcpking_twitter
Jun 14 2016 23:35
Pretty much. Once you have the maths down the others suddenly become much easier
Jonathan Herman
@lantech19446
Jun 14 2016 23:36
@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
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
xkcd
Lily Romano
@Lilyheart
Jun 14 2016 23:37
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
hahaha @Lilyheart like the biologist part
@Lilyheart google?
Lily Romano
@Lilyheart
Jun 14 2016 23:38
I did, but nothing has been text indexed really except for random reddit references.
David Castner
@davidjcastner
Jun 14 2016 23:38
ah ok
Lily Romano
@Lilyheart
Jun 14 2016 23:38
xkcd at least has explainxkcd.com in which everything has been transcribed.
Michael Irwin
@dcpking_twitter
Jun 14 2016 23:39
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
je suis sur, mais je crois que le euro a nique touse
Michael Irwin
@dcpking_twitter
Jun 14 2016 23:41
n'a pas tous?
Vraiment, mais c'est plus facile avec d'argent que pas!
Jonathan Herman
@lantech19446
Jun 14 2016 23:44
peut-etre mais je prefere l'argent paye centrique. le quid te ne monques pas?
Lily Romano
@Lilyheart
Jun 14 2016 23:48
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
@dcpking_twitter
Jun 14 2016 23:48
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
Oh
Send me links to the packages?
Lily Romano
@Lilyheart
Jun 14 2016 23:52
! Also used https://www.npmjs.com/package/faker faker. Great for making dummy data for testing.
David Castner
@davidjcastner
Jun 14 2016 23:55
Oh that's a nice one!
Robert Maylie
@rmaylie9560
Jun 14 2016 23:55
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
On the 29th, I will send a message with a link to someone else's CodePen