Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 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
Reinier Blanco-Diaz
@reycuban
@hemakshis i was just thinking about that! let's see how ti turns.. thank you.
CamperBot
@camperbot
reycuban sends brownie points to @hemakshis :sparkles: :thumbsup: :sparkles:
:cookie: 302 | @hemakshis |http://www.freecodecamp.org/hemakshis
Stephen James
@sjames1958gm
@hemakshis :+1: you might consider converting some of the components to functional components
The ones that have no internal state - as practice.
Hemakshi Sachdev
@hemakshis
@sjames1958gm Thank you! Sure I will try that :)
CamperBot
@camperbot
hemakshis sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8838 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Ken Haduch
@khaduch
@HTML-joe - good morning... I just took a look at your project (I was off the computer overnight, at least over night for me...) and it looks like some stuff is happening now? Sorry that I didn't get to comment further last night, my computer went bonkers on me... :point_up: January 10, 2018 12:25 AM You must have gotten something working.
@hemakshis - that markdown previewer looks really nice. One thing that doesn't seem to be working is the "inline-style link with title". I don't see the "title" for that. But I really like all of the example text and rendered output. Nice!
Marc
@MWBauer
Morning! :wave::coffee:
Tom
@moT01
:snowman:
Razvan Jackson
@RazvanJackson
Is someone here a good designer?
Tom
@moT01
yes
dinesh
@1532j0004kg
hi
Tom
@moT01
:leaves:
nsonhouse
@nsonhouse
Does any one have any ideas on how to update cells in a table ?
Fabien SHAN
@X140hu4
@nsonhouse Explain the context
nsonhouse
@nsonhouse
@X140hu4 Thanks Fabien. Im creating a timesheet application. Im using a button to pull the system time to record the time a person logs in and out for a shift. But I am not sure how to traverse the DOM to the fields in the table.
CamperBot
@camperbot
nsonhouse sends brownie points to @x140hu4 :sparkles: :thumbsup: :sparkles:
:cookie: 313 | @x140hu4 |http://www.freecodecamp.org/x140hu4
Fabien SHAN
@X140hu4
@nsonhouse I haven't much experience in DOM manipulation but can't you target the cell using an id?
nsonhouse
@nsonhouse
@X140hu4 I thought of that, but that requires an id for each cell. With 7 days and 4 times stamps, there must be a more efficient way.
Stephen James
@sjames1958gm
@nsonhouse You might try child selectors?
tr:nth-child(2) or some such?
nsonhouse
@nsonhouse
@sjames1958gm Thanks James. I am not familiar with this topic. Can you elaborate?
CamperBot
@camperbot
nsonhouse sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8839 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Stephen James
@sjames1958gm
@nsonhouse https://www.w3schools.com/cssref/sel_nth-child.asp
This page talks about it but only from a CSS perspective.
I am sure there is a way in javascript. maybe using element.querySelector?
nsonhouse
@nsonhouse
@sjames1958gm Thanks James. This looks very helpful.
CamperBot
@camperbot
nsonhouse sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
api offline
Jigal Sanders
@sandersjj
Hello Everyone. I am busy with the Twich.tv assignment and I am struggling with how to arrange the code. I have kind of something working. But I find It hard to arrange the code in a logical way
Kaz Baig
@kbaig
@sandersjj could take a look if you want
Jigal Sanders
@sandersjj
@kbaig please. But I don't want you to come with a solution and tell me here is the solution. I am looking for pointers
Kaz Baig
@kbaig
@sandersjj for sure, I'm partial to that method anyways
Jigal Sanders
@sandersjj
I would like to hit the api once. and then every action afterwards should happen on the result from the api
so for example when i search for a channel it should do the search on an existing list of results from the api and not first do an api request again
So I thought of have the result from the api in the global scope
and then use that global scope variable to do the filtering on
Kaz Baig
@kbaig
@sandersjj So you mean you'd rather make all the API calls when the page is loaded and then just use that info for filtering actions etc rather than make the calls again
Am I getting that right
Jigal Sanders
@sandersjj
Yep.
Kaz Baig
@kbaig
@sandersjj I'd follow a workflow like so:
Promise.all(channels.map(channel => $.getJSON(`${baseUrl}/channels/${channel}?callback=?`)
  .then(channelResult => $.getJSON(`${baseUrl}/streams/${channelResult.name}?callback=?`))
))
.then(results => {
  // treat this as a global scope that has access to your api results
});
Jigal Sanders
@sandersjj
@kbaig how should I read this? first map over the channels. Then over the streams and when you're done doing that. use the results in the promise
but this will do the api calls every time not only on page load
@kbaig have to run home now. Will catch you another time. Thanks in any case
CamperBot
@camperbot
sandersjj sends brownie points to @kbaig :sparkles: :thumbsup: :sparkles:
:cookie: 504 | @kbaig |http://www.freecodecamp.org/kbaig
Kaz Baig
@kbaig
@sandersjj I'm just restructuring the fetchChannels function you implemented in your pen, ie mapping over your array channels with API calls. Calling Promise.all on the resulting array to resolve, and then using the values throughout the other functionality in your project