These are chat archives for MontCode/GeneralChat

27th
Jan 2017
Lily Romano
@Lilyheart
Jan 27 2017 00:00
You work long hours xD I don't blame you.
kewolf
@kewolf
Jan 27 2017 00:00
@lantech19446 Where do you work?
Jonathan Herman
@lantech19446
Jan 27 2017 00:00
2 places right now William Jeanes Memorial Library and Lansdale Library
kewolf
@kewolf
Jan 27 2017 00:01
Lansdale Public Library? I just moved to Lansdale a few months ago (not too far from the library :) )
Jonathan Herman
@lantech19446
Jan 27 2017 00:04
have you been in here yet?
kewolf
@kewolf
Jan 27 2017 00:04
Not yet. I checked out the website, and keep meaning to stop by.
Jonathan Herman
@lantech19446
Jan 27 2017 00:06
I'll almost certainly be there when you do, I practically live here
where did you move here from @kewolf
kewolf
@kewolf
Jan 27 2017 00:51
just from NJ, but I am originally from Minnesota
Jonathan Herman
@lantech19446
Jan 27 2017 00:52
o ok that's cool, I went to a language camp in Minnesota when I was younger can't imagine being there for a winter
kewolf
@kewolf
Jan 27 2017 01:09
I miss the winters a bit - it's way too wet here!
Jonathan Herman
@lantech19446
Jan 27 2017 01:10
this is weird for our winters it's usually cold and dry
kewolf
@kewolf
Jan 27 2017 01:33
I have been on the east coast for the last few years, and no matter how cold and dry, it just doesn't feel like home :)
David Castner
@davidjcastner
Jan 27 2017 03:38
@Lilyheart whoops I already had cfg file on a public repo, you can check it out here https://github.com/davidjcastner/greentealatte/blob/master/uncrustify.cfg
Jonathan Herman
@lantech19446
Jan 27 2017 04:44
that's all you @kewolf Iceland is more my speed
Lily Romano
@Lilyheart
Jan 27 2017 14:15
@davidjcastner I’ll take a look at it after class today. I only have morning classes.
David Castner
@davidjcastner
Jan 27 2017 19:34
lol I'm breaking atom quite a bit today, I kept trying to type using 100+ insertion points rather than using find and replace
Lily Romano
@Lilyheart
Jan 27 2017 19:49
xD Now you sound like me.
Interesting fact. You have to turn "power mode" off before using that many insertion points xD Can't handle that much awesome at once.
David Castner
@davidjcastner
Jan 27 2017 19:50
ahahhahahaha
I took that package out of my settings a while ago, gives me a headache
Lily Romano
@Lilyheart
Jan 27 2017 19:51
I just got home from school. I messed up my neck somehow and now I can't turn my head but I have groceries to put away. /whine
@kewolf I'm curious what IDE you use for Java development.
Lily Romano
@Lilyheart
Jan 27 2017 19:57
I need a butler xD
David Castner
@davidjcastner
Jan 27 2017 20:02

lol doesn't everyone...

actually wait that would be recursive because a butler is a member of the set, everyone, meaning each butler would need a butler...
that leads to a stack overflow...

nevermind stractch my original idea

David Castner
@davidjcastner
Jan 27 2017 20:09
^ insight to my everyday thought process
Jonathan Herman
@lantech19446
Jan 27 2017 20:11
lol
Lily Romano
@Lilyheart
Jan 27 2017 20:17
LOL. We could just take turns :laughing: Well, I got the cold stuff away I think. Hopefully the rest can wait until I can move again .
David Castner
@davidjcastner
Jan 27 2017 20:20
Lily Romano
@Lilyheart
Jan 27 2017 20:21
That makes me laugh every time I see it
Jonathan Herman
@lantech19446
Jan 27 2017 20:27
That's great
I just have one question Dave, how bored were you when you found that video\
David Castner
@davidjcastner
Jan 27 2017 20:28
very, I've been struggling to focus after lunch at work today
just ready to go home
so I can write code at home lol
Jonathan Herman
@lantech19446
Jan 27 2017 20:29
yea but that's coding for you and probably far more interesting than what you're doing at work
David Castner
@davidjcastner
Jan 27 2017 20:29
correct!
Jonathan Herman
@lantech19446
Jan 27 2017 20:30
I'm having a terrible time focusing on anything, I really want to be able to understand what on earth you guys are talking about and actually begin doing something but my motivation level is so damn low I can't even tell you the last time I did something
David Castner
@davidjcastner
Jan 27 2017 20:32
I was feeling like that a week or two ago, i realized I was vegging out on my sofa too much instead of being productive. So I change my desk at home to be a standing desk (even though it looks ridiculous at my height), and just having to stand means I don't get into the habit of procrastinating. Really difficult ot get used to though, still have to take breaks
Lily Romano
@Lilyheart
Jan 27 2017 20:34
I wanna see this desk so bad. xD
Jonathan Herman
@lantech19446
Jan 27 2017 20:34
I think a lot of mine is from working so much, the good thing is by today my fast is kicking in and my energy level is peaking but I'm just so stressed out and on the move so much all the time that any time I get outside of work is time to relax
David Castner
@davidjcastner
Jan 27 2017 20:34
I'll take a picture when I get home
Lily Romano
@Lilyheart
Jan 27 2017 20:35
I just bought a Nutribullet RX so I can make soup too.
Jonathan Herman
@lantech19446
Jan 27 2017 20:36
lol Lily if you told me you were looking for a nutribullet I could have given you the base you would have just had to find some replacement cups for it. I got so fed up with it that I bought a ninja and then someone gave me another nutribullet and I stupidly said ok thinking I could sell it.
Lily Romano
@Lilyheart
Jan 27 2017 20:37
xD Probably not an RX tho. That's the one with the heat cycle. I have a midrange nutribullet already.
Jonathan Herman
@lantech19446
Jan 27 2017 20:38
o ok didn't realize it had a heat cycle most of the blenders that can make soup just spin fast enough to heat them
Lily Romano
@Lilyheart
Jan 27 2017 20:39
I believe that's what this one does actually xD But I don't think the lower powered Nutribullets can spin fast enough to get there (they are 600 & 900 and the RX is 1700 watt so big difference). The base is huge compared to the others.
Jonathan Herman
@lantech19446
Jan 27 2017 20:55
yea that's much higher, that actually competes with blendtec for power
David Castner
@davidjcastner
Jan 27 2017 23:40
@lily solve the java formatting problem yet, I think this might be the first question I put a bounty on for stackoverflow
Matt Richards
@mattjrichards
Jan 27 2017 23:44
hey guys
David Castner
@davidjcastner
Jan 27 2017 23:45
Hey Matt, how's it going?
Matt Richards
@mattjrichards
Jan 27 2017 23:46
It's going alright, I guess. Having trouble with Lesson #173.
David Castner
@davidjcastner
Jan 27 2017 23:47
what is lesson #173?
Matt Richards
@mattjrichards
Jan 27 2017 23:49
I think it's the way they have the directions worded. 3 other people were also having trouble with the same problem. The name of the lesson is "Stand in Line."
Here is part of the instructions: Write a function nextInLine which takes an array (arr) and a number (item) as arguments. Add the number to the end of the array, then remove the first element of array. The nextInLine function should then return the element that was removed.
David Castner
@davidjcastner
Jan 27 2017 23:52
okay so it's asking you to use the array as a queue, do you understand the concept of a queue?
Matt Richards
@mattjrichards
Jan 27 2017 23:52
That is the section that I'm having trouble understanding. They don't elaborate enough on what they want you to do, given what I've learned in the previous lessons.
yes

I think I might have the first part right. ```
function nextInLine(arr, item) {
// Your code here
arr.push(item);
item.shift();
return item; // Change this line
}

// Test Setup
var testArr = [1,2,3,4,5];

// Display Code
console.log("Before: " + JSON.stringify(testArr));
console.log(nextInLine(testArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(testArr));
```

David Castner
@davidjcastner
Jan 27 2017 23:55
Okay it's asking you to take the input item and add it to the end of the array, then remove the first element (shifting all other element as well) and returning the first element (what was the first element)
Matt Richards
@mattjrichards
Jan 27 2017 23:56
That's what I don't get. What is the first element?
David Castner
@davidjcastner
Jan 27 2017 23:56
for their test array, 1 is the first element
for example
var testArr = [1,2,3,4,5];
console.log(nextInLine(testArr, 6)); // prints 1, what the first element was
console.log(testArr); // testArr is now [2,3,4,5,6]