These are chat archives for FreeCodeCamp/Help

30th
Nov 2018
kinopotato
@kinopotato
Nov 30 2018 02:17
sorta strange question, but how big is the influence of porn sites over what happens with the web? For example let's just say that Google/apple /fb are all in agreement to roll something like HTML6 or something and major porn sites were just like
err, no, we don't want that.
even something that might be more relevant, how do porn sites shape the web? I mean Angular is backed by google and react by FB, if pornhub backs something, would it have staying power?
and if a big chunk of the web is porn, then wouldn't that mean that as developers, we should have an interest in what tech they use since they (I assume) are probably a high roller when it comes to hiring devs as well
Niraj Nandish
@Nirajn2311
Nov 30 2018 05:42
@kinopotato uhh friend, i dont think that question is relevant here and also some people might not like the mention of porn here
Aditya
@ezioda004
Nov 30 2018 05:55

@kinopotato JS is govern by tc39 committee, which consists of people from Google, Microsoft, Node, PayPal, GoDaddy etc. HTML similarly is governed by WHATWG committee which is governed by similar companies like Google, Mozilla etc
I'm not aware of porn companies participating in governing these standards but they could if they wanted to.

I mean Angular is backed by google and react by FB, if pornhub backs something, would it have staying power?

Well, thats not upto them - frameworks/libraries are made for devs, so if it is good then it will be widely accepted by the community, doesnt have to be made by a big company (example Vue, made by a single guy).

And then you have Marko which is made by eBay but not used by anyone.
Niraj Nandish
@Nirajn2311
Nov 30 2018 06:34
@diomed i like that, buy why that emoji specifically?
Kranti Nebhwani
@darkphotonKN
Nov 30 2018 09:08
hey guys i need some collective knowledge from people interested in reading about the latest web apps to come or have recently been released that are interesting. Anyone heard of any latest apps (any platform or web app) that are decent or interesting? Doesn't have to be popular or successful
May Kittens Devour Your Soul
@diomed
Nov 30 2018 09:14
@darkphotonKN you can find this on electron apps page
Kranti Nebhwani
@darkphotonKN
Nov 30 2018 09:16
@diomed they all seem fairly small.. are there no recent larger apps like e.g. spotify
doesnt have to be as successful or massive
but similar idea
May Kittens Devour Your Soul
@diomed
Nov 30 2018 09:17
beats me
@ezioda004 internet is for porn
I mean - just take a look @ this sexy clip
Aditya
@ezioda004
Nov 30 2018 09:23
@darkphotonKN You want successful electron app example?
May Kittens Devour Your Soul
@diomed
Nov 30 2018 09:24
he said any platform... not necessary electron
Aditya
@ezioda004
Nov 30 2018 09:26
I still dont get what hes asking tbh
May Kittens Devour Your Soul
@diomed
Nov 30 2018 09:27
me either. not sure of endgame here
May Kittens Devour Your Soul
@diomed
Nov 30 2018 09:37
@ezioda004 I tried AOS library. it's like 70% :thumbsup: 30% :thumbsdown: experience
Claudio Restifo
@Marmiz
Nov 30 2018 10:19

guyz I can't brain.
Let's say I have an aray of object. I want to iterate over it and see if a said prop is there.
If so exit the loop. otherwise we finish looping and return another things.

I was going for a for loop. Any other idea

I was considering a while but that requires keep tracking of the prop and the arr index
Kranti Nebhwani
@darkphotonKN
Nov 30 2018 11:03
@Marmiz forEach()? forEach the array, until the conditional statement passes (finds the object or whatever it is)
Kranti Nebhwani
@darkphotonKN
Nov 30 2018 11:29
@ezioda004 yes that would be great man
@ezioda004 and to clarify what i'm asking, Im just lookjing for all of you to share some interesting apps you've read about or have learned about these past weeks or months
that's all - but im filtering out the ones that are too tinyt
May Kittens Devour Your Soul
@diomed
Nov 30 2018 11:31

@diomed i like that, buy why that emoji specifically?

coz you look so dapper in your avatar :smirk_cat:

hensn5250
@hensn5250
Nov 30 2018 11:43
@Marmiz did you mean to say ' an array of objectS' ? Not sure if 'it' is referring to a single array or a single object.
hensn5250
@hensn5250
Nov 30 2018 11:50
I see now from your last sentence. You can use a for...of loop to iterate the array. for( let [index, obj_item ] of array_name.entries() ){ ... } and object.hasOwnProperty( ' property_name' ) to check if a object has that property
May Kittens Devour Your Soul
@diomed
Nov 30 2018 13:24

ITERATE!!!!

Aditya
@ezioda004
Nov 30 2018 13:48
OK
const iterableObject = {};
iterableObject[Symbol.iterator] = function* (){
  yield 1; yield 2; yield 3; 
}
console.log(...iterableObject); // 1, 2, 3
May Kittens Devour Your Soul
@diomed
Nov 30 2018 13:52
@ezioda004 now iterate to infinity and beyond! :yum:
Aditya
@ezioda004
Nov 30 2018 13:55
@diomed Ok:
function* generator(i){
  while (true){
    yield ++i;
  }
}
const iterator = generator(10);
iterator.next().value; // 11
iterator.next().value // 12
iterator.next().value // 13
....
iterator.next().value // infinity
Niraj Nandish
@Nirajn2311
Nov 30 2018 14:11
@diomed thanks for the compliment
Niraj Nandish
@Nirajn2311
Nov 30 2018 15:12
@cmccormack where are you?everyones missing you here, :cat: :bowtie: etc.
Christopher McCormack
@cmccormack
Nov 30 2018 15:52
@Nirajn2311 hi! Sorry had a long work day yesterday, had to drive two hours to the office then all day meetings. That doesn't happen often, fortunately :)
who is :bowtie: haha
May Kittens Devour Your Soul
@diomed
Nov 30 2018 15:56
that's Niraj
Christopher McCormack
@cmccormack
Nov 30 2018 15:57
But he's not wearing a bow tie in his avatar just a fancy blazer
although a bowtie would look snazzy in that outfit
May Kittens Devour Your Soul
@diomed
Nov 30 2018 15:58
@cmccormack ready player 1?
Christopher McCormack
@cmccormack
Nov 30 2018 15:58
let's do it
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:00
P _ _ _ _ P _ P S
Christopher McCormack
@cmccormack
Nov 30 2018 16:01
Y
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:01
nope
Aditya
@ezioda004
Nov 30 2018 16:01
A
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:01
P A _ _ _ P _ P S
Christopher McCormack
@cmccormack
Nov 30 2018 16:02
where the S go
O
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:02
P A _ _ O P _ P S
Christopher McCormack
@cmccormack
Nov 30 2018 16:03
C
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:03
no
Christopher McCormack
@cmccormack
Nov 30 2018 16:03
TOO HARD
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:03
haha
Christopher McCormack
@cmccormack
Nov 30 2018 16:03
L
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:03
interesting letter.
but not this time
Aditya
@ezioda004
Nov 30 2018 16:04
E
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:04
no
Christopher McCormack
@cmccormack
Nov 30 2018 16:04
U
for ungulate
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:04
ah yes
P A _ _ O P U P S
Aditya
@ezioda004
Nov 30 2018 16:04
Pablopups?
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:04
@ezioda004 no
Aditya
@ezioda004
Nov 30 2018 16:05
Thats correct in my book
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:05
IDK what that is
Christopher McCormack
@cmccormack
Nov 30 2018 16:06
T
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:06
no T either
Christopher McCormack
@cmccormack
Nov 30 2018 16:06
impossible!
I for Idiocy
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:07
no idiocy here. hha
Christopher McCormack
@cmccormack
Nov 30 2018 16:08
D as in Demonic
Jason Luboff
@JLuboff
Nov 30 2018 16:09
POTATO?
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:09
no demonic potato here :smile:
S is for plural.
Christopher McCormack
@cmccormack
Nov 30 2018 16:11
lol @JLuboff
F
Jason Luboff
@JLuboff
Nov 30 2018 16:11
@cmccormack Figured you'd like that one
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:11
no F here
Bjorn van de Peut
@bjorno43
Nov 30 2018 16:12
@diomed Is that an actually script you've made or are you doing it manually?
Christopher McCormack
@cmccormack
Nov 30 2018 16:12
G!
as in Gork
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:13
@bjorno43 it's a script, @cmccormack did it for me :smile_cat:
@cmccormack yes
P A _ G O P U P S
Bjorn van de Peut
@bjorno43
Nov 30 2018 16:13
Ah cool
N
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:14
and solution is?
Christopher McCormack
@cmccormack
Nov 30 2018 16:14
Yeah for Gork!
PANGOPUPS!
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:14
❣️P A N G O P U P S ❣️
Bjorn van de Peut
@bjorno43
Nov 30 2018 16:14
P A N G O P U P S
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:14
it is
congrats folks :)
Christopher McCormack
@cmccormack
Nov 30 2018 16:15
WOOHOO
Aditya
@ezioda004
Nov 30 2018 16:15
Someone google that for me
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:15
Pangopups are little baby pangolins :smile:
Christopher McCormack
@cmccormack
Nov 30 2018 16:15
they pretty cute
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:15
shall we do one more?
Bjorn van de Peut
@bjorno43
Nov 30 2018 16:16
If you want, I could probably write a bot for it that does most of it automaticly. You can run it yourself. But you'll need a server for it. Though WAMP or XAMP will do
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:16
ummm but then we wouldn't play here. haha
Bjorn van de Peut
@bjorno43
Nov 30 2018 16:16
Why not?
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:17
I'm not sure how bot would help me. I mean look @ pen
he got everything covered
Christopher McCormack
@cmccormack
Nov 30 2018 16:18
@diomed maybe it would let you just type /game SOME WORDS or something and it would do the work for you in the channel
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:18
nah. I put it in FFox sidebar
Bjorn van de Peut
@bjorno43
Nov 30 2018 16:19
Nah I mean a bot would do most of it automatisly. Like you can give it a word and that's all you have to do. The bot would automaticly fill in letters ppl guess etc. Basicly you get what @bobsbotty does for me. You just type: @hangmanbot O and it replies: Sorry, not found. Or: Yes, and fills it in etc
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:20
bots are overrated. taking over :cat:s work. no way Jose!
Bjorn van de Peut
@bjorno43
Nov 30 2018 16:20
:joy:
Alright
Aditya
@ezioda004
Nov 30 2018 16:20
Another job taken by the AI, bye @diomed
Bjorn van de Peut
@bjorno43
Nov 30 2018 16:21
Nah, I offered it to give it to him. If he doesn't want it, I'm not going to develop it :P
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:21
this is not funy :angry:
Christopher McCormack
@cmccormack
Nov 30 2018 16:21
haha these are bespoke handcrafted games, some people would pay a premium!
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:21
no bots! :cat: is gonna hang you all personally, in this game of hangman
or whatever you call it
_ _ R _ _
_ _ R _ _ R O _ O
Aditya
@ezioda004
Nov 30 2018 16:22
How will you buy rope if you're unemployed?
Bjorn van de Peut
@bjorno43
Nov 30 2018 16:22
hangman is the english name of that game
Ene Catalin
@EneCatalin
Nov 30 2018 16:22
C
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:22
no C, ostrich. sorry - not sorry
Ene Catalin
@EneCatalin
Nov 30 2018 16:22
M
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:22
good guess
M _ R _ _
_ _ R _ _ R O M O
Bjorn van de Peut
@bjorno43
Nov 30 2018 16:23
A
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:23
@bjorno43 it's hangman/wheel of fortune
M A R _ A
_ A R _ _ R O M O
Ene Catalin
@EneCatalin
Nov 30 2018 16:23
I
i
(same letter, bad font)
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:23
pls dont google her
M A R I A
_ A R _ I R O M O
Christopher McCormack
@cmccormack
Nov 30 2018 16:23
MARIA BARTIROMO
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:24
:congratulations: @cmccormack You are correct! :smile_cat:
Christopher McCormack
@cmccormack
Nov 30 2018 16:24
YES!
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:25
@cmccormack Maria Bartiromo
Christopher McCormack
@cmccormack
Nov 30 2018 16:25
they wrote a song about her? wow
Niraj Nandish
@Nirajn2311
Nov 30 2018 16:26
@bjorno43 do a bot but without php :smiling_imp:
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:27
no bot! damn developers, stealing :cat: jobs
@cmccormack there's a great story about that song written somewhere
Christopher McCormack
@cmccormack
Nov 30 2018 16:28
@diomed well, developer was a job created so balance?
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:29
apparently Joey Ramone was really into market stuff, and he met that amazing lady, and was bespelled [is that a word] and said to her he's gonna write a song about her.
she laughed it of I think, and bam!
Niraj Nandish
@Nirajn2311
Nov 30 2018 16:29
@cmccormack hows fcc setup going? :laughing: :smiling_imp:
Christopher McCormack
@cmccormack
Nov 30 2018 16:30
@Nirajn2311 still have the issue in Windows but @ezioda004 didn't have the same issue so it must be something local for me
Niraj Nandish
@Nirajn2311
Nov 30 2018 16:30
Will you be online in like about 2 hours from now
Christopher McCormack
@cmccormack
Nov 30 2018 16:31
probably
Niraj Nandish
@Nirajn2311
Nov 30 2018 16:31
then ill be with my laptop and we can go over the procedure again
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:31
@Nirajn2311 when can we go over my tables :yum:
@Nirajn2311 is little Bobby Tables, he lost all my data by now... I assume
Niraj Nandish
@Nirajn2311
Nov 30 2018 16:32
No i still have your data
but too lazy to do it
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:32
damnit, I need that some time soon. haha
like , how am I gonna give people books if I can't find them
Niraj Nandish
@Nirajn2311
Nov 30 2018 16:33
What exactly is the data
a library of books?
Christopher McCormack
@cmccormack
Nov 30 2018 16:33
(┛◉Д◉)┛彡┻━┻
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:33
@Nirajn2311 yes
Niraj Nandish
@Nirajn2311
Nov 30 2018 16:34
( ͡° ͜ʖ ͡°)
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:34
@cmccormack today I snapped on github :|
Christopher McCormack
@cmccormack
Nov 30 2018 16:34
@Nirajn2311 i'm in another city with my Mac but we can still go over it
@diomed oh no
did you fork someone?
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:35
um no IDK
Christopher McCormack
@cmccormack
Nov 30 2018 16:37
I meant literally, like attacked them with an eating utensil
what happened?
Niraj Nandish
@Nirajn2311
Nov 30 2018 16:37
@diomed a project got banned as an animal has been programming :laughing:
Christopher McCormack
@cmccormack
Nov 30 2018 16:39
@Nirajn2311 psshh gatekeepers, won't let animals code
Niraj Nandish
@Nirajn2311
Nov 30 2018 16:39

But he's not wearing a bow tie in his avatar just a fancy blazer

Its not a fancy blazer, just a school blazer that the tailors are too lazy to do actual measurements

Christopher McCormack
@cmccormack
Nov 30 2018 16:40
fancy to me, I never had to wear a blazer to school
Niraj Nandish
@Nirajn2311
Nov 30 2018 16:47

although a bowtie would look snazzy in that outfit

@cmccormack Thats what i am hoping for grad, Matt Smith Dr who style :bowtie: :sunglasses: :sunglasses:

fancy to me, I never had to wear a blazer to school
you must have got varsity jackets??
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:48
OMG, this starts tomorrow 24 pull requests
Christopher McCormack
@cmccormack
Nov 30 2018 16:48
@Nirajn2311 I didn't play sports for school, so no varsity jacket
Niraj Nandish
@Nirajn2311
Nov 30 2018 16:53
But no tshirts, so i aint doing it
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:57
@Nirajn2311 yeah, that sucks. do it for the sticker. lol xD
Niraj Nandish
@Nirajn2311
Nov 30 2018 16:58
I still havent received hactoberfest tshirt yet
Christopher McCormack
@cmccormack
Nov 30 2018 16:58
I got mine a long time ago - did you add your address and all that?
Bjorn van de Peut
@bjorno43
Nov 30 2018 16:59
@Nirajn2311 I'm NOT going to learn another language just for a damn bot :P
Niraj Nandish
@Nirajn2311
Nov 30 2018 16:59
They still havnt shipped it yet
May Kittens Devour Your Soul
@diomed
Nov 30 2018 16:59
this is due to international shipping. I didnt get mine either. oh well, not like it's summer . haha
guys, do you know any decent video cutter?
Bjorn van de Peut
@bjorno43
Nov 30 2018 17:01
What do you mean with video cutter? Like editing?
I personally use Wondershare Filmora for video editing. It's not cutting edge technology, but it suits my needs for most basic editing stuff
May Kittens Devour Your Soul
@diomed
Nov 30 2018 17:02
yes
@bjorno43 may I send you something to cut
it's about 20 MB and I need only like 5 secs
Bjorn van de Peut
@bjorno43
Nov 30 2018 17:03
Sure, but you'll have to give me the details. Like, which part needs to be cut etc
Christopher McCormack
@cmccormack
Nov 30 2018 17:03
5 secs can still be 20MB
that isn't how any of this works :p
May Kittens Devour Your Soul
@diomed
Nov 30 2018 17:03
no. whole video is 20MB currently. I need 5 secs of it
mstellaluna
@mstellaluna
Nov 30 2018 17:04
@bjorno43 :wave:
Bjorn van de Peut
@bjorno43
Nov 30 2018 17:04
@mstellaluna :wave:
diomed @diomed :cat: runs away from moderator lady
Niraj Nandish
@Nirajn2311
Nov 30 2018 17:05
@bjorno43 ok,but dont blame me if you see an ad with better salary, features etc but requirement is a language you didnt want to learn
Christopher McCormack
@cmccormack
Nov 30 2018 17:06
@Nirajn2311 can I blame you?
Niraj Nandish
@Nirajn2311
Nov 30 2018 17:06
Jk, didnt mean to offend you, that is if you get insulted by the comment
Why @cmccormack
Christopher McCormack
@cmccormack
Nov 30 2018 17:07
@Nirajn2311 I dunno you told him not to blame you but I want to blame you if things don't go well for me :D
Bjorn van de Peut
@bjorno43
Nov 30 2018 17:07
@Nirajn2311 Whaha, I'm not that easily offended :P And no worries, everyone has their field of expertise
Christopher McCormack
@cmccormack
Nov 30 2018 17:08
@diomed field of expertise is Pugnacity
Niraj Nandish
@Nirajn2311
Nov 30 2018 17:10
@cmccormack blame the :bowtie:
May Kittens Devour Your Soul
@diomed
Nov 30 2018 17:10
@cmccormack lol, that's simply not true
Christopher McCormack
@cmccormack
Nov 30 2018 17:10
roger that, will do :)
Bjorn van de Peut
@bjorno43
Nov 30 2018 17:11
But, performance wise, PHP7+ has beaten Node in most aspects. So it's not all that bad, lol
Aditya
@ezioda004
Nov 30 2018 17:11
@cmccormack You've already received the t-shirt for hacktoberfest? :o
Christopher McCormack
@cmccormack
Nov 30 2018 17:11
yeah like a month ago
wife did too a few days after me
May Kittens Devour Your Soul
@diomed
Nov 30 2018 17:11
note that he lives in America, while you live in India
Aditya
@ezioda004
Nov 30 2018 17:12
Thanks for that ^^
Christopher McCormack
@cmccormack
Nov 30 2018 17:12
but they're probably shipped from china right?
Aditya
@ezioda004
Nov 30 2018 17:12
Nope, from US
Christopher McCormack
@cmccormack
Nov 30 2018 17:12
oh then yeah
global shipping is rough
May Kittens Devour Your Soul
@diomed
Nov 30 2018 17:13
I mean even I didnt get it yet. and I'm somewhere in Europe
Aditya
@ezioda004
Nov 30 2018 17:13
I got mail saying its being shipped from OH, I'm guessing thats Ohio?
Christopher McCormack
@cmccormack
Nov 30 2018 17:13
yeah
Aditya
@ezioda004
Nov 30 2018 17:14
I wonder if shipping cost is more than the t-shirt itself
Christopher McCormack
@cmccormack
Nov 30 2018 17:14
I wonder if they really do ship each individually or send a huge crate to then be unpacked and shipped in-country
May Kittens Devour Your Soul
@diomed
Nov 30 2018 17:16
that later option sounds more feasible and cheaper
Christopher McCormack
@cmccormack
Nov 30 2018 17:16
I bet India has literal tons of tshirts inbound
Aditya
@ezioda004
Nov 30 2018 17:16
@diomed This ends today https://codefresh.io/fixvember/
@cmccormack You betcha lol
Christopher McCormack
@cmccormack
Nov 30 2018 17:21
I just realized both myself and @Nirajn2311 are wearing jackets in our profile photos... @diomed @ezioda004 time to step up!
May Kittens Devour Your Soul
@diomed
Nov 30 2018 17:23
@ezioda004 now you're telling me ! AAAAAAH
Aditya
@ezioda004
Nov 30 2018 17:23
I'm wearing a sweater...time to step up indeed
Christopher McCormack
@cmccormack
Nov 30 2018 17:23
@ezioda004 are you also in an empty apartment?
Aditya
@ezioda004
Nov 30 2018 17:24
Wow - can you see me through my webcam or something?
May Kittens Devour Your Soul
@diomed
Nov 30 2018 17:25
if only
Aditya
@ezioda004
Nov 30 2018 17:25
@diomed I found out about it like yesterday only; I think the PR's are subjective - you need to add "tests" or improve them somehow
May Kittens Devour Your Soul
@diomed
Nov 30 2018 17:26
how much?
Aditya
@ezioda004
Nov 30 2018 17:26
How much what?
May Kittens Devour Your Soul
@diomed
Nov 30 2018 17:27
PRs
Aditya
@ezioda004
Nov 30 2018 17:28
3
May Kittens Devour Your Soul
@diomed
Nov 30 2018 17:29
damn shame we cant pick color of t-shirts
I dont like green ._.
gonna pass on this one. :|
Aditya
@ezioda004
Nov 30 2018 17:29
Complaining about free stuff?
May Kittens Devour Your Soul
@diomed
Nov 30 2018 17:30
yeah, I know. How dare I? :smirk_cat:
Aditya
@ezioda004
Nov 30 2018 17:42
@diomed So you get nothing from 24PRs?
Christopher McCormack
@cmccormack
Nov 30 2018 17:42
Companies could get so much "free" work out of devs by just throwing some stickers at them
Aditya
@ezioda004
Nov 30 2018 17:43
For real lol
Stickers on laptop are equivalent to prison tattoos
May Kittens Devour Your Soul
@diomed
Nov 30 2018 17:46
rofl
I thought stickers are like cigarettes
in prison
Aditya
@ezioda004
Nov 30 2018 17:48
No, like you showoff how "badass" you are with all dem different company stickers
Christopher McCormack
@cmccormack
Nov 30 2018 17:49
I just added my first two, and now I want more
Aditya
@ezioda004
Nov 30 2018 17:49
I'd even say for job interviews; the interviewer should judge your experience by the number of stickers you got
Christopher McCormack
@cmccormack
Nov 30 2018 17:49
just like a tattoo
Niraj Nandish
@Nirajn2311
Nov 30 2018 17:51

I just realized both myself and @Nirajn2311 are wearing jackets in our profile photos... @diomed @ezioda004 time to step up!

WINTER IS COMING

April 2019
Christopher McCormack
@cmccormack
Nov 30 2018 17:52
that... is not accurate advertising lol
I live in Arizona where we go from Summer to Winter and back again so I'm not sure, but that would be Spring right?
May Kittens Devour Your Soul
@diomed
Nov 30 2018 17:56
@cmccormack do you go like in a day?
like that song? - 4 seasons in 1 day -
I mean who comes up with that lyrics. :gun:
Christopher McCormack
@cmccormack
Nov 30 2018 17:58
Angsty 20 year olds I'm guessing
I have a hard time listening to lyrics anymore as I get older
Aditya
@ezioda004
Nov 30 2018 17:59
@cmccormack I know just the song with no lyrics for you
Christopher McCormack
@cmccormack
Nov 30 2018 18:00
oh man that takes me back to my late teens/early 20s lol
May Kittens Devour Your Soul
@diomed
Nov 30 2018 18:00
oh noes. I fell right into that one
lately I've been listening to Tom Odell
Aditya
@ezioda004
Nov 30 2018 18:01
@diomed What about this one
May Kittens Devour Your Soul
@diomed
Nov 30 2018 18:01
that one I already know by number_letter sequence. lol
Christopher McCormack
@cmccormack
Nov 30 2018 18:01
You never let us down @ezioda004
Aditya
@ezioda004
Nov 30 2018 18:02
:trollface:
May Kittens Devour Your Soul
@diomed
Nov 30 2018 18:05
I left educational video in Chinese FCC room. I hope they'll have use of it.
Aditya
@ezioda004
Nov 30 2018 18:07
Lmao @diomed
I think a saw a medium article about Google developing a censored version of their website for China and the employees werent happy about it
Christopher McCormack
@cmccormack
Nov 30 2018 18:09
yeah they protested
May Kittens Devour Your Soul
@diomed
Nov 30 2018 18:16
I have coolest movie idea, but it requires lots of CGI.
can someone call Spielberg or someone
Christopher McCormack
@cmccormack
Nov 30 2018 18:18
@diomed yeah I'll call them
May Kittens Devour Your Soul
@diomed
Nov 30 2018 18:20
excellent
Christopher McCormack
@cmccormack
Nov 30 2018 18:22
@diomed risqué
May Kittens Devour Your Soul
@diomed
Nov 30 2018 18:22
what is risque?
Christopher McCormack
@cmccormack
Nov 30 2018 18:24
It's a word
May Kittens Devour Your Soul
@diomed
Nov 30 2018 18:24
did you see that title?
Christopher McCormack
@cmccormack
Nov 30 2018 18:24
Of course
:D
May Kittens Devour Your Soul
@diomed
Nov 30 2018 18:25
I regret that.
I hoped to put that as a hangman title
Christopher McCormack
@cmccormack
Nov 30 2018 18:25
haha
that's why yours are so difficult
they're fake!
May Kittens Devour Your Soul
@diomed
Nov 30 2018 18:26
fake????
there's nothing fake about it. that's a real movie
with Jodie Foster
and that kid from Home alone
Christopher McCormack
@cmccormack
Nov 30 2018 18:30
oh I see it is
why would you do it in CGI?
Niraj Nandish
@Nirajn2311
Nov 30 2018 18:50
@diomed whats the movie?
May Kittens Devour Your Soul
@diomed
Nov 30 2018 18:52
@Nirajn2311 Pocahontas :smile:
Christopher McCormack
@cmccormack
Nov 30 2018 18:52
mmhmm
May Kittens Devour Your Soul
@diomed
Nov 30 2018 18:55
@cmccormack it's gonna come up eventually as a challenge, I hope, one in which you'll not participate - or will but will not guess it intentionally :yum:
Christopher McCormack
@cmccormack
Nov 30 2018 18:58
That sounds pretty ominous
May Kittens Devour Your Soul
@diomed
Nov 30 2018 18:59
@cmccormack that's coz majestic animal said so
Christopher McCormack
@cmccormack
Nov 30 2018 19:00
is that thing real? Gorgeous
May Kittens Devour Your Soul
@diomed
Nov 30 2018 19:00
yup. it's called Racka
some kind of sheep
Christopher McCormack
@cmccormack
Nov 30 2018 19:04
or possibly a god
May Kittens Devour Your Soul
@diomed
Nov 30 2018 19:06
in some mithologies, probably
Niraj Nandish
@Nirajn2311
Nov 30 2018 19:18
@cmccormack You ready for catching some :bug:?
Christopher McCormack
@cmccormack
Nov 30 2018 19:19
catching worms??
haha
sure - what will you be using to do the install?
Niraj Nandish
@Nirajn2311
Nov 30 2018 19:20
Gitter didnt have a better emoji for bug
Niraj Nandish
@Nirajn2311
Nov 30 2018 19:28
@cmccormack do you want to start from beginning, I mean cloning the repo all over again
Christopher McCormack
@cmccormack
Nov 30 2018 19:29
that's what I did but you don't have to - npm run clean and deleting the root node_modules should be enough
but if you only have 100MB of data maybe you don't want to do that
maybe just sync up with the current master and do an npm install then npm run develop
What will you be running it in? PowerShell? Git bash? WSL?
CMD?
Niraj Nandish
@Nirajn2311
Nov 30 2018 19:31
Where do you want to do it in?
You had the issue so I think it will be better if I did what you did
Christopher McCormack
@cmccormack
Nov 30 2018 19:32
So when I did it in Powershell I actually got it to work only after attempting to kill the process when it got stuck between the babel-dev-server and the client/npm run develop steps
Niraj Nandish
@Nirajn2311
Nov 30 2018 19:33
Okay
Christopher McCormack
@cmccormack
Nov 30 2018 19:33
but in WSL and Git Bash I wasn't able to get past babel-dev-server
Bouncy showed me those were separate steps and that you can run them independently instead of running npm run develop from root
Niraj Nandish
@Nirajn2311
Nov 30 2018 19:34
Was powershell in admin mode or normal?
Randell Dawson
@RandellDawson
Nov 30 2018 19:37
Atom users: How do you perform a search for specific folder name?
Smootimus
@Smootimus
Nov 30 2018 19:55
Throw out Atom and work with Visual Studio Code. Thats' how I do it
:eyes:
Christopher McCormack
@cmccormack
Nov 30 2018 19:58
hehe
Smootimus
@Smootimus
Nov 30 2018 19:59
Surprised Atom is still even a thing after MS took over Github
Randell Dawson
@RandellDawson
Nov 30 2018 19:59
@Smootimus Very helpful
Smootimus
@Smootimus
Nov 30 2018 20:00
:thumbsup:
I'm here all day
Christopher McCormack
@cmccormack
Nov 30 2018 20:00
@RandellDawson can you use grep in a console?
Randell Dawson
@RandellDawson
Nov 30 2018 20:01
@cmccormack Yes, I can do that, but I would have thought Atom could do it.
Niraj Nandish
@Nirajn2311
Nov 30 2018 20:02
@cmccormack cleaning all node_modules at the moment and I find that atleast 1 GB of space is taken by it :scream:
Christopher McCormack
@cmccormack
Nov 30 2018 20:02
@Nirajn2311 wow just for FCC?
Niraj Nandish
@Nirajn2311
Nov 30 2018 20:02
Yeah
Smootimus
@Smootimus
Nov 30 2018 20:02
Sounds about right
Christopher McCormack
@cmccormack
Nov 30 2018 20:02
hopefully a lot of that is cached
don't want you going over data
Niraj Nandish
@Nirajn2311
Nov 30 2018 21:13
@cmccormack finally finished installing all dependencies
Christopher McCormack
@cmccormack
Nov 30 2018 21:15
wow how long did that take?
Niraj Nandish
@Nirajn2311
Nov 30 2018 21:16
2978.779s it's saying
Approx. 50 min
The first time when I was installing the dependencies after monorepo move, it took 2 hours :weary:
@cmccormack So what did you do next
Christopher McCormack
@cmccormack
Nov 30 2018 21:17
wow is it because of limited bandwidth?
Niraj Nandish
@Nirajn2311
Nov 30 2018 21:17
Dont know
I get 15mbps
How much is yours
Christopher McCormack
@cmccormack
Nov 30 2018 21:17
I often got hung up on one of the lerna steps for external dependencies, I bet you do too
where I am now is around 60Mbps
Niraj Nandish
@Nirajn2311
Nov 30 2018 21:19
lerna info Installing external dependencies - @cmccormack this one?
Kaz Baig
@kbaig
Nov 30 2018 21:20
Hey guys I'm working on the voting app and one of the user stories is to be able to vote even if you're authenticated. What's the best practice on preventing unauthenticated users from spamming the vote button?
I'm thinking of storing an object in localStorage with poll id's of polls they've already voted on, but I'm not sure if that's the best thing
Christopher McCormack
@cmccormack
Nov 30 2018 21:21
@Nirajn2311 yeah
@kbaig hi!
Kaz Baig
@kbaig
Nov 30 2018 21:21
@cmccormack :wave: :smile:
Christopher McCormack
@cmccormack
Nov 30 2018 21:21
@kbaig you're not authenticated?
Kaz Baig
@kbaig
Nov 30 2018 21:22
@cmccormack Yeah a user is supposed to be able to vote without being auth'd
Niraj Nandish
@Nirajn2311
Nov 30 2018 21:22
@cmccormack That is where all the other dependencies are being installed all over the repo
Christopher McCormack
@cmccormack
Nov 30 2018 21:22
@kbaig I gave unauthenticated users a session and used that to block them
not great but works ok
Niraj Nandish
@Nirajn2311
Nov 30 2018 21:22
So it appears stuck as it takes time to do it
Kaz Baig
@kbaig
Nov 30 2018 21:23
@cmccormack So cookies then?
Christopher McCormack
@cmccormack
Nov 30 2018 21:23
Yeah
Kaz Baig
@kbaig
Nov 30 2018 21:23
Ugh I went with jwt to avoid them
Christopher McCormack
@cmccormack
Nov 30 2018 21:23
I did have to make sure when a user logs out that the session ID is changed though, I don't think express-session does that automatically
well you could do it by IP too
Kaz Baig
@kbaig
Nov 30 2018 21:23
Since I'm doing mern
Christopher McCormack
@cmccormack
Nov 30 2018 21:24
but then you have the problem of users behind NAT
or CGNAT
Kaz Baig
@kbaig
Nov 30 2018 21:24
Yeah that doesn't seem reliable or good ux
Christopher McCormack
@cmccormack
Nov 30 2018 21:25
can you have unathenticated JWT tokens?
don't see why you can't do something with that
Kaz Baig
@kbaig
Nov 30 2018 21:30
@cmccormack hmm yeah that's basically a localStorage solution that has some encryption built in. Def better than just an array or something
They can still delete the localStorage but I mean...they're unauth'd - not much I can do
Christopher McCormack
@cmccormack
Nov 30 2018 21:30
well you want your backend to make the decision right?
agreed
you can make a super cookie :)
Kaz Baig
@kbaig
Nov 30 2018 21:31
What you mean by a super cookie
Christopher McCormack
@cmccormack
Nov 30 2018 21:32
you can get enough user information from the browser APIs to uniquely fingerprint any user on the web
combine user agent, screen ratios/dimensions, time zone, etc... and it should be extremely unique for each computer
Kaz Baig
@kbaig
Nov 30 2018 21:33
That would only matter if I want the back end to be able to differentiate from one one unathe'd user from another
I only want to stop those users from being able to vote on a given poll more than once
Christopher McCormack
@cmccormack
Nov 30 2018 21:33
how is that different?
unique user votes once, don't let them vote again
add some kind of tuple to your poll schema to track that in your DB
Kaz Baig
@kbaig
Nov 30 2018 21:35
It's different because I won't have to store that info in one, but I will in the other
Christopher McCormack
@cmccormack
Nov 30 2018 21:36
I guess it depends on how you want to implement it
I added sessions to an array in my DB, as they were persistent if a user logged in
Kaz Baig
@kbaig
Nov 30 2018 21:36
Since jwt has built in encryption, I can just append the pollid to the payload every time they vote on a poll
and since they'll be passing the token in every time they vote (except for the first time they ever vote/after they clear their localStorage), I can ensure that the info re: which polls have been voted on I'm getting is legit
Christopher McCormack
@cmccormack
Nov 30 2018 21:39
I dunno. for mine I wanted to allow a new vote every hour I think so I put it in the db
Kaz Baig
@kbaig
Nov 30 2018 21:40
The problem is that if somebody got a hold of a token that has a payload something like pollsVotedOn: [], they could just pass that token in and spam the api
Still one step better than spamming the api without a token but yeah
Christopher McCormack
@cmccormack
Nov 30 2018 21:40
why would that be in your token
Kaz Baig
@kbaig
Nov 30 2018 21:41
my token payload would contain an array of poll ids
ok so maybe it won't be empty, but it will could have just one id in it
since users receive back a token on their first and every subsequent vote request
Christopher McCormack
@cmccormack
Nov 30 2018 21:42
I need to play with JWT more sounds interesting
Kaz Baig
@kbaig
Nov 30 2018 21:42
If you just copied over the token that you got after voting once, you could use that token to vote infinitely on every other poll using the api
Christopher McCormack
@cmccormack
Nov 30 2018 21:43
don't tokens have a nonce?
Kaz Baig
@kbaig
Nov 30 2018 21:44
I don't know what that is but I read that they can. Quick wikipedia search says it's something that ensures the token can only be used once before getting a new nonce - is that right?
Christopher McCormack
@cmccormack
Nov 30 2018 21:46
yeah nonce is a replay attack mitigation
Kaz Baig
@kbaig
Nov 30 2018 21:46
I'm guessing I just described a replay attack :wink:
Christopher McCormack
@cmccormack
Nov 30 2018 21:47
yessir haha
Kaz Baig
@kbaig
Nov 30 2018 21:47
Yeah implementing that would def solve said issue for me then
So I guess that's what I'll do for unauth'ed users - a jwt with the polls they've voted on and a nonce
@cmccormack thanks bud!
Christopher McCormack
@cmccormack
Nov 30 2018 21:48
np thanks for convincing me to try JWT out seems nice
Kaz Baig
@kbaig
Nov 30 2018 21:48
:)
They are nice because you don't need a datastore for them
Christopher McCormack
@cmccormack
Nov 30 2018 21:50
none at all? how do you log in later and have data persist?
Kaz Baig
@kbaig
Nov 30 2018 21:51
You don't need a datastore to store the session*
User sends username and pw -> verify that info is correct -> tokenize user info and send as response
Christopher McCormack
@cmccormack
Nov 30 2018 21:52
very cool I"ll play with it
Kaz Baig
@kbaig
Nov 30 2018 21:52
Whenever user makes a call that requires auth, they send along the token you gave them. You can verify the token by looking at its signature
If the signature checks out, you can trust that the token was made by you
Christopher McCormack
@cmccormack
Nov 30 2018 21:55
probably not using PKI but something similar I bet
Christopher McCormack
@cmccormack
Nov 30 2018 22:09
@kbaig ah it looks like the signature is the payload signed with the secret key, very cool and actually a pretty simple but effective method
Smootimus
@Smootimus
Nov 30 2018 22:39
I'm PTK ;)
Phi Thetta Kappa lol
I'm considering jumping back into freecodecamp material
I haven't touched it since I started school
Kaz Baig
@kbaig
Nov 30 2018 23:22
@cmccormack the header and signature but yeah, simple and effective :smile: