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
mstellaluna
@mstellaluna
:)
Barbara Pentoney
@flyfishingbarbara
hi all-here's my weather app....is my geolocation working properly...??https://codepen.io/flyfishingbarbara/pen/XZoKyz?editors=0011 thanks!
thanks for your help
Christopher McCormack
@cmccormack
@flyfishingbarbara I don't see an element with the id #data so you aren't writing the position anywhere. You're also using hardcoded lat lon in your url
@flyfishingbarbara you would want to call your functions that depend on your lat lon data you get back from the navigator API from the navigator callback as well, as this api is asynchronous
Barbara Pentoney
@flyfishingbarbara
@cmccormack okay i will take a look and see if i can figure that out...thanks
CamperBot
@camperbot
flyfishingbarbara sends brownie points to @cmccormack :sparkles: :thumbsup: :sparkles:
:star2: 1396 | @cmccormack |http://www.freecodecamp.org/cmccormack
Christopher McCormack
@cmccormack
@flyfishingbarbara np
Emil
@aguyinmontreal
@khaduch thanks! (sorry I didn't see your reply for 2 days)
CamperBot
@camperbot
aguyinmontreal sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3854 | @khaduch |http://www.freecodecamp.org/khaduch
JoEezy
@JoEeeezy_twitter
is there a way to return only a specific json object and not the whole data with $.getJSON ?
for example , i get json data from this page https://wind-bow.glitch.me/twitch-api/users/freecodecamp but i only want it to return "bio"
Brad
@bradtaniguchi
@JoEeeezy_twitter Its up to the API to return what it wants to return, so read the docs for the API (if there are any), otherwise you will get what ya get
JoEezy
@JoEeeezy_twitter
@bradtaniguchi ok thanks, i was under the impression that jQuery.getJSON( url [, data ] [, success ] ) the data parameter is where you specify what you want to get back , guess not :smile:
CamperBot
@camperbot
joeeeezy_twitter sends brownie points to @bradtaniguchi :sparkles: :thumbsup: :sparkles:
:cookie: 452 | @bradtaniguchi |http://www.freecodecamp.org/bradtaniguchi
Claudio Restifo
@Marmiz
@JoEeeezy_twitter you should check twitch API documentation to know if getUser accepts further params to specify you wants only the bio, or it always reply with the whole object
Claudio Restifo
@Marmiz
guys, anyone know in which version React.Fragmet has been added?
Rahsheen Porter
@rahsheen
I thought it was react 16?
Brad
@bradtaniguchi
Must... Fight... Karma... to .... run ... tests...
JoEezy
@JoEeeezy_twitter
Claudio Restifo
@Marmiz
thought the same but it's not working for me :( perhaps was in 16.2?
JoEezy
@JoEeeezy_twitter
can anyone tell me why my row id's end up always being the last item in the array
Brad
@bradtaniguchi
@JoEeeezy_twitter Can you send a link to the pen, im straining trying to read that
JoEezy
@JoEeeezy_twitter
i was assuming it was because it takes longer to get the json data back then it was to loop through the id's but when i put the id variable in the .getjson callback it just comes back undefined
okay
Claudio Restifo
@Marmiz
@JoEeeezy_twitter wlcome to async code! You are running a sync loop with an async behaviour inside.
You should defer the append to only when the data actually returns
JoEezy
@JoEeeezy_twitter
@Marmiz :fearful:
Brad
@bradtaniguchi
^ @Marmiz nice catch
Claudio Restifo
@Marmiz

@JoEeeezy_twitter fear not, getJson already return promises.
It's enough to:

getJSON(url, function(data) {console.log(data}).then(append)

or done I don't remeber JQuery exact syntax (haven't used in a while)

Boo Far
@vapidlyrapid
hello. I was wondering how I can install babel 7 beta using npm
Claudio Restifo
@Marmiz
or you can use async/await if you prefer :)
JoEezy
@JoEeeezy_twitter
@Marmiz thanks for the advice ... i'm gonna try that .then or .done as it seems simple enough for a noob like me :grin:
CamperBot
@camperbot
joeeeezy_twitter sends brownie points to @marmiz :sparkles: :thumbsup: :sparkles:
:star2: 1199 | @marmiz |http://www.freecodecamp.org/marmiz
JoEezy
@JoEeeezy_twitter
i need to do more learning on async
Brad
@bradtaniguchi
omg this package karma-jasmine-html-reporteris messed up I think :/
JoEezy
@JoEeeezy_twitter
@Marmiz works like a charm :), ty
CamperBot
@camperbot
joeeeezy_twitter sends brownie points to @marmiz :sparkles: :thumbsup: :sparkles:
api offline
Claudio Restifo
@Marmiz

@JoEeeezy_twitter it's pretty easy to use async/await as well since you write your code in a synchronous style:

async myGetDataFunction() {
  const data = await myMethodToObtainData();

   // keep on writing like if it were a sync function
   const newData = normalize(data);
   return aMethodWtih(newData)
}

Anyway if you never used it, defeinitely get confortable with promises bf using async/await

@JoEeeezy_twitter don't forget to catch any errors! :+1:
coderNewby
@coderNewby
@DarrenfJ thanks for PM, checked.. great tip
CamperBot
@camperbot
codernewby sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2453 | @darrenfj |http://www.freecodecamp.org/darrenfj
Rahsheen Porter
@rahsheen
Watch out with async/await. You need to use try/catch or you're screwed if any errors happen.
Brad
@bradtaniguchi
Does anyone know how the npm command view works? Like npm view gulp? Cuse I used it and it said one version, but I manually checked the package's package.json and it said something else