« first day (3228 days earlier)      last day (1714 days later) » 

DRP
12:55 AM
Hi dearest community
 
1 message moved to Trash can
@DRP Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
1 message moved to Trash can
@DRP Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
1 message moved to Trash can
@DRP Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
DRP
dangit still unable to wrap it as code
ctrl + enter? wasnt it
Anyway I'll keep it simple, this single line is not evaluating for me -> if( (x||y) === null )
If I ignore the OR and just leave one of the variables that has the assigned null it does work
I did check with 'undefined' and undefined
Im doing it in the JSFiddle however I did test it in MDN and result was the same
No answer required, but If you say go read this or that I'll do so
is 'i dont know' which would be?
console.log says null is null
OR is doing something weird
So the question would be: Why does null doesn't evaluate when compared against two or more variables?
Maybe there is a way to break it out in a more simple way, just that right now I'm not able to think about it, or I'm just that noob
 
 
9 hours later…
9:47 AM
Guys I need help.
Can you please open pull requests on the following repo: github.com/ilantc/lesson02/pulls there are 3 examples already - it's for an office gag
 
10:24 AM
@rlemon weren't you the one playing with arduinos for a while?
any tips 😃
 
 
2 hours later…
12:04 PM
<a> cannot appear as a child of <tr>.
 
1 message moved to Trash can
@sockevalley Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
12:16 PM
I fixed it
 
 
2 hours later…
2:33 PM
Does anyone here know how to run a cronjob every minute except for every 5th minute? So run on 16:01, 16:02, 16:03, 16:04. Then the next on 16:06, 16:07 etc
 
3:10 PM
well running a cron job is pretty easy you would get out of the box code and anyways if you have code to run it every 5 minutes you just need to change the time to run every 1 minute
 
3:38 PM
This is an interesting one:
https://pastebin.com/k3pZDzPW
How do you set the state if the variable you want to set is in an variable?
haha
 
I'd like to start writing JavaScript. What is the most popular JavaScript IDE that is free?
Thanks.
Or, what IDE do you recommend for beginners?
 
always vscode
Although looking for an "IDE" may get you in trouble, since those don't really exist for JS in the traditional sense
 
4:32 PM
@User1973 WebStorm
Those are the big two Vscode vs WebStorm.
tl;dr Webstorm
 
@KendallFrey and @JBis:
Thanks! Will try both vscode and WebStorm.
Cheers.
 
 
3 hours later…
7:31 PM
heyyy so I'm a little new to React and I'm trying to figure out how to delegate a click event to a child element of its parent..
        <li onClick={this.Link}>
          <Link to={"/" + page.path}>{page.title}</Link>
        </li>
something like that, but that doesn't work :(
 
so this happened
 
user8729657
How did you do it @StephanS?
 
user8729657
@SamMalayek, did you bind the Link this.Link = this.Link.bind(this);?
 
@OvieTrix I did it with !!magic
!!magic
 
(∩ ͡° ͜ʖ ͡°)⊃━☆゚. * ・ 。 ᵀᴴᴱ ᴳᴬᴹᴱ
 
user8729657
7:37 PM
Magic is the best thing ever lool
 
you wanna know whats better then magic?
 
user8729657
Javascript?
 
nope
!!magic2
 
@OvieTrix no I have not.. where would I do that?
 
7:44 PM
1 message moved to Trash can
@SamMalayek Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
  render() {
    return (
      <div>
        <input type="text" value={this.state.query} onChange={this.search} style = {{ width: '100%', paddingLeft: '8px', paddingTop: '4px' }} placeholder={'Search'} />
        <ul>
          {this.state.results.map((page, index) => (
            <li tabIndex={index} key={page.id} >
              <Link to={"/" + page.path}>{page.title}</Link>
            </li>
          ))}
        </ul>
      </div>
    )
  }
 
user8729657
<li onClick={this.Link}>
          <Link to={"/" + page.path}>{page.title}</Link>
</li>
 
user8729657
so on click you wanted this.Link to be triggered correct?
 
yea I already tried that. I figured maybe I had to call a method on Link, but then I get TypeError: _this2.Link is undefined
 
user8729657
constructor(props) {
super(props);
 
user8729657
7:51 PM
}
 
user8729657
and try adding this.Link = this.Link.bind(this);
 
user8729657
in the contructor
 
TypeError: _this.Link is undefined <== in the constructor
 
user8729657
Link is a parent component?
 
user8729657
where is Link
 
7:56 PM
Link is the child component
line 22
 
user8729657
<Link to={"/" + page.path}>{page.title} />
 
user8729657
Shouldn't it be this
 
user8729657
remove the binding
 
user8729657
Oh i see
 
yea the click works fine if you click the Link element, but I'm trying to get a click event on the li to be passed down to its child Link element
 
DRP
8:14 PM
anyone knonw why I can't check variables in an OR statement against a null?
(a||b)=== null //not working
a===null || b ===null //working
 
 
2 hours later…
9:47 PM
hello guys i'm trying to get stream of webcam from one pc to another using web camera via webrtc but unable todo so can anyone help me out here is my code on github github.com/kidovasquez/Stream41frontend
 
9:58 PM
@Atulkumarsingh Are you expecting us to look through all your code on GitHub and do a bunch of testing to figure out the issue?
 
i'm just asking to help me a in the viewer section
 
DRP
anyway to to typeof for several values on the same line
much as one woud do: var a b c d addinfinitum;
but for typeof a b c whateverrrrrr
?
@JBis
 
can you give me an example ?
 
DRP
dearest expert
 
oh...cannot tag him as it might get me ban again
 
10:03 PM
@DRP If you don't have time to read the rules. I don't have time to answer your question. javascriptroom.github.io/rules
 
DRP
alright sorry for being a 'help vampire', didn't think it was such a hard question...
anyways cheers!
 
@DRP Thank you for reading the rules. No I dont think there is a way to do what you are asking. Simply do typeof for each variable. If its an array of values than you can loop through it and typeof but thats about it.
 
DRP
cool will do
 
the problem is i'm not getting any error but still there is no video dispayed
 
@Atulkumarsingh you gotta do a bit more work than "it won't work"
 
10:15 PM
@JBis just guide me to a proper source and from their i can take care
 
what source?
 
learning resource
for webrtc
 

« first day (3228 days earlier)      last day (1714 days later) »