These are chat archives for FreeCodeCamp/Help

14th
Jan 2018
Gersho
@Gersho
Jan 14 2018 00:00
wow they had quite the bug in hawaii
false positive missile attack alert
mjamil016
@mjamil016
Jan 14 2018 00:03
Do I still need to put in the <style> tag in html nowadays?
Gersho
@Gersho
Jan 14 2018 00:03
if you want style, yes
Kyle Holm
@thekholm80
Jan 14 2018 00:03
@mjamil016 in a basic html + css site, yes
if you're doing this in codepen, there's a box supplied for your css so you don't need a <style> section
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:04
<style> or <link>.
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:05
It depends. If you want CSS inside your HTML file, yes. But if you want CSS in a seperate file, no
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:05
Or <Element style="color: #F0F; background: #0FF"></Element>..
If you really hate everyone.
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:05
lol
Kyle Holm
@thekholm80
Jan 14 2018 00:05
eww inline styling
mjamil016
@mjamil016
Jan 14 2018 00:05
@thekholm80 so the code i put in the css file, do I also need to put that in the html file as well?
Kyle Holm
@thekholm80
Jan 14 2018 00:06
@mjamil016 in codepen or locally?
Gersho
@Gersho
Jan 14 2018 00:06
if you have an external css file you need to link to it with <link>
mjamil016
@mjamil016
Jan 14 2018 00:06
i'm using notepad ++
@thekholm80 i'm using notepad ++
Kyle Holm
@thekholm80
Jan 14 2018 00:06
then in your html file, in the <head> section you should <link rel='stylesheet' ....> your css file
then you can have your css in one file and your html in another
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:07
<Element><font color= "#F0F"></font></Element> if you rly, rly hate the world
Gersho
@Gersho
Jan 14 2018 00:08
<font>
Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:08
Ghehe
mjamil016
@mjamil016
Jan 14 2018 00:08
@thekholm80 do i need to put the html and css file in two different folders?
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:09
<i> and <b> aren't though! :-D
Gersho
@Gersho
Jan 14 2018 00:09
it's not even deprecated, it's obsolete ;o
Kyle Holm
@thekholm80
Jan 14 2018 00:09
not necessarily @mjamil016
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:09
@mjamil016 If you only have 2 files, it's best to put them in the same folder.
Gersho
@Gersho
Jan 14 2018 00:09
@mjamil016 doesn't matter as long as you point to where it is
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:09
Folders are only really useful when you have, like, 6 CSS files and dozens of HTML files.
mjamil016
@mjamil016
Jan 14 2018 00:10
@HeinousTugboat yes I did put it in one folder :)
Manish Giri
@Manish-Giri
Jan 14 2018 00:10
or you could just write a .jsp file and put your HTML in there
Java rules
Kyle Holm
@thekholm80
Jan 14 2018 00:10
eww
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:10
Go back to your corporate trollcave. :-P
Kyle Holm
@thekholm80
Jan 14 2018 00:10
besides everyone knows jsx > everything
Manish Giri
@Manish-Giri
Jan 14 2018 00:11
the corporate trollcave is gonna get me the $$$ I need to build my batcave
Kyle Holm
@thekholm80
Jan 14 2018 00:11
and buy me a mega yacht
Gersho
@Gersho
Jan 14 2018 00:11
but if Manish makes a batcave it's gotta be a mancave...
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:11
Or you could write a php file that generates a bunch of javascript which in turn creates the DOM with inline styling.. If we're going crazy anywayz..
Manish Giri
@Manish-Giri
Jan 14 2018 00:11
:sweat:
mjamil016
@mjamil016
Jan 14 2018 00:11
@HeinousTugboat when I add the <link rel='stylesheet'> do I still need to put in the <style> tag on the htm file? i'm using notepad +
Kyle Holm
@thekholm80
Jan 14 2018 00:11
quick, to the ManishCave
Gersho
@Gersho
Jan 14 2018 00:11
i'll let Kyle be your Robin
Manish Giri
@Manish-Giri
Jan 14 2018 00:12
iQuit
Gersho
@Gersho
Jan 14 2018 00:12
a revolution for only $999
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:12
No, @mjamil016. <link rel="stylesheet" href="stylesheet-name.css">
Manish Giri
@Manish-Giri
Jan 14 2018 00:12
Kyle can be batman + robin + alfred, all in one
Gersho
@Gersho
Jan 14 2018 00:12
+gandalf
Manish Giri
@Manish-Giri
Jan 14 2018 00:13
^
Kyle Holm
@thekholm80
Jan 14 2018 00:13
@mjamil016
<html>
  <head>
    <link rel='stylesheet' href='./myStyle.css'>
  </head>
  <body>
    <!-- your stuff goes here -->
  </body>
</html>
Manish Giri
@Manish-Giri
Jan 14 2018 00:13
and saruman
Kyle Holm
@thekholm80
Jan 14 2018 00:14
Saruman had an awesome beard
mjamil016
@mjamil016
Jan 14 2018 00:14
@thekholm80 for the "href" part do i need to specify where that css file is located?
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:14
<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="./hisStyle.css">
  </head>
  <body>
    <!-- his stuff goes here -->
  </body>
</html>
I'm just sayin'.
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:15
My stickfigure is more powerfull than all heroes and villains combined. Simply because I'm the writer
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:15
@mjamil016 The relative location of it, yes.
Kyle Holm
@thekholm80
Jan 14 2018 00:15
@mjamil016 yep
this page will be helpful
esp. the "Anatomy of an HTML document" bit
Kyle Holm
@thekholm80
Jan 14 2018 00:16
that's the first html i've written in many months lol
Manish Giri
@Manish-Giri
Jan 14 2018 00:17
write more HTML
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:17
more HTML
Manish Giri
@Manish-Giri
Jan 14 2018 00:17
that's the first step of switching from JSX to angular
Kyle Holm
@thekholm80
Jan 14 2018 00:17
nah, JSX
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:17
JSX is gross.
There. I said it.
Kyle Holm
@thekholm80
Jan 14 2018 00:17
it's cool, you do you
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:18
You're probably all about stuffing your CSS in there too, aren't you. :-P
Kyle Holm
@thekholm80
Jan 14 2018 00:18
@Manish-Giri <3 neo4j, i <3 react ... we're all different
Gersho
@Gersho
Jan 14 2018 00:18
Website "https://courses.edx.org" would like to access your location
DENY !
Manish Giri
@Manish-Giri
Jan 14 2018 00:18
eww i hate neo4j
Kyle Holm
@thekholm80
Jan 14 2018 00:18
lol
Manish Giri
@Manish-Giri
Jan 14 2018 00:19
i regret the day I was forced into it
Kyle Holm
@thekholm80
Jan 14 2018 00:19
not gonna lie, I've never once thought of switching from mongo to neo4j
mjamil016
@mjamil016
Jan 14 2018 00:19
@thekholm80 I saved my css file on my desktop so what would the line of code be?
Manish Giri
@Manish-Giri
Jan 14 2018 00:19
pffft you think about it every night, I know
Kyle Holm
@thekholm80
Jan 14 2018 00:20
@mjamil016 i really don't know, you'll have to do a little reading up on how relative file paths work. it's not super complex
@Manish-Giri i think about how i hate authentication every night
Manish Giri
@Manish-Giri
Jan 14 2018 00:20
meanwhile, just read the notification, they want to merge this room with the main room
@DarrenfJ
Kyle Holm
@thekholm80
Jan 14 2018 00:21
that's a good way to get me off gitter
Gersho
@Gersho
Jan 14 2018 00:21

@thekholm80 I saved my css file on my desktop so what would the line of code be?

i don't know where your html is, but your css must be either in the same folder or in child folder, it cannot be in parent folder

Manish Giri
@Manish-Giri
Jan 14 2018 00:21
@RuinIsProbablyTaken
like seriously
if I wanted to get cancer and die
Gersho
@Gersho
Jan 14 2018 00:22

meanwhile, just read the notification, they want to merge this room with the main room

time to get my pitchfork

Manish Giri
@Manish-Giri
Jan 14 2018 00:22
I'd rather go smoke
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:22
@Gersho Of course it can. href = ../../ <-- go 2 parents up
mjamil016
@mjamil016
Jan 14 2018 00:22
@Gersho I have it in the same folder which I named it "blog"
Gersho
@Gersho
Jan 14 2018 00:22

@Gersho Of course it can. href = ../../ <-- go 2 parents up

oh i didn't know that worked with html

sounds like a horrible idea tho
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:23
True. Generaly files should be kept within the project folder or at least the document root
mjamil016
@mjamil016
Jan 14 2018 00:23
@bjorno43 so would it be something like href="desktop/blog/"filenamegoeshere".css
Gersho
@Gersho
Jan 14 2018 00:23
no it has to be relative path
Kyle Holm
@thekholm80
Jan 14 2018 00:23
@mjamil016 here is a place where i've had my html file and css file in the same location, you can take a look at how i linked the css into the html
line 6 in the index.html file
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:24
@mjamil016 You rly should just move the CSS file from your desktop towards your project folder
Gersho
@Gersho
Jan 14 2018 00:24
try putting your stuff on codepen, then export it, the html will be populated with the correct <link>
Manish Giri
@Manish-Giri
Jan 14 2018 00:24
@thekholm80 const upload = multer({ dest: './uploads/'});
what does multer do
is it a middleware
Kyle Holm
@thekholm80
Jan 14 2018 00:25
yes
mjamil016
@mjamil016
Jan 14 2018 00:25
@bjorno43 it's in my project folder. but my project folder is on the desktop
Kyle Holm
@thekholm80
Jan 14 2018 00:25

@Manish-Giri

Multer is a node.js middleware for handling multipart/form-data, which is primarily used for uploading files. It is written on top of busboy for maximum efficiency.

Manish Giri
@Manish-Giri
Jan 14 2018 00:25
:+1:
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:26
@mjamil016 So simply use href='filenamegoeshere.css'?
Gersho
@Gersho
Jan 14 2018 00:27
not ./ ?
mjamil016
@mjamil016
Jan 14 2018 00:27
@bjorno43 yep thats what I have
Manish Giri
@Manish-Giri
Jan 14 2018 00:27
./ was optional I thought
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:27
Ye its optional
Gersho
@Gersho
Jan 14 2018 00:27
i really need to check back my basics
Manish Giri
@Manish-Giri
Jan 14 2018 00:27
like it assumes current folder if not specifed
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:27
./ is for node when importing relative files instead of node_modules.
Because node's a damn snowflake like that.
Gersho
@Gersho
Jan 14 2018 00:28
that's what you get for doing backend JS
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:28
Anyway, the reason being the merging of this room with the main room is because there's no real distinction between the two
mjamil016
@mjamil016
Jan 14 2018 00:28
@bjorno43 i gave my css file a different name? is that ok or should i have put index.css?
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:28
Except it's frontend. ;-)
Manish Giri
@Manish-Giri
Jan 14 2018 00:28
there is
the main room is filled with jerks
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:28
@mjamil016 Just use the same name that you used for your css file
Manish Giri
@Manish-Giri
Jan 14 2018 00:28
and we're nice people here
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:29
Who's talking about merging the rooms?
Gersho
@Gersho
Jan 14 2018 00:29

Anyway, the reason being the merging of this room with the main room is because there's no real distinction between the two

apart from the fact lmain room is turning away people and mods are biased ?

Manish Giri
@Manish-Giri
Jan 14 2018 00:29
true
very true
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:29
I see #15613 about it, but that was closed and they said they weren't doing it.
Kyle Holm
@thekholm80
Jan 14 2018 00:29
same mods for all rooms lol
mjamil016
@mjamil016
Jan 14 2018 00:29
@bjorno43 alright cool
Gersho
@Gersho
Jan 14 2018 00:29

same mods for all rooms lol

but they never intervene here

Kyle Holm
@thekholm80
Jan 14 2018 00:29
@bjorno43 is a mod
Manish Giri
@Manish-Giri
Jan 14 2018 00:30
oh they did intervene
Gersho
@Gersho
Jan 14 2018 00:30
yeah but he's not bullying anyone
Manish Giri
@Manish-Giri
Jan 14 2018 00:30
they banned
Kyle Holm
@thekholm80
Jan 14 2018 00:30
i feel bullied
he keeps oppressing me by talking about how great Microsoft is
Manish Giri
@Manish-Giri
Jan 14 2018 00:30
imo all the mods should be sacked
appoint newer mods
Gersho
@Gersho
Jan 14 2018 00:30
embrace your savior microsoft Kyle
well bob is new enougth
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:31
To be honest, if a mod does anything inappropiate at all, action will be taken. We have the admin room where you can always put your complaint if you feel some mod is abusing his / her powers. We take that seriously
Kyle Holm
@thekholm80
Jan 14 2018 00:31
@bjorno43 (I'm joking, in case it doesn't translate well over chat)
Manish Giri
@Manish-Giri
Jan 14 2018 00:31
yeah that never happens @bjorno43
I've been here long enough to know that it doesn't
mjamil016
@mjamil016
Jan 14 2018 00:31
@bjorno43 so if I have the <link rel = 'stylesheet' type='text/css' href='filename'> I don't need to have the <style> tag in my html file right?
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:31
@thekholm80 Relax. I don't ban unless I rly see no other alternative :)
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:31
You don't need to have either.
Gersho
@Gersho
Jan 14 2018 00:33
oh, on edx you don't actually take the course, you "audit" it, lol
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:33
@mjamil016 That's right
Kyle Holm
@thekholm80
Jan 14 2018 00:34
I think some edx courses will let you pay to take the course and get a cert or some kind of credit?
so you're not just 'auditing'
mjamil016
@mjamil016
Jan 14 2018 00:34
@bjorno43 cool
Gersho
@Gersho
Jan 14 2018 00:35
yeah i know, but it's the wording that made me chuckle
Manish Giri
@Manish-Giri
Jan 14 2018 00:36
@thekholm80 multer is a cool name though
almost sounds like X-Men 'mutant'
Kyle Holm
@thekholm80
Jan 14 2018 00:36
or X-Files Agent Multer
Manish Giri
@Manish-Giri
Jan 14 2018 00:37
wasn't he Mulder
Gersho
@Gersho
Jan 14 2018 00:37
he was
Kyle Holm
@thekholm80
Jan 14 2018 00:37
something like that
Gersho
@Gersho
Jan 14 2018 00:37
even his parents called him mulder
Kyle Holm
@thekholm80
Jan 14 2018 00:37
Special Council Multer?
Manish Giri
@Manish-Giri
Jan 14 2018 00:37
Mod Mulder
lol
Gersho
@Gersho
Jan 14 2018 00:39
cs50 even has an instagram and a snapchat, some days i don't understand internet
Manish Giri
@Manish-Giri
Jan 14 2018 00:40
I need to do that week 0 scratch assignment
Gersho
@Gersho
Jan 14 2018 00:40
scratch ? oh i hate that
Manish Giri
@Manish-Giri
Jan 14 2018 00:40
provided I understand what it is they want me to do
something about making a cat move and talk to another cat
Kyle Holm
@thekholm80
Jan 14 2018 00:40
i wonder what happened to the scratch game i built
Manish Giri
@Manish-Giri
Jan 14 2018 00:41
you sold it to MIT
for $95 mil
using which you're gonna get me that ship
else I need to setup a gofundme
Kyle Holm
@thekholm80
Jan 14 2018 00:41
trying to find my login credentials
Manish Giri
@Manish-Giri
Jan 14 2018 00:42
has Brianna been here recently
Gersho
@Gersho
Jan 14 2018 00:42
i don't know this individual
Kyle Holm
@thekholm80
Jan 14 2018 00:42
yesterday, i think
Manish Giri
@Manish-Giri
Jan 14 2018 00:42
damn I missed it
VaseJS
@VaseJS
Jan 14 2018 00:43
@Manish-Giri why do you pictures look so ruff? you look like you’re going through hell
Manish Giri
@Manish-Giri
Jan 14 2018 00:43
@VaseJS I am
blame Neo4J
VaseJS
@VaseJS
Jan 14 2018 00:43
or a new rudge look
:D
Gersho
@Gersho
Jan 14 2018 00:43
really ? i always think they look like tinder pics
VaseJS
@VaseJS
Jan 14 2018 00:43
what is that?
Manish Giri
@Manish-Giri
Jan 14 2018 00:43
blame Java
blame data structures
VaseJS
@VaseJS
Jan 14 2018 00:43
they actually could work well on a dating site
Gersho
@Gersho
Jan 14 2018 00:43
yeah
Kyle Holm
@thekholm80
Jan 14 2018 00:44
oh i found it! requires flash though
VaseJS
@VaseJS
Jan 14 2018 00:44
that looks has always attracted women
Manish Giri
@Manish-Giri
Jan 14 2018 00:44

that looks has always attracted women

very true

Gersho
@Gersho
Jan 14 2018 00:44
@thekholm80 linking me a game ? damn you
Manish Giri
@Manish-Giri
Jan 14 2018 00:44
and you could guess who my inspiration is
VaseJS
@VaseJS
Jan 14 2018 00:45
who? cause i can’t guess :P
Manish Giri
@Manish-Giri
Jan 14 2018 00:45
lel
Gersho
@Gersho
Jan 14 2018 00:46
@thekholm80 not a bieber fan eh ?
Kyle Holm
@thekholm80
Jan 14 2018 00:46
heh
VaseJS
@VaseJS
Jan 14 2018 00:46
with the lack of manly-men around, any sign of being a man will have women all over you
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:46
Who in their right mind would be a bieber fan?!
Gersho
@Gersho
Jan 14 2018 00:46
my little sister had 30+ posters of him in her room at some point (i like to remind her of that fact once in a while)
VaseJS
@VaseJS
Jan 14 2018 00:47
so who is the inspiration @Manish-Giri
Manish Giri
@Manish-Giri
Jan 14 2018 00:47
30 posters
wow
@VaseJS it's @thekholm80
check out his new pic
VaseJS
@VaseJS
Jan 14 2018 00:47
some of them must have been on the floor too
Gersho
@Gersho
Jan 14 2018 00:47
well she was 10 or so xD
VaseJS
@VaseJS
Jan 14 2018 00:47
lol
everyone has a beard. i can’t do it. clean shaven…with a straight razor. that’s how i make up for the lack of manly appearance.
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:48
Question for you fine folks.
Gersho
@Gersho
Jan 14 2018 00:48
sure go ahead
Manish Giri
@Manish-Giri
Jan 14 2018 00:48
lol
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:48
Worst thing is.. that guy dated the girl that might be relative to me somewhere along the family tree..
Gersho
@Gersho
Jan 14 2018 00:48
@VaseJS don't feel bad i can't beard too
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:49
Making draggable modals. mousedown/mousemove/mouseup or drag/dragstart/dragend?
Manish Giri
@Manish-Giri
Jan 14 2018 00:49
how do you enable Flash on Firefox
Gersho
@Gersho
Jan 14 2018 00:49
@Manish-Giri click on the flash window you should get an alert
VaseJS
@VaseJS
Jan 14 2018 00:49
you are trying to drag them so drag*
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:50
But the drag and drop interface is meant for actually moving data around, not just moving stuff around, so you have to do things like fake out the drag image.
Gersho
@Gersho
Jan 14 2018 00:50
...am i actually teaching something to Manish senpai ?
Manish Giri
@Manish-Giri
Jan 14 2018 00:50
@Gersho there is no flash window
VaseJS
@VaseJS
Jan 14 2018 00:50
you can play flash, just have to allow it if you have security settings on. or maybe a plugin. i just graded today so that may have changed
Manish Giri
@Manish-Giri
Jan 14 2018 00:50
lol
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:50
Whereas there's fewer moving parts when using mouseup/down.
VaseJS
@VaseJS
Jan 14 2018 00:50
but you’re also not dragging
those are clicks
Manish Giri
@Manish-Giri
Jan 14 2018 00:50
i'm trying to find the option that lets you enable flash
or something
Gersho
@Gersho
Jan 14 2018 00:50
oh, check addons then
VaseJS
@VaseJS
Jan 14 2018 00:51
why are we using flash again?
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:51
@VaseJS I fail to see how they're distinct from the code side.
Kyle Holm
@thekholm80
Jan 14 2018 00:51
@Manish-Giri click on chrome
Gersho
@Gersho
Jan 14 2018 00:51
@VaseJS Kyle's fault
VaseJS
@VaseJS
Jan 14 2018 00:51
lol
Manish Giri
@Manish-Giri
Jan 14 2018 00:51
lol
VaseJS
@VaseJS
Jan 14 2018 00:51
clicks are…clicks. you can say on hold but thats different. if they have an api for dragging, then the browsers clearly sees it as different
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:52
@Manish-Giri Open up a new tab and type "about:config". Then search Flash. Should be something there
Gersho
@Gersho
Jan 14 2018 00:52
flash still has uses, i hope they'll make some opensource equivalent before it dies, would be sad to loose all those flashgames
Manish Giri
@Manish-Giri
Jan 14 2018 00:52
like I'm not even getting a pop up bar that says flash is disabled
Alexander Jarman
@HeinousTugboat
Jan 14 2018 00:52
I'm talking Browser events, specifically. And that's my point, though. 'Dragging a modal' isn't what the drag and drop API's actually meant for. It's meant for like dragging a file into the page.
Manish Giri
@Manish-Giri
Jan 14 2018 00:52
which is what normally happens on chrome
VaseJS
@VaseJS
Jan 14 2018 00:52
let flash die. long live html5!
Manish Giri
@Manish-Giri
Jan 14 2018 00:52
Screenshot-2018-1-13 Scratch - Bear vs Bieber.png
Kyle Holm
@thekholm80
Jan 14 2018 00:53
some day i'll learn opengl
Gersho
@Gersho
Jan 14 2018 00:53
in addons/plugins, is there flash ?
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:53
Chrome has Flash build in. That's why you can config it in Chrome. Firefox doesn't
Gersho
@Gersho
Jan 14 2018 00:54
Screenshot from 2018-01-13 20-53-31.png
Manish Giri
@Manish-Giri
Jan 14 2018 00:54
there are about 20 flash options in config
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:54
So to use Flash in Firefox, you need to actually install it first
Manish Giri
@Manish-Giri
Jan 14 2018 00:54
the closest might be this one - plugins.flashBlock.enabled
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:55
Ye but that's not the issue. That one is set to true for me as well
Most likely you didn't install Flash on your OS
Gersho
@Gersho
Jan 14 2018 00:55
it should show in plugin list if it's here
Kaz Baig
@kbaig
Jan 14 2018 00:55
test
VaseJS
@VaseJS
Jan 14 2018 00:56
@kbaig test passed
Kyle Holm
@thekholm80
Jan 14 2018 00:56
@kbaig :wave:
Gersho
@Gersho
Jan 14 2018 00:56
@kbaig one two one two
Kaz Baig
@kbaig
Jan 14 2018 00:56
dangit my hover card is still a hashtag
:(
Gersho
@Gersho
Jan 14 2018 00:56
yeah it takes 2-3 days to update
Kyle Holm
@thekholm80
Jan 14 2018 00:56
log out & back in?
Manish Giri
@Manish-Giri
Jan 14 2018 00:56
takes time to refresh
VaseJS
@VaseJS
Jan 14 2018 00:56
whats a hover card?
Gersho
@Gersho
Jan 14 2018 00:56
Manish changes avatar so often it's almost never the good one on hover
@VaseJS when you mouseover someoen's avatar
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:56
When a user hovers your picture in the chat
VaseJS
@VaseJS
Jan 14 2018 00:57
we can change that?
Kaz Baig
@kbaig
Jan 14 2018 00:57
Just tried signing in and out, no dice
@kbaig why are you like this
Gersho
@Gersho
Jan 14 2018 00:57
@VaseJS when you change avatar, the old one stays a few days
VaseJS
@VaseJS
Jan 14 2018 00:57
i’ve never played with gitter. after the original set up with FCC, i never looked back
Gersho
@Gersho
Jan 14 2018 00:57
like mine or Kyle's or Manish's
Manish Giri
@Manish-Giri
Jan 14 2018 00:57
@bjorno43 I do have it
Gersho
@Gersho
Jan 14 2018 00:57
it also depends if you have a github account linked or not
Manish Giri
@Manish-Giri
Jan 14 2018 00:57
but the problem is Firefox
coz I just tested it on Vivaldi and it worked
Gersho
@Gersho
Jan 14 2018 00:58
wait a sec i'll screen my flash option from about:config
VaseJS
@VaseJS
Jan 14 2018 00:58
@Gersho yea, i was wondering how your image was different when i hovered over it. i recognize your hover image but didn’t know the current one
Bjorn van de Peut
@bjorno43
Jan 14 2018 00:58
@Manish-Giri Try about:plugins and see if it's there
Gersho
@Gersho
Jan 14 2018 00:58
changed it today ^^
Manish Giri
@Manish-Giri
Jan 14 2018 00:58
Screenshot from 2018-01-13 19-57-19.png
it asks you to allow flash, then it works fine
Gersho
@Gersho
Jan 14 2018 00:59
Screenshot from 2018-01-13 20-58-40.png
Bjorn van de Peut
@bjorno43
Jan 14 2018 01:00
@Manish-Giri Open your Plugins page. Then next to Flash there should be a dropdown menu with the options:
  • Ask to activate
  • Always active
  • Never activate
Gersho
@Gersho
Jan 14 2018 01:00
and for the avatar thing, you can check the full size version if you visit the person's github page
@bjorno43 yeah, i've posted a screenshot of that earlier
Bjorn van de Peut
@bjorno43
Jan 14 2018 01:02
@Gersho Ah, missed that
Gersho
@Gersho
Jan 14 2018 01:04
oh, since cs50 is year based, it was actually a good thing to slack off in december
there's actually a gitter for cs50, not only discord, but it's hidden on another page https://gitter.im/cs50/x
Manish Giri
@Manish-Giri
Jan 14 2018 01:08
@Gersho I only see "OpenH264 Video Codec" and "Widevine Content Decryption Module" in plugins
there's no shockwave flash
Gersho
@Gersho
Jan 14 2018 01:09
guess you need to install it ?
Gersho
@Gersho
Jan 14 2018 01:31
oh cs50 is video lectures ? i didn't expect that lol
Gersho
@Gersho
Jan 14 2018 02:02
i'm a bit confused about cs50, there's a video, a pdf, 2 html pages, and i have no idea in what order i should use all this
Kyle Holm
@thekholm80
Jan 14 2018 02:05
maybe there's a "how to do cs50 course" course?
Gersho
@Gersho
Jan 14 2018 02:06
...
Manish Giri
@Manish-Giri
Jan 14 2018 03:17
@Gersho you first watch the videos, called "lectures"
then read the pdfs if there are any
forgot what they were called
for some weeks, there would be supplementary reading materials
at the very end, attempt the problem sets
Gersho
@Gersho
Jan 14 2018 03:29
@Manish-Giri thanks !
CamperBot
@camperbot
Jan 14 2018 03:29
gersho sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6800 | @manish-giri |http://www.freecodecamp.org/manish-giri
Gersho
@Gersho
Jan 14 2018 03:30
i downloaded the vid because my internet is crap
Victoria yang
@ses22142004
Jan 14 2018 03:32
How can Add Borders Around your Elements?
Alexander Jarman
@HeinousTugboat
Jan 14 2018 03:34
* { 
    border: 1px dotted #F0F;
}
Margaret
@Margaret2
Jan 14 2018 03:52
6800 :sparkles: nice nice
about @Margaret2
CamperBot
@camperbot
Jan 14 2018 03:52
:star2: 2903 | @margaret2 |http://www.freecodecamp.org/margaret2
Margaret
@Margaret2
Jan 14 2018 03:52
:P
Manish Giri
@Manish-Giri
Jan 14 2018 03:55
@Margaret2 ty :dolphin: :dog: :cat:
CamperBot
@camperbot
Jan 14 2018 03:55
manish-giri sends brownie points to @margaret2 :sparkles: :thumbsup: :sparkles:
:star2: 2904 | @margaret2 |http://www.freecodecamp.org/margaret2
Margaret
@Margaret2
Jan 14 2018 03:56
:dolphin: :dolphin: :dolphin:
Sandeep Chary
@dsandeepchary
Jan 14 2018 09:07
Heylo
Johnny
@JohnnyBizzel
Jan 14 2018 09:35
World
Ken Haduch
@khaduch
Jan 14 2018 14:11
:wave:
Gersho
@Gersho
Jan 14 2018 14:13
@khaduch :wave:
Stephen James
@sjames1958gm
Jan 14 2018 14:17
:wave: all
Ken Haduch
@khaduch
Jan 14 2018 14:39
good morning @Gersho and @sjames1958gm and everyone dropping in today... have a great day / night (wherever you are!)
Stephen James
@sjames1958gm
Jan 14 2018 14:39
@khaduch Morning
artbohr
@artbohr
Jan 14 2018 16:06
hey guys, is it working for u? https://request-header-ms.glitch.me/
app.get('/api/whoami', function (req, res) {

  res.json({IP:        req.headers['x-forwarded-for'].substr(0, req.headers['x-forwarded-for'].indexOf(',')),
            language:  req.headers['accept-language'].substr(0, req.headers['accept-language'].indexOf(',')),
            userAgent: req.headers['user-agent']});
});
not sure how it works with languages if you have only one set up when using subst if "," is not found
Gersho
@Gersho
Jan 14 2018 16:11

firefox

{"IP":"0.0.0.0","language":"en-US","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"}

vivaldi

{"IP":"0.0.0.0","language":"en-US","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.97 Safari/537.36 Vivaldi/1.94.1008.40"}

(ip edited out)

artbohr
@artbohr
Jan 14 2018 16:13
@Gersho ty, I just cut off the slicing in the languages
CamperBot
@camperbot
Jan 14 2018 16:13
artbohr sends brownie points to @gersho :sparkles: :thumbsup: :sparkles:
:cookie: 576 | @gersho |http://www.freecodecamp.org/gersho
artbohr
@artbohr
Jan 14 2018 16:13
so I don't need to worry about that ^^
@Gersho new profile pic :P
Gersho
@Gersho
Jan 14 2018 16:14
yep
damn i HATE scratch
the interface is SO lame
artbohr
@artbohr
Jan 14 2018 16:15
why are you doing scratch lol
Gersho
@Gersho
Jan 14 2018 16:15
CS50
artbohr
@artbohr
Jan 14 2018 16:15
thought that xD
Gersho
@Gersho
Jan 14 2018 16:15
i want to remove 1 line and it's trying to remove the full block
artbohr
@artbohr
Jan 14 2018 16:15
I just skipped it that when I was lookign in to it haha
skipped that*
Gersho
@Gersho
Jan 14 2018 16:16
i did most of my learning skipping stuff, so i'm kinda at the part "let's do it properly this time"
artbohr
@artbohr
Jan 14 2018 16:18
I'm going to other way now xD coz I was always like: I need to do every piece of it, then I find myself thinking I'm losing too much time on inefficient things
Gersho
@Gersho
Jan 14 2018 16:18
well, i'll consider this part "learning to use stuff poorly designed"
artbohr
@artbohr
Jan 14 2018 16:18
haha
Gersho
@Gersho
Jan 14 2018 16:19
like the old Casio watch that had complicated input
artbohr
@artbohr
Jan 14 2018 16:21
that was long ago :D in my school years
Albert Cardona II
@daddycardona
Jan 14 2018 17:01
Hello everyone :) this Javascript project is angering me LOL but i think I need to start over in the coding section ;)
Kyle Holm
@thekholm80
Jan 14 2018 17:02
@daddycardona you got this
Albert Cardona II
@daddycardona
Jan 14 2018 17:03
@thekholm80 how do you get the math link you had work on codepen
Kyle Holm
@thekholm80
Jan 14 2018 17:03
have you tried
switch (userInput) {
  case "1 + 1":
    return 2;
    break;
  case "1 + 2":
    return 3;
    break;
  ...
}
@daddycardona are you building this on codepen or locally?
Albert Cardona II
@daddycardona
Jan 14 2018 17:04
no man not that I am talking about that link you sent me that helped with the mat
math
Kyle Holm
@thekholm80
Jan 14 2018 17:05
you should be able to just Settings => Javascript => and then paste in https://cdnjs.cloudflare.com/ajax/libs/mathjs/3.10.0/math.min.js
Albert Cardona II
@daddycardona
Jan 14 2018 17:05
I mean that math library to work on codepen
Gersho
@Gersho
Jan 14 2018 17:05

@daddycardona you got this

wrong room :P

Kyle Holm
@thekholm80
Jan 14 2018 17:05
i know, i was being a smart ass
Albert Cardona II
@daddycardona
Jan 14 2018 17:05
lol
Gersho
@Gersho
Jan 14 2018 17:06
load it in the html ?
hello btw
Albert Cardona II
@daddycardona
Jan 14 2018 17:06
I think I have too because I was gettin a lot of errors on codepen when I did it kyles way by the way hey :)
Kyle Holm
@thekholm80
Jan 14 2018 17:07
@daddycardona after you include the library it should be available as a variable called math
Albert Cardona II
@daddycardona
Jan 14 2018 17:07
I am going to read upon it
Kyle Holm
@thekholm80
Jan 14 2018 17:09
so you would have a string with all the input
var userInput = '1 + 2 * 4';  // don't hard-code this lol

// then let the library do it's work
var total = math.eval(userInput);  // 9
Gersho
@Gersho
Jan 14 2018 17:11
Finally done with that stupid scratch thing
https://scratch.mit.edu/projects/197806607/
Kyle Holm
@thekholm80
Jan 14 2018 17:12
@Gersho how come when it hits the side of the window it falls straight down?
Gersho
@Gersho
Jan 14 2018 17:13
because for some reason bounce wasn't working for this and i was too lazy to make another random direction block
it's a feature
Kyle Holm
@thekholm80
Jan 14 2018 17:14
ah, the old 'Apple Approach'
Albert Cardona II
@daddycardona
Jan 14 2018 17:14
I don't get how to use that
I am trying to parse something with it and it basically is not working on there
Gersho
@Gersho
Jan 14 2018 17:15
also after bouncing it falls like a rock, but no way i'm making some curved angle
link your pen ?
Kyle Holm
@thekholm80
Jan 14 2018 17:17
@daddycardona i don't see where you're using that library in your code
also, i don't understand your code
Albert Cardona II
@daddycardona
Jan 14 2018 17:17
refresh it
i might be doing it wrong LOL
Kyle Holm
@thekholm80
Jan 14 2018 17:18
meaningful variable names are super useful, just sayin
Albert Cardona II
@daddycardona
Jan 14 2018 17:19
I am just trying the switch statment and the 1through0 work fine lol
Gersho
@Gersho
Jan 14 2018 17:19
always make code as if the person reading/maintaining it is a sociopath that knows where you live
Albert Cardona II
@daddycardona
Jan 14 2018 17:19
I might have to start over
LOL I welcome the interaction if someone came to my place LOL
Gersho
@Gersho
Jan 14 2018 17:20
you forgot the sociopath part
Albert Cardona II
@daddycardona
Jan 14 2018 17:20
what I was trying to do is make variable temp store what is in the add variable for the moment lol
Oh so then there will be 2 sociopaths in the same building lol
Kyle Holm
@thekholm80
Jan 14 2018 17:22
i had an array, and every button pressed would be pushed to the array and when the equals button was pressed I had math.js evaluate the joined array
with a little extra work you could have it evaluate after each operand is pressed
Gersho
@Gersho
Jan 14 2018 17:23
well on a calculator it doesn't wait for = to start doing math
like 1+5+3+7+8
also depends if you want to support stuff like 1+8+3+++++
Kyle Holm
@thekholm80
Jan 14 2018 17:25
the calculator on my phone waits until = to start doing math
and I didn't allow multiple operands in a row
Albert Cardona II
@daddycardona
Jan 14 2018 17:25
is that what I am doing wrong?
Gersho
@Gersho
Jan 14 2018 17:25
i was thinking about those old ones
Kyle Holm
@thekholm80
Jan 14 2018 17:25
@daddycardona dunno, i don't understand your code
Albert Cardona II
@daddycardona
Jan 14 2018 17:25
LMAO my code is easy I am slow, i guess you dont' understand cavemen lol
Kyle Holm
@thekholm80
Jan 14 2018 17:29
nah it's not that, we just think in different ways
Gersho
@Gersho
Jan 14 2018 17:30
and now i have a mental image of Albert coding on a stoneslab Flintstone style
Albert Cardona II
@daddycardona
Jan 14 2018 17:31
okay refresh it my code is working for add and equals
LOL @Gersho he was not a caveman lol
Kyle Holm
@thekholm80
Jan 14 2018 17:31
he was part of a Modern Stone Age Family
so what about my code do you not understand @thekholm80
Kyle Holm
@thekholm80
Jan 14 2018 17:33
just the part in the javascript box
it looks like there's an infestation of jQuery, too. Might need some penicillin
Albert Cardona II
@daddycardona
Jan 14 2018 17:34
all it is is a switch statement that says if cn aka class name = the property of the div like 1,2,3 etc.. then put it to the display lol
refresh it I delelted everything else until I can get it to work properly so far equals with add works
Kyle Holm
@thekholm80
Jan 14 2018 17:38
lol 1 + 1 = came out as 42.6 i guess it remembers everything i entered before
Albert Cardona II
@daddycardona
Jan 14 2018 17:38
yes it is weird why I am trying to work out the bugs did you refresh it?
Kyle Holm
@thekholm80
Jan 14 2018 17:39
i did
Albert Cardona II
@daddycardona
Jan 14 2018 17:39
hmm I don't get it lol
Kyle Holm
@thekholm80
Jan 14 2018 17:39
it looks like you're getting there
Albert Cardona II
@daddycardona
Jan 14 2018 17:40
that is my issue if I press equals then it be adding extra
Kyle Holm
@thekholm80
Jan 14 2018 17:40
i don't see that you're using the math.js library at all though, not sure you really need it the way you're doing things
Albert Cardona II
@daddycardona
Jan 14 2018 17:41
even though when I press equals everything suppose to be the same and adding another number should be different
Gersho
@Gersho
Jan 14 2018 17:41

lol 1 + 1 = came out as 42.6 i guess it remembers everything i entered before

sounds like an economist explaining why we should lower tax on high incomes

Albert Cardona II
@daddycardona
Jan 14 2018 17:41
Oh I was trying to use it with parser but did that wrong
My calculator doubles whatever it is when I click equals again and again lol
Gersho
@Gersho
Jan 14 2018 17:44
that would mean you're not purging previous entry when doing =
Albert Cardona II
@daddycardona
Jan 14 2018 17:44
it sucks because if I want to do 10 +2 and press equals it gives me the right answer but if i want to +3 it doubles it instead lol
what you mean purging?
Gersho
@Gersho
Jan 14 2018 17:44
reset it to 0
VaseJS
@VaseJS
Jan 14 2018 17:45
@daddycardona you still stuck on that calculator?
whats up everyone
Gersho
@Gersho
Jan 14 2018 17:45
but i haven't looked at your code so maybe it's not written that way
Albert Cardona II
@daddycardona
Jan 14 2018 17:45
oh I am stuck on it to much lol
I don't think it is written that way lol
what up @VaseJS and when I read what you wrote I was like I still suck lol
VaseJS
@VaseJS
Jan 14 2018 17:47
“Don’t comment bad code—rewrite it.”
—Brian W. Kernighan and P. J. Plaugher
what did i write?
random quote for all to ponder
Gersho
@Gersho
Jan 14 2018 17:47
don't comment bad code, post it on reddit !
Albert Cardona II
@daddycardona
Jan 14 2018 17:47
you wrote stuck on that calculator lol
VaseJS
@VaseJS
Jan 14 2018 17:49
lol
Albert Cardona II
@daddycardona
Jan 14 2018 17:50
@thekholm80 do I need to add node.js in my code to use math.js/
?
Kyle Holm
@thekholm80
Jan 14 2018 17:50
no
i don't think you can add node.js to a codepen project
Albert Cardona II
@daddycardona
Jan 14 2018 17:51
Oh okay so a lot of the examples are using it lol
Kyle Holm
@thekholm80
Jan 14 2018 17:52
after you link the library into your project you should have a pre-defined variable you can use called math
Gersho
@Gersho
Jan 14 2018 17:52
node is backend
Albert Cardona II
@daddycardona
Jan 14 2018 17:53
so lets say i want to parse using the library how can I go about that because all the examples say install using node.js
Kyle Holm
@thekholm80
Jan 14 2018 17:54
Albert Cardona II
@daddycardona
Jan 14 2018 17:54
Okay that didn't work why I was asking
Kyle Holm
@thekholm80
Jan 14 2018 17:55
one sec
Gersho
@Gersho
Jan 14 2018 17:55
Screenshot fro.png
finally, cs50 is a bit troublesome to deal with lol
with all the account links and multiple upload etc yada yadda
Albert Cardona II
@daddycardona
Jan 14 2018 17:57
tempAddSub = math.parse(display[0].innerText); didn't work so I reverted back to tempAddSub = parseFloat(display[0].innerText);
the user input is a string, calling math.eval() on the string returns a result of the math operations
Albert Cardona II
@daddycardona
Jan 14 2018 18:03
I was just trying to parse the number so would I just use tempAddSub = math.eval(display[0]etc..
Aditya
@ezioda004
Jan 14 2018 18:04
How unsafe is eval()? I meant is it ok to use for the calculator? (I'm also working on calculator)
Kyle Holm
@thekholm80
Jan 14 2018 18:05
@ezioda004 this is using the math.js library, not the built in JS eval()
Albert Cardona II
@daddycardona
Jan 14 2018 18:06
I see what you are saying I should just let my string go like "1+2+3+6" and when they press equals it will do the math for me to make my code like a hundred lines shorter
Aditya
@ezioda004
Jan 14 2018 18:06
Ow, so shouldn't use the inbuilt eval()? @thekholm80
VaseJS
@VaseJS
Jan 14 2018 18:06
@ezioda004 never
Kyle Holm
@thekholm80
Jan 14 2018 18:07
@ezioda004 it's easy for people to abuse, but you should do what you want to do
VaseJS
@VaseJS
Jan 14 2018 18:07
its the bad parts of js. if it a projec that will never be used, who cares, but in production, its a security issue
major issue that’s easily avoided by not using it at all
Aditya
@ezioda004
Jan 14 2018 18:08
Think I can workaround it was being lazy, thanks peeps @thekholm80 @VaseJS
CamperBot
@camperbot
Jan 14 2018 18:08
ezioda004 sends brownie points to @thekholm80 and @vasejs :sparkles: :thumbsup: :sparkles:
:star2: 1666 | @thekholm80 |http://www.freecodecamp.org/thekholm80
:cookie: 440 | @vasejs |http://www.freecodecamp.org/vasejs
Gersho
@Gersho
Jan 14 2018 18:08
on that note, can markdown preview be done without using dangerouslySetInnerHTML ?
Kyle Holm
@thekholm80
Jan 14 2018 18:11
@Gersho that was the only way i could make it work, but i knew nothing about react at that time
Gersho
@Gersho
Jan 14 2018 18:12
same, but i don't know any more than i did back then xD
VaseJS
@VaseJS
Jan 14 2018 18:12
@ezioda004 :+1:
Gersho
@Gersho
Jan 14 2018 18:12
only did markdown and leaderboard in react
Albert Cardona II
@daddycardona
Jan 14 2018 18:17
LMAO I need to learn stupid react and stuff like that so much to learn so little time lol
especially since I have to start school LOL damn you thought you was lazy @thekholm80
Kyle Holm
@thekholm80
Jan 14 2018 18:17
i'm incredibly lazy
i thought i'd follow that up with a relevant anecdote demonstrating how lazy i am, but my memory is bad too
Gersho
@Gersho
Jan 14 2018 18:18
too lazy to explain your lazyness
Albert Cardona II
@daddycardona
Jan 14 2018 18:18
LOL
Gersho
@Gersho
Jan 14 2018 18:19
so meta
VaseJS
@VaseJS
Jan 14 2018 18:30
@daddycardona school for what?
Albert Cardona II
@daddycardona
Jan 14 2018 19:16
sorry I got no notification @VaseJS its for electronic repair with a Veteran Rehabilitation projects :)
thats weird I usually get a loud notification and a hey picture must have been in the kitchen with mom dukes :)
Gersho
@Gersho
Jan 14 2018 19:19
electronics is general ? so no only computer ?
Albert Cardona II
@daddycardona
Jan 14 2018 19:25
yeah general
don't know exactly everything until tuesday ;)
Gersho
@Gersho
Jan 14 2018 19:28
good thing the cs50 vids have subtitles, would have never guessed "sequel" is SQL
Albert Cardona II
@daddycardona
Jan 14 2018 19:34
learnt that in college class with databases. It is funny how we forget so much lol @Gersho
Gersho
@Gersho
Jan 14 2018 19:35
in french we pronounce it S-Q-L
Albert Cardona II
@daddycardona
Jan 14 2018 19:35
I do too sometimes but because of my basic intro to databases and databases with access lol
Albert Cardona II
@daddycardona
Jan 14 2018 19:57
@thekholm80 that was really good information that you given me now I just have to work on the decimals and the percentage:)
Kyle Holm
@thekholm80
Jan 14 2018 19:58
oh good deal
Albert Cardona II
@daddycardona
Jan 14 2018 20:02
yeah check how much code I iliminated because of your simiple suggestions I got it lol
Kyle Holm
@thekholm80
Jan 14 2018 20:02
dang, that's really simple and concise
well done
Albert Cardona II
@daddycardona
Jan 14 2018 20:03
yeah but if i put more than one decimal I get an error LOL and if I put a percentage sign I get and error too might have to do some other math stuff lol
thanks @thekholm80
CamperBot
@camperbot
Jan 14 2018 20:04
daddycardona sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1667 | @thekholm80 |http://www.freecodecamp.org/thekholm80
Kyle Holm
@thekholm80
Jan 14 2018 20:04
remember the % is modulo in JS not percent
Albert Cardona II
@daddycardona
Jan 14 2018 20:04
that is true i forgot about that dammit but either way it throws an error LOL
Kyle Holm
@thekholm80
Jan 14 2018 20:05
for the 'more than one decimal' i assume you mean .?
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:05
Heck of a lot shorter than mine. :laughing: Mine's 230 lines long.
Albert Cardona II
@daddycardona
Jan 14 2018 20:05
yes sir
Gersho
@Gersho
Jan 14 2018 20:05
you need to check for that before putting it in the var cn
Albert Cardona II
@daddycardona
Jan 14 2018 20:05
LOL that was about to happen to me too @HeinousTugboat
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:06
I implemented the shunting yard algorithm from scratch. <_<
Albert Cardona II
@daddycardona
Jan 14 2018 20:07
so i need to put a check before that hmmm like if the display has a decimal point then deny other decimal point
dam
Gersho
@Gersho
Jan 14 2018 20:07
        } else {
            $('.dis')[0].innerText += e.currentTarget.innerText;
        }
that part, you need to check if the innerText already contains a dot before adding a new one i guess
Albert Cardona II
@daddycardona
Jan 14 2018 20:07
@HeinousTugboat didn't know about that
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:08
It was fun. :-D
Gersho
@Gersho
Jan 14 2018 20:08
but you'll run into truoble if you try 3.1 + 3.2 (since the second dot will be refused)
Albert Cardona II
@daddycardona
Jan 14 2018 20:08
i bet you learned a lot more than me too ;)
Kyle Holm
@thekholm80
Jan 14 2018 20:08

you could do some simple validation in your

} else {
            $('.dis')[0].innerText += e.currentTarget.innerText;
        }

maybe something like

} else {
           if ($('.dis')[0].innerText.indexOf('.') > -1) { 
              // don't record the keypress
           } else  {
             $('.dis')[0].innerText += e.currentTarget.innerText;
           }
        }
Albert Cardona II
@daddycardona
Jan 14 2018 20:08
yeah so I would have to put a regexp
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:08
Maybe, maybe not. I already knew a lot of it.
Albert Cardona II
@daddycardona
Jan 14 2018 20:10
I also can't figure out how to make var dis= $('.dis')[0].innerText to work as if I was using the $('.dis')[0].innerText
Kyle Holm
@thekholm80
Jan 14 2018 20:10
wouldn't you want var dis = $('.dis')[0]?
then just use dis.innerText
Albert Cardona II
@daddycardona
Jan 14 2018 20:11
oh crap if that is true I already lost all that information I learned about jquery in my head because I should of known this lol
Kyle Holm
@thekholm80
Jan 14 2018 20:11
or maybe you could var { innerText } = $('.dis')[0]
not sure if that would work or not
Albert Cardona II
@daddycardona
Jan 14 2018 20:12
I am going to do the first thing you suggested because I don't like the way $('.dis')[0].innerText looks for every thing lol
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:13
@daddycardona str.replace(/\.{2,}/, '.') should work to reduce duplicate periods.
I use RE more in VS Code/Sublime Text than I do in JS, so I always forget how the notations actually work.
Albert Cardona II
@daddycardona
Jan 14 2018 20:13
thanks I am going to use that :)
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:14
Er, add a g.
str.replace(/\.{2,}/g, '.')
Albert Cardona II
@daddycardona
Jan 14 2018 20:14
okay
global :)
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:14
Yup. It only hits the first match otherwise.
At least, that correctly turns 1...2 + 2...3 into 1.2 + 2.3.
Albert Cardona II
@daddycardona
Jan 14 2018 20:14
i am trying to remember that too :)
regex is in almost every language people are using now so confusing sometimes i see these long ass expressions and be like what?
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:15
They're pretty invaluable for what they do.
Ken Haduch
@khaduch
Jan 14 2018 20:15
but it wouldn't turn 1.2.3 into anything that you'd want to use... really after you have a single . (or first sequence of .) that you want, you have to keep any others from being entered...
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:16
@khaduch That's true. But if you do that, you couldn't do 1.2 + 2.3.
Ken Haduch
@khaduch
Jan 14 2018 20:17
it has to be done on a number-by-number basis.
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:17
That's why I went with the shunting-yard. :laughing: Tokenizing input and just stuffing all of into a queue is so much simpler to me.
Gersho
@Gersho
Jan 14 2018 20:17
on my calculator i had 2 separate variables for the first and second operand
Albert Cardona II
@daddycardona
Jan 14 2018 20:17
I did at first too LOL
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:18
I actually do some crazy stuff with getters/setters where I store the entire expression as a string, then whenever I set it re-process it into tokens.
Albert Cardona II
@daddycardona
Jan 14 2018 20:19
dude your so advance I have no idea how to use tokens yet lol
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:20
'token' isn't really a programming-specific thing.
Albert Cardona II
@daddycardona
Jan 14 2018 20:20
yeah but you know how to program them and stuff did you see my original switch case it was a mess lol
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:21
Hey, man, but you're learning and getting better. That's what we're all doing. :-D Just at different spots in the process.
Gersho
@Gersho
Jan 14 2018 20:21

did you see my original switch case

i closed my eyes so i didn't see it

that's what i tell myself to sleep at night
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:22
:laughing: I totally have a few switches laying around. They're useful.
Albert Cardona II
@daddycardona
Jan 14 2018 20:23
@HeinousTugboat and you know it maaaaaan
LOL
Gersho
@Gersho
Jan 14 2018 20:27
(watching cs50) i've never been to this type of seminar like lessons, it almost looks like a talk show
Albert Cardona II
@daddycardona
Jan 14 2018 20:27
well I am further a long and tiredso I will be at it tomorrow at some point thanks @HeinousTugboat @Gersho for all your advice :)
CamperBot
@camperbot
Jan 14 2018 20:27
daddycardona sends brownie points to @heinoustugboat and @gersho :sparkles: :thumbsup: :sparkles:
:cookie: 320 | @heinoustugboat |http://www.freecodecamp.org/heinoustugboat
:cookie: 577 | @gersho |http://www.freecodecamp.org/gersho
Kyle Holm
@thekholm80
Jan 14 2018 20:28
@Gersho i liked those lectures, I thought the instructor was really good
Albert Cardona II
@daddycardona
Jan 14 2018 20:29
and thanks @thekholm80 too :)
CamperBot
@camperbot
Jan 14 2018 20:29
daddycardona sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
api offline
Kyle Holm
@thekholm80
Jan 14 2018 20:29
@daddycardona you're doing all the hard work lol
Gersho
@Gersho
Jan 14 2018 20:31

@Gersho i liked those lectures, I thought the instructor was really good

yeah i agree

i'm just not used to the style, only bad thing is that we can't hear the audience when they ask something (a few subtitles error too but nothing major)
he articulates his words more than most americans too
Aditya
@ezioda004
Jan 14 2018 20:33
I like how he gives the real world example of code and disasters small bugs can do, I chuckle at them and then I look at my code
Alexander Jarman
@HeinousTugboat
Jan 14 2018 20:37
And then cry yourself to sleep?
Aditya
@ezioda004
Jan 14 2018 20:38
Pretty much
Gersho
@Gersho
Jan 14 2018 20:43
they have a touchscreen bigger than my TV, i need it because reasons
Gersho
@Gersho
Jan 14 2018 21:03
vlcsnap-2018-01-14-17h01m28s975.png
xD
anotherGaccount
@anotherGaccount
Jan 14 2018 21:17
Hello I would like to report a bug with FCC, where do i go to do this
Gersho
@Gersho
Jan 14 2018 21:24
?_?
anotherGaccount
@anotherGaccount
Jan 14 2018 21:26
Thank you for your second link
i understand how my question could have led to your first link
Alexander Jarman
@HeinousTugboat
Jan 14 2018 21:27
;-) That's why I always write it "fCC".
Eliminates that confusion when talking to people only marginally familiar with it.
Especially when the FCC's in the news again.
Gersho
@Gersho
Jan 14 2018 21:29
kind of a moot point considering we are on fCC chat
Alexander Jarman
@HeinousTugboat
Jan 14 2018 21:29
Doesn't hurt to be cheeky once in awhile, long as you're actually helpful, yeah?
Gersho
@Gersho
Jan 14 2018 21:30
yes
by the way what kind of bug are we talking about ?
if it's on a challenge, chances are there is no bug
anotherGaccount
@anotherGaccount
Jan 14 2018 21:43
@Gersho your probably correct the 'bug' is that the same code copy pasted fails on OSX 10.13 firefox 57.0.4 but passes on ubuntu LTS14.04 firefox 57.0.4
I've encounted this issue in multiple challenges
encountered*
Alexander Jarman
@HeinousTugboat
Jan 14 2018 21:44
Huh. That's interesting.
Can you share one of the snippets?
anotherGaccount
@anotherGaccount
Jan 14 2018 21:45
I am aware these a very basic solutions

function destroyer(arr) {
// Remove all the values
var fin = [];
var args = Array.prototype.slice.call(arguments);
args.shift();
for (var i = 0; i < arr.length; i++) {
console.log(i);
if (args.includes(arr[i])) {

} else {
  fin.push(arr[i]);
}

}
return fin;
}

destroyer([1, 2, 3, 1, 2, 3], 2, 3);

Alexander Jarman
@HeinousTugboat
Jan 14 2018 21:46
Which challenge?
anotherGaccount
@anotherGaccount
Jan 14 2018 21:46
https://pastebin.com/10tqhXbC this link is more readable
i have encountered this issue on other challenges as well
Alexander Jarman
@HeinousTugboat
Jan 14 2018 21:47
What's the expected behavior, and how's it fail?
Gersho
@Gersho
Jan 14 2018 21:47
indeed sounds like a real bug
Alexander Jarman
@HeinousTugboat
Jan 14 2018 21:47
Well, sort of. It doesn't make any sense to me that identical versions of FF should fail/not fail in different OSes.
Gersho
@Gersho
Jan 14 2018 21:48
the important question would be to know if the same issue exists in the beta version
Alexander Jarman
@HeinousTugboat
Jan 14 2018 21:48
I'm wondering if it's something to do with copy/pasting.
anotherGaccount
@anotherGaccount
Jan 14 2018 21:48
The behavior is that the pasted code passes the challenge. When i enter it on the ubuntu machine it passes and then i am able to go and view that solution on OSX machine and it will pass but when I tried to first submit it on OSX it fails
Alexander Jarman
@HeinousTugboat
Jan 14 2018 21:48
Ok, give it step by step.
Gersho
@Gersho
Jan 14 2018 21:48
@HeinousTugboat some challenges have issues where you can fix it by restarting and copy pasting, but it's like 2 challenges in all
anotherGaccount
@anotherGaccount
Jan 14 2018 21:49
step 1: go to incomplete challenge
Alexander Jarman
@HeinousTugboat
Jan 14 2018 21:49
Ah, that's.. also super weird.
anotherGaccount
@anotherGaccount
Jan 14 2018 21:49
step 2: enter code for solution
Gersho
@Gersho
Jan 14 2018 21:49
@anotherGaccount try to re-copy it on the OSX see if it works (reset challenge + refresh page ?)
anotherGaccount
@anotherGaccount
Jan 14 2018 21:49
btw these are on OSX
Gersho
@Gersho
Jan 14 2018 21:50
in short: if you manage to reproduce the issue, it is a real issue
anotherGaccount
@anotherGaccount
Jan 14 2018 21:50
@Gersho this has fixed the issue. If i encounter it again on a later challenge I will attempt this fix again and report back, seems it is not a real issue
Alexander Jarman
@HeinousTugboat
Jan 14 2018 21:51
That's interesting. Do they know what's causing that?
Gersho
@Gersho
Jan 14 2018 21:51
happens sometimes, but as far as i know only a very few numbers of challenges should be addected
i had heard it is whitespace issue
Alexander Jarman
@HeinousTugboat
Jan 14 2018 21:51
Also, have they updated the editor to handle ES6 in the Beta?
I used a bunch of ES6-specific stuff and just ignored the boatload of warnings it gives you.
Gersho
@Gersho
Jan 14 2018 21:52
you can ES6 in normal version too, but you have to ask for it (there's a line to put on line1 but i don't remember what sorry)
Alexander Jarman
@HeinousTugboat
Jan 14 2018 21:52
esversion:6 is what it says.
You can also just ignore the warnings. ;-)
Darren
@DarrenfJ
Jan 14 2018 22:57
evening fCC

@Manish-Giri

meanwhile, just read the notification, they want to merge this room with the main room

gah!
Kyle Holm
@thekholm80
Jan 14 2018 22:58
@DarrenfJ :wave:
Darren
@DarrenfJ
Jan 14 2018 22:58
@thekholm80 hey buddy!
Manish Giri
@Manish-Giri
Jan 14 2018 23:01
@DarrenfJ :wave:
Darren
@DarrenfJ
Jan 14 2018 23:02
:D
Gersho
@Gersho
Jan 14 2018 23:02
:wave:
Darren
@DarrenfJ
Jan 14 2018 23:07
@Manish-Giri hey when do they plan to merge the rooms?where did you see this?
Gersho
@Gersho
Jan 14 2018 23:07
it is still being discussed
afaik
Manish Giri
@Manish-Giri
Jan 14 2018 23:10
x
@DarrenfJ
VaseJS
@VaseJS
Jan 14 2018 23:11
@DarrenfJ @Manish-Giri @Gersho hey
Darren
@DarrenfJ
Jan 14 2018 23:12
@VaseJS hey buddy :wave:
@Manish-Giri thanks man for the info
CamperBot
@camperbot
Jan 14 2018 23:12
darrenfj sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6801 | @manish-giri |http://www.freecodecamp.org/manish-giri
VaseJS
@VaseJS
Jan 14 2018 23:12
speaking of info…just got this from another room
Darren
@DarrenfJ
Jan 14 2018 23:13
schweet! thanks @VaseJS or the link
CamperBot
@camperbot
Jan 14 2018 23:13
darrenfj sends brownie points to @vasejs :sparkles: :thumbsup: :sparkles:
:cookie: 443 | @vasejs |http://www.freecodecamp.org/vasejs
VaseJS
@VaseJS
Jan 14 2018 23:14
got to spead the love.
Gersho
@Gersho
Jan 14 2018 23:20

x

i wanted to answer, but anything i've written sounded way too acid so i gave up xD

Darren
@DarrenfJ
Jan 14 2018 23:20
just read the thread... @Manish-Giri ... I can see the general appeal to merging some of the rooms.. although mergine this one into the main seems a weird suggestion.. everything else kind of makes sense...
Gersho
@Gersho
Jan 14 2018 23:21
well it's 2 different community, and unless the people from main room want to start actually helping the newbies, they should leave us alone
Kyle Holm
@thekholm80
Jan 14 2018 23:21
[redacted]
Gersho
@Gersho
Jan 14 2018 23:21
and anyway, the main issue is the difficulty to find the chat
too late Kyle :p
Darren
@DarrenfJ
Jan 14 2018 23:25
agreed on both points.. the but the rest.. about having helprooms that match each section in the beta and casual going into the main makes sense...
Gersho
@Gersho
Jan 14 2018 23:26
is there a way to download the subtitles of a youtube video ?
nvm i should have googled before asking
Darren
@DarrenfJ
Jan 14 2018 23:28
:d google is yer friend ;)
gonna sneak off and watch some CSS vids... code on roomies...
Gersho
@Gersho
Jan 14 2018 23:28
in my rooom i have a metal plate that says "demande a google"( ask google)
oh i got pwned, there wasn't any subs >.>
Darren
@DarrenfJ
Jan 14 2018 23:34
oh man just ran into this: http://slipsum.com/
mjamil016
@mjamil016
Jan 14 2018 23:35
how do i fix the orientation of an image in html/css??
Gersho
@Gersho
Jan 14 2018 23:35

oh man just ran into this: http://slipsum.com/

lol

@mjamil016 you mean like rotate it ?
mjamil016
@mjamil016
Jan 14 2018 23:35
@Gersho yes I suppose
ehutchllew
@ehutchllew
Jan 14 2018 23:36
@mjamil016 look into transform: rotate
Gersho
@Gersho
Jan 14 2018 23:36

The rotate() CSS function defines a transformation that rotates an element around a fixed point on the 2D plane, without deforming it. Its result is a <transform-function> data type.
The axis of rotation passes through an origin, defined by the transform-origin CSS property.

but sorry i don't know how it works, found it in the doc

mjamil016
@mjamil016
Jan 14 2018 23:37
@ehutchllew is that the css code for it?
ehutchllew
@ehutchllew
Jan 14 2018 23:38
@mjamil016 it'd be something like:
.myClass {
    transform: rotate(180deg);
}
I believe
mjamil016
@mjamil016
Jan 14 2018 23:38
@ehutchllew oh I see. i'll try that right now
Manish Giri
@Manish-Giri
Jan 14 2018 23:38
@DarrenfJ @Gersho the main room is shit
as simple as that
Gersho
@Gersho
Jan 14 2018 23:38
shhh
it's different
VaseJS
@VaseJS
Jan 14 2018 23:39
@Manish-Giri lol
Gersho
@Gersho
Jan 14 2018 23:39
why do you think i couldn't post on the thread ? because i was too salty lol
Manish Giri
@Manish-Giri
Jan 14 2018 23:39
a lot of people there are jerks, hardly beginner friendly.
Kyle Holm
@thekholm80
Jan 14 2018 23:39
i've been looking for an excuse to go outside, that just might be it
Gersho
@Gersho
Jan 14 2018 23:40
well at least bob is not here right now lol
Manish Giri
@Manish-Giri
Jan 14 2018 23:40
who's bob
Gersho
@Gersho
Jan 14 2018 23:40
bjorn van de peut
Kyle Holm
@thekholm80
Jan 14 2018 23:41
@RuinIsProbablyTaken renamed him bob
Gersho
@Gersho
Jan 14 2018 23:41
actually i did
Alexander Jarman
@HeinousTugboat
Jan 14 2018 23:41
Why, though? That's an epic name.
Manish Giri
@Manish-Giri
Jan 14 2018 23:41
where is slri
did she get banned again
I wouldn't be surprised
Gersho
@Gersho
Jan 14 2018 23:42
-again- ?
Manish Giri
@Manish-Giri
Jan 14 2018 23:42
yup
a lot of us have been banned before
Kyle Holm
@thekholm80
Jan 14 2018 23:42
you either die a hero, or live long enough to become a villian
Manish Giri
@Manish-Giri
Jan 14 2018 23:42
:tada:
VaseJS
@VaseJS
Jan 14 2018 23:42
@Manish-Giri i am finding some of these mods are ban happy
Gersho
@Gersho
Jan 14 2018 23:42

you either die a hero, or live long enough to become a villian

i'll simply note that's you're starting to grey out old man

Manish Giri
@Manish-Giri
Jan 14 2018 23:43
@VaseJS very true
and not just some
at least 80% of them
Gersho
@Gersho
Jan 14 2018 23:43
well at least you showed the real dredd, not the remake
VaseJS
@VaseJS
Jan 14 2018 23:44
one guy tried to ban me for talking about law in a general room were he was actually taking part in the convo! but when it got beyond his knowledge, he started threatening people then we learned he was a mod
Manish Giri
@Manish-Giri
Jan 14 2018 23:44
oh yes the famous
i am fcc mod
Manish Giri
@Manish-Giri
Jan 14 2018 23:45
yields more power than trump's "big" nuclear button
Gersho
@Gersho
Jan 14 2018 23:45
btw Manish, by any chance, do you have a subtitle file for Week1 Lecture 2 of cs50?
Manish Giri
@Manish-Giri
Jan 14 2018 23:46
hold on lemme go look
Gersho
@Gersho
Jan 14 2018 23:49
oh i stumbled upon http://cs50.tv/2017/fall/
nice to have everything on one page
Manish Giri
@Manish-Giri
Jan 14 2018 23:51
x
if you just hit "cc" the subs start up
Gersho
@Gersho
Jan 14 2018 23:52
yeah i had that link, but you can't download them (i'm on a really crappy connection atm)
Haley Elder
@haleyelder
Jan 14 2018 23:52
hey errybody! can i grab someone for an explanation for an es6 question in beta fCC?
Manish Giri
@Manish-Giri
Jan 14 2018 23:52
shoot
Haley Elder
@haleyelder
Jan 14 2018 23:52
or whoever has gotten to "Write Higher Order Arrow Functions"
Gersho
@Gersho
Jan 14 2018 23:52
ask whatever, if someone can help they will
Manish Giri
@Manish-Giri
Jan 14 2018 23:52
@thekholm80 is our JS champion
Gersho
@Gersho
Jan 14 2018 23:53
i hope someday people will say "ask Gersho he's knowledgeable"
Haley Elder
@haleyelder
Jan 14 2018 23:53
const realNumberArray = [4, 5.6, -9.8, 3.14, 42, 6, 8.34];
const squareList = (arr) => {
  "use strict";
  // change code below this line
  const squaredIntegers = arr;
  // change code above this line
  return squaredIntegers;
};
// test your code
const squaredIntegers = squareList(realNumberArray);
console.log(squaredIntegers);
Manish Giri
@Manish-Giri
Jan 14 2018 23:53
aw
Gersho is already knowledgeable
Gersho
@Gersho
Jan 14 2018 23:54
lol
Kyle Holm
@thekholm80
Jan 14 2018 23:54
today i'm not a champ. been trying to write express middleware to expose the res object to a graphql reducer and I'm failing miserably
Haley Elder
@haleyelder
Jan 14 2018 23:54
i get the filter portion and it grabs the right numbers i think... but im missing how to square them?
i couldnt find a good how to/explanation quite yet
Kyle Holm
@thekholm80
Jan 14 2018 23:54
Math.pow(number, power)
Alexander Jarman
@HeinousTugboat
Jan 14 2018 23:54
arr.map(x=>x*x)
arr.filter(x=>x>0).map(x=>x*x), I think.
Gersho
@Gersho
Jan 14 2018 23:56
why >0 ? you can square -1
Manish Giri
@Manish-Giri
Jan 14 2018 23:56

@haleyelder it would help if you just start out simple, like -

const squareNum= (num) => {

};

like what code would you write here to return square of num

Haley Elder
@haleyelder
Jan 14 2018 23:56
okay maybe it was the part for the > 0 cuz they have to be integers
Alexander Jarman
@HeinousTugboat
Jan 14 2018 23:56
The challenge says only positive.
Manish Giri
@Manish-Giri
Jan 14 2018 23:56
then that function would be your answer..
Gersho
@Gersho
Jan 14 2018 23:56
oh ok
Alexander Jarman
@HeinousTugboat
Jan 14 2018 23:56
Actually..
Haley Elder
@haleyelder
Jan 14 2018 23:56
yeah positive integers
Alexander Jarman
@HeinousTugboat
Jan 14 2018 23:56
arr.filter(x=>x>0&&x|0==x).map(x=>x*x).
Didn't realize it wanted integers too.
Gersho
@Gersho
Jan 14 2018 23:56
integers ? that mean you must eliminate floats too
Haley Elder
@haleyelder
Jan 14 2018 23:57
there was a Number.isInteger() check i found but only returns boolean
Alexander Jarman
@HeinousTugboat
Jan 14 2018 23:57
I should probably stop reading about code golfing while trying to help people.
Haley Elder
@haleyelder
Jan 14 2018 23:57
not like filtering out
@HeinousTugboat master multitasker!
Alexander Jarman
@HeinousTugboat
Jan 14 2018 23:58
Hmm. That doesn't work either. Weird.
Ah. Binary have lower precedence than Boolean. Figures.
Manish Giri
@Manish-Giri
Jan 14 2018 23:58
what's the challenge URL
Alexander Jarman
@HeinousTugboat
Jan 14 2018 23:58
arr.filter(x=>x>0&&(x|0)==x).map(x=>x*x) works. Just plugged it in.