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
Oliver Webb
@Ollie15
@edward-hong
Edward Hong
@edward-hong
thanks @mutantspore it worked
CamperBot
@camperbot
edward-hong sends brownie points to @mutantspore :sparkles: :thumbsup: :sparkles:
:star: 1183 | @mutantspore | http://www.freecodecamp.com/mutantspore
Oliver Webb
@Ollie15

Hello I am trying to put text over an image, how would I do this? thanks.

http://codepen.io/Olliewe88/pen/WrBVPw

Pynman
@Pynman
Suggest best editor software similar to FCC txt editor (windows)
Hemang Kumar
@hemangsk
@pynman Atom, Sublime Text
Hemang Kumar
@hemangsk
@Boomybiscuit45 One way is that you can make a <div> and then use the image as background-image of that div and write the desired text inside <div>
Ngoc Chi Vo
@nchivo101
@pynman vim :D
Brian Kilrain
@bkilrain

Hello kind people… I’ve been banging my head against the wall with my random quote generator. I’ve lurked around this chat and tried to follow advice for other folks having problems… I’ve checked out blogs/books/youtube tutorials/etc… I’ve poured myself large glasses of whiskey and shook my fist in the air while yelling obscenities. Nothing has worked.

My main goal right now is to get the api working properly… then I’ll build the site around that. I am evidently missing something. Here is my latest failed incantation… but I’ve tried the .getJSON method too, as prescribed in the FCC lesson.

So - my fellow campers - I implore you. Please provide me with a resource that can walk me through this process. My mind is slow from all the whiskey… so if it is written in the language an eight-year-old could understand, all the better.

I really don’t want to copy, or even look at, someone else’s code… I want to understand this organically. But my will is weak. HELP!!! OTL

sigursiguros
@sigursiguros
dear campers my clock is not working, please help http://codepen.io/Sigursiguros/pen/QyJaLQ?editors=0010
Brian Kilrain
@bkilrain
seems all the helpers are taking a break @sigursiguros :worried:
Hemang Kumar
@hemangsk
@bkilrain I am working with ur codepen, will let you know if I find a solution, btw for the Random Quote Generator problem, I preferred to use an array
Coy Sanders
@coymeetsworld
@sigursiguros i dont think the setInterval function should be within the function you are passing it, needs to be separate
Brian Kilrain
@bkilrain
@hemangsk thanks a lot. I thought about using an array… but then the thought of not knowing how to properly rock an api made me crazy. I’m thinking I’ve got to use a jsonp format… something about ‘same domain policy'
CamperBot
@camperbot
bkilrain sends brownie points to @hemangsk :sparkles: :thumbsup: :sparkles:
:star: 314 | @hemangsk | http://www.freecodecamp.com/hemangsk
Coy Sanders
@coymeetsworld
Agreed I used an array too @bkilrain @hemangsk, the funny part was that I started working on this a month ago and the curriculum changed
Random Quote was put with Basic FE Development Projects which is before the JSON APIs and Ajax section
Brian Kilrain
@bkilrain
ahhhh… yeah, with the curriculum as it is now, using an array feels like cheating after learning about apis
Yasin Yusuf
@YasinYA
hi guys how is everyone
Hemang Kumar
@hemangsk
@bkilrain Its really great you thought of using an API, and that same domain error is a real headache, and it get resolved by using &callback=? most of the times... but the error I'm getting is,.. that there is apparently a missing semicolon in the json data received....looking into it...
@coymeetsworld i think they changed because the quotes zipline is to check our array and random number function understanding....! btw that json api CORS error is real notorious...right? :D
Coy Sanders
@coymeetsworld
which error is that @hemangsk ?
Hemang Kumar
@hemangsk
"cross origin request" something...pops up when we forget to put that "&callback=?" thing in api url
Coy Sanders
@coymeetsworld
hmm don't think I've seen that before, were we working on the Weather API stuff? I haven't been doing any of that the last 2 days trying to put some work in now lol
Hemang Kumar
@hemangsk
@coymeetsworld Yaaa our last encounter with CORS was when we were working on weather api stuff :)
Coy Sanders
@coymeetsworld
oh you're talking about when we didn't specify the protocol in the URL right @hemangsk ?
left out the http:// in the API call?
Thanasis S.
@xakersas
hello
so i want to allign my list both in the center
and left
Azrul Zulkifli
@azrulnaut

Hi guys and girls, I'm working on the weather report project. As the open source weather API only allows hourly calls, to help me while I'm working on it, I decided to copy the JSON file an upload a copy on dropbox. For some reason, my code doesn't check out.

     var apiURL = "https://www.dropbox.com/s/dg2606z3hhpxj9q/weathertest.json?raw=1&callback=?";

function getPosition() {
  if (navigator.geolocation) {
    navigator.geolocation.getCurrentPosition(showPosition);
  }
}

function showPosition(position) {
  $.getJSON(apiURL, function(json) {
    var lat = position.coords.latitude;
    var long = position.coords.longitude;
    var weather = "";
    weather += json.name + ", " 
      + json.weather[0].id + "<br>"
      + json.weather[0].icon + "<br>"
      + json.main.temp + " Kelvin<br>Longitude: " 
      + long + "Latitude: " + lat;
    $('.weather').html(weather);
  });
}

(document).ready(getPosition());

Hope someone could lend a hand.

Coy Sanders
@coymeetsworld
you need to call the JSON.stringify method
@azrulnaut
to convert that to a JSON object
Hemang Kumar
@hemangsk
@bkilrain I am not able to figure it out, your approach is completely correct... Found an API which works.. http://www.icndb.com/api/
Brian Kilrain
@bkilrain
Ok… thanks again. I’ll try that other api :)
here is the url I’m attempting to use. It works! But how can I get the function quoter(json) to display on the site?
Hemang Kumar
@hemangsk
@bkilrain Cool lemme see
Brian Kilrain
@bkilrain
i dont’ care about formatting right now… just JSON.stringify would be fine
Azrul Zulkifli
@azrulnaut
thanks @coymeetsworld will try that!
CamperBot
@camperbot
azrulnaut sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star: 310 | @coymeetsworld | http://www.freecodecamp.com/coymeetsworld
Coy Sanders
@coymeetsworld
gl @azrulnaut i'm working on this one too
actually now that i tried it @azrulnaut i didn't have to do that, hmmm
tried plugging in your reference to dropbox, are you getting forbidden error?
you may not be able to reference Dropbox data from outside, I'm not sure where I heard that from exactly
Azrul Zulkifli
@azrulnaut
@coymeetsworld At first I got the forbidden error but I added 'callback?=0' to the url
now the error seems to be a syntax error in my json
which is strange