These are chat archives for FreeCodeCamp/Help

20th
Feb 2018
Jill Lee
@jill-lee
Feb 20 2018 03:31
@DarrenfJ haha what's up?! Been busy with work lately just found a job. How are you?
Greg Gordon
@greggordoncode_twitter
Feb 20 2018 03:41
So i completed all the course matiriel and got the the portfolio creation project and i cant get past navigation bar and background once i get into responsive design i cant remember anything
Kyle Holm
@thekholm80
Feb 20 2018 03:41
that's why we do the projects lol
it's easy to blow through theory, but application will cement the concepts
Greg Gordon
@greggordoncode_twitter
Feb 20 2018 03:42
This is true just seems like when i add the next part in i have to change everything cause the design is set up completly wrong or i just have to start from scratch again
Kyle Holm
@thekholm80
Feb 20 2018 03:42
it'll get easier
the more you do it, anyway
when i got to my Tribute Page I didn't feel I knew how to do anything and spent a ton of time googling
Greg Gordon
@greggordoncode_twitter
Feb 20 2018 03:46
So i should just keep at my Portfolio Page and not just continue on with the class?
Kyle Holm
@thekholm80
Feb 20 2018 03:47
i think you'll learn more hitting walls and learning how to get past them
i think that's the most important thing you can learn
Greg Gordon
@greggordoncode_twitter
Feb 20 2018 03:51
Also seems like i learn somthing then when i need to apply it once more i have to learn it once more things dont stick or apply completly different to the next part of a webpage.
Kyle Holm
@thekholm80
Feb 20 2018 03:51
that's normal, too
the only suggestion i can really make is write lots of code
there's no way anyone can teach you every single thing you're going to need to learn, so the best thing you can learn is how to find the answers when you need them
sifii
@Sifatul
Feb 20 2018 06:08
Hey guys can you help me understand this question https://www.freecodecamp.org/challenges/url-shortener-microservice
the output is like pretty formatted JSON
but if send the output in response.send(output) it will become string... How do they expect me to send ?
does this challenge expect us to use database or a html file fro view
?
Claudio Restifo
@Marmiz
Feb 20 2018 07:25
@Sifatul you can response.json to send back a JSON formatted reponse
if you're using express
otherwise in plain node you can JSON.strigify() the response
Stephen James
@sjames1958gm
Feb 20 2018 11:32
@Sifatul One thing to note, the format of JSON is a string. Which is why you use JSON.parse to go from JSON to javascript object
and JSON.stringify to go from javascript object to JSON (some tools like $.getJSON in jquery do part of this for you.
Christos Petalotis
@ChrisPetalotis
Feb 20 2018 15:05
Hey guys. Today I reset my laptop to solve a problem I had and just a moment ago I logged in to fcc to continue with the challenges only to find out that the code of the solved ones is gone. They are marked as completed in the "Map" section but when I click on one of them to review it, the code is not there. Do you know how to solve this and have my code shown again?
Gersho
@Gersho
Feb 20 2018 15:11
well they still haven't solved it or actually addressed the issue
so no wonder there's a billion topics about it
Aditya
@ezioda004
Feb 20 2018 15:12
@ChrisPetalotis The solutions are saved in the database and you can view them in your profile here but access to those has been disabled due a bug, you can read about here
Gersho
@Gersho
Feb 20 2018 15:13
oh so they did address it
Aditya
@ezioda004
Feb 20 2018 15:13
Those links are old though, this database thingy was like a month ago
Gersho
@Gersho
Feb 20 2018 15:14
well i still can't access my solutions that's for sure
some of them are available, but i can't see a pattern
Aditya
@ezioda004
Feb 20 2018 15:16
They are also stored in local storage, if you clear browser data then you can only access via database
Gersho
@Gersho
Feb 20 2018 15:17
oh so that probably means those i can access is via local
i'll check with another browser
yep, i can only see them in vivaldi (where i did them in the first place)
it remembers my theme when visiting as a guest tho xD
Aditya
@ezioda004
Feb 20 2018 15:19
I guess thats because of account setting which is also stored in database (user profile)
Gersho
@Gersho
Feb 20 2018 15:20
but still, until they fix it, a potential employer can't come take a look at your code (well it's not like there's really interesting stuff in the algos, but still)
Aditya
@ezioda004
Feb 20 2018 15:21
Codepen links can be copied tho, its in your profile
Oh actually it doesnt show link but it does redirect to the codepen link you added for the project
Gersho
@Gersho
Feb 20 2018 15:22
i don't really care about that part since they are on codepen anyway (and backed up on github too)
Aditya
@ezioda004
Feb 20 2018 15:23
Then also have a copy of the solution in github too? Just in case
A lot of people do that
Gersho
@Gersho
Feb 20 2018 15:23
there's a billion challenges and i'm lazy :P
Aditya
@ezioda004
Feb 20 2018 15:24
FREE GREEN SQUARE!!
Gersho
@Gersho
Feb 20 2018 15:24
sold !
:p
Aditya
@ezioda004
Feb 20 2018 15:24
:laughing:
Gersho
@Gersho
Feb 20 2018 15:24
but i'll do that for my cs50, apart from a few select ones the js algo aren't nearly hard enough to show off
Aditya
@ezioda004
Feb 20 2018 15:25
True but all algorithm are still algorithm, maybe make all 1 liners
Gersho
@Gersho
Feb 20 2018 15:25
i mean no offence, but i wouldn't go to an interview and say "i know how to check for a palindrome in js"
Aditya
@ezioda004
Feb 20 2018 15:26
Lol, in some interviews they ask to make FizzBuzz
Gersho
@Gersho
Feb 20 2018 15:26
FizzBuzz ?
Aditya
@ezioda004
Feb 20 2018 15:27
You know the classic from 1-20 print fizz if divisible by 3, buzz if divisible by 5, and fizzbuzz if divisible by both
Gersho
@Gersho
Feb 20 2018 15:27
i just wiki'd that
that sounds like a dumb game
or boring rather
as a kid you wouldn't trick me into doing math that way xD
Johnny
@JohnnyBizzel
Feb 20 2018 15:29
Thing about a simple algo like that FizzBuzz, there are many ways to do it. How you do it will tell them how you normally code. And it is simple enough that you can do it in a short time. Good test if you ask me.
Aditya
@ezioda004
Feb 20 2018 15:30
They trick you into doing that for a job as an adult ;)
I mean how many ways are there to do that, you gotta have either for/while loop if else or ternary operator
Gersho
@Gersho
Feb 20 2018 15:31
well i can do this in 3 languages so they can come at me with that one
Aditya
@ezioda004
Feb 20 2018 15:32
You can do that in HTML and CSS too? :o:
Gersho
@Gersho
Feb 20 2018 15:32
lol
js, python, c
Aditya
@ezioda004
Feb 20 2018 15:32
Pfff, thats basic :P
Kyle Holm
@thekholm80
Feb 20 2018 15:33
i can do it in basic
lol
Aditya
@ezioda004
Feb 20 2018 15:33
Hired!
Gersho
@Gersho
Feb 20 2018 15:33
i only know the altered calculator version :x
oh and on scratch too !
D:
Aditya
@ezioda004
Feb 20 2018 15:34
Can you write scratch in your resume?
Gersho
@Gersho
Feb 20 2018 15:35
i wouldn't xD
unless i'd really need a few more words to make it more packed
Kyle Holm
@thekholm80
Feb 20 2018 15:35
wait, isn't Microsoft always looking to hire Scratch devs?
Aditya
@ezioda004
Feb 20 2018 15:35
Yeah decrease its font-weight :D
Kelechi Chinaka
@ke1echi
Feb 20 2018 15:39
:wave: guys
Kyle Holm
@thekholm80
Feb 20 2018 15:39
@kelechy :wave:
Gersho
@Gersho
Feb 20 2018 15:40
wow my "special" cat just spent a good 30 sec on my lap (special in the sense special from birth, afraid of everything to the point of running away when you bring him food)
@kelechy :wave:
Kelechi Chinaka
@ke1echi
Feb 20 2018 15:42
you said no more react and u just want to do backend :smile: @thekholm80
hows the codes coming out @Gersho
Gersho
@Gersho
Feb 20 2018 15:42
not much was doing other stuff
Kelechi Chinaka
@ke1echi
Feb 20 2018 15:43
same with me @Gersho
did cipher with js and the pain is to do it with C @Gersho
Gersho
@Gersho
Feb 20 2018 15:43
oh caesar and vigerene
Kelechi Chinaka
@ke1echi
Feb 20 2018 15:44
caesar...not done vigerene yet
ready to try out katas on caesar? @Gersho
Gersho
@Gersho
Feb 20 2018 15:45
hmm wasn't there one on fCC already ?
Kelechi Chinaka
@ke1echi
Feb 20 2018 15:46
rot13? that should be for babies :smile: (joking)
Gersho
@Gersho
Feb 20 2018 15:46
you just change 13 to your variable and you're done
Kelechi Chinaka
@ke1echi
Feb 20 2018 16:03
i just did caesar in C :smile: @Gersho
Gersho
@Gersho
Feb 20 2018 16:06
:thumbsup:
doing crack or vigenere now ? (or both ?)
Kelechi Chinaka
@ke1echi
Feb 20 2018 16:09
vigenere then crack
Darren
@DarrenfJ
Feb 20 2018 16:14
morning fCC
Gersho
@Gersho
Feb 20 2018 16:14
:wave: @DarrenfJ
Darren
@DarrenfJ
Feb 20 2018 16:15
@jill-lee congrats on the job jill! well done :D
Kyle Holm
@thekholm80
Feb 20 2018 16:15
@DarrenfJ :wave:
Darren
@DarrenfJ
Feb 20 2018 16:15
@thekholm80 @Gersho hey guys. How goes the day?
Kelechi Chinaka
@ke1echi
Feb 20 2018 16:15
i keep getting 95% on style but style50 say looks good! @Gersho
Sandro Das Neves
@sandro-git
Feb 20 2018 16:15
hello ! i've some question about portfolio project. is someone available ?
Gersho
@Gersho
Feb 20 2018 16:17

i keep getting 95% on style but style50 say looks good! @Gersho

does it only say "looks good" or does it also says to add more comments ? i haven't had this issue

@sandro-git ask your question, if someone can help they will
Sandro Das Neves
@sandro-git
Feb 20 2018 16:18
thanks
i'm working on portfolio and i'm not really good a design and writing about me. where can i find so inspiration ?
Kelechi Chinaka
@ke1echi
Feb 20 2018 16:19
i use it to format my code to the course standard and it tells me looks good! when i test with it and i also make use of comments too
:smile:
Sandro Das Neves
@sandro-git
Feb 20 2018 16:21
by courses standard you mean the same look of the exemple ?
Gersho
@Gersho
Feb 20 2018 16:21
@kelechy i mean when you run style50 it sometimes says you should add more comments
@sandro-git try looking at other people portfolio (you should code it yourself tho, but taking inspiration in the end result is ok)
Kelechi Chinaka
@ke1echi
Feb 20 2018 16:23
did not tell me so @Gersho
Darren
@DarrenfJ
Feb 20 2018 16:23
@sandro-git I would say go into the forum and post that you want to see some portfolio examples... and ask for codepen links.. say you are not asking to copy code but to get inspired for the design and layout.. should be tons of people jumping to post links
Sandro Das Neves
@sandro-git
Feb 20 2018 16:24
@DarrenfJ about forum do we need to create a different account of code camp ?
gishy1
@gishy1
Feb 20 2018 16:26
hello world chunky monkey is definately my worst challenge
have a look and help
image.png
function chunkArrayInGroups(arr, size) {
  // Break it up.
  var newArray=[];
if((arr.length/size)%2==0){                       
for(var i=0;i<arr.length;i++){  
var spliced=arr.splice(0,size);
newArray[i]=spliced;
newArray[i+1]=arr.splice(0,size);
return newArray;
}
} else{
for(var j=0;j<arr.length;j++){  
var spliced2= arr.splice(0,size);
newArray[j]=spliced2;
newArray[j+1]=arr.splice(0,size);
newArray[j+2]=arr.splice(0,size);  
return newArray;  
}

}  
}

chunkArrayInGroups([0, 1, 2, 3, 4, 5], 4);
tried to have 2 cases, first case is for if arr.length/size is even
second is for even case
Darren
@DarrenfJ
Feb 20 2018 16:27
@sandro-git I think you have to log in by setting up an account not sure if they're allowed you to do it via you GitHub, but I do think it's linked to your fCC id
under community at the top nav bar of the fCC site there's a link to the forum
but you can also access it via the link: https://forum.freecodecamp.org/
Sandro Das Neves
@sandro-git
Feb 20 2018 16:30
@DarrenfJ when i acces by the top nav or by the link you gave to me it ask me to log in or create an account and if i try to log in with my freecodecamp id's that says they don't find the email
Darren
@DarrenfJ
Feb 20 2018 16:31
hmm, that's weird...
the other option would be to try one of the facebook groups for fCC..
I'm not sure why it's not letting you in with your fCC id to be honest. I'd say put a ticket in, in GitHub, but I'm not sure they do anything with the forum there...
Sandro Das Neves
@sandro-git
Feb 20 2018 16:33
i'm already on one i'm gonna try to create an account and if doesn't work i ask the group thanks
gishy1
@gishy1
Feb 20 2018 16:36
how do you delete an empty array
Kaz Baig
@kbaig
Feb 20 2018 16:37
@gishy1 what do you mean by delete
gishy1
@gishy1
Feb 20 2018 16:40
[] :point_left: get rid of this
Gersho
@Gersho
Feb 20 2018 16:40
so like free the associated memory ?
gishy1
@gishy1
Feb 20 2018 16:41
@kbaig
hendsleem
@hendsleem
Feb 20 2018 17:26
No
João Novaes Barreiros
@Jon-Nova
Feb 20 2018 17:43
Hi everyone
where do I go, to report a bug in the fCC beta?
João Novaes Barreiros
@Jon-Nova
Feb 20 2018 17:45
thx @thekholm80
Daniel
@dkapexhiu
Feb 20 2018 18:54
please why the icons are not displaying on the map:
https://gist.github.com/dkapexhiu/260673d90dff949b4b4629e41c66ae4c
see line 179
Gareth Davies
@gareth-d85
Feb 20 2018 19:02
hello all, I have a question, I am looking through the beta freecodecamp and I cant find the user stories for the Applied Responsive Web Design Projects. where are the user stories?
Aditya
@ezioda004
Feb 20 2018 19:24
@gareth-d85 I'm not too familiar with beta but if you click on the codepen link provided in the project, theres test suite. If you click run test, and then click the test pass button you can see the user stories of that project.
Manish Giri
@Manish-Giri
Feb 20 2018 20:27
@sjames1958gm are you watching chelsea vs barcelona?
Corentin Whyte
@CorySW
Feb 20 2018 22:15
any advice on how to make keypress events like arrows and stuff work ? bc it only works for keys like Enter or any other regular key
Kyle Holm
@thekholm80
Feb 20 2018 22:16
you can log the event and see the values in the console
Corentin Whyte
@CorySW
Feb 20 2018 22:19
image.png
well here's the output
I'm using an npm package to help me with key events in react btw
Kyle Holm
@thekholm80
Feb 20 2018 22:23
you can just do <Element onKeyUp={ this.handleKeyUp ]> and
handleKeyUp(event) {
  if (event. keyCode === 13) {
    console.log("Enter key was pressed");
  }
}
or something similar
Corentin Whyte
@CorySW
Feb 20 2018 22:25
I'll try that danke schön @thekholm80
CamperBot
@camperbot
Feb 20 2018 22:25
corysw sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1705 | @thekholm80 |http://www.freecodecamp.org/thekholm80
Kyle Holm
@thekholm80
Feb 20 2018 22:25
gesundheit
:)
Corentin Whyte
@CorySW
Feb 20 2018 22:26
means health btw ahah
Kyle Holm
@thekholm80
Feb 20 2018 22:26
that's all the German i know lol
Was muchen ze von mein lebbe?
i think that's german
Kaz Baig
@kbaig
Feb 20 2018 22:27
The only german I know: Ich habe zwanzig Kinder
Corentin Whyte
@CorySW
Feb 20 2018 22:27
was mögen sie von meine liebe
Kyle Holm
@thekholm80
Feb 20 2018 22:28
lol i'll never be bilingual
Corentin Whyte
@CorySW
Feb 20 2018 22:28
"what do you think about my dear" lmao okay
Gersho
@Gersho
Feb 20 2018 22:28
the only german i know is...inapropriate
Kyle Holm
@thekholm80
Feb 20 2018 22:29
yeah, but you know French @Gersho so you're still ahead
Corentin Whyte
@CorySW
Feb 20 2018 22:29
I'm already bilingual I'm fluent in french and english and I've been learning several languages like swedish, german and so on I love languages
Kyle Holm
@thekholm80
Feb 20 2018 22:29
i know javascript, does that count?
Gersho
@Gersho
Feb 20 2018 22:30
depends, do you know klingon too ?
well he's a frenchy too
Corentin Whyte
@CorySW
Feb 20 2018 22:35
works perfectly now yay !
Kyle Holm
@thekholm80
Feb 20 2018 22:35
@CorySW :+1:
Gersho
@Gersho
Feb 20 2018 22:45
i'm starting to understand dynamic programming, and at the same time i don't get it at all, this is frustrating