Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • Jun 19 2020 20:09
    @krisb1220 banned @Gastony
  • May 14 2020 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 2020 22:38
    @bjorno43 banned @real-action
  • Feb 01 2020 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 2020 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 2019 17:13
    @mstellaluna banned @cmal
  • Jan 08 2019 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
@rylew0925 /\d/g will select each digit separately. /\d+/g will select all the digits grouped together.
'12345'.match(/\d+/g); //["12345"]
'12345'.match(/\d/g); // ["1", "2", "3", "4", "5"]
one match vs. multiple matches
Mercy Manrique
@gothamknight thanks for going back and trying to solve my issue from friday. :)
mers89 sends brownie points to @gothamknight :sparkles: :thumbsup: :sparkles:
:cookie: 432 | @gothamknight |http://www.freecodecamp.com/gothamknight
@piteto Thanks
rylew0925 sends brownie points to @piteto :sparkles: :thumbsup: :sparkles:
api offline
Am I the only one who can't log into FCC?
@rylew0925 It's down as we speek
@rylew0925 FCC is currently down and has been reported

Please help! i'm trying to install npm install async
npm ERR! Linux 4.9.17-c9
npm ERR! argv "/home/ubuntu/.nvm/versions/node/v6.11.2/bin/node" "/home/ubuntu/.nvm/versions/node/v6.11.2/bin/npm" "install" "async"
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! syscall connect

npm ERR! Error: connect ECONNREFUSED
npm ERR! at Object.exports._errnoException (util.js:1020:11)
npm ERR! at exports._exceptionWithHostPort (util.js:1043:20)
npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
npm ERR! { Error: connect ECONNREFUSED
npm ERR! at Object.exports._errnoException (util.js:1020:11)
npm ERR! at exports._exceptionWithHostPort (util.js:1043:20)
npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '',
npm ERR! port: 15443 }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/workspace/npm-debug.log

Doreen Lu
Hello, I'm trying to move the background using the keyframes rule, but the background isn't moving. Can anyone see what's wrong? https://codepen.io/ThoughtProvoking/pen/QqydGE
Coy Sanders
I'm not sure if you can move the body
I would try moving a div background instead
@ThoughtProvoking you'll need to give your background a size to be able to use percentages with background-position.
body {
  background: radial-gradient(circle at 0% 50%, black, white);
  background-size: 500vw 200vh;
  animation: 4s linear infinite sky-change;
that size is a crazy example, but you get the idea...adjust as needed for the effect you want
Coy Sanders
or that could be it too
Doreen Lu
OK. I'll try that.
Marcus Rogers
can anyone help with java?
What do you guys use for responsive text ? Em rem or ..?
Toni Shortsleeve
@fefo360 I like to use 'em'. It seems to give me more control because I can calculate based on the set px. And, I'm not very familiar with rem.
hello guys. can i have a help on React.js here?
Toni Shortsleeve
Sorry @gegiskhan . I'm in the baby stages of React myself.
Ben Hart
Hey there, just coming back to a project on the wikipedia API after a long hiatus
I think I'm having some trouble with function scope would someone be able to help me out?
@Benjmhart i will try and help
Ben Hart
basically i can't seem to call my wikiSearch function from the console
and my event handler for the enter keystroke keeps coming back as undefined too
sorry, there's a lot broken, I just came back to the project after quitting months ago
Ruchika Sharma
@Manish-Giri got it centered, ty!
ruchika90 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6552 | @manish-giri |http://www.freecodecamp.com/manish-giri


$("#searchBox").keypress(function(e,searchTerm){ if (event.keyCode == 13) {
        searchTerm = document.getElementById('searchBox').value;

  searchTerm = encodeURI(searchTerm);

so you forgot to pass the event-handler (e) into the function. You previously had # when getting the element by Id, so that needed to be removed. Not sure if you need the encodeURI..

(by the way, I am no expert)
Ben Hart
I'm sure I had a good reason in my brain months ago
@Benjmhart so in your ajax call url, if you request jsonp instead of json, you will see the json in the console - the parameters you are using are not what I used. give me a sec
yeah so i had action=opensearch in my url
Ben Hart
yeah i was looking at stack overflow and someone was saying query was a better choice.
oh ok then
Ben Hart
I'm getting the object on ready.
I just can't call the wikisearch function from the console.
and the object has an error, but I think that's because it only is running a blank search term
which i can't test because I can't call the function from the console
ok, so there's a problem with how I'm passing my search term