These are chat archives for MontCode/GeneralChat

15th
Nov 2016
JBC944
@JBC944
Nov 15 2016 00:15
Anyway some one could me a visual example in html code?
Rob Smith
@smithrobs
Nov 15 2016 00:24
@JBC944 If you want examples, try looking at codepen.io items tagged "style guide": https://codepen.io/tag/style%20guide/
Something like this perhaps: https://codepen.io/nicholaspetersen/pen/awvLE
Lily Romano
@Lilyheart
Nov 15 2016 00:26
oooooooh!
thank @smithrobs ! That's a fantastic idea.
MontBot
@MontBot
Nov 15 2016 00:27
lilyheart sends brownie points to @smithrobs :sparkles: :thumbsup: :sparkles:
:cookie: 60 | @smithrobs |http://www.freecodecamp.com/smithrobs
Lily Romano
@Lilyheart
Nov 15 2016 00:32
I did think to search codepen the other day for interesting form inputs. I need to remember more often.
Lily Romano
@Lilyheart
Nov 15 2016 13:36
@lantech19446 Sent you a PM xD
Lily Romano
@Lilyheart
Nov 15 2016 18:58
@dcpking Can you see if you can get MontCode into the North Wales library on January 11th? (setup like 4ish, start at 5) I would plan on maybe 10-20 people at the most and I would like to be able to serve food.
Lily Romano
@Lilyheart
Nov 15 2016 22:04
What's everyone coding today?
Jonathan Herman
@lantech19446
Nov 15 2016 22:05
I
I've decided to try doing installfest on ubuntu server
Lily Romano
@Lilyheart
Nov 15 2016 22:06
oh. oh my xD Sounds like rail load of fun xD
Jonathan Herman
@lantech19446
Nov 15 2016 22:07
I mean it could be a disaster because I'm not sure if atom will run on server or if I need a DE for that but it may be useful when I eventually get a laptop just for dev work to keep me on track
Jonathan Herman
@lantech19446
Nov 15 2016 22:20
are we the only ones here tonight?
Lily Romano
@Lilyheart
Nov 15 2016 22:20
So far it seems.
Jonathan Herman
@lantech19446
Nov 15 2016 22:21
the mighty echo
Lily Romano
@Lilyheart
Nov 15 2016 22:22
blob
I got a few messages from people who wanted to join in but where busy tonight.
Jonathan Herman
@lantech19446
Nov 15 2016 22:26
o ok
/giphy empty
damn
Lily Romano
@Lilyheart
Nov 15 2016 22:26
heh
Jonathan Herman
@lantech19446
Nov 15 2016 22:26
I broke giphy in cody's room lol
Lily Romano
@Lilyheart
Nov 15 2016 22:27
ha! I'll have to see how they have that set up at some point...
So much I need to do with @MontBot
Jonathan Herman
@lantech19446
Nov 15 2016 22:29
function chooseRandomGif(searchTerm) {
  return new Promise(function(resolve, reject) {
    giphy.search({q: searchTerm, limit:10}, function(err, result) {
      if (err) reject('Error');

      if (result.data.length) {
        var image = result.data[randomInt(result.data.length)];
        var imageUrl = image.images.original.url;
        resolve(imageUrl);
      } else {
        chooseRandomGif("Fail");
      }
    });
  });
}
there was some issue with it today though, not sure if he's fixed it yet
Lily Romano
@Lilyheart
Nov 15 2016 22:30
heh. At some point... xD Will require a brainshift I can't do at the moment. Gah schoolwork.
Jonathan Herman
@lantech19446
Nov 15 2016 22:34
yea
and it doesn't make much sense to me still being horrible at js lol
Lily Romano
@Lilyheart
Nov 15 2016 22:35
It look like that is just one piece of it.
Jonathan Herman
@lantech19446
Nov 15 2016 22:36
it's possible, that's what he posted today but maybe that's just the broken part
Lily Romano
@Lilyheart
Nov 15 2016 22:38
Found the bot's code. Look like it was fixed. codyloyd/odin-bot-js@b5c9434
Jonathan Herman
@lantech19446
Nov 15 2016 22:38
awesome
I'll tell you in one moment
Lily Romano
@Lilyheart
Nov 15 2016 22:39
MontBot needs to move to another server or something tho that's always one. /sigh stuff and money
Jonathan Herman
@lantech19446
Nov 15 2016 22:39
it's working but the gif I just got for golumpki makes no sense at all
Lily Romano
@Lilyheart
Nov 15 2016 22:40
That's hysterical.
picture
I dunno either, i wanna figure it out tho
Jonathan Herman
@lantech19446
Nov 15 2016 22:41
I did one for narendra modi earlier too, it made more sense than this lol
Lily Romano
@Lilyheart
Nov 15 2016 22:41
when I search golumpki on the giphy site there are no results... so maybe it's some sort of default search then? I'd have to check their api
Lily Romano
@Lilyheart
Nov 15 2016 22:47

figgured it out.

      if (result.data.length) {
        var image = result.data[randomInt(result.data.length)];
        var imageUrl = image.images.original.url;
        resolve(imageUrl);
      } else {
        resolve(chooseRandomGif('Fail'));
      }

It's that code. The search result had zero. So the if (result.data.length) resolves to false because result.data.length was zero and zero is falsey. That means it did resolve(chooseRandomGif('Fail')); which does a giphy search on the keyword fail xD

sneaky cody xD
Jonathan Herman
@lantech19446
Nov 15 2016 22:50
ooo ok
interesting, kind of clever too
lily you should see the screen scrolling installing atom on ubuntu server lol
Lily Romano
@Lilyheart
Nov 15 2016 22:53
xD I bet that's entertaining!
Jonathan Herman
@lantech19446
Nov 15 2016 22:54
sometimes it makes me feel like the male version of Garcia lol
Lily Romano
@Lilyheart
Nov 15 2016 22:58
I don't get the reference :( I'm either tired or just plain don't know it :O
Jonathan Herman
@lantech19446
Nov 15 2016 22:59
garcia is the computer expert on criminal minds who developed her entire system from the ground up on Linux
Lily Romano
@Lilyheart
Nov 15 2016 22:59
oooooooh
Jonathan Herman
@lantech19446
Nov 15 2016 23:05
and atom no go on ubuntu server
Lily Romano
@Lilyheart
Nov 15 2016 23:05
boooooooo
Jonathan Herman
@lantech19446
Nov 15 2016 23:10
yea it's missing libXss.so.1 and there's no way to add that library to server
Lily Romano
@Lilyheart
Nov 15 2016 23:10
ouch
Jonathan Herman
@lantech19446
Nov 15 2016 23:18
yep and no luck with gedit either
Lily Romano
@Lilyheart
Nov 15 2016 23:19
wow. any gui editors? or just CLI stuff? vi(m)/nano/etc
I do home automation scripting in nano but I wouldn't want to do anything major. gui ide's just make things so much easier with shortcuts.
Jonathan Herman
@lantech19446
Nov 15 2016 23:20
it used to be that you could run limited graphical stuff but now it looks like I pretty much have to go with vim nano touch something like that my problem is how on earth would I import something like github into one of those
Lily Romano
@Lilyheart
Nov 15 2016 23:20
git is commandline first.
I use git 100% on the commandline. My homeautomation is in a git/github repo and I access it purely command line.
Jonathan Herman
@lantech19446
Nov 15 2016 23:21
right but opening a project with an entire file structure like I can do in atom isn't going to work in vim
Lily Romano
@Lilyheart
Nov 15 2016 23:21
nope :/ Lots of cd'ing needed
I alias a lot of the folders I need to switch to frequently.
Jonathan Herman
@lantech19446
Nov 15 2016 23:23
I think i'm just better off with a de unfortunately
Lily Romano
@Lilyheart
Nov 15 2016 23:27
it's not as annoying as you might think once you get used to it. but it can be a pain.
Jonathan Herman
@lantech19446
Nov 15 2016 23:28
i mean git itself seems pretty straight forward but I really like having a graphical editor it's just hard for me to keep stuff like that straight in my head
Lily Romano
@Lilyheart
Nov 15 2016 23:31
I agree, gui is a LOT easier.
Jonathan Herman
@lantech19446
Nov 15 2016 23:33
yea and one of the reasons I'd love to learn linux servers is to get away from that dependency but there's certain things I just wouldn't use them for
Lily Romano
@Lilyheart
Nov 15 2016 23:37
My home-automation has made me so familiar with the command line @ _@ it's crazy.
Jonathan Herman
@lantech19446
Nov 15 2016 23:38
I bet
Jonathan Herman
@lantech19446
Nov 15 2016 23:51
god how is it not even 8yet
Lily Romano
@Lilyheart
Nov 15 2016 23:52
Is that when you are done with work?
It's a good news/bad news thing for me! I have homework due tonight :O
Jonathan Herman
@lantech19446
Nov 15 2016 23:52
nope 9 but i've been here since 10am and just can't wait to at least be on the home stretch
Lily Romano
@Lilyheart
Nov 15 2016 23:56
Wow! Ugh!
Running to wawa real quick as I'm loaning out my car tomorrow and need to pick up some lunch. :O brb
Jonathan Herman
@lantech19446
Nov 15 2016 23:59
k see ya soon