Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 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
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Anthony Contreras
@AmazeCPK
anyways, you probably want your content in a container,, and then give the container the same css style that I gave you
@Mr-Kumar-Abhishek I'm just saying, its common courtesy.
Abhishek Kumar
@Mr-Kumar-Abhishek
@AmazeCPK ofcourse :)
bistuDaniel
@bistuDaniel
you know that you can skip the video until the background I want
I mean, I cannot find my words to explain it
and I posted a video for a better understanding of my problem
:D
Anthony Contreras
@AmazeCPK
@bistuDaniel then please give a time stamp.
Abhishek Kumar
@Mr-Kumar-Abhishek
Even I won't listen to the video ~ at most I will only watch it ....
Anthony Contreras
@AmazeCPK
anyways if it's anything like at 2:47, then the second bit of information I provided should help
bistuDaniel
@bistuDaniel
it starts at 2:45
Tom
@moT01
just give the link to that codepen instead of the video
Anthony Contreras
@AmazeCPK
bistuDaniel
@bistuDaniel
YAAAAAAAAAAAAAAAAAAY
THANK YOU VERY MUCH @AmazeCPK
CamperBot
@camperbot
:warning: could not find receiver for amazecpk
bistudaniel sends brownie points to @amazecpk :sparkles: :thumbsup: :sparkles:
Anthony Contreras
@AmazeCPK
yeah, of course!
Callum Ward
@callumquick
On this algorithm challenge https://www.freecodecamp.com/challenges/validate-us-telephone-numbers
I have an algorithm that works to tests against all of the allowed formats, and it removes spaces and dashes as well
I console.log() the edited string to see that the regexp removal of spaces and dashes work and it does
My algorithm works for all of the tests except that "1 (555) 555-5555" registers false whilst "1(555)555-5555" passes as true:
However after editing they should be the same , and I console.log it to prove it and they both edit to 1(555)5555555
One of the edited strings which are identical passes, the other does not... is it a bug?
Tom
@moT01
got the code?
does seem strange
CamperBot
@camperbot
no wiki entry for: me httpcodepeniocharan1922pennbemwqeditors0010
Sunny Ouyang
@ShennyO
is there anyone here that's familiar with html5 canvas stuff?
Charan Teja
@charan1922
@camperbot i dont get u
Emanuele Antonelli
@Em-Ant
@charan1922 you have a CORS issue. You should use JSONP. Add ?callback=? to your query url. More infos here.
@charan1922 please don't open issues on FCC github for this kind of problems.
Callum Ward
@callumquick
@moT01
function telephoneCheck(str) {
  console.log("Testing: "+str);
  //remove spaces and dashes:
  var editedStr = str.replace(/\s|-/gi, "");
  console.log("Str edited: " + editedStr);
  if(editedStr.length == 10 && /\d{10}/.test(editedStr)) {
    console.log("True - length 10");
    return true;
  } else if (editedStr.length == 11 && editedStr[0]=="1" && /\d{10}/.test(editedStr)) {
    console.log("True - length 11");
    return true;
  } else if (editedStr.length == 12 && str[0]=="(" && str[4] == ")" && /\d{7}/.test(editedStr)) {
    console.log("True - length 12");
    return true;
  } else if (editedStr.length == 13 && str[0]=="1" && str[1] == "(" && str[5] == ")" && /\d{7}/.test(editedStr)) {
    console.log("True - length 13");
    return true;
  } else {
    console.log("False");
    return false;
  }
}
blob
Also please note the top series of console.log and the bottom series
Top should be "true - length 13" just like the bottom
Lydia Larae
@nevaIsDreaming
anybody hanging around that knows a thing or two about the wikipedia viewer? I am stuck trying to figure out how to use the API
Callum Ward
@callumquick
@nevaIsDreaming I did the wikipedia viewer recently, what are you stuck on?
If it is that the API doesn't work due to Cross-Origin issues I can probably help as I did eventually get it to work (this is the really annoying thing about dealing with all of the APIs FCC want us to use...)
Sorin Ruse
@sorinr
@callumquick you can use any api or lib u want. this is what fcc say. the ones they make as example its just an example. nothing more
Lekulino
@kuleCRO
Hi everyone! :) I need a feedback of my Tribute page: http://codepen.io/kule666/pen/pNOKYX
Sorin Ruse
@sorinr
@kuleCRO just add class="img-responsive" to your img
Lekulino
@kuleCRO
tnx, i've tried, but then image goes all to the left side :/
Sorin Ruse
@sorinr
@kuleCRO nope. see the example
Lekulino
@kuleCRO
yep, and then you have on the right of the image some background space. i dont know is this because of image itself,or?
Lydia Larae
@nevaIsDreaming
I am trying to come up with a specific question. I am a little lost on trying to figure out get the URL written so that I am getting a list of search results. I've been reading through the documentation but I don't see this addressed specifically anywhere I look. Where does the user's input go in the URL? I think I'm supposed to be using query and list, but what parameter does the actual search term entered by the user go in the URL?
Perhaps what is more troubling than the fact that I don't know the parameter I am supposed to use is that I can't figure out how to find it in the documentation when I look for it?
Callum Ward
@callumquick
@sorinr Well really its an issue with any API, that we're not really told how to handle (it's quite difficult)
@nevaIsDreaming It is confusing in the documentation, especially because they don't have a page on how to search, but what you want is "?method=opensearch" in the URL, this searches wikipedia... then you need another "search=" parameter for the users input
@kuleCRO I think it is very good!
Sorin Ruse
@sorinr
@callumquick to proper use any api you just need to read their docs.
Lekulino
@kuleCRO
tnx Callum :)
Callum Ward
@callumquick
@sorinr What about when you run into a CORS issue as a beginner? Do you need to sift through pages and pages of forums to find that sometimes using JSONP works but sometimes it doesn't and sometimes you need to include CrossDomain:true; in your ajax object and sometimes you don't, and sometimes neither works? It's not constructive as a beginner to run into these issues when the challenge is supposed to be testing your knowledge of API calls, not cross-origin headers and security...
Sorin Ruse
@sorinr
@callumquick the early u learn about issues u may encounter the better is for you as a future developer
alpox
@alpox
@callumquick there are 2 points to take into account: using JSONP, and if this doesnt work out, use crossorigin.me
but youre right, its no fun to run into these issues