These are chat archives for FreeCodeCamp/Help

10th
Jan 2018
Nihilgeist
@Nihilgeist
Jan 10 2018 01:42
can someone help me with a problem i'm have on the freecodecamp website?
Bjorn van de Peut
@bjorno43
Jan 10 2018 01:43
@Nihilgeist Perhaps. Depends on what the problem is
Nihilgeist
@Nihilgeist
Jan 10 2018 01:45
ok. so i just got started with the site. i'm on the "say hello to html elements". i changed a few words around in the text editor and nothing happens. where is the button to take me to the next page?
Bjorn van de Peut
@bjorno43
Jan 10 2018 01:45
Can you please copy the URL to me?
Bjorn van de Peut
@bjorno43
Jan 10 2018 01:46
Hmm. Changes automaticly appear inside the phone on the right for me
What browser are you using?
Nihilgeist
@Nihilgeist
Jan 10 2018 01:47
yes, that works. but isn't this a lesson isn't there another page after this page?
i'm using chrome
Kyle Holm
@thekholm80
Jan 10 2018 01:47
ctrl + enter
Bjorn van de Peut
@bjorno43
Jan 10 2018 01:47
Yes. On your left, you can read the challenge you're supposed to finish
Aditya
@ezioda004
Jan 10 2018 01:48
Your h1 element should have the text "Hello World"
Bjorn van de Peut
@bjorno43
Jan 10 2018 01:48
Once done, you can press the button "Run tests" or like @thekholm80 said, press Ctrl+Enter
Nihilgeist
@Nihilgeist
Jan 10 2018 01:48
ctrl + enter got it going
for some reason it was obscured
the rest of the challenge i mean
Nihilgeist
@Nihilgeist
Jan 10 2018 01:51
yup ctrl+enter got it going. THANKS!
Bjorn van de Peut
@bjorno43
Jan 10 2018 01:51
No problem :) Glad it helped you out
Kyle Holm
@thekholm80
Jan 10 2018 01:54
lol
Bjorn van de Peut
@bjorno43
Jan 10 2018 01:55
Kyle Holm
@thekholm80
Jan 10 2018 01:56
i was going to ask what you were using as far as web sockets or whatever, then I saw the php
Bjorn van de Peut
@bjorno43
Jan 10 2018 01:57
Yup. I'm using a PHP socket server
Kyle Holm
@thekholm80
Jan 10 2018 01:58
i've used socket.io in node, it's pretty awesome
i know nothing about PHP though
Bjorn van de Peut
@bjorno43
Jan 10 2018 01:59
It's same with me the other way around. At first Node seemed the best choice. But since PHP 7.1, it's more of a preference than which is better
Kyle Holm
@thekholm80
Jan 10 2018 01:59
i use node because i'm too lazy to learn something new
and i'm still a JS noob
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:00
I'm good with JS, just not Node, lol
Kyle Holm
@thekholm80
Jan 10 2018 02:00
someday I'll learn some more python, then django
but not today
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:01
Nice :) I'm happy with PHP. It's reasonably close to C# so it's easy to switch between the two for me
Kyle Holm
@thekholm80
Jan 10 2018 02:02
good deal
Claudio Restifo
@Marmiz
Jan 10 2018 02:02
write servers in C like the ancient did...
I saw hieroglyphics in Egypt about it
Kyle Holm
@thekholm80
Jan 10 2018 02:02
pfft assembly or gtfo
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:02
I still have a book about C here, lol
Claudio Restifo
@Marmiz
Jan 10 2018 02:03
I like C(pp)
Kyle Holm
@thekholm80
Jan 10 2018 02:03
I did a bit of C++, i didn't hate it
so much memory management in C though, it's intimidating
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:03
I did some C++ in the past, but I prefer C#
Claudio Restifo
@Marmiz
Jan 10 2018 02:03
sometimes when I'm tired of JS I write in C.. just to remind myself that still there's some order in this chaotic world
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:04
The build in garbage collector for example is extremely usefull
Kyle Holm
@thekholm80
Jan 10 2018 02:04
yeah
@Marmiz did you see this?
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:04
And with .NET Core I can write for other platforms as well :)
Kyle Holm
@thekholm80
Jan 10 2018 02:05
for some reason anything Microsoft makes me slightly nauseous
Claudio Restifo
@Marmiz
Jan 10 2018 02:06
@thekholm80 coworker passed the link yesterday... still have to read it!
think i'll do it now
Kyle Holm
@thekholm80
Jan 10 2018 02:06
it's kind of scary
Claudio Restifo
@Marmiz
Jan 10 2018 02:06
thanks for the link @thekholm80
CamperBot
@camperbot
Jan 10 2018 02:06
:star2: 1659 | @thekholm80 |http://www.freecodecamp.org/thekholm80
marmiz sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:06
To me it depends. I've worked some time for and closely together with MS devs before and they can be rly nice and helpfull
I mean, ye, it's a business. They're not helpfull at all to those who haven't paid for it. But they won't rest untill a customer has his problem solved when he does. I remember having a very complicated problem with LDAP and Windows. I ended up with entire department of MS working for hours with me to solve it
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:12
Extremely usefull stuff btw. LDAP
Kyle Holm
@thekholm80
Jan 10 2018 02:13
i'd never heard of that before
i'm still a total noob about most this stuff
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:13
Well, you know how websites have a database for users right? To login
Kyle Holm
@thekholm80
Jan 10 2018 02:14
right
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:14
LDAP is like the global database for that. You can hook pretty much any system to it. Windows login. Unix login. Website login. Pretty much anything can communicate with LDAP
Kyle Holm
@thekholm80
Jan 10 2018 02:15
i see
Henry
@GitHub-Henry
Jan 10 2018 02:16
@bjorno43 your experience with ms customer service with is why large companies LOVE ms
and ibm
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:16
So it's extremely usefull for business. There's one centralized database that holds all the information about a user and all their systems are inmediately setup for them
@GitHub-Henry Yup
Henry
@GitHub-Henry
Jan 10 2018 02:19
that type of customer service is a security blanket for manager that need projects done on time, they know they can get help. although when things get exotic, sometimes customer service can't help so much
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:21
True. But ye, service like that is expensive. It's not for the home user
Henry
@GitHub-Henry
Jan 10 2018 02:22
@bjorno43 did you notice i said, large companies up front. those large companies have large pockets to pay for service contracts with folks like ms and ibm
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:23
I know. I was working for a large company at the time
Then again, I hardly see a home user work with LDAP, haha
Henry
@GitHub-Henry
Jan 10 2018 02:25
@bjorno43 i thought LDAP was primarily for intranet stuff
single sign on
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:25
It is mostly used for intranet stuff. But it can be used remotely as well
The advantage of LDAP is that you usually don't need extra software to communicate with it. If you use other databases like MSSQL or Oracle, you can't use it for system accounts by default
Gersho
@Gersho
Jan 10 2018 02:33
isn't LDAP a domain controller ?
Bjorn van de Peut
@bjorno43
Jan 10 2018 02:39
No. LDAP can communicate with a domain controller though. I don't know enough about it all to fully understand LDAP (it's an extremely complicated subject). But it stands for: Lightweight Directory Access Protocol. So to quote wiki: LDAP is an open, vendor-neutral, industry standard application protocol for accessing and maintaining distributed directory information services over an Internet Protocol (IP) network.
Directory services play an important role in developing intranet and Internet applications by allowing the sharing of information about users, systems, networks, services, and applications throughout the network. - So as I said: It's a centralized database
Skylar
@skyboy1997
Jan 10 2018 02:58
Anybody think they can help on a Mongo database question that I have?
Kyle Holm
@thekholm80
Jan 10 2018 03:00
@skyboy1997 we can sure try
Bjorn van de Peut
@bjorno43
Jan 10 2018 03:02
lol.. I just found out that one of old 9gag posts became famous across the internet xD
Skylar
@skyboy1997
Jan 10 2018 03:05

@thekholm80

console.log('Server-side code running');

const express = require('express');
const MongoClient = require('mongodb').MongoClient;

const app = express();


app.use(express.static('public'));


let db;


const url = 'mongodb://localhost:27017/clicks';

MongoClient.connect(url, (err, database) => {
  if (err) {
    return console.log(err);
  }
  db = database;
  // start the express web server listening on 8080
  app.listen(8080, () => {
    console.log('listening on 8080');
  });
});


app.get('/', (req, res) => {
  res.sendFile(__dirname + '/index.html');
});


app.post('/clicked', (req, res) => {
  const click = {
    clickTime: new Date()
  };

I have this code that adds clicks to a database. I have the collections setup and each time I click the button it creates its own document. I want each click to go into just one document not create a new one for each click. I was thinking that I needed to use db.collections.update() but not sure where to put into code or if I had to run something threw the terminal.

Kyle Holm
@thekholm80
Jan 10 2018 03:06
i think db.collection.findOneAndUpdate() may be in the current driver, but I'll have to look
Skylar
@skyboy1997
Jan 10 2018 03:07
@thekholm80 Okay let me know. Also If you could let me know where to put this into my code Ill give it a try and let you know how it goes.
so your app.post() would probably be a good place to put it
something like
Skylar
@skyboy1997
Jan 10 2018 03:09
@thekholm80 Can you maybe show me. Im fairly new to this and the best way for me to learn is visualization. Thank you.
CamperBot
@camperbot
Jan 10 2018 03:09
skyboy1997 sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1660 | @thekholm80 |http://www.freecodecamp.org/thekholm80
Kyle Holm
@thekholm80
Jan 10 2018 03:11
sorry, i'm typing slow
haven't done mongo in a while
one sec
app.post('/clicked', (req, res) => {
  const clicked = {
    clickTime: new Date()
  }

  let collection = db.client.collection('yourCollection');
  collection.findOneAndUpdate(
    {_id: whateverTheIdIsForThisRecord},
    { $inc: {clicks: 1 }}
  );
i think that's it
Skylar
@skyboy1997
Jan 10 2018 03:15
I'll try this out and let you know!
Kyle Holm
@thekholm80
Jan 10 2018 03:16
you'll probably need to add the objectId() method off the mongo library to specify the id
wait, that isn't going to record the timestamp for each click though
Skylar
@skyboy1997
Jan 10 2018 03:19
what isnt?
Kyle Holm
@thekholm80
Jan 10 2018 03:19
my example code
Skylar
@skyboy1997
Jan 10 2018 03:21
what do I need for that to happen?
Kyle Holm
@thekholm80
Jan 10 2018 03:21
one sec
sorry playing a game that doesn't pause lol
all you want to do is insert a new document into the collection containing a timestamp?
app.post('/clicked', (req, res) => {
  const clicked = {
    clickTime: new Date()
  }

  let collection = db.client.collection('yourCollection');
  collection.insertOne(clicked);
});
Skylar
@skyboy1997
Jan 10 2018 03:32
Yeah when I click the button it gives me a time stamp and it gives me an ID. I want those to go into one document instead of making a individual document for each click. @thekholm80
Kyle Holm
@thekholm80
Jan 10 2018 03:33
show me what you want the document to look like
Skylar
@skyboy1997
Jan 10 2018 03:41
https://imgur.com/gallery/HbuZu This link shows what the database looks like. See how for every click it creates an id and a timestamp. I want those three documents and their information into one document.
Kyle Holm
@thekholm80
Jan 10 2018 03:43
i mean, you could put the timestamps into an array in a single document, but storing data in arrays in Mongo isn't good practice
is there a reason you want it all in a single document?
Skylar
@skyboy1997
Jan 10 2018 03:45
Just a little project I'm doing to actually learn mongo. Maybe I'm
not explaining it the best way possible lol
Skylar
@skyboy1997
Jan 10 2018 03:51
[

        {
            "id" :  "randomNumber1",
            "timeStamp" : "randomTimeStamp1"
        },
        {
            "id" :  randomNumber2,
            "timeStamp" : "randomTimeStamp2"
        },
        {
            "id" :  randomNumber3,
            "timeStamp" : "randomTimeStamp3"
        },

    ];
I figure I would want it to look something like this
It would contain all of the clicks
Kyle Holm
@thekholm80
Jan 10 2018 03:52
you can do that
it would be more like
{
  _id: blahblahblah,
  clicks: [ 
    {
      id: 'randomNumber,
      timestamp: whatever
    },
    { ... }
  ]
}
every document has a unique id
all data has to be assigned to a key
Skylar
@skyboy1997
Jan 10 2018 03:54
yeah how would I go about doing that?
Kyle Holm
@thekholm80
Jan 10 2018 03:57
you can use findOneAndUpdate() just make sure you use the upsert: true flag in the options, and for the modify use { $push: { clicks: clicked } }
Skylar
@skyboy1997
Jan 10 2018 03:58
okay and put it where you showed me previously?
Kyle Holm
@thekholm80
Jan 10 2018 03:58
yes
Skylar
@skyboy1997
Jan 10 2018 04:03
@thekholm80 Thanks I appreciate it.
CamperBot
@camperbot
Jan 10 2018 04:03
skyboy1997 sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
api offline
Albert Cardona II
@daddycardona
Jan 10 2018 04:53
hey yall
Kyle Holm
@thekholm80
Jan 10 2018 04:54
@daddycardona :wave:
we're having quiet time
Albert Cardona II
@daddycardona
Jan 10 2018 04:54
Hey what you doiong?
LOL
Kyle Holm
@thekholm80
Jan 10 2018 04:54
i'm reading medium articles about GraphQL and trying to stay awake
you?
Albert Cardona II
@daddycardona
Jan 10 2018 04:54
working on the layout
Kyle Holm
@thekholm80
Jan 10 2018 04:55
very cool
Albert Cardona II
@daddycardona
Jan 10 2018 04:55
then I realized can I have a JQuery that says if I click in this area? append this or clear everything
should I even use jquery?
Kyle Holm
@thekholm80
Jan 10 2018 04:56
well
manipulating the DOM is easier with jQuery than with vanilla JS
but i hate jQuery lol
Albert Cardona II
@daddycardona
Jan 10 2018 04:57
I thinking I am going to need to add anchor tags or do I need to anymore? should I have made them all buttons vs divs?
Kyle Holm
@thekholm80
Jan 10 2018 04:57
anchor tags? what are you linking to?
Albert Cardona II
@daddycardona
Jan 10 2018 04:57
lol damn I thought about this all to late just because I wanted to mess with the css grid lol
Claudio Restifo
@Marmiz
Jan 10 2018 04:57
try to use Vanilla JS :)
Kyle Holm
@thekholm80
Jan 10 2018 04:57
i use divs for everything
but that's just my preference
Albert Cardona II
@daddycardona
Jan 10 2018 04:57
I am not there yet lol and you right @thekholm80 I am not connecting to anything lol
Kyle Holm
@thekholm80
Jan 10 2018 04:58
buttons come with some baked in functionality that's pretty handy
Albert Cardona II
@daddycardona
Jan 10 2018 04:58
or linking to anything so I should be good
so i can use div's and be have a click listener attached to it? I have been doing all these algorithm challenges and forgot how to make website lol
Kyle Holm
@thekholm80
Jan 10 2018 04:59
yes, you can add onClick() listeners to your divs
i do that a lot
Albert Cardona II
@daddycardona
Jan 10 2018 05:00
okay so I will use Jquery for that just got to remember it because it is basically used for making things simpler lol
Kyle Holm
@thekholm80
Jan 10 2018 05:01

along with

.someClassForMyDiv {
  cursor: pointer;
}

in my css

Albert Cardona II
@daddycardona
Jan 10 2018 05:02
I could also do div.container:child {cursor:pointer} or something crazy like that too
?
Kyle Holm
@thekholm80
Jan 10 2018 05:02
yeah, you can make it as complicated as you want
complication intensifies
Albert Cardona II
@daddycardona
Jan 10 2018 05:03
LMAO I am trying to do that so when I mess it up I will slowly strip it away and redo it lol
Kyle Holm
@thekholm80
Jan 10 2018 05:03
you do you :)
i reserve the right to bust your balls though
Albert Cardona II
@daddycardona
Jan 10 2018 05:04
oh go right ahead I was just trying to relearn that little bit of css grid that I learned and got carried away lol
Kyle Holm
@thekholm80
Jan 10 2018 05:04
have you done grid garden or any of those tutorials?
Albert Cardona II
@daddycardona
Jan 10 2018 05:05
I done a tutorial in the middle of the last 3 or 2 challenges I got stuck on because I like to make it harder to remember stuff too lol
Kyle Holm
@thekholm80
Jan 10 2018 05:06
I don't really remember much of anything. the best thing I ever did was figure out how to read official docs so that I can look up what I need
Albert Cardona II
@daddycardona
Jan 10 2018 05:07
that site is awesome thanks @thekholm80
CamperBot
@camperbot
Jan 10 2018 05:07
daddycardona sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1661 | @thekholm80 |http://www.freecodecamp.org/thekholm80
Kyle Holm
@thekholm80
Jan 10 2018 05:08
i've not worked through that one, but it was recommended at the workshop I went to last spring
Albert Cardona II
@daddycardona
Jan 10 2018 05:10
shoot workshops, I am lucky if I can go to one with my kids all types of schedules too keep. I live with my oldest son I have an older daughter and 2 younger sons and i am their uber when I have to get them etc.. lol and now 3 step kids lol
Kyle Holm
@thekholm80
Jan 10 2018 05:10
i'm single with no kids, but sometimes I drive my Grandma to the doctors, so I feel your pain
Albert Cardona II
@daddycardona
Jan 10 2018 05:12
speaking of driving people I also have to drive my mother because of her eyes they get dialated like once a month lol
now I start school monday im stoke like a little fat kid in the candy store lol
Kyle Holm
@thekholm80
Jan 10 2018 05:12
sounds like your retirement is busier than most people's work life
Albert Cardona II
@daddycardona
Jan 10 2018 05:13
not really just I am to broke to actually go to those things why I stay home a lot lol
Kyle Holm
@thekholm80
Jan 10 2018 05:13
smart
Albert Cardona II
@daddycardona
Jan 10 2018 05:14
I am going to make my actual web page that I own into my profile and do all my projects there ;)
my portfolio page
Kyle Holm
@thekholm80
Jan 10 2018 05:14
very cool, get some exposure
Ken Haduch
@khaduch
Jan 10 2018 05:16
@daddycardona - where are you going to school? Good luck with that!
Albert Cardona II
@daddycardona
Jan 10 2018 05:16
I am going to school in framingham, its for the VA rehabilitation program
I should get a job afterwards
Ken Haduch
@khaduch
Jan 10 2018 05:17
@daddycardona - wow, good luck with that, and especially driving to Framingham, LOL!
Albert Cardona II
@daddycardona
Jan 10 2018 05:17
electronic repair me and @thekholm80 gonna run intel and microsoft and make a business deal lol
I go the back roads lol
these streets are really bad in the winter though they suck lol
Kyle Holm
@thekholm80
Jan 10 2018 05:19
when you get done with your classes maybe you can tell me why ziner (i think that's how they're spelled) diodes allow 2 way flow
Albert Cardona II
@daddycardona
Jan 10 2018 05:19
I use to know that LOL
Kyle Holm
@thekholm80
Jan 10 2018 05:19
i thought the whole point of diodes was a one-way gate ... so confused
Albert Cardona II
@daddycardona
Jan 10 2018 05:19
been a long time lol
I don't know why they do that google don't even kno wwhy @thekholm80
lol
anyways I am going to watch a movie and rest because tomorrow I will try to tackle the coding of the calculator or later today I wil lol
good Night yall ;)
Kyle Holm
@thekholm80
Jan 10 2018 05:22
@daddycardona g'night
Henry
@GitHub-Henry
Jan 10 2018 07:55
@daddycardona a favorite calc test .1 + .2 = .3
Alexander Køpke
@alexanderkopke
Jan 10 2018 10:11
@GitHub-Henry what language allows that?
Henry
@GitHub-Henry
Jan 10 2018 10:13
@alexanderkopke when i test a calculator, a standard test i use is to use the calculator to input the simple formula .1 + .2 = i expect the answer .3
without any other digits trailing
Alexander Køpke
@alexanderkopke
Jan 10 2018 10:25
@GitHub-Henry ah I see. Cool
Patelican
@Patelican
Jan 10 2018 14:58
hey guys, I am trying to get an input of the window height so I can apply that to a series of images, so the first image on the site will fill the screen but you can still scroll through all the images. I know how to get the window height using jQuery, but how do I apply it to an element?
Gersho
@Gersho
Jan 10 2018 15:01
how about using CSS height: 100vh ?
slri
@slri
Jan 10 2018 15:03
+1 for 100vh
Patelican
@Patelican
Jan 10 2018 15:07
@Gersho i tried that, but I just want to be able to get the screen height value and then apply it, cuz when I use 100vh on multiple images it stuffs them into 1 screen and resizes them to fit
i want to just get a variable, and then apply it to an element
slri
@slri
Jan 10 2018 15:08
@Patelican then you're doing it wrong
Patelican
@Patelican
Jan 10 2018 15:08
can you give me a sample of some sort of how to do it properly?
Gersho
@Gersho
Jan 10 2018 15:08
if it's grouping them it means you're applying the size to the group, rather than doing it on them independantly
sorry it's ugly, but you'll see each section is 100vh high
slri
@slri
Jan 10 2018 15:09
your images need to be set to display: block; especially if you're putting this on the img element itself
Patelican
@Patelican
Jan 10 2018 15:10
wait i tried something else and it worked
Gersho
@Gersho
Jan 10 2018 15:10
:clap:
Patelican
@Patelican
Jan 10 2018 15:10
i just had to set the widths of the images to 100vw
i accidentally also set them to 100vh
lol thanks @Gersho
CamperBot
@camperbot
Jan 10 2018 15:10
patelican sends brownie points to @gersho :sparkles: :thumbsup: :sparkles:
:cookie: 570 | @gersho |http://www.freecodecamp.org/gersho
John Deegan
@JohnDeegs
Jan 10 2018 15:16
Hey guys, not a FCC question per say, but I'm trying to copy this jfiddle onto codepen, but instead of loading the popout box the codepen goes straight to the youtube embed link specified. The code is the same, can anyone spot the difference? It's driving me insane.
slri
@slri
Jan 10 2018 15:17
@JohnDeegs off the top of my head: try including jquery before fancybox
that is indeed the problem
(ss coming up)
image.png
John Deegan
@JohnDeegs
Jan 10 2018 15:33
@RuinIsProbablyTaken Ah I knew it was something simple, thanks
CamperBot
@camperbot
Jan 10 2018 15:33
johndeegs sends brownie points to @ruinisprobablytaken :sparkles: :thumbsup: :sparkles:
:cookie: 751 | @ruinisprobablytaken |http://www.freecodecamp.org/ruinisprobablytaken
Gersho
@Gersho
Jan 10 2018 15:58
i tried making an install script via ssh, but the script stops after the connection, how am i supposed to do this ?
#!/bin/bash
echo Enter the IP of the destination machine
read target
echo Enter the destination machine username
read username
ssh $username@$target -oStrictHostKeyChecking=no
sudo apt-get install python3-pip apache2 libapache2-mod-wsgi-py3
## the install line doesn't run
Darren
@DarrenfJ
Jan 10 2018 16:05
morning fCC
Gersho
@Gersho
Jan 10 2018 16:05
:wave: @DarrenfJ
Darren
@DarrenfJ
Jan 10 2018 16:06
@Gersho :D
Kyle Holm
@thekholm80
Jan 10 2018 16:06
@DarrenfJ :wave:
slri
@slri
Jan 10 2018 16:06
@DarrenfJ o/
Darren
@DarrenfJ
Jan 10 2018 16:06
schweet the gangs all here
slri
@slri
Jan 10 2018 16:07
tbh we're missing manish :C
@Manish-Giri where u at fam
Kaz Baig
@kbaig
Jan 10 2018 16:07
suh
Gersho
@Gersho
Jan 10 2018 16:07
knee deep in some java probably ^^
Kaz Baig
@kbaig
Jan 10 2018 16:08
I can be the substitute hehe
slri
@slri
Jan 10 2018 16:08
no one can substitute manish, sorry
Kaz Baig
@kbaig
Jan 10 2018 16:08
Brown and work at a competing company, that's all we need right????
Darren
@DarrenfJ
Jan 10 2018 16:08
true... and diomed and our resident gandalf are usally in the main room now
slri
@slri
Jan 10 2018 16:09
wow boring
Kaz Baig
@kbaig
Jan 10 2018 16:09
The main room is just JS bashing
Kyle Holm
@thekholm80
Jan 10 2018 16:09
closure circle jerk
Kaz Baig
@kbaig
Jan 10 2018 16:09
It's either that or political
Darren
@DarrenfJ
Jan 10 2018 16:09
yah i don't really go in there much
Gersho
@Gersho
Jan 10 2018 16:09
i don't really like the main room, i never felt i belonged there
Kaz Baig
@kbaig
Jan 10 2018 16:09
Half the people complaining about x republican and the other half being r/iamverysmart saying they don't know who that is
Gersho
@Gersho
Jan 10 2018 16:09
also mods are very biased there
r/iamverysmart
reddit never cease to amaze me lol
Darren
@DarrenfJ
Jan 10 2018 16:10
the chat just moves too fast and not all that much info on coding tbh
Kaz Baig
@kbaig
Jan 10 2018 16:10
A1 sub right there
Gersho
@Gersho
Jan 10 2018 16:11
i only lurk reddit, i don't even have an account
Kaz Baig
@kbaig
Jan 10 2018 16:11
Yet another reason to promote Help instead of FreeCodeCamp
I mostly lurk, I think I have like 200 karma over 6 years
Darren
@DarrenfJ
Jan 10 2018 16:11
there should be an einstein emoji for everytime someone replies like that
slri
@slri
Jan 10 2018 16:11
i've been to the main room once and i absolute cancer
Gersho
@Gersho
Jan 10 2018 16:11
but we need some fresh people here :(
slri
@slri
Jan 10 2018 16:11
got absolute cancer*
i forgot how to write, been working on these cards for mobile for my portfolio uwu
Darren
@DarrenfJ
Jan 10 2018 16:12
weirdly enough i think part of it is actually onthe gitter page that lists all the rooms help is way at the bottom.. the specific help like front end help is actually in the view
but you have to noGaaaawdnoooooo! scroll to get to the help link
Gersho
@Gersho
Jan 10 2018 16:13
they are listed by total population
Darren
@DarrenfJ
Jan 10 2018 16:13
ah
Kaz Baig
@kbaig
Jan 10 2018 16:13
Someone was struggling with a basic for loop problem that you run into an hour into the JS curriculum and their response was go read a JS book you don't know the fundamentals and use let, var is bad
so unhelpful
Gersho
@Gersho
Jan 10 2018 16:13
Help: 990
chinese: 24704
xD too bad i can't read chinese
Kaz Baig
@kbaig
Jan 10 2018 16:13
Time to find a good translation software
Gersho
@Gersho
Jan 10 2018 16:14
lol like that shop in china that is named "translate server error"
Kaz Baig
@kbaig
Jan 10 2018 16:14
Gotta keep it classy tbh
VaseJS
@VaseJS
Jan 10 2018 16:15
@DarrenfJ hey
Darren
@DarrenfJ
Jan 10 2018 16:15
i lived in little korea in Toronto for many years and all the stores were called happytimes [insert some other words]. I always wondered what the actual name in the korean was
slri
@slri
Jan 10 2018 16:15
most people who are "experienced" end up being extra unhelpful
Darren
@DarrenfJ
Jan 10 2018 16:16
@VaseJS brutha!
slri
@slri
Jan 10 2018 16:16
@VaseJS where did you come from
VaseJS
@VaseJS
Jan 10 2018 16:16
@RuinIsProbablyTaken hey
long time no see
Darren
@DarrenfJ
Jan 10 2018 16:16
i heard you got some actual people wanting you to code some project... noice
VaseJS
@VaseJS
Jan 10 2018 16:16
i’ve come out of hiding
i was mastering css and have emerged from my cave
with a long white beard
Gersho
@Gersho
Jan 10 2018 16:17
you mean a color: white; beard
VaseJS
@VaseJS
Jan 10 2018 16:17
lol
Darren
@DarrenfJ
Jan 10 2018 16:17
and wizened
Stephen James
@sjames1958gm
Jan 10 2018 16:17
beard-color: white;
Kaz Baig
@kbaig
Jan 10 2018 16:17
.beard {
  color: #fff;
}
VaseJS
@VaseJS
Jan 10 2018 16:17
.beard {
color: white;
}
ha @kbaig :+1:
Stephen James
@sjames1958gm
Jan 10 2018 16:17
He who says to have mastered CSS has much yet to learn
Kaz Baig
@kbaig
Jan 10 2018 16:17
gottem
Wait till you realize CSS is turing complete tho
Gersho
@Gersho
Jan 10 2018 16:18
-i know CSS-fu
-show me
slri
@slri
Jan 10 2018 16:18
gandalf 2.0
VaseJS
@VaseJS
Jan 10 2018 16:18
not true. mastering does not imply a humble outlook. it also does not imply completion. just reaching a certain level.
Darren
@DarrenfJ
Jan 10 2018 16:18
ha.. you guys are killing me
VaseJS
@VaseJS
Jan 10 2018 16:18
@Gersho i was thinkng that too
Darren
@DarrenfJ
Jan 10 2018 16:18
with yer secret powers
VaseJS
@VaseJS
Jan 10 2018 16:19
by that paradigm, no one can master anything
Darren
@DarrenfJ
Jan 10 2018 16:19
there is no spoon
Kaz Baig
@kbaig
Jan 10 2018 16:19
So you're saying you're now the front end turbo nuclear ninja that recruiters are claiming to look for??
VaseJS
@VaseJS
Jan 10 2018 16:19
that line is so deep on so many levels
Darren
@DarrenfJ
Jan 10 2018 16:19
the goal is the path.. and the goal moves as you approach it
VaseJS
@VaseJS
Jan 10 2018 16:20
@kbaig turbo nuclear ninja, no. can create scalable css, yes
there was a lot to learn. still learning but on a more granular level
Kaz Baig
@kbaig
Jan 10 2018 16:21
Did you tackle naming schemes?
Wondering what approach you took, if so
VaseJS
@VaseJS
Jan 10 2018 16:21
css is a fixed knowledge base so it can be mastered.
yep…all of them
all the main popular ones at least
took the good from each and combined them (not that they can’t be used together, but it does take some modification)
but thats not the important thing to understand about css. css is what needs to be understood
everything else is just a tool to make your life easier working in a team
which includes me, myself and i
Gersho
@Gersho
Jan 10 2018 16:23
i hate that team, myself is always so mean to me
and i takes all the credit in the end
Kyle Holm
@thekholm80
Jan 10 2018 16:23
@Gersho maybe you should try being nicer? a team player?
slri
@slri
Jan 10 2018 16:23
myself is indeed a chode
VaseJS
@VaseJS
Jan 10 2018 16:23
i just always hope past me is considering future me
@thekholm80 lol
chode?
Darren
@DarrenfJ
Jan 10 2018 16:24
past me regularly teleports into my mindspace and punches me in the face
chode is supra oldschool... like 90's oldschool
slri
@slri
Jan 10 2018 16:26
i guess we're all being visited by past mes
Darren
@DarrenfJ
Jan 10 2018 16:27
past me-memes
i'm sad to leave the room you guys are killing me...
DarrenfJ @DarrenfJ sneaks off
slri
@slri
Jan 10 2018 16:28
you need to wear camouflage to be able to do that @DarrenfJ
effectively at least
Nahuel Ovejero
@NahuelOvejero
Jan 10 2018 16:29
:wave: /help
Gersho
@Gersho
Jan 10 2018 16:29
was looking for a webcomic from owlturd about past present future me "sharing" the workload but i can't seem to find it again :(
Kyle Holm
@thekholm80
Jan 10 2018 16:30
@NahuelOvejero :wave:
Gersho
@Gersho
Jan 10 2018 16:30
@NahuelOvejero :wave:
Nahuel Ovejero
@NahuelOvejero
Jan 10 2018 16:32
yo yo hommies
Kaz Baig
@kbaig
Jan 10 2018 16:38
@DarrenfJ nah chode is back
slri
@slri
Jan 10 2018 16:51
stronger than ever!
Nahuel Ovejero
@NahuelOvejero
Jan 10 2018 16:52
the point before fall
Kyle Holm
@thekholm80
Jan 10 2018 19:19
I know i've said it before, but GraphQL blows my mind
being able to interact with my DB and external apis all through a single endpoint is so awesome
slri
@slri
Jan 10 2018 19:20
fanboy
Kyle Holm
@thekholm80
Jan 10 2018 19:20
totally
slri
@slri
Jan 10 2018 19:20
i'm amazed that i actually have some cool stuff on my codepen xd
Kyle Holm
@thekholm80
Jan 10 2018 19:21
my codepen and github are where dreams go to die
complete disaster
slri
@slri
Jan 10 2018 19:21
my bitbucket is a graveyard
but my github is getting all sparkly
Kaz Baig
@kbaig
Jan 10 2018 19:22
Just got exposure to GraphQL yesterday, looks super appealing
Was going through the GatsbyJS tutorial
Kyle Holm
@thekholm80
Jan 10 2018 19:22
@kbaig it's a pain in the ass, much like Redux, but once you learn the secret voodoo dance to make it work it's awesome
Kaz Baig
@kbaig
Jan 10 2018 19:23
@thekholm80 idk how to use it in general, but its use in Gatsby was very straightforward since it processes your query in a template string tag at build time
Kyle Holm
@thekholm80
Jan 10 2018 19:24
I'm actually using apollo-server-express but it follows the same principals
Kaz Baig
@kbaig
Jan 10 2018 19:25
Something like this?
graphql`
  {
    query
  }
`
slri
@slri
Jan 10 2018 19:26
nerds
Kaz Baig
@kbaig
Jan 10 2018 19:26
:thinking:
Gersho
@Gersho
Jan 10 2018 19:26
damn, i was doing fine with my environment variables but it's going to hell when i try to do the same on my server :/ i tried to put them in various places but i can't seem to autoadd them at startup (NOT login)
Kyle Holm
@thekholm80
Jan 10 2018 19:26
my current project looks like
const { makeExecutableSchema } = require('graphql-tools'),
      resolvers = require('./resolvers');

const typeDefs = `
  type User {
    id: ID!
    display_name: String!
    first_name: String!
    last_name: String!
    password: String!
  }

  type Address {
    display_address: [String]
  }

  type Bar {
    id: ID
    image_url: String
    url: String
    name: String
    location: Address
    display_phone: String
  }
  ...
`;
then way down at the bottom module.exports = makeExecutableSchema({ typeDefs, resolvers });
Kaz Baig
@kbaig
Jan 10 2018 19:27
gotcha
Gatsby creates the schema for you
Kyle Holm
@thekholm80
Jan 10 2018 19:28
interesting
Kaz Baig
@kbaig
Jan 10 2018 19:29
Since the purpose of having graphql is to be able to import data from various sources into your React components
Could be markdown files you have locally, api calls, interactions with CMSs like WP
Kyle Holm
@thekholm80
Jan 10 2018 19:30
i'm doing all of that on the server, so that React will only interact with my back end
Kaz Baig
@kbaig
Jan 10 2018 19:30
Yeah. Gatsby is for static site generation so no back end
Kyle Holm
@thekholm80
Jan 10 2018 19:30
having created a ton of endpoints for a REST api, this is so much better
Kaz Baig
@kbaig
Jan 10 2018 19:31
Planning on using it for my personal site just as a way to show off
Sam Goldberg
@sgoldber61
Jan 10 2018 19:51
i
I am going again through Stephen Grider's Modern React with Redux course, and I am having some issues with setting up the ReduxSimpleStarter repository. After npm install, I did npm start but I keep getting the error Cannot find module 'C:\Users\sgoldber\Documents\udemy_tutorials\ReduxSimpleStarter\node_modules\webpack-dev-server\bin\webpack-dev-server.js'
Kyle Holm
@thekholm80
Jan 10 2018 19:55
i think you need to change the start script to start: 'webpack-dev-server --open' or something like that, lemme look at my code @sgoldber61
yeah, it's "start": "webpack-dev-server --open"
Sam Goldberg
@sgoldber61
Jan 10 2018 19:56

You mean in package.json, I should replace "start": "node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js",

with "start": "webpack-dev-server --open" ?

Kyle Holm
@thekholm80
Jan 10 2018 19:56
yes
Sam Goldberg
@sgoldber61
Jan 10 2018 19:58
I got error: cannot find module 'webpack'
Kyle Holm
@thekholm80
Jan 10 2018 19:58
can you paste your package.json?
Sam Goldberg
@sgoldber61
Jan 10 2018 19:59
Yeah, it's the package.json that just comes with the repository. Here it is:
{
  "name": "redux-simple-starter",
  "version": "1.0.0",
  "description": "Simple starter package for Redux with React and Babel support",
  "main": "index.js",
  "repository": "git@github.com:StephenGrider/ReduxSimpleStarter.git",
  "scripts": {
    "start": "webpack-dev-server --open",
    "test": "mocha --compilers js:babel-core/register --require ./test/test_helper.js --recursive ./test",
    "test:watch": "npm run test -- --watch"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "babel-core": "^6.2.1",
    "babel-loader": "^6.2.0",
    "babel-preset-es2015": "^6.1.18",
    "babel-preset-react": "^6.1.18",
    "chai": "^3.5.0",
    "chai-jquery": "^2.0.0",
    "jquery": "^2.2.1",
    "jsdom": "^8.1.0",
    "mocha": "^2.4.5",
    "react-addons-test-utils": "^0.14.7",
    "webpack": "^1.12.9",
    "webpack-dev-server": "^1.14.0"
  },
  "dependencies": {
    "babel-preset-stage-1": "^6.1.18",
    "lodash": "^3.10.1",
    "react": "^0.14.3",
    "react-dom": "^0.14.3",
    "react-redux": "4.3.0",
    "react-router": "^2.0.1",
    "redux": "^3.0.4"
  }
}
Kyle Holm
@thekholm80
Jan 10 2018 20:02
that's crazy
i've used both scripts and it's working for me, and using the same versions of webpack
Sam Goldberg
@sgoldber61
Jan 10 2018 20:04
So, I found a discussion of this error here StephenGrider/ReduxSimpleStarter#152 but some of their solutions didn't work, maybe you'll understand more of what they say.
Ken Haduch
@khaduch
Jan 10 2018 20:04
@sgoldber61 - do you have your files local to your project or system wide? The way I have mine set up, they are all underneath the project directories and I have to set my default to there to start them? Just thinking out loud....
Sam Goldberg
@sgoldber61
Jan 10 2018 20:05
@khaduch I'm afraid I don't understand...
Kyle Holm
@thekholm80
Jan 10 2018 20:05
@khaduch that is a good place to start ... @sgoldber61 do you see a directory named node_modules?
Sam Goldberg
@sgoldber61
Jan 10 2018 20:05
Yeah, I do
Kyle Holm
@thekholm80
Jan 10 2018 20:06
does it have webpack and webpack-dev-server inside it?
Sam Goldberg
@sgoldber61
Jan 10 2018 20:06
No
Kyle Holm
@thekholm80
Jan 10 2018 20:06
you need to npm install
you didn't install all the packages
Sam Goldberg
@sgoldber61
Jan 10 2018 20:07
Just npm install doesn't do anything. Should I explicitly write npm install webpack?
Kyle Holm
@thekholm80
Jan 10 2018 20:07
weird
maybe npm install --save-dev webpack@1.12.9 webpack-dev-server@1.14.0
then you get the expected versions
Sam Goldberg
@sgoldber61
Jan 10 2018 20:08
It still doesn't show up in the module_modules
Kyle Holm
@thekholm80
Jan 10 2018 20:09
this is where i'd get a hammer
Sam Goldberg
@sgoldber61
Jan 10 2018 20:09
hehe
Kyle Holm
@thekholm80
Jan 10 2018 20:10
do you see anything in your node_modules directory?
should have about 442 items in there
Ken Haduch
@khaduch
Jan 10 2018 20:10
Is there a "verbose" mode to show what the install attempted to do? I haven't used npm lately... The course I am taking is using "yarn" for the package manager to install things and run them
Gersho
@Gersho
Jan 10 2018 20:10
finnaly fixed my problem ! /dance
Kyle Holm
@thekholm80
Jan 10 2018 20:11
@Gersho yay! :tada:
Sam Goldberg
@sgoldber61
Jan 10 2018 20:11
Yeah, I have a bunch of stuff in mode_modules, but 184 items
or rather 111 items
Kyle Holm
@thekholm80
Jan 10 2018 20:14
hmm
maybe delete your modules directory and try installing again?
Sam Goldberg
@sgoldber61
Jan 10 2018 20:15
I just did that, and again got cannot find module 'webpack'
Kyle Holm
@thekholm80
Jan 10 2018 20:17
you've got no luck, friend. I think you've exceeded my knowledge
Sam Goldberg
@sgoldber61
Jan 10 2018 20:17
:( OK well thank you so much anyway!
Kyle Holm
@thekholm80
Jan 10 2018 20:34
async / await feels like cheating, i can't get over how much cleaner my code is using it
Aditya
@ezioda004
Jan 10 2018 20:40
I have yet to learn that, looked similar to pythons async's but I used that a long time ago.
Kyle Holm
@thekholm80
Jan 10 2018 20:41

old way:

module.exports = (password, cb) => {
  bcrypt.genSalt(10, (err, salt) => {
    bcrypt.hash(password, salt, (err, hash) => {
      cb(hash);
    });
  });
}

with async / await:

module.exports = async password => {
  const salt = await bcrypt.genSalt(10),
        hash = await bcrypt.hash(password, salt);

  return hash;
}
those sideways pyramids :cry:
i should probably wrap it all in try() and catch() so i don't get that unhandled promise rejection error
Kaz Baig
@kbaig
Jan 10 2018 20:45
Depends on what you want to do with errors but yeah
Gersho
@Gersho
Jan 10 2018 20:48
is that backend JS ?
Kyle Holm
@thekholm80
Jan 10 2018 20:48
i'm doing this bit in Node, yes
Gersho
@Gersho
Jan 10 2018 20:49
ok i still haven't tried node
Kyle Holm
@thekholm80
Jan 10 2018 20:49
working on authentication without Passport.js as a crutch
Gersho
@Gersho
Jan 10 2018 20:51

okay so i have the following script

#!/bin/bash
echo Enter the IP of the destination machine
read target
echo Enter the destination machine username
read username

ssh -t $username@$target -oStrictHostKeyChecking=no "sudo apt -y install python3-pip python3-venv apache2 libapache2-mod-wsgi-py3; mkdir ~/projects; exit"
scp -r ytparty/ requirements.txt environment 000-default.conf $username@$target:~/projects
ssh -t $username@$target -oStrictHostKeyChecking=no "cd ~/projects; sudo mv 000-default.conf /etc/apache2/sites-available/000-default.conf; python3 -m venv venv-ytparty; cat environment >> ~/projects/ytparty/ytparty/wsgi.py; chmod 664 ~/projects/ytparty/db.sqlite3; sudo chown :www-data ~/projects/ytparty/db.sqlite3; sudo chown :www-data ~/projects/ytparty; sudo service apache2 restart;. venv-ytparty/bin/activate; pip install -r requirements.txt; cd ytparty; python3 manage.py makemigrations; python3 manage.py migrate;  sudo service apache2 restart; exit"

but it asks for the password like a billion times, any way to simplify that ?

Coy Sanders
@coymeetsworld
Jan 10 2018 20:53
What is it for? Can you setup ssh keys?
Gersho
@Gersho
Jan 10 2018 20:54
it's to setup my project on a virtual machine
i guess i could but i'd rather not, since that would add steps to do outside the script
i'm trying to make this script in a way that the install should be easy enougth i can explain it to my grandma over the phone
Darren
@DarrenfJ
Jan 10 2018 22:12
@RuinIsProbablyTaken words to live by
my bitbucket is a graveyard
but my github is getting all sparkly
DarrenfJ @DarrenfJ turns off cloaking device...
Gersho
@Gersho
Jan 10 2018 22:14
i'm getting my frst few green squares on github <3
Kyle Holm
@thekholm80
Jan 10 2018 22:20
@Gersho congrats!
Darren
@DarrenfJ
Jan 10 2018 22:21
noice!
i got tons of practise over the years by having gitHub desktop on my work computer and git on my home and tracking my 100 days of code from both.. doing git and pushes from home and using the suprisingly non-intuitive desktop version to do PR's
Gersho
@Gersho
Jan 10 2018 22:22
but i should have used the same method as the press (one news and it's denial is 2 news) rather than waiting for it to be ready i should have uploaded the wip and get points for the commits
Darren
@DarrenfJ
Jan 10 2018 22:22
back and forth. add commit, push, pull spacedocking forever
Kyle Holm
@thekholm80
Jan 10 2018 22:23
@DarrenfJ lol
Gersho
@Gersho
Jan 10 2018 22:23
bureaucracy
Darren
@DarrenfJ
Jan 10 2018 22:23
@Gersho I'm surprised you haven't been using git up til now?
Kyle Holm
@thekholm80
Jan 10 2018 22:23
@Gersho i had an idea about your app, now I kind of want to build something like it lol
Gersho
@Gersho
Jan 10 2018 22:23
no i haven't, even tho i've spent week on that repo
@thekholm80 feel free to fork :P the flavor text is in french but all the code is using english variable names and stuff
Kyle Holm
@thekholm80
Jan 10 2018 22:25
i don't know enough python / django to make any kind of contribution there
i'd have to rebuild the whole thing in JS first lol
Gersho
@Gersho
Jan 10 2018 22:25
there's quite a bit of JS too
you should check ytparty/client/views.py it's pretty intuitive
Kyle Holm
@thekholm80
Jan 10 2018 22:27
the things i'd want to do though require web sockets, authentication, etc and that would require a lot of python learning
Gersho
@Gersho
Jan 10 2018 22:27
dunno about web sockets but auth is built in
Gersho
@Gersho
Jan 10 2018 22:32
i can't wait to see the CES blackout memes
Aditya
@ezioda004
Jan 10 2018 22:38
There was a blackout there?
Gersho
@Gersho
Jan 10 2018 22:42
yeah, almost 2 hours
Aditya
@ezioda004
Jan 10 2018 22:53
Damn, I guess they couldn't afford the electricity like I cant afford any of the shown products there.
Gersho
@Gersho
Jan 10 2018 23:26
even if i could i wouldn't get them
Albert Cardona II
@daddycardona
Jan 10 2018 23:43
@GitHub-Henry why do you that test .1+.2=.3?
hey everyone how is everything.
I heard web sockets were a lot easier to learn with python @thekholm80
js math is not normal
Albert Cardona II
@daddycardona
Jan 10 2018 23:45
why does it do that? confused
Kyle Holm
@thekholm80
Jan 10 2018 23:45
i've used web sockets with node, it's not so bad
Albert Cardona II
@daddycardona
Jan 10 2018 23:45
I just read comments on stackoverflow that more people prefer python for that but then I don't know any python
Kyle Holm
@thekholm80
Jan 10 2018 23:46
the math thing has to do with how floating point arithmetic works with limited precision
Albert Cardona II
@daddycardona
Jan 10 2018 23:48
I am reading this link now so much to know that sucks lmao
Kyle Holm
@thekholm80
Jan 10 2018 23:48
i just remember that "JS math is weird" then google when the weirdness happens lol
i'm pretty sure i used a math library for my calculator so I wouldn't have to worry about any of that
or order of operations
Albert Cardona II
@daddycardona
Jan 10 2018 23:50
why do you think it says api's for this calculator, what API would I want to use? I understand math libraries but API?
Kyle Holm
@thekholm80
Jan 10 2018 23:50
hmm
maybe you could send your user input off to some NASA super-computer via api?
Albert Cardona II
@daddycardona
Jan 10 2018 23:53
LMAO
Well I am working on how to use the containers divs to click on them with JQuery to do some magic with it versus havint to say ('.2','.3', etc..
Kyle Holm
@thekholm80
Jan 10 2018 23:55
i like magic
sometimes I try to talk to people in my everyday life about my adventures in coding, generally i just end up saying "it's magic"
Albert Cardona II
@daddycardona
Jan 10 2018 23:56
lmao
Gersho
@Gersho
Jan 10 2018 23:57
i used a lame workaround on my calculator
Albert Cardona II
@daddycardona
Jan 10 2018 23:57
I found someone that I can practice and help and learn to code with
Gersho
@Gersho
Jan 10 2018 23:57
and did all the maths as integers for the exact change challenge (you get floating errors on that one too)
Albert Cardona II
@daddycardona
Jan 10 2018 23:57
I might import a math library makes a lot of sense
I forgot that my code won't work with JQuery if I don't link the jquery library lol
Kyle Holm
@thekholm80
Jan 10 2018 23:58
@daddycardona http://mathjs.org/ this is what i used
the cdn: https://cdnjs.cloudflare.com/ajax/libs/mathjs/3.10.0/math.min.js