These are chat archives for FreeCodeCamp/Help

15th
Jun 2018
Claudio Restifo
@Marmiz
Jun 15 2018 03:10
:wave: :wavy_dash: fcc
Kyle Holm
@thekholm80
Jun 15 2018 03:18
@Marmiz :wave:
Claudio Restifo
@Marmiz
Jun 15 2018 05:37

lol. my VSCode is still telling me that I'm missing a @types/react in my project :smile:
thanks little linter... i know.

You've been good and can rest now

Henry
@GitHub-Henry
Jun 15 2018 06:42
Chukwunyekwum Ihezurumba
@EvaChuks
Jun 15 2018 07:38
Hi everyone, i changed my node version to v8.4.0 and my app started showing this error " throw new TypeError('app.use() requires a middleware function')
TypeError: app.use() requires a middleware function" I have checked my code i can't identify where the error is coming from, i have google and applied on the suggestions but nothing work. here is my code https://pastebin.com/AeKtZuJc thanks in advance
Claudio Restifo
@Marmiz
Jun 15 2018 07:50

@EvaChuks

app.use(require("express-session")({

???

Chukwunyekwum Ihezurumba
@EvaChuks
Jun 15 2018 08:12
@Marmiz i use same code in another app and it works fine
Claudio Restifo
@Marmiz
Jun 15 2018 09:24
check the versions of express in the two app :)
@EvaChuks looks to me that this should be:
const session = require(..)

app.use(session, () => )
Nazar
@IsaakNazar
Jun 15 2018 12:42
if you are interested in Computer Science, I've found very good resource to study CS https://teachyourselfcs.com/
ycxu@bupt.edu.cn
@buptycxu11
Jun 15 2018 13:12
What is the command of running a sproutcore project in production mode?
Aleksey
@AlekseyVY
Jun 15 2018 13:19
can some one check why i pass 6 test in survey form and cant pass 4 and 5? https://codepen.io/AlekseyVY/pen/zaEZwO
Ankit Tiwari
@anku255
Jun 15 2018 13:28
@AlekseyVY You need to make your name and email fields required. Which means the user cannot submit the form without filling them.
Aleksey
@AlekseyVY
Jun 15 2018 13:30
and how do i do that? )
Ankit Tiwari
@anku255
Jun 15 2018 13:31
@AlekseyVY This page has all the attributes available for an input field.
@AlekseyVY Hint: Search for "required".
Aleksey
@AlekseyVY
Jun 15 2018 13:31
@anku255 thanks
Prakash Kumar
@ThePrakashKumar
Jun 15 2018 15:10
Easiest way to understand gradient_direction.
Henry
@GitHub-Henry
Jun 15 2018 17:48
ahsan waseem
@ahsanwaseem
Jun 15 2018 18:14
can any 1 tell me the difference between regex with brackets and without brackets
let petRegex = /dog|cat|bird|fish/;
with brackets it doesnt work
let petRegex = /dog|cat|bird|fish/;
let petRegex = /[dog|cat|bird|fish]/;
so with brackets it doesnt work,
whats the difference
ycxu@bupt.edu.cn
@buptycxu11
Jun 15 2018 18:16
What is the command of running a sproutcore project in production mode?
Ankit Tiwari
@anku255
Jun 15 2018 18:41
@ahsanwaseem Hi! square brackets in RegEx are used for character classes. Read more about them here
@ahsanwaseem The RegEx /[dog|cat|bird|fish]/ will match any character present inside the square brackets. /[dog|cat|bird|fish]/ is basically equivalent of saying /d|o|g|\||c|a|t|b|i|r|d|f|s|h/
ahsan waseem
@ahsanwaseem
Jun 15 2018 18:52
so basically if u want to match bunch of letters use brackets and if you want to match words then dont use brackets
Ankit Tiwari
@anku255
Jun 15 2018 18:52
@ahsanwaseem Yes.
ahsan waseem
@ahsanwaseem
Jun 15 2018 18:53
@anku255 :+1:
Samuel Suther
@xstable
Jun 15 2018 20:40
Have finisted "JavaScript Algorithms and Data Structures Projects" how can I claim my certificate now?
Kyle Holm
@thekholm80
Jun 15 2018 21:19
@xstable If you go to your settings page and scroll to that section, you should see a button that will say something like "Claim my certificate"
it may ask you to agree to the academic honesty pledge or something like that first