14th
Aug 2018
Christopher McCormack
@cmccormack
Aug 14 2018 00:50
@Pagnito relative pathing issue
Fikry82
@Fikry82
Aug 14 2018 00:52
i don't understand that radix thing
i read this but still i don't get it
Henry
@GitHub-Henry
Aug 14 2018 00:56
Fikry82
@Fikry82
Aug 14 2018 01:02
ummm
i know hexa numbers but how i use it ??
and what is octal ?
Moisés Man
@moigithub
Aug 14 2018 01:03
0123456789abcdef <-- hexadecimal use that set of values (16 )
0123456789 <-- decimal (10 )
01 <-- binary (2)
012345678 <-- octal (8)
Fikry82
@Fikry82
Aug 14 2018 01:04
okay
``````function convertToInteger(str) {
return parseInt(str, 2);
}

convertToInteger("10011");``````
Moisés Man
@moigithub
Aug 14 2018 01:05
parseInt converts whatever string value u pass (with a radix to identify what numeric system it uses) to a Integer number
Fikry82
@Fikry82
Aug 14 2018 01:05
okay but how she use the system
in this case why 2 " i didt it buy luck " :)
in this case will use octal system
Moisés Man
@moigithub
Aug 14 2018 01:07
u said u know hexadecimal
FF0000 <-- red color.. using hexadecimal system
Fikry82
@Fikry82
Aug 14 2018 01:07
yes
Moisés Man
@moigithub
Aug 14 2018 01:08
if u want convert that to integer (parseInt always convert whatever system to decimal)
parseInt("FF0000", 16) --> 16711680
Fikry82
@Fikry82
Aug 14 2018 01:08
i understand how it works with colors but not here
why you use 16 ???
Moisés Man
@moigithub
Aug 14 2018 01:09
cuz FF0000 is a hexadecimal value
Fikry82
@Fikry82
Aug 14 2018 01:09
umm should be decimal
Moisés Man
@moigithub
Aug 14 2018 01:09
:point_up: 13 de agosto de 2018 20:03
from 0 to F there are 16 digits <-- thats why its called base16
Fikry82
@Fikry82
Aug 14 2018 01:10
``````If the string begins with "0x", the radix is 16 (hexadecimal)
If the string begins with "0", the radix is 8 (octal). This feature is deprecated
If the string begins with any other value, the radix is 10 (decimal)``````
Moisés Man
@moigithub
Aug 14 2018 01:10

radix identify what numeric base is ur string

parseInt always convert whatever system to decimal)

soo u only need to specify the source
Fikry82
@Fikry82
Aug 14 2018 01:11
don
dont get it yet
but thx
Pagnito
@Pagnito
Aug 14 2018 01:15
@cmccormack u know how u can make it use the build folder? I dont understand hos it doesnt work. It doesnt work with path resolve or join
Christopher McCormack
@cmccormack
Aug 14 2018 01:17
@Pagnito you can modify your `publicPath` in your webpack `output` section and see if that fixes it, try `publicPath: '/'`
Pagnito
@Pagnito
Aug 14 2018 01:18
Oooh truuuuuuuu
omg
Now it makes sense
Omfg
Lol
Christopher McCormack
@cmccormack
Aug 14 2018 01:20
what you might want to do is use something like `webpack --env.production` and in your webpack config set publicPath based on if `env.production` is true or not
By default it may pass a production value as well I can't remember
Pagnito
@Pagnito
Aug 14 2018 01:24
Ya true
Thnx man
Christopher McCormack
@cmccormack
Aug 14 2018 01:24
np hope it works, webpack problems are the worst and often the hardest thing to troubleshoot
Pagnito
@Pagnito
Aug 14 2018 03:04
hey im having a hard time with ScrollTo()
i hate that it jumps to the top of the page every time its about to scroll
anyone have any solutions?
Claudio Restifo
@Marmiz
Aug 14 2018 04:22
@Pagnito what does your function looks like?
Pagnito
@Pagnito
Aug 14 2018 04:54
@Marmiz
``````        var int = setInterval(function() {
window.scrollTo(0, i);
i += 10;
if (i >= 550) clearInterval(int);
}, 8);``````
alpox
@alpox
Aug 14 2018 05:38
@Pagnito why not just use the `smooth` option of scrollTo instead of using an interval?
Pagnito
@Pagnito
Aug 14 2018 05:38
i tried
@alpox
for some reason it wont work O.o
it scrolls like 200 pxs no matter how much i tell it to
yea i just tried it again and it doesnt work for some reason
im using react so maybe that has somethin to do wit it
alpox
@alpox
Aug 14 2018 05:44
Depends on the context
React shouldnt really interfer
But do you have other scroll influencing code?
Pagnito
@Pagnito
Aug 14 2018 05:57
oh nvm i put it outside the function by accident, its working now but i dont rly like how its working
it either scrolls too lil or too much
when my page first loads up it only scrolls lke 200 px
but then after that it will work properly
but the initial scroll is the only one that matters
Pagnito
@Pagnito
Aug 14 2018 06:12
i found a pretty neat package
react-scroll
i swear its always the lil things that take all the time in the world
Claudio Restifo
@Marmiz
Aug 14 2018 06:56
@Pagnito you want to scroll top or to a specific position?
cos many browsers supports `scrollIntoView` and it has the animation effect for you :)
(like 'smooth')
Pagnito
@Pagnito
Aug 14 2018 06:56
oh ya i tried that too >.<
i rly like the scroll-react tho
i think ima stay wit it
Claudio Restifo
@Marmiz
Aug 14 2018 06:57
whatever works for you
Pagnito
@Pagnito
Aug 14 2018 06:59
ya , i appreciate ur help tho
Claudio Restifo
@Marmiz
Aug 14 2018 07:01
anytime :+1:
Pagnito
@Pagnito
Aug 14 2018 08:24
Yashwardhan Pauranik
@yashwp
Aug 14 2018 10:49
Can any one address this issue iamkun/dayjs#297
Rogério Dalot
@Dalot
Aug 14 2018 11:39
Hello guys, do you know any good youtube videos that solved intermediate/advanced JS algorithms?
solves*
Tiago Correia
@tiagocorreiaalmeida
Aug 14 2018 11:54
Rogério Dalot
@Dalot
Aug 14 2018 12:18
@tiagocorreiaalmeida Thank you!
tundeiness
@tundeiness
Aug 14 2018 12:31
the navbar height isn't taking the whole side of the screen. I tried adding height but it was not working. any hack around this?
catalin560
@catalin560
Aug 14 2018 12:55

@tundeiness what do you mean?

``````#navbar {
height: 90vh;
}``````

seems to work just fine

tundeiness
@tundeiness
Aug 14 2018 13:03
@catalin560 the height using #navbar does not work intuitively using height: 90vh. However I have fixed this using the "ul" to set the height . You can check it out now to see what I am talking about. One more favor please. after running test on the interface, the total pass is 10 out 16. can you help take a look at why everything is not passing? Thanks
Eric Wang
@bigbigDreamer
Aug 14 2018 13:27
hello everyone
Eric Wang
@bigbigDreamer
Aug 14 2018 13:36
Does your node version support decorator mode？
Tiago Correia
@tiagocorreiaalmeida
Aug 14 2018 14:28
you probably will need babel
Jason Luboff
@JLuboff
Aug 14 2018 15:06
Morning :wave:
Chris
@crokita
Aug 14 2018 15:06
morning
Jason Luboff
@JLuboff
Aug 14 2018 15:07
How's it going?
Chris
@crokita
Aug 14 2018 15:07
It's going!
Jason Luboff
@JLuboff
Aug 14 2018 15:08
Sometimes thats all we can ask for :)
Diego Mayer
@Chrono79
Aug 14 2018 15:21
positive thinking ;) The glass half full
Jason Luboff
@JLuboff
Aug 14 2018 15:26
Nah my glass is half empty bro. How can it be half full if it started full, and now I've emptied osme? :P
Tom
@moT01
Aug 14 2018 15:27
what if it started empty and you're in the process of filling it up
Jason Luboff
@JLuboff
Aug 14 2018 15:27
Then it's half full :P
Tom
@moT01
Aug 14 2018 15:28
so we just need to know the initial state of the glass
Christopher McCormack
@cmccormack
Aug 14 2018 15:29
@moT01 null
Tom
@moT01
Aug 14 2018 15:29
hmm
Chris
@crokita
Aug 14 2018 15:29
lol
Tom
@moT01
Aug 14 2018 15:29
im stumped
Christopher McCormack
@cmccormack
Aug 14 2018 15:30
Just be wary when filling it that you don't overflow the buffer
Tom
@moT01
Aug 14 2018 15:31
why
Christopher McCormack
@cmccormack
Aug 14 2018 15:32
because you'll get water on your table of course
Tom
@moT01
Aug 14 2018 15:33
little excess - itll be alright
Christopher McCormack
@cmccormack
Aug 14 2018 15:33
Might leave a ring
Tom
@moT01
Aug 14 2018 15:33
could damage the table
Christopher McCormack
@cmccormack
Aug 14 2018 15:33
haha
Tom
@moT01
Aug 14 2018 15:33
wait
Christopher McCormack
@cmccormack
Aug 14 2018 15:33
100% coverage of the scenario
Tom
@moT01
Aug 14 2018 15:33
did the glass start on a coaster?
Christopher McCormack
@cmccormack
Aug 14 2018 15:34
I think it started in a glass factory
Tom
@moT01
Aug 14 2018 15:34
and if so - what is the coaster made out of
Christopher McCormack
@cmccormack
Aug 14 2018 15:34
@JLuboff what if the glass was made while underwater??
Jason Luboff
@JLuboff
Aug 14 2018 15:35
@cmccormack Unpossible
Christopher McCormack
@cmccormack
Aug 14 2018 15:36
well now I am not sure if that's a word
Tom
@moT01
Aug 14 2018 15:39
what was the initial state of your brain?
Christopher McCormack
@cmccormack
Aug 14 2018 15:39
`null`
Tom
@moT01
Aug 14 2018 15:40
its not a word
you sure it wasn't undefined
Christopher McCormack
@cmccormack
Aug 14 2018 15:44
My family comes from a different land
Jason Luboff
@JLuboff
Aug 14 2018 15:44
I'd argue that most people in the US' family comes from a different land
Tom
@moT01
Aug 14 2018 15:55
where from
Jason Luboff
@JLuboff
Aug 14 2018 15:55
Everywhere but here unless you're native american lol
Tom
@moT01
Aug 14 2018 15:56
im german/polish
as far as I know
Jason Luboff
@JLuboff
Aug 14 2018 15:56
Ah. I'm Russian/Polish with some english in there I think
Tom
@moT01
Aug 14 2018 15:58
If I had to guess from the pic - chris looks a little more southeast europe - maybe turkey or uskfusdistan
Christopher McCormack
@cmccormack
Aug 14 2018 15:58
I have no idea where I'm from, but I would assume Europe
That's... not a real place
Jason Luboff
@JLuboff
Aug 14 2018 15:59
lol
Tom
@moT01
Aug 14 2018 16:00
wikipedia says mccormack is ireland/scotland
Jason Luboff
@JLuboff
Aug 14 2018 16:03
wikipedia don't know shit!
Christopher McCormack
@cmccormack
Aug 14 2018 16:04
yeah my dad is pretty European, not sure about my Mom's family though, if I had to guess maybe Eastern European
Wikipedia is smarter than me!
What are we all working on today?
Jason Luboff
@JLuboff
Aug 14 2018 16:10
Working on finishing up my work project (first of two sections for multifile upload is done, just modifying the front end for the second section).
Yourself?
Christopher McCormack
@cmccormack
Aug 14 2018 16:14
@JLuboff nice got it working then?
Jason Luboff
@JLuboff
Aug 14 2018 16:14
Ya, got it working late yesterday
Christopher McCormack
@cmccormack
Aug 14 2018 16:15
@JLuboff working on some smaller stuff for the larger project today, easy day I'm hoping
Jason Luboff
@JLuboff
Aug 14 2018 16:16
I had screwed myself for about an hour yesterday... I needed to manipulate my data...so I took some sample data and worked with it in an online editor (I use codecademy's) and then I took that back to my project using different variable names...and kept using the wrong variables in places... lol
Christopher McCormack
@cmccormack
Aug 14 2018 16:16
hahah oh no!
Jason Luboff
@JLuboff
Aug 14 2018 16:16
I think it took me ~30 tries to get things right hahaha
@cmccormack I hope for your sake it is an easy day indeed
Christopher McCormack
@cmccormack
Aug 14 2018 16:27
@JLuboff haha dang man
at least it was < 1 full day to get right though
Jason Luboff
@JLuboff
Aug 14 2018 16:27
True
It's kind of annoying that `handlebars` doesn't have conditional operators. It'd be nice if I had `||` given, I could create a helper function to do so, but..meh..
Christopher McCormack
@cmccormack
Aug 14 2018 16:32
or use React!
Jason Luboff
@JLuboff
Aug 14 2018 16:34
...eventually....when I want to rewrite everything hah
tundeiness
@tundeiness
Aug 14 2018 16:50
guys I need my project to pass all the test. currently it's 15/16. for the last one I keep getting this error for this user story "13. When I click on a navbar element, the page should navigate to the corresponding section of the "main-doc" element (e.g. If I click on a "nav-link" element that contains the text "Hello world", the page navigates to a <section> element that has that id and contains the corresponding <header>."
I don't know where I am missing it but I sure need help. Here is the link to the project: https://codepen.io/highness/pen/bjjzJj
Aug 14 2018 17:07
Or use Angular :smiling_imp:
Jason Luboff
@JLuboff
Aug 14 2018 17:08
Angular? Disgusting
Aug 14 2018 17:08
:open_mouth:
Christopher McCormack
@cmccormack
Aug 14 2018 17:15
@tundeiness hey bud check the error - it gives you almost the exact issue (hint: capitalization)
Markus Kiili
@Masd925
Aug 14 2018 17:16
@JLuboff Angular - The new PHP? :imp:
Jason Luboff
@JLuboff
Aug 14 2018 17:18
@Masd925 I dunno. Never actual worked with it lol
Aug 14 2018 17:26
Angular is like the new java haha
Christopher McCormack
@cmccormack
Aug 14 2018 18:16
From what I've seen of angular code I'd rather use Java :)
Aug 14 2018 18:18
flipping finally FINALLY got the configs right to get my coverage reporting to be correct, my goodness
Christopher McCormack
@cmccormack
Aug 14 2018 18:20
@bradtaniguchi sounds like you need more testing in your testing
Aug 14 2018 18:20
such a pain to figure this out from scratch -_-
Christopher McCormack
@cmccormack
Aug 14 2018 18:22
@bradtaniguchi you'll be much stronger for it
Aug 14 2018 18:25
strong in the knowledge of the 3 different config options for istanbul (nyc??) + mocha and which ones will waste DAYS of time :cry:
Christopher McCormack
@cmccormack
Aug 14 2018 18:30
I think it's in Turkey actually @bradtaniguchi :)
Aug 14 2018 18:32
who knows, googling for that stuff was a pain, kept getting new your stuff :/
Christopher McCormack
@cmccormack
Aug 14 2018 18:37
haha
Jason Luboff
@JLuboff
Aug 14 2018 18:44
:trollface:
Aug 14 2018 18:46
new york hehe
Pagnito
@Pagnito
Aug 14 2018 19:36
man this async shit can b so annoying
Christopher McCormack
@cmccormack
Aug 14 2018 19:42
@Pagnito async/await?
or just in general
Pagnito
@Pagnito
Aug 14 2018 19:43
just in general
Christopher McCormack
@cmccormack
Aug 14 2018 19:43
@Pagnito tried with async / await? Can ease it a bit
Pagnito
@Pagnito
Aug 14 2018 19:43
yea i know, its rly nice, but im talkin about rendering content
rendering content around async calls can be a pain sometimes
Pagnito
@Pagnito
Aug 14 2018 20:40
hey lets sayim building an article site and i have lot of artcles, and i wanna do what alot of other sites to render them on the home page without slowindown rendering. It seems like they only render only some of the articles until the user scrolls down and then more of em are rendered and so on
Jason Luboff
@JLuboff
Aug 14 2018 20:40
Yes
While I've never done it myself...I would think to on page load, get the first 5 articles (for example) and then on scroll get next 5 or whatever
Christopher McCormack
@cmccormack
Aug 14 2018 20:51
yeah you could do it by scroll position or whatever, I'm guessing that's what all those neverending scroll sites do
Aug 14 2018 20:53
I've done infinite scroll a few times, but I always was using rxjs which made it hell-a easy
Jason Luboff
@JLuboff
Aug 14 2018 21:08
Does anybody ever update the `version` in their package.json?
Aug 14 2018 21:08
If the package is used as a lib yea
Jason Luboff
@JLuboff
Aug 14 2018 21:09
I'm thinking of updating it to `1.1` but...I'm the only person who will ever actually see it lol
Aug 14 2018 21:09
You can do it for version purposes, but yea your the only one that will see it haha
Christopher McCormack
@cmccormack
Aug 14 2018 21:10
SEMVER
use it love it
Jason Luboff
@JLuboff
Aug 14 2018 21:11
@cmccormack Ya... `1.1` as this will be a minor update. I guess sort of major, but won't break anything
Aug 14 2018 21:11
Yea I'm trying to use semver for a shared lib. key word is trying :P
Christopher McCormack
@cmccormack
Aug 14 2018 21:12
if it won't break, it's minor, if it's just a patch, it's patch
Jason Luboff
@JLuboff
Aug 14 2018 21:14
Ya, I learned all about SEMVER in my OS X days. Had to know that for `10.9.5` was
``````{
major: 10,
minor: 9,
patch: 5,
}``````
Pagnito
@Pagnito
Aug 14 2018 22:14
@JLuboff @cmccormack yes! of course!
Aug 14 2018 22:36
precommit hooks and tests already stopped my self from myself 2 times already :D
Jason Luboff
@JLuboff
Aug 14 2018 22:38
@moT01 Thats neat
Tom
@moT01
Aug 14 2018 22:39
i dont have the tools i would like, but its lookin good - prototype works
looks good
ill let you see the finished product if I get there
Jason Luboff
@JLuboff
Aug 14 2018 22:44
Ya for sure
Tom
@moT01
Aug 14 2018 22:48
ive got most of the hardware/software workin - just gotta make the cabinet, so i guess im making my effort at woodoworking
Jason Luboff
@JLuboff
Aug 14 2018 22:52
Good luck
Christopher McCormack
@cmccormack
Aug 14 2018 22:56
@moT01 oh man that looks awesome
Sorry my power went out so I was down for a bit
Jason Luboff
@JLuboff
Aug 14 2018 22:56
Damn Arizonian power...always going out
Christopher McCormack
@cmccormack
Aug 14 2018 22:56
Huge hailstorm up in Flagstaff, crazy
Jason Luboff
@JLuboff
Aug 14 2018 22:57
I hate finding something thats not working as intended :worried:
Christopher McCormack
@cmccormack
Aug 14 2018 22:59
@moT01 Are you using RetroPi?
Tom
@moT01
Aug 14 2018 23:01
:thumbsup:
Christopher McCormack
@cmccormack
Aug 14 2018 23:04
That's a yes to RetroPi? haha
Tom
@moT01
Aug 14 2018 23:11
:smirk:
Christopher McCormack
@cmccormack
Aug 14 2018 23:22
I built a few retropi stations for my family, pretty fun
don't bother with the N64 stuff until they upgrade the hardware though, IMO
Jason Luboff
@JLuboff
Aug 14 2018 23:28
I really hate manipulating data into a useable format sometimes
( I hate a lot right now apparently)
Tom
@moT01
Aug 14 2018 23:29
didnt plan on it
<=snes
Jason Luboff
@JLuboff
Aug 14 2018 23:35
Thats a big fish
Tom
@moT01
Aug 14 2018 23:36
camping trip a couple weeks ago
Jason Luboff
@JLuboff
Aug 14 2018 23:36
Did you eat it?
Tom
@moT01
Aug 14 2018 23:36
no
let it go
catch it again later
Jason Luboff
@JLuboff
Aug 14 2018 23:37
Whhhaaaaa
(I actually don't even know if thats good eats)
Tom
@moT01
Aug 14 2018 23:37
it wouldnt taste good at that size
and many lakes in the state you cant keep them
muskie
"`fish of 10,000 casts`"
Jason Luboff
@JLuboff
Aug 14 2018 23:41
Ah
Tom
@moT01
Aug 14 2018 23:42
some of them are like my children
or pets anyway
one of my fishin spots^^
Jason Luboff
@JLuboff
Aug 14 2018 23:46
Pretty spot
Tom
@moT01
Aug 14 2018 23:51