« first day (2565 days earlier)      last day (2366 days later) » 

1:00 PM
class B {
	constructor() {
  	this.b = 'this is class B';
  	var a = new A(this.my_callback_maker(this));
  }
  my_callback_maker(anotherContext) {
  		return function my_callback(event) {
  	  		console.log(this);
          console.log(anotherContext);
      		console.log(event);
      }
  }
}
or define it in the constructor and do a const self = this
 
@Mosho let me try that
 
2 messages moved to Java
wrong room m8
 
now he seems a spammer
oh, it works
aaaand makes sense
 
good morning everyone
 
1:11 PM
[]
0:<span>--</span>

I am getting something like above when doing getElementsByClassName any ideas how to access that span since .item(0) returns null
 
I was beginner and was playing with stackoverflow, one day they banned me. Fine.. I did lot of stupidity so it's ok. After that I answered, commented to many questions and after 6 months they unbanned, After one month I asked a question and they banned me like wtf :/
 
stackoverflow just loves you
 
guys, send him love
<3
 
I know that haha. Atharva bc pareshan kr rkha h inhone @AtharvaPandey
 
xDDDDDDDD
lmao
 
1:15 PM
:D haha I am still question banned that is why i use this chat for the most part as I cannot be always grammatically correct :3
 
I think thats why chat.stackoverflow.com was created :P
 
If I have a header with a button, that toggles a drawer menu, where would you see it most fit to put the state of the drawer (wether its open or not)?
app global store sounds meh i think
 
@KamilSolecki Put it into a variable
 
actually JavaScript section is the coolest even though you ask a hell lot of stupid question you still get response and you get helped frequently sometime when you visit to python room you ll feel the pain
 
@OliverSalzburg im talking react + mobx
 
1:18 PM
@KamilSolecki why?
 
try to love global @KamilSolecki :P
 
@rlemon just sounds weird to me. But please, do correct me if I'm wrong, I'm pretty much baby-stepping in react
 
@KamilSolecki I'm by no means an expert. But wouldn't it be semantically part of the global UI state ?
 
up
I would like to know, if using basic JS or Jquery (or other tech), it was possible to know if a click on a button, a select choice, a checkbox click or ... is done by the user or by a script ?
I made a website and i want to assure that the think which is using the page is a real user, and not a script (run in Tampermonkey for ex)
 
so I should get an UIstore and pass it to both components in my container then, right? @rlemon
 
1:23 PM
no clue
 
@azro There's no way to tell.
 
no easy* way to tell
you can get pretty damn close tho, through a convoluted mess of checking mouse movements and shit
 
Which is what Google's newer Captcha is supposed to do.
 
you can try sending "was-clicked" in click handler
 
won't matter what data you send.
 
1:25 PM
@RahulJain You clearly didn't read the question.
 
if they can simulate a click event, they can simulate a click event
 
oops sry
 
sure catcha would gives problems to non-human, but i don't want to make humam loose time with catch
and i'm not interested in making a wall against bots
just find them, if there is
 
wtf Microsoft still sets so many cookies on office.com, that it breaks their login
POST body size gets too large
 
@azro If they're well-behaving bots, you can look at the user agent
 
1:28 PM
cc @rlemon @towc @SterlingArcher @KamilSolecki
 
@Trasiva That mash looks nice
 
If you're targeting non well-behaving bots, a Captcha is your only choice.
 
wooohooooo
nice!
 
@BenFortune Not mash...scrambled eggs.
I've actually really enjoyed them since I tried them that way. I'll probably get some toast to serve them on next time though.
 
meat hook abortion
 
1:30 PM
Wut?
 
@rlemon Please don't send crap to other rooms (even if on-topic there)
 
I already joined and said sorry, it looked like he just miss-posted the room
 
@MadaraUchiha the user-agent would not be the same in case of a script which simply runs on Tampermonkey ?
 
@Trasiva Oh lol, looks too fine to be scrambled eggs
I like mine proper chunky
 
1:31 PM
(I'm also interested in the way I would be the user, using only script in Tampermonkey)
 
@BenFortune Yea, I finally decided to try French style scrambled eggs the other day.
Turns out, they're insanely creamy and delicious.
 
Chunky scrambled eggs < liquidy scrambled eggs
 
@Trasiva AvE ;)
 
@ssube Was it you that linked me to that open source S3 alternative?
 
@KendallFrey I have no idea what you're talking about.
 
1:33 PM
@KendallFrey I don't think he watches those vidjeyos
 
@azro It would, that would be a "bad behaving bot"
 
@BenFortune that's the one. I've been using it for a bit, it's pretty simple but it works.
 
@Trasiva You would if you watched the glorious bumblefuckery that is AvE
 
You have no trivial way of identifying those.
 
@Trasiva yea, you'd like AvE
 
1:34 PM
@ssube Simple is all I need, I'm guessing I can use any S3 library?
 
he's your kinda Canadian
 
He's everyone's kinda Canadian
 
ArduinoVersusEvil?
 
@Trasiva no, the channel is named "AvE"
 
wait
@KendallFrey he's right
 
yeah lol
 
@BenFortune yeah, it should work with any client. I've got an old desktop with rtorrent, minio, handbrake, and emby set up and sharing directories.
 
damn, AvE how did I never know
 
Nobody actually uses their channel ID, right?
 
1:35 PM
guess not :P
 
Except szyzyg
 
> theCodyReeder
 
@ssube Well that's just handy
 
looks like. I have ansible setting up docker containers, which was easy enough.
 
@MadaraUchiha I'm not english, and so not used to "behaving bot" does it mean a very bad bad bot made by a very bad bad guy ? in easy words sure
 
1:38 PM
bots should tell you they are bots. good bots do this. bad bots try to pretend not to be bots.
 
@azro "well-behaving bot" means a bot that follows the rules, like Google's bot. They have a distinctive user-agent and respect bots.txt
"badly-behaving bots" are bots that do neither of those things.
They try to pose as regular users for various effects (usually scraping)
 
ok so a bot made to usurp human, would have same user agent , yes sure it seems ok, bu did not not for weel-bot
 
> (node:29792) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Invalid attempt to destructure non-iterable instance
no trace, no line numbers, no notice of what I was trying to destructure
I fuckign hate these errors
 
i was wondering me all of this, because a year ago in Java, i saw a method on an event handler isUserOriginated() bu I know that Java is more powerful sure, they have nothing in commom and cannot be compared
 
1:44 PM
okay.. wtf
> TypeError: Cannot use 'in' operator to search for 'errors' in {"errors":[{"credentials":"invalid"}]}
why the fuck can't I?
o shit, is that a string?
 
wtf
....
 
@rlemon I tried native promises and async/await yesterday on a project and went back to Bluebird moments later. It feels like a step back
 
@Mosho oh god
 
Maybe I'm missing something, but that is an even bigger nightmare to debug
 
1:46 PM
@OliverSalzburg it's mostly a beef with how destructuring errors are reported
 
@rlemon I like that the first two aren't even people
 
it's a great sub
 
@Luggage so I definitely got the yubi working on android (with pass, so sharing passwords) and I think on windows. It seems to be signing, but not running as an ssh agent yet.
 
mine should be here today. then i can play
and my pixel 2 xl with the screen that I have been hearing so many bad things about, tomorrow
 
this gpg4win tut was the one that eventually got that part working
 
1:53 PM
@BadgerCat I won't be here tomorrow so it's early buttttttttt
@BadgerCat happy birthday bae!!! 🔥👍🏿❤️
 
you can't just ninja everybody and time :P
 
@SterlingArcher I want some early butt too
 
@ssube CAN AND DID
@Loktar yeah man I had a lot of trouble sleeping last night
 
it is worth to mine dash with GPU?
 

« first day (2565 days earlier)      last day (2366 days later) »