These are chat archives for FreeCodeCamp/Help

14th
Jul 2018
glitz20
@glitz20
Jul 14 2018 00:25
Hey guys I am trying to add session for passport in express,
How can I connect database to it when I am using Mlab URI to access to by Mongo database
Kyle Holm
@thekholm80
Jul 14 2018 00:28
@sabin20 what have you tried?
don't show your username or password though
glitz20
@glitz20
Jul 14 2018 00:28
lol
app.use(
    session({
        secret: process.env.APP_SECRET || 'cat',
        store: new MongoStore({ mongoose.connect('mongodb://username:password@ds113162.mlab.com:3325/ab')}),
        resave: false,
        saveUnitialized: false
    })
)
Kyle Holm
@thekholm80
Jul 14 2018 00:30
oh, sorry i don't know anything about mongoose
i use plain old mongodb
Aditya
@ezioda004
Jul 14 2018 00:30
username: admin
password: *****
You're a h4ck3r now.
Kyle Holm
@thekholm80
Jul 14 2018 00:30
lol
glitz20
@glitz20
Jul 14 2018 00:32
so I were to connect to local database I would smth like
store: new MongoStore({ mongooseConnection: dbConnection }),
Kyle Holm
@thekholm80
Jul 14 2018 00:33
are you using express-session?
glitz20
@glitz20
Jul 14 2018 00:33
yeah
@thekholm80
Kyle Holm
@thekholm80
Jul 14 2018 00:34
yeah that's all foreign to me
glitz20
@glitz20
Jul 14 2018 00:36
so it is using local host/shell to connect to database
But I am using the direct URI,so I donot know how can I connect Mongostore to database?
Kyle Holm
@thekholm80
Jul 14 2018 00:37
did you look at dbConnection?
const dbConnection = require('./db') // loads our connection to the mongo database
glitz20
@glitz20
Jul 14 2018 00:38
Yeah
Kyle Holm
@thekholm80
Jul 14 2018 00:39
so you want to do it differently than the code you're copying?
glitz20
@glitz20
Jul 14 2018 00:39
So should I just replace the local host url by my uri?
Kyle Holm
@thekholm80
Jul 14 2018 00:40
are you loading a URI into your process.env?
glitz20
@glitz20
Jul 14 2018 00:41
Currently I am connected to database like this
mongoose.Promise = require('bluebird');
mongoose.connect('mongodb://username:password@ds113162.mlab.com:3325/ab')
    .then(() => { // if all is ok we will be here
        console.log('Start');
    })
    .catch(err => { // if error we will be here
        console.error('App starting error:', err.stack);
        process.exit(1);
    });
Kyle Holm
@thekholm80
Jul 14 2018 00:41
let MONGO_URL this bugs me lol
Aditya
@ezioda004
Jul 14 2018 00:42
Yeah, it should've been var MONGO_URL :trollface:
Kyle Holm
@thekholm80
Jul 14 2018 00:42
all caps means constant
glitz20
@glitz20
Jul 14 2018 00:42
this way it is connected to database
Kaylee
@kaymonlee
Jul 14 2018 00:43
if I wanted an image in the center with text on the left and right.. would the best way to achieve this be with floating?
glitz20
@glitz20
Jul 14 2018 00:43
the github repo connects Mongostore to database using the file
store: new MongoStore({ mongooseConnection: dbConnection }),
How should I do in my case?
Kyle Holm
@thekholm80
Jul 14 2018 00:45
@kaymonlee do you want the sentences to continue on the other side of the image, or will each side contain blocks of text?
Kaylee
@kaymonlee
Jul 14 2018 00:45
blocks of text. an unordered list to be exact @thekholm80
Kyle Holm
@thekholm80
Jul 14 2018 00:46
@sabin20 my dude you may need to hit the mongoose docs. barring that, there's a back end room where you'll probably find other people who use mongoose
@kaymonlee have you ever used grid, or flexbox?
or, are you using bootstrap or another framework?
Kaylee
@kaymonlee
Jul 14 2018 00:48
@thekholm80 I have used both a little bit. is flexbox what I should be using?
Kyle Holm
@thekholm80
Jul 14 2018 00:49
that would be my choice, since it's what i'm most familiar with. it makes things like this pretty simple
Kaylee
@kaymonlee
Jul 14 2018 00:50
@thekholm80 thank you! i will try that out! I am not sure why floating everything is always my solution lol I need to get out of that mindset
Kyle Holm
@thekholm80
Jul 14 2018 00:51
@kaymonlee the great thing about css is there's tons of ways to do things. i can't help you with float because i don't use it lol. that doesn't mean it won't work
i'm putting together a little demo of what i mean with flexbox, will just take a sec
glitz20
@glitz20
Jul 14 2018 00:52
@thekholm80 ssure. Also @cmccormack might have idea about this one
Kyle Holm
@thekholm80
Jul 14 2018 00:53
Aditya
@ezioda004
Jul 14 2018 00:54
Without flexbox, though I'd also recommend that.
Kyle Holm
@thekholm80
Jul 14 2018 00:55
@ezioda004 oh nice
Kaylee
@kaymonlee
Jul 14 2018 00:56
okay thank you @thekholm80 @ezioda004 that helps me a ton
Kyle Holm
@thekholm80
Jul 14 2018 00:56
i used a cat pic, so obv i win
Aditya
@ezioda004
Jul 14 2018 00:56
Flexbox one is more flexible, mine is hardcoded..I wouldnt use mine lol
@thekholm80 Rookie mistake by me :sob:
glitz20
@glitz20
Jul 14 2018 00:57
@ezioda004 do you have idea about mongoose?
Kyle Holm
@thekholm80
Jul 14 2018 00:57
lol
Aditya
@ezioda004
Jul 14 2018 00:59
@sabin20 I've worked with it before, but I've repressed that memory.
glitz20
@glitz20
Jul 14 2018 01:00
@ezioda004 have you played around with passport?
Aditya
@ezioda004
Jul 14 2018 01:02
Yes, but I'm afraid my knowledge in that area is very limited, dont think I can help you with that.
glitz20
@glitz20
Jul 14 2018 01:05
Do you think this would work?
~store: new MongoStore({ mongoose.connect('mongodb://username:password@ds113162.mlab.com:3325/ab')})
~
store: new MongoStore({ mongoose.connect('mongodb://username:password@ds113162.mlab.com:3325/ab')})
Since I am using URI to connect to mlab
Moisés Man
@moigithub
Jul 14 2018 01:11
i dont recall.. but this is a codesnippet i have
import session from 'express-session';

mongoose.Promise = global.Promise;
mongoose.connect(config.db, {
  useMongoClient: true,
});
mongoose.connection.on('error', function(err){
  console.error("error connecting to the DB "+ err);
  process.exit(-1);
});

var mongoStore = require('connect-mongo')(session);

app.use(session({
    secret: 'my super secret password.',
    resave: false,
    saveUninitialized: true,
    store: new mongoStore({mongooseConnection: mongoose.connection})
}));
glitz20
@glitz20
Jul 14 2018 01:17
@ for the store, would this work since I am directly using the URI?
store: new MongoStore({ mongooseConnection: mongoose.connect('mongodb://username:password@ds113162.mlab.com:3325/ab')}),
Rita Alfonso
@alfonsotech
Jul 14 2018 01:19
Hi, I just finished revamping my resume in anticipation of going on the job market. Can I post it here for some proofreading and first-impressions?
Kyle Holm
@thekholm80
Jul 14 2018 01:20
@alfonsotech sure
Moisés Man
@moigithub
Jul 14 2018 01:24
@sabin20 that will work i think.. but IF u already connected.. u can reuse the connection
glitz20
@glitz20
Jul 14 2018 01:25
like how?
Moisés Man
@moigithub
Jul 14 2018 01:25
above example.. already using a "variable" named mongoose.. (which is an object with a connection property)
n config.db would be 'mongodb://username:password@ds113162.mlab.com:3325/ab'
glitz20
@glitz20
Jul 14 2018 01:29
@moigithub I had established connection like this
mongoose.Promise = require('bluebird');
mongoose.connect('mongodb://username:password@ds113162.mlab.com:3325/ab')
    .then(() => { // if all is ok we will be here
        console.log('Start');
    })
    .catch(err => { // if error we will be here
        console.error('App starting error:', err.stack);
        process.exit(1);
    });
@moigithub
Rita Alfonso
@alfonsotech
Jul 14 2018 01:32
Here is a link to my CV - posted it to a page on an old website so I could show it since Gitter doesn’t seem to allow for uploads, lol: http://dogtrainingtipster.weebly.com/cv.html
@thekholm80
Moisés Man
@moigithub
Jul 14 2018 01:33
@sabin20 then add the missing part...
app.use(
    session({
        secret: process.env.APP_SECRET || 'cat',
        store: new MongoStore({mongooseConnection: mongoose.connection}),
        resave: false,
        saveUnitialized: false
    })
)
Rita Alfonso
@alfonsotech
Jul 14 2018 01:33
Any typos or spelling errors, I’d love to catch before sending out. Other feedback also welcome.
Kyle Holm
@thekholm80
Jul 14 2018 01:34
@alfonsotech i'm envious, i'd love to teach web dev
Rita Alfonso
@alfonsotech
Jul 14 2018 01:35
I love teachign web dev. :-) You can probably do it too!
To teach at a higher level I need industry experience, thus the job search.
Kyle Holm
@thekholm80
Jul 14 2018 01:36
[...] offered feedback for up to 3 non-metee apprentice engineers
what is a "metee"?
glitz20
@glitz20
Jul 14 2018 01:36
thanks @moigithub
Kyle Holm
@thekholm80
Jul 14 2018 01:43
@alfonsotech looks pretty good, i only saw that one thing. I'm not sure how it would look printed out, but style-wise i feel like it could use a bit of white-space. that's just opinion though
Rita Alfonso
@alfonsotech
Jul 14 2018 01:44
a mentee is the person who a mentor mentors.
Kyle Holm
@thekholm80
Jul 14 2018 01:44
you should add the "n" then :smile:
Rita Alfonso
@alfonsotech
Jul 14 2018 01:45
Yeah, it’s meant to be machine read. :-) Brave new world….
aha, lol, didn’t see it even when you pointed it out.
Thanks for proofing it for me. Hope to return the favor someday. :-)
Kyle Holm
@thekholm80
Jul 14 2018 01:45
any time
Kaylee
@kaymonlee
Jul 14 2018 01:46
hey can you guys look at my tribute page and give me some feedback?
Kyle Holm
@thekholm80
Jul 14 2018 01:46
yes ma'am
feels like there's definitely some mistakes in there lol
Rita Alfonso
@alfonsotech
Jul 14 2018 01:48
I like the dotted border and back/yellow color
Kyle Holm
@thekholm80
Jul 14 2018 01:48
@kaymonlee how come you're not using the fCC testing suite?
Kaylee
@kaymonlee
Jul 14 2018 01:49
@thekholm80 shoot! I didn't even think of that
Kyle Holm
@thekholm80
Jul 14 2018 01:49
@kaymonlee should be easy to add
Aditya
@ezioda004
Jul 14 2018 01:50
It looks great, I like it. The font selection complements the theme and its responsive as well. :clap:
Kaylee
@kaymonlee
Jul 14 2018 01:50
I've never forked before
Kyle Holm
@thekholm80
Jul 14 2018 01:51
hmm, i wonder if their testing is broken ... i'm getting an error
Kaylee
@kaymonlee
Jul 14 2018 01:51
thank you! I need to do something with the image... it's really small on mobile
Kyle Holm
@thekholm80
Jul 14 2018 01:52
@kaymonlee if you just add this into your <head>, you should be good:
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
i think it looks great
Kaylee
@kaymonlee
Jul 14 2018 01:53
woo hoo! it passed all the tests
Kyle Holm
@thekholm80
Jul 14 2018 01:53
:tada:
Aditya
@ezioda004
Jul 14 2018 01:54
I celebrate by closing 20 chrome tabs.
Kyle Holm
@thekholm80
Jul 14 2018 01:54
i love that feeling
@kaymonlee btw to fork a pen just click the fork button on the pen you want a copy of
image.png
Aditya
@ezioda004
Jul 14 2018 01:55
Ikr, best part of completing a project is freeing up the ram at the end.
Kyle Holm
@thekholm80
Jul 14 2018 01:57
for me the best part is knowing i'll never again have to look at that train wreck of code i just finished writing
Kaylee
@kaymonlee
Jul 14 2018 01:58
i feel like i slowly start to lose my mind during projects
Kyle Holm
@thekholm80
Jul 14 2018 01:58
it gets better. then you'll try something new and it will get worse. then it will get better again. rinse/repeat
Aditya
@ezioda004
Jul 14 2018 01:58
@thekholm80 The future you must hate you for that.
Kyle Holm
@thekholm80
Jul 14 2018 01:59
@ezioda004 that jerk can kick rocks for all i care
Aditya
@ezioda004
Jul 14 2018 02:00
I'm trying out this foreign concept called "documenting", its been interesting so far :smile:
// if you are me then you know how we did it
Kyle Holm
@thekholm80
Jul 14 2018 02:02
mine all say // there's a 50/50 chance you don't need this, lol good luck
well, to be honest i've been trying to comment everything lately. it has made life better
Aditya
@ezioda004
Jul 14 2018 02:07
Yeah, agreed. Something everyone should learn as soon as they start programming.
@thekholm80 You follow any specific style guide?
Kyle Holm
@thekholm80
Jul 14 2018 02:08
yeah
kind of this, at least as far as i have been able to force myself to read it
pretty much just
/**
[ brief description of function ]
@param { Type } name [ what it is ]
@param { Type } anotherName [ what it is ]
@returns whatever
*/
for example:
  getAllBooks: async (_, __, { mongo: { Users, Books } }) => {
    /**
      Queries db for all books
      @param {object} _ unused
      @param {object} __ unused
      @param {object} Users mongodb collection instance
      @param {object} Books mongodb collection instance
      @returns {array} all books in db
    */

  // rest of function code
  }
vscode syntax highlights it really well, so does github
Aditya
@ezioda004
Jul 14 2018 02:13
Thats descriptive, pretty cool. I'll use this in the next project.
I was looking for one and found Googles that said "Use spaces instead of tabs", instant close.
Kyle Holm
@thekholm80
Jul 14 2018 02:13
makes it super useful
oh you mean for more than just comments? lol
i use eslint with airbnb config
and a little custom config because some of the default is bad
and for py i use pylint, with the default setup
Aditya
@ezioda004
Jul 14 2018 02:16
Yeah I'm also using airbnbs with some custom, though I was documenting whatever I felt like :smile:
Kyle Holm
@thekholm80
Jul 14 2018 02:17
i have to admit i still don't write many comments for my react code - it's mostly self-documenting
if i do something really out of the ordinary i will add a comment, but really a pile of jsx speaks for itself
Aditya
@ezioda004
Jul 14 2018 02:19
React is mostly self-documenting...except when its not. Reading somebody elses React code takes me a while to get it going, I guess its more because of declarative nature of it while I'm used to imperative code.
Kyle Holm
@thekholm80
Jul 14 2018 02:20
it took me a long time to quit trying to micro manage my code and make the jump to declarative
Aditya
@ezioda004
Jul 14 2018 02:24
Yep, switching and getting used to takes a while. Its one of the learning curves of React. Working with React is satisfying for me.
Kyle Holm
@thekholm80
Jul 14 2018 02:25
i wish py would click for me the same way react did
Aditya
@ezioda004
Jul 14 2018 02:28
Perhaps you arent doing enough projects with it? Learning py is easy but advanced stuff takes time to sink in.
Also, relevant.
Kyle Holm
@thekholm80
Jul 14 2018 02:28
lol
i have been kind of slacking. just banging stuff out in py isn't all that hard, but writing elegant and concise code is still hard for me
and i'll spend an hour writing something only to find there's some built-in library that already does it
:worried: :gun:
Aditya
@ezioda004
Jul 14 2018 02:32
Thats interesting, JS also have libraries for everything, I wonder at what point dependencies are bad especially with React because I see others using libraries that they could easily write themselves in couple of lines.
Kyle Holm
@thekholm80
Jul 14 2018 02:35
i go back and forth on that - sometimes i think "well, just import something, why re-invent the wheel" then other times i'll kick myself and just write it myself. generally though, if the library solves a problem that i don't feel is worth investing the time to create my own solution for (like bcryptjs, jsonwebtoken, etc) then i don't feel bad using the library
i'm not going to spend the next 2 years of my life studying cryptography just to write a poor-man's version of bcrypt
Aditya
@ezioda004
Jul 14 2018 02:41
Lol, thats true.
Kyle Holm
@thekholm80
Jul 14 2018 02:41
i really wish there were a python version of rot.js. i'm not having much fun trying to write my own
Aditya
@ezioda004
Jul 14 2018 02:44
http://ondras.github.io/rot.js/hp/ This one?
If you write your own, you'll get a "you tried" :cookie:
Kyle Holm
@thekholm80
Jul 14 2018 02:45
yeah, that one. i used it for my rogue-like dungeon game
it's pretty awesome
Aditya
@ezioda004
Jul 14 2018 02:49
Will keep that in mind when I do that project, thanks!
Kyle Holm
@thekholm80
Jul 14 2018 02:50
it was probably my favorite project
Nazar
@IsaakNazar
Jul 14 2018 05:51
:wave:
John
@taloloy18
Jul 14 2018 06:46
Hi guys
What code I should be putting on for me to put the image of the left and put the Quation on the left. I also plan to make my image small
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 07:32
has anyone used both react and vue? not just read or written code for it once but got a little experience with both
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 07:41
So after looking at both react and vue, i realise while powerful they both seem to rely on you (and greatly reward you) for making things into components, and a lot of creating the app becomes learning the structure and components that these frameworks have created instead of using javascript / coding logic. E.g. instead of using logic to storing a dom element and manipulating it by thinking in conditionals, loops, etc with plain JS we are now using for instance react's props and state instead of a lot of these standard coding tools. Same with vue.
From this my main question is: when making more complex apps or getting deeper in react / vue will we actually find the chance to develop standard coding logic and principles and use them or will they all be replaced with frame-work specific replacements. I feel like I'll end up being good at only react-specific tools such as using states and components and not become better with using higher order functions etc like I would if working on a web app with plain JS
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 08:25
vue and react are great for building apps overall and you will not be coding standard coding logic at least i haven't because even if the app gets bigger you use libraries that help you with that and making your app expandable for example for complex state management we use redux or unstated for react and vuex for vue. you shouldn't write anything thats typical js dom manipulations in a vue or react application
but that doesn't make it impossible you can but its not a good practice
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 08:27
@ahmedtarek2134 ok thanks i'm not only talking about dom manipulation, it's general coding logic and knowledge
@ahmedtarek2134 so say using arrays, looping through things , etc
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 08:28
you do use these with react and vue yes
you can like render multiple elements for each value in the array
check the react docs about lists and keys
you'll find an example about that
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 08:28
@ahmedtarek2134 ah ok. Do you get what i mean by coding logic?
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 08:29
i do like if something then put this or update a value in an element something like that right?
the logic for example lives in the react component as functions and for vue you have methods
with them you do whatever you want with that component
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 08:31
@ahmedtarek2134 like say no matter what language background you come from, if you are very good at coding it seems like you understanding how programming works and the thing you are missing between languages is simply syntax and reading / memorizing. I feel like my friend who is amazing at python learned javascript much faster than I did as I had little background before javascript for example. Now transitioning to react / vue it will be a lot of framework tools and features memorizing, but after learning those will an expert programmer be able to use his coding logic / knowledge from other programming or are most replaced with learning new types of thinking in framework specific features
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 08:33
yes you do the logic specific for the framework you are using you don't get much freedom but you will certainly be able to do what you want in the react or vue way if you know what i mean
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 08:35
@ahmedtarek2134 then like someone with expert knowledge in making algorithms and solving problems in java and python and javascript for example goes into react learns the syntax and how the framework works will be at the same level as a beginner who never did coding who also learned the syntax and how the framework works?
@ahmedtarek2134 is it that framework specific or is there some advantage to the knowledge of coding logic and thinking is what im asking
Raira Kothong
@princessraira
Jul 14 2018 08:36
algorithms+logic is not related to any framework
i think u tried to solve frontend dev (rendering) with some algo+logic but that is just simple loop or stuffs
vue+react help on rendering, u still need algo for your business logic
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 08:38
the framework works with the logic that you create
and a person with a coding background will have an easier time to learn a new language or a framework
every language also works differently
not only syntax
Raira Kothong
@princessraira
Jul 14 2018 08:39
that because u talk about simple logic that help manipulate DOM
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 08:40
@princessraira it normally isnt thats why i said with transitioning java into python or javascript or any frameworks with them your logic remains intact. But i found react has different types of logic that standard coding doesn't have, because of components and state and prop you order and structure the logic sort of differently.
@princessraira i wasnt sure how much of react's framework does this new innovative idea to replace traditional coding logic
Raira Kothong
@princessraira
Jul 14 2018 08:42
logic is based on if-then-else, looping; we use it solves problem and yes, the problem might come form DOM rendering and u need it
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 08:42
@princessraira but ok if you say they just help on rendering, then that is fine
Raira Kothong
@princessraira
Jul 14 2018 08:43
i said u still need good algo to develop app with react/vue
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 08:43
@princessraira yep so that's what i prefer, i didnt want to replace everything i learnt about coding with new ways of structuring how we think in programming in a react / vue specific way
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 08:44
react and vue are javascript based they are written in javascript they are not different than the language
Raira Kothong
@princessraira
Jul 14 2018 08:45
python, java, or any languages got their framework and they use it for solving what u met with large apps as well
when u start to think about reusable code, framework can help, especially when u work with other programmers
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 08:47
@ahmedtarek2134 yeah just at the beginner stage it feels like im not using any js things so i got confused, only react-only things such as components and state props. I assume you could use if and loops just haven't come across it yet and wanted to ask some of you what it's like going forward.
@ahmedtarek2134 @princessraira ok thanks a lot :)
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 08:48
just make sure you learn plain javascript before any framework
Raira Kothong
@princessraira
Jul 14 2018 08:48
yvw
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 09:03
@ahmedtarek2134 yep ive been working on that the past few months thats why im moving onto a framework now. So far a day into react, going ot work on vue next and compare
@princessraira @ahmedtarek2134 that being said any tips on which one I should probably go with if i were to focus on one? Maybe better for beginners
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 09:04
the one thats best suited for beginners is vue
learn react after vue
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 09:05
@ahmedtarek2134 i know the syntax and features are different but if i learn vue first will it help me in learning react at all?
Raira Kothong
@princessraira
Jul 14 2018 09:05
i started with react first and then vue, angular is too complicated for me
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 09:06
@princessraira same reason i didnt even mention angular Riara :0
Raira :) *
Raira Kothong
@princessraira
Jul 14 2018 09:06
^ ^
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 09:06
no react and vue are different
just start and get comfortable with vue
take one step at a time dont overwhelm yourself
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 09:08
@ahmedtarek2134 i know they are but i was hoping learning one framework will prepare you somewhat for the next :P
@princessraira did you find Vue easier to learn after you did some react in your personal experience?
Raira Kothong
@princessraira
Jul 14 2018 09:11
if u go through basic tutorial; u will feel vuejs is more simple/easier to understand but if u go through advance tutorials on both react and vue, i think it is not different much
but angular stands in other world
Henry
@GitHub-Henry
Jul 14 2018 10:32
marketplace wants react in a big way
marketplace doesn't have much demand for vue, even less for angular
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 10:37
guys
no one use eslint now
it might steal your credentials
Henry
@GitHub-Henry
Jul 14 2018 10:38
you're talking about the hack
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 10:38
someone got access to one of the eslint's developers profile
yeah
and put malicious code
Kranti Nebhwani
@darkphotonKN
Jul 14 2018 11:01
@GitHub-Henry isn't Vue gaining traction and popularity these past months / year is it still that much unwanted in the market?
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 11:05
the market doesn't move fasy
fast**
a company that works with a stack that fits their needs won't change just because something is gaining popularity
Henry
@GitHub-Henry
Jul 14 2018 11:10
@darkphotonKN React is king and has been for a while, no signs of that changing any time soon
React vs Vue vs Angular vs JavaScript
Momozor
@momozor
Jul 14 2018 11:51
hello world
May I know what happened to FreeCodeCamp/FreeCodeCamp Gitter room?
Did I miss anything?
Anand Potukuchi
@anandpotukchi
Jul 14 2018 11:55
how do i ssign class in jsx
className: 'myDiv'
?
is this correct
Aita Kane
@aita-kane
Jul 14 2018 13:40
hello everybody I'm coding a website with Bootstrap . I code the navbar, and now I'm doing the first section. And when I give the left-top and left-bottom a width of 100% ut nothing change . How can I change the height and width in Bootstrap ?
Anand Potukuchi
@anandpotukchi
Jul 14 2018 13:41
can you plese share your code
both the html and css
Aita Kane
@aita-kane
Jul 14 2018 13:42
@anandpotukchi my bad i forget it here is the pen https://codepen.io/akane96/pen/qyOzex
Anand Potukuchi
@anandpotukchi
Jul 14 2018 13:43
what exactly do you wanr to do?
place a space benath the left top and left-bottom classes?
Aita Kane
@aita-kane
Jul 14 2018 13:45
No actually I want the div with the .section1 class to have the same width and height of this website https://koox.co.uk/
and the col that has the texts Left-top Left-Bottom to have width of 100%
Anand Potukuchi
@anandpotukchi
Jul 14 2018 13:46
container-fluid
instead of container
Aita Kane
@aita-kane
Jul 14 2018 13:47
alright let me test that
Anand Potukuchi
@anandpotukchi
Jul 14 2018 13:47
wait im trying that out first
Aita Kane
@aita-kane
Jul 14 2018 13:48
alright the width change, but the height is not 100%
Anand Potukuchi
@anandpotukchi
Jul 14 2018 13:49
do you want the entire box to be 100%?
Aita Kane
@aita-kane
Jul 14 2018 13:50
Actually I want my row class to be the same size and height of the container that had " creative food and premium" of this website https://koox.co.uk/
the color is just temporary i did it so I could identify who is who
Anand Potukuchi
@anandpotukchi
Jul 14 2018 13:51
I understand
you want thge entire box to be 100%?
Aita Kane
@aita-kane
Jul 14 2018 13:51
@anandpotukchi yes
Anand Potukuchi
@anandpotukchi
Jul 14 2018 13:51
or jjust left-top and lefr-bottm?
Aita Kane
@aita-kane
Jul 14 2018 13:52
row--section1 to have height of 100% and left-top and lefr-bottm width of 100%
Anand Potukuchi
@anandpotukchi
Jul 14 2018 13:56
what do yio u want to imitate
ar e you trying to do this: https://koox.co.uk/
Aita Kane
@aita-kane
Jul 14 2018 14:00
@anandpotukchi yes wait i'm changing something i my pen and I
come back to you . I want the class .row--section1 to look like the rectangle in https://koox.co.uk/ (same height and width ) only
@anandpotukchi how to increase the height of row--section 1 ?
@anandpotukchi
Anand Potukuchi
@anandpotukchi
Jul 14 2018 14:20
sorry
okay
you'll need to mention in pixels
width:x px, height:x px
or in
%
are you suing bootstrap or bulma
Aita Kane
@aita-kane
Jul 14 2018 14:35
@anandpotukchi i'm using bootstrap 4.1.2
so I need to change it into px to have the height changed ?
Anand Potukuchi
@anandpotukchi
Jul 14 2018 14:35
did that work?
you beed to add aa height and width field
Aita Kane
@aita-kane
Jul 14 2018 14:36
Yes when I give the div a height in px it works ut when I try in % it doesn't
Aita Kane
@aita-kane
Jul 14 2018 14:59
@anandpotukchi can you help me with my div overlay please
Anand Potukuchi
@anandpotukchi
Jul 14 2018 15:01
z-index:1, position:absoulutr
apply this and let me know
Aita Kane
@aita-kane
Jul 14 2018 15:05
@anandpotukchi al right thank you but how do i make his height and width to contain exactly col-left and right
@anandpotukchi the pen , I add the position and z-index
Anand Potukuchi
@anandpotukchi
Jul 14 2018 15:08
apply heigt and width in the overlay div
Aita Kane
@aita-kane
Jul 14 2018 15:09
@anandpotukchi I thought that i could make it encircle those elements without applying specific width and height
@anandpotukchi thank you
Anand Potukuchi
@anandpotukchi
Jul 14 2018 15:11
well the logic is that these elements are mutiple with different propersties so you will need something to cover them - something that covers all of themm
good night
Aita Kane
@aita-kane
Jul 14 2018 15:25
@anandpotukchi good night
Josh Buckland
@buck06191
Jul 14 2018 15:36
Hey, I just finished the last javascript project but I've not received a certification. All 5 projects are ticked on the curriculum map, but 3 of those were done before the redesign of the website. Any idea on what needs doing? I really don't want to have to redo the projects, especially as I didn't realise you need to download them to save them
Kyle Holm
@thekholm80
Jul 14 2018 15:36
@buck06191 go to Settings and scroll down to that section. there should be a button that says "Claim this certificate" or something similar
Josh Buckland
@buck06191
Jul 14 2018 15:37
Ah yeah, I'd just found that as your message arrived. Thanks!
Christopher McCormack
@cmccormack
Jul 14 2018 15:40
@thekholm80 gm - did you do the D3 projects recently?
Kyle Holm
@thekholm80
Jul 14 2018 15:40
@cmccormack morning
nah, it's been probably 5 months or more since i did D3
Christopher McCormack
@cmccormack
Jul 14 2018 15:41
nuts, so probably didn't do the treemap I'm guessing
Kyle Holm
@thekholm80
Jul 14 2018 15:41
nope. i had bar, heat map, scatter plot, world map and ... i feel like there was one other
oh force graph
with the flags
Christopher McCormack
@cmccormack
Jul 14 2018 15:43
yeah
They added two more
maybe got rid of one or two as well
Kyle Holm
@thekholm80
Jul 14 2018 15:45
i'll probably take a look one of these days, i'd like to get all - what, 9? - certs someday
Christopher McCormack
@cmccormack
Jul 14 2018 15:45
@thekholm80 6 now isn't it?
not sure
Kyle Holm
@thekholm80
Jul 14 2018 15:45
i'm including the legacy in my count
Christopher McCormack
@cmccormack
Jul 14 2018 15:46
oh then yeah I would bet 9 or 10
Kyle Holm
@thekholm80
Jul 14 2018 15:47
i only have one legacy project left. just need to quit being sad they require twitter auth in the user stories and get it done
Christopher McCormack
@cmccormack
Jul 14 2018 15:48
@thekholm80 which one required it?
I did the nightlife with it, it was really easy to use
Kyle Holm
@thekholm80
Jul 14 2018 15:48
the pinterest clone
Christopher McCormack
@cmccormack
Jul 14 2018 15:48
do you not have Twitter, is that why?
Kyle Holm
@thekholm80
Jul 14 2018 15:49
i just dislike it because passport-twitter requires a success redirect route
it's a stupid thing to be hung up on, but i'm using graphql and didn't want to deal with 1000 endpoints
Smootimus
@Smootimus
Jul 14 2018 15:49
I have never had twitter
eeeeeeva
Kyle Holm
@thekholm80
Jul 14 2018 15:50
@Smootimus you're not really missing much
Smootimus
@Smootimus
Jul 14 2018 15:50
I didn't figure lol
Christopher McCormack
@cmccormack
Jul 14 2018 15:50
I love twitter, once you start following interesting accounts it's probably the best news/tech feed
Smootimus
@Smootimus
Jul 14 2018 15:50
I've had Facebook since it was a college-only thing
Kyle Holm
@thekholm80
Jul 14 2018 15:50
i don't have facebook
Smootimus
@Smootimus
Jul 14 2018 15:50
I've went through spurts where I didn't have one lol
Like right after my divorce
Kyle Holm
@thekholm80
Jul 14 2018 15:51
when my 87 year old grandma started getting all her news from FB i decided it wasn't for me
Christopher McCormack
@cmccormack
Jul 14 2018 15:51
I could see that
I see it as a better to have and not use kind of tool, flag friends you like so their posts rise to the top, block friends/family that post inflammatory crap all the time
Smootimus
@Smootimus
Jul 14 2018 15:52
Monday my new classes start for this next quarter
Kyle Holm
@thekholm80
Jul 14 2018 15:53
@cmccormack i realized that i had hidden the posts from more than 1/2 my 'friends' because i was tired of all the garbage, so it was no big loss for me
@Smootimus awesome, taking anything fun?
Christopher McCormack
@cmccormack
Jul 14 2018 15:54
@thekholm80 it's cleaned up a lot in the last few months, but I hear you, if it doesn't bring joy don't bother with it
hensn5250
@hensn5250
Jul 14 2018 16:01
@cmccormack thanks for the help on the minimax algorithm yesterday
Christopher McCormack
@cmccormack
Jul 14 2018 16:01
@hensn5250 no problem, get it working alright?
hensn5250
@hensn5250
Jul 14 2018 16:02
not exactly
I'm trying to refactor my current TTT game with it but don't know how to add the heuristic values to the minimax algo
Ali Zarifi
@alilike_gitlab
Jul 14 2018 16:06

Hi, I have to do semantic segmentation, using FCN, my question in details is here:

https://stackoverflow.com/questions/51340944/semantic-segmentation-using-dl4j-with-fcn-networks

Could you help pls?

hensn5250
@hensn5250
Jul 14 2018 16:10
@cmccormack this is the current TTT game
and the minimax algo i'm trying the use to replace the current AI logic
Smootimus
@Smootimus
Jul 14 2018 16:15
I've got Windows Networking Essentials, HTML and Javascript, and Intermediate Programming in C++
Those three classes this quarter
Kyle Holm
@thekholm80
Jul 14 2018 16:15
@Smootimus oh duh, you already told me that. my memory is awful
Smootimus
@Smootimus
Jul 14 2018 16:15
lol it's all good
hensn5250
@hensn5250
Jul 14 2018 16:19
@Smootimus what's your major
Christopher McCormack
@cmccormack
Jul 14 2018 16:19
@hensn5250 doesn't show winner until next turn after they should have won
hensn5250
@hensn5250
Jul 14 2018 16:20
really? didn't notice
Christopher McCormack
@cmccormack
Jul 14 2018 16:21
@hensn5250 trying to replicate and it's not
hensn5250
@hensn5250
Jul 14 2018 16:22
you mean minimax algo i posted?
Christopher McCormack
@cmccormack
Jul 14 2018 16:22
ttt
hensn5250
@hensn5250
Jul 14 2018 16:22
oh ... likely the check_for_win()... or condition that calls it
Smootimus
@Smootimus
Jul 14 2018 16:27
Software Engineering
@hensn5250
hensn5250
@hensn5250
Jul 14 2018 16:30
awesome. lots of C++/Java
Smootimus
@Smootimus
Jul 14 2018 16:31
Yeah
hensn5250
@hensn5250
Jul 14 2018 16:33
took C++ back in college but what I learned was kinda surface level C++
had no idea how vast it was until watching vids on youtube
Smootimus
@Smootimus
Jul 14 2018 16:36
It's very powerful
I started with C first time I went to college
Back in 04
I've dabbled in a lot of languages since then
Kyle Holm
@thekholm80
Jul 14 2018 16:37
dang, you're old
Smootimus
@Smootimus
Jul 14 2018 16:37
I know right LOL!
Starting to feel it too haha
I went out on a boat yesterday, did some tubing
I'm paying for it today :'(
Kyle Holm
@thekholm80
Jul 14 2018 16:37
i finished high school in 99, you must have been right behind me
Smootimus
@Smootimus
Jul 14 2018 16:38
Yeah shortly afterthat
hensn5250
@hensn5250
Jul 14 2018 16:40
why did your learn C?
Smootimus
@Smootimus
Jul 14 2018 16:41
1.) Why not?
2.) School curriculum
I still use C to this day
hensn5250
@hensn5250
Jul 14 2018 16:42
people(online) say its not good for a first language
Kyle Holm
@thekholm80
Jul 14 2018 16:42
iirc we did C for CS50. i remember not being too impressed with it
Smootimus
@Smootimus
Jul 14 2018 16:42
People are crazy
And very opinionated
hensn5250
@hensn5250
Jul 14 2018 16:42
yes
Smootimus
@Smootimus
Jul 14 2018 16:43
Yeah CS50 does C
Like I tell everyone, the language really doesn't matter especially if you're just learning
hensn5250
@hensn5250
Jul 14 2018 16:44
If you can program in C other languages highe level languages can be easier to grasp
Smootimus
@Smootimus
Jul 14 2018 16:44
Learning C, you'll absolutely learn the core of what it takes to write a program
Yeah, exactly
hensn5250
@hensn5250
Jul 14 2018 16:44
C is like learning to drive a stick shift car
Smootimus
@Smootimus
Jul 14 2018 16:44
But going the other way, not really so easy
Learning C++ won't make learning C easier lol
Learning C, then going to C++ is different.
Christopher McCormack
@cmccormack
Jul 14 2018 16:44
We learned C so we could translate it to Assembly, as C is probably the closest language
Smootimus
@Smootimus
Jul 14 2018 16:45
You learn a ton working in C that you're forced to do, like memory management and all that stuff that's taken care of in other languages
Kyle Holm
@thekholm80
Jul 14 2018 16:45
malloc is the devil
Smootimus
@Smootimus
Jul 14 2018 16:45
Which if you ask me, is something crucial you should understand
LOL
Isn't it tho
Every language has it's place and I don't really buy into that mindset that one is better than the other, especially when it comes to learning
hensn5250
@hensn5250
Jul 14 2018 16:47
yea, C is more hardware focused than other langs
Smootimus
@Smootimus
Jul 14 2018 16:47
Once you understand core basics picking up a language can be a weekend endeavor lol
Kyle Holm
@thekholm80
Jul 14 2018 16:47
i wish i could do that
Smootimus
@Smootimus
Jul 14 2018 16:48
We got C++, then gonna touch on C# and then step into a bunch of .NET work before going to Java and pretty much finishing up in that. Of course there's PHP and Javascript and SQL, database management and whatnot
I've tried to avoid # like the plague
hensn5250
@hensn5250
Jul 14 2018 16:49
@about picking up other languages, in theory yes, but I find it that once you start learning one language the other fades away
Kyle Holm
@thekholm80
Jul 14 2018 16:49
i don't want to do anything requiring .net
Smootimus
@Smootimus
Jul 14 2018 16:49
I've experienced a bit of that myself, the fading
hensn5250
@hensn5250
Jul 14 2018 16:50
I thought since I knew a bit of Java that learning JavaScript would be easy, i was wrong
Smootimus
@Smootimus
Jul 14 2018 16:50
Like Working in C then going to Python, I trip up a bit and start dropping things
hensn5250
@hensn5250
Jul 14 2018 16:50
syntax yes, but everything else no
Smootimus
@Smootimus
Jul 14 2018 16:50
Nah Java and Javascript don't correlate at ALL
Kyle Holm
@thekholm80
Jul 14 2018 16:51
switching back and forth between JS and py, i find myself having to go back through my py code and remove ; everywhere
drives me nuts
Smootimus
@Smootimus
Jul 14 2018 16:51
LOL
Yeah that's always been something for me
And py drops a lot of () on me
And going from strong to weak typed
That always makes me scratch my head
Kyle Holm
@thekholm80
Jul 14 2018 16:52
i dislike having to pay attention to float, int, etc in py, but it's better than having to declare a type like i did in VB
dim x as float bleh
Smootimus
@Smootimus
Jul 14 2018 16:53
Heh
I do a ton of electronics and embedded systems stuff so that's where my knowledge is
So working in scripting languages and stuff has always been a task for me to transition to
Kyle Holm
@thekholm80
Jul 14 2018 16:55
i'm having flashbacks now of trying to learn the difference between all the types in vb
Smootimus
@Smootimus
Jul 14 2018 16:55
Looking to get an Adafruit Metro board cause it has CircuitPython capabilities that's something I wanna try out
Kyle Holm
@thekholm80
Jul 14 2018 16:56
float, double, long, longlong, etc
Smootimus
@Smootimus
Jul 14 2018 16:56
LoL Yeah memory size and signed/unsigned
Honestly most the time I just use int or double >.>
Screw float when I have somethign as accurate as double
Kyle Holm
@thekholm80
Jul 14 2018 16:57
i'm glad i don't have to worry about it anymore. but i've been thinking about trying out c++ when i get done with py, then i'm sure i'll have to sort all that out again
Smootimus
@Smootimus
Jul 14 2018 16:57
lol yeah
You'll experience what I always experience u.u
Kyle Holm
@thekholm80
Jul 14 2018 16:57
hallucinations?
Smootimus
@Smootimus
Jul 14 2018 16:58
I dunno, languages like Java is always so much easier for me to read
Yeah kinda LOL!
Kyle Holm
@thekholm80
Jul 14 2018 16:58
i dislike languages with a bunch of symbol operators
like >>
Smootimus
@Smootimus
Jul 14 2018 16:58
cpp lol
Kyle Holm
@thekholm80
Jul 14 2018 16:59
or do they go the other way? cout << foo << otherthing
Smootimus
@Smootimus
Jul 14 2018 16:59
and the scope operator
:: all over the place
Kyle Holm
@thekholm80
Jul 14 2018 16:59
it's just one more barrier to entry, makes the learning curve a bit steeper
Smootimus
@Smootimus
Jul 14 2018 17:00
<< is output >> input
Kyle Holm
@thekholm80
Jul 14 2018 17:00
i hope what i learn about OOP in py will translate well
trying to get a handle on public / private, meta, static, all that stuff has been interesting
Smootimus
@Smootimus
Jul 14 2018 17:01
Fer shur
The basics of it will translate yeah but the structuring and whatnot might change slightly
But the concepts will be familiar across languages if you get the understanding of it
Kyle Holm
@thekholm80
Jul 14 2018 17:02
that makes sense
Smootimus
@Smootimus
Jul 14 2018 17:03
constructors always seem different to me, I dunno
Java's always been the one to hammer OOP home
Kyle Holm
@thekholm80
Jul 14 2018 17:04
i like that in js you can just call super() vs py where you explicitly call super().__init__()
Smootimus
@Smootimus
Jul 14 2018 17:04
For me
Yeah lol
Things like that
And then C++ is just a whole other thing when it comes to OOP and how it's structured and the ::
Kyle Holm
@thekholm80
Jul 14 2018 17:08
so :: declares scope? is it like blocks?
Lance
@texas2010
Jul 14 2018 17:09
:wave:
Kyle Holm
@thekholm80
Jul 14 2018 17:09
@texas2010 :wave:
Smootimus
@Smootimus
Jul 14 2018 17:09
Yeah it's scope operator
And it deals with constructors and class names and namespaces as well lol
Kyle Holm
@thekholm80
Jul 14 2018 17:11
oh that's fun
Smootimus
@Smootimus
Jul 14 2018 17:14
LoL! Space Ghost Coast to Coast
Nazar
@IsaakNazar
Jul 14 2018 17:18
ReactJS, I have an option with data-vals attribute, but I cant retrieve the value of that data, e.target.getAttribute("data-vals") doestn work
but when I console log(e.target) its there
Kyle Holm
@thekholm80
Jul 14 2018 17:33
@IsaakNazar and you can't just use e.target["data-vals"]?
or e.target.data-vals, maybe but i'm not sure how the hyphen is handled
oh, wait it's an element attribute
Nazar
@IsaakNazar
Jul 14 2018 17:49
@thekholm80 nope, doesnt work
Kyle Holm
@thekholm80
Jul 14 2018 17:52
someone on SO recommends e.target.attributes.getNamedItem('data-vals').value
seems kind of excessive, but might be worth a shot
Nazar
@IsaakNazar
Jul 14 2018 17:55
@thekholm80 still doesnt work,
<div style={instyle}>
                <select defaultValue="choose" 
                    onChange={onChange}>
                    <option disabled>choose</option>
                    {optionValue.map((val, i) =>
                         <option key={i} value={val.id} data-vals={val.name}>
                                 {val.name}
                         </option>)}    
                </select>
            </div>
Kyle Holm
@thekholm80
Jul 14 2018 17:56
does value have to be val.id? seems like if you put val.name there you could just use e.target.value
Nazar
@IsaakNazar
Jul 14 2018 18:03
@thekholm80 yeah, value should always be val.id
Moisés Man
@moigithub
Jul 14 2018 18:24
e.target.selectedOptions[0].text
console.dir(e.target) n check all the props/attributes on console, maybe u could use other attributes...
@IsaakNazar
Smootimus
@Smootimus
Jul 14 2018 18:54
Ya'll need Dragonlance in yer lives
Kyle Holm
@thekholm80
Jul 14 2018 18:55
i need someone to draw sprites. i suck at art
Smootimus
@Smootimus
Jul 14 2018 18:55
Me too lol
My achilles heel
Something I"m getting better at tho
Kyle Holm
@thekholm80
Jul 14 2018 18:59
oh good, you're hired
Smootimus
@Smootimus
Jul 14 2018 18:59
LOL
What program(s) you been usin
Kyle Holm
@thekholm80
Jul 14 2018 19:00
just gimp
Smootimus
@Smootimus
Jul 14 2018 19:00
Yeah I use gimp
inkscape
blender
and krita
I was using ps in class
But I don't wanna pay for it really
Kyle Holm
@thekholm80
Jul 14 2018 19:00
i've done a bit in blender, but it's pretty intense
Smootimus
@Smootimus
Jul 14 2018 19:01
Yeah it is
I got unity but I haven't really used it much
Kyle Holm
@thekholm80
Jul 14 2018 19:31
this is pretty good:
Smootimus
@Smootimus
Jul 14 2018 19:32
Heh
@thekholm80
Kyle Holm
@thekholm80
Jul 14 2018 19:38
oh, this is posted somewhere ... i was thinking "dang, smoo's got awesome handwriting" but now i realize it's likely not yours lol
Quarter 7: Advanced PHP
i'm sorry
Smootimus
@Smootimus
Jul 14 2018 19:39
LOL Nah it was the um... admissions lady
LoL I know right
Karma Drukpa
@coderkarma
Jul 14 2018 19:39
@thekholm80 how tough is ruby to learn when JS is the first language .?
Smootimus
@Smootimus
Jul 14 2018 19:40
Ruby = ezpz
Kyle Holm
@thekholm80
Jul 14 2018 19:40
@coderkarma dunno, i've never learned ruby
Smootimus
@Smootimus
Jul 14 2018 19:40
That's what it's made for actually
Kyle Holm
@thekholm80
Jul 14 2018 19:40
don't you like node?
Smootimus
@Smootimus
Jul 14 2018 19:40
To be easy and for devs to have fun programming in
Karma Drukpa
@coderkarma
Jul 14 2018 19:40
ezpz?
Smootimus
@Smootimus
Jul 14 2018 19:40
easy peezee
Karma Drukpa
@coderkarma
Jul 14 2018 19:40
oh
Smootimus
@Smootimus
Jul 14 2018 19:41
Rails is a diff story though
Karma Drukpa
@coderkarma
Jul 14 2018 19:41
okay, so it is not hard as JS
Smootimus
@Smootimus
Jul 14 2018 19:41
Nah, it's just... different
Kyle Holm
@thekholm80
Jul 14 2018 19:42
i think The Odin Project is still Ruby / Rails?
i haven't looked at it in a while
Karma Drukpa
@coderkarma
Jul 14 2018 19:43
okay. App academy gave me home work to learn ruby
lol
yeah, they've still got ruby
might be worth checking out
Smootimus
@Smootimus
Jul 14 2018 19:44
To me it kinda feels like Python meets BASIC
That's what Ruby feels like
Kyle Holm
@thekholm80
Jul 14 2018 19:44
i don't miss basic
Karma Drukpa
@coderkarma
Jul 14 2018 19:44
basic is very important
Kyle Holm
@thekholm80
Jul 14 2018 19:44
10 print "Hello world"
20 goto 10
Karma Drukpa
@coderkarma
Jul 14 2018 19:45
thanks kyle.
that seems really good resource.
Kyle Holm
@thekholm80
Jul 14 2018 19:45
@coderkarma it's free, that's always good in my book
Karma Drukpa
@coderkarma
Jul 14 2018 19:45
I am still working on my problem solving skills.
Kyle Holm
@thekholm80
Jul 14 2018 19:46
me too
Karma Drukpa
@coderkarma
Jul 14 2018 19:46
I panic so awfully yesterday when we took my technical interview test
lol
you are pro kyle
Smootimus
@Smootimus
Jul 14 2018 19:46

def sayGoodnight(name)
  result = "Goodnight, " + name
  return result
end
Kyle Holm
@thekholm80
Jul 14 2018 19:46
when it comes to advanced algorithms i'm pretty trash
Karma Drukpa
@coderkarma
Jul 14 2018 19:46
you had done codewar kata 1 aright
I still can't figure out kata8
Kyle Holm
@thekholm80
Jul 14 2018 19:47
i think the highest kyu i've solved is 4
maybe 3
Karma Drukpa
@coderkarma
Jul 14 2018 19:47
problems. but i am trying my best to improve.
Kyle Holm
@thekholm80
Jul 14 2018 19:47
all you can do is practice
Karma Drukpa
@coderkarma
Jul 14 2018 19:47
ohh!!
people says just need to do practice but it's all about logic
i guess
Kyle Holm
@thekholm80
Jul 14 2018 19:48
true
Smootimus
@Smootimus
Jul 14 2018 19:48
Yea I really haven't played around much on those kind of sites
Karma Drukpa
@coderkarma
Jul 14 2018 19:48
we need to think in critical way to solve problems and understanding concretely
Smootimus
@Smootimus
Jul 14 2018 19:48
codewars and the likes
Kyle Holm
@thekholm80
Jul 14 2018 19:48
i like codewars
Smootimus
@Smootimus
Jul 14 2018 19:49
My school has a team on one
Kyle Holm
@thekholm80
Jul 14 2018 19:49
that's pretty much how i learned most of the python i know
Karma Drukpa
@coderkarma
Jul 14 2018 19:49
i lack that. I have been trying to sharpen up but it is just taking long time to figure out
Kyle Holm
@thekholm80
Jul 14 2018 19:50
the only way i can go about solving problems is to break them into smaller problems. then break those into even smaller problems
then eventually i have a set of steps to get it done
Smootimus
@Smootimus
Jul 14 2018 19:50
That's actually a technique
Can't remember what they name it lol
Kyle Holm
@thekholm80
Jul 14 2018 19:51
like this hot mess i'm working on
image.png
Karma Drukpa
@coderkarma
Jul 14 2018 19:51
what if when you struggling breaking it down into small problems.
Kyle Holm
@thekholm80
Jul 14 2018 19:52
first i lay out the steps, start defining empty functions, then go through and fill them all in
@coderkarma that's where practice can help. and lots of trail and error
Karma Drukpa
@coderkarma
Jul 14 2018 19:54
that's true. @thekholm80 .
Smootimus
@Smootimus
Jul 14 2018 19:54
Like your self font lol
Kyle Holm
@thekholm80
Jul 14 2018 19:54
it's Operator Mono
i love that font
Smootimus
@Smootimus
Jul 14 2018 19:54
Ah
Kyle Holm
@thekholm80
Jul 14 2018 19:56
i don't think i'm smart enough to build this map digger though, at least not without a ton more research. i may just end up with scripted, pre-defined levels
Smootimus
@Smootimus
Jul 14 2018 20:02
I've not really gave something like that a shot yet
Kyle Holm
@thekholm80
Jul 14 2018 20:02
i used someone else's when i did it in JS
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 21:49
@thekholm80 did you see what happened with eslint?
Kyle Holm
@thekholm80
Jul 14 2018 21:50
yep
they caught it pretty quick though, and rolled back
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 21:50
crazy man hope it didn't spread to other packages though
Kyle Holm
@thekholm80
Jul 14 2018 21:51
npm offers 2 factor authentication, so this kind of thing is avoidable
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 21:51
people say npm has to delete everyone's tokens and recreate them
Kyle Holm
@thekholm80
Jul 14 2018 21:51
hmm
Ahmed Tarek
@ahmedtarek2134
Jul 14 2018 21:51
because the virus was actually easily expandable
any package that depended on eslint had it if you think about it
Kyle Holm
@thekholm80
Jul 14 2018 21:55
well, only those packages that updated between when the virus was launched and when it was discovered
it didn't propagate out to eslint packages which were already installed
Tyriq Riggins
@jiggyriggy65
Jul 14 2018 23:51
Hello there i need some help this equation
with*

<style>
h2 {
color: red;

}
</style>

<h2 class="red-text"</h2>

<h2>COFFEE APP</h2>

<p>Saucer grounds turkish, barista in, eu con panna ristretto strong café au lait breve single origin. Extraction, black ristretto saucer lungo, so espresso robusta viennese sugar foam coffee. Con panna, organic sugar est extraction crema single origin brewed</p>

Kyle Holm
@thekholm80
Jul 14 2018 23:53
there's a bit to unpack here. you have <h2 class="red-text"</h2> the opening tag is missing it's >
with that > that tag still has no text
that tag has class="red-text" but you didn't define that class in your style
what were the instructions for that lesson?
Tyriq Riggins
@jiggyriggy65
Jul 14 2018 23:56
oh okay thank you the instructions are
Your h2 element should be red.
Your h2 element should have the class red-text.
Your stylesheet should declare a red-text class and have its color set to red.
Do not use inline style declarations like style="color: red" in your h2 element.