These are chat archives for MontCode/GeneralChat

17th
Jun 2016
Robert Maylie
@rmaylie9560
Jun 17 2016 00:27
so i need a shove in the right direction. on challenge "seek and destroy" is a for statement needed?
i wanted to wrap filter arguments in a function, but filter iterates through the array already correct?
not array but that "almost array prototype thingy" it makes
David Castner
@davidjcastner
Jun 17 2016 00:59
@rmaylie9560 I used several loops, and yes filter iterates through the array, so if you are looping using filter you don't need a for statement
David Castner
@davidjcastner
Jun 17 2016 01:24
@rmaylie9560 btw arguments is not an array, so you cannot use array methods with arguments. You can still iterate through arguments with a for loop though
Robert Maylie
@rmaylie9560
Jun 17 2016 02:09
yea, just just fingured out that this wasnt talking about the filter()'s arguments, but the methods args. I was trying to access it as an multidementional array.
(facepalm)
David Castner
@davidjcastner
Jun 17 2016 02:10
ahh, did you end of solving it?
Robert Maylie
@rmaylie9560
Jun 17 2016 02:12
Had the breakthrough, so the rest "should" be smooth sailing
David Castner
@davidjcastner
Jun 17 2016 02:12
hahaha good luck!
Robert Maylie
@rmaylie9560
Jun 17 2016 02:15
Thanks Dave, I'll need it.
Lily Romano
@Lilyheart
Jun 17 2016 02:18
Ugh, finally home.
time to crash. Messed up my knee.
Robert Maylie
@rmaylie9560
Jun 17 2016 02:20
you ok?
Lily Romano
@Lilyheart
Jun 17 2016 02:22
will be after some rest. bum knees
Robert Maylie
@rmaylie9560
Jun 17 2016 02:23
yea, i feel your pain. my knees are shot.
Robert Maylie
@rmaylie9560
Jun 17 2016 02:45
function destroyer(arr) {
  var array= Array.from(arr);

  var filter= array.filter(function(item){
    for(var i=1;i<arguments.length-1;i++){
     return item!==arguments[i];             //will the scope of filter access this argument?
    }
  }); 

  return filter;
}

destroyer([1, 2, 3, 1, 2, 3], 1, 3);
Lily Romano
@Lilyheart
Jun 17 2016 02:46
goin’ back through chat logs. arguments isn’t an array, but you can for through it and put it into an array so you can use array methods
I think that’s what I did
or atleast I did that on a challenge, not sure which
David Castner
@davidjcastner
Jun 17 2016 02:49
I'll be back in 15-20 minutes, can help you then
Robert Maylie
@rmaylie9560
Jun 17 2016 02:49
you've inspired an idea lil. let me try somthing.
no worries dave
David Castner
@davidjcastner
Jun 17 2016 02:54
@rmaylie9560 hey rob, do you have atom?
If not, I will recommend getting it
Robert Maylie
@rmaylie9560
Jun 17 2016 02:57
nope, downloading now. hows the debugger?
David Castner
@davidjcastner
Jun 17 2016 02:59
what makes atom amazing are the packages
once you have it installed and running let me know
you will want to add three packages
  • atom-beautify by Glavin001
  • jshint by sindresorhus
  • script by rgbkrk
and minimap by atom-minimap is nice too
Robert Maylie
@rmaylie9560
Jun 17 2016 03:02
i have an idea what jshint does but what about the other ones?
ahh damnit i was breaking up the array wrong.
David Castner
@davidjcastner
Jun 17 2016 03:03
atom-beautify (provided you turn on the settings for it) will auto format your code to look like and stick to a convention whenever you save your file, makes it very easy to read
script will allow you to run files directly in atom
Robert Maylie
@rmaylie9560
Jun 17 2016 03:04
without wifi?
David Castner
@davidjcastner
Jun 17 2016 03:04
minimap provide a sidebar with a map of your code (useful for working with large files)
yes script will work without wifi
Robert Maylie
@rmaylie9560
Jun 17 2016 03:04
nice.
David Castner
@davidjcastner
Jun 17 2016 03:05
what OS do you use?
Robert Maylie
@rmaylie9560
Jun 17 2016 03:05
Windows10
its ok to poke fun at that fact.
David Castner
@davidjcastner
Jun 17 2016 03:07
just asking so I can make sure to tell you the right commands, you may also have to restart, I can't remember though
let me know if you are having issues with the package manager

According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from

The Array.from() method creates a new Array instance from an array-like or iterable object.

arguments is an iterable object (because you can run it in a for loop), just like a string

Lily Romano
@Lilyheart
Jun 17 2016 03:12
@davidjcastner I’m mobile, can you do me a fav. Somewhere on that MontCode ideas and crap file (you know the one?) under the website area somewhere (really doesn’t matter where, i’ll clean it up later) can you put something like “page to extoll the virtues of atom AND suggested packages (and list your preferred ones too cuz i’ll forget in the morning).
David Castner
@davidjcastner
Jun 17 2016 03:12
@Lilyheart sure thing
Lily Romano
@Lilyheart
Jun 17 2016 03:13
ur the bestest
Robert Maylie
@rmaylie9560
Jun 17 2016 03:14
yea a found my issue. im installing packages now.
ahh adom has an api. how awesome is that
David Castner
@davidjcastner
Jun 17 2016 03:15
@rmaylie9560 to access atom-beautify settings you'll have to restart atom after installing it
Lily Romano
@Lilyheart
Jun 17 2016 03:16
love that package. That’s the one I use right?
David Castner
@davidjcastner
Jun 17 2016 03:16
yea thanks a million for that one, my ocd approves
Robert Maylie
@rmaylie9560
Jun 17 2016 03:17
hahaha tabs vs spaces!!!
David Castner
@davidjcastner
Jun 17 2016 03:18
spaces
Robert Maylie
@rmaylie9560
Jun 17 2016 03:18
any other useful packages?
David Castner
@davidjcastner
Jun 17 2016 03:18
don't ever use tabs
Lily Romano
@Lilyheart
Jun 17 2016 03:18
activate-power-mode is probably my FAV. Programming feels werid without it
@rmaylie9560 I use a bunch.
Robert Maylie
@rmaylie9560
Jun 17 2016 03:18
whats that do?
David Castner
@davidjcastner
Jun 17 2016 03:18
@rmaylie9560 activate-power-mode is funny but not usefu;
Lily Romano
@Lilyheart
Jun 17 2016 03:19
i’ll have to tell you them tomorrow tho
Robert Maylie
@rmaylie9560
Jun 17 2016 03:19
hmmmm... im intrigued
Lily Romano
@Lilyheart
Jun 17 2016 03:19
pigment if you work with color a lot
Robert Maylie
@rmaylie9560
Jun 17 2016 03:20
hahahahaha
ahh i started cracking up when i saw a-p-m
Lily Romano
@Lilyheart
Jun 17 2016 03:20
xD I like power mode just to see peoples faces who are like um… why is your screen bounching around with sparks flying. and i’m like cuz my code is that awesome.
Robert Maylie
@rmaylie9560
Jun 17 2016 03:20
thats fantastic
Lily Romano
@Lilyheart
Jun 17 2016 03:21
atom-wrap-in-tag I use a lot
learn ctrl clicking.
that last one isn’t a package, just something to learn
git-plus good package if you git a lot and don’t have a preferred cli for it
open-in-browser can be nice
i know I have a ton of others. those are just the main ones I use off the top of my head (at least on the windows machine)
@davidjcastner did I ever tell you about wrap in tag? great when you need to add a tag to something.
highlight a word, then press the keyboard shortcut and it gives you, i think p tags around it by default, but with a multi cursor so you could say type span and then it would be a span tag instead. And when you hit space, you go to a single cursor on the first tag so you can add a class or whatevs without any special clicking or commands
Robert Maylie
@rmaylie9560
Jun 17 2016 03:29
Thanks lil, I'll check them out tomorrow.
and thank you both for your help
David Castner
@davidjcastner
Jun 17 2016 03:29
one sec
// you can run this entire file inside of atom using the script package
// to run the file press crtl+shift+b

// you can use any variable name for a function input
// even for freecodecamp
function destroyer(array) { // this was preivously function destroyer(arr)
    // var array = Array.from(arr); <- this line is redundant
    // see explanation provide above in chat
    // or check out here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from

    // arr is the first argument and will be an array already
    // also if you want to rename arr to array, it would be better to change the argument name

    // lets see what the arguments are for the function destroyer
    console.log('args for destroyer', arguments);

    // also I renamed the variable filter so we don't get confused with the array method
    var filterResults = array.filter(function(item) {
        // arguments is a variable that is scoped to a function level
        // so because this is inside a different function than destroyed, so
        // arguments will be different (it will include the value of item)

        // the filter method for arrays can give a function three arguments (element, index, array)
        // element is the value of each element
        // index is the index of that element
        // and arr is the array itself

        // here we can run another console.log to see what the arguments are for the filter function (often called a callback)
        console.log('args for filter callback', arguments);
        // notice that this is logged multiple times becuase the function is called for every element

        for (var i = 1; i < arguments.length - 1; i++) {
            // you log each of the values being compared to see what's going on
            console.log('item', item);
            console.log('arguments[i]', arguments[i]);
            return item !== arguments[i];
        }
    });

    return filterResults;
}

// log what's returned to get a better idea
console.log(destroyer([1, 2, 3, 1, 2, 3], 1, 3));
this should help explain a little more about what's going on, and hopefully provide you with the information you need to solve it
@rmaylie9560 tagged
David Castner
@davidjcastner
Jun 17 2016 03:40
@rmaylie9560 make sure to save the file as fileName.js before running it, otherwise it won't know how to run it
Lily Romano
@Lilyheart
Jun 17 2016 14:02
@davidjcastner if you move your todo to GH, you might find this helpful https://waffle.io
Jonathan Herman
@lantech19446
Jun 17 2016 15:50
I seem to be missing something maybe someone here can help me with, I'm using inspector to try to see how my work coded these boxes they use on our website, I was able to find the class I'm looking for but I can't seem to find the actual css outside of the css console, I'm using firefox, should i load it in windows and use chrome?
Lily Romano
@Lilyheart
Jun 17 2016 16:01
Is it a public page you can share? I’m not that familar with firefox but I can give it a shot. What OS are you using that doesn’t have chrome? o.O
Robert Maylie
@rmaylie9560
Jun 17 2016 16:01
@davidjcastner just saw this, it reminded me of your emjoi idea http://thenextweb.com/apps/2016/06/17/slack-bot-turns-everyday-conversation-competition/
And you explination of last nights issue was on point. It made a lot of things clear to me
Thank you. @scorebot +1
Jonathan Herman
@lantech19446
Jun 17 2016 16:18
@Lilyheart lansdalelibrary.org and I'm running ubuntu which used to have a chrome installation but they discontinued it
I just installed chrome in vb though and still can't find it
Lily Romano
@Lilyheart
Jun 17 2016 16:19
Does the linux version not work?
Jonathan Herman
@lantech19446
Jun 17 2016 16:19
of chrome?
Lily Romano
@Lilyheart
Jun 17 2016 16:19
Yar. What class are you looking for?
Jonathan Herman
@lantech19446
Jun 17 2016 16:20
google no longer makes chrome for linux, they have chromium but it's just an open source browser that's compatible with google. The class I'm looking for should be called categoryblock
Robert Maylie
@rmaylie9560
Jun 17 2016 16:22
What's the link to the page John?
Jonathan Herman
@lantech19446
Jun 17 2016 16:23
lansdalelibrary.org
Lily Romano
@Lilyheart
Jun 17 2016 16:28
mid lunch makin', i'll be back in a minute (waiting for water to boil). Maybe something changed? This looks like chrome. For me, the bottom of this page shows links to installing https://www.google.com/chrome/browser/desktop/index.html
blob
Jonathan Herman
@lantech19446
Jun 17 2016 16:29
hmm I'll look again, Dave had told me the same thing but when I went it said discontinued
Lily Romano
@Lilyheart
Jun 17 2016 16:32
There might be a better way, I'm not that familar with FF anymore, but if you look at inspect and then go to the Style Editor you can Ctrl-F each of the css files until you find it. Can usually guess by name which ones to try first
blob
Jonathan Herman
@lantech19446
Jun 17 2016 16:33
so chrome installed but now is completely unfindable lol doesn't come up under google or chrome lol
ok didn't look there at all, looks like what i'm looking for
Lily Romano
@Lilyheart
Jun 17 2016 16:33
actually you don't even need to ctrl-F it. Under rules it tells you where to look
This message was deleted
This message was deleted
This message was deleted
wrong screenshot and then gitter decided to spam the same pic over and over xD UGH!
blob
Jonathan Herman
@lantech19446
Jun 17 2016 16:34
I didn't get all this under rules
Lily Romano
@Lilyheart
Jun 17 2016 16:34
My gitter spazzed out
This is what I see when I hit inspect element
blob
Jonathan Herman
@lantech19446
Jun 17 2016 16:38
I think I got to that screen once but didn't have all the stuff under rules
Lily Romano
@Lilyheart
Jun 17 2016 16:38
Sorry if I sound terse today. I have this pain between my sholderblades and it's making my chat short in length and possible short in attitude :pensive:
Jonathan Herman
@lantech19446
Jun 17 2016 16:39
np, you haven't seemed short with me, I may be used too it though, my wife has chronic pain problems with fibro
Jonathan Herman
@lantech19446
Jun 17 2016 16:45
I think I kind of suck at using the inspector still too but it's amazing to me how much more of the code I can look through and actually understand now
Lily Romano
@Lilyheart
Jun 17 2016 16:47
That's awesome! I've been using the inspector for YEARS and I still find new things I didn't know about. It's crazy useful. On my list is to find somewhere that has an above-par curriculum on using those tools. In a few weeks maybe.
Jonathan Herman
@lantech19446
Jun 17 2016 16:50
if you find it let me know, from what I'm figuring out they used a tableblock element of some sort might be misquoting the element again and then the class is really just defining the size padding border etc so if I can figure out the table I can mess around with it and do what I want to do
Lily Romano
@Lilyheart
Jun 17 2016 16:51
Jonathan Herman
@lantech19446
Jun 17 2016 16:52
ooo that's much better
Lily Romano
@Lilyheart
Jun 17 2016 16:52
The first two screenshots above show how I figured that out
Jonathan Herman
@lantech19446
Jun 17 2016 16:56
yea but I'm having a hell of a time duplicating them, I did manage to get into the list of css files though and that was when I realized that they're not doing much with the css it's a content-box
of course now I can't find where I saw that lol
Lily Romano
@Lilyheart
Jun 17 2016 17:06
If you don’t get it figured out by the weekend, I’ll try to look at it with you.
Stupid back… At least I ordered a lapdesk in a timely manner. The computer desk is useless to me right now. This is at least a few levels better.
Jonathan Herman
@lantech19446
Jun 17 2016 17:40
yea, I hate computer desks most of the time if I'm not at work I'm in my bed with a wireless keyboard on my lap
Victor
@VictorHall
Jun 17 2016 19:19
Hi All, How far is everyone in free code camp? Anyone finished?
Lily Romano
@Lilyheart
Jun 17 2016 19:20
My bet is @davidjcastner will finish front end quite soon. He and I both only have the projects left to do, but I’m focused on some non-FCC right now.
Victor
@VictorHall
Jun 17 2016 19:23
Oh cool. What other learning resources are you using? And Okay, its good to know where everyone is to set a good pace.
Victor
@VictorHall
Jun 17 2016 19:26
Just 35 bucks? thats unbelievable compared to college courses. I watch the video and it seems like that tech design pretty well. Those web pages were pretty clean.
Lily Romano
@Lilyheart
Jun 17 2016 19:26
I never counted myself when seeing who was furthest along in FCC because I did like 200 challenges last winter break. @davidjcastner finally passed my total anyway!
Yup, and I got it on sale for like $12. Worth many times that.
40 hours of video
I have like 10 hours left @ _ @
Victor
@VictorHall
Jun 17 2016 19:29
Ill be doing that once Im done FCC camp. I'm sure I'll learn something in udemy that they did not cover. I also want to finish code academy which i started last year but never finished lol
Jonathan Herman
@lantech19446
Jun 17 2016 19:30
hey Lily are you participating in the pen pass?
Lily Romano
@Lilyheart
Jun 17 2016 19:30
Not sure yet. I have so many other commitments right now @lantech19446
Jonathan Herman
@lantech19446
Jun 17 2016 19:31
oi ok, I did something that I consider really cool working on the page for the pen pass and it's kinda killing me not being able to show it off so if you decide not to let me know
Lily Romano
@Lilyheart
Jun 17 2016 19:31
@VictorHall I've found CodeAcademy is great for intro to, but not much past that. I've been doing the Udemy and FCC side by side. (e.g. When Colt finished Bootstrap, I did FCC bootstrap, etc etc).
@lantech19446 feel free to share! No harm in that :)
Maybe it'll get more people interested in trying it out.
Jonathan Herman
@lantech19446
Jun 17 2016 19:33
ok cool, thought I might be breaking some unwritten rule
Jonathan Herman
@lantech19446
Jun 17 2016 20:14
whatcha think?
Lily Romano
@Lilyheart
Jun 17 2016 20:28
On the couch with only my phone and a hot pad. I can check when I get up (if :laughing: ).
Robert Maylie
@rmaylie9560
Jun 17 2016 20:39
So
Jonathan Herman
@lantech19446
Jun 17 2016 20:53
lol ok
Robert Maylie
@rmaylie9560
Jun 17 2016 21:47
Messages seem to just send while I'm on my phone.
It's super awesome👍
Jonathan Herman
@lantech19446
Jun 17 2016 21:57
lol it's all good Rob, your phone is just trying to pick up the room, joey tribiani style
Robert Maylie
@rmaylie9560
Jun 17 2016 22:55
So I had an iPad stolen from my truck last night. It ended up at axil storage facility in frasure
its sitting in a car on their lot😂
Jonathan Herman
@lantech19446
Jun 17 2016 22:56
my ass would be on the phone with the cops then, they'll probably find a unit with a whole crapton of stolen stuff
Robert Maylie
@rmaylie9560
Jun 17 2016 22:56
I'm getting it tomorrow. I spoke with the owner of the facility
Jonathan Herman
@lantech19446
Jun 17 2016 22:58
that's good
Robert Maylie
@rmaylie9560
Jun 17 2016 22:58
im going to make it beep when I'm make there. It's funny gps isn't probable cause to go there. It got turned over to a detective.
they seemed unconcerned with time sensitivity of the situation.
Jonathan Herman
@lantech19446
Jun 17 2016 22:59
usually filing a police report for stolen goods and then showing them that gets some action, might just be how close to norristown you are
Robert Maylie
@rmaylie9560
Jun 17 2016 22:59
when the battery dies. It's lost
Jonathan Herman
@lantech19446
Jun 17 2016 23:00
yea
Robert Maylie
@rmaylie9560
Jun 17 2016 23:02
Fun fun fun!
So how's your night going Johnny?
Jonathan Herman
@lantech19446
Jun 17 2016 23:03
pretty good so far, bout to kick 3 kids out though
Robert Maylie
@rmaylie9560
Jun 17 2016 23:03
like kids kids?
if so, put on the news. Kids hate news
sorry John I just read your message. I'm in east norriton
Jonathan Herman
@lantech19446
Jun 17 2016 23:06
10yr olds playing games being overly obnoxious, yea they probably get way more stolen shit than say plymouth
Robert Maylie
@rmaylie9560
Jun 17 2016 23:08
yea I spoke with the cop already. He said "laws haven't caught up with technology yet" and "they can't go knocking down doors even if the gps says its there"
Jonathan Herman
@lantech19446
Jun 17 2016 23:14
oi
I ruined my cool thing too, to much stuff going on in the background layer to make it work
Robert Maylie
@rmaylie9560
Jun 17 2016 23:24
Did that pass a pen thing start yet?
Lily Romano
@Lilyheart
Jun 17 2016 23:25
Not to late to sign up
I was right that I needed a coding break. Talking to my roommate about driving, I just referred to the margin of the road.
Jonathan Herman
@lantech19446
Jun 17 2016 23:37
lol
Jonathan Herman
@lantech19446
Jun 17 2016 23:52
about a week ago someone wanted to do a really fancy resume and without even thinking about it i was just like dude I could code this easier than you can do it in word. Like the guy could barely type but wanted borders and bullets and whatnot